/l3/trainings/nt-bsdnet/2006-04-03/fbsd1.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 |
|
#ssh fbsd2
Last login: Tue Apr 4 16:01:42 2006 from fbsd3.linux.nt Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.0-RELEASE (MAIN) #0: Mon Apr 3 14:33:41 EEST 2006 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, along with the mailing lists, can be searched by going to 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. |
#deco
Demos Commander, Copyright (C) 1989-1997 Serge Vakulenko |
#ssh-keygen -t dsa
![]() |
#ssh-keygen -P -f ~.ssh/id_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 IETF SECSH 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. |
#ssh-keygen -P -f ~/.ssh/id_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 IETF SECSH 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. |
#ssh-keygen -P -f ~/.ssh/id_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 IETF SECSH 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. |
#ssh-keygen -P -f ~/.ssh/id_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 IETF SECSH 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. |
#cat ~/.ssh/id_dsa.pub | ssh fbsd2 'cat >> ~/.ssh/authorized_k
![]() |
#ssh-keygen -t dsa
![]() |
#cat ~/.ssh/id_dsa.pub | ssh fbsd2 'cat >> ~/.ssh/authorized_k
![]() |
#ssh fbsd2
![]() |
#cd ~/.ssh/
|
#ls
authorized_keys id_dsa id_dsa.pub known_hosts |
#eval `ssh-agent`
Agent pid 3116 |
#cd ~/
|
#ssh-add
Identity added: /root/.ssh/id_dsa (/root/.ssh/id_dsa) |
#cat ~/.ssh/id_dsa.pub | ssh fbsd2 'cat >> ~/.ssh/authorized_
![]() |
#ssh fbsd2
![]() |
#ssh fbsd2
Last login: Tue Apr 4 16:20:05 2006 from fbsd3.linux.nt Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.0-RELEASE (MAIN) #0: Mon Apr 3 14:33:41 EEST 2006 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, along with the mailing lists, can be searched by going to 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. |
#ls
.bash_history .gconf .gstreamer-0.8 .links .ssh .bash_profile .gconfd .history .login .bashrc .gnome2 .k5login .mc .cshrc .gnome2_private .lilalo .profile |
#pwd
/root |
#ls -al
total 48 drwxr-xr-x 11 root wheel 512 Apr 4 10:43 . drwxr-xr-x 21 root wheel 512 Apr 3 16:52 .. -rw------- 1 root wheel 6965 Apr 4 16:20 .bash_history -rw-r--r-- 1 root wheel 13 Apr 3 08:11 .bash_profile -rw-r--r-- 1 root wheel 35 Apr 3 08:11 .bashrc -rw-r--r-- 2 root wheel 801 Nov 3 10:12 .cshrc drwx------ 2 root wheel 512 Mar 31 22:34 .gconf drwx------ 2 root wheel 512 Mar 31 22:34 .gconfd drwx------ 3 root wheel 512 Mar 31 22:26 .gnome2 drwx------ 2 root wheel 512 Mar 31 22:26 .gnome2_private drwxr-xr-x 2 root wheel 512 Mar 31 22:27 .gstreamer-0.8 -rw------- 1 root wheel 751 Apr 3 07:58 .history -rw-r--r-- 1 root wheel 143 Nov 3 10:12 .k5login drwxr-xr-x 2 root wheel 5632 Apr 4 16:20 .lilalo drwx------ 2 root wheel 512 Apr 4 09:15 .links -rw-r--r-- 1 root wheel 293 Nov 3 10:12 .login drwxr-xr-x 3 root wheel 512 Apr 4 11:38 .mc -rw-r--r-- 2 root wheel 251 Nov 3 10:12 .profile drwxr-xr-x 2 root wheel 512 Apr 4 16:03 .ssh |
#exit
exit Connection to fbsd2.unix.nt closed. |
#ls -a
. .bashrc .gnome2 .hushlogin .profile .. .cshrc .gnome2_private .k5login .ssh .bash_history .gconf .gstreamer-0.8 .lilalo .bash_profile .gconfd .history .login |
#cd ~/
|
#exit
exit Connection to fbsd2.unix.nt closed. |
#los
![]() bash: los: command not found |
#ls
.bash_history .gconf .gstreamer-0.8 .lilalo .bash_profile .gconfd .history .login .bashrc .gnome2 .hushlogin .profile .cshrc .gnome2_private .k5login .ssh |
#exit
exit Connection to fbsd2.unix.nt closed. |
#ssh-keygen -p -f ~/.ssh/id_dsa
Key has comment '/root/.ssh/id_dsa' Enter new passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved with the new passphrase. |
#eval `ssh-agent`
Agent pid 3212 |
#ssh-add
Enter passphrase for /root/.ssh/id_dsa: Identity added: /root/.ssh/id_dsa (/root/.ssh/id_dsa) |
#ssh fbsd2
Last login: Tue Apr 4 16:20:49 2006 from linux16-2.linux Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.0-RELEASE (MAIN) #0: Mon Apr 3 14:33:41 EEST 2006 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, along with the mailing lists, can be searched by going to 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. |
#ssh fbsd2
|
#xorgcfg
![]() X Window System Version 6.8.2 Release Date: 9 February 2005 X Protocol Version 11, Revision 0, Release 6.8.2 Build Operating System: FreeBSD 6.0 i386 [ELF] Current Operating System: FreeBSD fbsd1.unix.nt 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Mon Apr 3 15:21:58 EEST 2006 user@fbsd1.unix.nt:/usr/src/sys/i386/compile/MYGENERIC i386 Build Date: 12 October 2005 Before reporting problems, check http://wiki.X.Org to make sure that you have the latest version. Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, ... Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.8.log", Time: Tue Apr 4 16:31:28 2006 (++) Using config file: "/root/xorg.conf.new" [drm] failed to load kernel module "i915" (EE) I810(0): [dri] DRIScreenInit failed. Disabling DRI. FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing. Cannot connect to X server. |
#ls
\.bash_history .gconf .gstreamer-0.8 .lilalo xorg.conf.new .bash_profile .gconfd .history .login .bashrc .gnome2 .hushlogin .profile .cshrc .gnome2_private .k5login .ssh |
#ee xorg.conf.new
48,49c48,49 < # HorizSync 30.0 - 70.0 < # VertRefresh 50.0 - 160.0 --- > HorizSync 30.0 - 70.0 > VertRefresh 50.0 - 90.0 |
#ls
.bash_history .gconf .gstreamer-0.8 .lilalo xorg.conf.new .bash_profile .gconfd .history .login .bashrc .gnome2 .hushlogin .profile .cshrc .gnome2_private .k5login .ssh |
#mv xorg.conf.new /etc/X11/xorg.conf
|
#touch .xinitrc
|
#ee .xinitrc
0a1 > startkde |
#startkde
![]() xsetroot: unable to open display '' xset: unable to open display "" xsetroot: unable to open display '' startkde: Starting up... startkde: Running kpersonalizer... /usr/X11R6/bin/iceauth: creating new authority file /root/.ICEauthority kwin: cannot connect to X server kpersonalizer: cannot connect to X server kpersonalizer: cannot connect to X server kpersonalizer: cannot connect to X server ... kpersonalizer: cannot connect to X server kpersonalizer: cannot connect to X server kpersonalizer: cannot connect to X server kpersonalizer: cannot connect to X server kpersonalizer: cannot connect to X server kpersonalizer: cannot connect to X server kpersonalizer: cannot connect to X server kpersonalizer: cannot connect to X server kpersonalizer: cannot connect to X server ^C |
#xinit
X Window System Version 6.8.2 Release Date: 9 February 2005 X Protocol Version 11, Revision 0, Release 6.8.2 Build Operating System: FreeBSD 6.0 i386 [ELF] Current Operating System: FreeBSD fbsd1.unix.nt 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Mon Apr 3 15:21:58 EEST 2006 user@fbsd1.unix.nt:/usr/src/sys/i386/compile/MYGENERIC i386 Build Date: 12 October 2005 Before reporting problems, check http://wiki.X.Org to make sure that you have the latest version. Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, ... kdeinit: Fatal IO error: client killed kdeinit: sending SIGHUP to children. kdeinit: sending SIGTERM to children. klauncher: Exiting on signal 1 kdeinit: Exit. klauncher: Fatal IO error: client killed FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing. xinit: connection to X server lost. Hangup GOT SIGHUP |
#DCOPClient::attachInternal. Attach failed Could not open network socket
DCOPClient::attachInternal. Attach failed Could not open network socket ERROR: Couldn't attach to DCOP server! startkde: Shutting down... Warning: connect() failed: : No such file or directory Error: Can't contact kdeinit! startkde: Running shutdown scripts... startkde: Done. ls .DCOPserver_fbsd1.unix.nt_NODISPLAY .k5login .ICEauthority .kde .bash_history .kderc .bash_profile .lilalo .bashrc .local .cshrc .login .gconf .mcop .gconfd .profile .gnome2 .qt .gnome2_private .ssh .gstreamer-0.8 .xinitrc .history Desktop .hushlogin |
#ssh fbsd2 konquedor
![]() bash: konquedor: command not found |
#xinit
X Window System Version 6.8.2 Release Date: 9 February 2005 X Protocol Version 11, Revision 0, Release 6.8.2 Build Operating System: FreeBSD 6.0 i386 [ELF] Current Operating System: FreeBSD fbsd1.unix.nt 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Mon Apr 3 15:21:58 EEST 2006 user@fbsd1.unix.nt:/usr/src/sys/i386/compile/MYGENERIC i386 Build Date: 12 October 2005 Before reporting problems, check http://wiki.X.Org to make sure that you have the latest version. Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, ... kdeinit: Fatal IO error: client killed kdeinit: sending SIGHUP to children. DCOPClient::attachInternal. Attach failed Could not open network socket DCOPClient::attachInternal. Attach failed Could not open network socket ERROR: Couldn't attach to DCOP server! startkde: Shutting down... Warning: connect() failed: : No such file or directory Error: Can't contact kdeinit! FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing. xinit: connection to X server lost. |
#Hangup
GOT SIGHUP startkde: Running shutdown scripts... startkde: Done. kdeinit: sending SIGTERM to children. kdeinit: sending SIGTERM to children. kdeinit: Exit. kdeinit: Exit. |
#ssh fbsd2 konqueror
![]() konqueror: cannot connect to X server |
#ssh X fbsd2 konqueror
![]() ssh: X: hostname nor servname provided, or not known |
#ssh -h
![]() ssh: illegal option -- h usage: ssh [-1246AaCfgkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec] [-D port] [-e escape_char] [-F configfile] [-i identity_file] [-L [bind_address:]port:host:hostport] [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] [-R [bind_address:]port:host:hostport] [-S ctl_path] [user@]hostname [command] |
#ssh X fbsd2 konqueror
![]() ssh: X: hostname nor servname provided, or not known |
#man ssh
|
#ssh -X fbsd2 konqueror
![]() konqueror: cannot connect to X server |
#xinit
X Window System Version 6.8.2 Release Date: 9 February 2005 X Protocol Version 11, Revision 0, Release 6.8.2 Build Operating System: FreeBSD 6.0 i386 [ELF] Current Operating System: FreeBSD fbsd1.unix.nt 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Mon Apr 3 15:21:58 EEST 2006 user@fbsd1.unix.nt:/usr/src/sys/i386/compile/MYGENERIC i386 Build Date: 12 October 2005 Before reporting problems, check http://wiki.X.Org to make sure that you have the latest version. Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, ... DCOPClient::attachInternal. Attach failed Could not open network socket ERROR: Couldn't attach to DCOP server! startkde: Shutting down... Warning: connect() failed: : No such file or directory Error: Can't contact kdeinit! FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing. xinit: connection to X server lost. Hangup GOT SIGHUP startkde: Running shutdown scripts... |
#\startkde: Done.
kdeinit: sending SIGTERM to children. kdeinit: Exit. > |
#l3-agent
|
#su user
|
$l3-agent
l3-agent is already running: pid=570; pidfile=/home/user/.lilalo/l3-agent.pid |
$exit
exit |
#su user
|
$l3-agent
l3-agent is already running: pid=570; pidfile=/home/user/.lilalo/l3-agent.pid |
$rm /home/user/.lilalo/l3-agent.pid
|
$l3-agent
|
$exit
exit |
#xinit
kdeinit in malloc(): error: recursive call kdeinit in malloc(): error: recursive call kdeinit in malloc(): error: recursive call kdeinit in malloc(): error: recursive call kdeinit in malloc(): error: recursive call kdeinit in malloc(): error: recursive call kdeinit in malloc(): error: recursive call kdeinit in malloc(): error: recursive call kdeinit in malloc(): error: recursive call kdeinit in malloc(): error: recursive call ... kdeinit in malloc(): error: recursive call kdeinit in malloc(): error: recursive call kdeinit in malloc(): error: recursive call kdeinit in malloc(): error: recursive call kdeinit in malloc(): error: recursive call kdeinit in malloc(): error: recursive call kdeinit in malloc(): error: recursive call kdeinit in malloc(): error: recursive call kdeinit in malloc(): error: recursive call kdeinit in malloc(): error: recursive call |
#startkde: Done.
kdeinit: sending SIGTERM to children. kdeinit: Exit. \ > |
#shutdown -p now
Shutdown NOW! shutdown: [pid 4263] |
#ee /etc/rc.conf
|
#/etc/rc.d/inetd start
Starting inetd. |
#ee /etc/inetd.conf
|
#/etc/rc.d/inetd restart
Stopping inetd. Starting inetd. |
#telnet 192.168.16.1
![]() ifconfig ^C |
#ipfw show
65535 64 3776 allow ip from any to any |
#ping 192.168.16.1
PING 192.168.16.1 (192.168.16.1): 56 data bytes 64 bytes from 192.168.16.1: icmp_seq=0 ttl=64 time=0.309 ms 64 bytes from 192.168.16.1: icmp_seq=1 ttl=64 time=0.184 ms ^C --- 192.168.16.1 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.184/0.246/0.309/0.062 ms |
#host 192.168.16.1
![]() ;; connection timed out; no servers could be reached |
#ifconfig
xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> ether 00:01:02:b4:61:10 media: Ethernet autoselect (none) status: no carrier xl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::201:2ff:feb4:6197%xl1 prefixlen 64 scopeid 0x2 inet 192.168.16.2 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:01:02:b4:61:97 media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ee /etc/rc.conf
|
#/etc/rc.d/netif restart
Stopping network: lo0 xl1. lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 xl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::201:2ff:feb4:6197%xl1 prefixlen 64 scopeid 0x2 inet 192.168.15.21 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:01:02:b4:61:97 media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#/etc/rc.d/routing restart
route: writing to routing socket: Network is unreachable add net default: gateway 192.168.16.1: Network is unreachable Additional routing options: IP gateway=YES. |
#sockstat -4
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root telnetd 929 0 tcp4 192.168.15.21:23 192.168.15.22:60759 root telnetd 929 1 tcp4 192.168.15.21:23 192.168.15.22:60759 root telnetd 929 2 tcp4 192.168.15.21:23 192.168.15.22:60759 root telnetd 756 0 tcp4 192.168.16.2:23 192.168.16.1:49609 root telnetd 756 1 tcp4 192.168.16.2:23 192.168.16.1:49609 root telnetd 756 2 tcp4 192.168.16.2:23 192.168.16.1:49609 root inetd 750 4 tcp4 *:23 *:* root inetd 750 5 tcp4 *:13 *:* root inetd 750 6 tcp4 *:7 *:* root sendmail 443 3 tcp4 127.0.0.1:25 *:* root sshd 437 4 tcp4 *:22 *:* root syslogd 311 6 udp4 *:514 *:* |
#wehereis sendmail
![]() bash: wehereis: command not found |
#whereis sendmail
sendmail: /usr/sbin/sendmail /usr/share/man/man8/sendmail.8.gz /usr/src/usr.sbin/sendmail |
#ee /etc/inetd.conf
|
#/etc/rc.d/inetd restart
Stopping inetd. Starting inetd. |
#telnet 192.168.15.22
![]() Trying 192.168.15.22... Connected to fbsd2.linux.nt. Escape character is '^]'. Trying SRA secure login: User (root): ^C |
#telnet 192.168.15.22 nntp
![]() Trying 192.168.15.22... Connected to fbsd2.linux.nt. Escape character is '^]'. sh: can't access tty; job control turned off \[v2#\!#$?#$UID#$$#$(/bin/date +%s)#$PWD#\033[1024D\033[K\]\[\033[0;31m\][\u@fbsd2:PS1=$ # $^C^C^CTerminated: 15 |
#killall telnet
Password: Last login: Wed Apr 5 09:25:48 2006 from mail.tex.kiev.u Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.9-RELEASE (dak) #0: Fri Nov 5 23:03:11 GMT 2004 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... 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) man page. If you are not familiar with man pages, type `man man'. You may also use /stand/sysinstall to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Could not chdir to home directory /home/taras: No such file or directory $ su Password: You have mail. mail# gunzip -d nm |
#ee /etc/rc.conf
![]() |
#ldd `!!`
ldd `which ssh` /usr/bin/ssh: libssh.so.3 => /usr/lib/libssh.so.3 (0x2808b000) libutil.so.5 => /lib/libutil.so.5 (0x280bd000) libz.so.3 => /lib/libz.so.3 (0x280c9000) libgssapi.so.8 => /usr/lib/libgssapi.so.8 (0x280d9000) libkrb5.so.8 => /usr/lib/libkrb5.so.8 (0x280e7000) libasn1.so.8 => /usr/lib/libasn1.so.8 (0x2811b000) libcom_err.so.3 => /usr/lib/libcom_err.so.3 (0x2813c000) libmd.so.3 => /lib/libmd.so.3 (0x2813e000) libroken.so.8 => /usr/lib/libroken.so.8 (0x2814c000) libcrypt.so.3 => /lib/libcrypt.so.3 (0x28158000) libcrypto.so.4 => /lib/libcrypto.so.4 (0x28170000) libc.so.6 => /lib/libc.so.6 (0x28262000) |
#ldd `which ssh` | grep libw
![]() |
#ldd `which sshd` | grep libw
libwrap.so.4 => /usr/lib/libwrap.so.4 (0x280e8000) |
#cd /etc/
|
#ls
X11 login.conf.db pwd.db aliases mac.conf rc amd.map mail rc.bsdextended apmd.conf mail.rc rc.conf auth.conf make.conf rc.conf.b bluetooth manpath.config rc.d crontab manpath.config.bak rc.firewall csh.cshrc master.passwd rc.firewall6 csh.login motd rc.initdiskless csh.logout mtree rc.resume ... hosts pccard_ether spwd.db hosts.allow periodic ssh hosts.equiv pf.conf ssl hosts.lpd pf.os sudosh.conf inetd.conf phones sysctl.conf isdn portsnap.conf syslog.conf localtime ppp termcap locate.rc printcap ttys login.access profile usbd.conf login.conf protocols wall_cmos_clock |
Время первой команды журнала | 16:09:52 2006- 4- 4 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 09:54:00 2006- 4- 5 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 16.83 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 3.96 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.43 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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