متمم روز چهارم:
دوباره ببخشید. دیشب بعد از اون کارهای وحشتناک! این کارها رو هم کردم البته با یک پکیج نصب یه چیزی به اسم rp-pppoe-3.5 که نمی دونم چیه ولی یه جا نوشته بوون واسه سلامتی کامپیوتر خوبه:
hadi@ubuntu:~/Desktop/rp-pppoe-3.5$ ./go
Running ./configure...
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for fcntl.h... yes
checking for sys/dlpi.h... no
checking for sys/ioctl.h... yes
checking for sys/time.h... yes
checking for syslog.h... yes
checking for unistd.h... yes
checking for net/if_arp.h... yes
checking for netinet/if_ether.h... yes
checking for getopt.h... yes
checking for sys/uio.h... yes
checking for sys/param.h... yes
checking for fcntl.h... (cached) yes
checking for net/bpf.h... no
checking for netpacket/packet.h... yes
checking for net/ethernet.h... yes
checking for asm/types.h... yes
checking for linux/if_packet.h... yes
checking for linux/if_ether.h... yes
checking for linux/if_pppox.h... yes
checking for sys/socket.h... yes
checking for sys/cdefs.h... yes
checking for linux/if.h... yes
checking for net/if.h... yes
checking for net/if_dl.h... no
checking for net/if_ether.h... no
checking for net/if_types.h... no
checking for netinet/if_ether.h... (cached) yes
checking for net/if_types.h... (cached) no
checking for net/if_dl.h... (cached) no
checking for working const... yes
checking for pid_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for echo... /bin/echo
checking for struct sockaddr_ll... yes
checking for N_HDLC line discipline... no
checking for 8-bit clean memcmp... yes
checking whether setvbuf arguments are reversed... no
checking return type of signal handlers... void
checking for select... yes
checking for socket... yes
checking for strerror... yes
checking for strtol... yes
checking for a BSD compatible install... /usr/bin/install -c
checking size of unsigned short... 2
checking size of unsigned int... 4
checking size of unsigned long... 4
checking for pppd... /usr/sbin/pppd
checking for setsid... /usr/bin/setsid
checking for id... /usr/bin/id
checking for Linux 2.4.X kernel-mode PPPoE support... no
*** Oops. I cannot figure out what version of pppd you have.
*** All I got back was 'denied'
*** I will keep going, but it may not work.
checking packing order of bit fields... reversed
updating cache ./config.cache
creating ./config.status
creating Makefile
creating libevent/Makefile
creating ../scripts/adsl-connect
creating ../scripts/adsl-start
creating ../scripts/adsl-stop
creating ../scripts/adsl-init
creating ../scripts/adsl-init-suse
creating ../scripts/adsl-init-turbolinux
creating ../scripts/adsl-setup
creating ../gui/Makefile
creating ../gui/tkpppoe
creating config.h
On this platform, the following targets will be built:
pppoe pppoe-server pppoe-sniff pppoe-relay
Type 'make' to compile the software.
Running make...
gcc -g -O2 -Wall -Wstrict-prototypes -ansi -pedantic '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.5"' -c -o pppoe.o pppoe.c
gcc -g -O2 -Wall -Wstrict-prototypes -ansi -pedantic '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.5"' -c -o if.o if.c
gcc -g -O2 -Wall -Wstrict-prototypes -ansi -pedantic '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.5"' -c -o debug.o debug.c
gcc -g -O2 -Wall -Wstrict-prototypes -ansi -pedantic '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.5"' -c -o common.o common.c
common.c: In function ‘sendPADT’:
common.c:444: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness
gcc -g -O2 -Wall -Wstrict-prototypes -ansi -pedantic '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.5"' -c -o ppp.o ppp.c
gcc -g -O2 -Wall -Wstrict-prototypes -ansi -pedantic '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.5"' -c -o discovery.o discovery.c
gcc -o pppoe pppoe.o if.o debug.o common.o ppp.o discovery.o
gcc -g -O2 -Wall -Wstrict-prototypes -ansi -pedantic '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.5"' -c -o pppoe-server.o pppoe-server.c
pppoe-server.c: In function ‘main’:
pppoe-server.c:1320: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
pppoe-server.c:1322: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
pppoe-server.c:1468: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
pppoe-server.c: In function ‘sendHURLorMOTM’:
pppoe-server.c:2039: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness
gcc -g -O2 -Wall -Wstrict-prototypes -ansi -pedantic '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.5"' -c -o md5.o md5.c
cd libevent && make
make[1]: Entering directory `/home/hadi/Desktop/rp-pppoe-3.5/src/libevent'
gcc -g -O2 -Wall -Wstrict-prototypes -ansi -pedantic -I.. -c -o event.o event.c
event.c: In function ‘Event_HandleEvent’:
event.c:87: warning: ‘abs_timeout.tv_usec’ may be used uninitialized in this function
event.c:87: warning: ‘abs_timeout.tv_sec’ may be used uninitialized in this function
gcc -g -O2 -Wall -Wstrict-prototypes -ansi -pedantic -I.. -c -o event_tcp.o event_tcp.c
event_tcp.c: In function ‘handle_accept’:
event_tcp.c:59: warning: ISO C forbids conversion of object pointer to function pointer type
event_tcp.c: In function ‘EventTcp_CreateAcceptor’:
event_tcp.c:150: warning: ISO C forbids conversion of function pointer to object pointer type
gcc -g -O2 -Wall -Wstrict-prototypes -ansi -pedantic -I.. -c -o hash.o hash.c
gcc -g -O2 -Wall -Wstrict-prototypes -ansi -pedantic -I.. -c -o event_sig.o event_sig.c
event_sig.c: In function ‘DoPipe’:
event_sig.c:94: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result
event_sig.c: In function ‘sig_handler’:
event_sig.c:125: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
rm -f libevent.a
ar -cq libevent.a event.o event_tcp.o hash.o event_sig.o
ranlib libevent.a
make[1]: Leaving directory `/home/hadi/Desktop/rp-pppoe-3.5/src/libevent'
gcc -o pppoe-server pppoe-server.o if.o debug.o common.o md5.o -Llibevent -levent
gcc -g -O2 -Wall -Wstrict-prototypes -ansi -pedantic '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.5"' -c -o pppoe-sniff.o pppoe-sniff.c
gcc -o pppoe-sniff pppoe-sniff.o if.o common.o debug.o
gcc -g -O2 -Wall -Wstrict-prototypes -ansi -pedantic '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.5"' -c -o relay.o relay.c
relay.c: In function ‘main’:
relay.c:330: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
relay.c: In function ‘relayLoop’:
relay.c:793: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result
relay.c: In function ‘relaySendError’:
relay.c:1490: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness
relay.c: In function ‘alarmHandler’:
relay.c:1517: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
gcc -o pppoe-relay relay.o if.o debug.o common.o
Type 'make install' as root to install the software.
Running make install...
Type 'make install' as root to install the software.
mkdir -p /usr/sbin
/usr/bin/install -c -m 755 -s pppoe /usr/sbin
/usr/bin/install: cannot create regular file `/usr/sbin/pppoe': Permission denied
make: *** [install] Error 1
Oops! It looks like make install failed.
hadi@ubuntu:~/Desktop/rp-pppoe-3.5$ scanModem ./go
bash: scanModem: command not found
hadi@ubuntu:~/Desktop/rp-pppoe-3.5$ cd Desktop
bash: cd: Desktop: No such file or directory
hadi@ubuntu:~/Desktop/rp-pppoe-3.5$ cd..
bash: cd..: command not found
hadi@ubuntu:~/Desktop/rp-pppoe-3.5$ cd
hadi@ubuntu:~$ cd Desktop
hadi@ubuntu:~/Desktop$ scanModem ./go
bash: scanModem: command not found
hadi@ubuntu:~/Desktop$ sudo -s
[sudo] password for hadi:
root@ubuntu:~/Desktop# cd rp-pppoe-3.5
root@ubuntu:~/Desktop/rp-pppoe-3.5# ./go
Running ./configure...
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for fcntl.h... (cached) yes
checking for sys/dlpi.h... (cached) no
checking for sys/ioctl.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for syslog.h... (cached) yes
checking for unistd.h... (cached) yes
checking for net/if_arp.h... (cached) yes
checking for netinet/if_ether.h... (cached) yes
checking for getopt.h... (cached) yes
checking for sys/uio.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for net/bpf.h... (cached) no
checking for netpacket/packet.h... (cached) yes
checking for net/ethernet.h... (cached) yes
checking for asm/types.h... (cached) yes
checking for linux/if_packet.h... (cached) yes
checking for linux/if_ether.h... (cached) yes
checking for linux/if_pppox.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for sys/cdefs.h... (cached) yes
checking for linux/if.h... (cached) yes
checking for net/if.h... (cached) yes
checking for net/if_dl.h... (cached) no
checking for net/if_ether.h... (cached) no
checking for net/if_types.h... (cached) no
checking for netinet/if_ether.h... (cached) yes
checking for net/if_types.h... (cached) no
checking for net/if_dl.h... (cached) no
checking for working const... (cached) yes
checking for pid_t... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking for echo... (cached) /bin/echo
checking for struct sockaddr_ll... yes
checking for N_HDLC line discipline... no
checking for 8-bit clean memcmp... (cached) yes
checking whether setvbuf arguments are reversed... (cached) no
checking return type of signal handlers... (cached) void
checking for select... (cached) yes
checking for socket... (cached) yes
checking for strerror... (cached) yes
checking for strtol... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking size of unsigned short... (cached) 2
checking size of unsigned int... (cached) 4
checking size of unsigned long... (cached) 4
checking for pppd... (cached) /usr/sbin/pppd
checking for setsid... (cached) /usr/bin/setsid
checking for id... (cached) /usr/bin/id
checking for Linux 2.4.X kernel-mode PPPoE support... no
checking packing order of bit fields... reversed
creating ./config.status
creating Makefile
creating libevent/Makefile
creating ../scripts/adsl-connect
creating ../scripts/adsl-start
creating ../scripts/adsl-stop
creating ../scripts/adsl-init
creating ../scripts/adsl-init-suse
creating ../scripts/adsl-init-turbolinux
creating ../scripts/adsl-setup
creating ../gui/Makefile
creating ../gui/tkpppoe
creating config.h
config.h is unchanged
On this platform, the following targets will be built:
pppoe pppoe-server pppoe-sniff pppoe-relay
Type 'make' to compile the software.
Running make...
Type 'make install' as root to install the software.
Running make install...
Type 'make install' as root to install the software.
mkdir -p /usr/sbin
/usr/bin/install -c -m 755 -s pppoe /usr/sbin
/usr/bin/install -c -m 755 -s pppoe-server /usr/sbin
if test -x licensed-only/pppoe-server-control ; then /usr/bin/install -c -m 755 -s licensed-only/pppoe-server-control /usr/sbin; fi
if test -x pppoe-relay ; then /usr/bin/install -c -m 755 -s pppoe-relay /usr/sbin; fi
if test -x pppoe-sniff; then /usr/bin/install -c -m 755 -s pppoe-sniff /usr/sbin; fi
/usr/bin/install -c -m 755 ../scripts/adsl-connect /usr/sbin
/usr/bin/install -c -m 755 ../scripts/adsl-start /usr/sbin
/usr/bin/install -c -m 755 ../scripts/adsl-status /usr/sbin
/usr/bin/install -c -m 755 ../scripts/adsl-stop /usr/sbin
/usr/bin/install -c -m 755 ../scripts/adsl-setup /usr/sbin
mkdir -p /usr/doc/rp-pppoe-3.5
/usr/bin/install -c -m 644 ../doc/CHANGES /usr/doc/rp-pppoe-3.5
/usr/bin/install -c -m 644 ../doc/KERNEL-MODE-PPPOE /usr/doc/rp-pppoe-3.5
/usr/bin/install -c -m 644 ../doc/HOW-TO-CONNECT /usr/doc/rp-pppoe-3.5
/usr/bin/install -c -m 644 ../doc/LICENSE /usr/doc/rp-pppoe-3.5
/usr/bin/install -c -m 644 ../README /usr/doc/rp-pppoe-3.5
/usr/bin/install -c -m 644 ../SERVPOET /usr/doc/rp-pppoe-3.5
/usr/bin/install -c -m 644 ../configs/pap-secrets /usr/doc/rp-pppoe-3.5
mkdir -p /usr/man/man8
for i in pppoe pppoe-server pppoe-sniff pppoe-relay ; do \
if test -f ../man/$i.8 ; then \
/usr/bin/install -c -m 644 ../man/$i.8 /usr/man/man8 || exit 1; \
fi; \
done
/usr/bin/install -c -m 644 ../man/adsl-start.8 /usr/man/man8
/usr/bin/install -c -m 644 ../man/adsl-stop.8 /usr/man/man8
/usr/bin/install -c -m 644 ../man/adsl-status.8 /usr/man/man8
/usr/bin/install -c -m 644 ../man/adsl-connect.8 /usr/man/man8
/usr/bin/install -c -m 644 ../man/adsl-setup.8 /usr/man/man8
mkdir -p /usr/man/man5
/usr/bin/install -c -m 644 ../man/pppoe.conf.5 /usr/man/man5
mkdir -p /etc/ppp
mkdir -p /etc/ppp/plugins
echo "# Directory created by rp-pppoe for kernel-mode plugin" > /etc/ppp/plugins/README
# L2TP
Type 'adsl-setup' to configure the software.
Welcome to the Roaring Penguin ADSL client setup. First, I will run
some checks on your system to make sure the PPPoE client is installed
properly...
Looks good! Now, please enter some information:
USER NAME
>>> Enter your PPPoE user name (default bxxxnxnx@sympatico.ca): bxxxnxnx@sympatico.ca
INTERFACE
>>> Enter the Ethernet interface connected to the ADSL modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethn, where 'n' is a number.
(default eth0): eth0
Do you want the link to come up on demand, or stay up continuously?
If you want it to come up on demand, enter the idle time in seconds
after which the link should be dropped. If you want the link to
stay up permanently, enter 'no' (two letters, lower-case.)
NOTE: Demand-activated links do not interact well with dynamic IP
addresses. You may have some problems with demand-activated links.
>>> Enter the demand value (default no): no
DNS
Please enter the IP address of your ISP's primary DNS server.
If your ISP claims that 'the server will provide DNS addresses',
enter 'server' (all lower-case) here.
If you just press enter, I will assume you know what you are
doing and not modify your DNS setup.
>>> Enter the DNS information here:
PASSWORD
>>> Please enter your PPPoE password:
>>> Please re-enter your PPPoE password:
FIREWALLING
Please choose the firewall rules to use. Note that these rules are
very basic. You are strongly encouraged to use a more sophisticated
firewall setup; however, these will provide basic security. If you
are running any servers on your machine, you must choose 'NONE' and
set up firewalling yourself. Otherwise, the firewall rules will deny
access to all standard servers like Web, e-mail, ftp, etc. If you
are using SSH, the rules will block outgoing SSH connections which
allocate a privileged source port.
The firewall choices are:
0 - NONE: This script will not set any firewall rules. You are responsible
for ensuring the security of your machine. You are STRONGLY
recommended to use some kind of firewall rules.
1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation
2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway
for a LAN
>>> Choose a type of firewall (0-2): 1
** Summary of what you entered **
Ethernet Interface: eth0
User name: bxxxnxnx@sympatico.ca
Activate-on-demand: No
DNS: Do not adjust
Firewalling: STANDALONE
>>> Accept these settings and adjust configuration files (y/n)? y
Adjusting /etc/ppp/pppoe.conf
Adjusting /etc/ppp/pap-secrets and /etc/ppp/chap-secrets
(But first backing it up to /etc/ppp/pap-secrets-bak)
(But first backing it up to /etc/ppp/chap-secrets-bak)
Congratulations, it should be all set up!
Type 'adsl-start' to bring up your ADSL link and 'adsl-stop' to bring
it down. Type 'adsl-status' to see the link status.
root@ubuntu:~/Desktop/rp-pppoe-3.5# cd
root@ubuntu:~# adsl-start
................TIMED OUT
لینوکسی هم که نصب کردم یه اوبونتو نسخه 9 و خورده ائی هست که خورده ائیشو دیگه یادم نیست. حالا اگه نصب این چیز بالائی (اسمش حتما چیزه دیگه!) برای کار اتصال به اینترنت ضرر داره لطفا بهم بگین چطوری میشه درستش کرد
ممنون