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

Содержание

Журнал

Понедельник (11/24/14)

/dev/pts/6
14:19:02
#more /etc/resolv.conf
/dev/pts/5
14:19:02
#more /etc/resolv.conf
/dev/pts/6
14:19:18
#apt-cache search asterisk
asterisk - Open Source Private Branch Exchange (PBX)
asterisk-config - Configuration files for Asterisk
asterisk-dahdi - DAHDI devices support for the Asterisk PBX
asterisk-dbg - Debugging symbols for Asterisk
asterisk-dev - Development files for Asterisk
asterisk-doc - Source code documentation for Asterisk
asterisk-mobile - Bluetooth phone support for the Asterisk PBX
asterisk-modules - loadable modules for the Asterisk PBX
asterisk-mp3 - MP3 playback support for the Asterisk PBX
asterisk-mysql - MySQL database protocol support for the Asterisk PBX
...
linphone-dbg - Debugging symbols for linphone and its libraries
op-panel - switchboard type application for the Asterisk PBX
libopenr2-3 - MFC/R2 (telephony) call setup library
python-asterisk - Asterisk Manager API interface module for Python
libsipwitch-dev - secure peer-to-peer SIP VoIP server - development files
libsipwitch1 - secure peer-to-peer SIP VoIP server - development files
libsipwitch1-dbg - secure peer-to-peer SIP VoIP server - development files
sipwitch - secure peer-to-peer VoIP server for the SIP protocol
sipwitch-cgi - secure peer-to-peer SIP VoIP server - CGI XML-RPC interface
python-starpy - Asterisk (AMI) protocols for Twisted Python
/dev/pts/5
14:19:18
#apt-cache search asterisk
asterisk - Open Source Private Branch Exchange (PBX)
asterisk-config - Configuration files for Asterisk
asterisk-dahdi - DAHDI devices support for the Asterisk PBX
asterisk-dbg - Debugging symbols for Asterisk
asterisk-dev - Development files for Asterisk
asterisk-doc - Source code documentation for Asterisk
asterisk-mobile - Bluetooth phone support for the Asterisk PBX
asterisk-modules - loadable modules for the Asterisk PBX
asterisk-mp3 - MP3 playback support for the Asterisk PBX
asterisk-mysql - MySQL database protocol support for the Asterisk PBX
...
linphone-dbg - Debugging symbols for linphone and its libraries
op-panel - switchboard type application for the Asterisk PBX
libopenr2-3 - MFC/R2 (telephony) call setup library
python-asterisk - Asterisk Manager API interface module for Python
libsipwitch-dev - secure peer-to-peer SIP VoIP server - development files
libsipwitch1 - secure peer-to-peer SIP VoIP server - development files
libsipwitch1-dbg - secure peer-to-peer SIP VoIP server - development files
sipwitch - secure peer-to-peer VoIP server for the SIP protocol
sipwitch-cgi - secure peer-to-peer SIP VoIP server - CGI XML-RPC interface
python-starpy - Asterisk (AMI) protocols for Twisted Python
прошло 37 минут
/dev/pts/6
14:56:38
#apt-cache search asterisk | wc -l
67
/dev/pts/5
14:56:38
#apt-cache search asterisk | wc -l
67
/dev/pts/6
14:56:51
#apt-get install asterisk
Selecting previously unselected package freetds-common.
Unpacking freetds-common (from .../freetds-common_0.91-2+deb7u1_all.deb) ...
Selecting previously unselected package libsybdb5:amd64.
Unpacking libsybdb5:amd64 (from .../libsybdb5_0.91-2+deb7u1_amd64.deb) ...
Selecting previously unselected package asterisk-config.
Unpacking asterisk-config (from .../asterisk-config_1%3a1.8.13.1~dfsg1-3+deb7u3_all.deb) ...
Selecting previously unselected package libiksemel3.
Unpacking libiksemel3 (from .../libiksemel3_1.2-4_amd64.deb) ...
Selecting previously unselected package libpq5.
Unpacking libpq5 (from .../libpq5_9.1.14-0+deb7u1_amd64.deb) ...
...
Setting up libmail-sendmail-perl (0.79.16-1) ...
Setting up libsox2 (14.4.0-3) ...
Setting up libsox-fmt-alsa (14.4.0-3) ...
Setting up libsox-fmt-base (14.4.0-3) ...
Setting up module-assistant (0.11.4) ...
Setting up rsync (3.0.9-4) ...
update-rc.d: using dependency based boot sequencing
Setting up sox (14.4.0-3) ...
Setting up vpb-driver-source (4.2.55-1) ...
Setting up asterisk-moh-opsound-gsm (2.03-1) ...
/dev/pts/5
14:56:51
#apt-get install asterisk
 │ ITU-T telephone code:                                                                                                         │
 │                                                                                                                               │
 â”3801___________________________________________________________________________________________________________________________ │
 │                                                                                                                               │
 │                                                            <Ok>                                                               │
 │                                                                                                                               │
 └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Selecting previously unselected package libgettextpo0:amd64.
(Reading database ... 130802 files and directories currently installed.)
Unpacking libgettextpo0:amd64 (from .../libgettextpo0_0.18.1.1-9_amd64.deb) ...
...
Setting up libmail-sendmail-perl (0.79.16-1) ...
Setting up libsox2 (14.4.0-3) ...
Setting up libsox-fmt-alsa (14.4.0-3) ...
Setting up libsox-fmt-base (14.4.0-3) ...
Setting up module-assistant (0.11.4) ...
Setting up rsync (3.0.9-4) ...
update-rc.d: using dependency based boot sequencing
Setting up sox (14.4.0-3) ...
Setting up vpb-driver-source (4.2.55-1) ...
Setting up asterisk-moh-opsound-gsm (2.03-1) ...
/dev/pts/6
15:04:01
#dpkg -i asterisk
dpkg: error processing asterisk (--install):
 cannot access archive: No such file or directory
Errors were encountered while processing:
 asterisk
/dev/pts/5
15:04:01
#dpkg -i asterisk
dpkg: error processing asterisk (--install):
 cannot access archive: No such file or directory
Errors were encountered while processing:
 asterisk
/dev/pts/6
15:04:37
#dpkg -L asterisk-config
/.
/usr
/usr/share
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/asterisk-config
/usr/share/doc
/usr/share/doc/asterisk-config
/usr/share/doc/asterisk-config/NEWS.Debian.gz
/usr/share/doc/asterisk-config/changelog.gz
...
/etc/asterisk/iaxprov.conf
/etc/asterisk/alsa.conf
/etc/asterisk/manager.conf
/etc/asterisk/cdr_adaptive_odbc.conf
/etc/asterisk/extconfig.conf
/etc/asterisk/enum.conf
/etc/asterisk/extensions_minivm.conf
/etc/asterisk/cli.conf
/etc/asterisk/cel_tds.conf
/etc/asterisk/dnsmgr.conf
/dev/pts/5
15:04:37
#dpkg -L asterisk-config
/.
/usr
/usr/share
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/asterisk-config
/usr/share/doc
/usr/share/doc/asterisk-config
/usr/share/doc/asterisk-config/NEWS.Debian.gz
/usr/share/doc/asterisk-config/changelog.gz
...
/etc/asterisk/iaxprov.conf
/etc/asterisk/alsa.conf
/etc/asterisk/manager.conf
/etc/asterisk/cdr_adaptive_odbc.conf
/etc/asterisk/extconfig.conf
/etc/asterisk/enum.conf
/etc/asterisk/extensions_minivm.conf
/etc/asterisk/cli.conf
/etc/asterisk/cel_tds.conf
/etc/asterisk/dnsmgr.conf
/dev/pts/6
15:04:54
#dpkg -L asterisk-config /etc
/.
/usr
/usr/share
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/asterisk-config
/usr/share/doc
/usr/share/doc/asterisk-config
/usr/share/doc/asterisk-config/NEWS.Debian.gz
/usr/share/doc/asterisk-config/changelog.gz
...
/etc/asterisk/manager.conf
/etc/asterisk/cdr_adaptive_odbc.conf
/etc/asterisk/extconfig.conf
/etc/asterisk/enum.conf
/etc/asterisk/extensions_minivm.conf
/etc/asterisk/cli.conf
/etc/asterisk/cel_tds.conf
/etc/asterisk/dnsmgr.conf
dpkg-query: error: --listfiles needs a valid package name but '/etc' is not: illegal package name in specifier '/etc': must start with an alphanumeric character
Use --help for help about querying packages.
/dev/pts/5
15:04:54
#dpkg -L asterisk-config /etc
/.
/usr
/usr/share
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/asterisk-config
/usr/share/doc
/usr/share/doc/asterisk-config
/usr/share/doc/asterisk-config/NEWS.Debian.gz
/usr/share/doc/asterisk-config/changelog.gz
...
/etc/asterisk/manager.conf
/etc/asterisk/cdr_adaptive_odbc.conf
/etc/asterisk/extconfig.conf
/etc/asterisk/enum.conf
/etc/asterisk/extensions_minivm.conf
/etc/asterisk/cli.conf
/etc/asterisk/cel_tds.conf
/etc/asterisk/dnsmgr.conf
dpkg-query: error: --listfiles needs a valid package name but '/etc' is not: illegal package name in specifier '/etc': must start with an alphanumeric character
Use --help for help about querying packages.
/dev/pts/6
15:04:58
#dpkg -L asterisk | less
/dev/pts/5
15:04:58
#dpkg -L asterisk | less
/dev/pts/6
15:05:43
#dpkg -L asterisk-modules | less
/dev/pts/5
15:05:43
#dpkg -L asterisk-modules | less
/dev/pts/6
15:08:45
#dpkg -L asterisk-modules | less | grep app
/usr/lib/asterisk/modules/app_softhangup.so
/usr/lib/asterisk/modules/app_waituntil.so
/usr/lib/asterisk/modules/app_senddtmf.so
/usr/lib/asterisk/modules/app_celgenuserevent.so
/usr/lib/asterisk/modules/app_parkandannounce.so
/usr/lib/asterisk/modules/app_userevent.so
/usr/lib/asterisk/modules/app_transfer.so
/usr/lib/asterisk/modules/app_playback.so
/usr/lib/asterisk/modules/app_waitforring.so
/usr/lib/asterisk/modules/app_read.so
...
/usr/lib/asterisk/modules/app_nbscat.so
/usr/lib/asterisk/modules/app_dictate.so
/usr/lib/asterisk/modules/app_directory.so
/usr/lib/asterisk/modules/app_festival.so
/usr/lib/asterisk/modules/app_test.so
/usr/lib/asterisk/modules/app_authenticate.so
/usr/lib/asterisk/modules/app_externalivr.so
/usr/lib/asterisk/modules/app_amd.so
/usr/lib/asterisk/modules/app_morsecode.so
/usr/lib/asterisk/modules/app_saycountpl.so
/dev/pts/5
15:08:45
#dpkg -L asterisk-modules | less | grep app
/usr/lib/asterisk/modules/app_softhangup.so
/usr/lib/asterisk/modules/app_waituntil.so
/usr/lib/asterisk/modules/app_senddtmf.so
/usr/lib/asterisk/modules/app_celgenuserevent.so
/usr/lib/asterisk/modules/app_parkandannounce.so
/usr/lib/asterisk/modules/app_userevent.so
/usr/lib/asterisk/modules/app_transfer.so
/usr/lib/asterisk/modules/app_playback.so
/usr/lib/asterisk/modules/app_waitforring.so
/usr/lib/asterisk/modules/app_read.so
...
/usr/lib/asterisk/modules/app_nbscat.so
/usr/lib/asterisk/modules/app_dictate.so
/usr/lib/asterisk/modules/app_directory.so
/usr/lib/asterisk/modules/app_festival.so
/usr/lib/asterisk/modules/app_test.so
/usr/lib/asterisk/modules/app_authenticate.so
/usr/lib/asterisk/modules/app_externalivr.so
/usr/lib/asterisk/modules/app_amd.so
/usr/lib/asterisk/modules/app_morsecode.so
/usr/lib/asterisk/modules/app_saycountpl.so
/dev/pts/6
15:08:51
#dpkg -L asterisk-modules | less | grep chan
/usr/lib/asterisk/modules/chan_iax2.so
/usr/lib/asterisk/modules/chan_agent.so
/usr/lib/asterisk/modules/chan_bridge.so
/usr/lib/asterisk/modules/res_calendar_exchange.so
/usr/lib/asterisk/modules/chan_alsa.so
/usr/lib/asterisk/modules/chan_skinny.so
/usr/lib/asterisk/modules/app_chanisavail.so
/usr/lib/asterisk/modules/chan_unistim.so
/usr/lib/asterisk/modules/chan_local.so
/usr/lib/asterisk/modules/chan_jingle.so
...
/usr/lib/asterisk/modules/chan_phone.so
/usr/lib/asterisk/modules/chan_multicast_rtp.so
/usr/lib/asterisk/modules/app_chanspy.so
/usr/lib/asterisk/modules/func_channel.so
/usr/lib/asterisk/modules/chan_vpb.so
/usr/lib/asterisk/modules/chan_gtalk.so
/usr/lib/asterisk/modules/chan_oss.so
/usr/lib/asterisk/modules/chan_sip.so
/usr/share/doc/asterisk-modules/changelog.gz
/usr/share/doc/asterisk-modules/changelog.Debian.gz
/dev/pts/5
15:08:51
#dpkg -L asterisk-modules | less | grep chan
/usr/lib/asterisk/modules/chan_iax2.so
/usr/lib/asterisk/modules/chan_agent.so
/usr/lib/asterisk/modules/chan_bridge.so
/usr/lib/asterisk/modules/res_calendar_exchange.so
/usr/lib/asterisk/modules/chan_alsa.so
/usr/lib/asterisk/modules/chan_skinny.so
/usr/lib/asterisk/modules/app_chanisavail.so
/usr/lib/asterisk/modules/chan_unistim.so
/usr/lib/asterisk/modules/chan_local.so
/usr/lib/asterisk/modules/chan_jingle.so
...
/usr/lib/asterisk/modules/chan_phone.so
/usr/lib/asterisk/modules/chan_multicast_rtp.so
/usr/lib/asterisk/modules/app_chanspy.so
/usr/lib/asterisk/modules/func_channel.so
/usr/lib/asterisk/modules/chan_vpb.so
/usr/lib/asterisk/modules/chan_gtalk.so
/usr/lib/asterisk/modules/chan_oss.so
/usr/lib/asterisk/modules/chan_sip.so
/usr/share/doc/asterisk-modules/changelog.gz
/usr/share/doc/asterisk-modules/changelog.Debian.gz
/dev/pts/6
15:12:45
#dpkg -L asterisk-modules | less
/dev/pts/5
15:12:45
#dpkg -L asterisk-modules | less
/dev/pts/6
15:13:42
#dpkg -L asterisk-modules | sort | less
/dev/pts/5
15:13:42
#dpkg -L asterisk-modules | sort | less
/dev/pts/6
15:17:26
#ps -aux | grep [a]sterisk
warning: bad ps syntax, perhaps a bogus '-'?
See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ
asterisk 12316  0.1  0.1 755300 30176 ?        Ssl  16:03   0:01 /usr/sbin/asterisk -p -U asterisk
asterisk 12317  0.0  0.0  13916   772 ?        S    16:03   0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 12316
/dev/pts/5
15:17:26
#ps -aux | grep [a]sterisk
warning: bad ps syntax, perhaps a bogus '-'?
See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ
asterisk 12316  0.1  0.1 755300 30176 ?        Ssl  16:03   0:01 /usr/sbin/asterisk -p -U asterisk
asterisk 12317  0.0  0.0  13916   772 ?        S    16:03   0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 12316
/dev/pts/6
15:17:47
#ps aux | grep [a]sterisk
asterisk 12316  0.1  0.1 755300 30176 ?        Ssl  16:03   0:01 /usr/sbin/asterisk -p -U asterisk
asterisk 12317  0.0  0.0  13916   772 ?        S    16:03   0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 12316
/dev/pts/5
15:17:47
#ps aux | grep [a]sterisk
asterisk 12316  0.1  0.1 755300 30176 ?        Ssl  16:03   0:01 /usr/sbin/asterisk -p -U asterisk
asterisk 12317  0.0  0.0  13916   772 ?        S    16:03   0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 12316
/dev/pts/6
15:17:59
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian6 (pid = 12316)
debian6*CLI> exit
/dev/pts/5
15:17:59
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian6 (pid = 12316)
debian6*CLI> exit
/dev/pts/6
15:18:23
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/5
15:18:23
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
прошло 18 минут
/dev/pts/6
15:37:22
#pa aux | grep asterisk
bash: pa: command not found
/dev/pts/5
15:37:22
#pa aux | grep asterisk
bash: pa: command not found
/dev/pts/6
15:37:34
#ps aux | grep asterisk
asterisk 12608  1.8  0.1 756100 30292 ?        Ssl  16:37   0:00 /usr/sbin/asterisk -p -U asterisk
asterisk 12609  0.0  0.0  13916   772 ?        S    16:37   0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 12608
root     12667  0.0  0.0   7836   888 pts/10   S+   16:37   0:00 grep asterisk
/dev/pts/5
15:37:34
#ps aux | grep asterisk
asterisk 12608  1.8  0.1 756100 30292 ?        Ssl  16:37   0:00 /usr/sbin/asterisk -p -U asterisk
asterisk 12609  0.0  0.0  13916   772 ?        S    16:37   0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 12608
root     12667  0.0  0.0   7836   888 pts/10   S+   16:37   0:00 grep asterisk
/dev/pts/6
15:37:38
#ps aux | grep [a]sterisk
asterisk 12608  1.3  0.1 756100 30292 ?        Ssl  16:37   0:00 /usr/sbin/asterisk -p -U asterisk
asterisk 12609  0.0  0.0  13916   772 ?        S    16:37   0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 12608
/dev/pts/5
15:37:38
#ps aux | grep [a]sterisk
asterisk 12608  1.3  0.1 756100 30292 ?        Ssl  16:37   0:00 /usr/sbin/asterisk -p -U asterisk
asterisk 12609  0.0  0.0  13916   772 ?        S    16:37   0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 12608
/dev/pts/6
15:37:45
#netstat -lnp | grep aster
tcp        0      0 127.0.0.1:5038          0.0.0.0:*               LISTEN      12608/asterisk
tcp        0      0 0.0.0.0:2000            0.0.0.0:*               LISTEN      12608/asterisk
udp        0      0 0.0.0.0:4520            0.0.0.0:*                           12608/asterisk
udp        0      0 0.0.0.0:4569            0.0.0.0:*                           12608/asterisk
udp        0      0 0.0.0.0:5000            0.0.0.0:*                           12608/asterisk
udp        0      0 0.0.0.0:5060            0.0.0.0:*                           12608/asterisk
unix  2      [ ACC ]     STREAM     LISTENING     44934    12608/asterisk      /var/run/asterisk/asterisk.ctl
/dev/pts/5
15:37:45
#netstat -lnp | grep aster
tcp        0      0 127.0.0.1:5038          0.0.0.0:*               LISTEN      12608/asterisk
tcp        0      0 0.0.0.0:2000            0.0.0.0:*               LISTEN      12608/asterisk
udp        0      0 0.0.0.0:4520            0.0.0.0:*                           12608/asterisk
udp        0      0 0.0.0.0:4569            0.0.0.0:*                           12608/asterisk
udp        0      0 0.0.0.0:5000            0.0.0.0:*                           12608/asterisk
udp        0      0 0.0.0.0:5060            0.0.0.0:*                           12608/asterisk
unix  2      [ ACC ]     STREAM     LISTENING     44934    12608/asterisk      /var/run/asterisk/asterisk.ctl
/dev/pts/6
15:40:16
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian6 (pid = 12728)
debian6*CLI> ael reload
[Nov 24 16:40:42] NOTICE[12787]: pbx_ael.c:164 pbx_load_module: Starting AEL load process.
...
translation     uptime          version         warranty
debian6*CLI> sip show peers
Name/username              Host                                    Dyn Forcerport ACL Port     Status
0 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 0 offline]
debian6*CLI> sip show users
Username                   Secret           Accountcode      Def.Context      ACL  ForcerPort
debian6*CLI> sip show peers
Name/username              Host                                    Dyn Forcerport ACL Port     Status
0 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 0 offline]
debian6*CLI> exit
/dev/pts/5
15:40:16
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian6 (pid = 12728)
debian6*CLI> ael reload
[Nov 24 16:40:42] NOTICE[12787]: pbx_ael.c:164 pbx_load_module: Starting AEL load process.
...
translation     uptime          version         warranty
debian6*CLI> sip show peers
Name/username              Host                                    Dyn Forcerport ACL Port     Status
0 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 0 offline]
debian6*CLI> sip show users
Username                   Secret           Accountcode      Def.Context      ACL  ForcerPort
debian6*CLI> sip show peers
Name/username              Host                                    Dyn Forcerport ACL Port     Status
0 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 0 offline]
debian6*CLI> exit
/dev/pts/6
15:45:51
#mv /etc/asterisk/extensions.conf {,.bak}

/dev/pts/5
15:45:51
#mv /etc/asterisk/extensions.conf {,.bak}

/dev/pts/6
15:46:24
#mv /etc/asterisk/sip.conf {,.bak}

/dev/pts/5
15:46:24
#mv /etc/asterisk/sip.conf {,.bak}

/dev/pts/6
15:46:43
#more /etc/asterisk/sip.bak
/dev/pts/5
15:46:43
#more /etc/asterisk/sip.bak
/dev/pts/6
15:46:48
#more /etc/asterisk/sip.conf.bak
/dev/pts/5
15:46:48
#more /etc/asterisk/sip.conf.bak
/dev/pts/6
15:47:09
#mv /etc/asterisk/extensions.conf{,.bak}
mv: cannot stat `/etc/asterisk/extensions.conf': No such file or directory
/dev/pts/5
15:47:09
#mv /etc/asterisk/extensions.conf{,.bak}
mv: cannot stat `/etc/asterisk/extensions.conf': No such file or directory
/dev/pts/6
15:47:29
#ls -l /etc/asterisk/
total 672
-rw-r----- 1 asterisk asterisk   140 Jan  4  2014 adsi.conf
-rw-r----- 1 asterisk asterisk  2760 Jan  4  2014 agents.conf
-rw-r----- 1 asterisk asterisk  2904 Jan  4  2014 ais.conf
-rw-r----- 1 asterisk asterisk  2084 Jan  4  2014 alarmreceiver.conf
-rw-r----- 1 asterisk asterisk  3498 Jan  4  2014 alsa.conf
-rw-r----- 1 asterisk asterisk   767 Jan  4  2014 amd.conf
-rw-r----- 1 asterisk asterisk  1044 Jan  4  2014 app_mysql.conf
-rw-r----- 1 asterisk asterisk  3254 Jan  4  2014 asterisk.adsi
-rw-r----- 1 asterisk asterisk  3465 Jan  4  2014 asterisk.conf
...
-rw-r----- 1 asterisk asterisk   742 Jan  4  2014 sip_notify.conf
-rw-r----- 1 asterisk asterisk  9185 Jan  4  2014 skinny.conf
-rw-r----- 1 asterisk asterisk  6774 Jan  4  2014 sla.conf
-rw-r----- 1 asterisk asterisk  2669 Jan  4  2014 smdi.conf
-rw-r----- 1 asterisk asterisk  1384 Jan  4  2014 telcordia-1.adsi
-rw-r----- 1 asterisk asterisk   656 Jan  4  2014 udptl.conf
-rw-r----- 1 asterisk asterisk  5096 Jan  4  2014 unistim.conf
-rw-r----- 1 asterisk asterisk  2423 Jan  4  2014 users.conf
-rw-r----- 1 asterisk asterisk 21238 Jan  4  2014 voicemail.conf
-rw-r----- 1 asterisk asterisk  5939 Jan  4  2014 vpb.conf
/dev/pts/5
15:47:29
#ls -l /etc/asterisk/
total 672
-rw-r----- 1 asterisk asterisk   140 Jan  4  2014 adsi.conf
-rw-r----- 1 asterisk asterisk  2760 Jan  4  2014 agents.conf
-rw-r----- 1 asterisk asterisk  2904 Jan  4  2014 ais.conf
-rw-r----- 1 asterisk asterisk  2084 Jan  4  2014 alarmreceiver.conf
-rw-r----- 1 asterisk asterisk  3498 Jan  4  2014 alsa.conf
-rw-r----- 1 asterisk asterisk   767 Jan  4  2014 amd.conf
-rw-r----- 1 asterisk asterisk  1044 Jan  4  2014 app_mysql.conf
-rw-r----- 1 asterisk asterisk  3254 Jan  4  2014 asterisk.adsi
-rw-r----- 1 asterisk asterisk  3465 Jan  4  2014 asterisk.conf
...
-rw-r----- 1 asterisk asterisk   742 Jan  4  2014 sip_notify.conf
-rw-r----- 1 asterisk asterisk  9185 Jan  4  2014 skinny.conf
-rw-r----- 1 asterisk asterisk  6774 Jan  4  2014 sla.conf
-rw-r----- 1 asterisk asterisk  2669 Jan  4  2014 smdi.conf
-rw-r----- 1 asterisk asterisk  1384 Jan  4  2014 telcordia-1.adsi
-rw-r----- 1 asterisk asterisk   656 Jan  4  2014 udptl.conf
-rw-r----- 1 asterisk asterisk  5096 Jan  4  2014 unistim.conf
-rw-r----- 1 asterisk asterisk  2423 Jan  4  2014 users.conf
-rw-r----- 1 asterisk asterisk 21238 Jan  4  2014 voicemail.conf
-rw-r----- 1 asterisk asterisk  5939 Jan  4  2014 vpb.conf
/dev/pts/6
15:47:56
#ls -l /etc/asterisk/ | grep bak

/dev/pts/5
15:47:56
#ls -l /etc/asterisk/ | grep bak

/dev/pts/6
15:52:10
#ls /etc/asterisk/
adsi.conf                cdr_syslog.conf          dundi.conf              manager.conf            res_ldap.conf
agents.conf              cdr_tds.conf             enum.conf               manager.d               res_odbc.conf
ais.conf                 cel.conf                 extconfig.conf          meetme.conf             res_pgsql.conf
alarmreceiver.conf       cel_custom.conf          extensions.ael          mgcp.conf               res_pktccops.conf
alsa.conf                cel_odbc.conf            extensions.lua          minivm.conf             res_snmp.conf
amd.conf                 cel_pgsql.conf           extensions_minivm.conf  misdn.conf              res_stun_monitor.conf
app_mysql.conf           cel_sqlite3_custom.conf  features.conf           modules.conf            rtp.conf
asterisk.adsi            cel_tds.conf             festival.conf           musiconhold.conf        say.conf
asterisk.conf            chan_dahdi.conf          followme.conf           muted.conf              sip_notify.conf
calendar.conf            chan_mobile.conf         func_odbc.conf          osp.conf                skinny.conf
ccss.conf                chan_ooh323.conf         gtalk.conf              oss.conf                sla.conf
cdr_adaptive_odbc.conf   cli_aliases.conf         h323.conf               phone.conf              smdi.conf
cdr.conf                 cli.conf                 http.conf               phoneprov.conf          telcordia-1.adsi
cdr_custom.conf          cli_permissions.conf     iax.conf                queuerules.conf         udptl.conf
cdr_manager.conf         codecs.conf              iaxprov.conf            queues.conf             unistim.conf
cdr_mysql.conf           console.conf             indications.conf        res_config_mysql.conf   users.conf
cdr_odbc.conf            dbsep.conf               jabber.conf             res_config_sqlite.conf  voicemail.conf
cdr_pgsql.conf           dnsmgr.conf              jingle.conf             res_curl.conf           vpb.conf
cdr_sqlite3_custom.conf  dsp.conf                 logger.conf             res_fax.conf
/dev/pts/5
15:52:10
#ls /etc/asterisk/
adsi.conf                cdr_syslog.conf          dundi.conf              manager.conf            res_ldap.conf
agents.conf              cdr_tds.conf             enum.conf               manager.d               res_odbc.conf
ais.conf                 cel.conf                 extconfig.conf          meetme.conf             res_pgsql.conf
alarmreceiver.conf       cel_custom.conf          extensions.ael          mgcp.conf               res_pktccops.conf
alsa.conf                cel_odbc.conf            extensions.lua          minivm.conf             res_snmp.conf
amd.conf                 cel_pgsql.conf           extensions_minivm.conf  misdn.conf              res_stun_monitor.conf
app_mysql.conf           cel_sqlite3_custom.conf  features.conf           modules.conf            rtp.conf
asterisk.adsi            cel_tds.conf             festival.conf           musiconhold.conf        say.conf
asterisk.conf            chan_dahdi.conf          followme.conf           muted.conf              sip_notify.conf
calendar.conf            chan_mobile.conf         func_odbc.conf          osp.conf                skinny.conf
ccss.conf                chan_ooh323.conf         gtalk.conf              oss.conf                sla.conf
cdr_adaptive_odbc.conf   cli_aliases.conf         h323.conf               phone.conf              smdi.conf
cdr.conf                 cli.conf                 http.conf               phoneprov.conf          telcordia-1.adsi
cdr_custom.conf          cli_permissions.conf     iax.conf                queuerules.conf         udptl.conf
cdr_manager.conf         codecs.conf              iaxprov.conf            queues.conf             unistim.conf
cdr_mysql.conf           console.conf             indications.conf        res_config_mysql.conf   users.conf
cdr_odbc.conf            dbsep.conf               jabber.conf             res_config_sqlite.conf  voicemail.conf
cdr_pgsql.conf           dnsmgr.conf              jingle.conf             res_curl.conf           vpb.conf
cdr_sqlite3_custom.conf  dsp.conf                 logger.conf             res_fax.conf
/dev/pts/6
15:52:12
#ls /etc/asterisk/ | grep bak

/dev/pts/5
15:52:12
#ls /etc/asterisk/ | grep bak

/dev/pts/6
15:52:45
#apt
apt-cache                     apt-ftparchive                aptitude-curses               apt-mark
apt-cdrom                     apt-get                       aptitude-run-state-bundle     apt-sortpkgs
apt-config                    aptitude                      apt-key
apt-extracttemplates          aptitude-create-state-bundle  apt-listchanges
15:52:45
#apt-get ?
E: Invalid operation ?
/dev/pts/5
15:52:45
#apt
apt-cache                     apt-ftparchive                aptitude-curses               apt-mark
apt-cdrom                     apt-get                       aptitude-run-state-bundle     apt-sortpkgs
apt-config                    aptitude                      apt-key
apt-extracttemplates          aptitude-create-state-bundle  apt-listchanges
15:52:45
#apt-get ?
E: Invalid operation ?
/dev/pts/6
15:52:58
#apt-get
apt 0.9.7.9 for amd64 compiled on Oct  8 2014 10:25:29
Usage: apt-get [options] command
       apt-get [options] install|remove pkg1 [pkg2 ...]
       apt-get [options] source pkg1 [pkg2 ...]
apt-get is a simple command line interface for downloading and
installing packages. The most frequently used commands are update
and install.
Commands:
   update - Retrieve new lists of packages
   upgrade - Perform an upgrade
...
  -f  Attempt to correct a system with broken dependencies in place
  -m  Attempt to continue if archives are unlocatable
  -u  Show a list of upgraded packages as well
  -b  Build the source package after fetching it
  -V  Show verbose version numbers
  -c=? Read this configuration file
  -o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp
See the apt-get(8), sources.list(5) and apt.conf(5) manual
pages for more information and options.
                       This APT has Super Cow Powers.
/dev/pts/5
15:52:58
#apt-get
apt 0.9.7.9 for amd64 compiled on Oct  8 2014 10:25:29
Usage: apt-get [options] command
       apt-get [options] install|remove pkg1 [pkg2 ...]
       apt-get [options] source pkg1 [pkg2 ...]
apt-get is a simple command line interface for downloading and
installing packages. The most frequently used commands are update
and install.
Commands:
   update - Retrieve new lists of packages
   upgrade - Perform an upgrade
...
  -f  Attempt to correct a system with broken dependencies in place
  -m  Attempt to continue if archives are unlocatable
  -u  Show a list of upgraded packages as well
  -b  Build the source package after fetching it
  -V  Show verbose version numbers
  -c=? Read this configuration file
  -o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp
See the apt-get(8), sources.list(5) and apt.conf(5) manual
pages for more information and options.
                       This APT has Super Cow Powers.
/dev/pts/6
15:53:00
#apt-get update asterisk
E: The update command takes no arguments
/dev/pts/5
15:53:00
#apt-get update asterisk
E: The update command takes no arguments
/dev/pts/6
15:53:20
#apt-get install asterisk
Reading package lists... Done
Building dependency tree
Reading state information... Done
asterisk is already the newest version.
The following packages were automatically installed and are no longer required:
  libgadu3 libmozjs24d xulrunner-24.0
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
/dev/pts/5
15:53:20
#apt-get install asterisk
Reading package lists... Done
Building dependency tree
Reading state information... Done
asterisk is already the newest version.
The following packages were automatically installed and are no longer required:
  libgadu3 libmozjs24d xulrunner-24.0
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
/dev/pts/6
15:53:29
#ls /etc/asterisk/
adsi.conf                cdr_syslog.conf          dundi.conf              logger.conf             res_fax.conf
agents.conf              cdr_tds.conf             enum.conf               manager.conf            res_ldap.conf
ais.conf                 cel.conf                 extconfig.conf          manager.d               res_odbc.conf
alarmreceiver.conf       cel_custom.conf          extensions.ael          meetme.conf             res_pgsql.conf
alsa.conf                cel_odbc.conf            extensions.conf.bak     mgcp.conf               res_pktccops.conf
amd.conf                 cel_pgsql.conf           extensions.lua          minivm.conf             res_snmp.conf
app_mysql.conf           cel_sqlite3_custom.conf  extensions_minivm.conf  misdn.conf              res_stun_monitor.conf
asterisk.adsi            cel_tds.conf             features.conf           modules.conf            rtp.conf
asterisk.conf            chan_dahdi.conf          festival.conf           musiconhold.conf        say.conf
calendar.conf            chan_mobile.conf         followme.conf           muted.conf              sip_notify.conf
ccss.conf                chan_ooh323.conf         func_odbc.conf          osp.conf                skinny.conf
cdr_adaptive_odbc.conf   cli_aliases.conf         gtalk.conf              oss.conf                sla.conf
cdr.conf                 cli.conf                 h323.conf               phone.conf              smdi.conf
cdr_custom.conf          cli_permissions.conf     http.conf               phoneprov.conf          telcordia-1.adsi
cdr_manager.conf         codecs.conf              iax.conf                queuerules.conf         udptl.conf
cdr_mysql.conf           console.conf             iaxprov.conf            queues.conf             unistim.conf
cdr_odbc.conf            dbsep.conf               indications.conf        res_config_mysql.conf   users.conf
cdr_pgsql.conf           dnsmgr.conf              jabber.conf             res_config_sqlite.conf  voicemail.conf
cdr_sqlite3_custom.conf  dsp.conf                 jingle.conf             res_curl.conf           vpb.conf
/dev/pts/5
15:53:29
#ls /etc/asterisk/
adsi.conf                cdr_syslog.conf          dundi.conf              logger.conf             res_fax.conf
agents.conf              cdr_tds.conf             enum.conf               manager.conf            res_ldap.conf
ais.conf                 cel.conf                 extconfig.conf          manager.d               res_odbc.conf
alarmreceiver.conf       cel_custom.conf          extensions.ael          meetme.conf             res_pgsql.conf
alsa.conf                cel_odbc.conf            extensions.conf.bak     mgcp.conf               res_pktccops.conf
amd.conf                 cel_pgsql.conf           extensions.lua          minivm.conf             res_snmp.conf
app_mysql.conf           cel_sqlite3_custom.conf  extensions_minivm.conf  misdn.conf              res_stun_monitor.conf
asterisk.adsi            cel_tds.conf             features.conf           modules.conf            rtp.conf
asterisk.conf            chan_dahdi.conf          festival.conf           musiconhold.conf        say.conf
calendar.conf            chan_mobile.conf         followme.conf           muted.conf              sip_notify.conf
ccss.conf                chan_ooh323.conf         func_odbc.conf          osp.conf                skinny.conf
cdr_adaptive_odbc.conf   cli_aliases.conf         gtalk.conf              oss.conf                sla.conf
cdr.conf                 cli.conf                 h323.conf               phone.conf              smdi.conf
cdr_custom.conf          cli_permissions.conf     http.conf               phoneprov.conf          telcordia-1.adsi
cdr_manager.conf         codecs.conf              iax.conf                queuerules.conf         udptl.conf
cdr_mysql.conf           console.conf             iaxprov.conf            queues.conf             unistim.conf
cdr_odbc.conf            dbsep.conf               indications.conf        res_config_mysql.conf   users.conf
cdr_pgsql.conf           dnsmgr.conf              jabber.conf             res_config_sqlite.conf  voicemail.conf
cdr_sqlite3_custom.conf  dsp.conf                 jingle.conf             res_curl.conf           vpb.conf
/dev/pts/6
15:53:59
#ls /etc/asterisk/ | grep sip
sip.conf.bak
sip_notify.conf
/dev/pts/5
15:53:59
#ls /etc/asterisk/ | grep sip
sip.conf.bak
sip_notify.conf
/dev/pts/6
15:54:05
#ls /etc/asterisk/ | grep ext
extconfig.conf
extensions.ael
extensions.conf.bak
extensions.lua
extensions_minivm.conf
/dev/pts/5
15:54:05
#ls /etc/asterisk/ | grep ext
extconfig.conf
extensions.ael
extensions.conf.bak
extensions.lua
extensions_minivm.conf
/dev/pts/6
15:56:54
#vim /etc/asterisk/sip.conf
--- /dev/null	2014-11-24 08:50:04.273862305 +0200
+++ /etc/asterisk/sip.conf	2014-11-24 17:09:17.867304451 +0200
@@ -0,0 +1,13 @@
+[general]
+context=default
+
+[2301]
+type=friend
+secret=1234
+host=dynamic
+
+[2302]
+type=friend
+secret=1234
+host=dynamic
+
/dev/pts/5
15:56:54
#vim /etc/asterisk/sip.conf
прошло 12 минут
/dev/pts/6
16:09:17
#more /etc/asterisk/sip.conf
/dev/pts/5
16:09:17
#more /etc/asterisk/sip.conf
/dev/pts/6
16:11:16
#vim /etc/asterisk/sip.conf
/dev/pts/5
16:11:16
#vim /etc/asterisk/sip.conf
/dev/pts/6
16:13:24
#asterisk -rx "sip reload"

/dev/pts/5
16:13:24
#asterisk -rx "sip reload"

/dev/pts/6
16:13:40
#asterisk -rx "sip show peers"
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2301                       (Unspecified)                            D   N             0        Unmonitored
2302                       (Unspecified)                            D   N             0        Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline]
/dev/pts/5
16:13:40
#asterisk -rx "sip show peers"
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2301                       (Unspecified)                            D   N             0        Unmonitored
2302                       (Unspecified)                            D   N             0        Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline]
/dev/pts/6
16:16:24
#asterisk -rx "sip show peers"
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2301                       (Unspecified)                            D   N             0        Unmonitored
2302                       (Unspecified)                            D   N             0        Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline]
/dev/pts/5
16:16:24
#asterisk -rx "sip show peers"
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2301                       (Unspecified)                            D   N             0        Unmonitored
2302                       (Unspecified)                            D   N             0        Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline]
прошло 11 минут
/dev/pts/6
16:27:39
#asterisk -rx "sip show peers"
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2301                       (Unspecified)                            D   N             0        Unmonitored
2302                       (Unspecified)                            D   N             0        Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline]
/dev/pts/5
16:27:39
#asterisk -rx "sip show peers"
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2301                       (Unspecified)                            D   N             0        Unmonitored
2302                       (Unspecified)                            D   N             0        Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline]
/dev/pts/6
16:27:42
#asterisk -rx "sip show peers"
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2301                       (Unspecified)                            D   N             0        Unmonitored
2302                       (Unspecified)                            D   N             0        Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline]
/dev/pts/5
16:27:42
#asterisk -rx "sip show peers"
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2301                       (Unspecified)                            D   N             0        Unmonitored
2302                       (Unspecified)                            D   N             0        Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline]
/dev/pts/6
16:27:50
#asterisk -rx "sip show peers"
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2301                       (Unspecified)                            D   N             0        Unmonitored
2302                       (Unspecified)                            D   N             0        Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline]
/dev/pts/5
16:27:50
#asterisk -rx "sip show peers"
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2301                       (Unspecified)                            D   N             0        Unmonitored
2302                       (Unspecified)                            D   N             0        Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline]
/dev/pts/6
16:27:51
#asterisk -rx "sip show peers"
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2301                       (Unspecified)                            D   N             0        Unmonitored
2302                       (Unspecified)                            D   N             0        Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline]
/dev/pts/5
16:27:51
#asterisk -rx "sip show peers"
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2301                       (Unspecified)                            D   N             0        Unmonitored
2302                       (Unspecified)                            D   N             0        Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline]
/dev/pts/6
16:27:53
#asterisk -rx "sip show peers"
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2301                       (Unspecified)                            D   N             0        Unmonitored
2302                       (Unspecified)                            D   N             0        Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline]
/dev/pts/5
16:27:53
#asterisk -rx "sip show peers"
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2301                       (Unspecified)                            D   N             0        Unmonitored
2302                       (Unspecified)                            D   N             0        Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline]
/dev/pts/6
16:29:40
#asterisk -rx "sip show peers"
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2301                       (Unspecified)                            D   N             0        Unmonitored
2302                       (Unspecified)                            D   N             0        Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline]

Статистика

Время первой команды журнала14:19:02 2014-11-24
Время последней команды журнала16:29:40 2014-11-24
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %15.84
Процент синтаксически неверно набранных команд, % 1.98
Суммарное время работы с терминалом *, час 1.55
Количество командных строк в единицу времени, команда/мин 1.08
Частота использования команд
grep24|=================| 17.02%
asterisk21|==============| 14.89%
dpkg18|============| 12.77%
ls14|=========| 9.93%
less12|========| 8.51%
apt-get10|=======| 7.09%
ps8|=====| 5.67%
more8|=====| 5.67%
mv6|====| 4.26%
vim4|==| 2.84%
apt-cache4|==| 2.84%
sort2|=| 1.42%
/etc/init.d/asterisk2|=| 1.42%
wc2|=| 1.42%
netstat2|=| 1.42%
apt2|=| 1.42%
pa2|=| 1.42%
____
*) Интервалы неактивности длительностью 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$