/l3/users/roman-sidorenko/asterisk/debian4/root :1 :2 :3 :4 :5 :6 :7 |
|
#vi sendmail.mc
--- /tmp/l3-saved-9764.21228.1971 2009-12-10 00:58:40.000000000 -1000 +++ sendmail.mc 2009-12-10 01:02:13.000000000 -1000 @@ -97,13 +97,14 @@ include(`/etc/mail/m4/dialup.m4')dnl include(`/etc/mail/m4/provider.m4')dnl dnl # -dnl # Default Mailer setup -MAILER_DEFINITIONS -MAILER(`local')dnl -MAILER(`smtp')dnl dnl # Masquerading options FEATURE(`always_add_domain')dnl -MASQUERADE_AS(`debian4')dnl +MASQUERADE_AS(`kiev.unix.nt')dnl FEATURE(`allmasquerade')dnl FEATURE(`masquerade_envelope')dnl + +dnl # Default Mailer setup +MAILER_DEFINITIONS +MAILER(`local')dnl +MAILER(`smtp')dnl |
#vi local-host-names
--- /tmp/l3-saved-9764.9629.14545 2009-12-10 01:02:47.000000000 -1000 +++ local-host-names 2009-12-10 01:02:57.000000000 -1000 @@ -1,2 +1,2 @@ localhost -debian4 +kiev.unix.nt |
#vi access
--- /tmp/l3-saved-9764.32762.30631 2009-12-10 01:03:00.000000000 -1000 +++ access 2009-12-10 01:03:44.000000000 -1000 @@ -80,7 +80,7 @@ Connect:IPv6:::1 RELAY GreetPause:IPv6:::1 0 ClientRate:IPv6:::1 0 -ClientConn:IPv6:::1 0 +Connect:192.168 RELAY #Connect:172.16 RELAY #Connect:172.17 RELAY #Connect:172.18 RELAY |
#echo privet | mail root@poltava.unix.nt
|
#mail
No mail for root |
#netstat -lnp
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:1314 0.0.0.0:* LISTEN 9287/festival tcp 0 0 0.0.0.0:43046 0.0.0.0:* LISTEN 2018/rpc.statd tcp 0 0 127.0.0.1:587 0.0.0.0:* LISTEN 12451/sendmail: MTA tcp 0 0 127.0.0.1:5038 0.0.0.0:* LISTEN 9397/asterisk tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2007/portmap tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN 9397/asterisk tcp 0 0 192.168.102.1:53 0.0.0.0:* LISTEN 10248/named tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 10248/named ... raw 0 0 0.0.0.0:1 0.0.0.0:* 7 2676/dhcpd3 Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node PID/Program name Path unix 2 [ ACC ] STREAM LISTENING 6787 2271/dbus-daemon /var/run/dbus/system_bus_socket unix 2 [ ACC ] STREAM LISTENING 7193 2607/hald @/var/run/hald/dbus-1BUOBsNF0y unix 2 [ ACC ] STREAM LISTENING 7188 2607/hald @/var/run/hald/dbus-SIbBIirpFM unix 2 [ ACC ] STREAM LISTENING 37678 9397/asterisk /var/run/asterisk/asterisk.ctl unix 2 [ ACC ] STREAM LISTENING 6767 2261/acpid /var/run/acpid.socket unix 2 [ ACC ] STREAM LISTENING 44420 12451/sendmail: MTA /var/run/sendmail/mta/smcontrol unix 2 [ ACC ] STREAM LISTENING 7156 2587/lpd /dev/printer |
#netstat -lnp | grep sendmail
tcp 0 0 127.0.0.1:587 0.0.0.0:* LISTEN 12451/sendmail: MTA tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 12451/sendmail: MTA unix 2 [ ACC ] STREAM LISTENING 44420 12451/sendmail: MTA /var/run/sendmail/mta/smcontrol |
#vi sendmail.mc
--- /tmp/l3-saved-9764.6813.7505 2009-12-10 01:05:57.000000000 -1000 +++ sendmail.mc 2009-12-10 01:06:19.000000000 -1000 @@ -54,7 +54,7 @@ dnl # FEATURE(`no_default_msa')dnl dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl -DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl +DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=0.0.0.0')dnl dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, M=Ea, Addr=::1')dnl DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1')dnl dnl # |
#/etc/init.d/sendmail restart
Restarting Mail Transport Agent (MTA): sendmail. |
#mail
No mail for root |
#mail
No mail for root |
#tail /var/log/mail.log
Dec 10 01:05:32 debian4 sendmail[12501]: nBAB5WnH012501: from=root, size=33, class=0, nrcpts=1, msgid=<200912101105.nBAB5WnH012501@kiev.unix.nt>, relay=root@localhost Dec 10 01:05:32 debian4 sm-mta[12502]: nBAB5WeG012502: from=<root@kiev.unix.nt>, size=306, class=0, nrcpts=1, msgid=<200912101105.nBAB5WnH012501@kiev.unix.nt>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1] Dec 10 01:05:32 debian4 sendmail[12501]: nBAB5WnH012501: to=root@poltava.unix.nt, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30033, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (nBAB5WeG012502 Message accepted for delivery) Dec 10 01:05:32 debian4 sm-mta[12504]: nBAB5WeG012502: to=<root@poltava.unix.nt>, ctladdr=<root@kiev.unix.nt> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120306, relay=poltava.unix.nt. [192.168.101.3], dsn=4.0.0, stat=Deferred: Connection refused by poltava.unix.nt. Dec 10 01:06:24 debian4 sm-mta[12670]: starting daemon (8.14.3): SMTP+queueing@00:10:00 Dec 10 01:06:24 debian4 sm-mta[12671]: nBAB5WeG012502: to=<root@poltava.unix.nt>, ctladdr=<root@kiev.unix.nt> (0/0), delay=00:00:52, xdelay=00:00:00, mailer=esmtp, pri=210306, relay=poltava.unix.nt. [192.168.101.3], dsn=4.0.0, stat=Deferred: Connection refused by poltava.unix.nt. Dec 10 01:07:03 debian4 sm-mta[12699]: nBAB72rA012699: from=<root@poltava.unix.nt>, size=494, class=0, nrcpts=1, msgid=<200912101104.nBAB4op1003246@poltava.unix.nt>, proto=ESMTP, daemon=MTA-v4, relay=[192.168.101.3] Dec 10 01:07:03 debian4 sm-mta[12699]: nBAB72rC012699: from=<root@poltava.unix.nt>, size=484, class=0, nrcpts=1, msgid=<200912101104.nBAB4bhP003232@poltava.unix.nt>, proto=ESMTP, daemon=MTA-v4, relay=[192.168.101.3] Dec 10 01:07:04 debian4 sm-mta[12700]: nBAB72rA012699: to=user, delay=00:00:01, xdelay=00:00:01, mailer=local, pri=30680, dsn=2.0.0, stat=Sent Dec 10 01:07:11 debian4 sm-mta[12702]: nBAB72rC012699: to=user, delay=00:00:08, xdelay=00:00:08, mailer=local, pri=30670, dsn=2.0.0, stat=Sent |
#tail /var/log/mail.log
Dec 10 01:05:32 debian4 sendmail[12501]: nBAB5WnH012501: from=root, size=33, class=0, nrcpts=1, msgid=<200912101105.nBAB5WnH012501@kiev.unix.nt>, relay=root@localhost Dec 10 01:05:32 debian4 sm-mta[12502]: nBAB5WeG012502: from=<root@kiev.unix.nt>, size=306, class=0, nrcpts=1, msgid=<200912101105.nBAB5WnH012501@kiev.unix.nt>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1] Dec 10 01:05:32 debian4 sendmail[12501]: nBAB5WnH012501: to=root@poltava.unix.nt, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30033, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (nBAB5WeG012502 Message accepted for delivery) Dec 10 01:05:32 debian4 sm-mta[12504]: nBAB5WeG012502: to=<root@poltava.unix.nt>, ctladdr=<root@kiev.unix.nt> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120306, relay=poltava.unix.nt. [192.168.101.3], dsn=4.0.0, stat=Deferred: Connection refused by poltava.unix.nt. Dec 10 01:06:24 debian4 sm-mta[12670]: starting daemon (8.14.3): SMTP+queueing@00:10:00 Dec 10 01:06:24 debian4 sm-mta[12671]: nBAB5WeG012502: to=<root@poltava.unix.nt>, ctladdr=<root@kiev.unix.nt> (0/0), delay=00:00:52, xdelay=00:00:00, mailer=esmtp, pri=210306, relay=poltava.unix.nt. [192.168.101.3], dsn=4.0.0, stat=Deferred: Connection refused by poltava.unix.nt. Dec 10 01:07:03 debian4 sm-mta[12699]: nBAB72rA012699: from=<root@poltava.unix.nt>, size=494, class=0, nrcpts=1, msgid=<200912101104.nBAB4op1003246@poltava.unix.nt>, proto=ESMTP, daemon=MTA-v4, relay=[192.168.101.3] Dec 10 01:07:03 debian4 sm-mta[12699]: nBAB72rC012699: from=<root@poltava.unix.nt>, size=484, class=0, nrcpts=1, msgid=<200912101104.nBAB4bhP003232@poltava.unix.nt>, proto=ESMTP, daemon=MTA-v4, relay=[192.168.101.3] Dec 10 01:07:04 debian4 sm-mta[12700]: nBAB72rA012699: to=user, delay=00:00:01, xdelay=00:00:01, mailer=local, pri=30680, dsn=2.0.0, stat=Sent Dec 10 01:07:11 debian4 sm-mta[12702]: nBAB72rC012699: to=user, delay=00:00:08, xdelay=00:00:08, mailer=local, pri=30670, dsn=2.0.0, stat=Sent |
#tail -f /var/log/mail.log
Dec 10 01:05:32 debian4 sendmail[12501]: nBAB5WnH012501: from=root, size=33, class=0, nrcpts=1, msgid=<200912101105.nBAB5WnH012501@kiev.unix.nt>, relay=root@localhost Dec 10 01:05:32 debian4 sm-mta[12502]: nBAB5WeG012502: from=<root@kiev.unix.nt>, size=306, class=0, nrcpts=1, msgid=<200912101105.nBAB5WnH012501@kiev.unix.nt>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1] Dec 10 01:05:32 debian4 sendmail[12501]: nBAB5WnH012501: to=root@poltava.unix.nt, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30033, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (nBAB5WeG012502 Message accepted for delivery) Dec 10 01:05:32 debian4 sm-mta[12504]: nBAB5WeG012502: to=<root@poltava.unix.nt>, ctladdr=<root@kiev.unix.nt> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120306, relay=poltava.unix.nt. [192.168.101.3], dsn=4.0.0, stat=Deferred: Connection refused by poltava.unix.nt. Dec 10 01:06:24 debian4 sm-mta[12670]: starting daemon (8.14.3): SMTP+queueing@00:10:00 Dec 10 01:06:24 debian4 sm-mta[12671]: nBAB5WeG012502: to=<root@poltava.unix.nt>, ctladdr=<root@kiev.unix.nt> (0/0), delay=00:00:52, xdelay=00:00:00, mailer=esmtp, pri=210306, relay=poltava.unix.nt. [192.168.101.3], dsn=4.0.0, stat=Deferred: Connection refused by poltava.unix.nt. Dec 10 01:07:03 debian4 sm-mta[12699]: nBAB72rA012699: from=<root@poltava.unix.nt>, size=494, class=0, nrcpts=1, msgid=<200912101104.nBAB4op1003246@poltava.unix.nt>, proto=ESMTP, daemon=MTA-v4, relay=[192.168.101.3] Dec 10 01:07:03 debian4 sm-mta[12699]: nBAB72rC012699: from=<root@poltava.unix.nt>, size=484, class=0, nrcpts=1, msgid=<200912101104.nBAB4bhP003232@poltava.unix.nt>, proto=ESMTP, daemon=MTA-v4, relay=[192.168.101.3] Dec 10 01:07:04 debian4 sm-mta[12700]: nBAB72rA012699: to=user, delay=00:00:01, xdelay=00:00:01, mailer=local, pri=30680, dsn=2.0.0, stat=Sent Dec 10 01:07:11 debian4 sm-mta[12702]: nBAB72rC012699: to=user, delay=00:00:08, xdelay=00:00:08, mailer=local, pri=30670, dsn=2.0.0, stat=Sent Dec 10 01:08:53 debian4 sm-mta[12760]: nBAB8qli012760: from=<root@obukhov.unix.nt>, size=495, class=0, nrcpts=1, msgid=<200912101108.nBAB8qx3016209@obukhov.unix.nt>, proto=ESMTP, daemon=MTA-v4, relay=[192.168.102.2] Dec 10 01:08:53 debian4 sm-mta[12761]: nBAB8qli012760: to=user, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30683, dsn=2.0.0, stat=Sent ^C |
#su - user
user@kiev:~$ user@kiev:~$ user@kiev:~$ mail Mail version 8.1.2 01/15/2001. Type ? for help. "/var/mail/user": 3 messages 3 new >N 1 root@poltava.unix Thu Dec 10 01:07 20/761 test N 2 root@poltava.unix Thu Dec 10 01:07 20/751 test N 3 root@obukhov.unix Thu Dec 10 01:08 18/762 & t 1 Message 1: ... Date: Thu, 10 Dec 2009 13:08:52 +0200 From: root <root@obukhov.unix.nt> To: root@kiev.unix.nt HELLO & q Saved 3 messages in /home/user/mbox user@kiev:~$ mail No mail for user user@kiev:~$ exit logout |
#ssh root@192.168.101.3
root@192.168.101.3's password: Linux poltava.unix.nt 2.6.26-2-686 #1 SMP Wed Nov 4 20:45:37 UTC 2009 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 Dec 10 00:54:38 2009 l3-agent is already running: pid=2420; pidfile=/root/.lilalo/l3-agent.pid |
#tail /var/log/daemon.log
Dec 10 00:57:19 poltava named[2155]: FORMERR resolving 'ru.wikipedia.org/AAAA/IN': 208.80.152.130#53 Dec 10 00:57:19 poltava named[2155]: FORMERR resolving 'ru.wikipedia.org/AAAA/IN': 208.80.152.142#53 Dec 10 01:00:10 poltava named[2155]: client 127.0.0.1#36244: RFC 1918 response from Internet for 3.101.168.192.in-addr.arpa Dec 10 01:02:14 poltava named[2155]: client 127.0.0.1#44946: RFC 1918 response from Internet for 3.101.168.192.in-addr.arpa Dec 10 01:04:15 poltava named[2155]: client 127.0.0.1#35229: RFC 1918 response from Internet for 3.101.168.192.in-addr.arpa Dec 10 01:06:45 poltava named[2155]: client 127.0.0.1#49740: RFC 1918 response from Internet for 3.101.168.192.in-addr.arpa Dec 10 01:06:45 poltava named[2155]: client 127.0.0.1#60915: RFC 1918 response from Internet for 3.101.168.192.in-addr.arpa Dec 10 01:09:05 poltava named[2155]: client 127.0.0.1#47051: RFC 1918 response from Internet for 3.101.168.192.in-addr.arpa Dec 10 01:11:09 poltava named[2155]: client 127.0.0.1#38615: RFC 1918 response from Internet for 3.101.168.192.in-addr.arpa Dec 10 01:13:52 poltava named[2155]: client 127.0.0.1#33296: RFC 1918 response from Internet for 1.102.168.192.in-addr.arpa |
#netstat -lnp | grep :25
tcp 0 0 0.0.0.1:25 0.0.0.0:* LISTEN 3716/sendmail: MTA: |
#netstat -lnp | grep :25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 4031/sendmail: MTA: |
#apt-cache search popa3d
popa3d - A tiny POP3 daemon, designed with security as the primary goal |
#apt-get install popa3d
Reading package lists... Done Building dependency tree Reading state information... Done popa3d is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
#exit
exit Connection to 192.168.101.3 closed. |
#apt-get install popa3d
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: popa3d 0 upgraded, 1 newly installed, 0 to remove and 26 not upgraded. Need to get 32.1kB of archives. After this operation, 156kB of additional disk space will be used. Get:1 http://10.0.35.1 lenny/main popa3d 1.0.2-4 [32.1kB] Fetched 32.1kB in 0s (0B/s) ... Processing triggers for man-db ... Setting up popa3d (1.0.2-4) ... Adding group `popa3d' (GID 113) ... Done. Warning: The home dir /var/lib/popa3d you specified already exists. Adding system user `popa3d' (UID 111) ... Adding new user `popa3d' (UID 111) with group `popa3d' ... The home directory `/var/lib/popa3d' already exists. Not copying from `/etc/skel'. adduser: Warning: The home directory `/var/lib/popa3d' does not belong to the user you are currently creating. Starting pop daemon: popa3d. |
#less /etc/inetd.conf
|
#dpkg -L popa3d
/. /etc /etc/pam.d /etc/pam.d/popa3d /etc/init.d /etc/init.d/popa3d /var /var/lib /var/lib/popa3d /usr ... /usr/share/man/man8/popa3d.8.gz /usr/share/doc /usr/share/doc/popa3d /usr/share/doc/popa3d/VIRTUAL /usr/share/doc/popa3d/changelog.Debian.gz /usr/share/doc/popa3d/DESIGN.gz /usr/share/doc/popa3d/copyright /usr/share/doc/popa3d/CONTACT /usr/share/doc/popa3d/changelog.gz /usr/share/doc/popa3d/README.Debian |
#/etc/init.d/popa3d start
Starting pop daemon: /usr/sbin/popa3d already running. popa3d. |
#apt-cache search sylpheed
claws-mail - Fast, lightweight and user-friendly GTK2 based email client claws-mail-acpi-notifier - Laptop's Mail LED control for Claws Mail claws-mail-attach-remover - Mail attachment remover for Claws Mail claws-mail-bogofilter - Bogofilter plugin for Claws Mail claws-mail-cache-saver - Internal cache saver for Claws Mail mailer claws-mail-doc - User documentation for Claws Mail mailer claws-mail-extra-plugins - Extra plugins collection for Claws Mail mailer claws-mail-feeds-reader - Feeds (RSS/Atom) reader plugin for Claws Mail claws-mail-fetchinfo-plugin - X-FETCH headers adder for Claws Mail mailer claws-mail-html2-viewer - HTML mail/attachment viewer for Claws Mail mailer ... libjconv-bin - charset conversion library - binaries libjconv-dev - charset conversion library - development libjconv2 - charset conversion library libsylph-dev - e-mail client library derived from Sylpheed - devel files libsylph1 - e-mail client library derived from Sylpheed mail-notification - mail notification in system tray nautilus-sendto - integrates Evolution and Pidgin into the Nautilus file manager sylpheed - Light weight e-mail client with GTK+ sylpheed-doc - Light weight e-mail client with GTK+ (documentation) sylpheed-i18n - Locale data for Sylpheed (i18n support) |
#su - user
l3-agent is already running: pid=12797; pidfile=/home/user/.lilalo/l3-agent.pid user@kiev:~$ mail No mail for user user@kiev:~$ quit -su: quit: command not found user@kiev:~$ exit logout |
#apt-get install ejabberd
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: erlang-base erlang-nox libsctp1 lksctp-tools Suggested packages: libunix-syslog-perl erlang-x11 erlang erlang-manpages erlang-doc-html The following NEW packages will be installed: ejabberd erlang-base erlang-nox libsctp1 lksctp-tools 0 upgraded, 5 newly installed, 0 to remove and 26 not upgraded. ... Setting up libsctp1 (1.0.9.dfsg-1) ... Setting up erlang-base (1:12.b.3-dfsg-4) ... Searching for services which depend on erlang and should be started...none found. Setting up erlang-nox (1:12.b.3-dfsg-4) ... Setting up ejabberd (2.0.1-6+lenny1) ... adduser: Warning: The home directory `/var/lib/ejabberd' does not belong to the user you are currently creating. Generating SSL certificate /etc/ejabberd/ejabberd.pem... Creating config file /etc/ejabberd/ejabberd.cfg with new version Starting jabber server: ejabberd. Setting up lksctp-tools (1.0.9.dfsg-1) ... |
#vi /etc/ejabberd/ejabberd.cfg
|
#/etc/init.d/ejabberd restart
Restarting jabber server: ejabberd. |
#vi /etc/ejabberd/ejabberd.cfg
--- /tmp/l3-saved-9764.25448.30170 2009-12-10 01:30:24.000000000 -1000 +++ /etc/ejabberd/ejabberd.cfg 2009-12-10 01:30:29.000000000 -1000 @@ -33,7 +33,7 @@ {acl, admin, {user, "", "localhost"}}. %% Hostname -%{hosts, ["localhost", "kiev.unix.nt"]}. +{hosts, ["localhost", "kiev.unix.nt"]}. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
#ls /var/log/ejabberd/
ejabberd.log sasl.log |
#less /var/log/ejabberd/ejabberd.log
|
#less /var/log/ejabberd/ejabberd.log
|
#less /var/log/ejabberd/
|
#less /var/log/ejabberd/sasl.log
|
#%%% =======
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:5280 0.0.0.0:* LISTEN 13493/beam tcp 0 0 127.0.0.1:7777 0.0.0.0:* LISTEN 13493/beam tcp 0 0 0.0.0.0:1314 0.0.0.0:* LISTEN 9287/festival tcp 0 0 0.0.0.0:5222 0.0.0.0:* LISTEN 13493/beam tcp 0 0 0.0.0.0:43046 0.0.0.0:* LISTEN 2018/rpc.statd tcp 0 0 127.0.0.1:587 0.0.0.0:* LISTEN 12670/sendmail: MTA tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 12942/popa3d tcp 0 0 127.0.0.1:5038 0.0.0.0:* LISTEN 9397/asterisk ... raw 0 0 0.0.0.0:1 0.0.0.0:* 7 2676/dhcpd3 Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node PID/Program name Path unix 2 [ ACC ] STREAM LISTENING 6787 2271/dbus-daemon /var/run/dbus/system_bus_socket unix 2 [ ACC ] STREAM LISTENING 7193 2607/hald @/var/run/hald/dbus-1BUOBsNF0y unix 2 [ ACC ] STREAM LISTENING 7188 2607/hald @/var/run/hald/dbus-SIbBIirpFM unix 2 [ ACC ] STREAM LISTENING 37678 9397/asterisk /var/run/asterisk/asterisk.ctl unix 2 [ ACC ] STREAM LISTENING 6767 2261/acpid /var/run/acpid.socket unix 2 [ ACC ] STREAM LISTENING 44937 12670/sendmail: MTA /var/run/sendmail/mta/smcontrol unix 2 [ ACC ] STREAM LISTENING 7156 2587/lpd /dev/printer |
#netstat -lnp | grep ejab
|
#vi /etc/ejabberd/ejabberd.cfg
|
#:q!
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 adduser
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 ... |
#ejabberd register user kiev.unix.nt password
{error_logger,{{2009,12,10},{1,42,56}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},{net_kernel,start_protos,3},{net_kernel,init_node,2},{net_kernel,init,1},{gen_server,init_it,6},{proc_lib,init_p,5}]}]} {error_logger,{{2009,12,10},{1,42,56}},crash_report,[[{pid,<0.20.0>},{registered_name,net_kernel},{error_info,{exit,{error,badarg},[{gen_server,init_it,6},{proc_lib,init_p,5}]}},{initial_call,{gen,init_it,[gen_server,<0.17.0>,<0.17.0>,{local,net_kernel},net_kernel,{ejabberd,shortnames,15000},[]]}},{ancestors,[net_sup,kernel_sup,<0.8.0>]},{messages,[]},{links,[#Port<0.7>,<0.17.0>]},{dictionary,[{lo {error_logger,{{2009,12,10},{1,42,56}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfa,{net_kernel,start_link,[[ejabberd,shortnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]} {error_logger,{{2009,12,10},{1,42,56}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfa,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]} {error_logger,{{2009,12,10},{1,42,56}},crash_report,[[{pid,<0.7.0>},{registered_name,[]},{error_info,{exit,{shutdown,{kernel,start,[normal,[]]}},[{application_master,init,4},{proc_lib,init_p,5}]}},{initial_call,{application_master,init,[<0.5.0>,<0.6.0>,{appl_data,kernel,[application_controller,erl_reply,auth,boot_server,code_server,disk_log_server,disk_log_sup,erl_prim_loader,error_logger,file_ser {error_logger,{{2009,12,10},{1,42,56}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]} {"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}"} Crash dump was written to: /var/log/ejabberd/erl_crash.dump Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}) |
#ejabberd register user@kiev.unix.nt password
{error_logger,{{2009,12,10},{1,43,20}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},{net_kernel,start_protos,3},{net_kernel,init_node,2},{net_kernel,init,1},{gen_server,init_it,6},{proc_lib,init_p,5}]}]} {error_logger,{{2009,12,10},{1,43,20}},crash_report,[[{pid,<0.20.0>},{registered_name,net_kernel},{error_info,{exit,{error,badarg},[{gen_server,init_it,6},{proc_lib,init_p,5}]}},{initial_call,{gen,init_it,[gen_server,<0.17.0>,<0.17.0>,{local,net_kernel},net_kernel,{ejabberd,shortnames,15000},[]]}},{ancestors,[net_sup,kernel_sup,<0.8.0>]},{messages,[]},{links,[#Port<0.7>,<0.17.0>]},{dictionary,[{lo {error_logger,{{2009,12,10},{1,43,20}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfa,{net_kernel,start_link,[[ejabberd,shortnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]} {error_logger,{{2009,12,10},{1,43,20}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfa,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]} {error_logger,{{2009,12,10},{1,43,20}},crash_report,[[{pid,<0.7.0>},{registered_name,[]},{error_info,{exit,{shutdown,{kernel,start,[normal,[]]}},[{application_master,init,4},{proc_lib,init_p,5}]}},{initial_call,{application_master,init,[<0.5.0>,<0.6.0>,{appl_data,kernel,[application_controller,erl_reply,auth,boot_server,code_server,disk_log_server,disk_log_sup,erl_prim_loader,error_logger,file_ser {error_logger,{{2009,12,10},{1,43,20}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]} {"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}"} Crash dump was written to: /var/log/ejabberd/erl_crash.dump Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}) |
#ejabberdctl register user@kiev.unix.nt password
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 register user kiev.unix.nt password
|
#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 | less
|
#/etc/init.d/ejabberd restart
Restarting jabber server: ejabberd. |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind9 waiting for pid 10248 to die. Starting domain name service...: bind9. |
#ping conference.kiev.unix.nt
PING conference.kiev.unix.nt (192.168.102.1) 56(84) bytes of data. 64 bytes from kiev (192.168.102.1): icmp_seq=1 ttl=64 time=0.016 ms ^C --- conference.kiev.unix.nt ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.016/0.016/0.016/0.000 ms |
#ping conference.poltava.unix.nt
PING conference.poltava.unix.nt (192.168.101.3) 56(84) bytes of data. 64 bytes from 192.168.101.3: icmp_seq=1 ttl=63 time=0.448 ms ^C --- conference.poltava.unix.nt ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.448/0.448/0.448/0.000 ms |
#ls -l /etc/ejabberd/ejabberd.cfg
-rw------- 1 ejabberd ejabberd 12986 2009-12-10 01:45 /etc/ejabberd/ejabberd.cfg |
#ejabberdctl register asterisk kiev.unix.nt password
|
#apt-get install sendxmpp
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libauthen-sasl-perl libio-socket-ssl-perl libnet-libidn-perl libnet-ssleay-perl libnet-xmpp-perl libxml-stream-perl Suggested packages: libgssapi-perl The following NEW packages will be installed: libauthen-sasl-perl libio-socket-ssl-perl libnet-libidn-perl libnet-ssleay-perl libnet-xmpp-perl libxml-stream-perl sendxmpp ... Selecting previously deselected package sendxmpp. Unpacking sendxmpp (from .../sendxmpp_1.14-1_all.deb) ... Processing triggers for man-db ... Setting up libauthen-sasl-perl (2.12-1) ... Setting up libnet-ssleay-perl (1.35-1) ... Setting up libio-socket-ssl-perl (1.16-1+lenny1) ... Setting up libnet-libidn-perl (0.07-1+b1) ... Setting up libxml-stream-perl (1.22-3) ... Setting up libnet-xmpp-perl (1.02-1) ... Setting up sendxmpp (1.14-1) ... |
#ps aux | grep aster
asterisk 9397 0.0 0.3 31796 11384 ? Ssl Dec09 0:06 /usr/sbin/asterisk -p -U asterisk root 14544 0.0 0.0 3116 720 pts/2 R+ 02:43 0:00 grep aster |
#getent passwd asterisk
asterisk:x:106:109:Asterisk PBX daemon,,,:/var/lib/asterisk:/bin/false |
#vi ~/.sendxmpprc
--- /dev/null 2009-12-08 04:42:44.502473027 -1000 +++ /root/.sendxmpprc 2009-12-10 02:44:48.000000000 -1000 @@ -0,0 +1 @@ +asterisk@kiev.unix.nt password |
#chmod 600 ~/.sendxmpprc
|
#sendxmpp
sendxmpp version 1.14 Copyright (c) 2004 - 2005 Dirk-Jan C. Binnema Copyright (c) 2006 - 2007 Lubomir Host 'rajo' usage: sendxmpp [options] <recipient1> [<recipient2> ...] or refer to the the sendxmpp manpage |
#man sendxmpp
|
#sed -i '370 s/message/chat/' /usr/bin/sendxmpp
|
#vi /usr/bin/sendxmpp
|
#$cmdline{'headline'},
|
#echo privki | sendxmpp igor@kiev.unix.nt
|
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-9764.2187.30414 2009-12-10 02:54:07.000000000 -1000 +++ /etc/asterisk/extensions.conf 2009-12-10 02:55:14.000000000 -1000 @@ -10,6 +10,7 @@ exten => 202,1,Answer exten => 202,n,Wait(1) +exten => 202,n,System('echo "Zvonochki v studiyu: ${DATETIME} - ${CALLERID} - ${CHANNEL}" | sendxmpp igor@kiev.unix.nt') exten => 202,n,Playback(alba) ;exten => 202,n,Playback(demo-congrats) exten => 202,n,Hangup |
#cp ~/.sendxmpprc ~asterisk/
|
#chown asterisk ~asterisk/.sendxmpprc
|
#getent passwd asterisk
asterisk:x:106:109:Asterisk PBX daemon,,,:/var/lib/asterisk:/bin/false |
#getent group 109
asterisk:x:109: |
#chgrp asterisk ~asterisk/.sendxmpprc
|
#asterisk -rx 'dialplan reload'
Dialplan reloaded. |
#usermod -s /bin/bash asterisk
|
#su - asterisk
asterisk@kiev:~$ echo "Zvonochki v studiyu: - - SIP/201-085025d8" | sendxmpp igor@kiev.unix.nt asterisk@kiev:~$ quit -su: quit: command not found asterisk@kiev:~$ exit logout |
#cat /tmp/log
Zvonochki v studiyu: - - SIP/201-08503b68 |
#cat /tmp/log
Zvonochki v studiyu: - - SIP/201-084fc3f0 |
#cat /tmp/log
Zvonochki v studiyu: - - SIP/201-084fc3f0 |
#cat /tmp/log
Zvonochki v studiyu: - - SIP/201-084fc3f0 |
#vi /usr/local/bin/jabblog
--- /dev/null 2009-12-08 04:42:44.502473027 -1000 +++ /usr/local/bin/jabblog 2009-12-10 03:01:40.000000000 -1000 @@ -0,0 +1,3 @@ +#!/bin/sh + +sendxmpp igor@kiev.unix.nt |
#chmod +x /usr/local/bin/jabblog
|
#asterisk -rx 'dialplan reload'
Dialplan reloaded. |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... Verbosity is at least 4 kiev*CLI> -- Executing [202@black:1] Answer("SIP/201-084fc430", "") in new stack -- Executing [202@black:2] Wait("SIP/201-084fc430", "1") in new stack -- Executing [202@black:3] System("SIP/201-084fc430", "echo Zvonochki v studiyu: - "Roman Sidorenko-MegaPhone" <201> - SIP/201-084fc430 | jabblog") in new stack -- Executing [202@black:4] Playback("SIP/201-084fc430", "alba") in new stack -- <SIP/201-084fc430> Playing 'alba' (language 'en') == Spawn extension (black, 202, 4) exited non-zero on 'SIP/201-084fc430' kiev*CLI> quit Executing last minute cleanups |
#ls -l /usr/local/bin/jabblog
-rwxr-xr-x 1 root staff 70 2009-12-10 03:02 /usr/local/bin/jabblog |
#~
[default] [internal] exten => _2XX,1,Set(CALLERID(number)=5${CALLERID(number)}) exten => _2XX,n,Dial(SIP/${EXTEN}) t. It is especially useful for editing programs.') exten => 221,1,Dial(ZAP/G1) exten => 202,1,Answer exten => 222,1,Answer exten => 202,n,Wait(1) exten => 222,n,Festival('Vim is a text editor that is upwards compatible to Vi. It can be used to edit all kinds of plain texx ... exten => 4000,1,Dial(SIP/vkiev/${EXTEN}) exten => _380XXXXXXXXX,1,Dial(SIP/vkiev/${EXTEN}) /usr/local/bin/jabblog) [inbound] include => internal [white] include => internal include => outbound [black] include => internal "/etc/asterisk/extensions.conf" 60 lines, 1516 characters written |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3, 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 ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': Found == Parsing '/etc/asterisk/extconfig.conf': Found Connected to Asterisk 1.4.21.2~dfsg-3 currently running on kiev (pid = 9397) Verbosity is at least 4 [Dec 10 03:04:42] WARNING[15256]: chan_oss.c:682 setformat: Unable to re-open DSP device /dev/dsp: No such file or directory [Dec 10 03:04:43] WARNING[15256]: chan_oss.c:682 setformat: Unable to re-open DSP device /dev/dsp: No such file or directory [Dec 10 03:04:44] WARNING[15256]: chan_oss.c:682 setformat: Unable to re-open DSP device /dev/dsp: No such file or directory kiev*CLI> quit Executing last minute cleanups |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#cat /tmp/log2
|
#ls /var/log/asterisk/messages
/var/log/asterisk/messages |
#less /var/log/asterisk/messages
|
#less /var/log/asterisk/
|
#less /var/log/asterisk/event_log
|
#less /var/log/asterisk/queue_log
|
#less /var/log/asterisk/
|
#getent passwd asterisk
asterisk:x:106:109:Asterisk PBX daemon,,,:/var/lib/asterisk:/bin/bash |
#ls -l /var/lib/asterisk/.sendxmpprc
-rw------- 1 asterisk asterisk 31 2009-12-10 02:55 /var/lib/asterisk/.sendxmpprc |
#vi /usr/local/bin/jabblog
--- /tmp/l3-saved-9764.25970.32193 2009-12-10 03:07:35.000000000 -1000 +++ /usr/local/bin/jabblog 2009-12-10 03:07:44.000000000 -1000 @@ -1,4 +1,4 @@ #!/bin/sh read line echo $line > /tmp/log2 -echo test | sendxmpp igor@kiev.unix.nt +echo test | sendxmpp -f /var/lib/asterisk/.sendxmpprc igor@kiev.unix.nt |
Zvonochki v studiyu: - - SIP/201-084fc3f0
Время первой команды журнала | 11:56:24 2009-12-10 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 14:07:13 2009-12-10 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 11.88 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.59 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.06 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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