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

Содержание

Журнал

Четверг (10/20/11)

/dev/pts/3
14:30:42
#vim /etc/asterisk/extensions.conf
/dev/pts/4
14:30:42
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2398.6031.18035	2011-10-20 15:30:43.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-10-20 15:31:54.000000000 +0300
@@ -116,9 +116,9 @@
                                     
 exten => _220X,1,Answer             
 ;exten => _220X,n,Macro(monitor,SIP/${EXTEN})
+;exten => _220X,n,Macro(monitor,SIP/${EXTEN},SIP/${DB(mobile/${EXTEN})})
 exten => _220X,n,Macro(monitor,SIP/${EXTEN},SIP/${DB(mobile/${EXTEN})})
 exten => _220X,n,Voicemail(${EXTEN}@default)
-
 exten => 2211,1,MeetMe(1,cI)
 
                                     
прошло 69 минут
15:40:32
#dpkg-reconfigure ejabberd
   ┌───────────────────┤ Configuring ejabberd ├────────────────────┐
   │ Please reenter the password for the administrative user for   │
   │ verification.                                                 │
   │                                                               │
   │ The password for the admin account again for verification:    │
   │                                                               │
   â”*****__________________________________________________________ │
   │                                                               │
   │                            <Ok>                               │
   │                                                               │
   └───────────────────────────────────────────────────────────────┘
Replacing config file /etc/ejabberd/ejabberd.cfg with new version
Starting jabber server: ejabberd............................................................ failed.
Waiting for ejabberd to register admin user
Can't register admin user "admin@linux6.unix.nt".
Ejabberd server is not started.
/dev/pts/3
15:40:32
#dpkg-reconfigure ejabberd
   ┌───────────────────┤ Configuring ejabberd ├────────────────────┐
   │ Please reenter the password for the administrative user for   │
   │ verification.                                                 │
   │                                                               │
   │ The password for the admin account again for verification:    │
   │                                                               │
   â”*****__________________________________________________________ │
   │                                                               │
   │                            <Ok>                               │
   │                                                               │
   └───────────────────────────────────────────────────────────────┘
Replacing config file /etc/ejabberd/ejabberd.cfg with new version
Starting jabber server: ejabberd............................................................ failed.
Waiting for ejabberd to register admin user
Can't register admin user "admin@linux6.unix.nt".
Ejabberd server is not started.
/dev/pts/4
15:42:25
#localhost:5280/admin
bash: localhost:5280/admin: No such file or directory
/dev/pts/3
15:42:25
#localhost:5280/admin
bash: localhost:5280/admin: No such file or directory
/dev/pts/4
15:42:39
#dpkg-reconfigure ejabberd
   ┌───────────────────┤ Configuring ejabberd ├────────────────────┐
   │ Please reenter the password for the administrative user for   │
   │ verification.                                                 │
   │                                                               │
   │ The password for the admin account again for verification:    │
   │                                                               │
   â”*****__________________________________________________________ │
   │                                                               │
   │                            <Ok>                               │
   │                                                               │
   └───────────────────────────────────────────────────────────────┘
Replacing config file /etc/ejabberd/ejabberd.cfg with new version
Starting jabber server: ejabberd..............................^C
/dev/pts/3
15:42:39
#dpkg-reconfigure ejabberd
Package configuration
   ┌───────────────────┤ Configuring ejabberd ├────────────────────┐
   │ Please reenter the password for the administrative user for   │
   │ verification.                                                 │
   │                                                               │
   │ The password for the admin account again for verification:    │
   │                                                               │
   â”*****__________________________________________________________ │
   │                                                               │
   │                            <Ok>                               │
   │                                                               │
   └───────────────────────────────────────────────────────────────┘
Replacing config file /etc/ejabberd/ejabberd.cfg with new version
Starting jabber server: ejabberd..............................^C
/dev/pts/4
15:43:42
#cat /etc/hostname
linux6
/dev/pts/3
15:43:42
#cat /etc/hostname
linux6
/dev/pts/4
15:43:53
#cat /etc/host
cat: /etc/host: No such file or directory
/dev/pts/3
15:43:53
#cat /etc/host
cat: /etc/host: No such file or directory
/dev/pts/4
15:43:56
#dpkg-reconfigure ejabberd
   ┌───────────────────┤ Configuring ejabberd ├────────────────────┐
   │ Please reenter the password for the administrative user for   │
   │ verification.                                                 │
   │                                                               │
   │ The password for the admin account again for verification:    │
   │                                                               │
   â”*****__________________________________________________________ │
   │                                                               │
   │                          <Ok>k>                               │
   │                                                               │
   └───────────────────────────────────────────────────────────────┘
Starting jabber server: ejabberd............................................................ failed.
Waiting for ejabberd to register admin user
Can't register admin user "admin@linux6".
Ejabberd server is not started.
/dev/pts/3
15:43:56
#dpkg-reconfigure ejabberd
Package configuration
   ┌───────────────────┤ Configuring ejabberd ├────────────────────┐
   │ Please reenter the password for the administrative user for   │
   │ verification.                                                 │
   │                                                               │
   │ The password for the admin account again for verification:    │
   │                                                               │
   â”*****__________________________________________________________ │
   │                                                               │
   │                          <Ok>k>                               │
   │                                                               │
   └───────────────────────────────────────────────────────────────┘
Starting jabber server: ejabberd............................................................ failed.
Waiting for ejabberd to register admin user
Can't register admin user "admin@linux6".
Ejabberd server is not started.
/dev/pts/6
15:45:41
#vim /etc/hosts
--- /tmp/l3-saved-23135.12204.24173	2011-10-20 16:45:59.000000000 +0300
+++ /etc/hosts	2011-10-20 16:46:13.000000000 +0300
@@ -1,5 +1,5 @@
 127.0.0.1	localhost
-192.168.50.1	linux6.unix.nt	linux6
+192.168.60.1	linux6.unix.nt	linux6
 
 # The following lines are desirable for IPv6 capable hosts
 ::1     ip6-localhost ip6-loopback
15:46:13
#dpkg -P ejabberd
(Reading database ... 136126 files and directories currently installed.)
Removing ejabberd ...
Crash dump was written to: /var/log/ejabberd/erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})
Stopping jabber server: ejabberd already stopped.
Purging configuration files for ejabberd ...
Removing user `ejabberd' ...
Warning: group `ejabberd' has no more members.
Processing triggers for man-db ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing man-db (--purge):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 man-db
15:46:24
#apt-get install ejabberd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  mysql-common libmysqlclient16
Use 'apt-get autoremove' to remove them.
Suggested packages:
  libunix-syslog-perl
The following NEW packages will be installed:
  ejabberd
...
Preconfiguring packages ...
Selecting previously deselected package ejabberd.
(Reading database ... 135833 files and directories currently installed.)
Unpacking ejabberd (from .../ejabberd_2.1.5-3+squeeze1_i386.deb) ...
Setting up man-db (2.5.7-8) ...
Updating database of manual pages ...
Setting up ejabberd (2.1.5-3+squeeze1) ...
Generating SSL certificate /etc/ejabberd/ejabberd.pem...
Creating config file /etc/ejabberd/ejabberd.cfg with new version
Starting jabber server: ejabberd.
/dev/pts/4
15:47:47
#apt-get install sendxmpp
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  mysql-common libmysqlclient16
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libauthen-sasl-perl libdigest-sha1-perl libio-socket-ssl-perl
  libnet-libidn-perl libnet-ssleay-perl libnet-xmpp-perl
  libxml-stream-perl
...
Unpacking sendxmpp (from .../sendxmpp_1.20-1_all.deb) ...
Processing triggers for man-db ...
Setting up libauthen-sasl-perl (2.1500-1) ...
Setting up libdigest-sha1-perl (2.13-1) ...
Setting up libnet-ssleay-perl (1.36-1) ...
Setting up libio-socket-ssl-perl (1.33-1+squeeze1) ...
Setting up libnet-libidn-perl (0.12.ds-1+b1) ...
Setting up libxml-stream-perl (1.23-1) ...
Setting up libnet-xmpp-perl (1.02-1) ...
Setting up sendxmpp (1.20-1) ...
/dev/pts/3
15:47:47
#apt-get install sendxmpp
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  mysql-common libmysqlclient16
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libauthen-sasl-perl libdigest-sha1-perl libio-socket-ssl-perl
  libnet-libidn-perl libnet-ssleay-perl libnet-xmpp-perl
  libxml-stream-perl
...
Unpacking sendxmpp (from .../sendxmpp_1.20-1_all.deb) ...
Processing triggers for man-db ...
Setting up libauthen-sasl-perl (2.1500-1) ...
Setting up libdigest-sha1-perl (2.13-1) ...
Setting up libnet-ssleay-perl (1.36-1) ...
Setting up libio-socket-ssl-perl (1.33-1+squeeze1) ...
Setting up libnet-libidn-perl (0.12.ds-1+b1) ...
Setting up libxml-stream-perl (1.23-1) ...
Setting up libnet-xmpp-perl (1.02-1) ...
Setting up sendxmpp (1.20-1) ...
прошло 30 минут
/dev/pts/4
16:18:19
#elabberdctl
bash: elabberdctl: command not found
/dev/pts/3
16:18:19
#elabberdctl
bash: elabberdctl: command not found
/dev/pts/4
16:19:01
#elabberd ctl
bash: elabberd: command not found
/dev/pts/3
16:19:01
#elabberd ctl
bash: elabberd: command not found
/dev/pts/4
16:19:08
#ejabberdctl
Usage: ejabberdctl [--node nodename] [--auth user host password] command [options]
Available commands in this ejabberd node:
  add_rosteritem localuser localserver user server nick group subs
        Add an item to a user's roster
  backup file
        Store the database to backup file
  ban_account user host reason
        Ban an account: kick sessions and set random password
  change_password user host newpass
        Change the password of an account
...
        Update the given module, or use the keyword: all
  update_list
        List modified modules that can be updated
  user_resources user host
        List user's connected resources
  user_sessions_info user host
        Get information about all sessions of a user
Examples:
  ejabberdctl restart
  ejabberdctl --node ejabberd@host restart
/dev/pts/3
16:19:08
#ejabberdctl
Usage: ejabberdctl [--node nodename] [--auth user host password] command [options]
Available commands in this ejabberd node:
  add_rosteritem localuser localserver user server nick group subs
        Add an item to a user's roster
  backup file
        Store the database to backup file
  ban_account user host reason
        Ban an account: kick sessions and set random password
  change_password user host newpass
        Change the password of an account
...
        Update the given module, or use the keyword: all
  update_list
        List modified modules that can be updated
  user_resources user host
        List user's connected resources
  user_sessions_info user host
        Get information about all sessions of a user
Examples:
  ejabberdctl restart
  ejabberdctl --node ejabberd@host restart
/dev/pts/4
16:19:15
#getend passwd asterisk
bash: getend: command not found
/dev/pts/3
16:19:15
#getend passwd asterisk
bash: getend: command not found
/dev/pts/4
16:20:30
#getent passwd asterisk
asterisk:x:109:114:Asterisk PBX daemon,,,:/var/lib/asterisk:/bin/false
/dev/pts/3
16:20:30
#getent passwd asterisk
asterisk:x:109:114:Asterisk PBX daemon,,,:/var/lib/asterisk:/bin/false
/dev/pts/4
16:20:36
#vim /var/lib/asterisk/.sendxmpprc
--- /dev/null	2011-10-19 16:49:22.646865539 +0300
+++ /var/lib/asterisk/.sendxmpprc	2011-10-20 17:21:46.000000000 +0300
@@ -0,0 +1 @@
+asterisk@linux6.unix.nt password
/dev/pts/3
16:20:36
#vim /var/lib/asterisk/.sendxmpprc
/dev/pts/4
16:22:10
#chmod 644 /var/lib/asterisk/.sendxmpprc

/dev/pts/3
16:22:10
#chmod 644 /var/lib/asterisk/.sendxmpprc

/dev/pts/4
16:22:26
#chmod 600 /var/lib/asterisk/.sendxmpprc

/dev/pts/3
16:22:26
#chmod 600 /var/lib/asterisk/.sendxmpprc

/dev/pts/4
16:22:42
#usermod -s /bin/bash asterisk

/dev/pts/3
16:22:42
#usermod -s /bin/bash asterisk

/dev/pts/4
16:23:07
#su -asterisk
su: invalid option -- 'a'
Usage: su [options] [LOGIN]
Options:
  -c, --command COMMAND         pass COMMAND to the invoked shell
  -h, --help                    display this help message and exit
  -, -l, --login                make the shell a login shell
  -m, -p,
  --preserve-environment        do not reset environment variables, and
                                keep the same shell
  -s, --shell SHELL             use SHELL instead of the default in passwd
/dev/pts/3
16:23:07
#su -asterisk
su: invalid option -- 'a'
Usage: su [options] [LOGIN]
Options:
  -c, --command COMMAND         pass COMMAND to the invoked shell
  -h, --help                    display this help message and exit
  -, -l, --login                make the shell a login shell
  -m, -p,
  --preserve-environment        do not reset environment variables, and
                                keep the same shell
  -s, --shell SHELL             use SHELL instead of the default in passwd
/dev/pts/4
16:23:13
#su - asterisk
asterisk@linux6:~$ pwd
/var/lib/asterisk
asterisk@linux6:~$ echo test | sendxmpp user@linux6.unix.nt
Could not connect to 'linux6.unix.nt' on port 5222:
asterisk@linux6:~$ echo test | sendxmpp user@linux6
Could not connect to 'linux6.unix.nt' on port 5222:
asterisk@linux6:~$ logout
/dev/pts/3
16:23:13
#su - asterisk
asterisk@linux6:~$ pwd
/var/lib/asterisk
asterisk@linux6:~$ echo test | sendxmpp user@linux6.unix.nt
Could not connect to 'linux6.unix.nt' on port 5222:
asterisk@linux6:~$ echo test | sendxmpp user@linux6
Could not connect to 'linux6.unix.nt' on port 5222:
asterisk@linux6:~$ logout
/dev/pts/4
16:24:36
#usermod -s /bin/false asterisk

/dev/pts/3
16:24:36
#usermod -s /bin/false asterisk

/dev/pts/4
16:24:58
#vim
--- /tmp/l3-saved-2398.3354.19058	2011-10-20 17:27:05.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-10-20 17:28:25.000000000 +0300
@@ -60,6 +60,7 @@
 exten => s,n,Monitor(wav,${CALLFILENAME},m)
 exten => s,n,GotoIf($[ "${CALLERID(num):0:2}" = "21" ]?dial)
 exten => s,n,SetMusicOnHold(class2)
+exten => s,n,System( echo Call from ${CALLERID(num)} | sendxmpp user@linux6.unix.nt)
 exten => s,n(dial),Dial(${ARG1},10,tT)
 exten => s,n,GotoIf($[ "${DIALSTATUS}" = ANSWER ]?hangup)
 exten => s,n(dial),Dial(${ARG2},10,tT)
/dev/pts/3
16:24:58
#vim
/dev/pts/4
16:28:25
#vim
/dev/pts/3
16:28:25
#vim
/dev/pts/4
16:28:40
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux6 (pid = 24950)
Verbosity was 0 and is now 3
linux6*CLI> quit
Executing last minute cleanups
/dev/pts/3
16:28:40
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux6 (pid = 24950)
Verbosity was 0 and is now 3
linux6*CLI> quit
Executing last minute cleanups

Пятница (10/21/11)

/dev/pts/4
07:37:07
#cat /etc/init.d/
cat: /etc/init.d/: Is a directory
/dev/pts/3
07:37:07
#cat /etc/init.d/
cat: /etc/init.d/: Is a directory
07:37:24
#ls /etc/init.d/
acpid             hostname.sh            procps
alsa-utils        hwclockfirst.sh        rc
anacron           hwclock.sh             rc.local
asterisk          ifupdown               rcS
atd               ifupdown-clean         README
avahi-daemon      isc-dhcp-server        reboot
binfmt-support    kbd                    rmnologin
bluetooth         keyboard-setup         rsync
bootlogd          killprocs              rsyslog
bootlogs          lm-sensors             samba
...
dahdi             mountnfs.sh            stop-bootlogd-single
dbus              mountoverflowtmp       sudo
ejabberd          mtab.sh                udev
exim4             netdiag                udev-mtab
fancontrol        networking             umountfs
festival          network-manager        umountnfs.sh
fuse              nfs-common             umountroot
gdm3              openbsd-inetd          unattended-upgrades
halt              portmap                urandom
hdparm            pppd-dns               x11-common
/dev/pts/4
07:37:24
#ls /etc/init.d/
acpid             hostname.sh            procps
alsa-utils        hwclockfirst.sh        rc
anacron           hwclock.sh             rc.local
asterisk          ifupdown               rcS
atd               ifupdown-clean         README
avahi-daemon      isc-dhcp-server        reboot
binfmt-support    kbd                    rmnologin
bluetooth         keyboard-setup         rsync
bootlogd          killprocs              rsyslog
bootlogs          lm-sensors             samba
...
dahdi             mountnfs.sh            stop-bootlogd-single
dbus              mountoverflowtmp       sudo
ejabberd          mtab.sh                udev
exim4             netdiag                udev-mtab
fancontrol        networking             umountfs
festival          network-manager        umountnfs.sh
fuse              nfs-common             umountroot
gdm3              openbsd-inetd          unattended-upgrades
halt              portmap                urandom
hdparm            pppd-dns               x11-common
07:37:32
#/etc/init.d/ejabberd start
Starting jabber server: ejabberd already running.
/dev/pts/3
07:37:32
#/etc/init.d/ejabberd start
Starting jabber server: ejabberd already running.
прошло >2 часов
/dev/pts/4
09:45:45
## asterisk 1.6. = dahdi

/dev/pts/3
09:45:45
## asterisk 1.6. = dahdi

/dev/pts/4
09:45:57
## asterisk 1.6 = dahdi

/dev/pts/3
09:45:57
## asterisk 1.6 = dahdi

/dev/pts/4
09:46:04
#dahdi_genconf
Empty configuration -- no spans
Empty configuration -- no spans
/dev/pts/3
09:46:04
#dahdi_genconf
Empty configuration -- no spans
Empty configuration -- no spans
/dev/pts/4
09:46:14
#ls /etc/dahdi/
system.conf  xpp.conf
/dev/pts/3
09:46:14
#ls /etc/dahdi/
system.conf  xpp.conf
/dev/pts/4
09:46:31
#ls -l /etc/dahdi/
total 8
-rw-r--r-- 1 root root  310 Oct 21 10:46 system.conf
-rw-r--r-- 1 root root 1091 Sep 29  2009 xpp.conf
/dev/pts/3
09:46:31
#ls -l /etc/dahdi/
total 8
-rw-r--r-- 1 root root  310 Oct 21 10:46 system.conf
-rw-r--r-- 1 root root 1091 Sep 29  2009 xpp.conf
/dev/pts/4
09:46:38
#dpkg -S 'which dahdi_genconf'
dpkg: *which dahdi_genconf* not found.
/dev/pts/3
09:46:38
#dpkg -S 'which dahdi_genconf'
dpkg: *which dahdi_genconf* not found.
/dev/pts/4
09:47:07
#less /etc/dahdi/system.conf
/dev/pts/3
09:47:07
#less /etc/dahdi/system.conf
/dev/pts/4
09:48:00
#!
bash: syntax error near unexpected token `newline'
/dev/pts/3
09:48:00
#!
bash: syntax error near unexpected token `newline'
/dev/pts/4
09:48:00
#dahdi_cfg -v
DAHDI Tools Version - 2.2.1.1
DAHDI Version: 2.3.0.1
Echo Canceller(s):
Configuration
======================
0 channels to configure.
/dev/pts/3
09:48:00
#dahdi_cfg -v
DAHDI Tools Version - 2.2.1.1
DAHDI Version: 2.3.0.1
Echo Canceller(s):
Configuration
======================
0 channels to configure.
/dev/pts/4
09:48:11
#uname -a
Linux linux6 2.6.32-5-686 #1 SMP Mon Oct 3 04:15:24 UTC 2011 i686 GNU/Linux
/dev/pts/3
09:48:11
#uname -a
Linux linux6 2.6.32-5-686 #1 SMP Mon Oct 3 04:15:24 UTC 2011 i686 GNU/Linux
/dev/pts/4
09:48:21
#uptime
 10:48:31 up 1 day, 17:59,  4 users,  load average: 0.01, 0.05, 0.01
/dev/pts/3
09:48:21
#uptime
 10:48:31 up 1 day, 17:59,  4 users,  load average: 0.01, 0.05, 0.01
/dev/pts/4
09:48:31
#vim /etc/dahdi/system.conf
/dev/pts/3
09:48:31
#vim /etc/dahdi/system.conf
/dev/pts/4
09:52:05
#~

/dev/pts/3
09:52:05
#~

/dev/pts/1
09:55:33
#dahdi_cfg -v
DAHDI Tools Version - 2.2.1.1
DAHDI Version: 2.3.0.1
Echo Canceller(s):
Configuration
======================
0 channels to configure.
/dev/pts/4
09:55:33
#dahdi_cfg -v
DAHDI Tools Version - 2.2.1.1
DAHDI Version: 2.3.0.1
Echo Canceller(s):
Configuration
======================
0 channels to configure.
/dev/pts/1
09:56:21
#vim /etc/dahdi/system.conf
/dev/pts/4
09:56:21
#vim /etc/dahdi/system.conf
/dev/pts/1
09:57:59
#~
bash: lspc: command not found
/dev/pts/4
09:57:59
#~
bash: lspc: command not found
/dev/pts/1
09:59:38
#lspci
00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 12)
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 12)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
00:16.2 IDE interface: Intel Corporation 5 Series/3400 Series Chipset PT IDER Controller (rev 06)
00:16.3 Serial controller: Intel Corporation 5 Series/3400 Series Chipset KT Controller (rev 06)
00:19.0 Ethernet controller: Intel Corporation 82578DC Gigabit Network Connection (rev 06)
00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 06)
00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a6)
00:1f.0 ISA bridge: Intel Corporation 5 Series Chipset LPC Interface Controller (rev 06)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 6 port SATA AHCI Controller (rev 06)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06)
02:00.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6315 Series Firewire Controller
03:00.0 Ethernet controller: Digium, Inc. Wildcard TDM410 4-port analog card (rev 11)
/dev/pts/4
09:59:38
#lspci
00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 12)
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 12)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
00:16.2 IDE interface: Intel Corporation 5 Series/3400 Series Chipset PT IDER Controller (rev 06)
00:16.3 Serial controller: Intel Corporation 5 Series/3400 Series Chipset KT Controller (rev 06)
00:19.0 Ethernet controller: Intel Corporation 82578DC Gigabit Network Connection (rev 06)
00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 06)
00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a6)
00:1f.0 ISA bridge: Intel Corporation 5 Series Chipset LPC Interface Controller (rev 06)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 6 port SATA AHCI Controller (rev 06)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06)
02:00.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6315 Series Firewire Controller
03:00.0 Ethernet controller: Digium, Inc. Wildcard TDM410 4-port analog card (rev 11)
/dev/pts/1
10:02:06
#!
bash: syntax error near unexpected token `newline'
/dev/pts/4
10:02:06
#!
bash: syntax error near unexpected token `newline'
/dev/pts/1
10:02:35
#ls /etc/dahdi/
system.conf  system.conf.bak  xpp.conf
/dev/pts/4
10:02:35
#ls /etc/dahdi/
system.conf  system.conf.bak  xpp.conf
/dev/pts/1
10:02:37
#dahdi_cfg -v
DAHDI Tools Version - 2.2.1.1
DAHDI Version: 2.3.0.1
Echo Canceller(s): OSLEC
Configuration
======================
2 channels to configure.
Setting echocan for channel 1 to oslec
Setting echocan for channel 2 to oslec
/dev/pts/4
10:02:37
#dahdi_cfg -v
DAHDI Tools Version - 2.2.1.1
DAHDI Version: 2.3.0.1
Echo Canceller(s): OSLEC
Configuration
======================
2 channels to configure.
Setting echocan for channel 1 to oslec
Setting echocan for channel 2 to oslec
/dev/pts/1
10:04:32
#~
; Autogenerated by /usr/sbin/dahdi_genconf on Fri Oct 21 11:02:35 2011
; If you edit this file and execute /usr/sbin/dahdi_genconf again,
; your manual changes will be LOST.
; Dahdi Channels Configurations (chan_dahdi.conf)
;
; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended
; to be #include-d by /etc/chan_dahdi.conf that will include the global settings
;
; Span 1: WCTDM/0 "Wildcard TDM410P Board 1" (MASTER)
;;; line="1 WCTDM/0/0 FXSKS  (SWEC: OSLEC)"
...
signalling=fxo_ks
callerid="Channel 2" <4002>
mailbox=4002
group=5
context=from-internal
channel => 2
callerid=
mailbox=
group=
context=default
/dev/pts/4
10:04:32
#~
; Autogenerated by /usr/sbin/dahdi_genconf on Fri Oct 21 11:02:35 2011
; If you edit this file and execute /usr/sbin/dahdi_genconf again,
; your manual changes will be LOST.
; Dahdi Channels Configurations (chan_dahdi.conf)
;
; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended
; to be #include-d by /etc/chan_dahdi.conf that will include the global settings
;
; Span 1: WCTDM/0 "Wildcard TDM410P Board 1" (MASTER)
;;; line="1 WCTDM/0/0 FXSKS  (SWEC: OSLEC)"
...
signalling=fxo_ks
callerid="Channel 2" <4002>
mailbox=4002
group=5
context=from-internal
channel => 2
callerid=
mailbox=
group=
context=default
/dev/pts/1
10:09:02
#!
bash: syntax error near unexpected token `newline'
/dev/pts/4
10:09:02
#!
bash: syntax error near unexpected token `newline'
/dev/pts/1
10:09:03
#less /etc/asterisk/chan-dahdi.conf
/dev/pts/4
10:09:03
#less /etc/asterisk/chan-dahdi.conf

Файлы

  • /etc/hostname
  • /etc/hostname
    >
    linux6
    

    Статистика

    Время первой команды журнала14:30:42 2011-10-20
    Время последней команды журнала10:09:03 2011-10-21
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, %20.79
    Процент синтаксически неверно набранных команд, % 9.90
    Суммарное время работы с терминалом *, час 0.69
    Количество командных строк в единицу времени, команда/мин 2.44
    Частота использования команд
    vim13|============| 12.87%
    ls8|=======| 7.92%
    dpkg-reconfigure6|=====| 5.94%
    !6|=====| 5.94%
    dahdi_cfg6|=====| 5.94%
    cat6|=====| 5.94%
    ~6|=====| 5.94%
    chmod4|===| 3.96%
    #4|===| 3.96%
    less4|===| 3.96%
    usermod4|===| 3.96%
    su4|===| 3.96%
    dpkg3|==| 2.97%
    apt-get3|==| 2.97%
    asterisk2|=| 1.98%
    elabberd2|=| 1.98%
    /etc/init.d/ejabberd2|=| 1.98%
    lspci2|=| 1.98%
    admin2|=| 1.98%
    uptime2|=| 1.98%
    dahdi_genconf2|=| 1.98%
    getent2|=| 1.98%
    elabberdctl2|=| 1.98%
    ejabberdctl2|=| 1.98%
    uname2|=| 1.98%
    getend2|=| 1.98%
    ____
    *) Интервалы неактивности длительностью 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$