/l3/users/31-08-2009/nt-fbsdnet/fbsd1.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 |
|
#vim .bash_profile
--- /tmp/l3-saved-1722.24127.15676 2008-03-28 16:50:25.000000000 +0000 +++ .bash_profile 2008-03-28 16:50:36.000000000 +0000 @@ -1,2 +1,2 @@ l3-agent - +. .bashrc |
#l3-a
bash: l3-a: command not found |
#sh install
| x Term-VT102-0.82/ | x Term-VT102-0.82/t/ | x Term-VT102-0.82/t/04-cursor.t | x Term-VT102-0.82/t/08-options.t | x Term-VT102-0.82/t/05-scrolling.t | x Term-VT102-0.82/t/11-decscrc.t | x Term-VT102-0.82/t/10-decaln.t | x Term-VT102-0.82/t/03-text.t | x Term-VT102-0.82/t/02-setsize.t | x Term-VT102-0.82/t/01-load.t ... If you use xgu.ru backend, your labs will be available at http://xgu.ru/l3//users/Virtual/fbsd-net/fbsdvm.unix.nt Use commands $ l3cd /users/Virtual/MY-NEW-CONTEXT/fbsdvm.unix.nt/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) |
#chmod a+x /usr/local/bin/l3-agent
|
#su - user
Removing stale pidfile |
$ps aux
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 10 94.2 0.0 0 8 ?? RL 4:37PM 15:05.89 [idle: cpu0] root 2263 0.8 1.5 8860 7644 ?? Ss 4:52PM 0:00.56 l3-agent (perl5.8 user 2334 0.5 0.2 1348 948 p0 S+ 4:53PM 0:00.03 script -t 0 -q /h root 21 0.1 0.0 0 8 ?? WL 4:37PM 0:05.01 [irq14: ata0] root 0 0.0 0.0 0 0 ?? WLs 4:37PM 0:00.00 [swapper] root 1 0.0 0.1 768 368 ?? SLs 4:37PM 0:00.02 /sbin/init -- root 2 0.0 0.0 0 8 ?? DL 4:37PM 0:00.06 [g_event] root 3 0.0 0.0 0 8 ?? DL 4:37PM 0:04.48 [g_up] root 4 0.0 0.0 0 8 ?? DL 4:37PM 0:06.13 [g_down] ... root 1039 0.0 0.2 1352 948 v3 Is+ 4:37PM 0:00.00 /usr/libexec/gett root 1040 0.0 0.2 1352 948 v4 Is+ 4:37PM 0:00.00 /usr/libexec/gett root 1041 0.0 0.2 1352 948 v5 Is+ 4:37PM 0:00.00 /usr/libexec/gett root 1042 0.0 0.2 1352 948 v6 Is+ 4:37PM 0:00.00 /usr/libexec/gett root 1043 0.0 0.2 1352 948 v7 Is+ 4:37PM 0:00.00 /usr/libexec/gett root 294 0.0 0.2 1472 1072 con- I+ 4:37PM 0:00.01 dhclient: re0 [pr root 2300 0.0 0.4 3288 2104 p0 Ss 4:52PM 0:00.02 /usr/local/bin/ba root 2333 0.0 0.3 1804 1420 p0 S 4:53PM 0:00.01 su - user user 2377 0.0 0.4 3280 2100 p1 Ss 4:53PM 0:00.02 /usr/local/bin/ba user 2419 0.0 0.2 1480 968 p1 R+ 4:53PM 0:00.00 ps aux |
$vim .bash_profile
--- /tmp/l3-saved-2300.774.24712 2008-03-28 16:54:09.000000000 +0000 +++ .bash_profile 2008-03-28 16:54:14.000000000 +0000 @@ -1,2 +1,2 @@ -l3-agent -. .bashrc +#l3-agent +#. .bashrc |
$exit
exit |
#vim .bash_profile
--- /tmp/l3-saved-2300.22526.1980 2008-03-28 16:54:18.000000000 +0000 +++ .bashrc 2008-03-28 16:54:21.000000000 +0000 @@ -1 +1 @@ -. /root/.lilalo/l3bashrc && _l3_start +#. /root/.lilalo/l3bashrc && _l3_start |
#vim .bashrc
|
#ssh-keygen
Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: 9c:77:50:23:95:07:71:50:6e:69:dc:f8:d6:50:f0:64 root@fbsdvm.unix.nt |
#vim .ssh/known_hosts
--- /tmp/l3-saved-861.22191.25972 2009-07-24 16:48:00.000000000 +0300 +++ .ssh/known_hosts 2009-07-24 16:48:10.000000000 +0300 @@ -1,2 +0,0 @@ -192.168.16.25 ssh-dss AAAAB3NzaC1kc3MAAACBAMvluGislt9X86siUhBLHsthHHucTGh67sbo8z92cxH+SuL/yYGnueRIXVuNq0qLOgy6eDk470OMb8Lyt2EdgEXQbRZTpAxMoYktnbC2mNL0jcR3Koq8sT7CH2HdFaqZm+1FS69UAkWDve0YtDg3DFO0Aag7YELZ4SQc4jcG1mThAAAAFQCoYSacR13zYzDRREU5pcD+aswCdQAAAIBEl6voVGHHAyf+bXzvw8ASHKyR7DaIl1qtDRylN7mkG8r01wLycJ/1BJriHGrbkz6Lu7HFSGnypIWbxMCuNRRjhcK/U3V1Bkry72Gh7kFjtpmx5P3tr/Ycc7FVDb7ky6XXGFagyGHSpCDx1qmcQ31yCqq/TcwxHj0fPUd3Q6nj2AAAAIA1JxCelBJtJDW882oQtwjeH6PMqGjLcr6bBMKJaH4mzQ6o9NtamwkEW29NckqaltB/RIHpd1ZmKDpI8WPMXUwerDv6e8FyBWkBv2L2Gz27tCehSWPmJO8uQUVake0SVgd1yMG067M7XhOuSHWDjwXzrvHxg80HC9EzJkXncFfr4A== -77.121.198.169 ssh-dss AAAAB3NzaC1kc3MAAACBAN6EKhjW0xHZY9g5SZWd6z8gLWZ6uB2P0cwAd0viifk5E70hgsW+6vFVXKnXGpsvv2SX5E23FgMXFCYIeTHxBUBmokKQzzy/egqQlqDGu9Y/Ik4Z929yiZu6cSPZOf3DTox+CyJDMJ4wwmdBNZl6lP9eFjvVzjaB8GRRXD2Ka+C9AAAAFQDM84s8+sRPwhOo+4/EBB7bh9JMpQAAAIBvWanaa+1GjQFAQIYcLyZz0e1arwylgQ7eEketNjUZxvQrcQjHvY+vmV1LHke/nXUGFz3sWy9dmgqUr+oocMbBaUGF4zo6gOfKzwnUyArYUCjBlrLXrJ1oJ6jbNsE7dr2vRSOLzGSA2uKSRXGvPSfbw14pRnHWCA9UbrX+oFyRNQAAAIEAw2xHrDyzh4MzCGXnanyStMHmITNH1S8Wz+q4gSrWyDVMocZOH5tbOdhuBJRVj1rsP6HuSsguGDpEqxcqLyLdZiGfofDVxM+9IGFIba23glHPh3Gih0aVo7t6JnDymgJ7pIGu4BeM8ZiKHOayjGcGqgZmHce6iB+jXbctPqa40Fk= |
#ssh 192.168.16.254
Connection to 192.168.16.254 closed. |
#scp .ssh/id_rsa.pub 192.168.16.254:/tmp
root@192.168.16.254's password: id_rsa.pub 100% 401 0.4KB/s 00:00 |
#shutdown -p now
Shutdown NOW! shutdown: [pid 945] |
#shutdown -p now
Shutdown NOW! shutdown: [pid 945] |
#ping nt.ua
PING nt.ua (212.40.34.157): 56 data bytes 64 bytes from 212.40.34.157: icmp_seq=0 ttl=59 time=5.938 ms ^C --- nt.ua ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 5.938/5.938/5.938/0.000 ms |
#ping nt.ua
PING nt.ua (212.40.34.157): 56 data bytes 64 bytes from 212.40.34.157: icmp_seq=0 ttl=59 time=5.938 ms ^C --- nt.ua ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 5.938/5.938/5.938/0.000 ms |
#cd /usr/port
bash: cd: /usr/port: No such file or directory |
#screen -x
|
#echo $LANG
ru_RU.KOI8-R õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#echo $LANG
ru_RU.KOI8-R õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#cd /usr/ports/
|
#make search name=screen
Port: p5-Term-ANSIScreen-1.42 Path: /usr/ports/devel/p5-Term-ANSIScreen Info: Term::ANSIColor clone with screen mode support Maint: ports@FreeBSD.org B-deps: perl-5.8.8_1 R-deps: perl-5.8.8_1 WWW: Port: p5-Term-Screen-1.03 Path: /usr/ports/devel/p5-Term-Screen Info: Basic screen + input class ... Path: /usr/ports/x11-toolkits/p5-Tk-Splashscreen Info: Tk::Splashscreen, display a Splashscreen during program initialization Maint: tobez@FreeBSD.org B-deps: compositeproto-0.4 damageproto-1.1.0_2 expat-2.0.0_1 fixesproto-4.0 fontcacheproto-0.1.2 fontconfig-2.4.2_2,1 fontsproto-2.0.2 freetype2-2.3.5 inputproto-1.4.2.1 kbproto-1.0.3 libFS-1.0.0 libICE-1.0.4,1 libSM-1.0.3,1 libX11-1.1.3,1 libXScrnSaver-1.1.2 libXTrap-1.0.0 libXau-1.0.3_2 libXaw-1.0.4,1 libXcomposite-0.4.0,1 libXcursor-1.1.9 libXdamage-1.1.1 libXdmcp-1.0.2 libXevie-1.0.2 libXext-1 R-deps: compositeproto-0.4 damageproto-1.1.0_2 expat-2.0.0_1 fixesproto-4.0 fontcacheproto-0.1.2 fontconfig-2.4.2_2,1 fontsproto-2.0.2 freetype2-2.3.5 inputproto-1.4.2.1 kbproto-1.0.3 libFS-1.0.0 libICE-1.0.4,1 libSM-1.0.3,1 libX11-1.1.3,1 libXScrnSaver-1.1.2 libXTrap-1.0.0 libXau-1.0.3_2 libXaw-1.0.4,1 libXcomposite-0.4.0,1 libXcursor-1.1.9 libXdamage-1.1.1 libXdmcp-1.0.2 libXevie-1.0.2 libXext-1 WWW: http://search.cpan.org/dist/Tk-Splashscreen/ Port: misc/screen Moved: sysutils/screen Date: 2005-11-05 Reason: new category |
#make search name=screen
Port: p5-Term-ANSIScreen-1.42 Path: /usr/ports/devel/p5-Term-ANSIScreen Info: Term::ANSIColor clone with screen mode support Maint: ports@FreeBSD.org B-deps: perl-5.8.8_1 R-deps: perl-5.8.8_1 WWW: Port: p5-Term-Screen-1.03 Path: /usr/ports/devel/p5-Term-Screen Info: Basic screen + input class ... Path: /usr/ports/x11-toolkits/p5-Tk-Splashscreen Info: Tk::Splashscreen, display a Splashscreen during program initialization Maint: tobez@FreeBSD.org B-deps: compositeproto-0.4 damageproto-1.1.0_2 expat-2.0.0_1 fixesproto-4.0 fontcacheproto-0.1.2 fontconfig-2.4.2_2,1 fontsproto-2.0.2 freetype2-2.3.5 inputproto-1.4.2.1 kbproto-1.0.3 libFS-1.0.0 libICE-1.0.4,1 libSM-1.0.3,1 libX11-1.1.3,1 libXScrnSaver-1.1.2 libXTrap-1.0.0 libXau-1.0.3_2 libXaw-1.0.4,1 libXcomposite-0.4.0,1 libXcursor-1.1.9 libXdamage-1.1.1 libXdmcp-1.0.2 libXevie-1.0.2 libXext-1 R-deps: compositeproto-0.4 damageproto-1.1.0_2 expat-2.0.0_1 fixesproto-4.0 fontcacheproto-0.1.2 fontconfig-2.4.2_2,1 fontsproto-2.0.2 freetype2-2.3.5 inputproto-1.4.2.1 kbproto-1.0.3 libFS-1.0.0 libICE-1.0.4,1 libSM-1.0.3,1 libX11-1.1.3,1 libXScrnSaver-1.1.2 libXTrap-1.0.0 libXau-1.0.3_2 libXaw-1.0.4,1 libXcomposite-0.4.0,1 libXcursor-1.1.9 libXdamage-1.1.1 libXdmcp-1.0.2 libXevie-1.0.2 libXext-1 WWW: http://search.cpan.org/dist/Tk-Splashscreen/ Port: misc/screen Moved: sysutils/screen Date: 2005-11-05 Reason: new category |
#make search name=screen | less
|
#make search name=screen | less
|
#itmaps-1.0.1 xdpyinfo-1.0.2 xextproto-7.0.2 xf86dgaproto-2.0.3 xf86miscproto-0.9
|
#itmaps-1.0.1 xdpyinfo-1.0.2 xextproto-7.0.2 xf86dgaproto-2.0.3 xf86miscproto-0.9
|
#make install
increased privileges. /usr/local/bin/screen If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://www.gnu.org/software/screen/ |
#make install
increased privileges. /usr/local/bin/screen If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://www.gnu.org/software/screen/ |
#screen\
[root@fbsd1:screen]# |
#screen\
[root@fbsd1:screen]# |
#screen -x
|
#l3pwd
/users/31-08-2009/nt-fbsdnet/fbsd1.net.nt/root |
#l3pwd
/users/31-08-2009/nt-fbsdnet/fbsd1.net.nt/root |
#cat /usr/local/lib/X11/xdm/Xsession
#!/bin/sh # # $XdotOrg: $ # $Xorg: Xsession,v 1.4 2000/08/17 19:54:17 cpqbld Exp $ # $XFree86: xc/programs/xdm/config/Xsession,v 1.2 1998/01/11 03:48:32 dawes Exp $ # redirect errors to a file in user's home directory if we can errfile="$HOME/.xsession-errors" if ( umask 077 && cp /dev/null "$errfile" 2> /dev/null ) then exec > "$errfile" 2>&1 ... else exec /bin/sh "$startup" fi else if [ -r "$resources" ]; then /usr/local/bin/xrdb -load "$resources" fi exec /usr/local/bin/xsm fi õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#cat /usr/local/lib/X11/xdm/Xsession
#!/bin/sh # # $XdotOrg: $ # $Xorg: Xsession,v 1.4 2000/08/17 19:54:17 cpqbld Exp $ # $XFree86: xc/programs/xdm/config/Xsession,v 1.2 1998/01/11 03:48:32 dawes Exp $ # redirect errors to a file in user's home directory if we can errfile="$HOME/.xsession-errors" if ( umask 077 && cp /dev/null "$errfile" 2> /dev/null ) then exec > "$errfile" 2>&1 ... else exec /bin/sh "$startup" fi else if [ -r "$resources" ]; then /usr/local/bin/xrdb -load "$resources" fi exec /usr/local/bin/xsm fi õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#cat /usr/local/lib/X11/xdm/Xsession
#!/bin/sh # # $XdotOrg: $ # $Xorg: Xsession,v 1.4 2000/08/17 19:54:17 cpqbld Exp $ # $XFree86: xc/programs/xdm/config/Xsession,v 1.2 1998/01/11 03:48:32 dawes Exp $ # redirect errors to a file in user's home directory if we can errfile="$HOME/.xsession-errors" if ( umask 077 && cp /dev/null "$errfile" 2> /dev/null ) then exec > "$errfile" 2>&1 ... else exec /bin/sh "$startup" fi else if [ -r "$resources" ]; then /usr/local/bin/xrdb -load "$resources" fi exec /usr/local/bin/xsm fi õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#ssh 192.168.16.22
The authenticity of host '192.168.16.22 (192.168.16.22)' can't be established. DSA key fingerprint is 13:3f:fb:2a:53:62:8e:f8:0e:c7:3a:c9:10:99:b6:25. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.16.22' (DSA) to the list of known hosts. Password: Last login: Mon Aug 31 18:28:29 2009 from 192.168.16.1 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#ssh 192.168.16.22
The authenticity of host '192.168.16.22 (192.168.16.22)' can't be established. DSA key fingerprint is 13:3f:fb:2a:53:62:8e:f8:0e:c7:3a:c9:10:99:b6:25. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.16.22' (DSA) to the list of known hosts. Password: Last login: Mon Aug 31 18:28:29 2009 from 192.168.16.1 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#ssh 192.168.16.22
The authenticity of host '192.168.16.22 (192.168.16.22)' can't be established. DSA key fingerprint is 13:3f:fb:2a:53:62:8e:f8:0e:c7:3a:c9:10:99:b6:25. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.16.22' (DSA) to the list of known hosts. Password: Last login: Mon Aug 31 18:28:29 2009 from 192.168.16.1 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#ssh 192.168.16.22
The authenticity of host '192.168.16.22 (192.168.16.22)' can't be established. DSA key fingerprint is 13:3f:fb:2a:53:62:8e:f8:0e:c7:3a:c9:10:99:b6:25. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.16.22' (DSA) to the list of known hosts. Password: Last login: Mon Aug 31 18:28:29 2009 from 192.168.16.1 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#ssh 192.168.16.22
The authenticity of host '192.168.16.22 (192.168.16.22)' can't be established. DSA key fingerprint is 13:3f:fb:2a:53:62:8e:f8:0e:c7:3a:c9:10:99:b6:25. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.16.22' (DSA) to the list of known hosts. Password: Last login: Mon Aug 31 18:28:29 2009 from 192.168.16.1 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#cat /usr/local/lib/X11/xdm/Xse
Xservers Xsession Xsetup_0 |
#cat /usr/local/lib/X11/xdm/Xsession
#!/bin/sh # # $XdotOrg: $ # $Xorg: Xsession,v 1.4 2000/08/17 19:54:17 cpqbld Exp $ # $XFree86: xc/programs/xdm/config/Xsession,v 1.2 1998/01/11 03:48:32 dawes Exp $ # redirect errors to a file in user's home directory if we can errfile="$HOME/.xsession-errors" if ( umask 077 && cp /dev/null "$errfile" 2> /dev/null ) then exec > "$errfile" 2>&1 ... # else # exec /bin/sh "$startup" # fi #else # if [ -r "$resources" ]; then # /usr/local/bin/xrdb -load "$resources" # fi # exec /usr/local/bin/xsm #fi xfce4-session |
#cat /usr/local/lib/X11/xdm/Xse
Xservers Xsession Xsetup_0 |
#cat /usr/local/lib/X11/xdm/Xsession
#!/bin/sh # # $XdotOrg: $ # $Xorg: Xsession,v 1.4 2000/08/17 19:54:17 cpqbld Exp $ # $XFree86: xc/programs/xdm/config/Xsession,v 1.2 1998/01/11 03:48:32 dawes Exp $ # redirect errors to a file in user's home directory if we can errfile="$HOME/.xsession-errors" if ( umask 077 && cp /dev/null "$errfile" 2> /dev/null ) then exec > "$errfile" 2>&1 ... # else # exec /bin/sh "$startup" # fi #else # if [ -r "$resources" ]; then # /usr/local/bin/xrdb -load "$resources" # fi # exec /usr/local/bin/xsm #fi xfce4-session |
#cat /usr/local/lib/X11/xdm/Xse
Xservers Xsession Xsetup_0 |
#cat /usr/local/lib/X11/xdm/Xsession
#!/bin/sh # # $XdotOrg: $ # $Xorg: Xsession,v 1.4 2000/08/17 19:54:17 cpqbld Exp $ # $XFree86: xc/programs/xdm/config/Xsession,v 1.2 1998/01/11 03:48:32 dawes Exp $ # redirect errors to a file in user's home directory if we can errfile="$HOME/.xsession-errors" if ( umask 077 && cp /dev/null "$errfile" 2> /dev/null ) then exec > "$errfile" 2>&1 ... # else # exec /bin/sh "$startup" # fi #else # if [ -r "$resources" ]; then # /usr/local/bin/xrdb -load "$resources" # fi # exec /usr/local/bin/xsm #fi xfce4-session |
#cat /usr/local/lib/X11/xdm/Xse
Xservers Xsession Xsetup_0 |
#cat /usr/local/lib/X11/xdm/Xsession
#!/bin/sh # # $XdotOrg: $ # $Xorg: Xsession,v 1.4 2000/08/17 19:54:17 cpqbld Exp $ # $XFree86: xc/programs/xdm/config/Xsession,v 1.2 1998/01/11 03:48:32 dawes Exp $ # redirect errors to a file in user's home directory if we can errfile="$HOME/.xsession-errors" if ( umask 077 && cp /dev/null "$errfile" 2> /dev/null ) then exec > "$errfile" 2>&1 ... # else # exec /bin/sh "$startup" # fi #else # if [ -r "$resources" ]; then # /usr/local/bin/xrdb -load "$resources" # fi # exec /usr/local/bin/xsm #fi xfce4-session |
#cat /usr/local/lib/X11/xdm/Xse
Xservers Xsession Xsetup_0 |
#cat /usr/local/lib/X11/xdm/Xsession
#!/bin/sh # # $XdotOrg: $ # $Xorg: Xsession,v 1.4 2000/08/17 19:54:17 cpqbld Exp $ # $XFree86: xc/programs/xdm/config/Xsession,v 1.2 1998/01/11 03:48:32 dawes Exp $ # redirect errors to a file in user's home directory if we can errfile="$HOME/.xsession-errors" if ( umask 077 && cp /dev/null "$errfile" 2> /dev/null ) then exec > "$errfile" 2>&1 ... # else # exec /bin/sh "$startup" # fi #else # if [ -r "$resources" ]; then # /usr/local/bin/xrdb -load "$resources" # fi # exec /usr/local/bin/xsm #fi xfce4-session |
#cat /usr/local/lib/X11/xdm/Xse
Xservers Xsession Xsetup_0 |
#cat /usr/local/lib/X11/xdm/Xsession
#!/bin/sh # # $XdotOrg: $ # $Xorg: Xsession,v 1.4 2000/08/17 19:54:17 cpqbld Exp $ # $XFree86: xc/programs/xdm/config/Xsession,v 1.2 1998/01/11 03:48:32 dawes Exp $ # redirect errors to a file in user's home directory if we can errfile="$HOME/.xsession-errors" if ( umask 077 && cp /dev/null "$errfile" 2> /dev/null ) then exec > "$errfile" 2>&1 ... # else # exec /bin/sh "$startup" # fi #else # if [ -r "$resources" ]; then # /usr/local/bin/xrdb -load "$resources" # fi # exec /usr/local/bin/xsm #fi xfce4-session |
#cat /usr/local/lib/X11/xdm/Xse
Xservers Xsession Xsetup_0 |
#cat /usr/local/lib/X11/xdm/Xsession
#!/bin/sh # # $XdotOrg: $ # $Xorg: Xsession,v 1.4 2000/08/17 19:54:17 cpqbld Exp $ # $XFree86: xc/programs/xdm/config/Xsession,v 1.2 1998/01/11 03:48:32 dawes Exp $ # redirect errors to a file in user's home directory if we can errfile="$HOME/.xsession-errors" if ( umask 077 && cp /dev/null "$errfile" 2> /dev/null ) then exec > "$errfile" 2>&1 ... # else # exec /bin/sh "$startup" # fi #else # if [ -r "$resources" ]; then # /usr/local/bin/xrdb -load "$resources" # fi # exec /usr/local/bin/xsm #fi xfce4-session |
#cat /usr/local/lib/X11/xdm/Xse
Xservers Xsession Xsetup_0 |
#cat /usr/local/lib/X11/xdm/Xsession
#!/bin/sh # # $XdotOrg: $ # $Xorg: Xsession,v 1.4 2000/08/17 19:54:17 cpqbld Exp $ # $XFree86: xc/programs/xdm/config/Xsession,v 1.2 1998/01/11 03:48:32 dawes Exp $ # redirect errors to a file in user's home directory if we can errfile="$HOME/.xsession-errors" if ( umask 077 && cp /dev/null "$errfile" 2> /dev/null ) then exec > "$errfile" 2>&1 ... # else # exec /bin/sh "$startup" # fi #else # if [ -r "$resources" ]; then # /usr/local/bin/xrdb -load "$resources" # fi # exec /usr/local/bin/xsm #fi xfce4-session |
#cat /usr/local/lib/X11/xdm/Xse
Xservers Xsession Xsetup_0 |
#cat /usr/local/lib/X11/xdm/Xsession
#!/bin/sh # # $XdotOrg: $ # $Xorg: Xsession,v 1.4 2000/08/17 19:54:17 cpqbld Exp $ # $XFree86: xc/programs/xdm/config/Xsession,v 1.2 1998/01/11 03:48:32 dawes Exp $ # redirect errors to a file in user's home directory if we can errfile="$HOME/.xsession-errors" if ( umask 077 && cp /dev/null "$errfile" 2> /dev/null ) then exec > "$errfile" 2>&1 ... # else # exec /bin/sh "$startup" # fi #else # if [ -r "$resources" ]; then # /usr/local/bin/xrdb -load "$resources" # fi # exec /usr/local/bin/xsm #fi xfce4-session |
#ps aux | grep l3
root 3147 0,1 1,4 8220 6996 ?? Ss 18:53 0:00,09 l3-agent (perl5. root 2360 0,0 1,5 9064 7820 ?? Ss 18:34 1:21,37 l3-agent (perl5. root 3214 0,0 0,2 1608 1060 p2 S+ 18:54 0:00,01 grep l3 |
#ps aux | grep l3
root 3147 0,1 1,4 8220 6996 ?? Ss 18:53 0:00,09 l3-agent (perl5. root 2360 0,0 1,5 9064 7820 ?? Ss 18:34 1:21,37 l3-agent (perl5. root 3214 0,0 0,2 1608 1060 p2 S+ 18:54 0:00,01 grep l3 |
#kill -9 3147 2360
|
#kill -9 3147 2360
|
#kill -9 3147 2360
|
#kill -9 3147 2360
|
#kill -9 3147 2360
|
#kill -9 3147 2360
|
#kill -9 3147 2360
|
#kill -9 3147 2360
|
#kill -9 3147 2360
|
#l3-agent
Removing stale pidfile |
#l3-agent
Removing stale pidfile |
#l3-agent
Removing stale pidfile |
#l3-agent
Removing stale pidfile |
#l3-agent
Removing stale pidfile |
#l3-agent
Removing stale pidfile |
#l3-agent
Removing stale pidfile |
#l3-agent
Removing stale pidfile |
#l3-agent
Removing stale pidfile |
#exit
exit Connection to 192.168.16.22 closed. |
#exit
exit Connection to 192.168.16.22 closed. |
#exit
exit Connection to 192.168.16.22 closed. |
#exit
exit Connection to 192.168.16.22 closed. |
#exit
exit Connection to 192.168.16.22 closed. |
#exit
exit Connection to 192.168.16.22 closed. |
#exit
exit Connection to 192.168.16.22 closed. |
#exit
exit Connection to 192.168.16.22 closed. |
#exit
exit Connection to 192.168.16.22 closed. |
Xservers Xsession Xsetup_0
#!/bin/sh # # $XdotOrg: $ # $Xorg: Xsession,v 1.4 2000/08/17 19:54:17 cpqbld Exp $ # $XFree86: xc/programs/xdm/config/Xsession,v 1.2 1998/01/11 03:48:32 dawes Exp $ # redirect errors to a file in user's home directory if we can errfile="$HOME/.xsession-errors" if ( umask 077 && cp /dev/null "$errfile" 2> /dev/null ) then exec > "$errfile" 2>&1 else mktemp=/usr/bin/mktemp for errfile in "${TMPDIR-/tmp}/xses-$USER" "/tmp/xses-$USER" do if ef="$( umask 077 && $mktemp "$errfile.XXXXXX" 2> /dev/null)" then exec > "$ef" 2>&1 mv "$ef" "$errfile" 2> /dev/null break fi done fi case $# in 1) case $1 in failsafe) exec /usr/local/bin/xterm -geometry 80x24-0-0 ;; esac esac # The startup script is not intended to have arguments. # #startup=$HOME/.xsession #resources=$HOME/.Xresources # #if [ -s "$startup" ]; then # if [ -x "$startup" ]; then # exec "$startup" # else # exec /bin/sh "$startup" # fi #else # if [ -r "$resources" ]; then # /usr/local/bin/xrdb -load "$resources" # fi # exec /usr/local/bin/xsm #fi xfce4-session
Время первой команды журнала | 17:50:01 2008- 3-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 17:54:53 2009- 8-31 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 2.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.29 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 5.77 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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