LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   No Internet :( (https://www.linuxquestions.org/questions/linux-newbie-8/no-internet-443979/)

404 User Not Found 05-11-2006 10:17 PM

No Internet :(
 
I have a sony Vaio laptop, and am running Knoppix 4.0 on it. I love this OS, but the only problem is I can't connect to the internet with it. I have a 2Wire dsl modem from SBC that I keep trying to hook up to, but it won't work. I tried an ethernet cable, bluetooth (which freezes everytime I try to set it up), connecting through either of my other systems (both Macintosh), and using my Linksys wireless G usb adapter. I've had the best luck with the USB adapter, because it actually detects it. I even found a place that has linux adapters for it (linuxant.com). I the software, but it needs to connect to the internet to install all the updates and such, which gets me back to where I started. Sorry for the long post, but any help would be greatly appreciated. Thanks

:newbie:

btmiller 05-11-2006 10:39 PM

In my experience, going with Ethernet is a lot easier than USB. First off, run ifconfig eth0 to see if your Ethernet card is detected. I've set up several Vaios in the lab I work for and have never had any trouble with the onboard Ethernet in modern Linux distros. Please also tell us which distribution your using, since all do things slightly differently.

If you can get your Ethernet card detected, download rp-pppoe from Roaring Penguin (if it's not already installed). Then you can run adsl-setup which will walk you through configuring your DSL. Then you should be able to run adsl-start and be on the 'net.

Another alternative is buying a cheap broadband router, plugging your DSL modem into it, and then configuring Linux to connect to the Internet via the router.

404 User Not Found 05-11-2006 11:31 PM

Distribution? I have Knoppix 4.0.2, if that's what you mean. Otherwise, please forgive my ignorance.

i tried ifconfig eth0, and got
"Link encap:Ethernet HWaddr 08:00:46:02:DA:F3
BROADCAST MULTICAST MTU:1514 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:1000
RX bytes: 0 (0.0 b) TX bytes:0 (0.0 b)"

I'm not entirely sure what that means, but I think I can assume that it means that it can't connect.

and after trying Roaring Penguin, I got this error message:
"Oops! It looks like ./configure failed."

would that just mean it can't use my ethernet card?
Thanks

btmiller 05-11-2006 11:37 PM

That output means that your Ethernet card is detected, but isn't set up. Roaring penguin should be able to set up and go at this point, so I'm a bit confused why it's throwing that error. Exactly what command are you using that causes that error?

404 User Not Found 05-13-2006 05:25 PM

I'm using the "./go" command and the "./go-gui". Both of them give me the same error.
One thing that I completely failed to mention was that my laptop does not have a built-in ethernet card. I have to use a dock that hooks up to the bottom of my computer to use ethernet. It's a Sony pcga-prf1a port replicator. The USB ports work fine through it, but I'm not sure if that would affect the internet.

BCarey 05-13-2006 05:33 PM

what about (as root)

ifconfig eth0 up
dhcpcd eth0

?

Brian

btmiller 05-13-2006 05:52 PM

His ADSL likely uses PPPoE so you can't just bring your Ethernet card up, start dhcpcd, and expect to get going, unfortunately. You need to actually connect via PPPoE (which is basicaslly PPP like a dialup modem but run over Ethernet).

I'm not sure what you expect the ./go or ./go-gui commands to do. The typicall way to start the GUI in Linux is with startx.

BCarey 05-13-2006 05:58 PM

Is ADSL different than DSL? Because this works for me at my office where I have DSL.

Brian

404 User Not Found 05-13-2006 06:41 PM

ifconfig eth0 up gives me absolutely nothing. This is what it shows up. No response or reaction

root@0[knoppix]# ifconfig eth0 up
root@0[knoppix]#

dhcpcd eth0 gives me

root@0[knoppix]# dhcpcd eth0
bash: dhcpcd: command not found
root@0[knoppix]#

I did try compiling Roaring Penguin, but in the end, I keep getting

/usr/bin/install: cannot stat '../doc/CHANGES' : No such file or directory
make: *** [install] Error 1

any suggestions? Thanks!

BCarey 05-14-2006 09:41 AM

With many command line tools, lack of response is often a good thing. You are warned if something went wrong, but are not told when something goes right. So it is normal that the command seems to do nothing. If you type ifconfig alone (without the eth0 part), it should show you which interfaces are up. So after typing "ifconfig eth0 up" then just type "ifconfig" and see if eth0 shows up in the list.

dhcpcd is usually found in /sbin. Some people use dhclient, although I'm not familiar with it. You can check where it is on your system with "whereis dhcpcd"

Brian

btmiller 05-14-2006 03:59 PM

You may also have dhclient instead of dhcpcd. If you're root, either dhcpcd eth0 or dhclient eth0 should work so long as eth0 is on an Ethernet segment with an active DHCP server or forwarder. If you can't find either try "locate dhcpcd" and "locate dhclient" and type the full path to the executable.

I'm still not convinced that this will work with the OP's ADSL, but there's no harm in trying. At your office, if you connect through a router than only the router has to worry about interfacing with the DSL. The router probably has a DHCP server that assigns IP addresses to the other machines on the LAN.

As for the rp-pppoe problem, it looks like a minor problem copying some of the doc files over. Can you find the adsl-setup, adsl-start, and adsl-stop binaries in the source directory or in /usr/sbin or /usr/local/sbin? If so, you can just try running it by cd'ing to the directory it's in and running ./adsl-setup.

BCarey 05-14-2006 04:46 PM

Quote:

Originally Posted by btmiller
At your office, if you connect through a router than only the router has to worry about interfacing with the DSL. The router probably has a DHCP server that assigns IP addresses to the other machines on the LAN.

This is exactly how it works at my office: the modem doubles as a router/dhcp server. But I think this is pretty standard these days in DSL installations (big assumption ;-)

Brian

Maritime 05-14-2006 06:24 PM

Try installing dhcp/dhcpcd with whatever package manager Knoppix uses. Or, try assigning yourself a static IP address. You do this by editing /etc/network/interfaces. Here's a sample file:

Code:

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
# automatically added when upgrading
auto lo
iface lo inet loopback
# The first network card - this entry was created during the
# Debian installation automatically added when upgrading
auto eth0
iface eth0 inet static
    address 192.168.0.101
    netmask 255.255.255.

Actually, you might be able to copy that straight into /etc/network/interfaces and have it work if 192.168.0.101 isn't used.

404 User Not Found 05-22-2006 07:59 PM

Thanks for all your help guys, but I finally gave up and actually installed SUSE Linux 10.0 on my system. Sadly, it doesn't work either. I'll try again sometime, but I've been getting pretty busy. Thanks again

craigevil 05-22-2006 08:57 PM

You best bet is to try a few LiveCDs, once you find one that works you can either copy the necessary config files to whatever you have installed or just install it.

I would try PCLinuxOS, Kanotix, Mepis and maybe Ubuntu. If it works as a LiveCD it will work when installed.


All times are GMT -5. The time now is 01:34 PM.