/l3/users/alexv/sl-voip-2016-03/asterisk4.unix.sl/root :1 :2 |
|
#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 |
#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 |
#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 |
#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 |
#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 |
#cd /etc/asterisk/
|
#clear
|
#clear
|
#gedit extensions.conf
** (gedit:9735): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-Eeni7cJCdH: Connection refused |
#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 |
#cd /usr/src
|
#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 |
#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) ... |
#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. |
#pwd
/usr/src |
#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 |
#apt-get install autoc
autoclass autoconf2.13 autoconf2.64 autoconf-dickey autoconf-gl-macros autoconf autoconf2.59 autoconf-archive autoconf-doc autocutsel |
#apt-get install autoc
autoclass autoconf2.13 autoconf2.64 autoconf-dickey autoconf-gl-macros autoconf autoconf2.59 autoconf-archive autoconf-doc autocutsel |
#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) ... |
#pwd
/usr/src |
#aclocal
aclocal: error: 'configure.ac' is required |
#cd asterisk-chan-dongle/
|
#aclocal
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' |
#autoconf
|
#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 |
#./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" |
#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) ... |
#./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 |
#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> |
#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 |
#cd ..
|
#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 |
#rm -rf asterisk-chan-dongle/
|
#ls
|
#cd asterisk-chan-dongle/
|
#./contrib/
bash: ./contrib/: Is a directory |
#./configure
bash: ./configure: No such file or directory |
#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 |
#cd ..
|
#rm -rf asterisk-chan-dongle/
|
#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. |
#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] |
#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 |
#ls
dongle-asterisk-11-patched dongle-asterisk-11-patched.tar.gz |
#cd dongle-asterisk-11-patched/
|
#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 |
#aclocal
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' |
#autoconf
|
#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 |
#./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 |
#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 |
#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 |
#cd /usr/src/
|
#ls
dongle-asterisk-11-patched dongle-asterisk-11-patched.tar.gz |
#cd dongle-asterisk-11-patched/
|
#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 |
#cd etc/
|
#cp dongle.conf /etc/asterisk/
|
#cd /etc/asterisk/
|
#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 |
#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 |
#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 |
#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 |
#~
|
#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 |
#less /var/log/messages
|
#less /var/log/daemon.log
|
#less /var/log/daemon.log
|
#cd /usr/src/dongle-asterisk-11-patched/et
bash: cd: /usr/src/dongle-asterisk-11-patched/et: No such file or directory |
#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 |
#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 |
#service asterisk restart
|
#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 |
#ls
dongle.conf extensions.conf |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#cd -
/usr/src/dongle-asterisk-11-patched/etc |
#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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008