I wanted to spell out the steps I took for those newbies who are already confused by being
caught in the catch-22 of how to apt-get without a working nix card, and installed the base from a usb, like me.
I share, knowing full well that there are probably more elegant or official ways to do it. But if you are new to linux, not being able to use the Ethernet card on the brand-new machine that you just bought is VERY frustrating. I followed the steps already given in this forum, they are just spelled out with a bit more detail.
Here is what I did:
Step 1. Capture all of the debs I will need. I am going to copy everything to a usb - /media/disk
Code:
sudo apt-get clean
sudo apt-get -y install dkms build-essential make linux-headers-generic linux-headers-server --reinstall
sudo apt-get -y install gcc g++ gcc-4.4 g++-4.4 xz-utils binutils liblzma1 --reinstall
sudo apt-get -y install libc6-dev libc6 libc-dev-bin linux-libc-dev dpkg-dev --reinstall
sudo apt-get -y install libgomp1 libstdc++6 libstdc++6-4.4-dev --reinstall
sudo mkdir -p /media/disk/intel
sudo cp /var/cache/apt/archives/*.deb /media/disk/intel
wget http://tenet.dl.sourceforge.net/project/e1000/e1000e%20stable/1.6.2/e1000e-1.6.2.tar.gz
cp e1000e*.gz /media/disk/intel
Step 2. Create dkms.conf. I always have trouble with double quotes, so they all now become single apostrophe.
Code:
nano /media/disk/intel/dkms.conf
Code:
PACKAGE_NAME='e1000e'
PACKAGE_VERSION='1.6.2'
CLEAN='make -C src/ clean'
MAKE='make -C src/ BUILD_KERNEL=$kernelver KERNELDIR=/lib/modules/${kernelver}/build'
BUILT_MODULE_NAME[0]='e1000e'
BUILT_MODULE_LOCATION=src/
DEST_MODULE_LOCATION[0]='/updates'
AUTOINSTALL='yes'
REMAKE_INITRD=yes
Step 3. Install utils. Now I take my usb drive to the server without a working nix.
Code:
sudo dpkg -i liblzma1*.deb xz-utils*.deb binutils*.deb dpkg-dev*.deb
sudo dpkg -i libc*.deb linux-libc*.deb libg*.deb make*.deb
sudo dpkg -i gcc*.deb g++*.deb libs*.deb build-e*.deb
sudo dpkg -i dkms*.deb linux-h*.deb
Step 4. Create the module.
Code:
sudo cp e1000e*.gz /usr/src
sudo cp dkms.conf /usr/src/e1000e-dkms.conf
cd /usr/src
sudo tar xzvf e1000e-1.6.2.tar.gz
cd e1000e-1.6.2
sudo mv ../e1000e-dkms.conf dkms.conf
sudo dkms add -m e1000e -v 1.6.2
sudo dkms build -m e1000e -v 1.6.2
sudo dkms install -m e1000e -v 1.6.2
echo "Now restart computer."
Step 5. Restart the computer.
Code:
sudo shutdown -r now
Step 6. Assign the card.
Code:
sudo ifconfig eth0 192.168.1.100
sudo ifconfig eth0 up
Yeah!! It works.
Bookmarks