Manuals, Timing, Ham Radio, Test Equipment

Help keep this site free:
(More Info)

Install useful software on Raspbian

Once your Raspberry Pi has a network connection, the fun really begins...

1. Before installing anything, always do:

apt-get update

apt-get upgrade

2. Install JOE's Editor

Joe's Editor is a Wordstar-like text editor that is probably the most convenient to use under Linux' command line interface. It has syntax highlighting and is extremely configurable.

apt-get install joe

Quick Joe's Editor command summary:

  • To save the changes and leave the editor, type Ctrl-X
  • To simply quit and lose your changes, type Ctrl-C
  • For help with most commands, type Ctrl-K then H

3. Install the Apache web server

apt-get install apache2

To verify that it is working, point the browser of your laptop or PC to the Raspberry Pi's IP address. You should see the default page /var/www/index.html

4. Install PHP

PHP is an open source web scripting language that is widely use to build dynamic webpages.

To install PHP, open terminal and type in this command.

apt-get install php5 libapache2-mod-php5 php5-mcrypt

After you answer yes to the prompt twice, PHP will install itself.

It may also be useful to add php to the directory index, to serve the relevant php index files:

joe /etc/apache2/mods-enabled/dir.conf

Add index.php to the beginning of index files. The page should now look like this:

<IfModule mod_dir.c>
          DirectoryIndex index.php index.html index.cgi index.php index.xhtml index.htm