Raspberry Pi IPv6 firewall tester installation

From timswiki
Revision as of 21:26, 13 September 2012 by Wikiadmin (talk | contribs)
Jump to navigation Jump to search

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.

  1. 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:

 ; 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

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.