/l3/users/Mike/nt-voip/linux2.unix.nt/root :1 :2 :3 :4 :5 |
|
#l3-
l3-agent l3-config |
#l3-agent
|
#mcedit /root/.bashrc
# alias ll='ls $LS_OPTIONS -l' # alias l='ls $LS_OPTIONS -lA' # # Some more alias to avoid making mistakes: # alias rm='rm -i' # alias cp='cp -i' # alias mv='mv -i' . /root/.lilalo/l3bashrc && _l3_start |
#clear
|
#mcedit /etc/bash.bashrc
if [ -x /usr/lib/command-not-found ]; then <------><------> /usr/bin/python /usr/lib/command-not-found -- $1 fi elot-found package is installed, use it <------><------> ommand_not_found_handle { [ -x /usr/lib/command-not-found ]; then <------><------>else <------><------> return 127 <------><------>fi <------>} fi |
#usermod -s /bin/bash mike
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en", LC_ALL = "ru_UA.UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). |
#dpkg-reconfigure locales
x Default locale for the system environment: x x x x None x x en_US.UTF-8 x x ja_JP.UTF-8 x x ru_UA.UTF-8 x x x x x x <Ok> <Cancel> x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj Generating locales (this might take a while)... en_US.UTF-8... done ja_JP.UTF-8... done ru_UA.UTF-8... done Generation complete. |
#na
namei nautilus-connect-server nameif nautilus-file-management-properties nano nautilus-sendto nautilus nawk nautilus-autorun-software |
#LANG=
.ICEauthority .gconfd/ .nautilus/ Documents/ .Xauthority .gnome2/ .profile Downloads/ .bash_logout .gnupg/ .ssh/ Music/ .bashrc .gstreamer-0.10/ .themes/ Pictures/ .config/ .gtk-bookmarks .thumbnails/ Public/ .dbus/ .gvfs/ .update-notifier/ Templates/ .fontconfig/ .icons/ .xsession-errors Videos/ .gconf/ .local/ Desktop/ install |
#. /etc/bash_completion
|
#LANG=
.ICEauthority .gconfd/ .nautilus/ Documents/ .Xauthority .gnome2/ .profile Downloads/ .bash_logout .gnupg/ .ssh/ Music/ .bashrc .gstreamer-0.10/ .themes/ Pictures/ .config/ .gtk-bookmarks .thumbnails/ Public/ .dbus/ .gvfs/ .update-notifier/ Templates/ .fontconfig/ .icons/ .xsession-errors Videos/ .gconf/ .local/ Desktop/ install |
#dpkg-reconfigure locales
│ │ │ crh_UA ↑ │ │ en_US.UTF-8 ▮ │ │ │ │ │ │ <Ok> <Cancel> │ │ │ └───────────────────────────────────────────────────────────────────────────┘ Generating locales (this might take a while)... crh_UA.UTF-8... done en_US.UTF-8... done ja_JP.UTF-8... done ru_UA.UTF-8... done Generation complete. |
#LANG=crh_UA.UTF-8
|
#LANG=eng_US.UA.UTF-8
|
#export
declare -x DISPLAY="localhost:10.0" declare -x HOME="/root" declare -x L3_HOME="/root/.lilalo/" declare -x L3_PARENT_TTY="/dev/pts/3" declare -x L3_SESSION_ID="258392493111014781-1335172995" declare -x L3_TAMPERED_EDITORS=" vi vim pico nano" declare -x LANG="eng_US.UA.UTF-8" declare -x LANGUAGE="en_US:en" declare -x LC_ALL="ru_UA.UTF-8" declare -x LOGNAME="root" declare -x LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*. declare -x MAIL="/var/mail/root" declare -x OLDPWD declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" |
#apt-get install asterisk
asterisk asterisk-mobile asterisk-chan-capi asterisk-moh-opsound-g722 asterisk-config asterisk-moh-opsound-gsm asterisk-core-sounds-en-g722 asterisk-moh-opsound-wav asterisk-core-sounds-en-gsm asterisk-mp3 asterisk-core-sounds-en-wav asterisk-mysql asterisk-core-sounds-es-g722 asterisk-ooh323c asterisk-core-sounds-es-gsm asterisk-prompt-de asterisk-core-sounds-es-wav asterisk-prompt-es-co asterisk-core-sounds-fr-g722 asterisk-prompt-fr-armelle asterisk-core-sounds-fr-gsm asterisk-prompt-fr-proformatique asterisk-core-sounds-fr-wav asterisk-prompt-it asterisk-dbg asterisk-prompt-se asterisk-dev asterisk-sounds-extra asterisk-doc asterisk-sounds-main asterisk-h323 |
#apt-get install asterisk asterisk-
asterisk-chan-capi asterisk-mobile asterisk-config asterisk-moh-opsound-g722 asterisk-core-sounds-en-g722 asterisk-moh-opsound-gsm asterisk-core-sounds-en-gsm asterisk-moh-opsound-wav asterisk-core-sounds-en-wav asterisk-mp3 asterisk-core-sounds-es-g722 asterisk-mysql asterisk-core-sounds-es-gsm asterisk-ooh323c asterisk-core-sounds-es-wav asterisk-prompt-de asterisk-core-sounds-fr-g722 asterisk-prompt-es-co asterisk-core-sounds-fr-gsm asterisk-prompt-fr-armelle asterisk-core-sounds-fr-wav asterisk-prompt-fr-proformatique asterisk-dbg asterisk-prompt-it asterisk-dev asterisk-prompt-se asterisk-doc asterisk-sounds-extra asterisk-h323 asterisk-sounds-main |
#apt-get install asterisk asterisk-sounds-main asterisk-doc a
Package configuration ┌────────────────────────┤ Configuring libvpb0 ├─────────────────────────┐ │ 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: │ │ │ │ 61____________________________________________________________________ │ ... Setting up unixodbc (2.2.14p2-1) ... Setting up asterisk (1:1.6.2.9-2+squeeze4) ... 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. |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux2 (pid = 4207) ... app_privacy.so Require phone number to be entered, if n 0 codec_g726.so ITU G.726-32kbps G726 Transcoder 0 app_originate.so Originate call 0 app_softhangup.so Hangs up the requested channel 0 res_config_curl.so Realtime Curl configuration 0 format_sln.so Raw Signed Linear Audio support (SLN) 0 app_dahdibarge.so Barge in on DAHDI channel application 0 198 modules loaded linux2*CLI> exit Executing last minute cleanups |
#l3-agent
l3-agent is already running: pid=32277; pidfile=/root/.lilalo/l3-agent.pid |
#ssh 192.168.15.254
Connection to 192.168.15.254 closed. |
#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+squeeze3_i386.deb) ... Selecting previously deselected package dhcp3-server. Unpacking dhcp3-server (from .../dhcp3-server_4.1.1-P1-15+squeeze3_all.deb) ... Processing triggers for man-db ... Setting up isc-dhcp-server (4.1.1-P1-15+squeeze3) ... 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+squeeze3) ... |
#mcedit /etc/dhcp/dhc
dhclient.conf dhclient-exit-hooks.d/ dhclient-enter-hooks.d/ dhcpd.conf |
#mcedit /etc/dhcp/dhcd.conf
|
#ls /etc/dhcp/
dhclient.conf dhclient-enter-hooks.d dhclient-exit-hooks.d dhcpd.conf |
#mcedit /etc/dhcp/dhc
dhclient.conf dhclient-exit-hooks.d/ dhclient-enter-hooks.d/ dhcpd.conf |
#mcedit /etc/dhcp/dhc
dhclient.conf dhclient-exit-hooks.d/ dhclient-enter-hooks.d/ dhcpd.conf |
#mcedit /etc/dhcp/dhcpd.conf
log-facility local7; # No service will be given on this subnet, but declaring it helps the. #} basic subnet declaration. subnet 192.168.20.0 netmask 255.255.255.0 { # option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org; # which we don't really recommend. #subnet 10.254.239.32 netmask 255.255.255.224 { # range dynamic-bootp 10.254.239.40 10.254.239.60; |
#mcedit /etc/init.d/d
dahdi dbus |
#mcedit /etc/init.d/
acpid hdparm procps alsa-utils hostname.sh rc anacron hwclockfirst.sh rc.local asterisk hwclock.sh rcS atd ifupdown README avahi-daemon ifupdown-clean reboot binfmt-support isc-dhcp-server rmnologin bluetooth kbd rsync bootlogd keyboard-setup rsyslog bootlogs killprocs saned ... console-setup mountall-bootclean.sh skeleton cpufrequtils mountall.sh ssh cron mountdevsubfs.sh stop-bootlogd dahdi mountkernfs.sh stop-bootlogd-single dbus mountnfs-bootclean.sh sudo .depend.boot mountnfs.sh udev .depend.start mountoverflowtmp udev-mtab .depend.stop mtab.sh umountfs exim4 networking umountnfs.sh fancontrol network-manager umountroot |
#mcedit /etc/init.d/d
dahdi dbus |
#mcedit /etc/init.d/d
dahdi dbus |
#mcedit /etc/dhcp/dhc
dhclient.conf dhclient-exit-hooks.d/ dhclient-enter-hooks.d/ dhcpd.conf |
#mcedit /etc/dhcp/dhcpd.conf
2 19 21 40 1181 084 0x054 # If this DHCP server is the official DHCP server for the local # network, the authoritative directive should be uncommented. # Use this to send dhcp log messages to a different log file (you also # have to hack syslog.conf to complete the redirection). log-facility local7; # No service will be given on this subnet, but declaring it helps the. # DHCP server to understand the network topology. #subnet 10.152.187.0 netmask 255.255.255.0 { #} # This is a very basic subnet declaration. subnet 192.168.20.0 netmask 255.255.255.0 { range 192.168.20.10 192.168.20.150; # option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org; } } } # This declaration allows BOOTP clients to get dynamic addresses, understand the network topology. 87.0 netmask 255.255.255.0 { |
#/etc/init.d/d
dahdi dbus |
#/etc/init.d/d
dahdi dbus |
#man dhc
|
#man dhcp
|
#man dhcpd
|
#dh
dh dh_installdeb dh_link dh_auto_build dh_installdebconf dh_lintian dh_auto_clean dh_installdefoma dh_listpackages dh_auto_configure dh_installdirs dh_makeshlibs dh_auto_install dh_installdocs dh_md5sums dh_auto_test dh_installemacsen dh_movefiles dh_bash-completion dh_installexamples dh_numpy dh_bugfiles dh_installifupdown dh_perl dh_builddeb dh_installinfo dh_prep dh_clean dh_installinit dh_pycentral ... dhcpd dh_installmanpages dh_scrollkeeper dh_desktop dh_installmenu dh_shlibdeps dh_fixperms dh_installmime dh_strip dh_gconf dh_installmodules dh_suidregister dh_gencontrol dh_installpam dh_testdir dh_icons dh_installppp dh_testroot dh_install dh_installudev dh_undocumented dh_installcatalogs dh_installwm dh_usrlocal dh_installchangelogs dh_installxfonts dh_installcron dh_installxmlcatalogs |
#dhc
dhclient dhclient-script dhcpd |
#dhcpd restart
Internet Systems Consortium DHCP Server 4.1.1-P1 Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Wrote 0 leases to leases file. No subnet declaration for restart (no IPv4 addresses). ** Ignoring requests on restart. If this is not what you want, please write a subnet declaration in your dhcpd.conf file for the network segment to which interface restart is attached. ** Not configured to listen on any interfaces! |
#mcedit /etc/default/isc-dhcp-server
terfaces should the DHCP server (dhcpd) serve DHCP reques│ eth0" |
#^C
|
#dhcpd restart
Internet Systems Consortium DHCP Server 4.1.1-P1 Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Wrote 0 leases to leases file. No subnet declaration for restart (no IPv4 addresses). ** Ignoring requests on restart. If this is not what you want, please write a subnet declaration in your dhcpd.conf file for the network segment to which interface restart is attached. ** Not configured to listen on any interfaces! |
#/etc/init.d/isc-dhcp-server restart
Stopping ISC DHCP server: dhcpd failed! Starting ISC DHCP server: dhcpd. |
#mcedit /etc/dhcp/dhcpd.conf
/etc/dhc~cpd.conf [----] 2 L:[ 37+10 47/108] *(1435/3444b) 0010 0x00A option routers 192.168.20.254; # Use this to send dhcp log messages to a different log file (you also log-facility local7; # No service will be given on this subnet, but declaring it helps the. #} # This is a very basic subnet declaration. range 192.168.20.10 192.168.20.150;55.0 { option routers 192.168.20.254; # which we don't really recommend. |
#mcedit /etc/default/isc-dhcp-server
|
#ls /var/lib/dhcp/
dhclient.leases dhcpd.leases dhcpd.leases~ |
#ls /var/lib/dhcp/dhc
dhclient.leases dhcpd.leases dhcpd.leases~ |
#ls /var/lib/dhcp/dhcpd.leases
/var/lib/dhcp/dhcpd.leases |
#cat /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\027(\000a\000\017\376~\271Q"; lease 192.168.20.10 { starts 1 2012/04/23 11:58:28; ends 1 2012/04/23 12:08:28; cltt 1 2012/04/23 11:58:28; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; ... } lease 192.168.20.10 { starts 1 2012/04/23 12:16:25; ends 1 2012/04/23 12:26:25; cltt 1 2012/04/23 12:16:25; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } |
#cat /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\027(\000a\000\017\376~\271Q"; lease 192.168.20.10 { starts 1 2012/04/23 11:58:28; ends 1 2012/04/23 12:08:28; cltt 1 2012/04/23 11:58:28; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; ... } lease 192.168.20.10 { starts 1 2012/04/23 12:16:25; ends 1 2012/04/23 12:26:25; cltt 1 2012/04/23 12:16:25; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } |
#cat /var/lib/dhcp/dhcpd.leases | less
|
#cat /var/lib/dhcp/dhcpd.leases | less
|
#cat /var/lib/dhcp/dhcpd.leases | less
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:0f:fe:7e:b9:51 inet addr:192.168.20.1 Bcast:192.168.20.255 Mask:255.255.255.0 inet6 addr: fe80::20f:feff:fe7e:b951/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:539203 errors:0 dropped:3 overruns:0 frame:0 TX packets:259435 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:776817719 (740.8 MiB) TX bytes:18875757 (18.0 MiB) Interrupt:19 Memory:f0180000-f01a0000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:652 errors:0 dropped:0 overruns:0 frame:0 TX packets:652 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:101767 (99.3 KiB) TX bytes:101767 (99.3 KiB) |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
# 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\027(\000a\000\017\376~\271Q"; lease 192.168.20.10 { starts 1 2012/04/23 11:58:28; ends 1 2012/04/23 12:08:28; cltt 1 2012/04/23 11:58:28; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } lease 192.168.20.10 { starts 1 2012/04/23 11:58:40; ends 1 2012/04/23 12:08:40; cltt 1 2012/04/23 11:58:40; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } lease 192.168.20.10 { starts 1 2012/04/23 12:02:30; ends 1 2012/04/23 12:12:30; cltt 1 2012/04/23 12:02:30; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } lease 192.168.20.10 { starts 1 2012/04/23 12:02:46; ends 1 2012/04/23 12:12:46; cltt 1 2012/04/23 12:02:46; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } lease 192.168.20.10 { starts 1 2012/04/23 12:07:00; ends 1 2012/04/23 12:17:00; cltt 1 2012/04/23 12:07:00; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } lease 192.168.20.10 { starts 1 2012/04/23 12:07:26; ends 1 2012/04/23 12:17:26; cltt 1 2012/04/23 12:07:26; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } lease 192.168.20.10 { starts 1 2012/04/23 12:11:33; ends 1 2012/04/23 12:21:33; cltt 1 2012/04/23 12:11:33; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } lease 192.168.20.10 { starts 1 2012/04/23 12:11:58; ends 1 2012/04/23 12:21:58; cltt 1 2012/04/23 12:11:58; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } lease 192.168.20.10 { starts 1 2012/04/23 12:16:10; ends 1 2012/04/23 12:26:10; cltt 1 2012/04/23 12:16:10; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } lease 192.168.20.10 { starts 1 2012/04/23 12:16:25; ends 1 2012/04/23 12:26:25; cltt 1 2012/04/23 12:16:25; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; }
Время первой команды журнала | 11:08:05 2012- 4-23 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 14:43:14 2012- 4-23 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 2.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.52 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.10 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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