Back to blog
How to install Ghost on your Raspberry Pi
January 21, 2014 nodejs, ghost, raspberrypi
Here’s how I installed Ghost on my Raspberry Pi with a standard Raspbmc installation.
Setting it up was not so difficult, but a problem with sqlite3 installation required some additional steps.
As reported in the Ghost forums, you need the SQLite development files:
apt-get install libsqlite3-dev
Also make sure you have build-essential installed.
So installing Ghost on my Raspberry Pi (Raspbmc) required these steps:
1. Install Node.js
sudo apt-get install node
2. Install SQLite3
sudo apt-get install sqlite3
3. Install build-essential and libsqlite3-dev
sudo apt-get install build-essential
sudo apt-get install libsqlite3-dev
Note this will take a while to complete, grab a coffee!
4. Install Ghost
Install following instructions at the Ghost documentation:
curl -L https://ghost.org/zip/ghost-latest.zip -o ghost.zip
unzip -uo ghost.zip -d ghost
cd /path/to/ghost
npm install --production
npm start
To automate running I used forever as documented in the Ghost deployment guide, and it works perfectly.