/l3/users/Andrey/nt-voip/linux12.unix.nt.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 |
|
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk. |
# strategy = ringall
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux12 (pid = 4445) Verbosity was 0 and is now 1 linux12*CLI> set verbose 99 Verbosity was 1 and is now 99 The 'set verbose' command is deprecated and will be removed in a future release. Please use 'core set verbose' instead. -- Executing [2281@group3:1] Queue("SIP/2202-0a0c1f00", "queue1") in new stack [Oct 28 11:26:18] WARNING[4507]: app_queue.c:3930 queue_exec: Unable to join queue 'queue1' == Auto fallthrough, channel 'SIP/2202-0a0c1f00' status is 'UNKNOWN' linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
# strategy = ringall
.ICE-unix/ message-91.gsm message-95.gsm l3-saved-3232.16189.2818 message-92.gsm message-96.gsm lost+found/ message-93.gsm v258999/ memories.mp3 message-94.gsm .X11-unix/ |
#cp /tmp/memories.mp3 /var/lib/asterisk/moh/
|
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk. |
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk. |
#ls /var/lib/
apt/ exim4/ samba/ aptitude/ gconf/ sendmail/ aspell/ hal/ snmp/ asterisk/ initramfs-tools/ tex-common/ bind/ initscripts/ ucf/ dbus/ libuuid/ urandom/ defoma/ logrotate/ usbutils/ dhcp3/ misc/ vim/ dictionaries-common/ mlocate/ x11/ dpkg/ nfs/ xkb/ |
#ls /var/lib/
apt/ exim4/ samba/ aptitude/ gconf/ sendmail/ aspell/ hal/ snmp/ asterisk/ initramfs-tools/ tex-common/ bind/ initscripts/ ucf/ dbus/ libuuid/ urandom/ defoma/ logrotate/ usbutils/ dhcp3/ misc/ vim/ dictionaries-common/ mlocate/ x11/ dpkg/ nfs/ xkb/ |
#ls /var/lib/
apt/ exim4/ samba/ aptitude/ gconf/ sendmail/ aspell/ hal/ snmp/ asterisk/ initramfs-tools/ tex-common/ bind/ initscripts/ ucf/ dbus/ libuuid/ urandom/ defoma/ logrotate/ usbutils/ dhcp3/ misc/ vim/ dictionaries-common/ mlocate/ x11/ dpkg/ nfs/ xkb/ |
#ls /var/lib/as
aspell/ asterisk/ |
#ls /var/lib/as
aspell/ asterisk/ |
#ls /var/lib/asterisk/moh/
memories.mp3 |
#ls -lah /var/lib/asterisk/moh/
total 8.1M drwxr-xr-x 2 asterisk asterisk 4.0K 2010-10-28 11:33 . drwxr-xr-x 4 asterisk asterisk 4.0K 2010-10-25 16:53 .. -rw-r--r-- 1 root root 8.1M 2010-10-28 11:33 memories.mp3 |
#cmowh asterisk /var/lib/asterisk/moh/memories.mp3
bash: cmowh: command not found |
#chown asterisk /var/lib/asterisk/moh/memories.mp3
|
#chmod 777 /var/lib/asterisk/moh/memories.mp3
|
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux12 (pid = 4850) Verbosity was 0 and is now 1 [Oct 28 11:38:06] WARNING[4899]: file.c:602 ast_openstream_full: File /var/lib/asterisk/moh/memories does not exist in any format [Oct 28 11:38:06] WARNING[4899]: res_musiconhold.c:265 ast_moh_files_next: Unable to open file '/var/lib/asterisk/moh/memories': No such file or directory [Oct 28 11:38:13] NOTICE[4899]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/spool/asterisk/monitor/voice-2201-2101-1288255080-in.wav" "/var/spool/asterisk/monitor/voice-2201-2101-1288255080-out.wav" "/var/spool/asterisk/monitor/voice-2201-2101-1288255080.wav" && rm -f "/var/spool/asterisk/monitor/voice-2201-2101-1288255080-"* ) & Executing last minute cleanups linux12*CLI> Disconnected from Asterisk server Executing last minute cleanups Asterisk cleanly ending (0). |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux12 (pid = 4950) Verbosity was 0 and is now 1 linux12*CLI> moh show files Class: default File: /var/lib/asterisk/moh/memories [Oct 28 11:39:59] NOTICE[4999]: pbx.c:1892 pbx_extension_helper: No such label 'answer' in extension 's' in context 'macro-answer-with-monitor' [Oct 28 11:39:59] WARNING[4999]: pbx.c:6424 ast_parseable_goto: Priority 'answer' must be a number > 0, or valid label [Oct 28 11:39:59] NOTICE[4999]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/spool/asterisk/monitor/voice-2201-2101-1288255188-in.wav" "/var/spool/asterisk/monitor/voice-2201-2101-1288255188-out.wav" "/var/spool/asterisk/monitor/voice-2201-2101-1288255188.wav" && rm -f "/var/spool/asterisk/monitor/voice-2201-2101-1288255188-"* ) & linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#sox -t mp3 /tmp/memories.mp3 -r 8000 -c1 -t gsm /tmp/mem
sox soxio: Can't open input file `/tmp/memories.mp3': unknown file type `mp3' |
#sox -t mp3 /tmp/memories.mp3 -r 8000 -c1 -t gsm /tmp/mem
sox soxio: Can't open input file `/tmp/memories.mp3': unknown file type `mp3' |
#scp root@192.168.108.1:/var/lib/asterisk/moh/m* /var/lib/as
/var/lib/aspell/ /var/lib/asterisk/ |
#scp root@192.168.108.1:/var/lib/asterisk/moh/m* /var/lib/asterisk/moh/
root@192.168.108.1's password: scp: /var/lib/asterisk/moh/m*: No such file or directory |
#scp root@192.168.106.1:/var/lib/asterisk/moh/m* /var/lib/asterisk/moh/
The authenticity of host '192.168.106.1 (192.168.106.1)' can't be established. RSA key fingerprint is 21:08:fc:f2:2c:c6:25:07:10:4f:31:f9:f6:82:9a:9f. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.106.1' (RSA) to the list of known hosts. root@192.168.106.1's password: memories.gsm 100% 338KB 337.8KB/s 00:00 |
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk. |
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk. |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... Dialplan reloaded. [Oct 28 11:49:33] WARNING[5245]: pbx.c:4702 add_pri: Unable to register extension '2280', priority 1 in 'local', already in use linux12*CLI> set verbose 99 Verbosity was 1 and is now 99 The 'set verbose' command is deprecated and will be removed in a future release. Please use 'core set verbose' instead. -- Executing [2201@group1:1] SetMusicOnHold("SIP/mn-09184bb0", "default") in new stack == Auto fallthrough, channel 'SIP/mn-09184bb0' status is 'UNKNOWN' set verbose 9quit Executing last minute cleanups Asterisk cleanly ending (0). |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3768.25091.11840 2010-10-28 11:50:44.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-28 11:55:22.000000000 +0300 @@ -63,11 +63,11 @@ [local] -exten =>2201,1,SetMusicOnhold(default) exten =>2281,1,Queue(queue1) exten =>2280,1,Dial(SIP/2202&SIP/2203) exten =>2280,1,Dial(SIP/2202&SIP/2203) -exten => _22XX,1,Macro(answer-with-monitor,${EXTEN}) +exten =>_22XX,1,SetMusicOnhold(default) +exten => _22XX,n,Macro(answer-with-monitor,${EXTEN}) exten => 2296,1,VoiceMailMain() exten => 2298,1,Record(/tmp/warning1:ulaw,,3) ;exten => 2297,1,Playback(/tmp/warning1) |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Executing [s@macro-answer-with-monitor:8] VoiceMail("SIP/mn-091821c8", "2201@default") in new stack -- <SIP/mn-091821c8> Playing 'vm-intro' (language 'en') == Spawn extension (macro-answer-with-monitor, s, 8) exited non-zero on 'SIP/mn-091821c8' in macro 'answer-with-monitor' == Spawn extension (macro-answer-with-monitor, s, 8) exited non-zero on 'SIP/mn-091821c8' -- Executing [h@macro-answer-with-monitor:1] StopMonitor("SIP/mn-091821c8", "") in new stack [Oct 28 11:55:53] NOTICE[5279]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/spool/asterisk/monitor/voice-2201-2101-1288256142-in.wav" "/var/spool/asterisk/monitor/voice-2201-2101-1288256142-out.wav" "/var/spool/asterisk/monitor/voice-2201-2101-1288256142.wav" && rm -f "/var/spool/asterisk/monitor/voice-2201-2101-1288256142-"* ) & -- Executing [h@macro-answer-with-monitor:2] System("SIP/mn-091821c8", "lame /var/spool/asterisk/monitor/voice-2201-2101-1288256142.wav /var/spool/asterisk/monitor/voice-2201-2101-1288256142.mp3") in new stack linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#vi /etc/asterisk/mu
|
#vi /etc/asterisk/musiconhold.conf
--- /tmp/l3-saved-3768.22591.28481 2010-10-28 12:07:59.000000000 +0300 +++ /etc/asterisk/sip.conf 2010-10-28 12:11:52.000000000 +0300 @@ -18,7 +18,10 @@ callerid="Andrey_2201" context=group1 ; group1 context for incoming calls ;canreinvite=no -mailbox=2201 +mailbox=2201 +callgroup=1 +pickupgroup=1 + [2202] type=friend @@ -27,6 +30,8 @@ callerid="Andrey's_Softphone 2202" context=group3 ; group1 context for incoming calls ;canreinvite=no +callgroup=1 +pickupgroup=1 [2203] type=friend |
#apt-get install mpg123
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libmpg123-0 Suggested packages: libartsc0 libaudio2 libaudiofile0 libesd0 libesd-alsa0 libjack0 libpulse0 The following NEW packages will be installed: libmpg123-0 mpg123 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. ... Get:2 http://ftp.ua.debian.org lenny/main mpg123 1.4.3-4lenny1 [129kB] Fetched 475kB in 1s (403kB/s) Selecting previously deselected package libmpg123-0. (Reading database ... 45407 files and directories currently installed.) Unpacking libmpg123-0 (from .../libmpg123-0_1.4.3-4lenny1_i386.deb) ... Selecting previously deselected package mpg123. Unpacking mpg123 (from .../mpg123_1.4.3-4lenny1_i386.deb) ... Processing triggers for man-db ... Setting up libmpg123-0 (1.4.3-4lenny1) ... Setting up mpg123 (1.4.3-4lenny1) ... |
#man mpg123
|
#mpg123 /var/lib/as
aspell/ asterisk/ |
#mpg123 /var/lib/asterisk/moh/memories.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 version 1.4.3; written and copyright by Michael Hipp and others free software (LGPL/GPL) without any warranty but with best wishes Directory: /var/lib/asterisk/moh/ Playing MPEG stream 1 of 1: memories.mp3 ... Title: Memories Artist: David Guetta Feat. Kid Cudi Comment: 00001B55 0000181E 000074B4 0000783B 0002B3F9 00004020 00008000 00008000 0000157F 0000035B Album: One Love Year: 2009 Genre: Dance MPEG 1.0 layer III, 320 kbit/s, 44100 Hz joint-stereo ^C [0:07] Decoding of memories.mp3 finished. |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... == Spawn extension (macro-answer-with-monitor, s, 4) exited non-zero on 'SIP/mn-09180578' -- Executing [h@macro-answer-with-monitor:1] StopMonitor("SIP/mn-09180578", "") in new stack [Oct 28 12:31:22] NOTICE[5757]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/spool/asterisk/monitor/voice-2201-2101-1288258217-in.wav" "/var/spool/asterisk/monitor/voice-2201-2101-1288258217-out.wav" "/var/spool/asterisk/monitor/voice-2201-2101-1288258217.wav" && rm -f "/var/spool/asterisk/monitor/voice-2201-2101-1288258217-"* ) & -- Executing [h@macro-answer-with-monitor:2] System("SIP/mn-09180578", "lame /var/spool/asterisk/monitor/voice-2201-2101-1288258217.wav /var/spool/asterisk/monitor/voice-2201-2101-1288258217.mp3") in new stack -- Saved useragent "Cisco-CP7960G/7.5" for peer 2201 -- Saved useragent "Cisco-CP7960G/7.5" for peer 2204 -- Saved useragent "Cisco-CP7960G/7.5" for peer 2205 linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#apt-get install festival
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: esound-clients esound-common festlex-cmu festlex-poslex festvox-kallpc16k libaudiofile0 libesd0 libestools1.2 sgml-base Suggested packages: festival-freebsoft-utils festival-gaim pidgin-festival esound sgml-base-doc The following NEW packages will be installed: esound-clients esound-common festival festlex-cmu festlex-poslex ... Setting up libaudiofile0 (0.2.6-7+lenny1) ... Setting up esound-common (0.2.36-3) ... Setting up libesd0 (0.2.36-3) ... Setting up esound-clients (0.2.36-3) ... Setting up libestools1.2 (1:1.2.96~beta-2) ... Setting up sgml-base (1.26) ... Setting up festival (1.96~beta-7) ... Setting up festlex-cmu (1.4.0-6) ... Setting up festlex-poslex (1.4.0-5) ... Setting up festvox-kallpc16k (1.4.0-5) ... |
#cp /usr/share/doc/festival/examples/festival.scm /etc/fe
|
#cp /usr/share/doc/festival/examples/festival.init /etc/i
|
#nit.d/festival
bash: nit.d/festival: No such file or directory |
#ln -s /etc/rc2.d/S90fetival /etc/init.d/festival
|
#ln -s /etc/init.d/festival /etc/rc6.d/K10fetival
|
#ls /usr/share/doc/festival/examples/
addr-mode.scm.gz festival_client.c.gz saytime.sh.gz apml.dtd festival_client.h.gz scfg_parse_text.gz benchmark festival_client.pl.gz scfg_parse_text.sh.gz benchmark.text festival.init songs dumpfeats.gz festival.scm speech_pm_1.0.tar.gz dumpfeats.sh.gz intro.text spintro.text durmeanstd.gz latest.gz text2pos durmeanstd.sh.gz latest.sh.gz text2pos.sh ex1.email Makefile th-mode.scm.gz ex1.ogi make_utts.gz tobi.stml example2.sable make_utts.sh.gz toksearch.scm.gz example.apml powmeanstd.gz webdemo.scm example.sable powmeanstd.sh.gz example.th saytime.gz |
#echo 'RUN_FESTIVAL=yes' >> /etc/default/festival
|
#ls -lah /etc/init.d/festival
lrwxrwxrwx 1 root root 21 2010-10-28 12:38 /etc/init.d/festival -> /etc/rc2.d/S90fetival |
#ls -lah /etc/init.d/festival
lrwxrwxrwx 1 root root 21 2010-10-28 12:38 /etc/init.d/festival -> /etc/rc2.d/S90fetival |
#/etc/init.d/
acpid ifupdown-clean rcS asterisk keymap.sh reboot atd killprocs rmnologin bind9 lpd rsync bootlogd lvm2 rsyslog bootmisc.sh module-init-tools samba checkfs.sh mountall-bootclean.sh screen-cleanup checkroot.sh mountall.sh sendmail console-cyrillic mountdevsubfs.sh sendsigs console-screen.sh mountkernfs.sh single cron mountnfs-bootclean.sh ssh dbus mountnfs.sh stop-bootlogd dhcp3-server mountoverflowtmp stop-bootlogd-single exim4 mtab.sh sudo glibc.sh networking udev hal nfs-common udev-mtab halt openbsd-inetd umountfs hostname.sh portmap umountnfs.sh hwclockfirst.sh procps umountroot hwclock.sh rc urandom ifupdown rc.local x11-common |
#/etc/init.d/
acpid ifupdown-clean rcS asterisk keymap.sh reboot atd killprocs rmnologin bind9 lpd rsync bootlogd lvm2 rsyslog bootmisc.sh module-init-tools samba checkfs.sh mountall-bootclean.sh screen-cleanup checkroot.sh mountall.sh sendmail console-cyrillic mountdevsubfs.sh sendsigs console-screen.sh mountkernfs.sh single cron mountnfs-bootclean.sh ssh dbus mountnfs.sh stop-bootlogd dhcp3-server mountoverflowtmp stop-bootlogd-single exim4 mtab.sh sudo glibc.sh networking udev hal nfs-common udev-mtab halt openbsd-inetd umountfs hostname.sh portmap umountnfs.sh hwclockfirst.sh procps umountroot hwclock.sh rc urandom ifupdown rc.local x11-common |
#/etc/init.d/
acpid ifupdown-clean rcS asterisk keymap.sh reboot atd killprocs rmnologin bind9 lpd rsync bootlogd lvm2 rsyslog bootmisc.sh module-init-tools samba checkfs.sh mountall-bootclean.sh screen-cleanup checkroot.sh mountall.sh sendmail console-cyrillic mountdevsubfs.sh sendsigs console-screen.sh mountkernfs.sh single cron mountnfs-bootclean.sh ssh dbus mountnfs.sh stop-bootlogd dhcp3-server mountoverflowtmp stop-bootlogd-single exim4 mtab.sh sudo glibc.sh networking udev hal nfs-common udev-mtab halt openbsd-inetd umountfs hostname.sh portmap umountnfs.sh hwclockfirst.sh procps umountroot hwclock.sh rc urandom ifupdown rc.local x11-common |
#/etc/init.d/
acpid ifupdown-clean rcS asterisk keymap.sh reboot atd killprocs rmnologin bind9 lpd rsync bootlogd lvm2 rsyslog bootmisc.sh module-init-tools samba checkfs.sh mountall-bootclean.sh screen-cleanup checkroot.sh mountall.sh sendmail console-cyrillic mountdevsubfs.sh sendsigs console-screen.sh mountkernfs.sh single cron mountnfs-bootclean.sh ssh dbus mountnfs.sh stop-bootlogd dhcp3-server mountoverflowtmp stop-bootlogd-single exim4 mtab.sh sudo glibc.sh networking udev hal nfs-common udev-mtab halt openbsd-inetd umountfs hostname.sh portmap umountnfs.sh hwclockfirst.sh procps umountroot hwclock.sh rc urandom ifupdown rc.local x11-common |
#/etc/init.d/
acpid ifupdown-clean rcS asterisk keymap.sh reboot atd killprocs rmnologin bind9 lpd rsync bootlogd lvm2 rsyslog bootmisc.sh module-init-tools samba checkfs.sh mountall-bootclean.sh screen-cleanup checkroot.sh mountall.sh sendmail console-cyrillic mountdevsubfs.sh sendsigs console-screen.sh mountkernfs.sh single cron mountnfs-bootclean.sh ssh dbus mountnfs.sh stop-bootlogd dhcp3-server mountoverflowtmp stop-bootlogd-single exim4 mtab.sh sudo glibc.sh networking udev hal nfs-common udev-mtab halt openbsd-inetd umountfs hostname.sh portmap umountnfs.sh hwclockfirst.sh procps umountroot hwclock.sh rc urandom ifupdown rc.local x11-common |
#/etc/init.d/
acpid ifupdown-clean rcS asterisk keymap.sh reboot atd killprocs rmnologin bind9 lpd rsync bootlogd lvm2 rsyslog bootmisc.sh module-init-tools samba checkfs.sh mountall-bootclean.sh screen-cleanup checkroot.sh mountall.sh sendmail console-cyrillic mountdevsubfs.sh sendsigs console-screen.sh mountkernfs.sh single cron mountnfs-bootclean.sh ssh dbus mountnfs.sh stop-bootlogd dhcp3-server mountoverflowtmp stop-bootlogd-single exim4 mtab.sh sudo glibc.sh networking udev hal nfs-common udev-mtab halt openbsd-inetd umountfs hostname.sh portmap umountnfs.sh hwclockfirst.sh procps umountroot hwclock.sh rc urandom ifupdown rc.local x11-common |
#/etc/init.d/
acpid ifupdown-clean rcS asterisk keymap.sh reboot atd killprocs rmnologin bind9 lpd rsync bootlogd lvm2 rsyslog bootmisc.sh module-init-tools samba checkfs.sh mountall-bootclean.sh screen-cleanup checkroot.sh mountall.sh sendmail console-cyrillic mountdevsubfs.sh sendsigs console-screen.sh mountkernfs.sh single cron mountnfs-bootclean.sh ssh dbus mountnfs.sh stop-bootlogd dhcp3-server mountoverflowtmp stop-bootlogd-single exim4 mtab.sh sudo glibc.sh networking udev hal nfs-common udev-mtab halt openbsd-inetd umountfs hostname.sh portmap umountnfs.sh hwclockfirst.sh procps umountroot hwclock.sh rc urandom ifupdown rc.local x11-common |
#/etc/init.d/
acpid ifupdown-clean rcS asterisk keymap.sh reboot atd killprocs rmnologin bind9 lpd rsync bootlogd lvm2 rsyslog bootmisc.sh module-init-tools samba checkfs.sh mountall-bootclean.sh screen-cleanup checkroot.sh mountall.sh sendmail console-cyrillic mountdevsubfs.sh sendsigs console-screen.sh mountkernfs.sh single cron mountnfs-bootclean.sh ssh dbus mountnfs.sh stop-bootlogd dhcp3-server mountoverflowtmp stop-bootlogd-single exim4 mtab.sh sudo glibc.sh networking udev hal nfs-common udev-mtab halt openbsd-inetd umountfs hostname.sh portmap umountnfs.sh hwclockfirst.sh procps umountroot hwclock.sh rc urandom ifupdown rc.local x11-common |
#/etc/init.d/
acpid ifupdown-clean rcS asterisk keymap.sh reboot atd killprocs rmnologin bind9 lpd rsync bootlogd lvm2 rsyslog bootmisc.sh module-init-tools samba checkfs.sh mountall-bootclean.sh screen-cleanup checkroot.sh mountall.sh sendmail console-cyrillic mountdevsubfs.sh sendsigs console-screen.sh mountkernfs.sh single cron mountnfs-bootclean.sh ssh dbus mountnfs.sh stop-bootlogd dhcp3-server mountoverflowtmp stop-bootlogd-single exim4 mtab.sh sudo glibc.sh networking udev hal nfs-common udev-mtab halt openbsd-inetd umountfs hostname.sh portmap umountnfs.sh hwclockfirst.sh procps umountroot hwclock.sh rc urandom ifupdown rc.local x11-common |
#ls /etc/init.d/
acpid ifupdown-clean README asterisk keymap.sh reboot atd killprocs rmnologin bind9 lpd rsync bootlogd lvm2 rsyslog bootmisc.sh module-init-tools samba checkfs.sh mountall-bootclean.sh screen-cleanup checkroot.sh mountall.sh sendmail console-cyrillic mountdevsubfs.sh sendsigs console-screen.sh mountkernfs.sh single ... dhcp3-server mountoverflowtmp stop-bootlogd exim4 mtab.sh stop-bootlogd-single festival networking sudo glibc.sh nfs-common udev hal openbsd-inetd udev-mtab halt portmap umountfs hostname.sh procps umountnfs.sh hwclockfirst.sh rc umountroot hwclock.sh rc.local urandom ifupdown rcS x11-common |
#/etc/init.d/festival start
bash: /etc/init.d/festival: No such file or directory |
#aptitude install festival
Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Writing extended state information... Done Reading task descriptions... Done No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0B of archives. After unpacking 0B will be used. Writing extended state information... Done Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Reading task descriptions... Done |
#mc
|
#ps awwx | grep festival
6418 pts/5 S+ 0:00 grep festival |
#reboot
|
#apt-get remove festival
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: esound-common libesd0 libaudiofile0 sgml-base esound-clients libestools1.2 Use 'apt-get autoremove' to remove them. The following packages will be REMOVED: festival festlex-cmu festlex-poslex festvox-kallpc16k 0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded. After this operation, 16.4MB disk space will be freed. Do you want to continue [Y/n]? (Reading database ... 45706 files and directories currently installed.) Removing festvox-kallpc16k ... Removing festlex-poslex ... Removing festlex-cmu ... Removing festival ... Processing triggers for man-db ... |
#mc
|
#aptitude install festival
Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Reading task descriptions... Done The following NEW packages will be installed: festival festlex-cmu{a} festlex-poslex{a} festvox-kallpc16k{a} 0 packages upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/6131kB of archives. After unpacking 16.4MB will be used. ... Setting up festlex-cmu (1.4.0-6) ... Setting up festlex-poslex (1.4.0-5) ... Setting up festvox-kallpc16k (1.4.0-5) ... Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Writing extended state information... Done Reading task descriptions... Done |
#mc
|
#man festival
|
#ls /etc/init.d/
acpid keymap.sh reboot asterisk killprocs rmnologin atd lpd rsync bind9 lvm2 rsyslog bootlogd module-init-tools samba bootmisc.sh mountall-bootclean.sh screen-cleanup checkfs.sh mountall.sh sendmail checkroot.sh mountdevsubfs.sh sendsigs console-cyrillic mountkernfs.sh single console-screen.sh mountnfs-bootclean.sh skeleton ... dhcp3-server mtab.sh stop-bootlogd-single exim4 networking sudo glibc.sh nfs-common udev hal openbsd-inetd udev-mtab halt portmap umountfs hostname.sh procps umountnfs.sh hwclockfirst.sh rc umountroot hwclock.sh rc.local urandom ifupdown rcS x11-common ifupdown-clean README |
#apt-cache search festival
brltty-flite - Access software for a blind person using a braille display eflite - Festival-Lite based emacspeak speech server espeak - A multi-lingual software speech synthesizer festival-czech - Czech support for Festival speech synthesis system festival-doc - Documentation for Festival festival-freebsoft-utils - Festival extensions and utilities festival-hi - festival text to speech synthesizer for Hindi language festvox-hi-nsk - Hindi male speaker for festival festlex-ifd - Italian support for Festival festvox-italp16k - Italian female speaker for Festival ... screader - Screen reader using software or hardware speech synthesizer speech-dispatcher-festival - Festival support for Speech Dispatcher libestools1.2 - Edinburgh Speech Tools Library stardict-plugin-festival - International dictionary - Festival TTS plugin yasr - General-purpose console screen reader festlex-oald - Festival lexicon from Oxford Advanced Learners' Dictionary festvox-ellpc11k - Castilian Spanish male speaker for Festival festvox-don - minimal British English male speaker for festival festvox-rablpc16k - British English male speaker for festival, 16khz sample rate festvox-rablpc8k - British English male speaker for festival, 8khz sample rate |
#apt-cache search festival | less
|
#scp root@192.168.111.1:/etc/init.d/fest* /etc/init.d/
root@192.168.111.1's password: festival 100% 2501 2.4KB/s 00:00 |
#/etc/init.d/festival
Usage: /etc/init.d/festival {start|stop|restart} |
#/etc/init.d/festival start
Starting Festival server: festival. |
#ps aux | grep fest
root 3237 0.0 0.0 3912 716 pts/1 S+ 12:55 0:00 grep fest |
#aptitude remove festival
Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Reading task descriptions... Done The following packages will be REMOVED: esound-clients{u} esound-common{u} festival festlex-cmu{u} festlex-poslex{u} festvox-kallpc16k{u} libaudiofile0{u} libesd0{u} libestools1.2{u} sgml-base{u} ... Removing libestools1.2 ... Removing sgml-base ... Processing triggers for man-db ... Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Writing extended state information... Done Reading task descriptions... Done |
#aptitude install festival
Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Reading task descriptions... Done The following NEW packages will be installed: esound-clients{a} esound-common{a} festival festlex-cmu{a} festlex-poslex{a} festvox-kallpc16k{a} libaudiofile0{a} libesd0{a} libestools1.2{a} sgml-base{a} ... Setting up festlex-cmu (1.4.0-6) ... Setting up festlex-poslex (1.4.0-5) ... Setting up festvox-kallpc16k (1.4.0-5) ... Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Writing extended state information... Done Reading task descriptions... Done |
#/etc/init.d/
acpid ifupdown-clean rcS asterisk keymap.sh reboot atd killprocs rmnologin bind9 lpd rsync bootlogd lvm2 rsyslog bootmisc.sh module-init-tools samba checkfs.sh mountall-bootclean.sh screen-cleanup checkroot.sh mountall.sh sendmail console-cyrillic mountdevsubfs.sh sendsigs console-screen.sh mountkernfs.sh single cron mountnfs-bootclean.sh ssh dbus mountnfs.sh stop-bootlogd dhcp3-server mountoverflowtmp stop-bootlogd-single exim4 mtab.sh sudo glibc.sh networking udev hal nfs-common udev-mtab halt openbsd-inetd umountfs hostname.sh portmap umountnfs.sh hwclockfirst.sh procps umountroot hwclock.sh rc urandom ifupdown rc.local x11-common |
#/etc/init.d/
acpid ifupdown-clean rcS asterisk keymap.sh reboot atd killprocs rmnologin bind9 lpd rsync bootlogd lvm2 rsyslog bootmisc.sh module-init-tools samba checkfs.sh mountall-bootclean.sh screen-cleanup checkroot.sh mountall.sh sendmail console-cyrillic mountdevsubfs.sh sendsigs console-screen.sh mountkernfs.sh single cron mountnfs-bootclean.sh ssh dbus mountnfs.sh stop-bootlogd dhcp3-server mountoverflowtmp stop-bootlogd-single exim4 mtab.sh sudo glibc.sh networking udev hal nfs-common udev-mtab halt openbsd-inetd umountfs hostname.sh portmap umountnfs.sh hwclockfirst.sh procps umountroot hwclock.sh rc urandom ifupdown rc.local x11-common |
#/etc/init.d/
acpid ifupdown-clean rcS asterisk keymap.sh reboot atd killprocs rmnologin bind9 lpd rsync bootlogd lvm2 rsyslog bootmisc.sh module-init-tools samba checkfs.sh mountall-bootclean.sh screen-cleanup checkroot.sh mountall.sh sendmail console-cyrillic mountdevsubfs.sh sendsigs console-screen.sh mountkernfs.sh single cron mountnfs-bootclean.sh ssh dbus mountnfs.sh stop-bootlogd dhcp3-server mountoverflowtmp stop-bootlogd-single exim4 mtab.sh sudo glibc.sh networking udev hal nfs-common udev-mtab halt openbsd-inetd umountfs hostname.sh portmap umountnfs.sh hwclockfirst.sh procps umountroot hwclock.sh rc urandom ifupdown rc.local x11-common |
#/etc/init.d/
acpid ifupdown-clean rcS asterisk keymap.sh reboot atd killprocs rmnologin bind9 lpd rsync bootlogd lvm2 rsyslog bootmisc.sh module-init-tools samba checkfs.sh mountall-bootclean.sh screen-cleanup checkroot.sh mountall.sh sendmail console-cyrillic mountdevsubfs.sh sendsigs console-screen.sh mountkernfs.sh single cron mountnfs-bootclean.sh ssh dbus mountnfs.sh stop-bootlogd dhcp3-server mountoverflowtmp stop-bootlogd-single exim4 mtab.sh sudo glibc.sh networking udev hal nfs-common udev-mtab halt openbsd-inetd umountfs hostname.sh portmap umountnfs.sh hwclockfirst.sh procps umountroot hwclock.sh rc urandom ifupdown rc.local x11-common |
#/etc/init.d/
acpid ifupdown-clean rcS asterisk keymap.sh reboot atd killprocs rmnologin bind9 lpd rsync bootlogd lvm2 rsyslog bootmisc.sh module-init-tools samba checkfs.sh mountall-bootclean.sh screen-cleanup checkroot.sh mountall.sh sendmail console-cyrillic mountdevsubfs.sh sendsigs console-screen.sh mountkernfs.sh single cron mountnfs-bootclean.sh ssh dbus mountnfs.sh stop-bootlogd dhcp3-server mountoverflowtmp stop-bootlogd-single exim4 mtab.sh sudo glibc.sh networking udev hal nfs-common udev-mtab halt openbsd-inetd umountfs hostname.sh portmap umountnfs.sh hwclockfirst.sh procps umountroot hwclock.sh rc urandom ifupdown rc.local x11-common |
#/etc/init.d/
acpid ifupdown-clean rcS asterisk keymap.sh reboot atd killprocs rmnologin bind9 lpd rsync bootlogd lvm2 rsyslog bootmisc.sh module-init-tools samba checkfs.sh mountall-bootclean.sh screen-cleanup checkroot.sh mountall.sh sendmail console-cyrillic mountdevsubfs.sh sendsigs console-screen.sh mountkernfs.sh single cron mountnfs-bootclean.sh ssh dbus mountnfs.sh stop-bootlogd dhcp3-server mountoverflowtmp stop-bootlogd-single exim4 mtab.sh sudo glibc.sh networking udev hal nfs-common udev-mtab halt openbsd-inetd umountfs hostname.sh portmap umountnfs.sh hwclockfirst.sh procps umountroot hwclock.sh rc urandom ifupdown rc.local x11-common |
#mc
|
#ln -s /etc/rc2.d/S90fetival /etc/init.d/festival
ln: creating symbolic link `/etc/init.d/festival': File exists |
#ln -s /etc/init.d/festival /etc/rc0.d/K10fetival
|
#ln -s /etc/init.d/festival /etc/rc6.d/K10fetival
ln: creating symbolic link `/etc/rc6.d/K10fetival': File exists |
#chmod +x /etc/init.d/festival
|
#less /etc/init.d/festival
|
#echo 'RUN_FESTIVAL=yes' >> /etc/default/festival
|
#/etc/init.d/festival start
Starting Festival server: festival. |
#ps awwx | grep festival
3669 ? S 0:00 /usr/bin/festival --server -b /etc/festival.scm 3683 pts/1 S+ 0:00 grep festival |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2607.16420.18818 2010-10-28 13:01:17.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-28 13:01:59.000000000 +0300 @@ -63,6 +63,7 @@ [local] +exten =>2250,1,Festival('Welcome to Minsk') exten =>2281,1,Queue(queue1) exten =>2280,1,Dial(SIP/2202&SIP/2203) exten =>2280,1,Dial(SIP/2202&SIP/2203) |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux12 (pid = 2353) Verbosity was 0 and is now 1 linux12*CLI> dialplan reload Dialplan reloaded. [Oct 28 13:02:08] WARNING[3728]: pbx.c:4702 add_pri: Unable to register extension '2280', priority 1 in 'local', already in use [Oct 28 13:02:20] WARNING[3729]: app_festival.c:496 festival_exec: Unable to read from cache/festival fd linux12*CLI> linux12*CLI> linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#vi /etc/asterisk/festival.conf
--- /tmp/l3-saved-2607.23231.307 2010-10-28 13:31:52.000000000 +0300 +++ /etc/asterisk/festival.conf 2010-10-28 13:33:51.000000000 +0300 @@ -2,6 +2,11 @@ ; Festival Configuration ; [general] +host=localhost +port=1314 +usecache=yes +cachedir=/var/lib/asterisk/festivalcache + ; ; Host which runs the festival server (default : localhost); ; |
#/etc/init.d/festival stop
Stopping Festival server: festival. |
#/etc/init.d/festival start
Starting Festival server: festival. |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... linux12*CLI> set verbose 99 Verbosity was 1 and is now 99 The 'set verbose' command is deprecated and will be removed in a future release. Please use 'core set verbose' instead. -- Executing [2250@group1:1] Festival("SIP/2201-09398220", "Welcome to Minsk") in new stack == Parsing '/etc/asterisk/festival.conf': Found [Oct 28 13:35:18] WARNING[3841]: app_festival.c:496 festival_exec: Unable to read from cache/festival fd == Spawn extension (group1, 2250, 1) exited non-zero on 'SIP/2201-09398220' linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#less /etc/de
|
#less /etc/def
|
Время первой команды журнала | 10:24:08 2010-10-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 12:35:29 2010-10-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 5.94 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 3.96 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.19 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.77 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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