/l3/users/viktor-dremkov/redhat/linux4.unix.bas/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 :41 :42 :43 :44 |
|
#mv off/* .
|
#vi CentOS-
|
#vi CentOS-Base.repo
|
#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. |
#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. |
#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! |
#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. |
#ls
CentOS-Asterisk.repo CentOS-Base.repo CentOS-Media.repo off |
#ls off/
|
#rmdir off/
|
#vi CentOS-Media.repo
|
#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 |
#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 |
#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! |
#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! |
#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. |
#ls
CentOS-Asterisk.repo CentOS-Base.repo CentOS-Media.repo |
#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 |
#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 |
#ls
CentOS-Asterisk.repo CentOS-Base.repo CentOS-Media.repo |
#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] |
#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 |
#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. |
#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. |
#ls
CentOS-Asterisk.repo CentOS-Base.repo CentOS-Media.repo |
#vi CentOS-Base.repo
|
#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! |
#chkconfig --list | grep aster
|
#chkconfig --list | less
|
#rpm -ql asterisk16
asterisk16 asterisk16-dahdi asterisk16-voicemail asterisk16-core asterisk16-doc |
#rpm -ql asterisk16 | less
|
#rpm -ql asterisk16-core | less
|
#chkconfig --add asterisk16
error reading information on service asterisk16: No such file or directory |
#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 |
#chkconfig --add asterisk
|
#chkconfig --list asterisk
asterisk 0:off 1:off 2:on 3:on 4:on 5:on 6:off |
#/etc/init.d/asterisk start
Starting asterisk: [ OK ] |
#cd /etc/asterisk/
|
#ls
|
#ls
|
#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 |
#rpm -ql asterisk16-doc-1.6.2.8-1_centos5 | less
|
#rpm -ql asterisk16-core | less
|
#rpm -ql asterisk16-doc-1.6.2.8-1_centos5 | less
|
#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 |
#yum list | grep dhcpd
|
#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 |
#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. |
#vi /etc/
|
#vi /etc/yum
|
#vi /etc/yum.repos.d/CentOS-
|
#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 |
#rpm -ql dhcp | less
|
#vi /etc/dhcpd.conf
|
#~
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 |
#ls /usr/share/doc/dhcp
dhcp-3.0.5/ dhcpv6-client-1.0.10/ |
#ls /usr/share/doc/dhcp
dhcp-3.0.5/ dhcpv6-client-1.0.10/ |
#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 |
#less /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample
|
#cp /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample /etc/dhcp
dhcp6c.conf dhcpd.conf |
#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; +# } } |
#/etc/init.d/dhcpd restart
Starting dhcpd: [FAILED] |
#/etc/init.d/dhcpd restart
Starting dhcpd: [FAILED] |
#less /var/log/messages
|
#/etc/init.d/dhcpd restart
Starting dhcpd: [ OK ] |
#tail /var/lib/dhc
dhclient/ dhcpd/ dhcpv6/ |
#tail /var/lib/dhcp
dhcpd/ dhcpv6/ |
#tail /var/lib/dhcpd/dhcpd.leases
dhcpd.leases dhcpd.leases~ |
#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 |
#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"; } |
#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 + + |
#/etc/init.d/asterisk restart
Stopping safe_asterisk: [ OK ] Shutting down asterisk: [ OK ] Starting asterisk: [ OK ] |
#asterisk -rxxx
No such command 'xx' (type 'core show help xx' for other possible commands) |
#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 |
#less /var/log/messages
|
#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 |
#less /var/log/asterisk/event_log
|
#less /var/log/asterisk/queue_log
|
#less /var/log/asterisk/
|
#less /var/log/asterisk/cdr-c
|
#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 |
#rpm -ql asterisk |less
|
#rpm -ql asterisk |less
|
#rpm -ql asterisk16 |less
|
#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 |
#yum list | grep asterisk | less
|
#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 |
#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! |
#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 |
#vi /etc/yum
|
#vi /etc/yum.repos.d/CentOS-
|
#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 |
#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 |
#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 |
#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! |
#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 |
#/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 |
#/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 |
#rpm -ql asterisk | less
|
#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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ 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 |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008