/l3/users/alexp/nt-voip/linux4.univ.nt/root :1 :2 :3 :4 :5 :6 :7 |
|
#asterisk -rx 'queues reload'
No such command 'queues reload' (type 'core show help queues reload' for other possible commands) |
#asterisk -rx 'reload queue'
No such module 'queue' |
#asterisk -rx 'queue reload all'
|
#asterisk -rvvvv
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 linux4 (pid = 4605) Verbosity is at least 4 -- Got SIP response 480 "Temporarily Unavailable" back from 192.168.40.200 -- SIP/1402-00000083 is circuit-busy -- Nobody picked up in 10000 ms -- Stopped music on hold on SIP/mn-00000082 == Spawn extension (gr4, 1403, 1) exited non-zero on 'SIP/mn-00000082' linux4*CLI> quit Executing last minute cleanups |
#[default]
|
#; available, but consider with penalty
|
#asterisk -rx 'features reload'
|
#[default]
|
#asterisk -rx 'dialplan reload'
Dialplan reloaded. |
#; shared_lastcall will make the lastcall and calls received be the same in
|
#apt-cache search duhdi source
|
#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 E: Unable to locate package source |
#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 (11.2 MB/s) Selecting previously deselected package dahdi-source. (Reading database ... 111725 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) ... |
#nano /etc/apt/sources.list
--- /tmp/l3-saved-6713.18772.22347 2011-10-19 16:15:50.000000000 +0300 +++ /etc/apt/sources.list 2011-10-19 16:16:47.000000000 +0300 @@ -10,3 +10,5 @@ #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://10.0.35.1:9999/debian/ squeeze/updates main contrib non-free + +deb http://backports.debian.org/debian-backports squeeze-backports main |
#module-assistant auto-install dahdi
|
#apt-cache
![]() .aptitude/ .bash_profile .l3rc .nano_history .ssh/ .asterisk_history .bashrc .lesshst .profile tall .bash_history eradd alexp .lilalo/ .rnd .viminfo |
#apt-cache
![]() .aptitude/ .bash_profile .l3rc .nano_history .ssh/ .asterisk_history .bashrc .lesshst .profile tall .bash_history eradd alexp .lilalo/ .rnd .viminfo |
#apt-cache search
![]() E: You must give at least one search pattern |
#apt-get update
Hit http://10.0.35.1 squeeze Release.gpg Ign http://10.0.35.1/debian/ squeeze/contrib Translation-en Get:1 http://backports.debian.org squeeze-backports Release.gpg [836 B] 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 Ign http://10.0.35.1/debian/ squeeze/contrib Translation-en_US Ign http://10.0.35.1/debian/ squeeze/main Translation-en Get:2 http://backports.debian.org squeeze-backports Release [77.3 kB] 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 Get:3 http://backports.debian.org squeeze-backports/main i386 Packages [289 kB] 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 Fetched 367 kB in 2s (165 kB/s) Reading package lists... Done |
#module-assistant auto-install dahdi
![]() |
#lsp
![]() lspci lspgpot |
#lspci | grep -i ethernet
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04) |
#lsmod | grep e1000
e1000e 112794 0 |
#apt-cache search linux image-2.3
|
#apt-cache search linux-image-2.3
|
#apt-cache search linux image
aboot-cross - utility to create bootable ISO-Images for Linux/Alpha alsa-base - ALSA driver configuration files bootcd - run your system from cd without need for disks camorama - gnome utility to view and save images from a webcam camstream - collection of tools for webcams and other video-devices cdfs-src - shows the tracks on a CD as normal files chntpw - NT SAM password recovery utility circuslinux-data - data files for circuslinux comedi-source - Comedi kernel module source comix - GTK Comic Book Viewer ... linux-image-2.6.38-bpo.2-686 - Linux 2.6.38 for modern PCs linux-image-2.6.38-bpo.2-amd64 - Linux 2.6.38 for 64-bit PCs linux-image-2.6.39-bpo.2-486 - Linux 2.6.39 for older PCs linux-image-2.6.39-bpo.2-686-pae-dbg - Debugging infos for Linux 2.6.39-bpo.2-686-pae linux-image-2.6.39-bpo.2-686-pae - Linux 2.6.39 for modern PCs linux-image-2.6.39-bpo.2-amd64 - Linux 2.6.39 for 64-bit PCs linux-base - Linux image base package linux-image-2.6-686-pae - Linux 2.6 for modern PCs (meta-package) linux-image-686-pae - Linux for modern PCs (meta-package) linux-image-2.6-686 - Linux 2.6 for modern PCs (meta-package) |
#cat /proc/version
Linux version 2.6.39-bpo.2-686-pae (Debian 2.6.39-3~bpo60+1) (norbert@tretkowski.de) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1 SMP Thu Aug 4 11:02:22 UTC 2011 |
#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
|
#ssh user@192.168.15.252
user@book:~$ ssh root@192.168.50.1 root@192.168.50.1's password: Linux linux5 2.6.32-5-686 #1 SMP Mon Oct 3 04:15:24 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:49:22 2011 from linux9.unix.nt l3-agent is already running: pid=2379; pidfile=/root/.lilalo/l3-agent.pid |
#nano /boot/grub/
![]() |
#nano /boot/grub/gr
![]() |
#nano /boot/grub/grub.cfg
--- /tmp/l3-saved-2125.32358.31385 2011-10-19 16:35:17.000000000 +0300 +++ /boot/grub/grub.cfg 2011-10-19 16:38:23.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 |
#asterisk -rx 'meetme reload'
No such command 'meetme reload' (type 'core show help meetme reload' for other possible commands) |
#asterisk -rx 'meetme reload all'
No such command 'meetme reload all' (type 'core show help meetme reload all' for other possible commands) |
#asterisk -rvvvv
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 linux4 (pid = 1590) Verbosity was 0 and is now 4 linux4*CLI> meetme kick lock mute unlock unmute list linux4*CLI> quit Executing last minute cleanups |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#modprobe dahdi
|
#mo
![]() modem-manager module-assistant montage mount.fuse mount.ntfs-fuse modinfo mogrify more mount.ntfs mountpoint modprobe mono mount mount.ntfs-3g mousetweaks |
#mod
![]() modem-manager modinfo modprobe module-assistant |
#modprobe dahdi
|
#ls /var/spool/asterisk/sounds
menu |
#nano /etc/asterisk/extensions.conf
|
#[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,MixMonitor(wav,${CALLFILENAME}) exten => s,n,GotoIf($[ "${CALLERID(num):0:2}" != "14" ]?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 => _98XX,n,Playback(${FILENAME}) exten => _147X,1,AgentLogin(${EXTEN}:3) ^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 |
#cat /tmp/hello-from-asterisk
Wed Oct 19 17:21:10 EEST 2011 |
#nano /etc/sudoers
|
#[default]
|
#/etc/sudoers
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,MixMonitor(wav,${CALLFILENAME}) exten => s,n,GotoIf($[ "${CALLERID(num):0:2}" != "14" ]?dial) exten => s,n,SetMusicOnHold(class2) ... 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 => _9700,1,System(date >> /tmp/hello-from-asterisk) exten => _9700,1,System(date >> /tmp/hello-from-asterisk) exten => _147X,1,AgentLogin(${EXTEN}:3) ^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/sudoers
|
#ls /tmp/ -l
total 8 -rw-rw---- 1 asterisk asterisk 30 Oct 19 17:21 hello-from-asterisk drwx------ 2 Debian-gdm Debian-gdm 4096 Oct 19 16:32 orbit-Debian-gdm -rw-r----- 1 root root 0 Oct 19 17:27 root-file |
#ssh user@192.168.15.252
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 17:30:13 2011 from note.unix.nt l3-agent is already running: pid=2176; pidfile=/root/.lilalo/l3-agent.pid [root@linux9:~]# [root@linux9:~]# [root@linux9:~]# [root@linux9:~]# |
#asterisk -rvvvv
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 linux4 (pid = 1472) Verbosity is at least 4 linux4*CLI> quit Executing last minute cleanups |
#xrandr
![]() Can't open display |
#xrandr --help
![]() usage: xrandr [options] where options are: -display <display> or -d <display> -help -o <normal,inverted,left,right,0,1,2,3> or --orientation <normal,inverted,left,right,0,1,2,3> -q or --query -s <size>/<width>x<height> or --size <size>/<width>x<height> -r <rate> or --rate <rate> or --refresh <rate> -v or --version ... --gamma <r>:<g>:<b> --primary --noprimary --newmode <name> <clock MHz> <hdisp> <hsync-start> <hsync-end> <htotal> <vdisp> <vsync-start> <vsync-end> <vtotal> [+HSync] [-HSync] [+VSync] [-VSync] --rmmode <name> --addmode <output> <name> --delmode <output> <name> |
#xrandr --size 1152x864
![]() Can't open display |
#con
![]() conch config_data console-kit-daemon convert conchftp conjure continue |
#console-kit-daemon
![]() .aptitude/ .bash_profile .l3rc .nano_history .ssh/ .asterisk_history .bashrc .lesshst .profile tall .bash_history eradd alexp .lilalo/ .rnd .viminfo |
#dpkg-
![]() dpkg-architecture dpkg-genchanges dpkg-preconfigure dpkg-split dpkg-buildflags dpkg-gencontrol dpkg-query dpkg-statoverride dpkg-buildpackage dpkg-gensymbols dpkg-reconfigure dpkg-trigger dpkg-checkbuilddeps dpkg-maintscript-helper dpkg-scanpackages dpkg-vendor dpkg-deb dpkg-mergechangelogs dpkg-scansources dpkg-distaddfile dpkg-name dpkg-shlibdeps dpkg-divert dpkg-parsechangelog dpkg-source |
#dpkg-reconfigure consool-cyrillic
![]() Package `consool-cyrillic' is not installed and no info is available. Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents. /usr/sbin/dpkg-reconfigure: consool-cyrillic is not installed |
#dpkg-reconfigure console-cyrillic
|
#apt-cache search festvox
festvox-hi-nsk - Hindi male speaker for festival festvox-italp16k - Italian female speaker for Festival festvox-itapc16k - Italian male speaker for Festival festvox-mr-nsk - Marathi male speaker for festival festvox-te-nsk - Telugu (te) male speaker for festival festvox-czech-ph - Czech male speaker for Festival festvox-kallpc16k - American English male speaker for festival, 16khz sample rate festvox-kallpc8k - American English male speaker for festival, 8khz sample rate festvox-kdlpc16k - American English male speaker for festival, 16khz sample rate festvox-kdlpc8k - American English male speaker for festival, 8khz sample rate festvox-ru - Russian male speaker for Festival festvox-suopuhe-common - Common files for Festival Finnish speakers festvox-suopuhe-lj - Finnish female speaker for Festival festvox-suopuhe-mv - Finnish male speaker for festival flite1-dev - A small run-time speech synthesis engine - static libraries flite - A small run-time speech synthesis engine libflite1 - a small run-time speech synthesis engine - shared libraries 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 festvox-ellpc11k - Castilian Spanish male speaker for Festival |
#apt-cache search festiv
brltty-flite - Access software for a blind person - Flite speech driver eflite - Festival-Lite based emacspeak speech server 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 festvox-itapc16k - Italian male speaker for Festival ... stardict-plugin-festival - International dictionary - Festival TTS plugin plasma-widget-translatoid - translation widget for KDE Plasma yasr - General-purpose console screen reader 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 festlex-oald - Festival lexicon from Oxford Advanced Learners' Dictionary festvox-ellpc11k - Castilian Spanish male speaker for Festival mbrola-en1 - British English male voice for Mbrola xsnow - Brings Christmas to your desktop |
#apt-cache search festival
brltty-flite - Access software for a blind person - Flite speech driver eflite - Festival-Lite based emacspeak speech server 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 festvox-itapc16k - Italian male speaker for Festival ... speech-dispatcher-festival - Festival support for Speech Dispatcher stardict-plugin-festival - International dictionary - Festival TTS plugin plasma-widget-translatoid - translation widget for KDE Plasma yasr - General-purpose console screen reader 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 festlex-oald - Festival lexicon from Oxford Advanced Learners' Dictionary festvox-ellpc11k - Castilian Spanish male speaker for Festival mbrola-en1 - British English male voice for Mbrola |
#apt-get install festival
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 libestools2.0 oss-compat 0 upgraded, 7 newly installed, 0 to remove and 14 not upgraded. ... Processing triggers for man-db ... 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-kallpc16k (1.4.0-5) ... |
#apt-get install festvox-ru
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: festvox-ru 0 upgraded, 1 newly installed, 0 to remove and 14 not upgraded. Need to get 196 MB of archives. After this operation, 256 MB of additional disk space will be used. Get:1 http://10.0.35.1/debian/ squeeze/main festvox-ru all 0.5-1 [196 MB] Fetched 196 MB in 1min 11s (2,746 kB/s) Selecting previously deselected package festvox-ru. (Reading database ... 131459 files and directories currently installed.) Unpacking festvox-ru (from .../festvox-ru_0.5-1_all.deb) ... Setting up festvox-ru (0.5-1) ... |
#grep -r 192.168.40.1 /etc/
/etc/hosts:192.168.40.1 linux4.unix.nt linux4 /etc/asterisk/sip.conf.SAVED:;defaultip=192.168.40.123 /etc/network/interfaces: address 192.168.40.1 |
#echo hello from asterisk | test2wave > /home/user/hello-from-asterisk
![]() bash: test2wave: command not found |
#echo hello from asterisk | text2wave > /home/user/hello-from-asterisk
|
#cp /usr/share/doc/festival/examples/festival.init /etc/in
![]() inetd.conf initramfs-tools/ inputrc insserv.conf init.d/ inittab insserv/ insserv.conf.d/ |
#cp /usr/share/doc/festival/examples/festival.init /etc/init.d/festival
|
#chmod +x /etc/init.d/festival
|
#/etc/init.d/festival start
Starting Festival server: festival. |
#ps aux | grep fest
festival 3483 0.3 0.6 26448 21396 ? S 10:07 0:00 /usr/bin/festival --server -b /etc/festival.scm root 3497 0.0 0.0 3856 752 pts/3 S+ 10:07 0:00 grep fest |
#history
14 nano /etc/mail/sendmail.mc 15 /etc/init.d/networking restart 16 vim /etc/mail/sendmail.mc 17 cat /etc/hostname 18 cat /etc/hosts 19 /etc/init.d/sendmail restart 20 netstat -lnp | grep :25 21 exit 22 vim /etc/asterisk/extensions.conf 23 asterisk -rvvvv ... 504 grep -r 192.168.40.1 /etc/ 505 echo hello from asterisk | test2wave > /home/user/hello-from-asterisk 506 echo hello from asterisk | text2wave > /home/user/hello-from-asterisk 507 cp /usr/share/doc/festival/examples/festival.init /etc/init.d/festival 508 chmod +x /etc/init.d/festival 509 echo RUN_FESTIVAL=yes > /etc/default/festival 510 cp /usr/share/doc/festival/examples/festival.scm /etc/ 511 /etc/init.d/festival start 512 ps aux | grep fest 513 history |
#^C
![]() |
#nano /etc/festival.scm
--- /tmp/l3-saved-2148.16752.20317 2011-10-20 10:10:08.000000000 +0300 +++ /etc/festival.scm 2011-10-20 10:11:20.000000000 +0300 @@ -28,3 +28,5 @@ (set! server_access_list '("[^.]+" "127.0.0.1" "localhost")) ; Server deny list (hosts) + +(define (tts_textasterisk string mode) |
#;; WARNING: It is inherently insecure to run a festival instance as a
![]() Display all 211 possibilities? (y or n) |
#nano /etc/f
![]() |
#nano /etc/f
![]() |
#reboot
|
#grep -r textasterisk /etc/
/etc/festival.scm:(define (tts_textasterisk string mode) /etc/asterisk/festival.conf:; Defaults to: (tts_textasterisk "%s" 'file)(quit)\n /etc/asterisk/festival.conf:;festivalcommand=(tts_textasterisk "%s" 'file)(quit)\n |
#nano /etc/asterisk/festival.conf
|
#/etc/init.d/festival restart
Restarting Festival server: festivalNo /usr/bin/festival found running; none killed. . |
#chown festival /var/lo
![]() local/ lock/ log/ |
#chown festival /var/log/festival
![]() chown: cannot access `/var/log/festival': No such file or directory |
#mkdir /var/log/festival
|
#fg
asterisk -rvvvv ^C Disconnected from Asterisk server Executing last minute cleanups |
#fg
![]() bash: fg: current: no such job |
#asterisk -rvvvv
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 linux4 (pid = 2607) Verbosity is at least 4 linux4*CLI> quit Executing last minute cleanups |
#apt-get install libasterisk-agi-perl
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libasterisk-agi-perl 0 upgraded, 1 newly installed, 0 to remove and 14 not upgraded. Need to get 42.2 kB of archives. After this operation, 160 kB of additional disk space will be used. Get:1 http://10.0.35.1/debian/ squeeze/main libasterisk-agi-perl all 1.01-2 [42.2 kB] Fetched 42.2 kB in 0s (3,847 kB/s) Selecting previously deselected package libasterisk-agi-perl. (Reading database ... 133424 files and directories currently installed.) Unpacking libasterisk-agi-perl (from .../libasterisk-agi-perl_1.01-2_all.deb) ... Processing triggers for man-db ... Setting up libasterisk-agi-perl (1.01-2) ... |
#LANG=ru_UA.UTF-8 date
Чтв Окт 20 10:30:22 EEST 2011 |
#nano /usr/bin/per
![]() |
#nano /usr/bin/perl
|
#^Dz�^V^H�<$�0�^G^@�D$^H^@^@^@^@�D$^D^E^@^@^@�<$�D$^L�$x���E�1��C^K^Bt^L�^C�P^L�C^L�D�^D�D$^D�<$�q�^G^@���D$^H^@^@^@½^\$ǹD$^D�^@^@^@�D$^L�E^L�D$^H $
|
#scp linux9:/usr/local/bin/festival-agi.pl /usr/local/bin/
![]() ssh: Could not resolve hostname linux9: Name or service not known |
Linux version 2.6.39-bpo.2-686-pae (Debian 2.6.39-3~bpo60+1) (norbert@tretkowski.de) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1 SMP Thu Aug 4 11:02:22 UTC 2011
Wed Oct 19 17:21:10 EEST 2011
Время первой команды журнала | 13:36:24 2011-10-19 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 09:31:15 2011-10-20 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 15.84 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 3.36 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.50 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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