/l3/users/sidar/nt-voip-sidar/linux5.unix.nt/root :1 :2 :3 :4 |
|
#~
Enter password: |
#vi /etc/asterisk/cdr_
![]() |
#vi /etc/asterisk/cdr_mysql.conf
--- /tmp/l3-saved-6390.31518.13759 2013-11-21 10:53:17.479502171 +0200 +++ /etc/asterisk/cdr_mysql.conf 2013-11-21 10:54:55.739504566 +0200 @@ -11,11 +11,11 @@ ; specified by sock or otherwise use the default socket file. ; ;[global] -;hostname=database.host.name -;dbname=asteriskcdrdb -;table=cdr -;password=password -;user=asteriskcdruser +hostname=localhost +dbname=asterisk +table=cdr +password=yourpassword +user=asterisk ;port=3306 ;sock=/tmp/mysql.sock ;timezone=UTC ; Previously called usegmtime |
#vi /etc/asterisk/cdr_mysql.conf
--- /tmp/l3-saved-6390.25748.21535 2013-11-21 10:55:02.287504726 +0200 +++ /etc/asterisk/cdr_mysql.conf 2013-11-21 10:55:36.183505551 +0200 @@ -16,8 +16,8 @@ table=cdr password=yourpassword user=asterisk -;port=3306 -;sock=/tmp/mysql.sock +port=3306 +sock=/var/run/mysql/mysql.sock ;timezone=UTC ; Previously called usegmtime ; ; If your system's locale differs from mysql database character set, |
#mysql -u root -p
Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 44 Server version: 5.5.31-0+wheezy1 (Debian) Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> use asterisk; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> select * from cdr; Empty set (0.00 sec) mysql> exit Bye |
#ls -l /var/log/mysql
![]() mysql/ mysql.err mysql.log |
#ls -l /var/log/
![]() alternatives.log auth.log debug dpkg.log fsck/ lastlog mail.log mysql.err speech-dispatcher/ user.log apt/ btmp dmesg exim4/ gdm3/ lpr.log mail.warn mysql.log syslog wtmp aptitude ConsoleKit/ dmesg.0 faillog installer/ mail.err messages news/ syslog.1 Xorg.0.log asterisk/ daemon.log dmesg.1.gz fontconfig.log kern.log mail.info mysql/ pm-powersave.log syslog.2.gz Xorg.0.log.old |
#ls -l /var/log/
![]() alternatives.log auth.log debug dpkg.log fsck/ lastlog mail.log mysql.err speech-dispatcher/ user.log apt/ btmp dmesg exim4/ gdm3/ lpr.log mail.warn mysql.log syslog wtmp aptitude ConsoleKit/ dmesg.0 faillog installer/ mail.err messages news/ syslog.1 Xorg.0.log asterisk/ daemon.log dmesg.1.gz fontconfig.log kern.log mail.info mysql/ pm-powersave.log syslog.2.gz Xorg.0.log.old |
#ls -l /var/log/mysql
![]() mysql/ mysql.err mysql.log |
#ls -l /var/log/mysql
![]() mysql/ mysql.err mysql.log |
#ls -l /var/log/mysql.log
-rw-r----- 1 mysql adm 0 Nov 21 10:44 /var/log/mysql.log |
#ps aux | grep aster
asterisk 14190 0.2 0.1 775488 31248 ? Ssl 11:03 0:00 /usr/sbin/asterisk -p -U asterisk asterisk 14191 0.0 0.0 13908 772 ? S 11:03 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 14190 root 14233 0.0 0.0 34044 2948 pts/0 Sl+ 11:03 0:00 rasterisk rvvv root 14262 0.0 0.0 7828 880 pts/6 S+ 11:07 0:00 grep aster |
#mysql -u asrterisk -p
![]() Enter password: ERROR 1045 (28000): Access denied for user 'asrterisk'@'localhost' (using password: YES) |
#vi /etc/asterisk/cdr_mysql.conf
--- /tmp/l3-saved-6390.5267.5818 2013-11-21 11:15:27.991534625 +0200 +++ /etc/asterisk/cdr_mysql.conf 2013-11-21 11:15:45.043535042 +0200 @@ -17,7 +17,7 @@ password=yourpassword user=asterisk port=3306 -sock=/var/run/mysql/mysql.sock +sock=/var/run/mysqld/mysql.sock ;timezone=UTC ; Previously called usegmtime ; ; If your system's locale differs from mysql database character set, |
#vi /etc/asterisk/cdr_mysql.conf
|
#[global]
![]() alt.asterisk.canary.tweet.tweet.tweet asterisk.pid asterisk.ctl |
#less /var/run/asterisk/a
![]() |
#less /var/run/mysqld/mysqld.
![]() |
#less /var/run/mysqld/mysqld.
![]() |
#less /var/run/mysqld/mysqld.sock
|
#vi /etc/asterisk/res_config_mysql.conf
|
#vi /etc/asterisk/extconfig.conf
|
#apt-get install mercurial
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: mercurial-common Suggested packages: qct wish kdiff3 kdiff3-qt kompare meld xxdiff tkcvs mgdiff python-mysqldb python-pygments python-openssl The following NEW packages will be installed: mercurial mercurial-common ... Fetched 2,413 kB in 0s (39.5 MB/s) Selecting previously unselected package mercurial-common. (Reading database ... 145386 files and directories currently installed.) Unpacking mercurial-common (from .../mercurial-common_2.2.2-3_all.deb) ... Selecting previously unselected package mercurial. Unpacking mercurial (from .../mercurial_2.2.2-3_amd64.deb) ... Processing triggers for man-db ... Setting up mercurial-common (2.2.2-3) ... Setting up mercurial (2.2.2-3) ... Creating config file /etc/mercurial/hgrc.d/hgext.rc with new version |
#cd /etc/
|
#hg commit
![]() abort: no repository found in '/etc' (.hg not found)! |
#hg init
|
#cat /etc/log
![]() logcheck/ login.defs logrotate.conf logrotate.d/ |
#cat /etc/log
![]() logcheck/ login.defs logrotate.conf logrotate.d/ |
#cat /etc/logr
![]() cat: /etc/logr: No such file or directory |
#cat /etc/logrotate.d/asterisk
/var/log/asterisk/debug /var/log/asterisk/messages /var/log/asterisk/full /var/log/asterisk/*_log { weekly missingok rotate 4 sharedscripts postrotate /usr/sbin/invoke-rc.d asterisk logger-reload > /dev/null 2> /dev/null endscript } |
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-6390.766.15477 2013-11-21 13:35:54.895740184 +0200 +++ /etc/asterisk/sip.conf 2013-11-21 13:36:18.799740764 +0200 @@ -16,8 +16,8 @@ secret=2201 context=g1 language=ru -call group=1 -pickup group=1 +callgroup=1 +pickupgroup=1 [2202](local-phone) secret=2202 @@ -27,8 +27,8 @@ secret=2203 context=g2 language=ru -call group=1 -pickup group=1 +callgroup=1 +pickupgroup=1 [2204](local-phone) secret=2204 |
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-6390.861.3975 2013-11-21 13:37:10.759742033 +0200 +++ /etc/asterisk/sip.conf 2013-11-21 13:37:24.531742368 +0200 @@ -21,7 +21,8 @@ [2202](local-phone) secret=2202 - +callgroup=1 +pickupgroup=1 [2203](local-phone) secret=2203 |
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-6390.12768.16209 2013-11-21 13:37:49.911742988 +0200 +++ /etc/asterisk/sip.conf 2013-11-21 13:38:09.991743478 +0200 @@ -21,6 +21,7 @@ [2202](local-phone) secret=2202 +context=g1 callgroup=1 pickupgroup=1 |
#vi /etc/asterisk/sip.conf
|
#vi /etc/asterisk/features.conf
--- /tmp/l3-saved-6390.31150.22623 2013-11-21 13:56:57.327770977 +0200 +++ /etc/asterisk/features.conf 2013-11-21 13:57:35.055771898 +0200 @@ -119,10 +119,10 @@ [featuremap] -;blindxfer => #1 ; Blind transfer (default is #) -- Make sure to set the T and/or t option in the Dial() or Queue() app call! +blindxfer => #1 ; Blind transfer (default is #) -- Make sure to set the T and/or t option in the Dial() or Queue() app call! ;disconnect => *0 ; Disconnect (default is *) -- Make sure to set the H and/or h option in the Dial() or Queue() app call! ;automon => *1 ; One Touch Record a.k.a. Touch Monitor -- Make sure to set the W and/or w option in the Dial() or Queue() app call! -;atxfer => *2 ; Attended transfer -- Make sure to set the T and/or t option in the Dial() or Queue() app call! +atxfer => *2 ; Attended transfer -- Make sure to set the T and/or t option in the Dial() or Queue() app call! ;parkcall => #72 ; Park call (one step parking) -- Make sure to set the K and/or k option in the Dial() app call! ;automixmon => *3 ; One Touch Record a.k.a. Touch MixMonitor -- Make sure to set the X and/or x option in the Dial() or Queue() app call! |
#vi /etc/asterisk/features.conf
|
#; engine configuration
exten => s,n,WaitExten(3) exten => s,n,Background(/var/tmp/asterisk/records/record02) exten => s,n,WaitExten(3) exten => s,n,Background(/var/tmp/asterisk/records/record03) exten => s,n,Hangup exten => 1,1,AGI(/usr/local/bin/asterisk-festival.pl,/var/tmp/texts/burunduki.txt) exten => 1,n,Goto(s,main) exten => 2,1,AGI(/usr/local/bin/asterisk-festival.pl,/var/tmp/texts/pescy.txt) exten => 2,n,Goto(s,main) 47,1 20% exten => _22XX,n,Set(MON_FILE=${EXTEN}-${CALLERID(num)}-${EPOCH}) exten => _22XX,n,Monitor(wav,${MON_FILE},m) exten => _22XX,n,Dial(SIP/${EXTEN},50) exten => _22XX,n,Voicemail(${EXTEN}@default) [national] l( ${EXTEN} 0,tT) [ ] [xten => ]23XX,1,Answer exten => _23XX,n,Dial(SIP/liverpool/${EXTEN}) "asterisk/extensions.conf" 136L, 3589C written |
#vi /etc/asterisk/features.conf
|
#vi /etc/asterisk/queues.conf
|
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-6390.30356.11272 2013-11-21 15:01:39.355865671 +0200 +++ /etc/asterisk/extensions.conf 2013-11-21 15:02:56.227867544 +0200 @@ -70,6 +70,8 @@ exten => 8200,1,Goto(menu,s,1) +exten => 8201,1,Queue(queue1) + ;exten => _22XX,1,Answer ;exten => _22XX,n,Dial(SIP/${EXTEN}) ; |
#vi /etc/asterisk/agents.conf
--- /tmp/l3-saved-6390.26623.16550 2013-11-21 15:09:00.747876446 +0200 +++ /etc/asterisk/agents.conf 2013-11-21 15:10:08.927878101 +0200 @@ -103,3 +103,4 @@ ; ;agent => 1001,4321,Mark Spencer ;agent => 1002,4321,Will Meadows +agent => 007,1234,James Bond |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-6390.312.12872 2013-11-21 15:10:20.679878387 +0200 +++ /etc/asterisk/extensions.conf 2013-11-21 15:18:25.039890202 +0200 @@ -72,6 +72,8 @@ exten => 8201,1,Queue(queue1) +exten => _83XX,1,AgentLogin(0${EXTEN:2}) + ;exten => _22XX,1,Answer ;exten => _22XX,n,Dial(SIP/${EXTEN}) ; |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-6390.2882.25304 2013-11-21 15:28:42.315905262 +0200 +++ /etc/asterisk/extensions.conf 2013-11-21 15:29:23.351906261 +0200 @@ -70,7 +70,8 @@ exten => 8200,1,Goto(menu,s,1) -exten => 8201,1,Queue(queue1) +exten => 8201,1,Answer +exten => 8201,n,Queue(queue1) exten => _83XX,1,AgentLogin(0${EXTEN:2}) |
#vi /etc/asterisk/queues.conf
--- /tmp/l3-saved-6390.569.16523 2013-11-21 15:34:26.295913651 +0200 +++ /etc/asterisk/queues.conf 2013-11-21 15:39:40.611921318 +0200 @@ -251,7 +251,7 @@ ; Note that this value is ignored if the caller's queue ; position has changed (see min-announce-frequency) ; -;announce-frequency = 90 +announce-frequency = 90 ; ; The absolute minimum time between the start of each ; queue position and/or estimated holdtime announcement @@ -259,7 +259,7 @@ ; when the caller's queue position is changing frequently ; (see announce-frequency) ; -;min-announce-frequency = 15 +min-announce-frequency = 15 ; ; How often to make any periodic announcement (see periodic-announce) ; @@ -280,6 +280,7 @@ ; Hold time will be announced as the estimated time. ; ;announce-holdtime = yes|no|once +announce-holdtime = once ; ; Queue position announce? ; Valid values are "yes," "no," "limit," or "more." If set to "no," then the caller's position will @@ -291,7 +292,7 @@ ; callers waiting). If set to "limit," then only callers within the limit specified by announce-position-limit ; will have their position announced. ; -;announce-position = yes +announce-position = yes ; ; If you have specified "limit" or "more" for the announce-position option, then the following ; value is what is used to determine what announcement to play to waiting callers. If you have @@ -323,11 +324,11 @@ ; ("calls waiting.") ;queue-callswaiting = queue-callswaiting ; ("The current est. holdtime is") -;queue-holdtime = queue-holdtime +queue-holdtime = queue-holdtime ; ("minute.") -;queue-minute = queue-minute +queue-minute = queue-minute ; ("minutes.") -;queue-minutes = queue-minutes +queue-minutes = queue-minutes ; ("seconds.") ;queue-seconds = queue-seconds ; ("Thank you for your patience.") @@ -335,7 +336,7 @@ ; ("Hold time") ;queue-reporthold = queue-reporthold ; ("All reps busy / wait for next") -;periodic-announce = queue-periodic-announce +periodic-announce = queue-periodic-announce ; ; A set of periodic announcements can be defined by separating ; periodic announcements to reproduce by commas. For example: |
#vi /etc/asterisk/queues.conf
--- /tmp/l3-saved-6390.1585.17223 2013-11-21 15:42:02.607924782 +0200 +++ /etc/asterisk/queues.conf 2013-11-21 15:44:19.051928114 +0200 @@ -542,4 +542,23 @@ ;member => SIP/2201 member => Agent/007 - + nnounce-frequency = 90 | +min-announce-frequency = 15 | +periodic-announce-frequency=60 +announce-holdtime = once +announce-position = yes +announce-position-limit = 5 +announce-round-seconds = 10 +queue-youarenext = queue-youarenext +queue-thereare = queue-thereare +queue-callswaiting = queue-callswaiting +queue-holdtime = queue-holdtime +queue-minute = queue-minute +queue-minutes = queue-minutes +queue-seconds = queue-seconds +queue-thankyou = queue-thankyou +queue-reporthold = queue-reporthold +periodic-announce = queue-periodic-announce + +member => Agent/007 + |
#vi /etc/asterisk/queues.conf
--- /tmp/l3-saved-6390.5176.12232 2013-11-21 15:44:37.275928550 +0200 +++ /etc/asterisk/queues.conf 2013-11-21 15:44:57.395929042 +0200 @@ -541,8 +541,7 @@ ;member => SIP/2201 -member => Agent/007 - nnounce-frequency = 90 | +announce-frequency = 90 | min-announce-frequency = 15 | periodic-announce-frequency=60 announce-holdtime = once |
#screen
|
#cd /etc/asterisk/
|
#cd /etc/asterisk/
|
#ftp 192.168.15.202
Connected to 192.168.15.202. 220 Gene6 FTP Server v3.10.0 (Build 2) ready... Name (192.168.15.202:user): sidar 331 Password required for sidar. Password: 230 User sidar logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp> cd Aster 250 CWD command successful. "/Aster" is current directory. ... 226 File received ok. 13691 bytes sent in 0.00 secs (581309.4 kB/s) ftp> put festival.conf local: festival.conf remote: festival.conf 200 Port command successful. 150 Opening data connection for festival.conf 226 File received ok. 923 bytes sent in 0.00 secs (50076.0 kB/s) ftp> exit 421 Service not available, remote server has closed connection |
#apt-get install subversion
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libsvn1 Suggested packages: subversion-tools The following NEW packages will be installed: libsvn1 subversion 0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded. ... Get:2 http://192.168.15.254/debian/ wheezy/main subversion amd64 1.6.17dfsg-4+deb7u4 [1,320 kB] Fetched 2,253 kB in 0s (38.8 MB/s) Selecting previously unselected package libsvn1:amd64. (Reading database ... 146206 files and directories currently installed.) Unpacking libsvn1:amd64 (from .../libsvn1_1.6.17dfsg-4+deb7u4_amd64.deb) ... Selecting previously unselected package subversion. Unpacking subversion (from .../subversion_1.6.17dfsg-4+deb7u4_amd64.deb) ... Processing triggers for man-db ... Setting up libsvn1:amd64 (1.6.17dfsg-4+deb7u4) ... Setting up subversion (1.6.17dfsg-4+deb7u4) ... |
#svn checkout http://chan-datacard.googlecode.com/svn/trunk/
A trunk/__helpers.c A trunk/__char_conv.c A trunk/configure A trunk/chan_datacard.h A trunk/Makefile.in A trunk/__cli.c A trunk/COPYRIGHT.txt A trunk/__channel.c A trunk/__manager.c A trunk/__at_fifo_queue.c ... A trunk/__at_response.c A trunk/__ringbuffer.c A trunk/README.txt A trunk/etc A trunk/etc/datacard.conf A trunk/__ringbuffer.h A trunk/chan_datacard.c A trunk/__at_parse.c A trunk/__at_read.c Checked out revision 191. |
#apt-get -nstall asterisk-dev
![]() E: Command line option 'n' [from -nstall] is not known. |
#apt-get -install asterisk-dev
![]() E: Command line option 'i' [from -install] is not known. |
#apt-get install asterisk-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: asterisk-dev 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. Need to get 959 kB of archives. After this operation, 2,129 kB of additional disk space will be used. Get:1 http://security.debian.org/ wheezy/updates/main asterisk-dev all 1:1.8.13.1~dfsg-3+deb7u1 [959 kB] Fetched 959 kB in 7s (126 kB/s) Selecting previously unselected package asterisk-dev. (Reading database ... 146294 files and directories currently installed.) Unpacking asterisk-dev (from .../asterisk-dev_1%3a1.8.13.1~dfsg-3+deb7u1_all.deb) ... Setting up asterisk-dev (1:1.8.13.1~dfsg-3+deb7u1) ... |
#cd chan-datacard-read-only/
|
#./configure
configure complete, now type 'make' |
#make
gcc -Wextra -fPIC -DAST_MODULE=\"chan_datacard\" -D_THREAD_SAFE -I. -I/usr/include -O2 -DICONV_CONST="" -D__DEBUG__ -D__MANAGER__ -D__APP__ -c chan_datacard.c gcc -shared -Xlinker -x chan_datacard.o -o chan_datacard.so chmod 755 chan_datacard.so |
#make install
gcc -Wextra -fPIC -DAST_MODULE=\"chan_datacard\" -D_THREAD_SAFE -I. -I/usr/include -O2 -DICONV_CONST="" -D__DEBUG__ -D__MANAGER__ -D__APP__ -c chan_datacard.c gcc -shared -Xlinker -x chan_datacard.o -o chan_datacard.so chmod 755 chan_datacard.so install -d /usr/lib/asterisk/modules/ install -m 755 chan_datacard.so /usr/lib/asterisk/modules/ |
#ls /etc/
acpi gconf logcheck rc4.d adduser.conf gdm3 login.defs rc5.d adjtime ghostscript logrotate.conf rc6.d aliases gimp logrotate.d rc.local alternatives gnashpluginrc lynx-cur rcS.d apache2 gnashrc magic reportbug.conf apg.conf gnashthumbnailrc magic.mime resolvconf apm gnome mailcap resolv.conf apt gnome-vfs-2.0 mailcap.order rmt asterisk gnome-vfs-mime-magic mailname rpc ... environment ld.so.conf.d pulse usb_modeswitch.d esound libao.conf purple vim exim4 libaudit.conf python w3m festival.scm libnl-3 python2.6 wgetrc fonts libpaper.d python2.7 wildmidi freetds libreoffice radiusclient-ng wpa_supplicant fstab lilalo rc0.d X11 fstab.d locale.alias rc1.d xdg fuse.conf locale.gen rc2.d xml gai.conf localtime rc3.d |
#ap-get -nstall asterisk-dev
lsmod | grep usb usbcore 128741 2 ehci_hcd usb_common 12354 1 usbcore |
#usb_modules
![]() l3script: usb_modules: command not found |
#modinfo
![]() Error: missing module or filename. |
#modinfo usb_common
filename: /lib/modules/3.2.0-4-amd64/kernel/drivers/usb/usb-common.ko license: GPL depends: intree: Y vermagic: 3.2.0-4-amd64 SMP mod_unload modversions |
#ap-get -nstall asterisk-dev
exten => s,n,Hangup exten => 1,1,AGI(/usr/local/bin/asterisk-festival.pl,/var/tmp/texts/burunduki.txt) exten => 1,n,Goto(s,main) exten => 2,1,AGI(/usr/local/bin/asterisk-festival.pl,/var/tmp/texts/pescy.txt) exten => 2,n,Goto(s,main) exten => 3,1,Goto(menu,s,main) exten => 9,1,Goto(s,main) exten => 0,1,Goto(menu,0,1) exten => 2255,1,Answer 51,1 23% include => local include => national [g3] [g3] include => localnalwer 141,0-1 Bot [incoming=datacard] [ ] exten => s,1,Dial(SIP/donetsk/1301) "/etc/asterisk/extensions.conf" 145L, 3743C written |
#vi /etc/asterisk/d
![]() |
#vi /etc/asterisk/d
![]() |
#vi /etc/asterisk/extensions.conf
|
#apt-get install telnet
Reading package lists... Done Building dependency tree Reading state information... Done telnet is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. |
#apt-get install telnetd
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: openbsd-inetd The following NEW packages will be installed: openbsd-inetd telnetd 0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded. Need to get 82.7 kB of archives. After this operation, 223 kB of additional disk space will be used. ... (Reading database ... 146440 files and directories currently installed.) Unpacking openbsd-inetd (from .../openbsd-inetd_0.20091229-2_amd64.deb) ... Selecting previously unselected package telnetd. Unpacking telnetd (from .../telnetd_0.17-36_amd64.deb) ... Processing triggers for man-db ... Setting up openbsd-inetd (0.20091229-2) ... Stopping internet superserver: inetd. Not starting internet superserver: no services enabled. Setting up telnetd (0.17-36) ... Adding user telnetd to group utmp |
#/etc/init.d/inetd restart
![]() l3script: /etc/init.d/inetd: No such file or directory |
#/etc/init.d/
![]() acpid gdm3 mtab.sh saned alsa-utils halt mysql screen-cleanup asterisk hdparm networking sendsigs atd hostname.sh network-manager single avahi-daemon hwclock.sh nfs-common speech-dispatcher binfmt-support kbd openbsd-inetd ssh bluetooth keyboard-setup pppd-dns sudo bootlogs killprocs procps udev bootmisc.sh kmod pulseaudio udev-mtab checkfs.sh minissdpd rc umountfs checkroot-bootclean.sh motd rc.local umountnfs.sh checkroot.sh mountall-bootclean.sh rcS umountroot console-setup mountall.sh reboot urandom cron mountdevsubfs.sh rmnologin x11-common dahdi mountkernfs.sh rpcbind dbus mountnfs-bootclean.sh rsync exim4 mountnfs.sh rsyslog |
#/etc/init.d/networking restart
Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning). Reconfiguring network interfaces...done. |
#ping ya.ru
![]() ping: unknown host ya.ru |
#ping 192.168.15.202
![]() connect: Network is unreachable |
#/etc/init.d/networking start
Configuring network interfaces...done. |
#/etc/init.d/networking stop
Deconfiguring network interfaces...done. |
#/etc/init.d/networking start
Configuring network interfaces...done. |
#/etc/init.d/networking start
Configuring network interfaces...done. |
#reboot
|
#cd /tmp/
![]() .ICE-unix/ pulse-PKdhtXMmr18n/ ssh-INlL5Fclujs6/ .X0-lock pulse-25nLDWMc4a1A/ pulse-u1VRDKwnDQnq/ tracker-user/ .X11-unix/ |
#cd /tmp/
|
#cdc /etc/
![]() Display all 238 possibilities? (y or n) acpi/ host.conf passwd- adduser.conf hostname perl/ adjtime hosts pkcs11/ aliases hosts.allow pm/ alternatives/ hosts.deny polkit-1/ apache2/ hotplug/ ppp/ apg.conf icedtea-web/ profile apm/ iceweasel/ profile.d/ apt/ idmapd.conf protocols ... group nsswitch.conf vim/ group- obex-data-server/ w3m/ grub.d/ openal/ wgetrc gshadow opt/ wildmidi/ gshadow- os-release wpa_supplicant/ gssapi_mech.conf PackageKit/ X11/ gtk-2.0/ pam.conf xdg/ gtk-3.0/ pam.d/ xml/ hdparm.conf papersize .hg/ passwd |
#cdc /tmp/
![]() l3script: cdc: command not found |
#cd /tmp/
|
#ls
pulse-25nLDWMc4a1A pulse-PKdhtXMmr18n pulse-u1VRDKwnDQnq ssh-INlL5Fclujs6 tracker-user |
#lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 003: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem |
#lsmod | grep usb
usb_wwan 17278 1 option usbserial 32061 2 usb_wwan,option usb_storage 43870 0 scsi_mod 162269 5 libata,sd_mod,sr_mod,sg,usb_storage usbcore 128741 6 ehci_hcd,usb_storage,usbserial,usb_wwan,option usb_common 12354 1 usbcore |
logcheck/ login.defs logrotate.conf logrotate.d/
/var/log/asterisk/debug /var/log/asterisk/messages /var/log/asterisk/full /var/log/asterisk/*_log { weekly missingok rotate 4 sharedscripts postrotate /usr/sbin/invoke-rc.d asterisk logger-reload > /dev/null 2> /dev/null endscript }
Время первой команды журнала | 09:49:38 2013-11-21 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 08:56:45 2013-11-22 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 92 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 9.78 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 4.35 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 3.80 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.40 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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