/l3/users/Antifeyev/nt-voip/linux1.unix.nt.unix.nt/root :1 :2 :3 :4 :5 :6 |
|
#/etc/init.d/console-cyrillic restart
Setting up Cyrillic on the console... cyr: This command may be executed only in Linux console. cyr: Try `cyr --help for more information. |
#/etc/init.d/console-cyrillic restart
Setting up Cyrillic on the console... cyr: This command may be executed only in Linux console. cyr: Try `cyr --help for more information. |
#/etc/init.d/console-cyrillic
Usage: /etc/init.d/console-cyrillic {start|reload|restart|force-reload|stop} |
#/etc/init.d/console-cyrillic reload
Setting up Cyrillic on the console... cyr: This command may be executed only in Linux console. cyr: Try `cyr --help for more information. |
#/etc/init.d/console-cyrillic start
Setting up Cyrillic on the console... cyr: This command may be executed only in Linux console. cyr: Try `cyr --help for more information. |
#/etc/init.d/console-cyrillic stop
|
#/etc/init.d/console-cyrillic start
Setting up Cyrillic on the console... cyr: This command may be executed only in Linux console. cyr: Try `cyr --help for more information. |
#/etc/init.d/console-cyrillic force-reload
Setting up Cyrillic on the console... cyr: This command may be executed only in Linux console. cyr: Try `cyr --help for more information. |
#vim /etc/network/interfaces
|
#~
Making Vim Run |index.txt| alphabetical index of all commands |help-tags| all the tags you can jump to (index of tags) |howto.txt| how to do the most common editing tasks |tips.txt| various tips on using Vim |message.txt| (error) messages and explanations |quotes.txt| remarks from users of Vim |todo.txt| known problems and desired extensions |develop.txt| development of Vim |debug.txt| debugging Vim itself ... It is possible to further specify the context: Gener07 subjects more than one file *help-context* usr_09.txt| Using the GUI |tutor| 30 minutes training course for beginners 36,1 8%¸Ð·Ñ BASIC:ge.txt| commands for using multiple tab pages |if_tcl.txt| Tcl interface |arabic.txt| Arabic language support and editing |farsi.txt| Farsi (Persian) editing |hebrew Hebrew language support and editing |
#~
|
#~
|
#/etc/init.d/console-cyrillic reload
Setting up Cyrillic on the console... cyr: This command may be executed only in Linux console. cyr: Try `cyr --help for more information. |
#ssh-keygen -R 192.168.15.254
/root/.ssh/known_hosts updated. Original contents retained as /root/.ssh/known_hosts.old |
#reload
bash: reload: команда не найдена |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:0f:fe:7e:b9:51 inet addr:192.168.101.1 Bcast:192.168.101.255 Mask:255.255.255.0 inet6 addr: fe80::20f:feff:fe7e:b951/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:60 errors:0 dropped:0 overruns:0 frame:0 TX packets:49 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:7780 (7.5 KiB) TX bytes:3846 (3.7 KiB) Memory:f0180000-f01a0000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:25 errors:0 dropped:0 overruns:0 frame:0 TX packets:25 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2116 (2.0 KiB) TX bytes:2116 (2.0 KiB) |
#date
Пнд Окт 25 15:14:26 EEST 2010 |
#vi /etc/bash.bashrc
--- /tmp/l3-saved-3072.21415.11525 2010-10-25 15:14:53.000000000 +0300 +++ /etc/bash.bashrc 2010-10-25 15:15:13.000000000 +0300 @@ -28,7 +28,7 @@ # ;; #esac -enable bash completion in interactive shells +#enable bash completion in interactive shells if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi |
#mc
|
#ping 192.168.101.2
PING 192.168.101.2 (192.168.101.2) 56(84) bytes of data. 64 bytes from 192.168.101.2: icmp_seq=1 ttl=128 time=2.70 ms 64 bytes from 192.168.101.2: icmp_seq=2 ttl=128 time=1.46 ms 64 bytes from 192.168.101.2: icmp_seq=3 ttl=128 time=1.49 ms 64 bytes from 192.168.101.2: icmp_seq=4 ttl=128 time=1.09 ms 64 bytes from 192.168.101.2: icmp_seq=5 ttl=128 time=0.652 ms 64 bytes from 192.168.101.2: icmp_seq=6 ttl=128 time=0.677 ms 64 bytes from 192.168.101.2: icmp_seq=7 ttl=128 time=0.754 ms 64 bytes from 192.168.101.2: icmp_seq=8 ttl=128 time=0.791 ms 64 bytes from 192.168.101.2: icmp_seq=9 ttl=128 time=0.854 ms ... 64 bytes from 192.168.101.2: icmp_seq=17 ttl=128 time=1.29 ms 64 bytes from 192.168.101.2: icmp_seq=18 ttl=128 time=1.34 ms 64 bytes from 192.168.101.2: icmp_seq=19 ttl=128 time=1.41 ms 64 bytes from 192.168.101.2: icmp_seq=20 ttl=128 time=1.49 ms 64 bytes from 192.168.101.2: icmp_seq=21 ttl=128 time=1.53 ms 64 bytes from 192.168.101.2: icmp_seq=22 ttl=128 time=0.586 ms ^C --- 192.168.101.2 ping statistics --- 22 packets transmitted, 22 received, 0% packet loss, time 21060ms rtt min/avg/max/mdev = 0.586/1.165/2.702/0.445 ms |
#ping 100.35.1
PING 100.35.1 (100.35.0.1) 56(84) bytes of data. ^C --- 100.35.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1012ms |
#ping 10.0.35.1
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data. From 192.168.101.1 icmp_seq=1 Destination Host Unreachable From 192.168.101.1 icmp_seq=2 Destination Host Unreachable From 192.168.101.1 icmp_seq=3 Destination Host Unreachable From 192.168.101.1 icmp_seq=6 Destination Host Unreachable From 192.168.101.1 icmp_seq=7 Destination Host Unreachable ^C --- 10.0.35.1 ping statistics --- 8 packets transmitted, 0 received, +5 errors, 100% packet loss, time 7021ms , pipe 3 |
#ping 10.0.35.1
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data. From 192.168.101.1 icmp_seq=1 Destination Host Unreachable From 192.168.101.1 icmp_seq=2 Destination Host Unreachable From 192.168.101.1 icmp_seq=3 Destination Host Unreachable ^C --- 10.0.35.1 ping statistics --- 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2012ms , pipe 3 |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.101.0 * 255.255.255.0 U 0 0 0 eth0 rodefault 192.168.101.254 0.0.0.0 UG 0 0 0 eth0 |
#ping 192.168.101.2
PING 192.168.101.2 (192.168.101.2) 56(84) bytes of data. 64 bytes from 192.168.101.2: icmp_seq=1 ttl=128 time=3.54 ms 64 bytes from 192.168.101.2: icmp_seq=2 ttl=128 time=0.898 ms 64 bytes from 192.168.101.2: icmp_seq=3 ttl=128 time=0.951 ms 64 bytes from 192.168.101.2: icmp_seq=4 ttl=128 time=1.00 ms 64 bytes from 192.168.101.2: icmp_seq=5 ttl=128 time=1.07 ms 64 bytes from 192.168.101.2: icmp_seq=6 ttl=128 time=1.12 ms 64 bytes from 192.168.101.2: icmp_seq=7 ttl=128 time=1.18 ms 64 bytes from 192.168.101.2: icmp_seq=8 ttl=128 time=1.25 ms 64 bytes from 192.168.101.2: icmp_seq=9 ttl=128 time=1.29 ms ... 64 bytes from 192.168.101.2: icmp_seq=17 ttl=128 time=0.740 ms 64 bytes from 192.168.101.2: icmp_seq=18 ttl=128 time=0.794 ms 64 bytes from 192.168.101.2: icmp_seq=19 ttl=128 time=0.864 ms 64 bytes from 192.168.101.2: icmp_seq=20 ttl=128 time=0.904 ms 64 bytes from 192.168.101.2: icmp_seq=21 ttl=128 time=0.959 ms 64 bytes from 192.168.101.2: icmp_seq=22 ttl=128 time=1.01 ms ^C --- 192.168.101.2 ping statistics --- 22 packets transmitted, 22 received, 0% packet loss, time 21053ms rtt min/avg/max/mdev = 0.571/1.146/3.545/0.587 ms |
#ping 192.168.101.1
PING 192.168.101.1 (192.168.101.1) 56(84) bytes of data. 64 bytes from 192.168.101.1: icmp_seq=1 ttl=64 time=0.018 ms 64 bytes from 192.168.101.1: icmp_seq=2 ttl=64 time=0.008 ms ^C --- 192.168.101.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.008/0.013/0.018/0.005 ms |
#ping 192.168.101.2
PING 192.168.101.2 (192.168.101.2) 56(84) bytes of data. 64 bytes from 192.168.101.2: icmp_seq=1 ttl=128 time=0.996 ms 64 bytes from 192.168.101.2: icmp_seq=2 ttl=128 time=1.48 ms ^C --- 192.168.101.2 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1004ms rtt min/avg/max/mdev = 0.996/1.240/1.484/0.244 ms |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.101.0 * 255.255.255.0 U 0 0 0 eth0 default 192.168.101.254 0.0.0.0 UG 0 0 0 eth0 |
#config_data .
./ .dbus/ .lilalo/ ../ .debtags/ .mc/ .aptitude/ .gconf/ .profile .bash_history .gconfd/ .recently-used.xbel .bash_profile .gnome2/ .ssh/ .bashrc .l3rc .viminfo |
#host 192.168.101.2
;; connection timed out; no servers could be reached |
#vi
|
#~
Ђройки Правая панель Совет: Вырезание и вставка с помощью мыши может требовать держать клавишу Shift. |
#vim
|
#~
> > > > > unix.nt ^C |
#nslookup
> server Default server: 10.0.35.1 Address: 10.0.35.1#53 > exit |
#ping 10.0.35.1
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data. From 192.168.101.1 icmp_seq=2 Destination Host Unreachable From 192.168.101.1 icmp_seq=3 Destination Host Unreachable From 192.168.101.1 icmp_seq=5 Destination Host Unreachable From 192.168.101.1 icmp_seq=6 Destination Host Unreachable From 192.168.101.1 icmp_seq=7 Destination Host Unreachable From 192.168.101.1 icmp_seq=9 Destination Host Unreachable From 192.168.101.1 icmp_seq=10 Destination Host Unreachable From 192.168.101.1 icmp_seq=11 Destination Host Unreachable ^C --- 10.0.35.1 ping statistics --- 11 packets transmitted, 0 received, +8 errors, 100% packet loss, time 10020ms , pipe 3 |
#ping -h
Usage: ping [-LRUbdfnqrvVaA] [-c count] [-i interval] [-w deadline] [-p pattern] [-s packetsize] [-t ttl] [-I interface or address] [-M mtu discovery hint] [-S sndbuf] [ -T timestamp option ] [ -Q tos ] [hop1 ...] destination |
#ping 10.0.35.1 -w 3
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data. From 192.168.101.1 icmp_seq=1 Destination Host Unreachable --- 10.0.35.1 ping statistics --- 1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms |
#ping 10.0.35.1 -c 3
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data. From 192.168.101.1 icmp_seq=1 Destination Host Unreachable From 192.168.101.1 icmp_seq=2 Destination Host Unreachable From 192.168.101.1 icmp_seq=3 Destination Host Unreachable --- 10.0.35.1 ping statistics --- 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2013ms , pipe 3 |
#ping 10.0.35.1 -c 3
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data. From 192.168.101.1 icmp_seq=1 Destination Host Unreachable From 192.168.101.1 icmp_seq=2 Destination Host Unreachable From 192.168.101.1 icmp_seq=3 Destination Host Unreachable --- 10.0.35.1 ping statistics --- 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2014ms , pipe 3 |
#man grep
|
#ping 10.0.35.1 -c 3
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data. From 192.168.101.1 icmp_seq=1 Destination Host Unreachable From 192.168.101.1 icmp_seq=2 Destination Host Unreachable From 192.168.101.1 icmp_seq=3 Destination Host Unreachable --- 10.0.35.1 ping statistics --- 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2004ms , pipe 2 |
#ping 192.168.101.254
PING 192.168.101.254 (192.168.101.254) 56(84) bytes of data. From 192.168.101.1 icmp_seq=1 Destination Host Unreachable From 192.168.101.1 icmp_seq=2 Destination Host Unreachable From 192.168.101.1 icmp_seq=3 Destination Host Unreachable From 192.168.101.1 icmp_seq=5 Destination Host Unreachable From 192.168.101.1 icmp_seq=6 Destination Host Unreachable From 192.168.101.1 icmp_seq=7 Destination Host Unreachable From 192.168.101.1 icmp_seq=8 Destination Host Unreachable From 192.168.101.1 icmp_seq=9 Destination Host Unreachable From 192.168.101.1 icmp_seq=10 Destination Host Unreachable From 192.168.101.1 icmp_seq=13 Destination Host Unreachable From 192.168.101.1 icmp_seq=14 Destination Host Unreachable ^C --- 192.168.101.254 ping statistics --- 15 packets transmitted, 0 received, +11 errors, 100% packet loss, time 14028ms , pipe 3 |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254) 56(84) bytes of data. ^C --- 192.168.15.254 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 1999ms |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254) 56(84) bytes of data. From 192.168.101.1 icmp_seq=1 Destination Host Unreachable From 192.168.101.1 icmp_seq=3 Destination Host Unreachable From 192.168.101.1 icmp_seq=4 Destination Host Unreachable From 192.168.101.1 icmp_seq=5 Destination Host Unreachable ^C --- 192.168.15.254 ping statistics --- 5 packets transmitted, 0 received, +4 errors, 100% packet loss, time 4004ms , pipe 3 |
#ping 192.168.101.254
PING 192.168.101.254 (192.168.101.254) 56(84) bytes of data. From 192.168.101.1 icmp_seq=1 Destination Host Unreachable From 192.168.101.1 icmp_seq=2 Destination Host Unreachable From 192.168.101.1 icmp_seq=3 Destination Host Unreachable From 192.168.101.1 icmp_seq=5 Destination Host Unreachable From 192.168.101.1 icmp_seq=6 Destination Host Unreachable From 192.168.101.1 icmp_seq=7 Destination Host Unreachable From 192.168.101.1 icmp_seq=9 Destination Host Unreachable From 192.168.101.1 icmp_seq=10 Destination Host Unreachable From 192.168.101.1 icmp_seq=11 Destination Host Unreachable ... From 192.168.101.1 icmp_seq=51 Destination Host Unreachable From 192.168.101.1 icmp_seq=52 Destination Host Unreachable From 192.168.101.1 icmp_seq=53 Destination Host Unreachable From 192.168.101.1 icmp_seq=54 Destination Host Unreachable From 192.168.101.1 icmp_seq=55 Destination Host Unreachable From 192.168.101.1 icmp_seq=56 Destination Host Unreachable ^C --- 192.168.101.254 ping statistics --- 59 packets transmitted, 0 received, +41 errors, 100% packet loss, time 58074ms , pipe 3 |
#ping 192.168.101.2
PING 192.168.101.2 (192.168.101.2) 56(84) bytes of data. 64 bytes from 192.168.101.2: icmp_seq=1 ttl=128 time=3.40 ms 64 bytes from 192.168.101.2: icmp_seq=2 ttl=128 time=1.21 ms 64 bytes from 192.168.101.2: icmp_seq=3 ttl=128 time=1.26 ms 64 bytes from 192.168.101.2: icmp_seq=4 ttl=128 time=1.31 ms ^C --- 192.168.101.2 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3013ms rtt min/avg/max/mdev = 1.219/1.800/3.405/0.927 ms |
#ping 192.168.101.254
PING 192.168.101.254 (192.168.101.254) 56(84) bytes of data. From 192.168.101.1 icmp_seq=1 Destination Host Unreachable From 192.168.101.1 icmp_seq=2 Destination Host Unreachable From 192.168.101.1 icmp_seq=3 Destination Host Unreachable From 192.168.101.1 icmp_seq=6 Destination Host Unreachable From 192.168.101.1 icmp_seq=7 Destination Host Unreachable From 192.168.101.1 icmp_seq=10 Destination Host Unreachable From 192.168.101.1 icmp_seq=11 Destination Host Unreachable From 192.168.101.1 icmp_seq=13 Destination Host Unreachable From 192.168.101.1 icmp_seq=14 Destination Host Unreachable ... 64 bytes from 192.168.101.254: icmp_seq=62 ttl=64 time=210 ms 64 bytes from 192.168.101.254: icmp_seq=63 ttl=64 time=0.614 ms 64 bytes from 192.168.101.254: icmp_seq=64 ttl=64 time=0.615 ms 64 bytes from 192.168.101.254: icmp_seq=65 ttl=64 time=0.611 ms 64 bytes from 192.168.101.254: icmp_seq=66 ttl=64 time=0.613 ms 64 bytes from 192.168.101.254: icmp_seq=67 ttl=64 time=0.623 ms ^C --- 192.168.101.254 ping statistics --- 67 packets transmitted, 10 received, +41 errors, 85% packet loss, time 66094ms rtt min/avg/max/mdev = 0.611/50.949/210.884/77.471 ms, pipe 3 |
#ping 192.168.102.2
PING 192.168.102.2 (192.168.102.2) 56(84) bytes of data. ^C --- 192.168.102.2 ping statistics --- 6 packets transmitted, 0 received, 100% packet loss, time 5014ms |
#ping 192.168.102.1
PING 192.168.102.1 (192.168.102.1) 56(84) bytes of data. 64 bytes from 192.168.102.1: icmp_seq=1 ttl=63 time=1.09 ms 64 bytes from 192.168.102.1: icmp_seq=2 ttl=63 time=1.07 ms 64 bytes from 192.168.102.1: icmp_seq=3 ttl=63 time=1.06 ms ^C --- 192.168.102.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2006ms rtt min/avg/max/mdev = 1.066/1.079/1.098/0.040 ms |
#ping 192.168.103.1
PING 192.168.103.1 (192.168.103.1) 56(84) bytes of data. 64 bytes from 192.168.103.1: icmp_seq=1 ttl=63 time=2.52 ms 64 bytes from 192.168.103.1: icmp_seq=2 ttl=63 time=0.120 ms ^C --- 192.168.103.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1002ms rtt min/avg/max/mdev = 0.120/1.323/2.526/1.203 ms |
#ping 10.0.35.1
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data. 64 bytes from 10.0.35.1: icmp_seq=58 ttl=63 time=0.213 ms 64 bytes from 10.0.35.1: icmp_seq=59 ttl=63 time=0.175 ms 64 bytes from 10.0.35.1: icmp_seq=60 ttl=63 time=0.187 ms 64 bytes from 10.0.35.1: icmp_seq=61 ttl=63 time=0.175 ms 64 bytes from 10.0.35.1: icmp_seq=62 ttl=63 time=0.175 ms 64 bytes from 10.0.35.1: icmp_seq=63 ttl=63 time=0.187 ms 64 bytes from 10.0.35.1: icmp_seq=64 ttl=63 time=0.190 ms 64 bytes from 10.0.35.1: icmp_seq=65 ttl=63 time=0.191 ms 64 bytes from 10.0.35.1: icmp_seq=66 ttl=63 time=0.184 ms ... 64 bytes from 10.0.35.1: icmp_seq=145 ttl=63 time=0.178 ms 64 bytes from 10.0.35.1: icmp_seq=146 ttl=63 time=0.198 ms 64 bytes from 10.0.35.1: icmp_seq=147 ttl=63 time=0.183 ms 64 bytes from 10.0.35.1: icmp_seq=148 ttl=63 time=0.195 ms 64 bytes from 10.0.35.1: icmp_seq=149 ttl=63 time=0.181 ms 64 bytes from 10.0.35.1: icmp_seq=150 ttl=63 time=0.196 ms ^C --- 10.0.35.1 ping statistics --- 150 packets transmitted, 93 received, +3 duplicates, 38% packet loss, time 149003ms rtt min/avg/max/mdev = 0.160/4.200/97.064/19.276 ms |
#ping ya.ru
PING ya.ru (213.180.204.3) 56(84) bytes of data. 64 bytes from www.yandex.ru (213.180.204.3): icmp_seq=1 ttl=49 time=53.2 ms 64 bytes from www.yandex.ru (213.180.204.3): icmp_seq=2 ttl=49 time=53.9 ms ^C --- ya.ru ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1006ms rtt min/avg/max/mdev = 53.247/53.613/53.980/0.433 ms |
#apt-get install dhcp3-server
│ │ └───────────────────────────────────────────────────────────────────────────┘ Выбор ранее не выбранного пакета dhcp3-server. (Чтение базы данных... на данный момент установлено 102395 файлов и каталогов.) Распаковывается пакет dhcp3-server (из файла .../dhcp3-server_3.1.1-6+lenny4_i386.deb)... Обрабатываются триггеры для man-db ... Настраивается пакет dhcp3-server (3.1.1-6+lenny4) ... Generating /etc/default/dhcp3-server... Starting DHCP server: dhcpd3check syslog for diagnostics. failed! failed! invoke-rc.d: initscript dhcp3-server, action "start" failed. |
#ssh 192.168.108.1
The authenticity of host '192.168.108.1 (192.168.108.1)' can't be established. RSA key fingerprint is da:4a:92:81:55:fc:a8:1b:fd:c8:e4:7a:2e:68:f0:fa. Are you sure you want to continue connecting (yes/no)? y Please type 'yes' or 'no': yes Warning: Permanently added '192.168.108.1' (RSA) to the list of known hosts. root@192.168.108.1's password: Linux linux8.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Mon Oct 25 16:04:28 2010 from 192.168.112.2 l3-agent is already running: pid=6070; pidfile=/root/.lilalo/l3-agent.pid |
#screen -x
|
#screen -help
|
#screen -x
|
#screen -x 3058
|
#cp /etc/dhcp3/dhcpd.conf{,.SAVE}
|
#vi /etc/dhcp3/dhcpd.conf
|
#mc
|
#vi /etc/dhcp3/dhcpd.conf
|
#vi /etc/default/dhcp3-server
|
#vi /etc/default/dhcp3-server
--- /tmp/l3-saved-3072.8373.31248 2010-10-25 16:16:02.000000000 +0300 +++ /etc/default/dhcp3-server 2010-10-25 16:16:33.000000000 +0300 @@ -8,4 +8,4 @@ # On what interfaces should the DHCP server (dhcpd) serve DHCP requests? # Separate multiple interfaces with spaces, e.g. "eth0 eth1". -INTERFACES="" +INTERFACES="eth0" |
# 11 INTERFACES=""
bash: /etc/default/dhcp3-server: Отказано в доступе |
#/etc/default/dhcp3-server reload
bash: /etc/default/dhcp3-server: Отказано в доступе |
#/etc/init.d/dhcp3-server start
Starting DHCP server: dhcpd3. |
#tail /var/lib/dhcp3/dhcpd.leases
lease 192.168.101.200 { starts 1 2010/10/25 13:17:32; ends 1 2010/10/25 13:27:32; cltt 1 2010/10/25 13:17:32; binding state active; next binding state free; hardware ethernet 00:04:13:25:67:21; client-hostname "snom300"; } |
#apt-get remove nano
ЧÑение ÑпиÑков пакеÑов... ÐоÑово ÐоÑÑÑоение деÑева завиÑимоÑÑей ЧÑение инÑоÑмаÑии о ÑоÑÑоÑнии... ÐоÑово ÐакеÑÑ, коÑоÑÑе бÑдÑÑ Ð£ÐÐÐ ano обновлено 0, ÑÑÑановлено 0 новÑÑ Ð¿Ð°ÐºÐµÑов, Ð´Ð»Ñ ÑÐ´Ð°Ð»ÐµÐ½Ð¸Ñ Ð¾ÑмеÑено 1 пакеÑов, и 0 пакеÑов не обновлено. ÐоÑле данной опеÑаÑии, обÑÑм занÑÑого диÑкового пÑоÑÑÑанÑÑва ÑменÑÑиÑÑÑ Ð½Ð° 1757kB. ХоÑиÑе пÑодолжиÑÑ [Ð/н]? y (ЧÑение Ð±Ð°Ð·Ñ Ð´Ð°Ð½Ð½ÑÑ ... на даннÑй Ð¼Ð¾Ð¼ÐµÐ½Ñ ÑÑÑановлено 102407 Ñайлов и каÑалогов.) УдалÑеÑÑÑ Ð¿Ð°ÐºÐµÑ nano... ÐбÑабаÑÑваÑÑÑÑ ÑÑиггеÑÑ Ð´Ð»Ñ man-db ... ÐбÑабаÑÑваÑÑÑÑ ÑÑиггеÑÑ Ð´Ð»Ñ menu ... |
#telnet 192.168.101.200
Trying 192.168.101.200... telnet: Unable to connect to remote host: Connection refused |
#date
Пнд Окт 25 16:37:04 EEST 2010 |
#apt-cache search asterisk
asterisk-mp3 - MP3 format support (format_mp3) for the Asterisk PBX asterisk-mysql - MySQL support for the Asterisk PBX (cdr mainly) asterisk-ooh323c - H.323 protocol support for Asterisk (ooh323c stack) asterisk-chan-capi - Common ISDN API 2.0 implementation for Asterisk asterisk-oh323 - H.323 protocol support for Asterisk asterisk-prompt-de - German voice prompts for the Asterisk PBX asterisk-prompt-es-co - Colombian Spanish voice prompts for Asterisk asterisk-prompt-fr-armelle - French voice prompts for Asterisk by Armelle Desjardins asterisk-prompt-fr-proformatique - French voice prompts for Asterisk asterisk-prompt-fr - French voice prompts for Asterisk ... asterisk-dev - Development files for Asterisk asterisk-doc - Source code documentation for Asterisk asterisk-h323 - H.323 protocol support for Asterisk asterisk-sounds-main - Core Sound files for Asterisk (English) asterisk - Open Source Private Branch Exchange (PBX) libiax-dev - implementation of the Inter-Asterisk eXchange protocol (devel) libiax0 - implementation of the Inter-Asterisk eXchange protocol iaxmodem - software modem with IAX2 connectivity libasterisk-agi-perl - Collections of Perl modules to be used with Asterisk PBX AGI python-asterisk - Asterisk Manager API interface module for Python |
#apt-get install asterisk asterisk-sound-extra asterisk-config
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово E: Не удалось найти пакет asterisk-sound-extra |
#apt-get install asterisk asterisk-sounds-extra asterisk-config
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Будут установлены следующие дополнительные пакеты: asterisk-sounds-main debhelper gettext html2text intltool-debian libc-client2007b libcompress-raw-zlib-perl libcompress-zlib-perl libdigest-hmac-perl libdigest-sha1-perl libfile-remove-perl libiksemel3 libio-compress-base-perl libio-compress-zlib-perl libio-stringy-perl libmail-box-perl libmail-sendmail-perl libmailtools-perl libmime-types-perl libobject-realize-later-perl libpq5 libpri1.0 libradiusclient-ng2 libsqlite0 ... Настраивается пакет libio-stringy-perl (2.110-4) ... Настраивается пакет libmime-types-perl (1.24-1) ... Настраивается пакет libmailtools-perl (2.03-1) ... Настраивается пакет libobject-realize-later-perl (0.18-1) ... Настраивается пакет libuser-identity-perl (0.92-2) ... Настраивается пакет libmail-box-perl (2.082-2) ... Настраивается пакет libsys-hostname-long-perl (1.4-2) ... Настраивается пакет libmail-sendmail-perl (0.79-5) ... Настраивается пакет module-assistant (0.10.11.0) ... Настраивается пакет vpb-driver-source (4.2.38.1-1) ... |
#dpkg -L asterisk
/. /etc /etc/asterisk /etc/logrotate.d /etc/logrotate.d/asterisk /etc/default /etc/default/asterisk /etc/init.d /etc/init.d/asterisk /usr ... /var/lib/asterisk /var/lib/asterisk/moh /var/lib/asterisk/sounds /var/lib/asterisk/sounds/custom /var/run /var/run/asterisk /usr/share/asterisk/sounds/recordings /usr/share/asterisk/sounds/custom /usr/share/man/man8/rasterisk.8.gz /usr/sbin/rasterisk |
#dpkg -L asterisk
/. /etc /etc/asterisk /etc/logrotate.d /etc/logrotate.d/asterisk /etc/default /etc/default/asterisk /etc/init.d /etc/init.d/asterisk /usr ... /var/lib/asterisk /var/lib/asterisk/moh /var/lib/asterisk/sounds /var/lib/asterisk/sounds/custom /var/run /var/run/asterisk /usr/share/asterisk/sounds/recordings /usr/share/asterisk/sounds/custom /usr/share/man/man8/rasterisk.8.gz /usr/sbin/rasterisk |
#dpkg -L asterisk | wc -l
250 |
#dpkg -L asterisk-sounds-extra | wc -l
1283 |
#dpkg -L asterisk-config | wc -l
150 |
#dpkg -L asterisk-config
/. /etc /etc/asterisk /etc/asterisk/manager.d /etc/asterisk/manager.d/README.conf /etc/asterisk/asterisk.adsi /etc/asterisk/telcordia-1.adsi /etc/asterisk/adsi.conf /etc/asterisk/adtranvofr.conf /etc/asterisk/agents.conf ... /usr/share/doc/asterisk-config/examples/configs/extensions.conf.sample.gz /usr/share/doc/asterisk-config/examples/configs/indications.conf.sample.gz /usr/share/doc/asterisk-config/examples/agi-test.agi /usr/share/doc/asterisk-config/examples/eagi-test.c /usr/share/doc/asterisk-config/examples/xagi-test.c /usr/share/doc/asterisk-config/examples/fastagi-test /usr/share/doc/asterisk-config/examples/eagi-sphinx-test.c.gz /usr/share/doc/asterisk-config/NEWS.Debian.gz /usr/share/doc/asterisk-config/changelog.gz /usr/share/doc/asterisk-config/changelog.Debian.gz |
#/etc/init.d/asterisk start
Asterisk PBX is already running. Use restart. |
#/etc/init.d/asterisk status
Asterisk PBX is running: 6742 |
#asterisk -r
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux1 (pid = 6742) linux1*CLI> exit |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... 0 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 0 offline] linux1*CLI> pri show peers No such command 'pri show peers' (type 'help pri show' for other possible commands) linux1*CLI> pri show pers No such command 'pri show pers' (type 'help pri show' for other possible commands) linux1*CLI> pri show debug spans span linux1*CLI> pri show spans linux1*CLI> exit Executing last minute cleanups |
#less /var/log/asterisk/messages
|
#vi /etc//asterisk/sip.conf
|
#184 ;
30 ;allowtransfer=no ; Disable all transfers (unless enabled in peers or users) "/etc//asterisk/sip.conf" 669L, 31889C 31 ; Default is enabled 32 ;realm=mydomain.tld ; Realm for digest authentication 33 ; defaults to "asterisk". If you set a system name in 34 ; asterisk.conf, it defaults to that system name 35 ; Realms MUST be globally unique according to RFC 3261 36 ; Set this to your host name or domain name 37 bindport=5060 ; UDP Port to bind to (SIP standard port is 5060) 38 ; bindport is the local UDP port that Asterisk will listen on ... 49 ; INVITE and REFER to non-local domains 50 ; Use "sip show domains" to list local domains 51 ;pedantic=yes ; Enable checking of tags in headers, 52 ; international character conversions in URIs 53 ; and multiline formatted headers for strict 54 ; SIP compatibility (defaults to "no") 55 56 ; See doc/ip-tos.txt for a description of these parameters. 57 ;tos_sip=cs3 ; Sets TOS for SIP packets. 58 ;tos_audio=ef ; Sets TOS for RTP audio packets. |
# 59 ;tos_video=af41 ; Sets TOS for RTP video packets.
|
#grep -v "^\s*;" /tmp/sip.conf | grep -vx '' | less
|
#grep -v "^\s*;" /etc/asterisk/sip.conf | grep -vx '' | less
|
#grep -v "^\s*;" /etc//asterisk/sip.conf | grep -vx '' | less
|
#grep -v "^\s*;" /etc//asterisk/sip.conf.orig | grep -vx '' | less
|
# 2 allowoverlap=no ; Disable overlap dialing support. (Default is yes)
ncoming calls allowoverlap=no ; Disable overlap dialing support. (Default is yes) bindport=5060 ; UDP Port to bind to (SIP standard port is 5060) bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all) srvlookup=yes ; Enable DNS SRV lookups on outbound calls [authentication] |
# 15
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... 1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 1 offline] linux1*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 1101 (Unspecified) D 0 Unmonitored 1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 1 offline] linux1*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 1101 (Unspecified) D 0 Unmonitored 1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 1 offline] linux1*CLI> exit |
Время первой команды журнала | 13:54:59 2010-10-25 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 16:34:12 2010-10-25 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 39.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 3.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.65 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.63 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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