/l3/users/RVM/ASTERISK/linux3.unix.net/root :1 |
|
#date
Mon Nov 18 14:20:45 EET 2013 |
#date
Mon Nov 18 14:31:49 EET 2013 |
#dpkg -l | wc -l
1457 |
#. /etc/bash completion
l3script: /etc/bash: No such file or directory |
#. /etc/bash_completion
|
#apt-get install asterisk
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: asterisk-config asterisk-core-sounds-en asterisk-core-sounds-en-gsm asterisk-modules asterisk-moh-opsound-gsm asterisk-voicemail autopoint debhelper freetds-common gettext git git-man html2text intltool-debian libcurl3 liberror-perl libgettextpo0 libiksemel3 libmail-sendmail-perl libodbc1 libpq5 libradiusclient-ng2 libresample1 libsaclm3 libsaevt3 libsensors4 libsnmp-base libsnmp15 libsox-fmt-alsa libsox-fmt-base libsox2 ... Failed to fetch http://192.168.15.254:9999/debian/pool/main/libm/libmail-sendmail-perl/libmail-sendmail-perl_0.79.16-1_all.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox2_14.4.0-3_amd64.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox-fmt-alsa_14.4.0-3_amd64.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox-fmt-base_14.4.0-3_amd64.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/m/module-assistant/module-assistant_0.11.4_all.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/r/rsync/rsync_3.0.9-4_amd64.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/sox_14.4.0-3_amd64.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/v/vpb-driver/vpb-driver-source_4.2.55-1_all.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/a/asterisk-moh-opsound/asterisk-moh-opsound-gsm_2.03-1_all.deb Connection failed E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? |
#dpkg -L asterisk
/. /usr /usr/share /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/asterisk /usr/share/doc /usr/share/doc/asterisk /usr/share/doc/asterisk/NEWS.Debian.gz /usr/share/doc/asterisk/changelog.gz ... /etc/init.d/asterisk /etc/asterisk /etc/logrotate.d /etc/logrotate.d/asterisk /etc/default /etc/default/asterisk /usr/share/asterisk/sounds/custom /usr/share/asterisk/sounds/recordings /usr/share/man/man8/rasterisk.8.gz /usr/sbin/rasterisk |
#dpkg -L asterisk | less
|
#ls /etc/init.d/asterisk
/etc/init.d/asterisk |
#/etc/init.d/asterisk start
Asterisk PBX is already running. Use restart. |
#asterisk -r
Asterisk 1.8.13.1~dfsg-3+deb7u1, Copyright (C) 1999 - 2012 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg-3+deb7u1 currently running on linux3 (pid = 833) linux3*CLI> mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.SAVE No such command 'mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.SAVE' (type 'core show help mv /etc/asterisk/sip.conf' for other possible commands) linux3*CLI> mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.SAVE No such command 'mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.SAVE' (type 'core show help mv /etc/asterisk/sip.conf' for other possible commands) linux3*CLI> mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.SAVE No such command 'mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.SAVE' (type 'core show help mv /etc/asterisk/sip.conf' for other possible commands) linux3*CLI> mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.SAVE No such command 'mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.SAVE' (type 'core show help mv /etc/asterisk/sip.conf' for other possible commands) linux3*CLI> quit |
#vim mv /etc/asterisk/sip.conf
--- /dev/null 2013-11-18 12:44:02.018836189 +0200 +++ mv 2013-11-18 16:56:31.341719975 +0200 @@ -0,0 +1,11 @@ +[1301] | + | +type=friend | +secret=1234 | +host=dynamic | + +[1302] + +type=friend +secret=1234 +host=dynamic |
#cat /etc/asterisk/sip.conf
cat: /etc/asterisk/sip.conf: No such file or directory |
#vim /etc/asterisk/sip.conf
--- /dev/null 2013-11-18 12:44:02.018836189 +0200 +++ /etc/asterisk/sip.conf 2013-11-18 17:01:54.825725441 +0200 @@ -0,0 +1,9 @@ +[general] + +context=default + +[1301] +type=friend +secret=1234 +host=dynamic + |
#cat /etc/asterisk/sip.conf
[general] context=default [1301] type=friend secret=1234 host=dynamic |
#asterisk -r
Asterisk 1.8.13.1~dfsg-3+deb7u1, Copyright (C) 1999 - 2012 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg-3+deb7u1 currently running on linux3 (pid = 833) linux3*CLI> sip reload linux3*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 1301 (Unspecified) D N 0 Unmonitored 1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 1 offline] linux3*CLI> quit |
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3+deb7u1, Copyright (C) 1999 - 2012 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.8.13.1~dfsg-3+deb7u1 currently running on linux3 (pid = 833) Verbosity was 0 and is now 3 -- Registered SIP '1301' at 192.168.15.212:5060 linux3*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 1301/1301 192.168.15.212 D N 5060 Unmonitored 1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 0 offline] linux3*CLI> quit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3+deb7u1, Copyright (C) 1999 - 2012 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.8.13.1~dfsg-3+deb7u1 currently running on linux3 (pid = 833) Verbosity is at least 3 linux3*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /dev/null 2013-11-18 12:44:02.018836189 +0200 +++ /etc/asterisk/extensions.conf 2013-11-18 17:31:21.813755299 +0200 @@ -0,0 +1,4 @@ +[default] | + | +exten => 4000,1,Answer | +exten => 4000,2,Playback(demo-thanks) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-26358.16795.15574 2013-11-18 17:37:08.241761153 +0200 +++ /etc/asterisk/extensions.conf 2013-11-18 17:39:05.821763140 +0200 @@ -1,4 +1,4 @@ [default] | | exten => 4000,1,Answer | -exten => 4000,2,Playback(demo-thanks) +exten => 4000,n,Playback(demo-thanks) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-26358.7258.6282 2013-11-18 17:41:17.433765364 +0200 +++ /etc/asterisk/extensions.conf 2013-11-18 17:42:44.977766849 +0200 @@ -1,4 +1,4 @@ -[default] | - | -exten => 4000,1,Answer | -exten => 4000,n,Playback(demo-thanks) +[default] + +exten => 4000,1,Answer +exten => 4000,n,Playback(demo-thanks) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-26358.3972.18439 2013-11-18 17:57:10.157781463 +0200 +++ /etc/asterisk/extensions.conf 2013-11-18 18:03:53.405788277 +0200 @@ -2,3 +2,8 @@ exten => 4000,1,Answer exten => 4000,n,Playback(demo-thanks) +exten => 1301,1,Dial(SIP/1301) +exten => 1302,1,Dial(SIP/1302) + +exten => _13XX,1,Dial(SIP/${EXTEN}) +exten => _44XX,1,Dial(SIP/13${EXTEN:2}) |
#init 0
|
#dpkg-reconfigure tzdata
│ Belfast ▒ │ │ Belgrade ▒ │ │ Berlin ▒ │ │ Bratislava ▒ │ │ Brussels ▒ │ │ Bucharest ▒ │ │ Budapest ▮ │ │ Büsingen ▒ │ │ Chisinau ▒ │ │ Copenhagen ▒ │ ... │ Luxembourg ▒ │ │ Madrid ↓ │ │ │ │ │ │ <Ok> <Cancel> │ │ │ └────────────────────────────────────────────────────────────────────┘ Current default time zone: 'Europe/Kiev' Local time is now: Tue Nov 19 09:12:48 EET 2013. Universal Time is now: Tue Nov 19 07:12:48 UTC 2013. |
#l3-agent
l3-agent is already running: pid=3682; pidfile=/root/.lilalo/l3-agent.pid |
#mc
|
#l3-agent
l3-agent is already running: pid=3682; pidfile=/root/.lilalo/l3-agent.pid |
#mc
|
#l3-agent
l3-agent is already running: pid=3682; pidfile=/root/.lilalo/l3-agent.pid |
#mc
|
#chown -R asterisk:asterisk /var/tmp/asterisk/
|
#apt-get install asterisk-core-sounds-ru
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: asterisk-core-sounds-ru-gsm The following NEW packages will be installed: asterisk-core-sounds-ru asterisk-core-sounds-ru-gsm 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 2,078 kB of archives. After this operation, 2,263 kB of additional disk space will be used. ... Fetched 2,078 kB in 0s (39.5 MB/s) Selecting previously unselected package asterisk-core-sounds-ru-gsm. (Reading database ... 132209 files and directories currently installed.) Unpacking asterisk-core-sounds-ru-gsm (from .../asterisk-core-sounds-ru-gsm_1.4.22-1_all.deb) ... Selecting previously unselected package asterisk-core-sounds-ru. Unpacking asterisk-core-sounds-ru (from .../asterisk-core-sounds-ru_1.4.22-1_all.deb) ... Setting up asterisk-core-sounds-ru-gsm (1.4.22-1) ... Setting up asterisk-core-sounds-ru (1.4.22-1) ... update-alternatives: using /usr/share/asterisk/sounds/ru_RU_f_IvrvoiceRU to provide /usr/share/asterisk/sounds/ru (asterisk-prompt-ru) in auto mode update-alternatives: using /usr/share/asterisk/sounds/ru_RU_f_IvrvoiceRU to provide /usr/share/asterisk/sounds/ru_RU (asterisk-prompt-ru-ru) in auto mode |
#apt-cache search dahdi
asterisk-dahdi - DAHDI devices support for the Asterisk PBX dahdi-linux - DAHDI telephony interface - Linux userspace parts dahdi-source - DAHDI telephony interface - source code for kernel driver dahdi - utilities for using the DAHDI kernel modules libtonezone-dev - tonezone library (development) libtonezone2.0 - tonezone library (runtime) libopenr2-3 - MFC/R2 (telephony) call setup library libopenr2-bin - MFC/R2 (telephony) call setup library - test programs libopenr2-dev - MFC/R2 (telephony) call setup library - development headers yate-dahdi - Dahdi support for YATE |
#module-assistant auto-install dahdi
┌────────────────────┤ Updating cached package data ├─────────────────────┐ │ Reading apt-cache output... │ │ │ │ │ │ 100% │ │ │ └─────────────────────────────────────────────────────────────────────────┘ Updated infos about 1 packages unpack The source tarball could not be found! Package dahdi not installed? Running "m-a -f get dahdi" may help. "/usr/share/modass/packages/default.sh" build KVERS=3.2.0-4-amd64 KSRC=/lib/modules/3.2.0-4-amd64/build KDREV=3.2.51-1 kdist_image find: `/usr/src/modules/dahdi*': No such file or directory |
#kill -1 asterisk
l3script: kill: asterisk: arguments must be process or job IDs |
#pkill -1 asterisk
|
#modprobe dahdi
|
#pkill -1 asterisk
|
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3+deb7u1, Copyright (C) 1999 - 2012 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.8.13.1~dfsg-3+deb7u1 currently running on linux3 (pid = 2647) Verbosity is at least 3 == Using SIP RTP CoS mark 5 [Nov 19 16:52:35] WARNING[10742]: pbx.c:4218 pbx_extension_helper: No application 'MeetMe' for extension (gr1, 8500, 1) == Spawn extension (gr1, 8500, 1) exited non-zero on 'SIP/1301-00000053' linux3*CLI> exit Executing last minute cleanups |
#modprobe dahdi
|
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3+deb7u1, Copyright (C) 1999 - 2012 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.8.13.1~dfsg-3+deb7u1 currently running on linux3 (pid = 10868) ... linux3*CLI> database put order 101 7 Updated database successfully linux3*CLI> database No such command 'database' (type 'core show help database' for other possible commands) linux3*CLI> database show order /order/100 : 6 /order/101 : 7 2 results found. linux3*CLI> quit Executing last minute cleanups |
#for i in `seq 100 200`; do asterisk -rx "database put ord
> er $i $((RANDOM%3+6))";done Updated database successfully Updated database successfully Updated database successfully Updated database successfully Updated database successfully Updated database successfully Updated database successfully Updated database successfully Updated database successfully ... Updated database successfully Updated database successfully Updated database successfully Updated database successfully Updated database successfully Updated database successfully Updated database successfully Updated database successfully Updated database successfully Updated database successfully |
#for i in `seq 100 200`; do asterisk -rx "database put ord
asterisk -rvvv er $i $((RANDOM%3+6))";done Asterisk 1.8.13.1~dfsg-3+deb7u1, Copyright (C) 1999 - 2012 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 ... linux3*CLI> database show order /order/100 : 6 /order/101 : 7 2 results found. linux3*CLI> database show order /order/100 : 6 /order/101 : 7 2 results found. linux3*CLI> exit Executing last minute cleanups |
#for i in `seq 100 200`; do asterisk -rx "database put ord
er $i $((RANDOM%3+6))";done Updated database successfully Updated database successfully Updated database successfully Updated database successfully Updated database successfully Updated database successfully Updated database successfully Updated database successfully Updated database successfully ... Updated database successfully Updated database successfully Updated database successfully Updated database successfully Updated database successfully Updated database successfully Updated database successfully Updated database successfully Updated database successfully Updated database successfully |
#for i in `seq 100 200`; do asterisk -rx "database put ord
asterisk -rvvv er $i $((RANDOM%3+6))";done Asterisk 1.8.13.1~dfsg-3+deb7u1, Copyright (C) 1999 - 2012 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.8.13.1~dfsg-3+deb7u1 currently running on linux3 (pid = 10868) Verbosity is at least 3 linux3*CLI> database show order /order/100 : 6 /order/101 : 7 2 results found. linux3*CLI> exit Executing last minute cleanups |
#for i in `seq 100 200`; do asterisk -rx "database put ord|
> for i in `seq 100 200`; do asterisk -rx "database put ord er $i $((RANDOM%3+6))";done er $i $((RANDOM%3+6))";done > for i in `seq 100 200`; do asterisk -rx "database put ord| foexitin `seq 100 200`; do asterisk -rx "database put order $i $((RANDOM%3+6))";done > > > ^C |
#ps
PID TTY TIME CMD 5268 pts/5 00:00:00 l3script 17772 pts/5 00:00:00 ps |
#for i in `seq 100 200`; do asterisk -rx "database put ord|
for i in `seq 100 200`; do asterisk -rx "database put order $i $((RANDOM%3+6))";done exit asterisk -rvvv Asterisk 1.8.13.1~dfsg-3+deb7u1, Copyright (C) 1999 - 2012 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 ... 0 database edataes removed. data database deltree "ord linux3*CLI> data data database linux3*CLI> database del deltree get put show showkey linux3*CLI> database del deltree get put show showkey linux3*CLI> quit Executing last minute cleanups |
#mv /var/lib/asterisk/astdb{,.bak}
|
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3+deb7u1, Copyright (C) 1999 - 2012 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.8.13.1~dfsg-3+deb7u1 currently running on linux3 (pid = 17822) ... 4 sip peers [Monitored: 4 online, 0 offline Unmonitored: 0 online, 0 offline] linux3*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 1301/1301 192.168.15.212 D N 5060 OK (19 ms) 1302/1302 192.168.15.204 D N 32920 OK (8 ms) kharkov/donetsk 192.168.15.2 D N 5060 OK (1 ms) kiev/donetsk 192.168.15.1 D N 5060 OK (1 ms) 4 sip peers [Monitored: 4 online, 0 offline Unmonitored: 0 online, 0 offline] linux3*CLI> quit Executing last minute cleanups |
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk. |
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk. |
#mc
|
#apt-cache search freerdp
freerdp-dbg - RDP client for Windows Terminal Services (debug) freerdp-x11 - RDP client for Windows Terminal Services libfreerdp-dev - RDP client for Windows Terminal Services (development) libfreerdp-plugins-standard - RDP client for Windows Terminal Services (plugins) libfreerdp1 - RDP client for Windows Terminal Services (library) |
#apt-cache install freerdp
E: Invalid operation install |
#apt-get install freerdp
Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'freerdp-x11' instead of 'freerdp' The following extra packages will be installed: libfreerdp-plugins-standard libfreerdp1 Suggested packages: xfreerdp The following NEW packages will be installed: freerdp-x11 libfreerdp-plugins-standard libfreerdp1 ... (Reading database ... 144761 files and directories currently installed.) Unpacking libfreerdp1:amd64 (from .../libfreerdp1_1.0.1-1.1+deb7u2_amd64.deb) ... Selecting previously unselected package libfreerdp-plugins-standard:amd64. Unpacking libfreerdp-plugins-standard:amd64 (from .../libfreerdp-plugins-standard_1.0.1-1.1+deb7u2_amd64.deb) ... Selecting previously unselected package freerdp-x11. Unpacking freerdp-x11 (from .../freerdp-x11_1.0.1-1.1+deb7u2_amd64.deb) ... Processing triggers for man-db ... Setting up libfreerdp1:amd64 (1.0.1-1.1+deb7u2) ... Setting up libfreerdp-plugins-standard:amd64 (1.0.1-1.1+deb7u2) ... Setting up freerdp-x11 (1.0.1-1.1+deb7u2) ... |
#freerdp
l3script: freerdp: command not found |
#dpkg -l freerdp
Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-====================-===============-===============-============================================== un freerdp <none> (no description available) |
#dpkg -L freerdp
dpkg-query: package 'freerdp' is not installed Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents. |
#dpkg -L freerdp-x11
/. /usr /usr/bin /usr/bin/xfreerdp /usr/share /usr/share/doc /usr/share/doc/freerdp-x11 /usr/share/doc/freerdp-x11/changelog.Debian.gz /usr/share/doc/freerdp-x11/copyright /usr/share/doc/freerdp-x11/changelog.gz /usr/share/man /usr/share/man/man1 /usr/share/man/man1/xfreerdp.1.gz |
#dpkg -L freerdp-dpg
dpkg-query: package 'freerdp-dpg' is not installed Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents. |
#dpkg -L freerdp
dpkg-query: package 'freerdp' is not installed Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents. |
#xfreerdp
missing server name failed to parse arguments. |
#xfreerdp -h
FreeRDP - A Free Remote Desktop Protocol Client See http://www.freerdp.com for more information Usage: xfreerdp [options] server:port -0: connect to console session -a: set color depth in bit, default is 16 -c: initial working directory -D: hide window decorations -T: window title -d: domain -f: fullscreen mode ... --disable-menu-animations: disables menu animations --disable-theming: disables theming --no-rdp: disable Standard RDP encryption --no-tls: disable TLS encryption --no-nla: disable network level authentication --ntlm: force NTLM authentication protocol version (1 or 2) --ignore-certificate: ignore verification of logon certificate --sec: force protocol security (rdp, tls or nla) --secure-checksum: use salted checksums with Standard RDP encryption --version: print version information |
#xfreerdp 192.168.15.203
connected to 192.168.15.203:3389 creating directory /root/.freerdp/certs Password: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: CERTIFICATE NAME MISMATCH! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ The hostname used for this connection (192.168.15.203) does not match the name given in the certificate: ALP-Book A valid certificate for the wrong name should NOT be trusted! Certificate details: Subject: CN = ALP-Book Issuer: CN = ALP-Book Thumbprint: cd:0d:3d:90:63:ef:88:5d:44:8b:84:d2:8a:b3:2d:a9:58:6a:8a The above X.509 certificate could not be verified, possibly because you do not have the CA certificate in your certificate store, or the certificate has expired. Please look at the documentation on how to create local certificate store for a private CA. Do you trust the above certificate? (Y/N) y SSL_read: Failure in SSL library (protocol error?) Authentication failure, check credentials. If credentials are valid, the NTLMSSP implementation may be to blame. |
#xfreerdp -h
FreeRDP - A Free Remote Desktop Protocol Client See http://www.freerdp.com for more information Usage: xfreerdp [options] server:port -0: connect to console session -a: set color depth in bit, default is 16 -c: initial working directory -D: hide window decorations -T: window title -d: domain -f: fullscreen mode ... --disable-menu-animations: disables menu animations --disable-theming: disables theming --no-rdp: disable Standard RDP encryption --no-tls: disable TLS encryption --no-nla: disable network level authentication --ntlm: force NTLM authentication protocol version (1 or 2) --ignore-certificate: ignore verification of logon certificate --sec: force protocol security (rdp, tls or nla) --secure-checksum: use salted checksums with Standard RDP encryption --version: print version information |
#xfreerdp -u master 192.168.5.203
^C |
#ps
PID TTY TIME CMD 5268 pts/5 00:00:00 l3script 27149 pts/5 00:00:00 ps |
#xfreerdp -u master -0 192.168.5.203
unable to connect to 192.168.5.203:3389 Error: protocol security negotiation failure |
#apt-get
apt 0.9.7.9 for amd64 compiled on Jun 4 2013 09:30:58 Usage: apt-get [options] command apt-get [options] install|remove pkg1 [pkg2 ...] apt-get [options] source pkg1 [pkg2 ...] apt-get is a simple command line interface for downloading and installing packages. The most frequently used commands are update and install. Commands: update - Retrieve new lists of packages upgrade - Perform an upgrade ... -f Attempt to correct a system with broken dependencies in place -m Attempt to continue if archives are unlocatable -u Show a list of upgraded packages as well -b Build the source package after fetching it -V Show verbose version numbers -c=? Read this configuration file -o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp See the apt-get(8), sources.list(5) and apt.conf(5) manual pages for more information and options. This APT has Super Cow Powers. |
#apt-get remove freerdp
Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'freerdp-x11' instead of 'freerdp' 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. |
#dpkg -L freerdp
dpkg-query: package 'freerdp' is not installed Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents. |
#dpkg
dpkg: error: need an action option Type dpkg --help for help about installing and deinstalling packages [*]; Use `dselect' or `aptitude' for user-friendly package management; Type dpkg -Dhelp for a list of dpkg debug flag values; Type dpkg --force-help for a list of forcing options; Type dpkg-deb --help for help about manipulating *.deb files; Options marked [*] produce a lot of output - pipe it through `less' or `more' ! |
#dpkg --help
Usage: dpkg [<option> ...] <command> Commands: -i|--install <.deb file name> ... | -R|--recursive <directory> ... --unpack <.deb file name> ... | -R|--recursive <directory> ... -A|--record-avail <.deb file name> ... | -R|--recursive <directory> ... --configure <package> ... | -a|--pending --triggers-only <package> ... | -a|--pending -r|--remove <package> ... | -a|--pending -P|--purge <package> ... | -a|--pending --get-selections [<pattern> ...] Get list of selections to stdout. ... Ignore dependencies involving <package>. --force-... Override problems (see --force-help). --no-force-...|--refuse-... Stop when problems encountered. --abort-after <n> Abort after encountering <n> errors. Comparison operators for --compare-versions are: lt le eq ne ge gt (treat empty version as earlier than any version); lt-nl le-nl ge-nl gt-nl (treat empty version as later than any version); < << <= = >= >> > (only for compatibility with control file syntax). Use `dselect' or `aptitude' for user-friendly package management. |
#fffff
l3script: fffff: command not found |
#dpkg --help
Usage: dpkg [<option> ...] <command> Commands: -i|--install <.deb file name> ... | -R|--recursive <directory> ... --unpack <.deb file name> ... | -R|--recursive <directory> ... -A|--record-avail <.deb file name> ... | -R|--recursive <directory> ... --configure <package> ... | -a|--pending --triggers-only <package> ... | -a|--pending -r|--remove <package> ... | -a|--pending -P|--purge <package> ... | -a|--pending --get-selections [<pattern> ...] Get list of selections to stdout. ... Ignore dependencies involving <package>. --force-... Override problems (see --force-help). --no-force-...|--refuse-... Stop when problems encountered. --abort-after <n> Abort after encountering <n> errors. Comparison operators for --compare-versions are: lt le eq ne ge gt (treat empty version as earlier than any version); lt-nl le-nl ge-nl gt-nl (treat empty version as later than any version); < << <= = >= >> > (only for compatibility with control file syntax). Use `dselect' or `aptitude' for user-friendly package management. |
#mc
|
#cd /usr/src/
|
#ls
asterisk-11.6.0.tar.gz linux-headers-3.2.0-4-common dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.51-1_amd64.deb linux-kbuild-3.2 dahdi.tar.bz2 linux-OLDVERSION.1384870555 linux modules linux-headers-3.2.0-4-amd64 vpb-driver.tar.bz2 |
#ls
asterisk-11.6.0.tar.gz linux-headers-3.2.0-4-common dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.51-1_amd64.deb linux-kbuild-3.2 dahdi.tar.bz2 linux-OLDVERSION.1384870555 linux modules linux-headers-3.2.0-4-amd64 vpb-driver.tar.bz2 |
#ls -l
total 40336 -rw-r--r-- 1 root root 34767605 Nov 22 13:23 asterisk-11.6.0.tar.gz -rw-r--r-- 1 root root 5603658 Nov 19 16:19 dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.51-1_amd64.deb -rw-r--r-- 1 root root 843676 Jan 30 2013 dahdi.tar.bz2 lrwxrwxrwx 1 root root 36 Nov 19 16:15 linux -> /usr/src/linux-headers-3.2.0-4-amd64 drwxr-xr-x 4 root root 4096 Nov 19 16:09 linux-headers-3.2.0-4-amd64 drwxr-xr-x 4 root root 4096 Nov 19 16:09 linux-headers-3.2.0-4-common lrwxrwxrwx 1 root root 23 Jun 24 2012 linux-kbuild-3.2 -> ../lib/linux-kbuild-3.2 lrwxrwxrwx 1 root root 27 Nov 19 16:09 linux-OLDVERSION.1384870555 -> linux-headers-3.2.0-4-amd64 drwxr-xr-x 3 root root 4096 Jan 30 2013 modules -rw-r--r-- 1 root root 69129 May 9 2012 vpb-driver.tar.bz2 |
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk. |
#tar xfz asterisk-11.6.0.tar.gz
|
#ls -l
total 40340 drwxr-xr-x 29 root root 4096 Oct 21 17:51 asterisk-11.6.0 -rw-r--r-- 1 root root 34767605 Nov 22 13:23 asterisk-11.6.0.tar.gz -rw-r--r-- 1 root root 5603658 Nov 19 16:19 dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.51-1_amd64.deb -rw-r--r-- 1 root root 843676 Jan 30 2013 dahdi.tar.bz2 lrwxrwxrwx 1 root root 36 Nov 19 16:15 linux -> /usr/src/linux-headers-3.2.0-4-amd64 drwxr-xr-x 4 root root 4096 Nov 19 16:09 linux-headers-3.2.0-4-amd64 drwxr-xr-x 4 root root 4096 Nov 19 16:09 linux-headers-3.2.0-4-common lrwxrwxrwx 1 root root 23 Jun 24 2012 linux-kbuild-3.2 -> ../lib/linux-kbuild-3.2 lrwxrwxrwx 1 root root 27 Nov 19 16:09 linux-OLDVERSION.1384870555 -> linux-headers-3.2.0-4-amd64 drwxr-xr-x 3 root root 4096 Jan 30 2013 modules -rw-r--r-- 1 root root 69129 May 9 2012 vpb-driver.tar.bz2 |
#cd asterisk-11.6.0
|
#ls -l
total 2980 drwxr-xr-x 3 root root 4096 Oct 21 17:51 addons drwxr-xr-x 2 root root 4096 Oct 21 17:51 agi drwxr-xr-x 3 root root 4096 Oct 21 17:51 apps -rw-r--r-- 1 root root 38935 Oct 21 17:51 asterisk-11.6.0-summary.html -rw-r--r-- 1 root root 34332 Oct 21 17:51 asterisk-11.6.0-summary.txt drwxr-xr-x 2 root root 4096 Oct 21 17:51 autoconf -rwxr-xr-x 1 root root 1041 Jan 13 2012 bootstrap.sh drwxr-xr-x 2 root root 4096 Oct 21 17:51 bridges -rw-r--r-- 1 root root 294 Apr 15 2013 BSDmakefile ... drwxr-xr-x 2 root root 4096 Oct 21 17:51 static-http drwxr-xr-x 2 root root 4096 Oct 21 17:51 tests -rw-r--r-- 1 root root 3871 Jul 16 2012 UPGRADE-10.txt -rw-r--r-- 1 root root 9318 Nov 21 2008 UPGRADE-1.2.txt -rw-r--r-- 1 root root 25890 Aug 18 2009 UPGRADE-1.4.txt -rw-r--r-- 1 root root 13965 May 7 2010 UPGRADE-1.6.txt -rw-r--r-- 1 root root 17779 Sep 6 2012 UPGRADE-1.8.txt -rw-r--r-- 1 root root 13874 Aug 24 00:57 UPGRADE.txt drwxr-xr-x 3 root root 4096 Oct 21 17:51 utils -rw-r--r-- 1 root root 1723 Aug 14 2008 Zaptel-to-DAHDI.txt |
#ls
addons channels include README-addons.txt agi codecs install-sh README-SERIOUSLY.bestpractices.txt apps config.guess keys res asterisk-11.6.0-summary.html configs LICENSE sample.call asterisk-11.6.0-summary.txt config.sub main sounds autoconf configure Makefile static-http bootstrap.sh configure.ac Makefile.moddir_rules tests bridges contrib Makefile.rules UPGRADE-10.txt BSDmakefile COPYING makeopts.in UPGRADE-1.2.txt BUGS CREDITS menuselect UPGRADE-1.4.txt build_tools default.exports missing UPGRADE-1.6.txt cdr doc mkinstalldirs UPGRADE-1.8.txt cel formats pbx UPGRADE.txt ChangeLog funcs phoneprov utils CHANGES images README Zaptel-to-DAHDI.txt |
#./configure
checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes ... checking arpa/nameser.h presence... yes checking for arpa/nameser.h... yes checking sys/io.h usability... yes checking sys/io.h presence... yes checking for sys/io.h... yes checking for tgetent in -ltermcap... no checking for tgetent in -ltinfo... no checking for initscr in -lcurses... no checking for initscr in -lncurses... no configure: error: *** termcap support not found (on modern systems, this typically means the ncurses development package is missing) |
#apt-get install libncurses5-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libtinfo-dev Suggested packages: ncurses-doc The following NEW packages will be installed: libncurses5-dev libtinfo-dev 0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded. ... Get:1 http://192.168.15.254/debian/ wheezy/main libtinfo-dev amd64 5.9-10 [105 kB] Get:2 http://192.168.15.254/debian/ wheezy/main libncurses5-dev amd64 5.9-10 [223 kB] Fetched 328 kB in 1s (181 kB/s) Selecting previously unselected package libtinfo-dev:amd64. (Reading database ... 144808 files and directories currently installed.) Unpacking libtinfo-dev:amd64 (from .../libtinfo-dev_5.9-10_amd64.deb) ... Selecting previously unselected package libncurses5-dev. Unpacking libncurses5-dev (from .../libncurses5-dev_5.9-10_amd64.deb) ... Setting up libtinfo-dev:amd64 (5.9-10) ... Setting up libncurses5-dev (5.9-10) ... |
#./configure
checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes ... checking for initscr in -lcurses... yes checking curses.h usability... yes checking curses.h presence... yes checking for curses.h... yes checking for initscr in -lncurses... yes checking for curses.h... (cached) yes checking for xml2-config... no configure: *** XML documentation will not be available because the 'libxml2' development package is missing. configure: *** Please run the 'configure' script with the '--disable-xmldoc' parameter option configure: *** or install the 'libxml2' development package. |
#./configure --disable-xmldoc
checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes ... checking for rc_read_config in -lradiusclient-ng... no checking for cpg_join in -lcpg... no checking for corosync_cfg_state_track in -lcfg... no checking for speex_encode in -lspeex... no checking for speex_preprocess_ctl in -lspeex... no checking for speex_preprocess_ctl in -lspeexdsp... no checking for sqlite_exec in -lsqlite... no checking for sqlite3_open in -lsqlite3... no configure: WARNING: *** Asterisk now uses SQLite3 for the internal Asterisk database. configure: WARNING: *** Please install the SQLite3 development package. |
#apt-get install libsqlite3-dev
Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: sqlite3-doc The following NEW packages will be installed: libsqlite3-dev 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. Need to get 578 kB of archives. After this operation, 1,382 kB of additional disk space will be used. Get:1 http://192.168.15.254/debian/ wheezy/main libsqlite3-dev amd64 3.7.13-1+deb7u1 [578 kB] Fetched 578 kB in 0s (20.8 MB/s) Selecting previously unselected package libsqlite3-dev. (Reading database ... 144856 files and directories currently installed.) Unpacking libsqlite3-dev (from .../libsqlite3-dev_3.7.13-1+deb7u1_amd64.deb) ... Setting up libsqlite3-dev (3.7.13-1+deb7u1) ... |
#./configure --disable-xmldoc
checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes ... $$$$$ $$$ $$$$7. $$ (TM) $$$$$$$. .7$$$$$$ $$ $$$$$$$$$$$$7$$$$$$$$$.$$$$$$ $$$$$$$$$$$$$$$$. configure: Package configured for: configure: OS type : linux-gnu configure: Host CPU : x86_64 configure: build-cpu:vendor:os: x86_64 : unknown : linux-gnu : configure: host-cpu:vendor:os: x86_64 : unknown : linux-gnu : |
[general] context=default [1301] type=friend secret=1234 host=dynamic
Время первой команды журнала | 13:20:23 2013-11-18 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 12:33:46 2013-11-22 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 23.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 4.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 5.41 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.31 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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