Журнал лабораторных работ

Содержание

Журнал

Пятница (11/28/14)

/dev/pts/3
15:43:46
#./configure
bash: ./configure: No such file or directory
15:46:21
#cd /usr/src/

15:46:49
#tar xfz asterisk-13-current.tar.gz

15:47:00
#./configure
bash: ./configure: No such file or directory
15:47:48
#cd asterisk-13.0.1

15:48:41
#./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
...
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)
15:48:56
#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 (9,558 kB/s)
Selecting previously unselected package libtinfo-dev:amd64.
(Reading database ... 145167 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) ...
15:49:16
#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,613 kB/s)
Selecting previously unselected package uuid-dev.
(Reading database ... 145215 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) ...
15:49:34
#apt-get install libjansson-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
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.
Need to get 66.2 kB of archives.
After this operation, 233 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
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,728 kB/s)
Selecting previously unselected package libjansson4:amd64.
(Reading database ... 145237 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) ...
15:50:15
#./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
...
checking for uuid/uuid.h... yes
checking for uuid_generate_random in -le2fs-uuid... no
checking for uuid_generate_random... no
checking for json_dumps in -ljansson... yes
checking jansson.h usability... yes
checking jansson.h presence... yes
checking for jansson.h... yes
checking for xml2-config... no
configure: *** The Asterisk menuselect tool requires the 'libxml2' development package.
configure: *** Please install the 'libxml2' development package.
15:52:19
#apt-get update
Hit http://192.168.12.254 wheezy Release.gpg
Get:1 http://ftp.ua.debian.org wheezy-updates Release.gpg [836 B]
Hit http://192.168.12.254 wheezy Release
Get:2 http://ftp.ua.debian.org wheezy-updates Release [124 kB]
Hit http://security.debian.org wheezy/updates Release.gpg
Hit http://security.debian.org wheezy/updates Release
Hit http://security.debian.org wheezy/updates/main amd64 Packages
Hit http://ftp.ua.debian.org wheezy-updates/main amd64 Packages/DiffIndex
Hit http://ftp.ua.debian.org wheezy-updates/main Translation-en/DiffIndex
Hit http://security.debian.org wheezy/updates/main Translation-en
Hit http://192.168.12.254 wheezy/main Translation-en
Hit http://192.168.12.254 wheezy/main amd64 Packages
Fetched 125 kB in 0s (131 kB/s)
Reading package lists... Done
15:52:35
#./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
...
checking for uuid/uuid.h... yes
checking for uuid_generate_random in -le2fs-uuid... no
checking for uuid_generate_random... no
checking for json_dumps in -ljansson... yes
checking jansson.h usability... yes
checking jansson.h presence... yes
checking for jansson.h... yes
checking for xml2-config... no
configure: *** The Asterisk menuselect tool requires the 'libxml2' development package.
configure: *** Please install the 'libxml2' development package.
15:52:43
#apt-get install libxm2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libxm2-dev
15:53:14
#./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
...
checking for uuid/uuid.h... yes
checking for uuid_generate_random in -le2fs-uuid... no
checking for uuid_generate_random... no
checking for json_dumps in -ljansson... yes
checking jansson.h usability... yes
checking jansson.h presence... yes
checking for jansson.h... yes
checking for xml2-config... no
configure: *** The Asterisk menuselect tool requires the 'libxml2' development package.
configure: *** Please install the 'libxml2' development package.
15:53:22
#apt-get install libxml2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libxml2-dev
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 901 kB of archives.
After this operation, 2,798 kB of additional disk space will be used.
Get:1 http://security.debian.org/ wheezy/updates/main libxml2-dev amd64 2.8.0+dfsg1-7+wheezy2 [901 kB]
Fetched 901 kB in 0s (1,215 kB/s)
Selecting previously unselected package libxml2-dev:amd64.
(Reading database ... 145255 files and directories currently installed.)
Unpacking libxml2-dev:amd64 (from .../libxml2-dev_2.8.0+dfsg1-7+wheezy2_amd64.deb) ...
Processing triggers for man-db ...
Setting up libxml2-dev:amd64 (2.8.0+dfsg1-7+wheezy2) ...
15:53:56
#./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
...
checking for rc_read_config in -lradiusclient-ng... no
checking for cpg_join in -lcpg... no
checking for corosync_cfg_state_track in -lcfg... no
checking for speex_encode in -lspeex... no
checking for speex_preprocess_ctl in -lspeex... no
checking for speex_preprocess_ctl in -lspeexdsp... no
checking for sqlite_exec in -lsqlite... no
checking for sqlite3_open in -lsqlite3... no
configure: WARNING: *** Asterisk now uses SQLite3 for the internal Asterisk database.
configure: WARNING: *** Please install the SQLite3 development package.
15:54:31
#apt-get install SQLite3-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package SQLite3-dev
15:54:59
#apt-get update
Hit http://192.168.12.254 wheezy Release.gpg
Hit http://ftp.ua.debian.org wheezy-updates Release.gpg
Hit http://ftp.ua.debian.org wheezy-updates Release
Hit http://192.168.12.254 wheezy Release
Hit http://security.debian.org wheezy/updates Release.gpg
Hit http://ftp.ua.debian.org wheezy-updates/main amd64 Packages/DiffIndex
Hit http://ftp.ua.debian.org wheezy-updates/main Translation-en/DiffIndex
Hit http://security.debian.org wheezy/updates Release
Hit http://security.debian.org wheezy/updates/main amd64 Packages
Hit http://security.debian.org wheezy/updates/main Translation-en
Hit http://192.168.12.254 wheezy/main Translation-en
Hit http://192.168.12.254 wheezy/main amd64 Packages
Reading package lists... Done
15:55:14
#./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
...
checking for rc_read_config in -lradiusclient-ng... no
checking for cpg_join in -lcpg... no
checking for corosync_cfg_state_track in -lcfg... no
checking for speex_encode in -lspeex... no
checking for speex_preprocess_ctl in -lspeex... no
checking for speex_preprocess_ctl in -lspeexdsp... no
checking for sqlite_exec in -lsqlite... no
checking for sqlite3_open in -lsqlite3... no
configure: WARNING: *** Asterisk now uses SQLite3 for the internal Asterisk database.
configure: WARNING: *** Please install the SQLite3 development package.
15:55:50
#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 (14.3 MB/s)
Selecting previously unselected package libsqlite3-dev.
(Reading database ... 145319 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) ...
15:56:45
#./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 :
15:57:24
#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'
16:04:24
#make menuconfig
                   **************************************************
                       Asterisk Module and Build Option Selection
                   **************************************************
                                   Press 'h' for help.
                                  [*] res_ari_sounds
                                  [*] res_calendar
                                  XXX res_calendar_caldav
                                  XXX res_calendar_ews
                                  XXX res_calendar_exchange
                                  XXX res_calendar_icalendar
...
                                  [*] res_format_attr_celt
                                  [*] res_format_attr_h263
                                  [*] res_format_attr_h264
                                      ... More ...
                            Asterisk Calendar integration
                            Depends on: res_ari(M), res_stasis(M)
                            Support Level: core
                            CELT Format Attribute Module
                            Depends on: curl(E)
                            Conflicts with: app_fax(M)
16:05:28
#apt-get install libssl.dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libssl-dev' for regex 'libssl.dev'
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.
...
(Reading database ... 145330 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) ...
16:06:22
#./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 :
16:06:59
#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'
...
                                   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'
16:08:04
#apt-get install libtonzone.dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libtonzone.dev
E: Couldn't find any package by regex 'libtonzone.dev'
16:08:26
#apt-get install libtonezone.dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libtonezone-dev' for regex 'libtonezone.dev'
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,604 kB/s)
Selecting previously unselected package libtonezone-dev.
(Reading database ... 146768 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) ...
16:08:41
#apt-get install libpri.dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libpri-dev' for regex 'libpri.dev'
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,820 kB/s)
Selecting previously unselected package libpri-dev.
(Reading database ... 146775 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) ...
16:08:52
#apt-get install libdahdi.dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libdahdi.dev
E: Couldn't find any package by regex 'libdahdi.dev'
16:09:03
#apt-get install libdandi.dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libdandi.dev
E: Couldn't find any package by regex 'libdandi.dev'
16:09:13
#./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 :
16:09:57
#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'
16:11:18
#apt-get cache srtp
E: Invalid operation cache
16:11:30
#apt-get cache srtp.dev
E: Invalid operation cache
16:11:49
#apt-cache searche srtp
E: Invalid operation searche
16:12:56
#apt-cache serche srtp
E: Invalid operation serche
16:13:04
#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 (5,387 kB/s)
Selecting previously unselected package libsrtp0-dev.
(Reading database ... 146783 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) ...
16:13:38
#./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 :
16:14:17
#make menuconfig
                   **************************************************
                       Asterisk Module and Build Option Selection
                   **************************************************
                                   Press 'h' for help.
                                      --- Core ---
                                  [*] app_agent_pool
                                  [*] app_authenticate
                                  [*] app_bridgewait
                                  [*] app_cdr
                                  [*] app_celgenuserevent
...
                                  [*] app_dial
                                  [*] app_directed_pickup
                                  [*] app_directory
                                  [*] app_disa
                                  [*] app_dumpchan
                                  [*] app_echo
                                      ... More ...
                            Dump Info About The Calling Channel
                            Depends on: app_cdr(M)ding(M)
                            Support Level: core
16:16:23
#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'
...
                                  [*] app_test
                                  [*] app_url
                                  [*] app_waitforring
                                  [*] app_waitforsilence
                                  [*] app_zapateller
                                      --- Deprecated ---
                                  [ ] app_setcallerid
                            Silly NBS Stream Application
                            Depends on: osptk(E), openssl(E)
                            Support Level: extended
16:19:20
#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: Generating embedded module rules ...
channels 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
   [CC] astdb2sqlite3.c -> astdb2sqlite3.o
res    [CC] chan_dahdi.c -> chan_dahdi.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               +
 +-------------------------------------------+
16:22:26
#сcp -R /etc/asterisk /etc/asterisk.bak

16:26:11
#cp /etc/init.d/asterisk /tmp/

16:26:39
#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 ... 146829 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 ...
Processing triggers for man-db ...
16:27:23
#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...
...
 +-----------------  or ---------------------+
 +                                           +
 + You can go ahead and install the asterisk +
 + program documentation now or later run:   +
 +                                           +
 +               make progdocs               +
 +                                           +
 + **Note** This requires that you have      +
 + doxygen installed on your local system    +
 +-------------------------------------------+
16:30:19
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
16:31:09
#asterisk -rvvv
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 debian4 (pid = 13099)
debian4*CLI> dialplan reload
Dialplan reloaded.
...
    -- Time to delete the old dialplan: 0.000112 sec
    -- Total time merge_contexts_delete: 0.002311 sec
[Nov 28 17:31:31] WARNING[13176]: pbx.c:12300 ast_context_verify_includes: Context 'internal' tries to include nonexistent context 'parkedcalls'
[Nov 28 17:31:32] NOTICE[13157]: chan_sip.c:15251 sip_reg_timeout:    -- Registration for 'ny@192.168.10.1' timed out, trying again (Attempt #2)
[Nov 28 17:31:32] NOTICE[13157]: chan_sip.c:15251 sip_reg_timeout:    -- Registration for 'ny@192.168.50.1' timed out, trying again (Attempt #2)
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
debian4*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
16:31:48
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
16:31:52
#asterisk -rv
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 debian4 (pid = 13217)
[Nov 28 17:32:13] NOTICE[13273]: chan_sip.c:15251 sip_reg_timeout:    -- Registration for 'ny@192.168.10.1' timed out, trying again (Attempt #2)
[Nov 28 17:32:14] NOTICE[13273]: chan_sip.c:15251 sip_reg_timeout:    -- Registration for 'ny@192.168.50.1' timed out, trying again (Attempt #2)
[Nov 28 17:32:33] NOTICE[13273]: chan_sip.c:15251 sip_reg_timeout:    -- Registration for 'ny@192.168.10.1' timed out, trying again (Attempt #3)
[Nov 28 17:32:34] NOTICE[13273]: chan_sip.c:15251 sip_reg_timeout:    -- Registration for 'ny@192.168.50.1' timed out, trying again (Attempt #3)
debian4*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
16:32:39
#vim /etc/asterisk/extensions.conf
16:33:33
#qualify=yes
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 debian4 (pid = 13217)
debian4*CLI> dialplan reload
Dialplan reloaded.
...
[Nov 28 17:34:10] WARNING[13380]: pbx_config.c:1756 pbx_load_config: Can't use 'next' priority on the first entry at line 7 of extensions.conf!
[Nov 28 17:34:10] WARNING[13380]: pbx_config.c:1756 pbx_load_config: Can't use 'next' priority on the first entry at line 9 of extensions.conf!
[Nov 28 17:34:10] WARNING[13380]: pbx_config.c:1756 pbx_load_config: Can't use 'next' priority on the first entry at line 11 of extensions.conf!
[Nov 28 17:34:10] WARNING[13380]: pbx.c:12300 ast_context_verify_includes: Context 'internal' tries to include nonexistent context 'parkedcalls'
[Nov 28 17:34:36] WARNING[13426][C-00000005]: app_system.c:138 system_exec_helper: Unable to execute 'sh -c "ehco 2101 > /tmp/someone-called-8401"'
[Nov 28 17:35:10] NOTICE[13273]: chan_sip.c:23776 handle_response_peerpoke: Peer '2102' is now Reachable. (46ms / 2000ms)
[Nov 28 17:35:26] NOTICE[13438][C-0000000a]: res_rtp_asterisk.c:4478 ast_rtp_read: Unknown RTP codec 126 received from '192.168.40.101:59922'
debian4*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
16:37:28
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-3915.14310.787	2014-11-28 17:37:31.592300870 +0200
+++ /etc/asterisk/sip.conf	2014-11-28 17:38:19.016301863 +0200
@@ -1,6 +1,7 @@
 [general]
 context=default
 qualify=yes
+encryption=yes
 
 register => ny:1234@192.168.50.1/atlanta
 register => ny:1234@192.168.10.1/kiev
16:38:19
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3915.402.16117	2014-11-28 17:38:52.360302568 +0200
+++ /etc/asterisk/extensions.conf	2014-11-28 17:42:53.088307620 +0200
@@ -82,6 +82,10 @@
 
 exten => _21XX,n,Monitor(wav,${CALLFILENAME},m)
 
+exten => _21XX,n,NoOp(secure_signaling = ${CHANNEL(secure_signaling)})
+
+exten => _21XX,n,NoOp(secure_media = ${CHANNEL(secure_media)})
+
 exten => _21XX,n,Dial(SIP/${EXTEN},5,tTkK)
 
 exten => _21XX,n,VoiceMail(${EXTEN}@default)
16:43:24
#asterisk -rv
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 debian4 (pid = 13563)
debian4*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
16:43:31
#asterisk -rvvv
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 debian4 (pid = 13563)
debian4*CLI> dialplan reload
Dialplan reloaded.
...
    -- <SIP/2101-00000000> Playing 'beep.slin' (language 'ru')
    -- Recording the message
    -- x=0, open writing:  /var/spool/asterisk/voicemail/default/2102/tmp/JmGN9d format: wav49, 0x7f5f98376a78
    -- x=1, open writing:  /var/spool/asterisk/voicemail/default/2102/tmp/JmGN9d format: gsm, 0x7f5f9807b4a8
    -- x=2, open writing:  /var/spool/asterisk/voicemail/default/2102/tmp/JmGN9d format: wav, 0x7f5f98374ac8
    -- User hung up
  == Spawn extension (gr1, 2102, 6) exited non-zero on 'SIP/2101-00000000'
debian4*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
16:44:21
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3915.1637.152	2014-11-28 17:44:26.872309600 +0200
+++ /etc/asterisk/extensions.conf	2014-11-28 17:48:12.744314355 +0200
@@ -11,6 +11,7 @@
 exten => s,n,Hangup
 
 exten => 1,1,AGI(/usr/local/bin/asterisk-festival.pl,/var/tmp/asterisk/belki.txt)
+
 exten => 2,1,AGI(/usr/local/bin/asterisk-festival.pl,/var/tmp/asterisk/burunduki.txt)
 
 exten => 0,1,Goto(menu,1,start)
16:48:14
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
16:48:19
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.

Статистика

Время первой команды журнала15:43:46 2014-11-28
Время последней команды журнала16:48:19 2014-11-28
Количество командных строк в журнале59
Процент команд с ненулевым кодом завершения, %28.81
Процент синтаксически неверно набранных команд, % 3.39
Суммарное время работы с терминалом *, час 1.08
Количество командных строк в единицу времени, команда/мин 0.91
Частота использования команд
apt-get19|================================| 32.20%
configure12|====================| 20.34%
make8|=============| 13.56%
asterisk4|======| 6.78%
/etc/init.d/asterisk4|======| 6.78%
vim4|======| 6.78%
apt-cache2|===| 3.39%
cd2|===| 3.39%
qualify=yes1|=| 1.69%
cp1|=| 1.69%
сcp1|=| 1.69%
tar1|=| 1.69%
____
*) Интервалы неактивности длительностью 30 минут и более не учитываются

Справка

Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
  1. В журнал автоматически попадают все команды, данные в любом терминале системы.

  2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

  3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
    $ l s-l
    bash: l: command not found
    

  4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
    $ test 5 -lt 4
    Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

  5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
    $ 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
    

  6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
    # id
    uid=0(root) gid=0(root) Gruppen=0(root)
    

  7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
    $ vi ~/.bashrc
    2a3,5
    >    if [ -f /usr/local/etc/bash_completion ]; then
    >         . /usr/local/etc/bash_completion
    >        fi
    

  8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
    $ patch ~/.bashrc
    В данном случае изменения применяются к файлу ~/.bashrc

  9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

    Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

  10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

  11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

  12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

  13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

  14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

    $ whoami
    
    user
    
    $ #^ Интересно, кто я?
    
    в журнале это будет выглядеть так:
    $ whoami
    
    user
    
    Интересно, кто я?

  15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

    $ whoami
    
    user
    
    $ cat > /dev/null #^ Интересно, кто я?
    
    Программа whoami выводит имя пользователя, под которым 
    мы зарегистрировались в системе.
    -
    Она не может ответить на вопрос о нашем назначении 
    в этом мире.
    
    В журнале это будет выглядеть так:
    $ whoami
    user
    
    Интересно, кто я?
    Программа whoami выводит имя пользователя, под которым
    мы зарегистрировались в системе.

    Она не может ответить на вопрос о нашем назначении
    в этом мире.
    Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

  16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

  17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
  18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
  19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
    1
        2
    3   
        4
    
    Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

О программе

LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008

$Id$