Re: [SETUP] Zsun WiFi Card Reader an €10 PirateBox May 02, 2016 10:07PM |
Registered: 8 years ago Posts: 34 |
File upload works without sed, files are uploaded as root.root with mod 0755.Quote
Matthias
3. The sed for Droopy is because you are now running under a ext3 filesystem, so droopy have to run as the lighttpd user, that uploaded files work.
Quote
Matthias
6. The sed for loopback is a fix for running "/etc/init.d/piratebox stop". Without that loop1 fix, you won't unmount the opt/piratebox completely clean. Maybe there is a kernel & utility adjustment that the loopback device is automatically removed. Can you check if you
Language: HTML/opt/piratebox/init.d/piratebox_alt cd / umount /opt/piratebox ls /dev/loop*
Language: HTMLroot@piratebox:~# df Filesystem 1K-blocks Used Available Use% Mounted on rootfs 944808 99092 780504 11% / /dev/root 3328 3328 0 100% /rom tmpfs 30556 140 30416 0% /tmp /dev/sda1 944808 99092 780504 11% /overlay overlayfs:/overlay 944808 99092 780504 11% / tmpfs 512 0 512 0% /dev /dev/loop0 48550 1195 43771 3% /opt/piratebox root@piratebox:~# mount /dev/root on /rom type squashfs (ro,relatime) proc on /proc type proc (rw,noatime) sysfs on /sys type sysfs (rw,noatime) tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime) /dev/sda1 on /overlay type ext4 (rw,relatime,data=ordered) overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work) tmpfs on /dev type tmpfs (rw,relatime,size=512k,mode=755) devpts on /dev/pts type devpts (rw,relatime,mode=600) debugfs on /sys/kernel/debug type debugfs (rw,noatime) /dev/loop0 on /opt/piratebox type ext4 (rw,relatime,sync,data=ordered) root@piratebox:~# ls /dev/loop* /dev/loop-control /dev/loop1 /dev/loop3 /dev/loop5 /dev/loop7 /dev/loop0 /dev/loop2 /dev/loop4 /dev/loop6
Language: HTMLroot@piratebox:~# [b]/opt/piratebox/init.d/piratebox_alt stop[/b] Stopping script piratebox Stopping dnsmasq... 0 Stopping droopy... 0 Stopping lighttpd... 0 root@piratebox:~# df Filesystem 1K-blocks Used Available Use% Mounted on rootfs 944808 99092 780504 11% / /dev/root 3328 3328 0 100% /rom tmpfs 30556 136 30420 0% /tmp /dev/sda1 944808 99092 780504 11% /overlay overlayfs:/overlay 944808 99092 780504 11% / tmpfs 512 0 512 0% /dev /dev/loop0 48550 1194 43772 3% /opt/piratebox root@piratebox:~# mount /dev/root on /rom type squashfs (ro,relatime) proc on /proc type proc (rw,noatime) sysfs on /sys type sysfs (rw,noatime) tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime) /dev/sda1 on /overlay type ext4 (rw,relatime,data=ordered) overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work) tmpfs on /dev type tmpfs (rw,relatime,size=512k,mode=755) devpts on /dev/pts type devpts (rw,relatime,mode=600) debugfs on /sys/kernel/debug type debugfs (rw,noatime) /dev/loop0 on /opt/piratebox type ext4 (rw,relatime,sync,data=ordered) root@piratebox:~# ls /dev/loop* /dev/loop-control /dev/loop1 /dev/loop3 /dev/loop5 /dev/loop7 /dev/loop0 /dev/loop2 /dev/loop4 /dev/loop6
Language: HTMLroot@piratebox:/# [b]umount /opt/piratebox[/b] root@piratebox:/# df Filesystem 1K-blocks Used Available Use% Mounted on rootfs 944808 99092 780504 11% / /dev/root 3328 3328 0 100% /rom tmpfs 30556 136 30420 0% /tmp /dev/sda1 944808 99092 780504 11% /overlay overlayfs:/overlay 944808 99092 780504 11% / tmpfs 512 0 512 0% /dev root@piratebox:/# mount /dev/root on /rom type squashfs (ro,relatime) proc on /proc type proc (rw,noatime) sysfs on /sys type sysfs (rw,noatime) tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime) /dev/sda1 on /overlay type ext4 (rw,relatime,data=ordered) overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work) tmpfs on /dev type tmpfs (rw,relatime,size=512k,mode=755) devpts on /dev/pts type devpts (rw,relatime,mode=600) debugfs on /sys/kernel/debug type debugfs (rw,noatime) root@piratebox:/# ls /dev/loop* /dev/loop-control /dev/loop1 /dev/loop3 /dev/loop5 /dev/loop7 /dev/loop0 /dev/loop2 /dev/loop4 /dev/loop6
So, what's de difference between the ../init.s/piratebox files!?Language: HTMLroot@piratebox:/# /etc/init.d/piratebox stop Stopping script piratebox Stopping dnsmasq... 0 Stopping droopy... 0 Stopping lighttpd... 0 umount: /opt/piratebox: target is busy (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1).) umount: /opt/piratebox: not mounted /etc/init.d/piratebox: WARNING: unable to umount piratebox image losetup: /dev/loop0: detach failed: No such device or address
Re: [SETUP] Zsun WiFi Card Reader an €10 PirateBox May 03, 2016 05:24AM |
Admin Registered: 13 years ago Posts: 4,680 |
yes, because we added a chmod in droopy. But when you have a filesystem, which supports proper use of usernames, I prefer running droopy as the lighttpd user. The advantage is, that the files are owned by lighttpd and may be deleted later.Quote
File upload works without sed, files are uploaded as root.root with mod 0755.
Re: [SETUP] Zsun WiFi Card Reader an €10 PirateBox May 03, 2016 09:03AM |
Registered: 8 years ago Posts: 34 |
Language: PHProot@piratebox:~# /etc/init.d/piratebox start && /etc/init.d/piratebox stop Starting script piratebox Generating hosts file .... Generating dnsmasq.conf ..... Generating Environment-config for lighttpd ..... Empty tmp folder rm: ';/opt/piratebox/tmp'; is a directory Copy over design files Starting dnsmasq... 0 Starting droopy... 0 Generated HTML-Shoutbox File. CRITICAL: /opt/piratebox/share/Shared modified 1420 minutes ago. Threshold set to 5 minutes. Cannot update. Generated HTML-DiskUsage File. Starting lighttpd... 0 Stopping script piratebox Stopping dnsmasq... 0 Stopping droopy... 0 Stopping lighttpd... 0 umount: /opt/piratebox: target is busy (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1).) umount: /opt/piratebox: not mounted /etc/init.d/piratebox: WARNING: unable to umount piratebox image losetup: /dev/loop0: detach failed: No such device or address
Re: [SETUP] Zsun WiFi Card Reader an €10 PirateBox August 25, 2016 06:19PM |
Registered: 8 years ago Posts: 11 |
Re: [SETUP] Zsun WiFi Card Reader an €10 PirateBox October 14, 2016 10:52AM |
Registered: 7 years ago Posts: 1 |
Re: [SETUP] Zsun WiFi Card Reader an €10 PirateBox November 13, 2016 05:06PM |
Registered: 8 years ago Posts: 11 |
root@OpenWrt:~# opkg install piratebox Installing piratebox (1.1.0-4) to root... Downloading [stable.openwrt.piratebox.de]. Collected errors: * satisfy_dependencies_for: Cannot satisfy the following dependencies for piratebox: * php5-mod-sqlite * radvd * * opkg_install_cmd: Cannot install package piratebox.
Re: [SETUP] Zsun WiFi Card Reader an €10 PirateBox November 14, 2016 07:30PM |
Admin Registered: 13 years ago Posts: 4,680 |
Re: [SETUP] Zsun WiFi Card Reader an €10 PirateBox November 16, 2016 10:55PM |
Registered: 8 years ago Posts: 181 |
Re: [SETUP] Zsun WiFi Card Reader an €10 PirateBox November 17, 2016 06:16AM |
Admin Registered: 13 years ago Posts: 4,680 |
Re: [SETUP] Zsun WiFi Card Reader an €10 PirateBox November 21, 2016 04:43PM |
Registered: 8 years ago Posts: 11 |
Re: [SETUP] Zsun WiFi Card Reader an €10 PirateBox November 23, 2016 07:23PM |
Registered: 7 years ago Posts: 2 |
root@OpenWrt:~# df Filesystem 1K-blocks Used Available Use% Mounted on rootfs 486628 245519 211465 54% / /dev/root 3328 3328 0 100% /rom tmpfs 30556 84 30472 0% /tmp /dev/sda2 486628 245519 211465 54% /overlay overlayfs:/overlay 486628 245519 211465 54% / tmpfs 512 0 512 0% /dev /dev/sda1 30182400 2568032 27614368 9% /mnt/sda1
Re: [SETUP] Zsun WiFi Card Reader an €10 PirateBox November 23, 2016 07:30PM |
Registered: 8 years ago Posts: 181 |