LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices

Reply
 
Search this Thread
Old 09-10-2005, 12:13 AM   #1
mcrexx
LQ Newbie
 
Registered: Aug 2005
Location: Ontario, Canada
Posts: 20

Rep: Reputation: 0
Unhappy Can't get internet to work on laptop (Compaq Presario R3230)


hi everyone,

I'm still a newbie to linux, so bare with me.

I just installed the unofficial sarge version of Debian for amd64 on my Compaq Presario R3230CA laptop and I'm having a very hard time getting the internet running on it.

I usually use wireless on this laptop but until I can get an internet connection on it I can't download the necessary drivers. So I've hardwired it from my router to the laptop directly.

During the installation debian detected the right ethernet card, RealTek RTL-8139, but couldn't connect to my router's DHCP network. But no internet connection and my router is not detecting a connection from the laptop either. I've even connected the internet directly to my laptop (bypassing the router) and still nothing. I'm assuming the RealTek RTL-8139 card is not functioning as it should.

Any suggestions on how I can check if it's enabled or any other suggestions on how to get it running? Any help would be greatly appreciated. Thank you!
 
Old 09-10-2005, 10:36 AM   #2
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,173

Rep: Reputation: 47
What happens when you bring up the interface? Does eth0 appear when you run ifconfig? Wether the card works or not you won't be able to use the interface until it's up.
 
Old 09-10-2005, 11:05 AM   #3
mcrexx
LQ Newbie
 
Registered: Aug 2005
Location: Ontario, Canada
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
What happens when you bring up the interface? Does eth0 appear when you run ifconfig? Wether the card works or not you won't be able to use the interface until it's up.
When I run ifconfig eth0 is not there. So I typed:

Code:
ifconfig eth0 192.168.1.102 netmask 255.255.255.0 up
This enabled it. However, still no internet connection .
 
Old 09-10-2005, 11:44 AM   #4
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,173

Rep: Reputation: 47
OK, the interface comes up and has an address. That's good. To get to the internet you need to also set a gateway. You're using a 192.x.x.x address and I'll assume your router's address is 192.x.x.1. The command would be like this:

/sbin/route add default gw 191.168.1.1

If the router's address is different substitute.
 
Old 09-10-2005, 11:49 AM   #5
mcrexx
LQ Newbie
 
Registered: Aug 2005
Location: Ontario, Canada
Posts: 20

Original Poster
Rep: Reputation: 0
Thank you for the quick reply. I ran that command and got this output:

Quote:
SIOCADDRT: Network is unreachable
I've been googling this problem and have come across the fact that some ppl have had problem with the rtl8139 driver and have loaded the rtl8139too and have had success.

How can I check to see which driver I have installed by default?
 
Old 09-10-2005, 12:02 PM   #6
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,173

Rep: Reputation: 47
The lsmod command will list currently loaded driver modules. also try pinging your interface address, then the router's. It could very well be the driver.
 
Old 09-10-2005, 04:32 PM   #7
mcrexx
LQ Newbie
 
Registered: Aug 2005
Location: Ontario, Canada
Posts: 20

Original Poster
Rep: Reputation: 0
It looks like there's a problem with the actual NIC card itself. It's having problems in Windows as well.

So for the past 3 hrs I've been trying to get my broadcom wireless NIC to work. Again, I've run into walls.

Since I have absolutely no internet connection on my laptop I downloaded and burned ndiswrapper-1.3rc1.tar.gz and the 64-bit_Broadcom_54g_Drivers.zip drivers from my desktop onto a CD and put them in my /home directory on my laptop. Then I ran these commands:

Code:
tar -xzvf ndiswrapper-1.3rc1.tar.gz
cd ndiswrapper-1.3rc1
make
When I use the make command I get the following error:

Quote:
make -C driver
make[1]: Entering directory '/home/mcrexx/ndiswrapper-1.3rc1/driver'
Can't find kernel sources in /lib/modules/2.6.8-11-amd64-k8/build;
give the path to kernel sources with KSRC=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory '/home/mcrexx/ndiswrapper-1.3rc1/driver/'
make: *** [all] Error 2
Where would I find the kernel sources for ndiswrapper?
 
Old 09-11-2005, 01:20 PM   #8
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,173

Rep: Reputation: 47
ndiswrapper is looking for the source tree files for your kernel. And it's telling you that if you know the path to it to use the KSRC=/path/to/src option with the make command, like:

make KSRC=/lib/modules/2.6.8-11-amd64-k8/build

But ndiswrapper is already looking in this path and not finding it. It might be that you don't have the source installed and have to download it.
 
Old 09-12-2005, 11:08 PM   #9
mcrexx
LQ Newbie
 
Registered: Aug 2005
Location: Ontario, Canada
Posts: 20

Original Poster
Rep: Reputation: 0
OK, I FINALLY got everything installed in regards to ndiswrapper. The problem was that I didn't install kernel-headers.

Now, I don't have X installed yet because I want to get my wireless internet running first so I get get apt-get downloading from the debain servers.

Now how do I actually get the wireless card to connect to the net? Please help this newbie.
 
Old 09-13-2005, 08:08 AM   #10
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,173

Rep: Reputation: 47
So now your NIC and router are talking to each other. Good. To reach the internet you just need a couple more things. I could be wrong. I still use dial-up and am not real familiar with cable/DSL setups. Assuming the modem is plugged into the router, try this:

1) set the router as the gateway like this: route add default gw 192.168.1.1 (again, if your routers address is different susbtitute)

2) you'll need to add DNS server addresses to the /etc/resolv.conf file

To find out if you're getting to the internet try to ping an IP address outside your network. To find out if DNS is working try to ping a URL.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Will Fedora work on Compaq Presario 1266 Laptop? jav406 Fedora 1 11-04-2005 08:34 AM
New Laptop Advice: Compaq Presario rs3210us thejokker Linux - Hardware 2 09-13-2004 05:45 PM
Compaq Presario 200MHZ Laptop for a JUKEBOX bullium Linux - Laptop and Netbook 3 04-06-2004 08:44 AM
Compaq Presario Laptop 1200Z/1201Z skogs Linux - Hardware 8 07-11-2003 10:40 PM
Compaq Presario 715US laptop irq conflicts zenomorph Linux - Hardware 1 09-30-2002 05:37 PM


All times are GMT -5. The time now is 11:53 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration