Raspberry Pi IPv6 firewall tester installation
Before you begin please read the excellent Arch Linux Beginners' Guide.
Fetch the Arch Linux download from RaspberryPi Downloads
If using win32 disk imager then please be aware that the image file needs to be extracted onto a local physical drive (e.g. C: ) rather than a network/remote drive.
Please spend time browsing the Arch Linux Beginners Guide.
Having logged in as root, then make sure you change the default password:
Then add a user: (follow the prompts)
Then update your system:
# pacman -Syu
Which is likely to update pacman itself – just follow the prompts and once this is complete then re-attempt the complete upgrade:
# pacman -Syu :: Synchronizing package databases... core is up to date extra is up to date community is up to date alarm is up to date aur is up to date :: Starting full system upgrade... resolving dependencies... looking for inter-conflicts... Proceed with installation? [Y/n] :: Retrieving packages from core...
Then install LAMP by following the excellent Arch Linux LAMP guide.
# pacman -S apache php php-apache mysql # rc.d start mysqld
Don't forget to add a MySQL password:
# mysqladmin -u root password ‘password’ # mysql -u root -p
Then Edit /etc/rc.conf (to start MySQL at boot):
DAEMONS=(... mysqld ...)
Read and follow the Apache section - one word of warning - I suggest you adjust the default DocumentRoot directory by inserting an additional directory (e.g. htdocs) under /srv/http
Having followed the php installation guide then you'll also need to update php's basedir to match Apache:
open_basedir = /srv/http/htdocs:/home/:/tmp/:/usr/share/pear/
And also define the timezone:
[Date] ; Defines the default timezone used by the date functions ; http://php.net/date.timezone date.timezone = "Europe/London"
Once Apache and PHP start successfully:
# rc.d start httpd
then edit /etc/rc.conf (to start Apache at boot):
DAEMONS=(... httpd ...)
Then install the basic development tools (provides gcc, etc.)
# pacman -S base-devel
And perl and the associated MySQL interface modules:
# pacman -S perl-dbi perl-dbd-mysql
You may also wish to include spoken sound support:
# pacman -S festival festival-english alsa-utils
And update your festivalrc file:
# cat /root/.festivalrc (Parameter.set 'Audio_Command "/usr/bin/aplay -R1000 -q -c 1 -t raw -f s16 -r $SR $FILE") (Parameter.set 'Audio_Method 'Audio_Command)
And add a sound.conf file under /etc/modules-load.d to ensure the Broadcom sound module is loaded at boot. The file needs to contain a single statement shown below:
# cat /etc/modules-load.d/sound.conf
Complete details coming soon ...
Needs to include:
- installing ipscan
- locking down ssh
- cron jobs
- php landing page example