/l3/users/kolya/nt-lnet-2006-06-26/linux1.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 |
|
#ls -l
total 2706 drwx------ 2 user user 1024 2006-06-30 09:31 gconfd-user drwx------ 2 user user 1024 2006-06-30 16:36 kde-user drwx------ 3 user user 1024 2006-06-30 16:36 ksocket-user -rw-r--r-- 1 root root 3354 2006-06-30 09:38 l3-saved-3794.27895.17064 -rw-r--r-- 1 root root 2007 2006-06-30 12:20 l3-saved-5877.9410.22418 drwxr-xr-x 2 root root 12288 2006-06-25 21:46 lost+found drwx------ 2 user user 1024 2006-06-30 09:31 orbit-user -rw-r--r-- 1 root root 2734080 2006-06-30 16:33 ppp-2.4.4.tar drwx------ 2 user user 1024 2006-06-30 09:49 ssh-DjcgdH4268 drwx------ 2 user user 1024 2006-06-30 09:49 ssh-ypUYwy4268 |
#tar -h
tar: You must specify one of the `-Acdtrux' options Try `tar --help' or `tar --usage' for more information. |
#tar
tar: You must specify one of the `-Acdtrux' options Try `tar --help' or `tar --usage' for more information. |
#tar --help
files is given either on the command line or via -T option. NUMBER defaults to 1. --overwrite overwrite existing files when extracting -O, --to-stdout extract files to standard output --recursive-unlink empty hierarchies prior to extracting directory --remove-files remove files after adding them to the archive -S, --sparse handle sparse files efficiently -U, --unlink-first remove each file prior to extracting over it -W, --verify attempt to verify the archive after writing it Handling of file attributes: ... Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. The backup suffix is `~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX. The version control may be set with --backup or VERSION_CONTROL, values are: t, numbered make numbered backups nil, existing numbered if numbered backups exist, simple otherwise never, simple always make simple backups *This* tar defaults to: --format=gnu -f- -b20 --rmt-command=/usr/sbin/rmt --rsh-command=/usr/bin/rsh Report bugs to <bug-tar@gnu.org>. |
#tar -xvzy ppp-2.4.4.tar
tar: invalid option -- y Try `tar --help' or `tar --usage' for more information. |
#tar -xvz
^[[A^[[A |
#tar -xvz ppp-2.4.4.tar
|
#tar ppp-2.4.4.tar
tar: You must specify one of the `-Acdtrux' options Try `tar --help' or `tar --usage' for more information. |
#dmesg
i810_audio: Defaulting to base 2 channel mode. i810_audio: Resetting connection 0 i810_audio: Connection 0 with codec id 2 ac97_codec: AC97 Audio codec, id: ALG16 (ALC200/200P) i810_audio: AC'97 codec 2 supports AMAP, total channels = 2 usbcore: registered new driver usbfs usbcore: registered new driver hub USB Universal Host Controller Interface driver v2.2 ACPI: PCI interrupt 0000:00:1d.0[A] -> GSI 16 (level, low) -> IRQ 169 uhci_hcd 0000:00:1d.0: Intel Corp. 82801DB (ICH4) USB UHCI #1 ... usb 4-1: new high speed USB device using address 8 scsi6 : SCSI emulation for USB Mass Storage devices Vendor: Generic Model: USB Flash Disk Rev: 0.00 Type: Direct-Access ANSI SCSI revision: 02 SCSI device sda: 983808 512-byte hdwr sectors (504 MB) sda: assuming Write Enabled sda: assuming drive cache: write through /dev/scsi/host6/bus0/target0/lun0: p1 Attached scsi removable disk sda at scsi6, channel 0, id 0, lun 0 USB Mass Storage device found at 8 |
#fdisk -l /dev/sda
Disk /dev/sda: 503 MB, 503709696 bytes 16 heads, 32 sectors/track, 1921 cylinders Units = cylinders of 512 * 512 = 262144 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 1922 491888 6 FAT16 |
#ls /media/flash/
??? ??? ???? ???? ?? ??? ???????? ????????? ????????? ????????? ??? ??????? ?????? ????????? ??? ???????? ????? ????????? ??? ??????????? ??????? ???? ????????? ?????? ?????????? ??? ??? ??????????? ????????? ???????????? ? ?????!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 10-Strike LANState ???? ?? 21 ???? ??????? ??? Delphi frontpage ??????? linux Linux doc ???????? Mac OS ?????????????? professional ? home.doc WMPInfo.xml |
#tar -help
tar: invalid option -- e Try `tar --help' or `tar --usage' for more information. |
#tar --help
files is given either on the command line or via -T option. NUMBER defaults to 1. --overwrite overwrite existing files when extracting -O, --to-stdout extract files to standard output --recursive-unlink empty hierarchies prior to extracting directory --remove-files remove files after adding them to the archive -S, --sparse handle sparse files efficiently -U, --unlink-first remove each file prior to extracting over it -W, --verify attempt to verify the archive after writing it Handling of file attributes: ... Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. The backup suffix is `~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX. The version control may be set with --backup or VERSION_CONTROL, values are: t, numbered make numbered backups nil, existing numbered if numbered backups exist, simple otherwise never, simple always make simple backups *This* tar defaults to: --format=gnu -f- -b20 --rmt-command=/usr/sbin/rmt --rsh-command=/usr/bin/rsh Report bugs to <bug-tar@gnu.org>. |
#tar xvfz ppp-2.4.4.tar
gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error exit delayed from previous errors |
#tar xvfz ppp-2.4.4.tar.gZ
tar: ppp-2.4.4.tar.gZ: Cannot open: No such file or directory tar: Error is not recoverable: exiting now tar: Child returned status 2 tar: Error exit delayed from previous errors |
#tar xvfz ppp-2.4.4.tar.gz
tar: ppp-2.4.4.tar.gz: Cannot open: No such file or directory tar: Error is not recoverable: exiting now tar: Child returned status 2 tar: Error exit delayed from previous errors |
#ls -l
total 2706 drwx------ 2 user user 1024 2006-06-30 09:31 gconfd-user drwx------ 2 user user 1024 2006-06-30 16:52 kde-user drwx------ 3 user user 1024 2006-06-30 16:51 ksocket-user -rw-r--r-- 1 root root 3354 2006-06-30 09:38 l3-saved-3794.27895.17064 -rw-r--r-- 1 root root 2007 2006-06-30 12:20 l3-saved-5877.9410.22418 drwxr-xr-x 2 root root 12288 2006-06-25 21:46 lost+found drwx------ 2 user user 1024 2006-06-30 09:31 orbit-user -rw-r--r-- 1 root root 2734080 2006-06-30 16:33 ppp-2.4.4.tar drwx------ 2 user user 1024 2006-06-30 09:49 ssh-DjcgdH4268 drwx------ 2 user user 1024 2006-06-30 09:49 ssh-ypUYwy4268 |
#ls -l
|
#ls -l
|
#tar xvfz ppp-2.4.4.tar.gz
ppp-2.4.4/pppd/plugins/rp-pppoe/Makefile.linux ppp-2.4.4/pppd/plugins/rp-pppoe/common.c ppp-2.4.4/pppd/plugins/rp-pppoe/config.h ppp-2.4.4/pppd/plugins/rp-pppoe/debug.c ppp-2.4.4/pppd/plugins/rp-pppoe/discovery.c ppp-2.4.4/pppd/plugins/rp-pppoe/pppoe-discovery.c ppp-2.4.4/pppd/plugins/rp-pppoe/pppoe.h ppp-2.4.4/pppd/plugins/Makefile.linux ppp-2.4.4/pppd/plugins/passprompt.c ppp-2.4.4/pppd/plugins/Makefile.sol2 ... ppp-2.4.4/README.MPPE ppp-2.4.4/README.MSCHAP81 ppp-2.4.4/README.cbcp ppp-2.4.4/README.eap-srp ppp-2.4.4/README.linux ppp-2.4.4/README.pppoe ppp-2.4.4/README.pwfd ppp-2.4.4/README.sol2 ppp-2.4.4/SETUP ppp-2.4.4/configure |
#cd ppp-2.4.4
|
#setup
bash: setup: command not found |
#ls -l
total 151 -rw-r--r-- 1 user user 18162 2000-04-13 13:12 Changes-2.3 drwxr-xr-x 2 user user 1024 2006-06-18 09:39 chat drwxr-xr-x 2 user user 1024 2002-12-07 12:10 common -rwxr-xr-x 1 user user 6018 2005-07-09 03:23 configure drwxr-xr-x 3 user user 1024 1999-11-15 06:08 contrib drwxr-xr-x 2 user user 1024 1999-02-27 05:09 etc.ppp -rw-r--r-- 1 user user 25906 2002-11-09 09:06 FAQ drwxr-xr-x 4 user user 1024 2000-08-01 04:40 include drwxr-xr-x 2 user user 1024 2006-06-18 09:39 linux ... -rw-r--r-- 1 user user 11918 2003-11-27 23:31 README.linux -rw-r--r-- 1 user user 3461 2002-05-28 20:00 README.MPPE -rw-r--r-- 1 user user 8353 2003-11-27 23:21 README.MSCHAP80 -rw-r--r-- 1 user user 2421 2002-05-21 20:26 README.MSCHAP81 -rw-r--r-- 1 user user 3543 2002-11-09 13:24 README.pppoe -rw-r--r-- 1 user user 3556 2002-02-12 02:55 README.pwfd -rw-r--r-- 1 user user 10261 2002-09-07 10:36 README.sol2 drwxr-xr-x 3 user user 1024 2004-11-13 14:27 scripts -rw-r--r-- 1 user user 4208 2004-02-02 05:36 SETUP drwxr-xr-x 2 user user 1024 2005-08-26 03:11 solaris |
#./con
configure contrib/ |
#./configure
Configuring for Linux Creating Makefiles. Makefile <= linux/Makefile.top pppd/Makefile <= pppd/Makefile.linux pppstats/Makefile <= pppstats/Makefile.linux chat/Makefile <= chat/Makefile.linux pppdump/Makefile <= pppdump/Makefile.linux pppd/plugins/Makefile <= pppd/plugins/Makefile.linux pppd/plugins/rp-pppoe/Makefile <= pppd/plugins/rp-pppoe/Makefile.linux pppd/plugins/radius/Makefile <= pppd/plugins/radius/Makefile.linux pppd/plugins/pppoatm/Makefile <= pppd/plugins/pppoatm/Makefile.linux |
#make distclean
make: *** No rule to make target `distclean'. Stop. |
#wget 'http://marc/
> |
#wget 'http://marc.
> |
#wget ftp://ftp.samba.org/pub/ppp/ppp-2.4.4.tar.gz
--16:58:44-- ftp://ftp.samba.org/pub/ppp/ppp-2.4.4.tar.gz => `ppp-2.4.4.tar.gz' Resolving ftp.samba.org... 216.251.47.16 Connecting to ftp.samba.org|216.251.47.16|:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD /pub/ppp ... done. ==> PASV ... done. ==> RETR ppp-2.4.4.tar.gz ... done. Length: 688.763 (673K) (unauthoritative) 100%[=================================================>] 688.763 61.53K/s ETA 00:00 16:59:00 (59.84 KB/s) - `ppp-2.4.4.tar.gz' saved [688763] |
#tar xvfz ppp-2.4.4.tar.gz
ppp-2.4.4/pppd/plugins/rp-pppoe/Makefile.linux ppp-2.4.4/pppd/plugins/rp-pppoe/common.c ppp-2.4.4/pppd/plugins/rp-pppoe/config.h ppp-2.4.4/pppd/plugins/rp-pppoe/debug.c ppp-2.4.4/pppd/plugins/rp-pppoe/discovery.c ppp-2.4.4/pppd/plugins/rp-pppoe/pppoe-discovery.c ppp-2.4.4/pppd/plugins/rp-pppoe/pppoe.h ppp-2.4.4/pppd/plugins/Makefile.linux ppp-2.4.4/pppd/plugins/passprompt.c ppp-2.4.4/pppd/plugins/Makefile.sol2 ... ppp-2.4.4/README.MPPE ppp-2.4.4/README.MSCHAP81 ppp-2.4.4/README.cbcp ppp-2.4.4/README.eap-srp ppp-2.4.4/README.linux ppp-2.4.4/README.pppoe ppp-2.4.4/README.pwfd ppp-2.4.4/README.sol2 ppp-2.4.4/SETUP ppp-2.4.4/configure |
#./configure
Configuring for Linux Creating Makefiles. Makefile <= linux/Makefile.top pppd/Makefile <= pppd/Makefile.linux pppstats/Makefile <= pppstats/Makefile.linux chat/Makefile <= chat/Makefile.linux pppdump/Makefile <= pppdump/Makefile.linux pppd/plugins/Makefile <= pppd/plugins/Makefile.linux pppd/plugins/rp-pppoe/Makefile <= pppd/plugins/rp-pppoe/Makefile.linux pppd/plugins/radius/Makefile <= pppd/plugins/radius/Makefile.linux pppd/plugins/pppoatm/Makefile <= pppd/plugins/pppoatm/Makefile.linux |
#make
cd chat; make all make[1]: Entering directory `/tmp/ppp-2.4.4/chat' cc -c -O2 -g -pipe -DTERMIOS -DSIGTYPE=void -UNO_SLEEP -DFNDELAY=O_NDELAY -o chat.o chat.c cc -o chat chat.o make[1]: Leaving directory `/tmp/ppp-2.4.4/chat' cd pppd/plugins; make all make[1]: Entering directory `/tmp/ppp-2.4.4/pppd/plugins' gcc -o minconn.so -shared -O2 -g -I.. -I../../include -fPIC minconn.c gcc -o passprompt.so -shared -O2 -g -I.. -I../../include -fPIC passprompt.c gcc -o passwordfd.so -shared -O2 -g -I.. -I../../include -fPIC passwordfd.c ... cc -O -I../include -o pppstats pppstats.c make[1]: Leaving directory `/tmp/ppp-2.4.4/pppstats' cd pppdump; make all make[1]: Entering directory `/tmp/ppp-2.4.4/pppdump' cc -O -I../include/net -c -o pppdump.o pppdump.c cc -O -I../include/net -c -o bsd-comp.o bsd-comp.c cc -O -I../include/net -c -o deflate.o deflate.c cc -O -I../include/net -c -o zlib.o zlib.c cc -o pppdump pppdump.o bsd-comp.o deflate.o zlib.o make[1]: Leaving directory `/tmp/ppp-2.4.4/pppdump' |
#make install
install -d -m 755 /usr/local/share/man/man8 cd chat; make install make[1]: Entering directory `/tmp/ppp-2.4.4/chat' mkdir -p /usr/local/sbin /usr/local/share/man/man8 install -s -c chat /usr/local/sbin install -c -m 644 chat.8 /usr/local/share/man/man8 make[1]: Leaving directory `/tmp/ppp-2.4.4/chat' cd pppd/plugins; make install make[1]: Entering directory `/tmp/ppp-2.4.4/pppd/plugins' install -d /usr/local/lib/pppd/2.4.4 ... make[1]: Entering directory `/tmp/ppp-2.4.4/pppdump' mkdir -p /usr/local/sbin /usr/local/share/man/man8 install -s -c pppdump /usr/local/sbin install -c -m 444 pppdump.8 /usr/local/share/man/man8 make[1]: Leaving directory `/tmp/ppp-2.4.4/pppdump' cd pppd; make install-devel make[1]: Entering directory `/tmp/ppp-2.4.4/pppd' mkdir -p /usr/local/include/pppd install -c -m 644 ccp.h chap-new.h ecp.h fsm.h ipcp.h ipxcp.h lcp.h magic.h md5.h patchlevel.h pathnames.h pppd.h upap.h eap.h md4.h chap_ms.h sha1.h pppcrypt.h tdb.h spinlock.h /usr/local/include/pppd make[1]: Leaving directory `/tmp/ppp-2.4.4/pppd' |
#/etc/init.d/pptpd restart
Restarting PPTP: Stopping PPTP: pptpd. Starting PPTP Daemon: pptpd. |
#ls -l
|
#ls -l
|
#rdesktop -a 16 192.168.15.182
|
#rdesktop -a 16 192.168.15.182
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:76:A0:A9:12 inet addr:192.168.15.1 Bcast:192.168.15.255 Mask:255.0.0.0 inet6 addr: fe80::204:76ff:fea0:a912/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:61542 errors:0 dropped:0 overruns:0 frame:0 TX packets:58115 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:34702111 (33.0 MiB) TX bytes:9432997 (8.9 MiB) Interrupt:201 Base address:0xc000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:3257 errors:0 dropped:0 overruns:0 frame:0 TX packets:3257 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:376983 (368.1 KiB) TX bytes:376983 (368.1 KiB) |
#vi /etc/init.d/pptpd
|
#make install
|
#ls /usr/local/
bin games include lib man sbin share src |
#ls /usr/local/sbin/p*
/usr/local/sbin/pppd /usr/local/sbin/pppoe-discovery /usr/local/sbin/pppdump /usr/local/sbin/pppstats |
#make clean
rm -f `find . -name '*.[oas]' -print` rm -f `find . -name 'core' -print` rm -f `find . -name '*~' -print` cd chat; make clean make[1]: Entering directory `/tmp/ppp-2.4.4/chat' rm -f chat.o chat *~ make[1]: Leaving directory `/tmp/ppp-2.4.4/chat' cd pppd/plugins; make clean make[1]: Entering directory `/tmp/ppp-2.4.4/pppd/plugins' rm -f *.o *.so *.a ... rm -f main.o magic.o fsm.o lcp.o ipcp.o upap.o chap-new.o md5.o ccp.o ecp.o auth.o options.o demand.o utils.o sys-linux.o ipxcp.o tty.o eap.o chap-md5.o md4.o chap_ms.o sha1.o pppcrypt.o multilink.o tdb.o spinlock.o pppd *~ #* core make[1]: Leaving directory `/tmp/ppp-2.4.4/pppd' cd pppstats; make clean make[1]: Entering directory `/tmp/ppp-2.4.4/pppstats' rm -f pppstats *~ #* core make[1]: Leaving directory `/tmp/ppp-2.4.4/pppstats' cd pppdump; make clean make[1]: Entering directory `/tmp/ppp-2.4.4/pppdump' rm -f pppdump pppdump.o bsd-comp.o deflate.o zlib.o *~ make[1]: Leaving directory `/tmp/ppp-2.4.4/pppdump' |
#./configure
Configuring for Linux Creating Makefiles. Makefile <= linux/Makefile.top pppd/Makefile <= pppd/Makefile.linux pppstats/Makefile <= pppstats/Makefile.linux chat/Makefile <= chat/Makefile.linux pppdump/Makefile <= pppdump/Makefile.linux pppd/plugins/Makefile <= pppd/plugins/Makefile.linux pppd/plugins/rp-pppoe/Makefile <= pppd/plugins/rp-pppoe/Makefile.linux pppd/plugins/radius/Makefile <= pppd/plugins/radius/Makefile.linux pppd/plugins/pppoatm/Makefile <= pppd/plugins/pppoatm/Makefile.linux |
#make && make install
gcc -o winbind.so -shared -O2 -g -I.. -I../../include -fPIC winbind.c for d in rp-pppoe pppoatm radius; do make -w -C $d all; done make[2]: Entering directory `/tmp/ppp-2.4.4/pppd/plugins/rp-pppoe' cc -O2 -g -I../../../include/linux '-DVERSION="3.3"' -c -o discovery.o -fPIC discovery.c cc -O2 -g -I../../../include/linux '-DVERSION="3.3"' -c -o if.o -fPIC if.c cc -O2 -g -I../../../include/linux '-DVERSION="3.3"' -c -o common.o -fPIC common.c cc -O2 -g -I../../../include/linux '-DVERSION="3.3"' -c -o debug.o -fPIC debug.c ar -rc libplugin.a discovery.o if.o common.o debug.o cc '-DRP_VERSION="3.3"' -O2 -g -I../../../include/linux -I../../.. -c -o plugin.o -fPIC plugin.c cc -o rp-pppoe.so -shared plugin.o libplugin.a ... make[1]: Entering directory `/tmp/ppp-2.4.4/pppdump' mkdir -p /usr/local/sbin /usr/local/share/man/man8 install -s -c pppdump /usr/local/sbin install -c -m 444 pppdump.8 /usr/local/share/man/man8 make[1]: Leaving directory `/tmp/ppp-2.4.4/pppdump' cd pppd; make install-devel make[1]: Entering directory `/tmp/ppp-2.4.4/pppd' mkdir -p /usr/local/include/pppd install -c -m 644 ccp.h chap-new.h ecp.h fsm.h ipcp.h ipxcp.h lcp.h magic.h md5.h patchlevel.h pathnames.h pppd.h upap.h eap.h md4.h chap_ms.h sha1.h pppcrypt.h tdb.h spinlock.h /usr/local/include/pppd make[1]: Leaving directory `/tmp/ppp-2.4.4/pppd' |
#/etc/init.d/pptpd restart
Restarting PPTP: Stopping PPTP: pptpd. Starting PPTP Daemon: /usr/local/sbin/pppd: no device specified and stdin is not a tty pptpd. |
#/etc/init.d/pptpd restart
Restarting PPTP: Stopping PPTP: pptpd. Starting PPTP Daemon: /usr/local/sbin/pppd: no device specified and stdin is not a tty pptpd. |
#vi /etc/init.d/pptpd
|
#vi /etc/pptpd.conf
12c12 < ppp /usr/sbin/pppd --- > ppp /usr/local/sbin/pppd |
#/etc/init.d/pptpd restart
Restarting PPTP: Stopping PPTP: pptpd. Starting PPTP Daemon: /usr/local/sbin/pppd: no device specified and stdin is not a tty pptpd. |
#vi /etc/pptpd.conf
|
#scp pp
ppp-2.4.4/ ppp-2.4.4.tar.gz pptpd-1.3.2/ pptpd-1.3.2.tar.gz |
#scp pptpd-1.3.2/p.patch root@192.168.15.1:/root
p.patch 100% 2610 2.6KB/s 00:00 |
#make clean
rm -f `find . -name '*.[oas]' -print` rm -f `find . -name 'core' -print` rm -f `find . -name '*~' -print` cd chat; make clean make[1]: Entering directory `/tmp/ppp-2.4.4/chat' rm -f chat.o chat *~ make[1]: Leaving directory `/tmp/ppp-2.4.4/chat' cd pppd/plugins; make clean make[1]: Entering directory `/tmp/ppp-2.4.4/pppd/plugins' rm -f *.o *.so *.a ... rm -f main.o magic.o fsm.o lcp.o ipcp.o upap.o chap-new.o md5.o ccp.o ecp.o auth.o options.o demand.o utils.o sys-linux.o ipxcp.o tty.o eap.o chap-md5.o md4.o chap_ms.o sha1.o pppcrypt.o multilink.o tdb.o spinlock.o pppd *~ #* core make[1]: Leaving directory `/tmp/ppp-2.4.4/pppd' cd pppstats; make clean make[1]: Entering directory `/tmp/ppp-2.4.4/pppstats' rm -f pppstats *~ #* core make[1]: Leaving directory `/tmp/ppp-2.4.4/pppstats' cd pppdump; make clean make[1]: Entering directory `/tmp/ppp-2.4.4/pppdump' rm -f pppdump pppdump.o bsd-comp.o deflate.o zlib.o *~ make[1]: Leaving directory `/tmp/ppp-2.4.4/pppdump' |
#make distclean
make: *** No rule to make target `distcleanclean'. Stop. |
#exit
exit Connection to 192.168.15.2 closed. |
#sl
bash: sl: command not found |
#ls
Changes-2.3 etc.ppp modules pppdump README.linux README.pwfd chat FAQ PLUGINS pppstats README.MPPE README.sol2 common include ppp-2.4.4 README README.MSCHAP80 scripts configure linux ppp-2.4.4.tar.gz README.cbcp README.MSCHAP81 SETUP contrib Makefile pppd README.eap-srp README.pppoe solaris |
#ssh root@192.168.15.2
Enter passphrase for key '/root/.ssh/id_dsa': Last login: Fri Jun 30 16:27:38 2006 from 192.168.15.1 Linux linux2.unix.nt 2.6.8-2-686-smp #1 SMP Mon Jan 24 02:32:52 EST 2005 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. l3-agent is already running: pid=3684; pidfile=/root/.lilalo/l3-agent.pid Agent pid 3687 |
#cp ./ppp
ppp-2.4.4/ ppp-2.4.4.tar.gz pppd/ pppdump/ pppstats/ |
#cd
|
#ls
dbootstrap_settings Desktop install-report.template mysecondscript2 p.patch |
#cp p.patch /tmp/ppp-2.4.4/
|
#cd /tmp/ppp-2.4.4/
|
#patch -p3 < p.patch
missing header for unified diff at line 8 of patch can't find file to patch at input line 8 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |Index: pptpctrl.c |=================================================================== |RCS file: /cvsroot/poptop/poptop/pptpctrl.c,v |retrieving revision 1.17 |diff -u -r1.17 pptpctrl.c |--- pptpctrl.c 24 Jan 2005 22:04:13 -0000 1.17 |+++ pptpctrl.c 29 Jul 2005 12:58:53 -0000 -------------------------- File to patch: pptpctrl.c pptpctrl.c: No such file or directory Skip this patch? [y] n File to patch: |
#scp pptpd-1.3.2.tar.gz root@192.168.15.1:/root
pptpd-1.3.2.tar.gz 100% 230KB 230.0KB/s 00:00 |
#exit
exit Connection to 192.168.15.2 closed. |
#cd
|
#ls
dbootstrap_settings Desktop install-report.template mysecondscript2 p.patch |
#ssh root@192.168.15.2
Enter passphrase for key '/root/.ssh/id_dsa': Last login: Fri Jun 30 17:09:13 2006 from 192.168.15.1 Linux linux2.unix.nt 2.6.8-2-686-smp #1 SMP Mon Jan 24 02:32:52 EST 2005 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. l3-agent is already running: pid=3684; pidfile=/root/.lilalo/l3-agent.pid Agent pid 3687 |
#tar xvzfC pptpd-1.3.2.tar.gz /usr/src/
pptpd-1.3.2/ pptpd-1.3.2/debian/ pptpd-1.3.2/debian/po/ pptpd-1.3.2/debian/po/POTFILES.in pptpd-1.3.2/debian/po/fr.po pptpd-1.3.2/debian/po/pt_BR.po pptpd-1.3.2/debian/po/templates.pot pptpd-1.3.2/debian/README.debian pptpd-1.3.2/debian/changelog pptpd-1.3.2/debian/conffiles ... pptpd-1.3.2/pptpctrl.8 pptpd-1.3.2/pptpd.8 pptpd-1.3.2/pptpd.conf.5 pptpd-1.3.2/Makefile.uClinux pptpd-1.3.2/config.embed.h pptpd-1.3.2/version pptpd-1.3.2/reconf pptpd-1.3.2/pptpd.init pptpd-1.3.2/pptpd.spec pptpd-1.3.2/makepackage |
#cp p.patch /usr/src/
|
#cd /usr/src/
|
#pa
pac pamdice pamstretch-gen paste pager pamfile pam_tally patch pal2rgb pam_getenv pango-querymodules pathchk palmtopnm pamoil pango-view pamcut pamstack parse-edid pamdeinterlace pamstretch passwd |
#vi p.patch
|
#cd pptpd-1.3.2/
|
#patch -p3 < ../p.patch
missing header for unified diff at line 8 of patch can't find file to patch at input line 8 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |Index: pptpctrl.c |=================================================================== |RCS file: /cvsroot/poptop/poptop/pptpctrl.c,v |retrieving revision 1.17 |diff -u -r1.17 pptpctrl.c |--- pptpctrl.c 24 Jan 2005 22:04:13 -0000 1.17 |+++ pptpctrl.c 29 Jul 2005 12:58:53 -0000 -------------------------- File to patch: pptpctrl.c patching file pptpctrl.c Reversed (or previously applied) patch detected! Assume -R? [n] |
#./configure
checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... ... checking which syslog facility to use... LOG_DAEMON (the default) =============================================================================== Configuration chosen: PPPd: Standard. LIBWRAP security: No. Broadcast Relay: No. configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing depfiles commands |
#make && make install
make all-am make[1]: Entering directory `/usr/src/pptpd-1.3.2' gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -O2 -fno-builtin -Wall -DSBINDIR='"/usr/local/sbin"' -c pqueue.c gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -O2 -fno-builtin -Wall -DSBINDIR='"/usr/local/sbin"' -c pptpd.c gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -O2 -fno-builtin -Wall -DSBINDIR='"/usr/local/sbin"' -c configfile.c gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -O2 -fno-builtin -Wall -DSBINDIR='"/usr/local/sbin"' -c pptpmanager.c gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -O2 -fno-builtin -Wall -DSBINDIR='"/usr/local/sbin"' -c compat.c gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -O2 -fno-builtin -Wall -DSBINDIR='"/usr/local/sbin"' -c inststr.c gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -O2 -fno-builtin -Wall -DSBINDIR='"/usr/local/sbin"' -c getopt.c gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -O2 -fno-builtin -Wall -DSBINDIR='"/usr/local/sbin"' -c getopt1.c ... test -z "/usr/local/sbin" || mkdir -p -- "/usr/local/sbin" /usr/bin/install -c 'pptpd' '/usr/local/sbin/pptpd' /usr/bin/install -c 'pptpctrl' '/usr/local/sbin/pptpctrl' /usr/bin/install -c 'bcrelay' '/usr/local/sbin/bcrelay' test -z "/usr/local/man/man5" || mkdir -p -- "/usr/local/man/man5" /usr/bin/install -c -m 644 './pptpd.conf.5' '/usr/local/man/man5/pptpd.conf.5' test -z "/usr/local/man/man8" || mkdir -p -- "/usr/local/man/man8" /usr/bin/install -c -m 644 './pptpctrl.8' '/usr/local/man/man8/pptpctrl.8' /usr/bin/install -c -m 644 './pptpd.8' '/usr/local/man/man8/pptpd.8' make[1]: Leaving directory `/usr/src/pptpd-1.3.2' |
#ls /usr/local/sbin/pp
pppd pppoe-discovery pptpctrl pppdump pppstats pptpd |
#ls /usr/local/sbin/pptp
|
#vi /etc/init.d/pptpd
6c6 < DAEMON=/usr/local/sbin/pppd --- > DAEMON=/usr/local/sbin/pptpd |
#/etc/init.d/pptpd restart
Restarting PPTP: Stopping PPTP: pptpd. Starting PPTP Daemon: pptpd. |
#rdesktop -a16 -u administrator -p password
rdesktop: A Remote Desktop Protocol client. Version 1.4.1. Copyright (C) 1999-2005 Matt Chapman. See http://www.rdesktop.org/ for more information. Usage: rdesktop [options] server[:port] -u: user name -d: domain -s: shell -c: working directory -p: password (- to prompt) -n: client hostname ... for redirected disks '-r lptport:LPT1=/dev/lp0': enable parallel redirection of /dev/lp0 to LPT1 or LPT1=/dev/lp0,LPT2=/dev/lp1 '-r printer:mydeskjet': enable printer redirection or mydeskjet="HP LaserJet IIIP" to enter server driver as well '-r sound:[local|off|remote]': enable sound redirection remote would leave sound on server -0: attach to console -4: use RDP version 4 -5: use RDP version 5 (default) |
#rdesktop -a16 192.168.15.182 -u administrator -p password
ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ... ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 [1]+ Stopped rdesktop -a16 192.168.15.182 -u administrator -p password |
#bg
[1]+ rdesktop -a16 192.168.15.182 -u administrator -p password & |
#tail /var/log/messages
Jun 30 15:46:07 linux1 -- MARK -- Jun 30 16:06:07 linux1 -- MARK -- Jun 30 16:25:15 linux1 usb.agent[11518]: usb-storage: already loaded Jun 30 16:25:15 linux1 scsi.agent[11531]: disk at /devices/pci0000:00/0000:00:1d.7/usb4/4-1/4-1:1.0/host4/4:0:0:0 Jun 30 16:33:08 linux1 usb.agent[11808]: usb-storage: already loaded Jun 30 16:33:08 linux1 scsi.agent[11830]: disk at /devices/pci0000:00/0000:00:1d.7/usb4/4-2/4-2:1.0/host5/5:0:0:0 Jun 30 16:46:07 linux1 -- MARK -- Jun 30 16:47:11 linux1 usb.agent[12249]: usb-storage: already loaded Jun 30 16:47:12 linux1 scsi.agent[12265]: disk at /devices/pci0000:00/0000:00:1d.7/usb4/4-1/4-1:1.0/host6/6:0:0:0 Jun 30 17:06:07 linux1 -- MARK -- |
#tail /var/log/daemon.log
Jun 30 13:29:12 linux1 named[2998]: Cleaned cache of 2 RRsets Jun 30 13:29:12 linux1 named[2998]: USAGE 1151663352 1151648952 CPU=0.050992u/0.056991s CHILDCPU=0.056991u/0.06499s Jun 30 13:29:12 linux1 named[2998]: NSTATS 1151663352 1151648952 A=143 SOA=102 PTR=67 AAAA=17 Jun 30 13:29:12 linux1 named[2998]: XSTATS 1151663352 1151648952 RR=95 RNXD=14 RFwdR=0 RDupR=0 RFail=2 RFErr=0 RErr=0 RAXFR=0 RLame=0 ROpts=0 SSysQ=33 SAns=309 SFwdQ=10 SDupQ=66 SErr=0 RQ=329 RIQ=0 RFwdQ=10 RDupQ=2 RTCP=25 SFwdR=0 SFail=0 SFErr=0 SNaAns=305 SNXD=67 RUQ=0 RURQ=0 RUXFR=0 RUUpd=0 Jun 30 13:39:12 linux1 named[2998]: Err/TO getting serial# for "sergey.unix.nt" Jun 30 13:39:12 linux1 named-xfer[8018]: [[192.168.15.1].53] not authoritative for sergey.unix.nt, SOA query got rcode 0, aa 0, ancount 0, aucount 13 Jun 30 13:49:12 linux1 named[2998]: Err/TO getting serial# for "sergey.unix.nt" Jun 30 13:49:12 linux1 named-xfer[8088]: [[192.168.15.1].53] not authoritative for sergey.unix.nt, SOA query got rcode 0, aa 0, ancount 0, aucount 13 Jun 30 13:59:12 linux1 named[2998]: Err/TO getting serial# for "sergey.unix.nt" Jun 30 13:59:12 linux1 named-xfer[8329]: [[192.168.15.1].53] not authoritative for sergey.unix.nt, SOA query got rcode 0, aa 0, ancount 0, aucount 13 |
#iptables -l
iptables v1.3.3: Unknown arg `-l' Try `iptables -h' or 'iptables --help' for more information. |
#iptables -L
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#iptables -t nat -L
Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#tail /var/log/debug
Jun 30 17:19:18 linux1 pptpd[15857]: CTRL: pty_fd = 6 Jun 30 17:19:18 linux1 pptpd[15857]: CTRL: tty_fd = 7 Jun 30 17:19:18 linux1 pptpd[15858]: CTRL (PPPD Launcher): program binary = /usr/sbin/pppd Jun 30 17:19:18 linux1 pptpd[15858]: CTRL (PPPD Launcher): local address = 192.168.16.1 Jun 30 17:19:18 linux1 pptpd[15858]: CTRL (PPPD Launcher): remote address = 192.168.17.1 Jun 30 17:19:18 linux1 pptpd[15857]: CTRL: I wrote 32 bytes to the client. Jun 30 17:19:18 linux1 pptpd[15857]: CTRL: Sent packet to client Jun 30 17:19:18 linux1 pptpd[15857]: CTRL: Reaping child PPP[15858] Jun 30 17:19:18 linux1 pptpd[15857]: CTRL: Exiting now Jun 30 17:19:18 linux1 pptpd[13024]: MGR: Reaped child 15857 |
#host 192.168.15.1
1.15.168.192.in-addr.arpa domain name pointer linux1.linux.nt. |
#ERROR: get bitmap 2:32
ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ... ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 |
#tail /var/log/debug
Jun 30 17:19:18 linux1 pptpd[15857]: CTRL: pty_fd = 6 Jun 30 17:19:18 linux1 pptpd[15857]: CTRL: tty_fd = 7 Jun 30 17:19:18 linux1 pptpd[15858]: CTRL (PPPD Launcher): program binary = /usr/sbin/pppd Jun 30 17:19:18 linux1 pptpd[15858]: CTRL (PPPD Launcher): local address = 192.168.16.1 Jun 30 17:19:18 linux1 pptpd[15858]: CTRL (PPPD Launcher): remote address = 192.168.17.1 Jun 30 17:19:18 linux1 pptpd[15857]: CTRL: I wrote 32 bytes to the client. Jun 30 17:19:18 linux1 pptpd[15857]: CTRL: Sent packet to client Jun 30 17:19:18 linux1 pptpd[15857]: CTRL: Reaping child PPP[15858] Jun 30 17:19:18 linux1 pptpd[15857]: CTRL: Exiting now Jun 30 17:19:18 linux1 pptpd[13024]: MGR: Reaped child 15857 |
#tail /var/log/daemon.log
Jun 30 13:29:12 linux1 named[2998]: Cleaned cache of 2 RRsets Jun 30 13:29:12 linux1 named[2998]: USAGE 1151663352 1151648952 CPU=0.050992u/0.056991s CHILDCPU=0.056991u/0.06499s Jun 30 13:29:12 linux1 named[2998]: NSTATS 1151663352 1151648952 A=143 SOA=102 PTR=67 AAAA=17 Jun 30 13:29:12 linux1 named[2998]: XSTATS 1151663352 1151648952 RR=95 RNXD=14 RFwdR=0 RDupR=0 RFail=2 RFErr=0 RErr=0 RAXFR=0 RLame=0 ROpts=0 SSysQ=33 SAns=309 SFwdQ=10 SDupQ=66 SErr=0 RQ=329 RIQ=0 RFwdQ=10 RDupQ=2 RTCP=25 SFwdR=0 SFail=0 SFErr=0 SNaAns=305 SNXD=67 RUQ=0 RURQ=0 RUXFR=0 RUUpd=0 Jun 30 13:39:12 linux1 named[2998]: Err/TO getting serial# for "sergey.unix.nt" Jun 30 13:39:12 linux1 named-xfer[8018]: [[192.168.15.1].53] not authoritative for sergey.unix.nt, SOA query got rcode 0, aa 0, ancount 0, aucount 13 Jun 30 13:49:12 linux1 named[2998]: Err/TO getting serial# for "sergey.unix.nt" Jun 30 13:49:12 linux1 named-xfer[8088]: [[192.168.15.1].53] not authoritative for sergey.unix.nt, SOA query got rcode 0, aa 0, ancount 0, aucount 13 Jun 30 13:59:12 linux1 named[2998]: Err/TO getting serial# for "sergey.unix.nt" Jun 30 13:59:12 linux1 named-xfer[8329]: [[192.168.15.1].53] not authoritative for sergey.unix.nt, SOA query got rcode 0, aa 0, ancount 0, aucount 13 |
#ERROR: get bitmap 2:32
ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ... ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 ERROR: get bitmap 2:32 |
#tail /var/log/daemon.log
Jun 30 13:29:12 linux1 named[2998]: Cleaned cache of 2 RRsets Jun 30 13:29:12 linux1 named[2998]: USAGE 1151663352 1151648952 CPU=0.050992u/0.056991s CHILDCPU=0.056991u/0.06499s Jun 30 13:29:12 linux1 named[2998]: NSTATS 1151663352 1151648952 A=143 SOA=102 PTR=67 AAAA=17 Jun 30 13:29:12 linux1 named[2998]: XSTATS 1151663352 1151648952 RR=95 RNXD=14 RFwdR=0 RDupR=0 RFail=2 RFErr=0 RErr=0 RAXFR=0 RLame=0 ROpts=0 SSysQ=33 SAns=309 SFwdQ=10 SDupQ=66 SErr=0 RQ=329 RIQ=0 RFwdQ=10 RDupQ=2 RTCP=25 SFwdR=0 SFail=0 SFErr=0 SNaAns=305 SNXD=67 RUQ=0 RURQ=0 RUXFR=0 RUUpd=0 Jun 30 13:39:12 linux1 named[2998]: Err/TO getting serial# for "sergey.unix.nt" Jun 30 13:39:12 linux1 named-xfer[8018]: [[192.168.15.1].53] not authoritative for sergey.unix.nt, SOA query got rcode 0, aa 0, ancount 0, aucount 13 Jun 30 13:49:12 linux1 named[2998]: Err/TO getting serial# for "sergey.unix.nt" Jun 30 13:49:12 linux1 named-xfer[8088]: [[192.168.15.1].53] not authoritative for sergey.unix.nt, SOA query got rcode 0, aa 0, ancount 0, aucount 13 Jun 30 13:59:12 linux1 named[2998]: Err/TO getting serial# for "sergey.unix.nt" Jun 30 13:59:12 linux1 named-xfer[8329]: [[192.168.15.1].53] not authoritative for sergey.unix.nt, SOA query got rcode 0, aa 0, ancount 0, aucount 13 |
#tail /var/log/debug
Jun 30 17:19:18 linux1 pptpd[15857]: CTRL: pty_fd = 6 Jun 30 17:19:18 linux1 pptpd[15857]: CTRL: tty_fd = 7 Jun 30 17:19:18 linux1 pptpd[15858]: CTRL (PPPD Launcher): program binary = /usr/sbin/pppd Jun 30 17:19:18 linux1 pptpd[15858]: CTRL (PPPD Launcher): local address = 192.168.16.1 Jun 30 17:19:18 linux1 pptpd[15858]: CTRL (PPPD Launcher): remote address = 192.168.17.1 Jun 30 17:19:18 linux1 pptpd[15857]: CTRL: I wrote 32 bytes to the client. Jun 30 17:19:18 linux1 pptpd[15857]: CTRL: Sent packet to client Jun 30 17:19:18 linux1 pptpd[15857]: CTRL: Reaping child PPP[15858] Jun 30 17:19:18 linux1 pptpd[15857]: CTRL: Exiting now Jun 30 17:19:18 linux1 pptpd[13024]: MGR: Reaped child 15857 |
Время первой команды журнала | 16:43:55 2006- 6-30 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 17:23:58 2006- 6-30 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 22.77 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.67 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 2.52 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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