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

Содержание

Журнал

Среда (03/30/16)

/dev/pts/6
13:52:15
$ls
asterisk-core-sounds-ja-gsm-current.tar.gz  queen.mp3  quenn.wav
13:52:19
$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
13:57:33
$ls
asterisk-core-sounds-ja-gsm-current.tar.gz  queen.gsm  queen.mp3  quenn.wav
13:57:49
$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
14:00:42
$cd /etc/asterisk/

14:01:20
$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
14:01:21
$sudo gedit extensions.conf

прошло 30 минут
14:31:50
$ls /var/lib/asterisk/moh/

14:32:03
$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
14:32:11
$cd ~/

14:32:17
$ls
Desktop  Documents  Downloads  Music  Pictures  Public  Templates  Videos
14:32:17
$cd Downloads/

14:32:21
$ls
asterisk-core-sounds-ja-gsm-current.tar.gz  queen.gsm  queen.mp3  quenn.wav
14:32:26
$ls
                            ls /var/lib/asterisk/moh/
message.gsm
14:32:30
$cd /etc/asterisk/

14:32:45
$sudo gedit musiconhold.conf

14:33:09
$sudo gedit ext.conf
extconfig.conf          extensions.conf         extensions_minivm.conf
extensions.ael          extensions.lua
14:33:09
$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
/dev/pts/4
14:33:40
$cd /var/spool/asterisk
bash: cd: /var/spool/asterisk: Permission denied
прошло 30 минут
15:03:55
$sudo cd /var/spool/asterisk
[sudo] password for user:
sudo: cd: command not found
15:04:03
$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
15:04:04
$sudo cd monitor
sudo: cd: command not found
15:04:43
$su
Password:
15:04:55
#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
15:04:56
#pwd
/etc/asterisk
15:05:06
#cd /var/spool/asterisk/monitor/

15:05:19
#ls

15:05:20
#ls

15:06:49
#ls
1401-s-2016-03-30-16:09.wav
15:10:03
#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) ...
/dev/pts/6
15:10:30
$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
/dev/pts/4
15:10:38
#cd /var/tmp/asterisk/

/dev/pts/6
15:11:14
$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
15:13:12
$service smbd restart
bash: service: command not found
15:13:20
$sudo service smbd restart

15:13:28
$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
/dev/pts/9
15:15:35
$sudo smbpasswd -a user
[sudo] password for user:
New SMB password:
Retype new SMB password:
Added user user.
15:16:05
$ls
                    sudo service smbd restart
/dev/pts/11
15:18:23
$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)
/dev/pts/11
15:19:45
$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)
15:19:47
$less /etc/group
/dev/pts/6
15:20:44
$sudo service smbd restart

15:21:09
$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
15:26:09
$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
15:32:02
$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
/dev/pts/4
15:39:38
#ls
message000.wav  message01.wav  message05.gsm  message10.gsm
15:39:39
#ls
message000.wav  message001.wav  message01.wav  message05.gsm  message10.gsm
/dev/pts/6
15:45:44
$sudo asterisk -rx 'database put order 1 2'
Updated database successfully
15:46:04
$sudo asterisk -rx 'database put order 2 3'
Updated database successfully
15:46:16
$sudo asterisk -rx 'database put order 3 4'
Updated database successfully
15:46:20
$sudo asterisk -rx 'database put order 4 5'
Updated database successfully
15:46:24
$sudo asterisk -rx 'database put order 12 2'
Updated database successfully
/dev/pts/4
15:50:09
#ls
message000.wav  message001.wav  message01.wav  message05.gsm  message10.gsm
15:51:05
#ls
message000.wav  message001.wav  message01.wav  message05.gsm  message10.gsm
15:51:08
#ls
message000.wav  message002.wav  message004.wav  message01.wav  message10.gsm
message001.wav  message003.wav  message005.wav  message05.gsm
15:52:14
#ls
message000.wav  message002.wav  message004.wav  message01.wav  message10.gsm
message001.wav  message003.wav  message005.wav  message05.gsm
15:53:13
#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
15:53:16
#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

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

/dev/pts/0
09:21:03
$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").
09:21:13
$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").
09:21:36
$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").
09:21:38
$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").
09:22:56
$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").
09:22:57
$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").
09:24:32
$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").
09:24:48
$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.
09:25:32
$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
09:25:36
$clear

09:25:40
$clear

09:25:42
$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
09:25:45
$clear

09:25:47
$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
09:27:23
$sudo !!
sudo find / -name leases
/run/systemd/netif/leases
09:27:33
$sudo find / -name leases*
/proc/sys/fs/leases-enable
/run/systemd/netif/leases
09:27:38
$/var/
bash: /var/: Is a directory
09:27:55
$cd /var

09:27:58
$ls
backups  cache  lib  local  lock  log  mail  opt  run  spool  tmp
09:27:59
$cd lib/

09:28:07
$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
09:28:08
$cd dhcp/

09:28:12
$ls
dhclient.leases  dhcpd.leases  dhcpd.leases~
09:28:13
$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";
}
09:28:24
$clear

/dev/pts/2
09:35:01
$su
Password:
09:35:07
#clear

09:35:10
#cd /etc/asterisk/

/dev/pts/5
09:36:06
$clear

09:36:08
$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
/dev/pts/0
09:36:12
$cd /tmp

/dev/pts/2
09:40:31
#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
09:40:39
#exit
exit
09:40:49
$pwd
/home/user
09:41:04
$cd /etc/asterisk/

09:41:08
$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
/dev/pts/0
09:44:14
$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
09:44:15
$sudo apt-get install etherwake
Display all 42252 possibilities? (y or n)
09:44:15
$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) ...
09:46:41
$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
09:48:19
$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
09:49:19
$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
09:53:22
$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) ...

Файлы

  • dhcpd.leases
  • 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;
    }
    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
    Частота использования команд
    sudo33|========================| 24.63%
    ls30|======================| 22.39%
    cd16|===========| 11.94%
    gedit15|===========| 11.19%
    asterisk6|====| 4.48%
    clear6|====| 4.48%
    apt-get4|==| 2.99%
    visudo3|==| 2.24%
    service3|==| 2.24%
    pwd2|=| 1.49%
    locale-gen2|=| 1.49%
    id2|=| 1.49%
    find2|=| 1.49%
    su2|=| 1.49%
    !!1|| 0.75%
    smbpasswd1|| 0.75%
    sox1|| 0.75%
    dpkg-reconfigure1|| 0.75%
    less1|| 0.75%
    /var/1|| 0.75%
    cat1|| 0.75%
    exit1|| 0.75%
    ____
    *) Интервалы неактивности длительностью 30 минут и более не учитываются

    Справка

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

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

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

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

    5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
      $ find / -name abc
      find: /home/devi-orig/.gnome2: Keine Berechtigung
      find: /home/devi-orig/.gnome2_private: Keine Berechtigung
      find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung
      find: /home/devi-orig/.metacity: Keine Berechtigung
      find: /home/devi-orig/.inkscape: Keine Berechtigung
      ^C
      

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    О программе

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

    $Id$