Topic: [solved] Wired connection problem (certainly driver)

I first thought I have a problem with my connection configuration but in fact no. My computer just doesn't see my Internet connection, the card is like not activated...

I search on Internet and it seems there is a problem of interoperability between windows and Linux. Windows when it closes put the card in "sleep" and the generic driver of Linux is not able to wake it up... something like that. One of the solution was to enable the wake on LAN possibility in windows, but it doesn't change anything in my case. Maybe I missed something, I also tried to find something in the bios unsuccessfully (Or I didn't understand it was what I was looking for, I prefer not touching something that I don't understands).

The second possibility is to download the driver for my card (Realtek RTL8168B/8111B family PCI-E Gigabit ethernet NIC (NDIS 6.0)). I would like but I can't download....
I tried the site of realtek:
http://www.realtek.com/downloads/downlo … wn=false#2

and some others but the downloads never worked (I tried with my windows session as I can't connect with Linux tongue ).

What is weird is that with the live crunchbang 9.04 or ubuntu 8.04 it works, but when I install and connect it doesn't work anymore. I tried Ubuntu 9.10 or 10.04 beta and in these cases even the live session didn't work so I didn't try to install them.

If somebody has an explanation and an alternate solution don't hesitate big_smile
If you know somewhere else where I can download the driver it would be great also (I tried at least 5 or 6 sites and it was never available)

Last edited by Nicky (2010-04-18 08:28:54)

Re: [solved] Wired connection problem (certainly driver)

Try this.

From terminal:

ifconfing

Find your ethernet interface name (probably eth0) and then:

ifconfig <interfacename> up

Don't remember if you have to use sudo.

Re: [solved] Wired connection problem (certainly driver)

Yes I already tried it and I just try it again.
sudo ifconfig eth0 up give me nothing

when I do nm-tool I have:

Device: eth0
type: wired
Driver: r8169
State: unavailable
Default: no
HW address: ....the mac adress of my card....

Capabilities:
Carrier detect: yes
speed: 100 Mb/s

wired properties
Carrier: off

Re: [solved] Wired connection problem (certainly driver)

I finally succeed in downloading the driver !

Now I follow the readme (un-tar the package, cd in the new directory and execute autorun)

Problem I can't build the it.

Check old driver and unload it.
rmmod r8169
Build the module and install
/usr/src/linux-headers-2.6.28-13-generic/scripts/gcc-version.sh: line 25: gcc: command not found
/usr/src/linux-headers-2.6.28-13-generic/scripts/gcc-version.sh: line 26: gcc: command not found
make[2]: gcc: Command not found
make[2]: Entering directory `/usr/src/linux-headers-2.6.28-13-generic'
/bin/sh: gcc: not found
make[3]: *** [/home/nicky/downloads/r8168-8.018.00/src/r8168_n.o] Error 127
make[2]: *** [_module_/home/nicky/downloads/r8168-8.018.00/src] Error 2
make[1]: *** [modules] Error 2
make: *** [modules] Error 2

I guess some modules are not present on my system but how can I know which ones and how install them without a connection ?

Re: [solved] Wired connection problem (certainly driver)

You sould install the build-essential package.

But i don't know how you could do it...

Re: [solved] Wired connection problem (certainly driver)

You need gcc, download on a working machine and put them on USB?

Re: [solved] Wired connection problem (certainly driver)

Ok, I can make some .deb (apt-get build-dep xxx and apt-get source xxx --compile) with a live session directly on my computer. I made the build-essential and gcc. That gave me tons of .deb files that I can not install as they have dependencies that are not present.

How can I do to havec all the packages I need and install them in the right order to not have problems of dependencies... I guess (and I hope tongue ) there are some automatic commands.

Re: [solved] Wired connection problem (certainly driver)

Maybe this doesn't help, but my wired connection didn't work and i found a solution in this forum:
http://crunchbanglinux.org/forums/topic … et-solved/ 
4th post

At first you should edit "/etc/NetworkManager/nm-system-settings.conf" as root  and just change the line  "managed=false" to "managed=true".
Then reboot and see, if at least your cable connection appears in nm-applet.

Re: [solved] Wired connection problem (certainly driver)

It doesn't change anything, but thanks, maybe it will be usefull for a next step big_smile

Last edited by Nicky (2010-04-15 12:01:44)

Re: [solved] Wired connection problem (certainly driver)

I discovered something else.
In fact when I boot on the "CD" (in reality I use an USB stick but it is the same) of crunchbang, if I take "default" I have the access to internet but if I choose "Live" I don't have this access.
Isn't it weird ? big_smile

Re: [solved] Wired connection problem (certainly driver)

In fact it is the contrary. Live works and not default (it is the minimal version). Well it should be some differences between them but I don't know.

I think I find the solution to get all the dependencies and install them easily with just one command but for now I am compiling all the packages in .deb but it takes a lot of time, I don't know if it is normal. Isn't it a command to directly download the packages from the repositories in a particular directory without installing them ?

Re: [solved] Wired connection problem (certainly driver)

I finally installed the beta version of Ubuntu and of course it didn't work at start up. But the execution of the driver autorun worked perfectly and a few second after the connection was here !

With crunchbang maybe the problem was that I took the minimal version and not the other one so it doesn't have the necessary packages to install the driver. Anyway the most surprizing for me is that the live version work perfectly and not once it is installed.

Thanks to people who helped me wink