/l3/users/clint/nt-lnet-2006-06-26/linux2.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 |
|
#ifconfig
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:5424 errors:0 dropped:0 overruns:0 frame:0 TX packets:5424 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:7266353 (6.9 MiB) TX bytes:7266353 (6.9 MiB) ppp0 Link encap:Point-to-Point Protocol inet addr:192.168.16.1 P-t-P:192.168.17.1 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:79:67:96:71 inet addr:192.168.15.2 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::204:79ff:fe67:9671/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:84263 errors:0 dropped:0 overruns:0 frame:0 TX packets:80480 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:28193331 (26.8 MiB) TX bytes:22551100 (21.5 MiB) Interrupt:209 Base address:0xdc00 lo Link encap:Local Loopback ... TX packets:5424 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:7266353 (6.9 MiB) TX bytes:7266353 (6.9 MiB) ppp0 Link encap:Point-to-Point Protocol inet addr:192.168.16.1 P-t-P:192.168.17.1 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) |
#tail -f /var/log/daemon.log
│ Exit from Minicom │ └──────────────────────────┘ Jun 30 15:20:31 linux2 pppd[10259]: pppd 2.4.4 started by root, uid 0 Jun 30 15:20:31 linux2 pppd[10259]: Using interface ppp0 Jun 30 15:20:31 linux2 pppd[10259]: Cannot determine ethernet address for proxy ARP Jun 30 15:20:31 linux2 pppd[10259]: local IP address 192.168.16.1 Jun 30 15:20:31 linux2 pppd[10259]: remote IP address 192.168.17.1 Jun 30 15:20:41 linux2 pptpd[10258]: CTRL: timeout waiting for first packet from our pppd Jun 30 15:20:41 linux2 pptpd[10258]: CTRL: I wrote 32 bytes to the client. Jun 30 15:20:41 linux2 pptpd[10258]: CTRL: Sent packet to client Jun 30 15:20:41 linux2 pptpd[10258]: CTRL: Received PPTP Control Message (type: 15) Jun 30 15:20:41 linux2 pptpd[10258]: CTRL: Got a SET LINK INFO packet with standard ACCMs Jun 30 15:21:18 linux2 pptpd[10258]: CTRL: Received PPTP Control Message (type: 12) Jun 30 15:21:18 linux2 pptpd[10258]: CTRL: Made a CALL DISCONNECT RPLY packet Jun 30 15:21:18 linux2 pptpd[10258]: CTRL: Received CALL CLR request (closing call) Jun 30 15:21:18 linux2 pptpd[10258]: CTRL: Reaping child PPP[10259] |
#lsmod
commoncap 7552 1 capability ide_cd 43232 0 cdrom 41148 1 ide_cd rtc 14184 0 ext3 129704 5 jbd 70520 1 ext3 mbcache 10340 1 ext3 ide_generic 1632 0 piix 13824 1 ide_disk 19648 7 ide_core 142556 4 ide_cd,ide_generic,piix,ide_disk unix 31156 262 font 8544 0 vesafb 6880 0 cfbcopyarea 4096 1 vesafb cfbimgblt 3264 1 vesafb cfbfillrect 4000 1 vesafb |
#lsmod | less
|
#dpkg -l pptpd
â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â â â Modem and dialing â tion]âââââââ âââââââââââââââââââââââââ Screen and keyboard setting? â â ... â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-==================-==================-==================================================== ii pptpd 1.3.0-1 PoPToP Point to Point Tunneling Server |
#cd ..
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... Screen and keyboard setting? â â Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ |
#200 OK
Length: unspecified [text/html] [ <=> ] 46,299 53.86K/s 15:23:02 (53.75 KB/s) - `showfiles.php?group_id=44827' saved [46299] [1]+ Done wget http://sourceforge.net/project/showfiles.php?group_id=44827 |
#rm showfiles.php\?group_id\=44827
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... Screen and keyboard setting? â â Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ |
#wget http://kent.dl.sourceforge.net/sourceforge/poptop/pptpd-1.3.2.tar.gz
Save setup as dfl ───────────────────────────────────────────────────────────────────┘ │ │ Save setup as.. │ │ │ │ │ Exit │ │ Exit from Minicom │ └──────────────────────────┘ --15:24:12-- http://kent.dl.sourceforge.net/sourceforge/poptop/pptpd-1.3.2.tar.gz => `pptpd-1.3.2.tar.gz' Resolving kent.dl.sourceforge.net... 212.219.56.167 Connecting to kent.dl.sourceforge.net|212.219.56.167|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 235,467 (230K) [application/x-tar] 100%[======================================================>] 235,467 58.88K/s ETA 00:00 15:24:16 (58.81 KB/s) - `pptpd-1.3.2.tar.gz' saved [235467/235467] |
#tar xvfz pptpd-1.3.2.tar.gz
pptpd-1.3.2/html/poptop_ads_howto/poptop_ads_howto_12.htm pptpd-1.3.2/README.bcrelay pptpd-1.3.2/README.cvs pptpd-1.3.2/README.inetd pptpd-1.3.2/README.logwtmp pptpd-1.3.2/README.portslave pptpd-1.3.2/README.slirp 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 |
#cd pptpd-1.3.2
|
#./configure
checking for gethostbyname in -lc... yes checking for openpty in -lc... no checking for gettext in -lc... yes checking for accept in -lsocket... no checking for gethostbyname in -lnsl... yes checking for openpty in -lutil... yes checking for gettext in -lintl... no 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 distclean
Save setup as.. │ │ │ │ │ Exit │ │ Exit from Minicom │ └──────────────────────────┘ for d in plugins; do make -C $d clean; done make[1]: Entering directory `/root/pptpd-1.3.2/plugins' rm -f *.o *.so *.a make[1]: Leaving directory `/root/pptpd-1.3.2/plugins' test -z "pptpd pptpctrl bcrelay" || rm -f pptpd pptpctrl bcrelay rm -f *.o rm -f *.tab.c test -z "" || rm -f rm -f config.h stamp-h1 rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags rm -f config.status config.cache config.log configure.lineno configure.status.lineno rm -f Makefile |
#wget 'http://marc.
└──────────────────────────┘ 15:25:04 (37.12 KB/s) - `index.html?l=poptop-server' saved [53765] --15:25:17-- http://marc.theaimsgroup.com/?l=poptop-server&m=112264235231259&q=p3 => `index.html?l=poptop-server&m=112264235231259&q=p3' Resolving marc.theaimsgroup.com... 66.92.20.25 Connecting to marc.theaimsgroup.com|66.92.20.25|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/plain] [ <=> ] 2,610 --.--K/s 15:25:20 (52.96 MB/s) - `index.html?l=poptop-server&m=112264235231259&q=p3' saved [2610] [1]+ Done wget http://marc.theaimsgroup.com/?l=poptop-server |
#mv index.html\?l\=poptop-server
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ index.html?l=poptop-server index.html?l=poptop-server&m=112264235231259&q=p3 |
#mv index.html\?l\=poptop-server\&m\=112264235231259\&q\=p3 p.patch
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... Screen and keyboard setting? â â Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ |
#less p.patch
|
#patch -p3 < p.patch
│ Exit │ │ Exit from Minicom │ └──────────────────────────┘ 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: |
#patch -p4 < 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: |
#ls
acconfig.h ctrlpacket.c Makefile.uClinux pptpd.8 README.cvs aclocal.m4 ctrlpacket.h makepackage pptpd.c README.inetd AUTHORS debian missing pptpd.conf.5 README.logwtmp bcrelay.c defaults.h mkinstalldirs pptpdefs.h README.portslave ChangeLog getopt1.c NEWS pptpd.init README.slirp compat.c getopt.c our_getopt.h pptpd.spec reconf compat.h html our_syslog.h pptpgre.c samples config.embed.h index.html?l=poptop-server plugins pptpgre.h TODO configfile.c INSTALL p.patch pptpmanager.c tools configfile.h install-sh ppphdlc.c pptpmanager.h version config.h.in inststr.c ppphdlc.h pqueue.c configure inststr.h pptpctrl.8 pqueue.h configure.in Makefile.am pptpctrl.c README COPYING Makefile.in pptpctrl.h README.bcrelay |
#patch -p4 < 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 gethostbyname in -lc... yes checking for openpty in -lc... no checking for gettext in -lc... yes checking for accept in -lsocket... no checking for gethostbyname in -lnsl... yes checking for openpty in -lutil... yes checking for gettext in -lintl... no 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 all-am make[1]: Entering directory `/root/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 ... gcc -O2 -fno-builtin -Wall -DSBINDIR='"/usr/local/sbin"' -o pptpctrl pqueue.o pptpctrl.o ctrlpacket.o inststr.o compat.o pptpgre.o ppphdlc.o -lutil gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -O2 -fno-builtin -Wall -DSBINDIR='"/usr/local/sbin"' -c bcrelay.c bcrelay.c: In function 'mainloop': bcrelay.c:653: warning: pointer targets in assignment differ in signedness gcc -O2 -fno-builtin -Wall -DSBINDIR='"/usr/local/sbin"' -o bcrelay bcrelay.o for d in plugins; do make -w -C $d all; done make[2]: Entering directory `/root/pptpd-1.3.2/plugins' gcc -o pptpd-logwtmp.so -shared -O2 -g -I.. -I../../include -fPIC pptpd-logwtmp.c make[2]: Leaving directory `/root/pptpd-1.3.2/plugins' make[1]: Leaving directory `/root/pptpd-1.3.2' |
#make install
make[1]: Leaving directory `/root/pptpd-1.3.2/plugins' make[1]: Entering directory `/root/pptpd-1.3.2' for d in plugins; do make -w -C $d prefix=/usr/local DESTDIR= install; done make[2]: Entering directory `/root/pptpd-1.3.2/plugins' install -o root -d /usr/local/lib/pptpd install -o root pptpd-logwtmp.so /usr/local/lib/pptpd make[2]: Leaving directory `/root/pptpd-1.3.2/plugins' 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 `/root/pptpd-1.3.2' |
#vi /etc/init.d/pptpd
6c6,7 < DAEMON=/usr/sbin/pptpd --- > #DAEMON=/usr/sbin/pptpd > DAEMON=/usr/local/sbin/pptpd |
#/etc/init.d/pptpd restart
Restarting PPTP: Stopping PPTP: pptpd. Starting PPTP Daemon: pptpd. |
#ps aux | grep pptp
root 7999 0.0 0.0 3368 696 pts/4 S+ 14:16 0:00 man /etc/pptpd.conf root 10070 0.0 0.0 1700 704 ? Ss 15:18 0:00 /usr/sbin/pptpd root 10258 0.0 0.0 1592 548 ? S 15:20 0:00 pptpd [192.168.15.182:0000 - 0100] root 10259 0.0 0.0 2460 972 ? S 15:20 0:00 /usr/local/sbin/pppd local file /etc/ppp/pptpd-options 115200 192.168.16.1:192.168.17.1 ipparam 192.168.15.182 root 10316 0.0 0.0 1592 548 ? S 15:22 0:00 pptpd [192.168.15.182:4000 - 0180] root 10317 0.0 0.0 2460 972 ? S 15:22 0:00 /usr/local/sbin/pppd local file /etc/ppp/pptpd-options 115200 192.168.16.2:192.168.17.2 ipparam 192.168.15.182 root 14377 0.0 0.0 3344 628 pts/10 S+ 15:27 0:00 grep pptp |
#killall pppd
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... Screen and keyboard setting? â â Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ |
#ps aux | grep pptp
root 7999 0.0 0.0 3368 696 pts/4 S+ 14:16 0:00 man /etc/pptpd.conf root 10070 0.0 0.0 1700 704 ? Ss 15:18 0:00 /usr/sbin/pptpd root 14410 0.0 0.0 3340 616 pts/10 R+ 15:27 0:00 grep pptp |
#/etc/init.d/pptpd restart
Restarting PPTP: Stopping PPTP: pptpd. Starting PPTP Daemon: pptpd. |
#ps aux | grep pptp
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ root 7999 0.0 0.0 3368 696 pts/4 S+ 14:16 0:00 man /etc/pptpd.conf root 10070 0.0 0.0 1700 704 ? Ss 15:18 0:00 /usr/sbin/pptpd root 14433 0.0 0.0 3344 628 pts/10 S+ 15:28 0:00 grep pptp |
#vi /etc/init.d/pptpd
|
#ps aux | grep pptp
root 7999 0.0 0.0 3368 696 pts/4 S+ 14:16 0:00 man /etc/pptpd.conf root 10070 0.0 0.0 1700 704 ? Ss 15:18 0:00 /usr/sbin/pptpd root 14455 0.0 0.0 3344 628 pts/10 S+ 15:28 0:00 grep pptp |
#/usr/local/sbin/pptp
pptpctrl pptpd |
#/usr/local/sbin/pptp
pptpctrl pptpd |
#/usr/local/sbin/pptpd
|
#ps aux | grep pptp
root 7999 0.0 0.0 3368 696 pts/4 S+ 14:16 0:00 man /etc/pptpd.conf root 10070 0.0 0.0 1700 704 ? Ss 15:18 0:00 /usr/sbin/pptpd root 14469 0.0 0.0 3344 628 pts/10 S+ 15:28 0:00 grep pptp |
#killall pptpd
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... Screen and keyboard setting? â â Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ |
#ps aux | grep pptp
root 7999 0.0 0.0 3368 696 pts/4 S+ 14:16 0:00 man /etc/pptpd.conf root 14487 0.0 0.0 3344 628 pts/10 S+ 15:29 0:00 grep pptp |
#/usr/local/sbin/pptpd
|
#ps aux | grep pptp
root 7999 0.0 0.0 3368 696 pts/4 S+ 14:16 0:00 man /etc/pptpd.conf root 14494 0.0 0.0 1564 616 ? Ss 15:29 0:00 /usr/local/sbin/pptpd root 14501 0.0 0.0 3340 616 pts/10 R+ 15:29 0:00 grep pptp |
#ps aux | grep pptp
root 7999 0.0 0.0 3368 696 pts/4 S+ 14:16 0:00 man /etc/pptpd.conf root 14494 0.0 0.0 1564 616 ? Ss 15:29 0:00 /usr/local/sbin/pptpd root 14508 0.0 0.0 3344 628 pts/10 S+ 15:29 0:00 grep pptp |
#tail -f /var/log/daemon.log
Jun 30 15:29:37 linux2 pppd[14516]: nobsdcomp^I^I# (from /etc/ppp/pptpd-options) Jun 30 15:29:37 linux2 pppd[14516]: noipx^I^I# (from /etc/ppp/options) Jun 30 15:29:37 linux2 pppd[14516]: pppd 2.4.4 started by root, uid 0 Jun 30 15:29:37 linux2 pppd[14516]: Using interface ppp0 Jun 30 15:29:37 linux2 pppd[14516]: Cannot determine ethernet address for proxy ARP Jun 30 15:29:37 linux2 pppd[14516]: local IP address 192.168.16.1 Jun 30 15:29:37 linux2 pppd[14516]: remote IP address 192.168.17.1 Jun 30 15:29:47 linux2 pptpd[14515]: CTRL: timeout waiting for first packet from our pppd Jun 30 15:29:47 linux2 pptpd[14515]: CTRL: I wrote 32 bytes to the client. Jun 30 15:29:47 linux2 pptpd[14515]: CTRL: Sent packet to client Jun 30 15:29:47 linux2 pptpd[14515]: CTRL: Received PPTP Control Message (type: 15) Jun 30 15:29:47 linux2 pptpd[14515]: CTRL: Got a SET LINK INFO packet with standard ACCMs Jun 30 15:30:24 linux2 pptpd[14515]: CTRL: Received PPTP Control Message (type: 12) Jun 30 15:30:24 linux2 pptpd[14515]: CTRL: Made a CALL DISCONNECT RPLY packet Jun 30 15:30:24 linux2 pptpd[14515]: CTRL: Received CALL CLR request (closing call) Jun 30 15:30:24 linux2 pptpd[14515]: CTRL: Reaping child PPP[14516] |
#cd /etc/ppp/
|
#ls
chap-secrets ip-down.d ipv6-down ipv6-up.d peers resolv chat ip-up ipv6-down.d options ppp_on_boot.dsl ip-down ip-up.d ipv6-up pap-secrets pptpd-options |
#mv options options.bak
|
#tail -f /var/log/daemon.log
Jun 30 15:37:36 linux2 pptpd[14586]: CTRL: Made a ECHO REQ packet Jun 30 15:37:36 linux2 pptpd[14586]: CTRL: I wrote 16 bytes to the client. Jun 30 15:37:36 linux2 pptpd[14586]: CTRL: Sent packet to client Jun 30 15:37:36 linux2 pptpd[14586]: CTRL: Received PPTP Control Message (type: 6) Jun 30 15:38:36 linux2 pptpd[14586]: CTRL: Sending ECHO REQ id 5 Jun 30 15:38:36 linux2 pptpd[14586]: CTRL: Made a ECHO REQ packet Jun 30 15:38:36 linux2 pptpd[14586]: CTRL: I wrote 16 bytes to the client. Jun 30 15:38:36 linux2 pptpd[14586]: CTRL: Sent packet to client Jun 30 15:38:36 linux2 pptpd[14586]: CTRL: Received PPTP Control Message (type: 6) Jun 30 15:39:36 linux2 pptpd[14586]: CTRL: Sending ECHO REQ id 6 Jun 30 15:39:36 linux2 pptpd[14586]: CTRL: Made a ECHO REQ packet Jun 30 15:39:36 linux2 pptpd[14586]: CTRL: I wrote 16 bytes to the client. Jun 30 15:39:36 linux2 pptpd[14586]: CTRL: Sent packet to client Jun 30 15:39:36 linux2 pptpd[14586]: CTRL: Received PPTP Control Message (type: 6) :q ^[[A |
#telnet 195.95.210.89 25
Trying 195.95.210.89... telnet: Unable to connect to remote host: Connection refused |
#ping 195.95.210.89
[root@linux2:ppp]# ping 192.168.15.100 Jun 30 14:33:02 linux2 pptpd[8276]: CTRL: Reaping child PPP[8277] PING 192.168.15.100 (192.168.15.100) 56(84) bytes of data. Jun 30 14:33:03 linux2 pptpd[8278]: CTRL: Reaping child PPP[8279] 64 bytes from 192.168.15.100: icmp_seq=1 ttl=128 time=0.208 ms Jun 30 14:33:03 linux2 pptpd[8280]: CTRL: Reaping child PPP[8281] Jun 30 14:33:03 linux2 pptpd[8282]: CTRL: Reaping child PPP[8283] --- 192.168.15.100 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms PING 195.95.210.89 (195.95.210.89) 56(84) bytes of data. ... 64 bytes from 195.95.210.89: icmp_seq=3 ttl=249 time=13.9 ms [root@linux2:ppp]# tail -f /var/log/syslog Jun 30 14:33:03 linux2 pptpd[8282]: CTRL: Client 192.168.15.100 control connection started --- 195.95.210.89 ping statistics --- Jun 30 14:33:03 linux2 pptpd[8282]: CTRL: Starting call (launching pppd, opening GRE) 3 packets transmitted, 3 received, 0% packet loss, time 2003ms Jun 30 14:33:03 linux2 pppd[8283]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so is for pppd version rtt min/avg/max/mdev = 11.084/18.315/29.961/8.315 ms 2.4.3, this is 2.4.4b1 Jun 30 14:33:03 linux2 pptpd[8282]: GRE: read(fd=6,buffer=80505a0,len=8196) from PTY failed: s |
#telnet 195.95.210.89
[root@linux2:ppp]# ping 192.168.15.100 Jun 30 14:33:02 linux2 pptpd[8276]: CTRL: Reaping child PPP[8277] PING 192.168.15.100 (192.168.15.100) 56(84) bytes of data. Jun 30 14:33:03 linux2 pptpd[8278]: CTRL: Reaping child PPP[8279] 64 bytes from 192.168.15.100: icmp_seq=1 ttl=128 time=0.208 ms Jun 30 14:33:03 linux2 pptpd[8280]: CTRL: Reaping child PPP[8281] Jun 30 14:33:03 linux2 pptpd[8282]: CTRL: Reaping child PPP[8283] --- 192.168.15.100 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms Trying 195.95.210.89... telnet: Unable to connect to remote host: Connection refused [root@linux2:ppp]# tail -f /var/log/syslog Jun 30 14:33:03 linux2 pptpd[8282]: CTRL: Client 192.168.15.100 control connection started Jun 30 14:33:03 linux2 pptpd[8282]: CTRL: Starting call (launching pppd, opening GRE) Jun 30 14:33:03 linux2 pppd[8283]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so is for pppd version 2.4.3, this is 2.4.4b1 Jun 30 14:33:03 linux2 pptpd[8282]: GRE: read(fd=6,buffer=80505a0,len=8196) from PTY failed: s |
#[root@linux2:ppp]# ifconfig
ppp0 Link encap:Point-to-Point Protocol inet addr:192.168.16.1 P-t-P:192.168.17.1 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) ppp1 Link encap:Point-to-Point Protocol inet addr:192.168.16.2 P-t-P:192.168.17.2 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1400 Metric:1 RX packets:50 errors:0 dropped:0 overruns:0 frame:0 TX packets:11 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:5269 (5.1 KiB) TX bytes:137 (137.0 b) |
#telnet 195.95.210.89 80
Trying 195.95.210.89... Connected to 195.95.210.89. Escape character is '^]'. Connection closed by foreign host. |
#apt-get install rdesktop
Reading package lists... Done Building dependency tree... Done E: Couldn't find package rdesktop168.15.182 |
#apt-get install rdesktop
Reading package lists... Done Building dependency tree... Done The following NEW packages will be installed rdesktop 0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded. Need to get 104kB of archives. After unpacking 401kB of additional disk space will be used. Get: 1 http://debian.org.ua testing/main rdesktop 1.4.1-1.1 [104kB] Fetched 104kB in 0s (1288kB/s) Selecting previously deselected package rdesktop. (Reading database ... 76305 files and directories currently installed.) Unpacking rdesktop (from .../rdesktop_1.4.1-1.1_i386.deb) ... Setting up rdesktop (1.4.1-1.1) ... |
#rdesktop -a 16 192.168.15.182
Xlib: connection to ":0.0" refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key ERROR: Failed to open display: :0.0 |
#lsmod | less
|
#vi /etc/ppp/options.bak
|
#ls
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ chap-secrets ip-down.d ipv6-down ipv6-up.d peers resolv chat ip-up ipv6-down.d options.bak ppp_on_boot.dsl ip-down ip-up.d ipv6-up pap-secrets pptpd-options |
#ls
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ dbootstrap_settings hardcopy.0 log.ecp mysecondscript2 pptpd-1.3.2 dead.letter install-report.template Mail ppp-2.4.4 pptpd-1.3.2.tar.gz Desktop log.eci minicom.log ppp-2.4.4.tar.gz sent |
#scp pptpd-1.3.2.tar.gz root@192.168.15.15:/home/ftp/install/
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ Password: Password: pptpd-1.3.2.tar.gz 100% 230KB 230.0KB/s 00:00 |
#[root@linux2:~]# ls -l
total 925 -rw-r--r-- 1 root root 180 2006-06-25 21:14 dbootstrap_settings -rw------- 1 root root 0 2006-06-29 15:52 dead.letter drwx------ 2 root root 1024 2006-06-27 15:55 Desktop -rw-r--r-- 1 root root 129 2006-06-30 09:57 hardcopy.0 -rw-r--r-- 1 root root 1336 2006-06-25 21:14 install-report.template -rw------- 1 root root 1264 2006-06-26 13:13 log.eci -rw------- 1 root root 2812 2006-06-26 13:12 log.ecp drwx------ 2 root root 1024 2006-06-29 11:13 Mail -rw-r--r-- 1 root root 270 2006-06-30 10:37 minicom.log -rw-r--r-- 1 root root 367 2006-06-30 14:06 mysecondscript2 drwxr-xr-x 14 user user 1024 2006-06-30 15:16 ppp-2.4.4 -rw-r--r-- 1 root root 688763 2006-06-30 15:16 ppp-2.4.4.tar.gz drwxrwxrwx 7 user user 2048 2006-06-30 15:26 pptpd-1.3.2 -rw-r--r-- 1 root root 235467 2006-04-18 08:08 pptpd-1.3.2.tar.gz -rw------- 1 root root 664 2006-06-29 11:17 sent |
#ls pptpd-1.3.2
aclocal.m4 configure.in Makefile pptpctrl.h pqueue.o AUTHORS COPYING Makefile.am pptpctrl.o README bcrelay ctrlpacket.c Makefile.in pptpd README.bcrelay bcrelay.c ctrlpacket.h Makefile.uClinux pptpd.8 README.cvs bcrelay.o ctrlpacket.o makepackage pptpd.c README.inetd ChangeLog debian missing pptpd.conf.5 README.logwtmp compat.c defaults.h mkinstalldirs pptpdefs.h README.portslave compat.h getopt1.c NEWS pptpd.init README.slirp compat.o getopt1.o our_getopt.h pptpd.o reconf config.embed.h getopt.c our_syslog.h pptpd.spec samples configfile.c getopt.o plugins pptpgre.c stamp-h1 configfile.h html p.patch pptpgre.h TODO configfile.o index.html?l=poptop-server ppphdlc.c pptpgre.o tools config.h INSTALL ppphdlc.h pptpmanager.c version config.h.in install-sh ppphdlc.o pptpmanager.h config.log inststr.c pptpctrl pptpmanager.o config.status inststr.h pptpctrl.8 pqueue.c |
#cd /home/
lost+found/ user/ |
#cd /home/user/
|
#cd ~
|
#scp ppp-2.4.4/ppp
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... â Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ pppd/ pppdump/ pppstats/ |
#scp pp
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... â Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ ppp-2.4.4/ ppp-2.4.4.tar.gz pptpd-1.3.2/ pptpd-1.3.2.tar.gz |
#scp ppp-2.4.4/ppp
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... â Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ pppd/ pppdump/ pppstats/ |
#scp /root/ppp-2.4.4/ppp
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... â Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ pppd/ pppdump/ pppstats/ |
#ls -l
└──────────────────────────┘ total 925 -rw-r--r-- 1 root root 180 2006-06-25 21:14 dbootstrap_settings -rw------- 1 root root 0 2006-06-29 15:52 dead.letter drwx------ 2 root root 1024 2006-06-27 15:55 Desktop -rw-r--r-- 1 root root 129 2006-06-30 09:57 hardcopy.0 -rw-r--r-- 1 root root 1336 2006-06-25 21:14 install-report.template -rw------- 1 root root 1264 2006-06-26 13:13 log.eci -rw------- 1 root root 2812 2006-06-26 13:12 log.ecp drwx------ 2 root root 1024 2006-06-29 11:13 Mail -rw-r--r-- 1 root root 270 2006-06-30 10:37 minicom.log -rw-r--r-- 1 root root 367 2006-06-30 14:06 mysecondscript2 drwxr-xr-x 14 user user 1024 2006-06-30 15:16 ppp-2.4.4 -rw-r--r-- 1 root root 688763 2006-06-30 15:16 ppp-2.4.4.tar.gz drwxrwxrwx 7 user user 2048 2006-06-30 15:26 pptpd-1.3.2 -rw-r--r-- 1 root root 235467 2006-04-18 08:08 pptpd-1.3.2.tar.gz -rw------- 1 root root 664 2006-06-29 11:17 sent |
#[root@linux2:~]# ls -l
total 925 -rw-r--r-- 1 root root 180 2006-06-25 21:14 dbootstrap_settings -rw------- 1 root root 0 2006-06-29 15:52 dead.letter drwx------ 2 root root 1024 2006-06-27 15:55 Desktop -rw-r--r-- 1 root root 129 2006-06-30 09:57 hardcopy.0 -rw-r--r-- 1 root root 1336 2006-06-25 21:14 install-report.template -rw------- 1 root root 1264 2006-06-26 13:13 log.eci -rw------- 1 root root 2812 2006-06-26 13:12 log.ecp drwx------ 2 root root 1024 2006-06-29 11:13 Mail -rw-r--r-- 1 root root 270 2006-06-30 10:37 minicom.log -rw-r--r-- 1 root root 367 2006-06-30 14:06 mysecondscript2 drwxr-xr-x 14 user user 1024 2006-06-30 15:16 ppp-2.4.4 -rw-r--r-- 1 root root 688763 2006-06-30 15:16 ppp-2.4.4.tar.gz drwxrwxrwx 7 user user 2048 2006-06-30 15:26 pptpd-1.3.2 -rw-r--r-- 1 root root 235467 2006-04-18 08:08 pptpd-1.3.2.tar.gz -rw------- 1 root root 664 2006-06-29 11:17 sent |
#cp ppp-2.4.4.tar.gz /tmp/load/ppp-2.4.4.tar.gz
cp: cannot create regular file `/tmp/load/ppp-2.4.4.tar.gz': No such file or directory |
#dm
dmassagevendor dmesg dmidecode |
#dmesg | grep sd
grep: sd: No such file or directory |
#dmesg
TCP: Hash tables configured (established 262144 bind 65536) NET: Registered protocol family 8 NET: Registered protocol family 20 ACPI: (supports S0 S1 S4 S5) RAMDISK: cramfs filesystem found at block 0 RAMDISK: Loading 4716 blocks [1 disk] into ram disk... done. VFS: Mounted root (cramfs filesystem) readonly. Freeing unused kernel memory: 168k freed vesafb: probe of vesafb0 failed with error -6 NET: Registered protocol family 1 ... agpgart: Putting AGP V2 device at 0000:00:00.0 into 1x mode agpgart: Putting AGP V2 device at 0000:01:00.0 into 1x mode CSLIP: code copyright 1989 Regents of the University of California PPP generic driver version 2.4.2 PPP BSD Compression module registered PPP Deflate Compression module registered GRE over IPv4 tunneling driver eth0: Setting promiscuous mode. device eth0 entered promiscuous mode device eth0 left promiscuous mode |
#dmesg | grep sd
|
#ls
â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â â â ... Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ Changes-2.3 contrib linux pppd README.cbcp README.MSCHAP80 README.sol2 chat etc.ppp Makefile pppdump README.eap-srp README.MSCHAP81 scripts common FAQ modules pppstats README.linux README.pppoe SETUP configure include PLUGINS README README.MPPE README.pwfd solaris |
#cd ../
|
#ls
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ dbootstrap_settings hardcopy.0 log.ecp mysecondscript2 pptpd-1.3.2 dead.letter install-report.template Mail ppp-2.4.4 pptpd-1.3.2.tar.gz Desktop log.eci minicom.log ppp-2.4.4.tar.gz sent |
#scp pptpd-1.3.2/p.patch root@:/home/ftp/install/
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ ssh: : Name or service not known lost connection |
#scp pptpd-1.3.2/p.patch root@192.168.15.15:/home/ftp/install/
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ Password: p.patch 100% 2610 2.6KB/s 00:00 |
#cp ppp-2.4.4.tar.gz /tmp/load/
cp: target `/tmp/load/' is not a directory: No such file or directory |
#cp ppp-2.4.4.tar.gz /tmp/ppp-2.4.4.tar.gz
|
#cd ppp-2.4.4
|
#dmesg | grep sd
|
#ls /dev
agpgart hdb11 i2c-2 ptybf ptyv1 ram1 sdg12 tty9 ttyS0 ttyze vcsa48 ataraid hdb12 i2c-3 ptyc0 ptyv2 ram10 sdg13 ttya0 ttys1 ttyzf vcsa49 atibm hdb13 i2c-4 ptyc1 ptyv3 ram11 sdg14 ttya1 ttyS1 urandom vcsa5 audio hdb14 i2c-5 ptyc2 ptyv4 ram12 sdg15 ttya2 ttys2 usb vcsa50 audio1 hdb15 i2c-6 ptyc3 ptyv5 ram13 sdg2 ttya3 ttyS2 vbi vcsa51 audio2 hdb16 i2c-7 ptyc4 ptyv6 ram14 sdg3 ttya4 ttys3 vbi0 vcsa52 audio3 hdb17 i2o ptyc5 ptyv7 ram15 sdg4 ttya5 ttyS3 vbi1 vcsa53 audioctl hdb18 ida ptyc6 ptyv8 ram16 sdg5 ttya6 ttys4 vbi10 vcsa54 aztcd0 hdb19 initctl ptyc7 ptyv9 ram2 sdg6 ttya7 ttyS4 vbi11 vcsa55 bpcd hdb2 initrd ptyc8 ptyva ram3 sdg7 ttya8 ttys5 vbi12 vcsa56 ... hda3 hdh20 ptyb5 ptyu7 radio6 sdf4 tty57 ttyr7 ttyz4 vcsa39 xdb4 hda4 hdh3 ptyb6 ptyu8 radio60 sdf5 tty58 ttyr8 ttyz5 vcsa4 xdb5 hda5 hdh4 ptyb7 ptyu9 radio61 sdf6 tty59 ttyr9 ttyz6 vcsa40 xdb6 hda6 hdh5 ptyb8 ptyua radio62 sdf7 tty6 ttyra ttyz7 vcsa41 xdb7 hda7 hdh6 ptyb9 ptyub radio63 sdf8 tty60 ttyrb ttyz8 vcsa42 xdb8 hda8 hdh7 ptyba ptyuc radio7 sdf9 tty61 ttyrc ttyz9 vcsa43 zero hda9 hdh8 ptybb ptyud radio8 sdg tty62 ttyrd ttyza vcsa44 hdb hdh9 ptybc ptyue radio9 sdg1 tty63 ttyre ttyzb vcsa45 hdb1 i2c-0 ptybd ptyuf ram sdg10 tty7 ttyrf ttyzc vcsa46 hdb10 i2c-1 ptybe ptyv0 ram0 sdg11 tty8 ttys0 ttyzd vcsa47 |
#ls /dev/sda /flash
ls: /flash: No such file or directory /dev/sda |
#mkdir /dev/flash
|
#ls -l
total 153 -rw-r--r-- 1 user user 18162 2000-04-13 13:12 Changes-2.3 drwxr-xr-x 2 user user 1024 2006-06-30 15:16 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 |
Время первой команды журнала | 15:20:18 2006- 6-30 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 16:33:36 2006- 6-30 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 12.87 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.97 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.22 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.38 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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