Lunchbox Status Update

Recently I’ve been working a new project called ‘Lunchbox’. Basically, it is a GUI wrapper around vagrant projects so that you can use the power of vagrant and virtual machines without the learning curve. To start with, I’m targeting support for DrupalVM.

Here’s a quick status update of the project to date. It’s still not ready for prime time, but this will give you an idea of where the project is headed. If you’re a bleeding-edge kind of person or would like to contribute, head over to the Lunchbox project page and submit some PRs!

Notes on Raspberry Pi, LEMP, and CloudFlare

I spent the majority of the weekend converting and streamlining my hosting setup. The end result was a lot of learning and information – way to much to write up a step-by-step manual. However, I do want to share some notes and resources I found along the way.

The upshot – this site now runs off a Raspberry Pi!

Hardware

  • Raspberry Pi 2
  • PNY Class 10 micro SD card

Basic Setup

Good initial checklist: https://gist.github.com/hlung/bf32568366bb7c0ca86e

‘Diet Raspbian’: Create base micro-SD with image from http://files.midwesternmac.com/#raspberry-pi-images

Fix keygen issues: https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=11935

Run raspi-config:

  • sudo raspi-config
  • expand filesystem
  • change hostname (advanced)

Configure a static IP: http://www.techsneeze.com/configuring-static-ip-raspberry-pi-running-raspbian

Set up ssh key login, disable password login:http://raspberrypi.stackexchange.com/questions/1686/how-do-i-set-up-ssh-keys-to-log-into-my-rpi

Make sure it’s all up to date:

LEMP Setup

Why LEMP?

Loosely followed: https://www.vultr.com/docs/setup-up-nginx-php-fpm-and-mariadb-on-debian-8

Nginx

In nginx.conf:

Did not enter client_max_body_size 12m; Default of 1m will be good for now.

You can check file with:

You probably want to make this adjustment:

http://charles.lescampeurs.org/2008/11/14/fix-nginx-increase-server_names_hash_bucket_size

https://gist.github.com/LeCoupa/e29a457841dc4dd60006

PHP-FPM

Turn off fopen

In php.ini:

 

Also helpful: http://chriskief.com/2014/05/07/nginx-php5-fpm-and-permission-denied-errors/

MariaDB

In my.conf:

WordPress

https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-nginx-on-centos-6–2

CloudFlare

https://techjourney.net/update-cloudflare-as-dynamic-dns-ddns/

Mentions: https://github.com/ScottHelme/CloudFlareDDNS