Wired ethernet not getting detected in Ubuntu

Recently I installed Ubuntu on my Desktop. But I met with a difficulty after the installation, my ethernet card is not getting detected.

I searched the repositories and I didn’t get far with that.

Then I searched this in Ubuntu forums, and found a thread similar to my issue.

A solution mentioned there was to install compat-wireless package and enable the module in the kernel.

I downloaded the package from http://linuxwireless.org/download/ and compiled it.

sudo apt-get update
tar -xjvf compat-wireless-x.x.tar.bz2
cd compat-wireless*
scripts/driver-select atl1c
make
sudo make install
sudo modprobe atl1c

and rebooted the machine. Voila!!!!! it worked and was able to connect to the internet.

Install /dev/net/tun in a VPS

VPN support for a VPS Hosting via the TUN/TAP device is available. To allow VE #700 to use the TUN/TAP device, the following steps are required:

* Make sure the tun module has been already loaded on the hardware node:

lsmod | grep tun

If it is not there, then issue the command ‘modprobe tun’ to load it and add it into /etc/modules.conf. This module should be loaded before Virtuozzo is started, so you should run ‘service vz restart’ to make it available at runtime.

* Allow the VPS Hosting to use the tun/tap device:

vzctl set 700 –devices c:10:200:rw –save

* Create the device in the VPS Hosting:

vzctl exec 700 mkdir -p /dev/net
vzctl exec 700 mknod /dev/net/tun c 10 200

* Set proper permissions for /dev/net/tun:

vzctl exec 700 chmod 600 /dev/net/tun

You are done.