Журнал лабораторных работ

Содержание

Журнал

Понедельник (10/25/10)

/dev/pts/5
15:32:20
#./run-mozilla.sh
run-mozilla.sh: Cannot execute .
/dev/pts/6
15:32:20
#./run-mozilla.sh
run-mozilla.sh: Cannot execute .
/dev/pts/5
15:32:35
#sh run-mozilla.sh
run-mozilla.sh: Cannot execute .
/dev/pts/6
15:32:35
#sh run-mozilla.sh
run-mozilla.sh: Cannot execute .
/dev/pts/5
15:32:42
#sh run-mozilla.sh
run-mozilla.sh: Cannot execute .
/dev/pts/6
15:32:42
#sh run-mozilla.sh
run-mozilla.sh: Cannot execute .
/dev/pts/5
15:32:44
#sh firefox-bin
firefox-bin: firefox-bin: cannot execute binary file
/dev/pts/6
15:32:44
#sh firefox-bin
firefox-bin: firefox-bin: cannot execute binary file
/dev/pts/5
15:32:49
#apt-cache install
^[[AE: Неверная операция install
/dev/pts/6
15:32:49
#apt-cache install
^[[AE: Неверная операция install
/dev/pts/5
15:33:23
#apt-cache
apt 0.7.20.2 для i386 скомпилирован May 12 2010 20:23:46
Использование: apt-cache [параметры] команда
          или: apt-cache [параметры] add файл1 [файл2 ...]
          или: apt-cache [параметры] showpkg пакет1 [пакет2 ...]
          или: apt-cache [параметры] showsrc пакет1 [пакет2 ...]
apt-cache -- низкоуровневый инструмент, используемый для управления
двоичными кеш-файлами APT и поиску по ним
Команды:
   add - добавить файл пакета в кеш исходников
   gencaches - построить оба кеша пакетов - двоичных и с исходным кодом
...
   policy - показать текущую политику выбора пакетов
Параметры:
  -h   Этот текст.
  -p=? Кеш пакетов.
  -s=? Кеш пакетов исходного кода.
  -q   Не показывать индикатор прогресса.
  -i   Показывать только важные зависимости для команды unmet.
  -c=? Читать указанный файл настройки.
  -o=? Задать произвольный параметра настройки, например, -o dir::cache=/tmp
Подробности в справочных страницах apt-cache(8) и apt.conf(5).
/dev/pts/6
15:33:23
#apt-cache
apt 0.7.20.2 для i386 скомпилирован May 12 2010 20:23:46
Использование: apt-cache [параметры] команда
          или: apt-cache [параметры] add файл1 [файл2 ...]
          или: apt-cache [параметры] showpkg пакет1 [пакет2 ...]
          или: apt-cache [параметры] showsrc пакет1 [пакет2 ...]
apt-cache -- низкоуровневый инструмент, используемый для управления
двоичными кеш-файлами APT и поиску по ним
Команды:
   add - добавить файл пакета в кеш исходников
   gencaches - построить оба кеша пакетов - двоичных и с исходным кодом
...
   policy - показать текущую политику выбора пакетов
Параметры:
  -h   Этот текст.
  -p=? Кеш пакетов.
  -s=? Кеш пакетов исходного кода.
  -q   Не показывать индикатор прогресса.
  -i   Показывать только важные зависимости для команды unmet.
  -c=? Читать указанный файл настройки.
  -o=? Задать произвольный параметра настройки, например, -o dir::cache=/tmp
Подробности в справочных страницах apt-cache(8) и apt.conf(5).
/dev/pts/5
15:33:26
#apt-cache search firefox
aptlinex - Web browser addon to install Debian packages with a click
bookmarkbridge - tool to synchronize bookmarks between browsers
firefox-sage - lightweight RSS and Atom feed reader for Firefox
gnash-common-opengl - free SWF movie player - common files/libraries
gnash-common - free SWF movie player - common files/libraries
gnash-cygnal - free SWF movie player - Media server
gnash-opengl - free SWF movie player
gnash-tools - free SWF movie player - Command-line Tools
gnash - free SWF movie player
klash-opengl - free SWF movie player - standalone player for KDE
...
squareness - suite of skins for different applications
tinymce - platform independent web based Javascript/HTML WYSIWYG editor
tinymce2 - platform independent web based Javascript/HTML WYSIWYG editor
libmozjs-dev - Development files for the Mozilla SpiderMonkey JavaScript library
libmozjs1d - The Mozilla SpiderMonkey JavaScript library
libmozjs1d-dbg - Development files for the Mozilla SpiderMonkey JavaScript library
mozilla-plugin-vlc - multimedia plugin for web browsers based on VLC
xulrunner-1.9 - XUL + XPCOM application runner
xulrunner-1.9-dbg - Development files for the Gecko engine library
xulrunner-dev - Development files for the Gecko engine library
/dev/pts/6
15:33:26
#apt-cache search firefox
aptlinex - Web browser addon to install Debian packages with a click
bookmarkbridge - tool to synchronize bookmarks between browsers
firefox-sage - lightweight RSS and Atom feed reader for Firefox
gnash-common-opengl - free SWF movie player - common files/libraries
gnash-common - free SWF movie player - common files/libraries
gnash-cygnal - free SWF movie player - Media server
gnash-opengl - free SWF movie player
gnash-tools - free SWF movie player - Command-line Tools
gnash - free SWF movie player
klash-opengl - free SWF movie player - standalone player for KDE
...
squareness - suite of skins for different applications
tinymce - platform independent web based Javascript/HTML WYSIWYG editor
tinymce2 - platform independent web based Javascript/HTML WYSIWYG editor
libmozjs-dev - Development files for the Mozilla SpiderMonkey JavaScript library
libmozjs1d - The Mozilla SpiderMonkey JavaScript library
libmozjs1d-dbg - Development files for the Mozilla SpiderMonkey JavaScript library
mozilla-plugin-vlc - multimedia plugin for web browsers based on VLC
xulrunner-1.9 - XUL + XPCOM application runner
xulrunner-1.9-dbg - Development files for the Gecko engine library
xulrunner-dev - Development files for the Gecko engine library
/dev/pts/5
15:33:44
#apt-cache search mozilla-firefox
mozilla-firefox-adblock - AdBlock extension for the Iceweasel and Iceape web browsers
/dev/pts/6
15:33:44
#apt-cache search mozilla-firefox
mozilla-firefox-adblock - AdBlock extension for the Iceweasel and Iceape web browsers
/dev/pts/5
15:34:11
#apt-cache search mozilla
myspell-bg - The Bulgarian dictionary for myspell
mozilla-biofox - extension of bioinformatics tools to Iceape and Iceweasel browsers
bookmark-merge - Merge bookmarks from Mozilla, Netscape and IE
bookmarkbridge - tool to synchronize bookmarks between browsers
ca-certificates - Common CA certificates
camserv - Stream live video out onto the web
python-chardet - universal character encoding detector
claws-mail-themes - Pixmap icon themes for the Claws Mail mailer
conkeror - keyboard focused web browser with Emacs look and feel
coolkey - Smart Card PKCS #11 cryptographic module
...
libmozjs1d - The Mozilla SpiderMonkey JavaScript library
libmozjs1d-dbg - Development files for the Mozilla SpiderMonkey JavaScript library
mozilla-plugin-vlc - multimedia plugin for web browsers based on VLC
spidermonkey-bin - standalone JavaScript/ECMAScript (ECMA-262) interpreter
vlc - multimedia player and streamer
vlc-nox - multimedia player and streamer (without X support)
xulrunner-1.9 - XUL + XPCOM application runner
xulrunner-1.9-dbg - Development files for the Gecko engine library
xulrunner-dev - Development files for the Gecko engine library
tor - anonymizing overlay network for TCP
/dev/pts/6
15:34:11
#apt-cache search mozilla
myspell-bg - The Bulgarian dictionary for myspell
mozilla-biofox - extension of bioinformatics tools to Iceape and Iceweasel browsers
bookmark-merge - Merge bookmarks from Mozilla, Netscape and IE
bookmarkbridge - tool to synchronize bookmarks between browsers
ca-certificates - Common CA certificates
camserv - Stream live video out onto the web
python-chardet - universal character encoding detector
claws-mail-themes - Pixmap icon themes for the Claws Mail mailer
conkeror - keyboard focused web browser with Emacs look and feel
coolkey - Smart Card PKCS #11 cryptographic module
...
libmozjs1d - The Mozilla SpiderMonkey JavaScript library
libmozjs1d-dbg - Development files for the Mozilla SpiderMonkey JavaScript library
mozilla-plugin-vlc - multimedia plugin for web browsers based on VLC
spidermonkey-bin - standalone JavaScript/ECMAScript (ECMA-262) interpreter
vlc - multimedia player and streamer
vlc-nox - multimedia player and streamer (without X support)
xulrunner-1.9 - XUL + XPCOM application runner
xulrunner-1.9-dbg - Development files for the Gecko engine library
xulrunner-dev - Development files for the Gecko engine library
tor - anonymizing overlay network for TCP
прошло 14 минут
/dev/pts/5
15:48:16
#cat /var/lib/dhcp3/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-V3.1.1
lease 192.168.103.200 {
  starts 1 2010/10/25 13:21:43;
  ends 1 2010/10/25 13:31:43;
  cltt 1 2010/10/25 13:21:43;
  binding state active;
  next binding state free;
  hardware ethernet 00:19:56:fd:71:26;
  uid "\001\000\031V\375q&";
...
lease 192.168.103.200 {
  starts 1 2010/10/25 13:45:54;
  ends 1 2010/10/25 13:55:54;
  cltt 1 2010/10/25 13:45:54;
  binding state active;
  next binding state free;
  hardware ethernet 00:19:56:fd:71:26;
  uid "\001\000\031V\375q&";
  client-hostname "SEP001956FD7126";
}
/dev/pts/6
15:48:16
#cat /var/lib/dhcp3/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-V3.1.1
lease 192.168.103.200 {
  starts 1 2010/10/25 13:21:43;
  ends 1 2010/10/25 13:31:43;
  cltt 1 2010/10/25 13:21:43;
  binding state active;
  next binding state free;
  hardware ethernet 00:19:56:fd:71:26;
  uid "\001\000\031V\375q&";
...
lease 192.168.103.200 {
  starts 1 2010/10/25 13:45:54;
  ends 1 2010/10/25 13:55:54;
  cltt 1 2010/10/25 13:45:54;
  binding state active;
  next binding state free;
  hardware ethernet 00:19:56:fd:71:26;
  uid "\001\000\031V\375q&";
  client-hostname "SEP001956FD7126";
}
/dev/pts/5
15:48:18
#cat /var/lib/dhcp3/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-V3.1.1
lease 192.168.103.200 {
  starts 1 2010/10/25 13:21:43;
  ends 1 2010/10/25 13:31:43;
  cltt 1 2010/10/25 13:21:43;
  binding state active;
  next binding state free;
  hardware ethernet 00:19:56:fd:71:26;
  uid "\001\000\031V\375q&";
...
lease 192.168.103.200 {
  starts 1 2010/10/25 13:45:54;
  ends 1 2010/10/25 13:55:54;
  cltt 1 2010/10/25 13:45:54;
  binding state active;
  next binding state free;
  hardware ethernet 00:19:56:fd:71:26;
  uid "\001\000\031V\375q&";
  client-hostname "SEP001956FD7126";
}
/dev/pts/6
15:48:18
#cat /var/lib/dhcp3/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-V3.1.1
lease 192.168.103.200 {
  starts 1 2010/10/25 13:21:43;
  ends 1 2010/10/25 13:31:43;
  cltt 1 2010/10/25 13:21:43;
  binding state active;
  next binding state free;
  hardware ethernet 00:19:56:fd:71:26;
  uid "\001\000\031V\375q&";
...
lease 192.168.103.200 {
  starts 1 2010/10/25 13:45:54;
  ends 1 2010/10/25 13:55:54;
  cltt 1 2010/10/25 13:45:54;
  binding state active;
  next binding state free;
  hardware ethernet 00:19:56:fd:71:26;
  uid "\001\000\031V\375q&";
  client-hostname "SEP001956FD7126";
}
/dev/pts/5
15:48:19
#cat /var/lib/dhcp3/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-V3.1.1
lease 192.168.103.200 {
  starts 1 2010/10/25 13:21:43;
  ends 1 2010/10/25 13:31:43;
  cltt 1 2010/10/25 13:21:43;
  binding state active;
  next binding state free;
  hardware ethernet 00:19:56:fd:71:26;
  uid "\001\000\031V\375q&";
...
lease 192.168.103.200 {
  starts 1 2010/10/25 13:45:54;
  ends 1 2010/10/25 13:55:54;
  cltt 1 2010/10/25 13:45:54;
  binding state active;
  next binding state free;
  hardware ethernet 00:19:56:fd:71:26;
  uid "\001\000\031V\375q&";
  client-hostname "SEP001956FD7126";
}
/dev/pts/6
15:48:19
#cat /var/lib/dhcp3/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-V3.1.1
lease 192.168.103.200 {
  starts 1 2010/10/25 13:21:43;
  ends 1 2010/10/25 13:31:43;
  cltt 1 2010/10/25 13:21:43;
  binding state active;
  next binding state free;
  hardware ethernet 00:19:56:fd:71:26;
  uid "\001\000\031V\375q&";
...
lease 192.168.103.200 {
  starts 1 2010/10/25 13:45:54;
  ends 1 2010/10/25 13:55:54;
  cltt 1 2010/10/25 13:45:54;
  binding state active;
  next binding state free;
  hardware ethernet 00:19:56:fd:71:26;
  uid "\001\000\031V\375q&";
  client-hostname "SEP001956FD7126";
}
/dev/pts/1
15:51:48
#service dhcp3-server start
Starting DHCP server: dhcpd3.
/dev/pts/2
15:51:48
#service dhcp3-server start
Starting DHCP server: dhcpd3.
/dev/pts/1
15:52:05
#apt-get install assterisk
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
E: Не удалось найти пакет assterisk
/dev/pts/2
15:52:05
#apt-get install assterisk
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
E: Не удалось найти пакет assterisk
/dev/pts/1
15:52:25
#apt-get install asterisk
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Будут установлены следующие дополнительные пакеты:
  asterisk-config asterisk-sounds-main debhelper gettext html2text
  intltool-debian libc-client2007b libcurl3 libdigest-hmac-perl
  libdigest-sha1-perl libfile-remove-perl libiksemel3 libio-stringy-perl
  libmail-box-perl libmail-sendmail-perl libmime-types-perl
  libobject-realize-later-perl libperl5.10 libpq5 libpri1.0
  libradiusclient-ng2 libsensors3 libsnmp-base libsnmp15 libssh2-1
...
  libmail-box-perl libmail-sendmail-perl libmime-types-perl
  libobject-realize-later-perl libperl5.10 libpq5 libpri1.0
  libradiusclient-ng2 libsensors3 libsnmp-base libsnmp15 libssh2-1
  libsys-hostname-long-perl libtonezone1 libuser-identity-perl libvpb0 mlock
  module-assistant odbcinst1debian1 po-debconf unixodbc vpb-driver-source
обновлено 0, установлено 36 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
Необходимо скачать 16,4MБ архивов.
После данной операции, объём занятого дискового пространства возрастёт на 39,9MB.
Хотите продолжить [Д/н]? n
Аварийное завершение.
/dev/pts/2
15:52:25
#apt-get install asterisk
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Будут установлены следующие дополнительные пакеты:
  asterisk-config asterisk-sounds-main debhelper gettext html2text
  intltool-debian libc-client2007b libcurl3 libdigest-hmac-perl
  libdigest-sha1-perl libfile-remove-perl libiksemel3 libio-stringy-perl
  libmail-box-perl libmail-sendmail-perl libmime-types-perl
  libobject-realize-later-perl libperl5.10 libpq5 libpri1.0
  libradiusclient-ng2 libsensors3 libsnmp-base libsnmp15 libssh2-1
...
  libmail-box-perl libmail-sendmail-perl libmime-types-perl
  libobject-realize-later-perl libperl5.10 libpq5 libpri1.0
  libradiusclient-ng2 libsensors3 libsnmp-base libsnmp15 libssh2-1
  libsys-hostname-long-perl libtonezone1 libuser-identity-perl libvpb0 mlock
  module-assistant odbcinst1debian1 po-debconf unixodbc vpb-driver-source
обновлено 0, установлено 36 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
Необходимо скачать 16,4MБ архивов.
После данной операции, объём занятого дискового пространства возрастёт на 39,9MB.
Хотите продолжить [Д/н]? n
Аварийное завершение.
/dev/pts/1
15:52:45
#apt-get install asterisk asterisk-sounds-extra asterisk-c
asterisk-chan-capi      asterisk-config
asterisk-classic        asterisk-config-custom
/dev/pts/2
15:52:45
#apt-get install asterisk asterisk-sounds-extra asterisk-c
asterisk-chan-capi      asterisk-config
asterisk-classic        asterisk-config-custom
/dev/pts/1
15:52:45
#apt-get install asterisk asterisk-sounds-extra asterisk-config
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Будут установлены следующие дополнительные пакеты:
  asterisk-sounds-main debhelper gettext html2text intltool-debian
  libc-client2007b libcurl3 libdigest-hmac-perl libdigest-sha1-perl
  libfile-remove-perl libiksemel3 libio-stringy-perl libmail-box-perl
  libmail-sendmail-perl libmime-types-perl libobject-realize-later-perl
  libperl5.10 libpq5 libpri1.0 libradiusclient-ng2 libsensors3 libsnmp-base
  libsnmp15 libssh2-1 libsys-hostname-long-perl libtonezone1
...
Настраивается пакет libfile-remove-perl (1.42-1) ...
Настраивается пакет libio-stringy-perl (2.110-4) ...
Настраивается пакет libmime-types-perl (1.24-1) ...
Настраивается пакет libobject-realize-later-perl (0.18-1) ...
Настраивается пакет libuser-identity-perl (0.92-2) ...
Настраивается пакет libmail-box-perl (2.082-2) ...
Настраивается пакет libsys-hostname-long-perl (1.4-2) ...
Настраивается пакет libmail-sendmail-perl (0.79-5) ...
Настраивается пакет module-assistant (0.10.11.0) ...
Настраивается пакет vpb-driver-source (4.2.38.1-1) ...
/dev/pts/2
15:52:45
#apt-get install asterisk asterisk-sounds-extra asterisk-config
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Будут установлены следующие дополнительные пакеты:
  asterisk-sounds-main debhelper gettext html2text intltool-debian
  libc-client2007b libcurl3 libdigest-hmac-perl libdigest-sha1-perl
  libfile-remove-perl libiksemel3 libio-stringy-perl libmail-box-perl
  libmail-sendmail-perl libmime-types-perl libobject-realize-later-perl
  libperl5.10 libpq5 libpri1.0 libradiusclient-ng2 libsensors3 libsnmp-base
  libsnmp15 libssh2-1 libsys-hostname-long-perl libtonezone1
...
Настраивается пакет libfile-remove-perl (1.42-1) ...
Настраивается пакет libio-stringy-perl (2.110-4) ...
Настраивается пакет libmime-types-perl (1.24-1) ...
Настраивается пакет libobject-realize-later-perl (0.18-1) ...
Настраивается пакет libuser-identity-perl (0.92-2) ...
Настраивается пакет libmail-box-perl (2.082-2) ...
Настраивается пакет libsys-hostname-long-perl (1.4-2) ...
Настраивается пакет libmail-sendmail-perl (0.79-5) ...
Настраивается пакет module-assistant (0.10.11.0) ...
Настраивается пакет vpb-driver-source (4.2.38.1-1) ...
/dev/pts/1
15:53:41
#dpkg -L asterisk
/.
/etc
/etc/asterisk
/etc/logrotate.d
/etc/logrotate.d/asterisk
/etc/default
/etc/default/asterisk
/etc/init.d
/etc/init.d/asterisk
/usr
...
/var/lib/asterisk
/var/lib/asterisk/moh
/var/lib/asterisk/sounds
/var/lib/asterisk/sounds/custom
/var/run
/var/run/asterisk
/usr/share/asterisk/sounds/recordings
/usr/share/asterisk/sounds/custom
/usr/share/man/man8/rasterisk.8.gz
/usr/sbin/rasterisk
/dev/pts/2
15:53:41
#dpkg -L asterisk
/.
/etc
/etc/asterisk
/etc/logrotate.d
/etc/logrotate.d/asterisk
/etc/default
/etc/default/asterisk
/etc/init.d
/etc/init.d/asterisk
/usr
...
/var/lib/asterisk
/var/lib/asterisk/moh
/var/lib/asterisk/sounds
/var/lib/asterisk/sounds/custom
/var/run
/var/run/asterisk
/usr/share/asterisk/sounds/recordings
/usr/share/asterisk/sounds/custom
/usr/share/man/man8/rasterisk.8.gz
/usr/sbin/rasterisk
/dev/pts/1
15:55:03
#ls /usr/share/asterisk/sounds/recordings

/dev/pts/2
15:55:03
#ls /usr/share/asterisk/sounds/recordings

/dev/pts/1
15:58:17
#ls /usr/share/asterisk/sounds
1-for-am-2-for-pm.gsm                dial-here-often.gsm                    lea-may-request-info.gsm                 privacy-blocked.gsm                              to-dial-by-name-press.gsm
1-yes-2-no.gsm                       dictate                                left-bracket.gsm                         privacy-if-error.gsm                             to-enter-a-diff-number.gsm
abandon-all-hope.gsm                 digit.gsm                              legal.gsm                                privacy-if-error-leave-message-or-hangup.gsm     to-enter-a-number.gsm
abandons.gsm                         digits                                 len.gsm                                  privacy-if-sales-call-contact-in-writing.gsm     to-erase-yr-temp-grtg.gsm
academic-support.gsm                 digits.gsm                             less-than.gsm                            privacy-incorrect.gsm                            to-extension.gsm
access-code.gsm                      directory-assistance.gsm               letters                                  privacy-last-caller-was.gsm                      to-hang-up-2.gsm
accessible-through-system.gsm        directory.gsm                          library.gsm                              privacy-not.gsm                                  to-hang-up.gsm
account-balance-is.gsm               dir-first.gsm                          lightning.gsm                            privacy-please-dial.gsm                          to-hear-callerid.gsm
accounting.gsm                       dir-firstlast.gsm                      limit-simul-calls.gsm                    privacy-please-stay-on-line-to-be-connected.gsm  to-hear-menu-again.gsm
accounts-payable.gsm                 dir-instr.gsm                          lines-complaining-customers.gsm          privacy-prompt.gsm                               to-hear-msg-again.gsm
...
demo-nomatch.gsm                     kilometer.gsm                          press-pound-save-changes.gsm             to-call-prson-w-sent-msg.gsm                     your-account.gsm
demo-thanks.gsm                      kilometers-per-hour.gsm                press-pound-to-login-star-to-hangup.gsm  to-call-this-number.gsm                          your.gsm
denial-of-service.gsm                knock-knock.gsm                        press-return.gsm                         to-cancel-this-msg.gsm                           your-msg-has-been-saved.gsm
denver.gsm                           knots.gsm                              press-star-cancel.gsm                    to-cancel-wakeup.gsm                             your-msg-is-too-short.gsm
department-administrator.gsm         language.gsm                           press-star.gsm                           to-change-exp-date.gsm                           your-temp-greeting.gsm
department.gsm                       last-error-was.gsm                     press-the-space-bar.gsm                  to-change-your-pin-number.gsm                    you-seem-impatient.gsm
deposit.gsm                          last-num-to-call.gsm                   press-tilde.gsm                          to-collect-voicemail.gsm                         you-sound-cute.gsm
design.gsm                           las-vegas.gsm                          pressure.gsm                             to-compose-a-message.gsm                         you-wish-to-join.gsm
detroit.gsm                          late.gsm                               printing.gsm                             to-confirm-wakeup.gsm                            zip-code.gsm
development.gsm                      later.gsm                              privacy-blacklisted.gsm                  to-dial-by-name.gsm
/dev/pts/2
15:58:17
#ls /usr/share/asterisk/sounds
1-for-am-2-for-pm.gsm                dial-here-often.gsm                    lea-may-request-info.gsm                 privacy-blocked.gsm                              to-dial-by-name-press.gsm
1-yes-2-no.gsm                       dictate                                left-bracket.gsm                         privacy-if-error.gsm                             to-enter-a-diff-number.gsm
abandon-all-hope.gsm                 digit.gsm                              legal.gsm                                privacy-if-error-leave-message-or-hangup.gsm     to-enter-a-number.gsm
abandons.gsm                         digits                                 len.gsm                                  privacy-if-sales-call-contact-in-writing.gsm     to-erase-yr-temp-grtg.gsm
academic-support.gsm                 digits.gsm                             less-than.gsm                            privacy-incorrect.gsm                            to-extension.gsm
access-code.gsm                      directory-assistance.gsm               letters                                  privacy-last-caller-was.gsm                      to-hang-up-2.gsm
accessible-through-system.gsm        directory.gsm                          library.gsm                              privacy-not.gsm                                  to-hang-up.gsm
account-balance-is.gsm               dir-first.gsm                          lightning.gsm                            privacy-please-dial.gsm                          to-hear-callerid.gsm
accounting.gsm                       dir-firstlast.gsm                      limit-simul-calls.gsm                    privacy-please-stay-on-line-to-be-connected.gsm  to-hear-menu-again.gsm
accounts-payable.gsm                 dir-instr.gsm                          lines-complaining-customers.gsm          privacy-prompt.gsm                               to-hear-msg-again.gsm
...
demo-nomatch.gsm                     kilometer.gsm                          press-pound-save-changes.gsm             to-call-prson-w-sent-msg.gsm                     your-account.gsm
demo-thanks.gsm                      kilometers-per-hour.gsm                press-pound-to-login-star-to-hangup.gsm  to-call-this-number.gsm                          your.gsm
denial-of-service.gsm                knock-knock.gsm                        press-return.gsm                         to-cancel-this-msg.gsm                           your-msg-has-been-saved.gsm
denver.gsm                           knots.gsm                              press-star-cancel.gsm                    to-cancel-wakeup.gsm                             your-msg-is-too-short.gsm
department-administrator.gsm         language.gsm                           press-star.gsm                           to-change-exp-date.gsm                           your-temp-greeting.gsm
department.gsm                       last-error-was.gsm                     press-the-space-bar.gsm                  to-change-your-pin-number.gsm                    you-seem-impatient.gsm
deposit.gsm                          last-num-to-call.gsm                   press-tilde.gsm                          to-collect-voicemail.gsm                         you-sound-cute.gsm
design.gsm                           las-vegas.gsm                          pressure.gsm                             to-compose-a-message.gsm                         you-wish-to-join.gsm
detroit.gsm                          late.gsm                               printing.gsm                             to-confirm-wakeup.gsm                            zip-code.gsm
development.gsm                      later.gsm                              privacy-blacklisted.gsm                  to-dial-by-name.gsm
/dev/pts/1
15:59:53
#service asterisk start
Asterisk PBX is already running. Use restart.
/dev/pts/2
15:59:53
#service asterisk start
Asterisk PBX is already running. Use restart.
/dev/pts/1
16:00:34
#service asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/2
16:00:34
#service asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/1
16:00:40
#service asterisk status
Asterisk PBX is running: 5898
/dev/pts/2
16:00:40
#service asterisk status
Asterisk PBX is running: 5898
/dev/pts/1
16:00:46
#asterisk -r
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux3 (pid = 5898)
linux3*CLI>
linux3*CLI>
/dev/pts/2
16:00:46
#asterisk -r
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux3 (pid = 5898)
linux3*CLI>
linux3*CLI>
/dev/pts/1
16:01:34
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
linux3*CLI> pri show
debug  spans  span
linux3*CLI> pri show sp
spans  span
linux3*CLI> pri show spans
linux3*CLI> pri show span
Usage: pri show span <span>
       Displays PRI Information on a given PRI span
linux3*CLI> quit
Executing last minute cleanups
/dev/pts/2
16:01:34
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
linux3*CLI> pri show
debug  spans  span
linux3*CLI> pri show sp
spans  span
linux3*CLI> pri show spans
linux3*CLI> pri show span
Usage: pri show span <span>
       Displays PRI Information on a given PRI span
linux3*CLI> quit
Executing last minute cleanups
/dev/pts/1
16:03:13
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf': Found
  == Parsing '/etc/asterisk/extconfig.conf': Found
Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux3 (pid = 5898)
Verbosity is at least 3
linux3*CLI>
linux3*CLI>
/dev/pts/2
16:03:13
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf': Found
  == Parsing '/etc/asterisk/extconfig.conf': Found
Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux3 (pid = 5898)
Verbosity is at least 3
linux3*CLI>
linux3*CLI>
/dev/pts/1
16:04:57
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf': Found
  == Parsing '/etc/asterisk/extconfig.conf': Found
Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux3 (pid = 5898)
Verbosity is at least 3
linux3*CLI> show p
parkedcalls  profile
linux3*CLI> show profile
The 'show profile' command is deprecated and will be removed in a future release. Please use 'core show profile' instead.
linux3*CLI> core show profile
linux3*CLI>
/dev/pts/2
16:04:57
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf': Found
  == Parsing '/etc/asterisk/extconfig.conf': Found
Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux3 (pid = 5898)
Verbosity is at least 3
linux3*CLI> show p
parkedcalls  profile
linux3*CLI> show profile
The 'show profile' command is deprecated and will be removed in a future release. Please use 'core show profile' instead.
linux3*CLI> core show profile
linux3*CLI>
/dev/pts/1
16:06:39
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
jb         no         provision  prune      reload     set        show       test       trunk
linux3*CLI> iax2 show
cache         channels      firmware      netstats      peer          peers         provisioning  registry      stats         threads       users
linux3*CLI> iax2 show pee
peers  peer
linux3*CLI> iax2 show peer
Usage: iax2 show peer <name>
       Display details on specific IAX peer
linux3*CLI>
linux3*CLI>
/dev/pts/2
16:06:39
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
jb         no         provision  prune      reload     set        show       test       trunk
linux3*CLI> iax2 show
cache         channels      firmware      netstats      peer          peers         provisioning  registry      stats         threads       users
linux3*CLI> iax2 show pee
peers  peer
linux3*CLI> iax2 show peer
Usage: iax2 show peer <name>
       Display details on specific IAX peer
linux3*CLI>
linux3*CLI>
прошло 13 минут
/dev/pts/1
16:20:16
#vi /etc/asterisk/sip.conf
/dev/pts/2
16:20:16
#vi /etc/asterisk/sip.conf
/dev/pts/1
16:23:08
#grep -v "^\s*;" /etc/asterisk/sip.conf | grep -vx '' | less
/dev/pts/2
16:23:08
#grep -v "^\s*;" /etc/asterisk/sip.conf | grep -vx '' | less
/dev/pts/1
16:23:44
#grep -v "^\s*;" /etc/asterisk/sip.conf | grep -vx '' | less
/dev/pts/2
16:23:44
#grep -v "^\s*;" /etc/asterisk/sip.conf | grep -vx '' | less
/dev/pts/1
16:23:51
#grep -v "^\s*;" /etc/asterisk/sip.conf.orig | grep -vx '' | less
/dev/pts/2
16:23:51
#grep -v "^\s*;" /etc/asterisk/sip.conf.orig | grep -vx '' | less
/dev/pts/1
16:23:51
#cp /etc/asterisk/sip.conf.orig /etc/asterisk/sip.conf

/dev/pts/2
16:23:51
#cp /etc/asterisk/sip.conf.orig /etc/asterisk/sip.conf

/dev/pts/1
16:27:22
#[ ] ]
PING 192.168.103.200 (192.168.103.200) 56(84) bytes of data.
64 bytes from 192.168.103.200: icmp_seq=1 ttl=250 time=68.6 ms
64 bytes from 192.168.103.200: icmp_seq=2 ttl=250 time=67.2 ms
^C
--- 192.168.103.200 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 67.290/67.991/68.692/0.701 ms
/dev/pts/2
16:27:22
#[ ] ]
PING 192.168.103.200 (192.168.103.200) 56(84) bytes of data.
64 bytes from 192.168.103.200: icmp_seq=1 ttl=250 time=68.6 ms
64 bytes from 192.168.103.200: icmp_seq=2 ttl=250 time=67.2 ms
^C
--- 192.168.103.200 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 67.290/67.991/68.692/0.701 ms
/dev/pts/1
16:28:02
#ping 192.168.103.200
PING 192.168.103.200 (192.168.103.200) 56(84) bytes of data.
64 bytes from 192.168.103.200: icmp_seq=1 ttl=250 time=66.5 ms
^X64 bytes from 192.168.103.200: icmp_seq=2 ttl=250 time=60.9 ms
^C
--- 192.168.103.200 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1006ms
rtt min/avg/max/mdev = 60.978/63.780/66.582/2.802 ms
/dev/pts/2
16:28:02
#ping 192.168.103.200
PING 192.168.103.200 (192.168.103.200) 56(84) bytes of data.
64 bytes from 192.168.103.200: icmp_seq=1 ttl=250 time=66.5 ms
^X64 bytes from 192.168.103.200: icmp_seq=2 ttl=250 time=60.9 ms
^C
--- 192.168.103.200 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1006ms
rtt min/avg/max/mdev = 60.978/63.780/66.582/2.802 ms
/dev/pts/1
16:28:06
#ping 192.168.103.200
PING 192.168.103.200 (192.168.103.200) 56(84) bytes of data.
64 bytes from 192.168.103.200: icmp_seq=1 ttl=250 time=60.0 ms
64 bytes from 192.168.103.200: icmp_seq=2 ttl=250 time=60.5 ms
64 bytes from 192.168.103.200: icmp_seq=3 ttl=250 time=66.4 ms
64 bytes from 192.168.103.200: icmp_seq=4 ttl=250 time=63.3 ms
^C
--- 192.168.103.200 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3007ms
rtt min/avg/max/mdev = 60.001/62.611/66.496/2.601 ms
/dev/pts/2
16:28:06
#ping 192.168.103.200
PING 192.168.103.200 (192.168.103.200) 56(84) bytes of data.
64 bytes from 192.168.103.200: icmp_seq=1 ttl=250 time=60.0 ms
64 bytes from 192.168.103.200: icmp_seq=2 ttl=250 time=60.5 ms
64 bytes from 192.168.103.200: icmp_seq=3 ttl=250 time=66.4 ms
64 bytes from 192.168.103.200: icmp_seq=4 ttl=250 time=63.3 ms
^C
--- 192.168.103.200 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3007ms
rtt min/avg/max/mdev = 60.001/62.611/66.496/2.601 ms
/dev/pts/1
16:28:13
#ping 192.168.103.200
PING 192.168.103.200 (192.168.103.200) 56(84) bytes of data.
64 bytes from 192.168.103.200: icmp_seq=1 ttl=250 time=60.2 ms
64 bytes from 192.168.103.200: icmp_seq=2 ttl=250 time=66.5 ms
^C
--- 192.168.103.200 ping statistics ---
3 packets transmitted, 2 received, 33% packet loss, time 2008ms
rtt min/avg/max/mdev = 60.277/63.417/66.558/3.150 ms
/dev/pts/2
16:28:13
#ping 192.168.103.200
PING 192.168.103.200 (192.168.103.200) 56(84) bytes of data.
64 bytes from 192.168.103.200: icmp_seq=1 ttl=250 time=60.2 ms
64 bytes from 192.168.103.200: icmp_seq=2 ttl=250 time=66.5 ms
^C
--- 192.168.103.200 ping statistics ---
3 packets transmitted, 2 received, 33% packet loss, time 2008ms
rtt min/avg/max/mdev = 60.277/63.417/66.558/3.150 ms
/dev/pts/1
16:28:25
#ping 192.168.103.200
PING 192.168.103.200 (192.168.103.200) 56(84) bytes of data.
64 bytes from 192.168.103.200: icmp_seq=1 ttl=250 time=68.8 ms
64 bytes from 192.168.103.200: icmp_seq=2 ttl=250 time=64.6 ms
64 bytes from 192.168.103.200: icmp_seq=3 ttl=250 time=61.0 ms
^C
--- 192.168.103.200 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2008ms
rtt min/avg/max/mdev = 61.058/64.857/68.878/3.209 ms
/dev/pts/2
16:28:25
#ping 192.168.103.200
PING 192.168.103.200 (192.168.103.200) 56(84) bytes of data.
64 bytes from 192.168.103.200: icmp_seq=1 ttl=250 time=68.8 ms
64 bytes from 192.168.103.200: icmp_seq=2 ttl=250 time=64.6 ms
64 bytes from 192.168.103.200: icmp_seq=3 ttl=250 time=61.0 ms
^C
--- 192.168.103.200 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2008ms
rtt min/avg/max/mdev = 61.058/64.857/68.878/3.209 ms
/dev/pts/1
16:29:38
#~
Linux linux3.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 GNU/Linux
/dev/pts/2
16:29:38
#~
Linux linux3.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 GNU/Linux
/dev/pts/1
16:29:43
#vi /etc/asterisk/sip.conf
/dev/pts/2
16:29:43
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-3304.7080.666	2010-10-25 17:30:22.000000000 +0300
+++ /etc/asterisk/sip.conf	2010-10-25 17:34:07.000000000 +0300
@@ -7,3 +7,9 @@
 				
   
 [authentication]
+
+[1301]
+type=friend
+secret=1234
+host=dynamic
+
/dev/pts/1
16:34:37
#ls /etc/asterisk/sip.conf
/etc/asterisk/sip.conf
/dev/pts/2
16:34:37
#ls /etc/asterisk/sip.conf
/etc/asterisk/sip.conf
/dev/pts/1
16:35:00
#ls -lh /etc/asterisk/sip.conf
-rw-r----- 1 root root 396 Окт 25 17:34 /etc/asterisk/sip.conf
/dev/pts/2
16:35:00
#ls -lh /etc/asterisk/sip.conf
-rw-r----- 1 root root 396 Окт 25 17:34 /etc/asterisk/sip.conf
/dev/pts/1
16:35:42
#chown 0777 /etc/asterisk/sip.conf

/dev/pts/2
16:35:42
#chown 0777 /etc/asterisk/sip.conf

/dev/pts/1
16:36:07
#vi /etc/asterisk/sip.conf
/dev/pts/2
16:36:07
#vi /etc/asterisk/sip.conf
/dev/pts/1
16:43:54
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
linux3*CLI> sip show pe
peers  peer
linux3*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
1301/1301                  192.168.103.200  D          5060     Unmonitored
1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 0 offline]
[Oct 25 17:44:37] NOTICE[5915]: chan_sip.c:14441 handle_request_invite: Call from '1301' to extension '1302' rejected because extension not found.
[Oct 25 17:44:55] NOTICE[5915]: chan_sip.c:14441 handle_request_invite: Call from '1301' to extension '1301' rejected because extension not found.
[Oct 25 17:45:05] NOTICE[5915]: chan_sip.c:14441 handle_request_invite: Call from '1301' to extension '1301' rejected because extension not found.
linux3*CLI>
/dev/pts/2
16:43:54
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
linux3*CLI> sip show pe
peers  peer
linux3*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
1301/1301                  192.168.103.200  D          5060     Unmonitored
1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 0 offline]
[Oct 25 17:44:37] NOTICE[5915]: chan_sip.c:14441 handle_request_invite: Call from '1301' to extension '1302' rejected because extension not found.
[Oct 25 17:44:55] NOTICE[5915]: chan_sip.c:14441 handle_request_invite: Call from '1301' to extension '1301' rejected because extension not found.
[Oct 25 17:45:05] NOTICE[5915]: chan_sip.c:14441 handle_request_invite: Call from '1301' to extension '1301' rejected because extension not found.
linux3*CLI>
/dev/pts/1
16:48:17
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
linux3*CLI> pri show span
Usage: pri show span <span>
       Displays PRI Information on a given PRI span
linux3*CLI> sip show pe
peers  peer
linux3*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
1301/1301                  192.168.103.200  D          5060     Unmonitored
1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 0 offline]
linux3*CLI>
/dev/pts/2
16:48:17
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
linux3*CLI> pri show span
Usage: pri show span <span>
       Displays PRI Information on a given PRI span
linux3*CLI> sip show pe
peers  peer
linux3*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
1301/1301                  192.168.103.200  D          5060     Unmonitored
1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 0 offline]
linux3*CLI>
/dev/pts/1
16:50:50
#mv /etc/asterisk/ext{,.orig}
extconfig.conf   extensions.ael   extensions.conf
/dev/pts/2
16:50:50
#mv /etc/asterisk/ext{,.orig}
extconfig.conf   extensions.ael   extensions.conf
/dev/pts/1
16:50:50
#mv /etc/asterisk/extensions.conf{,.orig}

/dev/pts/2
16:50:50
#mv /etc/asterisk/extensions.conf{,.orig}

/dev/pts/1
16:52:36
#chmod 0666/etc/asterisk/extensions.conf
chmod: пропущен операнд после `0666/etc/asterisk/extensions.conf'
Попробуйте `chmod --help' для получения более подробного описания.
/dev/pts/2
16:52:36
#chmod 0666/etc/asterisk/extensions.conf
chmod: пропущен операнд после `0666/etc/asterisk/extensions.conf'
Попробуйте `chmod --help' для получения более подробного описания.
/dev/pts/1
16:52:51
#chmod 0666 /etc/asterisk/extensions.conf

/dev/pts/2
16:52:51
#chmod 0666 /etc/asterisk/extensions.conf

/dev/pts/1
16:58:59
#vi /etc/asterisk/extensions.conf

Файлы

  • /var/lib/dhcp3/dhcpd.leases
  • /var/lib/dhcp3/dhcpd.leases
    >
    # The format of this file is documented in the dhcpd.leases(5) manual page.
    # This lease file was written by isc-dhcp-V3.1.1
    lease 192.168.103.200 {
      starts 1 2010/10/25 13:21:43;
      ends 1 2010/10/25 13:31:43;
      cltt 1 2010/10/25 13:21:43;
      binding state active;
      next binding state free;
      hardware ethernet 00:19:56:fd:71:26;
      uid "\001\000\031V\375q&";
      client-hostname "SEP001956FD7126";
    }
    lease 192.168.103.200 {
      starts 1 2010/10/25 13:26:44;
      ends 1 2010/10/25 13:36:44;
      cltt 1 2010/10/25 13:26:44;
      binding state active;
      next binding state free;
      hardware ethernet 00:19:56:fd:71:26;
      uid "\001\000\031V\375q&";
      client-hostname "SEP001956FD7126";
    }
    lease 192.168.103.200 {
      starts 1 2010/10/25 13:31:44;
      ends 1 2010/10/25 13:41:44;
      cltt 1 2010/10/25 13:31:44;
      binding state active;
      next binding state free;
      hardware ethernet 00:19:56:fd:71:26;
      uid "\001\000\031V\375q&";
      client-hostname "SEP001956FD7126";
    }
    lease 192.168.103.200 {
      starts 1 2010/10/25 13:36:44;
      ends 1 2010/10/25 13:46:44;
      cltt 1 2010/10/25 13:36:44;
      binding state active;
      next binding state free;
      hardware ethernet 00:19:56:fd:71:26;
      uid "\001\000\031V\375q&";
      client-hostname "SEP001956FD7126";
    }
    lease 192.168.103.200 {
      starts 1 2010/10/25 13:41:44;
      ends 1 2010/10/25 13:51:44;
      cltt 1 2010/10/25 13:41:44;
      binding state active;
      next binding state free;
      hardware ethernet 00:19:56:fd:71:26;
      uid "\001\000\031V\375q&";
      client-hostname "SEP001956FD7126";
    }
    lease 192.168.103.200 {
      starts 1 2010/10/25 13:45:54;
      ends 1 2010/10/25 13:55:54;
      cltt 1 2010/10/25 13:45:54;
      binding state active;
      next binding state free;
      hardware ethernet 00:19:56:fd:71:26;
      uid "\001\000\031V\375q&";
      client-hostname "SEP001956FD7126";
    }
    

    Статистика

    Время первой команды журнала15:32:20 2010-10-25
    Время последней команды журнала16:58:59 2010-10-25
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, %17.82
    Процент синтаксически неверно набранных команд, % 0.00
    Суммарное время работы с терминалом *, час 1.44
    Количество командных строк в единицу времени, команда/мин 1.17
    Частота использования команд
    asterisk14|============| 12.39%
    apt-cache10|========| 8.85%
    ping8|=======| 7.08%
    service8|=======| 7.08%
    apt-get8|=======| 7.08%
    ls8|=======| 7.08%
    vi7|======| 6.19%
    sh6|=====| 5.31%
    less6|=====| 5.31%
    cat6|=====| 5.31%
    "6|=====| 5.31%
    grep6|=====| 5.31%
    chmod4|===| 3.54%
    mv4|===| 3.54%
    dpkg2|=| 1.77%
    chown2|=| 1.77%
    cp2|=| 1.77%
    [2|=| 1.77%
    ~2|=| 1.77%
    run-mozilla.sh2|=| 1.77%
    ____
    *) Интервалы неактивности длительностью 30 минут и более не учитываются

    Справка

    Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
    1. В журнал автоматически попадают все команды, данные в любом терминале системы.

    2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

    3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
      $ l s-l
      bash: l: command not found
      

    4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
      $ test 5 -lt 4
      Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

    5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
      $ 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
      

    6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
      # id
      uid=0(root) gid=0(root) Gruppen=0(root)
      

    7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
      $ vi ~/.bashrc
      2a3,5
      >    if [ -f /usr/local/etc/bash_completion ]; then
      >         . /usr/local/etc/bash_completion
      >        fi
      

    8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
      $ patch ~/.bashrc
      В данном случае изменения применяются к файлу ~/.bashrc

    9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

      Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

    10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

    11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

    12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

    13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

    14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

      $ whoami
      
      user
      
      $ #^ Интересно, кто я?
      
      в журнале это будет выглядеть так:
      $ whoami
      
      user
      
      Интересно, кто я?

    15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

      $ whoami
      
      user
      
      $ cat > /dev/null #^ Интересно, кто я?
      
      Программа whoami выводит имя пользователя, под которым 
      мы зарегистрировались в системе.
      -
      Она не может ответить на вопрос о нашем назначении 
      в этом мире.
      
      В журнале это будет выглядеть так:
      $ whoami
      user
      
      Интересно, кто я?
      Программа whoami выводит имя пользователя, под которым
      мы зарегистрировались в системе.

      Она не может ответить на вопрос о нашем назначении
      в этом мире.
      Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

    16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

    17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
    18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
    19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
      1
          2
      3   
          4
      
      Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

    О программе

    LiLaLo (L3) расшифровывается как Live Lab Log.
    Программа разработана для повышения эффективности обучения Unix/Linux-системам.
    (c) Игорь Чубин, 2004-2008

    $Id$