When we Install the Linux(I used UBUNTU) It may or may not have the supported Ethernet device drivers for the particular computer or system.We don't get any problems connecting to the Internet when the Installation CD has the drivers, but what should we do when it doesn't have the particular drivers?
I came through this problem and searched in different forums and sites and finally I got it solved, I wrote down the steps involved in setting up the Ethernet Device below
1.Find the Ethernet device in the system
for this you can use commands
bash$ dmesg
and in the list you can find the devices and for example realtek RTL8139 or Atlansic.I did this for Atlansic device on M5N-MX machine.
2.Now you can use the installation in two ways
a.You can download drivers in another machine and copy them to the machine where you require the device to be setup
In this the steps involved are:
copy drivers to the /home/user/LAN
and then
bash$ cd /home/user/LAN
cd src
sudo make
sudo make install
sudo modprobe atl1(for atlansic)
b.Another way is to compile the drivers in another system, for this follow the steps in 'a' till sudo make
and then
cd /lib/modules/2.6.17-11-generic(Your kernel)/kernel/drivers/net/atl1
then copy the .ko file to CD or Memorystick
and put this .ko file in the system where device to be setup in the same location(/lib/modules/2.6.17-11-generic(Your kernel)/kernel/drivers/net/atl1)
and then enter bash$sudo modprobe atl1
bash$lsmod
bash$ifconfig -a thats it your ethernet device drivers are installed
3.The above two steps is for installing the drivers but whenever you restart the machine you are required to enter bash$depmod to work the device, To avoid this open
bash$cd /etc/modprobe.d
bash$sudo vi aliases
In this aliases file type down "alias eth0 atl1"
Now open
bash$cd /etc/network/
bash$sudo vi interfaces
in the file type down
auto eth0
iface eth0 inet dhcp
(use either eth0 or eth1)
and now in the bash prompt
bash$sudo dhclient eth0
Thats it your ethernet device is ready and you can use internet,ftp, ssh e.t.c enjoy and have fun with the commands and devices.
No comments:
Post a Comment