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

Содержание

Журнал

Понедельник (10/17/11)

/dev/tty4
11:38:18
#w
 12:38:19 up 35 min,  8 users,  load average: 0.04, 0.07, 0.18
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     tty1                      12:03   13:03   0.33s  0.22s ssh user@192.168.15.252
root     tty2                      12:04   20:28   0.20s  0.18s -bash
root     tty3                      12:09   23:45   0.11s  0.09s -bash
root     tty4                      12:38    0.00s  0.14s  0.00s script -f -c bash -q /root/.lilalo//202514788372921662-1318844297.script
user     tty7     :0               12:18   35:28  44.40s  0.08s x-session-manager
root     pts/1    :0.0             12:19   15.00s  0.00s  0.00s bash
root     pts/3    :0.0             12:19    7:40   0.24s  0.24s mc
user     pts/4    :0.0             12:30    6:47   0.13s  0.02s script -f -c bash -q /home/user/.lilalo//1774045921310929443-1318843850.script
/dev/pts/1
11:39:46
#ls /inst
install
11:40:00
#df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              92G  3.4G   84G   4% /
tmpfs                 4.0G     0  4.0G   0% /lib/init/rw
udev                  4.0G  156K  4.0G   1% /dev
tmpfs                 4.0G     0  4.0G   0% /dev/shm
11:46:13
#w
 12:47:33 up 44 min,  7 users,  load average: 0.38, 0.25, 0.21
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     tty1                      12:03   22:17   0.33s  0.22s ssh user@192.16
root     tty2                      12:04   29:42   0.20s  0.18s -bash
root     tty3                      12:09   32:59   0.11s  0.09s -bash
root     tty4                      12:38    9:14   0.14s  0.00s script -f -c ba
user     tty7     :0               12:18   44:42   1:05   0.08s x-session-manag
root     pts/1    :0.0             12:39    0.00s  0.00s  0.00s script -f -c ba
user     pts/4    :0.0             12:30   16:01   0.13s  0.02s script -f -c ba
11:47:33
#route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.15.253  0.0.0.0         UG    0      0        0 eth0
localnet        *               255.255.255.0   U     0      0        0 eth0
прошло 80 минут
13:07:56
#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.15.253  0.0.0.0         UG    0      0        0 eth0
192.168.15.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
13:08:01
#route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         switch.unix.nt  0.0.0.0         UG    0      0        0 eth0
localnet        *               255.255.255.0   U     0      0        0 eth0
13:10:28
#apt-cache search asterisk
asterisk-mobile - bluetooth mobile devices support for 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-core-sounds-en-g722 - asterisk PBX sound files - English/g722
asterisk-core-sounds-en-gsm - asterisk PBX sound files - English/gsm
asterisk-core-sounds-en-wav - asterisk PBX sound files - English/wav
asterisk-core-sounds-es-g722 - asterisk PBX sound files - Spanish/g722
asterisk-core-sounds-es-gsm - asterisk PBX sound files - Spanish/gsm
...
asterisk - Open Source Private Branch Exchange (PBX)
dahdi-linux - DAHDI telephony interface - Linux userspace parts
dahdi-source - DAHDI telephony interface - source code for kernel driver
dahdi - utilities for using the DAHDI kernel modules
iaxmodem - software modem with IAX2 connectivity
libasterisk-agi-perl - Collections of Perl modules to be used with Asterisk PBX AGI
libnetsds-perl - Service Delivery Suite framework
op-panel - switchboard type application for the Asterisk PBX
libopenr2-3 - MFC/R2 (telephony) call setup library
python-asterisk - Asterisk Manager API interface module for Python
13:17:24
#echo $LANG
en_US.UTF-8
13:19:39
#apt-cache search asterisk
asterisk-mobile - bluetooth mobile devices support for 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-core-sounds-en-g722 - asterisk PBX sound files - English/g722
asterisk-core-sounds-en-gsm - asterisk PBX sound files - English/gsm
asterisk-core-sounds-en-wav - asterisk PBX sound files - English/wav
asterisk-core-sounds-es-g722 - asterisk PBX sound files - Spanish/g722
asterisk-core-sounds-es-gsm - asterisk PBX sound files - Spanish/gsm
...
asterisk - Open Source Private Branch Exchange (PBX)
dahdi-linux - DAHDI telephony interface - Linux userspace parts
dahdi-source - DAHDI telephony interface - source code for kernel driver
dahdi - utilities for using the DAHDI kernel modules
iaxmodem - software modem with IAX2 connectivity
libasterisk-agi-perl - Collections of Perl modules to be used with Asterisk PBX AGI
libnetsds-perl - Service Delivery Suite framework
op-panel - switchboard type application for the Asterisk PBX
libopenr2-3 - MFC/R2 (telephony) call setup library
python-asterisk - Asterisk Manager API interface module for Python
13:19:47
#apt-get install asterisk asterisk-config asterisk-sounds-extra asterisk-sounds-main
Package configuration
  ┌─────────────────────────────────────────────────────┤ Configuring libvpb0 ├──────────────────────────────────────────────────────┐
  │ This is the numeric code for the region your phone system will be operating in (eg. 61 for Australia or 33 for France).  It is   │
  │ used to configure the default regional standards that Voicetronix telephony hardware should comply with.                         │
  │                                                                                                                                  │
  │ ITU-T telephone code:                                                                                                            │
  │                                                                                                                                  │
  â”3801______________________________________________________________________________________________________________________________ │
  │                                                                                                                                  │
  │                                                              <Ok>                                                                │
...
Setting up unixodbc (2.2.14p2-1) ...
Setting up asterisk (1:1.6.2.9-2+squeeze3) ...
Adding system user for Asterisk
Adding user `asterisk' to group `dialout' ...
Adding user asterisk to group dialout
Done.
Adding user `asterisk' to group `audio' ...
Adding user asterisk to group audio
Done.
Starting Asterisk PBX: asterisk.
/dev/pts/7
13:28:35
#mc
прошло 14 минут
/dev/pts/1
13:43:18
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
13:43:28
#dpkg -L asterisk-sounds-main
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/asterisk-sounds-main
/usr/share/doc/asterisk-sounds-main/NEWS.Debian.gz
/usr/share/doc/asterisk-sounds-main/changelog.Debian.gz
/usr/share/doc/asterisk-sounds-main/changelog.gz
/usr/share/doc/asterisk-sounds-main/copyright
/usr/share/asterisk
...
/usr/share/asterisk/sounds/en_US_f_Allison/phonetic/o_p.gsm
/usr/share/asterisk/sounds/en_US_f_Allison/pbx-transfer.gsm
/usr/share/asterisk/sounds/en_US_f_Allison/vm-from-phonenumber.gsm
/usr/share/asterisk/sounds/en_US_f_Allison/queue-holdtime.gsm
/usr/share/asterisk/sounds/en_US_f_Allison/vm-toforward.gsm
/usr/share/asterisk/sounds/en_US_f_Allison/conf-otherinparty.gsm
/usr/share/asterisk/sounds/.asterisk-core-sounds-en-gsm-1.4.19
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/asterisk-sounds-main
13:43:46
#ps aux | grep asterisk
asterisk   300  0.9  0.2  48088 18056 ?        Ssl  14:43   0:00 /usr/sbin/asterisk -p -U asterisk
asterisk   301  0.0  0.0   2936   564 ?        S    14:43   0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 300
root       357  0.0  0.0   3904   724 pts/2    S+   14:44   0:00 grep asterisk
/dev/pts/7
13:48:33
#asterisk -rvv
Asterisk 1.6.2.9-2+squeeze3, 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux2 (pid = 300)
...
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI>
linux2*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
0 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 0 offline]
linux2*CLI> quit
Executing last minute cleanups
прошло 20 минут
/dev/pts/2
14:08:44
#ifconfig
eth0      Link encap:Ethernet  HWaddr 2c:27:d7:46:1a:50
          inet addr:192.168.15.22  Bcast:192.168.15.255  Mask:255.255.255.0
          inet6 addr: fe80::2e27:d7ff:fe46:1a50/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:580208 errors:0 dropped:0 overruns:0 frame:0
          TX packets:325275 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:741669255 (707.3 MiB)  TX bytes:23714018 (22.6 MiB)
          Interrupt:20 Memory:fe400000-fe420000
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:2491 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2491 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:218966 (213.8 KiB)  TX bytes:218966 (213.8 KiB)
14:09:34
#/etc/in
init.d/          initramfs-tools/ insserv/         insserv.conf.d/
14:10:19
#mc
14:11:07
#ifdown
ifdown: Use --help for help
14:11:18
#ifdown eth0
SIOCDELRT: No such process
14:11:22
#ifdown eth0
ifdown: interface eth0 not configured
14:11:39
#ifdown eth0
ifdown: interface eth0 not configured
14:11:55
#ifup eth0

14:12:12
#ifconfig
eth0      Link encap:Ethernet  HWaddr 2c:27:d7:46:1a:50
          inet addr:192.168.20.1  Bcast:192.168.20.255  Mask:255.255.255.0
          inet6 addr: fe80::2e27:d7ff:fe46:1a50/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:580732 errors:0 dropped:0 overruns:0 frame:0
          TX packets:325449 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:741730345 (707.3 MiB)  TX bytes:23729333 (22.6 MiB)
          Interrupt:20 Memory:fe400000-fe420000
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:2498 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2498 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:219584 (214.4 KiB)  TX bytes:219584 (214.4 KiB)
14:12:19
#ping mail.ru
ping: unknown host mail.ru
14:12:54
#ping mail.ru
^C
14:13:12
#ping mail.ru
ping: unknown host mail.ru
14:13:38
#ping mail.ru
ping: unknown host mail.ru
14:14:03
#ping mail.ru
^C
14:14:21
#ping 10.0.35.1
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data.
From 192.168.20.1 icmp_seq=2 Destination Host Unreachable
From 192.168.20.1 icmp_seq=3 Destination Host Unreachable
From 192.168.20.1 icmp_seq=4 Destination Host Unreachable
From 192.168.20.1 icmp_seq=5 Destination Host Unreachable
From 192.168.20.1 icmp_seq=6 Destination Host Unreachable
From 192.168.20.1 icmp_seq=8 Destination Host Unreachable
From 192.168.20.1 icmp_seq=9 Destination Host Unreachable
From 192.168.20.1 icmp_seq=10 Destination Host Unreachable
From 192.168.20.1 icmp_seq=11 Destination Host Unreachable
From 192.168.20.1 icmp_seq=12 Destination Host Unreachable
From 192.168.20.1 icmp_seq=13 Destination Host Unreachable
From 192.168.20.1 icmp_seq=14 Destination Host Unreachable
From 192.168.20.1 icmp_seq=15 Destination Host Unreachable
From 192.168.20.1 icmp_seq=16 Destination Host Unreachable
From 192.168.20.1 icmp_seq=17 Destination Host Unreachable
From 192.168.20.1 icmp_seq=18 Destination Host Unreachable
^C
--- 10.0.35.1 ping statistics ---
19 packets transmitted, 0 received, +16 errors, 100% packet loss, time 18095ms
pipe 3
14:15:13
#ping 192.168.20.254
PING 192.168.20.254 (192.168.20.254) 56(84) bytes of data.
64 bytes from 192.168.20.254: icmp_req=1 ttl=64 time=3.98 ms
64 bytes from 192.168.20.254: icmp_req=2 ttl=64 time=0.647 ms
64 bytes from 192.168.20.254: icmp_req=3 ttl=64 time=0.613 ms
^C
--- 192.168.20.254 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.613/1.747/3.982/1.580 ms
14:15:44
#ifdown eth0
SIOCDELRT: No such process
14:17:12
#ifdown eth0
ifdown: interface eth0 not configured
14:17:14
#ifup eth0

14:17:21
#ping mail.ru
PING mail.ru (94.100.191.203) 56(84) bytes of data.
64 bytes from 94.100.191.203: icmp_req=1 ttl=57 time=22.8 ms
^C64 bytes from 94.100.191.203: icmp_req=2 ttl=57 time=22.8 ms
--- mail.ru ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 5090ms
rtt min/avg/max/mdev = 22.804/22.819/22.835/0.151 ms
14:17:45
#route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.20.254  0.0.0.0         UG    0      0        0 eth0
default         192.168.20.253  0.0.0.0         UG    0      0        0 eth0
192.168.20.0    *               255.255.255.0   U     0      0        0 eth0
14:17:59
#route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.20.254  0.0.0.0         UG    0      0        0 eth0
default         192.168.20.253  0.0.0.0         UG    0      0        0 eth0
192.168.20.0    *               255.255.255.0   U     0      0        0 eth0
14:18:55
#/etc/init.d/networking restart
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning).
Reconfiguring network interfaces...done.
14:19:28
#ifconfig
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:2594 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2594 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:228556 (223.1 KiB)  TX bytes:228556 (223.1 KiB)
14:19:31
#ifconfig
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:2594 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2594 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:228556 (223.1 KiB)  TX bytes:228556 (223.1 KiB)
14:19:34
#ifconfig
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:2594 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2594 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:228556 (223.1 KiB)  TX bytes:228556 (223.1 KiB)
14:19:35
#ifconfig
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:2594 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2594 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:228556 (223.1 KiB)  TX bytes:228556 (223.1 KiB)
14:19:36
#ifconfig
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:2594 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2594 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:228556 (223.1 KiB)  TX bytes:228556 (223.1 KiB)
14:19:37
#ifconfig
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:2594 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2594 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:228556 (223.1 KiB)  TX bytes:228556 (223.1 KiB)
14:20:10
#ifconfig
eth0      Link encap:Ethernet  HWaddr 2c:27:d7:46:1a:50
          inet addr:192.168.20.1  Bcast:192.168.20.255  Mask:255.255.255.0
          inet6 addr: fe80::2e27:d7ff:fe46:1a50/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:581061 errors:0 dropped:0 overruns:0 frame:0
          TX packets:325787 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:741766735 (707.4 MiB)  TX bytes:23780320 (22.6 MiB)
          Interrupt:20 Memory:fe400000-fe420000
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:2597 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2597 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:228794 (223.4 KiB)  TX bytes:228794 (223.4 KiB)
14:20:12
#route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.20.254  0.0.0.0         UG    0      0        0 eth0
192.168.20.0    *               255.255.255.0   U     0      0        0 eth0
14:20:22
#route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         gw2.unix.nt     0.0.0.0         UG    0      0        0 eth0
192.168.20.0    *               255.255.255.0   U     0      0        0 eth0
/dev/pts/7
14:21:11
#/etc/init.d/asterisk status
Asterisk PBX is running.
14:21:32
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk.
14:21:37
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk.
/dev/pts/2
14:24:53
#route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         gw2.unix.nt     0.0.0.0         UG    0      0        0 eth0
192.168.20.0    *               255.255.255.0   U     0      0        0 eth0
14:24:54
#ps aux|grep ise
root      1687  0.0  0.0   3904   728 pts/3    S+   15:40   0:00 grep ise
прошло 15 минут
14:40:23
#ps aux|grep ice
root      1696  0.0  0.0   3904   724 pts/3    S+   15:40   0:00 grep ice
14:40:36
#LANG=ru_UA.UTF-8 date
Пнд Окт 17 15:46:17 FET 2011
14:46:17
#apt-cache search dhcp
ahcpd - the Ad-Hoc Configuration Protocol
arpon - versatile anti ARP poisoning daemon
autodns-dhcp - Automatic DNS updates for DHCP
avahi-autoipd - Avahi IPv4LL network address configuration daemon
backuppc - high-performance, enterprise-grade system for backing up PCs
batctl - B.A.T.M.A.N. advanced control and management tool
batman-adv-dkms - DKMS Source for the batman-advanced kernel module
batman-adv-source - Source for the batman-advanced kernel module
bootp - server for the bootp protocol with DHCP support
udhcpc - Provides the busybox DHCP client implementation
...
pxe - free PXE daemon
python-pydhcplib - Python DHCP client/server library
resolvconf - name server information handler
totd - Small DNS proxy that supports IPv6/IPv4 record translation
whereami - Automatically reconfigure your (laptop) system for a new location
wide-dhcpv6-client - DHCPv6 client for automatic IPv6 hosts configuration
wide-dhcpv6-relay - DHCPv6 relay for automatic IPv6 hosts configuration
wide-dhcpv6-server - DHCPv6 server for automatic IPv6 hosts configuration
yersinia - Network vulnerabilities check software
busybox - Tiny utilities for small and embedded systems
прошло 11 минут
14:57:54
#apt-cache search dhcp3
dhcp-helper - A DHCP relay agent
dhcp3-client - ISC DHCP server (transitional package)
dhcp3-common - ISC DHCP common files (transitional package)
dhcp3-dev - ISC DHCP development files (transitional package)
dhcp3-relay - ISC DHCP relay (transitional package)
dhcp3-server - ISC DHCP server (transitional package)
isc-dhcp-client - ISC DHCP client
isc-dhcp-common - common files used by all the isc-dhcp* packages
isc-dhcp-dev - API for accessing and modifying the DHCP server and client state
isc-dhcp-relay - ISC DHCP relay daemon
isc-dhcp-server-ldap - DHCP server able to use LDAP as backend
isc-dhcp-server - ISC DHCP server for automatic IP address assignment
14:58:48
#apt-cache install dhcp3-server
E: Invalid operation install
14:59:02
#apt-get install dhcp3-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  isc-dhcp-server
Suggested packages:
  isc-dhcp-server-ldap
The following NEW packages will be installed:
  dhcp3-server isc-dhcp-server
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
...
Unpacking isc-dhcp-server (from .../isc-dhcp-server_4.1.1-P1-15+squeeze3_i386.deb) ...
Selecting previously deselected package dhcp3-server.
Unpacking dhcp3-server (from .../dhcp3-server_4.1.1-P1-15+squeeze3_all.deb) ...
Processing triggers for man-db ...
Setting up isc-dhcp-server (4.1.1-P1-15+squeeze3) ...
Generating /etc/default/isc-dhcp-server...
Starting ISC DHCP server: dhcpdcheck syslog for diagnostics. ... failed!
 failed!
invoke-rc.d: initscript isc-dhcp-server, action "start" failed.
Setting up dhcp3-server (4.1.1-P1-15+squeeze3) ...
/dev/pts/10
15:08:03
#/etc/init.d/dhcp restart
bash: /etc/init.d/dhcp: No such file or directory
15:08:19
#/etc/init.d/isc-dhcp-server restart
Stopping ISC DHCP server: dhcpd failed!
Starting ISC DHCP server: dhcpd.
15:08:36
#/etc/init.d/isc-dhcp-server restart
Stopping ISC DHCP server: dhcpd.
Starting ISC DHCP server: dhcpd.
/dev/pts/3
15:09:21
#tail -f /var/log/d
daemon.log  debug       dmesg       dmesg.0     dmesg.1.gz  dpkg.log
15:09:21
#tail -f /var/log/messages
Oct 17 16:08:32 linux2 dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Oct 17 16:08:34 linux2 dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Oct 17 16:08:34 linux2 dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Oct 17 16:08:34 linux2 dhcpd: All rights reserved.
Oct 17 16:08:34 linux2 dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Oct 17 16:08:34 linux2 dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Oct 17 16:08:34 linux2 dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Oct 17 16:08:34 linux2 dhcpd: All rights reserved.
Oct 17 16:08:34 linux2 dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Oct 17 16:08:34 linux2 dhcpd: Wrote 0 leases to leases file.
...
Oct 17 16:47:12 linux2 dhcpd: DHCPACK on 192.168.20.200 to 00:24:54:d2:69:09 (rf510) via eth0
Oct 17 16:51:48 linux2 dhcpd: DHCPREQUEST for 192.168.20.201 from 00:19:e7:42:72:b5 (SEP0019E74272B5) via eth0
Oct 17 16:51:48 linux2 dhcpd: DHCPACK on 192.168.20.201 to 00:19:e7:42:72:b5 (SEP0019E74272B5) via eth0
Oct 17 16:52:12 linux2 dhcpd: DHCPREQUEST for 192.168.20.200 from 00:24:54:d2:69:09 (rf510) via eth0
Oct 17 16:52:12 linux2 dhcpd: DHCPACK on 192.168.20.200 to 00:24:54:d2:69:09 (rf510) via eth0
Oct 17 16:56:48 linux2 dhcpd: DHCPREQUEST for 192.168.20.201 from 00:19:e7:42:72:b5 (SEP0019E74272B5) via eth0
Oct 17 16:56:48 linux2 dhcpd: DHCPACK on 192.168.20.201 to 00:19:e7:42:72:b5 (SEP0019E74272B5) via eth0
Oct 17 16:57:12 linux2 dhcpd: DHCPREQUEST for 192.168.20.200 from 00:24:54:d2:69:09 (rf510) via eth0
Oct 17 16:57:12 linux2 dhcpd: DHCPACK on 192.168.20.200 to 00:24:54:d2:69:09 (rf510) via eth0
^C
/dev/pts/10
15:12:38
#mc
15:13:13
#pwd
/home/user
15:13:17
#cd /var/lib

15:13:23
#ls
alsa                 gconf            ntpdate         update-notifier
apt                  gdm3             os-prober       update-rc.d
aptitude             ghostscript      pam             upower
apt-xapian-index     initramfs-tools  polkit-1        urandom
aspell               initscripts      pycentral       usb_modeswitch
asterisk             insserv          python-support  usbutils
binfmts              libuuid          sgml-base       vim
dbus                 logrotate        snmp            x11
defoma               menu-xdg         sudo            xfonts
dhcp                 misc             synaptic        xkb
dictionaries-common  mlocate          tex-common      xml-core
dpkg                 NetworkManager   ucf
exim4                nfs              udisks
15:13:25
#cd dhcp/

15:13:31
#ls
dhclient.leases  dhcpd.leases  dhcpd.leases~
15:13:33
#pwd
/var/lib/dhcp
15:13:35
#ls
dhclient.leases  dhcpd.leases  dhcpd.leases~
15:13:40
#cat /var/lib/dhcp/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-4.1.1-P1
server-duid "\000\001\000\001\026.\345R,'\327F\032P";
lease 192.168.20.200 {
  starts 1 2011/10/17 13:11:49;
  ends 1 2011/10/17 13:21:49;
  cltt 1 2011/10/17 13:11:49;
  binding state active;
  next binding state free;
  hardware ethernet 00:24:54:d2:69:09;
  uid "\001\000$T\322i\011";
  client-hostname "rf510";
}
15:14:34
#cat /var/lib/dhcp/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-4.1.1-P1
server-duid "\000\001\000\001\026.\345R,'\327F\032P";
lease 192.168.20.200 {
  starts 1 2011/10/17 13:11:49;
  ends 1 2011/10/17 13:21:49;
  cltt 1 2011/10/17 13:11:49;
  binding state active;
  next binding state free;
  hardware ethernet 00:24:54:d2:69:09;
...
lease 192.168.20.200 {
  starts 1 2011/10/17 13:16:48;
  ends 1 2011/10/17 13:26:48;
  cltt 1 2011/10/17 13:16:48;
  binding state active;
  next binding state free;
  hardware ethernet 00:24:54:d2:69:09;
  uid "\001\000$T\322i\011";
  client-hostname "rf510";
}
15:20:19
#cat /var/lib/dhcp/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-4.1.1-P1
server-duid "\000\001\000\001\026.\345R,'\327F\032P";
lease 192.168.20.200 {
  starts 1 2011/10/17 13:11:49;
  ends 1 2011/10/17 13:21:49;
  cltt 1 2011/10/17 13:11:49;
  binding state active;
  next binding state free;
  hardware ethernet 00:24:54:d2:69:09;
...
lease 192.168.20.200 {
  starts 1 2011/10/17 13:16:48;
  ends 1 2011/10/17 13:26:48;
  cltt 1 2011/10/17 13:16:48;
  binding state active;
  next binding state free;
  hardware ethernet 00:24:54:d2:69:09;
  uid "\001\000$T\322i\011";
  client-hostname "rf510";
}
15:20:21
#cat /var/lib/dhcp/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-4.1.1-P1
server-duid "\000\001\000\001\026.\345R,'\327F\032P";
lease 192.168.20.200 {
  starts 1 2011/10/17 13:11:49;
  ends 1 2011/10/17 13:21:49;
  cltt 1 2011/10/17 13:11:49;
  binding state active;
  next binding state free;
  hardware ethernet 00:24:54:d2:69:09;
...
lease 192.168.20.200 {
  starts 1 2011/10/17 13:21:48;
  ends 1 2011/10/17 13:31:48;
  cltt 1 2011/10/17 13:21:48;
  binding state active;
  next binding state free;
  hardware ethernet 00:24:54:d2:69:09;
  uid "\001\000$T\322i\011";
  client-hostname "rf510";
}
15:23:04
#cat /var/lib/dhcp/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-4.1.1-P1
server-duid "\000\001\000\001\026.\345R,'\327F\032P";
lease 192.168.20.200 {
  starts 1 2011/10/17 13:11:49;
  ends 1 2011/10/17 13:21:49;
  cltt 1 2011/10/17 13:11:49;
  binding state active;
  next binding state free;
  hardware ethernet 00:24:54:d2:69:09;
...
lease 192.168.20.200 {
  starts 1 2011/10/17 13:23:04;
  ends 1 2011/10/17 13:33:04;
  cltt 1 2011/10/17 13:23:04;
  binding state active;
  next binding state free;
  hardware ethernet 00:24:54:d2:69:09;
  uid "\001\000$T\322i\011";
  client-hostname "rf510";
}
15:23:12
#cat /var/lib/dhcp/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-4.1.1-P1
server-duid "\000\001\000\001\026.\345R,'\327F\032P";
lease 192.168.20.200 {
  starts 1 2011/10/17 13:11:49;
  ends 1 2011/10/17 13:21:49;
  cltt 1 2011/10/17 13:11:49;
  binding state active;
  next binding state free;
  hardware ethernet 00:24:54:d2:69:09;
...
lease 192.168.20.201 {
  starts 1 2011/10/17 13:23:15;
  ends 1 2011/10/17 13:33:15;
  cltt 1 2011/10/17 13:23:15;
  binding state active;
  next binding state free;
  hardware ethernet 00:19:e7:42:72:b5;
  uid "\001\000\031\347Br\265";
  client-hostname "SEP0019E74272B5";
}
15:23:15
#ping 192.168.20.201
PING 192.168.20.201 (192.168.20.201) 56(84) bytes of data.
64 bytes from 192.168.20.201: icmp_req=1 ttl=250 time=60.4 ms
64 bytes from 192.168.20.201: icmp_req=2 ttl=250 time=69.4 ms
64 bytes from 192.168.20.201: icmp_req=3 ttl=250 time=68.4 ms
64 bytes from 192.168.20.201: icmp_req=4 ttl=250 time=67.4 ms
64 bytes from 192.168.20.201: icmp_req=5 ttl=250 time=66.4 ms
64 bytes from 192.168.20.201: icmp_req=6 ttl=250 time=65.5 ms
64 bytes from 192.168.20.201: icmp_req=7 ttl=250 time=65.1 ms
64 bytes from 192.168.20.201: icmp_req=8 ttl=250 time=64.9 ms
^C
--- 192.168.20.201 ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7010ms
rtt min/avg/max/mdev = 60.445/65.978/69.431/2.590 ms
15:27:49
#ping 192.168.20.201
PING 192.168.20.201 (192.168.20.201) 56(84) bytes of data.
64 bytes from 192.168.20.201: icmp_req=1 ttl=250 time=63.1 ms
64 bytes from 192.168.20.201: icmp_req=2 ttl=250 time=62.5 ms
64 bytes from 192.168.20.201: icmp_req=3 ttl=250 time=61.5 ms
64 bytes from 192.168.20.201: icmp_req=4 ttl=250 time=61.3 ms
64 bytes from 192.168.20.201: icmp_req=5 ttl=250 time=60.5 ms
64 bytes from 192.168.20.201: icmp_req=6 ttl=250 time=60.1 ms
64 bytes from 192.168.20.201: icmp_req=7 ttl=250 time=69.8 ms
64 bytes from 192.168.20.201: icmp_req=8 ttl=250 time=68.4 ms
64 bytes from 192.168.20.201: icmp_req=9 ttl=250 time=67.5 ms
64 bytes from 192.168.20.201: icmp_req=10 ttl=250 time=66.8 ms
64 bytes from 192.168.20.201: icmp_req=11 ttl=250 time=65.4 ms
^C
--- 192.168.20.201 ping statistics ---
11 packets transmitted, 11 received, 0% packet loss, time 10013ms
rtt min/avg/max/mdev = 60.138/64.299/69.838/3.296 ms
15:28:31
#cat /var/lib/dhcp/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-4.1.1-P1
server-duid "\000\001\000\001\026.\345R,'\327F\032P";
lease 192.168.20.200 {
  starts 1 2011/10/17 13:11:49;
  ends 1 2011/10/17 13:21:49;
  cltt 1 2011/10/17 13:11:49;
  binding state active;
  next binding state free;
  hardware ethernet 00:24:54:d2:69:09;
...
lease 192.168.20.201 {
  starts 1 2011/10/17 13:28:16;
  ends 1 2011/10/17 13:38:16;
  cltt 1 2011/10/17 13:28:16;
  binding state active;
  next binding state free;
  hardware ethernet 00:19:e7:42:72:b5;
  uid "\001\000\031\347Br\265";
  client-hostname "SEP0019E74272B5";
}
15:29:50
#cat /var/lib/dhcp/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-4.1.1-P1
server-duid "\000\001\000\001\026.\345R,'\327F\032P";
lease 192.168.20.200 {
  starts 1 2011/10/17 13:11:49;
  ends 1 2011/10/17 13:21:49;
  cltt 1 2011/10/17 13:11:49;
  binding state active;
  next binding state free;
  hardware ethernet 00:24:54:d2:69:09;
...
lease 192.168.20.201 {
  starts 1 2011/10/17 13:28:16;
  ends 1 2011/10/17 13:38:16;
  cltt 1 2011/10/17 13:28:16;
  binding state active;
  next binding state free;
  hardware ethernet 00:19:e7:42:72:b5;
  uid "\001\000\031\347Br\265";
  client-hostname "SEP0019E74272B5";
}
прошло 24 минуты
/dev/pts/7
15:54:35
#cd /etc/asterisk/

/dev/pts/10
15:56:16
#mc
/dev/pts/7
15:57:12
#ls
adsi.conf                codecs.conf             indications.conf        res_odbc.conf
adtranvofr.conf          console.conf            jabber.conf             res_pgsql.conf
agents.conf              dbsep.conf              jingle.conf             res_snmp.conf
ais.conf                 dnsmgr.conf             logger.conf             rpt.conf
alarmreceiver.conf       dsp.conf                manager.conf            rtp.conf
alsa.conf                dundi.conf              manager.d               say.conf
amd.conf                 enum.conf               meetme.conf             sip.conf
asterisk.adsi            extconfig.conf          mgcp.conf               sip.conf.bak
asterisk.conf            extensions.ael          minivm.conf             sip_notify.conf
cdr_adaptive_odbc.conf   extensions.conf         misdn.conf              skinny.conf
cdr.conf                 extensions.lua          modules.conf            sla.conf
cdr_custom.conf          extensions_minivm.conf  musiconhold.conf        smdi.conf
cdr_manager.conf         features.conf           muted.conf              telcordia-1.adsi
cdr_odbc.conf            festival.conf           osp.conf                udptl.conf
cdr_pgsql.conf           followme.conf           oss.conf                unistim.conf
cdr_sqlite3_custom.conf  func_odbc.conf          phone.conf              usbradio.conf
cdr_tds.conf             gtalk.conf              phoneprov.conf          users.conf
chan_dahdi.conf          h323.conf               queuerules.conf         voicemail.conf
cli_aliases.conf         http.conf               queues.conf             vpb.conf
cli.conf                 iax.conf                res_config_sqlite.conf
cli_permissions.conf     iaxprov.conf            res_ldap.conf
15:57:13
#ls
adsi.conf                codecs.conf             indications.conf        res_odbc.conf
adtranvofr.conf          console.conf            jabber.conf             res_pgsql.conf
agents.conf              dbsep.conf              jingle.conf             res_snmp.conf
ais.conf                 dnsmgr.conf             logger.conf             rpt.conf
alarmreceiver.conf       dsp.conf                manager.conf            rtp.conf
alsa.conf                dundi.conf              manager.d               say.conf
amd.conf                 enum.conf               meetme.conf             sip.conf
asterisk.adsi            extconfig.conf          mgcp.conf               sip.conf.bak
asterisk.conf            extensions.ael          minivm.conf             sip_notify.conf
cdr_adaptive_odbc.conf   extensions.conf         misdn.conf              skinny.conf
cdr.conf                 extensions.lua          modules.conf            sla.conf
cdr_custom.conf          extensions_minivm.conf  musiconhold.conf        smdi.conf
cdr_manager.conf         features.conf           muted.conf              telcordia-1.adsi
cdr_odbc.conf            festival.conf           osp.conf                udptl.conf
cdr_pgsql.conf           followme.conf           oss.conf                unistim.conf
cdr_sqlite3_custom.conf  func_odbc.conf          phone.conf              usbradio.conf
cdr_tds.conf             gtalk.conf              phoneprov.conf          users.conf
chan_dahdi.conf          h323.conf               queuerules.conf         voicemail.conf
cli_aliases.conf         http.conf               queues.conf             vpb.conf
cli.conf                 iax.conf                res_config_sqlite.conf
cli_permissions.conf     iaxprov.conf            res_ldap.conf
15:58:01
#mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.SAVED

прошло 18 минут
/dev/pts/12
16:16:21
#nautilus --no-desktop --browser %U
No protocol specified
Could not parse arguments: Cannot open display:
16:16:25
#nautilus
No protocol specified
Could not parse arguments: Cannot open display:
16:16:38
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
прошло 27 минут
/dev/pts/10
16:44:05
#touch extensions.conf

16:44:25
#mc
/dev/pts/7
16:49:14
#less /etc/asterisk/extensions.conf
/dev/pts/8
16:55:16
#find /usr -name demo-thanks

16:55:39
#find / -name demo-thanks.gsm
/usr/share/asterisk/sounds/en_US_f_Allison/demo-thanks.gsm
16:55:55
#find /usr -name demo-thanks.*
/usr/share/asterisk/sounds/en_US_f_Allison/demo-thanks.gsm
16:56:11
#cd /usr/share/asterisk/sounds/en_US_f_Allison/

16:56:27
#ls
agent-alreadyon.gsm              spy-sip.gsm
agent-incorrect.gsm              spy-skinny.gsm
agent-loggedoff.gsm              spy-unistim.gsm
agent-loginok.gsm                spy-usbradio.gsm
agent-newlocation.gsm            spy-zap.gsm
agent-pass.gsm                   ss-noservice.gsm
agent-user.gsm                   transfer.gsm
ascending-2tone.gsm              tt-allbusy.gsm
auth-incorrect.gsm               tt-monkeys.gsm
auth-thankyou.gsm                tt-monkeysintro.gsm
...
spy-dahdi.gsm                    vm-toreply.gsm
spy-h323.gsm                     vm-torerecord.gsm
spy-iax2.gsm                     vm-undeleted.gsm
spy-iax.gsm                      vm-undelete.gsm
spy-jingle.gsm                   vm-unknown-caller.gsm
spy-local.gsm                    vm-Urgent.gsm
spy-mgcp.gsm                     vm-whichbox.gsm
spy-misdn.gsm                    vm-Work.gsm
spy-mobile.gsm                   vm-youhave.gsm
spy-nbs.gsm

Вторник (10/18/11)

/dev/pts/6
08:53:22
#asterisk -rvvvv
Asterisk 1.6.2.9-2+squeeze3, 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux2 (pid = 1249)
...
    -- merging incls/swits/igpats from old(demo) to new(demo) context, registrar = pbx_config
    -- Including switch 'Lua/' in context 'demo'
    -- Time to scan old dialplan and merge leftovers back into the new: 0.000446 sec
    -- Time to restore hints and swap in new dialplan: 0.000001 sec
    -- Time to delete the old dialplan: 0.000057 sec
    -- Total time merge_contexts_delete: 0.000504 sec
linux2*CLI> sip reload
 Reloading SIP
linux2*CLI> exit
Executing last minute cleanups
прошло 16 минут
/dev/pts/12
09:09:39
#apt-get install sendmail sendmail-bin sensible-mda
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  mysql-common libmysqlclient16
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libmysqlclient16 mysql-common sendmail-base sendmail-cf
Suggested packages:
  sendmail-doc rmail logcheck resolvconf sasl2-bin
...
Unpacking libmysqlclient16 (from .../libmysqlclient16_5.1.49-3_i386.deb) ...
Selecting previously deselected package sensible-mda.
Unpacking sensible-mda (from .../sensible-mda_8.14.3-9.4_i386.deb) ...
Selecting previously deselected package sendmail.
Unpacking sendmail (from .../sendmail_8.14.3-9.4_all.deb) ...
Processing triggers for man-db ...
Setting up mysql-common (5.1.49-3) ...
Setting up libmysqlclient16 (5.1.49-3) ...
Setting up sensible-mda (8.14.3-9.4) ...
Setting up sendmail (8.14.3-9.4) ...

Файлы

  • /var/lib/dhcp/dhcpd.leases
  • /var/lib/dhcp/dhcpd.leases
    >
    # The format of this file is documented in the dhcpd.leases(5) manual page.
    # This lease file was written by isc-dhcp-4.1.1-P1
    server-duid "\000\001\000\001\026.\345R,'\327F\032P";
    lease 192.168.20.200 {
      starts 1 2011/10/17 13:11:49;
      ends 1 2011/10/17 13:21:49;
      cltt 1 2011/10/17 13:11:49;
      binding state active;
      next binding state free;
      hardware ethernet 00:24:54:d2:69:09;
      uid "\001\000$T\322i\011";
      client-hostname "rf510";
    }
    lease 192.168.20.200 {
      starts 1 2011/10/17 13:16:48;
      ends 1 2011/10/17 13:26:48;
      cltt 1 2011/10/17 13:16:48;
      binding state active;
      next binding state free;
      hardware ethernet 00:24:54:d2:69:09;
      uid "\001\000$T\322i\011";
      client-hostname "rf510";
    }
    lease 192.168.20.200 {
      starts 1 2011/10/17 13:21:48;
      ends 1 2011/10/17 13:31:48;
      cltt 1 2011/10/17 13:21:48;
      binding state active;
      next binding state free;
      hardware ethernet 00:24:54:d2:69:09;
      uid "\001\000$T\322i\011";
      client-hostname "rf510";
    }
    lease 192.168.20.200 {
      starts 1 2011/10/17 13:23:04;
      ends 1 2011/10/17 13:33:04;
      cltt 1 2011/10/17 13:23:04;
      binding state active;
      next binding state free;
      hardware ethernet 00:24:54:d2:69:09;
      uid "\001\000$T\322i\011";
      client-hostname "rf510";
    }
    lease 192.168.20.201 {
      starts 1 2011/10/17 13:23:15;
      ends 1 2011/10/17 13:33:15;
      cltt 1 2011/10/17 13:23:15;
      binding state active;
      next binding state free;
      hardware ethernet 00:19:e7:42:72:b5;
      uid "\001\000\031\347Br\265";
      client-hostname "SEP0019E74272B5";
    }
    lease 192.168.20.200 {
      starts 1 2011/10/17 13:28:04;
      ends 1 2011/10/17 13:38:04;
      cltt 1 2011/10/17 13:28:04;
      binding state active;
      next binding state free;
      hardware ethernet 00:24:54:d2:69:09;
      uid "\001\000$T\322i\011";
      client-hostname "rf510";
    }
    lease 192.168.20.201 {
      starts 1 2011/10/17 13:28:16;
      ends 1 2011/10/17 13:38:16;
      cltt 1 2011/10/17 13:28:16;
      binding state active;
      next binding state free;
      hardware ethernet 00:19:e7:42:72:b5;
      uid "\001\000\031\347Br\265";
      client-hostname "SEP0019E74272B5";
    }
    

    Статистика

    Время первой команды журнала11:38:18 2011-10-17
    Время последней команды журнала09:09:39 2011-10-18
    Количество командных строк в журнале100
    Процент команд с ненулевым кодом завершения, % 8.00
    Процент синтаксически неверно набранных команд, % 1.00
    Суммарное время работы с терминалом *, час 4.23
    Количество командных строк в единицу времени, команда/мин 0.39
    Частота использования команд
    ping10|=========| 9.71%
    ifconfig9|========| 8.74%
    route8|=======| 7.77%
    cat8|=======| 7.77%
    ls7|======| 6.80%
    ifdown6|=====| 5.83%
    /etc/init.d/asterisk5|====| 4.85%
    apt-cache5|====| 4.85%
    mc5|====| 4.85%
    cd4|===| 3.88%
    ps3|==| 2.91%
    apt-get3|==| 2.91%
    grep3|==| 2.91%
    find3|==| 2.91%
    asterisk2|=| 1.94%
    pwd2|=| 1.94%
    ifup2|=| 1.94%
    tail2|=| 1.94%
    /etc/init.d/isc-dhcp-server2|=| 1.94%
    nautilus2|=| 1.94%
    w2|=| 1.94%
    dpkg1|| 0.97%
    touch1|| 0.97%
    /etc/in1|| 0.97%
    LANG=ru_UA.UTF-81|| 0.97%
    echo1|| 0.97%
    less1|| 0.97%
    /etc/init.d/dhcp1|| 0.97%
    df1|| 0.97%
    mv1|| 0.97%
    /etc/init.d/networking1|| 0.97%
    ____
    *) Интервалы неактивности длительностью 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$