Журнал лабораторных работ

Содержание

Журнал

Среда (06/09/10)

/dev/pts/1
15:38:05
#ls
CentOS-Asterisk.repo  off
15:38:06
#mv off/* .

15:38:09
#vi CentOS-
15:38:09
#vi CentOS-Base.repo
15:38:45
#yum install asterisk16
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
file:///mnt/CentOS/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/mnt/CentOS/repodata/repomd.xml'
Trying other mirror.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package asterisk16.i386 0:1.6.2.8-1_centos5 set to be updated
--> Processing Dependency: asterisk16-dahdi = 1.6.2.8-1_centos5 for package: asterisk16
--> Processing Dependency: asterisk16-voicemail = 1.6.2.8-1_centos5 for package: asterisk16
...
  --> Missing Dependency: kernel-i686 = 2.6.18-194.3.1.el5 is needed by package kmod-dahdi-linux-2.3.0.1-1_centos5.2.6.18_194.3.1.el5.i686 (asterisk-current)
kmod-dahdi-linux-fwload-vpmadt032-2.3.0.1-1_centos5.2.6.18_194.3.1.el5.i686 from digium-current has depsolving problems
  --> Missing Dependency: kernel-i686 = 2.6.18-194.3.1.el5 is needed by package kmod-dahdi-linux-fwload-vpmadt032-2.3.0.1-1_centos5.2.6.18_194.3.1.el5.i686 (digium-current)
Error: Missing Dependency: kernel-i686 = 2.6.18-194.3.1.el5 is needed by package kmod-dahdi-linux-2.3.0.1-1_centos5.2.6.18_194.3.1.el5.i686 (asterisk-current)
Error: Missing Dependency: kernel-i686 = 2.6.18-194.3.1.el5 is needed by package kmod-dahdi-linux-fwload-vpmadt032-2.3.0.1-1_centos5.2.6.18_194.3.1.el5.i686 (digium-current)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
15:38:54
#yum install asterisk14
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
file:///mnt/CentOS/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/mnt/CentOS/repodata/repomd.xml'
Trying other mirror.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package asterisk14.i386 0:1.4.32-1_centos5 set to be updated
--> Processing Dependency: asterisk14-voicemail = 1.4.32-1_centos5 for package: asterisk14
--> Processing Dependency: asterisk14-core = 1.4.32-1_centos5 for package: asterisk14
...
  --> Missing Dependency: kernel-i686 = 2.6.18-194.3.1.el5 is needed by package kmod-dahdi-linux-fwload-vpmadt032-2.3.0.1-1_centos5.2.6.18_194.3.1.el5.i686 (digium-current)
kmod-dahdi-linux-2.3.0.1-1_centos5.2.6.18_194.3.1.el5.i686 from asterisk-current has depsolving problems
  --> Missing Dependency: kernel-i686 = 2.6.18-194.3.1.el5 is needed by package kmod-dahdi-linux-2.3.0.1-1_centos5.2.6.18_194.3.1.el5.i686 (asterisk-current)
Error: Missing Dependency: kernel-i686 = 2.6.18-194.3.1.el5 is needed by package kmod-dahdi-linux-2.3.0.1-1_centos5.2.6.18_194.3.1.el5.i686 (asterisk-current)
Error: Missing Dependency: kernel-i686 = 2.6.18-194.3.1.el5 is needed by package kmod-dahdi-linux-fwload-vpmadt032-2.3.0.1-1_centos5.2.6.18_194.3.1.el5.i686 (digium-current)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
15:39:08
#yum install kernel-i686
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
file:///mnt/CentOS/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/mnt/CentOS/repodata/repomd.xml'
Trying other mirror.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package kernel.i686 0:2.6.18-194.el5 set to be installed
--> Finished Dependency Resolution
Dependencies Resolved
...
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : kernel                                                        1/1
Installed:
  kernel.i686 0:2.6.18-194.el5
Complete!
15:39:43
#yum install asterisk16
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
file:///mnt/CentOS/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/mnt/CentOS/repodata/repomd.xml'
Trying other mirror.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package asterisk16.i386 0:1.6.2.8-1_centos5 set to be updated
--> Processing Dependency: asterisk16-dahdi = 1.6.2.8-1_centos5 for package: asterisk16
--> Processing Dependency: asterisk16-voicemail = 1.6.2.8-1_centos5 for package: asterisk16
...
  --> Missing Dependency: kernel-i686 = 2.6.18-194.3.1.el5 is needed by package kmod-dahdi-linux-2.3.0.1-1_centos5.2.6.18_194.3.1.el5.i686 (asterisk-current)
kmod-dahdi-linux-fwload-vpmadt032-2.3.0.1-1_centos5.2.6.18_194.3.1.el5.i686 from digium-current has depsolving problems
  --> Missing Dependency: kernel-i686 = 2.6.18-194.3.1.el5 is needed by package kmod-dahdi-linux-fwload-vpmadt032-2.3.0.1-1_centos5.2.6.18_194.3.1.el5.i686 (digium-current)
Error: Missing Dependency: kernel-i686 = 2.6.18-194.3.1.el5 is needed by package kmod-dahdi-linux-2.3.0.1-1_centos5.2.6.18_194.3.1.el5.i686 (asterisk-current)
Error: Missing Dependency: kernel-i686 = 2.6.18-194.3.1.el5 is needed by package kmod-dahdi-linux-fwload-vpmadt032-2.3.0.1-1_centos5.2.6.18_194.3.1.el5.i686 (digium-current)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
15:39:50
#ls
CentOS-Asterisk.repo  CentOS-Base.repo  CentOS-Media.repo  off
15:43:41
#ls off/

15:43:47
#rmdir off/

15:43:49
#vi CentOS-Media.repo
15:44:58
#yum list
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
base                                                          | 1.1 kB     00:00
Not using downloaded repomd.xml because it is older than what we have:
  Current   : Tue Jun  8 18:30:10 2010
  Downloaded: Fri Apr 30 06:19:58 2010
Installed Packages
GConf2.i386                              2.14.0-9.el5                installed
ImageMagick.i386                         6.2.8.0-4.el5_1.1           installed
...
yum-security.noarch                      1.1.16-14.el5.centos.1      base
yum-tmprepo.noarch                       1.1.16-14.el5.centos.1      base
yum-tsflags.noarch                       1.1.16-14.el5.centos.1      base
yum-updateonboot.noarch                  1.1.16-14.el5.centos.1      base
yum-upgrade-helper.noarch                1.1.16-14.el5.centos.1      base
yum-utils.noarch                         1.1.16-14.el5.centos.1      base
yum-verify.noarch                        1.1.16-14.el5.centos.1      base
yum-versionlock.noarch                   1.1.16-14.el5.centos.1      base
zisofs-tools.i386                        1.0.6-3.2.2                 base
zlib-devel.i386                          1.2.3-3                     base
15:45:05
#yum install zsh
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
Setting up Install Process
Package zsh-4.2.6-3.el5.i386 already installed and latest version
Nothing to do
15:45:20
#yum remove zsh
Loaded plugins: fastestmirror
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package zsh.i386 0:4.2.6-3.el5 set to be erased
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================
 Package        Arch            Version                   Repository            Size
=====================================================================================
...
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing        : zsh                                                           1/1
Removed:
  zsh.i386 0:4.2.6-3.el5
Complete!
15:45:33
#yum install zsh
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package zsh.i386 0:4.2.6-3.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================
...
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : zsh                                                           1/1
Installed:
  zsh.i386 0:4.2.6-3.el5
Complete!
15:45:59
#yum install asterisk16
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package asterisk16.i386 0:1.6.2.8-1_centos5 set to be updated
--> Processing Dependency: asterisk16-dahdi = 1.6.2.8-1_centos5 for package: asterisk16
--> Processing Dependency: asterisk16-voicemail = 1.6.2.8-1_centos5 for package: asterisk16
--> Processing Dependency: asterisk16-core = 1.6.2.8-1_centos5 for package: asterisk16
...
  --> Missing Dependency: kernel-i686 = 2.6.18-194.3.1.el5 is needed by package kmod-dahdi-linux-2.3.0.1-1_centos5.2.6.18_194.3.1.el5.i686 (asterisk-current)
kmod-dahdi-linux-fwload-vpmadt032-2.3.0.1-1_centos5.2.6.18_194.3.1.el5.i686 from digium-current has depsolving problems
  --> Missing Dependency: kernel-i686 = 2.6.18-194.3.1.el5 is needed by package kmod-dahdi-linux-fwload-vpmadt032-2.3.0.1-1_centos5.2.6.18_194.3.1.el5.i686 (digium-current)
Error: Missing Dependency: kernel-i686 = 2.6.18-194.3.1.el5 is needed by package kmod-dahdi-linux-2.3.0.1-1_centos5.2.6.18_194.3.1.el5.i686 (asterisk-current)
Error: Missing Dependency: kernel-i686 = 2.6.18-194.3.1.el5 is needed by package kmod-dahdi-linux-fwload-vpmadt032-2.3.0.1-1_centos5.2.6.18_194.3.1.el5.i686 (digium-current)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
15:46:07
#ls
CentOS-Asterisk.repo  CentOS-Base.repo  CentOS-Media.repo
15:49:41
#vi CentOS-Asterisk.repo
--- /tmp/l3-saved-4428.28851.3898	2010-06-09 19:49:47.000000000 +0600
+++ CentOS-Asterisk.repo	2010-06-09 19:49:59.000000000 +0600
@@ -8,7 +8,7 @@
 [asterisk-current]
 name=CentOS-$releasever - Asterisk - Current
 baseurl=http://packages.asterisk.org/centos/$releasever/current/$basearch/
-enabled=1
+enabled=0
 gpgcheck=0
 #gpgkey=http://packages.asterisk.org/RPM-GPG-KEY-Digium
 
@@ -22,7 +22,7 @@
 [digium-current]
 name=CentOS-$releasever - Digium - Current
 baseurl=http://packages.digium.com/centos/$releasever/current/$basearch/
-enabled=1
+enabled=0
 gpgcheck=0
 #gpgkey=http://packages.digium.com/RPM-GPG-KEY-Digium
 
15:49:59
#vi CentOS-Asterisk.repo
--- /tmp/l3-saved-4428.28268.18793	2010-06-09 19:50:46.000000000 +0600
+++ CentOS-Asterisk.repo	2010-06-09 19:50:56.000000000 +0600
@@ -8,7 +8,7 @@
 [asterisk-current]
 name=CentOS-$releasever - Asterisk - Current
 baseurl=http://packages.asterisk.org/centos/$releasever/current/$basearch/
-enabled=0
+enabled=1
 gpgcheck=0
 #gpgkey=http://packages.asterisk.org/RPM-GPG-KEY-Digium
 
@@ -22,7 +22,7 @@
 [digium-current]
 name=CentOS-$releasever - Digium - Current
 baseurl=http://packages.digium.com/centos/$releasever/current/$basearch/
-enabled=0
+enabled=1
 gpgcheck=0
 #gpgkey=http://packages.digium.com/RPM-GPG-KEY-Digium
 
15:50:56
#ls
CentOS-Asterisk.repo  CentOS-Base.repo  CentOS-Media.repo
15:50:57
#vi CentOS-Base.repo
--- /tmp/l3-saved-4428.8906.6580	2010-06-09 19:51:00.000000000 +0600
+++ CentOS-Base.repo	2010-06-09 19:52:25.000000000 +0600
@@ -2,34 +2,34 @@
 [base]
 name=CentOS - Base
 #mirrorlist=
-baseurl=file:///mnt/ file:///mnt/CentOS/
-#http://mirror.centos.org/centos/$releasever/os/$basearch/
+#baseurl=file:///mnt/ file:///mnt/CentOS/
+baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
 gpgcheck=0
 #gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
 
 ##released updates 
-#[updates]
-#name=CentOS-$releasever - Updates
-#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
-##baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
-#gpgcheck=1
-#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
+[updates]
+name=CentOS-$releasever - Updates
+mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
+#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
+gpgcheck=1
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
 #
 ##packages used/produced in the build but not released
-#[addons]
-#name=CentOS-$releasever - Addons
-#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
+[addons]
+name=CentOS-$releasever - Addons
+mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
 ##baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
-#gpgcheck=1
-#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
+gpgcheck=1
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
 #
 ##additional packages that may be useful
-#[extras]
-#name=CentOS-$releasever - Extras
-#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
+[extras]
+name=CentOS-$releasever - Extras
+mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
 ##baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
-#gpgcheck=1
-#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
+gpgcheck=1
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
 #
 ##additional packages that extend functionality of existing packages
 #[centosplus]
15:52:25
#yum install asterisk16
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: ftp.chg.ru
 * extras: centosn4-msync-dvd.centos.org
 * updates: centosr4.centos.org
addons                                                        |  951 B     00:00
addons/primary                                                |  202 B     00:00
asterisk-current                                              | 1.1 kB     00:00
base                                                          | 1.1 kB     00:00
Not using downloaded repomd.xml because it is older than what we have:
...
(9/20): kmod-dahdi-linux-fwload-vpmadt032-2.3.0.1-1_centos5.2 | 126 kB     00:01
(10/20): libopenr2-1.2.0-1_centos5.i386.rpm                   | 162 kB     00:04
(11/20): dahdi-firmware-oct6114-064-1.05.01-1_centos5.noarch. | 165 kB     00:06
(12/20): dahdi-firmware-oct6114-128-1.05.01-1_centos5.noarch. | 166 kB     00:02
(13/20): asterisk16-voicemail-1.6.2.8-1_centos5.i386.rpm      | 221 kB     00:04
(14/20): libpri-1.4.11.2-1_centos5.i386.rpm                   | 353 kB     00:09
(15/20): asterisk16-dahdi-1.6.2.8-1_centos5.i386.rpm          | 946 kB     00:19
(16/20): dahdi-firmware-tc400m-MR6.12-1_centos5.noarch.rpm    | 1.7 MB     00:41
(17/20): asterisk-sounds-core-en-gsm-1.4.15-1_centos5.noarch. | 1.7 MB     00:46
(18/20): kmod-dahdi-linux-2.3.0.1-1_centos5.2.6.18_194.3.1.el | 3.7 MB     01:33
прошло 16 минут
16:09:14
#yum install asterisk16
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: mirror.neolabs.kz
 * extras: mirror.neolabs.kz
 * updates: mirror.neolabs.kz
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package asterisk16.i386 0:1.6.2.8-1_centos5 set to be updated
--> Processing Dependency: asterisk16-dahdi = 1.6.2.8-1_centos5 for package: asterisk16
...
Install      20 Package(s)
Upgrade       0 Package(s)
Total size: 39 M
Total download size: 18 k
Is this ok [y/N]: Y
Downloading Packages:
http://mirror.centos.org/centos/5/os/i386/yum-kmod-1.1.16-14.el5.centos.1.noarch.rpm: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error Downloading Packages:
  yum-kmod-1.1.16-14.el5.centos.1.noarch: failure: yum-kmod-1.1.16-14.el5.centos.1.noarch.rpm from base: [Errno 256] No more mirrors to try.
прошло 12 минут
16:21:30
#yum install asterisk16
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: centosg4.centos.org
 * extras: centosg3.centos.org
 * updates: centosq2-msync-dvd.centos.org
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package asterisk16.i386 0:1.6.2.8-1_centos5 set to be updated
--> Processing Dependency: asterisk16-dahdi = 1.6.2.8-1_centos5 for package: asterisk16
...
Install      20 Package(s)
Upgrade       0 Package(s)
Total size: 39 M
Total download size: 18 k
Is this ok [y/N]: Y
Downloading Packages:
http://mirror.centos.org/centos/5/os/i386/yum-kmod-1.1.16-14.el5.centos.1.noarch.rpm: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error Downloading Packages:
  yum-kmod-1.1.16-14.el5.centos.1.noarch: failure: yum-kmod-1.1.16-14.el5.centos.1.noarch.rpm from base: [Errno 256] No more mirrors to try.
16:23:06
#ls
CentOS-Asterisk.repo  CentOS-Base.repo  CentOS-Media.repo
16:23:11
#vi CentOS-Base.repo
16:24:36
#install asterisk16
Loaded plugins: fastestmirror, kmod
Loading mirror speeds from cached hostfile
 * addons: mirror.neolabs.kz
 * extras: centosj-msync-dvd.centos.org
 * updates: centosy3.centos.org
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package asterisk16.i386 0:1.6.2.8-1_centos5 set to be updated
--> Processing Dependency: asterisk16-dahdi = 1.6.2.8-1_centos5 for package: asterisk16
...
  dahdi-firmware-tc400m.noarch 0:MR6.12-1_centos5
  dahdi-linux.i386 0:2.3.0.1-1_centos5
  kernel.i686 0:2.6.18-194.3.1.el5
  kmod-dahdi-linux.i686 0:2.3.0.1-1_centos5.2.6.18_194.3.1.el5
  kmod-dahdi-linux-fwload-vpmadt032.i686 0:2.3.0.1-1_centos5.2.6.18_194.3.1.el5
  libopenr2.i386 0:1.2.0-1_centos5
  libpri.i386 0:1.4.11.2-1_centos5
  libss7.i386 0:1.0.2-1_centos5
  libtonezone.i386 0:2.3.0-1_centos5
Complete!
16:25:36
#chkconfig --list | grep aster

16:26:49
#chkconfig --list | less
16:26:55
#rpm -ql asterisk16
asterisk16            asterisk16-dahdi      asterisk16-voicemail
asterisk16-core       asterisk16-doc
16:26:55
#rpm -ql asterisk16 | less
16:27:10
#rpm -ql asterisk16-core | less
16:27:21
#chkconfig --add asterisk16
error reading information on service asterisk16: No such file or directory
16:27:30
#ls /etc/init.d/
acpid               firstboot   krb524          ntpd             squid
anacron             functions   kudzu           oddjobd          sshd
apmd                gpm         libvirtd        pand             super-puper-mega
asterisk            haldaemon   lvm2-monitor    pcscd            syslog
atd                 halt        mcstrans        portmap          tcsd
auditd              hidd        mdmonitor       psacct           vncserver
autofs              hplip       mdmpd           rawdevices       wdaemon
avahi-daemon        hsqldb      messagebus      rdisc            winbind
avahi-dnsconfd      httpd       microcode_ctl   readahead_early  wpa_supplicant
bluetooth           ibmasm      multipathd      readahead_later  xend
capi                ip6tables   netconsole      restorecond      xendomains
conman              iptables    netfs           rpcgssd          xfs
cpuspeed            irda        netplugd        rpcidmapd        xinetd
crond               irqbalance  network         rpcsvcgssd       ypbind
cups                iscsi       NetworkManager  saslauthd        yum-updatesd
cups-config-daemon  iscsid      nfs             sendmail
dnsmasq             isdn        nfslock         single
dund                killall     nscd            smartd
16:27:36
#chkconfig --add asterisk

16:27:40
#chkconfig --list asterisk
asterisk        0:off   1:off   2:on    3:on    4:on    5:on    6:off
16:29:16
#/etc/init.d/asterisk start
Starting asterisk:                                         [  OK  ]
16:29:21
#cd /etc/asterisk/

16:30:32
#ls

16:30:33
#ls

16:30:35
#rpm -qa | grep aster
asterisk16-voicemail-1.6.2.8-1_centos5
asterisk16-dahdi-1.6.2.8-1_centos5
asterisk16-1.6.2.8-1_centos5
asterisk16-core-1.6.2.8-1_centos5
asterisk-sounds-core-en-gsm-1.4.15-1_centos5
asterisk16-doc-1.6.2.8-1_centos5
16:30:44
#rpm -ql asterisk16-doc-1.6.2.8-1_centos5 | less
16:31:00
#rpm -ql asterisk16-core | less
16:31:22
#rpm -ql asterisk16-doc-1.6.2.8-1_centos5 | less
16:31:58
#yum list dhcpd
Loaded plugins: fastestmirror, kmod
Loading mirror speeds from cached hostfile
 * addons: mirror.yandex.ru
 * extras: centosr4-msync-dvd.centos.org
 * updates: centosy3.centos.org
Error: No matching Packages to list
16:34:40
#yum list | grep dhcpd

16:34:59
#yum list | grep dhcp
dhcpv6-client.i386                      1.0.10-18.el5           installed
dhcp.i386                               12:3.0.5-23.el5         base
dhcp-devel.i386                         12:3.0.5-23.el5         base
dhcpv6.i386                             1.0.10-18.el5           base
libdhcp.i386                            1.20-10.el5             base
libdhcp-devel.i386                      1.20-10.el5             base
libdhcp4client.i386                     12:3.0.5-23.el5         base
libdhcp4client-devel.i386               12:3.0.5-23.el5         base
libdhcp6client.i386                     1.0.10-18.el5           base
libdhcp6client-devel.i386               1.0.10-18.el5           base
sblim-cmpi-dhcp.i386                    1:1.0-40.el5            base
sblim-cmpi-dhcp-devel.i386              1:1.0-40.el5            base
sblim-cmpi-dhcp-test.i386               1:1.0-40.el5            base
udhcp.i386                              0.9.9-1_centos5         asterisk-current
16:35:12
#yum install dhcp.i386
Loaded plugins: fastestmirror, kmod
Loading mirror speeds from cached hostfile
 * addons: centosg4.centos.org
 * extras: centosr4-msync-dvd.centos.org
 * updates: centosr4.centos.org
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package dhcp.i386 12:3.0.5-23.el5 set to be updated
--> Finished Dependency Resolution
...
=====================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)
Total download size: 866 k
Is this ok [y/N]: Y
Downloading Packages:
http://mirror.centos.org/centos/5/os/i386/dhcp-3.0.5-23.el5.i386.rpm: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error Downloading Packages:
  12:dhcp-3.0.5-23.el5.i386: failure: dhcp-3.0.5-23.el5.i386.rpm from base: [Errno 256] No more mirrors to try.
16:36:10
#vi /etc/
16:36:10
#vi /etc/yum
16:36:10
#vi /etc/yum.repos.d/CentOS-
16:36:10
#vi /etc/yum.repos.d/CentOS-Base.repo
--- /tmp/l3-saved-4428.5683.14209	2010-06-09 20:38:18.000000000 +0600
+++ /etc/yum.repos.d/CentOS-Base.repo	2010-06-09 20:38:30.000000000 +0600
@@ -3,7 +3,7 @@
 name=CentOS - Base
 #mirrorlist=
 #baseurl=file:///mnt/ file:///mnt/CentOS/
-baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
+baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/CentOS/
 gpgcheck=0
 #gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
 
16:39:31
#rpm -ql dhcp | less
16:39:41
#vi /etc/dhcpd.conf
16:39:54
#~
a2ps-4.13b                          librpcsecgss
acl-2.2.39                          librsvg2-2.16.1
alacarte-0.10.0                     libsilc-1.0.2
alsa-lib-1.0.17                     libSM-1.0.1
alsa-utils-1.0.17                   libsmbclient-3.0.33
amtu-1.0.6                          libsoup-2.2.98
anacron-2.3                         libsysfs-2.0.0
antlr-2.7.6                         libtheora-1.0alpha7
apmd-3.2.2                          libtiff-3.8.2
apr-1.2.7                           libtool-ltdl-1.5.22
...
libjpeg-6b                          ypbind-1.19
libmusicbrainz-2.1.1                yp-tools-2.9
libnfsidmap                         yum-3.2.22
libnotify-0.4.2                     yum-metadata-parser-1.1.2
libogg-1.1.3                        yum-updatesd-0.9
liboil-0.3.8                        zip-2.31
libpcap-0.9.4                       zlib-1.2.3
libpng-1.2.10                       zsh-4.2.6
libpurple-2.6.6                     zsh-html-4.2.6
libraw1394-1.3.0
16:39:57
#ls /usr/share/doc/dhcp
dhcp-3.0.5/           dhcpv6-client-1.0.10/
16:39:57
#ls /usr/share/doc/dhcp
dhcp-3.0.5/           dhcpv6-client-1.0.10/
16:39:57
#ls /usr/share/doc/dhcp-3.0.5/
api+protocol                          IANA-arp-parameters  rfc2131.txt
dhcpd.conf.sample                     ja_JP.eucJP          rfc2132.txt
draft-ietf-dhc-authentication-14.txt  README               rfc2485.txt
draft-ietf-dhc-dhcp-dns-12.txt        RELNOTES             rfc2489.txt
draft-ietf-dhc-failover-07.txt        rfc1542.txt          rfc951.txt
16:40:01
#less /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample
16:40:33
#cp /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample /etc/dhcp
dhcp6c.conf  dhcpd.conf
16:40:42
#vi /etc/dhcpd.conf
--- /tmp/l3-saved-4428.32232.11481	2010-06-09 20:40:43.000000000 +0600
+++ /etc/dhcpd.conf	2010-06-09 20:42:19.000000000 +0600
@@ -1,15 +1,15 @@
 ddns-update-style interim;
 ignore client-updates;
 
-subnet 192.168.0.0 netmask 255.255.255.0 {
+subnet 192.168.15.0 netmask 255.255.255.0 {
 
 # --- default gateway
-	option routers			192.168.0.1;
+	option routers			192.168.15.254;
 	option subnet-mask		255.255.255.0;
 
-	option nis-domain		"domain.org";
-	option domain-name		"domain.org";
-	option domain-name-servers	192.168.1.1;
+	option nis-domain		"unix.kaz";
+	option domain-name		"unix.kaz";
+	option domain-name-servers	192.168.15.254;
 
 	option time-offset		-18000;	# Eastern Standard Time
 #	option ntp-servers		192.168.1.1;
@@ -18,14 +18,14 @@
 # -- you understand Netbios very well
 #	option netbios-node-type 2;
 
-	range dynamic-bootp 192.168.0.128 192.168.0.254;
+	range dynamic-bootp 192.168.0.128 192.168.0.200;
 	default-lease-time 21600;
 	max-lease-time 43200;
 
 	# we want the nameserver to appear at a fixed address
-	host ns {
-		next-server marvin.redhat.com;
-		hardware ethernet 12:34:56:78:AB:CD;
-		fixed-address 207.175.42.254;
-	}
+#	host ns {
+#		next-server marvin.redhat.com;
+#		hardware ethernet 12:34:56:78:AB:CD;
+#		fixed-address 207.175.42.254;
+#	}
 }
16:42:19
#/etc/init.d/dhcpd restart
Starting dhcpd:                                            [FAILED]
16:42:27
#/etc/init.d/dhcpd restart
Starting dhcpd:                                            [FAILED]
16:42:29
#less /var/log/messages
16:42:52
#/etc/init.d/dhcpd restart
Starting dhcpd:                                            [  OK  ]
16:42:54
#tail /var/lib/dhc
dhclient/ dhcpd/    dhcpv6/
16:42:54
#tail /var/lib/dhcp
dhcpd/  dhcpv6/
16:42:54
#tail /var/lib/dhcpd/dhcpd.leases
dhcpd.leases   dhcpd.leases~
16:42:54
#tail /var/lib/dhcpd/dhcpd.leases
# All times in this file are in UTC (GMT), not your local timezone.   This is
# not a bug, so please don't ask about it.   There is no portable way to
# store leases in the local timezone, so please don't request this as a
# feature.   If this is inconvenient or confusing to you, we sincerely
# apologize.   Seriously, though - don't ask.
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-V3.0.5-RedHat
16:43:35
#tail -f /var/lib/dhcpd/dhcpd.leases
# All times in this file are in UTC (GMT), not your local timezone.   This is
# not a bug, so please don't ask about it.   There is no portable way to
# store leases in the local timezone, so please don't request this as a
# feature.   If this is inconvenient or confusing to you, we sincerely
# apologize.   Seriously, though - don't ask.
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-V3.0.5-RedHat
lease 192.168.15.200 {
  starts 3 2010/06/09 14:45:00;
  ends 3 2010/06/09 20:45:00;
...
}
lease 192.168.15.200 {
  starts 3 2010/06/09 14:45:04;
  ends 3 2010/06/09 20:45:04;
  binding state active;
  next binding state free;
  hardware ethernet 00:0e:08:d8:7c:de;
  uid "\001\000\016\010\330|\336";
  client-hostname "SipuraSPA";
}
прошло 22 минуты
17:05:59
#vi /etc/asterisk/sip.conf
--- /dev/null	2010-06-09 19:29:54.244249786 +0600
+++ /etc/asterisk/sip.conf	2010-06-09 21:07:11.000000000 +0600
@@ -0,0 +1,11 @@
+[general]
+ontext=default
+bindport=5060
+
+[1xxx]
+type=friend
+context=101
+host=dynamic
+secret=1234
+
+
17:07:11
#/etc/init.d/asterisk restart
Stopping safe_asterisk:                                    [  OK  ]
Shutting down asterisk:                                    [  OK  ]
Starting asterisk:                                         [  OK  ]
17:07:17
#asterisk -rxxx
No such command 'xx' (type 'core show help xx' for other possible commands)
17:07:22
#asterisk -rvvv
Asterisk 1.6.2.8, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.8 currently running on linux4 (pid = 8043)
Verbosity is at least 3
linux4*CLI> sip show peers
...
version         warranty
linux4*CLI> core show
application     applications    calls           channel         channels
channeltype     channeltypes    codec           codecs          config
file            function        functions       help            hint
hints           image           license         profile         settings
switches        sysinfo         taskprocessors  threads         uptime
version         warranty
linux4*CLI> quit
Executing last minute cleanups
17:07:45
#less /var/log/messages
17:07:58
#Jun 9 20:42:29 linux4 dhcpd: If you intend to request help from the dhcp-server@isc.
cdr-csv/    cdr-custom/ event_log   queue_log
17:07:58
#less /var/log/asterisk/event_log
17:08:05
#less /var/log/asterisk/queue_log
17:08:09
#less /var/log/asterisk/
17:08:09
#less /var/log/asterisk/cdr-c
17:08:20
#ls /etc/
a2ps.cfg               gcrypt                mke2fs.conf       resolv.conf
a2ps-site.cfg          gdm                   modprobe.conf     rhgb
acpi                   ghostscript           modprobe.conf~    rmt
adjtime                gimp                  modprobe.d        rpc
aliases                gnome-vfs-2.0         motd              rpm
aliases.db             gnome-vfs-mime-magic  mtab              rwtab
alsa                   gpm-root.conf         mtools.conf       rwtab.d
alternatives           gre.d                 multipath.conf    samba
anacrontab             group                 Muttrc            sane.d
asound.state           group-                Muttrc.local      sasl2
...
esd.conf               mail                  rc6.d             yum
ethers                 mailcap               rc.d              yum.conf
exports                mail.rc               rc.local          yum.repos.d
fb.modes               makedev.d             rc.sysinit        zlogin
filesystems            man.config            readahead.d       zlogout
firmware               maven                 reader.conf       zprofile
fonts                  mc                    reader.conf.d     zshenv
foomatic               mgetty+sendfax        redhat-lsb        zshrc
fstab                  mime.types            redhat-release
gconf                  minicom.users         request-key.conf
17:08:24
#rpm -ql asterisk |less
17:08:47
#rpm -ql asterisk |less
17:08:47
#rpm -ql asterisk16 |less
17:08:54
#yum list | grep asterisk
http://mirror.centos.org/centos/5/os/i386/CentOS/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
asterisk-sounds-core-en-gsm.noarch      1.4.15-1_centos5        installed
asterisk16.i386                         1.6.2.8-1_centos5       installed
asterisk16-core.i386                    1.6.2.8-1_centos5       installed
asterisk16-dahdi.i386                   1.6.2.8-1_centos5       installed
asterisk16-doc.i386                     1.6.2.8-1_centos5       installed
asterisk16-voicemail.i386               1.6.2.8-1_centos5       installed
asterisk-addons.i386                    1.4.7-2_centos5         asterisk-current
asterisk-addons-core.i386               1.4.7-2_centos5         asterisk-current
...
mISDN.i686                              1.1.7.2-3_centos5       asterisk-current
mISDN-devel.i386                        1.1.7.2-2_centos5       asterisk-current
mISDN-devel.i686                        1.1.7.2-3_centos5       asterisk-current
                                                                asterisk-current
mISDNuser.i386                          1.1.7.2-1_centos5       asterisk-current
mISDNuser-devel.i386                    1.1.7.2-1_centos5       asterisk-current
                                                                asterisk-current
                                                                asterisk-current
udhcp.i386                              0.9.9-1_centos5         asterisk-current
yum-repos-asterisk.noarch               1.0.0-1_centos5         asterisk-current
17:09:16
#yum list | grep asterisk | less
17:10:43
#asterisk -rvvv
Asterisk 1.6.2.8, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.8 currently running on linux4 (pid = 8043)
Verbosity is at least 3
    -- Remote UNIX connection
linux4*CLI> reload
No such command 'reload' (type 'core show help reload' for other possible commands)
linux4*CLI> corre reload
No such command 'corre reload' (type 'core show help corre reload' for other possible commands)
linux4*CLI> core reload
No such command 'core reload' (type 'core show help core reload' for other possible commands)
linux4*CLI> sip reload
No such command 'sip reload' (type 'core show help sip reload' for other possible commands)
linux4*CLI> quit
Executing last minute cleanups
17:12:17
#yum remove asterisk16
Loaded plugins: fastestmirror, kmod
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package asterisk16.i386 0:1.6.2.8-1_centos5 set to be erased
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================
 Package            Arch         Version                     Repository         Size
=====================================================================================
...
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing        : asterisk16                                                    1/1
Removed:
  asterisk16.i386 0:1.6.2.8-1_centos5
Complete!
17:12:36
#yum remove asterisk14
Loaded plugins: fastestmirror, kmod
Setting up Remove Process
No Match for argument: asterisk14
Loading mirror speeds from cached hostfile
 * addons: centosv4-msync-dvd.centos.org
 * extras: mirror.yandex.ru
 * updates: centosr4.centos.org
http://mirror.centos.org/centos/5/os/i386/CentOS/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Package(s) asterisk14 available, but not installed.
No Packages marked for removal
17:12:46
#vi /etc/yum
17:12:46
#vi /etc/yum.repos.d/CentOS-
17:12:46
#vi /etc/yum.repos.d/CentOS-Base.repo
--- /tmp/l3-saved-4428.9298.13779	2010-06-09 21:13:08.000000000 +0600
+++ /etc/yum.repos.d/CentOS-Base.repo	2010-06-09 21:13:14.000000000 +0600
@@ -3,7 +3,7 @@
 name=CentOS - Base
 #mirrorlist=
 #baseurl=file:///mnt/ file:///mnt/CentOS/
-baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/CentOS/
+baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
 gpgcheck=0
 #gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
 
17:13:43
#vi /etc/yum.repos.d/CentOS-Base.repo
--- /tmp/l3-saved-4428.8504.9683	2010-06-09 21:13:48.000000000 +0600
+++ /etc/yum.repos.d/CentOS-Base.repo	2010-06-09 21:13:52.000000000 +0600
@@ -3,7 +3,7 @@
 name=CentOS - Base
 #mirrorlist=
 #baseurl=file:///mnt/ file:///mnt/CentOS/
-baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/CentOS/
+baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
 gpgcheck=0
 #gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
 
17:14:06
#yum remove asterisk16.*
Loaded plugins: fastestmirror, kmod
Setting up Remove Process
No Match for argument: asterisk16.*
Loading mirror speeds from cached hostfile
 * addons: centosv4-msync-dvd.centos.org
 * extras: centosj-msync-dvd.centos.org
 * updates: centoso4-msync-dvd.centos.org
Package(s) asterisk16.* available, but not installed.
No Packages marked for removal
17:14:24
#yum remove asterisk16*
Loaded plugins: fastestmirror, kmod
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package asterisk16-core.i386 0:1.6.2.8-1_centos5 set to be erased
---> Package asterisk16-dahdi.i386 0:1.6.2.8-1_centos5 set to be erased
---> Package asterisk16-doc.i386 0:1.6.2.8-1_centos5 set to be erased
---> Package asterisk16-voicemail.i386 0:1.6.2.8-1_centos5 set to be erased
--> Finished Dependency Resolution
Dependencies Resolved
...
  Erasing        : asterisk16-dahdi                                              1/4
  Erasing        : asterisk16-voicemail                                          2/4
  Erasing        : asterisk16-core                                               3/4
  Erasing        : asterisk16-doc                                                4/4
Removed:
  asterisk16-core.i386 0:1.6.2.8-1_centos5
  asterisk16-dahdi.i386 0:1.6.2.8-1_centos5
  asterisk16-doc.i386 0:1.6.2.8-1_centos5
  asterisk16-voicemail.i386 0:1.6.2.8-1_centos5
Complete!
17:14:37
#yum install asterisk14
Loaded plugins: fastestmirror, kmod
Loading mirror speeds from cached hostfile
 * addons: mirror.yandex.ru
 * extras: mirror.yandex.ru
 * updates: mirror.yandex.ru
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package asterisk14.i386 0:1.4.32-1_centos5 set to be updated
--> Processing Dependency: asterisk14-voicemail = 1.4.32-1_centos5 for package: asterisk14
...
Install       6 Package(s)
Upgrade       0 Package(s)
Total download size: 17 M
Is this ok [y/N]: Y
Downloading Packages:
(1/6): asterisk14-1.4.32-1_centos5.i386.rpm                   | 3.5 kB     00:00
(2/6): asterisk14-doc-1.4.32-1_centos5.i386.rpm               | 9.9 kB     00:00
(3/6): asterisk14-voicemail-1.4.32-1_centos5.i386.rpm         | 235 kB     00:04
(4/6): asterisk14-dahdi-1.4.32-1_centos5.i386.rpm             | 751 kB     00:18
(5/6): asterisk-sounds-core-en-ulaw-1.4.15-1_centos5.noarch.r | 7.2 MB     02:55
17:21:46
#/etc/init.d/
acpid               haldaemon           messagebus          rpcgssd
anacron             halt                microcode_ctl       rpcidmapd
apmd                hidd                multipathd          rpcsvcgssd
atd                 hplip               netconsole          saslauthd
auditd              hsqldb              netfs               sendmail
autofs              httpd               netplugd            single
avahi-daemon        ibmasm              network             smartd
avahi-dnsconfd      ip6tables           NetworkManager      squid
bluetooth           iptables            nfs                 sshd
capi                irda                nfslock             super-puper-mega
conman              irqbalance          nscd                syslog
cpuspeed            iscsi               ntpd                tcsd
crond               iscsid              oddjobd             vncserver
cups                isdn                pand                wdaemon
cups-config-daemon  killall             pcscd               winbind
17:21:46
#/etc/init.d/
acpid               haldaemon           messagebus          rpcgssd
anacron             halt                microcode_ctl       rpcidmapd
apmd                hidd                multipathd          rpcsvcgssd
atd                 hplip               netconsole          saslauthd
auditd              hsqldb              netfs               sendmail
autofs              httpd               netplugd            single
avahi-daemon        ibmasm              network             smartd
avahi-dnsconfd      ip6tables           NetworkManager      squid
bluetooth           iptables            nfs                 sshd
capi                irda                nfslock             super-puper-mega
conman              irqbalance          nscd                syslog
cpuspeed            iscsi               ntpd                tcsd
crond               iscsid              oddjobd             vncserver
cups                isdn                pand                wdaemon
cups-config-daemon  killall             pcscd               winbind
17:21:46
#rpm -ql asterisk | less
17:22:28
#rpm -ql asterisk14 | less

Статистика

Время первой команды журнала15:38:05 2010- 6- 9
Время последней команды журнала17:22:28 2010- 6- 9
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %17.82
Процент синтаксически неверно набранных команд, % 0.00
Суммарное время работы с терминалом *, час 1.74
Количество командных строк в единицу времени, команда/мин 0.97
Частота использования команд
yum23|===================| 19.17%
less20|================| 16.67%
vi18|===============| 15.00%
rpm13|==========| 10.83%
ls13|==========| 10.83%
grep6|=====| 5.00%
chkconfig5|====| 4.17%
tail5|====| 4.17%
asterisk3|==| 2.50%
/etc/init.d/dhcpd3|==| 2.50%
/etc/init.d/asterisk2|=| 1.67%
/etc/init.d/2|=| 1.67%
cp1|| 0.83%
install1|| 0.83%
cd1|| 0.83%
rmdir1|| 0.83%
~1|| 0.83%
Jun1|| 0.83%
mv1|| 0.83%
____
*) Интервалы неактивности длительностью 30 минут и более не учитываются

Справка

Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
  1. В журнал автоматически попадают все команды, данные в любом терминале системы.

  2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

  3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
    $ l s-l
    bash: l: command not found
    

  4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
    $ test 5 -lt 4
    Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

  5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
    $ find / -name abc
    find: /home/devi-orig/.gnome2: Keine Berechtigung
    find: /home/devi-orig/.gnome2_private: Keine Berechtigung
    find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung
    find: /home/devi-orig/.metacity: Keine Berechtigung
    find: /home/devi-orig/.inkscape: Keine Berechtigung
    ^C
    

  6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
    # id
    uid=0(root) gid=0(root) Gruppen=0(root)
    

  7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
    $ vi ~/.bashrc
    2a3,5
    >    if [ -f /usr/local/etc/bash_completion ]; then
    >         . /usr/local/etc/bash_completion
    >        fi
    

  8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
    $ patch ~/.bashrc
    В данном случае изменения применяются к файлу ~/.bashrc

  9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

    Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

  10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

  11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

  12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

  13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

  14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

    $ whoami
    
    user
    
    $ #^ Интересно, кто я?
    
    в журнале это будет выглядеть так:
    $ whoami
    
    user
    
    Интересно, кто я?

  15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

    $ whoami
    
    user
    
    $ cat > /dev/null #^ Интересно, кто я?
    
    Программа whoami выводит имя пользователя, под которым 
    мы зарегистрировались в системе.
    -
    Она не может ответить на вопрос о нашем назначении 
    в этом мире.
    
    В журнале это будет выглядеть так:
    $ whoami
    user
    
    Интересно, кто я?
    Программа whoami выводит имя пользователя, под которым
    мы зарегистрировались в системе.

    Она не может ответить на вопрос о нашем назначении
    в этом мире.
    Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

  16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

  17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
  18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
  19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
    1
        2
    3   
        4
    
    Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

О программе

LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008

$Id$