/l3/users/alexp/nt-voip/linux4.univ.nt/root :1 :2 :3 :4 :5 :6 :7 |
|
#1409:5011
Usage: database put <family> <key> <value> Adds or updates an entry in the Asterisk database for a given family, key, and value. Usage: database put <family> <key> <value> Adds or updates an entry in the Asterisk database for a given family, key, and value. Usage: database put <family> <key> <value> Adds or updates an entry in the Asterisk database for a given family, key, and value. |
#1409 5011
Updated database successfully Updated database successfully Updated database successfully |
#history
39 cd / 40 nano /etc/asterisk/extensions.conf 41 asterisk -rx 'dialplan reload' 42 asterisk -rvvv 43 nano /etc/asterisk/extensions.conf 44 asterisk -rx 'dialplan reload' 45 asterisk -rvvv 46 nano /etc/asterisk/extensions.conf 47 nano /etc/asterisk/extensions.conf 48 asterisk -rx 'dialplan reload' ... 529 cat tel.txt | while read a b ; do asterisk -rx 'datobase put mobile $a $b' ; done 530 cat tel.txt | while read a b ; do asterisk -rx 'database put mobile $a $b' ; done 531 cat tel.txt | while read a b ; do asterisk -rx "database put mobile $a $b" ; done 532 touch file tel.txt 533 cat tel.txt | while read a b ; do asterisk -rx "database put mobile $a $b" ; done 534 nano tel.txt 535 cat tel.txt | while read a b ; do asterisk -rx "database put mobile $a $b" ; done 536 nano tel.txt 537 cat tel.txt | while read a b ; do asterisk -rx "database put mobile $a $b" ; done 538 history |
#^C
![]() |
#[ "${CALLERID(num):0:2}" != "14" ]?dial)
|
#apt-cache search xmpp
abiword - efficient, featureful word processor with collaboration bluemindo - simple yet powerful audio player ejabberd - distributed, fault-tolerant Jabber/XMPP server written in Erlang empathy-common - GNOME multi-protocol chat and call client (common files) empathy-dbg - GNOME multi-protocol chat and call client (debug symbols) empathy - GNOME multi-protocol chat and call client nautilus-sendto-empathy - GNOME multi-protocol chat and call client (nautilus-sendto plugin) libgloox-dbg - C++ jabber/xmpp library debug symbols libgloox-dev - C++ jabber/xmpp library devel files libgloox-doc - C++ jabber/xmpp library API documentation ... libjs-strophe - Library for writing XMPP clients libtaningia-dev - Development files for lib taningia libtaningia0 - A generic comunication library based on XMPP telepathy-gabble-dbg - Jabber/XMPP connection manager (debug symbols) telepathy-gabble - Jabber/XMPP connection manager telepathy-salut - Link-local XMPP connection manager for the Telepathy framework tkabber-plugins - standard plugins for Tkabber, an XMPP (Jabber) client tkabber - GUI client for XMPP (Jabber) instant messaging protocol python-wokkel - collection of enhancements for Twisted ekg2-jabber - instant messenger and IRC client for UNIX systems - Jabber/XMPP |
#apt-cache search freetalk
freetalk - A console based Jabber client |
#apt-get install freetalk
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: beep dict gawk guile-1.8 libmaa2 librecode0 recode urlview Suggested packages: dictd dict-server guile-1.8-doc mutt ncftp2 lftp ncftp mimedecode The following NEW packages will be installed: beep dict freetalk gawk guile-1.8 libmaa2 librecode0 recode urlview 0 upgraded, 9 newly installed, 0 to remove and 14 not upgraded. ... Setting up beep (1.2.2-24) ... Setting up libmaa2 (1.2.0-1) ... Setting up librecode0 (3.6-17) ... Setting up recode (3.6-17) ... Setting up dict (1.11.2+dfsg-3) ... Setting up guile-1.8 (1.8.7+1-3) ... update-alternatives: using /usr/bin/guile-1.8 to provide /usr/bin/guile (guile) in auto mode. Setting up freetalk (3.2-6) ... Setting up urlview (0.9-18.1) ... Processing triggers for menu ... |
#ps aux | free
total used free shared buffers cached Mem: 8196524 663140 7533384 0 49520 370324 -/+ buffers/cache: 243296 7953228 Swap: 9764860 0 9764860 |
#ps aux | grep free
root 8633 0.0 0.0 3904 728 pts/7 S+ 16:36 0:00 grep free |
#apt-cache search ejabberd
ejabberd - distributed, fault-tolerant Jabber/XMPP server written in Erlang |
#dpkg-reconfigure ejabberd
┌────────────────────────────────────────────────┤ Configuring ejabberd ├────────────────────────────────────────────────┐ │ Please provide the name of an account to administrate the ejabberd server. After the installation of ejabberd you can │ │ use this account to log in with any Jabber client to do administrative tasks or go to http://localhost:5280/admin/ │ │ and log in with this account to enter the admin interface. Enter the username part here (e.g. admin), but use the │ │ full Jabber ID (e.g. admin@localhost) to log into ejabberd web interface; otherwise it will fail. │ │ │ │ Leave empty if you don't want to create an admin account automatically. │ │ │ │ The username of an admin account for ejabberd: │ │ │ │ ______________________________________________________________________________________________________________________ │ │ │ │ <Ok> │ │ │ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ Starting jabber server: ejabberd. |
#dpkg-reconfigure ejabberd
âââââââââââââââââââââââââââ⤠Configuring ejabberd ââââââââââââââââââââââââââââ â Please reenter the password for the administrative user for verification. â â â â The password for the admin account again for verification: â â â â********____________________________________________________________________ â â â â <Ok> â â â ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Replacing config file /etc/ejabberd/ejabberd.cfg with new version Starting jabber server: ejabberd. Waiting for ejabberd to register admin user. Admin user "root@linux5.unix.nt" is registered successfully. |
#localhost:5280/admin
![]() bash: localhost:5280/admin: No such file or directory |
#^C
![]() |
#netstat -lnp | grep :..80
tcp 0 0 0.0.0.0:5280 0.0.0.0:* LISTEN 9855/beam |
#^C
![]() |
#nano /etc/
![]() |
#nano /etc/hosts
|
#127.0.0.1 localhost
![]() |
#nano /etc/hosts
|
#ping linux2.conference.unix.nt
![]() ping: unknown host linux2.conference.unix.nt |
#~
linux4 "/etc/hostname" 1L, 7C |
#~
search univ.nt nameserver 10.0.35.1 |
#vim /etc/resolv.conf
--- /tmp/l3-saved-10626.12432.31062 2011-10-20 17:05:55.000000000 +0300 +++ /etc/resolv.conf 2011-10-20 17:05:59.000000000 +0300 @@ -1,2 +1,2 @@ -search univ.nt +search unix.nt nameserver 10.0.35.1 |
#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 |
#dpkg -P ejabberd
(Reading database ... 134673 files and directories currently installed.) Removing ejabberd ... The ejabberd database has been backed up to /var/backups/ejabberd-2011-10-20T17:06:07.DGMrQv/ejabberd-database. Stopping jabber server: ejabberd. Purging configuration files for ejabberd ... Removing user `ejabberd' ... Warning: group `ejabberd' has no more members. Processing triggers for man-db ... |
#apt-get install ejabberd
Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: libunix-syslog-perl The following NEW packages will be installed: ejabberd 0 upgraded, 1 newly installed, 0 to remove and 14 not upgraded. Need to get 0 B/1,771 kB of archives. After this operation, 4,231 kB of additional disk space will be used. Preconfiguring packages ... Selecting previously deselected package ejabberd. (Reading database ... 134380 files and directories currently installed.) Unpacking ejabberd (from .../ejabberd_2.1.5-3+squeeze1_i386.deb) ... Processing triggers for man-db ... Setting up ejabberd (2.1.5-3+squeeze1) ... Generating SSL certificate /etc/ejabberd/ejabberd.pem... Creating config file /etc/ejabberd/ejabberd.cfg with new version Starting jabber server: ejabberd. |
#nano /etc/ejabberd/ejabberd.cfg
|
#usermod
![]() Usage: usermod [options] LOGIN Options: -c, --comment COMMENT new value of the GECOS field -d, --home HOME_DIR new home directory for the user account -e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE -f, --inactive INACTIVE set password inactive after expiration to INACTIVE -g, --gid GROUP force use GROUP as new primary group -G, --groups GROUPS new list of supplementary GROUPS -a, --append append the user to the supplemental GROUPS ... -l, --login NEW_LOGIN new value of the login name -L, --lock lock the user account -m, --move-home move contents of the home directory to the new location (use only with -d) -o, --non-unique allow using duplicate (non-unique) UID -p, --password PASSWORD use encrypted password for the new password -s, --shell SHELL new login shell for the user account -u, --uid UID new UID for the user account -U, --unlock unlock the user account -Z, --selinux-user new SELinux user mapping for the user account |
#usermod -s /bin/bash asterisk
|
#su - asterisk
asterisk@linux4:~$ pwd /var/lib/asterisk asterisk@linux4:~$ exit logout |
#ssh user@192.168.15.252
Use: screen [-opts] [cmd [args]] or: screen -r [host.tty] Options: -a Force all capabilities into each window's termcap. -A -[r|R] Adapt all windows to the new display width & height. -c file Read configuration file instead of '.screenrc'. -d (-r) Detach the elsewhere running screen (and reattach here). -dmS name Start as daemon: Screen session in detached mode. -D (-r) Detach and logout remote (and reattach here). -D -RR Do whatever is needed to get a screen session. ... user@book:~$ ssh root@192.168.90.1 root@192.168.90.1's password: Linux linux9 2.6.32-5-686 #1 SMP Mon Oct 3 04:15:24 UTC 2011 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.---------------------------------------------------------------------------------------------------------------- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Oct 20 17:18:57 2011 from note.unix.nt l3-agent is already running: pid=2176; pidfile=/root/.lilalo/l3-agent.pid |
#nano /etc/asterisk/extensions.conf
|
#[default]
GNU nano 2.2.4 File: /etc/asterisk/sip.conf Modified [general] context=default allowoverlap=no udpbindaddr=0.0.0.0 tcpenable=no tcpbindaddr=0.0.0.0 srvlookup=yes canreinvite=no register => hm:1234@192.168.30.1/mn ... pickupgroup=1 [1402] type=friend secret=1402 host=dynamic context=gr4 language=ru mailbox=1402@default ^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos ^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text ^T To Spell |
#nano /etc/asterisk/sip.conf
|
#mailbox=1402@default
|
#[local]
GNU nano 2.2.4 File: /etc/asterisk/sip.conf Modified [general]r3 context=default allowoverlap=nofault udpbindaddr=0.0.0.0 tcpenable=no1 tcpbindaddr=0.0.0.0 srvlookup=yes canreinvite=no register => hm:1234@192.168.30.1/mn ... host=dynamic context=gr4 language=ru mailbox=1405@default callgroup=1 [mn] type=friend secret=1234 ^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos ^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text ^T To Spell |
#nano /etc/asterisk/sip.conf
--- /tmp/l3-saved-2708.23240.9818 2011-10-21 09:30:54.000000000 +0300 +++ /etc/asterisk/sip.conf 2011-10-21 09:31:04.000000000 +0300 @@ -7,7 +7,7 @@ srvlookup=yes canreinvite=no register => hm:1234@192.168.30.1/mn -;register => nt1:1234@91.205.16.235/world +register => nt1:1234@91.205.16.235/world videosupport=yes [1401] |
#;disallow=all
|
#[local]
|
#nano /etc/asterisk/extensions.conf
|
#lcpci
![]() bash: lcpci: command not found |
#lspci
00:00.0 Host bridge: Intel Corporation Sandy Bridge DRAM Controller (rev 09) 00:02.0 VGA compatible controller: Intel Corporation Sandy Bridge Integrated Graphics Controller (rev 09) 00:16.0 Communication controller: Intel Corporation Cougar Point HECI Controller #1 (rev 04) 00:16.3 Serial controller: Intel Corporation Cougar Point KT Controller (rev 04) 00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04) 00:1a.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #2 (rev 04) 00:1b.0 Audio device: Intel Corporation Cougar Point High Definition Audio Controller (rev 04) 00:1c.0 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 1 (rev b4) 00:1c.4 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 5 (rev b4) 00:1c.6 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 7 (rev b4) 00:1c.7 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 8 (rev b4) 00:1d.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #1 (rev 04) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a4) 00:1f.0 ISA bridge: Intel Corporation Cougar Point LPC Controller (rev 04) 00:1f.2 SATA controller: Intel Corporation Cougar Point 6 port SATA AHCI Controller (rev 04) 00:1f.3 SMBus: Intel Corporation Cougar Point SMBus Controller (rev 04) |
#lspci --help
![]() lspci: invalid option -- '-' Usage: lspci [<switches>] Basic display modes: -mm Produce machine-readable output (single -m for an obsolete format) -t Show bus tree Display options: -v Be verbose (-vv for very verbose) -k Show kernel drivers handling each device -x Show hex-dump of the standard part of the config space -xxx Show hex-dump of the whole config space (dangerous; root only) ... Other options: -i <file> Use specified ID database instead of /usr/share/misc/pci.ids.gz -p <file> Look up kernel modules in a given file instead of default modules.pcimap -M Enable `bus mapping' mode (dangerous; root only) PCI access options: -A <method> Use the specified PCI access method (see `-A help' for a list) -O <par>=<val> Set PCI access parameter (see `-O help' for a list) -G Enable PCI access debugging -H <mode> Use direct hardware access (<mode> = 1 or 2) -F <file> Read PCI configuration dump from a given file |
#less /etc/asterisk/
![]() |
#less /etc/asterisk/dahdi-channels.conf
![]() |
#nano /root/.lilalo/
![]() |
#nano /root/.lilalo/.
![]() |
#nano /root/.lilalo/./
![]() |
#nano /root/
![]() |
#nano /root/.bashrc
|
#~/.bashrc: executed by bash(1) for non-login shells.
![]() .l3rc .lesshst .lilalo/ |
#nano /root/.lilalo/l3
![]() |
#nano /root/.lilalo/l3
![]() |
#nano /root/.lilalo/l3bashrc
|
#!/bin/sh
|
#~/.bashrc: executed by bash(1) for non-login shells.
![]() bash: /root/.bashrc: Permission denied |
#l3-config backend_address
xgu.ru |
#ls -l /etc/
total 1108 drwxr-xr-x 3 root root 4096 Oct 17 10:46 acpi -rw-r--r-- 1 root root 2981 Oct 17 10:46 adduser.conf -rw-r--r-- 1 root root 44 Oct 21 08:29 adjtime -rw-r--r-- 1 root root 243 Oct 18 14:45 aliases drwxr-xr-x 2 root root 4096 Oct 20 16:35 alternatives -rw-r--r-- 1 root root 395 Nov 1 2009 anacrontab drwxr-xr-x 3 root root 4096 Oct 17 12:14 apache2 drwxr-xr-x 6 root root 4096 Oct 17 12:13 apm drwxr-xr-x 6 root root 4096 Oct 17 11:34 apt ... drwxr-xr-x 2 root root 12288 Oct 17 12:17 usb_modeswitch.d drwxr-xr-x 2 root root 4096 Oct 17 12:16 vga drwxr-xr-x 2 root root 4096 Oct 17 10:46 vim -rw-r--r-- 1 root root 4496 Sep 5 2010 wgetrc drwxr-xr-x 2 root root 4096 Oct 17 12:16 wildmidi drwxr-xr-x 2 root root 4096 Oct 19 09:47 wireshark drwxr-xr-x 2 root root 4096 Oct 17 12:17 wpa_supplicant drwxr-xr-x 9 root root 4096 Oct 17 12:17 X11 drwxr-xr-x 4 root root 4096 Oct 17 12:17 xdg drwxr-xr-x 2 root root 4096 Oct 17 12:17 xml |
#ls -l /etc/d*
-rw-r--r-- 1 root root 2969 Jan 30 2011 /etc/debconf.conf -rw-r--r-- 1 root root 6 May 28 15:04 /etc/debian_version -rw-r--r-- 1 root root 600 Nov 21 2010 /etc/deluser.conf /etc/dahdi: total 4 -rw-r--r-- 1 root root 1091 Sep 29 2009 xpp.conf /etc/dbus-1: total 16 -rw-r--r-- 1 root root 2609 Jun 15 11:46 session.conf drwxr-xr-x 2 root root 4096 Jun 15 11:46 session.d ... -rw-r--r-- 1 root root 753 Jan 5 2011 dict.conf /etc/dictionaries-common: total 0 /etc/dpkg: total 20 -rw-r--r-- 1 root root 446 Apr 26 09:47 dpkg.cfg drwxr-xr-x 2 root root 4096 Apr 27 00:03 dpkg.cfg.d drwxr-xr-x 2 root root 4096 Oct 17 10:46 origins -rw-r--r-- 1 root root 260 Apr 26 09:47 shlibs.default -rw-r--r-- 1 root root 253 Apr 26 09:47 shlibs.override |
#ls -l /etc/da*
total 4 -rw-r--r-- 1 root root 1091 Sep 29 2009 xpp.conf |
#apt
![]() apt-cache aptdcon aptitude apt-key apt-cdrom apt-extracttemplates aptitude-create-state-bundle apt-mark apt-config apt-ftparchive aptitude-curses apt-sortpkgs aptd apt-get aptitude-run-state-bundle |
#apt-get install apache
![]() Reading package lists... Done Building dependency tree Reading state information... Done Package apache is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'apache' has no installation candidate |
#apt-get install apache2
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: apache2-mpm-worker apache2-utils apache2.2-common ssl-cert Suggested packages: apache2-doc apache2-suexec apache2-suexec-custom openssl-blacklist The following NEW packages will be installed: apache2 apache2-mpm-worker apache2-utils apache2.2-common ssl-cert 0 upgraded, 5 newly installed, 0 to remove and 14 not upgraded. ... Enabling module authz_default. Enabling module authz_user. Enabling module authz_groupfile. Enabling module authn_file. Enabling module authz_host. Enabling module reqtimeout. Setting up apache2-mpm-worker (2.2.16-6+squeeze4) ... Starting web server: apache2. Setting up apache2 (2.2.16-6+squeeze4) ... Setting up ssl-cert (1.0.28) ... |
#apt-get install php5
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: apache2-mpm-prefork libapache2-mod-php5 libonig2 libqdbm14 php5-cli php5-common php5-suhosin Suggested packages: php-pear The following packages will be REMOVED: apache2-mpm-worker The following NEW packages will be installed: ... Setting up libqdbm14 (1.8.77-4) ... Setting up php5-common (5.3.3-7+squeeze3) ... Setting up libapache2-mod-php5 (5.3.3-7+squeeze3) ... Creating config file /etc/php5/apache2/php.ini with new version Reloading web server config: apache2. Setting up php5 (5.3.3-7+squeeze3) ... Setting up php5-cli (5.3.3-7+squeeze3) ... Creating config file /etc/php5/cli/php.ini with new version update-alternatives: using /usr/bin/php5 to provide /usr/bin/php (php) in auto mode. Setting up php5-suhosin (0.9.32.1-1) ... |
#/etc/init.d/apache2 restart
Restarting web server: apache2 ... waiting . |
#cp -R flash /var/www/panel
![]() cp: cannot stat `flash': No such file or directory |
#scp linux9:/root/op_panel-0.30.tar.gz .
The authenticity of host 'linux9 (192.168.90.1)' can't be established. RSA key fingerprint is f0:05:a6:a6:88:29:cd:4d:7a:23:9b:50:fa:00:de:0c. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'linux9' (RSA) to the list of known hosts. root@linux9's password: op_panel-0.30.tar.gz 100% 347KB 347.4KB/s 00:00 |
#ls
eradd alexp file op_panel-0.30.tar.gz tall tel.txt |
#pwd
/root |
#^C
![]() |
#tar -xvvzf op_panel-0.30.tar.gz
drwxr-xr-x root/root 0 2009-06-22 21:06 op_panel-0.30/ drwxr-xr-x root/root 0 2009-06-22 21:06 op_panel-0.30/ming-source/ -rwxr-xr-x root/root 339518 2009-06-22 21:06 op_panel-0.30/ming-source/operator_panel.pl -rw-r--r-- root/root 201 2009-06-22 21:06 op_panel-0.30/ming-source/README -rwxr-xr-x root/root 37488 2009-06-22 21:06 op_panel-0.30/ming-source/comunicator.pl drwxr-xr-x root/root 0 2009-06-22 21:06 op_panel-0.30/flash/ -rw-r--r-- root/root 1326 2009-06-22 21:06 op_panel-0.30/flash/index-restrict.html -rw-r--r-- root/root 221 2009-06-22 21:06 op_panel-0.30/flash/crossdomain.xml -rw-r--r-- root/root 1407 2009-06-22 21:06 op_panel-0.30/flash/help_ru.html -rw-r--r-- root/root 1066 2009-06-22 21:06 op_panel-0.30/flash/help_es.html ... -rw-r--r-- root/root 1055 2009-06-22 21:06 op_panel-0.30/op_lang_gl.cfg -rw-r--r-- root/root 7980 2009-06-22 21:06 op_panel-0.30/op_server.cfg -rw-r--r-- root/root 983 2009-06-22 21:06 op_panel-0.30/op_lang_es.cfg -rw-r--r-- root/root 2449 2009-06-22 21:06 op_panel-0.30/FAQ -rw-r--r-- root/root 706 2009-06-22 21:06 op_panel-0.30/extensions.conf.sample -rw-r--r-- root/root 1087 2009-06-22 21:06 op_panel-0.30/op_lang_fr.cfg -rw-r--r-- root/root 1030 2009-06-22 21:06 op_panel-0.30/op_lang_se.cfg -rw-r--r-- root/root 1040 2009-06-22 21:06 op_panel-0.30/op_lang_it.cfg -rw-r--r-- root/root 937 2009-06-22 21:06 op_panel-0.30/op_lang_no.cfg -rwxr-xr-x root/root 419299 2009-06-22 21:06 op_panel-0.30/op_server.pl |
#ls
eradd alexp file op_panel-0.30 op_panel-0.30.tar.gz tall tel.txt |
#cd op_panel-0.30
|
#make install
![]() make: *** No rule to make target `install'. Stop. |
#ls
CHANGES flash op_astdb.cfg op_lang_en.cfg op_lang_it.cfg op_server.cfg RECIPES dhtml init op_buttons.cfg op_lang_es.cfg op_lang_no.cfg op_server.pl TODO extensions.conf.sample LICENSE op_lang_ca.cfg op_lang_fr.cfg op_lang_ru.cfg op_style.cfg UPGRADE FAQ ming-source op_lang_de.cfg op_lang_gl.cfg op_lang_se.cfg README |
#cd ..
|
#cp -R flash /var/www/panel
|
#cd ..
|
#nano /etc/asterisk/manager.
![]() |
#nano /etc/asterisk/manager.
![]() |
#nano /etc/asterisk/manager.d/README.conf
|
#cat/etc/asterisk/manager.d/fop.conf
![]() bash: cat/etc/asterisk/manager.d/fop.conf: No such file or directory |
#cat /etc/asterisk/manager.d/fop.conf
[myuser] secret = mysecret deny=0.0.0.0/0.0.0.0 permit=127.0.0.1/255.255.255.0 read = system,call,log,verbose,command,agent,user write = system,call,log,verbose,command,agent,user |
#nano /root/op_panel-0.30/
![]() |
#nano /root/op_panel-0.30/
![]() |
#ls /op_panel-0.30/
![]() ls: cannot access /op_panel-0.30/: No such file or directory |
#nano /var/www/panel/
![]() |
#nano /var/www/panel/index.html
|
#<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
eradd alexp file op_panel-0.30 op_panel-0.30.tar.gz tall tel.txt |
#cd op_panel-0.30
|
#ls
CHANGES flash op_astdb.cfg op_lang_en.cfg op_lang_it.cfg op_server.cfg RECIPES dhtml init op_buttons.cfg op_lang_es.cfg op_lang_no.cfg op_server.pl TODO extensions.conf.sample LICENSE op_lang_ca.cfg op_lang_fr.cfg op_lang_ru.cfg op_style.cfg UPGRADE FAQ ming-source op_lang_de.cfg op_lang_gl.cfg op_lang_se.cfg README |
#nano op_s
![]() |
#nano op_server..cfg
![]() |
#scp user@192.168.70.1:/home/user/fop2-2.23-debian-i386.tgz /home/user
The authenticity of host '192.168.70.1 (192.168.70.1)' can't be established. RSA key fingerprint is 8f:a8:01:dc:fb:30:a2:33:72:95:8f:c7:5f:ab:a0:15. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.70.1' (RSA) to the list of known hosts. user@192.168.70.1's password: fop2-2.23-debian-i386.tgz 100% 5930KB 5.8MB/s 00:00 |
#tar -xfv /home/user/fop2-2.23-debian-i386.tgz
![]() tar: v: Cannot open: No such file or directory tar: Error is not recoverable: exiting now |
[myuser] secret = mysecret deny=0.0.0.0/0.0.0.0 permit=127.0.0.1/255.255.255.0 read = system,call,log,verbose,command,agent,user write = system,call,log,verbose,command,agent,user
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:29:11 2011-10-20 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:02:40 2011-10-21 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 12.87 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.97 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.25 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.75 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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