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

Содержание

Журнал

Пятница (04/12/13)

/dev/pts/6
15:10:37
#vim install
15:10:37
#vim install-cdr-stats-asterisk.sh
15:10:56
#source bash-common-functions.sh

15:11:04
#cd /usr/src/

15:11:13
#ls -l
total 1148
-rw-r--r-- 1 root root   5438 Apr 12 16:05 bash-common-functions.sh
-rw-r--r-- 1 root root  31107 Apr 12 16:05 cdr-stats-functions.sh
drwxr-xr-x 6 user user   4096 Apr 11 13:50 chan_dongle-1.1.r14
-rw-r--r-- 1 root root 189204 Apr 11 13:49 chan_dongle-1.1.r14.tgz
drwxr-xr-x 3 root root   4096 Apr 10 13:54 dahdi
-rw-r--r-- 1 root root 833864 Oct 29  2010 dahdi.tar.bz2
-rw-r--r-- 1 root root   1724 Apr 12 16:11 install-cdr-stats-asterisk.sh
lrwxrwxrwx 1 root root     44 Apr 10 13:48 linux -> /usr/src/linux-headers-3.2.0-0.bpo.4-686-pae
drwxr-xr-x 4 root root   4096 Apr 10 12:32 linux-headers-3.2.0-0.bpo.4-686-pae
drwxr-xr-x 4 root root   4096 Apr 10 12:32 linux-headers-3.2.0-0.bpo.4-common
lrwxrwxrwx 1 root root     23 Apr 10 12:32 linux-kbuild-3.2 -> ../lib/linux-kbuild-3.2
lrwxrwxrwx 1 root root     34 Apr 10 11:59 linux-OLDVERSION.1365590910 -> linux-headers-2.6.39-bpo.2-686-pae
drwxr-xr-x 3 root root   4096 Oct 29  2010 modules
-rw-r--r-- 1 root root  68983 Jan 16  2011 vpb-driver.tar.bz2
15:11:14
#vim bash-common-functions.sh
15:12:31
#DIST in
debconf.conf    debian_version
15:12:31
#cat /etc/deb
debconf.conf    debian_version
15:12:31
#cat /etc/debian_version
6.0.7
15:13:11
#DIST in
libsrtp0-dev - Secure RTP (SRTP) and UST Reference Implementations - development files
libsrtp0 - Secure RTP (SRTP) and UST Reference Implementations - shared library
srtp-docs - Secure RTP (SRTP) and UST Reference Implementations - documentation
srtp-utils - Secure RTP (SRTP) and UST Reference Implementations - utilities
twinkle - Voice over Internet Protocol (VoIP) SIP Phone
uanytun - tiny implementation of the secure anycast tunneling protocol
15:13:34
#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 12 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://192.168.15.253/debian/ squeeze/main libsrtp0-dev i386 1.4.4~dfsg-6 [84.2 kB]
Fetched 84.2 kB in 0s (4,023 kB/s)
Selecting previously deselected package libsrtp0-dev.
(Reading database ... 133827 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) ...
15:13:48
#scp 192.168.70.0:/usr/src/asterisk-11.3.0.tar.gz /usr/src
ssh: connect to host 192.168.70.0 port 22: Connection refused
15:14:27
#scp 192.168.70.1:/usr/src/asterisk-11.3.0.tar.gz /usr/src
root@192.168.70.1's password:
scp: /usr/src/asterisk-11.3.0.tar.gz: No such file or directory
15:14:35
#apt-get install libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  zlib1g-dev
The following NEW packages will be installed:
  libssl-dev zlib1g-dev
0 upgraded, 2 newly installed, 0 to remove and 12 not upgraded.
Need to get 2,349 kB of archives.
After this operation, 6,443 kB of additional disk space will be used.
...
Get:2 http://192.168.15.253/debian/ squeeze/main libssl-dev i386 0.9.8o-4squeeze14 [2,163 kB]
Fetched 2,349 kB in 0s (27.5 MB/s)
Selecting previously deselected package zlib1g-dev.
(Reading database ... 133872 files and directories currently installed.)
Unpacking zlib1g-dev (from .../zlib1g-dev_1%3a1.2.3.4.dfsg-3_i386.deb) ...
Selecting previously deselected package libssl-dev.
Unpacking libssl-dev (from .../libssl-dev_0.9.8o-4squeeze14_i386.deb) ...
Processing triggers for man-db ...
Setting up zlib1g-dev (1:1.2.3.4.dfsg-3) ...
Setting up libssl-dev (0.9.8o-4squeeze14) ...
/dev/pts/9
15:15:08
#ssh linux7
The authenticity of host 'linux7 (192.168.70.1)' can't be established.
RSA key fingerprint is 73:fd:3b:ee:91:b1:73:e4:99:4a:bf:1e:12:f3:c3:8e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'linux7' (RSA) to the list of known hosts.
root@linux7's password:
Linux linux7 3.2.0-0.bpo.4-686-pae #1 SMP Debian 3.2.41-2~bpo60+1 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Apr 12 09:30:12 2013 from 192.168.15.253
Removing stale pidfile
/dev/pts/6
15:15:10
#apt-get install libncurses5-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libncurses5-dev
0 upgraded, 1 newly installed, 0 to remove and 12 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://192.168.15.253/debian/ squeeze/main libncurses5-dev i386 5.7+20100313-5 [1,597 kB]
Fetched 1,597 kB in 0s (25.0 MB/s)
Selecting previously deselected package libncurses5-dev.
(Reading database ... 135134 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) ...
/dev/pts/9
15:15:14
#cd /usr/src/

15:15:19
#ls -l
total 952
drwxr-xr-x 29 root root   4096 Apr 12 16:14 asterisk-11.3.0
-rw-r--r--  1 root root   5438 Apr 12 16:08 bash-common-functions.sh
-rw-r--r--  1 root root  31107 Apr 12 16:08 cdr-stats-functions.sh
drwxr-xr-x  3 root root   4096 Apr 10 13:53 dahdi
-rw-r--r--  1 root root 833864 Oct 29  2010 dahdi.tar.bz2
lrwxrwxrwx  1 root root     44 Apr 10 13:47 linux -> /usr/src/linux-headers-3.2.0-0.bpo.4-686-pae
drwxr-xr-x  4 root root   4096 Apr 10 12:31 linux-headers-3.2.0-0.bpo.4-686-pae
drwxr-xr-x  4 root root   4096 Apr 10 12:31 linux-headers-3.2.0-0.bpo.4-common
lrwxrwxrwx  1 root root     23 Apr 10 12:31 linux-kbuild-3.2 -> ../lib/linux-kbuild-3.2
lrwxrwxrwx  1 root root     36 Apr 10 12:29 linux-OLDVERSION.1365590874 -> kernel-headers-3.2.0-0.bpo.4-686-pae
drwxr-xr-x  3 root root   4096 Oct 29  2010 modules
-rw-r--r--  1 root root  68983 Jan 16  2011 vpb-driver.tar.bz2
15:15:21
#cd ~

15:15:37
#ls -l
total 79260
-rw-r--r-- 1 root root 30629838 Mar 28 20:45 asterisk-11.3.0.tar.gz
-rw-r--r-- 1 root root  2037556 Jan  8 23:39 asterisk-core-sounds-ru-gsm-1.4.23.tar.gz
drwx------ 2 root root     4096 Apr 10 10:20 Mail
-rw-r--r-- 1 root root  4336619 Apr 12 16:06 master
-rw-r--r-- 1 root root   407220 Apr 10 14:35 pink-try.gsm
-rw-r--r-- 1 root root 43534312 Apr 10 14:32 pink-try.wav
drwxr-xr-x 9 root root     4096 Apr 12 14:53 save
-rw-r--r-- 1 root root      175 Apr 12 14:52 save-all.sh
drwxr-xr-x 7 root root     4096 Apr  5 13:28 Star2Billing-cdr-stats-4088e8b
-rw-r--r-- 1 root root    68918 Apr 11 10:17 text1.wav
drwxr-xr-x 2 root root     4096 Apr 11 10:51 texts
-rw-r--r-- 1 root root       62 Apr  8 15:23 timing-logger
-rw-r--r-- 1 root root      746 Apr 11 16:53 timing.txt
15:15:39
#cp asterisk-11.3.0.tar.gz /usr/src/

15:15:51
#exit
Connection to linux7 closed.
/dev/pts/6
15:16:24
#tar -zxvf asterisk-11.3.0.tar.gz
asterisk-11.3.0/
asterisk-11.3.0/sounds/
asterisk-11.3.0/sounds/sounds.xml
asterisk-11.3.0/sounds/asterisk-moh-opsound-wav-2.03.tar.gz
asterisk-11.3.0/sounds/asterisk-core-sounds-en-gsm-1.4.23.tar.gz
asterisk-11.3.0/sounds/Makefile
asterisk-11.3.0/doc/
asterisk-11.3.0/doc/CODING-GUIDELINES
asterisk-11.3.0/doc/api-1.6.2-changes.txt
asterisk-11.3.0/doc/asterisk.8
...
asterisk-11.3.0/agi/
asterisk-11.3.0/agi/numeralize
asterisk-11.3.0/agi/agi.xml
asterisk-11.3.0/agi/eagi-sphinx-test.c
asterisk-11.3.0/agi/jukebox.agi
asterisk-11.3.0/agi/DialAnMp3.agi
asterisk-11.3.0/agi/eagi-test.c
asterisk-11.3.0/agi/fastagi-test
asterisk-11.3.0/agi/Makefile
asterisk-11.3.0/agi/agi-test.agi
15:16:33
#cd asterisk-11.3.0

15:16:36
#./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-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 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.
15:16:44
#apt-get instal libsqlite3-dev
E: Invalid operation instal
15:17:06
#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 12 not upgraded.
Need to get 474 kB of archives.
After this operation, 1,069 kB of additional disk space will be used.
Get:1 http://192.168.15.253/debian/ squeeze/main libsqlite3-dev i386 3.7.3-1 [474 kB]
Fetched 474 kB in 0s (12.5 MB/s)
Selecting previously deselected package libsqlite3-dev.
(Reading database ... 136187 files and directories currently installed.)
Unpacking libsqlite3-dev (from .../libsqlite3-dev_3.7.3-1_i386.deb) ...
Setting up libsqlite3-dev (3.7.3-1) ...
15:17:15
#./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-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 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.
15:17:21
#apt-cache seacrch libxml2
E: Invalid operation seacrch
15:17:44
#apt-cache search libxml2
aolserver4-nsxml - Module for XML support in aolsever4
docbook-xml - standard XML documentation system for software and systems
docbook5-xml - standard XML documentation system for software and systems
libgdome2-0 - DOM level2 library for accessing XML files
libgdome2-dev - Development files for libgdome2
gir-repository-dev - XML sources files for the GObject introspection repository
libglobus-libxml2-dev - Globus Toolkit - LibXML2 Library Development Files
libglobus-libxml2 - Globus Toolkit - LibXML2 Library
libgdome2-cpp-smart-dev - C++ bindings for GDome2 DOM implementation
libgdome2-cpp-smart0c2a - C++ bindings for GDome2 DOM implementation
...
python-pyxmpp - XMPP and Jabber implementation for Python
libsp-gxmlcpp-dev - S+P C++ wrapper for Gnome libxml2/libxslt
libsp-gxmlcpp1 - S+P C++ wrapper for Gnome libxml2/libxslt
libxml2 - GNOME XML library
libxml2-dbg - Debugging symbols for the GNOME XML library
libxml2-dev - Development files for the GNOME XML library
libxml2-doc - Documentation for the GNOME XML library
libxml2-utils - XML utilities
python-libxml2 - Python bindings for the GNOME XML library
python-libxml2-dbg - Python bindings for the GNOME XML library (debug extension)
15:17:50
#apt-get install libxml2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libxml2
The following NEW packages will be installed:
  libxml2-dev
The following packages will be upgraded:
  libxml2
1 upgraded, 1 newly installed, 0 to remove and 11 not upgraded.
...
Fetched 1,581 kB in 11s (132 kB/s)
Reading changelogs... Done
(Reading database ... 136199 files and directories currently installed.)
Preparing to replace libxml2 2.7.8.dfsg-2+squeeze6 (using .../libxml2_2.7.8.dfsg-2+squeeze7_i386.deb) ...
Unpacking replacement libxml2 ...
Selecting previously deselected package libxml2-dev.
Unpacking libxml2-dev (from .../libxml2-dev_2.7.8.dfsg-2+squeeze7_i386.deb) ...
Processing triggers for man-db ...
Setting up libxml2 (2.7.8.dfsg-2+squeeze7) ...
Setting up libxml2-dev (2.7.8.dfsg-2+squeeze7) ...
15:18:25