How to Install Ghost on a Raspberry Pi Running Raspbian


Initial Setup

With a clean install of Raspbian run the following commands to download node.js:

 wget http://nodejs.org/dist/node-latest.tar.gz
 tar -xzf node-latest.tar.gz
 cd [node folder]

Use the following commands to compile and install node.js

./configure  
make  
make install

Download and Install Ghost:

wget https://ghost.org/zip/ghost-latest.zip
unzip -d ghost [Name-of-Ghost-zip].zip

Execute the following commands:

cd ghost/
sudo npm install --production
cp config.example.js config.js

Now you just need to edit the config.js file and replace the listening address and port to your Raspberry Pi's IP address in the production section. For example replace host: '127.0.0.1' with host: 'youripaddress' and port: '2368' to port: '80'.

And finally run npm start --production to start Ghost process.

Your new Ghost blog can be accessed at: http://youripaddress/ghost

Next Steps:

Keep Ghost running with PM2
Keep Ghost running in the background and on startup using PM2

Learn Ghost from the Ground Up
Head to "Ghost for Beginners" to learn everything you need to know about learning and customizing Ghost

Find the Perfect Ghost Theme
Go to our Ghost themes section of this site to browse all of your Ghost theme options in one place.