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

Содержание

Журнал

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

/dev/pts/6
15:29:11
#1409:5011
Usage: database put <family> <key> <value>
       Adds or updates an entry in the Asterisk database for
       a given family, key, and value.
Usage: database put <family> <key> <value>
       Adds or updates an entry in the Asterisk database for
       a given family, key, and value.
Usage: database put <family> <key> <value>
       Adds or updates an entry in the Asterisk database for
       a given family, key, and value.
15:29:27
#1409 5011
Updated database successfully
Updated database successfully
Updated database successfully
15:29:28
#history
   39  cd /
   40  nano /etc/asterisk/extensions.conf
   41  asterisk -rx 'dialplan reload'
   42  asterisk -rvvv
   43  nano /etc/asterisk/extensions.conf
   44  asterisk -rx 'dialplan reload'
   45  asterisk -rvvv
   46  nano /etc/asterisk/extensions.conf
   47  nano /etc/asterisk/extensions.conf
   48  asterisk -rx 'dialplan reload'
...
  529  cat tel.txt | while read a b ; do asterisk -rx 'datobase put mobile $a $b' ; done
  530  cat tel.txt | while read a b ; do asterisk -rx 'database put mobile $a $b' ; done
  531  cat tel.txt | while read a b ; do asterisk -rx "database put mobile $a $b" ; done
  532  touch file tel.txt
  533  cat tel.txt | while read a b ; do asterisk -rx "database put mobile $a $b" ; done
  534  nano tel.txt
  535  cat tel.txt | while read a b ; do asterisk -rx "database put mobile $a $b" ; done
  536  nano tel.txt
  537  cat tel.txt | while read a b ; do asterisk -rx "database put mobile $a $b" ; done
  538  history
15:29:41
#^C

15:34:27
#[ "${CALLERID(num):0:2}" != "14" ]?dial)

15:35:01
#apt-cache search xmpp
abiword - efficient, featureful word processor with collaboration
bluemindo - simple yet powerful audio player
ejabberd - distributed, fault-tolerant Jabber/XMPP server written in Erlang
empathy-common - GNOME multi-protocol chat and call client (common files)
empathy-dbg - GNOME multi-protocol chat and call client (debug symbols)
empathy - GNOME multi-protocol chat and call client
nautilus-sendto-empathy - GNOME multi-protocol chat and call client (nautilus-sendto plugin)
libgloox-dbg - C++ jabber/xmpp library debug symbols
libgloox-dev - C++ jabber/xmpp library devel files
libgloox-doc - C++ jabber/xmpp library API documentation
...
libjs-strophe - Library for writing XMPP clients
libtaningia-dev - Development files for lib taningia
libtaningia0 - A generic comunication library based on XMPP
telepathy-gabble-dbg - Jabber/XMPP connection manager (debug symbols)
telepathy-gabble - Jabber/XMPP connection manager
telepathy-salut - Link-local XMPP connection manager for the Telepathy framework
tkabber-plugins - standard plugins for Tkabber, an XMPP (Jabber) client
tkabber - GUI client for XMPP (Jabber) instant messaging protocol
python-wokkel - collection of enhancements for Twisted
ekg2-jabber - instant messenger and IRC client for UNIX systems - Jabber/XMPP
15:35:05
#apt-cache search freetalk
freetalk - A console based Jabber client
15:35:26
#apt-get install freetalk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  beep dict gawk guile-1.8 libmaa2 librecode0 recode urlview
Suggested packages:
  dictd dict-server guile-1.8-doc mutt ncftp2 lftp ncftp mimedecode
The following NEW packages will be installed:
  beep dict freetalk gawk guile-1.8 libmaa2 librecode0 recode urlview
0 upgraded, 9 newly installed, 0 to remove and 14 not upgraded.
...
Setting up beep (1.2.2-24) ...
Setting up libmaa2 (1.2.0-1) ...
Setting up librecode0 (3.6-17) ...
Setting up recode (3.6-17) ...
Setting up dict (1.11.2+dfsg-3) ...
Setting up guile-1.8 (1.8.7+1-3) ...
update-alternatives: using /usr/bin/guile-1.8 to provide /usr/bin/guile (guile) in auto mode.
Setting up freetalk (3.2-6) ...
Setting up urlview (0.9-18.1) ...
Processing triggers for menu ...
15:35:46
#ps aux | free
             total       used       free     shared    buffers     cached
Mem:       8196524     663140    7533384          0      49520     370324
-/+ buffers/cache:     243296    7953228
Swap:      9764860          0    9764860
15:36:14
#ps aux | grep free
root      8633  0.0  0.0   3904   728 pts/7    S+   16:36   0:00 grep free
15:36:26
#apt-cache search ejabberd
ejabberd - distributed, fault-tolerant Jabber/XMPP server written in Erlang
15:37:16
#dpkg-reconfigure ejabberd
 ┌────────────────────────────────────────────────┤ Configuring ejabberd ├────────────────────────────────────────────────┐
 │ Please provide the name of an account to administrate the ejabberd server. After the installation of ejabberd you can  │
 │ use this account to log in with any Jabber client to do administrative tasks or go to http://localhost:5280/admin/     │
 │ and log in with this account to enter the admin interface. Enter the username part here (e.g. admin), but use the      │
 │ full Jabber ID (e.g. admin@localhost) to log into ejabberd web interface; otherwise it will fail.                      │
 │                                                                                                                        │
 │ Leave empty if you don't want to create an admin account automatically.                                                │
 │                                                                                                                        │
 │ The username of an admin account for ejabberd:                                                                         │
 │                                                                                                                        │
 │ ______________________________________________________________________________________________________________________ │
 │                                                                                                                        │
 │                                                         <Ok>                                                           │
 │                                                                                                                        │
 └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Starting jabber server: ejabberd.
15:40:48
#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.
Waiting for ejabberd to register admin user.
Admin user "root@linux5.unix.nt" is registered successfully.
15:41:34
#localhost:5280/admin
bash: localhost:5280/admin: No such file or directory
15:42:24
#^C

15:42:37
#netstat -lnp | grep :..80
tcp        0      0 0.0.0.0:5280            0.0.0.0:*               LISTEN      9855/beam
прошло 15 минут
15:58:33
#^C

16:02:46
#nano /etc/
16:02:46
#nano /etc/hosts
16:03:58
#127.0.0.1 localhost

16:04:00
#nano /etc/hosts
16:04:58
#ping linux2.conference.unix.nt
ping: unknown host linux2.conference.unix.nt
/dev/pts/2
16:05:22
#vim /etc/hosts
16:05:44
#~
linux4
"/etc/hostname" 1L, 7C
16:05:48
#~
search univ.nt
nameserver 10.0.35.1
16:05:52
#vim /etc/resolv.conf
--- /tmp/l3-saved-10626.12432.31062	2011-10-20 17:05:55.000000000 +0300
+++ /etc/resolv.conf	2011-10-20 17:05:59.000000000 +0300
@@ -1,2 +1,2 @@
-search univ.nt
+search unix.nt
 nameserver 10.0.35.1
16:05:59
#cat /etc/hosts
127.0.0.1       localhost
192.168.40.1    linux4.unix.nt  linux4
# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
16:06:01
#dpkg -P ejabberd
(Reading database ... 134673 files and directories currently installed.)
Removing ejabberd ...
The ejabberd database has been backed up to /var/backups/ejabberd-2011-10-20T17:06:07.DGMrQv/ejabberd-database.
Stopping jabber server: ejabberd.
Purging configuration files for ejabberd ...
Removing user `ejabberd' ...
Warning: group `ejabberd' has no more members.
Processing triggers for man-db ...
16:06:14
#apt-get install ejabberd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  libunix-syslog-perl
The following NEW packages will be installed:
  ejabberd
0 upgraded, 1 newly installed, 0 to remove and 14 not upgraded.
Need to get 0 B/1,771 kB of archives.
After this operation, 4,231 kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package ejabberd.
(Reading database ... 134380 files and directories currently installed.)
Unpacking ejabberd (from .../ejabberd_2.1.5-3+squeeze1_i386.deb) ...
Processing triggers for man-db ...
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/6
16:09:55
#/etc/init.d/ejabberd restart
Restarting jabber server: ejabberd.
16:12:50
#nano /etc/ejabberd/ejabberd.cfg
16:22:49
#usermod
Usage: usermod [options] LOGIN
Options:
  -c, --comment COMMENT         new value of the GECOS field
  -d, --home HOME_DIR           new home directory for the user account
  -e, --expiredate EXPIRE_DATE  set account expiration date to EXPIRE_DATE
  -f, --inactive INACTIVE       set password inactive after expiration
                                to INACTIVE
  -g, --gid GROUP               force use GROUP as new primary group
  -G, --groups GROUPS           new list of supplementary GROUPS
  -a, --append                  append the user to the supplemental GROUPS
...
  -l, --login NEW_LOGIN         new value of the login name
  -L, --lock                    lock the user account
  -m, --move-home               move contents of the home directory to the
                                new location (use only with -d)
  -o, --non-unique              allow using duplicate (non-unique) UID
  -p, --password PASSWORD       use encrypted password for the new password
  -s, --shell SHELL             new login shell for the user account
  -u, --uid UID                 new UID for the user account
  -U, --unlock                  unlock the user account
  -Z, --selinux-user            new SELinux user mapping for the user account
16:25:01
#usermod -s /bin/bash asterisk

16:25:47
#su - asterisk
asterisk@linux4:~$ pwd
/var/lib/asterisk
asterisk@linux4:~$ exit
logout

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

/dev/pts/1
07:31:53
#ps
  PID TTY          TIME CMD
 2497 pts/2    00:00:00 bash
 7344 pts/2    00:00:00 ps
/dev/pts/4
07:33:18
#ssh user@192.168.15.252
Use: screen [-opts] [cmd [args]]
 or: screen -r [host.tty]
Options:
-a            Force all capabilities into each window's termcap.
-A -[r|R]     Adapt all windows to the new display width & height.
-c file       Read configuration file instead of '.screenrc'.
-d (-r)       Detach the elsewhere running screen (and reattach here).
-dmS name     Start as daemon: Screen session in detached mode.
-D (-r)       Detach and logout remote (and reattach here).
-D -RR        Do whatever is needed to get a screen session.
...
user@book:~$ ssh root@192.168.90.1
root@192.168.90.1's password:
Linux linux9 2.6.32-5-686 #1 SMP Mon Oct 3 04:15:24 UTC 2011 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 20 17:18:57 2011 from note.unix.nt
l3-agent is already running: pid=2176; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/6
07:34:52
#nano /etc/asterisk/extensions.
07:34:52
#nano /etc/asterisk/extensions.conf
прошло 35 минут
08:10:12
#[default]
  GNU nano 2.2.4                         File: /etc/asterisk/sip.conf                                              Modified
[general]
context=default
allowoverlap=no
udpbindaddr=0.0.0.0
tcpenable=no
tcpbindaddr=0.0.0.0
srvlookup=yes
canreinvite=no
register => hm:1234@192.168.30.1/mn
...
pickupgroup=1
[1402]
type=friend
secret=1402
host=dynamic
context=gr4
language=ru
mailbox=1402@default
^G Get Help         ^O WriteOut         ^R Read File        ^Y Prev Page        ^K Cut Text         ^C Cur Pos
^X Exit             ^J Justify          ^W Where Is         ^V Next Page        ^U UnCut Text       ^T To Spell
прошло 12 минут
08:22:50
#nano /etc/asterisk/sip.conf
08:24:09
#mailbox=1402@default

08:27:13
#[local]
  GNU nano 2.2.4                         File: /etc/asterisk/sip.conf                                              Modified
[general]r3
context=default
allowoverlap=nofault
udpbindaddr=0.0.0.0
tcpenable=no1
tcpbindaddr=0.0.0.0
srvlookup=yes
canreinvite=no
register => hm:1234@192.168.30.1/mn
...
host=dynamic
context=gr4
language=ru
mailbox=1405@default
callgroup=1
[mn]
type=friend
secret=1234
^G Get Help         ^O WriteOut         ^R Read File        ^Y Prev Page        ^K Cut Text         ^C Cur Pos
^X Exit             ^J Justify          ^W Where Is         ^V Next Page        ^U UnCut Text       ^T To Spell
08:30:52
#nano /etc/asterisk/sip.conf
--- /tmp/l3-saved-2708.23240.9818	2011-10-21 09:30:54.000000000 +0300
+++ /etc/asterisk/sip.conf	2011-10-21 09:31:04.000000000 +0300
@@ -7,7 +7,7 @@
 srvlookup=yes                   
 canreinvite=no
 register => hm:1234@192.168.30.1/mn
-;register => nt1:1234@91.205.16.235/world
+register => nt1:1234@91.205.16.235/world
 videosupport=yes
 
 [1401]
08:38:15
#;disallow=all

08:44:16
#[local]

прошло 39 минут
09:23:19
#nano /etc/asterisk/extensions.conf
09:30:22
#lcpci
bash: lcpci: command not found
09:30:36
#lspci
00:00.0 Host bridge: Intel Corporation Sandy Bridge DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Sandy Bridge Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation Cougar Point HECI Controller #1 (rev 04)
00:16.3 Serial controller: Intel Corporation Cougar Point KT Controller (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
00:1a.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation Cougar Point High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 1 (rev b4)
00:1c.4 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 5 (rev b4)
00:1c.6 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 7 (rev b4)
00:1c.7 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 8 (rev b4)
00:1d.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #1 (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a4)
00:1f.0 ISA bridge: Intel Corporation Cougar Point LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation Cougar Point 6 port SATA AHCI Controller (rev 04)
00:1f.3 SMBus: Intel Corporation Cougar Point SMBus Controller (rev 04)
09:30:42
#lspci --help
lspci: invalid option -- '-'
Usage: lspci [<switches>]
Basic display modes:
-mm             Produce machine-readable output (single -m for an obsolete format)
-t              Show bus tree
Display options:
-v              Be verbose (-vv for very verbose)
-k              Show kernel drivers handling each device
-x              Show hex-dump of the standard part of the config space
-xxx            Show hex-dump of the whole config space (dangerous; root only)
...
Other options:
-i <file>       Use specified ID database instead of /usr/share/misc/pci.ids.gz
-p <file>       Look up kernel modules in a given file instead of default modules.pcimap
-M              Enable `bus mapping' mode (dangerous; root only)
PCI access options:
-A <method>     Use the specified PCI access method (see `-A help' for a list)
-O <par>=<val>  Set PCI access parameter (see `-O help' for a list)
-G              Enable PCI access debugging
-H <mode>       Use direct hardware access (<mode> = 1 or 2)
-F <file>       Read PCI configuration dump from a given file
09:32:11
#less /etc/asterisk/
09:32:11
#less /etc/asterisk/dahdi-channels.conf
прошло 69 минут
10:41:23
#nano /root/.lilalo/
10:41:23
#nano /root/.lilalo/.
10:41:23
#nano /root/.lilalo/./
10:41:23
#nano /root/
10:41:23
#nano /root/.bashrc
10:42:28
#~/.bashrc: executed by bash(1) for non-login shells.
.l3rc     .lesshst  .lilalo/
10:42:28
#nano /root/.lilalo/l3
10:42:28
#nano /root/.lilalo/l3
10:42:28
#nano /root/.lilalo/l3bashrc
10:43:24
#!/bin/sh

10:43:44
#~/.bashrc: executed by bash(1) for non-login shells.
bash: /root/.bashrc: Permission denied
10:43:50
#l3-config backend_address
xgu.ru
10:53:43
#ls -l /etc/
total 1108
drwxr-xr-x 3 root     root      4096 Oct 17 10:46 acpi
-rw-r--r-- 1 root     root      2981 Oct 17 10:46 adduser.conf
-rw-r--r-- 1 root     root        44 Oct 21 08:29 adjtime
-rw-r--r-- 1 root     root       243 Oct 18 14:45 aliases
drwxr-xr-x 2 root     root      4096 Oct 20 16:35 alternatives
-rw-r--r-- 1 root     root       395 Nov  1  2009 anacrontab
drwxr-xr-x 3 root     root      4096 Oct 17 12:14 apache2
drwxr-xr-x 6 root     root      4096 Oct 17 12:13 apm
drwxr-xr-x 6 root     root      4096 Oct 17 11:34 apt
...
drwxr-xr-x 2 root     root     12288 Oct 17 12:17 usb_modeswitch.d
drwxr-xr-x 2 root     root      4096 Oct 17 12:16 vga
drwxr-xr-x 2 root     root      4096 Oct 17 10:46 vim
-rw-r--r-- 1 root     root      4496 Sep  5  2010 wgetrc
drwxr-xr-x 2 root     root      4096 Oct 17 12:16 wildmidi
drwxr-xr-x 2 root     root      4096 Oct 19 09:47 wireshark
drwxr-xr-x 2 root     root      4096 Oct 17 12:17 wpa_supplicant
drwxr-xr-x 9 root     root      4096 Oct 17 12:17 X11
drwxr-xr-x 4 root     root      4096 Oct 17 12:17 xdg
drwxr-xr-x 2 root     root      4096 Oct 17 12:17 xml
10:53:47
#ls -l /etc/d*
-rw-r--r-- 1 root root 2969 Jan 30  2011 /etc/debconf.conf
-rw-r--r-- 1 root root    6 May 28 15:04 /etc/debian_version
-rw-r--r-- 1 root root  600 Nov 21  2010 /etc/deluser.conf
/etc/dahdi:
total 4
-rw-r--r-- 1 root root 1091 Sep 29  2009 xpp.conf
/etc/dbus-1:
total 16
-rw-r--r-- 1 root root 2609 Jun 15 11:46 session.conf
drwxr-xr-x 2 root root 4096 Jun 15 11:46 session.d
...
-rw-r--r-- 1 root root 753 Jan  5  2011 dict.conf
/etc/dictionaries-common:
total 0
/etc/dpkg:
total 20
-rw-r--r-- 1 root root  446 Apr 26 09:47 dpkg.cfg
drwxr-xr-x 2 root root 4096 Apr 27 00:03 dpkg.cfg.d
drwxr-xr-x 2 root root 4096 Oct 17 10:46 origins
-rw-r--r-- 1 root root  260 Apr 26 09:47 shlibs.default
-rw-r--r-- 1 root root  253 Apr 26 09:47 shlibs.override
10:53:51
#ls -l /etc/da*
total 4
-rw-r--r-- 1 root root 1091 Sep 29  2009 xpp.conf
10:54:01
#apt
apt-cache                     aptdcon                       aptitude                      apt-key
apt-cdrom                     apt-extracttemplates          aptitude-create-state-bundle  apt-mark
apt-config                    apt-ftparchive                aptitude-curses               apt-sortpkgs
aptd                          apt-get                       aptitude-run-state-bundle
10:54:01
#apt-get install apache
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package apache is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'apache' has no installation candidate
прошла 31 минута
11:25:16
#apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  apache2-mpm-worker apache2-utils apache2.2-common ssl-cert
Suggested packages:
  apache2-doc apache2-suexec apache2-suexec-custom openssl-blacklist
The following NEW packages will be installed:
  apache2 apache2-mpm-worker apache2-utils apache2.2-common ssl-cert
0 upgraded, 5 newly installed, 0 to remove and 14 not upgraded.
...
Enabling module authz_default.
Enabling module authz_user.
Enabling module authz_groupfile.
Enabling module authn_file.
Enabling module authz_host.
Enabling module reqtimeout.
Setting up apache2-mpm-worker (2.2.16-6+squeeze4) ...
Starting web server: apache2.
Setting up apache2 (2.2.16-6+squeeze4) ...
Setting up ssl-cert (1.0.28) ...
11:25:31
#apt-get install php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  apache2-mpm-prefork libapache2-mod-php5 libonig2 libqdbm14 php5-cli php5-common php5-suhosin
Suggested packages:
  php-pear
The following packages will be REMOVED:
  apache2-mpm-worker
The following NEW packages will be installed:
...
Setting up libqdbm14 (1.8.77-4) ...
Setting up php5-common (5.3.3-7+squeeze3) ...
Setting up libapache2-mod-php5 (5.3.3-7+squeeze3) ...
Creating config file /etc/php5/apache2/php.ini with new version
Reloading web server config: apache2.
Setting up php5 (5.3.3-7+squeeze3) ...
Setting up php5-cli (5.3.3-7+squeeze3) ...
Creating config file /etc/php5/cli/php.ini with new version
update-alternatives: using /usr/bin/php5 to provide /usr/bin/php (php) in auto mode.
Setting up php5-suhosin (0.9.32.1-1) ...
11:25:52
#/etc/init.d/apache2 restart
Restarting web server: apache2 ... waiting .
11:26:23
#cp -R flash /var/www/panel
cp: cannot stat `flash': No such file or directory
11:27:52
#scp linux9:/root/op_panel-0.30.tar.gz .
The authenticity of host 'linux9 (192.168.90.1)' can't be established.
RSA key fingerprint is f0:05:a6:a6:88:29:cd:4d:7a:23:9b:50:fa:00:de:0c.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'linux9' (RSA) to the list of known hosts.
root@linux9's password:
op_panel-0.30.tar.gz                                                                       100%  347KB 347.4KB/s   00:00
11:29:11
#ls
eradd alexp  file  op_panel-0.30.tar.gz  tall  tel.txt
11:29:27
#pwd
/root
11:29:34
#^C

11:30:05
#tar -xvvzf op_panel-0.30.tar.gz
drwxr-xr-x root/root         0 2009-06-22 21:06 op_panel-0.30/
drwxr-xr-x root/root         0 2009-06-22 21:06 op_panel-0.30/ming-source/
-rwxr-xr-x root/root    339518 2009-06-22 21:06 op_panel-0.30/ming-source/operator_panel.pl
-rw-r--r-- root/root       201 2009-06-22 21:06 op_panel-0.30/ming-source/README
-rwxr-xr-x root/root     37488 2009-06-22 21:06 op_panel-0.30/ming-source/comunicator.pl
drwxr-xr-x root/root         0 2009-06-22 21:06 op_panel-0.30/flash/
-rw-r--r-- root/root      1326 2009-06-22 21:06 op_panel-0.30/flash/index-restrict.html
-rw-r--r-- root/root       221 2009-06-22 21:06 op_panel-0.30/flash/crossdomain.xml
-rw-r--r-- root/root      1407 2009-06-22 21:06 op_panel-0.30/flash/help_ru.html
-rw-r--r-- root/root      1066 2009-06-22 21:06 op_panel-0.30/flash/help_es.html
...
-rw-r--r-- root/root      1055 2009-06-22 21:06 op_panel-0.30/op_lang_gl.cfg
-rw-r--r-- root/root      7980 2009-06-22 21:06 op_panel-0.30/op_server.cfg
-rw-r--r-- root/root       983 2009-06-22 21:06 op_panel-0.30/op_lang_es.cfg
-rw-r--r-- root/root      2449 2009-06-22 21:06 op_panel-0.30/FAQ
-rw-r--r-- root/root       706 2009-06-22 21:06 op_panel-0.30/extensions.conf.sample
-rw-r--r-- root/root      1087 2009-06-22 21:06 op_panel-0.30/op_lang_fr.cfg
-rw-r--r-- root/root      1030 2009-06-22 21:06 op_panel-0.30/op_lang_se.cfg
-rw-r--r-- root/root      1040 2009-06-22 21:06 op_panel-0.30/op_lang_it.cfg
-rw-r--r-- root/root       937 2009-06-22 21:06 op_panel-0.30/op_lang_no.cfg
-rwxr-xr-x root/root    419299 2009-06-22 21:06 op_panel-0.30/op_server.pl
11:31:52
#ls
eradd alexp  file  op_panel-0.30  op_panel-0.30.tar.gz  tall  tel.txt
11:31:54
#cd op_panel-0.30

11:31:59
#make install
make: *** No rule to make target `install'.  Stop.
11:32:03
#ls
CHANGES                 flash        op_astdb.cfg    op_lang_en.cfg  op_lang_it.cfg  op_server.cfg  RECIPES
dhtml                   init         op_buttons.cfg  op_lang_es.cfg  op_lang_no.cfg  op_server.pl   TODO
extensions.conf.sample  LICENSE      op_lang_ca.cfg  op_lang_fr.cfg  op_lang_ru.cfg  op_style.cfg   UPGRADE
FAQ                     ming-source  op_lang_de.cfg  op_lang_gl.cfg  op_lang_se.cfg  README
11:32:19
#cd ..

11:32:36
#cp -R flash /var/www/panel

11:32:37
#cd ..

11:32:42
#nano /etc/asterisk/manager.
11:32:42
#nano /etc/asterisk/manager.
11:32:42
#nano /etc/asterisk/manager.d/README.conf
11:34:37
#cat/etc/asterisk/manager.d/fop.conf
bash: cat/etc/asterisk/manager.d/fop.conf: No such file or directory
11:34:52
#cat /etc/asterisk/manager.d/fop.conf
[myuser]
secret = mysecret
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user
11:34:55
#nano /root/op_panel-0.30/
11:34:55
#nano /root/op_panel-0.30/
11:34:55
#ls /op_panel-0.30/
ls: cannot access /op_panel-0.30/: No such file or directory
11:35:31
#nano /var/www/panel/
11:35:31
#nano /var/www/panel/index.html
11:36:15
#<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
eradd alexp  file  op_panel-0.30  op_panel-0.30.tar.gz  tall  tel.txt
11:36:37
#cd op_panel-0.30

11:36:41
#ls
CHANGES                 flash        op_astdb.cfg    op_lang_en.cfg  op_lang_it.cfg  op_server.cfg  RECIPES
dhtml                   init         op_buttons.cfg  op_lang_es.cfg  op_lang_no.cfg  op_server.pl   TODO
extensions.conf.sample  LICENSE      op_lang_ca.cfg  op_lang_fr.cfg  op_lang_ru.cfg  op_style.cfg   UPGRADE
FAQ                     ming-source  op_lang_de.cfg  op_lang_gl.cfg  op_lang_se.cfg  README
11:36:43
#nano op_s
11:36:43
#nano op_server..cfg
прошло 77 минут
/dev/pts/8
12:54:08
#scp user@192.168.70.1:/home/user/fop2-2.23-debian-i386.tgz /home/user
The authenticity of host '192.168.70.1 (192.168.70.1)' can't be established.
RSA key fingerprint is 8f:a8:01:dc:fb:30:a2:33:72:95:8f:c7:5f:ab:a0:15.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.70.1' (RSA) to the list of known hosts.
user@192.168.70.1's password:
fop2-2.23-debian-i386.tgz                                                                  100% 5930KB   5.8MB/s   00:00
13:02:40
#tar -xfv /home/user/fop2-2.23-debian-i386.tgz
tar: v: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

Файлы

  • /etc/asterisk/manager.d/fop.conf
  • /etc/hosts
  • /etc/asterisk/manager.d/fop.conf
    >
    [myuser]
    secret = mysecret
    deny=0.0.0.0/0.0.0.0
    permit=127.0.0.1/255.255.255.0
    read = system,call,log,verbose,command,agent,user
    write = system,call,log,verbose,command,agent,user
    
    /etc/hosts
    >
    127.0.0.1       localhost
    192.168.40.1    linux4.unix.nt  linux4
    # The following lines are desirable for IPv6 capable hosts
    ::1     ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    

    Статистика

    Время первой команды журнала15:29:11 2011-10-20
    Время последней команды журнала13:02:40 2011-10-21
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, %12.87
    Процент синтаксически неверно набранных команд, % 2.97
    Суммарное время работы с терминалом *, час 2.25
    Количество командных строк в единицу времени, команда/мин 0.75
    Частота использования команд
    nano26|========================| 24.76%
    ls8|=======| 7.62%
    apt-get5|====| 4.76%
    cd4|===| 3.81%
    ^C4|===| 3.81%
    ps3|==| 2.86%
    apt-cache3|==| 2.86%
    cp2|=| 1.90%
    dpkg-reconfigure2|=| 1.90%
    cat2|=| 1.90%
    ~2|=| 1.90%
    tar2|=| 1.90%
    [local]2|=| 1.90%
    .bashrc:2|=| 1.90%
    vim2|=| 1.90%
    lspci2|=| 1.90%
    scp2|=| 1.90%
    less2|=| 1.90%
    grep2|=| 1.90%
    usermod2|=| 1.90%
    dpkg1|| 0.95%
    cat/etc/asterisk/manager.d/fop.conf1|| 0.95%
    mailbox=1402@default1|| 0.95%
    /etc/init.d/ejabberd1|| 0.95%
    14091|| 0.95%
    l3-config1|| 0.95%
    make1|| 0.95%
    [1|| 0.95%
    lcpci1|| 0.95%
    netstat1|| 0.95%
    free1|| 0.95%
    html1|| 0.95%
    /etc/init.d/apache21|| 0.95%
    <1|| 0.95%
    127.0.0.11|| 0.95%
    ping1|| 0.95%
    pwd1|| 0.95%
    1409:50111|| 0.95%
    history1|| 0.95%
    admin1|| 0.95%
    sh1|| 0.95%
    disallow=all1|| 0.95%
    apt1|| 0.95%
    [default]1|| 0.95%
    ssh1|| 0.95%
    su1|| 0.95%
    ____
    *) Интервалы неактивности длительностью 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$