Network-less Ubuntu Server Install…

So, I tried to install Ubuntu Server 16.04.1 LTS while the machine was not plugged into the network, and also did not bother to connect to the WiFi network during the installation from the CD either…

Rusty from last Linux use (circa 2008), I was totally stuck thereafter – no network and no way to add anything else (through the network, because, you know, no network)… Fortunately, SSHd was selected during the installation – so all I had to do was to get the network up, then I could try and do every other thing remotely (well, that is the theory)…

2016-10-18_23-32-16

Just in case you really do not have an Internet connection (say, the Ubuntu distribution does not have your NIC drivers), you can then try any of the “offline” methods described here.

Documented, as follows, is my journey to “get unstuck” and continue the set-up…

Making the Network Work…

Google to the rescue!

Referencing sites like this and this, I figured that (fortunately) the CD installer already detected and loaded drivers for my network interface “cards” (well, to be pedantic, the WiFi is not officially a “card”, considering it is part of my motherboard).

Looking at what network interfaces the system knows about:

lshw -C network

img_20161018_221415_cropped

Knowing the network cable is plugged into my on-board Intel NIC (logical device name “eno1”), I bring the link up then sic the DHCP client on it:

ip link set dev eno1 up
dhclient eno1

img_20161018_221954_cropped

With this now working, I then need ensure it is started automatically, by editing the /etc/network/interfaces file:

auto eno1
iface eno1 inet dhcp

2016-10-18_23-29-59

Then restarting the networking service

/etc/init.d/networking stop
/etc/init.d/networking start
ifconfig

img_20161018_230157_cropped

Checking that the IPv4 network works:

ping <router address>

2016-10-18_23-34-26

So, I can now SSH into my my box!

2016/10/27 Update: As I had a motherboard that had two NICs, I decided to set up both as an aggregated link (LACP/802.13ad); further steps required are as found in the linked article.

2016/12/23 Update: Having to create a bridged network interface for the purposes of linking a KVM virtual switch, I had to make further updates to the configuration. Check out the other changes here.

 

Make It Do More…

OK, so the box is now sitting there, SSHd enabled, but basically still no X Windows, no SAMBA/SMB server… nada… So, seeing that “pretty” (pink) screen allowing me to install packages by task, I now need to get that up and running (again)…

Remembering the “tasksel” command, I tried that with the “manual” selection but got an error instead

tasksel

2016-10-19_00-09-20

Googling that got me this… So I tried checking out the packages:

grep Task /usr/share/tasksel/descs/ubuntu-tasks.desc

2016-10-19_00-08-43
However, attempting to tasksel <anything> would fail… So, I discovered that I needed to update the apt repository:

apt-get update

This is followed by a full update to all packages:

apt full-upgrade

Now, running tasksel shows me the full list (which is equivalent to what I saw on a “trial” install from CD which was updated from the Internet during installation):

2016-10-19_19-13-04

So, selecting the “Samba file server” and “Ubuntu desktop” packages, it is off to the races:

2016-10-19_19-17-07

Rebooting, I now get the full GUI (ubuntu-desktop package):

img_20161019_213611_cropped

And forwarding X11 through an SSH2 tunnel via PuTTY also works (using Xming as my X Windows server on Windows 10):

2016-10-19_21-44-05

OK, so now that I have a working (if not necessarily secured) Ubuntu server set-up that may be remotely managed, it is time to set it up properly as a RAIDZ2 file server…

The adventure continues!

Leave a Reply