Skip to content

Pre Installation Requirements

Angel Pappas edited this page Sep 16, 2015 · 5 revisions

Format the SD card

  • Download the latest Rasbian OS from https://www.raspberrypi.org/downloads/raspbian/.
  • Unzip the package: unzip 2015-05-05-wheezy-raspbian.zip
  • Copy the contents to the SD card: dd bs=1M if=2015-05-05-wheezy-raspbian.img of=/dev/sdb, where /dev/sdb is the path to the SD card.
  • Insert the card to the raspberry and connect the power.

Initial OS configuration

After the first boot, the raspi-config will be executed. Choose:

  • expand_rootfs
  • change_pass
  • Internationalization Options (change_locale=en_US,el_GR, timezone, keybord)
  • Advanced Options (memory_split=64)
  • disable ssh
  • enable login to startx
  • select audio to jack
  • update
  • finish The system will reboot.

Install software

Run the following commands in order to install the desired pagakges:

  • sudo apt-get update
  • sudo apt-get -y install qrencode mpg321
  • sudo apt-get -y install apache2 mysql-server mysql-client libapache2-mod-auth-mysql php5-cli php5-mysql php5 libapache2-mod-php5
  • sudo a2enmod auth_mysql

In the above commands, when mysql is installed, it will ask for a password. In this tutorial we use raspberry.

Firewall installation and configuration

Install the firewall package:

  • sudo apt-get -y install ufw

Allow only the port 80:

  • sudo ufw logging on
  • sudo ufw default deny
  • sudo ufw allow 80/tcp
  • sudo ufw enable
  • sudo ufw status