User Tools

Site Tools


lighttpd_imageboard

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
lighttpd_imageboard [2015/12/09 22:47]
matthias removed
— (current)
Line 1: Line 1:
-====== Piratebox with an imageboard ====== 
-A lot people requesting an board installed on the piratebox-router. I reused my experiences from the lighttpd conecpt an created severall scripts for installing an imageboard on it. 
- 
-Currently, it is developed on a debian system. For using it on a router, you may have to change a few things (I don't have a Buffalo for testing ​ :-( ). 
-These days I actually found the following things, I couldn'​t figure out completly 
-  - other UserID for lighttpd than used on debian. 
-  - Differences in the lighttpd config. 
- 
-It's based on the [[http://​wakaba.c3.cx/​s/​web/​wakaba_kareha|Kareha Board]]. 
- 
-{{ :​pb_imageboard:​piratebox_imageboard_1.png?​direct&​300 |}}{{ :​pb_imageboard:​piratebox_imageboard_2.png?​direct&​300 |}} 
- 
- 
-===== Prerequisite ===== 
-You need the following packages installed on your system: 
-  * Perl 
-  * lighttpd ​ ( remove it from default runlevel ​ i.e. # update-rc.d lighttpd disable default ) 
-  * hostapn ​  ( remove it from default runlevel ) 
-  * dnsmasq ​  ( remove it from default runlevel ) 
- 
-**Python not needed anymore!** 
- 
-===== Installation ===== 
-You have to do the following steps for installing it on your laptop: 
- 
-    * Download a this package: {{:​pb_imageboard:​piratebox-imageboard-v02.tar.gz|}} ​  and unzip it in /tmp or /root <​code>​tar xzf piratebox-imageboard-v02.tar.gz</​code>​ 
-    * Copy over the piratebox folder into /opt/ (as root) <​code>​ # sudo mkdir /opt  
-      # sudo cp -rv piratebox /opt </​code>​ 
-    * Create a Symlink for init.d <​code>​ # sudo ln -s /​opt/​piratebox/​init.d/​piratebox </​code>​ 
-    * **(Optional)** Add piratebox to you runlevel <​code>​sudo ​ update-rc.d piratebox defaults</​code>​ 
-    * Create a link from your share-device to /​opt/​piratebox/​share <​code>​ # sudo ln -s /​mnt/​usbstick /​opt/​piratebox/​share</​code>​ 
-    * Define your personall options in <​code>#​ /​opt/​piratebox/​conf/​piratebox.conf ​       # Start which services, IPs etc 
-# /​opt/​piratebox/​conf/​hostapd.conf ​      # Some stuff about beeing an APN  
-</​code>​ 
-    *  Now please mount your usb-stick, share drive .. If you an USB-Stick with FAT32, you have to change /etc/fstab and add the following line:<​code></​dev/​usbdrive>​ /mnt/share vfat rw,​noatime,​user,​umask=0 0 0</​code>​ If you use the package on a router, you can use the following mount command <​code>​mount -o rw,​noatime,​umask=0 ​ </​dev/​usbdrive>​ /mnt/share </​code>​ 
-    *  Run the follow script <​code>#​ /​opt/​piratebox/​bin/​install_piratebox.sh /​opt/​piratebox/​conf/​piratebox.conf part2    </​code>​ 
-    *  If you want to install kareha, please do the following steps: 
-        * Download the Kareha imageboard from this [[http://​wakaba.c3.cx/​releases/​kareha_3.1.4.zip|Kareha_3.1.4]] 
-        * Unzip it and copy the content into /​opt/​piratebox/​share/​board 
-        * Then you can run <​code>​ # /​opt/​piratebox/​bin/​install_piratebox.sh /​opt/​piratebox/​conf/​piratebox.conf imageboard</​code>​ 
-        * This step installs a basic configuration for the board... ​ 
-        * Edit /​opt/​piratebox/​share/​board/​config.pl and change ADMIN_PASS and SECRET 
- 
-===== The Configuration ===== 
-I created 
-  * /​opt/​piratebox/​bin ​   - Binarys and Scripts 
-  * /​opt/​piratebox/​conf ​  - Piratebox related configs (seperated from the normal system-configs!) 
-  * /​opt/​piratebox/​share ​ - Mountpoint (with the first start of piratebox, the correct permissions will be set) 
-  * /​opt/​piratebox/​share/​unsorted ​  ​- ​ Unsorted upload folder 
-  * /​opt/​piratebox/​share/​board ​     -  imageboard location 
-  * /​opt/​piratebox/​share/​tmp ​   - Temp Upload-folder for lighttpd 
-  * /​opt/​piratebox/​init.d - the init-script (later more?) 
-  * /​opt/​piratebox/​www ​   - Webfolder with cgi-scripts and static html pages 
-  * /​opt/​piratebox/​tmp ​   - Folder with the error-log 
- 
- 
-===== Basic board configuration ==== 
-I'm publishing a basic kareha configuration with this package. I predefined the following points: 
-  * Title 
-  * Path to image 
-  * Title-Text 
-  * Path to favicon 
-  * Limitation for uploads is 10MB 
-  * Unknow Filetypes are possible to upload with renaming into .unknown 
-  * Disable reconvert of images to smaller ones (router don't have much power) 
-  * Enabled severall filetypes 
- 
-===== Needed Perl Packages for routers ===== 
-For using this package on a router, you need the following perl packages: 
- 
-  * perl 
-  * perlbase-base ​ 
-  * perlbase-bytes 
-  * perlbase-cgi ​ 
-  * perlbase-config 
-  * perlbase-data ​ 
-  * perlbase-db-file 
-  * perlbase-digest 
-  * perlbase-encode 
-  * perlbase-encoding 
-  * perlbase-essential 
-  * perlbase-fcntl 
-  * perlbase-file 
-  * perlbase-gdbm-file 
-  * perlbase-integer 
-  * perlbase-socket 
-  * perlbase-unicode 
-  * perlbase-utf8 
-  * perlbase-xsloader 
- 
-and the following system packages: 
- 
-  * dnsmasq 
-  * hostadp 
-  * lighttpd ​ 
-  * lighttpd-mod-accesslog ​ (only needed for debugging issues) 
-  * lighttpd-mod-cgi ​ 
-  * lighttpd-mod-compress ​ 
-  * lighttpd-mod-redirect ​ 
-  * lighttpd-mod-rewrite ​ 
- 
-**And NO Python!** 
-