Wednesday, April 22, 2015

NAS Setup: linux Mint 17.1, mdadm, plex, VNC, Headless, Wake on Lan

Install OS

Unplug all Raid drives. (is a bug where ubuntu and mint attempt to install grub to the first drive it finds, one of my raid drives, despite telling it to do otherwise. 

boot from live cd and then install os

Update grub so pc will boot:

by default the system had trouble booting (yup another fucking ubutu bug). to get it to boot edit grub. from the commandline:

sudo gedit /etc/default/grub
comment: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
save and exit
sudo update-grub

Install Plex:

Just install the ubuntu version found on plex site.

Install mdadm: 

sudo apt-get install mdadm
chose not to configure email if prompted
reboot

Edit fstab

get the array to mount at boot by editing fstab as root:
sudo gedit /etc/fstab

Add the following to the bottom of the file: 
UUID=yourraiddeviceuuid /mnt/yourstoragefolder ext3    defaults        0       2

the uuid can be found in the Disks app. yourstoragefolder must be created.  When creating ensure permissions for everyone are set and ensure the directory is shared.

Set Lock Settings

System settings > Screen Locker.
Dissable all forms of screen locking.

Dissable keyring unlock prompts

type "seahorse" at the terminal
Right click on the passwords > default and select Change password
enter old password and leave new ones blank
save and exit

Enable VNC

go to "Desktop Sharing"
check Allow other users to view your desktop
check Allow other users to control your desktop
under show notification are check Never

install dconf-editor
sudo apt-get install dconf-editor
in dconf-editor go to org > gnome > desktop  >remote-access
Uncheck everytihng except enabled

Add Cron Shutdown job

Set Cron to run: "shutdown -h now" as root.

Setup Mediabeaver