Quantcast
Channel: PirateBox Forum - Raspberry Pi(rate)Box
Viewing all articles
Browse latest Browse all 1863

Re: Pi(rate) box on Pi2B

$
0
0
Ok, im trying to get the image file created as a smaller file as its currently built on a 16G drive. Until then here are the installation instructions to roll your own.

This assumes that you have a supported WIFI card that supports AP Mode and a connection from your RPi2 to the internet.


Initial Raspberry Pi Setup

1) Enter the command sudo rasps-config to configure the system.

Language: HTML
pi@raspberrypi:~$ sudo raspi-config


2) Choose the following options
Language: HTML
1) Expand Filesystem 2) (optional) At this point you may also want to choose option 2 Change User Password, 3) Internationalization Options, choose your settings as UTF-8 8) Advance Options, A4 SSH (Enable)

Finish and allow the system to reboot,


Install Dependencies

Language: HTML
sudo apt-get update sudo apt-get -y install lighttpd sudo /etc/init.d/lighttpd stop sudo update-rc.d lighttpd remove sudo apt-get -y install dnsmasq sudo /etc/init.d/dnsmasq stop sudo update-rc.d dnsmasq remove sudo apt-get -y install hostapd sudo /etc/init.d/hostapd stop sudo update-rc.d hostapd remove sudo apt-get -y install iw sudo rm /bin/sh sudo ln /bin/bash /bin/sh sudo chmod a+rw /bin/sh


Install PirateBox

Language: HTML
wget http://downloads.piratebox.de/piratebox-ws_current.tar.gz tar xzf piratebox-ws_current.tar.gz cd piratebox sudo mkdir -p /opt sudo cp -rv piratebox /opt cd /opt/piratebox sudo sed 's:DROOPY_USE_USER="no":DROOPY_USE_USER="yes":' -i /opt/piratebox/conf/piratebox.conf sudo ln -s /opt/piratebox/init.d/piratebox /etc/init.d/piratebox sudo update-rc.d piratebox defaults sudo /etc/init.d/piratebox start


Get Imageboard

Language: HTML
sudo /opt/piratebox/bin/install_piratebox.sh /opt/piratebox/conf/piratebox.conf imageboard

Edit the config.pl file with vi, and edit the ADMIN_PASS and SECRET. Remove the # from the start of the line

Language: HTML
sudo vi /opt/piratebox/www/board/config.pl


# System config
# use constant ADMIN_PASS => ‘CHANGEME’; # Admin password. For fucks's sake, change this.
# use constant SECRET => ‘CHANGEME’; # Cryptographic secret. CHANGE THIS to something totally random, and long.

Activate Timesave Functionality
Language: HTML
sudo /opt/piratebox/bin/timesave.sh /opt/piratebox/conf/piratebox.conf install

Install Minidlna
Language: HTML
sudo apt-get install minidlna sudo cp /etc/minidlna.conf /etc/minidlna.conf.bkp sudo cp /opt/piratebox/src/linux.example.minidlna.conf /etc/minidlna.conf sudo update-rc.d minidlna defaults sudo service minidlna start

Edit Network Configuration
Language: HTML
sudo nano /etc/network/interfaces

(delete the contents of the file and paste in the following)

Language: HTML
auto lo   iface lo inet loopback iface eth0 inet dhcp   iface wlan0 inet manual ### disalbed for PirateBox #allow-hotplug wlan0 #wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf #iface default inet dhcp

(save and exit by pressing [Control]+x then press [Enter] to update the config file.

Reboot

Language: HTML
sudo reboot

Finally when you logon to the PirateBox, click on Forum and then click on Kareha.pl to activate.

Viewing all articles
Browse latest Browse all 1863

Trending Articles