/l3/users/olef-alex/ais-voip-2011-jun/linux1.unix.ais/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 |
|
#vim install
|
#vim install
--- /tmp/l3-saved-9086.30211.32270 2011-06-27 16:04:18.000000000 +0400 +++ install 2011-06-27 16:04:23.000000000 +0400 @@ -7,7 +7,7 @@ # # Set this variables before installation: -lilalo_user=olef_alex +lilalo_user=olef-alex lab=ais-voip-2011-jun install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" |
#bash install
Installing dependencies... Ok Downloading l3bashrc... | --2011-06-27 16:04:25-- http://xgu.ru/lilalo/l3bashrc | Распознаётся xgu.ru... 91.205.16.235 | Устанавливается соединение с xgu.ru|91.205.16.235|:80... соединение установлено. | Запрос HTTP послан, ожидается ответ... 200 OK | Длина: 7709 (7,5K) [text/plain] | Saving to: «l3bashrc» | ... If you use xgu.ru backend, your labs will be available at http://xgu.ru/l3//users/olef-alex/ais-voip-2011-jun/linux1.unix.ais Use commands $ l3cd /users/olef-alex/MY-NEW-CONTEXT/linux1.unix.ais/USER $ l3pwd to change and to know your current context. For further information see http://xgu.ru/lilalo/ (in Russian). Thank you gor using LiLaLo. Happy Labbing! (don't forget to restart bash or relogin) |
#bash install
Installing dependencies... Ok Downloading l3bashrc... | --2011-06-27 16:04:25-- http://xgu.ru/lilalo/l3bashrc | Распознаётся xgu.ru... 91.205.16.235 | Устанавливается соединение с xgu.ru|91.205.16.235|:80... соединение установлено. | Запрос HTTP послан, ожидается ответ... 200 OK | Длина: 7709 (7,5K) [text/plain] | Saving to: «l3bashrc» | ... If you use xgu.ru backend, your labs will be available at http://xgu.ru/l3//users/olef-alex/ais-voip-2011-jun/linux1.unix.ais Use commands $ l3cd /users/olef-alex/MY-NEW-CONTEXT/linux1.unix.ais/USER $ l3pwd to change and to know your current context. For further information see http://xgu.ru/lilalo/ (in Russian). Thank you gor using LiLaLo. Happy Labbing! (don't forget to restart bash or relogin) |
#pkill -1 l3-agent
|
#pkill -1 l3-agent
|
#apt-get install asterisk
â ТелеÑоннÑй код, ÑоглаÑно ITU-T: â â â â 7___________________________________________________________________________________________________________________________________________________ â â â â <Ok> â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ ÐÑÐ±Ð¾Ñ Ñанее не вÑбÑанного пакеÑа mlock. (ЧÑение Ð±Ð°Ð·Ñ Ð´Ð°Ð½Ð½ÑÑ ... на даннÑй Ð¼Ð¾Ð¼ÐµÐ½Ñ ÑÑÑановлено 122966 Ñайлов и каÑалогов.) РаÑпаковÑваеÑÑÑ Ð¿Ð°ÐºÐµÑ mlock (из Ñайла .../mlock_8%3a2007e~dfsg-3.1_amd64.deb)... ... ÐаÑÑÑаиваеÑÑÑ Ð¿Ð°ÐºÐµÑ unixodbc (2.2.14p2-1) ... ÐаÑÑÑаиваеÑÑÑ Ð¿Ð°ÐºÐµÑ asterisk (1:1.6.2.9-2+squeeze2) ... Adding system user for Asterisk ÐобавлÑеÑÑÑ Ð¿Ð¾Ð»ÑзоваÑÐµÐ»Ñ Â«asterisk» в гÑÑÐ¿Ð¿Ñ Â«dialout» ... Ðобавление полÑзоваÑÐµÐ»Ñ asterisk в гÑÑÐ¿Ð¿Ñ dialout ÐоÑово. ÐобавлÑеÑÑÑ Ð¿Ð¾Ð»ÑзоваÑÐµÐ»Ñ Â«asterisk» в гÑÑÐ¿Ð¿Ñ Â«audio» ... Ðобавление полÑзоваÑÐµÐ»Ñ asterisk в гÑÑÐ¿Ð¿Ñ audio ÐоÑово. Starting Asterisk PBX: asterisk. |
#apt-get install asterisk
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Будут установлены следующие дополнительные пакеты: asterisk-config asterisk-core-sounds-en-gsm autopoint dahdi dahdi-linux debhelper freetds-common fxload gettext git html2text intltool-debian libc-client2007e libcorosync4 libcurl3 liberror-perl libgmime-2.0-2a libiksemel3 libmail-sendmail-perl libopenais3 libopenr2-3 libpq5 libpri1.4 libradiusclient-ng2 libresample1 libsox-fmt-alsa libsox-fmt-base libsox1b libspandsp2 libsqlite0 libss7-1 libssh2-1 libsybdb5 libsys-hostname-long-perl libtonezone2.0 libunistring0 libvpb0 mlock module-assistant odbcinst odbcinst1debian2 po-debconf rsync sox unixodbc vpb-driver-source Предлагаемые пакеты: asterisk-doc asterisk-dev asterisk-h323 dh-make gettext-doc git-doc git-arch git-cvs git-svn git-email git-daemon-run git-gui gitk gitweb uw-mailutils ... Настраивается пакет unixodbc (2.2.14p2-1) ... Настраивается пакет asterisk (1:1.6.2.9-2+squeeze2) ... Adding system user for Asterisk Добавляется пользователь «asterisk» в группу «dialout» ... Добавление пользователя asterisk в группу dialout Готово. Добавляется пользователь «asterisk» в группу «audio» ... Добавление пользователя asterisk в группу audio Готово. Starting Asterisk PBX: asterisk. |
#apt-cache search asterisk extra
asterisk-moh-opsound-g722 - asterisk extra sound files - English/g722 asterisk-moh-opsound-gsm - asterisk extra sound files - English/gsm asterisk-moh-opsound-wav - asterisk extra sound files - English/wav asterisk-sounds-extra - Additional sound files for the Asterisk PBX |
#apt-cache search asterisk extra
asterisk-moh-opsound-g722 - asterisk extra sound files - English/g722 asterisk-moh-opsound-gsm - asterisk extra sound files - English/gsm asterisk-moh-opsound-wav - asterisk extra sound files - English/wav asterisk-sounds-extra - Additional sound files for the Asterisk PBX |
#apt-get install asterisk-sounds-extra
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово НОВЫЕ пакеты, которые будут установлены: asterisk-sounds-extra обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. Необходимо скачать 3 419 kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 6 562 kB. Получено:1 http://192.168.15.253/debian/ squeeze/main asterisk-sounds-extra all 1.4.9-1 [3 419 kB] Получено 3 419 kБ за 0с (10,8 MБ/c) Выбор ранее не выбранного пакета asterisk-sounds-extra. (Чтение базы данных ... на данный момент установлено 125697 файлов и каталогов.) Распаковывается пакет asterisk-sounds-extra (из файла .../asterisk-sounds-extra_1.4.9-1_all.deb)... Настраивается пакет asterisk-sounds-extra (1.4.9-1) ... |
#apt-get install asterisk-sounds-extra
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово НОВЫЕ пакеты, которые будут установлены: asterisk-sounds-extra обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. Необходимо скачать 3 419 kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 6 562 kB. Получено:1 http://192.168.15.253/debian/ squeeze/main asterisk-sounds-extra all 1.4.9-1 [3 419 kB] Получено 3 419 kБ за 0с (10,8 MБ/c) Выбор ранее не выбранного пакета asterisk-sounds-extra. (Чтение базы данных ... на данный момент установлено 125697 файлов и каталогов.) Распаковывается пакет asterisk-sounds-extra (из файла .../asterisk-sounds-extra_1.4.9-1_all.deb)... Настраивается пакет asterisk-sounds-extra (1.4.9-1) ... |
#dpkg -L asterisk | less
|
#dpkg -L asterisk | less
|
#ls etc/asterisk
ls: невозможно получить доступ к etc/asterisk: Нет такого файла или каталога |
#ls etc/asterisk
ls: невозможно получить доступ к etc/asterisk: Нет такого файла или каталога |
#ls
install keyring-gJx6z3 orbit-Debian-gdm orbit-user seahorse-zIRRb7 ssh-CjUaoq2032 virtual-user.CqfJmc |
#ls
install keyring-gJx6z3 orbit-Debian-gdm orbit-user seahorse-zIRRb7 ssh-CjUaoq2032 virtual-user.CqfJmc |
#cd /
|
#cd /
|
#ls
bin boot dev etc home initrd.img lib lib32 lib64 lost+found media mnt opt proc root sbin selinux srv sys tmp usr var vmlinuz |
#ls
bin boot dev etc home initrd.img lib lib32 lib64 lost+found media mnt opt proc root sbin selinux srv sys tmp usr var vmlinuz |
#cd etc
|
#cd etc
|
#ls
acpi cups gnome-vfs-2.0 java mke2fs.conf profile shells adduser.conf dahdi gnome-vfs-mime-magic java-6-openjdk modprobe.d profile.d skel adjtime dbus-1 gpm.conf kbd modules protocols snmp aliases debconf.conf gre.d kernel mono pulse sound alternatives debian_version groff kernel-img.conf motd python ssh anacrontab default group kerneloops.conf motd.tail python2.6 ssl apache2 defoma group- ldap mtab radiusclient-ng sudoers apm deluser.conf grub.d ld.so.cache mtools.conf rc0.d sudoers.d apt dhcp gshadow ld.so.conf Muttrc rc1.d sysctl.conf asterisk dictionaries-common gshadow- ld.so.conf.d Muttrc.d rc2.d sysctl.d ... chatscripts fuse.conf init.d magic pam.d rsyslog.d usb_modeswitch.d console-cyrillic gai.conf initramfs-tools magic.mime pango sane.d vga ConsoleKit gconf inittab mailcap papersize securetty vim console-setup gdm3 inputrc mailcap.order passwd security w3m cron.d ghostscript insserv mailname passwd- sensors3.conf wgetrc cron.daily gimp insserv.conf mail.rc perl sensors.d wildmidi cron.hourly gnashpluginrc insserv.conf.d manpath.config pm services wpa_supplicant cron.monthly gnashrc iproute2 menu pnm2ppa.conf sgml X11 crontab gnome issue menu-methods polkit-1 shadow xdg cron.weekly gnome-system-tools issue.net mime.types ppp shadow- xml |
#ls
acpi cups gnome-vfs-2.0 java mke2fs.conf profile shells adduser.conf dahdi gnome-vfs-mime-magic java-6-openjdk modprobe.d profile.d skel adjtime dbus-1 gpm.conf kbd modules protocols snmp aliases debconf.conf gre.d kernel mono pulse sound alternatives debian_version groff kernel-img.conf motd python ssh anacrontab default group kerneloops.conf motd.tail python2.6 ssl apache2 defoma group- ldap mtab radiusclient-ng sudoers apm deluser.conf grub.d ld.so.cache mtools.conf rc0.d sudoers.d apt dhcp gshadow ld.so.conf Muttrc rc1.d sysctl.conf asterisk dictionaries-common gshadow- ld.so.conf.d Muttrc.d rc2.d sysctl.d ... chatscripts fuse.conf init.d magic pam.d rsyslog.d usb_modeswitch.d console-cyrillic gai.conf initramfs-tools magic.mime pango sane.d vga ConsoleKit gconf inittab mailcap papersize securetty vim console-setup gdm3 inputrc mailcap.order passwd security w3m cron.d ghostscript insserv mailname passwd- sensors3.conf wgetrc cron.daily gimp insserv.conf mail.rc perl sensors.d wildmidi cron.hourly gnashpluginrc insserv.conf.d manpath.config pm services wpa_supplicant cron.monthly gnashrc iproute2 menu pnm2ppa.conf sgml X11 crontab gnome issue menu-methods polkit-1 shadow xdg cron.weekly gnome-system-tools issue.net mime.types ppp shadow- xml |
#cd
|
#cd
|
#cd etc
bash: cd: etc: Нет такого файла или каталога |
#cd etc
bash: cd: etc: Нет такого файла или каталога |
#ls
|
#ls
|
#cd /etc
|
#cd /etc
|
#ls
acpi cups gnome-vfs-2.0 java mke2fs.conf profile shells adduser.conf dahdi gnome-vfs-mime-magic java-6-openjdk modprobe.d profile.d skel adjtime dbus-1 gpm.conf kbd modules protocols snmp aliases debconf.conf gre.d kernel mono pulse sound alternatives debian_version groff kernel-img.conf motd python ssh anacrontab default group kerneloops.conf motd.tail python2.6 ssl apache2 defoma group- ldap mtab radiusclient-ng sudoers apm deluser.conf grub.d ld.so.cache mtools.conf rc0.d sudoers.d apt dhcp gshadow ld.so.conf Muttrc rc1.d sysctl.conf asterisk dictionaries-common gshadow- ld.so.conf.d Muttrc.d rc2.d sysctl.d ... chatscripts fuse.conf init.d magic pam.d rsyslog.d usb_modeswitch.d console-cyrillic gai.conf initramfs-tools magic.mime pango sane.d vga ConsoleKit gconf inittab mailcap papersize securetty vim console-setup gdm3 inputrc mailcap.order passwd security w3m cron.d ghostscript insserv mailname passwd- sensors3.conf wgetrc cron.daily gimp insserv.conf mail.rc perl sensors.d wildmidi cron.hourly gnashpluginrc insserv.conf.d manpath.config pm services wpa_supplicant cron.monthly gnashrc iproute2 menu pnm2ppa.conf sgml X11 crontab gnome issue menu-methods polkit-1 shadow xdg cron.weekly gnome-system-tools issue.net mime.types ppp shadow- xml |
#ls
acpi cups gnome-vfs-2.0 java mke2fs.conf profile shells adduser.conf dahdi gnome-vfs-mime-magic java-6-openjdk modprobe.d profile.d skel adjtime dbus-1 gpm.conf kbd modules protocols snmp aliases debconf.conf gre.d kernel mono pulse sound alternatives debian_version groff kernel-img.conf motd python ssh anacrontab default group kerneloops.conf motd.tail python2.6 ssl apache2 defoma group- ldap mtab radiusclient-ng sudoers apm deluser.conf grub.d ld.so.cache mtools.conf rc0.d sudoers.d apt dhcp gshadow ld.so.conf Muttrc rc1.d sysctl.conf asterisk dictionaries-common gshadow- ld.so.conf.d Muttrc.d rc2.d sysctl.d ... chatscripts fuse.conf init.d magic pam.d rsyslog.d usb_modeswitch.d console-cyrillic gai.conf initramfs-tools magic.mime pango sane.d vga ConsoleKit gconf inittab mailcap papersize securetty vim console-setup gdm3 inputrc mailcap.order passwd security w3m cron.d ghostscript insserv mailname passwd- sensors3.conf wgetrc cron.daily gimp insserv.conf mail.rc perl sensors.d wildmidi cron.hourly gnashpluginrc insserv.conf.d manpath.config pm services wpa_supplicant cron.monthly gnashrc iproute2 menu pnm2ppa.conf sgml X11 crontab gnome issue menu-methods polkit-1 shadow xdg cron.weekly gnome-system-tools issue.net mime.types ppp shadow- xml |
#cd /asterisk
bash: cd: /asterisk: Нет такого файла или каталога |
#cd /asterisk
bash: cd: /asterisk: Нет такого файла или каталога |
#cd /cd /
bash: cd: /cd: Нет такого файла или каталога |
#cd /cd /
bash: cd: /cd: Нет такого файла или каталога |
#cd /
|
#cd /
|
#cd /etc/asterisk/
|
#cd /etc/asterisk/
|
#mv sip.conf sip.conf.SAVE
|
#mv sip.conf sip.conf.SAVE
|
#ls
adsi.conf cdr_manager.conf dnsmgr.conf func_odbc.conf meetme.conf queues.conf sla.conf adtranvofr.conf cdr_odbc.conf dsp.conf gtalk.conf mgcp.conf res_config_sqlite.conf smdi.conf agents.conf cdr_pgsql.conf dundi.conf h323.conf minivm.conf res_ldap.conf telcordia-1.adsi ais.conf cdr_sqlite3_custom.conf enum.conf http.conf misdn.conf res_odbc.conf udptl.conf alarmreceiver.conf cdr_tds.conf extconfig.conf iax.conf modules.conf res_pgsql.conf unistim.conf alsa.conf chan_dahdi.conf extensions.ael iaxprov.conf musiconhold.conf res_snmp.conf usbradio.conf amd.conf cli_aliases.conf extensions.conf indications.conf muted.conf rpt.conf users.conf asterisk.adsi cli.conf extensions.lua jabber.conf osp.conf rtp.conf voicemail.conf asterisk.conf cli_permissions.conf extensions_minivm.conf jingle.conf oss.conf say.conf vpb.conf cdr_adaptive_odbc.conf codecs.conf features.conf logger.conf phone.conf sip.conf.SAVE cdr.conf console.conf festival.conf manager.conf phoneprov.conf sip_notify.conf cdr_custom.conf dbsep.conf followme.conf manager.d queuerules.conf skinny.conf |
#ls
adsi.conf cdr_manager.conf dnsmgr.conf func_odbc.conf meetme.conf queues.conf sla.conf adtranvofr.conf cdr_odbc.conf dsp.conf gtalk.conf mgcp.conf res_config_sqlite.conf smdi.conf agents.conf cdr_pgsql.conf dundi.conf h323.conf minivm.conf res_ldap.conf telcordia-1.adsi ais.conf cdr_sqlite3_custom.conf enum.conf http.conf misdn.conf res_odbc.conf udptl.conf alarmreceiver.conf cdr_tds.conf extconfig.conf iax.conf modules.conf res_pgsql.conf unistim.conf alsa.conf chan_dahdi.conf extensions.ael iaxprov.conf musiconhold.conf res_snmp.conf usbradio.conf amd.conf cli_aliases.conf extensions.conf indications.conf muted.conf rpt.conf users.conf asterisk.adsi cli.conf extensions.lua jabber.conf osp.conf rtp.conf voicemail.conf asterisk.conf cli_permissions.conf extensions_minivm.conf jingle.conf oss.conf say.conf vpb.conf cdr_adaptive_odbc.conf codecs.conf features.conf logger.conf phone.conf sip.conf.SAVE cdr.conf console.conf festival.conf manager.conf phoneprov.conf sip_notify.conf cdr_custom.conf dbsep.conf followme.conf manager.d queuerules.conf skinny.conf |
#vim sip.conf
|
#vim sip.conf
--- /dev/null 2011-06-27 13:20:06.068431805 +0400 +++ sip.conf 2011-06-27 16:48:47.000000000 +0400 @@ -0,0 +1,8 @@ +context=default + +[1101] +type=friend +secret=1234 +host=dynamic +canreinvite=no + |
#/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. |
#sip reload
bash: sip: команда не найдена |
#sip reload
bash: sip: команда не найдена |
#ls
adsi.conf cdr_manager.conf dnsmgr.conf func_odbc.conf meetme.conf queues.conf skinny.conf adtranvofr.conf cdr_odbc.conf dsp.conf gtalk.conf mgcp.conf res_config_sqlite.conf sla.conf agents.conf cdr_pgsql.conf dundi.conf h323.conf minivm.conf res_ldap.conf smdi.conf ais.conf cdr_sqlite3_custom.conf enum.conf http.conf misdn.conf res_odbc.conf telcordia-1.adsi alarmreceiver.conf cdr_tds.conf extconfig.conf iax.conf modules.conf res_pgsql.conf udptl.conf alsa.conf chan_dahdi.conf extensions.ael iaxprov.conf musiconhold.conf res_snmp.conf unistim.conf amd.conf cli_aliases.conf extensions.conf indications.conf muted.conf rpt.conf usbradio.conf asterisk.adsi cli.conf extensions.lua jabber.conf osp.conf rtp.conf users.conf asterisk.conf cli_permissions.conf extensions_minivm.conf jingle.conf oss.conf say.conf voicemail.conf cdr_adaptive_odbc.conf codecs.conf features.conf logger.conf phone.conf sip.conf vpb.conf cdr.conf console.conf festival.conf manager.conf phoneprov.conf sip.conf.SAVE cdr_custom.conf dbsep.conf followme.conf manager.d queuerules.conf sip_notify.conf |
#ls
adsi.conf cdr_manager.conf dnsmgr.conf func_odbc.conf meetme.conf queues.conf skinny.conf adtranvofr.conf cdr_odbc.conf dsp.conf gtalk.conf mgcp.conf res_config_sqlite.conf sla.conf agents.conf cdr_pgsql.conf dundi.conf h323.conf minivm.conf res_ldap.conf smdi.conf ais.conf cdr_sqlite3_custom.conf enum.conf http.conf misdn.conf res_odbc.conf telcordia-1.adsi alarmreceiver.conf cdr_tds.conf extconfig.conf iax.conf modules.conf res_pgsql.conf udptl.conf alsa.conf chan_dahdi.conf extensions.ael iaxprov.conf musiconhold.conf res_snmp.conf unistim.conf amd.conf cli_aliases.conf extensions.conf indications.conf muted.conf rpt.conf usbradio.conf asterisk.adsi cli.conf extensions.lua jabber.conf osp.conf rtp.conf users.conf asterisk.conf cli_permissions.conf extensions_minivm.conf jingle.conf oss.conf say.conf voicemail.conf cdr_adaptive_odbc.conf codecs.conf features.conf logger.conf phone.conf sip.conf vpb.conf cdr.conf console.conf festival.conf manager.conf phoneprov.conf sip.conf.SAVE cdr_custom.conf dbsep.conf followme.conf manager.d queuerules.conf sip_notify.conf |
#vim sip.conf
|
#vim sip.conf
--- /tmp/l3-saved-9086.16556.32124 2011-06-27 16:50:54.000000000 +0400 +++ sip.conf 2011-06-27 16:51:20.000000000 +0400 @@ -1,3 +1,4 @@ +[general] context=default [1101] |
#/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. |
#/etc/init.d/asterisk reload
Reloading Asterisk PBX configuration files. |
#/etc/init.d/asterisk reload
Reloading Asterisk PBX configuration files. |
#ls
acpi gtk-2.0 pango adduser.conf hdparm.conf papersize adjtime host.conf passwd aliases hostname passwd- alternatives hosts perl anacrontab hosts.allow pm apache2 hosts.deny pnm2ppa.conf apm hp polkit-1 apt iceweasel ppp asterisk idmapd.conf profile ... gnome-vfs-mime-magic NetworkManager vim gpm.conf networks w3m gre.d nsswitch.conf wgetrc groff obex-data-server wildmidi group ODBCDataSources wpa_supplicant group- odbc.ini X11 grub.d openoffice xdg gshadow opt xml gshadow- pam.conf gssapi_mech.conf pam.d |
#ls
acpi gtk-2.0 pango adduser.conf hdparm.conf papersize adjtime host.conf passwd aliases hostname passwd- alternatives hosts perl anacrontab hosts.allow pm apache2 hosts.deny pnm2ppa.conf apm hp polkit-1 apt iceweasel ppp asterisk idmapd.conf profile ... gnome-vfs-mime-magic NetworkManager vim gpm.conf networks w3m gre.d nsswitch.conf wgetrc groff obex-data-server wildmidi group ODBCDataSources wpa_supplicant group- odbc.ini X11 grub.d openoffice xdg gshadow opt xml gshadow- pam.conf gssapi_mech.conf pam.d |
#ls
adsi.conf extconfig.conf oss.conf adtranvofr.conf extensions.ael phone.conf agents.conf extensions.conf phoneprov.conf ais.conf extensions.lua queuerules.conf alarmreceiver.conf extensions_minivm.conf queues.conf alsa.conf features.conf res_config_sqlite.conf amd.conf festival.conf res_ldap.conf asterisk.adsi followme.conf res_odbc.conf asterisk.conf func_odbc.conf res_pgsql.conf cdr_adaptive_odbc.conf gtalk.conf res_snmp.conf ... cli_aliases.conf manager.conf smdi.conf cli.conf manager.d telcordia-1.adsi cli_permissions.conf meetme.conf udptl.conf codecs.conf mgcp.conf unistim.conf console.conf minivm.conf usbradio.conf dbsep.conf misdn.conf users.conf dnsmgr.conf modules.conf voicemail.conf dsp.conf musiconhold.conf vpb.conf dundi.conf muted.conf enum.conf osp.conf |
#ls
adsi.conf extconfig.conf oss.conf adtranvofr.conf extensions.ael phone.conf agents.conf extensions.conf phoneprov.conf ais.conf extensions.lua queuerules.conf alarmreceiver.conf extensions_minivm.conf queues.conf alsa.conf features.conf res_config_sqlite.conf amd.conf festival.conf res_ldap.conf asterisk.adsi followme.conf res_odbc.conf asterisk.conf func_odbc.conf res_pgsql.conf cdr_adaptive_odbc.conf gtalk.conf res_snmp.conf ... cli_aliases.conf manager.conf smdi.conf cli.conf manager.d telcordia-1.adsi cli_permissions.conf meetme.conf udptl.conf codecs.conf mgcp.conf unistim.conf console.conf minivm.conf usbradio.conf dbsep.conf misdn.conf users.conf dnsmgr.conf modules.conf voicemail.conf dsp.conf musiconhold.conf vpb.conf dundi.conf muted.conf enum.conf osp.conf |
#vim sip.conf
--- /tmp/l3-saved-2518.3192.9139 2011-06-28 10:22:02.000000000 +0400 +++ sip.conf 2011-06-28 10:23:12.000000000 +0400 @@ -7,3 +7,15 @@ host=dynamic canreinvite=no +[1102] +type=friend +secret=1234 +host=dynamic +canreinvite=no + +[1103] +type=friend +secret=1234 +host=dynamic +canreinvite=no + |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux1 (pid = 1629) ... [Jun 28 10:41:07] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1103 [Jun 28 10:41:17] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1103 [Jun 28 10:43:10] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 [Jun 28 10:46:11] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 linux1*CLI> sreen -x No such command 'sreen -x' (type 'core show help sreen -x' for other possible commands) [Jun 28 10:49:12] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 [Jun 28 10:52:13] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 linux1*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux1 (pid = 1629) ... [Jun 28 10:41:07] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1103 [Jun 28 10:41:17] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1103 [Jun 28 10:43:10] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 [Jun 28 10:46:11] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 linux1*CLI> sreen -x No such command 'sreen -x' (type 'core show help sreen -x' for other possible commands) [Jun 28 10:49:12] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 [Jun 28 10:52:13] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 linux1*CLI> exit Executing last minute cleanups |
#vim sip.conf
--- /tmp/l3-saved-2518.19084.21734 2011-06-28 10:52:32.000000000 +0400 +++ sip.conf 2011-06-28 10:53:29.000000000 +0400 @@ -19,3 +19,9 @@ host=dynamic canreinvite=no +[1104] +type=friend +secret=1234 +host=dynamic +canreinvite=no + |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux1 (pid = 1629) ... 1101/1101 (Unspecified) D 0 Unmonitored 1102/1102 192.168.15.227 D 33918 Unmonitored 1103/1103 192.168.15.239 D 54736 Unmonitored 1104 (Unspecified) D 5060 Unmonitored 4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 1 offline] [Jun 28 10:58:15] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 [Jun 28 11:01:16] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 [Jun 28 11:04:17] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 linux1*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux1 (pid = 1629) ... 1101/1101 (Unspecified) D 0 Unmonitored 1102/1102 192.168.15.227 D 33918 Unmonitored 1103/1103 192.168.15.239 D 54736 Unmonitored 1104 (Unspecified) D 5060 Unmonitored 4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 1 offline] [Jun 28 10:58:15] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 [Jun 28 11:01:16] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 [Jun 28 11:04:17] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 linux1*CLI> exit Executing last minute cleanups |
#vim extensions.conf
--- /dev/null 2011-06-28 09:53:39.136406896 +0400 +++ extensions.conf 2011-06-28 11:08:29.000000000 +0400 @@ -0,0 +1,3 @@ +[default] + +exten =>8000,1,Playback(welcome) |
#vim extensions.conf
--- /tmp/l3-saved-2518.17466.15862 2011-06-28 11:13:11.000000000 +0400 +++ extensions.conf 2011-06-28 11:14:30.000000000 +0400 @@ -1,3 +1,4 @@ [default] -exten =>8000,1,Playback(welcome) +exten =>8000,1,Playback(limit-simul-calls) + |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux1 (pid = 1629) ... 1102/1102 192.168.15.227 D 33918 Unmonitored 1103/1103 192.168.15.239 D 54736 Unmonitored 1104 (Unspecified) D 5060 Unmonitored 4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline] == Using SIP RTP CoS mark 5 -- Executing [8000@default:1] Playback("SIP/1101-00000005", "limit-simul-calls") in new stack -- <SIP/1101-00000005> Playing 'limit-simul-calls.gsm' (language 'en') -- Auto fallthrough, channel 'SIP/1101-00000005' status is 'UNKNOWN' linux1*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux1 (pid = 1629) ... 1102/1102 192.168.15.227 D 33918 Unmonitored 1103/1103 192.168.15.239 D 54736 Unmonitored 1104 (Unspecified) D 5060 Unmonitored 4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline] == Using SIP RTP CoS mark 5 -- Executing [8000@default:1] Playback("SIP/1101-00000005", "limit-simul-calls") in new stack -- <SIP/1101-00000005> Playing 'limit-simul-calls.gsm' (language 'en') -- Auto fallthrough, channel 'SIP/1101-00000005' status is 'UNKNOWN' linux1*CLI> exit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-2518.30552.13110 2011-06-28 11:19:25.000000000 +0400 +++ extensions.conf 2011-06-28 11:24:43.000000000 +0400 @@ -2,3 +2,5 @@ exten =>8000,1,Playback(limit-simul-calls) +exten => _11XX,1,Answer +exten => _11XX,n,Dial(SIP/${EXTEN}) |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux1 (pid = 1629) ... [Jun 28 11:40:52] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1103 [Jun 28 11:41:11] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1103 [Jun 28 11:43:29] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 [Jun 28 11:46:29] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 [Jun 28 11:49:30] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 [Jun 28 11:52:31] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 [Jun 28 11:55:32] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 [Jun 28 11:58:34] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 linux1*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux1 (pid = 1629) ... [Jun 28 11:40:52] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1103 [Jun 28 11:41:11] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1103 [Jun 28 11:43:29] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 [Jun 28 11:46:29] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 [Jun 28 11:49:30] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 [Jun 28 11:52:31] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 [Jun 28 11:55:32] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 [Jun 28 11:58:34] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 linux1*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux1 (pid = 1629) ... 1102/1102 192.168.15.227 D 33918 Unmonitored 1103/1103 192.168.15.239 D 54736 Unmonitored 1104 (Unspecified) D 5060 Unmonitored msk/ast 192.168.15.2 D 5060 Unmonitored 5 sip peers [Monitored: 0 online, 0 offline Unmonitored: 5 online, 0 offline] == Using SIP RTP CoS mark 5 [Jun 28 12:12:33] NOTICE[1675]: chan_sip.c:20281 handle_request_invite: Call from '1102' to extension '1201' rejected because extension not found in context 'default'. [Jun 28 12:13:38] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 linux1*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux1 (pid = 1629) ... 1102/1102 192.168.15.227 D 33918 Unmonitored 1103/1103 192.168.15.239 D 54736 Unmonitored 1104 (Unspecified) D 5060 Unmonitored msk/ast 192.168.15.2 D 5060 Unmonitored 5 sip peers [Monitored: 0 online, 0 offline Unmonitored: 5 online, 0 offline] == Using SIP RTP CoS mark 5 [Jun 28 12:12:33] NOTICE[1675]: chan_sip.c:20281 handle_request_invite: Call from '1102' to extension '1201' rejected because extension not found in context 'default'. [Jun 28 12:13:38] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1102 linux1*CLI> exit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-2518.4369.10807 2011-06-28 12:15:22.000000000 +0400 +++ extensions.conf 2011-06-28 12:17:02.000000000 +0400 @@ -2,5 +2,8 @@ exten =>8000,1,Playback(limit-simul-calls) + exten => _11XX,1,Answer exten => _11XX,n,Dial(SIP/${EXTEN}) + +exten => _12XX,1,Dial(SIP/msk/${EXTEN}) |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux1 (pid = 1629) ... -- Executing [1201@default:1] Dial("SIP/1103-00000012", "SIP/msk/1201") in new stack == Using SIP RTP CoS mark 5 -- Called msk/1201 -- SIP/msk-00000013 answered SIP/1103-00000012 -- Packet2Packet bridging SIP/1103-00000012 and SIP/msk-00000013 [Jun 28 12:20:04] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1103 [Jun 28 12:20:14] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1103 == Spawn extension (default, 1201, 1) exited non-zero on 'SIP/1103-00000012' linux1*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux1 (pid = 1629) ... -- Executing [1201@default:1] Dial("SIP/1103-00000012", "SIP/msk/1201") in new stack == Using SIP RTP CoS mark 5 -- Called msk/1201 -- SIP/msk-00000013 answered SIP/1103-00000012 -- Packet2Packet bridging SIP/1103-00000012 and SIP/msk-00000013 [Jun 28 12:20:04] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1103 [Jun 28 12:20:14] NOTICE[1675]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1103 == Spawn extension (default, 1201, 1) exited non-zero on 'SIP/1103-00000012' linux1*CLI> exit Executing last minute cleanups |
Время первой команды журнала | 14:04:17 2011- 6-27 | ||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:17:02 2011- 6-28 | ||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | ||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 12.00 | ||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 4.00 | ||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.18 | ||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.76 | ||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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