User Tools

Site Tools


concept_with_lighttpd

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
concept_with_lighttpd [2015/12/09 22:46]
matthias removed
— (current)
Line 1: Line 1:
-====== Piratebox with lighttpd ====== 
-In the version released by David Darts, he uses several python scripts acting as daemons to provide the services like upload, file-list, shoutbox. 
-Because of this, alot of simple problems shows up, i.e. like hostname-resolution problems. 
- 
-I gave lighttpd a try as a small webserver with cgi to make an all-in-one solution. You can discuss this [[http://​forum.daviddarts.com/​read.php?​2,​474|here]]. 
- 
- 
-Which things had/gave to be done: 
- 
-  * Install Lighttpd - **working** ​ 
-  * Configure CGI-Bin and one folder with direcory index. **working** ​ 
-  * Change error-pages etc. to a central error-page, which redirects to piratebox.localdomain **working** ​ 
-  * Create a droopy like upload & chat page - **working -looks exact like original but without language-switching** ​ 
-  * Chat scripts - //working in Python, should be changed into perl// 
- 
-CGI-Bin is needed for running the scripts (upload and chat). ​ 
-Directory-Listning is used for the download-section. ​ 
-Change the error-Pages is needed for the droopy-like "catch all requests"​-effect. 
- 
-You can Download the Concept-Package on this link: {{:​piratebox-lighttpd-0.1.tar.gz|}}. 
- 
-Exact instruction are included at the readme.txt. In short: 
- 
-  * Install the needed packages ( perl, lighttpd , python; if needed dnsmasq&​hostapd) 
-  * Extrakt with <​code>​tar xzf piratebox-lighttpd-0.1.tar.gz</​code>​ 
-  * copy over the extracted folder "​piratebox"​ to /opt  
-  * change /​opt/​piratebox/​conf/​piratebox.conf (deactivate dnsmasq and hostapd, if not needed) ​ 
-  * run /​opt/​piratebox/​init.d/​piratebox start 
- 
-Because lighttpd is not running with the root user, you have to change your mount option, if you use a usb-stick with FAT32: 
-<​code></​dev/​usbdrive>​ /mnt/share vfat rw,​noatime,​user,​umask=0 0 0</​code>​ 
- 
-For documentation,​ here are my permissions set to the package: 
-<​code>​ 
-matze@eeebeee:​~$ ls -la /​opt/​piratebox 
-insgesamt 48 
-drwxr-xr-x 7 root     ​root ​     4096 19. Mär 12:21 . 
-drwxr-xr-x 4 root     ​root ​     4096 18. Mär 22:04 .. 
-drwxr-xr-x 2 root     ​root ​     4096 19. Mär 10:15 bin 
-drwxr-xr-x 3 root     ​root ​     4096 18. Mär 20:54 conf 
-drwxr-xr-x 2 root     ​root ​     4096 18. Mär 20:54 init.d 
-lrwxrwxrwx 1 www-data www-data ​   17 19. Mär 12:21 share -> /​mnt/​share/​share/​ 
-drwxrwxrwx 2 www-data root     24576 19. Mär 13:00 tmp 
-drwxr-xr-x 3 www-data www-data ​ 4096 19. Mär 13:15 www 
-</​code>​ 
-<​code>​ 
-matze@eeebeee:/​opt/​piratebox/​www$ ls -l 
-insgesamt 52 
-drwxr-xr-x 2 www-data www-data ​ 4096 19. Mär 12:51 cgi-bin 
--rwxr-xr-x 1 www-data www-data ​ 1519 19. Mär 12:49 chat.html 
--rw-r--r-- 1 www-data www-data ​ 1406 18. Mär 21:46 favicon.ico 
--rw-r--r-- 1 www-data www-data ​  166 19. Mär 13:18 index.html 
--rw-r--r-- 1 www-data www-data 16453 18. Mär 21:46 piratebox-logo.png 
--rw-r--r-- 1 www-data www-data 12637 18. Mär 21:46 piratebox-logo-small.png 
-lrwxrwxrwx 1 www-data www-data ​    8 18. Mär 21:46 share -> ../share 
-</​code>​