Difference between revisions of "Raspberry Pi IPv6 firewall tester installation"
Line 35: | Line 35: | ||
Then install LAMP by following the excellent [https://wiki.archlinux.org/index.php/LAMP Arch Linux LAMP guide]. | Then install LAMP by following the excellent [https://wiki.archlinux.org/index.php/LAMP Arch Linux LAMP guide]. | ||
− | |||
# pacman -S apache php php-apache mysql | # pacman -S apache php php-apache mysql | ||
Line 41: | Line 40: | ||
# rc.d start mysqld | # rc.d start mysqld | ||
− | + | Don't forget to add a MySQL password: | |
# mysqladmin -u root password ‘password’ | # mysqladmin -u root password ‘password’ | ||
# mysql -u root -p | # mysql -u root -p | ||
− | |||
Then Edit /etc/rc.conf (to start MySQL at boot): | Then Edit /etc/rc.conf (to start MySQL at boot): | ||
Line 59: | Line 57: | ||
# rc.d start httpd | # rc.d start httpd | ||
+ | Then Edit /etc/rc.conf (to start Apache at boot): | ||
+ | |||
+ | DAEMONS=(... httpd ...) | ||
+ | |||
Having followed the php installation guide then you'll also need to update php's basedir to match Apache: | Having followed the php installation guide then you'll also need to update php's basedir to match Apache: | ||
Line 103: | Line 105: | ||
Complete details coming soon ... | Complete details coming soon ... | ||
+ | Needs to include: | ||
+ | * git | ||
+ | * installing ipscan | ||
+ | * locking down ssh | ||
+ | * firewall | ||
+ | * cron jobs | ||
+ | * php landing page example | ||
Revision as of 22:26, 13 September 2012
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:
# passwd
Then add a user: (follow the prompts)
# adduser
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
Customize your config. At least change httpd.conf and extra/httpd-default.conf to your liking. For security reasons, you might want to change ServerTokens Full to ServerTokens Prod and ServerSignature On to ServerSignature Off in extra/httpd-default.conf.
- rc.d start httpd
Then Edit /etc/rc.conf (to start Apache at boot):
DAEMONS=(... httpd ...)
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"
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
snd_bcm2835
Complete details coming soon ...
Needs to include:
- git
- installing ipscan
- locking down ssh
- firewall
- cron jobs
- php landing page example
This website publishes a Privacy Policy. Continued use of this website implies your consent to the storage of data outlined in the policy.
<adsense>1</adsense>