/l3/users/2014-11-nt-voip/nt-voip/debian3/root :1 :2 :3 :4 :5 |
|
#apt-get install mysql-server
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: mysql-server 0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded. Need to get 0 B/73.9 kB of archives. After this operation, 121 kB of additional disk space will be used. Selecting previously unselected package mysql-server. (Reading database ... 144772 files and directories currently installed.) Unpacking mysql-server (from .../mysql-server_5.5.40-0+wheezy1_all.deb) ... Setting up mysql-server (5.5.40-0+wheezy1) ... |
#ls /var/lib/mysql/
debian-5.5.flag ib_logfile0 mysql/ performance_schema/ ibdata1 ib_logfile1 mysql_upgrade_info |
#ls /var/lib/mysql/
debian-5.5.flag ib_logfile0 mysql/ performance_schema/ ibdata1 ib_logfile1 mysql_upgrade_info |
#/etc/init.d/mysql stop
Stopping MySQL database server: mysqld. |
#vim /tmp/1
--- /dev/null 2014-11-28 09:19:44.778219217 +0200 +++ /tmp/1 2014-11-28 15:50:15.718348665 +0200 @@ -0,0 +1 @@ +UPDATE mysql.user SET Password=PASSWORD('rootpass') WHERE User='root'; FLUSH PRIVILEGES; |
#vim /tmp/1.sql
--- /tmp/l3-saved-10744.13993.18079 2014-11-28 16:08:47.014372029 +0200 +++ /tmp/1.sql 2014-11-28 16:08:57.318372236 +0200 @@ -1,3 +1,8 @@ +GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP + on asterisk.* + to 'asterisk'@'localhost'; + +SET PASSWORD FOR 'asterisk'@'localhost' = PASSWORD('password'); drop database asterisk; create database asterisk; |
#mysqld_safe --init-file /tmp/1
sed: -e expression #1, char 10: unknown option to `s' 141128 15:51:03 mysqld_safe Logging to syslog. 141128 15:51:03 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 141128 15:51:03 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended |
#/etc/init.d/mysql restart
Stopping MySQL database server: mysqld. df: `/var/lib/mysql/.': No such file or directory df: no file systems processed /etc/init.d/mysql: ERROR: The partition with /var/lib/mysql is too full! ... failed! |
#dpkg -P mysql-server
(Reading database ... 144777 files and directories currently installed.) Removing mysql-server ... |
#rm -rf /var/lib/mysql
|
#find /var -name \*mysql\*
/var/cache/apt/archives/mysql-client-5.5_5.5.40-0+wheezy1_amd64.deb /var/cache/apt/archives/mysql-server_5.5.40-0+wheezy1_all.deb /var/cache/apt/archives/mysql-common_5.5.40-0+wheezy1_all.deb /var/cache/apt/archives/mysql-server-5.5_5.5.40-0+wheezy1_amd64.deb /var/cache/apt/archives/mysql-server-core-5.5_5.5.40-0+wheezy1_amd64.deb /var/cache/apt/archives/libmysqlclient18_5.5.40-0+wheezy1_amd64.deb /var/cache/apt/archives/mysql-client_5.5.40-0+wheezy1_all.deb /var/cache/apt/archives/libdbd-mysql-perl_4.021-1+b1_amd64.deb /var/lib/dpkg/info/mysql-server-core-5.5.list /var/lib/dpkg/info/mysql-client.list ... /var/lib/dpkg/info/libmysqlclient18:amd64.postinst /var/lib/dpkg/info/mysql-server-5.5.postrm /var/lib/dpkg/info/mysql-server-5.5.list /var/lib/dpkg/info/mysql-server-5.5.postinst /var/lib/dpkg/info/mysql-client.md5sums /var/lib/dpkg/info/libmysqlclient18:amd64.postrm /var/lib/dpkg/info/libmysqlclient18:amd64.md5sums /var/log/mysql.err /var/log/mysql /var/log/mysql.log |
#find /var -name \*mysql\* | grep -v /dpkg/
/var/cache/apt/archives/mysql-client-5.5_5.5.40-0+wheezy1_amd64.deb /var/cache/apt/archives/mysql-server_5.5.40-0+wheezy1_all.deb /var/cache/apt/archives/mysql-common_5.5.40-0+wheezy1_all.deb /var/cache/apt/archives/mysql-server-5.5_5.5.40-0+wheezy1_amd64.deb /var/cache/apt/archives/mysql-server-core-5.5_5.5.40-0+wheezy1_amd64.deb /var/cache/apt/archives/libmysqlclient18_5.5.40-0+wheezy1_amd64.deb /var/cache/apt/archives/mysql-client_5.5.40-0+wheezy1_all.deb /var/cache/apt/archives/libdbd-mysql-perl_4.021-1+b1_amd64.deb /var/log/mysql.err /var/log/mysql /var/log/mysql.log |
#rm -rf /etc/mysql/
conf.d/ debian.cnf debian-start my.cnf |
#rm /etc/mysql/debian.cnf
|
#apt-get install mysql-server
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: mysql-server 0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded. Need to get 0 B/73.9 kB of archives. After this operation, 121 kB of additional disk space will be used. Selecting previously unselected package mysql-server. (Reading database ... 144772 files and directories currently installed.) Unpacking mysql-server (from .../mysql-server_5.5.40-0+wheezy1_all.deb) ... Setting up mysql-server (5.5.40-0+wheezy1) ... |
#/etc/init.d/mysql restart
Stopping MySQL database server: mysqld. df: `/var/lib/mysql/.': No such file or directory df: no file systems processed /etc/init.d/mysql: ERROR: The partition with /var/lib/mysql is too full! ... failed! |
#dpkg -P mysql-server-core-5.5
dpkg: dependency problems prevent removal of mysql-server-core-5.5: mysql-server-5.5 depends on mysql-server-core-5.5 (>= 5.5.40-0+wheezy1). dpkg: error processing mysql-server-core-5.5 (--purge): dependency problems - not removing Errors were encountered while processing: mysql-server-core-5.5 |
#dpkg -P mysql-server-core-5.5 mysql-server-5.5 mysql-server
(Reading database ... 144777 files and directories currently installed.) Removing mysql-server ... Removing mysql-server-5.5 ... Stopping MySQL database server: mysqld. Purging configuration files for mysql-server-5.5 ... Removing mysql-server-core-5.5 ... Processing triggers for man-db ... |
#ls -l /etc/mysql/
conf.d/ my.cnf |
#rm /etc/mysql/my.cnf
|
#apt-get install mysql-server
/etc/init.d/mysql: WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.gz ... (warning). Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed! invoke-rc.d: initscript mysql, action "start" failed. dpkg: error processing mysql-server-5.5 (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.5; however: Package mysql-server-5.5 is not configured yet. dpkg: error processing mysql-server (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: mysql-server-5.5 mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1) |
#apt-get -f install
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. 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up mysql-server-5.5 (5.5.40-0+wheezy1) ... Stopping MySQL database server: mysqld. /etc/init.d/mysql: WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.gz ... (warning). 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) ... |
#scp 192.168.10.1:/etc/mysql/my.cnf /etc/mysql/
The authenticity of host '192.168.10.1 (192.168.10.1)' can't be established. ECDSA key fingerprint is 30:a2:28:85:f1:01:64:49:55:d3:19:59:ca:1b:34:c9. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.10.1' (ECDSA) to the list of known hosts. root@192.168.10.1's password: my.cnf 100% 3504 3.4KB/s 00:00 |
#/etc/init.d/mysql stop
Stopping MySQL database server: mysqld. |
#mysqld_safe --init-file /tmp/1
sed: -e expression #1, char 10: unknown option to `s' 141128 15:56:13 mysqld_safe Logging to syslog. 141128 15:56:13 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 141128 15:56:15 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended |
#mysql -u root -p
Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) |
#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) |
#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 |
#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
--- /tmp/l3-saved-16743.6859.3261 2014-11-28 16:10:11.910373806 +0200 +++ /etc/asterisk/cdr_mysql.conf 2014-11-28 16:10:46.866374544 +0200 @@ -10,15 +10,15 @@ ; "localhost", then cdr_mysql will attempt to connect to the socket file ; specified by sock or otherwise use the default socket file. ; -;[global] -;hostname=database.host.name -;dbname=asteriskcdrdb -;table=cdr -;password=password -;user=asteriskcdruser -;port=3306 -;sock=/tmp/mysql.sock -;timezone=UTC ; Previously called usegmtime +[global] +hostname=localhost +dbname=asterisk +table=cdr +password=password +user=asterisk +port=3306 +sock=/var/run/mysqld/mysqld.sock +timezone=EET ; ; If your system's locale differs from mysql database character set, ; cdr_mysql can damage non-latin characters in CDR variables. Use this |
#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
|
#mv http://192.168.12.254/asterisk-13-current.tar.gz
mv: missing destination file operand after `http://192.168.12.254/asterisk-13-current.tar.gz' Try `mv --help' for more information. |
#cd /usr/src/
|
#tar xfz asterisk-13-current.tar.gz
|
#apt-get install uuid-dev
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: uuid-dev 0 upgraded, 1 newly installed, 0 to remove and 6 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,530 kB/s) Selecting previously unselected package uuid-dev. (Reading database ... 144828 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) ... |
#apt-get install libsqlite3-dev
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. Suggested packages: sqlite3-doc The following NEW packages will be installed: libsqlite3-dev 0 upgraded, 1 newly installed, 0 to remove and 6 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 (13.4 MB/s) Selecting previously unselected package libsqlite3-dev. (Reading database ... 144868 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) ... |
#cd
ev uuid-dev libncurses5-dev stall libsqlite3-dev libxml2-dev libjansson-d Reading package lists... Done Building dependency tree Reading state information... Done libjansson-dev is already the newest version. libncurses5-dev is already the newest version. libsqlite3-dev is already the newest version. uuid-dev is already the newest version. The following package was automatically installed and is no longer required: libgadu3 ... Need to get 901 kB of archives. After this operation, 2,798 kB of additional disk space will be used. Do you want to continue [Y/n]? y 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,083 kB/s) Selecting previously unselected package libxml2-dev:amd64. (Reading database ... 144879 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) ... |
#cd /usr/src/
|
#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
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]: 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' 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' Terminal must be at least 80 x 27. menuselect changes NOT saved! make[1]: Leaving directory `/usr/src/asterisk-13.0.1' |
#make menuconfig
************************************************** Asterisk Module and Build Option Selection ************************************************** Press 'h' for help. --- Core --- [*] res_adsi [*] res_agi [*] res_ari [*] res_ari_applications [*] res_ari_asterisk ... [*] res_fax [*] res_format_attr_celt [*] res_format_attr_h263 [*] res_format_attr_h264 [*] res_format_attr_opus ... More ... CELT Format Attribute Module Depends on: curl(E) Conflicts with: app_fax(M) Support Level: core |
#apt-get install libssl-dev
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 extra packages will be installed: libssl-doc zlib1g-dev The following NEW packages will be installed: libssl-dev libssl-doc zlib1g-dev ... (Reading database ... 144943 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 : |
#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-cache search tonezone
libtonezone-dev - tonezone library (development) libtonezone2.0 - tonezone library (runtime) |
#apt-cache search libpri dev
libpri-dev - Primary Rate ISDN specification development files libprinterconf-dev - Printer autodetection library libprintsys-dev - printcap parser, helper for gnulpr's printfilters, dev files libprison-dev - barcode API for Qt - development files |
#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-get install libsrtp0-dev
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: libsrtp0-dev 0 upgraded, 1 newly installed, 0 to remove and 6 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 (6,456 kB/s) Selecting previously unselected package libsrtp0-dev. (Reading database ... 146381 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) ... |
#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' |
#s
bash: s: command not found |
#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 saved! make[1]: Leaving directory `/usr/src/asterisk-13.0.1' |
#apt-get install asterisk
Reading package lists... Done Building dependency tree Reading state information... Done asterisk is already the newest version. The following package was automatically installed and is no longer required: libgadu3 Use 'apt-get autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. |
#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 res [CC] astdb2sqlite3.c -> astdb2sqlite3.o [CC] chan_iax2.c -> chan_iax2.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 + +-------------------------------------------+ |
#apt-get remove asterisk asterisk-modules
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: asterisk-config asterisk-core-sounds-en asterisk-core-sounds-en-gsm asterisk-moh-opsound-gsm freetds-common libcurl3 libgadu3 libiksemel3 libodbc1 libopenr2-3 libpq5 libpri1.4 libradiusclient-ng2 libresample1 libsaclm3 libsaevt3 libsensors4 libsnmp-base libsnmp15 libsox-fmt-alsa libsox-fmt-base libsox2 libsqlite0 libss7-1 libsybdb5 libvpb0 sox vpb-driver-source Use 'apt-get autoremove' to remove them. The following packages will be REMOVED: ... Do you want to continue [Y/n]? y (Reading database ... 146427 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 ... |
#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 + +-------------------------------------------+ |
#asterisk -r
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) |
#asterisk -r
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 debian3 (pid = 21955) debian3*CLI> dialplan reload Dialplan reloaded. debian3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
#asterisk -r
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 debian3 (pid = 21955) debian3*CLI> dialplan reload Dialplan reloaded. debian3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
#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 debian3 (pid = 21955) debian3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
#vi /etc/network/interfaces
--- /tmp/l3-saved-4753.3175.22119 2014-11-29 16:57:21.094716102 +0200 +++ /etc/network/interfaces 2014-11-29 16:57:42.546716552 +0200 @@ -7,7 +7,7 @@ # The primary network interface allow-hotplug eth0 -iface eth0 inet static - address 192.168.30.1 - netmask 255.255.255.0 - gateway 192.168.30.254 +iface eth0 inet dhcp + # address 192.168.30.1 + # netmask 255.255.255.0 + # gateway 192.168.30.254 |
#clear
|
#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:39:36:5c Sending on LPF/eth0/6c:3b:e5:39:36:5c Sending on Socket/fallback DHCPRELEASE on eth0 to 192.168.12.254 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:39:36:5c Sending on LPF/eth0/6c:3b:e5:39:36:5c Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 1 No DHCPOFFERS received. No working leases in persistent database - sleeping. |
#ping ya.ru
ping: unknown host ya.ru |
#ifconfig
eth0 Link encap:Ethernet HWaddr 6c:3b:e5:39:36:5c UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:18 eth1 Link encap:Ethernet HWaddr 00:1b:21:9a:1e:cc UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 ... 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:160 errors:0 dropped:0 overruns:0 frame:0 TX packets:160 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:56491 (55.1 KiB) TX bytes:56491 (55.1 KiB) |
#vi /etc/network/interfaces
|
#clear
|
#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:39:36:5c Sending on LPF/eth0/6c:3b:e5:39:36:5c Sending on Socket/fallback DHCPRELEASE on eth0 to 192.168.12.254 port 67 send_packet: Network is unreachable send_packet: please consult README file regarding broadcast address. |
#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:39:36:5c Sending on LPF/eth0/6c:3b:e5:39:36:5c Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7 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 42890 seconds. |
#ping yya.ru
PING yya.ru (194.135.30.31) 56(84) bytes of data. ^[[A ^C64 bytes from 194.135.30.31: icmp_req=1 ttl=55 time=18.0 ms --- yya.ru ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 18.049/18.049/18.049/0.000 ms |
#ping ya.ru
PING ya.ru (213.180.204.3) 56(84) bytes of data. 64 bytes from www.yandex.ru (213.180.204.3): icmp_req=1 ttl=54 time=18.6 ms 64 bytes from www.yandex.ru (213.180.204.3): icmp_req=2 ttl=54 time=18.7 ms ^C --- ya.ru ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 18.629/18.679/18.730/0.145 ms |
#ifconfig
eth0 Link encap:Ethernet HWaddr 6c:3b:e5:39:36:5c inet addr:192.168.12.108 Bcast:192.168.12.255 Mask:255.255.255.0 inet6 addr: fe80::6e3b:e5ff:fe39:365c/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:309 errors:0 dropped:0 overruns:0 frame:0 TX packets:557 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:26887 (26.2 KiB) TX bytes:194255 (189.7 KiB) Interrupt:18 eth1 Link encap:Ethernet HWaddr 00:1b:21:9a:1e:cc ... 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:13443 errors:0 dropped:0 overruns:0 frame:0 TX packets:13443 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:5972587 (5.6 MiB) TX bytes:5972587 (5.6 MiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 6c:3b:e5:39:36:5c inet addr:192.168.12.108 Bcast:192.168.12.255 Mask:255.255.255.0 inet6 addr: fe80::6e3b:e5ff:fe39:365c/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:309 errors:0 dropped:0 overruns:0 frame:0 TX packets:557 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:26887 (26.2 KiB) TX bytes:194255 (189.7 KiB) Interrupt:18 eth1 Link encap:Ethernet HWaddr 00:1b:21:9a:1e:cc ... 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:13443 errors:0 dropped:0 overruns:0 frame:0 TX packets:13443 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:5972587 (5.6 MiB) TX bytes:5972587 (5.6 MiB) |
#ping 192.168.12.1
PING 192.168.12.1 (192.168.12.1) 56(84) bytes of data. From 192.168.12.108 icmp_seq=1 Destination Host Unreachable From 192.168.12.108 icmp_seq=4 Destination Host Unreachable ^C --- 192.168.12.1 ping statistics --- 6 packets transmitted, 0 received, +2 errors, 100% packet loss, time 5022ms |
#ping 192.168.12.1
PING 192.168.12.1 (192.168.12.1) 56(84) bytes of data. From 192.168.12.108 icmp_seq=1 Destination Host Unreachable From 192.168.12.108 icmp_seq=4 Destination Host Unreachable ^C --- 192.168.12.1 ping statistics --- 6 packets transmitted, 0 received, +2 errors, 100% packet loss, time 5022ms |
#ping 192.168.12.254
PING 192.168.12.254 (192.168.12.254) 56(84) bytes of data. ^C --- 192.168.12.254 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#ping 192.168.12.254
PING 192.168.12.254 (192.168.12.254) 56(84) bytes of data. ^C --- 192.168.12.254 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#ping 192.168.12.103
PING 192.168.12.103 (192.168.12.103) 56(84) bytes of data. From 192.168.12.108 icmp_seq=2 Destination Host Unreachable From 192.168.12.108 icmp_seq=3 Destination Host Unreachable From 192.168.12.108 icmp_seq=4 Destination Host Unreachable ^C --- 192.168.12.103 ping statistics --- 4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2998ms pipe 3 |
#ping 192.168.12.103
PING 192.168.12.103 (192.168.12.103) 56(84) bytes of data. From 192.168.12.108 icmp_seq=2 Destination Host Unreachable From 192.168.12.108 icmp_seq=3 Destination Host Unreachable From 192.168.12.108 icmp_seq=4 Destination Host Unreachable ^C --- 192.168.12.103 ping statistics --- 4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2998ms pipe 3 |
#ifconfig
eth0 Link encap:Ethernet HWaddr 6c:3b:e5:39:36:5c inet addr:192.168.12.108 Bcast:192.168.12.255 Mask:255.255.255.0 inet6 addr: fe80::6e3b:e5ff:fe39:365c/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:309 errors:0 dropped:0 overruns:0 frame:0 TX packets:557 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:26887 (26.2 KiB) TX bytes:194255 (189.7 KiB) Interrupt:18 eth1 Link encap:Ethernet HWaddr 00:1b:21:9a:1e:cc ... 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:13470 errors:0 dropped:0 overruns:0 frame:0 TX packets:13470 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:5981795 (5.7 MiB) TX bytes:5981795 (5.7 MiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 6c:3b:e5:39:36:5c inet addr:192.168.12.108 Bcast:192.168.12.255 Mask:255.255.255.0 inet6 addr: fe80::6e3b:e5ff:fe39:365c/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:309 errors:0 dropped:0 overruns:0 frame:0 TX packets:557 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:26887 (26.2 KiB) TX bytes:194255 (189.7 KiB) Interrupt:18 eth1 Link encap:Ethernet HWaddr 00:1b:21:9a:1e:cc ... 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:13470 errors:0 dropped:0 overruns:0 frame:0 TX packets:13470 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:5981795 (5.7 MiB) TX bytes:5981795 (5.7 MiB) |
#ping 192.168.12.1
PING 192.168.12.1 (192.168.12.1) 56(84) bytes of data. From 192.168.12.108 icmp_seq=2 Destination Host Unreachable From 192.168.12.108 icmp_seq=3 Destination Host Unreachable From 192.168.12.108 icmp_seq=6 Destination Host Unreachable ^C --- 192.168.12.1 ping statistics --- 9 packets transmitted, 0 received, +3 errors, 100% packet loss, time 8046ms pipe 2 |
#ping 192.168.12.1
PING 192.168.12.1 (192.168.12.1) 56(84) bytes of data. From 192.168.12.108 icmp_seq=2 Destination Host Unreachable From 192.168.12.108 icmp_seq=3 Destination Host Unreachable From 192.168.12.108 icmp_seq=6 Destination Host Unreachable ^C --- 192.168.12.1 ping statistics --- 9 packets transmitted, 0 received, +3 errors, 100% packet loss, time 8046ms pipe 2 |
UPDATE mysql.user SET Password=PASSWORD('rootpass') WHERE User='root'; FLUSH PRIVILEGES;
Время первой команды журнала | 14:48:40 2014-11-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:05:09 2014-12- 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 18.81 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.04 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.83 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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