- Change hostname file.
sudo vi /etc/hostname
- Append /etc/hosts with:
127.0.0.1 [YOUR NEW HOSTNAME]
- Reboot for changes to take effect.
sudo reboot now
sudo apt-get install ddclient libjson-any-perl
I hit escape through the wizard that comes up on the console. Need to configure manually.
wget http://downloads.sourceforge.net/project/ddclient/ddclient/ddclient-3.8.3.tar.bz2
tar -jxvf ddclient-3.8.3.tar.bz2
sudo cp -f ddclient-3.8.3/ddclient /usr/sbin/ddclient
sudo mkdir /etc/ddclient
sudo mv /etc/ddclient.conf /etc/ddclient/.
sudo vi /etc/ddclient/ddclient.conf
sudo service ddclient restart
After about 10 minutes, the dynamic hostname updated. I read that it's great to also force an update once a day in the middle of the night.
sudo crontab -e
Add the following to the crontab
45 04 * * * /usr/sbin/ddclient --force
This will update the dynamic hostname daily at 4:45AM server time.
Example of setting up simple LVM striped array. No redundancy and not recommended.
After the first boot...
sudo su
apt-get install lvm2
apt-get update --fix-missing
cd /media/pi
umount 5c40181f-38e9-426a-8a0e-f311bd45f58e/
umount ADATA\ HD650
umount WD\ Unlocker
mkdir -p /mnt/usbstorage
vi /etc/fstab
chown -R pi:pi /mnt
chmod -R 775 /mnt
setfacl -Rdm g:pi:rwx /mnt
setfacl -Rm g:pi:rwx /mnt
vgcreate datavg /dev/sdb1 /dev/sda2
lvcreate -l 100%FREE datavg
mkfs.ext4 /dev/datavg/lvol0
mount /dev/datavg/lvol0 /mnt/usbstorage
cp fstab fstab.bak
echo '/dev/datavg/lvol0 /mnt/usbstorage ext4 defaults 0 2' >> /etc/fstab
Setting up smartmon tools to watch the new LVM drive. My commands are below and the full details of each change are listed here
sudo su
apt-get install smartmontools gsmartcontrol smart-notifier
smartctl -a /dev/sda -d sat
smartctl -a /dev/sdb -d sat
vi /etc/default/smartmontools
vi /etc/smartd.conf
/etc/init.d/smartmontools restart
sudo arp-scan --interface=en1 --localnet
10.76.16.5 b1:23:ec:41:29:62 Raspberry Pi Foundation
ssh pi@10.76.16.5
The default password is 'raspberry'
The instructions in this document are not actually recommended.
$> sudo /etc/init.d/ntp stop
$> sudo systemctl disable ntp
$> sudo apt-get install ntpdate
$> vi /etc/cron.hourly/synctime
#!/bin/sh
/usr/sbin/ntpdate -s 0.ca.pool.ntp.org
$> sudo chmod 755 /etc/cron.hourly/synctime
$> sudo /etc/init.d/bluetooth stop
$> sudo systemctl disable bluetooth
$> sudo /etc/init.d/avahi-daemon stop
$> sudo systemctl disable avahi-daemon
$> sudo systemctl disable avahi-daemon.socket
Full details on what to put in the config files is http://www.howtogeek.com/51819/how-to-setup-email-alerts-on-linux-using-gmail/
apt-get install ssmtp
vi /etc/ssmtp/ssmtp.conf
vi /etc/ssmtp/revaliases
I had to change a setting in my Google Account to allow less secure applications. This may or may not be a good thing and Google provides a link that describes what this change means.