Piratebox on a cloud VM gives you a really quick setup to see what you get out of the box. We strip away the networking stack that it offers, and run the web frontend.
First of all we need a basic Debian 7.x VM. I've opted for Digital Ocean because it's cheap and simple to use, other providers are available.
Once the VM is built (60 seconds) we log in and ensure the package lists are up to date:
apt-get update
Then we install and disable lighttpd
apt-get -y install lighttpd
/etc/init.d/lighttpd stop
update-rc.d lighttpd remove
We leave all of the network configuration alone, and download the piratebox package
wget http://downloads.piratebox.de/piratebox-ws_current.tar.gz
tar xzvf piratebox-ws_current.tar.gz
mkdir -p /opt
cp -rv piratebox/piratebox /opt
cd /opt/piratebox
sed 's:DROOPY_USE_USER="no":DROOPY_USE_USER="yes":;s:DO_IFCONFIG="yes":DO_IFCONFIG="no":;s:USE_APN="yes":USE_APN="no":;s:USE_DNSMASQ="yes":USE_DNS_MASQ="no":' -i /opt/piratebox/conf/piratebox.conf
update-rc.d piratebox defaults
ln -s /opt/piratebox/init.d/piratebox /etc/init.d/piratebox
Before starting it all up, let's install the image board
/opt/piratebox/bin/install_piratebox.sh /opt/piratebox/conf/piratebox.conf imageboard
/etc/init.d/piratebox start
Finally, there's one remaining step on your local machine to enable uploads. The piratebox assumes it uses the hostname piratebox.lan
. Because this won't be a valid hostname, we need to add it to our laptop's /etc/hosts file.
echo 172.16.30.101 piratebox.lan > sudo tee -a /etc/hosts
substituting the ip address for your actual VM's ip address.
https://www.digitalocean.com/?refcode=47f1f5a2a193 (referral)