/l3/users/igor-gorbatko/asterisk/debian3.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 |
|
#sox -c1 -r4000 rondo.mp3 rondo.gsm
|
#top
![]() top - 04:42:20 up 3:00, 3 users, load average: 0.08, 0.14, 0.11 Tasks: 82 total, 1 running, 81 sleeping, 0 stopped, 0 zombie Cpu(s): 28.1%us, 1.7%sy, 0.0%ni, 70.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 2059368k total, 1165020k used, 894348k free, 68436k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 1646620k total, 0k used, 1646620k free, 833532k cached 3725 root 20 0 12628 9288 1512 R 18.0 0.5 3:42.80 l3-agent 16051 root 20 0 228m 14m 6736 R 12.3 0.7 5:05.55 Xorg 16111 user 20 0 20364 10m 7432 S 6.6 0.5 0:21.64 xfce4-panel 16316 user 20 0 161m 74m 19m S 4.3 3.7 8:49.08 xulrunner-stub ... 1 root 20 0 2100 720 624 S 0.0 0.0 0:01.20 init 2 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kthreadd 3 root RT -5 0 0 0 S 0.0 0.0 0:00.00 migration/0 4 root 15 -5 0 0 0 S 0.0 0.0 0:00.20 ksoftirqd/0 5 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0 6 root 15 -5 0 0 0 S 0.0 0.0 0:00.72 events/0 7 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 khelper 39 root 15 -5 0 0 0 S 0.0 0.0 0:00.16 kblockd/0 41 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid 42 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kacpi_notify |
#mpg123 rondo.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 Playing MPEG stream 1 of 1: rondo.mp3 ... Title: La Serenissima Artist: Rondo' Veneziano Comment: Electronicmusic.newmail.ru Album: Scaramucce Year: 1982 Genre: Classical MPEG 1.0 layer III, 192 kbit/s, 44100 Hz joint-stereo ^C [0:33] Decoding of rondo.mp3 finished. |
#apt-get install ampg123
![]() Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package ampg123 |
#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://10.0.35.1 lenny/main mpg123 1.4.3-4 [130kB] Fetched 476kB in 0s (4975kB/s) Selecting previously deselected package libmpg123-0. (Reading database ... 44317 files and directories currently installed.) Unpacking libmpg123-0 (from .../libmpg123-0_1.4.3-4_i386.deb) ... Selecting previously deselected package mpg123. Unpacking mpg123 (from .../mpg123_1.4.3-4_i386.deb) ... Processing triggers for man-db ... Setting up libmpg123-0 (1.4.3-4) ... Setting up mpg123 (1.4.3-4) ... |
#mpg123
![]() You made some mistake in program usage... let me briefly remind you: 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 usage: mpg123 [option(s)] [file(s) | URL(s) | -] supported options [defaults in brackets]: -v increase verbosity level -q quiet (don't print title) -t testmode (no output) -s write to stdout -w <filename> write Output as WAV file -k n skip first n frames [0] -n n decode only n frames [all] ... -2 downsample 1:2 (22 kHz) -4 downsample 1:4 (11 kHz) -d n play every n'th frame only -h n play every frame n times -0 decode channel 0 (left) only -1 decode channel 1 (right) only -m mix both channels (mono) -p p use HTTP proxy p [$HTTP_PROXY] -@ f read filenames/URLs from f -T get realtime priority -z shuffle play (with wildcards) -Z random play -u a HTTP authentication string -E f Equalizer, data from file -C enable control keys --no-gapless not skip junk/padding in mp3s -? this help --version print name + version See the manpage mpg123(1) or call mpg123 with --longhelp for more parameters and information. |
#apt-get install alsa-util
![]() Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package alsa-util |
#apt-get install alsa-utill
![]() Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package alsa-utill |
#mpg123 rondo.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 Playing MPEG stream 1 of 1: rondo.mp3 ... Title: La Serenissima Artist: Rondo' Veneziano Comment: Electronicmusic.newmail.ru Album: Scaramucce Year: 1982 Genre: Classical MPEG 1.0 layer III, 192 kbit/s, 44100 Hz joint-stereo ^C [2:05] Decoding of rondo.mp3 finished. |
#apt-get install alsa-utills
![]() Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package alsa-utills |
#apt-get install alsa-utils
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: alsa-base linux-sound-base Suggested packages: apmd alsa-oss oss-compat The following NEW packages will be installed: alsa-base alsa-utils linux-sound-base 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. ... (Reading database ... 44365 files and directories currently installed.) Unpacking linux-sound-base (from .../linux-sound-base_1.0.17.dfsg-4_all.deb) ... Selecting previously deselected package alsa-base. Unpacking alsa-base (from .../alsa-base_1.0.17.dfsg-4_all.deb) ... Selecting previously deselected package alsa-utils. Unpacking alsa-utils (from .../alsa-utils_1.0.16-2_i386.deb) ... Processing triggers for man-db ... Setting up linux-sound-base (1.0.17.dfsg-4) ... Setting up alsa-base (1.0.17.dfsg-4) ... Setting up alsa-utils (1.0.16-2) ... |
#alsa
![]() Usage: /usr/sbin/alsa {unload|reload|force-unload|force-reload|suspend|resume} |
#alsa reload
Unloading ALSA sound driver modules: snd-intel8x0 snd-ac97-codec snd-pcm snd-timer snd-page-alloc. Loading ALSA sound driver modules: snd-intel8x0 snd-ac97-codec snd-pcm snd-timer snd-page-alloc. |
#apt-get install alsa-mixer
![]() Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package alsa-mixer |
#alsamixer
x xaaLine [dB gain=-33.00, -33.00] x x x x xaax x x xaax xaax xaax xaax x x xaax > x xaaxFE [dB gain=-45.00] lqqk lqqk lqqk > x xaax xaax x x x x x x x x > x xaax xaax x x x x x x x x > x xaax xaax x x xaax xaax x x > < xaax xaax x x xaax xaax x x > < xaax xaax x x xaax xaax x x x < xaax xaax x x xaax xaax x x x < xaax xaax x x xaax xaax x x x ... xaax xaax xaax xaax xaax xaax xaax xaax Mix 2ch xaax xaax AC-Link xaax xaax tqqu lqqk xMMx xMMx xMMx xMMx mqqj mqqj mqqj mqqj00 100<>100 100 100 100<>100 100 100 PC Speak Aux Mono Out<Channel LFE Line Line Jac CD Mic Mic Boos Mic Sele< Phone Phone IEC958 IEC958 P IEC958 P IEC958 P IEC958 P IEC958 P<IEC958 P 7 3<>3 |
#alsamixer
![]() alsamixer: aborting due to signal `Interrupt' |
#mpg123 rondo.gsm
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 [parse.c:504] error: Giving up searching valid MPEG header after 64K of junk. [mpg123.c:946] error: Initial seek failed: No error... (code 0) |
#sox rondo.gsm
![]() sox: SoX v14.0.1 Failed: Not enough input filenames specified Usage summary: [gopts] [[fopts] infile]... [fopts] outfile [effect [effopts]]... SPECIAL FILENAMES: - stdin (infile) or stdout (outfile) -n use the null file handler; for use with e.g. synth & stat GLOBAL OPTIONS (gopts) (can be specified at any point before the first effect): --buffer BYTES set the buffer size (default 8192) --combine concatenate concatenate multiple input files (default for sox, rec) --combine sequence sequence multiple input files (default for play) ... -N, --reverse-nibbles nibble-order -X, --reverse-bits bit-order of data -B/-L force endianness to big/little -s/-u/-U/-A/ sample encoding: signed/unsigned/u-law/A-law -a/-i/-g/-f ADPCM/IMA ADPCM/GSM/floating point -1/-2/-3/-4/-8 sample size in bytes -v, --volume FACTOR volume input file volume adjustment factor (real number) SUPPORTED FILE FORMATS: 8svx aif aifc aiff aiffc al alsa au auto avr cdda cdr cvs cvsd dat dvms fssd gsm hcom ima ircam la lpc lpc10 lu m3u maud mp2 mp3 nist nul null pls prc raw s1 s2 s3 s4 sb sf sl smp snd sndt sou sph sw txw u1 u2 u3 u4 ub ul uw vms voc vox wav wavpcm wve xa SUPPORTED EFFECTS: allpass band bandpass bandreject bass chorus compand dcshift deemph dither earwax echo echos equalizer fade filter flanger highpass key ladspa lowpass mcompand mixer noiseprof noisered oops pad pan phaser polyphase rabbit repeat resample reverb reverse silence speed stat swap synth tempo treble tremolo trim vol effopts: depends on effect |
#soxplay rondo.gsm
![]() bash: soxplay: command not found |
#play rondo.gsm
Input File : 'rondo.gsm' Sample Size : 8-bit (1 byte) Sample Encoding: GSM Channels : 1 Sample Rate : 8000 Time: 00:11.26 [00:00.00] of 00:00.00 (0.00%) Samples out: 511k Clips: 0 ^C Aborted. |
#sox -c1 -r8000 rondo.mp3 rondo.gsm
|
#play rondo.gsm
Input File : 'rondo.gsm' Sample Size : 8-bit (1 byte) Sample Encoding: GSM Channels : 1 Sample Rate : 8000 Time: 00:13.31 [00:00.00] of 00:00.00 (0.00%) Samples out: 609k Clips: 0 ^C Aborted. |
#sox -c1 -r16000 rondo.mp3 rondo.gsm
|
#sox -c1 -r 16000 rondo.mp3 rondo.gsm resample
|
#sox -c1 rondo.mp3 rondo.gsm
|
#sox -c1 rondo.mp3 rondo.pcm
![]() sox soxio: Can't open output file `rondo.pcm': unknown file type `pcm' |
#mpg123 -wav rondo.wav rondo.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 [readers.c:893] error: Cannot file rondo.wav: No such file or directory [mpg123.c:516] error: Cannot open rondo.wav: File access error. (code 22) Playing MPEG stream 2 of 2: rondo.mp3 ... Title: La Serenissima Artist: Rondo' Veneziano Comment: Electronicmusic.newmail.ru Album: Scaramucce Year: 1982 Genre: Classical MPEG 1.0 layer III, 192 kbit/s, 44100 Hz joint-stereo [2:18] Decoding of rondo.mp3 finished. |
#play rondo.wav
![]() play soxio: Can't open input file `rondo.wav': No such file or directory |
#play rondo.wav
Input File : 'rondo.wav' Sample Size : 16-bit (2 bytes) Sample Encoding: signed (2's complement) Channels : 2 Sample Rate : 44100 Time: 00:45.60 [01:33.25] of 02:18.85 (32.8%) Samples out: 2.18M Clips: 0 ^C Aborted. |
#top
![]() top - 05:09:52 up 3:28, 3 users, load average: 0.08, 0.16, 0.23 Tasks: 82 total, 1 running, 81 sleeping, 0 stopped, 0 zombie Cpu(s): 16.7%us, 1.7%sy, 0.0%ni, 81.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 2059368k total, 1223924k used, 835444k free, 72492k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 1646620k total, 0k used, 1646620k free, 884760k cached 16316 user 20 0 162m 76m 19m S 16.6 3.8 11:18.82 xulrunner-stub 16051 root 20 0 228m 13m 6744 S 5.0 0.7 5:57.62 Xorg 16128 user 20 0 24680 13m 7680 S 3.3 0.7 0:30.50 xfce4-terminal 16111 user 20 0 20364 10m 7436 S 0.7 0.5 0:30.08 xfce4-panel ... 5 root RT -5 0 0 0 S 0.0 0.0 0:01.14 watchdog/0 6 root 15 -5 0 0 0 S 0.0 0.0 0:03.78 events/0 7 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 khelper 39 root 15 -5 0 0 0 S 0.0 0.0 0:00.30 kblockd/0 41 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid 42 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kacpi_notify 117 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod 150 root 20 0 0 0 0 S 0.0 0.0 0:00.00 pdflush 151 root 20 0 0 0 0 S 0.0 0.0 0:01.26 pdflush 152 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kswapd0 |
#sox rondo.mp3 -r8000 -c1 -v08 rondo.gsm
![]() sox: SoX v14.0.1 Failed: -v can only be given for an input file; use `vol' to set the output file volume Usage summary: [gopts] [[fopts] infile]... [fopts] outfile [effect [effopts]]... SPECIAL FILENAMES: - stdin (infile) or stdout (outfile) -n use the null file handler; for use with e.g. synth & stat GLOBAL OPTIONS (gopts) (can be specified at any point before the first effect): --buffer BYTES set the buffer size (default 8192) --combine concatenate concatenate multiple input files (default for sox, rec) ... -N, --reverse-nibbles nibble-order -X, --reverse-bits bit-order of data -B/-L force endianness to big/little -s/-u/-U/-A/ sample encoding: signed/unsigned/u-law/A-law -a/-i/-g/-f ADPCM/IMA ADPCM/GSM/floating point -1/-2/-3/-4/-8 sample size in bytes -v, --volume FACTOR volume input file volume adjustment factor (real number) SUPPORTED FILE FORMATS: 8svx aif aifc aiff aiffc al alsa au auto avr cdda cdr cvs cvsd dat dvms fssd gsm hcom ima ircam la lpc lpc10 lu m3u maud mp2 mp3 nist nul null pls prc raw s1 s2 s3 s4 sb sf sl smp snd sndt sou sph sw txw u1 u2 u3 u4 ub ul uw vms voc vox wav wavpcm wve xa SUPPORTED EFFECTS: allpass band bandpass bandreject bass chorus compand dcshift deemph dither earwax echo echos equalizer fade filter flanger highpass key ladspa lowpass mcompand mixer noiseprof noisered oops pad pan phaser polyphase rabbit repeat resample reverb reverse silence speed stat swap synth tempo treble tremolo trim vol effopts: depends on effect |
#sox rondo.mp3 -r8000 -c1 -v0.8 rondo.gsm
![]() sox: SoX v14.0.1 Failed: -v can only be given for an input file; use `vol' to set the output file volume Usage summary: [gopts] [[fopts] infile]... [fopts] outfile [effect [effopts]]... SPECIAL FILENAMES: - stdin (infile) or stdout (outfile) -n use the null file handler; for use with e.g. synth & stat GLOBAL OPTIONS (gopts) (can be specified at any point before the first effect): --buffer BYTES set the buffer size (default 8192) --combine concatenate concatenate multiple input files (default for sox, rec) ... -N, --reverse-nibbles nibble-order -X, --reverse-bits bit-order of data -B/-L force endianness to big/little -s/-u/-U/-A/ sample encoding: signed/unsigned/u-law/A-law -a/-i/-g/-f ADPCM/IMA ADPCM/GSM/floating point -1/-2/-3/-4/-8 sample size in bytes -v, --volume FACTOR volume input file volume adjustment factor (real number) SUPPORTED FILE FORMATS: 8svx aif aifc aiff aiffc al alsa au auto avr cdda cdr cvs cvsd dat dvms fssd gsm hcom ima ircam la lpc lpc10 lu m3u maud mp2 mp3 nist nul null pls prc raw s1 s2 s3 s4 sb sf sl smp snd sndt sou sph sw txw u1 u2 u3 u4 ub ul uw vms voc vox wav wavpcm wve xa SUPPORTED EFFECTS: allpass band bandpass bandreject bass chorus compand dcshift deemph dither earwax echo echos equalizer fade filter flanger highpass key ladspa lowpass mcompand mixer noiseprof noisered oops pad pan phaser polyphase rabbit repeat resample reverb reverse silence speed stat swap synth tempo treble tremolo trim vol effopts: depends on effect |
#sox -v 0.5 rondo.mp3 -r8000 -c1 -v rondo.gsm
![]() sox sox: Volume value `rondo.gsm' is not a number |
#sox -v 0.5 rondo.mp3 -r8000 -c1 rondo.gsm
|
#cd /var/lo
![]() local/ lock/ log/ |
#cd /var/lo
![]() local/ lock/ log/ |
#cd /var/lo
![]() local/ lock/ log/ |
#cd /var/log/asterisk/
|
#ls -l
total 16 drwxr-xr-x 2 asterisk asterisk 4096 2009-12-07 04:28 cdr-csv drwxr-xr-x 2 asterisk asterisk 4096 2009-01-04 09:27 cdr-custom -rw-rw---- 1 asterisk asterisk 0 2009-12-07 03:06 event_log -rw-rw---- 1 asterisk asterisk 3623 2009-12-07 04:33 messages -rw-rw---- 1 asterisk asterisk 76 2009-12-07 04:19 queue_log |
#tail -f messages
![]() [Dec 7 04:19:21] NOTICE[21718] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'. [Dec 7 04:19:21] NOTICE[21718] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'. [Dec 7 04:19:21] NOTICE[21718] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'. [Dec 7 04:28:50] NOTICE[21729] chan_sip.c: Call from '101' to extension '202' rejected because extension not found. [Dec 7 04:33:53] WARNING[21880] file.c: File rondo does not exist in any format [Dec 7 04:33:53] WARNING[21880] file.c: Unable to open rondo (format 0x2 (gsm)): No such file or directory [Dec 7 04:33:53] WARNING[21880] app_playback.c: ast_streamfile failed on SIP/101-083a11c8 for rondo [Dec 7 04:33:59] WARNING[21881] file.c: File rondo does not exist in any format [Dec 7 04:33:59] WARNING[21881] file.c: Unable to open rondo (format 0x2 (gsm)): No such file or directory [Dec 7 04:33:59] WARNING[21881] app_playback.c: ast_streamfile failed on SIP/101-083a11c8 for rondo ... [Dec 7 22:30:47] NOTICE[23691] chan_sip.c: Received SIP subscribe for peer without mailbox: 103 [Dec 7 22:33:47] NOTICE[23691] chan_sip.c: Received SIP subscribe for peer without mailbox: 103 [Dec 7 22:36:48] NOTICE[23691] chan_sip.c: Received SIP subscribe for peer without mailbox: 103 [Dec 7 22:38:43] WARNING[24323] pbx.c: Unable to register extension '999', priority 1 in 'default', already in use [Dec 7 22:39:02] WARNING[24350] pbx.c: Unable to register extension '999', priority 1 in 'default', already in use [Dec 7 22:39:21] WARNING[24377] pbx.c: Unable to register extension '999', priority 1 in 'default', already in use [Dec 7 22:39:48] NOTICE[23691] chan_sip.c: Received SIP subscribe for peer without mailbox: 103 [Dec 7 22:42:48] NOTICE[23691] chan_sip.c: Received SIP subscribe for peer without mailbox: 103 [Dec 7 22:45:48] NOTICE[23691] chan_sip.c: Received SIP subscribe for peer without mailbox: 103 ^C |
#ls
adsi.conf enum.conf logger.conf rpt.conf adtranvofr.conf esel.conf manager.conf rtp.conf agents.conf extconfig.conf manager.d say.conf alarmreceiver.conf extensions.ael meetme.conf sip.conf alsa.conf extensions.conf mgcp.conf sip.conf.SAVED amd.conf extensions.conf.SAVED misdn.conf sip_notify.conf asterisk.adsi features.conf modules.conf skinny.conf asterisk.conf festival.conf musiconhold.conf sla.conf cdr.conf followme.conf muted.conf smdi.conf cdr_custom.conf func_odbc.conf osp.conf telcordia-1.adsi cdr_manager.conf gtalk.conf oss.conf udptl.conf cdr_odbc.conf h323.conf phone.conf users.conf cdr_pgsql.conf http.conf privacy.conf voicemail.conf cdr_tds.conf iax.conf queues.conf vpb.conf codecs.conf iaxprov.conf res_odbc.conf watchdog.conf dnsmgr.conf indications.conf res_pgsql.conf zapata.conf dundi.conf jabber.conf res_snmp.conf |
#cat sip.conf
[general] context=default [101] username=phone type=friend host=dynamic secret=123 callerid="gib" |
#vim sip.conf
--- /tmp/l3-saved-22147.1107.9542 2009-12-07 22:00:12.000000000 -1000 +++ sip.conf 2009-12-07 22:01:07.000000000 -1000 @@ -7,3 +7,9 @@ host=dynamic secret=123 callerid="gib" + +[103] +type=friend +host=dynamic +secret=123 +callerid="GIB" |
#vim extensions.conf
--- /tmp/l3-saved-22147.32115.22996 2009-12-07 22:01:26.000000000 -1000 +++ extensions.conf 2009-12-07 22:01:53.000000000 -1000 @@ -4,4 +4,3 @@ exten => 102,n,Wait(1) exten => 102,n,Playback(rondo) exten => 102,n,Hangup - |
#vim users
![]() |
#~
; provide you with as much flexibility as using the separate configuration ; files (e.g. sip.conf, iax.conf, etc) but is intended to accelerate the ; simple task of adding users. Note that creating individual items (e.g. ; custom SIP peers, IAX friends, etc.) will allow you to override specific ; parameters within this file. Parameter names here are the same as they ; appear in the other configuration files. There is no way to change the ; value of a parameter here for just one subsystem. "users.conf" 79L, 1804C ; [general] ... ;email = joe@foo.bar ;secret = 1234 ;zapchan = 1 ;hasvoicemail = yes ;vmsecret = 1234 ;hassip = yes ;hasiax = no ;hash323 = no ;hasmanager = no ;callwaiting = no |
#[101]
![]() bash: xs: command not found |
#cd ..
|
#cd init.d/
|
#./asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rv
![]() Asterisk 1.4.21.2~dfsg-3, 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 currently running on debian3 (pid = 23680) Verbosity was 0 and is now 1 debian3*CLI> sip reload Reloading SIP debian3*CLI> ^) fuf No such command '^) fuf' (type 'help ^) fuf' for other possible commands) debian3*CLI> |
#cd ..
|
#cd asterisk/
|
#ls -l
total 436 -rw-r----- 1 asterisk asterisk 140 2009-01-04 09:26 adsi.conf -rw-r----- 1 asterisk asterisk 840 2009-01-04 09:26 adtranvofr.conf -rw-r----- 1 asterisk asterisk 2724 2009-01-04 09:26 agents.conf -rw-r----- 1 asterisk asterisk 2227 2009-01-04 09:26 alarmreceiver.conf -rw-r----- 1 asterisk asterisk 2675 2009-01-04 09:26 alsa.conf -rw-r----- 1 asterisk asterisk 767 2009-01-04 09:26 amd.conf -rw-r----- 1 asterisk asterisk 3260 2009-01-04 09:26 asterisk.adsi -rw-r----- 1 asterisk asterisk 247 2009-01-04 09:17 asterisk.conf -rw-r----- 1 asterisk asterisk 7324 2009-01-04 09:26 cdr.conf ... -rw-r----- 1 asterisk asterisk 4044 2009-01-04 09:26 skinny.conf -rw-r----- 1 asterisk asterisk 6691 2009-01-04 09:26 sla.conf -rw-r----- 1 asterisk asterisk 2665 2009-01-04 09:26 smdi.conf -rw-r----- 1 asterisk asterisk 1384 2009-01-04 09:26 telcordia-1.adsi -rw-r----- 1 asterisk asterisk 598 2009-01-04 09:26 udptl.conf -rw-r----- 1 asterisk asterisk 1804 2009-01-04 09:26 users.conf -rw-r----- 1 asterisk asterisk 11723 2009-01-04 09:26 voicemail.conf -rw-r----- 1 asterisk asterisk 2772 2009-01-04 09:26 vpb.conf -rw-r----- 1 asterisk asterisk 393 2009-01-04 09:26 watchdog.conf -rw-r----- 1 asterisk asterisk 24193 2009-01-04 09:26 zapata.conf |
#vi sip.conf
|
#[103]
![]() aspell/ asterisk/ |
#cd /usr/share/asterisk/
|
#ls
firmware keys moh sounds static-http |
#cd sounds/
|
#ls
1-for-am-2-for-pm.gsm 1-yes-2-no.gsm abandon-all-hope.gsm abandons.gsm academic-support.gsm access-code.gsm accessible-through-system.gsm account-balance-is.gsm accounting.gsm accounts-payable.gsm ... you-must-first-dial.gsm your-account.gsm your.gsm your-msg-has-been-saved.gsm your-msg-is-too-short.gsm your-temp-greeting.gsm you-seem-impatient.gsm you-sound-cute.gsm you-wish-to-join.gsm zip-code.gsm |
#rm rondo.wav
|
#vim extension
![]() |
#~
|
#vi extensions.conf
--- /tmp/l3-saved-22147.31021.26165 2009-12-07 22:11:31.000000000 -1000 +++ extensions.conf 2009-12-07 22:12:49.000000000 -1000 @@ -4,3 +4,5 @@ exten => 102,n,Wait(1) exten => 102,n,Playback(rondo) exten => 102,n,Hangup +exten => _1xx Dial(SIP/${EXTEN}) + |
#asterisk -rn
![]() Asterisk 1.4.21.2~dfsg-3, 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 ========================================================================= ... The 'extensions reload' command is deprecated and will be removed in a future release. Please use 'dialplan reload' instead. [Dec 7 22:13:13] NOTICE[23859]: pbx.c:1884 pbx_extension_helper: Cannot find extension '_1xx Dial(SIP' in context '(null)' [Dec 7 22:13:13] WARNING[23859]: pbx_config.c:2273 pbx_load_config: Invalid priority/label '' at line 7 debian3*CLI> dial dialplan dial debian3*CLI> dialplan reload Dialplan reloaded. [Dec 7 22:13:24] NOTICE[23859]: pbx.c:1884 pbx_extension_helper: Cannot find extension '_1xx Dial(SIP' in context '(null)' [Dec 7 22:13:24] WARNING[23859]: pbx_config.c:2273 pbx_load_config: Invalid priority/label '' at line 7 debian3*CLI> |
#vi extensions.conf
--- /tmp/l3-saved-22147.3731.32651 2009-12-07 22:13:46.000000000 -1000 +++ extensions.conf 2009-12-07 22:14:19.000000000 -1000 @@ -4,5 +4,5 @@ exten => 102,n,Wait(1) exten => 102,n,Playback(rondo) exten => 102,n,Hangup -exten => _1xx Dial(SIP/${EXTEN}) +exten => _1XX,1,Dial(SIP/${EXTEN}) |
#asterisk -rn
![]() Asterisk 1.4.21.2~dfsg-3, 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 currently running on debian3 (pid = 23680) Verbosity is at least 1 debian3*CLI> di dialplan dial debian3*CLI> dialplan reload Dialplan reloaded. debian3*CLI> extensions reload Dialplan reloaded. [Dec 7 22:15:18] NOTICE[23691]: chan_sip.c:14035 handle_request_invite: Call from '103' to extension '202' rejected because extension not found. [Dec 7 22:15:46] NOTICE[23691]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 103 debian3*CLI> |
#vi extensions.conf
--- /tmp/l3-saved-22147.16213.24747 2009-12-07 22:16:56.000000000 -1000 +++ extensions.conf 2009-12-07 22:17:29.000000000 -1000 @@ -1,5 +1,7 @@ [default] + +exten => s,1,Playback(rondo) exten => 102,1,Answer exten => 102,n,Wait(1) exten => 102,n,Playback(rondo) |
#asterisk -rn
![]() Asterisk 1.4.21.2~dfsg-3, 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 currently running on debian3 (pid = 23680) Verbosity is at least 1 debian3*CLI> dialplan reload Dialplan reloaded. [Dec 7 22:17:45] NOTICE[23691]: chan_sip.c:14035 handle_request_invite: Call from '103' to extension '4' rejected because extension not found. debian3*CLI> |
#vi extensions.conf
--- /tmp/l3-saved-22147.22010.4581 2009-12-07 22:17:52.000000000 -1000 +++ extensions.conf 2009-12-07 22:18:22.000000000 -1000 @@ -1,7 +1,5 @@ [default] - -exten => s,1,Playback(rondo) exten => 102,1,Answer exten => 102,n,Wait(1) exten => 102,n,Playback(rondo) |
#vi extensions.conf
--- /tmp/l3-saved-22147.2911.4405 2009-12-07 22:22:46.000000000 -1000 +++ extensions.conf 2009-12-07 22:23:25.000000000 -1000 @@ -5,4 +5,4 @@ exten => 102,n,Playback(rondo) exten => 102,n,Hangup exten => _1XX,1,Dial(SIP/${EXTEN}) - +exten => s,1,Playback(rondo) |
#asterisk -rn
![]() Asterisk 1.4.21.2~dfsg-3, 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 currently running on debian3 (pid = 23680) Verbosity is at least 1 debian3*CLI> extensions reload Dialplan reloaded. [Dec 7 22:23:36] NOTICE[23691]: chan_sip.c:14035 handle_request_invite: Call from '103' to extension '5' rejected because extension not found. debian3*CLI> |
#vi extensions.conf
--- /tmp/l3-saved-22147.28105.26401 2009-12-07 22:24:18.000000000 -1000 +++ extensions.conf 2009-12-07 22:25:08.000000000 -1000 @@ -5,4 +5,5 @@ exten => 102,n,Playback(rondo) exten => 102,n,Hangup exten => _1XX,1,Dial(SIP/${EXTEN}) -exten => s,1,Playback(rondo) +exten => s,1,Answer +exten => s,n,Playback(rondo) |
#exten => s,1,Playback(rondo)
![]() Asterisk 1.4.21.2~dfsg-3, 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 currently running on debian3 (pid = 23680) Verbosity is at least 1 debian3*CLI> dialplan reload Dialplan reloaded. [Dec 7 22:25:19] NOTICE[23691]: chan_sip.c:14035 handle_request_invite: Call from '103' to extension '4' rejected because extension not found. [Dec 7 22:25:21] NOTICE[23691]: chan_sip.c:14035 handle_request_invite: Call from '101' to extension '1111' rejected because extension not found. debian3*CLI> q No such command 'q' (type 'help q' for other possible commands) debian3*CLI> |
#asterisk -rn
![]() Asterisk 1.4.21.2~dfsg-3, 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 currently running on debian3 (pid = 23680) Verbosity is at least 1 debian3*CLI> |
#vi extensions.conf
--- /tmp/l3-saved-22147.10230.1751 2009-12-07 22:25:44.000000000 -1000 +++ extensions.conf 2009-12-07 22:27:52.000000000 -1000 @@ -5,5 +5,5 @@ exten => 102,n,Playback(rondo) exten => 102,n,Hangup exten => _1XX,1,Dial(SIP/${EXTEN}) -exten => s,1,Answer -exten => s,n,Playback(rondo) +exten => i,1,Answer +exten => i,n,Playback(rondo) |
#asterisk -rn
![]() Asterisk 1.4.21.2~dfsg-3, 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 currently running on debian3 (pid = 23680) Verbosity is at least 1 debian3*CLI> extensions reload Dialplan reloaded. [Dec 7 22:28:04] NOTICE[23691]: chan_sip.c:14035 handle_request_invite: Call from '103' to extension '3w32454r32' rejected because extension not found. [Dec 7 22:28:09] WARNING[24054]: chan_sip.c:2921 create_addr: No such host: 111 [Dec 7 22:28:09] WARNING[24054]: app_dial.c:1202 dial_exec_full: Unable to create channel of type 'SIP' (cause 3 - No route to destination) debian3*CLI> |
#vi extensions.conf
|
#[ ]
![]() bash: screen: command not found |
#apt-get install screen
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: screen 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 604kB of archives. After this operation, 1008kB of additional disk space will be used. Get:1 http://10.0.35.1 lenny/main screen 4.0.3-11+lenny1 [604kB] Fetched 604kB in 0s (4188kB/s) Selecting previously deselected package screen. (Reading database ... 44487 files and directories currently installed.) Unpacking screen (from .../screen_4.0.3-11+lenny1_i386.deb) ... Processing triggers for man-db ... Setting up screen (4.0.3-11+lenny1) ... |
#screen
|
#vim extensions.conf
--- /tmp/l3-saved-24178.20191.24175 2009-12-07 22:33:54.000000000 -1000 +++ extensions.conf 2009-12-07 22:34:22.000000000 -1000 @@ -5,5 +5,6 @@ exten => 102,n,Playback(rondo) exten => 102,n,Hangup exten => _1XX,1,Dial(SIP/${EXTEN}) +exten => 999,1,Echo exten => i,1,Answer exten => i,n,Playback(rondo) |
#asterisk
![]() Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#asterisk -rv
Asterisk 1.4.21.2~dfsg-3, 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 currently running on debian3 (pid = 23680) Verbosity is at least 1 debian3*CLI> extensions reload Dialplan reloaded. debian3*CLI> exit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-24178.21894.26450 2009-12-07 22:36:04.000000000 -1000 +++ extensions.conf 2009-12-07 22:36:12.000000000 -1000 @@ -5,6 +5,6 @@ exten => 102,n,Playback(rondo) exten => 102,n,Hangup exten => _1XX,1,Dial(SIP/${EXTEN}) -exten => 999,1,Echo +exten => 999,1,Echo() exten => i,1,Answer exten => i,n,Playback(rondo) |
#asterisk -rv
![]() Asterisk 1.4.21.2~dfsg-3, 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 currently running on debian3 (pid = 23680) Verbosity is at least 1 debian3*CLI> extensions reload Dialplan reloaded. [Dec 7 22:36:48] NOTICE[23691]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 103 debian3*CLI> |
#vim extensions.conf
--- /tmp/l3-saved-24178.6075.10841 2009-12-07 22:37:08.000000000 -1000 +++ extensions.conf 2009-12-07 22:38:37.000000000 -1000 @@ -5,6 +5,7 @@ exten => 102,n,Playback(rondo) exten => 102,n,Hangup exten => _1XX,1,Dial(SIP/${EXTEN}) -exten => 999,1,Echo() +exten => 999,1,Answer +exten => 999,1,Echo (SIP/101) exten => i,1,Answer exten => i,n,Playback(rondo) |
#asterisk -rv
Asterisk 1.4.21.2~dfsg-3, 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 currently running on debian3 (pid = 23680) Verbosity is at least 1 debian3*CLI> extensions reload Dialplan reloaded. [Dec 7 22:38:43] WARNING[24323]: pbx.c:4702 add_pri: Unable to register extension '999', priority 1 in 'default', already in use debian3*CLI> exit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-24178.25844.15342 2009-12-07 22:38:52.000000000 -1000 +++ extensions.conf 2009-12-07 22:38:58.000000000 -1000 @@ -6,6 +6,6 @@ exten => 102,n,Hangup exten => _1XX,1,Dial(SIP/${EXTEN}) exten => 999,1,Answer -exten => 999,1,Echo (SIP/101) +exten => 999,1,Echo(SIP/101) exten => i,1,Answer exten => i,n,Playback(rondo) |
#asterisk -rv
Asterisk 1.4.21.2~dfsg-3, 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 currently running on debian3 (pid = 23680) Verbosity is at least 1 debian3*CLI> extensions reload Dialplan reloaded. [Dec 7 22:39:02] WARNING[24350]: pbx.c:4702 add_pri: Unable to register extension '999', priority 1 in 'default', already in use debian3*CLI> :wq! No such command ':wq!' (type 'help :wq!' for other possible commands) debian3*CLI> eexit No such command 'eexit' (type 'help eexit' for other possible commands) debian3*CLI> exit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-24178.7003.23996 2009-12-07 22:39:11.000000000 -1000 +++ extensions.conf 2009-12-07 22:39:17.000000000 -1000 @@ -6,6 +6,6 @@ exten => 102,n,Hangup exten => _1XX,1,Dial(SIP/${EXTEN}) exten => 999,1,Answer -exten => 999,1,Echo(SIP/101) +exten => 999,1,Echo() exten => i,1,Answer exten => i,n,Playback(rondo) |
#asterisk -rv
Asterisk 1.4.21.2~dfsg-3, 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 currently running on debian3 (pid = 23680) Verbosity is at least 1 debian3*CLI> extensions reload Dialplan reloaded. [Dec 7 22:39:21] WARNING[24377]: pbx.c:4702 add_pri: Unable to register extension '999', priority 1 in 'default', already in use debian3*CLI> exit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-24178.29395.21303 2009-12-07 22:39:29.000000000 -1000 +++ extensions.conf 2009-12-07 22:39:35.000000000 -1000 @@ -6,6 +6,6 @@ exten => 102,n,Hangup exten => _1XX,1,Dial(SIP/${EXTEN}) exten => 999,1,Answer -exten => 999,1,Echo() +exten => 999,n,Echo() exten => i,1,Answer exten => i,n,Playback(rondo) |
#asterisk -rv
![]() Asterisk 1.4.21.2~dfsg-3, 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 currently running on debian3 (pid = 23680) Verbosity is at least 1 debian3*CLI> extensions reload Dialplan reloaded. [Dec 7 22:39:48] NOTICE[23691]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 103 debian3*CLI> |
#vim extensions.conf
|
[general] context=default [101] username=phone type=friend host=dynamic secret=123 callerid="gib"
Время первой команды журнала | 15:39:08 2009-12- 7 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 09:41:00 2009-12- 8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 18.81 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 3.96 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.23 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.37 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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