Installing the software

From PerfectNas

Jump to: navigation, search

Preparing the installation

  1. Download ubuntu mini 9.10
  2. Download unetbootin
  3. Install ubuntu mini on a usb external storage device with unetbootin
  4. Enable boot from usb on the nas bios
  5. Boot the unit

Ubuntu installation wizard

  1. Follow installation wizard [...]
  2. Configure RAID:
    1. Creating the partitions
      1. Manually edit partition table
      2. On the first hard disk:
      3. Create the operating system partition:
        1. type: primary, size: 0.25 TB, use as: physical volume for RAID, bootable flag
      4. Create the SWAP partition:
        1. type: primary, size: 1 GB, use as: physical volume for RAID
      5. Create the data partition:
        1. type: primary, size: all available, use as: physical volume for RAID
      6. Repeat the same steps for second hard disk creating the same partitions
    2. Creating the RAID devices
      1. Configure software RAID
      2. Create MD device for the operating system partition: RAID 1, 2 devices, 0 spare devices
        1. Choose the partitions that will be included on this device: the first on the first disk and the first on the second disk
      3. Create MD device for the SWAP partition: repeat the same steps but choosing the second partition of every disk
      4. Create MD device for the data partition: repeat the same steps but choosing the third partition of every disk
    3. Specifying the mount points
      1. On the first RAID device:
        1. use as: ext3, mount point: / (root)
      2. On the second RAID device:
        1. use as: swap area
      3. On the third RAID device:
        1. use as: ext3, mount point: /mnt/data
  3. Follow installation wizard [...]
  4. Check the following modules to be installed by the installation wizard:
    1. basic ubuntu server
    2. openssh server
    3. samba file server
  5. Follow installation wizard [...]

Things to do after the installation

  1. Configure SAMBA:
    The following changes will grant full read and write permissions to all users (even guests). Use it carefully on a secure environment.
    1. Grant full permissions to the data folder
      sudo chmod -R 777 /mnt/data
    2. Edit /etc/samba/smb.conf
      1. sudo nano /etc/samba/smb.conf
      2. Changes on global section:
        [global]
        security = share
        guest account = nobody
      3. Add a new share:
        [data]
        comment = Guest access share
        path = /mnt/data
        browseable = yes
        read only = no
        guest ok = yes
    3. Restart samba daemon
      sudo /etc/init.d/samba reload
  2. Install ACPI
    This will allow to shut down the nas pressing the power button
    sudo apt-get install acpid


Personal tools
Language