Installing the software
From PerfectNas
Preparing the installation
- Download ubuntu mini 9.10
- Download unetbootin
- Install ubuntu mini on a usb external storage device with unetbootin
- Enable boot from usb on the nas bios
- Boot the unit
Ubuntu installation wizard
- Follow installation wizard [...]
- Configure RAID:
- Creating the partitions
- Manually edit partition table
- On the first hard disk:
- Create the operating system partition:
- type: primary, size: 0.25 TB, use as: physical volume for RAID, bootable flag
- Create the SWAP partition:
- type: primary, size: 1 GB, use as: physical volume for RAID
- Create the data partition:
- type: primary, size: all available, use as: physical volume for RAID
- Repeat the same steps for second hard disk creating the same partitions
- Creating the RAID devices
- Configure software RAID
- Create MD device for the operating system partition: RAID 1, 2 devices, 0 spare devices
- Choose the partitions that will be included on this device: the first on the first disk and the first on the second disk
- Create MD device for the SWAP partition: repeat the same steps but choosing the second partition of every disk
- Create MD device for the data partition: repeat the same steps but choosing the third partition of every disk
- Specifying the mount points
- On the first RAID device:
- use as: ext3, mount point: / (root)
- On the second RAID device:
- use as: swap area
- On the third RAID device:
- use as: ext3, mount point: /mnt/data
- On the first RAID device:
- Creating the partitions
- Follow installation wizard [...]
- Check the following modules to be installed by the installation wizard:
- basic ubuntu server
- openssh server
- samba file server
- Follow installation wizard [...]
Things to do after the installation
- Configure SAMBA:
- The following changes will grant full read and write permissions to all users (even guests). Use it carefully on a secure environment.
- Grant full permissions to the data folder
sudo chmod -R 777 /mnt/data
- Edit /etc/samba/smb.conf
sudo nano /etc/samba/smb.conf
- Changes on global section:
- [global]
- security = share
- guest account = nobody
- Add a new share:
- [data]
- comment = Guest access share
- path = /mnt/data
- browseable = yes
- read only = no
- guest ok = yes
- Restart samba daemon
sudo /etc/init.d/samba reload
- Install ACPI
- This will allow to shut down the nas pressing the power button
sudo apt-get install acpid

