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

Содержание

Журнал

Среда (06/22/11)

/dev/pts/8
09:41:19
#sm
smbcontrol        smbpasswd         smbstatus.samba3  sm-notify         smsq
smbd              smbstatus         smime_keys        smproxy
09:41:19
#smbpasswd user -a
New SMB password:
Retype new SMB password:
/dev/pts/17
09:41:19
#sm
smbcontrol        smbpasswd         smbstatus.samba3  sm-notify         smsq
smbd              smbstatus         smime_keys        smproxy
09:41:19
#sm
smbcontrol        smbpasswd         smbstatus.samba3  sm-notify         smsq
smbd              smbstatus         smime_keys        smproxy
09:41:19
#smbpasswd user -a
New SMB password:
Retype new SMB password:
/dev/pts/0
09:41:44
#vim /etc/gro
--- /tmp/l3-saved-22920.29762.22232	2011-06-22 10:41:56.000000000 +0300
+++ /etc/group	2011-06-22 10:42:14.000000000 +0300
@@ -54,7 +54,7 @@
 scanner:x:115:saned,user
 saned:x:116:
 user:x:1000:
-asterisk:x:117:
+asterisk:x:117:user
 bind:x:118:
 smmta:x:119:
 smmsp:x:120:
09:41:44
#vim /etc/gro
09:41:44
#vim /etc/group
09:41:44
#vim /etc/group
/dev/pts/16
09:41:44
#vim /etc/gro
09:41:44
#vim /etc/gro
09:41:44
#vim /etc/group
09:41:44
#vim /etc/group
/dev/pts/8
09:41:44
#vim /etc/gro
09:41:44
#vim /etc/gro
09:41:44
#vim /etc/group
09:41:44
#vim /etc/group
/dev/pts/17
09:41:44
#vim /etc/gro
09:41:44
#vim /etc/gro
09:41:44
#vim /etc/group
09:41:44
#vim /etc/group
/dev/pts/0
09:42:14
#/etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.
/dev/pts/16
09:42:14
#/etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.
/dev/pts/8
09:42:14
#/etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.
/dev/pts/17
09:42:14
#/etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.
/dev/pts/0
09:42:24
#ps aux | grep smb
root     28212  0.0  0.0  97088  3156 ?        Ss   10:42   0:00 /usr/sbin/smbd -D
root     28221  0.0  0.0  97088  1460 ?        S    10:42   0:00 /usr/sbin/smbd -D
root     28257  0.0  0.0  10056   860 pts/11   S+   11:16   0:00 grep smb
/dev/pts/16
09:42:24
#ps aux | grep smb
root     28212  0.0  0.0  97088  3156 ?        Ss   10:42   0:00 /usr/sbin/smbd -D
root     28221  0.0  0.0  97088  1460 ?        S    10:42   0:00 /usr/sbin/smbd -D
root     28257  0.0  0.0  10056   860 pts/11   S+   11:16   0:00 grep smb
/dev/pts/8
09:42:24
#ps aux | grep smb
root     28212  0.0  0.0  97088  3156 ?        Ss   10:42   0:00 /usr/sbin/smbd -D
root     28221  0.0  0.0  97088  1460 ?        S    10:42   0:00 /usr/sbin/smbd -D
root     28257  0.0  0.0  10056   860 pts/11   S+   11:16   0:00 grep smb
/dev/pts/17
09:42:24
#ps aux | grep smb
root     28212  0.0  0.0  97088  3156 ?        Ss   10:42   0:00 /usr/sbin/smbd -D
root     28221  0.0  0.0  97088  1460 ?        S    10:42   0:00 /usr/sbin/smbd -D
root     28257  0.0  0.0  10056   860 pts/11   S+   11:16   0:00 grep smb
прошло 33 минуты
/dev/pts/8
10:16:09
#!v
list:x:38::111:
fuse:x:112:
utempter:x:113:
Debian-gdm:x:114:
scanner:x:115:saned,user
lpadmin:x:110:
ssl-cert:x:111:
fuse:x:112:
utempter:x:113:
Debian-gdm:x:114:
/aster
scanner:x:115:saned,user
saned:x:116:
user:x:1000:
bind:x:118:
smmta:x:119:
smmsp:x:120:
                                                                                                             60,1          96%
/dev/pts/17
10:16:09
#!v
dialout:x:20:asterisk
fax:x:21:
voice:x:22:
cdrom:x:24:user
floppy:x:25:user
tape:x:26:
sudo:x:27:
audio:x:29:user,asterisk
dip:x:30:user
www-data:x:33:ser
...
utempter:x:113:
Debian-gdm:x:114:
/aster
scanner:x:115:saned,user
saned:x:116:
user:x:1000:
bind:x:118:
smmta:x:119:
smmsp:x:120:
                                                                                                             60,1          96%
/dev/pts/0
10:16:09
#!v
list:x:38::111:
fuse:x:112:
utempter:x:113:
Debian-gdm:x:114:
scanner:x:115:saned,user
lpadmin:x:110:
ssl-cert:x:111:
fuse:x:112:
utempter:x:113:
Debian-gdm:x:114:
/aster
scanner:x:115:saned,user
saned:x:116:
user:x:1000:
bind:x:118:
smmta:x:119:
smmsp:x:120:
                                                                                                             60,1          96%
/dev/pts/16
10:16:09
#!v
plugdev:x:46:user
staff:x:50:
games:x:60:
users:x:100:
nogroup:x:65534:
libuuid:x:101:
crontab:x:102:
messagebus:x:103:
Debian-exim:x:104:
mlocate:x:105:
...
utempter:x:113:
Debian-gdm:x:114:
/aster
scanner:x:115:saned,user
saned:x:116:
user:x:1000:
bind:x:118:
smmta:x:119:
smmsp:x:120:
                                                                                                             60,1          96%
/dev/pts/19
10:16:34
#[default]
bash: logout: оболочка не является запущенной после входа в систему: используйте `exit'
/dev/pts/18
10:16:34
#[default]
bash: logout: оболочка не является запущенной после входа в систему: используйте `exit'
/dev/pts/0
10:17:38
#sasl:x:45:
[national]
[        ]
exten => _23XX,1,Dial(SIP/kiev/${EXTEN},10)
[international]
[             ]
exten => _1[12]XX,1,Dial(SIP/kiev/${EXTEN},10)
;----------USA
exten => _2[12]XX,1,Dial(SIP/kiev/${EXTEN},10)
;----------FRANCE
;exten => _[13][31]XX,1,Dial(SIP/kiev/${EXTEN},10)
...
;exten => _24XX,n,Playback(demo-congrats)
[national]
[        ]
exten => _23XX,1,Dial(SIP/kiev/${EXTEN},10)
[international]
[             ]
exten => _1[12]XX,1,Dial(SIP/kiev/${EXTEN},10)
;----------USA
exten => _2[12]XX,1,Dial(SIP/kiev/${EXTEN},10)
;----------RUSSIAal                                                                                          58,0-1        48%
/dev/pts/16
10:17:38
#sasl:x:45:
exten => 2403,1,Dial(SIP/2401&SIP/2402,10)
;exten => _24XX,n,Playback(demo-congrats)
[national]
[        ]
exten => _23XX,1,Dial(SIP/kiev/${EXTEN},10)
[international]
[             ]
exten => _1[12]XX,1,Dial(SIP/kiev/${EXTEN},10)
;----------RUSSIA                                                                                            55,0-1        42%
exten => 2403,1,Dial(SIP/2401&SIP/2402,10)
;exten => _24XX,n,Playback(demo-congrats)
[national]
[        ]
exten => _23XX,1,Dial(SIP/kiev/${EXTEN},10)
[international]
[             ]
exten => _1[12]XX,1,Dial(SIP/kiev/${EXTEN},10)
;----------USA
exten => _2[12]XX,1,Dial(SIP/kiev/${EXTEN},10)
;----------RUSSIAal                                                                                          58,0-1        48%
/dev/pts/8
10:17:38
#sasl:x:45:
[default]
[internal]
;-----------Test Asterisk
exten => 8000,1,Wait(1)
exten => 8000,n,Playback(demo-congrats)
exten => _81.,1,Wait(1)
exten => _81.,n,Say(${EXTEN})
;-----------VOICEMAIL
;-----------general Voicemail
exten => 8100,1,VoicemailMain()
...
;exten => _24XX,n,Playback(demo-congrats)
[national]
[        ]
exten => _23XX,1,Dial(SIP/kiev/${EXTEN},10)
[international]
[             ]
exten => _1[12]XX,1,Dial(SIP/kiev/${EXTEN},10)
;----------USA
exten => _2[12]XX,1,Dial(SIP/kiev/${EXTEN},10)
;----------RUSSIAal                                                                                          58,0-1        48%
/dev/pts/17
10:17:38
#sasl:x:45:
[internal]
[--------]--Test Asterisk
exten => 8000,1,Wait(1)
exten => 8000,n,Playback(demo-congrats)
exten => _81.,1,Wait(1)
exten => _81.,n,Say(${EXTEN})
;-----------VOICEMAIL
;-----------general Voicemail
exten => 8100,1,VoicemailMain()
;-----------personal Voicemail
...
;exten => _24XX,n,Playback(demo-congrats)
[national]
[        ]
exten => _23XX,1,Dial(SIP/kiev/${EXTEN},10)
[international]
[             ]
exten => _1[12]XX,1,Dial(SIP/kiev/${EXTEN},10)
;----------USA
exten => _2[12]XX,1,Dial(SIP/kiev/${EXTEN},10)
;----------RUSSIAal                                                                                          58,0-1        48%
/dev/pts/8
10:25:42
#!/e
/etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.
/dev/pts/17
10:25:42
#!/e
/etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.
/dev/pts/0
10:25:42
#!/e
/etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.
/dev/pts/16
10:25:42
#!/e
/etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.
/dev/pts/0
10:25:47
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-22920.25261.26349	2011-06-22 11:26:41.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-22 11:26:57.000000000 +0300
@@ -28,7 +28,7 @@
 [local]
 ;-----------LOCAL DIALPLAN
 exten => _24XX,1,Answer
-exten => _24XX,n,Set(MON_FILENAME=record-${STRFTIME(${EPOCH},,%Y-%m-%d-%H:%M:%S)}-${EXTEN}-${CALLER
+exten => _24XX,n,Set(MON_FILENAME=record-${STRFTIME(${EPOCH},,%Y-%m-%d-%H-%M-%S)}-${EXTEN}-${CALLER
 ID(num)})
 exten => _24XX,n,Monitor(wav,${MON_FILENAME},m)
 exten => _24XX,n,Dial(SIP/${EXTEN},5)
/dev/pts/16
10:25:47
#vim /etc/asterisk/extensions.conf
/dev/pts/8
10:25:47
#vim /etc/asterisk/extensions.conf
/dev/pts/17
10:25:47
#vim /etc/asterisk/extensions.conf
/dev/pts/0
10:26:57
#!ast
asterisk -rx 'dialplan reload'
Dialplan reloaded.
/dev/pts/16
10:26:57
#!ast
asterisk -rx 'dialplan reload'
Dialplan reloaded.
/dev/pts/8
10:26:57
#!ast
asterisk -rx 'dialplan reload'
Dialplan reloaded.
/dev/pts/17
10:26:57
#!ast
asterisk -rx 'dialplan reload'
Dialplan reloaded.
/dev/pts/0
10:27:18
#{EXTEN},5)
Display all 827 possibilities? (y or n)
10:27:18
#apt-get install libsox-
libsox-dev         libsox-fmt-alsa    libsox-fmt-base    libsox-fmt-mp3     libsox-fmt-pulse
libsox-fmt-all     libsox-fmt-ao      libsox-fmt-ffmpeg  libsox-fmt-oss
10:27:18
#apt-get install libsox-fmt-mp3
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libmysqlclient16 mysql-common
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  libsox-fmt-mp3
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 47.7 kB of archives.
After this operation, 106 kB of additional disk space will be used.
Get:1 http://10.0.35.1/debian/ squeeze/main libsox-fmt-mp3 amd64 14.3.1-1+b1 [47.7 kB]
Fetched 47.7 kB in 0s (4,475 kB/s)
Selecting previously deselected package libsox-fmt-mp3.
(Reading database ... 128810 files and directories currently installed.)
Unpacking libsox-fmt-mp3 (from .../libsox-fmt-mp3_14.3.1-1+b1_amd64.deb) ...
Setting up libsox-fmt-mp3 (14.3.1-1+b1) ...
/dev/pts/16
10:27:18
#{EXTEN},5)
Display all 827 possibilities? (y or n)
10:27:18
#apt-get install libsox-
libsox-dev         libsox-fmt-alsa    libsox-fmt-base    libsox-fmt-mp3     libsox-fmt-pulse
libsox-fmt-all     libsox-fmt-ao      libsox-fmt-ffmpeg  libsox-fmt-oss
10:27:18
#apt-get install libsox-fmt-mp3
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libmysqlclient16 mysql-common
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  libsox-fmt-mp3
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 47.7 kB of archives.
After this operation, 106 kB of additional disk space will be used.
Get:1 http://10.0.35.1/debian/ squeeze/main libsox-fmt-mp3 amd64 14.3.1-1+b1 [47.7 kB]
Fetched 47.7 kB in 0s (4,475 kB/s)
Selecting previously deselected package libsox-fmt-mp3.
(Reading database ... 128810 files and directories currently installed.)
Unpacking libsox-fmt-mp3 (from .../libsox-fmt-mp3_14.3.1-1+b1_amd64.deb) ...
Setting up libsox-fmt-mp3 (14.3.1-1+b1) ...
/dev/pts/8
10:27:18
#{EXTEN},5)
Display all 827 possibilities? (y or n)
10:27:18
#apt-get install libsox-
libsox-dev         libsox-fmt-alsa    libsox-fmt-base    libsox-fmt-mp3     libsox-fmt-pulse
libsox-fmt-all     libsox-fmt-ao      libsox-fmt-ffmpeg  libsox-fmt-oss
10:27:18
#apt-get install libsox-fmt-mp3
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libmysqlclient16 mysql-common
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  libsox-fmt-mp3
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 47.7 kB of archives.
After this operation, 106 kB of additional disk space will be used.
Get:1 http://10.0.35.1/debian/ squeeze/main libsox-fmt-mp3 amd64 14.3.1-1+b1 [47.7 kB]
Fetched 47.7 kB in 0s (4,475 kB/s)
Selecting previously deselected package libsox-fmt-mp3.
(Reading database ... 128810 files and directories currently installed.)
Unpacking libsox-fmt-mp3 (from .../libsox-fmt-mp3_14.3.1-1+b1_amd64.deb) ...
Setting up libsox-fmt-mp3 (14.3.1-1+b1) ...
/dev/pts/17
10:27:18
#{EXTEN},5)
Display all 827 possibilities? (y or n)
10:27:18
#apt-get install libsox-
libsox-dev         libsox-fmt-alsa    libsox-fmt-base    libsox-fmt-mp3     libsox-fmt-pulse
libsox-fmt-all     libsox-fmt-ao      libsox-fmt-ffmpeg  libsox-fmt-oss
10:27:18
#apt-get install libsox-fmt-mp3
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libmysqlclient16 mysql-common
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  libsox-fmt-mp3
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 47.7 kB of archives.
After this operation, 106 kB of additional disk space will be used.
Get:1 http://10.0.35.1/debian/ squeeze/main libsox-fmt-mp3 amd64 14.3.1-1+b1 [47.7 kB]
Fetched 47.7 kB in 0s (4,475 kB/s)
Selecting previously deselected package libsox-fmt-mp3.
(Reading database ... 128810 files and directories currently installed.)
Unpacking libsox-fmt-mp3 (from .../libsox-fmt-mp3_14.3.1-1+b1_amd64.deb) ...
Setting up libsox-fmt-mp3 (14.3.1-1+b1) ...
/dev/pts/8
10:33:38
#apt-get install mp123
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mp123
/dev/pts/17
10:33:38
#apt-get install mp123
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mp123
/dev/pts/0
10:33:38
#apt-get install mp123
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mp123
/dev/pts/16
10:33:38
#apt-get install mp123
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mp123
/dev/pts/8
10:34:49
#sox -t mp3 bg_melody.mp3 -r 8000 -c1 -t gsm bg_melody.gsm resample
sox WARN sox: effect `resample' is deprecated; see sox(1) for an alternative
sox WARN resample: resample clipped 91 samples; decrease volume?
/dev/pts/17
10:34:49
#sox -t mp3 bg_melody.mp3 -r 8000 -c1 -t gsm bg_melody.gsm resample
sox WARN sox: effect `resample' is deprecated; see sox(1) for an alternative
sox WARN resample: resample clipped 91 samples; decrease volume?
/dev/pts/0
10:34:49
#sox -t mp3 bg_melody.mp3 -r 8000 -c1 -t gsm bg_melody.gsm resample
sox WARN sox: effect `resample' is deprecated; see sox(1) for an alternative
sox WARN resample: resample clipped 91 samples; decrease volume?
/dev/pts/16
10:34:49
#sox -t mp3 bg_melody.mp3 -r 8000 -c1 -t gsm bg_melody.gsm resample
sox WARN sox: effect `resample' is deprecated; see sox(1) for an alternative
sox WARN resample: resample clipped 91 samples; decrease volume?
/dev/pts/8
10:36:54
#ls
asterisk-sounds-ru-gsm-2010-04-28.tar.gz  extensions.conf  orbit-Debian-gdm         seahorse-JoEqD1  ssh-wZDQFW2188
bg_melody.gsm                             install          orbit-user               sip.conf         virtual-user.uryU2P
bg_melody.mp3                             keyring-ABLFzh   reel_around_the_sun.mp3  sound            x
/dev/pts/17
10:36:54
#ls
asterisk-sounds-ru-gsm-2010-04-28.tar.gz  extensions.conf  orbit-Debian-gdm         seahorse-JoEqD1  ssh-wZDQFW2188
bg_melody.gsm                             install          orbit-user               sip.conf         virtual-user.uryU2P
bg_melody.mp3                             keyring-ABLFzh   reel_around_the_sun.mp3  sound            x
/dev/pts/0
10:36:54
#ls
asterisk-sounds-ru-gsm-2010-04-28.tar.gz  extensions.conf  orbit-Debian-gdm         seahorse-JoEqD1  ssh-wZDQFW2188
bg_melody.gsm                             install          orbit-user               sip.conf         virtual-user.uryU2P
bg_melody.mp3                             keyring-ABLFzh   reel_around_the_sun.mp3  sound            x
/dev/pts/16
10:36:54
#ls
asterisk-sounds-ru-gsm-2010-04-28.tar.gz  extensions.conf  orbit-Debian-gdm         seahorse-JoEqD1  ssh-wZDQFW2188
bg_melody.gsm                             install          orbit-user               sip.conf         virtual-user.uryU2P
bg_melody.mp3                             keyring-ABLFzh   reel_around_the_sun.mp3  sound            x
/dev/pts/8
10:37:02
#ls -lh
total 33M
-rw-r--r-- 1 root       root       2.4M Jun 21 16:41 asterisk-sounds-ru-gsm-2010-04-28.tar.gz
-rw-r--r-- 1 root       root       548K Jun 22 11:36 bg_melody.gsm
-rw-r--r-- 1 root       root       9.3M Jun 22 11:33 bg_melody.mp3
-rw-r----- 1 root       root        690 Jun 21 10:44 extensions.conf
-rw-r--r-- 1 root       root       5.2K Jun 20 12:31 install
drwx------ 2 user       user       4.0K Jun 20 11:56 keyring-ABLFzh
drwx------ 2 Debian-gdm Debian-gdm 4.0K Jun 20 11:56 orbit-Debian-gdm
drwx------ 2 user       user       4.0K Jun 22 09:05 orbit-user
-rw-r--r-- 1 root       root        20M Jun 22 11:33 reel_around_the_sun.mp3
drwx------ 2 user       user       4.0K Jun 20 11:56 seahorse-JoEqD1
-rw-r--r-- 1 root       root        540 Jun 21 10:45 sip.conf
drwxr-xr-x 2 user       user       4.0K Jun 21 16:45 sound
drwx------ 2 user       user       4.0K Jun 20 11:56 ssh-wZDQFW2188
drwx------ 2 user       user       4.0K Jun 20 11:56 virtual-user.uryU2P
-rw-r--r-- 1 root       root          6 Jun 20 12:27 x
/dev/pts/17
10:37:02
#ls -lh
total 33M
-rw-r--r-- 1 root       root       2.4M Jun 21 16:41 asterisk-sounds-ru-gsm-2010-04-28.tar.gz
-rw-r--r-- 1 root       root       548K Jun 22 11:36 bg_melody.gsm
-rw-r--r-- 1 root       root       9.3M Jun 22 11:33 bg_melody.mp3
-rw-r----- 1 root       root        690 Jun 21 10:44 extensions.conf
-rw-r--r-- 1 root       root       5.2K Jun 20 12:31 install
drwx------ 2 user       user       4.0K Jun 20 11:56 keyring-ABLFzh
drwx------ 2 Debian-gdm Debian-gdm 4.0K Jun 20 11:56 orbit-Debian-gdm
drwx------ 2 user       user       4.0K Jun 22 09:05 orbit-user
-rw-r--r-- 1 root       root        20M Jun 22 11:33 reel_around_the_sun.mp3
drwx------ 2 user       user       4.0K Jun 20 11:56 seahorse-JoEqD1
-rw-r--r-- 1 root       root        540 Jun 21 10:45 sip.conf
drwxr-xr-x 2 user       user       4.0K Jun 21 16:45 sound
drwx------ 2 user       user       4.0K Jun 20 11:56 ssh-wZDQFW2188
drwx------ 2 user       user       4.0K Jun 20 11:56 virtual-user.uryU2P
-rw-r--r-- 1 root       root          6 Jun 20 12:27 x
/dev/pts/0
10:37:02