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

Содержание

Журнал

Пятница (03/26/10)

/dev/pts/6
11:30:24
#brctl show
bridge name     bridge id               STP enabled     interfaces
eth1            8000.0007e90c4f9d       no              peth1
                                                        vif48.0
/dev/pts/2
11:34:30
#ssh root@192.168.15.10
^Z
[1]+  Stopped                 ssh root@192.168.15.10
11:37:24
#ssh root@192.168.15.10
^C
11:38:21
#ssh root@192.168.15.10
root@192.168.15.10's password:
Linux linux10 2.6.31.12 #1 SMP Thu Mar 25 19:41:09 EET 2010 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Mar 26 12:39:11 2010 from linux8.unix.nt
l3-agent is already running: pid=3908; pidfile=/root/.lilalo/l3-agent.pid
11:39:20
#screen -x
прошло 10 минут
/dev/pts/6
11:49:27
#tail /var/log/xen/xend.log
[2010-03-26 11:02:37 20279] DEBUG (DevController:151) Waiting for devices irq.
[2010-03-26 11:02:37 20279] DEBUG (DevController:151) Waiting for devices vkbd.
[2010-03-26 11:02:37 20279] DEBUG (DevController:151) Waiting for devices vfb.
[2010-03-26 11:02:37 20279] DEBUG (DevController:151) Waiting for devices console.
[2010-03-26 11:02:37 20279] DEBUG (DevController:156) Waiting for 0.
[2010-03-26 11:02:37 20279] DEBUG (DevController:151) Waiting for devices pci.
[2010-03-26 11:02:37 20279] DEBUG (DevController:151) Waiting for devices ioports.
[2010-03-26 11:02:37 20279] DEBUG (DevController:151) Waiting for devices tap.
[2010-03-26 11:02:37 20279] DEBUG (DevController:151) Waiting for devices vtpm.
[2010-03-26 11:02:37 20279] INFO (XendDomain:1165) Domain linux1 (48) unpaused.
11:50:08
#ping ya.ru
PING ya.ru (93.158.134.8) 56(84) bytes of data.
^C64 bytes from 93.158.134.8: icmp_seq=1 ttl=48 time=52.8 ms
--- ya.ru ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 52.835/52.835/52.835/0.000 ms
прошло 79 минут
13:09:40
#ping ya.ru
PING ya.ru (213.180.204.8) 56(84) bytes of data.
^C64 bytes from 213.180.204.8: icmp_seq=1 ttl=49 time=49.3 ms
--- ya.ru ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 49.387/49.387/49.387/0.000 ms
13:09:59
#ping ya.ru
PING ya.ru (77.88.21.8) 56(84) bytes of data.
64 bytes from 77.88.21.8: icmp_seq=3 ttl=50 time=54.0 ms
64 bytes from ya.ru (77.88.21.8): icmp_seq=4 ttl=50 time=53.0 ms
64 bytes from ya.ru (77.88.21.8): icmp_seq=6 ttl=50 time=56.2 ms
64 bytes from ya.ru (77.88.21.8): icmp_seq=11 ttl=50 time=56.0 ms
64 bytes from ya.ru (77.88.21.8): icmp_seq=13 ttl=50 time=56.7 ms
64 bytes from ya.ru (77.88.21.8): icmp_seq=14 ttl=50 time=53.6 ms
64 bytes from ya.ru (77.88.21.8): icmp_seq=15 ttl=50 time=53.7 ms
64 bytes from ya.ru (77.88.21.8): icmp_seq=16 ttl=50 time=96.8 ms
^C
--- ya.ru ping statistics ---
18 packets transmitted, 8 received, 55% packet loss, time 35912ms
rtt min/avg/max/mdev = 53.064/60.027/96.823/13.969 ms
13:11:18
#ls /boot/
config-2.6.26-2-686      initrd.img-2.6.26-2-686      System.map-2.6.26-2-686      vmlinuz-2.6.26-2-xen-686
config-2.6.26-2-xen-686  initrd.img-2.6.26-2-686.bak  System.map-2.6.26-2-xen-686  xen-3.2-1-i386.gz
grub                     initrd.img-2.6.26-2-xen-686  vmlinuz-2.6.26-2-686
13:16:32
#ls -l /boot/
итого 25536
-rw-r--r-- 1 root root   91715 Мар  9 23:12 config-2.6.26-2-686
-rw-r--r-- 1 root root   86194 Мар  9 23:23 config-2.6.26-2-xen-686
drwxr-xr-x 2 root root    4096 Мар 24 16:24 grub
-rw-r--r-- 1 root root 7278218 Мар 22 14:19 initrd.img-2.6.26-2-686
-rw-r--r-- 1 root root 6174186 Мар 22 10:12 initrd.img-2.6.26-2-686.bak
-rw-r--r-- 1 root root 7225783 Мар 24 16:24 initrd.img-2.6.26-2-xen-686
-rw-r--r-- 1 root root  928515 Мар  9 23:12 System.map-2.6.26-2-686
-rw-r--r-- 1 root root  906683 Мар  9 23:23 System.map-2.6.26-2-xen-686
-rw-r--r-- 1 root root 1507056 Мар  9 23:12 vmlinuz-2.6.26-2-686
-rw-r--r-- 1 root root 1485951 Мар  9 23:22 vmlinuz-2.6.26-2-xen-686
-rw-r--r-- 1 root root  376094 Июн 28  2008 xen-3.2-1-i386.gz
13:16:44
#ls -laGF /boot/
итого 25544
drwxr-xr-x  3 root    4096 Мар 24 16:24 ./
drwxr-xr-x 25 root    4096 Мар 25 18:23 ../
-rw-r--r--  1 root   91715 Мар  9 23:12 config-2.6.26-2-686
-rw-r--r--  1 root   86194 Мар  9 23:23 config-2.6.26-2-xen-686
drwxr-xr-x  2 root    4096 Мар 24 16:24 grub/
-rw-r--r--  1 root 7278218 Мар 22 14:19 initrd.img-2.6.26-2-686
-rw-r--r--  1 root 6174186 Мар 22 10:12 initrd.img-2.6.26-2-686.bak
-rw-r--r--  1 root 7225783 Мар 24 16:24 initrd.img-2.6.26-2-xen-686
-rw-r--r--  1 root  928515 Мар  9 23:12 System.map-2.6.26-2-686
-rw-r--r--  1 root  906683 Мар  9 23:23 System.map-2.6.26-2-xen-686
-rw-r--r--  1 root 1507056 Мар  9 23:12 vmlinuz-2.6.26-2-686
-rw-r--r--  1 root 1485951 Мар  9 23:22 vmlinuz-2.6.26-2-xen-686
-rw-r--r--  1 root  376094 Июн 28  2008 xen-3.2-1-i386.gz
13:19:54
#cd /usr/

13:20:21
#find ./ -name "l3-agent"
./local/bin/l3-agent
13:20:48
#less /usr/local/bin/l3-agent
13:23:14
#cd local/bin/

13:23:24
#ls
l3-agent  l3-config  l3script
13:23:25
#ls -aGFl
итого 48
drwxrwsr-x  2 root  4096 Мар 22 11:22 ./
drwxrwsr-x 10 root  4096 Мар 22 10:07 ../
-rwxr-xr-x  1 root 33439 Мар 22 11:29 l3-agent*
-rwxr-xr-x  1 root   100 Мар 22 11:29 l3-config*
lrwxrwxrwx  1 root     9 Мар 22 11:22 l3script -> /bin/bash*
13:23:30
#cp l3-agent /home/user/

13:23:58
#cp l3-config /home/user/

13:24:08
#cp l3script /home/user/

13:24:41
#xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  6809     2     r-----  55978.6
linux1                                      48   128     1     -b----      8.4
13:27:46
#xm console linux1
linux5:~#
linux5:~#
linux5:~#
linux5:~#
linux5:~#
linux5:~#
linux5:~#
linux5:~#
linux5:~# lspci
linux5:~#
...
-rw-r--r-- 1 root root     155 Mar 24 14:50 shells
drwxr-xr-x 2 root root    4096 Mar 24 14:50 skel
drwxr-xr-x 2 root root    4096 Mar 24 14:53 ssh
-rw-r--r-- 1 root root    2275 Jan 11  2009 sysctl.conf
drwxr-xr-x 2 root root    4096 Jan 11  2009 sysctl.d
drwxr-xr-x 2 root root    4096 Mar 24 14:50 terminfo
-rw-r--r-- 1 root root       8 Mar 24 14:50 timezone
drwxr-xr-x 4 root root    4096 Mar 24 14:53 udev
drwxr-xr-x 2 root root    4096 Mar 24 14:51 vim
-rw-r--r-- 1 root root    4221 Oct  8 12:38 wgetrc
13:29:12
#cd ~/

13:29:30
#pwd
/root
/dev/pts/4
13:30:15
#man rsync
13:31:33
#cat /root/.ssh/id_dsa.pub | ssh 192.168.15.7 'cat >> ~/.ssh/authorized.keys'
root@192.168.15.7's password:
13:34:19
#ssh root@192.168.15.7
root@192.168.15.7's password:
Linux linux7 2.6.26-2-xen-686 #1 SMP Tue Mar 9 20:11:42 UTC 2010 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Mar 25 14:32:58 2010 from linux10.unix.nt
l3-agent is already running: pid=3372; pidfile=/root/.lilalo/l3-agent.pid
13:34:33
#pwd
/root
13:34:36
#touch .hushlogin

13:34:57
#exit
exit
Connection to 192.168.15.7 closed.
13:35:05
#ssh 192.168.15.7
root@192.168.15.7's password:
l3-agent is already running: pid=3372; pidfile=/root/.lilalo/l3-agent.pid
13:35:13
#exit
exit
Connection to 192.168.15.7 closed.
13:35:20
#ssh-keygen -d dsa
Too many arguments.
usage: ssh-keygen [options]
Options:
  -a trials   Number of trials for screening DH-GEX moduli.
  -B          Show bubblebabble digest of key file.
  -b bits     Number of bits in the key to create.
  -C comment  Provide new comment.
  -c          Change comment in private and public key files.
  -e          Convert OpenSSH to RFC 4716 key file.
  -F hostname Find hostname in known hosts file.
...
  -p          Change passphrase of private key file.
  -q          Quiet.
  -R hostname Remove host from known_hosts file.
  -r hostname Print DNS resource record.
  -S start    Start point (hex) for generating DH-GEX moduli.
  -T file     Screen candidates for DH-GEX moduli.
  -t type     Specify type of key to create.
  -v          Verbose.
  -W gen      Generator to use for generating DH-GEX moduli.
  -y          Read private key file and print public key.
прошло 18 минут
13:53:43
#ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/root/.ssh/id_dsa): rerere
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Passphrases do not match.  Try again.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Passphrases do not match.  Try again.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
...
|                 |
|                 |
|                 |
|        o o .    |
|       .S= ..oE  |
|       oo  .*..  |
|      . o. o.* . |
|       o..  *oo  |
|       .o  .o+.. |
+-----------------+
13:54:51
#exit
exit
Connection to 192.168.15.7 closed.
13:54:58
#pwd
/
13:55:38
#cd ~/

13:55:50
#cat /root/.ssh/id_dsa.pub | ssh 192.168.15.7 'cat >> ~/.ssh/authorized.keys'
root@192.168.15.7's password:
13:56:00
#ls -l .ssh/
итого 16
-rw-r--r-- 1 root root  601 Мар 24 09:39 authorized_keys
-rw------- 1 root root  668 Мар 24 09:41 id_dsa
-rw-r--r-- 1 root root  601 Мар 24 09:41 id_dsa.pub
-rw-r--r-- 1 root root 2652 Мар 25 17:10 known_hosts
13:56:22
#cat /root/.ssh/id_dsa.pub | ssh 192.168.15.7 'cat >> ~/.ssh/authorized_keys'
root@192.168.15.7's password:
13:56:52
#exit
exit
Connection to 192.168.15.7 closed.
13:57:03
#free
             total       used       free     shared    buffers     cached
Mem:       6972416    2214692    4757724          0     184988    1350644
-/+ buffers/cache:     679060    6293356
Swap:     11229384          0   11229384
14:04:51
#man iptables
14:09:41
#apt-cache search remotedesk
remotedesk.app - Remote Windows access tool for GNUstep
прошло 16 минут
14:26:04
#apt-get installremotedesk
E: Неверная операция installremotedesk
14:26:32
#apt-get install remotedesk
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
E: Не удалось найти пакет remotedesk
14:26:36
#apt-get install remotedesktop
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
E: Не удалось найти пакет remotedesktop
14:26:51
#remotedesk.app
bash: remotedesk.app: команда не найдена
14:27:07
#remotedesk
bash: remotedesk: команда не найдена
14:27:10
#apt-get install remoteadmin
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
E: Не удалось найти пакет remoteadmin
14:27:39
#apt-cache search remoteadministrator

14:27:48
#apt-cache search remoteadm

14:27:57
#apt-cache search remote
adonthell-data - Data files needed by Adonthell
agenda.app - Calendar manager for GNUstep
alsaplayer-daemon - PCM player designed for ALSA (non-interactive version)
ample - A simple MP3 server easy to use
amule-daemon - non-graphic version of aMule, a client for the eD2k and Kad networks
amule - client for the eD2k and Kad networks, like eMule
anyremote - Remote control service Bluetooth, IrDA, Wi-Fi connection
ap-utils - Access Point SNMP Utils for Linux
apg - Automated Password Generator - Standalone version
approx - caching proxy server for Debian archive files
...
libicepatch2-32 - Libraries implementing a distribution service for ZeroC Ice
zssh - interactive file transfers over ssh
zsync - client-side implementation of the rsync algorithm
kdelibs4c2a - core libraries and binaries for all KDE applications
ldap-utils - OpenLDAP utilities
libqt4-dbus - Qt 4 D-Bus module
polipo - a small, caching web proxy
pulseaudio-module-lirc - lirc module for PulseAudio sound server
rmail - MTA->UUCP remote mail handler
clamav-daemon - anti-virus utility for Unix - scanner daemon
14:30:40
#apt-cache search remote | grep -p
grep: неверный ключ -- p
Использование: grep [OPTION]... PATTERN [FILE]...
Попробуйте `grep --help' для получения более подробного описания.
14:30:57
#apt-cache search remote | grep p
agenda.app - Calendar manager for GNUstep
alsaplayer-daemon - PCM player designed for ALSA (non-interactive version)
ample - A simple MP3 server easy to use
amule-daemon - non-graphic version of aMule, a client for the eD2k and Kad networks
ap-utils - Access Point SNMP Utils for Linux
apg - Automated Password Generator - Standalone version
approx - caching proxy server for Debian archive files
audispd-plugins - Plugins for the audit event dispatcher
libaxis-java-doc - A SOAP implementation in Java
libaxis-java - A SOAP implementation in Java
...
xprobe - Remote OS identification
xrdp - Remote Desktop Protocol (RDP) server
xrsh - remote execution of XWindow programs
xtv - View the screen of a remote X11 display
libicepatch2-32 - Libraries implementing a distribution service for ZeroC Ice
zsync - client-side implementation of the rsync algorithm
kdelibs4c2a - core libraries and binaries for all KDE applications
ldap-utils - OpenLDAP utilities
polipo - a small, caching web proxy
pulseaudio-module-lirc - lirc module for PulseAudio sound server
14:31:02
#apt-cache search remotex

14:31:39
#apt-cache search remote | grep p
agenda.app - Calendar manager for GNUstep
alsaplayer-daemon - PCM player designed for ALSA (non-interactive version)
ample - A simple MP3 server easy to use
amule-daemon - non-graphic version of aMule, a client for the eD2k and Kad networks
ap-utils - Access Point SNMP Utils for Linux
apg - Automated Password Generator - Standalone version
approx - caching proxy server for Debian archive files
audispd-plugins - Plugins for the audit event dispatcher
libaxis-java-doc - A SOAP implementation in Java
libaxis-java - A SOAP implementation in Java
...
xprobe - Remote OS identification
xrdp - Remote Desktop Protocol (RDP) server
xrsh - remote execution of XWindow programs
xtv - View the screen of a remote X11 display
libicepatch2-32 - Libraries implementing a distribution service for ZeroC Ice
zsync - client-side implementation of the rsync algorithm
kdelibs4c2a - core libraries and binaries for all KDE applications
ldap-utils - OpenLDAP utilities
polipo - a small, caching web proxy
pulseaudio-module-lirc - lirc module for PulseAudio sound server
14:33:40
#xtv
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
      after 625 requests (607 known processed) with 0 events remaining.
14:33:53
#xtv --help
usage: xtv [-s refresh_timeout] [-d display]
14:34:07
#apt-cache search remote
adonthell-data - Data files needed by Adonthell
agenda.app - Calendar manager for GNUstep
alsaplayer-daemon - PCM player designed for ALSA (non-interactive version)
ample - A simple MP3 server easy to use
amule-daemon - non-graphic version of aMule, a client for the eD2k and Kad networks
amule - client for the eD2k and Kad networks, like eMule
anyremote - Remote control service Bluetooth, IrDA, Wi-Fi connection
ap-utils - Access Point SNMP Utils for Linux
apg - Automated Password Generator - Standalone version
approx - caching proxy server for Debian archive files
...
libicepatch2-32 - Libraries implementing a distribution service for ZeroC Ice
zssh - interactive file transfers over ssh
zsync - client-side implementation of the rsync algorithm
kdelibs4c2a - core libraries and binaries for all KDE applications
ldap-utils - OpenLDAP utilities
libqt4-dbus - Qt 4 D-Bus module
polipo - a small, caching web proxy
pulseaudio-module-lirc - lirc module for PulseAudio sound server
rmail - MTA->UUCP remote mail handler
clamav-daemon - anti-virus utility for Unix - scanner daemon
14:39:01
#remotedesk.app
bash: remotedesk.app: команда не найдена
14:39:45
#find ./ -name "remotedesk.app"
./share/lintian/overrides/remotedesk.app
./share/menu/remotedesk.app
./share/doc/remotedesk.app
14:40:14
#cat /proc/drbd
version: 8.0.14 (api:86/proto:86)
GIT-hash: bb447522fc9a87d0069b7e14f0234911ebdab0f7 build by phil@fat-tyre, 2008-11-12 16:40:33
 1: cs:Connected st:Secondary/Secondary ds:UpToDate/UpToDate C r---
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0
        resync: used:0/61 hits:0 misses:0 starving:0 dirty:0 changed:0
        act_log: used:0/127 hits:0 misses:0 starving:0 dirty:0 changed:0
 2: cs:Connected st:Primary/Secondary ds:UpToDate/UpToDate C r---
    ns:6028542 nr:0 dw:785662 dr:5354732 al:279 bm:356 lo:0 pe:0 ua:0 ap:0
        resync: used:0/61 hits:0 misses:0 starving:0 dirty:0 changed:0
        act_log: used:0/127 hits:190025 misses:372 starving:0 dirty:93 changed:279
 3: cs:Connected st:Primary/Secondary ds:UpToDate/UpToDate C r---
    ns:7481948 nr:0 dw:2239068 dr:7581696 al:1718 bm:320 lo:0 pe:0 ua:0 ap:0
        resync: used:0/61 hits:0 misses:0 starving:0 dirty:0 changed:0
        act_log: used:0/127 hits:558049 misses:1726 starving:0 dirty:8 changed:1718
14:44:04
#RemoteDesktop
bash: RemoteDesktop: команда не найдена
14:45:17
#apt-cache search RemoteDesktop

14:45:25
#apt-cache search pradmin

прошло 11 минут
14:56:46
#apt-cache search pra
adacontrol - An Ada rules controller
anarchism - An exhaustive exploration of Anarchist theory and practice
libarch-perl - Perl library for GNU Arch
autotools-dev - Update infrastructure for config.{guess,sub} files
libavalon-framework-java - Common framework for Java server applications
bittwist - libpcap-based Ethernet packet generator
libboost-dev - Boost C++ Libraries development files
libboost-doc - Boost.org libraries documentation
libboost1.35-dev - Boost C++ Libraries development files
libboost1.35-doc - Boost.org libraries documentation
...
libicepatch2-32 - Libraries implementing a distribution service for ZeroC Ice
libicessl32 - Ice for C++ SSL plug-in
libicestorm32 - Libraries implementing an event service for ZeroC Ice
libiceutil32 - Ice for C++ misc utility library
libicexml32 - ZeroC Ice for C++ XML parser library
libslice32 - Ice for C++ Slice parser library
libzeroc-ice32-dbg - Ice for C++ debugging symbols
libzeroc-ice32-dev - Ice for C++ development libraries
libzeroc-ice32 - Ice for C++ runtime library
zeroc-ice32 - Internet Communications Engine
15:03:17
#ssh ubuntu@79.125.83.117
The authenticity of host '79.125.83.117 (79.125.83.117)' can't be established.
RSA key fingerprint is 29:0a:75:d0:3c:7a:b9:74:bb:cf:ce:d8:22:97:5a:75.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '79.125.83.117' (RSA) to the list of known hosts.
Permission denied (publickey).
прошла 31 минута
15:34:55
#ssh ubuntu@79.125.83.117
ubuntu@79.125.83.117's password:
Permission denied, please try again.
ubuntu@79.125.83.117's password:
Permission denied, please try again.
ubuntu@79.125.83.117's password:
Permission denied (publickey,password).
15:36:32
#ssh root@79.125.83.117
root@79.125.83.117's password:
Linux ip-10-228-101-123 2.6.31-302-ec2 #7-Ubuntu SMP Tue Oct 13 19:06:04 UTC 2009 i686
To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/
  System information as of Fri Mar 26 14:38:03 UTC 2010
  System load: 0.08             Memory usage: 2%   Processes:       68
  Usage of /:  5.7% of 9.92GB   Swap usage:   0%   Users logged in: 2
  Graph this data and manage this system at https://landscape.canonical.com/
---------------------------------------------------------------------
At the moment, only the core of the system is installed. To tune the
...
root@ip-10-228-101-123:/# nmap
The program 'nmap' is currently not installed.  You can install it by typing:
apt-get install nmap
nmap: command not found
root@ip-10-228-101-123:/# exit
logout
There are stopped jobs.
root@ip-10-228-101-123:/# exit
logout
Connection to 79.125.83.117 closed.
15:45:23
#ssh root@79.125.83.117
root@79.125.83.117's password:
Linux ip-10-228-101-123 2.6.31-302-ec2 #7-Ubuntu SMP Tue Oct 13 19:06:04 UTC 2009 i686
To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/
  System information as of Fri Mar 26 14:48:36 UTC 2010
  System load: 0.0              Memory usage: 4%   Processes:       65
  Usage of /:  6.0% of 9.92GB   Swap usage:   0%   Users logged in: 2
  Graph this data and manage this system at https://landscape.canonical.com/
---------------------------------------------------------------------
At the moment, only the core of the system is installed. To tune the
...
root@ip-10-228-101-123:~#
root@ip-10-228-101-123:~# who
ubuntu   pts/0        2010-03-26 14:35 (chub.in)
root     pts/1        2010-03-26 14:38 (relay01.techexpert.ua)
root     pts/2        2010-03-26 14:38 (relay01.techexpert.ua)
root     pts/3        2010-03-26 14:48 (relay01.techexpert.ua)
root     pts/5        2010-03-26 14:38 (relay01.techexpert.ua)
root@ip-10-228-101-123:~# exit
logout
Connection to 79.125.83.117 closed.
15:48:48
#exit
exit
Есть приостановленные задачи.
прошло 19 минут
/dev/pts/2
16:08:45
#exit
exit
Connection to 192.168.15.10 closed.
16:08:49
#exit
exit
Есть приостановленные задачи.

Файлы

  • /proc/drbd
  • /proc/drbd
    >
    version: 8.0.14 (api:86/proto:86)
    GIT-hash: bb447522fc9a87d0069b7e14f0234911ebdab0f7 build by phil@fat-tyre, 2008-11-12 16:40:33
     1: cs:Connected st:Secondary/Secondary ds:UpToDate/UpToDate C r---
        ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0
            resync: used:0/61 hits:0 misses:0 starving:0 dirty:0 changed:0
            act_log: used:0/127 hits:0 misses:0 starving:0 dirty:0 changed:0
     2: cs:Connected st:Primary/Secondary ds:UpToDate/UpToDate C r---
        ns:6028542 nr:0 dw:785662 dr:5354732 al:279 bm:356 lo:0 pe:0 ua:0 ap:0
            resync: used:0/61 hits:0 misses:0 starving:0 dirty:0 changed:0
            act_log: used:0/127 hits:190025 misses:372 starving:0 dirty:93 changed:279
     3: cs:Connected st:Primary/Secondary ds:UpToDate/UpToDate C r---
        ns:7481948 nr:0 dw:2239068 dr:7581696 al:1718 bm:320 lo:0 pe:0 ua:0 ap:0
            resync: used:0/61 hits:0 misses:0 starving:0 dirty:0 changed:0
            act_log: used:0/127 hits:558049 misses:1726 starving:0 dirty:8 changed:1718
    

    Статистика

    Время первой команды журнала11:30:24 2010- 3-26
    Время последней команды журнала16:08:49 2010- 3-26
    Количество командных строк в журнале75
    Процент команд с ненулевым кодом завершения, %16.00
    Процент синтаксически неверно набранных команд, % 2.67
    Суммарное время работы с терминалом *, час 2.79
    Количество командных строк в единицу времени, команда/мин 0.45
    Частота использования команд
    ssh12|=============| 13.79%
    apt-cache12|=============| 13.79%
    exit7|========| 8.05%
    ls6|======| 6.90%
    cd4|====| 4.60%
    apt-get4|====| 4.60%
    cat4|====| 4.60%
    ping3|===| 3.45%
    pwd3|===| 3.45%
    cp3|===| 3.45%
    >3|===| 3.45%
    grep3|===| 3.45%
    man2|==| 2.30%
    remotedesk.app2|==| 2.30%
    ssh-keygen2|==| 2.30%
    xm2|==| 2.30%
    xtv2|==| 2.30%
    find2|==| 2.30%
    authorized.keys'2|==| 2.30%
    brctl1|=| 1.15%
    touch1|=| 1.15%
    screen1|=| 1.15%
    remotedesk1|=| 1.15%
    RemoteDesktop1|=| 1.15%
    tail1|=| 1.15%
    free1|=| 1.15%
    less1|=| 1.15%
    authorized_keys'1|=| 1.15%
    ____
    *) Интервалы неактивности длительностью 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$