/l3/users/igor-public/nt-voip/linux0.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 |
|
#cat /root/emails.txt
![]() |
#cat /root/emails.txt
|
#ls /usr/local/bin/
![]() asterisk-festival.pl check-failed-regs.pl l3-agent l3-config l3script |
#ls /usr/local/bin/
asterisk-festival.pl check-failed-regs.pl l3-agent l3-config l3script |
#iptables -L -n
![]() Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#iptables -L -n
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#apt-cache search ettercap
![]() ettercap-common - Common support files and plugins for ettercap ettercap-gtk - Multipurpose sniffer/interceptor/logger for switched LAN ettercap - Multipurpose sniffer/interceptor/logger for switched LAN |
#apt-cache search ettercap
ettercap-common - Common support files and plugins for ettercap ettercap-gtk - Multipurpose sniffer/interceptor/logger for switched LAN ettercap - Multipurpose sniffer/interceptor/logger for switched LAN |
#apt-get install ettercap
![]() Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: ettercap-common The following NEW packages will be installed: ettercap ettercap-common ... Get:2 http://10.0.35.1/debian/ squeeze/main ettercap i386 1:0.7.3-2.1 [190 kB] Fetched 493 kB in 0s (1,530 kB/s) Selecting previously deselected package ettercap-common. (Reading database ... 145356 files and directories currently installed.) Unpacking ettercap-common (from .../ettercap-common_1%3a0.7.3-2.1_i386.deb) ... Selecting previously deselected package ettercap. Unpacking ettercap (from .../ettercap_1%3a0.7.3-2.1_i386.deb) ... Processing triggers for man-db ... Setting up ettercap-common (1:0.7.3-2.1) ... Setting up ettercap (1:0.7.3-2.1) ... |
#apt-get install ettercap
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: ettercap-common The following NEW packages will be installed: ettercap ettercap-common ... Get:2 http://10.0.35.1/debian/ squeeze/main ettercap i386 1:0.7.3-2.1 [190 kB] Fetched 493 kB in 0s (1,530 kB/s) Selecting previously deselected package ettercap-common. (Reading database ... 145356 files and directories currently installed.) Unpacking ettercap-common (from .../ettercap-common_1%3a0.7.3-2.1_i386.deb) ... Selecting previously deselected package ettercap. Unpacking ettercap (from .../ettercap_1%3a0.7.3-2.1_i386.deb) ... Processing triggers for man-db ... Setting up ettercap-common (1:0.7.3-2.1) ... Setting up ettercap (1:0.7.3-2.1) ... |
#ls -l /var/log/asterisk/
![]() total 1048 drwxr-xr-x 2 asterisk asterisk 4096 Apr 24 11:16 cdr-csv drwxr-xr-x 2 asterisk asterisk 4096 Dec 18 23:46 cdr-custom -rw-rw---- 1 asterisk asterisk 0 Apr 23 12:42 event_log -rw-rw---- 1 asterisk asterisk 1053435 Apr 27 12:27 messages -rw-rw---- 1 asterisk asterisk 536 Apr 27 12:59 queue_log |
#ls -l /var/log/asterisk/
total 1048 drwxr-xr-x 2 asterisk asterisk 4096 Apr 24 11:16 cdr-csv drwxr-xr-x 2 asterisk asterisk 4096 Dec 18 23:46 cdr-custom -rw-rw---- 1 asterisk asterisk 0 Apr 23 12:42 event_log -rw-rw---- 1 asterisk asterisk 1053435 Apr 27 12:27 messages -rw-rw---- 1 asterisk asterisk 536 Apr 27 12:59 queue_log |
#ls -l /var/log/asterisk/cdr-csv/
![]() total 12 -rw-rw---- 1 asterisk asterisk 8412 Apr 26 12:37 Master.csv |
#ls -l /var/log/asterisk/cdr-csv/
total 12 -rw-rw---- 1 asterisk asterisk 8412 Apr 26 12:37 Master.csv |
#ls -l /var/lib/asterisk/
![]() total 56 -rw-rw---- 1 asterisk asterisk 8192 Apr 27 12:42 astdb drwxr-xr-x 2 asterisk asterisk 4096 Apr 25 10:12 moh drwxr-xr-x 2 asterisk asterisk 4096 Apr 25 10:31 moh.class1 -rw------- 1 asterisk asterisk 33 Apr 27 10:31 sendxmpprc drwxr-xr-x 4 asterisk asterisk 4096 Apr 25 16:35 sounds -rw-r----- 1 asterisk asterisk 32768 Apr 26 12:37 sqlite.db |
#ls -l /var/lib/asterisk/
total 56 -rw-rw---- 1 asterisk asterisk 8192 Apr 27 12:42 astdb drwxr-xr-x 2 asterisk asterisk 4096 Apr 25 10:12 moh drwxr-xr-x 2 asterisk asterisk 4096 Apr 25 10:31 moh.class1 -rw------- 1 asterisk asterisk 33 Apr 27 10:31 sendxmpprc drwxr-xr-x 4 asterisk asterisk 4096 Apr 25 16:35 sounds -rw-r----- 1 asterisk asterisk 32768 Apr 26 12:37 sqlite.db |
#ssh linux1
![]() 8.10.1>' failed for '192.168.10.10' - Wrong password 8.10.1>' failed for '192.168.10.10' - Wrong password 8.10.1>' failed for '192.168.10.10' - Wrong password 8.10.1>' failed for '192.168.10.10' - Wrong password 8.10.1>' failed for '192.168.10.10' - Wrong password } while ($blockedhosts =~ /(.*)/g) { my ($line2) = $1; chomp($line2); if ($line2 =~ m/(\d+\.\d+\.\d{\.\d+)(\s+)/) { ... } } 4 } else { print "no failed registrations.\n"; } sub count_unique { "/usr/local/bin/check-failed-regs.pl" 60L, 1449C written root@linux1:~# exit logout Connection to linux1 closed. |
#ssh linux1
Linux linux1 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Apr 27 14:24:36 2012 from note.unix.nt l3-agent is already running: pid=7826; pidfile=/root/.lilalo/l3-agent.pid root@linux1:~# iptables -L -n Chain INPUT (policy ACCEPT) ... while (my print "$ip blocked. $count attempts.\n"; } } } } else { print "no failed registrations.\n"; "/usr/local/bin/check-failed-regs.pl" 60L, 1449C written root@linux1:~# exit logoutunt_unique { Connection to linux1 closed. |
#iptables -L -n
![]() Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 limit: avg 10/sec burst 5 asterisk all -- 0.0.0.0/0 0.0.0.0/0 Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain asterisk (1 references) target prot opt source destination ACCEPT all -- 1.2.3.4 0.0.0.0/0 |
#iptables -L -n
Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 limit: avg 10/sec burst 5 asterisk all -- 0.0.0.0/0 0.0.0.0/0 Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain asterisk (1 references) target prot opt source destination ACCEPT all -- 1.2.3.4 0.0.0.0/0 |
#cd /etc/asterisk.backup/
![]() |
#cd /etc/asterisk.backup/
|
#ls -l
![]() total 660 -rw-r----- 1 root root 140 Apr 27 12:48 adsi.conf -rw-r----- 1 root root 840 Apr 27 12:48 adtranvofr.conf -rw-r----- 1 root root 3087 Apr 27 12:48 agents.conf -rw-r----- 1 root root 2906 Apr 27 12:48 ais.conf -rw-r----- 1 root root 2227 Apr 27 12:48 alarmreceiver.conf -rw-r----- 1 root root 3259 Apr 27 12:48 alsa.conf -rw-r----- 1 root root 767 Apr 27 12:48 amd.conf -rw-r----- 1 root root 3260 Apr 27 12:48 asterisk.adsi -rw-r----- 1 root root 3234 Apr 27 12:48 asterisk.conf ... -rw-r----- 1 root root 9135 Apr 27 12:48 skinny.conf -rw-r----- 1 root root 6717 Apr 27 12:48 sla.conf -rw-r----- 1 root root 2669 Apr 27 12:48 smdi.conf -rw-r----- 1 root root 1384 Apr 27 12:48 telcordia-1.adsi -rw-r----- 1 root root 656 Apr 27 12:48 udptl.conf -rw-r----- 1 root root 4909 Apr 27 12:48 unistim.conf -rw-r----- 1 root root 3216 Apr 27 12:48 usbradio.conf -rw-r----- 1 root root 2011 Apr 27 12:48 users.conf.save -rw-r----- 1 root root 17962 Apr 27 12:48 voicemail.conf -rw-r----- 1 root root 5939 Apr 27 12:48 vpb.conf |
#ls -l
total 660 -rw-r----- 1 root root 140 Apr 27 12:48 adsi.conf -rw-r----- 1 root root 840 Apr 27 12:48 adtranvofr.conf -rw-r----- 1 root root 3087 Apr 27 12:48 agents.conf -rw-r----- 1 root root 2906 Apr 27 12:48 ais.conf -rw-r----- 1 root root 2227 Apr 27 12:48 alarmreceiver.conf -rw-r----- 1 root root 3259 Apr 27 12:48 alsa.conf -rw-r----- 1 root root 767 Apr 27 12:48 amd.conf -rw-r----- 1 root root 3260 Apr 27 12:48 asterisk.adsi -rw-r----- 1 root root 3234 Apr 27 12:48 asterisk.conf ... -rw-r----- 1 root root 9135 Apr 27 12:48 skinny.conf -rw-r----- 1 root root 6717 Apr 27 12:48 sla.conf -rw-r----- 1 root root 2669 Apr 27 12:48 smdi.conf -rw-r----- 1 root root 1384 Apr 27 12:48 telcordia-1.adsi -rw-r----- 1 root root 656 Apr 27 12:48 udptl.conf -rw-r----- 1 root root 4909 Apr 27 12:48 unistim.conf -rw-r----- 1 root root 3216 Apr 27 12:48 usbradio.conf -rw-r----- 1 root root 2011 Apr 27 12:48 users.conf.save -rw-r----- 1 root root 17962 Apr 27 12:48 voicemail.conf -rw-r----- 1 root root 5939 Apr 27 12:48 vpb.conf |
#dpkg -l asterisk
![]() Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++-=========================-=========================-================================================================== ii asterisk 1:1.6.2.9-2+squeeze4 Open Source Private Branch Exchange (PBX) |
#dpkg -l asterisk
Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++-=========================-=========================-================================================================== ii asterisk 1:1.6.2.9-2+squeeze4 Open Source Private Branch Exchange (PBX) |
#ssh linux1
![]() Linux linux1 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Apr 27 15:11:09 2012 from note.unix.nt l3-agent is already running: pid=7826; pidfile=/root/.lilalo/l3-agent.pid root@linux1:~# root@linux1:~# ... -rw-r--r-- 1 root root 858234 Feb 9 2011 openafs.tar.bz2 -rw-r--r-- 1 root root 489970 Dec 24 19:14 openswan-modules.tar.bz2 -rw-r--r-- 1 root root 91234 Feb 4 2010 qc-usb.tar.bz2 -rw-r--r-- 1 root root 4475454 Jul 3 2010 rtai-source.tar.bz2 -rw-r--r-- 1 root root 6592 Jun 14 2010 sysprof-module.tar.bz2 -rw-r--r-- 1 root root 439650 Oct 13 2010 virtualbox-ose.tar.bz2 -rw-r--r-- 1 root root 68983 Jan 16 2011 vpb-driver.tar.bz2 root@linux1:/usr/src# exit logout Connection to linux1 closed. |
#ssh linux1
Linux linux1 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Apr 27 15:11:09 2012 from note.unix.nt l3-agent is already running: pid=7826; pidfile=/root/.lilalo/l3-agent.pid root@linux1:~# root@linux1:~# ... -rw-r--r-- 1 root root 858234 Feb 9 2011 openafs.tar.bz2 -rw-r--r-- 1 root root 489970 Dec 24 19:14 openswan-modules.tar.bz2 -rw-r--r-- 1 root root 91234 Feb 4 2010 qc-usb.tar.bz2 -rw-r--r-- 1 root root 4475454 Jul 3 2010 rtai-source.tar.bz2 -rw-r--r-- 1 root root 6592 Jun 14 2010 sysprof-module.tar.bz2 -rw-r--r-- 1 root root 439650 Oct 13 2010 virtualbox-ose.tar.bz2 -rw-r--r-- 1 root root 68983 Jan 16 2011 vpb-driver.tar.bz2 root@linux1:/usr/src# exit logout Connection to linux1 closed. |
#ls -l
![]() total 26200 -rw-r--r-- 1 root root 25300385 Apr 25 23:06 certified-asterisk-1.8.11-cert1.tar.gz -rw-r--r-- 1 root root 563096 Apr 25 11:57 dahdi-modules-2.6.32-5-686_2.3.0.1+dfsg-2+2.6.32-41squeeze2_i386.deb -rw-r--r-- 1 root root 833864 Oct 29 2010 dahdi.tar.bz2 lrwxrwxrwx 1 root root 35 Apr 25 11:56 linux -> /usr/src/linux-headers-2.6.32-5-686 drwxr-xr-x 4 root root 4096 Apr 25 11:44 linux-headers-2.6.32-5-686 drwxr-xr-x 4 root root 4096 Apr 25 11:44 linux-headers-2.6.32-5-common lrwxrwxrwx 1 root root 26 Apr 25 11:44 linux-kbuild-2.6.32 -> ../lib/linux-kbuild-2.6.32 drwxr-xr-x 3 root root 4096 Oct 29 2010 modules -rw-r--r-- 1 root root 68983 Jan 16 2011 vpb-driver.tar.bz2 |
#ls -l
total 26200 -rw-r--r-- 1 root root 25300385 Apr 25 23:06 certified-asterisk-1.8.11-cert1.tar.gz -rw-r--r-- 1 root root 563096 Apr 25 11:57 dahdi-modules-2.6.32-5-686_2.3.0.1+dfsg-2+2.6.32-41squeeze2_i386.deb -rw-r--r-- 1 root root 833864 Oct 29 2010 dahdi.tar.bz2 lrwxrwxrwx 1 root root 35 Apr 25 11:56 linux -> /usr/src/linux-headers-2.6.32-5-686 drwxr-xr-x 4 root root 4096 Apr 25 11:44 linux-headers-2.6.32-5-686 drwxr-xr-x 4 root root 4096 Apr 25 11:44 linux-headers-2.6.32-5-common lrwxrwxrwx 1 root root 26 Apr 25 11:44 linux-kbuild-2.6.32 -> ../lib/linux-kbuild-2.6.32 drwxr-xr-x 3 root root 4096 Oct 29 2010 modules -rw-r--r-- 1 root root 68983 Jan 16 2011 vpb-driver.tar.bz2 |
#ls -l
![]() total 4128 drwxr-xr-x 3 root root 4096 Apr 25 22:03 addons drwxr-xr-x 2 root root 4096 Apr 25 22:03 agi drwxr-xr-x 2 root root 4096 Apr 25 22:03 apps drwxr-xr-x 2 root root 4096 Apr 25 22:03 autoconf -rwxr-xr-x 1 root root 1041 Jan 13 23:40 bootstrap.sh drwxr-xr-x 2 root root 4096 Apr 25 22:03 bridges -rw-r--r-- 1 root root 294 Sep 6 2010 BSDmakefile -rw-r--r-- 1 root root 594 May 29 2009 BUGS drwxr-xr-x 2 root root 4096 Apr 25 22:03 build_tools ... -rw-r--r-- 1 root root 2721 Dec 20 2010 sample.call drwxr-xr-x 2 root root 4096 Apr 25 22:03 sounds drwxr-xr-x 2 root root 4096 Apr 25 22:03 static-http drwxr-xr-x 2 root root 4096 Apr 25 22:03 tests -rw-r--r-- 1 root root 9318 Nov 21 2008 UPGRADE-1.2.txt -rw-r--r-- 1 root root 25890 Aug 18 2009 UPGRADE-1.4.txt -rw-r--r-- 1 root root 13965 May 7 2010 UPGRADE-1.6.txt -rw-r--r-- 1 root root 17456 Feb 2 18:58 UPGRADE.txt drwxr-xr-x 2 root root 4096 Apr 25 22:03 utils -rw-r--r-- 1 root root 1723 Aug 14 2008 Zaptel-to-DAHDI.txt |
#ls -l
total 4128 drwxr-xr-x 3 root root 4096 Apr 25 22:03 addons drwxr-xr-x 2 root root 4096 Apr 25 22:03 agi drwxr-xr-x 2 root root 4096 Apr 25 22:03 apps drwxr-xr-x 2 root root 4096 Apr 25 22:03 autoconf -rwxr-xr-x 1 root root 1041 Jan 13 23:40 bootstrap.sh drwxr-xr-x 2 root root 4096 Apr 25 22:03 bridges -rw-r--r-- 1 root root 294 Sep 6 2010 BSDmakefile -rw-r--r-- 1 root root 594 May 29 2009 BUGS drwxr-xr-x 2 root root 4096 Apr 25 22:03 build_tools ... -rw-r--r-- 1 root root 2721 Dec 20 2010 sample.call drwxr-xr-x 2 root root 4096 Apr 25 22:03 sounds drwxr-xr-x 2 root root 4096 Apr 25 22:03 static-http drwxr-xr-x 2 root root 4096 Apr 25 22:03 tests -rw-r--r-- 1 root root 9318 Nov 21 2008 UPGRADE-1.2.txt -rw-r--r-- 1 root root 25890 Aug 18 2009 UPGRADE-1.4.txt -rw-r--r-- 1 root root 13965 May 7 2010 UPGRADE-1.6.txt -rw-r--r-- 1 root root 17456 Feb 2 18:58 UPGRADE.txt drwxr-xr-x 2 root root 4096 Apr 25 22:03 utils -rw-r--r-- 1 root root 1723 Aug 14 2008 Zaptel-to-DAHDI.txt |
#./configure
![]() checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes ... checking arpa/nameser.h presence... yes checking for arpa/nameser.h... yes checking sys/io.h usability... yes checking sys/io.h presence... yes checking for sys/io.h... yes checking for tgetent in -ltermcap... no checking for tgetent in -ltinfo... no checking for initscr in -lcurses... no checking for initscr in -lncurses... no configure: error: *** termcap support not found (on modern systems, this typically means the ncurses development package is missing) |
#./configure
![]() checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes ... checking arpa/nameser.h presence... yes checking for arpa/nameser.h... yes checking sys/io.h usability... yes checking sys/io.h presence... yes checking for sys/io.h... yes checking for tgetent in -ltermcap... no checking for tgetent in -ltinfo... no checking for initscr in -lcurses... no checking for initscr in -lncurses... no configure: error: *** termcap support not found (on modern systems, this typically means the ncurses development package is missing) |
#apt-cache search termcap
![]() cmucl-source - The CMUCL lisp sources colortest - utilities to test color capabilities of terminal ircii - Internet Relay Chat client joe - user friendly full screen text editor |
#apt-cache search termcap
cmucl-source - The CMUCL lisp sources colortest - utilities to test color capabilities of terminal ircii - Internet Relay Chat client joe - user friendly full screen text editor |
#apt-cache search ncurses dev
![]() bochs-term - Terminal (ncurses-based) plugin for Bochs btscanner - ncurses-based scanner for Bluetooth devices libcunit1-ncurses-dev - Unit Testing Library for C (ncurses) -- development files dav-text - A minimalist ncurses-based text editor libghc6-hscurses-dev - ncurses bindings for Haskell - development files for GHC6 libkaya-ncurses-dev - Ncurses binding for kaya libkaya-ncursesw-dev - Ncurses binding for kaya libtexttools2-dev - Ada and C++ library for writing console applications: development moc - ncurses based console audio player mybashburn - Burn data and create songs with interactive dialog box lib64ncurses5-dev - developer's libraries for ncurses (64-bit) libncurses5-dev - developer's libraries and docs for ncurses libncursesw5-dev - developer's libraries for ncursesw whiptail - Displays user-friendly dialog boxes from shell scripts libcurses-ocaml-dev - OCaml bindings for the ncurses library powerman - Centralized Power Distribution Unit (PDU) management siggen - Waveform generation tools tcd - Portable CD player with an ncurses interface |
#apt-cache search ncurses dev
bochs-term - Terminal (ncurses-based) plugin for Bochs btscanner - ncurses-based scanner for Bluetooth devices libcunit1-ncurses-dev - Unit Testing Library for C (ncurses) -- development files dav-text - A minimalist ncurses-based text editor libghc6-hscurses-dev - ncurses bindings for Haskell - development files for GHC6 libkaya-ncurses-dev - Ncurses binding for kaya libkaya-ncursesw-dev - Ncurses binding for kaya libtexttools2-dev - Ada and C++ library for writing console applications: development moc - ncurses based console audio player mybashburn - Burn data and create songs with interactive dialog box lib64ncurses5-dev - developer's libraries for ncurses (64-bit) libncurses5-dev - developer's libraries and docs for ncurses libncursesw5-dev - developer's libraries for ncursesw whiptail - Displays user-friendly dialog boxes from shell scripts libcurses-ocaml-dev - OCaml bindings for the ncurses library powerman - Centralized Power Distribution Unit (PDU) management siggen - Waveform generation tools tcd - Portable CD player with an ncurses interface |
#apt-cache search ncurses dev
![]() bochs-term - Terminal (ncurses-based) plugin for Bochs btscanner - ncurses-based scanner for Bluetooth devices libcunit1-ncurses-dev - Unit Testing Library for C (ncurses) -- development files dav-text - A minimalist ncurses-based text editor libghc6-hscurses-dev - ncurses bindings for Haskell - development files for GHC6 libkaya-ncurses-dev - Ncurses binding for kaya libkaya-ncursesw-dev - Ncurses binding for kaya libtexttools2-dev - Ada and C++ library for writing console applications: development moc - ncurses based console audio player mybashburn - Burn data and create songs with interactive dialog box lib64ncurses5-dev - developer's libraries for ncurses (64-bit) libncurses5-dev - developer's libraries and docs for ncurses libncursesw5-dev - developer's libraries for ncursesw whiptail - Displays user-friendly dialog boxes from shell scripts libcurses-ocaml-dev - OCaml bindings for the ncurses library powerman - Centralized Power Distribution Unit (PDU) management siggen - Waveform generation tools tcd - Portable CD player with an ncurses interface |
#apt-cache search ncurses dev
bochs-term - Terminal (ncurses-based) plugin for Bochs btscanner - ncurses-based scanner for Bluetooth devices libcunit1-ncurses-dev - Unit Testing Library for C (ncurses) -- development files dav-text - A minimalist ncurses-based text editor libghc6-hscurses-dev - ncurses bindings for Haskell - development files for GHC6 libkaya-ncurses-dev - Ncurses binding for kaya libkaya-ncursesw-dev - Ncurses binding for kaya libtexttools2-dev - Ada and C++ library for writing console applications: development moc - ncurses based console audio player mybashburn - Burn data and create songs with interactive dialog box lib64ncurses5-dev - developer's libraries for ncurses (64-bit) libncurses5-dev - developer's libraries and docs for ncurses libncursesw5-dev - developer's libraries for ncursesw whiptail - Displays user-friendly dialog boxes from shell scripts libcurses-ocaml-dev - OCaml bindings for the ncurses library powerman - Centralized Power Distribution Unit (PDU) management siggen - Waveform generation tools tcd - Portable CD player with an ncurses interface |
#ls -l
![]() total 26204 drwxr-xr-x 29 root root 4096 Apr 27 16:21 certified-asterisk-1.8.11-cert1 -rw-r--r-- 1 root root 25300385 Apr 25 23:06 certified-asterisk-1.8.11-cert1.tar.gz -rw-r--r-- 1 root root 563096 Apr 25 11:57 dahdi-modules-2.6.32-5-686_2.3.0.1+dfsg-2+2.6.32-41squeeze2_i386.deb -rw-r--r-- 1 root root 833864 Oct 29 2010 dahdi.tar.bz2 lrwxrwxrwx 1 root root 35 Apr 25 11:56 linux -> /usr/src/linux-headers-2.6.32-5-686 drwxr-xr-x 4 root root 4096 Apr 25 11:44 linux-headers-2.6.32-5-686 drwxr-xr-x 4 root root 4096 Apr 25 11:44 linux-headers-2.6.32-5-common lrwxrwxrwx 1 root root 26 Apr 25 11:44 linux-kbuild-2.6.32 -> ../lib/linux-kbuild-2.6.32 drwxr-xr-x 3 root root 4096 Oct 29 2010 modules -rw-r--r-- 1 root root 68983 Jan 16 2011 vpb-driver.tar.bz2 |
#ls -l
total 26204 drwxr-xr-x 29 root root 4096 Apr 27 16:21 certified-asterisk-1.8.11-cert1 -rw-r--r-- 1 root root 25300385 Apr 25 23:06 certified-asterisk-1.8.11-cert1.tar.gz -rw-r--r-- 1 root root 563096 Apr 25 11:57 dahdi-modules-2.6.32-5-686_2.3.0.1+dfsg-2+2.6.32-41squeeze2_i386.deb -rw-r--r-- 1 root root 833864 Oct 29 2010 dahdi.tar.bz2 lrwxrwxrwx 1 root root 35 Apr 25 11:56 linux -> /usr/src/linux-headers-2.6.32-5-686 drwxr-xr-x 4 root root 4096 Apr 25 11:44 linux-headers-2.6.32-5-686 drwxr-xr-x 4 root root 4096 Apr 25 11:44 linux-headers-2.6.32-5-common lrwxrwxrwx 1 root root 26 Apr 25 11:44 linux-kbuild-2.6.32 -> ../lib/linux-kbuild-2.6.32 drwxr-xr-x 3 root root 4096 Oct 29 2010 modules -rw-r--r-- 1 root root 68983 Jan 16 2011 vpb-driver.tar.bz2 |
#ls
![]() certified-asterisk-1.8.11-cert1 certified-asterisk-1.8.11-cert1.tar.gz dahdi-modules-2.6.32-5-686_2.3.0.1+dfsg-2+2.6.32-41squeeze2_i386.deb dahdi.tar.bz2 linux linux-headers-2.6.32-5-686 linux-headers-2.6.32-5-common linux-kbuild-2.6.32 modules vpb-driver.tar.bz2 |
#ls
certified-asterisk-1.8.11-cert1 certified-asterisk-1.8.11-cert1.tar.gz dahdi-modules-2.6.32-5-686_2.3.0.1+dfsg-2+2.6.32-41squeeze2_i386.deb dahdi.tar.bz2 linux linux-headers-2.6.32-5-686 linux-headers-2.6.32-5-common linux-kbuild-2.6.32 modules vpb-driver.tar.bz2 |
#apt-get install libncurses5-dev
![]() Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: libncurses5-dev 0 upgraded, 1 newly installed, 0 to remove and 10 not upgraded. Need to get 1,597 kB of archives. After this operation, 6,685 kB of additional disk space will be used. Get:1 http://10.0.35.1/debian/ squeeze/main libncurses5-dev i386 5.7+20100313-5 [1,597 kB] Fetched 1,597 kB in 0s (8,527 kB/s) Selecting previously deselected package libncurses5-dev. (Reading database ... 145462 files and directories currently installed.) Unpacking libncurses5-dev (from .../libncurses5-dev_5.7+20100313-5_i386.deb) ... Processing triggers for man-db ... Setting up libncurses5-dev (5.7+20100313-5) ... |
#apt-get install libncurses5-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: libncurses5-dev 0 upgraded, 1 newly installed, 0 to remove and 10 not upgraded. Need to get 1,597 kB of archives. After this operation, 6,685 kB of additional disk space will be used. Get:1 http://10.0.35.1/debian/ squeeze/main libncurses5-dev i386 5.7+20100313-5 [1,597 kB] Fetched 1,597 kB in 0s (8,527 kB/s) Selecting previously deselected package libncurses5-dev. (Reading database ... 145462 files and directories currently installed.) Unpacking libncurses5-dev (from .../libncurses5-dev_5.7+20100313-5_i386.deb) ... Processing triggers for man-db ... Setting up libncurses5-dev (5.7+20100313-5) ... |
#./configure
![]() checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes ... checking for initscr in -lcurses... yes checking curses.h usability... yes checking curses.h presence... yes checking for curses.h... yes checking for initscr in -lncurses... yes checking for curses.h... (cached) yes checking for xml2-config... no configure: *** XML documentation will not be available because the 'libxml2' development package is missing. configure: *** Please run the 'configure' script with the '--disable-xmldoc' parameter option configure: *** or install the 'libxml2' development package. |
#./configure
![]() checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes ... checking for initscr in -lcurses... yes checking curses.h usability... yes checking curses.h presence... yes checking for curses.h... yes checking for initscr in -lncurses... yes checking for curses.h... (cached) yes checking for xml2-config... no configure: *** XML documentation will not be available because the 'libxml2' development package is missing. configure: *** Please run the 'configure' script with the '--disable-xmldoc' parameter option configure: *** or install the 'libxml2' development package. |
#./configure --disable-xmldoc
![]() checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes ... $$$$$ $$$ $$$$7. $$ (TM) $$$$$$$. .7$$$$$$ $$ $$$$$$$$$$$$7$$$$$$$$$.$$$$$$ $$$$$$$$$$$$$$$$. configure: Package configured for: configure: OS type : linux-gnu configure: Host CPU : i686 configure: build-cpu:vendor:os: i686 : pc : linux-gnu : configure: host-cpu:vendor:os: i686 : pc : linux-gnu : |
#./configure --disable-xmldoc
checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes ... $$$$$ $$$ $$$$7. $$ (TM) $$$$$$$. .7$$$$$$ $$ $$$$$$$$$$$$7$$$$$$$$$.$$$$$$ $$$$$$$$$$$$$$$$. configure: Package configured for: configure: OS type : linux-gnu configure: Host CPU : i686 configure: build-cpu:vendor:os: i686 : pc : linux-gnu : configure: host-cpu:vendor:os: i686 : pc : linux-gnu : |
#make menuselect
![]() Press 'h' for help. --- core --- [*] app_authenticate [*] app_cdr [*] app_celgenuserevent [*] app_channelredirect [*] app_chanspy [*] app_controlplayback [*] app_db [*] app_dial ... [*] app_speech_utils ... More ... Extension Macros Depends on: chan_local(M)(M) MeetMe conference bridge Depends on: dahdi(E) Read Variable Application Depends on: dahdi(E), app_meetme(M) Can use: res_monitor(M) ore, Replaced by: app_stack (GoSub) |
#make menuselect
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" cmenuselect make[1]: Entering directory `/usr/src/certified-asterisk-1.8.11-cert1/menuselect' gcc -g -c -D_GNU_SOURCE -Wall -c -o menuselect.o menuselect.c gcc -g -c -D_GNU_SOURCE -Wall -c -o strcompat.o strcompat.c gcc -g -c -D_GNU_SOURCE -Wall -c -o menuselect_curses.o menuselect_curses.c make[2]: Entering directory `/usr/src/certified-asterisk-1.8.11-cert1/menuselect/mxml' gcc -Os -g -Wall -c mxml-attr.c gcc -Os -g -Wall -c mxml-entity.c gcc -Os -g -Wall -c mxml-file.c gcc -Os -g -Wall -c mxml-index.c ... [*] app_speech_utils ... More ... Extension Macros Depends on: chan_local(M)(M) MeetMe conference bridge Depends on: dahdi(E) Read Variable Application Depends on: dahdi(E), app_meetme(M) Can use: res_monitor(M) ore, Replaced by: app_stack (GoSub) |
#make menuselect
![]() Press 'h' for help. --- core --- [*] codec_a_mu [*] codec_adpcm [*] codec_alaw [*] codec_dahdi [*] codec_g722 [*] codec_g726 [*] codec_gsm [*] codec_ilbc [*] codec_lpc10 XXX codec_resample XXX codec_speex [*] codec_ulaw menuselect changes NOT saved! make[1]: Leaving directory `/usr/src/certified-asterisk-1.8.11-cert1' |
#make menuselect
Press 'h' for help. --- core --- [*] codec_a_mu [*] codec_adpcm [*] codec_alaw [*] codec_dahdi [*] codec_g722 [*] codec_g726 [*] codec_gsm [*] codec_ilbc [*] codec_lpc10 XXX codec_resample XXX codec_speex [*] codec_ulaw menuselect changes NOT saved! make[1]: Leaving directory `/usr/src/certified-asterisk-1.8.11-cert1' |
#make menuconfig
![]() ************************************************** Asterisk Module and Build Option Selection ************************************************** Press 'h' for help. --- core --- [*] res_agi [*] res_calendar XXX res_calendar_caldav XXX res_calendar_ews XXX res_calendar_exchange ... [ ] res_ael_share XXX res_ais XXX res_config_ldap XXX res_config_pgsql XXX res_config_sqlite XXX res_fax_spandsp ... More ... ODBC resource Depends on: res_odbc(M) Support Level: core |
#make menuconfig
************************************************** Asterisk Module and Build Option Selection ************************************************** Press 'h' for help. --- core --- [*] res_agi [*] res_calendar XXX res_calendar_caldav XXX res_calendar_ews XXX res_calendar_exchange ... [ ] res_phoneprov [ ] res_pktccops [ ] res_smdi XXX res_snmp XXX res_timing_kqueue [ ] res_timing_pthread Spandsp G.711 and T.38 FAX Technologies Depends on: spandsp(E), res_fax(M) Can use: openssl(E) Support Level: extended |
#make -j4
![]() menuselect/menuselect --check-deps menuselect.makeopts menuselect/menuselect --check-deps menuselect.makeopts Building Documentation For: channels Generating embedded module rules ... pbx apps codecs formats cdr cel bridges funcs tests main [CC] astcanary.c -> astcanary.o [CC] chan_agent.c -> chan_agent.o [CC] pbx_config.c -> pbx_config.o [LD] astcanary.o -> astcanary [CC] app_authenticate.c -> app_authenticate.o res [CC] app_cdr.c -> app_cdr.o addons [CC] app_celgenuserevent.c -> app_celgenuserevent.o ... [CC] recno/rec_seq.c -> recno/rec_seq.o [CC] recno/rec_utils.c -> recno/rec_utils.o [AR] hash/hash.o hash/hash_bigkey.o hash/hash_buf.o hash/hash_func.o hash/hash_log2.o hash/hash_page.o hash/ndbm.o btree/bt_close.o btree/bt_conv.o btree/bt_debug.o btree/bt_delete.o btree/bt_get.o btree/bt_open.o btree/bt_overflow.o btree/bt_page.o btree/bt_put.o btree/bt_search.o btree/bt_seq.o btree/bt_split.o btree/bt_utils.o db/db.o mpool/mpool.o recno/rec_close.o recno/rec_delete.o recno/ [LD] abstract_jb.o acl.o alaw.o aoc.o app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o audiohook.o autochan.o autoservice.o bridging.o callerid.o ccss.o cdr.o cel.o channel.o chanvars.o cli.o config.o custom_control_frame.o data.o datastore.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o event.o features.o file.o fixedjitterbuf.o frame.o framehook.o fskmodem.o global_ +--------- Asterisk Build Complete ---------+ + Asterisk has successfully been built, and + + can be installed by running: + + + + make install + +-------------------------------------------+ |
#make -j4
menuselect/menuselect --check-deps menuselect.makeopts menuselect/menuselect --check-deps menuselect.makeopts Building Documentation For: channels Generating embedded module rules ... pbx apps codecs formats cdr cel bridges funcs tests main [CC] astcanary.c -> astcanary.o [CC] chan_agent.c -> chan_agent.o [CC] pbx_config.c -> pbx_config.o [LD] astcanary.o -> astcanary [CC] app_authenticate.c -> app_authenticate.o res [CC] app_cdr.c -> app_cdr.o addons [CC] app_celgenuserevent.c -> app_celgenuserevent.o ... [CC] recno/rec_seq.c -> recno/rec_seq.o [CC] recno/rec_utils.c -> recno/rec_utils.o [AR] hash/hash.o hash/hash_bigkey.o hash/hash_buf.o hash/hash_func.o hash/hash_log2.o hash/hash_page.o hash/ndbm.o btree/bt_close.o btree/bt_conv.o btree/bt_debug.o btree/bt_delete.o btree/bt_get.o btree/bt_open.o btree/bt_overflow.o btree/bt_page.o btree/bt_put.o btree/bt_search.o btree/bt_seq.o btree/bt_split.o btree/bt_utils.o db/db.o mpool/mpool.o recno/rec_close.o recno/rec_delete.o recno/ [LD] abstract_jb.o acl.o alaw.o aoc.o app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o audiohook.o autochan.o autoservice.o bridging.o callerid.o ccss.o cdr.o cel.o channel.o chanvars.o cli.o config.o custom_control_frame.o data.o datastore.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o event.o features.o file.o fixedjitterbuf.o frame.o framehook.o fskmodem.o global_ +--------- Asterisk Build Complete ---------+ + Asterisk has successfully been built, and + + can be installed by running: + + + + make install + +-------------------------------------------+ |
#/etc/init.d/asterisk stop
![]() Stopping Asterisk PBX: asterisk. |
#cd
|
Время первой команды журнала | 13:27:26 2012- 4-27 | ||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:36:04 2012- 4-27 | ||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 3.96 | ||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.42 | ||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.18 | ||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008