/l3/users/alexp/nt-voip/linux4.univ.nt/root :1 :2 :3 :4 :5 :6 :7 |
|
#ping 10.0.35.1
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data. 64 bytes from 10.0.35.1: icmp_req=1 ttl=63 time=0.228 ms 64 bytes from 10.0.35.1: icmp_req=2 ttl=63 time=0.246 ms 64 bytes from 10.0.35.1: icmp_req=3 ttl=63 time=0.263 ms 64 bytes from 10.0.35.1: icmp_req=4 ttl=63 time=0.245 ms ^C --- 10.0.35.1 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 2999ms rtt min/avg/max/mdev = 0.228/0.245/0.263/0.019 ms |
#nano /etc/asterisk/
![]() |
#nano /etc/asterisk/sip.conf
|
#;
![]() Usage: shutdown [-akrhPHfFnc] [-t sec] time [warning message] -a: use /etc/shutdown.allow -k: don't really shutdown, only warn. -r: reboot after shutdown. -h: halt after shutdown. -P: halt action is to turn off power. -H: halt action is to just halt. -f: do a 'fast' reboot (skip fsck). -F: Force fsck on reboot. -n: do not go through "init" but go down real fast. -c: cancel a running shutdown. -t secs: delay between warning and kill signal. ** the "time" argument is mandatory! (try "now") ** |
#cat /etc/asterisk/sip.conf.SAVED | sed 's/;.*//' | expand | grep -xv ' *' > /etc/asterisk/sip.conf
|
#cat /etc/asterisk/sip.conf
[general] context=default allowoverlap=no udpbindaddr=0.0.0.0 tcpenable=no tcpbindaddr=0.0.0.0 srvlookup=yes |
#ls -a
. .. .aptitude .asterisk_history .bash_history .bash_profile .bashrc .l3rc .lilalo .profile .ssh |
#;
|
#[general]
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 = 8617) Verbosity is at least 2 linux4*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 0 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 0 offline] linux4*CLI> exit Executing last minute cleanups |
#nano /etc/asterisk/sip.conf
|
#nano /etc/asterisk/extensions.conf
|
#[default]
|
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-12214.19608.10487 2011-10-17 17:55:41.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-10-17 17:55:49.000000000 +0300 @@ -1,4 +1,4 @@ [default] -exten => 1499,1,Playback(demo=thanks) -exten => 1499,n,Playback(demo=thanks) -exten => 1499,n,Playback(demo=thanks) +exten => 1499,1,Playback(demo-thanks) +exten => 1499,n,Playback(demo-thanks) +exten => 1499,n,Playback(demo-thanks) |
#nano /etc/asterisk/extensions.conf
|
#[default]
|
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-12214.31071.31542 2011-10-17 18:13:38.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-10-17 18:17:03.000000000 +0300 @@ -2,3 +2,4 @@ exten => 1499,1,Playback(demo-thanks) exten => 1499,n,Playback(demo-thanks) exten => 1499,n,Playback(demo-thanks) +exten => _140X,1,Dial(SIP/${EXTEN}) |
#shutdown -t 0
![]() Usage: shutdown [-akrhPHfFnc] [-t sec] time [warning message] -a: use /etc/shutdown.allow -k: don't really shutdown, only warn. -r: reboot after shutdown. -h: halt after shutdown. -P: halt action is to turn off power. -H: halt action is to just halt. -f: do a 'fast' reboot (skip fsck). -F: Force fsck on reboot. -n: do not go through "init" but go down real fast. -c: cancel a running shutdown. -t secs: delay between warning and kill signal. ** the "time" argument is mandatory! (try "now") ** |
#shutdown -t now
![]() Usage: shutdown [-akrhPHfFnc] [-t sec] time [warning message] -a: use /etc/shutdown.allow -k: don't really shutdown, only warn. -r: reboot after shutdown. -h: halt after shutdown. -P: halt action is to turn off power. -H: halt action is to just halt. -f: do a 'fast' reboot (skip fsck). -F: Force fsck on reboot. -n: do not go through "init" but go down real fast. -c: cancel a running shutdown. -t secs: delay between warning and kill signal. ** the "time" argument is mandatory! (try "now") ** |
#shutdown -t now -P
![]() shutdown: -H and -P flags can only be used along with -h flag. Usage: shutdown [-akrhPHfFnc] [-t sec] time [warning message] -a: use /etc/shutdown.allow -k: don't really shutdown, only warn. -r: reboot after shutdown. -h: halt after shutdown. -P: halt action is to turn off power. -H: halt action is to just halt. -f: do a 'fast' reboot (skip fsck). -F: Force fsck on reboot. -n: do not go through "init" but go down real fast. -c: cancel a running shutdown. -t secs: delay between warning and kill signal. ** the "time" argument is mandatory! (try "now") ** |
#shutdown -P
![]() shutdown: -H and -P flags can only be used along with -h flag. Usage: shutdown [-akrhPHfFnc] [-t sec] time [warning message] -a: use /etc/shutdown.allow -k: don't really shutdown, only warn. -r: reboot after shutdown. -h: halt after shutdown. -P: halt action is to turn off power. -H: halt action is to just halt. -f: do a 'fast' reboot (skip fsck). -F: Force fsck on reboot. -n: do not go through "init" but go down real fast. -c: cancel a running shutdown. -t secs: delay between warning and kill signal. ** the "time" argument is mandatory! (try "now") ** |
#ssh user@192.168.15.252
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the RSA key sent by the remote host is 23:4b:a2:99:88:79:fc:35:b7:62:e8:6b:0d:d0:e1:4b. Please contact your system administrator. Add correct host key in /home/user/.ssh/known_hosts to get rid of this message. Offending RSA key in /home/user/.ssh/known_hosts:40 ... Warning: Permanently added '192.168.10.1' (RSA) to the list of known hosts. root@192.168.10.1's password: Linux linux1 2.6.39-bpo.2-686-pae #1 SMP Thu Aug 4 11:02:22 UTC 2011 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Mon Oct 17 12:51:28 2011 from 10.0.35.1 l3-agent is already running: pid=2179; pidfile=/root/.lilalo/l3-agent.pid |
#[directories](!) ; remove the (!) to enable this
![]() adsi.conf cdr.conf cli_permissions.conf extensions.conf http.conf mgcp.conf queuerules.conf sip.conf users.conf adtranvofr.conf cdr_custom.conf codecs.conf extensions.conf.SAVED iax.conf minivm.conf queues.conf sip.conf.SAVED voicemail.conf agents.conf cdr_manager.conf console.conf extensions.lua iaxprov.conf misdn.conf res_config_sqlite.conf sip_notify.conf vpb.conf ais.conf cdr_odbc.conf dbsep.conf extensions_minivm.conf indications.conf modules.conf res_ldap.conf skinny.conf alarmreceiver.conf cdr_pgsql.conf dnsmgr.conf features.conf jabber.conf musiconhold.conf res_odbc.conf sla.conf alsa.conf cdr_sqlite3_custom.conf dsp.conf festival.conf jingle.conf muted.conf res_pgsql.conf smdi.conf amd.conf cdr_tds.conf dundi.conf followme.conf logger.conf osp.conf res_snmp.conf telcordia-1.adsi asterisk.adsi chan_dahdi.conf enum.conf func_odbc.conf manager.conf oss.conf rpt.conf udptl.conf asterisk.conf cli_aliases.conf extconfig.conf gtalk.conf manager.d/ phone.conf rtp.conf unistim.conf cdr_adaptive_odbc.conf cli.conf extensions.ael h323.conf meetme.conf phoneprov.conf say.conf usbradio.conf |
#nano /etc/asterisk/users.conf
|
#;
1 useradd alexp 2 passwd alexp 3 cd /tmp 4 wget http://xgu.ru/lilalo/install 5 vim install 6 nano install 7 nano install 8 nano install 9 bash install 10 nano /root/.bashrc ... 259 LANG=en_US.UTF-8 date 260 ssh user@192.168.15.252 261 asterisk -rvv 262 /etc/init.d/gdm3 stop 263 asterisk -rvv 264 nano /etc/asterisk/extensions.conf 265 asterisk -rvv 266 nano /etc/asterisk/asterisk.conf 267 nano /etc/asterisk/users.conf 268 history |
#history | less
|
#history | less
![]() |
#apt-get install vim
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: vim-runtime Suggested packages: ctags vim-doc vim-scripts The following NEW packages will be installed: vim vim-runtime 0 upgraded, 2 newly installed, 0 to remove and 14 not upgraded. ... Setting up vim-runtime (2:7.2.445+hg~cb94c42c0e1a-1) ... Processing /usr/share/vim/addons/doc Setting up vim (2:7.2.445+hg~cb94c42c0e1a-1) ... update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode. update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode. |
#fg
![]() ?pattern * Search backward for (N-th) matching line. n * Repeat previous search (for N-th occurrence). N * Repeat previous search in reverse direction. ESC-n * Repeat previous search, spanning files. ESC-N * Repeat previous search, reverse dir. & spanning files. ESC-u Undo (toggle) search highlighting. &pattern * Display only matching lines --------------------------------------------------- Search patterns may be modified by one or more of: ^N or ! Search for NON-matching lines. ... 256 dpkg-reconfigure locales 257 LANG=uk_UA.UTF-8 date 258 LANG=ru_UA.UTF-8 date 259 LANG=en_US.UTF-8 date 260 ssh user@192.168.15.252 261 asterisk -rvv 262 /etc/init.d/gdm3 stop 263 history 264 history | less [1]+ Stopped history | less |
#fg
232 ping google.com 233 ping debian.org 234 vi /etc/network/interfaces 235 vi /etc/apt/sources.list 236 apt-get update 237 vi /etc/apt/sources.list 238 apt-get update 239 vi /etc/apt/sources.list 240 man sources.list 241 vi /etc/apt/sources.list ... 255 dkpg-reconfigure locales 256 dpkg-reconfigure locales 257 LANG=uk_UA.UTF-8 date 258 LANG=ru_UA.UTF-8 date 259 LANG=en_US.UTF-8 date 260 ssh user@192.168.15.252 261 asterisk -rvv 262 /etc/init.d/gdm3 stop 263 history 264 history | less |
#ls /var/lib/asterisk/sounds/
custom |
#ls /var/lib/as
![]() aspell/ asterisk/ |
#ls /var/lib/asterisk/
![]() astdb moh/ sounds/ sqlite.db |
#ls /var/lib/asterisk/sounds/
custom |
#ls /var/lib/asterisk/sounds/custom/
|
#ls /var/lib/asterisk/sounds/custom/
|
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2757.31316.21660 2011-10-18 12:13:05.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-10-18 12:14:09.000000000 +0300 @@ -10,3 +10,5 @@ exten => _0X,1,Dial(SIP/31${EXTEN}) exten => _13XX,1,Dial(SIP/mn/${EXTEN}) + +exten => _XXXX,1,Dial(SIP/mn/${EXTEN}) |
#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 = 1203) ... == Using SIP RTP CoS mark 5 -- Called mn/2301 [Oct 18 12:21:09] WARNING[1236]: chan_sip.c:17987 handle_response_invite: Received response: "Forbidden" from '"1401" <sip:1401@192.168.40.1>;tag=as482cfc31' -- SIP/mn-00000035 is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) -- Auto fallthrough, channel 'SIP/1401-00000034' status is 'CONGESTION' == Using SIP RTP CoS mark 5 [Oct 18 12:21:34] NOTICE[1236]: chan_sip.c:20276 handle_request_invite: Call from '1401' to extension '2401' rejected because extension not found in context 'default'. linux4*CLI> quit Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
![]() |
#nano /etc/asterisk/extensions.conf
![]() --- /tmp/l3-saved-2757.16914.12048 2011-10-18 12:45:11.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-10-18 12:49:10.000000000 +0300 @@ -1,12 +1,20 @@ [default] -exten => 1499,1,Playback(demo-thanks) -exten => 1499,n,Playback(demo-thanks) -exten => 1499,n,Playback(demo-thanks) - -exten => 1498,1,Record(/var/lib/asterisk/sounds/recorded-voice:gsm,2) -exten => 1498,n,Playback(/var/lib/asterisk/sounds/recorded-voice) exten => _140X,1,Dial(SIP/${EXTEN}) exten => _13XX,1,Dial(SIP/mn/${EXTEN}) exten => _[123]XXX,1,Dial(SIP/mn/${EXTEN}) +[local] + +[national] + +[international] + +[internal] + +exten => 1498,1,Record(/var/lib/asterisk/sounds/recorded-voice:gsm,2) +exten => 1498,n,Playback(/var/lib/asterisk/sounds/recorded-voice) + +exten => 1499,1,Playback(demo-thanks) +exten => 1499,n,Playback(demo-thanks) +exten => 1499,n,Playback(demo-thanks) |
#[default]
![]() adsi.conf codecs.conf iaxprov.conf res_ldap.conf adtranvofr.conf console.conf indications.conf res_odbc.conf agents.conf dbsep.conf jabber.conf res_pgsql.conf ais.conf dnsmgr.conf jingle.conf res_snmp.conf alarmreceiver.conf dsp.conf logger.conf rpt.conf alsa.conf dundi.conf manager.conf rtp.conf amd.conf enum.conf manager.d/ say.conf asterisk.adsi extconfig.conf meetme.conf sip.conf asterisk.conf extensions.ael mgcp.conf sip.conf.SAVED cdr_adaptive_odbc.conf extensions.conf minivm.conf sip_notify.conf cdr.conf extensions.conf.SAVED misdn.conf skinny.conf cdr_custom.conf extensions.lua modules.conf sla.conf cdr_manager.conf extensions_minivm.conf musiconhold.conf smdi.conf cdr_odbc.conf features.conf muted.conf telcordia-1.adsi cdr_pgsql.conf festival.conf osp.conf udptl.conf cdr_sqlite3_custom.conf followme.conf oss.conf unistim.conf cdr_tds.conf func_odbc.conf phone.conf usbradio.conf chan_dahdi.conf gtalk.conf phoneprov.conf users.conf cli_aliases.conf h323.conf queuerules.conf voicemail.conf cli.conf http.conf queues.conf vpb.conf cli_permissions.conf iax.conf res_config_sqlite.conf |
#nano /etc/asterisk/sip.conf.SAVED
![]() |
#; defaultuserivalent to having the follo; send 400 byte T.38 FAX packets to it.
![]() |
#apt-search sendmail
![]() bash: apt-search: command not found |
#apt-get sendmail
![]() E: Invalid operation sendmail |
#apt-get install sendmail sendmail-bin sensible-mda
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: m4 procmail sendmail-base sendmail-cf Suggested packages: sendmail-doc rmail logcheck resolvconf sasl2-bin Recommended packages: default-mta mail-transport-agent fetchmail The following NEW packages will be installed: ... Updating /etc/mail/access... Linking /etc/aliases to /etc/mail/aliases Updating /etc/mail/aliases... /etc/mail/aliases: 4 aliases, longest 10 bytes, 66 bytes total Warning: 3 database(s) sources were not found, (but were created) please investigate. Starting Mail Transport Agent (MTA): sendmail. Setting up sensible-mda (8.14.3-9.4) ... Setting up sendmail (8.14.3-9.4) ... |
#FEATURE(`delay_checks', `friend', `n')dnl
localhost linux4.univ.nt |
#tIf you're on a dialup link, you should enable this - so sendmail
(Reading database ... 111262 files and directories currently installed.) Removing sendmail ... |
#dpkg -P sendmail-bin
dpkg: dependency problems prevent removal of sendmail-bin: sensible-mda depends on sendmail-bin | mail-transport-agent; however: Package sendmail-bin is to be removed. Package mail-transport-agent is not installed. Package sendmail-bin which provides mail-transport-agent is to be removed. sensible-mda depends on sendmail-bin | mail-transport-agent; however: Package sendmail-bin is to be removed. Package mail-transport-agent is not installed. Package sendmail-bin which provides mail-transport-agent is to be removed. dpkg: error processing sendmail-bin (--purge): dependency problems - not removing Errors were encountered while processing: sendmail-bin |
#nano /etc/hosts
--- /tmp/l3-saved-2757.20064.3089 2011-10-18 14:25:50.000000000 +0300 +++ /etc/hosts 2011-10-18 14:26:03.000000000 +0300 @@ -1,5 +1,5 @@ 127.0.0.1 localhost -192.168.15.24 linux4.univ.nt linux4 +192.168.40.1 linux4.unix.nt linux4 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback |
#apt-get install sendmail sendmail-bin
Reading package lists... Done Building dependency tree Reading state information... Done sendmail-bin is already the newest version. Suggested packages: sendmail-doc rmail The following NEW packages will be installed: sendmail 0 upgraded, 1 newly installed, 0 to remove and 14 not upgraded. Need to get 0 B/209 kB of archives. After this operation, 258 kB of additional disk space will be used. Do you want to continue [Y/n]? y WARNING: The following packages cannot be authenticated! sendmail Install these packages without verification [y/N]? y Selecting previously deselected package sendmail. (Reading database ... 111256 files and directories currently installed.) Unpacking sendmail (from .../sendmail_8.14.3-9.4_all.deb) ... Setting up sendmail (8.14.3-9.4) ... |
#127.0.0.1 localhost
![]() Display all 205 possibilities? (y or n) |
#nano /etc/n
![]() |
#nano /etc/network/
![]() |
#nano /etc/network/interfaces
![]() |
#divert(-1)dnl
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning). Reconfiguring network interfaces...done. |
#This file describes the network interfaces available on your system
(Reading database ... 111262 files and directories currently installed.) Removing sendmail ... |
#dpkg -P sendmail-bin
![]() dpkg: dependency problems prevent removal of sendmail-bin: sensible-mda depends on sendmail-bin | mail-transport-agent; however: Package sendmail-bin is to be removed. Package mail-transport-agent is not installed. Package sendmail-bin which provides mail-transport-agent is to be removed. sensible-mda depends on sendmail-bin | mail-transport-agent; however: Package sendmail-bin is to be removed. Package mail-transport-agent is not installed. Package sendmail-bin which provides mail-transport-agent is to be removed. dpkg: error processing sendmail-bin (--purge): dependency problems - not removing Errors were encountered while processing: sendmail-bin |
#apt-get install sendmail sendmail-bin
Reading package lists... Done Building dependency tree Reading state information... Done sendmail-bin is already the newest version. Suggested packages: sendmail-doc rmail The following NEW packages will be installed: sendmail 0 upgraded, 1 newly installed, 0 to remove and 14 not upgraded. Need to get 0 B/209 kB of archives. After this operation, 258 kB of additional disk space will be used. Do you want to continue [Y/n]? y WARNING: The following packages cannot be authenticated! sendmail Install these packages without verification [y/N]? y Selecting previously deselected package sendmail. (Reading database ... 111256 files and directories currently installed.) Unpacking sendmail (from .../sendmail_8.14.3-9.4_all.deb) ... Setting up sendmail (8.14.3-9.4) ... |
#nano /etc/mail/sendmail.mc
|
#/etc/init.d/networking start
Configuring network interfaces...done. |
#This file describes the network interfaces available on your system
ifdown: interface the0 not configured |
#ifdown eth0
ifdown: interface eth0 not configured |
#ifup eth0
|
#dpkg -P sendmail-bin
dpkg: dependency problems prevent removal of sendmail-bin: sensible-mda depends on sendmail-bin | mail-transport-agent; however: Package sendmail-bin is to be removed. Package mail-transport-agent is not installed. Package sendmail-bin which provides mail-transport-agent is to be removed. sensible-mda depends on sendmail-bin | mail-transport-agent; however: Package sendmail-bin is to be removed. Package mail-transport-agent is not installed. Package sendmail-bin which provides mail-transport-agent is to be removed. dpkg: error processing sendmail-bin (--purge): dependency problems - not removing Errors were encountered while processing: sendmail-bin |
#cat /etc/hosts
127.0.0.1 localhost 192.168.40.1 linux4.unix.nt linux4 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters |
#/etc/init.d/sendmail restart
Restarting Mail Transport Agent (MTA): sendmail. |
#netstat -lnp | grep :25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 9437/sendmail: MTA: |
#cat /etc/aliases
# # Mail aliases for sendmail # # You must run newaliases(1) after making changes to this file. # # Required aliases postmaster: root MAILER-DAEMON: postmaster # Common aliases abuse: postmaster spam: postmaster # Other aliases |
#apt-get install sendmail
Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: sendmail-doc rmail The following NEW packages will be installed: sendmail 0 upgraded, 1 newly installed, 0 to remove and 14 not upgraded. Need to get 0 B/209 kB of archives. After this operation, 258 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! sendmail Install these packages without verification [y/N]? y Selecting previously deselected package sendmail. (Reading database ... 111256 files and directories currently installed.) Unpacking sendmail (from .../sendmail_8.14.3-9.4_all.deb) ... Setting up sendmail (8.14.3-9.4) ... |
#nano /etc/aliases
--- /tmp/l3-saved-9152.20335.793 2011-10-18 14:44:48.000000000 +0300 +++ /etc/aliases 2011-10-18 14:45:03.000000000 +0300 @@ -13,3 +13,4 @@ spam: postmaster # Other aliases +root:user |
#nano /etc/mail/access
--- /tmp/l3-saved-9152.3074.1607 2011-10-18 14:53:54.000000000 +0300 +++ /etc/mail/access 2011-10-18 14:54:21.000000000 +0300 @@ -97,7 +97,7 @@ #Connect:172.29 RELAY #Connect:172.30 RELAY #Connect:172.31 RELAY -#Connect:192.168 RELAY +Connect:192.168.40.0 RELAY #GreetPause:192.168 0 #ClientRate:192.168 0 #ClientConn:192.168 0 |
#ClientRate:IPv6:::1 0
Restarting Mail Transport Agent (MTA): sendmail. |
#[local]t]
|
#[default]
|
#nano /etc/asterisk/voicemail.conf
--- /tmp/l3-saved-9152.23352.30335 2011-10-18 15:19:44.000000000 +0300 +++ /etc/asterisk/voicemail.conf 2011-10-18 15:23:34.000000000 +0300 @@ -328,6 +328,7 @@ [default] +1402 => 1402,user,user@linux4.unix.nt 1234 => 4242,Example Mailbox,root@localhost ;4200 => 9855,Mark Spencer,markster@linux-support.net,mypager@digium.com,attach=no|serveremail=myaddy@digium.com|tz=central|maxmsg=10 ;4300 => 3456,Ben Rigas,ben@american-computer.net @@ -364,4 +365,3 @@ ;[imapvm] ;4324 => 7764,Ellis Redding,red@buxton.us,,imapuser=eredding|imappassword=g3tbusy ;4325 => 2392,Andrew Dufresne,andy@dufresne.info,,imapuser=adufresne|imappassword=rockh@mmer -1402 => 1402,user,user@linux4.unix.nt,,imapuser=user|imappassword=password |
#nano /etc/asterisk/extensions.conf
|
#[default]
|
#ls
bin dev home lib media opt root selinux sys usr vmlinuz boot etc initrd.img lost+found mnt proc sbin srv tmp var |
#cd home/root
![]() bash: cd: home/root: No such file or directory |
#cd home
|
#ls
lost+found user |
#cd user
|
#wget http://www.ivrvoice.ru/downloader/download/file/11
--2011-10-18 16:01:03-- http://www.ivrvoice.ru/downloader/download/file/11 Resolving www.ivrvoice.ru... 195.242.215.39 Connecting to www.ivrvoice.ru|195.242.215.39|:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://www.ivrvoice.ru/downloader/download/file/11/asterisk-sounds-ru-gsm-2010-04-28.tar.gz [following] --2011-10-18 16:01:03-- http://www.ivrvoice.ru/downloader/download/file/11/asterisk-sounds-ru-gsm-2010-04-28.tar.gz Reusing existing connection to www.ivrvoice.ru:80. HTTP request sent, awaiting response... 200 Ok Length: 2452777 (2.3M) [application/octet-stream] Saving to: “11” 100%[===================================================================================>] 2,452,777 2.99M/s in 0.8s 2011-10-18 16:01:05 (2.99 MB/s) - “11” saved [2452777/2452777] |
#tar xf 11
|
#mv ru
![]() ru/ ru.txt |
#mv ru /usr/share/asterisk/sounds/
|
#apt-cache search asterisk-voice
|
#apt-cache search asterisk voice
asterisk-prompt-de - German voice prompts for the Asterisk PBX asterisk-prompt-es-co - Colombian Spanish voice prompts for Asterisk asterisk-prompt-fr-armelle - French voice prompts for Asterisk by Armelle Desjardins asterisk-prompt-fr-proformatique - French voice prompts for Asterisk asterisk-prompt-it - Italian voice prompts for the Asterisk PBX asterisk-prompt-se - Swedish voice prompts for Asterisk asterisk-sounds-extra - Additional sound files for the Asterisk PBX asterisk - Open Source Private Branch Exchange (PBX) asterisk-prompt-es - Spanish prompts for the Asterisk PBX |
#[default]
1 useradd alexp 2 passwd alexp 3 cd /tmp 4 wget http://xgu.ru/lilalo/install 5 vim install 6 nano install 7 nano install 8 nano install 9 bash install 10 nano /root/.bashrc ... 299 cd user 300 wget http://www.ivrvoice.ru/downloader/download/file/11 301 tar xf 11 302 mv ru /usr/share/asterisk/sounds/ 303 apt-cache search asterisk-voice 304 apt-cache search asterisk voice 305 nano /etc/asterisk/sip.conf 306 asterisk -rx 'sip reload peers' 307 nano /etc/asterisk/extensions.conf 308 history |
#^C
![]() |
#nano /etc/asterisk/sip.conf
--- /tmp/l3-saved-9152.1523.14229 2011-10-18 16:18:09.000000000 +0300 +++ /etc/asterisk/sip.conf 2011-10-18 16:18:26.000000000 +0300 @@ -14,6 +14,7 @@ host=dynamic context=gr3 language=ru +mailbox=1401@default [1402] type=friend |
#cd /
|
#[default]
|
#[default]
|
#european=Europe/Copenhagen|'vm-received' a d b 'digits/at' HM
|
# # Mail aliases for sendmail # # You must run newaliases(1) after making changes to this file. # # Required aliases postmaster: root MAILER-DAEMON: postmaster # Common aliases abuse: postmaster spam: postmaster # Other aliases
[general] context=default allowoverlap=no udpbindaddr=0.0.0.0 tcpenable=no tcpbindaddr=0.0.0.0 srvlookup=yes
linux4
127.0.0.1 localhost 192.168.40.1 linux4.unix.nt linux4 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters
Время первой команды журнала | 15:31:32 2011-10-17 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:56:20 2011-10-18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 18.81 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 5.59 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.30 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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