Tiny Core Linux
		Tiny Core Base => TCB Q&A Forum => Topic started by: tothmarcell97 on January 27, 2011, 02:08:12 PM
		
			
			- 
				Hi All!
 
 Sorry if it's a noob question but I just started using this system.
 So, my question is how can I connect to ADSL?
 I red somewhere to edit /etc/ppp/(something) but when I boot from the CD I couldn't find that directory.
 Thanks for your help.
 
 MT
- 
				You need a modem (which in many cases is part of a gateway, combining router and wireless AP).
			
- 
				This is okay. I got the modem, it working well on Windows XP. But I don't know how to get it working with Tiny Core Linux
			
- 
				If you do not specify in what way you want to connect to what hardware, your question(s) cannot be answered.
			
- 
				I personally have a router between my ADSL modem and my PC.  The router has it's uplink port set to use whatever IP address the modem requires (can't remember right now how exactly that's configured), and provides DHCP to all it's downlink ports.  My computer is set to use DHCP.  The rest mostly takes care of itself.
 
 If your computer is plugged directly into the ADSL modem, then it's likely that your PC is set to use a static IP (on the same subnet as the modem).  In Windows, look at your settings by going to Start->Run and typing "cmd".  At the command prompt, type "ipconfig /all".
 
 Look at the settings for "Ethernet adapter Local Area Connection".  Determine if "Dhcp Enabled" is Yes or No.  If it is yes, then TinyCore probably would have worked right out of the box, so it's probably No.
 
 If it's No, then you have a static IP address.  Write down the IP Address and Subnet Mask values.  I'm not sure if you'll need the Default Gateway, but if that's set, write it down too.
 
 Now start TinyCore Linux up, and open a terminal.
 You'll probably have to kill udhcpc, so type "ps" to find it's PID, then type "kill <pid>", where <pid> is udhcpc's PID.
 Type "ifconfig eth0 add <address>; ifconfig eth0 netmask <mask>;" where <address> and <mask> are the values you previously wrote down.
 
 After that, everything should work.  Of course, all that assumed you had a wired connection to the modem.
- 
				I should note that even if this gets you online, it won't be permanent.  You'd have to do the same thing in TinyCore every time after booting.  You'll need to modify /opt/bootlocal.sh to contain "kill udhcpc" and "ifconfig" in order to make it permanent.
			
- 
				Good job.  Now you went and scared the newbie away.  He clearly wasn't just a Linux newbie, but a computer newbie at that.  He didn't even realize that there were various kinds of ADSL modems, or various was of connecting to them, and that each had specific required actions...
 
 And his first (1st!) experience with our -helpful- forum is that he's gotta be a genius to figure this stuff out.  Either that, or he read my post, got it working, and never bothered to come back and say Thanks...
 
 
- 
				Nah, you scared him off. You did not tell him how to open a terminal so everything
 you told him to type in went nowhere.
 
- 
				Wouldn't that require to type '> /dev/null' into a terminal?   :P
			
- 
				If you had a terminal open then yes, if you are trying to type to the desktop, then no.
 
- 
				Except if the window manager would be adequately configured for single stroke keybindings...   ;)
			
- 
				Of course, all that assumed you had a wired connection to the modem.
 
 
 Perhaps you mean specifically a wired ethernet connection and only that?
 
 A USB modem would probably have a wired connection, and possibly a PCI modem as well.
- 
				 :D  Hah!  You're probably right.  I made the assumption he didn't know how to open a terminal in -windows-, what are the chances he knows how to do it in Linux?
 
 And yeah, my instructions were totally inadequate if it's a USB modem.
- 
				First sorry, I couldn't use the internet for 2 days, so I couldn't reply to your posts, but thank you for them.
 I know, how to use a terminal in linux and in windows too...
 And, I'll try Your answers when I'll be able to try it. (I think on Sunday)
 
 "And yeah, my instructions were totally inadequate if it's a USB modem." No, its not an USB.
 
 And I think one think is missing from jerramy's solution. Sorry, I forgot to say, I have got a username (something@invitel.hu) and a password. I can't connect without it. Where can I set it?
 
 And thank you again for your help.
- 
				The instructions for setting up a network connection with ADSL can be found here (http://forum.tinycorelinux.net/index.php?topic=2706.msg13759#msg13759).
 
 You can download the pppd.tcz extension via ftp from:
 
 ftp:// distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/tcz/ 
 (Note: expect a long delay.)
 
 Create the following nested folders on a USB key (assuming it's drive E:):
 
 E:\tce\optional
 
 and copy the pppd extension into the optional directory.
 
 Boot Tinycore with the following option: tinycore waitusb=5
 
 Then open appbrowser and select [local] to load the extension.
 
 FWIW, I would strongly recommend buying a router and setting up your pppoe connection there. Connecting your computer directly to the modem is risky business.
- 
				Thanks again. I think my problem is solved. (I didn't test it now, but I think it will be okay.
			
- 
				It's okay, I did the configuration, but when I want to start the connection (sudo pppd eth0) i get an error:
 (Plugin rp-pppoe.so loaded)
 RP-PPPoE plugin version 3.3 compiled against pppd 2.4.4
 and the connection doesn't work.
 
- 
				Those aren't error messages: they're runtime information.
 
 Run the following commands and attach the text files to your next post.
 
 tc@box:~$sudo pppd eth0 | tee errors.txt
 tc@box:~$ ifconfig > ifconfig.txt
 tc@box:~$ lsmod > lsmod.txt
 tc@box:~$ dmesg | grep eth0 > dmesg.txt
- 
				I will be able to test it next Tuesday i think, I'll attach that info.