/l3/users/alexv/sl-voip-2016-03/asterisk4.unix.sl/user :1 :2 :3 |
|
$sox -t wav quenn.wav -r 8000 -c1 -t queen.gsm
sox: SoX v14.4.1 sox FAIL sox: missing filename Usage summary: [gopts] [[fopts] infile]... [fopts] outfile [effect [effopt]]... SPECIAL FILENAMES (infile, outfile): - Pipe/redirect input/output (stdin/stdout); may need -t -d, --default-device Use the default audio device (where available) -n, --null Use the `null' file handler; e.g. with synth effect -p, --sox-pipe Alias for `-t sox -' SPECIAL FILENAMES (infile only): "|program [options] ..." Pipe input from external program (where supported) ... --add-comment TEXT Append output file comment --comment TEXT Specify comment text for the output file --comment-file FILENAME File containing comment text for the output file --no-glob Don't `glob' wildcard match the following filename AUDIO FILE FORMATS: 8svx aif aifc aiff aiffc al amb amr-nb amr-wb anb au avr awb caf cdda cdr cvs cvsd cvu dat dvms f32 f4 f64 f8 fap flac fssd gsm gsrt hcom htk ima ircam la lpc lpc10 lu mat mat4 mat5 maud nist ogg paf prc pvf raw s1 s16 s2 s24 s3 s32 s4 s8 sb sd2 sds sf sl sln smp snd sndfile sndr sndt sou sox sph sw txw u1 u16 u2 u24 u3 u32 u4 u8 ub ul uw vms voc vorbis vox w64 wav wavpcm wv wv PLAYLIST FORMATS: m3u pls AUDIO DEVICE DRIVERS: alsa EFFECTS: allpass band bandpass bandreject bass bend biquad chorus channels compand contrast dcshift deemph delay dither divide+ downsample earwax echo echos equalizer fade fir firfit+ flanger gain highpass hilbert input# ladspa loudness lowpass mcompand mixer* noiseprof noisered norm oops output# overdrive pad phaser pitch rate remix repeat reverb reverse riaa silence sinc spectrogram speed splice * Deprecated effect + Experimental effect # LibSoX-only effect EFFECT OPTIONS (effopts): effect dependent; see --help-effect |
$ls
asterisk-core-sounds-ja-gsm-current.tar.gz queen.gsm queen.mp3 quenn.wav |
$ls -la
total 56928 drwxr-xr-x 2 user user 4096 Mar 30 14:57 . drwxr-xr-x 21 user user 4096 Mar 30 14:37 .. -rw-r--r-- 1 user user 2508559 Mar 30 14:32 asterisk-core-sounds-ja-gsm-current.tar.gz -rw-r--r-- 1 user user 437448 Mar 30 14:57 queen.gsm -rw-r--r-- 1 user user 8564979 Mar 30 14:50 queen.mp3 -rw-r--r-- 1 user user 46766636 Mar 30 14:52 quenn.wav |
$cd /etc/asterisk/
|
$ls
acl.conf config_test.conf muted.conf adsi.conf console.conf ooh323.conf agents.conf dbsep.conf osp.conf alarmreceiver.conf dnsmgr.conf oss.conf alsa.conf dsp.conf phone.conf amd.conf dundi.conf phoneprov.conf app_mysql.conf enum.conf queuerules.conf app_skel.conf extconfig.conf queues.conf asterisk.adsi extensions.ael res_config_mysql.conf asterisk.conf ~extensions.conf res_config_sqlite3.conf ... cel_pgsql.conf logger.conf skinny.conf cel_sqlite3_custom.conf manager.conf sla.conf cel_tds.conf manager.d smdi.conf chan_dahdi.conf meetme.conf telcordia-1.adsi chan_mobile.conf mgcp.conf udptl.conf cli_aliases.conf minivm.conf unistim.conf cli.conf misdn.conf users.conf cli_permissions.conf modules.conf voicemail.conf codecs.conf motif.conf vpb.conf confbridge.conf musiconhold.conf xmpp.conf |
$sudo gedit extensions.conf
|
$ls /var/lib/asterisk/moh/
|
$ls
acl.conf config_test.conf muted.conf adsi.conf console.conf ooh323.conf agents.conf dbsep.conf osp.conf alarmreceiver.conf dnsmgr.conf oss.conf alsa.conf dsp.conf phone.conf amd.conf dundi.conf phoneprov.conf app_mysql.conf enum.conf queuerules.conf app_skel.conf extconfig.conf queues.conf asterisk.adsi extensions.ael res_config_mysql.conf asterisk.conf ~extensions.conf res_config_sqlite3.conf ... cel_pgsql.conf logger.conf skinny.conf cel_sqlite3_custom.conf manager.conf sla.conf cel_tds.conf manager.d smdi.conf chan_dahdi.conf meetme.conf telcordia-1.adsi chan_mobile.conf mgcp.conf udptl.conf cli_aliases.conf minivm.conf unistim.conf cli.conf misdn.conf users.conf cli_permissions.conf modules.conf voicemail.conf codecs.conf motif.conf vpb.conf confbridge.conf musiconhold.conf xmpp.conf |
$cd ~/
|
$ls
Desktop Documents Downloads Music Pictures Public Templates Videos |
$cd Downloads/
|
$ls
asterisk-core-sounds-ja-gsm-current.tar.gz queen.gsm queen.mp3 quenn.wav |
$ls
ls /var/lib/asterisk/moh/ message.gsm |
$cd /etc/asterisk/
|
$sudo gedit musiconhold.conf
|
$sudo gedit ext.conf
extconfig.conf extensions.conf extensions_minivm.conf extensions.ael extensions.lua |
$sudo gedit extensions.conf
[sudo] password for user: ** (gedit:10661): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found (gedit:10661): 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:10661): 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:10661): 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:10661): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported ** (gedit:10661): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported ** (gedit:10661): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-language not supported (gedit:10661): 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:10661): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported ... (gedit:10661): 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:10661): 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:10661): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported ** (gedit:10661): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported (gedit:10661): 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:10661): 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:10661): 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:10661): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported ** (gedit:10661): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported ** (gedit:10661): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-position not supported |
$sudo cd /var/spool/asterisk
[sudo] password for user: sudo: cd: command not found |
$ls
acl.conf config_test.conf muted.conf adsi.conf console.conf ooh323.conf agents.conf dbsep.conf osp.conf alarmreceiver.conf dnsmgr.conf oss.conf alsa.conf dsp.conf phone.conf amd.conf dundi.conf phoneprov.conf app_mysql.conf enum.conf queuerules.conf app_skel.conf extconfig.conf queues.conf asterisk.adsi extensions.ael res_config_mysql.conf asterisk.conf ~extensions.conf res_config_sqlite3.conf ... cel_pgsql.conf logger.conf skinny.conf cel_sqlite3_custom.conf manager.conf sla.conf cel_tds.conf manager.d smdi.conf chan_dahdi.conf meetme.conf telcordia-1.adsi chan_mobile.conf mgcp.conf udptl.conf cli_aliases.conf minivm.conf unistim.conf cli.conf misdn.conf users.conf cli_permissions.conf modules.conf voicemail.conf codecs.conf motif.conf vpb.conf confbridge.conf musiconhold.conf xmpp.conf |
$sudo cd monitor
sudo: cd: command not found |
$su
Password: |
#ls
acl.conf config_test.conf muted.conf adsi.conf console.conf ooh323.conf agents.conf dbsep.conf osp.conf alarmreceiver.conf dnsmgr.conf oss.conf alsa.conf dsp.conf phone.conf amd.conf dundi.conf phoneprov.conf app_mysql.conf enum.conf queuerules.conf app_skel.conf extconfig.conf queues.conf asterisk.adsi extensions.ael res_config_mysql.conf asterisk.conf ~extensions.conf res_config_sqlite3.conf ... cel_pgsql.conf logger.conf skinny.conf cel_sqlite3_custom.conf manager.conf sla.conf cel_tds.conf manager.d smdi.conf chan_dahdi.conf meetme.conf telcordia-1.adsi chan_mobile.conf mgcp.conf udptl.conf cli_aliases.conf minivm.conf unistim.conf cli.conf misdn.conf users.conf cli_permissions.conf modules.conf voicemail.conf codecs.conf motif.conf vpb.conf confbridge.conf musiconhold.conf xmpp.conf |
#pwd
/etc/asterisk |
#cd /var/spool/asterisk/monitor/
|
#ls
|
#ls
|
#ls
1401-s-2016-03-30-16:09.wav |
#apt-get install samba
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: attr libaio1 libhdb9-heimdal libkdc2-heimdal python-crypto python-dnspython python-ldb python-ntdb python-samba python-tdb samba-common samba-common-bin samba-dsdb-modules samba-vfs-modules tdb-tools Suggested packages: python-crypto-dbg python-crypto-doc bind9 bind9utils ctdb ldb-tools ntp ... Setting up tdb-tools (1.3.1-1) ... update-alternatives: using /usr/bin/tdbbackup.tdbtools to provide /usr/bin/tdbbackup (tdbbackup) in auto mode Setting up libkdc2-heimdal:amd64 (1.6~rc2+dfsg-9) ... Setting up samba (2:4.1.17+dfsg-2+deb8u2) ... Adding group `sambashare' (GID 122) ... Done. Setting up attr (1:2.4.47-2) ... Setting up samba-vfs-modules (2:4.1.17+dfsg-2+deb8u2) ... Processing triggers for libc-bin (2.19-18+deb8u3) ... Processing triggers for systemd (215-17+deb8u3) ... |
$sudo gedit /etc/group
[sudo] password for user: ** (gedit:12434): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found (gedit:12434): 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:12434): 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:12434): 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:12434): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported ** (gedit:12434): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported |
$sudo gedit /etc/samba/smb.conf
** (gedit:12451): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found (gedit:12451): 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:12451): 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:12451): 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:12451): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported ** (gedit:12451): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported (gedit:12451): 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:12451): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported ** (gedit:12451): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported |
$service smbd restart
bash: service: command not found |
$sudo service smbd restart
|
$sudo gedit /etc/group
** (gedit:12801): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found (gedit:12801): 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:12801): 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:12801): 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:12801): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported ** (gedit:12801): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported |
$sudo smbpasswd -a user
[sudo] password for user: New SMB password: Retype new SMB password: Added user user. |
$ls
sudo service smbd restart |
$id
uid=1000(user) gid=1000(user) groups=1000(user),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),108(netdev),110(lpadmin),113(scanner) |
$id
uid=1000(user) gid=1000(user) groups=1000(user),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),108(netdev),110(lpadmin),113(scanner) |
$less /etc/group
|
$sudo gedit /etc/samba/smb.conf
** (gedit:12843): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found (gedit:12843): 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:12843): 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:12843): 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:12843): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported ** (gedit:12843): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported |
$sudo gedit extensions.conf
** (gedit:12907): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found (gedit:12907): 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:12907): 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:12907): 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:12907): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported ** (gedit:12907): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported |
$sudo gedit extensions.conf
** (gedit:12955): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found (gedit:12955): 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:12955): 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:12955): 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:12955): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported ** (gedit:12955): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported (gedit:12955): 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:12955): 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:12955): 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:12955): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported ... (gedit:12955): 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:12955): 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:12955): 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:12955): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported ** (gedit:12955): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported (gedit:12955): 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:12955): 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:12955): 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:12955): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported ** (gedit:12955): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported |
#ls
message000.wav message001.wav message01.wav message05.gsm message10.gsm |
$sudo asterisk -rx 'database put order 2 3'
Updated database successfully |
$sudo asterisk -rx 'database put order 3 4'
Updated database successfully |
$sudo asterisk -rx 'database put order 4 5'
Updated database successfully |
$sudo asterisk -rx 'database put order 12 2'
Updated database successfully |
#ls
message000.wav message001.wav message01.wav message05.gsm message10.gsm |
#ls
message000.wav message002.wav message004.wav message01.wav message10.gsm message001.wav message003.wav message005.wav message05.gsm |
#ls
message000.wav message002.wav message004.wav message01.wav message10.gsm message001.wav message003.wav message005.wav message05.gsm |
#ls -la
total 1044 drwxr-xr-x 2 asterisk asterisk 4096 Mar 30 16:52 . drwxrwxrwt 5 root root 4096 Mar 30 14:41 .. -rw-rw---- 1 asterisk asterisk 26764 Mar 30 16:37 message000.wav -rw-rw---- 1 asterisk asterisk 19404 Mar 30 16:53 message001.wav -rw-rw---- 1 asterisk asterisk 23564 Mar 30 16:51 message002.wav -rw-rw---- 1 asterisk asterisk 19724 Mar 30 16:51 message003.wav -rw-rw---- 1 asterisk asterisk 17164 Mar 30 16:52 message004.wav -rw-rw---- 1 asterisk asterisk 17804 Mar 30 16:52 message005.wav -rw-rw---- 1 asterisk asterisk 48524 Mar 29 15:47 message01.wav -rw-r--r-- 1 root root 437448 Mar 30 15:00 message05.gsm -rw-r--r-- 1 root root 437448 Mar 30 15:00 message10.gsm |
#ls -la
total 1044 drwxr-xr-x 2 asterisk asterisk 4096 Mar 30 16:52 . drwxrwxrwt 5 root root 4096 Mar 30 14:41 .. -rw-rw---- 1 asterisk asterisk 26764 Mar 30 16:37 message000.wav -rw-rw---- 1 asterisk asterisk 19404 Mar 30 16:53 message001.wav -rw-rw---- 1 asterisk asterisk 23564 Mar 30 16:51 message002.wav -rw-rw---- 1 asterisk asterisk 19724 Mar 30 16:51 message003.wav -rw-rw---- 1 asterisk asterisk 17164 Mar 30 16:52 message004.wav -rw-rw---- 1 asterisk asterisk 17804 Mar 30 16:52 message005.wav -rw-rw---- 1 asterisk asterisk 48524 Mar 29 15:47 message01.wav -rw-r--r-- 1 root root 437448 Mar 30 15:00 message05.gsm -rw-r--r-- 1 root root 437448 Mar 30 15:00 message10.gsm |
$gedit
(gedit:1223): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale. ** (gedit:1223): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-RHo80izQKP: Connection refused ** (gedit:1223): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en", LC_ALL = "ru_RU.UTF8", LC_PAPER = "ru_RU.UTF-8", LC_ADDRESS = "ru_RU.UTF-8", LC_MONETARY = "ru_RU.UTF-8", LC_NUMERIC = "ru_RU.UTF-8", LC_TELEPHONE = "ru_RU.UTF-8", LC_TYPE = "ru_RU.UTF-8", LC_IDENTIFICATION = "ru_RU.UTF-8", LC_MEASUREMENT = "ru_RU.UTF-8", LC_TIME = "ru_RU.UTF-8", LC_NAME = "ru_RU.UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to a fallback locale ("en_US.UTF-8"). |
$gedit
(gedit:1244): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale. ** (gedit:1244): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-RHo80izQKP: Connection refused ** (gedit:1244): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en", LC_ALL = "ru_RU.UTF8", LC_PAPER = "ru_RU.UTF-8", LC_ADDRESS = "ru_RU.UTF-8", LC_MONETARY = "ru_RU.UTF-8", LC_NUMERIC = "ru_RU.UTF-8", LC_TELEPHONE = "ru_RU.UTF-8", LC_TYPE = "ru_RU.UTF-8", LC_IDENTIFICATION = "ru_RU.UTF-8", LC_MEASUREMENT = "ru_RU.UTF-8", LC_TIME = "ru_RU.UTF-8", LC_NAME = "ru_RU.UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to a fallback locale ("en_US.UTF-8"). |
$gedit
(gedit:1257): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale. ** (gedit:1257): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-RHo80izQKP: Connection refused ** (gedit:1257): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en", LC_ALL = "ru_RU.UTF8", LC_PAPER = "ru_RU.UTF-8", LC_ADDRESS = "ru_RU.UTF-8", LC_MONETARY = "ru_RU.UTF-8", LC_NUMERIC = "ru_RU.UTF-8", LC_TELEPHONE = "ru_RU.UTF-8", LC_TYPE = "ru_RU.UTF-8", LC_IDENTIFICATION = "ru_RU.UTF-8", LC_MEASUREMENT = "ru_RU.UTF-8", LC_TIME = "ru_RU.UTF-8", LC_NAME = "ru_RU.UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to a fallback locale ("en_US.UTF-8"). |
$cd /etc/asterisk/
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en", LC_ALL = "ru_RU.UTF8", LC_PAPER = "ru_RU.UTF-8", LC_ADDRESS = "ru_RU.UTF-8", LC_MONETARY = "ru_RU.UTF-8", LC_NUMERIC = "ru_RU.UTF-8", LC_TELEPHONE = "ru_RU.UTF-8", LC_TYPE = "ru_RU.UTF-8", LC_IDENTIFICATION = "ru_RU.UTF-8", LC_MEASUREMENT = "ru_RU.UTF-8", LC_TIME = "ru_RU.UTF-8", LC_NAME = "ru_RU.UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to a fallback locale ("en_US.UTF-8"). |
$ls
acl.conf cdr_tds.conf extconfig.conf mgcp.conf res_odbc.conf adsi.conf cel.conf extensions.ael minivm.conf res_pgsql.conf agents.conf cel_custom.conf extensions.conf misdn.conf res_pktccops.conf alarmreceiver.conf cel_odbc.conf extensions.lua modules.conf res_snmp.conf alsa.conf cel_pgsql.conf extensions_minivm.conf motif.conf res_stun_monitor.conf amd.conf cel_sqlite3_custom.conf features.conf musiconhold.conf rtp.conf app_mysql.conf cel_tds.conf festival.conf muted.conf say.conf app_skel.conf chan_dahdi.conf followme.conf ooh323.conf sip.conf asterisk.adsi chan_mobile.conf func_odbc.conf osp.conf sip_notify.conf asterisk.conf cli.conf gtalk.conf oss.conf skinny.conf ... LC_NUMERIC = "ru_RU.UTF-8", LC_TELEPHONE = "ru_RU.UTF-8", LC_TYPE = "ru_RU.UTF-8", LC_IDENTIFICATION = "ru_RU.UTF-8", LC_MEASUREMENT = "ru_RU.UTF-8", LC_TIME = "ru_RU.UTF-8", LC_NAME = "ru_RU.UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to a fallback locale ("en_US.UTF-8"). |
$sudo locale-gen en_US en_US.UTF-8
[sudo] password for user: Generating locales (this might take a while)... en_US.UTF-8... done Generation complete. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en", LC_ALL = "ru_RU.UTF8", LC_PAPER = "ru_RU.UTF-8", LC_ADDRESS = "ru_RU.UTF-8", LC_MONETARY = "ru_RU.UTF-8", LC_NUMERIC = "ru_RU.UTF-8", LC_TELEPHONE = "ru_RU.UTF-8", LC_TYPE = "ru_RU.UTF-8", LC_IDENTIFICATION = "ru_RU.UTF-8", LC_MEASUREMENT = "ru_RU.UTF-8", LC_TIME = "ru_RU.UTF-8", LC_NAME = "ru_RU.UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to a fallback locale ("en_US.UTF-8"). |
$sudo locale-gen ru_RU ru_RU.UTF-8
Generating locales (this might take a while)... en_US.UTF-8... done Generation complete. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en", LC_ALL = "ru_RU.UTF8", LC_PAPER = "ru_RU.UTF-8", LC_ADDRESS = "ru_RU.UTF-8", LC_MONETARY = "ru_RU.UTF-8", LC_NUMERIC = "ru_RU.UTF-8", LC_TELEPHONE = "ru_RU.UTF-8", LC_TYPE = "ru_RU.UTF-8", LC_IDENTIFICATION = "ru_RU.UTF-8", LC_MEASUREMENT = "ru_RU.UTF-8", LC_TIME = "ru_RU.UTF-8", LC_NAME = "ru_RU.UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to a fallback locale ("en_US.UTF-8"). |
$sudo dpkg-reconfigure locales
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en", LC_ALL = "ru_RU.UTF8", LC_PAPER = "ru_RU.UTF-8", LC_ADDRESS = "ru_RU.UTF-8", LC_MONETARY = "ru_RU.UTF-8", LC_NUMERIC = "ru_RU.UTF-8", LC_TELEPHONE = "ru_RU.UTF-8", LC_TYPE = "ru_RU.UTF-8", ... x ru_RU.UTF-8 x x x x x x <Ok> <Cancel> x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj Generating locales (this might take a while)... en_US.UTF-8... done ru_RU.UTF-8... done Generation complete. |
$ls
acl.conf cdr_tds.conf extconfig.conf meetme.conf res_ldap.conf adsi.conf cel.conf extensions.ael mgcp.conf res_odbc.conf agents.conf cel_custom.conf ~extensions.conf minivm.conf res_pgsql.conf alarmreceiver.conf cel_odbc.conf extensions.conf misdn.conf res_pktccops.conf alsa.conf cel_pgsql.conf extensions.lua modules.conf res_snmp.conf amd.conf cel_sqlite3_custom.conf extensions_minivm.conf motif.conf res_stun_monitor.conf app_mysql.conf cel_tds.conf features.conf musiconhold.conf rtp.conf app_skel.conf chan_dahdi.conf festival.conf muted.conf say.conf asterisk.adsi chan_mobile.conf followme.conf ooh323.conf ~sip.conf asterisk.conf cli_aliases.conf func_odbc.conf osp.conf sip.conf calendar.conf cli.conf gtalk.conf oss.conf sip_notify.conf ccss.conf cli_permissions.conf h323.conf phone.conf skinny.conf cdr_adaptive_odbc.conf codecs.conf http.conf phoneprov.conf sla.conf cdr.conf confbridge.conf iax.conf queuerules.conf smdi.conf cdr_custom.conf config_test.conf iaxprov.conf queues.conf telcordia-1.adsi cdr_manager.conf console.conf indications.conf res_config_mysql.conf udptl.conf cdr_mysql.conf dbsep.conf jabber.conf res_config_sqlite3.conf unistim.conf cdr_odbc.conf dnsmgr.conf jingle.conf res_config_sqlite.conf users.conf cdr_pgsql.conf dsp.conf logger.conf res_corosync.conf voicemail.conf cdr_sqlite3_custom.conf dundi.conf manager.conf res_curl.conf vpb.conf cdr_syslog.conf enum.conf manager.d res_fax.conf xmpp.conf |
$clear
|
$clear
|
$ls -la
total 896 drwxr-xr-x 3 asterisk asterisk 4096 мар 30 16:57 . drwxr-xr-x 112 root root 4096 мар 31 10:25 .. -rw-r----- 1 asterisk asterisk 2816 янв 1 2015 acl.conf -rw-r----- 1 asterisk asterisk 140 янв 1 2015 adsi.conf -rw-r----- 1 asterisk asterisk 2531 янв 1 2015 agents.conf -rw-r----- 1 asterisk asterisk 2084 янв 1 2015 alarmreceiver.conf -rw-r----- 1 asterisk asterisk 3498 янв 1 2015 alsa.conf -rw-r----- 1 asterisk asterisk 767 янв 1 2015 amd.conf -rw-r----- 1 asterisk asterisk 1044 янв 1 2015 app_mysql.conf ... -rw-r----- 1 asterisk asterisk 9185 янв 1 2015 skinny.conf -rw-r----- 1 asterisk asterisk 7092 янв 1 2015 sla.conf -rw-r----- 1 asterisk asterisk 2669 янв 1 2015 smdi.conf -rw-r----- 1 asterisk asterisk 1384 янв 1 2015 telcordia-1.adsi -rw-r----- 1 asterisk asterisk 656 янв 1 2015 udptl.conf -rw-r----- 1 asterisk asterisk 5621 янв 1 2015 unistim.conf -rw-r----- 1 asterisk asterisk 2571 янв 1 2015 users.conf -rw-r----- 1 asterisk asterisk 23838 мар 30 14:28 voicemail.conf -rw-r----- 1 asterisk asterisk 5938 янв 1 2015 vpb.conf -rw-r----- 1 asterisk asterisk 2150 янв 1 2015 xmpp.conf |
$clear
|
$find / -name leases
find: `/sys/kernel/debug': Permission denied find: `/root': Permission denied find: `/proc/tty/driver': Permission denied find: `/proc/1/task/1/fd': Permission denied find: `/proc/1/task/1/fdinfo': Permission denied find: `/proc/1/task/1/ns': Permission denied find: `/proc/1/fd': Permission denied find: `/proc/1/map_files': Permission denied find: `/proc/1/fdinfo': Permission denied find: `/proc/1/ns': Permission denied ... find: `/var/lib/sudo/lectured': Permission denied find: `/var/lib/lightdm': Permission denied find: `/var/lib/polkit-1': Permission denied find: `/var/lib/samba/usershares': Permission denied find: `/var/lib/udisks2': Permission denied find: `/var/lib/container': Permission denied find: `/var/log/lightdm': Permission denied find: `/var/log/exim4': Permission denied find: `/var/log/samba': Permission denied ^C |
$sudo !!
sudo find / -name leases /run/systemd/netif/leases |
$sudo find / -name leases*
/proc/sys/fs/leases-enable /run/systemd/netif/leases |
$/var/
bash: /var/: Is a directory |
$cd /var
|
$ls
backups cache lib local lock log mail opt run spool tmp |
$cd lib/
|
$ls
apt dbus exim4 initramfs-tools logrotate pam snmp update-rc.d vim aspell dhcp gconf initscripts man-db polkit-1 sudo upower xfonts asterisk dictionaries-common geoclue insserv misc python systemd urandom xkb colord dpkg ghostscript ispell ntpdate samba ucf usb_modeswitch xml-core container emacsen-common hp lightdm os-prober sgml-base udisks2 usbutils |
$cd dhcp/
|
$ls
dhclient.leases dhcpd.leases dhcpd.leases~ |
$cat dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page. # This lease file was written by isc-dhcp-4.3.1 lease 192.168.40.204 { starts 3 2016/03/30 13:58:07; ends 3 2016/03/30 14:08:07; tstp 3 2016/03/30 14:08:07; cltt 3 2016/03/30 13:58:07; binding state free; hardware ethernet e0:18:77:03:d5:88; } ... starts 4 2016/03/31 07:27:41; ends 4 2016/03/31 07:37:41; cltt 4 2016/03/31 07:27:41; binding state active; next binding state free; rewind binding state free; hardware ethernet 00:0e:08:d7:41:7b; uid "\001\000\016\010\327A{"; client-hostname "SipuraSPA"; } |
$clear
|
#clear
|
#cd /etc/asterisk/
|
$sudo asterisk -r
[sudo] password for user: 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 = 499) asterisk4*CLI> dialplan reload Dialplan reloaded. asterisk4*CLI> dialplan reload Dialplan reloaded. asterisk4*CLI> dialplan reload Dialplan reloaded. asterisk4*CLI> exit Asterisk cleanly ending (0). Executing last minute cleanups |
#gedit extensions.conf
** (gedit:2314): WARNING **: Could not open X display Unable to init server: Could not connect: Connection refused (gedit:2314): Gtk-WARNING **: cannot open display: localhost:11.0 |
#exit
exit |
$pwd
/home/user |
$cd /etc/asterisk/
|
$sudo gedit extensions.conf
[sudo] password for user: ** (gedit:2373): WARNING **: Could not open X display Unable to init server: Could not connect: Connection refused (gedit:2373): Gtk-WARNING **: cannot open display: localhost:11.0 |
$ls -la
total 48 drwxrwxrwt 10 root root 4096 мар 31 10:43 . drwxr-xr-x 22 root root 4096 мар 28 12:27 .. drwxrwxrwt 2 root root 4096 мар 31 09:44 .font-unix drwx------ 2 user user 4096 мар 31 09:45 gpg-UjSCWw -rw-rw---- 1 asterisk asterisk 0 мар 31 10:43 hello-from-asterisk drwxrwxrwt 2 root root 4096 мар 31 09:45 .ICE-unix drwx------ 2 user user 4096 мар 31 09:45 ssh-L2TmIyFYiYGq drwx------ 3 root root 4096 мар 31 09:44 systemd-private-a926810d8c1c4f74b5afd1a50773951f-cups.service-D4Ti1I drwxrwxrwt 2 root root 4096 мар 31 09:44 .Test-unix -r--r--r-- 1 root root 11 мар 31 09:44 .X0-lock drwxrwxrwt 2 root root 4096 мар 31 09:44 .X11-unix -rw------- 1 user user 414 мар 31 09:45 .xfsm-ICE-NM77EY drwxrwxrwt 2 root root 4096 мар 31 09:44 .XIM-unix |
$sudo apt-get install etherwake
Display all 42252 possibilities? (y or n) |
$sudo apt-get install etherwake
[sudo] password for user: Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: wakeonlan The following NEW packages will be installed: etherwake wakeonlan 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 20,3 kB of archives. ... Selecting previously unselected package etherwake. (Reading database ... 102225 files and directories currently installed.) Preparing to unpack .../etherwake_1.09-4_amd64.deb ... Unpacking etherwake (1.09-4) ... Selecting previously unselected package wakeonlan. Preparing to unpack .../wakeonlan_0.41-11_all.deb ... Unpacking wakeonlan (0.41-11) ... Processing triggers for man-db (2.7.0.2-5) ... Setting up etherwake (1.09-4) ... Setting up wakeonlan (0.41-11) ... |
$sudo visudo
# # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See the man page for details on how to write a sudoers file. # Defaults env_reset root ALL=(ALL:ALL) ALLass user ALL=(ALL:ALL) ALLth="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" asterisk ALL=NOPASSWD: /usr/sbin/etherwake, /usr/bin/touch # Allow members of group sudo to execute any command %sudo ALL=(ALL:ALL) ALLn # See sudoers(5) for more information on "#include" directives: #includedir /etc/sudoers.d [ Wrote 29 lines ] visudo: /etc/sudoers.tmp unchanged |
$sudo visudo
# # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See the man page for details on how to write a sudoers file. # Defaults env_reset root ALL=(ALL:ALL) ALLass user ALL=(ALL:ALL) ALLth="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" asterisk ALL=(ALL) NOPASSWD:/usr/sbin/etherwake, /usr/bin/touch # Allow members of group sudo to execute any command %sudo ALL=(ALL:ALL) ALLn # See sudoers(5) for more information on "#include" directives: #includedir /etc/sudoers.d [ Wrote 29 lines ] visudo: /etc/sudoers.tmp unchanged |
$sudo visudo
# asteriskile MUSTALL=(ALL) NOPASSWD:/usr/sbin/etherwake, /usr/bin/touch, /usr/bin/eject # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See the man page for details on how to write a sudoers file. # Defaults env_reset root ALL=(ALL:ALL) ALLass user ALL=(ALL:ALL) ALLth="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" asterisk ALL=(ALL) NOPASSWD:/usr/sbin/etherwake, /usr/bin/touch # Host alias specification # Allow members of group sudo to execute any command %sudo ALL=(ALL:ALL) ALLn # See sudoers(5) for more information on "#include" directives: #includedir /etc/sudoers.dtion [ Wrote 29 lines ] visudo: /etc/sudoers.tmp unchanged |
$sudo apt-get install festival
[sudo] password for user: Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: alsa-utils festlex-cmu festlex-poslex festvox-kallpc16k libestools2.1 Suggested packages: pidgin-festival festival-freebsoft-utils The following NEW packages will be installed: alsa-utils festival festlex-cmu festlex-poslex festvox-kallpc16k libestools2.1 ... Processing triggers for sgml-base (1.26+nmu4) ... Setting up libestools2.1:amd64 (1:2.1~release-8) ... Setting up alsa-utils (1.0.28-1) ... Setting up festival (1:2.1~release-8) ... Processing triggers for sgml-base (1.26+nmu4) ... Setting up festlex-poslex (1.4.0-5) ... Setting up festlex-cmu (1.4.0-6) ... Setting up festvox-kallpc16k (1.4.0-5) ... Processing triggers for libc-bin (2.19-18+deb8u3) ... Processing triggers for systemd (215-17+deb8u3) ... |
# The format of this file is documented in the dhcpd.leases(5) manual page. # This lease file was written by isc-dhcp-4.3.1 lease 192.168.40.204 { starts 3 2016/03/30 13:58:07; ends 3 2016/03/30 14:08:07; tstp 3 2016/03/30 14:08:07; cltt 3 2016/03/30 13:58:07; binding state free; hardware ethernet e0:18:77:03:d5:88; } lease 192.168.40.201 { starts 3 2016/03/30 13:59:21; ends 3 2016/03/30 14:09:21; tstp 3 2016/03/30 14:09:21; cltt 3 2016/03/30 13:59:21; binding state free; hardware ethernet 00:0e:08:d7:41:7b; uid "\001\000\016\010\327A{"; } server-duid "\000\001\000\001\036\217\203\340lbmz\304\237"; lease 192.168.40.204 { starts 4 2016/03/31 06:46:17; ends 4 2016/03/31 06:56:17; cltt 4 2016/03/31 06:46:17; binding state active; next binding state free; rewind binding state free; hardware ethernet e0:18:77:03:d5:88; client-hostname "FLB-S752"; } lease 192.168.40.204 { starts 4 2016/03/31 06:51:09; ends 4 2016/03/31 07:01:09; cltt 4 2016/03/31 06:51:09; binding state active; next binding state free; rewind binding state free; hardware ethernet e0:18:77:03:d5:88; client-hostname "FLB-S752"; } lease 192.168.40.204 { starts 4 2016/03/31 06:55:45; ends 4 2016/03/31 07:05:45; cltt 4 2016/03/31 06:55:45; binding state active; next binding state free; rewind binding state free; hardware ethernet e0:18:77:03:d5:88; client-hostname "FLB-S752"; } lease 192.168.40.204 { starts 4 2016/03/31 06:59:39; ends 4 2016/03/31 07:09:39; cltt 4 2016/03/31 06:59:39; binding state active; next binding state free; rewind binding state free; hardware ethernet e0:18:77:03:d5:88; client-hostname "FLB-S752"; } lease 192.168.40.204 { starts 4 2016/03/31 07:04:37; ends 4 2016/03/31 07:14:37; cltt 4 2016/03/31 07:04:37; binding state active; next binding state free; rewind binding state free; hardware ethernet e0:18:77:03:d5:88; client-hostname "FLB-S752"; } lease 192.168.40.204 { starts 4 2016/03/31 07:08:28; ends 4 2016/03/31 07:18:28; cltt 4 2016/03/31 07:08:28; binding state active; next binding state free; rewind binding state free; hardware ethernet e0:18:77:03:d5:88; client-hostname "FLB-S752"; } lease 192.168.40.204 { starts 4 2016/03/31 07:12:28; ends 4 2016/03/31 07:22:28; cltt 4 2016/03/31 07:12:28; binding state active; next binding state free; rewind binding state free; hardware ethernet e0:18:77:03:d5:88; client-hostname "FLB-S752"; } lease 192.168.40.204 { starts 4 2016/03/31 07:17:28; ends 4 2016/03/31 07:27:28; cltt 4 2016/03/31 07:17:28; binding state active; next binding state free; rewind binding state free; hardware ethernet e0:18:77:03:d5:88; client-hostname "FLB-S752"; } lease 192.168.40.204 { starts 4 2016/03/31 07:22:10; ends 4 2016/03/31 07:32:10; cltt 4 2016/03/31 07:22:10; binding state active; next binding state free; rewind binding state free; hardware ethernet e0:18:77:03:d5:88; client-hostname "FLB-S752"; } lease 192.168.40.204 { starts 4 2016/03/31 07:26:45; ends 4 2016/03/31 07:36:45; cltt 4 2016/03/31 07:26:45; binding state active; next binding state free; rewind binding state free; hardware ethernet e0:18:77:03:d5:88; client-hostname "FLB-S752"; } lease 192.168.40.201 { starts 4 2016/03/31 07:27:41; ends 4 2016/03/31 07:37:41; cltt 4 2016/03/31 07:27:41; binding state active; next binding state free; rewind binding state free; hardware ethernet 00:0e:08:d7:41:7b; uid "\001\000\016\010\327A{"; client-hostname "SipuraSPA"; }
Время первой команды журнала | 13:52:15 2016- 3-30 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 09:53:22 2016- 3-31 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 6.93 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.54 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.09 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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