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

Содержание

Журнал

Четверг (10/28/10)

/dev/tty2
14:31:33
#modprobe -r ztdummy

14:31:36
#modprobe ztdummy

/dev/tty2
14:33:52
#/etc/init.d/festival start
Starting Festival server: festival.
/dev/pts/1
14:34:07
#lspci
00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02)
00:03.0 Communication controller: Intel Corporation 82Q35 Express MEI Controller (rev 02)
00:03.2 IDE interface: Intel Corporation 82Q35 Express PT IDER Controller (rev 02)
00:03.3 Serial controller: Intel Corporation 82Q35 Express Serial KT Controller (rev 02)
00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02)
14:34:15
#ls /dev/zap/
channel  ctl  pseudo  timer
/dev/tty3
14:34:24
#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
=========================================================================
...
    -- Executing [1794@group2:1] MeetMe("SIP/1701-08463d38", "100|M") in new stack
  == Parsing '/etc/asterisk/meetme.conf': Found
[Oct 28 16:36:29] WARNING[3433]: app_meetme.c:774 build_conf: Unable to open pseudo device
    -- <SIP/1701-08463d38> Playing 'conf-invalid' (language 'en')
  == Spawn extension (group2, 1794, 1) exited non-zero on 'SIP/1701-08463d38'
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
14:34:29
#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
=========================================================================
...
Verbosity is at least 3
linux7*CLI>
linux7*CLI>
    -- Executing [1794@group2:1] MeetMe("SIP/1701-08463d38", "100|M") in new stack
  == Parsing '/etc/asterisk/meetme.conf': Found
[Oct 28 16:34:40] WARNING[3144]: app_meetme.c:774 build_conf: Unable to open pseudo device
    -- <SIP/1701-08463d38> Playing 'conf-invalid' (language 'en')
  == Spawn extension (group2, 1794, 1) exited non-zero on 'SIP/1701-08463d38'
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
14:35:02
#ls -l /dev/zap/
итого 0
crw-rw---- 1 root dialout 196, 254 Окт 28 16:33 channel
crw-rw---- 1 root dialout 196,   0 Окт 28 16:33 ctl
crw-rw---- 1 root dialout 196, 255 Окт 28 16:33 pseudo
crw-rw---- 1 root dialout 196, 253 Окт 28 16:33 timer
14:35:05
#id asterisk
uid=110(asterisk) gid=117(asterisk) группы=117(asterisk),1000(leonid)
/dev/tty1
14:35:18
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/2
14:35:25
#vi /etc/group
--- /tmp/l3-saved-3357.460.19242	2010-10-28 16:35:28.000000000 +0400
+++ /etc/group	2010-10-28 16:35:54.000000000 +0400
@@ -12,7 +12,7 @@
 man:x:12:
 proxy:x:13:
 kmem:x:15:
-dialout:x:20:leonid
+dialout:x:20:leonid,asterisk
 fax:x:21:
 voice:x:22:
 cdrom:x:24:leonid
14:35:54
#ls -l /dev/zap/
итого 0
crw-rw---- 1 root dialout 196, 254 Окт 28 16:33 channel
crw-rw---- 1 root dialout 196,   0 Окт 28 16:33 ctl
crw-rw---- 1 root dialout 196, 255 Окт 28 16:33 pseudo
crw-rw---- 1 root dialout 196, 253 Окт 28 16:33 timer
14:35:57
#id asterisk
uid=110(asterisk) gid=117(asterisk) группы=117(asterisk),20(dialout),1000(leonid)
14:36:11
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
14:36:42
#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
=========================================================================
...
    -- <SIP/1701-08f254c0> Playing 'conf-onlyperson' (language 'en')
[Oct 28 16:37:13] NOTICE[3574]: rtp.c:788 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.107.201
    -- Started music on hold, class 'default', on SIP/1701-08f254c0
    -- Stopped music on hold on SIP/1701-08f254c0
    -- Hungup 'Zap/pseudo-1887643987'
  == Spawn extension (group2, 1794, 1) exited non-zero on 'SIP/1701-08f254c0'
linux7*CLI>
linux7*CLI>
linux7*CLI> quit
Executing last minute cleanups
/dev/tty3
14:36:42
#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
=========================================================================
...
    -- Executing [1501@group2:1] Macro("SIP/1701-b701af20", "dial-with-callerid|IAX2/ptr/1501") in new stack
    -- Executing [s@macro-dial-with-callerid:1] Set("SIP/1701-b701af20", "CALLERID(name)="Leonid (Moscow) (Russia)"") in new stack
    -- Executing [s@macro-dial-with-callerid:2] Dial("SIP/1701-b701af20", "IAX2/ptr/1501)") in new stack
    -- Called ptr/1501)
[Oct 28 17:18:47] WARNING[3550]: chan_iax2.c:7820 socket_process: Call rejected by 192.168.105.1: No such context/extension
    -- Hungup 'IAX2/ptr-13710'
  == Everyone is busy/congested at this time (1:0/0/1)
  == Auto fallthrough, channel 'SIP/1701-b701af20' status is 'CHANUNAVAIL'
quit
Executing last minute cleanups
/dev/tty1
14:36:47
#ssh 192.168.108.1
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: Thu Oct 28 15:40:08 2010 from 192.168.112.2
l3-agent is already running: pid=2156; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/2
14:37:36
#id asterisk
uid=110(asterisk) gid=117(asterisk) группы=117(asterisk),20(dialout),1000(leonid)
14:37:41
#ls -l /dev/zap/
итого 0
crw-rw---- 1 root dialout 196, 254 Окт 28 16:33 channel
crw-rw---- 1 root dialout 196,   0 Окт 28 16:33 ctl
crw-rw---- 1 root dialout 196, 255 Окт 28 16:33 pseudo
crw-rw---- 1 root dialout 196, 253 Окт 28 16:33 timer
14:37:47
#ls /etc/udev/
alsa-utils.rules  libmtp7.rules  rules.d
libgphoto2.rules  links.conf     udev.conf
14:37:55
#ls /etc/udev/rules.d/
024_hpmud.rules                   75-persistent-net-generator.rules
025_libgphoto2.rules              80-drivers.rules
11-hplj10xx.rules                 90-hal.rules
45-hplip.rules                    91-permissions.rules
50-udev.rules                     95-late.rules
55-hpmud.rules                    libmtp7.rules
60-persistent-input.rules         xpp.rules
60-persistent-storage.rules       z60_alsa-utils.rules
60-persistent-storage-tape.rules  z60_libpisock9.rules
60-persistent-v4l.rules           z60_libsane-extras.rules
70-persistent-cd.rules            z60_libsane.rules
70-persistent-net.rules           z60_libvpb0.vtcore.rules
75-cd-aliases-generator.rules     z60_xserver-xorg-input-wacom.rules
14:37:57
#grep /zap /etc/udev/rules.d/*
/etc/udev/rules.d/xpp.rules:    RUN+="/usr/share/zaptel/xpp_fxloader udev $sysfs{idVendor}/$sysfs{idProduct}/$sysfs{bcdDevice}"
/etc/udev/rules.d/xpp.rules:# By default XPP_INIT_DIR="/usr/share/zaptel"
14:38:20
#vi /etc/udev/rules.d/xpp.rules
14:38:46
#~
alsa-utils.rules  libmtp7.rules  rules.d
libgphoto2.rules  links.conf     udev.conf
14:39:05
#vi /etc/udev/rules.d/50-udev.rules
14:39:46
#/etc/udev/rules.d/91-permissions.rules
bash: /etc/udev/rules.d/91-permissions.rules: Отказано в доступе
14:40:03
#vi /etc/udev/rules.d/91-permissions.rules
14:40:11
#less /etc/asterisk/iax.conf
/dev/tty1
14:42:24
#screen -x
/dev/pts/2
14:42:47
#cp /etc/asterisk/sip.conf /etc/asterisk/iax.conf

/dev/tty2
14:48:21
#allowoverlap=no ; Disable overlap dialing support. (Default is y
[general]
                                ; Default context for incoming calls
context=default                 ; Disable overlap dialing support. (Default is y
es)owoverlap=no
                                ; UDP Port to bind to (SIP standard port is 5060
)indport=5060
bindaddr=0.0.0.0                ; Enable DNS SRV lookups on outbound callsall)
canreinvite=no
videosupport=yes
"/etc/asterisk/sip.conf" 71L, 1175C
...
;register => msk:1234@192.168.103.1/kv
;register => msk:1234@192.168.111.1/bb
[authentication]
[1701]
[1701]riend
;language=ru
secret=1234
host=dynamic
callerid="Leonid (Moscow)"
"/etc/asterisk/sip.conf" 71L, 1210C записано
14:49:27
#vim /etc/asterisk/iax.conf
--- /tmp/l3-saved-2931.26656.2424	2010-10-28 16:49:37.000000000 +0400
+++ /etc/asterisk/iax.conf	2010-10-28 16:50:58.000000000 +0400
@@ -1,7 +1,7 @@
 [general]
 context=default			; Default context for incoming calls
 allowoverlap=no			; Disable overlap dialing support. (Default is yes)
-bindport=5060			; UDP Port to bind to (SIP standard port is 5060)
+;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
 canreinvite=no
14:50:58
#vim /etc/asterisk/iax.conf
--- /tmp/l3-saved-2931.15084.17397	2010-10-28 16:52:52.000000000 +0400
+++ /etc/asterisk/iax.conf	2010-10-28 16:53:12.000000000 +0400
@@ -2,7 +2,7 @@
 context=default			; Default context for incoming 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)
+;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
 canreinvite=no
 videosupport=yes
@@ -13,7 +13,7 @@
 register => msk:1234@192.168.103.1/kv
 register => msk:1234@192.168.111.1/bb
 
-[authentication]
+;[authentication]
 [1701]
 type=friend
 ;language=ru
14:53:12
#vim /etc/asterisk/iax.conf
--- /tmp/l3-saved-2931.11490.12510	2010-10-28 16:54:43.000000000 +0400
+++ /etc/asterisk/iax.conf	2010-10-28 16:55:09.000000000 +0400
@@ -6,6 +6,7 @@
 srvlookup=yes			; Enable DNS SRV lookups on outbound calls
 canreinvite=no
 videosupport=yes
+trunk=yes
 	
 register => msk:1234@192.168.108.1/tl
 register => msk:1234@192.168.106.1/kzn
14:55:09
#vim /etc/asterisk/sip.conf
14:55:27
#allowoverlap=no ; Disable overlap dialing support. (Default is y
;type=friend
;language=ru
;secret=1234
;host=dynamic
[tl]
[- ]       --                                                 38,1          29%
[tl]=friend
-[1702]    --                                                 39,2          31%
host=dynamic
--         --                                                 40,2          33%
...
host=dynamic
--         --                                                 68,2          91%
secret=1234
--         --                                                 69,2          93%
username=msk
--         --                                                 70,2          95%
context=group1
-ontext=group1
                                                              72,1        Внизу
"/etc/asterisk/iax.conf" 72L, 1206C записано
14:56:12
#vim /etc/asterisk/iax.conf
--- /tmp/l3-saved-2931.3614.13606	2010-10-28 16:57:52.000000000 +0400
+++ /etc/asterisk/iax.conf	2010-10-28 16:58:32.000000000 +0400
@@ -8,11 +8,11 @@
 videosupport=yes
 trunk=yes
 	
-register => msk:1234@192.168.108.1/tl
-register => msk:1234@192.168.106.1/kzn
-register => msk:1234@192.168.105.1/ptr
-register => msk:1234@192.168.103.1/kv
-register => msk:1234@192.168.111.1/bb
+register => IAX2/msk:1234@192.168.108.1/tl
+register => IAX2/msk:1234@192.168.106.1/kzn
+register => IAX2/msk:1234@192.168.105.1/ptr
+register => IAX2/msk:1234@192.168.103.1/kv
+register => IAX2/msk:1234@192.168.111.1/bb
 
 ;[authentication]
 ;[1701]
15:02:39
#vim /etc/asterisk/sip.conf
15:06:30
#allowoverlap=no ; Disable overlap dialing support. (Default is y
[kv]
host=dynamic
secret=1234
username=msk
context=group1
[bb]
[bb]
host=dynamic
secret=1234
username=msk
type=friend1                                                  71,1          97%
15:07:11
#allowoverlap=no ; Disable overlap dialing support. (Default is y
exten => 1799,n,Hangup
exten => 1798,1,VoiceMailMain()
exten => 1796,1,Goto(menu,s,1)
exten => 1795,1,Answer
exten => 1795,n,SetMusicOnHold(default)
exten => 1794,1,MeetMe(100,M)
                      (100,M)
[macro-dial-with-callerid]
exten => s,n,Dial(${ARG1}))
[national]
...
exten => 1777,1,Festival(Welcome to Moscow call center!)
exten => _17XX,1,Macro(answer-with-monitor,${EXTEN})
[service]
exten => 1799,1,Answer
exten => 1799,n,Wait(1)
exten => 1799,n,Playback(demo-thanks)
exten => 1799,n,Hangup
exten => 1798,1,VoiceMailMain()
exten => 1796,1,Goto(menu,s,1)
include => local,Dial(SIP/1702){EXTEN})id,IAX2/ptr/${EXTEN})) 70,0-1        64%
/dev/tty4
15:10:35
#cd /etc/asterisk/

15:10:37
#vi iax.conf
/dev/tty5
15:16:54
#ssh linux5
The authenticity of host 'linux5 (192.168.105.1)' can't be established.
RSA key fingerprint is a8:20:0f:d6:b2:91:28:43:ee:36:02:27:88:87:2f:d5.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'linux5,192.168.105.1' (RSA) to the list of known hosts.
root@linux5's password:
Linux linux23.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
...
exten => 1599,n,Wait(1)
exten => 1599,n,Playback(/tmp/voicemail-greeting-${EXTEN})
exten => 1599,n,Hangup
exten => 1595,1,answer
exten => 1595,n,wait(1)
exten => 1595,n,Record(/tmp/voicemail-greeting-${CALLERID(number)}:gsm)
root@linux23:~# quit
-bash: quit: команда не найдена
root@linux23:~# logout
Connection to linux5 closed.
/dev/pts/5
15:19:02
#less /etc/asterisk/iax.conf
/dev/tty3
15:20:23
#cd /etc/asterisk/

15:20:29
#vi sip.conf
/dev/pts/5
15:21:02
#exten => 1799,n,Playback(demo-thanks)
exten => s,n,WaitExten(5)
exten => s,n,Background(/var/spool/asterisk/sounds/msg-2.wav)
exten => s,n,WaitExten(5)
exten => s,n,Background(/var/spool/asterisk/sounds/msg-7.wav)
exten => i,1,Background(/var/spool/asterisk/sounds/msg-3.wav)
exten => i,n,GoTo(s,start)
exten => 9,1,GoTo(s,start)
exten => 1,1,GoTo(submenu,s,1)
exten => 2,1,Background(/var/spool/asterisk/sounds/msg-5.wav)
                                                       35,1          11%
exten => 1796,1,Goto(menu,s,1)
exten => 1795,1,Answer
exten => 1795,n,SetMusicOnHold(default)
exten => 1794,1,MeetMe(100,M)
[macro-dial-with-callerid]
exten => s,n,Dial(${ARG1}))
                 ( {ARG1})
[national]
[        ]
"/etc/asterisk/extensions.conf" 117L, 3472C записано
15:26:18
#asterisk -rv
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
=========================================================================
...
Name/Username    Host                 Mask             Port          Status
bb/msk           192.168.111.1   (D)  255.255.255.255  4569          Unmonitored
kv/msk           192.168.103.1   (D)  255.255.255.255  4569          Unmonitored
ptr/msk          192.168.105.1   (D)  255.255.255.255  4569          Unmonitored
kzn/msk          192.168.106.1   (D)  255.255.255.255  4569          Unmonitored
tl/msk           192.168.108.1   (D)  255.255.255.255  4569          Unmonitored
5 iax2 peers [0 online, 0 offline, 5 unmonitored]
linux7*CLI>
linux7*CLI> quit
Executing last minute cleanups
15:30:48
#vi /etc/asterisk/iax.conf
--- /tmp/l3-saved-4418.24294.14531	2010-10-28 17:30:52.000000000 +0400
+++ /etc/asterisk/iax.conf	2010-10-28 17:30:59.000000000 +0400
@@ -1,4 +1,5 @@
 [general]
+qualify=yes
 context=default			; Default context for incoming calls
 allowoverlap=no			; Disable overlap dialing support. (Default is yes)
 ;bindport=5060			; UDP Port to bind to (SIP standard port is 5060)
15:31:36
#less /etc/asterisk/iax.conf.SAVE
/dev/pts/4
15:34:17
#less /etc/asterisk/iax.conf
прошло 19 минут
/dev/tty2
15:53:22
#cat /var/run/dhcp/dhcp.leases
cat: /var/run/dhcp/dhcp.leases: Нет такого файла или каталога
15:58:50
#ls /var/run/
acpid.pid     dbus        kerneloops.pid   sendmail
acpid.socket  dhcdbd.pid  motd             sm-notify.pid
asterisk      dhcpd.pid   network          sshd
atd.pid       exim4       NetworkManager   sshd.pid
avahi-daemon  gdm.pid     portmap_mapping  system-tools-backends.pid
bind          gdm_socket  portmap.pid      utmp
crond.pid     hal         rpc.statd.pid
crond.reboot  hplip       rsyslogd.pid
cups          inetd.pid   samba
15:59:01
#ls /var/log/
apt         dmesg       fontconfig.log  mail.log       syslog.3.gz
aptitude    dmesg.0     fsck            mail.warn      unattended-upgrades
asterisk    dmesg.1.gz  gdm             messages       user.log
auth.log    dmesg.2.gz  installer       news           wtmp
boot        dmesg.3.gz  kern.log        pycentral.log  Xorg.0.log
btmp        dmesg.4.gz  lastlog         samba          Xorg.0.log.old
cups        dpkg.log    lpr.log         syslog         Xorg.20.log
daemon.log  exim4       mail.err        syslog.1
debug       faillog     mail.info       syslog.2.gz
16:00:02
#ls /var/run/dhcp/
ls: невозможно получить доступ к /var/run/dhcp/: Нет такого файла или каталога
16:00:10
#ls /var/lib/
alsa/                hal/                 sendmail/
apt/                 iceweasel/           sgml-base/
aptitude/            initramfs-tools/     snmp/
asterisk/            initscripts/         synaptic/
bind/                libuuid/             tex-common/
dbus/                logrotate/           ucf/
defoma/              menu-xdg/            update-manager/
dhcp3/               misc/                update-notifier/
dictionaries-common/ mlocate/             urandom/
dpkg/                NetworkManager/      usbutils/
exim4/               nfs/                 vim/
gcj-4.3/             python-support/      x11/
gconf/               samba/               xkb/
gdm/                 security/            xml-core/
16:00:10
#ls /var/lib/d
dbus/                dhcp3/               dpkg/
defoma/              dictionaries-common/
16:00:10
#ls /var/lib/dhcp3/dhc
dhclient.leases  dhcpd.leases     dhcpd.leases~
/dev/pts/5
16:03:54
#vi /tmp/call
--- /dev/null	2010-10-28 16:33:13.503692945 +0400
+++ /tmp/call	2010-10-28 18:04:45.000000000 +0400
@@ -0,0 +1,3 @@
+Channel:SIP/1301 
+Extension:1303
+Context:service

Пятница (10/29/10)

/dev/tty1
08:36:52
#ssh 192.168.108.1
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: Fri Oct 29 09:49:28 2010 from linux5.unix.nt
Removing stale pidfile
Can't remove stale pidfile /root/.lilalo/l3-agent.pid : Нет такого файла или каталога at /usr/local/bin/l3-agent line 928.
/dev/pts/1
08:37:01
#lshw
bash: lshw: команда не найдена
08:37:03
#apt-get install lshw
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
НОВЫЕ пакеты, которые будут установлены:
  lshw
обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 4 пакетов не обновлено.
Необходимо скачать 318kБ архивов.
После данной операции, объём занятого дискового пространства возрастёт на 872kB.
Получено:1 http://10.0.35.1 lenny/main lshw 02.13-2 [318kB]
Получено 318kБ за 0s (10,5MБ/c)
Выбор ранее не выбранного пакета lshw.
(Чтение базы данных... на данный момент установлено 111538 файлов и каталогов.)
Распаковывается пакет lshw (из файла .../archives/lshw_02.13-2_i386.deb)...
Обрабатываются триггеры для man-db ...
Настраивается пакет lshw (02.13-2) ...
/dev/tty2
08:37:07
#/etc/init.d/festival start
Starting Festival server: festival.
/dev/tty3
08:37:15
#asterisk -rvv
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
=========================================================================
...
  == Spawn extension (macro-answer-with-monitor, s, 9) exited non-zero on 'SIP/1702-08d392f8'
[Oct 29 14:58:28] NOTICE[4388]: res_monitor.c:339 ast_monitor_stop: monitor executing /usr/local/bin/monitor_exec "/var/spool/asterisk/monitor/voice-1701-1702-1288349873-in.wav" "/var/spool/asterisk/monitor/voice-1701-1702-1288349873-out.wav" "/var/spool/asterisk/monitor/voice-1701-1702-1288349873.wav"  &
  == Parsing '/var/spool/asterisk/voicemail/default/1701/INBOX/msg0000.txt': Found
[Oct 29 14:59:14] NOTICE[4405]: rtp.c:788 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.107.201
  == Spawn extension (group2, 1798, 1) exited non-zero on 'SIP/1701-08d78568'
[Oct 29 15:00:10] NOTICE[2676]: chan_sip.c:14441 handle_request_invite: Call from '1702' to extension '1401' rejected because extension not found.
[Oct 29 15:00:30] WARNING[2676]: chan_sip.c:1950 retrans_pkt: Maximum retries exceeded on transmission 660227446797@192.168.107.203 for seqno 2 (Critical Response)
[Oct 29 15:06:33] NOTICE[2676]: chan_sip.c:14441 handle_request_invite: Call from '1701' to extension '1101' rejected because extension not found.
linux7*CLI> quit
Executing last minute cleanups
/dev/pts/1
08:37:24
#lshw |less
/dev/tty2
08:38:24
#ls pci
ls: невозможно получить доступ к pci: Нет такого файла или каталога
08:44:14
#lspci
00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02)
00:03.0 Communication controller: Intel Corporation 82Q35 Express MEI Controller (rev 02)
00:03.2 IDE interface: Intel Corporation 82Q35 Express PT IDER Controller (rev 02)
00:03.3 Serial controller: Intel Corporation 82Q35 Express Serial KT Controller (rev 02)
00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02)
08:44:35
#lspci|less
08:45:52
#lspci -n |less
08:46:12
#lspci|less
/dev/tty1
08:50:32
#screen -x
08:50:38
#screen -x
08:50:57
#screen -x
08:51:12
#screen -x
прошло 56 минут
/dev/pts/1
09:47:36
#asterisk -rv
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
=========================================================================
...
[Oct 29 11:47:55] NOTICE[3654]: chan_iax2.c:8935 iax2_poke_peer: Still have a callno...
[Oct 29 11:47:55] NOTICE[3654]: chan_iax2.c:8935 iax2_poke_peer: Still have a callno...
[Oct 29 11:47:55] NOTICE[3654]: chan_iax2.c:8935 iax2_poke_peer: Still have a callno...
[Oct 29 11:47:55] NOTICE[3654]: chan_iax2.c:8935 iax2_poke_peer: Still have a callno...
  == Parsing '/etc/asterisk/iaxprov.conf': Found
linux7*CLI>
linux7*CLI>
linux7*CLI>
linux7*CLI> exit
Executing last minute cleanups
прошло >3 часов
/dev/tty2
12:55:49
#/etc/init.d/festival start
Starting Festival server: festival/usr/bin/festival already running.
12:56:11
#ps -ax |grep fest
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
 3262 ?        S      0:00 /usr/bin/festival --server -b /etc/festival.scm
 4273 ?        Z      0:00 [festival] <defunct>
 4298 pts/3    S+     0:00 grep fest
12:56:25
#pkill festival

12:56:33
#ps -ax |grep fest
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
 4315 pts/3    R+     0:00 grep fest
12:56:35
#/etc/init.d/festival start
Starting Festival server: festival.
12:57:07
#/etc/init.d/festival start
Starting Festival server: festival.
12:57:14
#apt-get install ejabberd
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Будут установлены следующие дополнительные пакеты:
  erlang-base erlang-nox libsctp1 lksctp-tools
Предлагаемые пакеты:
  libunix-syslog-perl erlang-x11 erlang erlang-manpages erlang-doc-html
НОВЫЕ пакеты, которые будут установлены:
  ejabberd erlang-base erlang-nox libsctp1 lksctp-tools
обновлено 0, установлено 5 новых пакетов, для удаления отмечено 0 пакетов, и 4 пакетов не обновлено.
...
Настраивается пакет erlang-base (1:12.b.3-dfsg-4) ...
Searching for services which depend on erlang and should be started...none found.
Настраивается пакет erlang-nox (1:12.b.3-dfsg-4) ...
Настраивается пакет ejabberd (2.0.1-6+lenny2) ...
adduser: Предупреждение: домашний каталог `/var/lib/ejabberd' не принадлежит пользователю, который сейчас создаётся.
Generating SSL certificate /etc/ejabberd/ejabberd.pem...
Creating config file /etc/ejabberd/ejabberd.cfg with new version
Starting jabber server: ejabberd.
Настраивается пакет lksctp-tools (1.0.9.dfsg-1) ...
Обрабатываются триггеры для menu ...
прошло 27 минут
13:24:36
#dpkg-reconfigure ejabberd
            │ Введите пароль администратора ещё раз для проверки.  │
            │                                                      │
            │ Повторный ввод пароля администратора для проверки:   │
            │                                                      │
            â”***___________________________________________________ │
            │                                                      │
            │                        <Ok>                          │
            │                                                      │
            └──────────────────────────────────────────────────────┘
Replacing config file /etc/ejabberd/ejabberd.cfg with new version
Starting jabber server: ejabberd.
Waiting for ejabberd to register admin user
Admin user "leo@msk.unix.nt" is registered successfully.
13:25:55
#cat /etc/smbd.conf
cat: /etc/smbd.conf: Нет такого файла или каталога
прошло 79 минут
14:45:22
#cat /etc/samba/smbd.conf
cat: /etc/samba/smbd.conf: Нет такого файла или каталога
14:45:29
#cat /etc/samba/smb.conf
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
# Some options that are often worth tuning have been included as
...
# The CD-ROM gets unmounted automatically after the connection to the
#
# If you don't want to use auto-mounting/unmounting make sure the CD
#       is mounted on /cdrom
#
;   preexec = /bin/mount /cdrom
;   postexec = /bin/umount /cdrom
[monitor]
path=/var/spool/asterisk/monitor
read only = yes
прошло 48 минут
15:34:04
#[
Птн Окт 29 17:34:06 MSD 2010
15:34:06
#apt-get install sendxmpp
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Будут установлены следующие дополнительные пакеты:
  libauthen-sasl-perl libio-socket-ssl-perl libnet-libidn-perl
  libnet-ssleay-perl libnet-xmpp-perl libxml-stream-perl
Предлагаемые пакеты:
  libgssapi-perl
НОВЫЕ пакеты, которые будут установлены:
  libauthen-sasl-perl libio-socket-ssl-perl libnet-libidn-perl
...
Выбор ранее не выбранного пакета sendxmpp.
Распаковывается пакет sendxmpp (из файла .../sendxmpp_1.14-1_all.deb)...
Обрабатываются триггеры для man-db ...
Настраивается пакет libauthen-sasl-perl (2.12-1) ...
Настраивается пакет libnet-ssleay-perl (1.35-1) ...
Настраивается пакет libio-socket-ssl-perl (1.16-1+lenny1) ...
Настраивается пакет libnet-libidn-perl (0.07-1+b1) ...
Настраивается пакет libxml-stream-perl (1.22-3) ...
Настраивается пакет libnet-xmpp-perl (1.02-1) ...
Настраивается пакет sendxmpp (1.14-1) ...

Файлы

  • /etc/samba/smb.conf
  • /etc/samba/smb.conf
    >
    #
    # Sample configuration file for the Samba suite for Debian GNU/Linux.
    #
    #
    # This is the main Samba configuration file. You should read the
    # smb.conf(5) manual page in order to understand the options listed
    # here. Samba has a huge number of configurable options most of which
    # are not shown in this example
    #
    # Some options that are often worth tuning have been included as
    # commented-out examples in this file.
    #  - When such options are commented with ";", the proposed setting
    #    differs from the default Samba behaviour
    #  - When commented with "#", the proposed setting is the default
    #    behaviour of Samba but the option is considered important
    #    enough to be mentioned here
    #
    # NOTE: Whenever you modify this file you should run the command
    # "testparm" to check that you have not made any basic syntactic
    # errors.
    # A well-established practice is to name the original file
    # "smb.conf.master" and create the "real" config file with
    # testparm -s smb.conf.master >smb.conf
    # This minimizes the size of the really used smb.conf file
    # which, according to the Samba Team, impacts performance
    # However, use this with caution if your smb.conf file contains nested
    # "include" statements. See Debian bug #483187 for a case
    # where using a master file is not a good idea.
    #
    #======================= Global Settings =======================
    [global]
    ## Browsing/Identification ###
    # Change this to the workgroup/NT-domain name your Samba server will part of
       workgroup = WORKGROUP
    # server string is the equivalent of the NT Description field
       server string = %h server
    # Windows Internet Name Serving Support Section:
    # WINS Support - Tells the NMBD component of Samba to enable its WINS Server
    #   wins support = no
    # WINS Server - Tells the NMBD components of Samba to be a WINS Client
    # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
    ;   wins server = w.x.y.z
    # This will prevent nmbd to search for NetBIOS names through DNS.
       dns proxy = no
    # What naming service and in what order should we use to resolve host names
    # to IP addresses
    ;   name resolve order = lmhosts host wins bcast
    #### Networking ####
    # The specific set of interfaces / networks to bind to
    # This can be either the interface name or an IP address/netmask;
    # interface names are normally preferred
    ;   interfaces = 127.0.0.0/8 eth0
    # Only bind to the named interfaces and/or networks; you must use the
    # 'interfaces' option above to use this.
    # It is recommended that you enable this feature if your Samba machine is
    # not protected by a firewall or is a firewall itself.  However, this
    # option cannot handle dynamic or non-broadcast interfaces correctly.
    ;   bind interfaces only = yes
    #### Debugging/Accounting ####
    # This tells Samba to use a separate log file for each machine
    # that connects
       log file = /var/log/samba/log.%m
    # Cap the size of the individual log files (in KiB).
       max log size = 1000
    # If you want Samba to only log through syslog then set the following
    # parameter to 'yes'.
    #   syslog only = no
    # We want Samba to log a minimum amount of information to syslog. Everything
    # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
    # through syslog you should set the following parameter to something higher.
       syslog = 0
    # Do something sensible when Samba crashes: mail the admin a backtrace
       panic action = /usr/share/samba/panic-action %d
    ####### Authentication #######
    # "security = user" is always a good idea. This will require a Unix account
    # in this server for every user accessing the server. See
    # /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
    # in the samba-doc package for details.
    #   security = user
    # You may wish to use password encryption.  See the section on
    # 'encrypt passwords' in the smb.conf(5) manpage before enabling.
       encrypt passwords = true
    # If you are using encrypted passwords, Samba will need to know what
    # password database type you are using.
       passdb backend = tdbsam
       obey pam restrictions = yes
    # This boolean parameter controls whether Samba attempts to sync the Unix
    # password with the SMB password when the encrypted SMB password in the
    # passdb is changed.
       unix password sync = yes
    # For Unix password sync to work on a Debian GNU/Linux system, the following
    # parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
    # sending the correct chat script for the passwd program in Debian Sarge).
       passwd program = /usr/bin/passwd %u
       passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
    # This boolean controls whether PAM will be used for password changes
    # when requested by an SMB client instead of the program listed in
    # 'passwd program'. The default is 'no'.
       pam password change = yes
    ########## Domains ###########
    # Is this machine able to authenticate users. Both PDC and BDC
    # must have this setting enabled. If you are the BDC you must
    # change the 'domain master' setting to no
    #
    ;   domain logons = yes
    #
    # The following setting only takes effect if 'domain logons' is set
    # It specifies the location of the user's profile directory
    # from the client point of view)
    # The following required a [profiles] share to be setup on the
    # samba server (see below)
    ;   logon path = \\%N\profiles\%U
    # Another common choice is storing the profile in the user's home directory
    # (this is Samba's default)
    #   logon path = \\%N\%U\profile
    # The following setting only takes effect if 'domain logons' is set
    # It specifies the location of a user's home directory (from the client
    # point of view)
    ;   logon drive = H:
    #   logon home = \\%N\%U
    # The following setting only takes effect if 'domain logons' is set
    # It specifies the script to run during logon. The script must be stored
    # in the [netlogon] share
    # NOTE: Must be store in 'DOS' file format convention
    ;   logon script = logon.cmd
    # This allows Unix users to be created on the domain controller via the SAMR
    # RPC pipe.  The example command creates a user account with a disabled Unix
    # password; please adapt to your needs
    ; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
    # This allows machine accounts to be created on the domain controller via the
    # SAMR RPC pipe.
    # The following assumes a "machines" group exists on the system
    ; add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
    # This allows Unix groups to be created on the domain controller via the SAMR
    # RPC pipe.
    ; add group script = /usr/sbin/addgroup --force-badname %g
    ########## Printing ##########
    # If you want to automatically load your printer list rather
    # than setting them up individually then you'll need this
    #   load printers = yes
    # lpr(ng) printing. You may wish to override the location of the
    # printcap file
    ;   printing = bsd
    ;   printcap name = /etc/printcap
    # CUPS printing.  See also the cupsaddsmb(8) manpage in the
    # cupsys-client package.
    ;   printing = cups
    ;   printcap name = cups
    ############ Misc ############
    # Using the following line enables you to customise your configuration
    # on a per machine basis. The %m gets replaced with the netbios name
    # of the machine that is connecting
    ;   include = /home/samba/etc/smb.conf.%m
    # Most people will find that this option gives better performance.
    # See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/speed.html
    # for details
    # You may want to add the following on a Linux system:
    #         SO_RCVBUF=8192 SO_SNDBUF=8192
    #   socket options = TCP_NODELAY
    # The following parameter is useful only if you have the linpopup package
    # installed. The samba maintainer and the linpopup maintainer are
    # working to ease installation and configuration of linpopup and samba.
    ;   message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
    # Domain Master specifies Samba to be the Domain Master Browser. If this
    # machine will be configured as a BDC (a secondary logon server), you
    # must set this to 'no'; otherwise, the default behavior is recommended.
    #   domain master = auto
    # Some defaults for winbind (make sure you're not using the ranges
    # for something else.)
    ;   idmap uid = 10000-20000
    ;   idmap gid = 10000-20000
    ;   template shell = /bin/bash
    # The following was the default behaviour in sarge,
    # but samba upstream reverted the default because it might induce
    # performance issues in large organizations.
    # See Debian bug #368251 for some of the consequences of *not*
    # having this setting and smb.conf(5) for details.
    ;   winbind enum groups = yes
    ;   winbind enum users = yes
    # Setup usershare options to enable non-root users to share folders
    # with the net usershare command.
    # Maximum number of usershare. 0 (default) means that usershare is disabled.
    ;   usershare max shares = 100
    #======================= Share Definitions =======================
    [homes]
       comment = Home Directories
       browseable = no
    # By default, the home directories are exported read-only. Change the
    # next parameter to 'no' if you want to be able to write to them.
       read only = yes
    # File creation mask is set to 0700 for security reasons. If you want to
    # create files with group=rw permissions, set next parameter to 0775.
       create mask = 0700
    # Directory creation mask is set to 0700 for security reasons. If you want to
    # create dirs. with group=rw permissions, set next parameter to 0775.
       directory mask = 0700
    # By default, \\server\username shares can be connected to by anyone
    # with access to the samba server.
    # The following parameter makes sure that only "username" can connect
    # to \\server\username
    # This might need tweaking when using external authentication schemes
       valid users = %S
    # Un-comment the following and create the netlogon directory for Domain Logons
    # (you need to configure Samba to act as a domain controller too.)
    ;[netlogon]
    ;   comment = Network Logon Service
    ;   path = /home/samba/netlogon
    ;   guest ok = yes
    ;   read only = yes
    ;   share modes = no
    # Un-comment the following and create the profiles directory to store
    # users profiles (see the "logon path" option above)
    # (you need to configure Samba to act as a domain controller too.)
    # The path below should be writable by all users so that their
    # profile directory may be created the first time they log on
    ;[profiles]
    ;   comment = Users profiles
    ;   path = /home/samba/profiles
    ;   guest ok = no
    ;   browseable = no
    ;   create mask = 0600
    ;   directory mask = 0700
    [printers]
       comment = All Printers
       browseable = no
       path = /var/spool/samba
       printable = yes
       guest ok = no
       read only = yes
       create mask = 0700
    # Windows clients look for this share name as a source of downloadable
    # printer drivers
    [print$]
       comment = Printer Drivers
       path = /var/lib/samba/printers
       browseable = yes
       read only = yes
       guest ok = no
    # Uncomment to allow remote administration of Windows print drivers.
    # You may need to replace 'lpadmin' with the name of the group your
    # admin users are members of.
    # Please note that you also need to set appropriate Unix permissions
    # to the drivers directory for these users to have write rights in it
    ;   write list = root, @lpadmin
    # A sample share for sharing your CD-ROM with others.
    ;[cdrom]
    ;   comment = Samba server's CD-ROM
    ;   read only = yes
    ;   locking = no
    ;   path = /cdrom
    ;   guest ok = yes
    # The next two parameters show how to auto-mount a CD-ROM when the
    #       cdrom share is accesed. For this to work /etc/fstab must contain
    #       an entry like this:
    #
    #       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0
    #
    # The CD-ROM gets unmounted automatically after the connection to the
    #
    # If you don't want to use auto-mounting/unmounting make sure the CD
    #       is mounted on /cdrom
    #
    ;   preexec = /bin/mount /cdrom
    ;   postexec = /bin/umount /cdrom
    [monitor]
    path=/var/spool/asterisk/monitor
    read only = yes
    

    Статистика

    Время первой команды журнала14:31:33 2010-10-28
    Время последней команды журнала15:34:06 2010-10-29
    Количество командных строк в журнале88
    Процент команд с ненулевым кодом завершения, %14.77
    Процент синтаксически неверно набранных команд, % 2.27
    Суммарное время работы с терминалом *, час 2.28
    Количество командных строк в единицу времени, команда/мин 0.64
    Частота использования команд
    ls13|=============| 13.13%
    vi8|========| 8.08%
    less8|========| 8.08%
    asterisk7|=======| 7.07%
    vim6|======| 6.06%
    screen5|=====| 5.05%
    /etc/init.d/festival5|=====| 5.05%
    lspci5|=====| 5.05%
    Disable4|====| 4.04%
    allowoverlap=no4|====| 4.04%
    cat4|====| 4.04%
    id3|===| 3.03%
    apt-get3|===| 3.03%
    grep3|===| 3.03%
    ssh3|===| 3.03%
    ps2|==| 2.02%
    /etc/init.d/asterisk2|==| 2.02%
    lshw2|==| 2.02%
    cd2|==| 2.02%
    modprobe2|==| 2.02%
    cp1|=| 1.01%
    pkill1|=| 1.01%
    1799,n,Playback(demo-thanks)1|=| 1.01%
    dpkg-reconfigure1|=| 1.01%
    [1|=| 1.01%
    ~1|=| 1.01%
    exten1|=| 1.01%
    /etc/udev/rules.d/91-permissions.rules1|=| 1.01%
    ____
    *) Интервалы неактивности длительностью 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$