The mighty little Intel NUC and Linux!
One of my recent projects has been to setup Linux on an Intel NUC. I think what I love the most about the NUC is it's size and it's full Intel processor. I have been playing with a lot of Raspberry Pi projects that have an ARM processor base, but really wanted the full power of a normal machine in a very small package. This is exactly what you get with the NUC. I use the NUC as both a desktop and also a test web server.

While not too difficult a task to setup, doing so is not without some challenges. So I am documenting it in hope of providing some help to others. Firstly, note that I will be utilizing Linux Xubuntu to setup the system as I don't use Windows. If you are using Windows, this may only be helpful to understand something of the process. Secondly, I am installing Xubuntu on the NUC, as it successfully recognizes the networking hardware without issue and also has a strong boot loader that does not fail on the NUC (Several other distros failed in both of these respects largely due to the lack of appropriate drivers, etc).

What you will need:

Intel Nuc (I have the NIC6i5SYH Intel Core i5)

Laptop sized hard drive (Supports 2.5 drives and M.2 Solid State Drives)
Highly recommend getting a solid state drive as the speed is significant.

Laptop memory - DDR4 SO-DIMM Ram (up to 32GB)
You can start with just a single 8GB card if you like.
EZ-Dock Drive Reader
This is technically optional, but recommend for easily being able to make adjustments on the drive without having to install the drive to your installer machine.

UNetbootin (Linux software)
Run the following command to install on Ubuntu:  
sudo apt-get install unetbootin

GParted (Linux software)
Run the following command to install on Ubuntu: 
sudo apt-get install gparted 

Keyboard and Mouse
I personally use the small wired Gear Head keyboard with a touchpad.

HDMI Monitor or VGA to HDMI adapter with VGA Monitor
The NUC outputs directly to HDMI, so you can run it straight to most modern TVs. If you don't have a monitor with HDMI inputs, you can get an adapter to convert the signal to standard VGA.

Quick Installation Guide:

  1. On you installer machine, plug in your EZ-dock driver reader and place your new drive in the drive slot.
  2. Open GParted and locate the drive (be very careful that you have the right drive, or you could damage your installer system).
  3. Create a new partition table on the drive. You will next create three types of partitions on the drive. This will make things much easier when you get to the actual Xubuntu install.
  4. Create a fat32 partition on the drive that is approximately 3 GB. This will be the location where UNetbootin will installs your initial setup image.
  5. Create a linux-swap partition of at least 1 GB. This will help with memory on the new system.
  6. Create an ext4 partition on the drive with the remaining space. This will be where your new operating system will be installed.
  7. Open UNetbootin and select the Linux Distro (again, I am using Xubuntu as it successfully recognized the networking hardware without issue). At the time of this writing, I selected Xubuntu for the distribution and 14.04 Live x64 for the version.
  8. In UNetbootin I then selected for "type" USB Drive (location of the EZ-Dock), and then in "drive" I selected the fat32 partition I just created.
  9. Click OK, and UNetbootin will download the distro iso and unpack it to the fat32 partition.
  10. When UNetbootin identifies that the process is complete. Exit the program and unmount or power off your EZ-Dock and remove the drive.
  11. Open your NUC by unscrewing the screws on the bottom of the device.
  12. Place your drive in the drive slot and put your NUC back together.
  13. Connect your power, mouse, keyboard and monitor and power on the device.
  14. The device should boot the fat32 partition and prompt you to install and then eventually prompt you with the available partitions.
  15. Reset the linux-swap partition with the tool.
  16. Reset the ext4 partition with the tool and specify it as the / mount point. Then also check the box to indicate you wish to format the partition.
  17. Follow the steps to complete the installation. At this point, you can try to reboot, but since the fat32 partition will mount again, you will only be prompted with boot options again. So a simple fix for this is to now remove the fat32 partition. 
  18. When the installation is complete, power off the device and then open the device and remove the hard drive and place it back into the EZ-Dock on your installer machine.
  19. Open GParted and remove the fat32 partition. Once you place the drive back in your NUC, you will not be prompted with the installer again, and if the install went correctly, you should be able to boot into your new system.
  20. Note: I leave the unallocated space left by the fat32 partition for future system installation space, in which I just repeat the process.  

Now enjoy your new system!!! Please post comments if you have any suggestions, shortcuts or improvements on these instructions. I would love to hear them!



Popular posts from this blog