mercredi 1 février 2012

Ubuntu 11.10 server installation

Ubuntu Server 11.10 Installation :

- Created software RAID 1 during installation on the 2 SSD

https://help.ubuntu.com/community/Installation/SoftwareRAID

Note : Initially, I wanted to have ZFS on root disks as well and I followed this tutorial : https://github.com/dajhorn/pkg-zfs/wiki/HOWTO-install-Ubuntu-to-a-Native-ZFS-Root-Filesystem but for me I have an issue at step 6.2,  I don't have any .mod listed at this stage.


- Static IP + avoid resolv.conf to be overwritten by network manager with :

sudo chattr +i /etc/resolv.conf
See thread http://ubuntuforums.org/showthread.php?t=1186979

- Get ZFS support from ppa :

sudo apt-add-repository ppa:zfs-native/stable
sudo apt-get update
sudo apt-get install ubuntu-zfs
 
- Create mirrored ZFS tank (4k sectors) with the 4 HDDs (my reference : Solaris ZFS Admin Guide and http://chaossoup.wordpress.com/2012/02/01/installing-a-nas-with-zfs/)

zpool create -o ashift=12 -f tank mirror /dev/disk/by-id/disk1 /dev/disk/by-id/disk2 mirror /dev/disk/by-id/disk3 /dev/disk/by-id/disk4

zpool export tank
zpool import tank


- Automatically mount / unmount ZFS at startup / shutdown
add zfs in /etc/modules
set 'yes' in  /etc/default/zfs for ZFS_MOUNT and ZFS_UMOUNT

- Installed ubuntu-desktop : sudo apt-get install ubuntu-desktop (I know it's supposed to be a server but if it can display movies on TV or let me browse the Internet it's even better ;-))

- Enabling xdmcp and/or x11vnc on server
xdmcp : http://askubuntu.com/questions/66431/how-do-i-configure-lightdm-to-work-with-xdmcp

Note : Seems like I can't get  xdmcp working, I successfully connect, I see the login invite but impossible to log in it's like keyboard input is disabled! That's actually why I considered vnc then ...

vnc : https://help.ubuntu.com/community/VNC/Servers

- Installing Remmina on client with xdmcp plugin
remmina : sudo apt-get install remmina
xdmcp plugin : sudo apt-get install remmina-plugin-xdmcp

1 commentaire:

  1. Very informative, especially the automatic mounting/unmounting at startup/shutdown.

    Thanks!

    RépondreSupprimer