/l3/users/29-05-2007/nt-lnet/linux1.net.nt/user :1 :2 :3 :4 :5 :6 :7 :8 |
|
#cat /etc/ssh/ssh
ssh_config ssh_host_dsa_key ssh_host_rsa_key sshd_config ssh_host_dsa_key.pub ssh_host_rsa_key.pub |
#cat /etc/ssh/ssh_
ssh_config ssh_host_dsa_key ssh_host_dsa_key.pub ssh_host_rsa_key ssh_host_rsa_key.pub |
#cat /etc/ssh/ssh_host_rsa_key.pub
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvhALvZKSSK/uwaKBprL2euyVtVc8SFzEj7rIgk247s9E9Tn3+Xx2ANmncMUPjdvK5arWwWrKMiWW+SmCd+esYgxx47FTsqtlgVqeXgs3m7yicYwtluVraADE0c/w3Bz8MLHDm8jjR9t25anFRS4N7cIupHG8UbmIm48u2k/bevME+dUVap9QvJG7v+drcgJulnbnNtJBu9PBLwbRo0OWP4hJilQl8D4Mf8wfu8N75S1nh1t24v6JD81mxYeG1p/78DhHFJGyl3YCgSjkBSNbzhjS2EaX7lOmYCpGGhh4HmcVk5ADvT2qyBRlQZqt0WVZq01bzhf0HY31Q8IirNk9XQ== root@linux3 |
#man sshd_config
|
#fg
bash: fg: current: no such job |
#man fg
|
#echo "22" &
[1] 15633 22 [1]+ Done echo "22" |
#ds
bash: ds: command not found |
#s
bash: s: command not found |
#s
bash: s: command not found |
#s
bash: s: command not found |
#s
bash: s: command not found |
$su -
Password: l3-agent is already running: pid=3166; pidfile=/root/.lilalo/l3-agent.pid |
$su -
Password: l3-agent is already running: pid=3166; pidfile=/root/.lilalo/l3-agent.pid |
#screen -x
|
#apt-get install openssh-server
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово Уже установлена самая новая версия openssh-server. обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. |
#ssh-keygen
Generating public/private rsa key pair. |
#ssh-keygen -t rsa -b 2048
Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): /root/.ssh/id_rsa already exists. Overwrite (y/n)? y 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: 1d:14:00:21:24:4c:42:0b:e0:1a:7f:81:60:32:34:09 root@linux1 |
#. /etc/bash_completion
|
#cat .ssh/id_rsa.pub | ssh -l root 192.168.16.2 'cat >> ~/.ssh/authorized_keys'
root@192.168.16.2's password: |
#ssh 192.168.16.2
Last login: Thu May 31 13:41:49 2007 Linux linux2 2.6.21.2 #1 SMP Thu May 24 13:33:22 EEST 2007 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. l3-agent is already running: pid=2656; pidfile=/root/.lilalo/l3-agent.pid |
#exit
exit Connection to 192.168.16.2 closed. |
#cat .ssh/id_rsa.pub | ssh -l root 192.168.16.3 'cat >> ~/.ssh/authorized_keys'
root@192.168.16.3's password: |
#cat .ssh/id_rsa.pub | ssh -l root 192.168.16.4 'cat >> ~/.ssh/authorized_keys'
root@192.168.16.4's password: |
#ssh 192.168.16.3
Last login: Thu May 31 14:00:53 2007 from linux4.net.nt Linux linux3 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. l3-agent is already running: pid=2884; pidfile=/root/.lilalo/l3-agent.pid |
#exit
exit Connection to 192.168.16.3 closed. |
#ssh 192.168.16.4
Last login: Wed May 30 18:22:57 2007 from linux1.net.nt Linux linux4 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. |
#cat .ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6cozkS4v1d7RrYdGWi5ZSJOHTBF/WyMv/2U7efRo28AAoBuSqfnQxWjtGESAqWRnpc/aidikX1fHiYHIxB8j59YKBudqThhh6aN76ljMzxZ8xW7O4RqEAK0vY3At2i7o64FCGDMJCZ3a6DS+n5o4pKsv2r86pq4hDIjseWWc8c9c/5VRY14wMCNkdsrfdC4ZGab7fNWg5UUDPjL/j4ceYbBAe3PyipsotN62M5X1C+LkURDbpKQXItl7f1AllTP0DrUYDiXDTWAlcc/H5ssVoSBY1krDZ3yJ9/9AKvh4ReP38XdZm0NVUe+aROF9Zw9CBeuczNiWV8UzBXSW8KBxHw== root@linux1 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA3ua9MwIo3tP+VPybUZfKiSvh01Ubze0Fvc5gDjV48Yx95POdEu1sPV/lRhZFHtChOoLViyPRofrr0t86NirqVfcGlOfPj5DqxePqa3kAVFBBwQ1bZiFKptUM1ML4JDFL2Qj3m4xmF3MEYXk56j8c3VXwm6AgqDakugGKEGlNSkVCmQj8JB7jEFxNsL97jhJLIhFYbEWuupuoWY36cQhepehiHZKHCABAZA8fK1Mv5zAxfETA8oZpKvx9voyjK2lwrP7bnxK5yjlpWibZCpCvD4tO/XOg9You5zKaZWJcmofzb6PsjUSQC8D027ts4Qw9Uf5LyTSXsjuI9j2DrlV1Kw== root@linux3 |
#cat .ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6cozkS4v1d7RrYdGWi5ZSJOHTBF/WyMv/2U7efRo28AAoBuSqfnQxWjtGESAqWRnpc/aidikX1fHiYHIxB8j59YKBudqThhh6aN76ljMzxZ8xW7O4RqEAK0vY3At2i7o64FCGDMJCZ3a6DS+n5o4pKsv2r86pq4hDIjseWWc8c9c/5VRY14wMCNkdsrfdC4ZGab7fNWg5UUDPjL/j4ceYbBAe3PyipsotN62M5X1C+LkURDbpKQXItl7f1AllTP0DrUYDiXDTWAlcc/H5ssVoSBY1krDZ3yJ9/9AKvh4ReP38XdZm0NVUe+aROF9Zw9CBeuczNiWV8UzBXSW8KBxHw== root@linux1 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA3ua9MwIo3tP+VPybUZfKiSvh01Ubze0Fvc5gDjV48Yx95POdEu1sPV/lRhZFHtChOoLViyPRofrr0t86NirqVfcGlOfPj5DqxePqa3kAVFBBwQ1bZiFKptUM1ML4JDFL2Qj3m4xmF3MEYXk56j8c3VXwm6AgqDakugGKEGlNSkVCmQj8JB7jEFxNsL97jhJLIhFYbEWuupuoWY36cQhepehiHZKHCABAZA8fK1Mv5zAxfETA8oZpKvx9voyjK2lwrP7bnxK5yjlpWibZCpCvD4tO/XOg9You5zKaZWJcmofzb6PsjUSQC8D027ts4Qw9Uf5LyTSXsjuI9j2DrlV1Kw== root@linux3 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEApCShz/JrXmVTd0ibaGTAZWhNRkG9LgJ6/Prn6vq/phab47apSiIxm4UnNGPBX1m5E4Bl2L8ow8/Fb/ftWJSkkFPS1Fm4d4dGOKgFZ8wP4RocX0780MZQdydFhra8p5lBuSH3ylYbTSe6IYfZVYZx3+ahwxV7luXJWdvgsZWY8yJAY2FthuSY/1qLUDjWRTJMHYDOagAqI7uLFRiEUtFVkVet5u4pWoauWongAmWzNYA9SLlhZUzZ1Dx630NA2b1Dr+io/iObMWSkpjHnXJz7lqi+Ax+LumxrguB62tqE8nwkU+MnYB5dpHpcB94H3OJLNAozVko1YzQq0HqyHMcEaw== root@linux2 |
#ssh 192.168.16.2
|
#exit
exit Connection to 192.168.16.4 closed. |
#ssh 192.168.16.2
ssh: connect to host 192.168.16.2 port 22: No route to host |
$su -
Linux linux2 2.6.21.2 #1 SMP Thu May 24 13:33:22 EEST 2007 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. l3-agent is already running: pid=2654; pidfile=/root/.lilalo/l3-agent.pid [root@linux2:~]# netstat -lnp | grep :6000 [root@linux2:~]# netstat -lnp | grep :6000 [root@linux2:~]# netstat -lnp | grep :6000 [root@linux2:~]# netstat -lnp | grep :6000 [root@linux2:~]# netstat -lnp | grep :6000 [root@linux2:~]# netstat -lnp | grep :6000 [root@linux2:~]# netstat -lnp | grep :6000 [root@linux2:~]# netstat -lnp | grep :6000 [root@linux2:~]# netstat -lnp | grep :6000 [root@linux2:~]# netstat -lnp | grep :6000 [root@linux2:~]# netstat -lnp | grep :6000 [root@linux2:~]# netstat -lnp | grep :6000 Password: l3-agent is already running: pid=3166; pidfile=/root/.lilalo/l3-agent.pid |
#screen -x
|
$xhost +
xhost: unable to open display "" [user@linux1:~]$ exit [root@linux1:~]# ssh 192.168.16.3 root@192.168.16.3's password: Last login: Thu May 31 15:29:36 2007 from linux1.net.nt Linux linux3 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. l3-agent is already running: pid=2884; pidfile=/root/.lilalo/l3-agent.pid [root@linux3:~]# DISPLAY=192.168.16.1:0 xclock Warning: Missing charsets in String to FontSet conversion Warning: Unable to load any usable fontset [root@linux3:~]# grep 6000 /etc/services x11 6000/tcp x11-0 # X Window System x11 6000/udp x11-0 [root@linux3:~]# access control disabled, clients can connect from any host |
$su -
If command is specified, it is executed on the remote host instead of a login shell. The options are as follows: -1 Forces ssh to try protocol version 1 only. -2 Forces ssh to try protocol version 2 only. -4 Forces ssh to use IPv4 addresses only. -6 Forces ssh to use IPv6 addresses only. -A Enables forwarding of the authentication agent connection. This can also be specified on a per-host basis in a configuration file. Agent forwarding should be enabled with caution. Users with the ability to bypass file permissions on the remote host (for the agent’s Unix-domain socket) can access the local agent through the forwarded connection. An attacker cannot obtain key material from the agent, however they can perform operations on the keys that enable them to authenticate using the identities loaded into the agent. Password: l3-agent is already running: pid=3166; pidfile=/root/.lilalo/l3-agent.pid |
$sudo w
w wftopfa who wpa_passphrase w3m wget whoami wpa_supplicant w3mman whatis whois w.procps wait whereis wireshark write wall which wodim writevt watch while wpa_action www-browser wc whiptail wpa_cli |
$sudo wireshark
Password: Killed |
#ssh 192.168.16.2 -X
-4 Forces ssh to use IPv4 addresses only. -6 Forces ssh to use IPv6 addresses only. -A Enables forwarding of the authentication agent connection. This can also be specified on a per-host basis in a configuration file. Agent forwarding should be enabled with caution. Users with the ability to bypass file permissions on the remote host (for the agent’s Unix-domain socket) can access the local agent through the forwarded connection. An attacker cannot obtain key material from the agent, however they can perform operations on the keys that enable them to authenticate using the identities loaded into the agent. Enter passphrase for key '/root/.ssh/id_rsa': Last login: Thu May 31 15:40:54 2007 from linux1.net.nt Linux linux2 2.6.21.2 #1 SMP Thu May 24 13:33:22 EEST 2007 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. l3-agent is already running: pid=2652; pidfile=/root/.lilalo/l3-agent.pid |
#/usr/games/frozen-bubble
[[ Frozen-Bubble-2.1.0 ]] http://www.frozen-bubble.org/ Copyright (c) 2000-2006 The Frozen-Bubble Team. Artwork: Alexis Younes Amaury Amblard-Ladurantie Soundtrack: Matthias Le Bidan Design & Programming: Guillaume Cottenceau Level Editor: Kim and David Joham Originally sponsored by Mandriva <http://www.mandriva.com/> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2, as published by the Free Software Foundation. [SDL Init] [Graphics Addicted for 0s, 0 bubbles were launched. |
#man frozen-bubble
|
#/usr/games/frozen-bubble
[[ Frozen-Bubble-2.1.0 ]] http://www.frozen-bubble.org/ Copyright (c) 2000-2006 The Frozen-Bubble Team. Artwork: Alexis Younes Amaury Amblard-Ladurantie Soundtrack: Matthias Le Bidan Design & Programming: Guillaume Cottenceau Level Editor: Kim and David Joham Originally sponsored by Mandriva <http://www.mandriva.com/> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2, as published by the Free Software Foundation. [SDL Init] [Graphics............] open /dev/sequencer: No such file or directory [Sound Init] [Levels] Ready. ^[[A^[[A^[[B^[[B Addicted for 33s, 2 bubbles were launched. |
#exit
exit Connection to 192.168.16.2 closed. |
#exit
exit |
$ssh 192.168.16.2 -X
The authenticity of host '192.168.16.2 (192.168.16.2)' can't be established. RSA key fingerprint is 9e:2d:a9:2d:1c:93:bd:a9:4e:1a:2b:31:c8:fa:a4:3c. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.16.2' (RSA) to the list of known hosts. user@192.168.16.2's password: Permission denied, please try again. user@192.168.16.2's password: Linux linux2 2.6.21.2 #1 SMP Thu May 24 13:33:22 EEST 2007 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu May 31 15:41:15 2007 from linux3.net.nt l3-agent is already running: pid=2809; pidfile=/home/user/.lilalo/l3-agent.pid |
$/usr/games/frozen-bubble
[[ Frozen-Bubble-2.1.0 ]] http://www.frozen-bubble.org/ Copyright (c) 2000-2006 The Frozen-Bubble Team. Artwork: Alexis Younes Amaury Amblard-Ladurantie Soundtrack: Matthias Le Bidan Design & Programming: Guillaume Cottenceau Level Editor: Kim and David Joham Originally sponsored by Mandriva <http://www.mandriva.com/> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2, as published by the Free Software Foundation. [SDL Init] [Graphics............] open /dev/sequencer: No such file or directory [Sound Init] [Levels] Ready. Eye-candy animation is too slow, disabling. Killed |
$exit
If command is specified, it is executed on the remote host instead of a login shell. The options are as follows: -1 Forces ssh to try protocol version 1 only. -2 Forces ssh to try protocol version 2 only. -4 Forces ssh to use IPv4 addresses only. -6 Forces ssh to use IPv6 addresses only. -A Enables forwarding of the authentication agent connection. This can also be specified on a per-host basis in a configuration file. Agent forwarding should be enabled with caution. Users with the ability to bypass file permissions on the remote host (for the agent’s Unix-domain socket) can access the local agent through the forwarded connection. An attacker cannot obtain key material from the agent, however they can perform operations on the keys that enable them to authenticate using the identities loaded into the agent. exit Connection to 192.168.16.2 closed. |
$ls /
If command is specified, it is executed on the remote host instead of a login shell. The options are as follows: -1 Forces ssh to try protocol version 1 only. -2 Forces ssh to try protocol version 2 only. -4 Forces ssh to use IPv4 addresses only. -6 Forces ssh to use IPv6 addresses only. -A Enables forwarding of the authentication agent connection. This can also be specified on a per-host basis in a configuration file. Agent forwarding should be enabled with caution. Users with the ability to bypass file permissions on the remote host (for the agent’s Unix-domain socket) can access the local agent through the forwarded connection. An attacker cannot obtain key material from the agent, however they can perform operations on the keys that enable them to authenticate using the identities loaded into the agent. bin cdrom etc initrd lib lost+found mnt proc sbin srv tmp var boot dev home initrd.img log media opt root selinux sys usr vmlinuz |
#screen -x
|
#reboot
Broadcast message from root@linux1 (pts/5) (Thu May 31 16:15:40 2007): The system is going down for reboot NOW! Broadcast message from root@linux1 (pts/5) (Thu May 31 16:15:40 2007): The system is going down for reboot NOW! |
$su -
zone "16.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "17.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "18.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "19.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "20.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "21.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "22.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "23.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "24.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; Password: "/etc/bind/zones.rfc1918" 20L, 1317C |
#man scp
|
$su -
Password: l3-agent is already running: pid=3190; pidfile=/root/.lilalo/l3-agent.pid |
#screen -x
|
#screen -x
|
#screen -x
|
$su -
;okno.net.nt. IN MX ;; ANSWER SECTION: okno.net.nt. 101010 IN MX 5 okno1.okno.net.nt. okno.net.nt. 101010 IN MX 10 okno2.okno.net.nt. ;; AUTHORITY SECTION: okno.net.nt. 99923 IN NS okno1.okno.net.nt. ;; ADDITIONAL SECTION: okno1.okno.net.nt. 99923 IN A 192.168.16.1 okno2.okno.net.nt. 101010 IN A 192.168.16.2 ;; Query time: 117 msec ;; SERVER: 192.168.16.15#53(192.168.16.15) ;; WHEN: Fri Jun 1 15:32:28 2007 ;; MSG SIZE rcvd: 119 [root@linux1:bind]# [root@linux1:bind]# [root@linux1:bind]# Password: Removing stale pidfile |
#screen -x
|
#screen -x
|
#screen -x
|
#screen -x
|
$su -
Password: l3-agent is already running: pid=3207; pidfile=/root/.lilalo/l3-agent.pid |
#nslookup
> ? The '?' command is not yet implemented. > help The 'help' command is not yet implemented. > /h Server: 192.168.16.15 Address: 192.168.16.15#53 ** server can't find /h: NXDOMAIN > server 192.168.16.4 Default server: 192.168.16.4 ... The 'ls' command is not implemented. > q Server: 192.168.16.4 Address: 192.168.16.4#53 ** server can't find q: NXDOMAIN > quit Server: 192.168.16.4 Address: 192.168.16.4#53 ** server can't find quit: NXDOMAIN > exit |
#dig @192.168.16.4 test.net.nt axfr
host2.test.net.nt. 10800000 IN A 192.168.16.2 host20.test.net.nt. 10800000 IN A 192.168.16.20 host200.test.net.nt. 10800000 IN A 192.168.16.200 host201.test.net.nt. 10800000 IN A 192.168.16.201 host202.test.net.nt. 10800000 IN A 192.168.16.202 host203.test.net.nt. 10800000 IN A 192.168.16.203 host204.test.net.nt. 10800000 IN A 192.168.16.204 host205.test.net.nt. 10800000 IN A 192.168.16.205 host206.test.net.nt. 10800000 IN A 192.168.16.206 host207.test.net.nt. 10800000 IN A 192.168.16.207 ... host95.test.net.nt. 10800000 IN A 192.168.16.95 host96.test.net.nt. 10800000 IN A 192.168.16.96 host97.test.net.nt. 10800000 IN A 192.168.16.97 host98.test.net.nt. 10800000 IN A 192.168.16.98 host99.test.net.nt. 10800000 IN A 192.168.16.99 test.net.nt. 10800000 IN SOA test.net.nt. user.test.net.nt. 2007053102 36000 3600 604800 3600 ;; Query time: 203 msec ;; SERVER: 192.168.16.4#53(192.168.16.4) ;; WHEN: Fri Jun 1 10:20:15 2007 ;; XFR size: 257 records (messages 1) |
#dig @192.168.16.4 -x host1
; <<>> DiG 9.3.4 <<>> @192.168.16.4 -x host1 ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 38723 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;host1.in-addr.arpa. IN PTR ;; AUTHORITY SECTION: in-addr.arpa. 10800 IN SOA A.ROOT-SERVERS.NET. dns-ops.ARIN.NET. 2007053116 1800 900 691200 10800 ;; Query time: 247 msec ;; SERVER: 192.168.16.4#53(192.168.16.4) ;; WHEN: Fri Jun 1 10:22:19 2007 ;; MSG SIZE rcvd: 103 |
#dig @192.168.16.4 -x host1,test.net.nt
; <<>> DiG 9.3.4 <<>> @192.168.16.4 -x host1,test.net.nt ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 32567 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;nt.net.host1,test.in-addr.arpa. IN PTR ;; AUTHORITY SECTION: in-addr.arpa. 10800 IN SOA A.ROOT-SERVERS.NET. dns-ops.ARIN.NET. 2007053116 1800 900 691200 10800 ;; Query time: 1281 msec ;; SERVER: 192.168.16.4#53(192.168.16.4) ;; WHEN: Fri Jun 1 10:22:28 2007 ;; MSG SIZE rcvd: 115 |
#dig @192.168.16.4 -x 192.168.16.4
; <<>> DiG 9.3.4 <<>> @192.168.16.4 -x 192.168.16.4 ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17213 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;4.16.168.192.in-addr.arpa. IN PTR ;; ANSWER SECTION: 4.16.168.192.in-addr.arpa. 1080000 IN PTR host4.test.net.nt. ;; AUTHORITY SECTION: 16.168.192.in-addr.arpa. 1080000 IN NS host4.16.168.192.in-addr.arpa. ;; Query time: 96 msec ;; SERVER: 192.168.16.4#53(192.168.16.4) ;; WHEN: Fri Jun 1 10:22:42 2007 ;; MSG SIZE rcvd: 94 |
#dig @192.168.16.4 -x 192.168.16.3
; <<>> DiG 9.3.4 <<>> @192.168.16.4 -x 192.168.16.3 ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13078 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;3.16.168.192.in-addr.arpa. IN PTR ;; ANSWER SECTION: 3.16.168.192.in-addr.arpa. 1080000 IN PTR host3.test.net.nt. ;; AUTHORITY SECTION: 16.168.192.in-addr.arpa. 1080000 IN NS host4.16.168.192.in-addr.arpa. ;; Query time: 96 msec ;; SERVER: 192.168.16.4#53(192.168.16.4) ;; WHEN: Fri Jun 1 10:22:45 2007 ;; MSG SIZE rcvd: 94 |
#export $DISPLAY=192.168.16.2:0 xclock
bash: export: `=192.168.16.2:0': not a valid identifier |
#export $DISPLAY=192.168.16.3:0 xclock
bash: export: `=192.168.16.3:0': not a valid identifier |
#apt-get install bind9
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово Предлагаемые пакеты: bind9-doc НОВЫЕ пакеты, которые будут установлены: bind9 обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. Необходимо скачать 294kБ архивов. После распаковки объем занятого дискового пространства возрастёт на 782kB. Получено:1 http://debian.org.ua etch/main bind9 1:9.3.4-2 [294kB] ... (Чтение базы данных... на данный момент установлено 89013 файлов и каталогов.) Распаковывается пакет bind9 (из файла .../bind9_1%3a9.3.4-2_i386.deb)... Настраивается пакет bind9 (9.3.4-2) ... Добавляется группа `bind' (GID 113) ... Готово. Добавляется системный пользователь `bind' (UID 110) ... Добавляется новый пользователь `bind' (UID 110) в группу `bind' ... Не создаётся домашний каталог `/var/cache/bind'. wrote key file "/etc/bind/rndc.key" Starting domain name service...: bind. |
#cd /etc/bind/
|
#ls
db.0 db.127 db.255 db.empty db.local db.root named.conf named.conf.local named.conf.options rndc.key zones.rfc1918 |
#vim db.16.168.192
|
#vim /etc/bind/db.127
|
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#tail -f /var/log/
acpid btmp dmesg.1.gz installer/ messages.0 syslog.4.gz acpid.1.gz btmp.1 dmesg.2.gz kern.log messages.1.gz syslog.5.gz apache/ cups/ dmesg.3.gz kern.log.0 news/ syslog.6.gz apache2/ daemon.log dmesg.4.gz kern.log.1.gz pycentral.log user.log aptitude daemon.log.0 dpkg.log lastlog scrollkeeper.log user.log.0 aptitude.1.gz daemon.log.1.gz dpkg.log.1 lpr.log scrollkeeper.log.1 user.log.1.gz auth.log debug exim4/ mail.err syslog uucp.log auth.log.0 debug.0 faillog mail.info syslog.0 wtmp auth.log.1.gz debug.1.gz fontconfig.log mail.log syslog.1.gz wtmp.1 bittorrent/ dmesg fsck/ mail.warn syslog.2.gz Xorg.0.log boot dmesg.0 gdm/ messages syslog.3.gz Xorg.0.log.old |
#tail -f /var/log/daemon.log
Jun 1 11:07:54 linux1 named[7658]: listening on IPv6 interfaces, port 53 Jun 1 11:07:54 linux1 named[7658]: listening on IPv4 interface lo, 127.0.0.1#53 Jun 1 11:07:54 linux1 named[7658]: listening on IPv4 interface eth3, 192.168.16.1#53 Jun 1 11:07:54 linux1 named[7658]: command channel listening on 127.0.0.1#953 Jun 1 11:07:54 linux1 named[7658]: command channel listening on ::1#953 Jun 1 11:07:54 linux1 named[7658]: zone 0.in-addr.arpa/IN: loaded serial 1 Jun 1 11:07:54 linux1 named[7658]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 11:07:54 linux1 named[7658]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 11:07:54 linux1 named[7658]: zone localhost/IN: loaded serial 1 Jun 1 11:07:54 linux1 named[7658]: running ... Jun 1 11:28:32 linux1 named[8782]: listening on IPv4 interface eth3, 192.168.16.1#53 Jun 1 11:28:32 linux1 named[8782]: command channel listening on 127.0.0.1#953 Jun 1 11:28:32 linux1 named[8782]: command channel listening on ::1#953 Jun 1 11:28:32 linux1 named[8782]: zone 0.in-addr.arpa/IN: loaded serial 1 Jun 1 11:28:32 linux1 named[8782]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 11:28:32 linux1 named[8782]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 11:28:32 linux1 named[8782]: zone localhost/IN: loaded serial 1 Jun 1 11:28:32 linux1 named[8782]: dns_rdata_fromtext: /etc/bind/db.16.168.192:2: near eol: unexpected end of input Jun 1 11:28:32 linux1 named[8782]: zone okno.net.nt/IN: loading master file /etc/bind/db.16.168.192: unexpected end of input Jun 1 11:28:32 linux1 named[8782]: running |
#cd /etc/bind/
|
#vi named.conf
|
#vim db.okno.net.nt
|
#vi named.conf
|
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#vim db.okno.net.nt
|
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#vim db.okno.net.nt
|
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#vim db.okno.net.nt
|
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#vim db.okno.net.nt
|
#tail -f /var/log/daemon.log
Jun 1 11:28:32 linux1 named[8782]: listening on IPv4 interface eth3, 192.168.16.1#53 Jun 1 11:28:32 linux1 named[8782]: command channel listening on 127.0.0.1#953 Jun 1 11:28:32 linux1 named[8782]: command channel listening on ::1#953 Jun 1 11:28:32 linux1 named[8782]: zone 0.in-addr.arpa/IN: loaded serial 1 Jun 1 11:28:32 linux1 named[8782]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 11:28:32 linux1 named[8782]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 11:28:32 linux1 named[8782]: zone localhost/IN: loaded serial 1 Jun 1 11:28:32 linux1 named[8782]: dns_rdata_fromtext: /etc/bind/db.16.168.192:2: near eol: unexpected end of input Jun 1 11:28:32 linux1 named[8782]: zone okno.net.nt/IN: loading master file /etc/bind/db.16.168.192: unexpected end of input Jun 1 11:28:32 linux1 named[8782]: running ... Jun 1 11:29:00 linux1 named[8857]: listening on IPv4 interface eth3, 192.168.16.1#53 Jun 1 11:29:00 linux1 named[8857]: command channel listening on 127.0.0.1#953 Jun 1 11:29:00 linux1 named[8857]: command channel listening on ::1#953 Jun 1 11:29:00 linux1 named[8857]: zone 0.in-addr.arpa/IN: loaded serial 1 Jun 1 11:29:00 linux1 named[8857]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 11:29:00 linux1 named[8857]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 11:29:00 linux1 named[8857]: zone localhost/IN: loaded serial 1 Jun 1 11:29:00 linux1 named[8857]: dns_rdata_fromtext: /etc/bind/db.16.168.192:2: near eol: unexpected end of input Jun 1 11:29:00 linux1 named[8857]: zone okno.net.nt/IN: loading master file /etc/bind/db.16.168.192: unexpected end of input Jun 1 11:29:00 linux1 named[8857]: running |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6cozkS4v1d7RrYdGWi5ZSJOHTBF/WyMv/2U7efRo28AAoBuSqfnQxWjtGESAqWRnpc/aidikX1fHiYHIxB8j59YKBudqThhh6aN76ljMzxZ8xW7O4RqEAK0vY3At2i7o64FCGDMJCZ3a6DS+n5o4pKsv2r86pq4hDIjseWWc8c9c/5VRY14wMCNkdsrfdC4ZGab7fNWg5UUDPjL/j4ceYbBAe3PyipsotN62M5X1C+LkURDbpKQXItl7f1AllTP0DrUYDiXDTWAlcc/H5ssVoSBY1krDZ3yJ9/9AKvh4ReP38XdZm0NVUe+aROF9Zw9CBeuczNiWV8UzBXSW8KBxHw== root@linux1 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA3ua9MwIo3tP+VPybUZfKiSvh01Ubze0Fvc5gDjV48Yx95POdEu1sPV/lRhZFHtChOoLViyPRofrr0t86NirqVfcGlOfPj5DqxePqa3kAVFBBwQ1bZiFKptUM1ML4JDFL2Qj3m4xmF3MEYXk56j8c3VXwm6AgqDakugGKEGlNSkVCmQj8JB7jEFxNsL97jhJLIhFYbEWuupuoWY36cQhepehiHZKHCABAZA8fK1Mv5zAxfETA8oZpKvx9voyjK2lwrP7bnxK5yjlpWibZCpCvD4tO/XOg9You5zKaZWJcmofzb6PsjUSQC8D027ts4Qw9Uf5LyTSXsjuI9j2DrlV1Kw== root@linux3 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEApCShz/JrXmVTd0ibaGTAZWhNRkG9LgJ6/Prn6vq/phab47apSiIxm4UnNGPBX1m5E4Bl2L8ow8/Fb/ftWJSkkFPS1Fm4d4dGOKgFZ8wP4RocX0780MZQdydFhra8p5lBuSH3ylYbTSe6IYfZVYZx3+ahwxV7luXJWdvgsZWY8yJAY2FthuSY/1qLUDjWRTJMHYDOagAqI7uLFRiEUtFVkVet5u4pWoauWongAmWzNYA9SLlhZUzZ1Dx630NA2b1Dr+io/iObMWSkpjHnXJz7lqi+Ax+LumxrguB62tqE8nwkU+MnYB5dpHpcB94H3OJLNAozVko1YzQq0HqyHMcEaw== root@linux2
ssh_config ssh_host_dsa_key ssh_host_rsa_key sshd_config ssh_host_dsa_key.pub ssh_host_rsa_key.pub
ssh_config ssh_host_dsa_key ssh_host_dsa_key.pub ssh_host_rsa_key ssh_host_rsa_key.pub
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvhALvZKSSK/uwaKBprL2euyVtVc8SFzEj7rIgk247s9E9Tn3+Xx2ANmncMUPjdvK5arWwWrKMiWW+SmCd+esYgxx47FTsqtlgVqeXgs3m7yicYwtluVraADE0c/w3Bz8MLHDm8jjR9t25anFRS4N7cIupHG8UbmIm48u2k/bevME+dUVap9QvJG7v+drcgJulnbnNtJBu9PBLwbRo0OWP4hJilQl8D4Mf8wfu8N75S1nh1t24v6JD81mxYeG1p/78DhHFJGyl3YCgSjkBSNbzhjS2EaX7lOmYCpGGhh4HmcVk5ADvT2qyBRlQZqt0WVZq01bzhf0HY31Q8IirNk9XQ== root@linux3
Время первой команды журнала | 12:56:27 2007- 5-31 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:28:56 2007- 6- 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 16.83 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 4.95 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.36 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.71 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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