/l3/users/2014-11-nt-voip/nt-voip/debian2/root :1 :2 :3 :4 :5 :6 :7 |
|
#vi /etc/asterisk/cdr.conf
|
#asterisk reboot
Privilege escalation protection disabled! See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details. Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#; executing. By enabling this option, the CDR will be ended before executing
|
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian2 (pid = 11300) ... == Using SIP RTP CoS mark 5 -- Called SIP/kiev/1101 -- SIP/kiev-00000005 is ringing -- SIP/kiev-00000005 answered SIP/1201-00000004 -- Locally bridging SIP/1201-00000004 and SIP/kiev-00000005 == Spawn extension (gr1, 1101, 1) exited non-zero on 'SIP/1201-00000004' -- [dongle0] Trying to connect on /dev/ttyUSB2... [Nov 28 15:45:30] WARNING[11346]: chan_dongle.c:215 opentty: unable to open /dev/ttyUSB2: No such file or directory debian2*CLI> quit Executing last minute cleanups |
#ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data. 64 bytes from localhost (127.0.0.1): icmp_req=1 ttl=64 time=0.038 ms ^C --- localhost ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.038/0.038/0.038/0.000 ms |
#vim /etc/asterisk/cdr_
|
#vim /etc/asterisk/cdr_mysql.conf
--- /tmp/l3-saved-11841.18859.2618 2014-11-28 15:59:15.871003499 +0200 +++ /etc/asterisk/cdr_mysql.conf 2014-11-28 15:59:34.299003729 +0200 @@ -12,7 +12,7 @@ ; [global] -hostname=localhost +hostname=127.0.0.1 dbname=asterisk table=cdr password=password |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#less /var/log/asterisk/messages
|
#apt-get install asterisk-mysql
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: asterisk-mysql 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 658 kB of archives. After this operation, 783 kB of additional disk space will be used. Get:1 http://192.168.12.254/debian/ wheezy/main asterisk-mysql amd64 1:1.8.13.1~dfsg1-3+deb7u3 [658 kB] Fetched 658 kB in 0s (14.4 MB/s) Selecting previously unselected package asterisk-mysql. (Reading database ... 145614 files and directories currently installed.) Unpacking asterisk-mysql (from .../asterisk-mysql_1%3a1.8.13.1~dfsg1-3+deb7u3_amd64.deb) ... Setting up asterisk-mysql (1:1.8.13.1~dfsg1-3+deb7u3) ... |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#less /var/log/asterisk/messages
|
#mysql -u asterisk -p
Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 79 Server version: 5.5.40-0+wheezy1 (Debian) Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> use asterisk ... mysql> select * from cdr; +---------------------+------+------+------+----------+-------------------+-------------------+---------+---------------+----------+---------+-------------+----------+-------------+-----------+--------------+ | calldate | clid | src | dst | dcontext | channel | dstchannel | lastapp | lastdata | duration | billsec | disposition | amaflags | accountcode | userfield | uniqueid | +---------------------+------+------+------+----------+-------------------+-------------------+---------+---------------+----------+---------+-------------+----------+-------------+-----------+--------------+ | 2014-11-28 16:01:19 | 1201 | 1201 | 1101 | gr1 | SIP/1201-00000000 | SIP/kiev-00000001 | Dial | SIP/kiev/1101 | 4 | 2 | ANSWERED | 3 | | | 1417183279.0 | +---------------------+------+------+------+----------+-------------------+-------------------+---------+---------------+----------+---------+-------------+----------+-------------+-----------+--------------+ 1 row in set (0.00 sec) mysql> mysql> ^CCtrl-C -- exit! Aborted |
#asterisk -v
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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. ========================================================================= Privilege escalation protection disabled! See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details. Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#cp /usr/share/nginx/www/asterisk-13-current.tar.gz
cp: missing destination file operand after `/usr/share/nginx/www/asterisk-13-current.tar.gz' Try `cp --help' for more information. |
#apt-get install libncurses5-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libtinfo-dev Suggested packages: ncurses-doc The following NEW packages will be installed: libncurses5-dev libtinfo-dev 0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded. ... Get:1 http://192.168.12.254/debian/ wheezy/main libtinfo-dev amd64 5.9-10 [105 kB] Get:2 http://192.168.12.254/debian/ wheezy/main libncurses5-dev amd64 5.9-10 [223 kB] Fetched 328 kB in 0s (11.3 MB/s) Selecting previously unselected package libtinfo-dev:amd64. (Reading database ... 145622 files and directories currently installed.) Unpacking libtinfo-dev:amd64 (from .../libtinfo-dev_5.9-10_amd64.deb) ... Selecting previously unselected package libncurses5-dev. Unpacking libncurses5-dev (from .../libncurses5-dev_5.9-10_amd64.deb) ... Setting up libtinfo-dev:amd64 (5.9-10) ... Setting up libncurses5-dev (5.9-10) ... |
#tar xfz asterisk-13-current.tar.gz
tar (child): asterisk-13-current.tar.gz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now |
#./configure
bash: ./configure: No such file or directory |
#apt-get install uuid-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: uuid-dev 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 72.4 kB of archives. After this operation, 98.3 kB of additional disk space will be used. Get:1 http://192.168.12.254/debian/ wheezy/main uuid-dev amd64 2.20.1-5.3 [72.4 kB] Fetched 72.4 kB in 0s (3,750 kB/s) Selecting previously unselected package uuid-dev. (Reading database ... 145670 files and directories currently installed.) Unpacking uuid-dev (from .../uuid-dev_2.20.1-5.3_amd64.deb) ... Processing triggers for man-db ... Setting up uuid-dev (2.20.1-5.3) ... |
#./configure
bash: ./configure: No such file or directory |
#apt-get install libncurses5-dev uuid-dev libjansson-dev
Reading package lists... Done Building dependency tree Reading state information... Done libncurses5-dev is already the newest version. uuid-dev is already the newest version. The following extra packages will be installed: libjansson4 The following NEW packages will be installed: libjansson-dev libjansson4 0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded. ... Get:1 http://192.168.12.254/debian/ wheezy/main libjansson4 amd64 2.3.1-2 [31.6 kB] Get:2 http://192.168.12.254/debian/ wheezy/main libjansson-dev amd64 2.3.1-2 [34.6 kB] Fetched 66.2 kB in 0s (3,175 kB/s) Selecting previously unselected package libjansson4:amd64. (Reading database ... 145692 files and directories currently installed.) Unpacking libjansson4:amd64 (from .../libjansson4_2.3.1-2_amd64.deb) ... Selecting previously unselected package libjansson-dev:amd64. Unpacking libjansson-dev:amd64 (from .../libjansson-dev_2.3.1-2_amd64.deb) ... Setting up libjansson4:amd64 (2.3.1-2) ... Setting up libjansson-dev:amd64 (2.3.1-2) ... |
#./configure
bash: ./configure: No such file or directory |
#apt-get install libsqlite3-dev
Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: sqlite3-doc The following NEW packages will be installed: libsqlite3-dev 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 578 kB of archives. After this operation, 1,382 kB of additional disk space will be used. Get:1 http://192.168.12.254/debian/ wheezy/main libsqlite3-dev amd64 3.7.13-1+deb7u1 [578 kB] Fetched 578 kB in 0s (16.9 MB/s) Selecting previously unselected package libsqlite3-dev. (Reading database ... 145710 files and directories currently installed.) Unpacking libsqlite3-dev (from .../libsqlite3-dev_3.7.13-1+deb7u1_amd64.deb) ... Setting up libsqlite3-dev (3.7.13-1+deb7u1) ... |
#./configure
bash: ./configure: No such file or directory |
#make menuconfig
make: *** No rule to make target `menuconfig'. Stop. |
#cd /usr/src/
|
#ls
asterisk-13-current.tar.gz dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.63-2+deb7u1_amd64.deb dahdi.tar.bz2 linux linux-headers-3.2.0-4-amd64 linux-headers-3.2.0-4-common linux-kbuild-3.2 linux-OLDVERSION.1417003897 modules vpb-driver.tar.bz2 |
#tar xfz asterisk-13-current.tar.gz
|
#cd asterisk-13.0.1/
|
#./configure
checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no 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 : x86_64 configure: build-cpu:vendor:os: x86_64 : unknown : linux-gnu : configure: host-cpu:vendor:os: x86_64 : unknown : linux-gnu : |
#make menuconfig
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" cmenuselect make[1]: Entering directory `/usr/src/asterisk-13.0.1/menuselect' gcc -g -D_GNU_SOURCE -Wall -I/usr/include/libxml2 -c -o menuselect.o menuselect.c gcc -g -D_GNU_SOURCE -Wall -c -o strcompat.o strcompat.c gcc -g -D_GNU_SOURCE -Wall -c -o menuselect_curses.o menuselect_curses.c gcc -o cmenuselect menuselect.o strcompat.o menuselect_curses.o -lncurses -L/usr/lib -lxml2 make[1]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect' CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" nmenuselect make[1]: Entering directory `/usr/src/asterisk-13.0.1/menuselect' make[1]: Nothing to be done for `nmenuselect'. ... make[1]: Entering directory `/usr/src/asterisk-13.0.1/menuselect' make[1]: Nothing to be done for `gmenuselect'. make[1]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect' make[1]: Entering directory `/usr/src/asterisk-13.0.1' Generating input for menuselect ... CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" menuselect make[2]: Entering directory `/usr/src/asterisk-13.0.1/menuselect' gcc -g -D_GNU_SOURCE -Wall -c -o menuselect_stub.o menuselect_stub.c gcc -o menuselect menuselect.o strcompat.o menuselect_stub.o -L/usr/lib -lxml2 make[2]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect' |
#./configure
|
#asterisk -v
|
#apt-get install libncurses5-dev
|
#asterisk -v
|
#apt-get install libncurses5-dev
|
#./configure
************************************************** Asterisk Module and Build Option Selection ************************************************** Press 'h' for help. --- Core --- [*] res_adsi [*] res_agi [*] res_ari [*] res_ari_applications [*] res_ari_asterisk ... XXX res_calendar_icalendar [*] res_clialiases [*] res_clioriginate XXX res_config_curl XXX res_config_odbc [*] res_config_sqlite3 ... More ... Realtime ODBC configuration Depends on: curl(E)E) Support Level: core |
#apt-get install libssl-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libssl-doc zlib1g-dev The following NEW packages will be installed: libssl-dev libssl-doc zlib1g-dev 0 upgraded, 3 newly installed, 0 to remove and 5 not upgraded. Need to get 3,168 kB of archives. After this operation, 8,364 kB of additional disk space will be used. ... (Reading database ... 145785 files and directories currently installed.) Unpacking zlib1g-dev:amd64 (from .../zlib1g-dev_1%3a1.2.7.dfsg-13_amd64.deb) ... Selecting previously unselected package libssl-dev. Unpacking libssl-dev (from .../libssl-dev_1.0.1e-2+deb7u13_amd64.deb) ... Selecting previously unselected package libssl-doc. Unpacking libssl-doc (from .../libssl-doc_1.0.1e-2+deb7u13_all.deb) ... Processing triggers for man-db ... Setting up zlib1g-dev:amd64 (1:1.2.7.dfsg-13) ... Setting up libssl-dev (1.0.1e-2+deb7u13) ... Setting up libssl-doc (1.0.1e-2+deb7u13) ... |
#./configure
checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no 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 : x86_64 configure: build-cpu:vendor:os: x86_64 : unknown : linux-gnu : configure: host-cpu:vendor:os: x86_64 : unknown : linux-gnu : |
#apt-get install libtonezone-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libtonezone-dev 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 50.2 kB of archives. After this operation, 299 kB of additional disk space will be used. Get:1 http://192.168.12.254/debian/ wheezy/main libtonezone-dev amd64 1:2.5.0.1-2 [50.2 kB] Fetched 50.2 kB in 0s (2,863 kB/s) Selecting previously unselected package libtonezone-dev. (Reading database ... 147223 files and directories currently installed.) Unpacking libtonezone-dev (from .../libtonezone-dev_1%3a2.5.0.1-2_amd64.deb) ... Setting up libtonezone-dev (1:2.5.0.1-2) ... |
#apt-get install libpri-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libpri-dev 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 290 kB of archives. After this operation, 987 kB of additional disk space will be used. Get:1 http://192.168.12.254/debian/ wheezy/main libpri-dev amd64 1.4.12-2 [290 kB] Fetched 290 kB in 0s (8,184 kB/s) Selecting previously unselected package libpri-dev. (Reading database ... 147230 files and directories currently installed.) Unpacking libpri-dev (from .../libpri-dev_1.4.12-2_amd64.deb) ... Setting up libpri-dev (1.4.12-2) ... |
#./configure
checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no 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 : x86_64 configure: build-cpu:vendor:os: x86_64 : unknown : linux-gnu : configure: host-cpu:vendor:os: x86_64 : unknown : linux-gnu : |
#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 ... Compiler Flags Voicemail Build Options Utilities AGI Samples ---> Module Embedding Core Sound Packages Music On Hold File Packages Extras Sound Packages menuselect changes NOT saved! make[1]: Leaving directory `/usr/src/asterisk-13.0.1' |
#apt-cach srtp
bash: apt-cach: command not found |
#apt-get install libsrtp0-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libsrtp0-dev 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 117 kB of archives. After this operation, 390 kB of additional disk space will be used. Get:1 http://192.168.12.254/debian/ wheezy/main libsrtp0-dev amd64 1.4.4+20100615~dfsg-2+deb7u1 [117 kB] Fetched 117 kB in 0s (4,934 kB/s) Selecting previously unselected package libsrtp0-dev. (Reading database ... 147238 files and directories currently installed.) Unpacking libsrtp0-dev (from .../libsrtp0-dev_1.4.4+20100615~dfsg-2+deb7u1_amd64.deb) ... Setting up libsrtp0-dev (1.4.4+20100615~dfsg-2+deb7u1) ... |
#./configure
checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no 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 : x86_64 configure: build-cpu:vendor:os: x86_64 : unknown : linux-gnu : configure: host-cpu:vendor:os: x86_64 : unknown : linux-gnu : |
#make menuconfig
************************************************** Asterisk Module and Build Option Selection ************************************************** Press 'h' for help. [*] app_adsiprog [*] app_alarmreceiver [*] app_amd [*] app_chanisavail [*] app_dahdiras [*] app_dictate ... [ ] app_saycounted [*] app_sms [*] app_talkdetect [*] app_test [*] app_url [*] app_waitforring ... More ... Silly NBS Stream Application Depends on: osptk(E), openssl(E) Support Level: extended |
#make menuconfig
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[1]: Entering directory `/usr/src/asterisk-13.0.1/menuselect' make[1]: `makeopts' is up to date. make[1]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect' CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" nmenuselect make[1]: Entering directory `/usr/src/asterisk-13.0.1/menuselect' make[1]: Nothing to be done for `nmenuselect'. make[1]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect' CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" gmenuselect make[1]: Entering directory `/usr/src/asterisk-13.0.1/menuselect' make[1]: Nothing to be done for `gmenuselect'. make[1]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect' make[1]: Entering directory `/usr/src/asterisk-13.0.1' CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[2]: Entering directory `/usr/src/asterisk-13.0.1/menuselect' make[2]: `makeopts' is up to date. make[2]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect' |
#make menuconfig
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[1]: Entering directory `/usr/src/asterisk-13.0.1/menuselect' make[1]: `makeopts' is up to date. make[1]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect' CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" nmenuselect make[1]: Entering directory `/usr/src/asterisk-13.0.1/menuselect' make[1]: Nothing to be done for `nmenuselect'. make[1]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect' CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" gmenuselect make[1]: Entering directory `/usr/src/asterisk-13.0.1/menuselect' make[1]: Nothing to be done for `gmenuselect'. make[1]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect' make[1]: Entering directory `/usr/src/asterisk-13.0.1' CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[2]: Entering directory `/usr/src/asterisk-13.0.1/menuselect' make[2]: `makeopts' is up to date. make[2]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect' |
#s
bash: s: command not found |
#make -j4
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[1]: Entering directory `/usr/src/asterisk-13.0.1/menuselect' make[1]: `makeopts' is up to date. make[1]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect' Building Documentation For: menuselect/menuselect --check-deps menuselect.makeopts menuselect/menuselect --check-deps menuselect.makeopts channels Generating embedded module rules ... pbx apps codecs formats cdr cel bridges funcs tests main [CC] astcanary.c -> astcanary.o [CC] chan_bridge_media.c -> chan_bridge_media.o [CC] pbx_ael.c -> pbx_ael.o ... creating Makefile creating makelist creating config.h [LD] abstract_jb.o acl.o adsi.o alaw.o aoc.o app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o astobj2_container.o astobj2_hash.o astobj2_rbtree.o audiohook.o autochan.o autoservice.o backtrace.o bridge.o bridge_after.o bridge_basic.o bridge_channel.o bridge_roles.o bucket.o callerid.o ccss.o cdr.o cel.o channel.o channel_internal_api.o chanvars.o cli.o codec.o codec_builtin.o +--------- Asterisk Build Complete ---------+ + Asterisk has successfully been built, and + + can be installed by running: + + + + make install + +-------------------------------------------+ |
#ÑÐcp -R /etc/asterisk /etc/asterisk.bak
|
#apt-get remove asterisk asterisk-modules
Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: asterisk asterisk-dahdi asterisk-modules asterisk-mysql asterisk-prompt-de asterisk-voicemail 0 upgraded, 0 newly installed, 6 to remove and 5 not upgraded. After this operation, 15.3 MB disk space will be freed. Do you want to continue [Y/n]? n Abort. |
#./configure
|
#./configure
apt-get install libsqlite3-dev ansson-dev uuid-dev libncurses5-dev-get install libsqlite3-dev libxml2-dev libja |
#./configure
|
#asterisk -v
|
#ysql -u root -p
|
#mysql -u root -p
|
#mysql -u root -p
|
#vi /etc/asterisk/cdr.conf
|
#ysql -u root -p
|
#mysql -u root -p
apt-get remove asterisk asterisk-modules Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: asterisk asterisk-dahdi asterisk-modules asterisk-mysql asterisk-prompt-de asterisk-voicemail 0 upgraded, 0 newly installed, 6 to remove and 5 not upgraded. After this operation, 15.3 MB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 147284 files and directories currently installed.) Removing asterisk-prompt-de ... Removing asterisk-voicemail ... Removing asterisk-mysql ... Removing asterisk-dahdi ... Removing asterisk ... Stopping Asterisk PBX: asterisk. Removing asterisk-modules ... dpkg: warning: while removing asterisk-modules, directory '/usr/lib/asterisk/modules' not empty so not removed Processing triggers for man-db ... |
#make install
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[1]: Entering directory `/usr/src/asterisk-13.0.1/menuselect' make[1]: `makeopts' is up to date. make[1]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect' Installing modules from channels... Installing modules from pbx... Installing modules from apps... Installing modules from codecs... Installing modules from formats... Installing modules from cdr... ... +-------------------------------------------+ WARNING WARNING WARNING Your Asterisk modules directory, located at /usr/lib/asterisk/modules contains modules that were not installed by this version of Asterisk. Please ensure that these modules are compatible with this version before attempting to run Asterisk. chan_dongle.so WARNING WARNING WARNING |
#^C
|
#asterisk -rvv
Asterisk 13.0.1, Copyright (C) 1999 - 2014, 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. ========================================================================= Connected to Asterisk 13.0.1 currently running on debian2 (pid = 27463) debian2*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
#asterisk -v
Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-5889.20246.23896 2014-11-28 17:37:55.079073568 +0200 +++ /etc/asterisk/sip.conf 2014-11-28 17:38:42.475074129 +0200 @@ -1,6 +1,7 @@ [general] context=default qualify=yes +encription=yes register=> komsomolsk:1234@192.168.10.1/kiev [1201] |
#vi /etc/asterisk/extension.conf
|
#~
Asterisk 13.0.1, Copyright (C) 1999 - 2014, 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. ========================================================================= Connected to Asterisk 13.0.1 currently running on debian2 (pid = 27463) == Using SIP RTP CoS mark 5 == Using SIP RTP CoS mark 5 == Spawn extension (gr1, 1101, 1) exited non-zero on 'SIP/1201-0000000d' debian2*CLI> == Using SIP RTP CoS mark 5 == Using SIP RTP CoS mark 5 == Everyone is busy/congested at this time (1:0/1/0) debian2*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
#vi /etc/asterisk/sip.conf
|
#[kiev] ]
|
#~
|
#vi /etc/asterisk/extensions.conf
|
#^C
|
#^C
|
#vi /etc/network/interfaces
--- /tmp/l3-saved-4036.7150.19358 2014-11-29 16:55:01.515565960 +0200 +++ /etc/network/interfaces 2014-11-29 16:55:30.779566298 +0200 @@ -7,7 +7,7 @@ # The primary network interface allow-hotplug eth0 -iface eth0 inet static - address 192.168.20.1 - netmask 255.255.255.0 - gateway 192.168.20.254 +iface eth0 inet dhcp + # address 192.168.20.1 + # netmask 255.255.255.0 + # gateway 192.168.20.254 |
#ifconfig
eth0 Link encap:Ethernet HWaddr 6c:3b:e5:3a:e8:25 inet addr:192.168.20.1 Bcast:192.168.20.255 Mask:255.255.255.0 inet6 addr: fe80::6e3b:e5ff:fe3a:e825/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:65 errors:0 dropped:0 overruns:0 frame:0 TX packets:208 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:11258 (10.9 KiB) TX bytes:19150 (18.7 KiB) Interrupt:18 eth1 Link encap:Ethernet HWaddr 00:1b:21:9d:59:ff ... RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:17 Memory:ff6c0000-ff6e0000 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:107 errors:0 dropped:0 overruns:0 frame:0 TX packets:107 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:31855 (31.1 KiB) TX bytes:31855 (31.1 KiB) |
#ifdown eth0
Internet Systems Consortium DHCP Client 4.2.2 Copyright 2004-2011 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Listening on LPF/eth0/6c:3b:e5:3a:e8:25 Sending on LPF/eth0/6c:3b:e5:3a:e8:25 Sending on Socket/fallback DHCPRELEASE on eth0 to 192.168.10.240 port 67 |
#ifup eth0
Internet Systems Consortium DHCP Client 4.2.2 Copyright 2004-2011 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Listening on LPF/eth0/6c:3b:e5:3a:e8:25 Sending on LPF/eth0/6c:3b:e5:3a:e8:25 Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20 DHCPREQUEST on eth0 to 255.255.255.255 port 67 DHCPOFFER from 192.168.10.240 DHCPACK from 192.168.10.240 bound to 192.168.12.104 -- renewal in 35534 seconds. |
#ping ya.ru
PING ya.ru (93.158.134.3) 56(84) bytes of data. 64 bytes from www.yandex.ru (93.158.134.3): icmp_req=1 ttl=55 time=17.9 ms 64 bytes from www.yandex.ru (93.158.134.3): icmp_req=2 ttl=55 time=18.1 ms ^C --- ya.ru ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 17.954/18.037/18.120/0.083 ms |
#ifconfig
eth0 Link encap:Ethernet HWaddr 6c:3b:e5:3a:e8:25 inet addr:192.168.12.109 Bcast:192.168.12.255 Mask:255.255.255.0 inet6 addr: fe80::6e3b:e5ff:fe3a:e825/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:40448 errors:0 dropped:0 overruns:0 frame:0 TX packets:29199 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:29335176 (27.9 MiB) TX bytes:7509533 (7.1 MiB) Interrupt:18 eth1 Link encap:Ethernet HWaddr 00:1b:21:9d:59:ff ... RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:17 Memory:ff6c0000-ff6e0000 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:320 errors:0 dropped:0 overruns:0 frame:0 TX packets:320 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:19200 (18.7 KiB) TX bytes:19200 (18.7 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 6c:3b:e5:3a:e8:25 inet addr:192.168.12.109 Bcast:192.168.12.255 Mask:255.255.255.0 inet6 addr: fe80::6e3b:e5ff:fe3a:e825/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:40448 errors:0 dropped:0 overruns:0 frame:0 TX packets:29199 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:29335176 (27.9 MiB) TX bytes:7509533 (7.1 MiB) Interrupt:18 eth1 Link encap:Ethernet HWaddr 00:1b:21:9d:59:ff ... RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:17 Memory:ff6c0000-ff6e0000 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:320 errors:0 dropped:0 overruns:0 frame:0 TX packets:320 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:19200 (18.7 KiB) TX bytes:19200 (18.7 KiB) |
#ping 192.168.12.1
PING 192.168.12.1 (192.168.12.1) 56(84) bytes of data. 64 bytes from 192.168.12.1: icmp_req=1 ttl=64 time=0.755 ms 64 bytes from 192.168.12.1: icmp_req=2 ttl=64 time=0.774 ms ^C --- 192.168.12.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.755/0.764/0.774/0.029 ms |
#ping 192.168.12.1
PING 192.168.12.1 (192.168.12.1) 56(84) bytes of data. 64 bytes from 192.168.12.1: icmp_req=1 ttl=64 time=0.755 ms 64 bytes from 192.168.12.1: icmp_req=2 ttl=64 time=0.774 ms ^C --- 192.168.12.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.755/0.764/0.774/0.029 ms |
#ifconfig
eth0 Link encap:Ethernet HWaddr 6c:3b:e5:3a:e8:25 inet addr:192.168.12.109 Bcast:192.168.12.255 Mask:255.255.255.0 inet6 addr: fe80::6e3b:e5ff:fe3a:e825/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:50200 errors:0 dropped:0 overruns:0 frame:0 TX packets:38404 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:33206325 (31.6 MiB) TX bytes:10097400 (9.6 MiB) Interrupt:18 eth1 Link encap:Ethernet HWaddr 00:1b:21:9d:59:ff ... RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:17 Memory:ff6c0000-ff6e0000 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:436 errors:0 dropped:0 overruns:0 frame:0 TX packets:436 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:26160 (25.5 KiB) TX bytes:26160 (25.5 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 6c:3b:e5:3a:e8:25 inet addr:192.168.12.109 Bcast:192.168.12.255 Mask:255.255.255.0 inet6 addr: fe80::6e3b:e5ff:fe3a:e825/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:50200 errors:0 dropped:0 overruns:0 frame:0 TX packets:38404 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:33206325 (31.6 MiB) TX bytes:10097400 (9.6 MiB) Interrupt:18 eth1 Link encap:Ethernet HWaddr 00:1b:21:9d:59:ff ... RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:17 Memory:ff6c0000-ff6e0000 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:436 errors:0 dropped:0 overruns:0 frame:0 TX packets:436 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:26160 (25.5 KiB) TX bytes:26160 (25.5 KiB) |
#ls -ls /
bin/ initrd.img mnt/ root/ sys/ boot/ lib/ opt/ run/ tmp/ dev/ lib64/ proc/ sbin/ usr/ etc/ lost+found/ .pulse/ selinux/ var/ home/ media/ .pulse-cookie srv/ vmlinuz |
#ls -ls /
bin/ initrd.img mnt/ root/ sys/ boot/ lib/ opt/ run/ tmp/ dev/ lib64/ proc/ sbin/ usr/ etc/ lost+found/ .pulse/ selinux/ var/ home/ media/ .pulse-cookie srv/ vmlinuz |
#ls -ls /home/user/
total 36 4 drwxr-xr-x 5 user user 4096 Dec 1 18:34 cisco 4 drwxr-xr-x 2 user user 4096 Nov 23 14:45 Desktop 4 drwxr-xr-x 2 user user 4096 Nov 23 14:45 Documents 4 drwxr-xr-x 2 user user 4096 Nov 28 16:44 Downloads 4 drwxr-xr-x 2 user user 4096 Nov 23 14:45 Music 4 drwxr-xr-x 2 user user 4096 Nov 23 14:45 Pictures 4 drwxr-xr-x 2 user user 4096 Nov 23 14:45 Public 4 drwxr-xr-x 2 user user 4096 Nov 23 14:45 Templates 4 drwxr-xr-x 2 user user 4096 Nov 23 14:45 Videos |
#ls -ls /home/user/
total 36 4 drwxr-xr-x 5 user user 4096 Dec 1 18:34 cisco 4 drwxr-xr-x 2 user user 4096 Nov 23 14:45 Desktop 4 drwxr-xr-x 2 user user 4096 Nov 23 14:45 Documents 4 drwxr-xr-x 2 user user 4096 Nov 28 16:44 Downloads 4 drwxr-xr-x 2 user user 4096 Nov 23 14:45 Music 4 drwxr-xr-x 2 user user 4096 Nov 23 14:45 Pictures 4 drwxr-xr-x 2 user user 4096 Nov 23 14:45 Public 4 drwxr-xr-x 2 user user 4096 Nov 23 14:45 Templates 4 drwxr-xr-x 2 user user 4096 Nov 23 14:45 Videos |
#ls -ls /home/user/cisco/
total 2016 4 dr-xr-x--- 2 user user 4096 Dec 1 18:34 images 20 -rwxr-xr-x 1 user user 20080 Dec 1 18:34 iou2net.pl 4 -r--r----- 1 user user 39 Dec 1 18:34 iourc 4 -rwxr-xr-x 1 user user 1018 Dec 1 18:34 keygen_updated.py 4 drwxr-xr-x 3 user user 4096 Dec 1 18:34 labs 8 -rwxr-xr-x 1 user user 7569 Dec 1 18:34 menu_ccna 4 -rw-r--r-- 1 user user 246 Dec 1 18:34 NETMAP 4 -rw-r--r-- 1 user user 578 Dec 1 18:34 NETMAP_ccna 4 -rw-r--r-- 1 user user 249 Dec 1 18:34 NETMAP_icnd_20 ... 192 -rw-r----- 1 user user 196608 Dec 1 18:34 nvram_00106 192 -rw-r----- 1 user user 196608 Dec 1 18:34 nvram_00107 192 -rw-r----- 1 user user 196608 Dec 1 18:34 nvram_00108 192 -rw-r----- 1 user user 196608 Dec 1 18:34 nvram_00109 192 -rw-r----- 1 user user 196608 Dec 1 18:34 nvram_00111 4 -rwxr-xr-x 1 user user 3085 Dec 1 18:34 podstart_ccna_tshoot 4 -rw-r--r-- 1 user user 1325 Dec 1 18:34 screen_net 4 -rw-r--r-- 1 user user 2494 Dec 1 18:34 screen_net_tshoot 4 dr-xr-x--- 2 user user 4096 Dec 1 18:34 scripts 4 -rw-r--r-- 1 user user 796 Dec 1 18:34 vlan.dat-00111 |
#ls -ls /home/user/cisco/
total 2016 4 dr-xr-x--- 2 user user 4096 Dec 1 18:34 images 20 -rwxr-xr-x 1 user user 20080 Dec 1 18:34 iou2net.pl 4 -r--r----- 1 user user 39 Dec 1 18:34 iourc 4 -rwxr-xr-x 1 user user 1018 Dec 1 18:34 keygen_updated.py 4 drwxr-xr-x 3 user user 4096 Dec 1 18:34 labs 8 -rwxr-xr-x 1 user user 7569 Dec 1 18:34 menu_ccna 4 -rw-r--r-- 1 user user 246 Dec 1 18:34 NETMAP 4 -rw-r--r-- 1 user user 578 Dec 1 18:34 NETMAP_ccna 4 -rw-r--r-- 1 user user 249 Dec 1 18:34 NETMAP_icnd_20 ... 192 -rw-r----- 1 user user 196608 Dec 1 18:34 nvram_00106 192 -rw-r----- 1 user user 196608 Dec 1 18:34 nvram_00107 192 -rw-r----- 1 user user 196608 Dec 1 18:34 nvram_00108 192 -rw-r----- 1 user user 196608 Dec 1 18:34 nvram_00109 192 -rw-r----- 1 user user 196608 Dec 1 18:34 nvram_00111 4 -rwxr-xr-x 1 user user 3085 Dec 1 18:34 podstart_ccna_tshoot 4 -rw-r--r-- 1 user user 1325 Dec 1 18:34 screen_net 4 -rw-r--r-- 1 user user 2494 Dec 1 18:34 screen_net_tshoot 4 dr-xr-x--- 2 user user 4096 Dec 1 18:34 scripts 4 -rw-r--r-- 1 user user 796 Dec 1 18:34 vlan.dat-00111 |
Время первой команды журнала | 14:40:17 2014-11-28 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 17:35:03 2014-12- 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 19.80 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 7.92 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.17 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.78 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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