[Urgent]How to change PirateBox Shared Folder to USB by default May 12, 2014 11:47AM |
Registered: 10 years ago Posts: 42 |
pi@raspberrypi ~ $ ls -lh /opt/piratebox/share/Shared/ total 124K -rw------- 1 nobody nogroup 120K May 12 09:44 07.png drwxrwxrwx 3 root root 4.0K May 12 09:24 Apps
pi@raspberrypi ~ $ ls -lh /media/usb0/ total 16K drwxr-xr-x 2 root root 16K May 12 10:44 Shared
Re: [Urgent]How to change PirateBox Shared Folder to USB by default May 12, 2014 08:21PM |
Admin Registered: 13 years ago Posts: 4,680 |
/opt/piratebox/bin/install_piratebox.sh /opt/piratebox/conf/piratebox.conf part2that should initialize the folders to the correct permissions.
mount ls -l /opt/piratebox/ ls -l /opt/piratebox/share ls -l /opt/piratebox/www grep DROOPY /opt/piratebox/conf/piratebox.conf grep FOLDER /opt/piratebox/conf/piratebox.conf grep LIGHTTPD /opt/piratebox/conf/piratebox.conf
Re: [Urgent]How to change PirateBox Shared Folder to USB by default May 13, 2014 04:39AM |
Registered: 10 years ago Posts: 42 |
sudo apt-get install usbmount
sudo ln -s /opt/piratebox/share/Shared /media/usb0/Sharedbut still I am not getting the expected result and my droopy server fails for file uploading.
SHARE_FOLDER="$PIRATEBOX_FOLDER/sharechanged it to
SHARE_FOLDER="/media/usb0/share/Shared"still I was not able to achieve the expected result and droopy file uploading failed
pi@raspberrypi ~ $ mount /dev/root on / type ext4 (rw,noatime,data=ordered) devtmpfs on /dev type devtmpfs (rw,relatime,size=215824k,nr_inodes=53956,mode=755) tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=44820k,mode=755) tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) /dev/sda1 on /media/usb0 type vfat (rw,nodev,noexec,noatime,nodiratime,sync,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro) tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=89620k) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620) /dev/mmcblk0p5 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
pi@raspberrypi ~ $ ls -l /opt/piratebox/ total 36 drwxr-xr-x 3 root root 4096 May 12 07:18 bin drwxr-xr-x 3 root root 4096 May 12 07:19 conf drwxr-xr-x 2 root root 4096 May 12 07:18 init.d drwxr-xr-x 2 root root 4096 May 12 07:20 python_lib drwxr-xr-x 5 nobody nogroup 4096 May 12 07:19 share drwxr-xr-x 2 root root 4096 May 12 07:18 src drwxr-xr-x 2 nobody nogroup 4096 May 12 13:17 tmp -rw-r--r-- 1 root root 18 May 12 07:18 version drwxr-xr-x 4 nobody nogroup 4096 May 12 09:10 www
pi@raspberrypi ~ $ ls -l /opt/piratebox/share total 20 drwxr-xr-x 2 nobody nogroup 4096 May 12 07:19 board -rwxr-xr-x 1 root root 4318 May 12 07:19 index.html drwxrwxrwx 5 nobody nogroup 4096 May 12 11:10 Shared drwxr-xr-x 2 nobody nogroup 4096 May 12 07:19 tmp
pi@raspberrypi ~ $ ls -l /opt/piratebox/www total 208 -rw-r--r-- 1 root root 1236 May 12 09:07 AppAddaIcon.png -rw-r--r-- 1 root root 23186 May 12 09:08 Appadda.png lrwxrwxrwx 1 root root 26 May 12 07:19 board -> /opt/piratebox/share/board drwxr-xr-x 2 nobody nogroup 4096 May 12 07:19 cgi-bin -rw-r--r-- 1 nobody nogroup 637 May 12 13:17 chat_content.html -rwxr-xr-x 1 nobody nogroup 1518 May 12 07:18 chat.html -rwxr-xr-x 1 root root 0 May 12 09:10 CheckCoupon.html -rwxr-xr-x 1 nobody nogroup 1406 May 12 07:18 favicon.ico -rwxr-xr-x 1 nobody nogroup 172 May 12 07:18 forum.html -rw-r--r-- 1 root root 4886 May 12 09:07 index.html -rw-r--r-- 1 nobody nogroup 94840 May 12 07:18 jquery.min.js drwxr-xr-x 3 nobody nogroup 4096 May 12 07:18 library -rw-r--r-- 1 nobody nogroup 15 May 12 07:18 ncsi.txt -rwxr-xr-x 1 nobody nogroup 16453 May 12 07:18 piratebox-logo.png -rwxr-xr-x 1 nobody nogroup 12637 May 12 07:18 piratebox-logo-small.png -rwxr-xr-x 1 nobody nogroup 200 May 12 09:25 redirect.html lrwxrwxrwx 1 root root 27 May 12 07:19 Shared -> /opt/piratebox/share/Shared -rw-r--r-- 1 root root 122 May 12 13:38 station_cnt.txt -rwxr-xr-x 1 nobody nogroup 298 May 12 07:18 style.css
pi@raspberrypi ~ $ grep DROOPY /opt/piratebox/conf/piratebox.conf DROOPY_ENABLED="yes" DROOPY_TXT="" DROOPY_PORT="8080" DROOPY_USERDIR="" #DROOPY_USERDIR=" -u True " DROOPY_USE_USER="yes"
pi@raspberrypi ~ $ grep FOLDER /opt/piratebox/conf/piratebox.conf PIRATEBOX_FOLDER="/opt/piratebox" WWW_FOLDER="/opt/piratebox/www" PIRATEBOX_PYTHONPATH="$PIRATEBOX_FOLDER/python_lib" #SHARE_FOLDER="/media/usb0/share/Shared" SHARE_FOLDER="$PIRATEBOX_FOLDER/share" # UPLOADFOLDER="$SHARE_FOLDER/Upload" UPLOADFOLDER="$SHARE_FOLDER/Shared" . $PIRATEBOX_FOLDER/conf/ipv6.conf IMAGE="$PIRATEBOX_FOLDER/src/$IMAGENAME" CHATFILE="$WWW_FOLDER/cgi-bin/data.pso" GEN_CHATFILE="$WWW_FOLDER/chat_content.html" . $PIRATEBOX_FOLDER/conf/hook_custom.conf
pi@raspberrypi ~ $ grep LIGHTTPD /opt/piratebox/conf/piratebox.conf LIGHTTPD_USER=nobody LIGHTTPD_GROUP=nogroup
Re: [Urgent]How to change PirateBox Shared Folder to USB by default May 13, 2014 10:46AM |
Registered: 10 years ago Posts: 42 |
Re: [Urgent]How to change PirateBox Shared Folder to USB by default May 13, 2014 01:59PM |
Admin Registered: 13 years ago Posts: 4,680 |
Re: [Urgent]How to change PirateBox Shared Folder to USB by default on Raspberry Pi June 20, 2014 10:54AM |
Re: [Urgent]How to change PirateBox Shared Folder to USB by default on Raspberry Pi June 23, 2014 04:33AM |
Registered: 10 years ago Posts: 42 |
sudo ln -s /media/usb0/Shared/ /opt/piratebox/www/Shared