/l3/users/sid/nt-voip/linux8.unix.nt.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 |
|
#vi /etc/asterisk/zapata.conf
|
#ssh linux6
Linux linux6 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Oct 29 09:53:51 2010 from linux5.unix.nt root@linux6:~# asterisk -rvv Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> ... Name/Username Host Mask Port Status tl/kzn 192.168.108.1 (D) 255.255.255.255 4569 OK (21 ms) ptr/kzn 192.168.105.1 (D) 255.255.255.255 4569 OK (17 ms) msk/kzn (Unspecified) (D) 255.255.255.255 0 UNKNOWN 3 iax2 peers [2 online, 1 offline, 0 unmonitored] linux6*CLI> exit Executing last minute cleanups root@linux6:~# exit logout Connection to linux6 closed. |
#asterisk -rv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... linux8*CLI> q No such command 'q' (type 'help q' for other possible commands) linux8*CLI> linux8*CLI> linux8*CLI> linux8*CLI> linux8*CLI> quti No such command 'quti' (type 'help quti' for other possible commands) linux8*CLI> quit Executing last minute cleanups |
#asterisk -rv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... [Oct 29 11:47:55] NOTICE[3654]: chan_iax2.c:8935 iax2_poke_peer: Still have a callno... [Oct 29 11:47:55] NOTICE[3654]: chan_iax2.c:8935 iax2_poke_peer: Still have a callno... [Oct 29 11:47:55] NOTICE[3654]: chan_iax2.c:8935 iax2_poke_peer: Still have a callno... [Oct 29 11:47:55] NOTICE[3654]: chan_iax2.c:8935 iax2_poke_peer: Still have a callno... == Parsing '/etc/asterisk/iaxprov.conf': Found linux7*CLI> linux7*CLI> linux7*CLI> linux7*CLI> exit Executing last minute cleanups |
#ssh linux5
Linux linux23.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Oct 28 16:17:01 2010 from linux7.unix.nt root@linux23:~# exit logout Connection to linux5 closed. |
#ssh linux7
Linux linux7.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Oct 29 10:37:15 2010 l3-agent is already running: pid=2918; pidfile=/root/.lilalo/l3-agent.pid |
#ssh linux6
Linux linux6 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Oct 29 10:44:00 2010 from linux8.unix.nt l3-agent is already running: pid=3318; pidfile=/root/.lilalo/l3-agent.pid root@linux6:~# asterisk -rvv\ > ... linux6*CLI> iax2 show peers Name/Username Host Mask Port Status tl/kzn 192.168.108.1 (D) 255.255.255.255 4569 OK (6 ms) ptr/kzn 192.168.105.1 (D) 255.255.255.255 4569 OK (17 ms) msk/kzn 192.168.107.1 (D) 255.255.255.255 4569 OK (6 ms) 3 iax2 peers [3 online, 0 offline, 0 unmonitored] linux6*CLI> exit Executing last minute cleanups root@linux6:~# logout Connection to linux6 closed. |
#asterisk -rv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Zap/4-1 is ringing -- Zap/4-1 answered SIP/1101-09658258 -- Hungup 'Zap/4-1' == Spawn extension (group01, 1201, 1) exited non-zero on 'SIP/1101-09658258' -- Extension '1101' in context 'default' from '1201' does not exist. Rejecting call on channel 0/1, span 1 -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
# 21 callerid="Channel 4" <4004>
Linux linux1.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Oct 29 10:26:59 2010 from linux8.unix.nt l3-agent is already running: pid=5085; pidfile=/root/.lilalo/l3-agent.pid |
#exit
exit Connection to linux1 closed. |
#ssh linux3
Linux linux3.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Oct 29 10:57:21 2010 from 192.168.112.2 l3-agent is already running: pid=3343; pidfile=/root/.lilalo/l3-agent.pid |
#rm /etc/zaptel.conf
|
#exit
exit Connection to linux3 closed. |
#ssh linux4
Linux linux4.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Oct 28 17:12:04 2010 from linux8.unix.nt root@linux4:~# scp /etc/asterisk/zapata.conf linux3:/etc/asterisk/ root@linux3's password: zapata.conf 100% 24KB 23.6KB/s 00:00 root@linux4:~# scp /etc/asterisk/zapata.conf linux8:/tmp/zapata.conf root@linux8's password: zapata.conf 100% 24KB 23.6KB/s 00:00 root@linux4:~# exit logout Connection to linux4 closed. |
#scp /tmp/zapata.conf linux11:/etc/asterisk/
zapata.conf 100% 24KB 23.6KB/s 00:00 |
#scp /tmp/zapata.conf linux1:/etc/asterisk/
zapata.conf 100% 24KB 23.6KB/s 00:00 |
#screen -x
|
#scp /tmp/zapata.conf linux2:/etc/asterisk/
zapata.conf 100% 24KB 23.6KB/s 00:00 |
## srtpcapacble=yes
|
#less /etc/asterisk/iax.conf.SAVE
|
#dpkg -L asterisk
![]() asterisk asterisk-sounds-extra asterisk-config asterisk-sounds-main |
#dpkg -L asterisk | grep -i ldap
![]() |
#dpkg -L asterisk | less
|
## http://ljplus.ru/img4/s/u/supehero/shsh.jpg
|
#ssh linu1
![]() ssh: Could not resolve hostname linu1: Name or service not known |
#asterisk -rv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... level 1: lastdata=SIP/1101|10|tT level 1: start=2010-10-29 12:25:42 level 1: answer=2010-10-29 12:25:42 level 1: duration=0 level 1: billsec=0 level 1: disposition=ANSWERED level 1: amaflags=DOCUMENTATION level 1: uniqueid=asterisk-1288344342.17 linux1*CLI> exit Executing last minute cleanups |
#ssh linux1
Linux linux1.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Oct 29 10:55:01 2010 from linux8.unix.nt l3-agent is already running: pid=5085; pidfile=/root/.lilalo/l3-agent.pid |
#exit
exit Connection to linux1 closed. |
#less /etc/zaptel.conf
|
#ztcfg -v
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== 2 channels to configure. |
#ztcfg -vv
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== Channel map: Channel 02: FXS Kewlstart (Default) (Slaves: 02) Channel 04: FXO Loopstart (Default) (Slaves: 04) 2 channels to configure. |
#vi /etc/zaptel.conf
--- /tmp/l3-saved-4969.8787.31529 2010-10-29 12:30:12.000000000 +0300 +++ /etc/zaptel.conf 2010-10-29 12:30:18.000000000 +0300 @@ -5,9 +5,9 @@ # # Span 1: WCTDM/0 "Wildcard TDM410P Board 1" (MASTER) # channel 1, WCTDM/0/0, no module. -fxsks=2 +fxoks=2 # channel 3, WCTDM/0/2, no module. -fxols=4 +fxsls=4 # Global data |
#vi /etc/zaptel.conf
--- /tmp/l3-saved-4969.22925.10874 2010-10-29 12:30:54.000000000 +0300 +++ /etc/zaptel.conf 2010-10-29 12:31:07.000000000 +0300 @@ -5,9 +5,9 @@ # # Span 1: WCTDM/0 "Wildcard TDM410P Board 1" (MASTER) # channel 1, WCTDM/0/0, no module. -fxoks=2 +fxsks=2 # channel 3, WCTDM/0/2, no module. -fxsls=4 +fxols=4 # Global data |
#vi /etc/asterisk/zapata.conf
--- /tmp/l3-saved-4969.23050.13548 2010-10-29 12:35:31.000000000 +0300 +++ /etc/asterisk/zapata.conf 2010-10-29 12:35:49.000000000 +0300 @@ -679,5 +679,5 @@ ; If no pattern is matched here is where we go. ;context=default ;channel => 1 - +group = 1 channel => 4 |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-4969.27681.16045 2010-10-29 12:36:01.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-29 12:36:38.000000000 +0300 @@ -33,6 +33,7 @@ ;exten => h,n,System(lame /var/spool/asterisk/monitor/${FILENAME}.wav /var/spool/asterisk/monitor/${FILENAME}.mp3) [local] +exten => 1805,1,Dial(Zap/G1) exten => _18XX,1,Macro(answer-with-monitor,${EXTEN}) exten => 1803,1,Dial(SIP/1801&SIP/1802) exten => 1804,1,Festival(Hello my friend! Fuck up!) |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... [Oct 29 12:37:25] WARNING[6208]: res_musiconhold.c:660 get_mohbyname: Music on Hold class 'default' not found -- Hungup 'Zap/4-1' -- Channel Zap/4-1 still has call, ringing phone -- Hungup 'Zap/4-1' == Spawn extension (group1, 1805, 1) exited non-zero on 'IAX2/msk-420' -- Hungup 'IAX2/msk-420' linux8*CLI> linux8*CLI> linux8*CLI> quit Executing last minute cleanups |
#ssh linux6
ll ; want to create a single "group" for all channels of the PRI. ; ; switchtype = national ; signalling = pri_cpe ; switchtype = national ; signalling = pri_cpe ; signalling = pri_cpe Linux linux6 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; ... channel => 4 group = 2 context = tula channel => 2 root@linux6:~# root@linux6:~# root@linux6:~# root@linux6:~# exit logout Connection to linux6 closed. |
#less /etc/asterisk/zapata-channels.conf
|
#apt-get install ejabberd
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Будут установлены следующие дополнительные пакеты: erlang-base erlang-nox libsctp1 lksctp-tools Предлагаемые пакеты: libunix-syslog-perl erlang-x11 erlang erlang-manpages erlang-doc-html НОВЫЕ пакеты, которые будут установлены: ejabberd erlang-base erlang-nox libsctp1 lksctp-tools обновлено 0, установлено 5 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. ... Настраивается пакет libsctp1 (1.0.9.dfsg-1) ... Настраивается пакет erlang-base (1:12.b.3-dfsg-4) ... Searching for services which depend on erlang and should be started...none found. Настраивается пакет erlang-nox (1:12.b.3-dfsg-4) ... Настраивается пакет ejabberd (2.0.1-6+lenny2) ... adduser: Предупреждение: домашний каталог `/var/lib/ejabberd' не принадлежит пользователю, который сейчас создаётся. Generating SSL certificate /etc/ejabberd/ejabberd.pem... Creating config file /etc/ejabberd/ejabberd.cfg with new version Starting jabber server: ejabberd. Настраивается пакет lksctp-tools (1.0.9.dfsg-1) ... |
#cat /etc/bind/tl.unix.nt
$TTL 3600 @ SOA linux8.unix.nt. root 1 7200 900 9000 3600 NS linux8.unix.nt. MX 10 linux8.unix.nt. A 192.168.108.1 |
#host tl.unix.nt
tl.unix.nt has address 192.168.108.1 tl.unix.nt mail is handled by 10 linux8.unix.nt. |
#netstat -lnp | less
|
#netstat -lnp | cut -c 70-| less
|
#netstat -lnp | cut -c 80-| less
|
#netstat -lnp | cut -c 80-| sort -u
1653/portmap 1664/rpc.statd 1988/named 2006/sshd 2027/inetd 2041/nmbd 2043/smbd 2130/sendmail: MTA: 2150/dhcpd3 2197/festival 6359/asterisk 7375/epmd 8283/beam Path PID/Program name /tmp/ssh-ooPglj2622/agent.2622 /var/run/acpid.socket /var/run/asterisk/asterisk.ctl /var/run/dbus/system_bus_socket /var/run/sendmail/mta/smcontrol |
#/etc/init.d/ejabberd restart
Restarting jabber server: ejabberd. |
#netstat -lnp | grep 80/
![]() |
#/etc/init.d/ejabberd stop
Stopping jabber server: ejabberd. |
#dpkg -P ejabberd
(Чтение базы данных... на данный момент установлено 44274 файлов и каталогов.) Удаляется пакет ejabberd... Stopping jabber server: ejabberd already stopped. Удаляются файлы конфигурации пакета ejabberd... Удаляется пользователь `ejabberd' ... Предупреждение: в группе `ejabberd' больше нет членов. Готово. Группа `ejabberd' не существует. Обрабатываются триггеры для man-db ... |
#apt-get install ejabberd
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Предлагаемые пакеты: libunix-syslog-perl НОВЫЕ пакеты, которые будут установлены: ejabberd обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. Необходимо скачать 0B/1167kB архивов. После данной операции, объём занятого дискового пространства возрастёт на 3363kB. Предварительная настройка пакетов ... Выбор ранее не выбранного пакета ejabberd. (Чтение базы данных... на данный момент установлено 44027 файлов и каталогов.) Распаковывается пакет ejabberd (из файла .../ejabberd_2.0.1-6+lenny2_i386.deb)... Обрабатываются триггеры для man-db ... Настраивается пакет ejabberd (2.0.1-6+lenny2) ... adduser: Предупреждение: домашний каталог `/var/lib/ejabberd' не принадлежит пользователю, который сейчас создаётся. Generating SSL certificate /etc/ejabberd/ejabberd.pem... Creating config file /etc/ejabberd/ejabberd.cfg with new version Starting jabber server: ejabberd. |
#/etc/init.d/ejabberd start
Starting jabber server: ejabberd already running. |
#nestat -lnp | grep beam
![]() bash: nestat: команда не найдена |
#netstat -lnp | grep beam
tcp 0 0 0.0.0.0:5280 0.0.0.0:* LISTEN 9135/beam tcp 0 0 192.168.108.1:7777 0.0.0.0:* LISTEN 9135/beam tcp 0 0 0.0.0.0:5222 0.0.0.0:* LISTEN 9135/beam tcp 0 0 0.0.0.0:5269 0.0.0.0:* LISTEN 9135/beam tcp 0 0 0.0.0.0:53567 0.0.0.0:* LISTEN 9135/beam |
## altvnk@kzn.unnix.nt
|
## #sid@tl.unix.nt
|
#cat /root/
![]() .aptitude/ .l3rc .rnd .asterisk_history .lesshst .ssh/ .bash_history .lilalo/ table.txt .bash_profile .mc/ .viminfo .bashrc ports .vimrc .debtags/ ports2 .festival_history .profile |
#cat /root/table.txt
s altvnk leonid sid ома ÐлекÑей ids altvnk LKudrich sidr ------------------------------------------------------- ÐеоÑгий----------ÐÑÑÑм--------------Ðима ÐндÑей george temon user andrey george temon MrD Andrey |
#ssh linux10.unix.nt
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ... (Чтение базы данных... на данный момент установлено 112493 файлов и каталогов.) Распаковывается пакет ejabberd (из файла .../ejabberd_2.0.1-6+lenny2_i386.deb)... Обрабатываются триггеры для man-db ... Настраивается пакет ejabberd (2.0.1-6+lenny2) ... adduser: Предупреждение: домашний каталог `/var/lib/ejabberd' не принадлежит пользователю, который сейчас создаётся. Generating SSL certificate /etc/ejabberd/ejabberd.pem... Creating config file /etc/ejabberd/ejabberd.cfg with new version Starting jabber server: ejabberd. linux10:~# Read from remote host linux10.unix.nt: Connection reset by peer Connection to linux10.unix.nt closed. |
#ejabberdctl
![]() Usage: ejabberdctl [--node nodename] command [options] Available commands in this ejabberd node: status get ejabberd status stop stop ejabberd restart restart ejabberd reopen-log reopen log file register user server password register a user unregister user server unregister a user backup file store a database backup to file restore file restore a database backup from file ... rem-rosteritem user1 server1 user2 server2 Remove user2@server2 from user1@server1's roster compile file recompile and reload file status-num status number of logged users with status push-alltoall server group adds all the users to all the users in Group srg-user-del user server group host delete user@server from group on host connected-users list all established sessions Examples: ejabberdctl restart ejabberdctl --node ejabberd@host restart ejabberdctl vhost jabber.example.org ... |
#ejabberdctl add-rosteritem sid tl.unix.nt user vn.unix.nt user-vn default
![]() Usage: ejabberdctl [--node nodename] command [options] Available commands in this ejabberd node: status get ejabberd status stop stop ejabberd restart restart ejabberd reopen-log reopen log file register user server password register a user unregister user server unregister a user backup file store a database backup to file restore file restore a database backup from file ... rem-rosteritem user1 server1 user2 server2 Remove user2@server2 from user1@server1's roster compile file recompile and reload file status-num status number of logged users with status push-alltoall server group adds all the users to all the users in Group srg-user-del user server group host delete user@server from group on host connected-users list all established sessions Examples: ejabberdctl restart ejabberdctl --node ejabberd@host restart ejabberdctl vhost jabber.example.org ... |
#ejabberdctl add-rosteritem sid tl.unix.nt user vn.unix.nt user-vn default subs
|
#ejabberdctl stats registeredusers
2 |
#ejabberdctl add-rosteritem sid tl.unix.nt user vn.unix.nt user-vn default both
|
#vi /etc/ejabberd/
![]() --- /tmp/l3-saved-6634.8117.11937 2010-10-29 15:51:31.000000000 +0300 +++ /etc/ejabberd/ejabberd.cfg 2010-10-29 15:52:18.000000000 +0300 @@ -499,7 +499,7 @@ ]}, {mod_roster, []}, %%{mod_service_log,[]}, - %%{mod_shared_roster,[]}, + {mod_shared_roster,[]}, {mod_stats, []}, {mod_time, []}, {mod_vcard, []}, |
#vi /etc/ejabberd/ejabberd.cfg
|
#screen -x
|
#ssh linux10
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ... Artemiu:~# Artemiu:~# ps aux | grep eja root 4931 0.0 0.0 3944 772 pts/2 S+ 16:01 0:00 grep eja Artemiu:~# /etc/init.d/ejabberd restart Restarting jabber server: ejabberd is not running. Starting ejabberd. Artemiu:~# Artemiu:~# Artemiu:~# exit logout Connection to linux10 closed. |
#jobs
[1]+ Stopped /usr/bin/vi "$@" |
#fg 1
![]() 31 32 %% Admin user 33 {acl, admin, {user, "admin", "tl.unix.nt"}}. 34 %%%%%%%%%%e 39 {hosts, ["tl.unix.nt"]}. 42 %%% This configuration file contains Erlang terms. 43 %%% - The character to comment a line is %ax, here are the concepts:% 44 %%% 45 %%% - Each term ends in a dot, for example: 46 %%% override_global. 47 %%% 48 %%% - A tuple has a fixed definition, its elements53,1 6% 49 %%% enclosed in {}, and separated with commas: 50 %%% {loglevel, 4}. [1]+ Stopped /usr/bin/vi "$@" 51 %%% 52 %%% - A list can have as many elements as you want, 53 %%% and is enclosed in [], for example: |
#exit
![]() exit Есть приостановленные задачи. |
#jobs
[1]+ Stopped /usr/bin/vi "$@" |
#fg 1
31 32 %% Admin user 33 {acl, admin, {user, "admin", "tl.unix.nt"}}. 34 %%%%%%%%%%e 39 {hosts, ["tl.unix.nt"]}. 42 %%% This configuration file contains Erlang terms. 43 %%% - The character to comment a line is %ax, here are the concepts:% 44 %%% 45 %%% - Each term ends in a dot, for example: 46 %%% override_global. 47 %%% 48 %%% - A tuple has a fixed definition, its elements are 49 %%% enclosed in {}, and separated with commas: 50 %%% {loglevel, 4}. 51 %%% 52 %%% - A list can have as many elements as you want, |
$TTL 3600 @ SOA linux8.unix.nt. root 1 7200 900 9000 3600 NS linux8.unix.nt. MX 10 linux8.unix.nt. A 192.168.108.1
.aptitude/ .l3rc .rnd .asterisk_history .lesshst .ssh/ .bash_history .lilalo/ table.txt .bash_profile .mc/ .viminfo .bashrc ports .vimrc .debtags/ ports2 .festival_history .profile
s altvnk leonid sid ома ÐлекÑей ids altvnk LKudrich sidr ------------------------------------------------------- ÐеоÑгий----------ÐÑÑÑм--------------Ðима ÐндÑей george temon user andrey george temon MrD Andrey
Время первой команды журнала | 09:28:02 2010-10-29 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:11:44 2010-10-29 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 12.87 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 4.63 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.36 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008