/l3/users/2014-11-nt-voip/nt-voip/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 |
|
#cat /tmp/1
UPDATE mysql.user SET Password=PASSWORD('rootpass') WHERE User='root'; FLUSH PRIVILEGES; |
#mysqld_safe --init-file /tmp/1
sed: -e expression #1, char 10: unknown option to `s' 141128 15:57:42 mysqld_safe Logging to syslog. 141128 15:57:42 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 141128 15:57:44 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended |
#/etc/init.d/mysql start
Starting MySQL database server: mysqld .. Checking for tables which need an upgrade, are corrupt or were not closed cleanly.. |
#mysql -u root -p
Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) |
#exit
exit Connection to m3 closed. |
#less /etc/hosts
|
#ssh m2
Linux debian2 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u1 x86_64 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 Nov 28 15:45:43 2014 from 192.168.12.254 l3-agent is already running: pid=3546; pidfile=/root/.lilalo/l3-agent.pid |
#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
|
#/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
|
#exit
exit Connection to m2 closed. |
#ssh m6
Linux debian6 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u1 x86_64 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 Nov 28 12:38:42 2014 from 192.168.12.254 l3-agent is already running: pid=3465; pidfile=/root/.lilalo/l3-agent.pid |
#less /etc/asterisk/cdr_mysql.conf
|
#cat /etc/hosts
127.0.0.1 localhost 127.0.1.1 debian6 debian6.unix.nt # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters |
#vim /etc/hosts
|
#~
[Nov 28 15:46:39] ERROR[10068] codec_dahdi.c: Failed to open /dev/dahdi/transcode: No such file or directory [Nov 28 15:46:39] ERROR[10068] ais/clm.c: Could not initialize cluster membership service: Try Again [Nov 28 15:46:39] NOTICE[10068] chan_dongle.c: [dongle0] Loaded device [Nov 28 15:46:39] WARNING[10119] chan_dongle.c: unable to open /dev/ttyUSB2: No such file or directory [Nov 28 15:46:39] WARNING[10068] pbx.c: Unable to register extension '_23XX', priority 1 in 'local', already in u se [Nov 28 15:46:39] NOTICE[10068] pbx_ael.c: Starting AEL load process. [Nov 28 15:46:39] NOTICE[10068] pbx_ael.c: AEL load process: parsed config file name '/etc/asterisk/extensions.ae l'. [Nov 28 15:46:39] NOTICE[10068] pbx_ael.c: AEL load process: checked config file name '/etc/asterisk/extensions.a ... [Nov 28 15:40:58] NOTICE[9923] chan_sip.c: Peer 'minsk' is now Reachable. (4ms / 2000ms) [Nov 28 15:40:58] ERROR[9900] ais/clm.c: Could not initialize cluster membership service: Try Again [Nov 28 15:40:59] NOTICE[9900] chan_dongle.c: [dongle0] Loaded device [Nov 28 15:40:59] WARNING[9950] chan_dongle.c: unable to open /dev/ttyUSB2: No such file or directory [Nov 28 15:40:59] WARNING[9900] pbx.c: Unable to register extension '_23XX', priority 1 in 'local', already in use [Nov 28 15:40:59] NOTICE[9900] pbx_ael.c: Starting AEL load process. [Nov 28 15:40:59] NOTICE[9900] pbx_ael.c: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'. [Nov 28 15:40:59] NOTICE[9900] pbx_ael.c: AEL load process: checked config file name '/etc/asterisk/extensions.ael'. [Nov 28 15:40:59] NOTICE[9900] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'. [Nov 28 15:40:59] NOTICE[9900] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'. |
#vim /etc/asterisk/cdr_mysql.conf
|
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#less /var/log/asterisk/messages
|
#mysql -u root -p
Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 76 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> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP on asterisk.* to 'asterisk'@'localhost'; Query OK, 0 rows affected (0.00 sec) mysql> SET PASSWORD FOR 'asterisk'@'localhost' = PASSWORD('password'); Query OK, 0 rows affected (0.00 sec) mysql> Bye |
#mysql -u asterisk -p
Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 77 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> mysql> mysql> quid -> -> ^CCtrl-C -- exit! Aborted |
#mysql -u asterisk -h localhost -p
Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 78 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> mysql> mysql> quit Bye |
#vim /etc/asterisk/cdr_mysql.conf
|
#netstat -lnp | grep mysql
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 7543/mysqld unix 2 [ ACC ] STREAM LISTENING 38867 7543/mysqld /var/run/mysqld/mysqld.sock |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#less /var/log/asterisk/messages
|
#exit
exit Connection to m6 closed. |
#dpkg -l | grep mysql
ii libdbd-mysql-perl 4.021-1+b1 amd64 Perl5 database interface to the MySQL database ii libmysqlclient18:amd64 5.5.40-0+wheezy1 amd64 MySQL database client library ii mysql-client 5.5.40-0+wheezy1 all MySQL database client (metapackage depending on the latest version) ii mysql-client-5.5 5.5.40-0+wheezy1 amd64 MySQL database client binaries ii mysql-common 5.5.40-0+wheezy1 all MySQL database common files, e.g. /etc/mysql/my.cnf ii mysql-server 5.5.40-0+wheezy1 all MySQL database server (metapackage depending on the latest version) ii mysql-server-5.5 5.5.40-0+wheezy1 amd64 MySQL database server binaries and system database setup ii mysql-server-core-5.5 5.5.40-0+wheezy1 amd64 MySQL database server binaries |
#ssh m3
Linux debian3 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u1 x86_64 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 Nov 28 15:50:02 2014 from 192.168.12.254 l3-agent is already running: pid=10364; pidfile=/root/.lilalo/l3-agent.pid |
#rm -rf /etc/mysql/
|
#rm -rf /var/lib/mysql/
debian3.err ibdata1 ib_logfile1 performance_schema/ debian-5.5.flag ib_logfile0 mysql/ |
#rm -rf /var/lib/mysql/
|
#apt-get install mysql-server
141128 16:07:29 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead. 141128 16:07:29 [Note] Plugin 'FEDERATED' is disabled. 141128 16:07:29 InnoDB: The InnoDB memory heap is disabled 141128 16:07:29 InnoDB: Mutexes and rw_locks use GCC atomic builtins 141128 16:07:29 InnoDB: Compressed tables use zlib 1.2.7 141128 16:07:29 InnoDB: Using Linux native AIO 141128 16:07:29 InnoDB: Initializing buffer pool, size = 128.0M 141128 16:07:29 InnoDB: Completed initialization of buffer pool 141128 16:07:29 InnoDB: highest supported file format is Barracuda. 141128 16:07:29 InnoDB: Waiting for the background threads to start 141128 16:07:30 InnoDB: 5.5.40 started; log sequence number 1595675 141128 16:07:30 InnoDB: Starting shutdown... 141128 16:07:31 InnoDB: Shutdown completed; log sequence number 1595675 Starting MySQL database server: mysqld .. Checking for tables which need an upgrade, are corrupt or were not closed cleanly.. Setting up mysql-server (5.5.40-0+wheezy1) ... |
# ALTER TABLE cdr ADD INDEX ( uniqueid );
Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) |
#mysql -u root -p < /tmp/1.sql
Enter password: ERROR 1008 (HY000) at line 7: Can't drop database 'asterisk'; database doesn't exist |
#mysql -u root -p < /tmp/1.sql
Enter password: |
#netstat -lnp | grep mysql
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 20999/mysqld unix 2 [ ACC ] STREAM LISTENING 45978 20999/mysqld /var/run/mysqld/mysqld.sock |
#vim /etc/asterisk/cdr_mysql.conf
|
#apt-cache search asterisk cdr
|
#apt-cache search asterisk mysql
asterisk-mysql - MySQL database protocol support for the Asterisk PBX |
#apt-get install asterisk-mysql
Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: libgadu3 Use 'apt-get autoremove' to remove it. The following NEW packages will be installed: asterisk-mysql 0 upgraded, 1 newly installed, 0 to remove and 6 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 (16.6 MB/s) Selecting previously unselected package asterisk-mysql. (Reading database ... 144772 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/
|
#less /var/log/asterisk/messages
|
#[Nov 28 16:07:28] NOTICE[2961] chan_sip.c: -- Registration for 'minsk@192.168.60.1' timed out, trying again (A
exit Connection to m3 closed. |
#all "echo 'select * from cdr;' | mysql -u asterisk -ppassword asterisk " | ff
2: calldate clid src dst dcontext channel dstchannel lastapp lastdata duration billsec disposition amaflags accountcode userfield uniqueid 2: 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 2: 2014-11-28 16:06:00 "3101" <3101> 3101 1201 gr4 SIP/kiev-00000002 SIP/1201-00000003 Dial SIP/1201,30,tTkK 1 0 NO ANSWER 3 1417183560.2 6: calldate clid src dst dcontext channel dstchannel lastapp lastdata duration billsec disposition amaflags accountcode userfield uniqueid 6: 2014-11-28 15:46:51 2301 2301 2302 gr1 SIP/2301-00000000 SIP/2302-00000001 Dial SIP/2302,5,tTkK 6 4 ANSWERED 3 1417182411.0 6: 2014-11-28 16:05:46 2301 2301 2302 gr1 SIP/2301-00000000 SIP/2302-00000001 Dial SIP/2302,5,tTkK 4 0 NO ANSWER 3 1417183546.0 |
#_ +2 +6
+2 +6 |
#all "echo 'select * from cdr;' | mysql -u asterisk -ppassword asterisk " | ff
|
#all "echo 'select * from cdr;' | mysql -u asterisk -ppassword asterisk " | ff
3: calldate clid src dst dcontext channel dstchannel lastapp lastdata duration billsec disposition amaflags accountcode userfield uniqueid 3: 2014-11-28 16:23:30 1301 1301 2301 gr1 SIP/1301-00000000 SIP/brest-00000001 Dial SIP/brest/2301 2 0 NO ANSWER 3 1417184610.0 |
#all "echo 'select * from cdr;' | mysql -u asterisk -ppassword asterisk " | ff
3: calldate clid src dst dcontext channel dstchannel lastapp lastdata duration billsec disposition amaflags accountcode userfield uniqueid 3: 2014-11-28 16:23:30 1301 1301 2301 gr1 SIP/1301-00000000 SIP/brest-00000001 Dial SIP/brest/2301 2 0 NO ANSWER 3 1417184610.0 |
#_ last
подключение к mysql 1:OK 2:OK 3:OK 4:OK 5:OK 6:OK 7:OK 8:OK |
## все всё сделали, молодцы
|
#vim /tmp/hello-world.c
--- /dev/null 2014-11-24 01:42:46.270560796 -0500 +++ /tmp/hello-world.c 2014-11-28 09:27:26.171135588 -0500 @@ -0,0 +1,6 @@ +#include <stdout> + +int main() +{ + printf("Hello world\n"); +} |
#cat /tmp/hello-world.c
#include <stdout> int main() { printf("Hello world\n"); } |
#gcc -o /tmp/hello-world /tmp/hello-world.c
/tmp/hello-world.c:1:18: fatal error: stdout: No such file or directory compilation terminated. |
#/tmp/hello-world
Hello world |
#cat /tmp/hello-world.c
#include <stdio.h> int main() { printf("Hello world\n"); } |
#less /tmp/hello-world
|
#ldd /tmp/hello-world
linux-vdso.so.1 => (0x00007fff77978000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f069d6f0000) /lib64/ld-linux-x86-64.so.2 (0x00007f069da98000) |
#gcc -o /tmp/hello-world -DGGODBYE_WORLD /tmp/hello-world.c
|
#gcc -o /tmp/hello-world -DGOODBYE_WORLD /tmp/hello-world.c
|
#cat /tmp/hello-world.c
#include <stdio.h> int main() { printf("Hello world\n"); #ifdef GOODBYE_WORLD printf("Goodbye world\n"); #endif } |
#dpkg -l | grep ^ii | wc -l
1549 |
#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. |
#asterisk -V
Asterisk 1.8.13.1~dfsg1-3+deb7u3 |
#cat /tmp/1
1 1.sql |
#cat /tmp/url1
http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz |
#cd /tmp/
|
#wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz
--2014-11-28 09:38:06-- http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz Resolving downloads.asterisk.org (downloads.asterisk.org)... 76.164.171.238, 2001:470:e0d4::ee Connecting to downloads.asterisk.org (downloads.asterisk.org)|76.164.171.238|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 31832204 (30M) [application/x-gzip] Saving to: `asterisk-13-current.tar.gz' 100%[=======================================================================>] 31,832,204 4.71M/s in 6.8s 2014-11-28 09:38:14 (4.47 MB/s) - `asterisk-13-current.tar.gz' saved [31832204/31832204] |
#less /etc/nginx/
|
#less /etc/nginx/
|
#less /etc/nginx/sites-
|
#less /etc/nginx/sites-
|
#less /etc/nginx/sites-enabled/default
|
#ls -l /usr/share/nginx/www/
total 46724 -rw-r--r-- 1 root root 383 Jul 7 2006 50x.html -rw-r--r-- 1 root root 151 Oct 4 2004 index.html -rw-r--r-- 1 user user 47836296 Sep 18 12:11 X-Lite_Win32_4.7.1_74247.exe |
#ls
1 core-sounds-ru.txt letters 1.sql CREDITS-asterisk-core-ru-1.4.26 LICENSE-asterisk-core-ru-1.4.26 2014-apr datacard-url orbit-user adele.gsm dictate phonetic adele.wav digits pulse-mDx5y8mxU55T asterisk-13-current.tar.gz followme pulse-PKdhtXMmr18n asterisk-core-sounds-ru-gsm-current.tar.gz h pulse-rxrcA3FdeTQi belki.wav hello-en.wav silence burunduki.wav hello-ru.wav ssh-aKWVro9PTZSv call-all hello-world tracker-user chan-dongle-installation.txt hello-world.c url1 CHANGES-asterisk-core-ru-1.4.26 install |
#mv asterisk-13-current.tar.gz /usr/share/nginx/www/
|
#cpall /usr/share/nginx/www/asterisk-13-current.tar.gz /usr/src/
asterisk-13-current.tar.gz 100% 30MB 10.1MB/s 00:03 asterisk-13-current.tar.gz 100% 30MB 30.4MB/s 00:01 asterisk-13-current.tar.gz 100% 30MB 30.4MB/s 00:00 asterisk-13-current.tar.gz 100% 30MB 30.4MB/s 00:00 asterisk-13-current.tar.gz 100% 30MB 30.4MB/s 00:01 asterisk-13-current.tar.gz 100% 30MB 30.4MB/s 00:00 asterisk-13-current.tar.gz 100% 30MB 30.4MB/s 00:01 asterisk-13-current.tar.gz 100% 30MB 30.4MB/s 00:00 |
#cd /usr/src/
|
#cp /usr/share/nginx/www/asterisk-13-current.tar.gz .
|
#tar xfz asterisk-13-current.tar.gz
|
#cd asterisk-13
l3script: cd: asterisk-13: No such file or directory |
#cd asterisk-13
asterisk-13.0.1/ asterisk-13-current.tar.gz |
#cd asterisk-13.0.1
|
#^C
|
## сейчас надо бы поставить зависимости,
|
## Ðно еÑли вам ÑпиÑок завиÑимоÑÑей неизвеÑÑен,
|
## Ñо Ð²Ñ Ð¼Ð¾Ð¶ÐµÑе его иÐÑеÑаÑивно вÑÑиÑлиÑÑ
|
#./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) |
#apt-cache search ncurses dev
bochs-term - Terminal (ncurses-based) plugin for Bochs btscanner - ncurses-based scanner for Bluetooth devices libcunit1-ncurses-dev - Unit Testing Library for C (ncurses) -- development files dav-text - A minimalist ncurses-based text editor libghc-hscurses-dev - ncurses bindings for Haskell - development files for GHC libghc-ncurses-dev - Haskell bindings to the GNU ncurses library libkaya-ncurses-dev - Ncurses binding for kaya libkaya-ncursesw-dev - Ncurses binding for kaya libncursesada2-dev - Ada binding to the ncurses text interface library: development moc - ncurses based console audio player ... lib32tinfo-dev - developer's library for the low-level terminfo library (32-bit) libncurses5-dev - developer's libraries for ncurses libncursesw5-dev - developer's libraries for ncursesw libtinfo-dev - developer's library for the low-level terminfo library ncurses-doc - developer's guide and documentation for ncurses whiptail - Displays user-friendly dialog boxes from shell scripts libcurses-ocaml-dev - OCaml bindings for the ncurses library petitboot - ncurses version of petitboot, a kexec based bootloader powerman - Centralized Power Distribution Unit (PDU) management siggen - Waveform generation tools |
#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 0 not upgraded. ... Get:1 http://127.0.0.1/debian/ wheezy/main libtinfo-dev amd64 5.9-10 [105 kB] Get:2 http://127.0.0.1/debian/ wheezy/main libncurses5-dev amd64 5.9-10 [223 kB] Fetched 328 kB in 0s (17.2 MB/s) Selecting previously unselected package libtinfo-dev:amd64. (Reading database ... 145985 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) ... |
## вот вы поставили первую заисимость
|
#apt-get search libuuid
E: Invalid operation search |
#apt-cache search libuuid
libdata-uuid-libuuid-perl - uuid.h based UUID generation module libuuid-perl - Perl extension for using UUID interfaces as defined in e2fsprogs libuuid-tiny-perl - pure Perl module to generate v1, v3, v4, and v5 UUIDs libuuidtools-ruby - Transitional package for ruby-uuidtools libuuidtools-ruby-doc - Transitional package for ruby-uuidtools libuuidtools-ruby1.8 - Transitional package for ruby-uuidtools libuuidtools-ruby1.9.1 - Transitional package for ruby-uuidtools ruby-uuidtools - UUIDs generation library for Ruby ruby-uuidtools-doc - UUIDs generation library for Ruby - documentation libuuid1 - Universally Unique ID library uuid-dev - universally unique id library - headers and static libraries uuid-runtime - runtime components for the Universally Unique ID library libuuidm-ocaml-dev - Universally unique identifiers for OCaml |
#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 0 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://127.0.0.1/debian/ wheezy/main uuid-dev amd64 2.20.1-5.3 [72.4 kB] Fetched 72.4 kB in 0s (485 kB/s) Selecting previously unselected package uuid-dev. (Reading database ... 146033 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
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 initscr in -lncurses... yes checking for curses.h... (cached) yes checking for uuid_generate_random in -luuid... yes checking uuid/uuid.h usability... yes checking uuid/uuid.h presence... 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... no configure: error: *** JSON support not found (this typically means the libjansson development package is missing) |
127.0.0.1 localhost 127.0.1.1 debian6 debian6.unix.nt # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters
1 1.sql
#include <stdio.h> int main() { printf("Hello world\n"); #ifdef GOODBYE_WORLD printf("Goodbye world\n"); #endif }
http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz
Время первой команды журнала | 14:56:33 2014-11-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:47:23 2014-11-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 12.87 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.85 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.99 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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