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

Содержание

Журнал

Среда (05/30/07)

/dev/pts/16
12:45:39
#telnet 127.0.0.1 65535
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Connection closed by foreign host.
12:45:43
#telnet 192.168.16.2 65535
Trying 192.168.16.2...
Connected to 192.168.16.2.
Escape character is '^]'.
Connection closed by foreign host.
12:45:52
#vim /etc/hosts.allow
/dev/pts/5
12:46:02
#ping 192.168.16.2
--- 192.168.16.3 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
[root@linux1:~]# ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data.
64 bytes from 192.168.16.4: icmp_seq=1 ttl=64 time=0.177 ms
--- 192.168.16.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.177/0.177/0.177/0.000 ms
[root@linux1:~]#
                 PING 192.168.16.2 (192.168.16.2) 56(84) bytes of data.
64 bytes from 192.168.16.2: icmp_seq=1 ttl=64 time=0.249 ms
--- 192.168.16.2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.249/0.249/0.249/0.000 ms
0 packets captured
0 packets received by filter
0 packets dropped by kernel
[root@linux1:~]#
[root@linux1:~]#
[root@linux1:~]#
------------------------------------------------------------------------------------------
/dev/pts/16
12:46:19
#vim /etc/services
/dev/pts/5
12:46:20
#ping 192.168.16.3
PING 192.168.16.3 (192.168.16.3) 56(84) bytes of data.
--- 192.168.16.3 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
12:46:23
#ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data.
64 bytes from 192.168.16.4: icmp_seq=1 ttl=64 time=0.177 ms
--- 192.168.16.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.177/0.177/0.177/0.000 ms
12:46:25
#less /etc/services
/dev/pts/16
12:46:53
#vim /etc/xinetd.conf
/dev/pts/8
12:47:22
#cat /etc/services | less
/dev/pts/16
12:47:40
#man xinetd
12:47:56
#vim /etc/xinetd.conf
/dev/pts/5
12:48:06
#dpkg -l | grep inetd
afs3-errors     7006/tcp                        # error interpretation service
afs3-errors     7006/udp
afs3-bos        7007/tcp                        # basic overseer process
afs3-bos        7007/udp
afs3-update     7008/tcp                        # server-to-server updater
afs3-update     7008/udp
afs3-rmtsys     7009/tcp                        # remote cache manager service
afs3-rmtsys     7009/udp
font-service    7100/tcp        xfs             # X Font Service
font-service    7100/udp        xfs
...
bacula-fd       9102/udp
ii  openbsd-inetd                     0.20050402-6                    The OpenBSD Internet Superserver
ii  update-inetd                      4.27-0.5                        inetd.conf updater
0 packets captured
0 packets received by filter
0 packets dropped by kernel
[root@linux1:~]#
[root@linux1:~]#
[root@linux1:~]#
------------------------------------------------------------------------------------------
/dev/pts/16
12:48:38
#vim /etc/init.d/xinetd restart
12:48:53
#/etc/init.d/xinetd restart
Stopping internet superserver: xinetd.
Starting internet superserver: xinetd.
12:48:58
#telnet 192.168.16.2 33333
Trying 192.168.16.2...
Connected to 192.168.16.2.
Escape character is '^]'.
Connection closed by foreign host.
/dev/pts/5
12:49:02
#nc
afs3-volser     7005/udp
afs3-errors     7006/tcp                        # error interpretation service
afs3-errors     7006/udp
afs3-bos        7007/tcp                        # basic overseer process
afs3-bos        7007/udp
afs3-update     7008/tcp                        # server-to-server updater
afs3-update     7008/udp
afs3-rmtsys     7009/tcp                        # remote cache manager service
afs3-rmtsys     7009/udp
font-service    7100/tcp        xfs             # X Font Service
...
bacula-fd       9102/tcp                        # Bacula File Daemon
bacula-fd       9102/udp
Cmd line:
0 packets captured
0 packets received by filter
0 packets dropped by kernel
[root@linux1:~]#
[root@linux1:~]#
[root@linux1:~]#
------------------------------------------------------------------------------------------
/dev/pts/16
12:49:05
#netstat -lnp | grep :33333
tcp        0      0 0.0.0.0:33333           0.0.0.0:*               LISTEN     12404/xinetd
/dev/pts/14
12:49:06
#screen -x
/dev/pts/16
12:49:17
#vim /etc/hosts.allow
/dev/pts/5
12:49:19
#man nc
/dev/pts/16
12:49:33
#telnet 127.0.0.1 33333
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
ls -l #
итого 52
drwxr-xr-x  3 root root  1024 2007-05-21 12:18 2
drwxr-xr-x  2 root root  2048 2007-05-24 10:04 bin
drwxr-xr-x  3 root root  1024 2007-05-24 13:42 boot
lrwxrwxrwx  1 root root    11 2007-05-13 17:39 cdrom -> media/cdrom
drwxr-xr-x 14 root root  4200 2007-05-30 12:32 dev
...
lrwxrwxrwx  1 root root    25 2007-05-21 16:29 vmlinuz -> boot/vmlinuz-2.6.18-4-686
lrwxrwxrwx  1 root root    25 2007-05-13 17:41 vmlinuz.old -> boot/vmlinuz-2.6.16-2-686
drwxr-xr-x  3 root root  4096 2007-05-18 19:10 xen
drwxr-xr-x  2 root root  1024 2007-05-15 03:12 xen2
: command not found
: command not found
: command not found
^]
telnet> q
Connection closed.
/dev/pts/5
12:49:41
#cat /etc/passwd | nc -l -p 4000
afs3-volser     7005/udp
afs3-errors     7006/tcp                        # error interpretation service
afs3-errors     7006/udp
afs3-bos        7007/tcp                        # basic overseer process
afs3-bos        7007/udp
afs3-update     7008/tcp                        # server-to-server updater
afs3-update     7008/udp
afs3-rmtsys     7009/tcp                        # remote cache manager service
afs3-rmtsys     7009/udp
font-service    7100/tcp        xfs             # X Font Service
...
bacula-dir      9101/udp
bacula-fd       9102/tcp                        # Bacula File Daemon
bacula-fd       9102/udp
0 packets captured
0 packets received by filter
0 packets dropped by kernel
[root@linux1:~]#
[root@linux1:~]#
[root@linux1:~]#
------------------------------------------------------------------------------------------
/dev/pts/16
12:49:55
#vim /etc/hosts.allow
/dev/pts/5
12:50:07
#nohup cat /etc/passwd | nc -l -p 4000 &
[1] 5267
12:50:16
#netstat -lnp | grep :4000
afs3-volser     7005/udp
afs3-errors     7006/tcp                        # error interpretation service
afs3-errors     7006/udp
afs3-bos        7007/tcp                        # basic overseer process
afs3-bos        7007/udp
afs3-update     7008/tcp                        # server-to-server updater
afs3-update     7008/udp
afs3-rmtsys     7009/tcp                        # remote cache manager service
afs3-rmtsys     7009/udp
font-service    7100/tcp        xfs             # X Font Service
...
bacula-fd       9102/tcp                        # Bacula File Daemon
bacula-fd       9102/udp
tcp        0      0 0.0.0.0:4000            0.0.0.0:*               LISTEN     5267/nc
0 packets captured
0 packets received by filter
0 packets dropped by kernel
[root@linux1:~]#
[root@linux1:~]#
[root@linux1:~]#
------------------------------------------------------------------------------------------
/dev/pts/16
12:50:27
#telnet 127.0.0.1 33333
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Connection closed by foreign host.
12:50:29
#telnet 192.168.16.2 33333
Trying 192.168.16.2...
Connected to 192.168.16.2.
Escape character is '^]'.
ls -l #
итого 52
drwxr-xr-x  3 root root  1024 2007-05-21 12:18 2
drwxr-xr-x  2 root root  2048 2007-05-24 10:04 bin
drwxr-xr-x  3 root root  1024 2007-05-24 13:42 boot
lrwxrwxrwx  1 root root    11 2007-05-13 17:39 cdrom -> media/cdrom
drwxr-xr-x 14 root root  4200 2007-05-30 12:32 dev
...
drwxrwxrwt  5 root root  4096 2007-05-30 12:50 tmp
drwxr-xr-x 12 root root  4096 2007-05-22 12:13 usr
drwxr-xr-x 14 root root  4096 2007-05-13 17:40 var
lrwxrwxrwx  1 root root    25 2007-05-21 16:29 vmlinuz -> boot/vmlinuz-2.6.18-4-686
lrwxrwxrwx  1 root root    25 2007-05-13 17:41 vmlinuz.old -> boot/vmlinuz-2.6.16-2-686
drwxr-xr-x  3 root root  4096 2007-05-18 19:10 xen
drwxr-xr-x  2 root root  1024 2007-05-15 03:12 xen2
^]
telnet> q
Connection closed.
/dev/pts/5
12:50:48
#nohup cat /etc/passwd | nc -l -p 4000 &
[2] 5330
12:50:51
#telnet 127.0.0.1 4000
identd:x:103:65534::/var/run/identd:/bin/false
messagebus:x:104:105::/var/run/dbus:/bin/false
avahi:x:105:106:Avahi mDNS daemon,,,:/var/run/avahi-daemon:/bin/false
haldaemon:x:106:109:Hardware abstraction layer,,,:/home/haldaemon:/bin/false
gdm:x:107:112:Gnome Display Manager:/var/lib/gdm:/bin/false
hplip:x:108:7:HPLIP system user,,,:/var/run/hplip:/bin/false
user:x:1000:1000:user,,,:/home/user:/bin/bash
sshd:x:109:65534::/var/run/sshd:/usr/sbin/nologin
^]
telnet> q
Connection closed.
[2]+  Done                    nohup cat /etc/passwd | nc -l -p 4000
0 packets captured
0 packets received by filter
0 packets dropped by kernel
[root@linux1:~]#
[root@linux1:~]#
[root@linux1:~]#
------------------------------------------------------------------------------------------
/dev/pts/16
12:50:57
#telnet 127.0.0.1 33333

12:50:59
#cat /etc/hosts.allow
# /etc/hosts.allow: list of hosts that are allowed to access the system.
#                   See the manual pages hosts_access(5), hosts_options(5)
#                   and /usr/doc/netbase/portmapper.txt.gz
#
# Example:    ALL: LOCAL @some_netgroup
#             ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper, as well as for
# rpc.mountd (the NFS mount daemon). See portmap(8), rpc.mountd(8) and
# /usr/share/doc/portmap/portmapper.txt.gz for further information.
#
ssh : 0.0.0.0/0.0.0.0
#ALL : linux2.net.nt
echo : 192.168.16.2
bash : 127.0.0.1 : deny
bash : 192.168.16.2
ALL : 127.0.0.1
12:51:05
#cat /etc/hosts.deny
# /etc/hosts.deny: list of hosts that are _not_ allowed to access the system.
#                  See the manual pages hosts_access(5), hosts_options(5)
#                  and /usr/doc/netbase/portmapper.txt.gz
#
# Example:    ALL: some.host.name, .some.domain
#             ALL EXCEPT in.fingerd: other.host.name, .other.domain
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper. See portmap(8)
...
# The PARANOID wildcard matches any host whose name does not match its
# address.
# You may wish to enable this to ensure any programs that don't
# validate looked up hostnames still leave understandable logs. In past
# versions of Debian this has been the default.
# ALL: PARANOID
#calc: ALL
#ALL: ALL
#calc : ALL
ALL : ALL
/dev/pts/5
12:51:10
#tar cvv /etc | nc -l -p 40000
-rw-r--r-- root/root        16 2007-03-25 17:05 /etc/modprobe.d/libpisock9
-rw-r--r-- root/root      4624 2007-02-18 20:30 /etc/modprobe.d/aliases
-rw-r--r-- root/root      1406 2007-03-24 20:15 /etc/modprobe.d/blacklist
lrwxrwxrwx root/root         0 2007-05-24 20:29 /etc/modprobe.d/linux-sound-base_noOSS -> /lib/linux-sound-base/noOSS.modprobe.conf
-rw-r--r-- root/root       156 2007-02-26 19:05 /etc/modprobe.d/alsa-base-blacklist
drwxr-xr-x root/root         0 2007-05-24 20:23 /etc/sound/
drwxr-xr-x root/root         0 2007-05-24 20:33 /etc/sound/events/
-rw-r--r-- root/root     22291 2006-10-19 12:33 /etc/sound/events/gnome-2.soundlist
[1]   Done                    nohup cat /etc/passwd | nc -l -p 4000
[2]+  Stopped                 tar cvv /etc | nc -l -p 40000
0 packets captured
0 packets received by filter
0 packets dropped by kernel
[root@linux1:~]#
[root@linux1:~]#
[root@linux1:~]#
------------------------------------------------------------------------------------------
/dev/pts/16
12:52:09
#apt-get install gnome
  libtotem-plparser1 libvisual-0.4-0 libvolume-id0 libvorbisenc2 libvte-common libvte4
  libwmf0.2-7 libwnck-common libwnck18 libxaw7 libxdamage1 libxine1 libxkbfile1
  libxklavier10 libxml2-utils libxmu6 libxmuu1 libxpm4 libxres1 libxslt1.1 libxss1
  libxt6 libxtrap6 libxtst6 libxul-common libxul0d libxxf86misc1 menu-xdg metacity
  metacity-common mkisofs nautilus nautilus-cd-burner nautilus-data notification-daemon
  planner pmount powermgmt-base python-cairo python-glade2 python-gmenu python-gnome2
  python-gnome2-desktop python-gtk2 python-libxml2 python-numeric python-pyorbit
  python-support rhythmbox scrollkeeper sgml-base sgml-data shared-mime-info
  sound-juicer synaptic system-tools-backends totem totem-mozilla totem-xine unzip vino
  wodim xbase-clients xkb-data xml-core xsltproc xulrunner-gnome-support yelp zenity zip
...
  gnome-user-guide libglib-perl libcairo-perl libgtk2-perl libgnome2-canvas-perl
  libgnome2-vfs-perl libgnome2-perl libgnomevfs2-bin gnome-desktop-environment
  libgsf-gnome-1-114 libgoffice-1-common libgoffice-1-2 gnumeric-common gnumeric
  libgda2-common libgda2-3 planner libglibmm-2.4-1c2a libgtkmm-2.4-1c2a libloudmouth1-0
  inkscape gnome-office libgnomecupsui1.0-1c2a gnome-cups-manager
  gtk2-engines-spherecrystal gnome-themes-extras gnome-games-extra-data libgpod0
  libsexy2 libmpeg2-4 libsidplay1 gstreamer0.10-plugins-ugly python-gnome2 rhythmbox
  synaptic gnome-screensaver notification-daemon gnome-power-manager totem-mozilla gnome
Установить эти пакеты без проверки [y/N]? n
E: Некоторые пакеты невозможно аутентифицировать
/dev/pts/5
12:52:21
#bg
afs3-volser     7005/udp
afs3-errors     7006/tcp                        # error interpretation service
afs3-errors     7006/udp
afs3-bos        7007/tcp                        # basic overseer process
afs3-bos        7007/udp
afs3-update     7008/tcp                        # server-to-server updater
afs3-update     7008/udp
afs3-rmtsys     7009/tcp                        # remote cache manager service
afs3-rmtsys     7009/udp
font-service    7100/tcp        xfs             # X Font Service
...
bacula-fd       9102/tcp                        # Bacula File Daemon
bacula-fd       9102/udp
[2]+ tar cvv /etc | nc -l -p 40000 &
0 packets captured
0 packets received by filter
0 packets dropped by kernel
[root@linux1:~]#
[root@linux1:~]#
[root@linux1:~]#
------------------------------------------------------------------------------------------
12:52:26
#ssh 192.168.16.2
bacula-dir      9101/udp
bacula-fd       9102/tcp                        # Bacula File Daemon
bacula-fd       9102/udp
root@192.168.16.2's password:
Permission denied, please try again.
root@192.168.16.2's password:
Last login: Wed May 30 09:38:25 2007
Linux linux2 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=2646; pidfile=/root/.lilalo/l3-agent.pid
0 packets captured
0 packets received by filter
0 packets dropped by kernel
[root@linux1:~]#
[root@linux1:~]#
[root@linux1:~]#
------------------------------------------------------------------------------------------
/dev/pts/16
12:53:03
#vim /etc/apt/sources.list
12:53:22
#apt-get update ; apt-get install gnome -y
  gimp-help gimp-python libgimp-perl gimp-data-extras cpufreqd cpudyn powernowd
  esound-clients gnome-audio gnome-hearts gnucash ntp wvdial gnumeric-doc
  gnumeric-plugins-extra gs-cjk-resource gtk-engines-pixmap hal-device-manager
  libxml-xql-perl python-xml skencil libartsc0 libaudio2 aspell cupsys-common libdv-bin
  gda2-mysql gda2-postgres gda2-odbc gda2-sqlite gda2-freetds gstreamer0.10-tools
  gstreamer0.10-plugins libgtk2-perl-doc libgtkhtml3.8-dbg liblcms-utils libopal-dev
  jpilot pilot-link malsync kpilot gnome-pilot sylpheed-claws sylpheed-claws-gtk2
  sylpheed libraw1394-doc librsvg2-bin sidplay-base xsidplay cryptsetup
  python-gnome2-desktop-doc python-numeric-tutorial sgml-base-doc perlsgml doc-html-w3
  opensp dwww tsclient mesa-utils
...
Получено:63 http://debian.org.ua etch/main libstartup-notification0 0.8-2 [19,4kB]
Получено:64 http://debian.org.ua etch/main libgnome-desktop-2 2.14.3-2 [74,8kB]
Получено:65 http://debian.org.ua etch/main libgnome-menu2 2.16.1-3 [61,5kB]
Получено:66 http://debian.org.ua etch/main gdb 6.4.90.dfsg-1 [2411kB]
Получено:67 http://debian.org.ua etch/main libxslt1.1 1.1.19-1 [216kB]
Получено:68 http://debian.org.ua etch/main libscrollkeeper0 0.3.14-13 [147kB]
Получено:69 http://debian.org.ua etch/main sgml-base 1.26 [11,7kB]
Получено:70 http://debian.org.ua etch/main xml-core 0.09-0.1 [21,5kB]
Получено:71 http://debian.org.ua etch/main sgml-data 2.0.3 [279kB]
Получено:72 http://debian.org.ua etch/main docbook-xml 4.4-5 [339kB]
12:53:39
#tar c /etc | nc -l -p 40000
tar: Удаляется начальный `/' из имен объектов
Can't grab 0.0.0.0:40000 with bind
12:54:07
#tar cz /home | nc -l -p 40000
tar: Удаляется начальный `/' из имен объектов
Can't grab 0.0.0.0:40000 with bind
12:55:20
#telnet 127.0.0.1 50000
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
12:58:00
#telnet 127.0.0.1 110
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
12:58:07
#telnet 192.168.16.2 111
Trying 192.168.16.2...
Connected to 192.168.16.2.
Escape character is '^]'.
ls#
: command not foundls#
ls;
1
12
123
1.gif
...
-rw-r--r-- 1 root root    0 2007-05-22 10:57 ODINAKOVONEoDinakovoRAVNO
-rw-r--r-- 1 root root    0 2007-05-22 10:57 ODINAKOVO_NEoDinakovo_RAVNO
-rw-r--r-- 1 root root 5,3K 2007-05-22 10:48 userapp
-rw-r--r-- 1 root root   25 2007-05-22 13:48 user_passwd
-rwxr-xr-x 1 root root   42 2007-05-22 11:05 var
: command not found
exit
: command not foundexit
exit;
Connection closed by foreign host.
/dev/pts/8
13:00:53
#man nc
/dev/pts/16
13:01:29
#ssh 192.168.16.2 -p 22000
root@192.168.16.2's password:
Permission denied, please try again.
root@192.168.16.2's password:
Last login: Wed May 30 09:49:21 2007 from 192.168.16.1
Linux linux2 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=2646; pidfile=/root/.lilalo/l3-agent.pid
13:05:28
#ssh 192.168.16.2 -p 22
root@192.168.16.2's password:
Last login: Wed May 30 10:00:20 2007 from localhost
Linux linux2 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=2646; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/20
13:06:09
#netstat -lnp | grep :80
libglibmm-2.4-1c2a-dbg - C++ wrapper for the GLib toolkit (debug symbols)
libglibmm-2.4-dev - C++ wrapper for the GLib toolkit (development files)
libgnetwork1.0-0 - networking wrapper library using Glib/GObject
libgnetwork1.0-dev - networking wrapper library using Glib/GObject (development files)
libgnome-cil - CLI binding for GNOME
libgnome-desktop-2 - Utility library for loading .desktop files - runtime files
libgnome-desktop-dev - Utility library for loading .desktop files - development files
libgnome-dev - The GNOME libraries -- development package
libgnome-keyring-dev - Development files for GNOME keyring service
libgnome-keyring0 - GNOME keyring services library
...
libgnome-mag2 - screen magnification library for the GNOME desktop (shared library)
libgnome-media-dev - development libraries for the GNOME media utilities
libgnome-media0 - runtime libraries for the GNOME media utilities
libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME
[root@linux1:~]#
[root@linux1:~]# ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data.
From 192.168.16.1 icmp_seq=2 Destination Host Unreachable
From 192.168.16.1 icmp_seq=3 Destination Host Unreachable
From 192.168.16.1 icmp_seq=4 Destination Host Unreachable
13:07:22
#apt-cache search apache
libapache-mod-auth-radius - Apache module for RADIUS authentication
libapache-mod-auth-shadow - An Apache module for authentication using /etc/shadow
libapache-mod-auth-useragent - blocks parts of service for certain user agents
libapache-mod-backhand - Load balancing module for Apache web server
libapache-mod-cgi-debug - Easier debugging of CGI scripts
libapache-mod-choke - concurrent connections per IP and data transfer rate limiter for Apache
libapache-mod-chroot - run Apache in a secure chroot environment
libapache-mod-dav - A DAV module for Apache
libapache-mod-dosevasive - evasive module to minimize HTTP DoS or brute force attacks
libapache-mod-encoding - Apache module for non-ascii filename interoperability
...
libfile-mmagic-perl - Perl module to guess file type
libhtml-embperl-perl - Library for embedding perl in HTML
libhtml-lint-perl - Check for HTML errors in a string or file
libhtml-mason-perl-examples - HTML::Mason example setup
libiconv-hook1 - extension of iconv for libapache-mod-encoding
libjaxme-java - implementation of the JAXB specification for Java/XML binding
libjaxp1.2-java - Java XML parser and transformer APIs (DOM, SAX, JAXP, TrAX)
liblog-log4perl-perl - A Perl port of the widely popular log4j logging package.
liblog4cpp-doc - A C++ library for flexible logging (documentation)
liblog4cpp4 - C++ library for flexible logging (runtime)
13:07:32
#apt-get install apache
Настраивается пакет libaprutil1 (1.2.7+dfsg-2) ...
Настраивается пакет apache2-utils (2.2.3-4) ...
Настраивается пакет apache-common (1.3.34-4.1) ...
Настраивается пакет apache (1.3.34-4.1) ...
Creating config file /etc/apache/httpd.conf with new version
Creating config file /etc/apache/srm.conf with new version
Creating config file /etc/apache/access.conf with new version
Creating config file /etc/apache/modules.conf with new version
Starting apache 1.3 web server....
[root@linux1:~]#
[root@linux1:~]# ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data.
From 192.168.16.1 icmp_seq=2 Destination Host Unreachable
From 192.168.16.1 icmp_seq=3 Destination Host Unreachable
From 192.168.16.1 icmp_seq=4 Destination Host Unreachable
13:08:21
#apt-cache search apache | grep php
libapache-mod-php4 - server-side, HTML-embedded scripting language (apache 1.3 module)
libapache-mod-php5 - server-side, HTML-embedded scripting language (apache 1.3 module)
libapache-mod-suphp - Apache module to run php scripts with the owner permissions
libapache2-mod-php4 - server-side, HTML-embedded scripting language (apache 2 module)
libapache2-mod-php5 - server-side, HTML-embedded scripting language (apache 2 module)
libapache2-mod-suphp - Apache2 module to run php scripts with the owner permissions
myphpmoney - Finance manager written in PHP
php4-apache2-mod-bt - PHP bindings for mod_bt
php4-cgi - server-side, HTML-embedded scripting language (CGI binary)
php4-mapscript - module for php4-cgi to use mapserver
php5-apache2-mod-bt - PHP bindings for mod_bt
php5-cgi - server-side, HTML-embedded scripting language (CGI binary)
php5-mapscript - module for php5-cgi to use mapserver
suphp-common - Common files for mod suphp
13:08:36
#apt-get install php5-mapscript php5-cgi php5-apache2-mod-bt
Настраивается пакет php5-cgi (5.2.0-8+etch1) ...
Creating config file /etc/php5/cgi/php.ini with new version
Настраивается пакет php5-apache2-mod-bt (0.0.19+p4.2296-1) ...
Настраивается пакет libxerces27 (2.7.0-3) ...
Настраивается пакет unixodbc (2.2.11-13) ...
Настраивается пакет libgdal1-1.3.2 (1.3.2-4) ...
Настраивается пакет proj (4.4.9d-2) ...
Настраивается пакет php5-mapscript (4.10.0-5+etch1) ...
[root@linux1:~]#
[root@linux1:~]# ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data.
From 192.168.16.1 icmp_seq=2 Destination Host Unreachable
From 192.168.16.1 icmp_seq=3 Destination Host Unreachable
From 192.168.16.1 icmp_seq=4 Destination Host Unreachable
/dev/pts/18
13:09:07
#yes BBBB | nc 192.168.16.2 40000
AAAA
AAAA
AAAA
AAAA
AAAA
AAAA
AAAA
AAAA
AAAA
AAAA
...
AAAA
AAAA
AAAA
AAAA
AAAA
AAAA
AAAA
AAAA
AAAA
A
13:11:45
#ssh 192.168.16.2
root@192.168.16.2's password:
Last login: Wed May 30 12:04:43 2007
Linux linux2 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=2646; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/8
13:12:13
#man yes
/dev/pts/20
13:13:07
#netstat -lnp | grep :80
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     13433/apache
13:13:15
#apt-
libglibmm-2.4-1c2a-dbg - C++ wrapper for the GLib toolkit (debug symbols)
libglibmm-2.4-dev - C++ wrapper for the GLib toolkit (development files)
libgnetwork1.0-0 - networking wrapper library using Glib/GObject
libgnetwork1.0-dev - networking wrapper library using Glib/GObject (development files)
libgnome-cil - CLI binding for GNOME
libgnome-desktop-2 - Utility library for loading .desktop files - runtime files
libgnome-desktop-dev - Utility library for loading .desktop files - development files
libgnome-dev - The GNOME libraries -- development package
libgnome-keyring-dev - Development files for GNOME keyring service
libgnome-keyring0 - GNOME keyring services library
...
libgnome-mag2 - screen magnification library for the GNOME desktop (shared library)
libgnome-media-dev - development libraries for the GNOME media utilities
libgnome-media0 - runtime libraries for the GNOME media utilities
libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME
[root@linux1:~]#
[root@linux1:~]# ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data.
From 192.168.16.1 icmp_seq=2 Destination Host Unreachable
From 192.168.16.1 icmp_seq=3 Destination Host Unreachable
From 192.168.16.1 icmp_seq=4 Destination Host Unreachable
13:13:34
#apt-get install w3m
libgnome-cil - CLI binding for GNOME
libgnome-desktop-2 - Utility library for loading .desktop files - runtime files
libgnome-desktop-dev - Utility library for loading .desktop files - development files
libgnome-dev - The GNOME libraries -- development package
libgnome-keyring-dev - Development files for GNOME keyring service
libgnome-keyring0 - GNOME keyring services library
libgnome-mag-dev - screen magnification library for the GNOME desktop (development headers
)
libgnome-mag2 - screen magnification library for the GNOME desktop (shared library)
libgnome-media-dev - development libraries for the GNOME media utilities
...
Чтение списков пакетов... Готово
Построение дерева зависимостей... Готово
Уже установлена самая новая версия w3m.
обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
[root@linux1:~]#
[root@linux1:~]# ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data.
From 192.168.16.1 icmp_seq=2 Destination Host Unreachable
From 192.168.16.1 icmp_seq=3 Destination Host Unreachable
From 192.168.16.1 icmp_seq=4 Destination Host Unreachable
13:13:48
#w3m http://127.0.0.1/
The owner of this web site has not put up any web pages yet. Please come back later.
Move along, nothing to see here... :-)
If you are trying to locate the administrator of this machine
If you want to report something about this host's behavior, please contact the Internet Service Provider (ISP) involved
directly.
See the Network Abuse Clearinghouse for how to do this.
If you are the administrator of this machine
The initial installation of Debian's apache web server package was successful.
You should replace this page with your own web pages as soon as possible.
Unless you changed its configuration, your new server is configured as follows:
...
  • CGI scripts are looked for in /usr/lib/cgi-bin, which is where Debian packages will place their scripts.
  • Log files are placed in /var/log/apache, and will be rotated weekly. The frequency of rotation can be easily changed by
    editing /etc/logrotate.d/apache.
  • The default directory index is index.html, meaning that requests for a directory /foo/bar/ will give the contents of the
    file /var/www/foo/bar/index.html if it exists (assuming that /var/www is your DocumentRoot).
  • User directories are enabled, and user documents will be looked for in the public_html directory of the users' homes.
    These dirs should be under /home, and users will not be able to symlink to files they don't own.
All the standard apache modules are available with this release and are now managed with debconf. Type dpkg-reconfigure apache
to select which modules you want enabled. Many other modules are available through the Debian package system with the names
1,02/5,13kb  20%                           ||||||||||||||||
13:14:09
#apt-get install lynx
libgnome-media0 - runtime libraries for the GNOME media utilities
libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME
Чтение списков пакетов... Готово
Построение дерева зависимостей... Готово
НОВЫЕ пакеты, которые будут установлены:
  lynx
обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
Необходимо скачать 1859kБ архивов.
После распаковки объем занятого дискового пространства возрастёт на 4678kB.
Получено:1 http://debian.org.ua etch/main lynx 2.8.5-2sarge2.2 [1859kB]
Получено 1859kB за 9s (197kB/c)
Выбор ранее не выбранного пакета lynx.
(Чтение базы данных... на данный момент установлено 85053 файлов и каталогов.)
Распаковывается пакет lynx (из файла .../lynx_2.8.5-2sarge2.2_i386.deb)...
Настраивается пакет lynx (2.8.5-2sarge2.2) ...
[root@linux1:~]#
[root@linux1:~]# ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data.
From 192.168.16.1 icmp_seq=2 Destination Host Unreachable
From 192.168.16.1 icmp_seq=3 Destination Host Unreachable
From 192.168.16.1 icmp_seq=4 Destination Host Unreachable
13:14:30
#lynx http://127.0.0.1/
13:15:51
#ssh clint@net.nt
  177             </P
  134 ><H3
  178 CL/DD="OTHERCREDIT"
  180 ></DIV
  179 ></DL
  182     </P
  139 >Pedro Larroy</H3
  184 ></P
  185 ></DIV
  186 ></DIV
...
  170 CLASS="COMMAND"
  171 >áÎÄÒÅÊ ëÉÓÅÌ£×</B
  172 > (kis_an [at] mail.ru),-
  173               <B
  174 CLASS="COMMAND"
  175 >é×ÁÎ ðÅÓÉÎ</B
  176 > (ipesin [at] n-ix.com.ua)
  177             </P                                                                                                          рху
  178 ></DD
                                                                                                             133,1          0%
13:18:28
#vim /etc/apache/httpd.conf
/dev/pts/8
13:27:02
#ssh 192.168.16.2
ssh_exchange_identification: Connection closed by remote host
13:27:18
#ldd
[root@linux1:~]# netstat -lnp | grep :4000
tcp        0      0 0.0.0.0:4000            0.0.0.0:*               LISTEN     5267/nc
[root@linux1:~]# telnet 127.0.0.GET / HTTP/1.1
Host: 192.168.16.1:4000
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.11) Gecko/20070324 (Debian-1.
8.0.11-2) Epiphany/2.14
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,im
age/png,*/*;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
ldd: missing file arguments
Try `ldd --help' for more information.
[root@linux1:~]#
------------------------------------------------------------------------------------------
13:27:24
#ssh 192.168.16.2
[root@linux1:~]#
[root@linux1:~]# netstat -lnp | grep :4000
tcp        0      0 0.0.0.0:4000            0.0.0.0:*               LISTEN     5267/nc
[root@linux1:~]# telnet 127.0.0.GET / HTTP/1.1
Host: 192.168.16.1:4000
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.11) Gecko/20070324 (Debian-1.
8.0.11-2) Epiphany/2.14
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,im
age/png,*/*;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
ssh: 192.168.16.2nc: Name or service not known
[root@linux1:~]#
------------------------------------------------------------------------------------------
/dev/pts/20
13:27:55
#/etc/init.d/apache2 restart
libglibmm-2.4-1c2a-dbg - C++ wrapper for the GLib toolkit (debug symbols)
libglibmm-2.4-dev - C++ wrapper for the GLib toolkit (development files)
libgnetwork1.0-0 - networking wrapper library using Glib/GObject
libgnetwork1.0-dev - networking wrapper library using Glib/GObject (development files)
libgnome-cil - CLI binding for GNOME
libgnome-desktop-2 - Utility library for loading .desktop files - runtime files
libgnome-desktop-dev - Utility library for loading .desktop files - development files
libgnome-dev - The GNOME libraries -- development package
libgnome-keyring-dev - Development files for GNOME keyring service
libgnome-keyring0 - GNOME keyring services library
...
libgnome-mag2 - screen magnification library for the GNOME desktop (shared library)
libgnome-media-dev - development libraries for the GNOME media utilities
libgnome-media0 - runtime libraries for the GNOME media utilities
libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME
[root@linux1:~]#
[root@linux1:~]# ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data.
From 192.168.16.1 icmp_seq=2 Destination Host Unreachable
From 192.168.16.1 icmp_seq=3 Destination Host Unreachable
From 192.168.16.1 icmp_seq=4 Destination Host Unreachable
13:28:06
#netstat -lnp |
>
13:28:13
#netstat -lnp | grep :80
libglibmm-2.4-dev - C++ wrapper for the GLib toolkit (development files)
libgnetwork1.0-0 - networking wrapper library using Glib/GObject
libgnetwork1.0-dev - networking wrapper library using Glib/GObject (development files)
libgnome-cil - CLI binding for GNOME
libgnome-desktop-2 - Utility library for loading .desktop files - runtime files
libgnome-desktop-dev - Utility library for loading .desktop files - development files
libgnome-dev - The GNOME libraries -- development package
libgnome-keyring-dev - Development files for GNOME keyring service
libgnome-keyring0 - GNOME keyring services library
libgnome-mag-dev - screen magnification library for the GNOME desktop (development headers
...
libgnome-media-dev - development libraries for the GNOME media utilities
libgnome-media0 - runtime libraries for the GNOME media utilities
libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     13433/apache
[root@linux1:~]#
[root@linux1:~]# ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data.
From 192.168.16.1 icmp_seq=2 Destination Host Unreachable
From 192.168.16.1 icmp_seq=3 Destination Host Unreachable
From 192.168.16.1 icmp_seq=4 Destination Host Unreachable
13:28:17
#lynx 192.168.16.1/lartc.html
13:28:36
#w3m 192.168.16.1/lartc.html
2.4. äÏÐÏÌÎÉÔÅÌØÎÙÅ ÚÁÍÅÞÁÎÉÑ
         äÏÐÏÌÎÉÔÅÌØÎÙÅ ÚÁÍÅÞÁÎÉÑ
åÓÔØ ÎÅÓËÏÌØËÏ ÚÁÍÅÞÁÎÉÊ, ÏÔÎÏÓÉÔÅÌØÎÏ ÜÔÏÇÏ ÄÏËÕÍÅÎÔÁ, ËÏÔÏÒÙÅ ÈÏÔÅÌÏÓØ ÂÙ ÏÓÏÂÏ ÏÔÍÅÔÉÔØ. ðÏ ÂÏÌØÃCÞÁÓÔÉ ÜÔÏÔ ÄÏËÕÍÅÎÔ ÂÙÌ
ÎÁÐÉÓÁÎ ÍÎÏÀ, ÎÏ ÍÎÅ ÎÅ ÈÏÔÅÌÏÓØ ÂÙ, ÞÔÏÂÙ ÜÔÏ ÐÏÌÏÖÅÎÉÅ ×ÅÝÅÊ ÏÓÔÁ×ÁÌÏÓØ ÔÁËÉÍ É ÄÁÌØÃCñ Ñ×ÌÑÀÓØ ÕÂÅÖÄÅÎÎÙÍ ÓÔÏÒÏÎÎÉËÏÍ
ÉÄÅÊ Open Source É ÐÏÔÏÍÕ ÐÒÉÚÙ×ÁÀ ×ÁÓ ×ÎÏÓÉÔØ Ó×ÏÉ ÉÚÍÅÎÅÎÉÑ, ÉÓÐÒÁ×ÌÅÎÉÑ, ÄÏÐÏÌÎÅÎÉÑ É ÐÒ. îÅ ÓÔÅÓÎÑÊÔÅÓØ ÓÏÏÂÝÁÔØ ÍÎÅ Ï
åÓÌÉ ×Ù Õ×ÅÒÅÎÙ × ÔÏÍ, ÞÔÏÃÕÒÏ×ÅÎ؃×ÁÃCË×ÁÌÉÆÉËÁÃÉÉÃÐÏÚ×ÏÌÑÅÔÃ×Á͑ÏËÁÚÁÔØÃÐÏÄÄÅÒÖËÕÃÔÏÍÕ-ÉÌÉ ÉÎÏÍÕÃÒÁÚÄÅÌՏÄÏËÕÍÅÎÔÁ ÉÌÉ ×Ù
× ÓÏÓÔÏÑÎÉɘÎÁÐÉÓÁÔ؅É ÐÏÄÄÅÒÖÉ×ÁÔخÎÏ×ÙŔÒÁÚÄÅÌٓ--ÃÄÏÂÒÏÃÐÏÖÁÌÏ×ÁÔØ!Ã¼Ã”Ï HOWTOÃÄÏÓÔÕÐÎωÞÅÒÅÚ CVS, × ÆÏÒÍÁÔÅ SGML. ñ ÂÕÄÕ
ÔÏÌØËÏ ÒÁÄ, ÅÓÌÉ ÞÉÓÌÏ ÓÏÁ×ÔÏÒÏ× Õ×ÅÌÉÞÉÔÓÑ.
÷ ÐÏÉÓËÅ ÓÌÁÂÏ ÏÓ×ÅÝÅÎÎÙÈ ÔÅÍ ×ÁÍ ÐÏÍÏÇÕÔ ÐÒÉÍÅÞÁÎÉÑ "FIXME". öÅÌÁÅÔÅ ×ÎÅÓÔÉ ÉÓÐÒÁ×ÌÅÎÉÑ -- ×ÓÅÇÄÁ ÐÏÖÁÌÕÊÓÔÁ! ÷ÅÚÄÅ, ÇÄÅ ×Ù
×ÓÔÒÅÔÉÔÅ ÓÌÏ×Ï "FIXME", ÚÎÁÊÔÅ, ÞÔÏ ×Ù ×ÓÔÕÐÁÅÔÅ ÎÁ ÎÅÉÚ×ÅÄÁÎÎÕÀ ÔÅÒÒÉÔÏÒÉÀ. ñ ÎÅ ÂÅÒÕÓØ ÕÔ×ÅÒÖÄÁÔØ, ÞÔÏ × ÄÒÕÇÉÈ ÍÅÓÔÁÈ ÎÅÔ
ÏÃCÎÏ ÚÄÅÓØ ×ÁÍ ÓÌÅÄÕÅÔ ÂÙÔØ ÏÓÏÂÅÎÎÏ ÏÓÔÏÒÏÖÎÙÍÉ. åÓÌÉ ×Ù ÓÍÏÇÌÉ ÐÏÄÔ×ÅÒÄÉÔØ ÐÒÁ×ÉÌØÎÏÓÔØ ÔÏÇÏ ÉÌÉ ÉÎÏÇÏ ÐÒÅÄÐÏÌÏÖÅÎÉÑ,
    3.2. ëÒÁÔËÉÊ ÏÂÚÏÒ iproute2
    3.3. îÅÏÂÈÏÄÉÍÙÅ ÕÓÌÏ×ÉÑ
    3.4. ôÅËÕÝÁÑ ËÏÎÆÉÇÕÒÁÃÉÑ
ÐÏÖÁÌÕÊÓÔÁ, ÓÏÏÂÝÉÔÅ ÎÁÍ, ÞÔÏÂÙ ÍÙ ÍÏÇÌÉ ÕÄÁÌÉÔØ ÐÒÉÍÅÞÁÎÉÅ "FIXME".
        3.4.2. ðÒÏÓÍÏÔÒ ÓÐÉÓËÁ IP-ÁÄÒÅÓÏ× Ó ÐÏÍÏÝØÀ ÕÔÉÌÉÔÙ ip
        3.4.3. ðÒÏÓÍÏÔÒ ÓÐÉÓËÁ ÍÁÒÃ39;49m”â
    3.5. ARPÁÎÉÅ
≪ ↑ ↓ Viewing <Linux Advanced Routing & Traffic Control HOWTO>
13:28:58
#]
libglibmm-2.4-dev - C++ wrapper for the GLib toolkit (development files)
libgnetwork1.0-0 - networking wrapper library using Glib/GObject
libgnetwork1.0-dev - networking wrapper library using Glib/GObject (development files)
libgnome-cil - CLI binding for GNOME
libgnome-desktop-2 - Utility library for loading .desktop files - runtime files
libgnome-desktop-dev - Utility library for loading .desktop files - development files
libgnome-dev - The GNOME libraries -- development package
libgnome-keyring-dev - Development files for GNOME keyring service
libgnome-keyring0 - GNOME keyring services library
libgnome-mag-dev - screen magnification library for the GNOME desktop (development headers
...
libgnome-media-dev - development libraries for the GNOME media utilities
libgnome-media0 - runtime libraries for the GNOME media utilities
libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME
bash: ]: command not found
[root@linux1:~]#
[root@linux1:~]# ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data.
From 192.168.16.1 icmp_seq=2 Destination Host Unreachable
From 192.168.16.1 icmp_seq=3 Destination Host Unreachable
From 192.168.16.1 icmp_seq=4 Destination Host Unreachable
13:29:29
#host avega.kiev.ua
avega.kiev.ua has address 195.182.7.254
avega.kiev.ua mail is handled by 10 mail.avega.kiev.ua.
13:29:39
#host 195.182.7.254
libglibmm-2.4-dev - C++ wrapper for the GLib toolkit (development files)
libgnetwork1.0-0 - networking wrapper library using Glib/GObject
libgnetwork1.0-dev - networking wrapper library using Glib/GObject (development files)
libgnome-cil - CLI binding for GNOME
libgnome-desktop-2 - Utility library for loading .desktop files - runtime files
libgnome-desktop-dev - Utility library for loading .desktop files - development files
libgnome-dev - The GNOME libraries -- development package
libgnome-keyring-dev - Development files for GNOME keyring service
libgnome-keyring0 - GNOME keyring services library
libgnome-mag-dev - screen magnification library for the GNOME desktop (development headers
...
libgnome-media-dev - development libraries for the GNOME media utilities
libgnome-media0 - runtime libraries for the GNOME media utilities
libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME
254.7.182.195.in-addr.arpa domain name pointer hosting.crossfire.net.ua.
[root@linux1:~]#
[root@linux1:~]# ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data.
From 192.168.16.1 icmp_seq=2 Destination Host Unreachable
From 192.168.16.1 icmp_seq=3 Destination Host Unreachable
From 192.168.16.1 icmp_seq=4 Destination Host Unreachable
13:29:47
#dig avega.kiev.ua
;avega.kiev.ua.                 IN      A
;; ANSWER SECTION:
avega.kiev.ua.          86341   IN      A       195.182.7.254
;; AUTHORITY SECTION:
avega.kiev.ua.          86370   IN      NS      ns.avega.kiev.ua.
;; ADDITIONAL SECTION:
ns.avega.kiev.ua.       86370   IN      A       195.182.7.254
;; Query time: 89 msec
;; SERVER: 192.168.16.15#53(192.168.16.15)
;; WHEN: Wed May 30 13:30:09 2007
;; MSG SIZE  rcvd: 80
[root@linux1:~]#
[root@linux1:~]# ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data.
From 192.168.16.1 icmp_seq=2 Destination Host Unreachable
From 192.168.16.1 icmp_seq=3 Destination Host Unreachable
From 192.168.16.1 icmp_seq=4 Destination Host Unreachable
13:30:09
#host ns.avega.kiev.ua
libglibmm-2.4-dev - C++ wrapper for the GLib toolkit (development files)
libgnetwork1.0-0 - networking wrapper library using Glib/GObject
libgnetwork1.0-dev - networking wrapper library using Glib/GObject (development files)
libgnome-cil - CLI binding for GNOME
libgnome-desktop-2 - Utility library for loading .desktop files - runtime files
libgnome-desktop-dev - Utility library for loading .desktop files - development files
libgnome-dev - The GNOME libraries -- development package
libgnome-keyring-dev - Development files for GNOME keyring service
libgnome-keyring0 - GNOME keyring services library
libgnome-mag-dev - screen magnification library for the GNOME desktop (development headers
...
libgnome-media-dev - development libraries for the GNOME media utilities
libgnome-media0 - runtime libraries for the GNOME media utilities
libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME
ns.avega.kiev.ua has address 195.182.7.254
[root@linux1:~]#
[root@linux1:~]# ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data.
From 192.168.16.1 icmp_seq=2 Destination Host Unreachable
From 192.168.16.1 icmp_seq=3 Destination Host Unreachable
From 192.168.16.1 icmp_seq=4 Destination Host Unreachable
13:30:23
#host ns.avega.kiev.ua
libglibmm-2.4-1c2a-dbg - C++ wrapper for the GLib toolkit (debug symbols)
libglibmm-2.4-dev - C++ wrapper for the GLib toolkit (development files)
libgnetwork1.0-0 - networking wrapper library using Glib/GObject
libgnetwork1.0-dev - networking wrapper library using Glib/GObject (development files)
libgnome-cil - CLI binding for GNOME
libgnome-desktop-2 - Utility library for loading .desktop files - runtime files
libgnome-desktop-dev - Utility library for loading .desktop files - development files
libgnome-dev - The GNOME libraries -- development package
libgnome-keyring-dev - Development files for GNOME keyring service
libgnome-keyring0 - GNOME keyring services library
...
libgnome-mag2 - screen magnification library for the GNOME desktop (shared library)
libgnome-media-dev - development libraries for the GNOME media utilities
libgnome-media0 - runtime libraries for the GNOME media utilities
libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME
[root@linux1:~]#
[root@linux1:~]# ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data.
From 192.168.16.1 icmp_seq=2 Destination Host Unreachable
From 192.168.16.1 icmp_seq=3 Destination Host Unreachable
From 192.168.16.1 icmp_seq=4 Destination Host Unreachable
13:31:15
#whois hosting.crossfire.net.ua
% Ukrainian Whois server.
% Please visit http://whois.com.ua for more information.
% Rights restricted by copyright.
%
%
% % .UA whois
% REDIRECT BEGIN
% No entries found for HOSTING.CROSSFIRE.NET.UA
% REDIRECT END
% % .UA whois
13:31:22
#dig avega.kiev.ua
;avega.kiev.ua.                 IN      A
;; ANSWER SECTION:
avega.kiev.ua.          86249   IN      A       195.182.7.254
;; AUTHORITY SECTION:
avega.kiev.ua.          86278   IN      NS      ns.avega.kiev.ua.
;; ADDITIONAL SECTION:
ns.avega.kiev.ua.       86278   IN      A       195.182.7.254
;; Query time: 94 msec
;; SERVER: 192.168.16.15#53(192.168.16.15)
;; WHEN: Wed May 30 13:31:42 2007
;; MSG SIZE  rcvd: 80
[root@linux1:~]#
[root@linux1:~]# ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data.
From 192.168.16.1 icmp_seq=2 Destination Host Unreachable
From 192.168.16.1 icmp_seq=3 Destination Host Unreachable
From 192.168.16.1 icmp_seq=4 Destination Host Unreachable
13:31:42
#host avega.kiev.ua
avega.kiev.ua has address 195.182.7.254
avega.kiev.ua mail is handled by 10 mail.avega.kiev.ua.
13:31:49
#lynx avega.kiev.ua
13:32:28
#lynx svl.kiev.ua
13:34:08
#ls -l /etc/apache
apache/  apache2/
13:34:08
#ls -l /etc/apache/
итого 52
-rw-r--r-- 1 root root   285 2007-05-30 13:08 access.conf
drwxr-xr-x 2 root root  4096 2007-05-30 13:12 conf.d
-rw-r--r-- 1 root root 35458 2007-05-30 13:27 httpd.conf
lrwxrwxrwx 1 root root    15 2007-05-30 13:08 mime.types -> /etc/mime.types
-rw-r--r-- 1 root root  1171 2007-05-30 13:12 modules.conf
-rw-r--r-- 1 root root   297 2007-05-30 13:08 srm.conf
13:34:24
#ssh linux2]
ssh: linux2]: Name or service not known
13:34:30
#ssh linux2
ssh: linux2: Name or service not known
13:34:31
#ssh 192.168.16.2
libglibmm-2.4-dev - C++ wrapper for the GLib toolkit (development files)
libgnetwork1.0-0 - networking wrapper library using Glib/GObject
libgnetwork1.0-dev - networking wrapper library using Glib/GObject (development files)
libgnome-cil - CLI binding for GNOME
libgnome-desktop-2 - Utility library for loading .desktop files - runtime files
libgnome-desktop-dev - Utility library for loading .desktop files - development files
libgnome-dev - The GNOME libraries -- development package
libgnome-keyring-dev - Development files for GNOME keyring service
libgnome-keyring0 - GNOME keyring services library
libgnome-mag-dev - screen magnification library for the GNOME desktop (development headers
...
libgnome-media-dev - development libraries for the GNOME media utilities
libgnome-media0 - runtime libraries for the GNOME media utilities
libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME
ssh_exchange_identification: Connection closed by remote host
[root@linux1:~]#
[root@linux1:~]# ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data.
From 192.168.16.1 icmp_seq=2 Destination Host Unreachable
From 192.168.16.1 icmp_seq=3 Destination Host Unreachable
From 192.168.16.1 icmp_seq=4 Destination Host Unreachable
13:34:47
#ssh 192.168.16.4
libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME
The authenticity of host '192.168.16.4 (192.168.16.4)' can't be established.
RSA key fingerprint is de:b0:ed:bc:87:d4:04:46:f8:f9:26:31:c3:84:2a:63.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.16.4' (RSA) to the list of known hosts.
root@192.168.16.4's password:
Last login: Wed May 30 16:38:14 2007
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.
l3-agent is already running: pid=2503; pidfile=/root/.lilalo/l3-agent.pid
[root@linux1:~]#
[root@linux1:~]# ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data.
From 192.168.16.1 icmp_seq=2 Destination Host Unreachable
From 192.168.16.1 icmp_seq=3 Destination Host Unreachable
From 192.168.16.1 icmp_seq=4 Destination Host Unreachable
/dev/pts/8
13:36:38
#ssh root@192.168.16.2
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!                                             !!!!!!
!!!!!!          WELLCOME TO LINUX DEBIAN           !!!!!!
!!!!!!                                             !!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
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=2646; pidfile=/root/.lilalo/l3-agent.pid
[root@linux1:~]#
------------------------------------------------------------------------------------------
13:37:05
#exit
[root@linux1:~]# netstat -lnp | grep :4000
tcp        0      0 0.0.0.0:4000            0.0.0.0:*               LISTEN     5267/nc
[root@linux1:~]# telnet 127.0.0.GET / HTTP/1.1
Host: 192.168.16.1:4000
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.11) Gecko/20070324 (Debian-1.
8.0.11-2) Epiphany/2.14
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,im
age/png,*/*;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
exit
Connection to 192.168.16.2 closed.
[root@linux1:~]#
------------------------------------------------------------------------------------------
13:37:16
#cd /etc/host.conf
bash: cd: /etc/host.conf: Not a directory
/dev/pts/20
13:45:23
#ssh 192.168.16.2
libglibmm-2.4-dev - C++ wrapper for the GLib toolkit (development files)
libgnetwork1.0-0 - networking wrapper library using Glib/GObject
libgnetwork1.0-dev - networking wrapper library using Glib/GObject (development files)
libgnome-cil - CLI binding for GNOME
libgnome-desktop-2 - Utility library for loading .desktop files - runtime files
libgnome-desktop-dev - Utility library for loading .desktop files - development files
libgnome-dev - The GNOME libraries -- development package
libgnome-keyring-dev - Development files for GNOME keyring service
libgnome-keyring0 - GNOME keyring services library
libgnome-mag-dev - screen magnification library for the GNOME desktop (development headers
...
libgnome-media-dev - development libraries for the GNOME media utilities
libgnome-media0 - runtime libraries for the GNOME media utilities
libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME
ssh: connect to host 192.168.16.2 port 22: No route to host
[root@linux1:~]#
[root@linux1:~]# ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data.
From 192.168.16.1 icmp_seq=2 Destination Host Unreachable
From 192.168.16.1 icmp_seq=3 Destination Host Unreachable
From 192.168.16.1 icmp_seq=4 Destination Host Unreachable
13:47:28
#ssh 192.168.16.2
libglibmm-2.4-1c2a-dbg - C++ wrapper for the GLib toolkit (debug symbols)
libglibmm-2.4-dev - C++ wrapper for the GLib toolkit (development files)
libgnetwork1.0-0 - networking wrapper library using Glib/GObject
libgnetwork1.0-dev - networking wrapper library using Glib/GObject (development files)
libgnome-cil - CLI binding for GNOME
libgnome-desktop-2 - Utility library for loading .desktop files - runtime files
libgnome-desktop-dev - Utility library for loading .desktop files - development files
libgnome-dev - The GNOME libraries -- development package
libgnome-keyring-dev - Development files for GNOME keyring service
libgnome-keyring0 - GNOME keyring services library
...
libgnome-mag2 - screen magnification library for the GNOME desktop (shared library)
libgnome-media-dev - development libraries for the GNOME media utilities
libgnome-media0 - runtime libraries for the GNOME media utilities
libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME
[root@linux1:~]#
[root@linux1:~]# ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data.
From 192.168.16.1 icmp_seq=2 Destination Host Unreachable
From 192.168.16.1 icmp_seq=3 Destination Host Unreachable
From 192.168.16.1 icmp_seq=4 Destination Host Unreachable
13:47:42
#ping 192.168.16.2
PING 192.168.16.2 (192.168.16.2) 56(84) bytes of data.
From 192.168.16.1 icmp_seq=1 Destination Host Unreachable
From 192.168.16.1 icmp_seq=2 Destination Host Unreachable
From 192.168.16.1 icmp_seq=3 Destination Host Unreachable
--- 192.168.16.2 ping statistics ---
6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5010ms
, pipe 3
13:47:49
#ping 192.168.16.94
libgnome-desktop-2 - Utility library for loading .desktop files - runtime files
libgnome-desktop-dev - Utility library for loading .desktop files - development files
libgnome-dev - The GNOME libraries -- development package
libgnome-keyring-dev - Development files for GNOME keyring service
libgnome-keyring0 - GNOME keyring services library
libgnome-mag-dev - screen magnification library for the GNOME desktop (development headers
)
libgnome-mag2 - screen magnification library for the GNOME desktop (shared library)
libgnome-media-dev - development libraries for the GNOME media utilities
libgnome-media0 - runtime libraries for the GNOME media utilities
libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME
PING 192.168.16.94 (192.168.16.94) 56(84) bytes of data.
--- 192.168.16.94 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
[root@linux1:~]#
[root@linux1:~]# ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data.
From 192.168.16.1 icmp_seq=2 Destination Host Unreachable
From 192.168.16.1 icmp_seq=3 Destination Host Unreachable
From 192.168.16.1 icmp_seq=4 Destination Host Unreachable
13:47:58
#ping 192.168.16.99
PING 192.168.16.99 (192.168.16.99) 56(84) bytes of data.
--- 192.168.16.99 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
13:48:00
#ping 192.168.16.199
libgnome-desktop-2 - Utility library for loading .desktop files - runtime files
libgnome-desktop-dev - Utility library for loading .desktop files - development files
libgnome-dev - The GNOME libraries -- development package
libgnome-keyring-dev - Development files for GNOME keyring service
libgnome-keyring0 - GNOME keyring services library
libgnome-mag-dev - screen magnification library for the GNOME desktop (development headers
)
libgnome-mag2 - screen magnification library for the GNOME desktop (shared library)
libgnome-media-dev - development libraries for the GNOME media utilities
libgnome-media0 - runtime libraries for the GNOME media utilities
libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME
PING 192.168.16.199 (192.168.16.199) 56(84) bytes of data.
--- 192.168.16.199 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1002ms
[root@linux1:~]#
[root@linux1:~]# ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data.
From 192.168.16.1 icmp_seq=2 Destination Host Unreachable
From 192.168.16.1 icmp_seq=3 Destination Host Unreachable
From 192.168.16.1 icmp_seq=4 Destination Host Unreachable
13:48:12
#ping 192.168.16.199
PING 192.168.16.199 (192.168.16.199) 56(84) bytes of data.
--- 192.168.16.199 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1003ms
13:48:19
#ping 192.168.16.1
PING 192.168.16.1 (192.168.16.1) 56(84) bytes of data.
64 bytes from 192.168.16.1: icmp_seq=1 ttl=64 time=0.086 ms
64 bytes from 192.168.16.1: icmp_seq=2 ttl=64 time=0.057 ms
--- 192.168.16.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.057/0.071/0.086/0.016 ms
13:48:26
#ping 192.168.16.2
libgnome-desktop-2 - Utility library for loading .desktop files - runtime files
libgnome-desktop-dev - Utility library for loading .desktop files - development files
libgnome-dev - The GNOME libraries -- development package
libgnome-keyring-dev - Development files for GNOME keyring service
libgnome-keyring0 - GNOME keyring services library
libgnome-mag-dev - screen magnification library for the GNOME desktop (development headers
)
libgnome-mag2 - screen magnification library for the GNOME desktop (shared library)
libgnome-media-dev - development libraries for the GNOME media utilities
libgnome-media0 - runtime libraries for the GNOME media utilities
libgnome-menu-dev - an implementation of the freedesktop menu specification for GNOME
PING 192.168.16.2 (192.168.16.2) 56(84) bytes of data.
--- 192.168.16.2 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
[root@linux1:~]#
[root@linux1:~]# ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data.
From 192.168.16.1 icmp_seq=2 Destination Host Unreachable
From 192.168.16.1 icmp_seq=3 Destination Host Unreachable
From 192.168.16.1 icmp_seq=4 Destination Host Unreachable
13:48:28
#ping 192.168.16.3
PING 192.168.16.3 (192.168.16.3) 56(84) bytes of data.
64 bytes from 192.168.16.3: icmp_seq=1 ttl=64 time=0.214 ms
64 bytes from 192.168.16.3: icmp_seq=2 ttl=64 time=0.168 ms
--- 192.168.16.3 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.168/0.191/0.214/0.023 ms

Файлы

  • /etc/hosts.allow
  • /etc/hosts.deny
  • /etc/hosts.allow
    >
    # /etc/hosts.allow: list of hosts that are allowed to access the system.
    #                   See the manual pages hosts_access(5), hosts_options(5)
    #                   and /usr/doc/netbase/portmapper.txt.gz
    #
    # Example:    ALL: LOCAL @some_netgroup
    #             ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
    #
    # If you're going to protect the portmapper use the name "portmap" for the
    # daemon name. Remember that you can only use the keyword "ALL" and IP
    # addresses (NOT host or domain names) for the portmapper, as well as for
    # rpc.mountd (the NFS mount daemon). See portmap(8), rpc.mountd(8) and
    # /usr/share/doc/portmap/portmapper.txt.gz for further information.
    #
    ssh : 0.0.0.0/0.0.0.0
    #ALL : linux2.net.nt
    echo : 192.168.16.2
    bash : 127.0.0.1 : deny
    bash : 192.168.16.2
    ALL : 127.0.0.1
    
    /etc/hosts.deny
    >
    # /etc/hosts.deny: list of hosts that are _not_ allowed to access the system.
    #                  See the manual pages hosts_access(5), hosts_options(5)
    #                  and /usr/doc/netbase/portmapper.txt.gz
    #
    # Example:    ALL: some.host.name, .some.domain
    #             ALL EXCEPT in.fingerd: other.host.name, .other.domain
    #
    # If you're going to protect the portmapper use the name "portmap" for the
    # daemon name. Remember that you can only use the keyword "ALL" and IP
    # addresses (NOT host or domain names) for the portmapper. See portmap(8)
    # and /usr/doc/portmap/portmapper.txt.gz for further information.
    #
    # The PARANOID wildcard matches any host whose name does not match its
    # address.
    # You may wish to enable this to ensure any programs that don't
    # validate looked up hostnames still leave understandable logs. In past
    # versions of Debian this has been the default.
    # ALL: PARANOID
    #calc: ALL
    #ALL: ALL
    #calc : ALL
    ALL : ALL
    

    Статистика

    Время первой команды журнала12:45:39 2007- 5-30
    Время последней команды журнала13:48:28 2007- 5-30
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, %35.64
    Процент синтаксически неверно набранных команд, % 0.99
    Суммарное время работы с терминалом *, час 1.05
    Количество командных строк в единицу времени, команда/мин 1.61
    Частота использования команд
    ssh14|============| 12.07%
    telnet11|=========| 9.48%
    ping11|=========| 9.48%
    vim9|=======| 7.76%
    nc8|======| 6.90%
    grep7|======| 6.03%
    netstat6|=====| 5.17%
    apt-get6|=====| 5.17%
    host5|====| 4.31%
    man4|===| 3.45%
    lynx4|===| 3.45%
    cat4|===| 3.45%
    tar3|==| 2.59%
    dig2|=| 1.72%
    nohup2|=| 1.72%
    less2|=| 1.72%
    w3m2|=| 1.72%
    ls2|=| 1.72%
    apt-cache2|=| 1.72%
    dpkg1|| 0.86%
    /etc/init.d/apache21|| 0.86%
    /etc/init.d/xinetd1|| 0.86%
    screen1|| 0.86%
    ldd1|| 0.86%
    ]1|| 0.86%
    apt-1|| 0.86%
    cd1|| 0.86%
    bg1|| 0.86%
    exit1|| 0.86%
    whois1|| 0.86%
    yes1|| 0.86%
    ____
    *) Интервалы неактивности длительностью 30 минут и более не учитываются

    Справка

    Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
    1. В журнал автоматически попадают все команды, данные в любом терминале системы.

    2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

    3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
      $ l s-l
      bash: l: command not found
      

    4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
      $ test 5 -lt 4
      Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

    5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
      $ find / -name abc
      find: /home/devi-orig/.gnome2: Keine Berechtigung
      find: /home/devi-orig/.gnome2_private: Keine Berechtigung
      find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung
      find: /home/devi-orig/.metacity: Keine Berechtigung
      find: /home/devi-orig/.inkscape: Keine Berechtigung
      ^C
      

    6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
      # id
      uid=0(root) gid=0(root) Gruppen=0(root)
      

    7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
      $ vi ~/.bashrc
      2a3,5
      >    if [ -f /usr/local/etc/bash_completion ]; then
      >         . /usr/local/etc/bash_completion
      >        fi
      

    8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
      $ patch ~/.bashrc
      В данном случае изменения применяются к файлу ~/.bashrc

    9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

      Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

    10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

    11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

    12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

    13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

    14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

      $ whoami
      
      user
      
      $ #^ Интересно, кто я?
      
      в журнале это будет выглядеть так:
      $ whoami
      
      user
      
      Интересно, кто я?

    15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

      $ whoami
      
      user
      
      $ cat > /dev/null #^ Интересно, кто я?
      
      Программа whoami выводит имя пользователя, под которым 
      мы зарегистрировались в системе.
      -
      Она не может ответить на вопрос о нашем назначении 
      в этом мире.
      
      В журнале это будет выглядеть так:
      $ whoami
      user
      
      Интересно, кто я?
      Программа whoami выводит имя пользователя, под которым
      мы зарегистрировались в системе.

      Она не может ответить на вопрос о нашем назначении
      в этом мире.
      Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

    16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

    17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
    18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
    19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
      1
          2
      3   
          4
      
      Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

    О программе

    LiLaLo (L3) расшифровывается как Live Lab Log.
    Программа разработана для повышения эффективности обучения Unix/Linux-системам.
    (c) Игорь Чубин, 2004-2008

    $Id$