/l3/users/andr/nt-voip/linux5.linux5.unix.nt/root :1 :2 :3 |
|
#tar xf 11
|
#mv ru /usr/s
sbin/ share/ src/ |
#mv ru /usr/s
sbin/ share/ src/ |
#mv ru /usr/share/as
aspell/ asterisk/ |
#mv ru /usr/share/as
aspell/ asterisk/ |
#mv ru /usr/share/asterisk/s
sounds/ static-http/ |
#mv ru /usr/share/asterisk/s
sounds/ static-http/ |
#mv ru /usr/share/asterisk/sounds/
|
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux3 (pid = 1161) Verbosity is at least 5 == Using SIP RTP CoS mark 5 -- Executing [1397@gr3:1] VoiceMailMain("SIP/1301-00000060", "") in new stack -- <SIP/1301-00000060> Playing 'vm-login.gsm' (language 'en') [Oct 18 16:13:43] WARNING[7254]: app_voicemail.c:9070 vm_authenticate: Couldn't read username linux3*CLI> quit Executing last minute cleanups |
#ssh user@192.168.30.252
ssh: connect to host 192.168.30.252 port 22: No route to host |
#ssh user@192.168.15.252
[ ] exten => 3197,1,VoicemailMain() exten => 3198,1,Record(/var/lib/asterisk/sounds/recorded-voice:gsm,2) exten => 3198,n,Playback(/var/lib/asterisk/sounds/recorded-voice) exten => 3199,1,Playback(demo-thanks) exten => 3199,n,Playback(demo-thanks) exten => 3199,n,Playback(demo-thanks) [local] exten => _310X,1,Dial(SIP/${EXTEN},10) exten => _310X,n,Voicemail(${EXTEN}@default) ... exten => _[123]XXX,1,Dial(SIP/spb/${EXTEN}) 6,0-1 ; ------------------------------- ; USERS ; ------------------------------- [gr1] include => internal include => local "/etc/asterisk/extensions.conf" 64L, 1178C 6,0-1 Наверху --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
#;pbxskip=yeslect between two variables by using dialplan functions, e.g.p_voicemail,o.y default]
bash: xgu.ru/wiki/xkb: No such file or directory |
## xgu.ru/wiki/xkb
|
#nano /etc/asterisk/voicemail.conf
|
#; If you need to have an external program, i.e. /usr/bin/myappions, e.g.
|
#;
|
#tcpdump -i etho not port 22
tcpdump: etho: No such device exists (SIOCGIFHWADDR: No such device) |
#tcpdump -i eth0 not port 22
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes 09:44:09.834148 LLDP, name ProCurve Switch 3400cl-24G, length 164 09:44:21.947583 IP 192.168.30.201.35814 > linux3.unix.nt.sip: SIP, length: 4 ^X09:44:21.948085 IP linux3.unix.nt.46946 > 10.0.35.1.domain: 7034+ PTR? 201.30.168.192.in-addr.arpa. (45) 09:44:21.948512 IP 10.0.35.1.domain > linux3.unix.nt.46946: 7034 NXDomain* 0/1/0 (95) 09:44:22.049006 IP6 fe80::2e27:d7ff:fe46:1988.mdns > ff02::fb.mdns: 0 PTR (QM)? 201.30.168.192.in-addr.arpa. (45) ^C09:44:22.049046 IP linux3.unix.nt.mdns > 224.0.0.251.mdns: 0 PTR (QM)? 201.30.168.192.in-addr.arpa. (45) 6 packets captured 48 packets received by filter 12 packets dropped by kernel |
#apt-cache search wireshark
etherpuppet - create a virtual interface from a remote Ethernet interface packeth - Ethernet packet generator tshark - network traffic analyzer - console version wireshark-common - network traffic analyzer - common files wireshark-dbg - network traffic analyzer - debug symbols wireshark-dev - network traffic analyzer - development tools wireshark - network traffic analyzer - GTK+ version snmp-mibs-downloader - Install and manage Management Information Base (MIB) files |
#tc
Usage: tc [ OPTIONS ] OBJECT { COMMAND | help } tc [-force] -batch filename where OBJECT := { qdisc | class | filter | action | monitor } OPTIONS := { -s[tatistics] | -d[etails] | -r[aw] | -p[retty] | -b[atch] [filename] } |
#which tc
/sbin/tc |
#ping 192.168.30.1
PING 192.168.30.1 (192.168.30.1) 56(84) bytes of data. 64 bytes from 192.168.30.1: icmp_req=1 ttl=64 time=0.024 ms 64 bytes from 192.168.30.1: icmp_req=2 ttl=64 time=0.018 ms 64 bytes from 192.168.30.1: icmp_req=3 ttl=64 time=0.019 ms 64 bytes from 192.168.30.1: icmp_req=4 ttl=64 time=0.018 ms 64 bytes from 192.168.30.1: icmp_req=5 ttl=64 time=0.020 ms 64 bytes from 192.168.30.1: icmp_req=6 ttl=64 time=0.021 ms 64 bytes from 192.168.30.1: icmp_req=7 ttl=64 time=0.021 ms 64 bytes from 192.168.30.1: icmp_req=8 ttl=64 time=0.020 ms 64 bytes from 192.168.30.1: icmp_req=9 ttl=64 time=0.020 ms 64 bytes from 192.168.30.1: icmp_req=10 ttl=64 time=0.020 ms 64 bytes from 192.168.30.1: icmp_req=11 ttl=64 time=0.021 ms 64 bytes from 192.168.30.1: icmp_req=12 ttl=64 time=0.021 ms 64 bytes from 192.168.30.1: icmp_req=13 ttl=64 time=0.021 ms 64 bytes from 192.168.30.1: icmp_req=14 ttl=64 time=0.021 ms ^C --- 192.168.30.1 ping statistics --- 14 packets transmitted, 14 received, 0% packet loss, time 12996ms rtt min/avg/max/mdev = 0.018/0.020/0.024/0.004 ms |
#hping 192.168.30.1
bash: hping: command not found |
#hping3 192.168.30.1
HPING 192.168.30.1 (eth0 192.168.30.1): NO FLAGS are set, 40 headers + 0 data bytes ^C --- 192.168.30.1 hping statistic --- 18 packets transmitted, 0 packets received, 100% packet loss round-trip min/avg/max = 0.0/0.0/0.0 ms |
#hping3 -S -p 80 www.microsoft.com
HPING www.microsoft.com (eth0 65.55.12.249): S set, 40 headers + 0 data bytes len=46 ip=65.55.12.249 ttl=240 id=61474 sport=80 flags=SA seq=0 win=8190 rtt=186.1 ms len=46 ip=65.55.12.249 ttl=240 id=14965 sport=80 flags=SA seq=1 win=8190 rtt=186.2 ms len=46 ip=65.55.12.249 ttl=240 id=32970 sport=80 flags=SA seq=2 win=8190 rtt=186.3 ms len=46 ip=65.55.12.249 ttl=240 id=56353 sport=80 flags=SA seq=3 win=8190 rtt=186.3 ms len=46 ip=65.55.12.249 ttl=240 id=12149 sport=80 flags=SA seq=4 win=8190 rtt=186.2 ms len=46 ip=65.55.12.249 ttl=240 id=7881 sport=80 flags=SA seq=5 win=8190 rtt=186.1 ms len=46 ip=65.55.12.249 ttl=240 id=25126 sport=80 flags=SA seq=6 win=8190 rtt=186.2 ms len=46 ip=65.55.12.249 ttl=240 id=3969 sport=80 flags=SA seq=7 win=8190 rtt=186.1 ms len=46 ip=65.55.12.249 ttl=240 id=48082 sport=80 flags=SA seq=8 win=8190 rtt=186.3 ms len=46 ip=65.55.12.249 ttl=240 id=31779 sport=80 flags=SA seq=9 win=8190 rtt=186.5 ms len=46 ip=65.55.12.249 ttl=240 id=33653 sport=80 flags=SA seq=10 win=8190 rtt=186.1 ms len=46 ip=65.55.12.249 ttl=240 id=11213 sport=80 flags=SA seq=11 win=8190 rtt=186.1 ms len=46 ip=65.55.12.249 ttl=240 id=52262 sport=80 flags=SA seq=12 win=8190 rtt=186.1 ms ^C --- www.microsoft.com hping statistic --- 13 packets transmitted, 13 packets received, 0% packet loss round-trip min/avg/max = 186.1/186.2/186.5 ms |
#iperf -s
------------------------------------------------------------ Server listening on TCP port 5001 TCP window size: 85.3 KByte (default) ------------------------------------------------------------ [ 4] local 192.168.30.1 port 5001 connected with 192.168.40.1 port 47166 [ ID] Interval Transfer Bandwidth [ 4] 0.0-10.0 sec 958 MBytes 802 Mbits/sec |
#iperf -c
iperf: option requires an argument -- c Usage: iperf [-s|-c host] [options] Try `iperf --help' for more information. |
#iperf -c 192.168.40.1
------------------------------------------------------------ Client connecting to 192.168.40.1, TCP port 5001 TCP window size: 16.0 KByte (default) ------------------------------------------------------------ [ 3] local 192.168.30.1 port 34589 connected with 192.168.40.1 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 969 MBytes 812 Mbits/sec |
#apt-cache search jperf
|
#dd
^C0+0 records in 0+0 records out 0 bytes (0 B) copied, 25.807 s, 0.0 kB/s |
#nc
Cmd line: ^C |
#nc 192.168.30.1 3000 | dd of=/dev/null
(UNKNOWN) [192.168.30.1] 3000 (?) : Connection refused 0+0 records in 0+0 records out 0 bytes (0 B) copied, 0.000129411 s, 0.0 kB/s |
#nc 192.168.30.1 3000 | dd of=/dev/null
(UNKNOWN) [192.168.30.1] 3000 (?) : Connection refused 0+0 records in 0+0 records out 0 bytes (0 B) copied, 0.000806528 s, 0.0 kB/s |
#cat /dev/zero | nc -1 -p 3000
nc: invalid option -- '1' nc -h for help |
#cat /dev/zero | nc -l -p 3000
|
#ls /var/spool/asterisk/monitor
|
#smbpasswd -a user
New SMB password: Retype new SMB password: |
#ls /var/spool/asterisk/monitor/
|
#nano /etc/sa
|
#nano /etc/sa
|
#nano /etc/sa
|
#nano /etc/samba/smb.conf
--- /tmp/l3-saved-1862.4372.24991 2011-10-19 10:33:23.000000000 +0300 +++ /etc/samba/smb.conf 2011-10-19 10:36:18.000000000 +0300 @@ -302,12 +302,12 @@ ; write list = root, @lpadmin # A sample share for sharing your CD-ROM with others. -;[cdrom] -; comment = Samba server's CD-ROM -; read only = yes -; locking = no -; path = /cdrom -; guest ok = yes +[cdrom] + comment = Samba server's CD-ROM + read only = yes + locking = no + path = /var/spool/asterisk/monitor + guest ok = yes # The next two parameters show how to auto-mount a CD-ROM when the # cdrom share is accesed. For this to work /etc/fstab must contain |
#[default]
|
#[default]
groff/ group group- |
#nano /etc/gro
|
#nano /etc/gro
|
#nano /etc/group
--- /tmp/l3-saved-1862.15019.18116 2011-10-19 10:41:42.000000000 +0300 +++ /etc/group 2011-10-19 10:41:52.000000000 +0300 @@ -50,7 +50,7 @@ Debian-gdm:x:109: scanner:x:110:saned saned:x:111: -asterisk:x:112: +asterisk:x:112:user smmta:x:113: smmsp:x:114: sambashare:x:115: |
#[default]
acorn-fdisk - Partition editor for Acorn/RISC OS machines asterisk-core-sounds-en-gsm - asterisk PBX sound files - English/gsm asterisk-core-sounds-es-gsm - asterisk PBX sound files - Spanish/gsm asterisk-core-sounds-fr-gsm - asterisk PBX sound files - French/gsm asterisk-moh-opsound-gsm - asterisk extra sound files - English/gsm cplay - A front-end for various audio players dclock - Digital clock for the X Window System with flexible display kismet - Wireless 802.11b monitoring tool ffado-tools - FFADO debugging and firmware tools saydate - speaks the current date through your sound card libsox-dev - Development files for the SoX library libsox-fmt-all - All SoX format libraries libsox-fmt-alsa - SoX alsa format I/O library libsox-fmt-ao - SoX Libao format I/O library libsox-fmt-base - Minimal set of SoX format libraries libsox-fmt-ffmpeg - SoX ffmpeg format library libsox-fmt-mp3 - SoX MP3 format library libsox-fmt-oss - SoX OSS format I/O library libsox-fmt-pulse - SoX PulseAudio format I/O library libsox1b - SoX library of audio effects and processing sox - Swiss army knife of sound processing |
#apt-get install libsox-fmt-gsm
Reading package lists... Done Building dependency tree Reading state information... Done Package libsox-fmt-gsm is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: libsox-fmt-base E: Package 'libsox-fmt-gsm' has no installation candidate |
#grep writeable /etc/samba/smb.conf
writeable = yes |
#ssh 192.168.30.1
The authenticity of host '192.168.30.1 (192.168.30.1)' can't be established. RSA key fingerprint is bc:13:b4:66:4e:f8:83:a6:3a:07:8a:92:74:f6:87:e6. Are you sure you want to continue connecting (yes/no)? e Please type 'yes' or 'no': y Please type 'yes' or 'no': yes Warning: Permanently added '192.168.30.1' (RSA) to the list of known hosts. root@192.168.30.1's password: Permission denied, please try again. root@192.168.30.1's password: Permission denied, please try again. root@192.168.30.1's password: Linux linux3 2.6.39-bpo.2-686-pae #1 SMP Thu Aug 4 11:02:22 UTC 2011 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Oct 19 11:20:07 2011 from 192.168.40.200 l3-agent is already running: pid=1757; pidfile=/root/.lilalo/l3-agent.pid |
#sox -t mp3 123.mp3 gsm -c1 -r8000 123.gsm rate -q1
sox FAIL formats: can't open input file `gsm': No such file or directory |
#sox -t mp3 123.mp3 gsm -c1 -r8000 123.gsm rate -q1
sox FAIL formats: can't open input file `gsm': No such file or directory |
#sox -t mp3 123.mp3 -t gsm -c1 -r8000 123.gsm rate -q1
sox FAIL rate: unknown option `-1' sox FAIL rate: usage: [-q|-l|-m|-h|-v] [override-options] RATE[k] BAND- QUALITY WIDTH REJ dB TYPICAL USE -q quick n/a ~30 @ Fs/4 playback on ancient hardware -l low 80% 100 playback on old hardware -m medium 95% 100 audio playback -h high (default) 95% 125 16-bit mastering (use with dither) -v very high 95% 175 24-bit mastering OVERRIDE OPTIONS (only with -m, -h, -v) -M/-I/-L Phase response = minimum/intermediate/linear(default) -s Steep filter (band-width = 99%) -a Allow aliasing above the pass-band -b 74-99.7 Any band-width % -p 0-100 Any phase response (0 = minimum, 25 = intermediate, 50 = linear, 100 = maximum) |
#sox -t mp3 123.mp3 -t gsm -c1 -r8000 123.gsm rate -q1
sox FAIL rate: unknown option `-1' sox FAIL rate: usage: [-q|-l|-m|-h|-v] [override-options] RATE[k] BAND- QUALITY WIDTH REJ dB TYPICAL USE -q quick n/a ~30 @ Fs/4 playback on ancient hardware -l low 80% 100 playback on old hardware -m medium 95% 100 audio playback -h high (default) 95% 125 16-bit mastering (use with dither) -v very high 95% 175 24-bit mastering OVERRIDE OPTIONS (only with -m, -h, -v) -M/-I/-L Phase response = minimum/intermediate/linear(default) -s Steep filter (band-width = 99%) -a Allow aliasing above the pass-band -b 74-99.7 Any band-width % -p 0-100 Any phase response (0 = minimum, 25 = intermediate, 50 = linear, 100 = maximum) |
#ls
123.gsm 123.mp3 Desktop Documents Downloads Music Pictures Public Templates Videos |
#ls
123.gsm 123.mp3 Desktop Documents Downloads Music Pictures Public Templates Videos |
#nano /etc/asterisk/musiconhold.conf
|
#asterisk -rx 'dialplan reload'
Dialplan reloaded. |
#[default]
GNU nano 2.2.4 File: /etc/asterisk/extensions.conf Modified [default] ; ---------------- ; RESOURCES ; ---------------- [macro-monitor] exten => s,1,Set(CALLFILENAME=${EPOCH}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H-%M-%S")}-${MACRO_EXTEN}-${CALLERID(num)}) exten => s,n,Monitor(wav,${CALLFILENAME},m) exten => s,n,GotoIf($[ "${CALLERID(num):0:2}" != "13" ]?dial) exten => s,n,SetMusicOnHold(class2) ... exten => _1[34]XX,1,Macro(monitor,SIP/hm/${EXTEN}) [international],Record(/var/lib/asterisk/sounds/recorded-voice:gsm,2) exten => 1398,n,Playback(/var/lib/asterisk/sounds/recorded-voice) exten => _[123]XXX,1,Macro(monitor,SIP/msk/${EXTEN}) exten => 1399,1,Playback(demo-thanks) ; ----------------ayback(demo-thanks) ; users> 1399,n,Playback(demo-thanks) [local] [ line 35/75 (46%), col 1/24 (4%), char 921/1488 (61%) ] ^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos ^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text ^T To Spell |
#history
1 useradd andr 2 passwd andr 3 cd/tmp 4 wget http://xgu.ru/lilalo/install 5 vim install 6 nano install 7 nano install 8 bash install 9 nano /root/.bashrc 10 nano /home/user/.bashrc ... 288 nano /etc/asterisk/musiconhold.conf 289 grep -C10 class2 /etc/asterisk/extensions.conf 290 nano /etc/asterisk/musiconhold.conf 291 nano /etc/asterisk/extensions.conf 292 asterisk -rx 'moh reload' 293 asterisk -rx 'dialplan reload' 294 nano /etc/asterisk/extensions.conf 295 nano /etc/asterisk/extensions.conf 296 asterisk -rx 'dialplan reload' 297 history |
#nano /etc/asterisk/sip.conf
--- /tmp/l3-saved-4396.24138.25823 2011-10-19 14:12:23.000000000 +0300 +++ /etc/asterisk/sip.conf 2011-10-19 14:15:33.000000000 +0300 @@ -16,6 +16,8 @@ context=gr3 language=ru mailbox=1301@default +callgroup=1 +pickupgroup=1 [1302] type=friend ;friend, user, peer @@ -23,6 +25,7 @@ host=dynamic context=gr1 language=ru +callgroup=1 [hm] type=friend |
#;member => Agent/1001
GNU nano 2.2.4 File: /etc/asterisk/queues.conf Modified ;member => Agent/1001 ;member => Agent/1002 ;member => Local/1000@default,0,John Smith,SIP/1000 ; ; Note that using agent groups is probably not what you want. Strategies do ; not propagate down to the Agent system so if you want round robin, least ; recent, etc, you should list all the agents in this file individually and not ; use agent groups. ; ;member => Agent/@1 ; Any agent in group 1 ;member => Agent/:1,1 ; Any agent in group 1, wait for first ; available, but consider with penalty [queuel] strategy=ringall ^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos ^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text ^T To Spell |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#nano /etc/apt/sources.list
--- /tmp/l3-saved-3438.19637.15069 2011-10-19 16:17:36.000000000 +0300 +++ /etc/apt/sources.list 2011-10-19 16:17:43.000000000 +0300 @@ -9,3 +9,6 @@ # Line commented out by installer because it failed to verify: #deb-src http://security.debian.org/ squeeze/updates main contrib non-free deb http://10.0.35.1:9999/debian/ squeeze main contrib non-free + +deb http://backports.debian.org/debian-backports squeeze-backports main + |
#apt-cache search dahdi-source
dahdi-source - DAHDI telephony interface - source code for kernel driver |
#apt-get install dahdi-source
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: dahdi-source 0 upgraded, 1 newly installed, 0 to remove and 14 not upgraded. Need to get 912 kB of archives. After this operation, 1,044 kB of additional disk space will be used. Get:1 http://10.0.35.1/debian/ squeeze/main dahdi-source all 1:2.3.0.1+dfsg-2 [912 kB] Fetched 912 kB in 0s (3,653 kB/s) Selecting previously deselected package dahdi-source. (Reading database ... 111315 files and directories currently installed.) Unpacking dahdi-source (from .../dahdi-source_1%3a2.3.0.1+dfsg-2_all.deb) ... Setting up dahdi-source (1:2.3.0.1+dfsg-2) ... |
#module-assistant auto-install dahdi
┌────────────────────┤ Updating cached package data ├─────────────────────┐ │ Reading apt-cache output... │ │ │ │ │ │ 100% │ │ │ └─────────────────────────────────────────────────────────────────────────┘ Updated infos about 1 packages Getting source for kernel version: 2.6.39-bpo.2-686-pae apt-get install linux-headers-2.6.39-bpo.2-686-pae |
#lsmod | grep e1000
e1000e 112794 0 |
#apt-get install linux-image-2.6.32-5-686
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: firmware-linux-free Suggested packages: linux-doc-2.6.32 grub lilo The following NEW packages will be installed: firmware-linux-free linux-image-2.6.32-5-686 0 upgraded, 2 newly installed, 0 to remove and 14 not upgraded. ... run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.32-5-686 /boot/vmlinuz-2.6.32-5-686 run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.32-5-686 /boot/vmlinuz-2.6.32-5-686 Generating grub.cfg ... Found background image: /usr/share/images/desktop-base/desktop-grub.png Found linux image: /boot/vmlinuz-2.6.39-bpo.2-686-pae Found initrd image: /boot/initrd.img-2.6.39-bpo.2-686-pae Found linux image: /boot/vmlinuz-2.6.32-5-686 Found initrd image: /boot/initrd.img-2.6.32-5-686 done Setting up firmware-linux-free (2.6.32-38) ... |
#reboot
|
#nano /boot/grub/grub.cfg
--- /tmp/l3-saved-2259.31495.7910 2011-10-19 16:38:33.000000000 +0300 +++ /boot/grub/grub.cfg 2011-10-19 16:38:50.000000000 +0300 @@ -9,7 +9,7 @@ if [ -s $prefix/grubenv ]; then load_env fi -set default="0" +set default="2" if [ "${prev_saved_entry}" ]; then set saved_entry="${prev_saved_entry}" save_env saved_entry |
#[default]
GNU nano 2.2.4 File: /etc/asterisk/extensions.conf Modified [default] ; ---------------- ; RESOURCES ; ---------------- [macro-monitor] exten => s,1,Set(CALLFILENAME=${EPOCH}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H-%M-%S")}-${MACRO_EXTEN}-${CALLERID(num)}) exten => s,n,Monitor(wav,${CALLFILENAME},m) exten => s,n,GotoIf($[ "${CALLERID(num):0:2}" != "13" ]?dial) exten => s,n,SetMusicOnHold(class2) ... exten => _99XX,1,Answer exten => _99XX,n,Set(FILENAME=/var/spool/asterisk/sounds/menu/${EXTEN}:2) exten => _99XX,n,Record(${FILENAME}:gsm) exten => _98XX,1,Answer exten => _98XX,n,Set(FILENAME=/var/spool/asterisk/sounds/menu/${EXTEN}:2) exten => _98XX,n,Playback(${FILENAME}) exten => _138X,1,GotoIf($[ "${CALLERID(num)}" != "130${EXTEN:3}" ]?password) exten => _138X,n,Voicemailmain(130${EXTEN:3},s) ^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos ^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text ^T To Spell |
#apt-get install ejabberd
Reading package lists... Done Building dependency tree Reading state information... Done ejabberd is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded. |
#cat /proc/version
Linux version 2.6.32-5-686 (Debian 2.6.32-38) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Oct 3 04:15:24 UTC 2011 |
#apt-get install festival festvox-ru
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: alsa-oss festlex-cmu festlex-poslex festvox-kallpc16k libestools2.0 oss-compat Suggested packages: pidgin-festival festival-freebsoft-utils The following NEW packages will be installed: alsa-oss festival festlex-cmu festlex-poslex festvox-kallpc16k festvox-ru libestools2.0 oss-compat 0 upgraded, 8 newly installed, 0 to remove and 14 not upgraded. ... Processing triggers for install-info ... Setting up alsa-oss (1.0.17-4) ... Setting up libestools2.0 (1:2.0.95~beta-2) ... Setting up oss-compat (0.0.4+nmu3) ... FATAL: Module snd_seq_oss not found. Setting up festival (1:2.0.95~beta-5.1) ... Setting up festlex-cmu (1.4.0-6) ... Setting up festlex-poslex (1.4.0-5) ... Setting up festvox-ru (0.5-1) ... Setting up festvox-kallpc16k (1.4.0-5) ... |
#apt-get update
Hit http://10.0.35.1 squeeze Release.gpg Ign http://10.0.35.1/debian/ squeeze/contrib Translation-en Hit http://backports.debian.org squeeze-backports Release.gpg Ign http://backports.debian.org/debian-backports/ squeeze-backports/main Translation-en Ign http://backports.debian.org/debian-backports/ squeeze-backports/main Translation-en_US Hit http://backports.debian.org squeeze-backports Release Ign http://10.0.35.1/debian/ squeeze/contrib Translation-en_US Ign http://10.0.35.1/debian/ squeeze/main Translation-en Hit http://backports.debian.org squeeze-backports/main i386 Packages/DiffIndex Ign http://10.0.35.1/debian/ squeeze/main Translation-en_US Ign http://10.0.35.1/debian/ squeeze/non-free Translation-en Ign http://10.0.35.1/debian/ squeeze/non-free Translation-en_US Hit http://10.0.35.1 squeeze Release Ign http://10.0.35.1 squeeze/main i386 Packages Ign http://10.0.35.1 squeeze/contrib i386 Packages Ign http://10.0.35.1 squeeze/non-free i386 Packages Hit http://10.0.35.1 squeeze/main i386 Packages Hit http://10.0.35.1 squeeze/contrib i386 Packages Hit http://10.0.35.1 squeeze/non-free i386 Packages Reading package lists... Done |
#echo hello from festival | text2wave > /home/user/hello-from-festival
|
#ssh user@192.168.15.252
;; computer. This is because of the inherent design of the festival ;; server. Please use it only in a situation where you are sure that ;; you will not be subjected to such an attack, or have adequate ;; security precautions. ;; This file has been provided as an example file for your use, should ;; you wish to run festival as a server. ; Maximum number of clients on the server (set! server_max_clients 10) ; Server port (set! server_port 1314) ... (utt.send.wave.client wholeutt))) [root@linux9:~]# mkdir /var/log/festival [root@linux9:~]# ps aux | grep fest festival 11106 0.0 0.6 26496 21520 ? S 10:22 0:00 /usr/bin/festival --server -b /etc/festival.scm festival 11133 0.0 0.0 0 0 ? Z 10:23 0:00 [festival] <defunct> root 11184 0.0 0.0 3324 788 pts/3 S+ 10:24 0:00 grep fest [root@linux9:~]# chown festival:festival /var/log/festival/ chown: неверная группа: «festival:festival» [root@linux9:~]# chown festival /var/log/festival/ [root@linux9:~]# |
#grep AGI /etc/asterisk/extensios.conf
grep: /etc/asterisk/extensios.conf: No such file or directory |
#[default]
|
Linux version 2.6.32-5-686 (Debian 2.6.32-38) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Oct 3 04:15:24 UTC 2011
Время первой команды журнала | 14:59:55 2011-10-18 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:12:37 2011-10-20 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 13.86 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 3.96 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 6.81 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.25 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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