Friday, May 12, 2017

Add Second NIC to Ubuntu Server

1) Type- dmesg | grep enp

2) Look for your network adapters, you'll see you're primary one (enp1s0) - look for the second one.  In my case in was enp2s0.

3) Type- sudo nano /etc/network/interfaces and add the following (using the name of your adapter you found in step 2)
For DHCP-
auto enp2s0
iface enp2s0 inet dhcp

For Static ip-
auto enp2s0
iface enp2s0 inet static
        address 192.168.0.3
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.1
        dns-search example.com
        dns-nameservers 8.8.8.8 4.2.2.2


Ubuntu Server Command-line black screen instead of login, Intel Graphics Media Accelerator (GMA) 3600

I bought this cool little MITXP D2500CCE, basically a tiny little Intel Atom PC with dual nics with the intention on loading Debian on it.  All I got was a black screen after the initial boot.  I loaded Ubuntu Server (16.04) and same thing.  Since I installed SSH, I SSH'd in and dug around.

It took me a near eternity to figure out the solution.  So in the interest in saving you an eternity, here's what fixed it-

Type-
sudo nano /etc/default/grub

Change-
GRUB_CMDLINE_LINUX_DEFAULT=""
to
GRUB_CMDLINE_LINUX_DEFAULT="video=LVDS-1:d"

Hit Control X, save the file.

Type-
sudo update-grub
sudo update-grub2

sudo reboot

That's it!  :)