Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: mountpeaks on October 14, 2011, 01:13:21 PM

Title: DSL modem PPPOE connection Howto
Post by: mountpeaks on October 14, 2011, 01:13:21 PM
There is a real mess in wiki and on forum on howto setup a pppoe connection. Some threads are either old or filled with dead links.
So, now I've installed TC on sdb1 I want to connect and download some fancy apps there.
I use DSL connection that I need to configure, but before that I need to download pppsetup or some ppp package from applications rep.
There is something wrong here isn't it?
So I've tried to do it from outside TC but it seems like only native application browser can download apps, so I should ask now, how do I get it running. There is no pppsetup or either ppp config tool on my installed TC system as far as I'm concerned. Teach me please how to setup PPPOE connection in TC while not being connected) to the internet.
Title: Re: DSL modem PPPOE connection Howto
Post by: Pseudoman on October 14, 2011, 01:23:52 PM
It is possible to use the filltcedir script, written by Jason W, to download extensions that you need without access to the built-in appbrowser:
http://forum.tinycorelinux.net/index.php/topic,7243.msg41574.html#msg41574 (http://forum.tinycorelinux.net/index.php/topic,7243.msg41574.html#msg41574)
This script will allow you to download applications from another linux distro (via a terminal) or from Cygwin running under Windows. I use the latter option and it works fine.
I don't think that the script has been updated yet for the 4.x repo, but I was able to retrofit it to work. I'll attach it below:
Title: Re: DSL modem PPPOE connection Howto
Post by: mountpeaks on October 15, 2011, 04:28:32 AM
Thanks for the script, it works greatly.
I've downloaded pppsetup.tcz but this program seems to be made for Dial Up modems that you cannot buy these days) ISDN and other prehistoric stuff.
It actually is useless for DSL modem because it doesn't have a desired option for a setup.
However, I've did everything by hand. Still no result. ppp-go do not work.
How do I know if TC really sees my modem?

Title: Re: DSL modem PPPOE connection Howto
Post by: maro on October 15, 2011, 04:30:01 PM
Well, for starters: What kind of modem have you got, and how is it attached to your system?

In general any device detection usually spits out some information into the 'dmesg' output. Furthermore to check out more details for PCI devices (using the 'pci-utils.tcz' extension) the 'lspci' command can be used. Likewise for USB devices (using the 'usb-utils.tcz' extension) the 'lsusb' command provides valuable information.

Have you used the same system with a different Linux distribution? Because a lot could be learned from their configuration and quite possibly applied to TC.
Title: Re: DSL modem PPPOE connection Howto
Post by: mountpeaks on October 17, 2011, 01:56:31 PM
Yes, I'm using a "pppoe-start" in arch to up my connection. Quite obvious that I use a DSL modem that is connected with cable to my laptop, I use login and pass to setup the network connection. Every time I connect my the internet my provider gives me a new IP address.
So this is it. TC ppp-setup util is made for dial-up modems that I used when I was still a pupil and had 56K software modem to connect to the internet. The only useful thing it does is creates a config that I should reedit by hand myself to get it into a decent shape. But unfortunately it still doesn't work.
This is indeed a big "?" these days when DSL(pppoe) connection should be running out-of-the-box on any distro.  Really, about 90% of internet users in my country use DSL modems. So I was surprised at TC not having just anything decent for this kind of setup so far((
Hope this will be fixed somehow.
Title: Re: DSL modem PPPOE connection Howto
Post by: curaga on October 18, 2011, 12:12:17 AM
Just curious, which country? Out here pppoe is exceedingly rare, the dsl modems are standard routers.
Title: Re: DSL modem PPPOE connection Howto
Post by: Rich on October 18, 2011, 12:39:29 AM
I'm in New York and have a DSL modem. The connection between the modem and the phone
company is PPPoE, however, the other side of the modem connects directly to my NIC. The
modem deals with PPPoE, it's transparent to the user.
Title: Re: DSL modem PPPOE connection Howto
Post by: floppy on October 18, 2011, 02:31:15 AM
Usefull?
http://forum.tinycorelinux.net/index.php/topic,11509.msg61207.html#msg61207 (http://forum.tinycorelinux.net/index.php/topic,11509.msg61207.html#msg61207)

Please put your "dsl" modem description here (model, "lsusb" result..). So, we will understand.
Title: Re: DSL modem PPPOE connection Howto
Post by: mountpeaks on December 28, 2011, 11:26:36 AM
Just curious, which country? Out here pppoe is exceedingly rare, the dsl modems are standard routers.
Belarus.
Not much of a target market, but national internet provider controls 99% of traffic and gives every client a ZTE/D-link dsl modem.
Title: Re: DSL modem PPPOE connection Howto
Post by: mountpeaks on December 28, 2011, 11:46:25 AM
Usefull?
http://forum.tinycorelinux.net/index.php/topic,11509.msg61207.html#msg61207 (http://forum.tinycorelinux.net/index.php/topic,11509.msg61207.html#msg61207)

Please put your "dsl" modem description here (model, "lsusb" result..). So, we will understand.
I have ZTE ZXDSL 831series. And its not a usb modem, It is connected to pc via standart lan cable. (see attachments)

Title: Re: DSL modem PPPOE connection Howto
Post by: mountpeaks on December 29, 2011, 12:36:00 AM
ok, pppsetup is a package not for DSL modems, it should either renamed or removed, not to misguide people.
Is there an option to take pppoe scripts from other distributions, maybe we can use it on TC, here is what I have on arch in my /usr/sbin/
Code: [Select]
ls /usr/sbin/ppp*
/usr/sbin/pppd     /usr/sbin/pppoe-connect    /usr/sbin/pppoe-server  /usr/sbin/pppoe-start   /usr/sbin/pppstats
/usr/sbin/pppdump  /usr/sbin/pppoe-discovery  /usr/sbin/pppoe-setup   /usr/sbin/pppoe-status
/usr/sbin/pppoe    /usr/sbin/pppoe-relay      /usr/sbin/pppoe-sniff   /usr/sbin/pppoe-stop
Should they work on TC, it could be just fine


Title: Re: DSL modem PPPOE connection Howto
Post by: Rich on December 29, 2011, 02:55:29 PM
Hi mountpeaks
Those files appear to be for dial-up, some of them show up in the pppd.tcz extension.
Open a terminal and type  ifconfig  , you should see a response similar to this:
Code: [Select]
tc@box:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:B0:D0:01:0C:9D
          inet addr:192.168.1.46  Bcast:255.255.255.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2870177 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1749228 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3694431853  TX bytes:270184619
          Interrupt:10 Base address:0x800
Make sure the  inet addr:  line is present. According to Google, this modem defaults to address
192.168.1.1, so make sure your network card is using 192.168.1.xxx.
Title: Re: DSL modem PPPOE connection Howto
Post by: rhodius on January 22, 2012, 03:33:04 PM
Quote from: Rich
...Those files appear to be for dial-up, some of them show up in the pppd.tcz extension.
Open a terminal and type  ifconfig  , you should see a response similar to this:
tc@box:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:B0:D0:01:0C:9D
          inet addr:192.168.1.46  Bcast:255.255.255.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2870177 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1749228 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3694431853  TX bytes:270184619
          Interrupt:10 Base address:0x800
Make sure the  inet addr:  line is present. According to Google, this modem defaults to address
192.168.1.1, so make sure your network card is using 192.168.1.xxx.

Hello Rich, I've been trying for 3 days to get Tiny Core connected through a DSL Modem. I've tried some solutions from the forum, but no joy. Using your example, when I look at output of the ifconfig command on my (connected) SliTaz box, there is no inet addr: line for eth0. What is the significance of that line, please?

I'm fascinated by the Tiny Core approach to things, and already have a persistant /tce/optional on my sda3 ext2 partition where I've successfully installed some stuff using the Local option of the AppsBrowser, but it would really be nice to get online with Tiny Core. I've gotten online through a DSL modem with any number of distributions using pppoe-setup (Roaring Penguin) or pppoeconf (Debian, maybe?), both simple dialog boxes. TIA.
Title: Re: DSL modem PPPOE connection Howto
Post by: Rich on January 22, 2012, 06:12:25 PM
Hi rhodius
The  inet addr:  line tells you what address has been assigned to your computer. Anytime your
computer talks to another piece of hardware on your network, it includes that address so that
the response will be sent back to your computer. Without it, you can not establish a network
connection. From the Roaring Penguin website:
Quote
Before you download this software, check whether or not you really need it. If your ISP uses PPPoE, but has given you a router, you may not need a PPPoE client on your Linux box. DHCP may work fine.
If your computer connects to the DSL modem using a network cable, I would expect it to be sufficient
to get your network card up and assign a gateway address.
Open up  CONTROL PANEL  and click on the  NETWORK  button, then enter the following values:
Code: [Select]
eth0
Use DHCP=no
IP Address=192.168.1.27
Network Mask=255.255.255.0
Broadcast=192.168.1.255
Gateway=192.168.1.1
NameServers=192.168.1.1
Click Apply and Exit, then try the  ifconfig  command again and see if the address was assigned.
If that does not work, then it is likely that your network card is not being detected or it requires
firmware. If that is the case, enter:
Code: [Select]
dmesg > dmesg.txtand attach the  dmesg.txt  file to your next post.
Title: Re: DSL modem PPPOE connection Howto
Post by: rhodius on January 22, 2012, 09:04:12 PM
Wow, Rich, thanks fore quick and detailed response!

...Click Apply and Exit, then try the  ifconfig  command again and see if the address was assigned.

OK, I followed your instruction and ifconfig showed the inet addr line, which I successfully pinged for whatever that might tell us.

So, do I proceed with pppd.tcz now and try to wring out a PPPoE configuration somehow, or is that NETWORK box sufficient now? I don't understand DHCP vs PPPoE - I've just always managed to connect by configuring pppoe-setup or pppoeconf and tweaking the applicable files if needed. Anyway, thanks again!
Title: Re: DSL modem PPPOE connection Howto
Post by: Rich on January 22, 2012, 10:24:56 PM
Hi rhodius
OK, now that your network card is talking, let's try to ping the DSL modem. Try pinging 192.168.1.1
which is a fairly common IP address for that. If that succeeds, then AppBrowser should be able to
connect, if not, then Google your modems model number for its default address. It might also be
helpful if you give the model number in your next post. To the best of my knowledge (which is limited)
you should only need PPP utilities for modem cards and modems connected via RS232.
Title: Re: DSL modem PPPOE connection Howto
Post by: rhodius on January 22, 2012, 10:54:47 PM
Rich, I will try what you suggested. My modem is a Zoom ADSL Bridge Modem, model 5615. I've tried before to look at it's web interface using http://10.0.0.2 (http://10.0.0.2) but it never works.

Thanks again for your help! I'm gonna shutdown SliTaz right now and work on connecting Tiny Core. It is interesting that I may never have needed PPPoE at all.
Title: Re: DSL modem PPPOE connection Howto
Post by: Rich on January 22, 2012, 11:11:10 PM
Hi rhodius
Since the default IP address for the modem is 10.0.0.2 you need to change the address of your
network card.
Code: [Select]
eth0
Use DHCP=no
IP Address=10.0.0.27
Network Mask=255.255.255.0
Broadcast=10.0.0.255
Gateway=10.0.0.2
NameServers=10.0.0.2 
Title: Re: DSL modem PPPOE connection Howto
Post by: rhodius on January 23, 2012, 11:06:02 AM
Hi rhodius
Since the default IP address for the modem is 10.0.0.2 you need to change the address of your
network card...

Rich, I appreciate all your help, but no combination works and I've spent a crazy amount of time on this. I tried to connect from several other distros without using PPPoE, but couldn't connect. The best I could do was to get dropped real quick. It may be that my ISP won't let me on without PPPoE.

Thanks so much for your time and effort.
Title: Re: DSL modem PPPOE connection Howto
Post by: Rich on January 23, 2012, 01:44:45 PM
Hi rhodius
I took a look at the manual for your modem and may have found a couple of answers. In order to
access the modems setup page, your network card has to be set to an address between
10.0.0.4 and 10.0.0.20. For normal use, your card needs to be set between 10.0.0.21 and 10.0.0.254.
To access the modems setup page, enter 10.0.0.2 in your browsers address bar.
The manual also states that some service providers require PPPoE software so that you can enter your
user name and password in order to connect. Do you normally have to enter a user name and
password? If so, there may be an option in one of the modems setup pages to remember them and
to maintain a constant connection to the Internet. My modem has that option buried on one of its
pages, and it is set to maintain the connection at all times.
Title: Re: DSL modem PPPOE connection Howto
Post by: martin on January 23, 2012, 03:35:51 PM
Could it be that the ADSL modem has been placed into bridge mode? That might be why it cannot be accessed or pinged.

A Roaring Penguin PPPoE extension is available in the repositories, you could probably give it a go and see if it is able to bring up your connection.

my two cents.
Title: Re: DSL modem PPPOE connection Howto
Post by: rhodius on January 23, 2012, 08:08:14 PM
Could it be that the ADSL modem has been placed into bridge mode? That might be why it cannot be accessed or pinged.

Quote from: Martin C
A Roaring Penguin PPPoE extension is available in the repositories, you could probably give it a go and see if it is able to bring up your connection.

my two cents.

Thanks, Martin, for your suggestion. I must have overlooked Roaring Penguin in the repository - that probably would have saved me hours of eyestrain and frustration. As it happens, I finally got online through pppd, and I type this now by way ofh Tiny Core 4.2.1 and elinks web browser! (FireFox was unusably hideous with whatever Xvesa configured for my monitor.) I will better describe my successful configuration after getting some things in order, but basically I installed pppd.tcz, configured /etc/ppp/options, /etc/resolv.conf, plus chat and pap secrets in etc/ppp. I also made sure that dhcp was up and selected by means of the Control Panel.

So, thanks so much, Rich and Martin, for your help and suggestions. I'm really looking forward to learning the Tiny Core way.
Title: Re: DSL modem PPPOE connection Howto
Post by: nathan on June 23, 2012, 11:18:55 PM
Hi, Linux newbie here so I hope you guys will understand if I ask stupid questions.

I'm also at the point where I can boot up from a USB to the Tiny Core desktop. Used core2usb to set everything up. I'm also using a DSL connection with Windows 7 to get online, but when I log into Tiny Core, I can't get connected. I tried using ifconfig and the inet addr line is missing.

I have been able to download pppd.tczl from distro.ibiblio.org/tinycorelinux/. Is this the same file as pppd.tcz that you mention you have installed? If it is, how exactly do I install this file? And how do I configure  /etc/ppp/options, /etc/resolv.conf, plus chat and pap secrets in etc/ppp? I have been able to select the DHCP option in control panel, but this disables all the other fields. Is this ok, or do I have to place values in those fields first.

Some step by step instructions could really be helpful. Thanks.
Title: Re: DSL modem PPPOE connection Howto
Post by: solorin on June 24, 2012, 12:11:21 AM
Code: [Select]
$tce-load -wi pppoe.tcz
$pppoe
Title: Re: DSL modem PPPOE connection Howto
Post by: tinypoodle on June 24, 2012, 01:05:10 AM

I have been able to download pppd.tczl from distro.ibiblio.org/tinycorelinux/. Is this the same file as pppd.tcz that you mention you have installed? If it is, how exactly do I install this file? And how do I configure  /etc/ppp/options, /etc/resolv.conf, plus chat and pap secrets in etc/ppp? I have been able to select the DHCP option in control panel, but this disables all the other fields. Is this ok, or do I have to place values in those fields first.



.tczl are only compatible up to a certain version of the 2.x series; so it seems something wrong there...
Title: Re: DSL modem PPPOE connection Howto
Post by: Rich on June 24, 2012, 07:05:04 AM
Hi nathan
Use the AppBrowser icon at the bottom of the screen to install applications. This will ensure that the
application comes from the correct repository and that all the dependencies are met. If you really and
truly feel you need to download something manually, the correct site for TC4 is:
http://distro.ibiblio.org/tinycorelinux/4.x/x86/tcz/
Title: Re: DSL modem PPPOE connection Howto
Post by: grandma on September 15, 2012, 11:27:10 AM
Similar problem:

Have 2 friends in rural America where coax coverage is sparse. One tried satellite (Hughes) - miserable - switched to Verizon and has that WiFi through her home - but can't get online with TC - am working with her to use iwconfig wlan0 ESSID "HerHotSpot" key HerWEPkey - maybe working here shortly - we shall see

Then the DSL problem - similar to this issue - gent in the middle of "Nowhere Texas" - on a phone line hit to a DSL modem - Windows 7 completely wiped out due to a virus that hit him in under 3 minutes of going online (figures) - pretty sad but hey - that's Windows - so I said "Well, can you cripple a download?" - he did - and we got a USB with syslinux booting TC - he has wbar working - but his eth0 is dead even when plugged direct into DSL modem - and he has wifi through his home - but wireless tools isn't talking to his antennas...so we figured we'd continue down the DSL direct connect path for now.

The objective: lots of folks outside of cities have either satellite or DSL - no coax - or Verizon / Metro / T-Mobile / Sprint cell phone styled internet/wifi, so the market segment for these is rather large and dire if we want to get TC into rural America.

UPDATE: My tests with eth0 today (in urban area - std Comcast cable/coax to a router to a switch/hub to the laptop) - were perfect - as in connected automatically with no scripts or a single command. Was able to kill udhcpc job and ifconfig eth0 down, then toggle it back up and restart udhcpc and it connected instantly.

Will try similar test with rural Texas tomorrow eth0 cabled directly to DSL, then try their WiFi (may have driver issues - new Acer laptop), and then the Verizon eth0 and related WiFi. Both these sites reported trouble before using the Tools/Network utility, but I didn't even have to use that today for my test - poof - working instantly/automatically. Not sure what their problem was...will find out.

As for "rural" objective, while saturation is thin, a lot of folks I've met are getting away from "at-home" cable hits and leaning towards mobile aka Verizon cell/dongle WiFi, so ensuring drivers are working may be of some importance and the WiFi drivers for some of the newer laptops don't seem to be as reliable as my older RealTek 8187 - which worked right away.

UPDATE #2: Not sure why ETH0 won't recognize at all. Tried sudo ifconfig eth0 up - nothing - no device - but Windows sees it fine

we get a DUMMY0 and LO - no eth or wlan

So before worrying about PPPOE or any other method, going to try to figure out why a brand new laptop running TC can't find its various holes

Checked bios - worthless - barely mentions hard drives - no PnP settings or ETH or SERIAL - etc. - does allow boot priorities to include USB HDD so that was a plus

Checked dmesg - a lot of squawking about 64 CACHE this and that - didn't know what to look for to verify if it sees an ETH0 port

So.....next step....try to safe mode boot his Windows (sad that TC can't do this - hate bill gates ANY-OS) and get under the massive virus-infected (pray) get to the internet (pray again) and try to download some extensions.

Also noticed that some DEPs have changed and files that work fine on my machine do not work on his. I used std wgets - he used the AppBrowser gui - and his dont work?????? Kinda funny that one.
Title: Re: DSL modem PPPOE connection Howto
Post by: gerald_clark on September 15, 2012, 11:42:14 AM
I doubt "getting TC into rural America" is a major goal of the project.
There is nothing special about DSL vs Cable.
Just get a $20.00 DSL/Cable router and connect via the RJ45 jack or Wifi.