Summary to setup a pppoe-DSL connection:
[(In the next days I will recheck it on another computer and add a tutorial video in my youtube channel)]
I can not make this work again on another computer...
I didn't film how I eventually succeeded to make it work, I only took notes and must have forgotten to write down something.
Download pppoe.tcz and its dependency pppd.tcz from
http://distro.ibiblio.org/tinycorelinux/4.x/x86/tcz/Copy them to /tce/optional/
With Apps install pppoe.tcz as [OnBoot] +OnDemand (OnBoot creates only an empty /etc/ppp directory)
[Reboot with a back-up]
At boot pppoe creates the directory /etc/ppp/ and some files in it.
The trickiest part is that the configuration file /etc/ppp/pppoe.conf is a read only symbolic link
If you run pppoe-setup you get an error at the end.
So first you have to open /etc/ppp/pppoe.conf with an editor
save it as /etc/ppp/pppoe.conf.sample
remove the symbolic link
sudo rm /etc/ppp/pppoe.conf
Replace it by the copy
sudo cp /etc/ppp/pppoe.conf.sample /etc/ppp/pppoe.conf
now you can do the set up (as root):
sudo pppoe-setup
For the requested setup parameters if your connection is working under Windows type
ipconfig /all
in a MS-DOS window, this shows the right DNS server(s).
I am still not sure if and when you have to do something with ControlPanel->Network
In this case it was set to DHCP yes
+It is also not sure if the automatic configuration IP or maybe the gateway has to be added in the ControlPanel->Network Panel.
after the setup you can connect to the internet with
sudo pppoe-start
There are also the commands pppoe-stop and pppoe-status
To make the settings persistent
+remove pppoe.tcz from OnDemand application and and it to OnBoot
with a editor
add the 2 lines (without leading or ending “/”)
etc/ppp
etc/resolv.conf
to /opt/.filetool.lst
This will backup the ppp directory and the resolv.conf file at shut-down.
Exit with a backup
At boot pppoe recreates /etc/ppp/ but it is then replaced by the backup one.
That's why pppoe can not be OnDemand because you would always lose the content of /etc/ppp/ when launching it.
Now you should be able to install applications from the cloud with Apps or ScmApps
If the connection is not working have a look at the outputs of :
ifconfig
cat /etc/hosts
cat /etc/resolv.conf
route
You can also test your connection with ping
For example
ping 8.8.8.8
Sometimes it helps to do:
sudo ifconfig eth0 down
sudo ifconfig eth0 up
+++++
On the computer on which the connection works :
tc@box:~$ sudo pppoe-start
. Connected!
tc@box:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:XX:1A:DD:XX
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18 errors:0 dropped:0 overruns:0 frame:0
TX packets:52 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1295 (1.2 KiB) TX bytes:12316 (12.0 KiB)
Interrupt:21 Base address:0x8c00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1200 (1.1 KiB) TX bytes:1200 (1.1 KiB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:84.0.232.170 P-t-P:145.236.238.221 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:587 (587.0 B) TX bytes:687 (687.0 B)
tc@box:~$ cat /etc/resolv.conf
nameserver 84.2.44.1
nameserver 84.2.46.1
tc@box:~$ cat /etc/hosts
127.0.0.1 box localhost
# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
tc@box:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default * 0.0.0.0 U 0 0 0 ppp0
127.0.0.1 * 255.255.255.255 UH 0 0 0 lo
145.236.238.221 * 255.255.255.255 UH 0 0 0 ppp0
tc@box:~$
On the other
sudo pppoe-start gives a timed out error.
in the output of ifconfig the last part with ppp0 is missing
in the output of route
there is only
127.0.0.1 * 255.255.255.255 UH 0 0 0 lo
but this line is missing
145.236.238.221 * 255.255.255.255 UH 0 0 0 ppp0
I don't know where this 145.236.238.221 comes from on the computer that is successfully connected to the net.
I cannot remember if I gave it in ControlPanel-Network or if I gave the automatic configuration IP address 169.254.54.164 and that configurated it. These IP adresses are not asked by pppoe-setup.
I suspect the key to this problem is how to use the ControlPanel-Network together with pppoe-setup.
First no DHCP an put the automatic configuration IP address the run pppoe-setup and then set DHCP to yes???
Could an expert user help?
Thank you!