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

Содержание

Журнал

Понедельник (04/08/13)

/dev/pts/8
14:50:07
#47.[1K.[10D#0#0#.[1K.[10D2186#.[1K.[10D13654.[1K.[10D25407.[1K.[10D#/roo.[1K.
File: 29634235~.script  Line 1 Col 0       54877 bytes                        2%
Script started on Mon 08 Apr 2013 03:50:07 PM EEST
│'n     Name      │ Size  │Modify time ││'n     Name      │ Size  │Modify time │ilalo ────────────────────.[^]>┐
│/..              │UP--DIR│Apr  8 16:28││/..              │UP--DIR│Apr  8 15:49│
│/.config         │   4096│Apr  8 14:01││ .report.dat     │    185│Apr  8 15:58│
│/.dbus           │   4096│Apr  8 14:01││ 11356298~58.info│   1260│Apr  8 15:57│
│/.gconf          │   4096│Apr  8 14:01││ 11356298~.script│    268│Apr  8 15:57│
│/.gconfd         │   4096│Apr  8 15:57││ 17731993~07.info│    546│Apr  8 15:58│
│/.gnome2         │   4096│Apr  8 14:01││ 17731993~.script│  20850│Apr  8 15:58│
│/.gnupg          │   4096│Apr  8 1 29634235~07.info│    411│Apr  8 15:50r  8 15:50│
...
│/.ssh            │   4096│Apr  8 14:27││*l3prompt        │    234│Apr  8 14:09│
│/.update-notifier│   4096│Apr  8 14:01││ report.xml      │      0│Apr  8 15:58│
│/Desktop         │   4096│Apr  8 14:01││                 │       │            │
├──────────────────────────────────────┤├──────────────────────────────────────┤
│UP--DIR                               ││ 296342358341684508-13654scriptinfo   │
└────────────────────── 88G/92G (96%) ─┘└────────────────────── 88G/92G (96%) ─┘
Hint: Leap to frequently used directories in a single bound with C-\.
#                                                                            [^]
          Menu   3View   4Edit   5Copy   6RenMov 7Mkdir  8Delete 9PullDn
│.[30m.[46m/..              │UP--DIR│Apr  8 16:28.[37m.[44m│
/dev/pts/7
14:50:07
#47.[1K.[10D#0#0#.[1K.[10D2186#.[1K.[10D13654.[1K.[10D25407.[1K.[10D#/roo.[1K.
.[C.[C.[C.[C.[C.[C.[C.[C.[C.[C.[C.[C.[C.[C.[C.[C.[Cmc.[K...[1Pw.mc../etc/init.d/
isc-dhcp-server restart
........vim /etc/default/isc-dhcp-server
 /etc/default/isc-dhcp-server.[C
 /etc/default/isc-dhcp-server.[C
..[K..[K...mc
.[?1049h.[1;24r.[4l.[24;1H.(B.[m.[37m.[40m.(B.[m.[39;49m
File: 29634235~.script  Line 1 Col 0       54877 bytes                        2%
Script started on Mon 08 Apr 2013 03:50:07 PM EEST
│'n     Name      │ Size  │Modify time ││'n     Name      │ Size  │Modify time │ilalo ────────────────────.[^]>┐
...
│/.ssh            │   4096│Apr  8 14:27││*l3prompt        │    234│Apr  8 14:09│
│/.update-notifier│   4096│Apr  8 14:01││ report.xml      │      0│Apr  8 15:58│
│/Desktop         │   4096│Apr  8 14:01││                 │       │            │
├──────────────────────────────────────┤├──────────────────────────────────────┤
│UP--DIR                               ││ 296342358341684508-13654scriptinfo   │
└────────────────────── 88G/92G (96%) ─┘└────────────────────── 88G/92G (96%) ─┘
Hint: Leap to frequently used directories in a single bound with C-\.
#                                                                            [^]
          Menu   3View   4Edit   5Copy   6RenMov 7Mkdir  8Delete 9PullDn
│.[30m.[46m/..              │UP--DIR│Apr  8 16:28.[37m.[44m│
/dev/pts/8
14:50:07
#47.[1K.[10D#0#0#.[1K.[10D2186#.[1K.[10D13654.[1K.[10D25407.[1K.[10D#/roo.[1K.
}                            85                                              38
    <start_time>$start_time</start_time>
    <lang>$LANG</lang>
'`"
</session>=`uname -rs`
INFOunset parent system login_from start_time hostname tty
    start_time=`date +%s`
    hostname=`hostname -f 2> /dev/null`
    [ -n "$bsd" ] && hostname=`hostname`
    cat <<INFO > $L3_HOME/$L3_SESSION_ID.info
...
        echo '<history>'
l3_c    history | sed 's/&/\&amp;/; s/</\&lt;/g; s/>/\&gt;/g'
        echo '</history>'
{   ) >> $L3_HOME/$L3_SESSION_ID.info
    exec script $flush -q $L3_HOME/${L3_SESSION_ID}.script ${0#-}
}
    exec script $flush -c ${0#-} -q $L3_HOME/${L3_SESSION_ID}.script
_l3_init_prompt()
{   [ $UID = 0 ] \
    PS1='[\u@\h:\W]\$ '
/dev/pts/7
14:50:07
#47.[1K.[10D#0#0#.[1K.[10D2186#.[1K.[10D13654.[1K.[10D25407.[1K.[10D#/roo.[1K.
}                            57                                              29
    export L3_SESSION_ID=${RANDOM}${RANDOM}${RANDOM}${RANDOM}-`date +%s`
    export L3_HOME=~/.lilalo/
    mkdir -p $L3_HOME
    tty=`/usr/bin/tty`
    uname -a | egrep -qi '(bsd|darwin)' && bsd=yes
    parent=`cat /proc/$PPID/cmdline 2> /dev/null`
    [ -z "$parent" ] && parent="`ps waux | awk '{if ($2 == '$PPID') print $11; }
'`"
    system=`uname -rs`
...
        echo '</history>'
{   ) >> $L3_HOME/$L3_SESSION_ID.info
    exec script $flush -q $L3_HOME/${L3_SESSION_ID}.script ${0#-}
}
    exec script $flush -c ${0#-} -q $L3_HOME/${L3_SESSION_ID}.script
_l3_init_prompt()
    <ppid>$PPID</ppid>
{
    [ $UID = 0 ] \
    PS1='[\u@\h:\W]\$ '
/dev/pts/8
14:57:38
#47.[1K.[10D#0#0#.[1K.[10D2251#.[1K.[10D13654.[1K.[10D25858.[1K.[10D#/roo.[1K.
File: 17731993~.script  Line 1 Col 0       41238 bytes                        2%
Script started on Mon 08 Apr 2013 03:50:07 PM EEST
│'n     Name      │ Size  │Modify time ││'n     Name      │ Size  │Modify time │ilalo ────────────────────.[^]>┐
│/..              │UP--DIR│Apr  8 16:28││/..              │UP--DIR│Apr  8 15:49│
│/.config         │   4096│Apr  8 14:01││ .report.dat     │    185│Apr  8 15:58│
│/.dbus           │   4096│Apr  8 14:01││ 11356298~58.info│   1260│Apr  8 15:57│
│/.gconf          │   4096│Apr  8 14:01││ 11356298~.script│    268│Apr  8 15:57│
│/.gconfd         │   4096│Apr  8 1 17731993~07.info│    546│Apr  8 15:58r  8 15:58│
│/.gnome2         │   4096│Apr  8 1 17731993~.script│  20850│Apr  8 15:58r  8 15:58│
│/.gnupg          │   4096│Apr  8 14:01││ 29634235~07.info│    411│Apr  8 15:50│
...
    <lang>en_US.UTF-8</lang>
</session>
<cline>
   46  mc
</cline>
<cline>
   47  mc
</cline>
<cline>
   47  mc
/dev/pts/7
14:57:38
#47.[1K.[10D#0#0#.[1K.[10D2251#.[1K.[10D13654.[1K.[10D25858.[1K.[10D#/roo.[1K.
File: 17731993~.script  Line 1 Col 0       41238 bytes                        2%
Script started on Mon 08 Apr 2013 03:50:07 PM EEST
│'n     Name      │ Size  │Modify time ││'n     Name      │ Size  │Modify time │ilalo ────────────────────.[^]>┐
│/..              │UP--DIR│Apr  8 16:28││/..              │UP--DIR│Apr  8 15:49│
│/.config         │   4096│Apr  8 14:01││ .report.dat     │    185│Apr  8 15:58│
│/.dbus           │   4096│Apr  8 14:01││ 11356298~58.info│   1260│Apr  8 15:57│
│/.gconf          │   4096│Apr  8 14:01││ 11356298~.script│    268│Apr  8 15:57│
│/.gconfd         │   4096│Apr  8 1 17731993~07.info│    546│Apr  8 15:58r  8 15:58│
│/.gnome2         │   4096│Apr  8 1 17731993~.script│  20850│Apr  8 15:58r  8 15:58│
│/.gnupg          │   4096│Apr  8 14:01││ 29634235~07.info│    411│Apr  8 15:50│
...
    <lang>en_US.UTF-8</lang>
</session>
<cline>
   46  mc
</cline>
<cline>
   47  mc
</cline>
<cline>
   47  mc
/dev/pts/8
14:58:14
#mc
/dev/pts/7
14:58:14
#mc
/dev/pts/8
15:08:07
#apt-get install asterisk asterisk-config asterisk-sounds-main asterisk-sounds-extra
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  autopoint dahdi dahdi-linux debhelper fancontrol freetds-common fxload gettext git html2text intltool-debian libc-client2007e
  libcorosync4 libcurl3 liberror-perl libgmime-2.0-2a libiksemel3 libmail-sendmail-perl libopenais3 libopenr2-3 libpq5 libpri1.4
  libradiusclient-ng2 libresample1 libsensors4 libsnmp-base libsnmp15 libsox-fmt-alsa libsox-fmt-base libsox1b libspandsp2 libsqlite0
  libss7-1 libssh2-1 libsybdb5 libsys-hostname-long-perl libtonezone2.0 libunistring0 libvpb0 lm-sensors mlock module-assistant
  odbcinst odbcinst1debian2 po-debconf rsync sox unixodbc vpb-driver-source
Suggested packages:
...
Setting up unixodbc (2.2.14p2-1) ...
Setting up asterisk (1:1.6.2.9-2+squeeze10) ...
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
15:08:07
#apt-get install asterisk asterisk-config asterisk-sounds-main asterisk-sounds-extra
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  autopoint dahdi dahdi-linux debhelper fancontrol freetds-common fxload gettext git html2text intltool-debian libc-client2007e
  libcorosync4 libcurl3 liberror-perl libgmime-2.0-2a libiksemel3 libmail-sendmail-perl libopenais3 libopenr2-3 libpq5 libpri1.4
  libradiusclient-ng2 libresample1 libsensors4 libsnmp-base libsnmp15 libsox-fmt-alsa libsox-fmt-base libsox1b libspandsp2 libsqlite0
  libss7-1 libssh2-1 libsybdb5 libsys-hostname-long-perl libtonezone2.0 libunistring0 libvpb0 lm-sensors mlock module-assistant
  odbcinst odbcinst1debian2 po-debconf rsync sox unixodbc vpb-driver-source
Suggested packages:
...
Setting up unixodbc (2.2.14p2-1) ...
Setting up asterisk (1:1.6.2.9-2+squeeze10) ...
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/8
15:18:04
#ls /etc/asterisk/
adsi.conf               cdr_pgsql.conf           extconfig.conf          indications.conf  oss.conf                sip_notify.conf
adtranvofr.conf         cdr_sqlite3_custom.conf  extensions.ael          jabber.conf       phone.conf              skinny.conf
agents.conf             cdr_tds.conf             extensions.conf         jingle.conf       phoneprov.conf          sla.conf
ais.conf                chan_dahdi.conf          extensions.lua          logger.conf       queuerules.conf         smdi.conf
alarmreceiver.conf      cli_aliases.conf         extensions_minivm.conf  manager.conf      queues.conf             telcordia-1.adsi
alsa.conf               cli.conf                 features.conf           manager.d         res_config_sqlite.conf  udptl.conf
amd.conf                cli_permissions.conf     festival.conf           meetme.conf       res_ldap.conf           unistim.conf
asterisk.adsi           codecs.conf              followme.conf           mgcp.conf         res_odbc.conf           usbradio.conf
asterisk.conf           console.conf             func_odbc.conf          minivm.conf       res_pgsql.conf          users.conf
cdr_adaptive_odbc.conf  dbsep.conf               gtalk.conf              misdn.conf        res_snmp.conf           voicemail.conf
cdr.conf                dnsmgr.conf              h323.conf               modules.conf      rpt.conf                vpb.conf
cdr_custom.conf         dsp.conf                 http.conf               musiconhold.conf  rtp.conf
cdr_manager.conf        dundi.conf               iax.conf                muted.conf        say.conf
cdr_odbc.conf           enum.conf                iaxprov.conf            osp.conf          sip.conf
/dev/pts/7
15:18:04
#ls /etc/asterisk/
adsi.conf               cdr_pgsql.conf           extconfig.conf          indications.conf  oss.conf                sip_notify.conf
adtranvofr.conf         cdr_sqlite3_custom.conf  extensions.ael          jabber.conf       phone.conf              skinny.conf
agents.conf             cdr_tds.conf             extensions.conf         jingle.conf       phoneprov.conf          sla.conf
ais.conf                chan_dahdi.conf          extensions.lua          logger.conf       queuerules.conf         smdi.conf
alarmreceiver.conf      cli_aliases.conf         extensions_minivm.conf  manager.conf      queues.conf             telcordia-1.adsi
alsa.conf               cli.conf                 features.conf           manager.d         res_config_sqlite.conf  udptl.conf
amd.conf                cli_permissions.conf     festival.conf           meetme.conf       res_ldap.conf           unistim.conf
asterisk.adsi           codecs.conf              followme.conf           mgcp.conf         res_odbc.conf           usbradio.conf
asterisk.conf           console.conf             func_odbc.conf          minivm.conf       res_pgsql.conf          users.conf
cdr_adaptive_odbc.conf  dbsep.conf               gtalk.conf              misdn.conf        res_snmp.conf           voicemail.conf
cdr.conf                dnsmgr.conf              h323.conf               modules.conf      rpt.conf                vpb.conf
cdr_custom.conf         dsp.conf                 http.conf               musiconhold.conf  rtp.conf
cdr_manager.conf        dundi.conf               iax.conf                muted.conf        say.conf
cdr_odbc.conf           enum.conf                iaxprov.conf            osp.conf          sip.conf
/dev/pts/8
15:18:16
#mc
/dev/pts/7
15:18:16
#mc
прошло 14 минут
/dev/pts/8
15:32:27
#/etc/init.d/asterisk start
Asterisk PBX is already running. Use restart.
/dev/pts/7
15:32:27
#/etc/init.d/asterisk start
Asterisk PBX is already running. Use restart.
/dev/pts/8
15:32:47
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/7
15:32:47
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/8
15:32:53
#ps -ax
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
  PID TTY      STAT   TIME COMMAND
    1 ?        S      0:01 init [2]
    2 ?        S      0:00 [kthreadd]
    3 ?        S      0:00 [ksoftirqd/0]
    6 ?        S      0:00 [migration/0]
    7 ?        S      0:00 [watchdog/0]
    8 ?        S      0:00 [migration/1]
   10 ?        S      0:00 [ksoftirqd/1]
   12 ?        S      0:00 [watchdog/1]
...
24782 ?        S      0:00 [jfsSync]
32571 ?        S      0:00 [kworker/3:2]
32646 ?        Sl     0:00 /usr/sbin/gdm3
32652 ?        Sl     0:00 /usr/lib/gdm3/gdm-simple-slave --display-id /org/gnome/DisplayManager/Display1
32654 tty7     Ss+    1:41 /usr/bin/Xorg :0 -br -verbose -audit 0 -novtswitch -auth /var/run/gdm3/auth-for-Debian-gdm-kTQwhU/database -n
32667 ?        Sl     0:00 /usr/sbin/console-kit-daemon --no-daemon
32762 ?        S      0:00 /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
32763 ?        Sl     0:00 /usr/lib/gdm3/gdm-session-worker
32765 ?        S      0:00 /usr/lib/upower/upowerd
32767 ?        S      0:00 /usr/lib/policykit-1/polkitd
/dev/pts/7
15:32:53
#ps -ax
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
  PID TTY      STAT   TIME COMMAND
    1 ?        S      0:01 init [2]
    2 ?        S      0:00 [kthreadd]
    3 ?        S      0:00 [ksoftirqd/0]
    6 ?        S      0:00 [migration/0]
    7 ?        S      0:00 [watchdog/0]
    8 ?        S      0:00 [migration/1]
   10 ?        S      0:00 [ksoftirqd/1]
   12 ?        S      0:00 [watchdog/1]
...
24782 ?        S      0:00 [jfsSync]
32571 ?        S      0:00 [kworker/3:2]
32646 ?        Sl     0:00 /usr/sbin/gdm3
32652 ?        Sl     0:00 /usr/lib/gdm3/gdm-simple-slave --display-id /org/gnome/DisplayManager/Display1
32654 tty7     Ss+    1:41 /usr/bin/Xorg :0 -br -verbose -audit 0 -novtswitch -auth /var/run/gdm3/auth-for-Debian-gdm-kTQwhU/database -n
32667 ?        Sl     0:00 /usr/sbin/console-kit-daemon --no-daemon
32762 ?        S      0:00 /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
32763 ?        Sl     0:00 /usr/lib/gdm3/gdm-session-worker
32765 ?        S      0:00 /usr/lib/upower/upowerd
32767 ?        S      0:00 /usr/lib/policykit-1/polkitd
15:33:42
#mc
/dev/pts/8
15:33:42
#mc
15:36:09
#mc
/dev/pts/7
15:36:09
#mc
/dev/pts/8
15:37:26
#mc
/dev/pts/7
15:37:26
#mc
/dev/pts/8
15:46:05
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux1 (pid = 4909)
linux1*CLI> sip reload
[Apr  8 16:47:21] WARNING[4951]: config.c:1100 process_text_line: parse error: No category context for line 1 of /etc/asterisk/sip.conf
[Apr  8 16:47:21] ERROR[4951]: chan_sip.c:24596 reload_config: Contents of sip.conf are invalid and cannot be parsed
linux1*CLI> exit
/dev/pts/7
15:46:05
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux1 (pid = 4909)
linux1*CLI> sip reload
[Apr  8 16:47:21] WARNING[4951]: config.c:1100 process_text_line: parse error: No category context for line 1 of /etc/asterisk/sip.conf
[Apr  8 16:47:21] ERROR[4951]: chan_sip.c:24596 reload_config: Contents of sip.conf are invalid and cannot be parsed
linux1*CLI> exit
/dev/pts/8
15:48:24
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2186.7049.17060	2013-04-08 16:48:43.000000000 +0300
+++ /etc/asterisk/sip.conf	2013-04-08 16:49:05.000000000 +0300
@@ -1,3 +1,4 @@
+[general]
 context=default
 
 ;SIP peer
/dev/pts/7
15:48:24
#vim /etc/asterisk/sip.conf

Вторник (04/09/13)

/dev/pts/2
08:25:26
#netstat -anp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:5038          0.0.0.0:*               LISTEN      1474/asterisk
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      825/portmap
tcp        0      0 0.0.0.0:2000            0.0.0.0:*               LISTEN      1474/asterisk
tcp        0      0 0.0.0.0:54003           0.0.0.0:*               LISTEN      837/rpc.statd
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1961/exim4
tcp6       0      0 ::1:25                  :::*                    LISTEN      1961/exim4
udp        0      0 0.0.0.0:5000            0.0.0.0:*                           1474/asterisk
udp        0      0 0.0.0.0:4520            0.0.0.0:*                           1474/asterisk
...
unix  3      [ ]         STREAM     CONNECTED     6326     1192/dbus-daemon    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     5491     1429/NetworkManager
unix  2      [ ]         DGRAM                    5487     1429/NetworkManager
unix  3      [ ]         STREAM     CONNECTED     5445     1192/dbus-daemon
unix  3      [ ]         STREAM     CONNECTED     5444     1192/dbus-daemon
unix  2      [ ]         DGRAM                    10000    1203/dhcpd
unix  2      [ ]         DGRAM                    5436     1131/anacron
unix  2      [ ]         DGRAM                    9965     1116/acpid
unix  3      [ ]         DGRAM                    9221     311/udevd
unix  3      [ ]         DGRAM                    9220     311/udevd
/dev/pts/1
08:25:26
#netstat -anp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:5038          0.0.0.0:*               LISTEN      1474/asterisk
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      825/portmap
tcp        0      0 0.0.0.0:2000            0.0.0.0:*               LISTEN      1474/asterisk
tcp        0      0 0.0.0.0:54003           0.0.0.0:*               LISTEN      837/rpc.statd
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1961/exim4
tcp6       0      0 ::1:25                  :::*                    LISTEN      1961/exim4
udp        0      0 0.0.0.0:5000            0.0.0.0:*                           1474/asterisk
udp        0      0 0.0.0.0:4520            0.0.0.0:*                           1474/asterisk
...
unix  3      [ ]         STREAM     CONNECTED     6326     1192/dbus-daemon    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     5491     1429/NetworkManager
unix  2      [ ]         DGRAM                    5487     1429/NetworkManager
unix  3      [ ]         STREAM     CONNECTED     5445     1192/dbus-daemon
unix  3      [ ]         STREAM     CONNECTED     5444     1192/dbus-daemon
unix  2      [ ]         DGRAM                    10000    1203/dhcpd
unix  2      [ ]         DGRAM                    5436     1131/anacron
unix  2      [ ]         DGRAM                    9965     1116/acpid
unix  3      [ ]         DGRAM                    9221     311/udevd
unix  3      [ ]         DGRAM                    9220     311/udevd
/dev/pts/2
08:25:37
#netstat -anp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:5038          0.0.0.0:*               LISTEN      1474/asterisk
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      825/portmap
tcp        0      0 0.0.0.0:2000            0.0.0.0:*               LISTEN      1474/asterisk
tcp        0      0 0.0.0.0:54003           0.0.0.0:*               LISTEN      837/rpc.statd
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1961/exim4
tcp6       0      0 ::1:25                  :::*                    LISTEN      1961/exim4
udp        0      0 0.0.0.0:5000            0.0.0.0:*                           1474/asterisk
udp        0      0 0.0.0.0:4520            0.0.0.0:*                           1474/asterisk
...
unix  3      [ ]         STREAM     CONNECTED     6326     1192/dbus-daemon    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     5491     1429/NetworkManager
unix  2      [ ]         DGRAM                    5487     1429/NetworkManager
unix  3      [ ]         STREAM     CONNECTED     5445     1192/dbus-daemon
unix  3      [ ]         STREAM     CONNECTED     5444     1192/dbus-daemon
unix  2      [ ]         DGRAM                    10000    1203/dhcpd
unix  2      [ ]         DGRAM                    5436     1131/anacron
unix  2      [ ]         DGRAM                    9965     1116/acpid
unix  3      [ ]         DGRAM                    9221     311/udevd
unix  3      [ ]         DGRAM                    9220     311/udevd
/dev/pts/1
08:25:37
#netstat -anp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:5038          0.0.0.0:*               LISTEN      1474/asterisk
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      825/portmap
tcp        0      0 0.0.0.0:2000            0.0.0.0:*               LISTEN      1474/asterisk
tcp        0      0 0.0.0.0:54003           0.0.0.0:*               LISTEN      837/rpc.statd
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1961/exim4
tcp6       0      0 ::1:25                  :::*                    LISTEN      1961/exim4
udp        0      0 0.0.0.0:5000            0.0.0.0:*                           1474/asterisk
udp        0      0 0.0.0.0:4520            0.0.0.0:*                           1474/asterisk
...
unix  3      [ ]         STREAM     CONNECTED     6326     1192/dbus-daemon    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     5491     1429/NetworkManager
unix  2      [ ]         DGRAM                    5487     1429/NetworkManager
unix  3      [ ]         STREAM     CONNECTED     5445     1192/dbus-daemon
unix  3      [ ]         STREAM     CONNECTED     5444     1192/dbus-daemon
unix  2      [ ]         DGRAM                    10000    1203/dhcpd
unix  2      [ ]         DGRAM                    5436     1131/anacron
unix  2      [ ]         DGRAM                    9965     1116/acpid
unix  3      [ ]         DGRAM                    9221     311/udevd
unix  3      [ ]         DGRAM                    9220     311/udevd
/dev/pts/2
08:25:52
#cd /etc/asterisk/

/dev/pts/1
08:25:52
#cd /etc/asterisk/

/dev/pts/5
08:27:31
#vim
/dev/pts/4
08:27:31
#vim
/dev/pts/5
08:28:35
#~
;SIP peer
[1101]
[1101]riend
secret=1234
host=dynamic
[1102]
[1102]k
[1103]ago
[1103]
[chicago]
...
context=phones
;SmartPhone
[1103]
[1103]riend
secret=1234
host=dynamic
callerid="Samsung_wi-fi"
allowsubscribe=yes
context=phones
-- INSERT --                                                             22,1          20%
/dev/pts/4
08:28:35
#~
[1103]
[1103]asterisk/sip.conf" 26L, 208C written                    25,9          Bot
[chicago]
type=peer
secret=1234
; Chicago
[chicago]
[       ]
secret=1234
username=boston
...
context=phones
;SmartPhone
[1103]
[1103]riend
secret=1234
host=dynamic
callerid="Samsung_wi-fi"
allowsubscribe=yes
context=phones
-- INSERT --                                                             22,1          20%
/dev/pts/2
08:30:11
#ls -l
total 672
-rw-r----- 1 asterisk asterisk   140 Jan 14 20:35 adsi.conf
-rw-r----- 1 asterisk asterisk   840 Jan 14 20:35 adtranvofr.conf
-rw-r----- 1 asterisk asterisk  3035 Jan 14 20:35 agents.conf
-rw-r----- 1 asterisk asterisk  2906 Jan 14 20:35 ais.conf
-rw-r----- 1 asterisk asterisk  2227 Jan 14 20:35 alarmreceiver.conf
-rw-r----- 1 asterisk asterisk  3259 Jan 14 20:35 alsa.conf
-rw-r----- 1 asterisk asterisk   767 Jan 14 20:35 amd.conf
-rw-r----- 1 asterisk asterisk  3260 Jan 14 20:35 asterisk.adsi
-rw-r----- 1 asterisk asterisk  3234 Jan 14 20:35 asterisk.conf
...
-rw-r----- 1 asterisk asterisk  9135 Jan 14 20:35 skinny.conf
-rw-r----- 1 asterisk asterisk  6717 Jan 14 20:35 sla.conf
-rw-r----- 1 asterisk asterisk  2669 Jan 14 20:35 smdi.conf
-rw-r----- 1 asterisk asterisk  1384 Jan 14 20:35 telcordia-1.adsi
-rw-r----- 1 asterisk asterisk   656 Jan 14 20:35 udptl.conf
-rw-r----- 1 asterisk asterisk  4909 Jan 14 20:35 unistim.conf
-rw-r----- 1 asterisk asterisk  3216 Jan 14 20:35 usbradio.conf
-rw-r----- 1 asterisk asterisk  2011 Jan 14 20:35 users.conf
-rw-r----- 1 asterisk asterisk 17961 Jan 14 20:35 voicemail.conf
-rw-r----- 1 asterisk asterisk  5939 Jan 14 20:35 vpb.conf
/dev/pts/1
08:30:11
#ls -l
total 672
-rw-r----- 1 asterisk asterisk   140 Jan 14 20:35 adsi.conf
-rw-r----- 1 asterisk asterisk   840 Jan 14 20:35 adtranvofr.conf
-rw-r----- 1 asterisk asterisk  3035 Jan 14 20:35 agents.conf
-rw-r----- 1 asterisk asterisk  2906 Jan 14 20:35 ais.conf
-rw-r----- 1 asterisk asterisk  2227 Jan 14 20:35 alarmreceiver.conf
-rw-r----- 1 asterisk asterisk  3259 Jan 14 20:35 alsa.conf
-rw-r----- 1 asterisk asterisk   767 Jan 14 20:35 amd.conf
-rw-r----- 1 asterisk asterisk  3260 Jan 14 20:35 asterisk.adsi
-rw-r----- 1 asterisk asterisk  3234 Jan 14 20:35 asterisk.conf
...
-rw-r----- 1 asterisk asterisk  9135 Jan 14 20:35 skinny.conf
-rw-r----- 1 asterisk asterisk  6717 Jan 14 20:35 sla.conf
-rw-r----- 1 asterisk asterisk  2669 Jan 14 20:35 smdi.conf
-rw-r----- 1 asterisk asterisk  1384 Jan 14 20:35 telcordia-1.adsi
-rw-r----- 1 asterisk asterisk   656 Jan 14 20:35 udptl.conf
-rw-r----- 1 asterisk asterisk  4909 Jan 14 20:35 unistim.conf
-rw-r----- 1 asterisk asterisk  3216 Jan 14 20:35 usbradio.conf
-rw-r----- 1 asterisk asterisk  2011 Jan 14 20:35 users.conf
-rw-r----- 1 asterisk asterisk 17961 Jan 14 20:35 voicemail.conf
-rw-r----- 1 asterisk asterisk  5939 Jan 14 20:35 vpb.conf
/dev/pts/2
08:30:14
#vim ./extensions.conf
--- /tmp/l3-saved-2081.3198.17080	2013-04-09 09:30:28.000000000 +0300
+++ ./extensions.conf	2013-04-09 10:58:04.000000000 +0300
@@ -8,3 +8,8 @@
 exten => _1101XX,1,Dial(SIP/${EXTEN:2})
 exten => _1101XX10,1,Dial(SIP/${EXTEN:2:4})
 
+exten => _12XX,1,Dial(SIP/chicago/${EXTEN})
+exten => _2XXX,1,Dial(SIP/minsk/${EXTEN})
+exten => _14XX,1,Dial(SIP/harare/${EXTEN})
+exten => _13XX,1,Dial(SIP/harare/${EXTEN})
+
/dev/pts/1
08:30:14
#vim ./extensions.conf
/dev/pts/8
08:31:49
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux1 (pid = 1474)
linux1*CLI> show sip peers
No such command 'show sip peers' (type 'core show help show sip' for other possible commands)
...
[Apr  9 11:29:03] NOTICE[1513]: chan_sip.c:11726 sip_reg_timeout:    -- Registration for 'boston@192.168.60.1' timed out, trying again (Attempt #6)
[Apr  9 11:29:23] NOTICE[1513]: chan_sip.c:11726 sip_reg_timeout:    -- Registration for 'boston@192.168.60.1' timed out, trying again (Attempt #7)
[Apr  9 11:29:43] NOTICE[1513]: chan_sip.c:11726 sip_reg_timeout:    -- Registration for 'boston@192.168.60.1' timed out, trying again (Attempt #8)
[Apr  9 11:30:03] NOTICE[1513]: chan_sip.c:11726 sip_reg_timeout:    -- Registration for 'boston@192.168.60.1' timed out, trying again (Attempt #9)
[Apr  9 11:30:23] NOTICE[1513]: chan_sip.c:11726 sip_reg_timeout:    -- Registration for 'boston@192.168.60.1' timed out, trying again (Attempt #10)
[Apr  9 11:30:43] NOTICE[1513]: chan_sip.c:11726 sip_reg_timeout:    -- Registration for 'boston@192.168.60.1' timed out, trying again (Attempt #11)
[Apr  9 11:31:03] NOTICE[1513]: chan_sip.c:11726 sip_reg_timeout:    -- Registration for 'boston@192.168.60.1' timed out, trying again (Attempt #12)
[Apr  9 11:31:23] NOTICE[1513]: chan_sip.c:11726 sip_reg_timeout:    -- Registration for 'boston@192.168.60.1' timed out, trying again (Attempt #13)
linux1*CLI> sip reload
linux1*CLI> quit
/dev/pts/0
08:31:49
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux1 (pid = 1474)
linux1*CLI> show sip peers
No such command 'show sip peers' (type 'core show help show sip' for other possible commands)
...
[Apr  9 11:29:03] NOTICE[1513]: chan_sip.c:11726 sip_reg_timeout:    -- Registration for 'boston@192.168.60.1' timed out, trying again (Attempt #6)
[Apr  9 11:29:23] NOTICE[1513]: chan_sip.c:11726 sip_reg_timeout:    -- Registration for 'boston@192.168.60.1' timed out, trying again (Attempt #7)
[Apr  9 11:29:43] NOTICE[1513]: chan_sip.c:11726 sip_reg_timeout:    -- Registration for 'boston@192.168.60.1' timed out, trying again (Attempt #8)
[Apr  9 11:30:03] NOTICE[1513]: chan_sip.c:11726 sip_reg_timeout:    -- Registration for 'boston@192.168.60.1' timed out, trying again (Attempt #9)
[Apr  9 11:30:23] NOTICE[1513]: chan_sip.c:11726 sip_reg_timeout:    -- Registration for 'boston@192.168.60.1' timed out, trying again (Attempt #10)
[Apr  9 11:30:43] NOTICE[1513]: chan_sip.c:11726 sip_reg_timeout:    -- Registration for 'boston@192.168.60.1' timed out, trying again (Attempt #11)
[Apr  9 11:31:03] NOTICE[1513]: chan_sip.c:11726 sip_reg_timeout:    -- Registration for 'boston@192.168.60.1' timed out, trying again (Attempt #12)
[Apr  9 11:31:23] NOTICE[1513]: chan_sip.c:11726 sip_reg_timeout:    -- Registration for 'boston@192.168.60.1' timed out, trying again (Attempt #13)
linux1*CLI> sip reload
linux1*CLI> quit
прошло 119 минут
/dev/pts/8
10:31:45
#/etc/init.d/asterisk reload
Reloading Asterisk PBX configuration files.
/dev/pts/0
10:31:45
#/etc/init.d/asterisk reload
Reloading Asterisk PBX configuration files.
/dev/pts/8
10:32:03
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux1 (pid = 1474)
...
    -- Registered extension context 'ael-dundi-e164-customers' (0x8c87d60) in local table 0x8cb01f0; registrar: pbx_ael
    -- merging incls/swits/igpats from old(ael-dundi-e164-customers) to new(ael-dundi-e164-customers) context, registrar = pbx_config
    -- Registered extension context 'ael-dundi-e164-canonical' (0x8c9f6e8) in local table 0x8cb01f0; registrar: pbx_ael
    -- merging incls/swits/igpats from old(ael-dundi-e164-canonical) to new(ael-dundi-e164-canonical) context, registrar = pbx_config
    -- Time to scan old dialplan and merge leftovers back into the new: 0.000199 sec
    -- Time to restore hints and swap in new dialplan: 0.000001 sec
    -- Time to delete the old dialplan: 0.000019 sec
    -- Total time merge_contexts_delete: 0.000219 sec
linux1*CLI> quit
Executing last minute cleanups
/dev/pts/0
10:32:03
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux1 (pid = 1474)
...
    -- Registered extension context 'ael-dundi-e164-customers' (0x8c87d60) in local table 0x8cb01f0; registrar: pbx_ael
    -- merging incls/swits/igpats from old(ael-dundi-e164-customers) to new(ael-dundi-e164-customers) context, registrar = pbx_config
    -- Registered extension context 'ael-dundi-e164-canonical' (0x8c9f6e8) in local table 0x8cb01f0; registrar: pbx_ael
    -- merging incls/swits/igpats from old(ael-dundi-e164-canonical) to new(ael-dundi-e164-canonical) context, registrar = pbx_config
    -- Time to scan old dialplan and merge leftovers back into the new: 0.000199 sec
    -- Time to restore hints and swap in new dialplan: 0.000001 sec
    -- Time to delete the old dialplan: 0.000019 sec
    -- Total time merge_contexts_delete: 0.000219 sec
linux1*CLI> quit
Executing last minute cleanups
прошла 91 минута
/dev/pts/8
12:03:12
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux1 (pid = 1474)
Verbosity is at least 3
linux1*CLI> dialplan reload
...
linux1*CLI>
!            ael          agent        agi          cdr          channel      cli          config
console      core         dahdi        database     devstate     dialplan     dnsmgr       dundi
features     file         group        gtalk        hangup       help         http         iax2
indication   jabber       jingle       keys         local        logger       manager      meetme
mfcr2        mgcp         minivm       mixmonitor   module       moh          no           odbc
originate    parkedcalls  phoneprov    pri          queue        realtime     reload       rtcp
rtp          say          sip          skinny       sla          sqlite       ss7          stun
timing       transcoder   udptl        ulimit       unistim      voicemail
linux1*CLI> quit
/dev/pts/0
12:03:12
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux1 (pid = 1474)
Verbosity is at least 3
linux1*CLI> dialplan reload
...
linux1*CLI>
!            ael          agent        agi          cdr          channel      cli          config
console      core         dahdi        database     devstate     dialplan     dnsmgr       dundi
features     file         group        gtalk        hangup       help         http         iax2
indication   jabber       jingle       keys         local        logger       manager      meetme
mfcr2        mgcp         minivm       mixmonitor   module       moh          no           odbc
originate    parkedcalls  phoneprov    pri          queue        realtime     reload       rtcp
rtp          say          sip          skinny       sla          sqlite       ss7          stun
timing       transcoder   udptl        ulimit       unistim      voicemail
linux1*CLI> quit
прошло 69 минут
/dev/pts/5
13:12:39
#smbpasswd -a user
New SMB password:
Retype new SMB password:
/dev/pts/4
13:12:39
#smbpasswd -a user
New SMB password:
Retype new SMB password:
/dev/pts/5
13:17:23
#/etc/init.d/s
samba                 screen-cleanup        single                stop-bootlogd-single
saned                 sendsigs              stop-bootlogd         sudo
/dev/pts/4
13:17:23
#/etc/init.d/s
samba                 screen-cleanup        single                stop-bootlogd-single
saned                 sendsigs              stop-bootlogd         sudo
/dev/pts/5
13:17:23
#/etc/init.d/samba start
Starting Samba daemons: nmbd smbd.
/dev/pts/4
13:17:23
#/etc/init.d/samba start
Starting Samba daemons: nmbd smbd.
/dev/pts/5
13:19:17
#netstat -anp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:5038          0.0.0.0:*               LISTEN      1474/asterisk
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      825/portmap
tcp        0      0 0.0.0.0:2000            0.0.0.0:*               LISTEN      1474/asterisk
tcp        0      0 0.0.0.0:54003           0.0.0.0:*               LISTEN      837/rpc.statd
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1961/exim4
tcp        0      0 192.168.10.1:36613      192.168.15.253:22       ESTABLISHED 2510/ssh
tcp        0      0 192.168.10.1:48759      178.63.229.230:18030    TIME_WAIT   -
tcp6       0      0 :::139                  :::*                    LISTEN      3385/smbd
...
unix  3      [ ]         STREAM     CONNECTED     5492     1429/NetworkManager
unix  3      [ ]         STREAM     CONNECTED     6326     1192/dbus-daemon    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     5491     1429/NetworkManager
unix  2      [ ]         DGRAM                    5487     1429/NetworkManager
unix  3      [ ]         STREAM     CONNECTED     5445     1192/dbus-daemon
unix  3      [ ]         STREAM     CONNECTED     5444     1192/dbus-daemon
unix  2      [ ]         DGRAM                    10000    1203/dhcpd
unix  2      [ ]         DGRAM                    9965     1116/acpid
unix  3      [ ]         DGRAM                    9221     311/udevd
unix  3      [ ]         DGRAM                    9220     311/udevd
/dev/pts/4
13:19:17
#netstat -anp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:5038          0.0.0.0:*               LISTEN      1474/asterisk
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      825/portmap
tcp        0      0 0.0.0.0:2000            0.0.0.0:*               LISTEN      1474/asterisk
tcp        0      0 0.0.0.0:54003           0.0.0.0:*               LISTEN      837/rpc.statd
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1961/exim4
tcp        0      0 192.168.10.1:36613      192.168.15.253:22       ESTABLISHED 2510/ssh
tcp        0      0 192.168.10.1:48759      178.63.229.230:18030    TIME_WAIT   -
tcp6       0      0 :::139                  :::*                    LISTEN      3385/smbd
...
unix  3      [ ]         STREAM     CONNECTED     5492     1429/NetworkManager
unix  3      [ ]         STREAM     CONNECTED     6326     1192/dbus-daemon    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     5491     1429/NetworkManager
unix  2      [ ]         DGRAM                    5487     1429/NetworkManager
unix  3      [ ]         STREAM     CONNECTED     5445     1192/dbus-daemon
unix  3      [ ]         STREAM     CONNECTED     5444     1192/dbus-daemon
unix  2      [ ]         DGRAM                    10000    1203/dhcpd
unix  2      [ ]         DGRAM                    9965     1116/acpid
unix  3      [ ]         DGRAM                    9221     311/udevd
unix  3      [ ]         DGRAM                    9220     311/udevd
/dev/pts/5
13:20:15
#netstat -anp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:5038          0.0.0.0:*               LISTEN      1474/asterisk
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      825/portmap
tcp        0      0 0.0.0.0:2000            0.0.0.0:*               LISTEN      1474/asterisk
tcp        0      0 0.0.0.0:54003           0.0.0.0:*               LISTEN      837/rpc.statd
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1961/exim4
tcp        0      0 192.168.10.1:36613      192.168.15.253:22       ESTABLISHED 2510/ssh
tcp        0      0 192.168.10.1:46845      178.63.229.230:18030    TIME_WAIT   -
tcp6       0      0 :::139                  :::*                    LISTEN      3385/smbd
...
unix  3      [ ]         STREAM     CONNECTED     5492     1429/NetworkManager
unix  3      [ ]         STREAM     CONNECTED     6326     1192/dbus-daemon    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     5491     1429/NetworkManager
unix  2      [ ]         DGRAM                    5487     1429/NetworkManager
unix  3      [ ]         STREAM     CONNECTED     5445     1192/dbus-daemon
unix  3      [ ]         STREAM     CONNECTED     5444     1192/dbus-daemon
unix  2      [ ]         DGRAM                    10000    1203/dhcpd
unix  2      [ ]         DGRAM                    9965     1116/acpid
unix  3      [ ]         DGRAM                    9221     311/udevd
unix  3      [ ]         DGRAM                    9220     311/udevd
/dev/pts/4
13:20:15
#netstat -anp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:5038          0.0.0.0:*               LISTEN      1474/asterisk
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      825/portmap
tcp        0      0 0.0.0.0:2000            0.0.0.0:*               LISTEN      1474/asterisk
tcp        0      0 0.0.0.0:54003           0.0.0.0:*               LISTEN      837/rpc.statd
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1961/exim4
tcp        0      0 192.168.10.1:36613      192.168.15.253:22       ESTABLISHED 2510/ssh
tcp        0      0 192.168.10.1:46845      178.63.229.230:18030    TIME_WAIT   -
tcp6       0      0 :::139                  :::*                    LISTEN      3385/smbd
...
unix  3      [ ]         STREAM     CONNECTED     5492     1429/NetworkManager
unix  3      [ ]         STREAM     CONNECTED     6326     1192/dbus-daemon    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     5491     1429/NetworkManager
unix  2      [ ]         DGRAM                    5487     1429/NetworkManager
unix  3      [ ]         STREAM     CONNECTED     5445     1192/dbus-daemon
unix  3      [ ]         STREAM     CONNECTED     5444     1192/dbus-daemon
unix  2      [ ]         DGRAM                    10000    1203/dhcpd
unix  2      [ ]         DGRAM                    9965     1116/acpid
unix  3      [ ]         DGRAM                    9221     311/udevd
unix  3      [ ]         DGRAM                    9220     311/udevd
/dev/pts/5
13:20:27
#\
>
/dev/pts/4
13:20:27
#\
>
/dev/pts/5
13:21:00
#/etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.
/dev/pts/4
13:21:00
#/etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.
/dev/pts/5
13:23:19
#apt-get install sendmail sendmail-bin
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 sensible-mda
Suggested packages:
  sendmail-doc rmail logcheck resolvconf sasl2-bin
...
Unpacking libmysqlclient16 (from .../libmysqlclient16_5.1.66-0+squeeze1_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.66-0+squeeze1) ...
Setting up libmysqlclient16 (5.1.66-0+squeeze1) ...
Setting up sensible-mda (8.14.3-9.4) ...
Setting up sendmail (8.14.3-9.4) ...
/dev/pts/4
13:23:19
#apt-get install sendmail sendmail-bin
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 sensible-mda
Suggested packages:
  sendmail-doc rmail logcheck resolvconf sasl2-bin
...
Unpacking libmysqlclient16 (from .../libmysqlclient16_5.1.66-0+squeeze1_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.66-0+squeeze1) ...
Setting up libmysqlclient16 (5.1.66-0+squeeze1) ...
Setting up sensible-mda (8.14.3-9.4) ...
Setting up sendmail (8.14.3-9.4) ...
/dev/pts/2
13:27:02
#mc
/dev/pts/1
13:27:02
#mc
/dev/pts/8
13:30:34
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux1 (pid = 1474)
...
  == Using SIP RTP CoS mark 5
    -- Called 1102
    -- SIP/1101-000000c3 requested special control 20, passing it to SIP/1102-000000c4
[Apr  9 14:40:33] NOTICE[3732]: channel.c:3068 __ast_read: Dropping incompatible voice frame on SIP/1101-000000c3 of format ulaw since our native format has changed to 0x2 (gsm)
    -- SIP/1102-000000c4 is ringing
    -- SIP/1102-000000c4 answered SIP/1101-000000c3
[Apr  9 14:40:46] NOTICE[3732]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.10.101
  == Spawn extension (local, 1102, 2) exited non-zero on 'SIP/1101-000000c3'
linux1*CLI> quit
Executing last minute cleanups
/dev/pts/0
13:30:34
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux1 (pid = 1474)
...
  == Using SIP RTP CoS mark 5
    -- Called 1102
    -- SIP/1101-000000c3 requested special control 20, passing it to SIP/1102-000000c4
[Apr  9 14:40:33] NOTICE[3732]: channel.c:3068 __ast_read: Dropping incompatible voice frame on SIP/1101-000000c3 of format ulaw since our native format has changed to 0x2 (gsm)
    -- SIP/1102-000000c4 is ringing
    -- SIP/1102-000000c4 answered SIP/1101-000000c3
[Apr  9 14:40:46] NOTICE[3732]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.10.101
  == Spawn extension (local, 1102, 2) exited non-zero on 'SIP/1101-000000c3'
linux1*CLI> quit
Executing last minute cleanups
прошло 10 минут
/dev/pts/8
13:41:24
#/etc/init.d/asterisk reload
Reloading Asterisk PBX configuration files.
/dev/pts/0
13:41:24
#/etc/init.d/asterisk reload
Reloading Asterisk PBX configuration files.
/dev/pts/5
13:46:37
#/etc/init.d/send
sendmail  sendsigs
/dev/pts/4
13:46:37
#/etc/init.d/send
sendmail  sendsigs
/dev/pts/5
13:46:37
#/etc/init.d/sendmail restart
Restarting Mail Transport Agent (MTA): sendmail.
/dev/pts/4
13:46:37
#/etc/init.d/sendmail restart
Restarting Mail Transport Agent (MTA): sendmail.
/dev/pts/5
13:55:46
#netstat -anp | grep sendmail
tcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN      5086/sendmail: MTA:
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      5086/sendmail: MTA:
unix  2      [ ACC ]     STREAM     LISTENING     32499    5086/sendmail: MTA: /var/run/sendmail/mta/smcontrol
unix  2      [ ]         DGRAM                    32496    5086/sendmail: MTA:
/dev/pts/4
13:55:46
#netstat -anp | grep sendmail
tcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN      5086/sendmail: MTA:
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      5086/sendmail: MTA:
unix  2      [ ACC ]     STREAM     LISTENING     32499    5086/sendmail: MTA: /var/run/sendmail/mta/smcontrol
unix  2      [ ]         DGRAM                    32496    5086/sendmail: MTA:
/dev/pts/5
13:56:00
#apt-get install qpopper
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:
  openbsd-inetd
The following NEW packages will be installed:
  openbsd-inetd qpopper
...
Selecting previously deselected package openbsd-inetd.
(Reading database ... 115573 files and directories currently installed.)
Unpacking openbsd-inetd (from .../openbsd-inetd_0.20080125-6_i386.deb) ...
Selecting previously deselected package qpopper.
Unpacking qpopper (from .../qpopper_4.0.9.dfsg-1.2_i386.deb) ...
Processing triggers for man-db ...
Setting up openbsd-inetd (0.20080125-6) ...
Stopping internet superserver: inetd.
Not starting internet superserver: no services enabled.
Setting up qpopper (4.0.9.dfsg-1.2) ...
/dev/pts/4
13:56:00
#apt-get install qpopper
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:
  openbsd-inetd
The following NEW packages will be installed:
  openbsd-inetd qpopper
...
Selecting previously deselected package openbsd-inetd.
(Reading database ... 115573 files and directories currently installed.)
Unpacking openbsd-inetd (from .../openbsd-inetd_0.20080125-6_i386.deb) ...
Selecting previously deselected package qpopper.
Unpacking qpopper (from .../qpopper_4.0.9.dfsg-1.2_i386.deb) ...
Processing triggers for man-db ...
Setting up openbsd-inetd (0.20080125-6) ...
Stopping internet superserver: inetd.
Not starting internet superserver: no services enabled.
Setting up qpopper (4.0.9.dfsg-1.2) ...
/dev/pts/5
14:02:55
#netstat -anp | grep 110
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN      5271/inetd
unix  2      [ ACC ]     STREAM     LISTENING     11028    1698/polkit-gnome-a /tmp/orbit-Debian-gdm/linc-6a2-0-a95be4a858cb
unix  2      [ ACC ]     STREAM     LISTENING     11082    1772/gnome-keyring- /tmp/keyring-qbhZft/control
unix  3      [ ]         STREAM     CONNECTED     11095    1701/gdm-session-wo
unix  2      [ ]         DGRAM                    11075    1701/gdm-session-wo
unix  3      [ ]         STREAM     CONNECTED     11062    1459/Xorg           @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     11061    1457/gdm-simple-sla
unix  3      [ ]         STREAM     CONNECTED     11037    1192/dbus-daemon    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     11029    1698/polkit-gnome-a
unix  3      [ ]         STREAM     CONNECTED     11026    1698/polkit-gnome-a
unix  3      [ ]         STREAM     CONNECTED     11022    1698/polkit-gnome-a
/dev/pts/4
14:02:55
#netstat -anp | grep 110
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN      5271/inetd
unix  2      [ ACC ]     STREAM     LISTENING     11028    1698/polkit-gnome-a /tmp/orbit-Debian-gdm/linc-6a2-0-a95be4a858cb
unix  2      [ ACC ]     STREAM     LISTENING     11082    1772/gnome-keyring- /tmp/keyring-qbhZft/control
unix  3      [ ]         STREAM     CONNECTED     11095    1701/gdm-session-wo
unix  2      [ ]         DGRAM                    11075    1701/gdm-session-wo
unix  3      [ ]         STREAM     CONNECTED     11062    1459/Xorg           @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     11061    1457/gdm-simple-sla
unix  3      [ ]         STREAM     CONNECTED     11037    1192/dbus-daemon    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     11029    1698/polkit-gnome-a
unix  3      [ ]         STREAM     CONNECTED     11026    1698/polkit-gnome-a
unix  3      [ ]         STREAM     CONNECTED     11022    1698/polkit-gnome-a
прошло 24 минуты
/dev/pts/1
14:27:30
#ps
  PID TTY          TIME CMD
 2081 pts/3    00:00:00 bash
 5477 pts/3    00:00:00 ps
/dev/pts/2
14:27:30
#ps
  PID TTY          TIME CMD
 2081 pts/3    00:00:00 bash
 5477 pts/3    00:00:00 ps
14:27:33
#w
 15:27:39 up  6:03,  5 users,  load average: 0.08, 0.11, 0.12
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
user     tty7     :0               09:24    6:03m  2:41   0.09s x-session-manager
user     pts/0    :0.0             09:25   46:08   0.37s 25.91s gnome-terminal
user     pts/1    :0.0             09:25    0.00s  0.77s 25.91s gnome-terminal
user     pts/4    :0.0             09:27   24:40   0.70s 25.91s gnome-terminal
user     pts/7    :0.0             09:30    5:43m  0.62s  0.50s ssh 192.168.15.253 -l user
/dev/pts/1
14:27:33
#w
 15:27:39 up  6:03,  5 users,  load average: 0.08, 0.11, 0.12
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
user     tty7     :0               09:24    6:03m  2:41   0.09s x-session-manager
user     pts/0    :0.0             09:25   46:08   0.37s 25.91s gnome-terminal
user     pts/1    :0.0             09:25    0.00s  0.77s 25.91s gnome-terminal
user     pts/4    :0.0             09:27   24:40   0.70s 25.91s gnome-terminal
user     pts/7    :0.0             09:30    5:43m  0.62s  0.50s ssh 192.168.15.253 -l user
/dev/pts/2
14:27:39
#mc
/dev/pts/1
14:27:39
#mc

Среда (04/10/13)

/dev/pts/9
09:55:27
#apt-get install dahdi-source
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 NEW packages will be installed:
  dahdi-source
0 upgraded, 1 newly installed, 0 to remove and 11 not upgraded.
Need to get 912 kB of archives.
After this operation, 1,044 kB of additional disk space will be used.
Get:1 http://192.168.15.253/debian/ squeeze/main dahdi-source all 1:2.3.0.1+dfsg-2 [912 kB]
Fetched 912 kB in 0s (9,488 kB/s)
Selecting previously deselected package dahdi-source.
(Reading database ... 115596 files and directories currently installed.)
Unpacking dahdi-source (from .../dahdi-source_1%3a2.3.0.1+dfsg-2_all.deb) ...
Setting up dahdi-source (1:2.3.0.1+dfsg-2) ...
/dev/pts/8
09:55:27
#apt-get install dahdi-source
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 NEW packages will be installed:
  dahdi-source
0 upgraded, 1 newly installed, 0 to remove and 11 not upgraded.
Need to get 912 kB of archives.
After this operation, 1,044 kB of additional disk space will be used.
Get:1 http://192.168.15.253/debian/ squeeze/main dahdi-source all 1:2.3.0.1+dfsg-2 [912 kB]
Fetched 912 kB in 0s (9,488 kB/s)
Selecting previously deselected package dahdi-source.
(Reading database ... 115596 files and directories currently installed.)
Unpacking dahdi-source (from .../dahdi-source_1%3a2.3.0.1+dfsg-2_all.deb) ...
Setting up dahdi-source (1:2.3.0.1+dfsg-2) ...
прошло 62 минуты
/dev/pts/9
10:58:09
##m-a a-i dahdi

/dev/pts/8
10:58:09
##m-a a-i dahdi

/dev/pts/9
11:04:04
#apt-get update
Hit http://192.168.15.253 squeeze Release.gpg
Ign http://192.168.15.253/debian/ squeeze/main Translation-en
Ign http://192.168.15.253/debian/ squeeze/main Translation-en_US
Get:1 http://192.168.15.253 squeeze-backports Release.gpg [836 B]
Get:2 http://192.168.15.253 squeeze-updates Release.gpg [836 B]
Ign http://192.168.15.253/debian/ squeeze-updates/contrib Translation-en
Ign http://192.168.15.253/debian/ squeeze-updates/contrib Translation-en_US
Ign http://192.168.15.253/debian/ squeeze-updates/main Translation-en
Ign http://192.168.15.253/debian/ squeeze-updates/main Translation-en_US
Ign http://192.168.15.253/debian/ squeeze-updates/non-free Translation-en
...
Ign http://192.168.15.253 squeeze-updates/main Sources
Hit http://192.168.15.253 squeeze-updates/contrib Sources
Hit http://192.168.15.253 squeeze-updates/non-free Sources
Ign http://192.168.15.253 squeeze-updates/main i386 Packages
Hit http://192.168.15.253 squeeze-updates/contrib i386 Packages
Hit http://192.168.15.253 squeeze-updates/non-free i386 Packages
Hit http://192.168.15.253 squeeze-updates/main Sources
Hit http://192.168.15.253 squeeze-updates/main i386 Packages
Fetched 546 kB in 21s (25.7 kB/s)
Reading package lists... Done
/dev/pts/8
11:04:04
#apt-get update
Hit http://192.168.15.253 squeeze Release.gpg
Ign http://192.168.15.253/debian/ squeeze/main Translation-en
Ign http://192.168.15.253/debian/ squeeze/main Translation-en_US
Get:1 http://192.168.15.253 squeeze-backports Release.gpg [836 B]
Get:2 http://192.168.15.253 squeeze-updates Release.gpg [836 B]
Ign http://192.168.15.253/debian/ squeeze-updates/contrib Translation-en
Ign http://192.168.15.253/debian/ squeeze-updates/contrib Translation-en_US
Ign http://192.168.15.253/debian/ squeeze-updates/main Translation-en
Ign http://192.168.15.253/debian/ squeeze-updates/main Translation-en_US
Ign http://192.168.15.253/debian/ squeeze-updates/non-free Translation-en
...
Ign http://192.168.15.253 squeeze-updates/main Sources
Hit http://192.168.15.253 squeeze-updates/contrib Sources
Hit http://192.168.15.253 squeeze-updates/non-free Sources
Ign http://192.168.15.253 squeeze-updates/main i386 Packages
Hit http://192.168.15.253 squeeze-updates/contrib i386 Packages
Hit http://192.168.15.253 squeeze-updates/non-free i386 Packages
Hit http://192.168.15.253 squeeze-updates/main Sources
Hit http://192.168.15.253 squeeze-updates/main i386 Packages
Fetched 546 kB in 21s (25.7 kB/s)
Reading package lists... Done
/dev/pts/9
11:13:10
#apt-get install linux-image-3.2.0-0.bpo.4-686-pae
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-image-3.2.0-0.bpo.4-686-pae
E: Couldn't find any package by regex 'linux-image-3.2.0-0.bpo.4-686-pae'
/dev/pts/8
11:13:10
#apt-get install linux-image-3.2.0-0.bpo.4-686-pae
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-image-3.2.0-0.bpo.4-686-pae
E: Couldn't find any package by regex 'linux-image-3.2.0-0.bpo.4-686-pae'
/dev/pts/9
11:13:37
#uname -u
uname: invalid option -- 'u'
Try `uname --help' for more information.
/dev/pts/8
11:13:37
#uname -u
uname: invalid option -- 'u'
Try `uname --help' for more information.

Статистика

Время первой команды журнала14:50:07 2013- 4- 8
Время последней команды журнала11:13:37 2013- 4-10
Количество командных строк в журнале100
Процент команд с ненулевым кодом завершения, % 6.00
Процент синтаксически неверно набранных команд, % 0.00
Суммарное время работы с терминалом *, час 2.59
Количество командных строк в единицу времени, команда/мин 0.64
Частота использования команд
mc14|=============| 13.46%
netstat12|===========| 11.54%
apt-get12|===========| 11.54%
asterisk10|=========| 9.62%
/etc/init.d/asterisk8|=======| 7.69%
roo.[1K.6|=====| 5.77%
vim6|=====| 5.77%
ps4|===| 3.85%
/etc/init.d/samba4|===| 3.85%
grep4|===| 3.85%
ls4|===| 3.85%
/etc/init.d/sendmail2|=| 1.92%
smbpasswd2|=| 1.92%
/etc/init.d/send2|=| 1.92%
cd2|=| 1.92%
/etc/init.d/s2|=| 1.92%
~2|=| 1.92%
#m-a2|=| 1.92%
uname2|=| 1.92%
\2|=| 1.92%
w2|=| 1.92%
____
*) Интервалы неактивности длительностью 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$