After more than one year with my NAS build over an ALIX, I bought a Raspberry pi 2 and I want to check if the “USB POWER BUG” is resolved now.
I don’t need an high speed NAS so the speed issue with the shared PCI link between USB hub and network adapter is not so important.
Advantages of a Raspberry pi 2 setup are:
- Less power consumption: raspberry drain half the power of an Alix card
- Flexibility: 4 USB ports instead of 2
- Smaller: Raspberry Pi 2 is smaller than Alix board
So this is a copy&paste from my previous post, adapted for the new environment
Install Raspbian lite
Go to Raspbian download page and download the lite version
Install VIM
Add new user
Add user to sudo
Install NTFS-3G
Fstab and volumes
1 2 3 4 5 6 7 | UUID=206606FF6606D606 /mnt/MUSIC ntfs-3g rw,defaults 0 0
UUID=03c90579-88f0-4478-ae8d-adc64972a07d /mnt/TimeMachine ext4 defaults 0 0
|
Samba
1 2 3 4 5 6 7 8 9 10 11 12 | [mnt]
path = /mnt
read only = Yes
guest only = Yes
guest ok = Yes
[mnt_RW]
path = /mnt
read only = No
valid user = sarbyn
browseable = yes
writable = yes
|
SSH
1 2 3 4 5 6 | $ mkdir . ssh
$ chmod 0700 . ssh /
$ cd . ssh
$ ls
$ vim authorized_keys
$ chmod 600 authorized_keys
|
Disable root login and plaintext login in /etc/ssh/sshd_config file
Transmission
FIX cracklib config
I don’t know if it is required with new Jessie debian version…but I’ve repeated it
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | Before
root@voyage: /var/cache/cracklib
-rw-r--r-- 1 root root 1024 Oct 4 13:28 cracklib_dict.hwm
-rw-r--r-- 1 root root 16 Oct 4 13:28 cracklib_dict. pwd
-rw-r--r-- 1 root root 16 Oct 4 13:28 cracklib_dict.pwi
-rw-r--r-- 1 root root 65 Oct 4 13:17 src-dicts
AFTER
root@voyage: /var/cache/cracklib
-rw-r--r-- 1 root root 1024 Oct 7 22:46 cracklib_dict.hwm
-rw-r--r-- 1 root root 412696 Oct 7 22:46 cracklib_dict. pwd
-rw-r--r-- 1 root root 22968 Oct 7 22:46 cracklib_dict.pwi
-rw-r--r-- 1 root root 65 Oct 4 13:17 src-dicts
|
Netatalk
*DON’T USE NETATALK FROM DEBIAN REPOS*
The older version of netatalk are VERY…VERY unstable. Download the sources from Netatalk site and follow —> this tutorial <—
Edit “/usr/local/etc/afp.conf”.
1 2 3 4 5 6 7 8 9 10 11 | [Global]
; Global server settings
uam list = uams_dhx.so,uams_dhx2.so
set password = yes
[MusicAFP]
path = /mnt/MUSIC
[TimeMachineAFP]
path = /mnt/TimeMachine
time machine = yes
|
Add user to Netatalk (using the SHORT password)
FIX BOOT
The NTFS volume does not mount at boot, so add some lines on /etc/rc.local
1 2 3 4 5 6 7 8 | service transmission-daemon stop
mount -a
swapon /mnt/MUSIC/swapfile
service transmission-daemon start
|
NOIP client
Install RPI monitor
Rpi monitor is a small web application that shows usage statistics of a raspberry pi board. Install rpi monitor following this link
Configure /etc/rpimonitor/storage.conf in order to setup storage monitoring and edit the /etc/rpimonitor/data.conf in order to include the storage.conf entry.
Optional – MiniDLNA support
If you need miniDLNA support follow this link
Final step – do a MicroSD backup
Now is all setted up but it’s better to do a MicroSD backup using dd
Like this:
Like Loading...