/l3/users/eb/2009/root :1 :2 :3 :4 :5 :6 :7 :8 |
|
#cd /tmp/
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). |
#LANG=C
|
#rm install
|
#wget http://xgu.ru/lilalo/install
--2009-05-25 08:45:20-- http://xgu.ru/lilalo/install Resolving xgu.ru... 194.150.93.78 Connecting to xgu.ru|194.150.93.78|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 5285 (5.2K) [text/plain] Saving to: `install' 100%[=====================================================================================>] 5,285 --.-K/s in 0.008s 2009-05-25 08:45:20 (688 KB/s) - `install' saved [5285/5285] |
#vi install
--- /tmp/l3-saved-3118.5873.11626 2009-05-25 08:45:24.000000000 +0300 +++ install 2009-05-25 08:45:41.000000000 +0300 @@ -7,8 +7,8 @@ # # Set this variables before installation: -lilalo_user=${lilalo_user:-YOUR-L3BACKEND-USER} -lab=${lab:-SET-YOUR-FIRSTLAB-NAME-HERE} +lilalo_user=${lilalo_user:-eb} +lab=${lab:-2009} install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" |
#sh install
| Length: 25211 (25K) [application/x-gzip] | Saving to: `Term-VT102.tar.gz' | | 0K .......... .......... .... 100% 1.09M=0.02s | | 2009-05-25 08:45:43 (1.09 MB/s) - `Term-VT102.tar.gz' saved [25211/25211] | | --2009-05-25 08:45:43-- http://xgu.ru/lilalo//Text-Iconv.tar.gz | Resolving xgu.ru... 194.150.93.78 | Connecting to xgu.ru|194.150.93.78|:80... connected. ... If you use xgu.ru backend, your labs will be available at http://xgu.ru/l3//users/eb/2009/ Use commands $ l3cd /users/eb/MY-NEW-CONTEXT//USER $ l3pwd to change and to know your current context. For further information see http://xgu.ru/lilalo/ (in Russian). Thank you gor using LiLaLo. Happy Labbing! (don't forget to restart bash or relogin) |
#less ~/.lilalo/
|
#less ~/.lilalo/l3bashrc
|
#vi ~/.bashrc
|
#~
l3-agent . ~/.bashrc "~/.bash_profile" 2 lines, 21 characters |
#apt-get install locales
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). |
#pkill dpkg
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). |
#apt-get install locales
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). |
#dpkg --configure -a
Setting up locales (2.9-12) ... Generating locales (this might take a while)... Generation complete. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). |
#dpkg-reconfigure locales
Package configuration lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu Configuring locales tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x Locales are a framework to switch between multiple languages and allow users to use their language, country, x x characters, collation order, etc. x x x x Please choose which locales to generate. UTF-8 locales should be chosen by default, particularly for new installations. x x Other character sets may be useful for backwards compatibility with older systems and software. x x x x Locales to be generated: x x x ... x [ ] cs_CZ.UTF-8 UTF-8 a x x [ ] csb_PL UTF-8 a x x [ ] cy_GB ISO-8859-14 a x x [ ] cy_GB.UTF-8 UTF-8 a x x [ ] da_DK ISO-8859-1 x x x x x x <Ok> <Cancel> x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj |
#localedef -c -i en_US.UTF-8 -f UTF-8 en_US.UTF-8
cannot open locale definition file `en_US.UTF-8': No such file or directory |
#localedef -c -i en_US.UTF-8 -f UTF-8
Try `localedef --help' or `localedef --usage' for more information. |
#localedef -c -i en_US -f UTF-8 en_US.UTF-8
|
#apt-get install licq
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: update-inetd portmap Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libaudio2 libgpgme11 libgsm1 libltdl7 libmng1 libpth20 libqt3-mt libsamplerate0 libsndfile1 libsox-fmt-alsa libsox-fmt-base libsox1 libvorbisfile3 licq-plugin-qt sox ... Setting up libqt3-mt (3:3.3.8b-5+b1) ... Setting up libsamplerate0 (0.1.7-2) ... Setting up libsndfile1 (1.0.20-1) ... Setting up libsox1 (14.2.0-2) ... Setting up libsox-fmt-alsa (14.2.0-2) ... Setting up libvorbisfile3 (1.2.0.dfsg-4) ... Setting up libsox-fmt-base (14.2.0-2) ... Setting up sox (14.2.0-2) ... Setting up licq-plugin-qt (1.3.6-1) ... Setting up licq (1.3.6-1) ... |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.15.0 * 255.255.255.0 U 0 0 0 eth0 default 192.168.15.254 0.0.0.0 UG 0 0 0 eth0 |
#apt-get install pidgin
Reading package lists... Done Building dependency tree Reading state information... Done pidgin is already the newest version. The following packages were automatically installed and are no longer required: update-inetd portmap Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
#licq
09:55:27: [ERR] Unable to load plugin (qt4-gui): /usr/lib/licq/licq_qt4-gui.so: cannot open shared object file: No such file or directory. 09:55:27: [ERR] Unable to load plugin (kde4-gui): /usr/lib/licq/licq_kde4-gui.so: cannot open shared object file: No such file or directory. Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed /usr/share/licq/sounds/icq/Message.wav: Encoding: Unsigned PCM Channels: 1 @ 8-bit Samplerate: 22050Hz Replaygain: off Duration: 00:00:00.45 In:100% 00:00:00.45 [00:00:00.00] Out:21.7k [ | ] Hd:0.0 Clip:9 ... Done. /usr/share/licq/sounds/icq/Message.wav: Encoding: Unsigned PCM Channels: 1 @ 8-bit Samplerate: 22050Hz Replaygain: off Duration: 00:00:00.45 In:100% 00:00:00.45 [00:00:00.00] Out:21.7k [ | ] Hd:0.0 Clip:9 play effects: rate clipped 9 samples; decrease volume? Done. |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:07:e9:3c:2c:ba inet addr:192.168.15.3 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe3c:2cba/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4429 errors:0 dropped:0 overruns:0 frame:0 TX packets:2520 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:5188348 (4.9 MiB) TX bytes:242641 (236.9 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:07:e9:3c:2c:ba inet addr:192.168.15.3 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe3c:2cba/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4429 errors:0 dropped:0 overruns:0 frame:0 TX packets:2520 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:5188348 (4.9 MiB) TX bytes:242641 (236.9 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
#ip route
192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.3 default via 192.168.15.254 dev eth0 |
#ip route
192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.3 default via 192.168.15.254 dev eth0 |
#apt-get update
Get:1 http://10.0.35.1 sid Release.gpg [1032B] Get:2 http://10.0.35.1 sid Release [94.4kB] Ign http://10.0.35.1 sid/main Packages/DiffIndex Ign http://10.0.35.1 sid/main Packages Get:3 http://10.0.35.1 sid/main Packages [7759kB] Fetched 7854kB in 2s (2685kB/s) Reading package lists... Done |
#netstat -n
Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 192.168.15.10:38860 194.150.93.78:18030 TIME_WAIT tcp 0 0 192.168.15.10:38861 194.150.93.78:18030 TIME_WAIT Active UNIX domain sockets (w/o servers) Proto RefCnt Flags Type State I-Node Path unix 2 [ ] DGRAM 2949 @/org/kernel/udev/udevd unix 2 [ ] DGRAM 6010 @/org/freedesktop/hal/udev_event unix 4 [ ] DGRAM 5858 /dev/log unix 3 [ ] STREAM CONNECTED 14238 /var/run/dbus/system_bus_socket ... unix 3 [ ] STREAM CONNECTED 6110 unix 3 [ ] STREAM CONNECTED 6005 @/var/run/hald/dbus-99i6bg717N unix 3 [ ] STREAM CONNECTED 6004 unix 3 [ ] STREAM CONNECTED 5983 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 5982 unix 3 [ ] STREAM CONNECTED 5968 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 5967 unix 2 [ ] DGRAM 5938 unix 3 [ ] STREAM CONNECTED 5882 unix 3 [ ] STREAM CONNECTED 5881 |
#netstat -n
Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 192.168.15.10:38860 194.150.93.78:18030 TIME_WAIT tcp 0 0 192.168.15.10:38861 194.150.93.78:18030 TIME_WAIT Active UNIX domain sockets (w/o servers) Proto RefCnt Flags Type State I-Node Path unix 2 [ ] DGRAM 2949 @/org/kernel/udev/udevd unix 2 [ ] DGRAM 6010 @/org/freedesktop/hal/udev_event unix 4 [ ] DGRAM 5858 /dev/log unix 3 [ ] STREAM CONNECTED 14238 /var/run/dbus/system_bus_socket ... unix 3 [ ] STREAM CONNECTED 6110 unix 3 [ ] STREAM CONNECTED 6005 @/var/run/hald/dbus-99i6bg717N unix 3 [ ] STREAM CONNECTED 6004 unix 3 [ ] STREAM CONNECTED 5983 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 5982 unix 3 [ ] STREAM CONNECTED 5968 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 5967 unix 2 [ ] DGRAM 5938 unix 3 [ ] STREAM CONNECTED 5882 unix 3 [ ] STREAM CONNECTED 5881 |
#traceroute www.google.com
traceroute to www.google.com (74.125.87.99), 30 hops max, 60 byte packets 1 192.168.15.254 (192.168.15.254) 0.987 ms 1.165 ms 1.356 ms 2 10.0.35.1 (10.0.35.1) 0.191 ms 0.159 ms 0.144 ms 3 192.168.70.1 (192.168.70.1) 217.604 ms 223.676 ms 223.636 ms 4 ip.194.150.93.65.veer.net.ua (194.150.93.65) 223.569 ms 223.553 ms 223.555 ms 5 uplink-uaix.veer.net.ua (194.150.92.14) 223.571 ms 226.023 ms 225.985 ms 6 217.27.155.29.sitel.com.ua (217.27.155.29) 223.441 ms 225.820 ms 225.788 ms 7 topnet-10G-gw.ix.net.ua (195.35.65.34) 223.219 ms 222.544 ms 24.348 ms 8 ar3-ge-uk-topnet.google.com (88.81.240.166) 24.319 ms 30.269 ms 30.241 ms 9 * 209.85.241.54 (209.85.241.54) 30.165 ms 30.144 ms 10 72.14.239.14 (72.14.239.14) 51.551 ms 51.531 ms 51.505 ms 11 209.85.248.41 (209.85.248.41) 72.113 ms 72.039 ms * 12 72.14.238.105 (72.14.238.105) 92.971 ms 72.14.232.217 (72.14.232.217) 71.960 ms 72.14.232.221 (72.14.232.221) 92.901 ms 13 hb-in-f99.google.com (74.125.87.99) 381.366 ms 381.364 ms 381.122 ms |
#traceroute www.google.com
traceroute to www.google.com (74.125.87.99), 30 hops max, 60 byte packets 1 192.168.15.254 (192.168.15.254) 0.987 ms 1.165 ms 1.356 ms 2 10.0.35.1 (10.0.35.1) 0.191 ms 0.159 ms 0.144 ms 3 192.168.70.1 (192.168.70.1) 217.604 ms 223.676 ms 223.636 ms 4 ip.194.150.93.65.veer.net.ua (194.150.93.65) 223.569 ms 223.553 ms 223.555 ms 5 uplink-uaix.veer.net.ua (194.150.92.14) 223.571 ms 226.023 ms 225.985 ms 6 217.27.155.29.sitel.com.ua (217.27.155.29) 223.441 ms 225.820 ms 225.788 ms 7 topnet-10G-gw.ix.net.ua (195.35.65.34) 223.219 ms 222.544 ms 24.348 ms 8 ar3-ge-uk-topnet.google.com (88.81.240.166) 24.319 ms 30.269 ms 30.241 ms 9 * 209.85.241.54 (209.85.241.54) 30.165 ms 30.144 ms 10 72.14.239.14 (72.14.239.14) 51.551 ms 51.531 ms 51.505 ms 11 209.85.248.41 (209.85.248.41) 72.113 ms 72.039 ms * 12 72.14.238.105 (72.14.238.105) 92.971 ms 72.14.232.217 (72.14.232.217) 71.960 ms 72.14.232.221 (72.14.232.221) 92.901 ms 13 hb-in-f99.google.com (74.125.87.99) 381.366 ms 381.364 ms 381.122 ms |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.15.0 * 255.255.255.0 U 0 0 0 eth0 default 192.168.15.254 0.0.0.0 UG 0 0 0 eth0 |
#traceroute www.google.com
traceroute to www.google.com (74.125.87.104), 30 hops max, 60 byte packets 1 192.168.15.254 (192.168.15.254) 0.833 ms 1.021 ms 1.420 ms 2 10.0.35.1 (10.0.35.1) 0.388 ms 0.381 ms 0.373 ms 3 192.168.70.1 (192.168.70.1) 13.285 ms 13.277 ms 13.269 ms 4 ip.194.150.93.65.veer.net.ua (194.150.93.65) 13.261 ms 13.456 ms 13.448 ms 5 uplink-uaix.veer.net.ua (194.150.92.14) 21.685 ms 21.677 ms 21.668 ms 6 217.27.155.29.sitel.com.ua (217.27.155.29) 21.454 ms 21.112 ms 21.102 ms 7 topnet-10G-gw.ix.net.ua (195.35.65.34) 21.092 ms 20.492 ms 20.447 ms 8 ar3-ge-uk-topnet.google.com (88.81.240.166) 19.857 ms 16.092 ms 23.604 ms 9 209.85.241.54 (209.85.241.54) 23.800 ms 23.791 ms 23.723 ms 10 72.14.239.14 (72.14.239.14) 72.068 ms 253.017 ms 260.060 ms 11 209.85.248.41 (209.85.248.41) 260.051 ms 260.247 ms 258.412 ms 12 72.14.238.101 (72.14.238.101) 258.403 ms 258.395 ms * 13 hb-in-f104.google.com (74.125.87.104) 258.379 ms 258.371 ms 259.278 ms |
#w
10:17:08 up 1:53, 5 users, load average: 0.00, 0.00, 0.00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty1 - 10:02 7:04 0.01s 0.00s script -f -c ba user tty2 - 10:03 2:12 0.00s 0.00s -bash user tty7 :0 09:39 1:53m 9.06s 0.10s x-session-manag user pts/0 :0.0 09:50 0.00s 0.01s 0.01s bash user pts/1 :0.0 09:55 46.00s 0.00s 0.00s bash |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.15.254 0.0.0.0 UG 0 0 0 eth0 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.15.254 0.0.0.0 UG 0 0 0 eth0 |
#apt-get install pidgin
Reading package lists... Done Building dependency tree Reading state information... Done pidgin is already the newest version. The following packages were automatically installed and are no longer required: update-inetd portmap Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. |
#apt-cache search pidgin
beagle - indexing and search tool for your personal data beagle-backend-evolution - evolution data backend for beagle beagle-dev - library for accessing beagle (C# development files) gaim - transitional package to Pidgin gaim-data - transitional package to Pidgin gaim-dbg - transitional package to Pidgin gaim-extendedprefs - plugin for the instant messenger pidgin (transitional package) gaim-guifications - transitional package to pidgin-guifications gaim-hotkeys - Configurable global hotkeys for pidgin gaim-irchelper - IRC extensions for Pidgin (dummy transitional package) ... pidgin-nateon - Pidgin plugin for NateOn instant messaging service pidgin-nateon-dbg - debugging symbols of pidgin-nateon pidgin-otr - Off-the-Record Messaging plugin for pidgin pidgin-plugin-pack - 30 useful plugins for pidgin pidgin-privacy-please - A pidgin plugin for enhanced privacy pidgin-sipe - Pidgin plugin for connect to LCS/OCS pidgin-themes - Smiley themes collection for pidgin python-beagle - Python bindings for beagle recoll - Personal full text search package with a QT GUI telepathy-haze - A telepathy connection manager that use libpurple |
#apt-cache search konsole
konsole - X terminal emulator for KDE 4 konsolekalendar - KDE konsole personal organizer pyqonsole - X Window terminal emulation written in Python viewglob - A graphical display of directories referenced at the shell prompt yakuake - a Quake-style terminal emulator based on KDE Konsole technology |
#apt-cache search konsole
konsole - X terminal emulator for KDE 4 konsolekalendar - KDE konsole personal organizer pyqonsole - X Window terminal emulation written in Python viewglob - A graphical display of directories referenced at the shell prompt yakuake - a Quake-style terminal emulator based on KDE Konsole technology |
#apt-get install konsole
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: update-inetd portmap Use 'apt-get autoremove' to remove them. The following extra packages will be installed: exiv2 htdig kaboom kde-icons-oxygen kdebase-runtime kdebase-runtime-bin-kde4 kdebase-runtime-data kdebase-runtime-data-common kdelibs-bin kdelibs5 kdelibs5-data khelpcenter4 libasyncns0 libaudio2 libavcodec52 libavutil49 ... libstreamanalyzer0 libstreams0 libsvga1 libtalloc1 libwbclient0 libwmf0.2-7 libxcb-shape0 libxcb-shm0 libxcb-xv0 libxine1 libxine1-bin libxine1-console libxine1-ffmpeg libxine1-misc-plugins libxine1-plugins libxine1-x libxml2-utils libxslt1.1 mysql-common phonon-backend-gstreamer pmount qt4-qtconfig raptor-utils redland-utils xdg-utils 0 upgraded, 92 newly installed, 0 to remove and 0 not upgraded. Need to get 125MB of archives. After this operation, 255MB of additional disk space will be used. Do you want to continue [Y/n]? n Abort. |
#apt-get install konsole
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: update-inetd portmap Use 'apt-get autoremove' to remove them. The following extra packages will be installed: exiv2 htdig kaboom kde-icons-oxygen kdebase-runtime kdebase-runtime-bin-kde4 kdebase-runtime-data kdebase-runtime-data-common kdelibs-bin kdelibs5 kdelibs5-data khelpcenter4 libasyncns0 libaudio2 libavcodec52 libavutil49 ... libstreamanalyzer0 libstreams0 libsvga1 libtalloc1 libwbclient0 libwmf0.2-7 libxcb-shape0 libxcb-shm0 libxcb-xv0 libxine1 libxine1-bin libxine1-console libxine1-ffmpeg libxine1-misc-plugins libxine1-plugins libxine1-x libxml2-utils libxslt1.1 mysql-common phonon-backend-gstreamer pmount qt4-qtconfig raptor-utils redland-utils xdg-utils 0 upgraded, 92 newly installed, 0 to remove and 0 not upgraded. Need to get 125MB of archives. After this operation, 255MB of additional disk space will be used. Do you want to continue [Y/n]? n Abort. |
#ifconfig -
ifconfig: option `-' not recognised. ifconfig: `--help' gives usage information. |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1b:fc:7d:bc:f0 inet addr:192.168.15.12 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::21b:fcff:fe7d:bcf0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4416 errors:0 dropped:0 overruns:0 frame:0 TX packets:2778 errors:0 dropped:0 overruns:0 carrier:2 collisions:0 txqueuelen:1000 RX bytes:5330298 (5.0 MiB) TX bytes:262758 (256.5 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
#chvt 1
|
#who
root tty1 May 25 10:02 user tty2 May 25 10:03 user tty7 May 25 09:39 (:0) user pts/0 May 25 09:50 (:0.0) user pts/1 May 25 09:55 (:0.0) |
#apt-cache search console
multitail - view multiple logfiles windowed on console mysql-admin - GUI tool for intuitive MySQL administration mytop - top like query monitor for MySQL naim - A console client for AOL Instant Messenger and IRC nana - improved support for assertions and logging in C/C++ nap - napster console client ncc - C source code analyzer ndoc-console - Code documentation generator for .NET nethack-common - Common files for Nethack dungeon crawl game nethack-console - Text-based overhead view D&D-style adventure game ... yamdi - a utility for adding metadata to flash video files yaret - A console tool to turn CDs into encoded music yasr - General-purpose console screen reader yeahconsole - drop-down X terminal emulator wrapper yiyantang - Terminal-based Chinese automatic encoding converter ysm - Powerful console ICQ client zhcon - A Fast Console CJK System Using FrameBuffer zivot - the game of life, simple console version zomg - console-based last.fm submission and radio client zsnes - Emulator of the Super Nintendo Entertainment System (TM) |
#apt-cache search console
multitail - view multiple logfiles windowed on console mysql-admin - GUI tool for intuitive MySQL administration mytop - top like query monitor for MySQL naim - A console client for AOL Instant Messenger and IRC nana - improved support for assertions and logging in C/C++ nap - napster console client ncc - C source code analyzer ndoc-console - Code documentation generator for .NET nethack-common - Common files for Nethack dungeon crawl game nethack-console - Text-based overhead view D&D-style adventure game ... yamdi - a utility for adding metadata to flash video files yaret - A console tool to turn CDs into encoded music yasr - General-purpose console screen reader yeahconsole - drop-down X terminal emulator wrapper yiyantang - Terminal-based Chinese automatic encoding converter ysm - Powerful console ICQ client zhcon - A Fast Console CJK System Using FrameBuffer zivot - the game of life, simple console version zomg - console-based last.fm submission and radio client zsnes - Emulator of the Super Nintendo Entertainment System (TM) |
#chvt 222
chvt: VT_ACTIVATE: No such device or address |
#openvt 222
|
#chvt 222
chvt: VT_ACTIVATE: No such device or address |
#apt-cache search putty
pterm - PuTTY terminal emulator putty - Telnet/SSH client for X putty-tools - command-line tools for SSH, SCP, and SFTP |
#apt-cache search putty
pterm - PuTTY terminal emulator putty - Telnet/SSH client for X putty-tools - command-line tools for SSH, SCP, and SFTP |
#apt-get install pterm
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: update-inetd portmap Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: pterm 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 182kB of archives. After this operation, 532kB of additional disk space will be used. Get:1 http://10.0.35.1 sid/main pterm 0.60+2009-04-05-1 [182kB] Fetched 182kB in 1s (93.9kB/s) Selecting previously deselected package pterm. (Reading database ... 41473 files and directories currently installed.) Unpacking pterm (from .../pterm_0.60+2009-04-05-1_i386.deb) ... Processing triggers for man-db ... Processing triggers for desktop-file-utils ... Setting up pterm (0.60+2009-04-05-1) ... |
#apt-get install pterm
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: update-inetd portmap Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: pterm 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 182kB of archives. After this operation, 532kB of additional disk space will be used. Get:1 http://10.0.35.1 sid/main pterm 0.60+2009-04-05-1 [182kB] Fetched 182kB in 1s (93.9kB/s) Selecting previously deselected package pterm. (Reading database ... 41473 files and directories currently installed.) Unpacking pterm (from .../pterm_0.60+2009-04-05-1_i386.deb) ... Processing triggers for man-db ... Processing triggers for desktop-file-utils ... Setting up pterm (0.60+2009-04-05-1) ... |
#w
10:17:19 up 1:54, 4 users, load average: 0.06, 0.02, 0.00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT user tty1 - 10:05 3.00s 0.01s 0.01s -bash root tty2 - 10:06 0.00s 0.00s 0.00s script -f -c ba user tty7 :0 09:35 1:54m 6.15s 0.16s x-session-manag user pts/0 :0.0 09:56 1:18 0.00s 0.00s bash |
#apt-get install mc
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: update-inetd portmap Use 'apt-get autoremove' to remove them. Suggested packages: zip unzip links w3m lynx arj xpdf dbview odt2txt The following NEW packages will be installed: mc 0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded. Need to get 2152kB of archives. After this operation, 6435kB of additional disk space will be used. Get:1 http://10.0.35.1 sid/main mc 2:4.6.2-2 [2152kB] Fetched 2152kB in 8s (241kB/s) Selecting previously deselected package mc. (Reading database ... 41473 files and directories currently installed.) Unpacking mc (from .../mc_2%3a4.6.2-2_i386.deb) ... Processing triggers for man-db ... Setting up mc (2:4.6.2-2) ... update-alternatives: using /usr/bin/mcview-debian to provide /usr/bin/view (view) in auto mode. |
#id
uid=0(root) gid=0(root) groups=0(root) |
#hostname
linux14 |
#tty
/dev/tty2 |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:22:15:c8:4e:d2 inet addr:192.168.15.15 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::222:15ff:fec8:4ed2/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:12482 errors:0 dropped:0 overruns:0 frame:0 TX packets:7711 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:16557953 (15.7 MiB) TX bytes:653047 (637.7 KiB) Interrupt:28 Base address:0x4000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
#tty
/dev/pts/3 |
#df
Filesystem 1K-blocks Used Available Use% Mounted on tmpfs 1800672 0 1800672 0% /lib/init/rw udev 10240 104 10136 2% /dev tmpfs 1800672 4 1800668 1% /dev/shm rootfs 19222656 1313932 16932168 8% / |
#ps -t
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html PID TTY STAT TIME COMMAND 6578 pts/4 Ss 0:00 bash 11704 pts/4 R+ 0:00 ps -t |
#ps -h
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html 2421 tty7 Ss+ 0:16 /usr/bin/X :0 -audit 0 -auth /var/lib/gdm/:0.Xauth -n 2452 tty2 Ss+ 0:00 /bin/login -- 2453 tty3 Ss+ 0:00 /sbin/getty 38400 tty3 2454 tty4 Ss+ 0:00 /sbin/getty 38400 tty4 2455 tty5 Ss+ 0:00 /sbin/getty 38400 tty5 2456 tty6 Ss+ 0:00 /sbin/getty 38400 tty6 3797 pts/1 Ss+ 0:00 /bin/su root -c /usr/lib/libgksu/gksu-run-helper "/us 3806 pts/1 S+ 0:00 /usr/lib/libgksu/gksu-run-helper /usr/bin/x-terminal- 3819 pts/1 S+ 0:00 xterm 3830 pts/2 Ss+ 0:00 script -f -c bash -q /root/.lilalo//13922794616058326 3906 pts/2 S+ 0:00 script -f -c bash -q /root/.lilalo//13922794616058326 3907 pts/3 Ss+ 0:00 bash 5249 tty1 Ss 0:00 /bin/login -- 6507 tty2 S+ 0:00 script -f -c bash -q /root/.lilalo//26720249398702282 6577 tty2 S+ 0:00 script -f -c bash -q /root/.lilalo//26720249398702282 6578 pts/4 Ss 0:00 bash 11712 pts/4 R+ 0:00 ps -h |
#w
10:17:10 up 1:53, 5 users, load average: 0.00, 0.02, 0.00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT user tty1 - 10:07 42.00s 0.00s 0.00s -bash root tty2 - 10:09 0.00s 0.00s 0.00s script -f -c ba user tty7 :0 09:40 1:53m 17.01s 0.11s x-session-manag user pts/0 :0.0 09:45 1:15 0.00s 0.00s bash root pts/2 :0.0 09:54 1:07 0.00s 0.00s script -f -c ba |
#w
10:16:49 up 1:53, 4 users, load average: 0.00, 0.00, 0.00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT user tty1 - 10:07 1:18 0.01s 0.01s -bash user tty7 :0 09:35 1:53m 14.70s 0.15s x-session-manager user pts/0 :0.0 09:55 16:33 0.00s 0.00s bash root pts/2 :0.0 10:02 0.00s 0.00s 0.00s script -f -c bash -q /root/.lilalo//3199521764433729242-1243234941.script |
#df -m
Filesystem 1M-blocks Used Available Use% Mounted on tmpfs 1759 0 1759 0% /lib/init/rw udev 10 1 10 2% /dev tmpfs 1759 1 1759 1% /dev/shm rootfs 18773 1284 16536 8% / |
#w
10:16:23 up 1:53, 5 users, load average: 0.00, 0.01, 0.01 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty1 - 10:04 12:16 0.00s 0.00s script -f -c ba user tty2 - 10:02 3:13 0.00s 0.00s -bash user tty7 :0 09:35 1:53m 12.85s 0.11s x-session-manag user pts/0 :0.0 09:59 31.00s 0.00s 0.00s bash root pts/2 :0.0 10:01 0.00s 0.00s 0.00s script -f -c ba |
#who
root tty1 May 25 10:04 user tty2 May 25 10:02 user tty7 May 25 09:35 (:0) user pts/0 May 25 09:59 (:0.0) root pts/2 May 25 10:01 (:0.0) |
#w
10:16:47 up 1:53, 3 users, load average: 0.19, 0.05, 0.01 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT user tty1 - 10:07 60.00s 0.00s 0.00s mc user tty7 :0 09:39 1:53m 9.91s 0.11s x-session-manag root pts/1 :0.0 09:55 0.00s 0.00s 0.00s script -f -c ba |
linux3
Время первой команды журнала | 08:36:06 2009- 5-25 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:16:32 2009- 5-25 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 15.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.71 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 2.35 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008