/l3/users/sbond/nt-voip-2011-06/linux8.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 |
|
#w
12:24:02 up 28 min, 4 users, load average: 0.03, 0.03, 0.03 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT user tty7 :0 11:56 28:23 6.13s 0.07s x-session-manag user pts/0 :0.0 11:57 9:54 0.42s 3.72s gnome-terminal user pts/1 :0.0 12:09 4:57 0.29s 3.72s gnome-terminal root pts/2 linux253.unix.ba 12:23 0.00s 0.14s 0.00s script -f -c ba |
#pkill l3-agent
|
#ps aux | grep l3-a
root 8466 0.0 0.0 10056 852 pts/3 S+ 12:26 0:00 grep l3-a |
#l3-agent
|
#vim /tmp/x
--- /dev/null 2011-06-20 11:55:39.162839365 +0300 +++ /tmp/x 2011-06-20 12:27:35.000000000 +0300 @@ -0,0 +1 @@ +hello |
#cat /tmp/x
hello |
#cd /tmp/
|
##wget xgu.ru/lilalo/install
|
#vim install
|
#vim ~/.bashrc
|
#~
l3-agent . ~/.bashrc "~/.bash_profile" 3L, 22C |
#~
Reading package lists... Done Building dependency tree Reading state information... Done w3m is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
#w3m http://xgu.ru/l3/users/sbond
user tty7 гÑ:0°Ð¼Ð¼Ðµ 11:56 28:23 6.13s 0.07s x-session-manag pts/0 :0.0 11:57 9:54 0.42s 3.72s gnome-terminal user pts/1 :0.0 12:09 4:57 0.29s 3.72s gnome-terminal user pts/2 linux253.unix.ba 12:23 0.00s 0.14s 0.00s script -f -c ba rootÑнал 12:26:30 #w #pkill l3-agent 12:24:02 up 28 min, 4 users, load average: 0.03, 0.03, 0.03 8466 0.0 0.0 10056 852 pts/3 S+ 12:26 0:00 grep l3-a ... #l3-agent #psraux |pgrep l3-ainux253.unix.ba 12:23 0.00s 0.14s 0.00s script -f -c ba 12:26:40/2 root6:30 2011-06-20 11:55:39.162839365 +0300 #vim /tmp/x [err2011-06-20 12:27:35.000000000 +0300 @@ -0,0p+1 @@ root 8466 0.0 0.0 10056 852 pts/3 S+ 12:26 0:00 grep l3-a --- /dev/nulliewing <root> 12:26:34 #ps aux | grep l3-a |
#vim /etc/network/interfaces
--- /tmp/l3-saved-8706.2312.1016 2011-06-20 12:53:20.000000000 +0300 +++ /etc/network/interfaces 2011-06-20 12:58:49.000000000 +0300 @@ -3,16 +3,17 @@ # The loopback network interface auto lo +auto eth0 iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet static - address 192.168.15.8 + address 192.168.108.1 netmask 255.255.255.0 - network 192.168.15.0 - broadcast 192.168.15.255 - gateway 192.168.15.253 + network 192.168.108.0 + broadcast 192.168.108.255 + gateway 192.168.108.253 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 192.168.15.253 dns-search unix.nt |
#traceroute 192.168.101.1
traceroute to 192.168.101.1 (192.168.101.1), 30 hops max, 60 byte packets 1 192.168.108.253 (192.168.108.253) 0.315 ms 0.305 ms 0.298 ms 2 192.168.101.1 (192.168.101.1) 0.960 ms 0.958 ms 0.951 ms |
#traceroute 192.168.101.1
traceroute to 192.168.101.1 (192.168.101.1), 30 hops max, 60 byte packets 1 192.168.108.253 (192.168.108.253) 0.315 ms 0.305 ms 0.298 ms 2 192.168.101.1 (192.168.101.1) 0.960 ms 0.958 ms 0.951 ms |
#apt-cache search dhcp3-server
dhcp3-server - ISC DHCP server (transitional package) isc-dhcp-server-ldap - DHCP server able to use LDAP as backend isc-dhcp-server - ISC DHCP server for automatic IP address assignment |
#apt-cache search dhcp3-server
dhcp3-server - ISC DHCP server (transitional package) isc-dhcp-server-ldap - DHCP server able to use LDAP as backend isc-dhcp-server - ISC DHCP server for automatic IP address assignment |
#apt-get install dhcp3-server
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: isc-dhcp-server Suggested packages: isc-dhcp-server-ldap The following NEW packages will be installed: dhcp3-server isc-dhcp-server 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. ... Unpacking isc-dhcp-server (from .../isc-dhcp-server_4.1.1-P1-15+squeeze2_amd64.deb) ... Selecting previously deselected package dhcp3-server. Unpacking dhcp3-server (from .../dhcp3-server_4.1.1-P1-15+squeeze2_all.deb) ... Processing triggers for man-db ... Setting up isc-dhcp-server (4.1.1-P1-15+squeeze2) ... Generating /etc/default/isc-dhcp-server... Starting ISC DHCP server: dhcpdcheck syslog for diagnostics. ... failed! failed! invoke-rc.d: initscript isc-dhcp-server, action "start" failed. Setting up dhcp3-server (4.1.1-P1-15+squeeze2) ... |
#apt-get install dhcp3-server
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: isc-dhcp-server Suggested packages: isc-dhcp-server-ldap The following NEW packages will be installed: dhcp3-server isc-dhcp-server 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. ... Unpacking isc-dhcp-server (from .../isc-dhcp-server_4.1.1-P1-15+squeeze2_amd64.deb) ... Selecting previously deselected package dhcp3-server. Unpacking dhcp3-server (from .../dhcp3-server_4.1.1-P1-15+squeeze2_all.deb) ... Processing triggers for man-db ... Setting up isc-dhcp-server (4.1.1-P1-15+squeeze2) ... Generating /etc/default/isc-dhcp-server... Starting ISC DHCP server: dhcpdcheck syslog for diagnostics. ... failed! failed! invoke-rc.d: initscript isc-dhcp-server, action "start" failed. Setting up dhcp3-server (4.1.1-P1-15+squeeze2) ... |
#/etc/def
default/ defoma/ |
#/etc/def
default/ defoma/ |
#ls /etc/default/
acpid bluetooth console-setup dbus grub ifupdown keyboard ntpdate rsyslog tmpfs alsa bootlogd cron devpts halt isc-dhcp-server locale portmap saned useradd avahi-daemon cacerts cups exim4 hdparm kdm.d nfs-common rcS ssh |
#ls /etc/default/
acpid bluetooth console-setup dbus grub ifupdown keyboard ntpdate rsyslog tmpfs alsa bootlogd cron devpts halt isc-dhcp-server locale portmap saned useradd avahi-daemon cacerts cups exim4 hdparm kdm.d nfs-common rcS ssh |
#vim /etc/default/isc-dhcp-server
--- /tmp/l3-saved-9094.25108.16360 2011-06-20 14:28:17.000000000 +0300 +++ /etc/default/isc-dhcp-server 2011-06-20 14:28:26.000000000 +0300 @@ -8,4 +8,4 @@ # On what interfaces should the DHCP server (dhcpd) serve DHCP requests? # Separate multiple interfaces with spaces, e.g. "eth0 eth1". -INTERFACES="" +INTERFACES="eth0" |
#cat /etc/default/
acpid console-setup grub keyboard rsyslog alsa cron halt locale saned avahi-daemon cups hdparm nfs-common ssh bluetooth dbus ifupdown ntpdate tmpfs bootlogd devpts isc-dhcp-server portmap useradd cacerts exim4 kdm.d/ rcS |
#cat /etc/default/isc-dhcp-server
# Defaults for dhcp initscript # sourced by /etc/init.d/dhcp # installed at /etc/default/isc-dhcp-server by the maintainer scripts # # This is a POSIX shell fragment # # On what interfaces should the DHCP server (dhcpd) serve DHCP requests? # Separate multiple interfaces with spaces, e.g. "eth0 eth1". INTERFACES="" |
#vim /etc/dhcp/dhcpd.conf
--- /tmp/l3-saved-9416.11162.14022 2011-06-20 14:29:53.000000000 +0300 +++ /etc/dhcp/dhcpd.conf 2011-06-20 14:35:25.000000000 +0300 @@ -10,8 +10,8 @@ ddns-update-style none; # option definitions common to all supported networks... -option domain-name "example.org"; -option domain-name-servers ns1.example.org, ns2.example.org; +option domain-name "d8.unix.nt"; +option domain-name-servers 192.168.15.253; default-lease-time 600; max-lease-time 7200; @@ -32,10 +32,10 @@ # This is a very basic subnet declaration. -#subnet 10.254.239.0 netmask 255.255.255.224 { -# range 10.254.239.10 10.254.239.20; -# option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org; -#} +subnet 192.168.108.0 netmask 255.255.255.0 { + range 192.168.108.200 192.168.108.250; + # option routers 192.168.108.253; +} # This declaration allows BOOTP clients to get dynamic addresses, # which we don't really recommend. |
#vim /etc/dhcp/dhc
|
#vim /etc/dhcp/dhc
|
#vim /etc/dhcp/dhcpd.conf
--- /tmp/l3-saved-9094.26838.17223 2011-06-20 14:30:43.000000000 +0300 +++ /etc/dhcp/dhcpd.conf 2011-06-20 14:35:25.000000000 +0300 @@ -10,8 +10,8 @@ ddns-update-style none; # option definitions common to all supported networks... -option domain-name "example.org"; -option domain-name-servers ns1.example.org, ns2.example.org; +option domain-name "d8.unix.nt"; +option domain-name-servers 192.168.15.253; default-lease-time 600; max-lease-time 7200; @@ -32,10 +32,10 @@ # This is a very basic subnet declaration. -#subnet 10.254.239.0 netmask 255.255.255.224 { -# range 10.254.239.10 10.254.239.20; -# option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org; -#} +subnet 192.168.108.0 netmask 255.255.255.0 { + range 192.168.108.200 192.168.108.250; + # option routers 192.168.108.253; +} # This declaration allows BOOTP clients to get dynamic addresses, # which we don't really recommend. |
#/etc/init.d/
acpid cron kbd networking single alsa-utils cups kerneloops network-manager ssh anacron dbus keyboard-setup nfs-common stop-bootlogd atd exim4 killprocs portmap stop-bootlogd-single avahi-daemon fancontrol lm-sensors pppd-dns sudo binfmt-support fuse loadcpufreq procps udev bluetooth gdm3 module-init-tools rc udev-mtab bootlogd halt mountall-bootclean.sh rc.local umountfs bootlogs hdparm mountall.sh rcS umountnfs.sh bootmisc.sh hostname.sh mountdevsubfs.sh reboot umountroot checkfs.sh hwclockfirst.sh mountkernfs.sh rmnologin unattended-upgrades checkroot.sh hwclock.sh mountnfs-bootclean.sh rsyslog urandom console-cyrillic ifupdown mountnfs.sh saned x11-common console-setup ifupdown-clean mountoverflowtmp screen-cleanup cpufrequtils isc-dhcp-server mtab.sh sendsigs |
#/etc/init.d/
acpid cron kbd networking single alsa-utils cups kerneloops network-manager ssh anacron dbus keyboard-setup nfs-common stop-bootlogd atd exim4 killprocs portmap stop-bootlogd-single avahi-daemon fancontrol lm-sensors pppd-dns sudo binfmt-support fuse loadcpufreq procps udev bluetooth gdm3 module-init-tools rc udev-mtab bootlogd halt mountall-bootclean.sh rc.local umountfs bootlogs hdparm mountall.sh rcS umountnfs.sh bootmisc.sh hostname.sh mountdevsubfs.sh reboot umountroot checkfs.sh hwclockfirst.sh mountkernfs.sh rmnologin unattended-upgrades checkroot.sh hwclock.sh mountnfs-bootclean.sh rsyslog urandom console-cyrillic ifupdown mountnfs.sh saned x11-common console-setup ifupdown-clean mountoverflowtmp screen-cleanup cpufrequtils isc-dhcp-server mtab.sh sendsigs |
#/etc/init.d/
acpid cron kbd networking single alsa-utils cups kerneloops network-manager ssh anacron dbus keyboard-setup nfs-common stop-bootlogd atd exim4 killprocs portmap stop-bootlogd-single avahi-daemon fancontrol lm-sensors pppd-dns sudo binfmt-support fuse loadcpufreq procps udev bluetooth gdm3 module-init-tools rc udev-mtab bootlogd halt mountall-bootclean.sh rc.local umountfs bootlogs hdparm mountall.sh rcS umountnfs.sh bootmisc.sh hostname.sh mountdevsubfs.sh reboot umountroot checkfs.sh hwclockfirst.sh mountkernfs.sh rmnologin unattended-upgrades checkroot.sh hwclock.sh mountnfs-bootclean.sh rsyslog urandom console-cyrillic ifupdown mountnfs.sh saned x11-common console-setup ifupdown-clean mountoverflowtmp screen-cleanup cpufrequtils isc-dhcp-server mtab.sh sendsigs |
#/etc/init.d/
acpid cron kbd networking single alsa-utils cups kerneloops network-manager ssh anacron dbus keyboard-setup nfs-common stop-bootlogd atd exim4 killprocs portmap stop-bootlogd-single avahi-daemon fancontrol lm-sensors pppd-dns sudo binfmt-support fuse loadcpufreq procps udev bluetooth gdm3 module-init-tools rc udev-mtab bootlogd halt mountall-bootclean.sh rc.local umountfs bootlogs hdparm mountall.sh rcS umountnfs.sh bootmisc.sh hostname.sh mountdevsubfs.sh reboot umountroot checkfs.sh hwclockfirst.sh mountkernfs.sh rmnologin unattended-upgrades checkroot.sh hwclock.sh mountnfs-bootclean.sh rsyslog urandom console-cyrillic ifupdown mountnfs.sh saned x11-common console-setup ifupdown-clean mountoverflowtmp screen-cleanup cpufrequtils isc-dhcp-server mtab.sh sendsigs |
#/etc/init.d/isc-dhcp-server restart
Stopping ISC DHCP server: dhcpd failed! Starting ISC DHCP server: dhcpd. |
#/etc/init.d/isc-dhcp-server restart
Stopping ISC DHCP server: dhcpd failed! Starting ISC DHCP server: dhcpd. |
#ps aux | grep dhcp
root 9618 0.0 0.0 9700 3356 ? Ss 14:35 0:00 /usr/sbin/dhcpd -q eth0 root 9634 0.0 0.0 10056 852 pts/7 S+ 14:36 0:00 grep dhcp |
#ps aux | grep dhcp
root 9618 0.0 0.0 9700 3356 ? Ss 14:35 0:00 /usr/sbin/dhcpd -q eth0 root 9634 0.0 0.0 10056 852 pts/7 S+ 14:36 0:00 grep dhcp |
#ps dhscp
ERROR: Unsupported option (BSD syntax) ********* simple selection ********* ********* selection by list ********* -A all processes -C by command name -N negate selection -G by real group ID (supports names) -a all w/ tty except session leaders -U by real user ID (supports names) -d all except session leaders -g by session OR by effective group name -e all processes -p by process ID T all processes on this terminal -s processes in the sessions given a all w/ tty, including other users -t by tty g OBSOLETE -- DO NOT USE -u by effective user ID (supports names) ... -o,o user-defined -f full --Group --User --pid --cols --ppid -j,j job control s signal --group --user --sid --rows --info -O,O preloaded -o v virtual memory --cumulative --format --deselect -l,l long u user-oriented --sort --tty --forest --version -F extra full X registers --heading --no-heading --context ********* misc options ********* -V,V show version L list format codes f ASCII art forest -m,m,-L,-T,H threads S children in sum -y change -l format -M,Z security data c true command name -c scheduling class -w,w wide output n numeric WCHAN,UID -H process hierarchy |
#ps dhscp
ERROR: Unsupported option (BSD syntax) ********* simple selection ********* ********* selection by list ********* -A all processes -C by command name -N negate selection -G by real group ID (supports names) -a all w/ tty except session leaders -U by real user ID (supports names) -d all except session leaders -g by session OR by effective group name -e all processes -p by process ID T all processes on this terminal -s processes in the sessions given a all w/ tty, including other users -t by tty g OBSOLETE -- DO NOT USE -u by effective user ID (supports names) ... -o,o user-defined -f full --Group --User --pid --cols --ppid -j,j job control s signal --group --user --sid --rows --info -O,O preloaded -o v virtual memory --cumulative --format --deselect -l,l long u user-oriented --sort --tty --forest --version -F extra full X registers --heading --no-heading --context ********* misc options ********* -V,V show version L list format codes f ASCII art forest -m,m,-L,-T,H threads S children in sum -y change -l format -M,Z security data c true command name -c scheduling class -w,w wide output n numeric WCHAN,UID -H process hierarchy |
#ps dhcp
ERROR: Unsupported option (BSD syntax) ********* simple selection ********* ********* selection by list ********* -A all processes -C by command name -N negate selection -G by real group ID (supports names) -a all w/ tty except session leaders -U by real user ID (supports names) -d all except session leaders -g by session OR by effective group name -e all processes -p by process ID T all processes on this terminal -s processes in the sessions given a all w/ tty, including other users -t by tty g OBSOLETE -- DO NOT USE -u by effective user ID (supports names) ... -o,o user-defined -f full --Group --User --pid --cols --ppid -j,j job control s signal --group --user --sid --rows --info -O,O preloaded -o v virtual memory --cumulative --format --deselect -l,l long u user-oriented --sort --tty --forest --version -F extra full X registers --heading --no-heading --context ********* misc options ********* -V,V show version L list format codes f ASCII art forest -m,m,-L,-T,H threads S children in sum -y change -l format -M,Z security data c true command name -c scheduling class -w,w wide output n numeric WCHAN,UID -H process hierarchy |
#ps dhcp
ERROR: Unsupported option (BSD syntax) ********* simple selection ********* ********* selection by list ********* -A all processes -C by command name -N negate selection -G by real group ID (supports names) -a all w/ tty except session leaders -U by real user ID (supports names) -d all except session leaders -g by session OR by effective group name -e all processes -p by process ID T all processes on this terminal -s processes in the sessions given a all w/ tty, including other users -t by tty g OBSOLETE -- DO NOT USE -u by effective user ID (supports names) ... -o,o user-defined -f full --Group --User --pid --cols --ppid -j,j job control s signal --group --user --sid --rows --info -O,O preloaded -o v virtual memory --cumulative --format --deselect -l,l long u user-oriented --sort --tty --forest --version -F extra full X registers --heading --no-heading --context ********* misc options ********* -V,V show version L list format codes f ASCII art forest -m,m,-L,-T,H threads S children in sum -y change -l format -M,Z security data c true command name -c scheduling class -w,w wide output n numeric WCHAN,UID -H process hierarchy |
#ps aux | grep dhcp
root 9618 0.0 0.0 9700 3356 ? Ss 14:35 0:00 /usr/sbin/dhcpd -q eth0 root 9703 0.0 0.0 10056 852 pts/7 S+ 14:39 0:00 grep dhcp |
#ps aux | grep dhcp
root 9618 0.0 0.0 9700 3356 ? Ss 14:35 0:00 /usr/sbin/dhcpd -q eth0 root 9703 0.0 0.0 10056 852 pts/7 S+ 14:39 0:00 grep dhcp |
#top
top - 14:40:04 up 2:44, 7 users, load average: 0.08, 0.04, 0.01 Tasks: 153 total, 3 running, 150 sleeping, 0 stopped, 0 zombie Cpu(s): 26.3%us, 0.3%sy, 0.0%ni, 73.4%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 8116232k total, 954260k used, 7161972k free, 87904k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 9764856k total, 0k used, 9764856k free, 572576k cached 8475 root 20 0 52708 12m 1524 R 50 0.2 1:03.37 l3-agent 8594 user 20 0 331m 28m 14m R 3 0.4 4:01.12 gtk-gnash 1814 root 20 0 133m 16m 7400 S 1 0.2 0:16.10 Xorg 1 root 20 0 8352 800 668 S 0 0.0 0:00.46 init ... 20 root 20 0 0 0 0 S 0 0.0 0:00.01 kblockd/0 21 root 20 0 0 0 0 S 0 0.0 0:00.02 kblockd/1 22 root 20 0 0 0 0 S 0 0.0 0:00.00 kacpid 23 root 20 0 0 0 0 S 0 0.0 0:00.00 kacpi_notify 24 root 20 0 0 0 0 S 0 0.0 0:00.00 kacpi_hotplug 21 root 20 0 0 0 0 S 0 0.0 0:00.02 kblockd/1 22 root 20 0 0 0 0 S 0 0.0 0:00.00 kacpid 23 root 20 0 0 0 0 S 0 0.0 0:00.00 kacpi_notify 24 root 20 0 0 0 0 S 0 0.0 0:00.00 kacpi_hotplug 25 root 20 0 0 0 0 S 0 0.0 0:00.00 kseriod |
#top
top - 14:40:04 up 2:44, 7 users, load average: 0.08, 0.04, 0.01 Tasks: 153 total, 3 running, 150 sleeping, 0 stopped, 0 zombie Cpu(s): 26.3%us, 0.3%sy, 0.0%ni, 73.4%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 8116232k total, 954260k used, 7161972k free, 87904k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 9764856k total, 0k used, 9764856k free, 572576k cached 8475 root 20 0 52708 12m 1524 R 50 0.2 1:03.37 l3-agent 8594 user 20 0 331m 28m 14m R 3 0.4 4:01.12 gtk-gnash 1814 root 20 0 133m 16m 7400 S 1 0.2 0:16.10 Xorg 1 root 20 0 8352 800 668 S 0 0.0 0:00.46 init ... 16 root 20 0 0 0 0 S 0 0.0 0:00.00 sync_supers 17 root 20 0 0 0 0 S 0 0.0 0:00.00 bdi-default 18 root 20 0 0 0 0 S 0 0.0 0:00.00 kintegrityd/0 19 root 20 0 0 0 0 S 0 0.0 0:00.00 kintegrityd/1 20 root 20 0 0 0 0 S 0 0.0 0:00.01 kblockd/0 21 root 20 0 0 0 0 S 0 0.0 0:00.02 kblockd/1 22 root 20 0 0 0 0 S 0 0.0 0:00.00 kacpid 23 root 20 0 0 0 0 S 0 0.0 0:00.00 kacpi_notify 24 root 20 0 0 0 0 S 0 0.0 0:00.00 kacpi_hotplug 25 root 20 0 0 0 0 S 0 0.0 0:00.00 kseriod |
#!ps
ps aux | grep dhcp root 9618 0.0 0.0 9700 3356 ? Ss 14:35 0:00 /usr/sbin/dhcpd -q eth0 root 9780 0.0 0.0 10056 852 pts/7 S+ 14:40 0:00 grep dhcp |
#!ps
ps aux | grep dhcp root 9618 0.0 0.0 9700 3356 ? Ss 14:35 0:00 /usr/sbin/dhcpd -q eth0 root 9780 0.0 0.0 10056 852 pts/7 S+ 14:40 0:00 grep dhcp |
#tail -f /var/lib/dhcp/dhc
dhclient.leases dhcpd.leases dhcpd.leases~ |
#tail -f /var/lib/dhcp/dhc
dhclient.leases dhcpd.leases dhcpd.leases~ |
#tail -f /var/lib/dhcp/dhc
dhclient.leases dhcpd.leases dhcpd.leases~ |
#tail -f /var/lib/dhcp/dhc
dhclient.leases dhcpd.leases dhcpd.leases~ |
#tail -f /var/lib/dhcp/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page. # This lease file was written by isc-dhcp-4.1.1-P1 server-duid "\000\001\000\001\025\221\355\031\000\017\376~\247{"; lease 192.168.108.200 { starts 1 2011/06/20 11:42:24; ends 1 2011/06/20 11:52:24; cltt 1 2011/06/20 11:42:24; binding state active; next binding state free; hardware ethernet 00:19:e7:14:25:e6; uid "\001\000\031\347\024%\346"; client-hostname "SEP0019E71425E6"; } ^C |
#tail -f /var/lib/dhcp/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page. # This lease file was written by isc-dhcp-4.1.1-P1 server-duid "\000\001\000\001\025\221\355\031\000\017\376~\247{"; lease 192.168.108.200 { starts 1 2011/06/20 11:42:24; ends 1 2011/06/20 11:52:24; cltt 1 2011/06/20 11:42:24; binding state active; next binding state free; hardware ethernet 00:19:e7:14:25:e6; uid "\001\000\031\347\024%\346"; client-hostname "SEP0019E71425E6"; } ^C |
#ls /var/lib/dhcp/dhcpd.leases
/var/lib/dhcp/dhcpd.leases |
#tail -f /var/lib/dhcp/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page. # This lease file was written by isc-dhcp-4.1.1-P1 server-duid "\000\001\000\001\025\221\355\031\000\017\376~\247{"; lease 192.168.108.200 { starts 1 2011/06/20 11:42:24; ends 1 2011/06/20 11:52:24; cltt 1 2011/06/20 11:42:24; binding state active; next binding state free; hardware ethernet 00:19:e7:14:25:e6; uid "\001\000\031\347\024%\346"; client-hostname "SEP0019E71425E6"; } ^C |
#scr
screen scrollkeeper-gen-seriesid scrollkeeper-get-toc-from-id screendump scrollkeeper-get-cl scrollkeeper-install script scrollkeeper-get-content-list scrollkeeper-preinstall scriptreplay scrollkeeper-get-extended-content-list scrollkeeper-rebuilddb scrollkeeper-config scrollkeeper-get-index-from-docpath scrollkeeper-uninstall scrollkeeper-extract scrollkeeper-get-toc-from-docpath scrollkeeper-update |
#scr
screen scrollkeeper-gen-seriesid scrollkeeper-get-toc-from-id screendump scrollkeeper-get-cl scrollkeeper-install script scrollkeeper-get-content-list scrollkeeper-preinstall scriptreplay scrollkeeper-get-extended-content-list scrollkeeper-rebuilddb scrollkeeper-config scrollkeeper-get-index-from-docpath scrollkeeper-uninstall scrollkeeper-extract scrollkeeper-get-toc-from-docpath scrollkeeper-update |
#apt-cache search asterisk
asterisk-mobile - bluetooth mobile devices support for Asterisk asterisk-mp3 - MP3 format support (format_mp3) for the Asterisk PBX asterisk-mysql - MySQL support for the Asterisk PBX (cdr mainly) asterisk-ooh323c - H.323 protocol support for Asterisk (ooh323c stack) asterisk-chan-capi - Common ISDN API 2.0 implementation for Asterisk asterisk-core-sounds-en-g722 - asterisk PBX sound files - English/g722 asterisk-core-sounds-en-gsm - asterisk PBX sound files - English/gsm asterisk-core-sounds-en-wav - asterisk PBX sound files - English/wav asterisk-core-sounds-es-g722 - asterisk PBX sound files - Spanish/g722 asterisk-core-sounds-es-gsm - asterisk PBX sound files - Spanish/gsm ... op-panel - switchboard type application for the Asterisk PBX libopenr2-3 - MFC/R2 (telephony) call setup library python-asterisk - Asterisk Manager API interface module for Python asterisk-config - Configuration files for Asterisk asterisk-dbg - Debugging symbols for Asterisk asterisk-dev - Development files for Asterisk asterisk-doc - Source code documentation for Asterisk asterisk-h323 - H.323 protocol support for Asterisk asterisk-sounds-main - Core Sound files for Asterisk (English) asterisk - Open Source Private Branch Exchange (PBX) |
#w
14:46:46 up 2:51, 6 users, load average: 0.00, 0.01, 0.00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT user tty7 :0 11:56 2:51m 18.34s 0.09s x-session-manager user pts/1 :0.0 12:09 0.00s 0.30s 7.68s gnome-terminal root pts/2 linux253.unix.ba 12:23 1:49m 0.16s 0.01s script -f -c bash -q /root/.lilalo//291851117945925389-1308561 root pts/4 :pts/3:S.0 12:45 1:49m 0.00s 0.00s script -f -c /bin/bash -q /root/.lilalo//8650244232622629243-1 root pts/8 192.168.108.253 14:27 49.00s 0.15s 0.01s script -f -c bash -q /root/.lilalo//20349120301377513265-13085 user pts/10 :0.0 14:29 3:40 0.30s 7.68s gnome-terminal |
#w
14:46:46 up 2:51, 6 users, load average: 0.00, 0.01, 0.00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT user tty7 :0 11:56 2:51m 18.34s 0.09s x-session-manager user pts/1 :0.0 12:09 0.00s 0.30s 7.68s gnome-terminal root pts/2 linux253.unix.ba 12:23 1:49m 0.16s 0.01s script -f -c bash -q /root/.lilalo//291851117945925389-1308561 root pts/4 :pts/3:S.0 12:45 1:49m 0.00s 0.00s script -f -c /bin/bash -q /root/.lilalo//8650244232622629243-1 root pts/8 192.168.108.253 14:27 49.00s 0.15s 0.01s script -f -c bash -q /root/.lilalo//20349120301377513265-13085 user pts/10 :0.0 14:29 3:40 0.30s 7.68s gnome-terminal |
#apt-get install asterisk asterisk-config asterisk-sounds-main asterisk-sounds-extra
Package configuration â This is the numeric code for the region your phone system will be operating in (eg. 61 for Australia or 33 for France). â â It is used to configure the default regional standards that Voicetronix telephony hardware should comply with. â â â â ITU-T telephone code: â â â â3801______________________________________________________________________________________________________________________ â â â â <Ok>k> â â â ... Setting up unixodbc (2.2.14p2-1) ... Setting up asterisk (1:1.6.2.9-2+squeeze2) ... Adding system user for Asterisk Adding user `asterisk' to group `dialout' ... Adding user asterisk to group dialout Done. Adding user `asterisk' to group `audio' ... Adding user asterisk to group audio Done. Starting Asterisk PBX: asterisk. |
acpid console-setup grub keyboard rsyslog alsa cron halt locale saned avahi-daemon cups hdparm nfs-common ssh bluetooth dbus ifupdown ntpdate tmpfs bootlogd devpts isc-dhcp-server portmap useradd cacerts exim4 kdm.d/ rcS
# Defaults for dhcp initscript # sourced by /etc/init.d/dhcp # installed at /etc/default/isc-dhcp-server by the maintainer scripts # # This is a POSIX shell fragment # # On what interfaces should the DHCP server (dhcpd) serve DHCP requests? # Separate multiple interfaces with spaces, e.g. "eth0 eth1". INTERFACES=""
hello
Время первой команды журнала | 11:23:57 2011- 6-20 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:46:46 2011- 6-20 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 7.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.74 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 2.25 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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