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

Содержание

Журнал

Четверг (03/31/16)

/dev/pts/2
15:22:08
#gedit confbridge.conf
** (gedit:7605): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-RHo80izQKP: Connection refused
** (gedit:7605): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found
(gedit:7605): Gtk-CRITICAL **: gtk_widget_get_parent: assertion 'GTK_IS_WIDGET (widget)' failed
(gedit:7605): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
(gedit:7605): GLib-GObject-CRITICAL **: g_object_freeze_notify: assertion 'G_IS_OBJECT (object)' failed
(gedit:7605): Gtk-CRITICAL **: gtk_widget_has_default: assertion 'GTK_IS_WIDGET (widget)' failed
(gedit:7605): Gtk-CRITICAL **: gtk_widget_get_receives_default: assertion 'GTK_IS_WIDGET (widget)' failed
(gedit:7605): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
(gedit:7605): Gtk-CRITICAL **: gtk_widget_get_display: assertion 'GTK_IS_WIDGET (widget)' failed
(gedit:7605): Gdk-CRITICAL **: gdk_display_get_device_manager: assertion 'GDK_IS_DISPLAY (display)' failed
(gedit:7605): Gdk-CRITICAL **: gdk_device_manager_list_devices: assertion 'GDK_IS_DEVICE_MANAGER (device_manager)' failed
(gedit:7605): Gdk-CRITICAL **: gdk_device_manager_list_devices: assertion 'GDK_IS_DEVICE_MANAGER (device_manager)' failed
(gedit:7605): Gdk-CRITICAL **: gdk_device_manager_list_devices: assertion 'GDK_IS_DEVICE_MANAGER (device_manager)' failed
(gedit:7605): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(gedit:7605): GLib-GObject-CRITICAL **: g_object_notify: assertion 'G_IS_OBJECT (object)' failed
(gedit:7605): Gtk-CRITICAL **: gtk_widget_has_default: assertion 'GTK_IS_WIDGET (widget)' failed
(gedit:7605): GLib-GObject-CRITICAL **: g_object_thaw_notify: assertion 'G_IS_OBJECT (object)' failed
(gedit:7605): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
15:27:57
#gedit extensions.conf
** (gedit:7620): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-RHo80izQKP: Connection refused
** (gedit:7620): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found
(gedit:7620): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:7620): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:7620): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
** (gedit:7620): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported
** (gedit:7620): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported
(gedit:7620): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:7620): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:7620): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
** (gedit:7620): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported
** (gedit:7620): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported
(gedit:7620): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:7620): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:7620): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
** (gedit:7620): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported
** (gedit:7620): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported
15:29:51
#gedit confbridge.conf
** (gedit:7641): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-RHo80izQKP: Connection refused
** (gedit:7641): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found
15:32:41
#gedit extensions.conf
** (gedit:7667): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-RHo80izQKP: Connection refused
** (gedit:7667): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found
(gedit:7667): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:7667): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:7667): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
** (gedit:7667): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported
** (gedit:7667): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported
15:35:41
#gedit /usr/local/bin/mass-call.sh
** (gedit:7707): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-RHo80izQKP: Connection refused
** (gedit:7707): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found
(gedit:7707): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:7707): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:7707): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
** (gedit:7707): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported
** (gedit:7707): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported
(gedit:7707): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:7707): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:7707): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
** (gedit:7707): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported
** (gedit:7707): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported
(gedit:7707): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:7707): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:7707): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
** (gedit:7707): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported
** (gedit:7707): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported

Пятница (04/01/16)

/dev/pts/0
09:09:09
#clear

09:09:13
#cd /etc/asterisk/

/dev/pts/2
09:10:06
#cd /etc/asterisk/

/dev/pts/4
09:10:54
#cd /etc/asterisk/

09:11:13
#clear

/dev/pts/0
09:11:23
#clear

/dev/pts/2
09:11:29
#clear

прошло 17 минут
/dev/pts/0
09:28:36
#cd /etc/asterisk/

/dev/pts/2
09:28:44
#cd /etc/asterisk/

/dev/pts/4
09:28:49
#cd /etc/asterisk/

09:28:53
#clear

/dev/pts/0
09:28:58
#clear

/dev/pts/2
09:29:02
#clear

09:29:05
#gedit extensions.conf
** (gedit:9735): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-Eeni7cJCdH: Connection refused
/dev/pts/4
09:29:07
#service asterisk restart

/dev/pts/0
09:29:11
#cd /dev/

09:30:04
#ls -la
total 4
drwxr-xr-x  19 root root        3280 апр  1 10:26 .
drwxr-xr-x  22 root root        4096 мар 28 12:27 ..
crw-rw----   1 root video    10, 175 апр  1 09:54 agpgart
crw-------   1 root root     10, 235 апр  1 09:54 autofs
drwxr-xr-x   2 root root         120 апр  1 09:54 block
drwxr-xr-x   2 root root          80 апр  1 09:54 bsg
crw-------   1 root root     10, 234 апр  1 09:54 btrfs-control
drwxr-xr-x   3 root root          60 апр  1 09:54 bus
lrwxrwxrwx   1 root root           3 апр  1 09:54 cdrom -> sr0
...
crw-rw----   1 root tty       7, 135 апр  1 09:54 vcsa7
drwxr-xr-x   2 root root          60 апр  1 09:54 vfio
crw-------   1 root root     10,  63 апр  1 09:54 vga_arbiter
crw-------   1 root root     10, 137 апр  1 09:54 vhci
crw-------   1 root root     10, 238 апр  1 09:54 vhost-net
crw-------   1 root root     10, 130 апр  1 09:54 watchdog
crw-------   1 root root    253,   0 апр  1 09:54 watchdog0
crw-------   1 root root    253,   1 апр  1 09:54 watchdog1
prw-r-----   1 root adm            0 апр  1 09:54 xconsole
crw-rw-rw-   1 root root      1,   5 апр  1 09:54 zero
09:30:06
#cd /usr/src

09:35:16
#lsusb
Bus 002 Device 003: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 046d:c05b Logitech, Inc. M-U0004 810-001317 [B110 Optical USB Mouse]
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
09:35:20
#sudo apt-get install git-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  git git-man liberror-perl rsync
Suggested packages:
  git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
  git git-core git-man liberror-perl rsync
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
...
Preparing to unpack .../rsync_3.1.1-3_amd64.deb ...
Unpacking rsync (3.1.1-3) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for systemd (215-17+deb8u3) ...
Setting up liberror-perl (0.17-1.1) ...
Setting up git-man (1:2.1.4-2.1+deb8u2) ...
Setting up git (1:2.1.4-2.1+deb8u2) ...
Setting up git-core (1:2.1.4-2.1+deb8u2) ...
Setting up rsync (3.1.1-3) ...
Processing triggers for systemd (215-17+deb8u3) ...
09:39:54
#git clone https://github.com/bg111/asterisk-chan-dongle
Cloning into 'asterisk-chan-dongle'...
remote: Counting objects: 273, done.
remote: Total 273 (delta 0), reused 0 (delta 0), pack-reused 273
Receiving objects: 100% (273/273), 161.49 KiB | 0 bytes/s, done.
Resolving deltas: 100% (131/131), done.
Checking connectivity... done.
09:45:42
#pwd
/usr/src
09:45:45
#apt-get install auto
auto-07p                      autodir                       autogrid-test                 automysqlbackup
auto-apt                      autodns-dhcp                  auto-install-el               autopkgtest
autoclass                     autodock                      autojump                      autopoint
auto-complete-el              autodock-getdata              autokey-common                autopostgresqlbackup
autoconf                      autodock-test                 autokey-gtk                   autoproject
autoconf2.13                  autodock-vina                 autokey-qt                    autopsy
autoconf2.59                  autofs                        autolog                       autoradio
autoconf2.64                  autofs5                       automake                      autorenamer
autoconf-archive              autofs5-hesiod                automake1.11                  autorevision
autoconf-dickey               autofs5-ldap                  automoc                       autorun4linuxcd
autoconf-doc                  autofs-hesiod                 auto-multiple-choice          autossh
autoconf-gl-macros            autofs-ldap                   auto-multiple-choice-common   autotalent
autocutsel                    autogen                       auto-multiple-choice-doc      autotools-dev
autodep8                      autogen-doc                   auto-multiple-choice-doc-pdf  autotrash
autodia                       autogrid                      automx
09:45:45
#apt-get install autoc
autoclass           autoconf2.13        autoconf2.64        autoconf-dickey     autoconf-gl-macros
autoconf            autoconf2.59        autoconf-archive    autoconf-doc        autocutsel
09:45:45
#apt-get install autoc
autoclass           autoconf2.13        autoconf2.64        autoconf-dickey     autoconf-gl-macros
autoconf            autoconf2.59        autoconf-archive    autoconf-doc        autocutsel
09:45:45
#apt-get install autoconf
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  automake autotools-dev libsigsegv2 m4
Suggested packages:
  autoconf-archive gnu-standards autoconf-doc libtool gettext
The following NEW packages will be installed:
  autoconf automake autotools-dev libsigsegv2 m4
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
...
Preparing to unpack .../automake_1%3a1.14.1-4_all.deb ...
Unpacking automake (1:1.14.1-4) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up libsigsegv2:amd64 (2.10-4+b1) ...
Setting up m4 (1.4.17-4) ...
Setting up autoconf (2.69-8) ...
Setting up autotools-dev (20140911.1) ...
Setting up automake (1:1.14.1-4) ...
update-alternatives: using /usr/bin/automake-1.14 to provide /usr/bin/automake (automake) in auto mode
Processing triggers for libc-bin (2.19-18+deb8u3) ...
прошло 12 минут
09:58:40
#pwd
/usr/src
09:58:41
#aclocal
aclocal: error: 'configure.ac' is required
09:58:48
#cd asterisk-chan-dongle/

09:59:14
#aclocal
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
09:59:16
#autoconf

09:59:53
#automake -a
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:50: installing './compile'
configure.in:6: installing './config.guess'
configure.in:6: installing './config.sub'
configure.in:7: installing './install-sh'
configure.in:7: installing './missing'
automake: error: no 'Makefile.am' found for any configure output
10:00:03
#./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
...
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking whether asterisk.h in ../include... no
checking whether asterisk.h in /usr/include... no
checking whether asterisk.h in /usr/local/include... no
checking whether asterisk.h in /opt/local/include... no
configure: error: Can't find "asterisk.h"
10:00:30
#apt-get install asterisk-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  asterisk-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 791 kB of archives.
After this operation, 2 229 kB of additional disk space will be used.
Get:1 http://192.168.40.1:9999/debian/ jessie/main asterisk-dev all 1:11.13.1~dfsg-2 [791 kB]
Fetched 791 kB in 0s (35,8 MB/s)
Selecting previously unselected package asterisk-dev.
(Reading database ... 105598 files and directories currently installed.)
Preparing to unpack .../asterisk-dev_1%3a11.13.1~dfsg-2_all.deb ...
Unpacking asterisk-dev (1:11.13.1~dfsg-2) ...
Setting up asterisk-dev (1:11.13.1~dfsg-2) ...
10:01:17
#./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
...
checking for strcasecmp... yes
checking for strchr... yes
checking for strncasecmp... yes
checking for strtol... yes
checking for realpath... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
10:01:22
#make -g 2
make: invalid option -- 'g'
Usage: make [options] [target] ...
Options:
  -b, -m                      Ignored for compatibility.
  -B, --always-make           Unconditionally make all targets.
  -C DIRECTORY, --directory=DIRECTORY
                              Change to DIRECTORY before doing anything.
  -d                          Print lots of debugging information.
  --debug[=FLAGS]             Print various types of debugging information.
  -e, --environment-overrides
...
  -t, --touch                 Touch targets instead of remaking them.
  --trace                     Print tracing information.
  -v, --version               Print the version number of make and exit.
  -w, --print-directory       Print the current directory.
  --no-print-directory        Turn off -w, even if it was turned on implicitly.
  -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
                              Consider FILE to be infinitely new.
  --warn-undefined-variables  Warn when an undefined variable is referenced.
This program built for x86_64-pc-linux-gnu
Report bugs to <bug-make@gnu.org>
10:02:23
#make
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT app.o -MF .app.o.d -MP  -o app.o -c app.c
In file included from app.c:21:0:
/usr/include/asterisk/version.h:1:2: error: #error "Do not include 'asterisk/version.h'; use 'asterisk/ast_version.h' instead."
 #error "Do not include 'asterisk/version.h'; use 'asterisk/ast_version.h' instead."
  ^
app.c: In function ‘app_register’:
app.c:162:43: warning: passing argument 2 of ‘ast_register_application2’ from incompatible pointer type
   ast_register_application2 (dca[i].name, (app_func_t)(dca[i].func), dca[i].synopsis, dca[i].desc, self_module());
                                           ^
In file included from app.c:20:0:
/usr/include/asterisk/module.h:458:5: note: expected ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int (*)(struct ast_channel *, void *)’
 int ast_register_application2(const char *app, int (*execute)(struct ast_channel *, const char *),
     ^
Makefile:65: recipe for target 'app.o' failed
make: *** [app.o] Error 1
10:02:29
#cd ..

10:05:24
#ls -la
total 12
drwxr-xr-x  3 root root 4096 апр  1 10:45 .
drwxr-xr-x 10 root root 4096 мар 28 12:23 ..
drwxr-xr-x  8 root root 4096 апр  1 11:01 asterisk-chan-dongle
10:05:33
#rm -rf asterisk-chan-dongle/

10:05:47
#ls

10:08:15
#cd asterisk-chan-dongle/

10:08:17
#./contrib/
bash: ./contrib/: Is a directory
10:08:20
#./configure
bash: ./configure: No such file or directory
10:08:26
#ls
app.c         at_queue.c     BUGS           char_conv.h   COPYRIGHT.txt  export.h     manager.c    mutils.h      ringbuffer.c  tools
app.h         at_queue.h     chan_dongle.c  cli.c         cpvt.c         helpers.c    manager.h    pdiscovery.c  ringbuffer.h
at_command.c  at_read.c      chan_dongle.h  cli.h         cpvt.h         helpers.h    memmem.c     pdiscovery.h  single.c
at_command.h  at_read.h      channel.c      config.h.in   dc_config.c    INSTALL      memmem.h     pdu.c         stamp-h.in
at_parse.c    at_response.c  channel.h      configure.in  dc_config.h    LICENSE.txt  mixbuffer.c  pdu.h         test
at_parse.h    at_response.h  char_conv.c    contrib       etc            Makefile.in  mixbuffer.h  README.txt    TODO.txt
10:08:30
#cd ..

10:09:01
#rm -rf asterisk-chan-dongle/

10:09:06
#wget http://miho.org.ua/download/asterisk/dongle-asterisk
--2016-04-01 11:09:13--  http://miho.org.ua/download/asterisk/dongle-asterisk
Resolving miho.org.ua (miho.org.ua)... 144.76.98.123
Connecting to miho.org.ua (miho.org.ua)|144.76.98.123|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-04-01 11:09:13 ERROR 404: Not Found.
10:09:14
#wget http://miho.org.ua/download/asterisk/dongle-asterisk-11-patched.tar.gz
--2016-04-01 11:09:31--  http://miho.org.ua/download/asterisk/dongle-asterisk-11-patched.tar.gz
Resolving miho.org.ua (miho.org.ua)... 144.76.98.123
Connecting to miho.org.ua (miho.org.ua)|144.76.98.123|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 314575 (307K) [application/x-gzip]
Saving to: ‘dongle-asterisk-11-patched.tar.gz’
dongle-asterisk-11-patched.tar.gz 100%[===============================================================>] 307,20K   904KB/s   in 0,3s
2016-04-01 11:09:32 (904 KB/s) - ‘dongle-asterisk-11-patched.tar.gz’ saved [314575/314575]
10:09:32
#tar -xvf dongle-asterisk-11-patched.tar.gz
dongle-asterisk-11-patched/
dongle-asterisk-11-patched/memmem.c
dongle-asterisk-11-patched/BUGS
dongle-asterisk-11-patched/at_parse.c
dongle-asterisk-11-patched/manager.c
dongle-asterisk-11-patched/configure.in
dongle-asterisk-11-patched/ringbuffer.c
dongle-asterisk-11-patched/at_response.c
dongle-asterisk-11-patched/missing
dongle-asterisk-11-patched/helpers.h
...
dongle-asterisk-11-patched/Makefile.in
dongle-asterisk-11-patched/LICENSE.txt
dongle-asterisk-11-patched/dc_config.c
dongle-asterisk-11-patched/channel.c
dongle-asterisk-11-patched/install-sh
dongle-asterisk-11-patched/dc_config.h
dongle-asterisk-11-patched/single.c
dongle-asterisk-11-patched/aclocal.m4
dongle-asterisk-11-patched/config.guess
dongle-asterisk-11-patched/config.h
10:09:42
#ls
dongle-asterisk-11-patched  dongle-asterisk-11-patched.tar.gz
10:09:43
#cd dongle-asterisk-11-patched/

10:09:50
#ls
aclocal.m4    at_queue.h     channel.c     config.h.in    cpvt.c       INSTALL      memmem.h      pdu.h         TODO.txt
app.c         at_read.c      channel.h     config.log     cpvt.h       install-sh   missing       README.txt    tools
app.h         at_read.h      char_conv.c   config.status  dc_config.c  LICENSE.txt  mixbuffer.c   ringbuffer.c
at_command.c  at_response.c  char_conv.h   config.sub     dc_config.h  Makefile     mixbuffer.h   ringbuffer.h
at_command.h  at_response.h  cli.c         configure      etc          Makefile.in  mutils.h      single.c
at_parse.c    BUGS           cli.h         configure.in   export.h     manager.c    pdiscovery.c  stamp-h1
at_parse.h    chan_dongle.c  config.guess  contrib        helpers.c    manager.h    pdiscovery.h  stamp-h.in
at_queue.c    chan_dongle.h  config.h      COPYRIGHT.txt  helpers.h    memmem.c     pdu.c         test
10:09:52
#aclocal
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
10:10:09
#autoconf

10:10:16
#automake -a
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:50: installing './compile'
configure.in:6: installing './config.guess'
configure.in:6: installing './config.sub'
configure.in:7: installing './install-sh'
configure.in:7: installing './missing'
automake: error: no 'Makefile.am' found for any configure output
10:10:27
#./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
...
checking for strchr... yes
checking for strncasecmp... yes
checking for strtol... yes
checking for realpath... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
10:10:34
#make
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT app.o -MF .app.o.d -MP  -o app.o -c app.c
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_command.o -MF .at_command.o.d -MP  -o at_command.o -c at_command.c
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_parse.o -MF .at_parse.o.d -MP  -o at_parse.o -c at_parse.c
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_queue.o -MF .at_queue.o.d -MP  -o at_queue.o -c at_queue.c
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_read.o -MF .at_read.o.d -MP  -o at_read.o -c at_read.c
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_response.o -MF .at_response.o.d -MP  -o at_response.o -c at_response.c
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT chan_dongle.o -MF .chan_dongle.o.d -MP  -o chan_dongle.o -c chan_dongle.c
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT channel.o -MF .channel.o.d -MP  -o channel.o -c channel.c
channel.c:1401:2: warning: initialization from incompatible pointer type
  .requester  = channel_request,
...
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT helpers.o -MF .helpers.o.d -MP  -o helpers.o -c helpers.c
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT manager.o -MF .manager.o.d -MP  -o manager.o -c manager.c
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT memmem.o -MF .memmem.o.d -MP  -o memmem.o -c memmem.c
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT ringbuffer.o -MF .ringbuffer.o.d -MP  -o ringbuffer.o -c ringbuffer.c
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT cpvt.o -MF .cpvt.o.d -MP  -o cpvt.o -c cpvt.c
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT dc_config.o -MF .dc_config.o.d -MP  -o dc_config.o -c dc_config.c
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT pdu.o -MF .pdu.o.d -MP  -o pdu.o -c pdu.c
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT mixbuffer.o -MF .mixbuffer.o.d -MP  -o mixbuffer.o -c mixbuffer.c
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H  -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT pdiscovery.o -MF .pdiscovery.o.d -MP  -o pdiscovery.o -c pdiscovery.c
gcc  -shared -Xlinker -x -o chan_dongle.so app.o at_command.o at_parse.o at_queue.o at_read.o at_response.o chan_dongle.o channel.o char_conv.o cli.o helpers.o manager.o memmem.o ringbuffer.o cpvt.o dc_config.o pdu.o mixbuffer.o pdiscovery.o
10:10:46
#make install
./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
strip chan_dongle.so
/usr/bin/install -c -m 755 chan_dongle.so /usr/lib/asterisk/modules
10:14:05
#cd /usr/src/

10:22:51
#ls
dongle-asterisk-11-patched  dongle-asterisk-11-patched.tar.gz
10:22:52
#cd dongle-asterisk-11-patched/

10:22:59
#ls
aclocal.m4    at_queue.c      BUGS            char_conv.o    config.sub     dc_config.o  Makefile.in  mixbuffer.o   ringbuffer.h
app.c         at_queue.h      chan_dongle.c   cli.c          configure      etc          manager.c    mutils.h      ringbuffer.o
app.h         at_queue.o      chan_dongle.h   cli.h          configure.in   export.h     manager.h    pdiscovery.c  single.c
app.o         at_read.c       chan_dongle.o   cli.o          contrib        helpers.c    manager.o    pdiscovery.h  stamp-h1
at_command.c  at_read.h       chan_dongle.so  compile        COPYRIGHT.txt  helpers.h    memmem.c     pdiscovery.o  stamp-h.in
at_command.h  at_read.o       channel.c       config.guess   cpvt.c         helpers.o    memmem.h     pdu.c         test
at_command.o  at_response.c   channel.h       config.h       cpvt.h         INSTALL      memmem.o     pdu.h         TODO.txt
at_parse.c    at_response.h   channel.o       config.h.in    cpvt.o         install-sh   missing      pdu.o         tools
at_parse.h    at_response.o   char_conv.c     config.log     dc_config.c    LICENSE.txt  mixbuffer.c  README.txt
at_parse.o    autom4te.cache  char_conv.h     config.status  dc_config.h    Makefile     mixbuffer.h  ringbuffer.c
10:23:00
#cd etc/

10:23:02
#cp dongle.conf /etc/asterisk/

10:23:27
#cd /etc/asterisk/

10:23:32
#gedit dongle.conf
** (gedit:8751): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-Eeni7cJCdH: Connection refused
** (gedit:8751): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found
(gedit:8751): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:8751): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:8751): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
** (gedit:8751): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported
** (gedit:8751): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported
10:24:06
#gedit dongle.conf
** (gedit:8863): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-Eeni7cJCdH: Connection refused
** (gedit:8863): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found
/dev/pts/4
10:24:27
#asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk4 (pid = 8802)
[Apr  1 11:24:42] ERROR[8860]: at_response.c:364 at_response_error: [dongle0] Getting IMSI number failed
[Apr  1 11:24:57] ERROR[8862]: at_response.c:364 at_response_error: [dongle0] Getting IMSI number failed
[Apr  1 11:25:12] ERROR[8871]: at_response.c:364 at_response_error: [dongle0] Getting IMSI number failed
[Apr  1 11:25:27] ERROR[8872]: at_response.c:364 at_response_error: [dongle0] Getting IMSI number failed
asterisk4*CLI> exit
Asterisk cleanly ending (0).
Executing last minute cleanups
10:25:30
#asterisk -rvvv
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk4 (pid = 8802)
    -- [dongle0] Trying to connect on /dev/ttyUSB2...
    -- [dongle0] Dongle has connected, initializing...
...
  == Unregistered application 'MessageSend'
  == Manager unregistered action MessageSend
  == Manager unregistered action DBGet
  == Manager unregistered action DBPut
  == Manager unregistered action DBDel
  == Manager unregistered action DBDelTree
asterisk4*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/8
10:26:22
#vim /etc/asterisk/dongle.conf
10:26:44
#~

/dev/pts/4
10:26:49
#service asterisk restart

/dev/pts/8
10:26:50
#asterisk -rvvv
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk4 (pid = 9023)
asterisk4*CLI>
asterisk4*CLI> dongle s
...
    -- [dongle0] Error initializing Dongle
    -- [dongle0] Dongle has disconnected
    -- [dongle0] Trying to connect on /dev/ttyUSB2...
    -- [dongle0] Dongle has connected, initializing...
[Apr  1 11:27:19] ERROR[9097]: at_response.c:364 at_response_error: [dongle0] Getting IMSI number failed
    -- [dongle0] Error initializing Dongle
    -- [dongle0] Dongle has disconnected
asterisk4*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
10:27:24
#less /var/log/messages
10:27:40
#less /var/log/daemon.log
10:27:46
#less /var/log/daemon.log
/dev/pts/0
10:34:48
#cd /usr/src/dongle-asterisk-11-patched/et
bash: cd: /usr/src/dongle-asterisk-11-patched/et: No such file or directory
/dev/pts/4
10:34:57
#aterisk -rvvv
bash: aterisk: command not found
10:35:04
#asterisk -rvvv
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk4 (pid = 9275)
    -- [dongle0] Trying to connect on /dev/ttyUSB2...
    -- [dongle0] Dongle has connected, initializing...
...
[Apr  1 11:40:05] WARNING[9346][C-00000000]: channel.c:1309 __ast_queue_frame: Exceptionally long voice queue length queuing to Local/ussd@default-00000000;2
[Apr  1 11:40:07] WARNING[9346][C-00000000]: channel.c:1309 __ast_queue_frame: Exceptionally long voice queue length queuing to Local/ussd@default-00000000;2
[Apr  1 11:40:08] WARNING[9346][C-00000000]: channel.c:1309 __ast_queue_frame: Exceptionally long voice queue length queuing to Local/ussd@default-00000000;2
[Apr  1 11:40:09] WARNING[9346][C-00000000]: channel.c:1309 __ast_queue_frame: Exceptionally long voice queue length queuing to Local/ussd@default-00000000;2
[Apr  1 11:40:10] WARNING[9346][C-00000000]: channel.c:1309 __ast_queue_frame: Exceptionally long voice queue length queuing to Local/ussd@default-00000000;2
[Apr  1 11:40:12] WARNING[9346][C-00000000]: channel.c:1309 __ast_queue_frame: Exceptionally long voice queue length queuing to Local/ussd@default-00000000;2
asterisk4*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
10:40:12
#asterisk -rvvv
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk4 (pid = 9275)
[Apr  1 11:40:14] WARNING[9346][C-00000000]: channel.c:1309 __ast_queue_frame: Exceptionally long voice queue length queuing to Local/ussd@default-00000000;2
[Apr  1 11:40:16] WARNING[9346][C-00000000]: channel.c:1309 __ast_queue_frame: Exceptionally long voice queue length queuing to Local/ussd@default-00000000;2
...
[Apr  1 11:40:44] WARNING[9346][C-00000000]: channel.c:1309 __ast_queue_frame: Exceptionally long voice queue length queuing to Local/ussd@default-00000000;2
[Apr  1 11:40:45] WARNING[9346][C-00000000]: channel.c:1309 __ast_queue_frame: Exceptionally long voice queue length queuing to Local/ussd@default-00000000;2
[Apr  1 11:40:46] WARNING[9346][C-00000000]: channel.c:1309 __ast_queue_frame: Exceptionally long voice queue length queuing to Local/ussd@default-00000000;2
[Apr  1 11:40:48] WARNING[9346][C-00000000]: channel.c:1309 __ast_queue_frame: Exceptionally long voice queue length queuing to Local/ussd@default-00000000;2
[Apr  1 11:40:49] WARNING[9346][C-00000000]: channel.c:1309 __ast_queue_frame: Exceptionally long voice queue length queuing to Local/ussd@default-00000000;2
[Apr  1 11:40:50] WARNING[9346][C-00000000]: channel.c:1309 __ast_queue_frame: Exceptionally long voice queue length queuing to Local/ussd@default-00000000;2
[Apr  1 11:40:51] WARNING[9346][C-00000000]: channel.c:1309 __ast_queue_frame: Exceptionally long voice queue length queuing to Local/ussd@default-00000000;2
asterisk4*CLI> exit
Asterisk cleanly ending (0).
Executing last minute cleanups
10:40:52
#service asterisk restart

10:40:56
#asterisk -rvvv
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on asterisk4 (pid = 9386)
asterisk4*CLI> dongle show devic
device   devices
...
[dongle0] SMS queued for send with id 0x7f6e4c012c70
    -- [dongle0] Successfully sent SMS message 0x7f6e4c012c70
[Apr  1 12:34:49] NOTICE[9433]: at_response.c:257 at_response_ok: [dongle0] Successfully sent SMS message 0x7f6e4c012c70
[Apr  1 15:31:00] ERROR[9433]: chan_dongle.c:414 do_monitor_phone: [dongle0] Lost connection to Dongle
    -- [dongle0] Dongle has disconnected
    -- [dongle0] Trying to connect on /dev/ttyUSB2...
[Apr  1 15:31:11] WARNING[9432]: chan_dongle.c:218 opentty: unable to open /dev/ttyUSB2: No such file or directory
asterisk4*CLI> exit
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/0
10:43:59
#cd /usr/src/dongle-asterisk-11-patched/etc/

10:44:02
#ls
dongle.conf  extensions.conf
10:44:04
#gedit dongle.conf
** (gedit:9474): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-Eeni7cJCdH: Connection refused
** (gedit:9474): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found
(gedit:9474): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:9474): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:9474): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
** (gedit:9474): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported
** (gedit:9474): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported
10:45:12
#gedit extensions.conf
** (gedit:9491): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-Eeni7cJCdH: Connection refused
** (gedit:9491): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found
(gedit:9491): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:9491): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:9491): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
** (gedit:9491): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported
** (gedit:9491): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported
(gedit:9491): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
** (gedit:9491): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported
** (gedit:9491): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported
10:46:37
#gedit dongle.conf
** (gedit:9512): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-Eeni7cJCdH: Connection refused
** (gedit:9512): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found
(gedit:9512): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:9512): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:9512): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
** (gedit:9512): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported
** (gedit:9512): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported
10:49:11
#gedit dongle.conf
** (gedit:9642): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-Eeni7cJCdH: Connection refused
** (gedit:9642): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found
/dev/pts/8
10:50:31
#vim /etc/asterisk/dongle.conf
/dev/pts/0
10:51:01
#cd /etc/asterisk/

10:51:05
#gedit dongle.conf
** (gedit:9665): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-Eeni7cJCdH: Connection refused
** (gedit:9665): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found
(gedit:9665): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:9665): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
(gedit:9665): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
** (gedit:9665): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported
** (gedit:9665): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported
10:51:29
#gedit dongle.conf
** (gedit:9682): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-Eeni7cJCdH: Connection refused
** (gedit:9682): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found
10:52:14
#gedit extensions.conf
** (gedit:9702): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-Eeni7cJCdH: Connection refused
** (gedit:9702): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found
10:52:30
#cd -
/usr/src/dongle-asterisk-11-patched/etc
10:52:36
#gedit extensions.conf
** (gedit:9723): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-Eeni7cJCdH: Connection refused
** (gedit:9723): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found

Статистика

Время первой команды журнала15:22:08 2016- 3-31
Время последней команды журнала10:52:36 2016- 4- 1
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, % 8.91
Процент синтаксически неверно набранных команд, % 1.98
Суммарное время работы с терминалом *, час 1.95
Количество командных строк в единицу времени, команда/мин 0.86
Частота использования команд
cd21|====================| 20.59%
gedit16|===============| 15.69%
ls9|========| 8.82%
clear7|======| 6.86%
asterisk6|=====| 5.88%
apt-get6|=====| 5.88%
configure4|===| 3.92%
make4|===| 3.92%
service3|==| 2.94%
less3|==| 2.94%
aclocal3|==| 2.94%
autoconf2|=| 1.96%
wget2|=| 1.96%
automake2|=| 1.96%
pwd2|=| 1.96%
vim2|=| 1.96%
rm2|=| 1.96%
sudo1|| 0.98%
cp1|| 0.98%
lsusb1|| 0.98%
git1|| 0.98%
~1|| 0.98%
aterisk1|| 0.98%
./contrib/1|| 0.98%
tar1|| 0.98%
____
*) Интервалы неактивности длительностью 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$