/l3/users/Mike/nt-voip/linux2.unix.nt/root :1 :2 :3 :4 :5 |
|
#chod /tmp/
asterisk.png tmp.6WBudlwNNo etc-linux2.unix.nt.tar.bz2 tmp.7sFT0m313Q .ICE-unix/ tmp.P8KhlD3iZg keyring-I0w0cg/ tmp.rGgARwA09R Master.csv tmp.uQvyAl5Zel mc-root/ tmp.Us9Krd36RB orbit-Debian-gdm/ tmp.wnx6QHbQe0 orbit-mike/ virtual-mike.pMegUV/ seahorse-tTq2Rx/ .X0-lock ssh-QszhIY1846/ .X11-unix/ tmp.15PZaMLvzl |
#chmod 777 /tmp/mast
asterisk.png tmp.6WBudlwNNo etc-linux2.unix.nt.tar.bz2 tmp.7sFT0m313Q .ICE-unix/ tmp.P8KhlD3iZg keyring-I0w0cg/ tmp.rGgARwA09R Master.csv tmp.uQvyAl5Zel mc-root/ tmp.Us9Krd36RB orbit-Debian-gdm/ tmp.wnx6QHbQe0 orbit-mike/ virtual-mike.pMegUV/ seahorse-tTq2Rx/ .X0-lock ssh-QszhIY1846/ .X11-unix/ tmp.15PZaMLvzl |
#chmod 777 /tmp/mast
asterisk.png tmp.6WBudlwNNo etc-linux2.unix.nt.tar.bz2 tmp.7sFT0m313Q .ICE-unix/ tmp.P8KhlD3iZg keyring-I0w0cg/ tmp.rGgARwA09R Master.csv tmp.uQvyAl5Zel mc-root/ tmp.Us9Krd36RB orbit-Debian-gdm/ tmp.wnx6QHbQe0 orbit-mike/ virtual-mike.pMegUV/ seahorse-tTq2Rx/ .X0-lock ssh-QszhIY1846/ .X11-unix/ tmp.15PZaMLvzl |
#chmod 777
chmod: missing operand after `777' Try `chmod --help' for more information. |
#chmod 777 /tmp/Master.csv
|
## a2billing
|
## http://www.star2billing.com/
|
#chmod 777 /tmp/Master.csv
|
##rsync -a /etc/ linux1.unix.nt:/tmp/etc/
ile âââââââââââââââââââ âââââââââââââââââââââââââââ |
#pt-get install tshark
bash: pt-get: command not found |
#apt-get install tshark
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: libc-ares2 libcap2-bin libsmi2ldbl wireshark-common Suggested packages: libcap-dev snmp-mibs-downloader ... Selecting previously deselected package wireshark-common. Unpacking wireshark-common (from .../wireshark-common_1.2.11-6+squeeze6_i386.deb) ... Selecting previously deselected package tshark. Unpacking tshark (from .../tshark_1.2.11-6+squeeze6_i386.deb) ... Processing triggers for man-db ... Setting up libcap2-bin (1:2.19-3) ... Setting up libsmi2ldbl (0.4.8+dfsg2-3) ... Setting up libc-ares2 (1.7.3-1squeeze1) ... Setting up wireshark-common (1.2.11-6+squeeze6) ... Setting up tshark (1.2.11-6+squeeze6) ... |
#tshark -i eth0
Running as user "root" and group "root". This could be dangerous. Capturing on eth0 0.000000 HewlettP_fd:f3:ae -> Spanning-tree-(for-bridges)_00 STP RST. Root = 0/0/00:18:71:8b:62:40 Cost = 42000 Port = 0x8012 1.850196 192.168.20.1 -> 74.125.232.243 TCP 57498 > http [FIN, ACK] Seq=1 Ack=1 Win=1002 Len=0 TSV=28436558 TSER=2136671511 1.850208 192.168.20.1 -> 74.125.232.244 TCP 46374 > http [FIN, ACK] Seq=1 Ack=1 Win=1002 Len=0 TSV=28436558 TSER=2137802540 1.850212 192.168.20.1 -> 74.125.232.243 TCP 57487 > http [FIN, ACK] Seq=1 Ack=1 Win=1002 Len=0 TSV=28436558 TSER=2136671516 1.995922 HewlettP_fd:f3:ae -> Spanning-tree-(for-bridges)_00 STP RST. Root = 0/0/00:18:71:8b:62:40 Cost = 42000 Port = 0x8012 2.870208 192.168.20.1 -> 74.125.232.243 TCP 57491 > http [FIN, ACK] Seq=1 Ack=1 Win=1002 Len=0 TSV=28436813 TSER=2136671505 2.870219 192.168.20.1 -> 74.125.232.240 TCP 39073 > http [FIN, ACK] Seq=1 Ack=1 Win=1002 Len=0 TSV=28436813 TSER=2136671538 2.870223 192.168.20.1 -> 92.123.148.20 TCP 60573 > http [FIN, ACK] Seq=1 Ack=1 Win=1030 Len=0 TSV=28436813 TSER=4183980551 ... 81.993510 HewlettP_fd:f3:ae -> Spanning-tree-(for-bridges)_00 STP RST. Root = 0/0/00:18:71:8b:62:40 Cost = 42000 Port = 0x8012 83.997997 HewlettP_fd:f3:ae -> Spanning-tree-(for-bridges)_00 STP RST. Root = 0/0/00:18:71:8b:62:40 Cost = 42000 Port = 0x8012 85.994617 HewlettP_fd:f3:ae -> Spanning-tree-(for-bridges)_00 STP RST. Root = 0/0/00:18:71:8b:62:40 Cost = 42000 Port = 0x8012 85.996889 HewlettP_fd:f3:ae -> LLDP_Multicast LLDP Chassis Id = 00:14:c2:fd:f3:80 Port Id = 18 TTL = 120 87.993934 HewlettP_fd:f3:ae -> Spanning-tree-(for-bridges)_00 STP RST. Root = 0/0/00:18:71:8b:62:40 Cost = 42000 Port = 0x8012 89.997917 HewlettP_fd:f3:ae -> Spanning-tree-(for-bridges)_00 STP RST. Root = 0/0/00:18:71:8b:62:40 Cost = 42000 Port = 0x8012 91.994166 HewlettP_fd:f3:ae -> Spanning-tree-(for-bridges)_00 STP RST. Root = 0/0/00:18:71:8b:62:40 Cost = 42000 Port = 0x8012 ^[c 93.993321 HewlettP_fd:f3:ae -> Spanning-tree-(for-bridges)_00 STP RST. Root = 0/0/00:18:71:8b:62:40 Cost = 42000 Port = 0x8012 ^[x^[x^[c^[c 95.998291 HewlettP_fd:f3:ae -> Spanning-tree-(for-bridges)_00 STP RST. Root = 0/0/00:18:71:8b:62:40 Cost = 42000 Port = 0x8012 ^C211 packets captured |
#cd /tmp/
|
#ls
asterisk.png orbit-Debian-gdm tmp.P8KhlD3iZg certified-asterisk-1.8.11-cert1 orbit-mike tmp.rGgARwA09R certified-asterisk-1.8.11-cert1.tar.gz seahorse-tTq2Rx tmp.uQvyAl5Zel etc-linux2.unix.nt.tar.bz2 ssh-QszhIY1846 tmp.Us9Krd36RB keyring-I0w0cg tmp.15PZaMLvzl tmp.wnx6QHbQe0 Master.csv tmp.6WBudlwNNo virtual-mike.pMegUV mc-root tmp.7sFT0m313Q wiresharkXXXXfuGaRh |
#cd certified-asterisk-1.8.11-cert1/
|
#./co
codecs/ configs/ configure config.guess config.sub contrib/ |
#./con
config.guess configs/ config.sub configure contrib/ |
#./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) |
#make
make: -F.: Command not found /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - **** **** The configure script must be executed before running 'make'. **** Please run "./configure". **** make: *** [makeopts] Error 1 |
#make
make: -F.: Command not found /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - **** **** The configure script must be executed before running 'make'. **** Please run "./configure". **** make: *** [makeopts] Error 1 |
#make
make: -F.: Command not found /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - **** **** The configure script must be executed before running 'make'. **** Please run "./configure". **** make: *** [makeopts] Error 1 |
#make
make: -F.: Command not found /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - **** **** The configure script must be executed before running 'make'. **** Please run "./configure". **** make: *** [makeopts] Error 1 |
#make
make: -F.: Command not found /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - **** **** The configure script must be executed before running 'make'. **** Please run "./configure". **** make: *** [makeopts] Error 1 |
#make
make: -F.: Command not found /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - **** **** The configure script must be executed before running 'make'. **** Please run "./configure". **** make: *** [makeopts] Error 1 |
#make
make: -F.: Command not found /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - **** **** The configure script must be executed before running 'make'. **** Please run "./configure". **** make: *** [makeopts] Error 1 |
#make
make: -F.: Command not found /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - **** **** The configure script must be executed before running 'make'. **** Please run "./configure". **** make: *** [makeopts] Error 1 |
#make
make: -F.: Command not found /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - **** **** The configure script must be executed before running 'make'. **** Please run "./configure". **** make: *** [makeopts] Error 1 |
#./co
codecs/ configs/ configure config.guess config.sub contrib/ |
#./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-get install ncurses-dev
Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'libncurses5-dev' instead of 'ncurses-dev' 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 (11.4 MB/s) Selecting previously deselected package libncurses5-dev. (Reading database ... 132219 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 --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 menuconfig
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 `/tmp/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 gcc -Os -g -Wall -c mxml-node.c gcc -Os -g -Wall -c mxml-search.c ... make[1]: Nothing to be done for `gmenuselect'. make[1]: Leaving directory `/tmp/certified-asterisk-1.8.11-cert1/menuselect' make[1]: Entering directory `/tmp/certified-asterisk-1.8.11-cert1' Generating input for menuselect ... CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" menuselect make[2]: Entering directory `/tmp/certified-asterisk-1.8.11-cert1/menuselect' gcc -g -c -D_GNU_SOURCE -Wall -c -o menuselect_stub.o menuselect_stub.c gcc -o menuselect menuselect.o strcompat.o menuselect_stub.o mxml/libmxml.a make[2]: Leaving directory `/tmp/certified-asterisk-1.8.11-cert1/menuselect' Terminal must be at least 80 x 27. |
#make menuconfig
Press 'h' for help. Add-ons (See README-addons.txt) Applications Bridging Modules Call Detail Recording Channel Event Logging Channel Drivers Codec Translators Format Interpreters Dialplan Functions ... Test Modules Compiler Flags Voicemail Build Options Utilities AGI Samples Module Embedding Core Sound Packages Music On Hold File Packages menuselect changes NOT saved! ---> Extras Sound Packages make[1]: Leaving directory `/tmp/certified-asterisk-1.8.11-cert1' |
#make
menuselect/menuselect --check-deps menuselect.makeopts menuselect/menuselect --check-deps menuselect.makeopts Generating embedded module rules ... [CC] astcanary.c -> astcanary.o [LD] astcanary.o -> astcanary [CC] chan_agent.c -> chan_agent.o [LD] chan_agent.o -> chan_agent.so [CC] chan_bridge.c -> chan_bridge.o [LD] chan_bridge.o -> chan_bridge.so [CC] chan_iax2.c -> chan_iax2.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_ Building Documentation For: channels pbx apps codecs formats cdr cel bridges funcs tests main res addons +--------- Asterisk Build Complete ---------+ + Asterisk has successfully been built, and + + can be installed by running: + + + + make install + +-------------------------------------------+ |
#mkdir /etc/asterisk_old
|
#make install
/usr/bin/install -c -d "/usr/lib/asterisk/modules" /usr/bin/install -c -d "/usr/sbin" /usr/bin/install -c -d "/etc/asterisk" /usr/bin/install -c -d "/var/run/asterisk" /usr/bin/install -c -d "/var/spool/asterisk" /usr/bin/install -c -d "/var/spool/asterisk/dictate" /usr/bin/install -c -d "/var/spool/asterisk/meetme" /usr/bin/install -c -d "/var/spool/asterisk/monitor" /usr/bin/install -c -d "/var/spool/asterisk/system" /usr/bin/install -c -d "/var/spool/asterisk/tmp" ... res_crypto.so res_curl.so res_http_post.so res_jabber.so res_odbc.so res_phoneprov.so res_smdi.so res_snmp.so res_timing_pthread.so WARNING WARNING WARNING |
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk. |
#make install
/usr/bin/install -c -d "/usr/lib/asterisk/modules" /usr/bin/install -c -d "/usr/sbin" /usr/bin/install -c -d "/etc/asterisk" /usr/bin/install -c -d "/var/run/asterisk" /usr/bin/install -c -d "/var/spool/asterisk" /usr/bin/install -c -d "/var/spool/asterisk/dictate" /usr/bin/install -c -d "/var/spool/asterisk/meetme" /usr/bin/install -c -d "/var/spool/asterisk/monitor" /usr/bin/install -c -d "/var/spool/asterisk/system" /usr/bin/install -c -d "/var/spool/asterisk/tmp" ... res_crypto.so res_curl.so res_http_post.so res_jabber.so res_odbc.so res_phoneprov.so res_smdi.so res_snmp.so res_timing_pthread.so WARNING WARNING WARNING |
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk. |
#make menuconfig
************************************************** Asterisk Module and Build Option Selection ************************************************** Press 'h' for help. --- core --- [*] pbx_config [*] pbx_loopback [*] pbx_spool --- extended --- < > pbx_ael XXX pbx_dundi XXX pbx_lua [ ] pbx_realtime Asterisk Extension Language Compiler Depends on: res_ael_share(M) Can use: crypto(E) Support Level: extended |
#make menuconfig
************************************************** Asterisk Module and Build Option Selection ************************************************** Press 'h' for help. --- core --- [*] chan_agent [*] chan_bridge XXX chan_dahdi [*] chan_iax2 [*] chan_local [*] chan_multicast_rtp [*] chan_sip --- extended --- XXX chan_alsa XXX chan_console ... More ... Local Proxy Channel (Note: used internally by other modules) Depends on: dahdi(E), tonezone(E)nitor(M) crypto Support Level: core |
#make menuconfig
Press 'h' for help. Add-ons (See README-addons.txt) Applications Bridging Modules Call Detail Recording Channel Event Logging Channel Drivers Codec Translators Format Interpreters Dialplan Functions ... Test Modules Compiler Flags Voicemail Build Options Utilities AGI Samples Module Embedding Core Sound Packages Music On Hold File Packages menuselect changes NOT saved! Extras Sound Packages make[1]: Leaving directory `/tmp/certified-asterisk-1.8.11-cert1' |
#make menuconfig
Press 'h' for help. Add-ons (See README-addons.txt) Applications Bridging Modules Call Detail Recording Channel Event Logging Channel Drivers Codec Translators Format Interpreters Dialplan Functions ... Test Modules Compiler Flags Voicemail Build Options Utilities AGI Samples Module Embedding Core Sound Packages Music On Hold File Packages menuselect changes NOT saved! Extras Sound Packages make[1]: Leaving directory `/tmp/certified-asterisk-1.8.11-cert1' |
#apt-get install libsrtp0-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: libsrtp0-dev 0 upgraded, 1 newly installed, 0 to remove and 10 not upgraded. Need to get 84.2 kB of archives. After this operation, 385 kB of additional disk space will be used. Get:1 http://10.0.35.1/debian/ squeeze/main libsrtp0-dev i386 1.4.4~dfsg-6 [84.2 kB] Fetched 84.2 kB in 0s (8,088 kB/s) Selecting previously deselected package libsrtp0-dev. (Reading database ... 133272 files and directories currently installed.) Unpacking libsrtp0-dev (from .../libsrtp0-dev_1.4.4~dfsg-6_i386.deb) ... Setting up libsrtp0-dev (1.4.4~dfsg-6) ... |
#./configure --help
`configure' configures asterisk trunk to adapt to many kinds of systems. Usage: ./configure [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit ... LIBS libraries to pass to the linker, e.g. -l<library> CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> CPP C preprocessor CXX C++ compiler command CXXFLAGS C++ compiler flags CXXCPP C++ preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to <https://issues.asterisk.org>. |
#./configure --help | grep scrt
|
#./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 : |
##apt-get install libsrtp0-dev
|
#make menuconfig
Press 'h' for help. Add-ons (See README-addons.txt) Applications Bridging Modules Call Detail Recording Channel Event Logging Channel Drivers Codec Translators Format Interpreters Dialplan Functions ... Test Modules Compiler Flags Voicemail Build Options Utilities AGI Samples Module Embedding Core Sound Packages Music On Hold File Packages menuselect changes NOT saved! Extras Sound Packages make[1]: Leaving directory `/tmp/certified-asterisk-1.8.11-cert1' |
#make -j2
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[1]: Entering directory `/tmp/certified-asterisk-1.8.11-cert1/menuselect' make[1]: `makeopts' is up to date. make[1]: Leaving directory `/tmp/certified-asterisk-1.8.11-cert1/menuselect' menuselect/menuselect --check-deps menuselect.makeopts menuselect/menuselect --check-deps menuselect.makeopts Generating embedded module rules ... [CC] pbx_config.c -> pbx_config.o [CC] chan_agent.c -> chan_agent.o [CC] pbx_loopback.c -> pbx_loopback.o ... [CC] version.c -> version.o [CC] xml.c -> xml.o [CC] xmldoc.c -> xmldoc.o [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 install
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[1]: Entering directory `/tmp/certified-asterisk-1.8.11-cert1/menuselect' make[1]: `makeopts' is up to date. make[1]: Leaving directory `/tmp/certified-asterisk-1.8.11-cert1/menuselect' /usr/bin/install -c -d "/usr/lib/asterisk/modules" /usr/bin/install -c -d "/usr/sbin" /usr/bin/install -c -d "/etc/asterisk" /usr/bin/install -c -d "/var/run/asterisk" /usr/bin/install -c -d "/var/spool/asterisk" /usr/bin/install -c -d "/var/spool/asterisk/dictate" ... res_crypto.so res_curl.so res_http_post.so res_jabber.so res_odbc.so res_phoneprov.so res_smdi.so res_snmp.so res_timing_pthread.so WARNING WARNING WARNING |
#mcedit /etc/asterisk/sip.conf
ââââââââââââââââââ ââââââââââââââââââââââââââ |
#mcedit /etc/asterisk/sip.conf
|
##sip set debug on
|
###sip set debug off
|
Время первой команды журнала | 13:53:29 2012- 4-27 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:58:13 2012- 4-27 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 56 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 26.79 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.79 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.76 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.23 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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