xuv's notebook

Side notes, howtos and random bits of information related to Julien Deswaef's projects

User Tools

Site Tools


arch:arch_on_the_pi

This is an old revision of the document!


Arch on a Pi

Installing Archlinux on a Raspberry Pi and turn it into a server

http://archlinuxarm.org/platforms/armv6/raspberry-pi

Installing server

As root

pacman -Syu nginx php-fpm

Start and enable nginx and php-fpm

systemctl start nginx 
systemctl start php-fpm
systemctl enable nginx
systemctl enable php-fpm

Check if it is serving the default pages, but it should be.

Change /etc/nginx/nginx.conf

user http;

server {
        listen       80;
        
        # watch out for the root location here, must be accessible from the user http
	root /srv/http; 

        location / {
            # add index.php to this line
            index  index.html index.htm index.php;
        }

        # pass the PHP scripts to FastCGI server listening on php-fpm.sock
        location ~ \.php$ {
            fastcgi_pass   unix:/run/php-fpm/php-fpm.sock; 
            fastcgi_index  index.php;
            include        fastcgi.conf;
        }

Installing ikiwiki

  • Install Git
  • Install Make
  • <code=bash>$: cpan</code>
  • Use Pacman with this Aur package
arch/arch_on_the_pi.1451587681.txt.gz · Last modified: 2015/12/31 19:48 by Julien Deswaef