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

Re: error with systemctl status --all piratebox

$
0
0
Hey,

please provide the output of
lsusb
and
ifconfig]

Thanks ;-)

Re: USB storage, How on current image (8/6/14)

$
0
0
You wont have to do the linking each time, however you need to mount the device at startup.
To achieve that, add an entry in the
/etc/fstab

Good Luck! ;-)

Re: Webfiles on PirateBox

$
0
0
Those are mostly plain HTML files. The Forum however runs on perl and the file upload is a small python script afaik.

BUT: I have php working on my RPi (to run h5ai), it's of course not blazingly fast and the php-cgi processes eat some RAM, but it does work good overall.

That being said, good luck with your mod! ;-)

Re: Solving the bootup issue

$
0
0
Do the startup steps manually and call
hostapd -dd /opt/piratebox/conf/hostapd.conf
? It produces some output for me at least...

Or maybe edit
 start-stop-daemon -m -S -b -p $PIDFILE_HOSTAPN  -x /usr/sbin/hostapd --  $CONF_APN
in the piratebox_alt script to something like
 /usr/sbin/hostapd  -dd $CONF_APN >> /opt/piratebox/hostapd.log

which is dirty, but we can maybe presume that hostapd is not running when that script is called and it will eventually terminate with some error, thus not blocking the rest of the script.

Good Luck!^^

Re: USB storage, How on current image (8/6/14)

$
0
0
Yep!

Added the line

/dev/sda1 /mnt/usbdrive vfat user 0 0

to /etc/fstab; pi starts up fine, and storage is automatically mounted.

Thanks!

Can't find SSID, help appreciated

$
0
0
Hi all,

So i bought the wireless USB adapter "TP-Link TL-WN823N". It's currently not on the "known as working"-list. I followed all the instructions up to step 8 and when I disconnect the power, remove the UTP-cable and restart the pi, i can't find the SSID. Perhaps someone can help me? Thanks in advance. All the info:

More info - systemctl status piratebox.service:
* piratebox.servicesystemctl.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

* status.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

* piratebox.service - PirateBox Service
   Loaded: loaded (/etc/systemd/system/piratebox.service; enabled)
   Active: active (running) since Wed 1969-12-31 17:00:15 MST; 44 years 7 months ago
  Process: 110 ExecStart=/opt/piratebox/init.d/piratebox_alt start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/piratebox.service
           |-162 /usr/sbin/dnsmasq -x /var/run/piratebox_dnsmasq.pid -C /opt/piratebox/conf/dnsmasq_generated.conf
           |-169 python /opt/piratebox/bin/droopy -H piratebox.lan -d /opt/piratebox/share/Shared -m -c 8080
           `-178 /usr/sbin/lighttpd -f /opt/piratebox/conf/lighttpd/lighttpd.conf

Dec 31 17:00:12 alarmpi dnsmasq-dhcp[162]: DHCP, IP range 192.168.77.10 -- 192.168.77.250, lease time 12h
Dec 31 17:00:12 alarmpi dnsmasq[162]: read /opt/piratebox/conf/hosts_mesh - 0 addresses
Dec 31 17:00:12 alarmpi dnsmasq[162]: read /opt/piratebox/conf/hosts_generated - 1 addresses
Dec 31 17:00:12 alarmpi piratebox_alt[110]: 0
Dec 31 17:00:12 alarmpi piratebox_alt[110]: Starting droopy...
Dec 31 17:00:12 alarmpi piratebox_alt[110]: 0
Dec 31 17:00:14 alarmpi piratebox_alt[110]: Generated HTML-Shoutbox File.
Dec 31 17:00:15 alarmpi piratebox_alt[110]: Starting lighttpd...
Dec 31 17:00:15 alarmpi piratebox_alt[110]: 0
Dec 31 17:00:15 alarmpi systemd[1]: Started PirateBox Service.

More info - lsusb:
Bus 001 Device 006: ID 090c:1000 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) Flash Drive
Bus 001 Device 004: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. SMC9512/9514 USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

More info - ifconfig (WITH UTP and WIRELESS DONGLE connected:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.2.19  netmask 255.255.255.0  broadcast 192.168.2.255
        ether b8:27:eb:3a:b3:b3  txqueuelen 1000  (Ethernet)
        RX packets 561  bytes 50356 (49.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 515  bytes 78155 (76.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 0  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.77.1  netmask 255.255.255.0  broadcast 192.168.77.255
        ether e8:94:f6:18:7c:2b  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Re: Can't find SSID, help appreciated

$
0
0
I cant find the TP-Link TL-WN823N on this list of working devices, there is a TP-Link TL-WN822N but that is a different device.

The default version of Hostapd doesn't support many realtek chipsets/drivers, but there is a modified version which might solve your problem. You find instructions to use the modified version here [forum.piratebox.cc]

Re: Can't find SSID, help appreciated

$
0
0
I guess the "TP-Link TL-WN823N" can be added to the list of working devices :D

I have set the driver to rtl871xdrv, and replaced hostapd with the one from adafruit. It worked right away.

Thanks a lot Tobias!!!

PirateBox & Real Radio!

$
0
0
Hi,

So I succeeded into combining PirateBox and a very simple RPi "hack" which sends sound into ether. A very simple antenna, connected to GPIO 4, that transmits to about 100 metres(around 330 feet). I added a page to the PirateBox webserver which shows current song played, playlist, running frequency. Anyone care about having this on their piratebox? Let me know and i'll make it available as mod.

Greetz,
m2xpow3r

Re: PirateBox & Real Radio!

$
0
0
I like the idea.
Providing a howto is always a good idea, because you never know If later is interested in that story

Matthias

Re: SSID isnt being detected

$
0
0
Hi, sorry to revive an old thread but I really don't think I need to post a new one just for this.

I have a WG111v2 wireless USB adapter and I've come to the conclusion that it does not support access points, as it does not list AP mode in the output of iw list.

 Supported interface modes:
                 * IBSS
                 * managed
                 * monitor

Some other information, just for the record:

lsusb:
Bus 001 Device 005: ID 0846:6a00 NetGear, Inc. WG111v2 54 Mbps Wireless [RealTek RTL8187L]
Bus 001 Device 007: ID 062a:4102 Creative Labs 
Bus 001 Device 006: ID 413c:2107 Dell Computer Corp. 
Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. SMC9512/9514 USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

hostapd:
Configuration file: /opt/piratebox/conf/hostapd.conf
nl80211: Could not configure driver mode
nl80211 driver initialization failed.
hostapd_free_hapd_data: Interface wlan0 wasn't started
I also tried adafruit's hostapd with the rtl871xdrv driver, no joy.

systemctl:
* piratebox.service - PirateBox Service
   Loaded: loaded (/etc/systemd/system/piratebox.service; disabled)
   Active: active (running) since Wed 1969-12-31 17:07:45 MST; 11s ago
  Process: 176 ExecStart=/opt/piratebox/init.d/piratebox_alt start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/piratebox.service
           |-204 /usr/sbin/dnsmasq -x /var/run/piratebox_dnsmasq.pid -C /opt/piratebox/conf/dnsmasq_generated.conf
           |-211 python /opt/piratebox/bin/droopy -H piratebox.lan -d /opt/piratebox/share/Shared -m  -c  8080
           `-220 /usr/sbin/lighttpd -f /opt/piratebox/conf/lighttpd/lighttpd.conf

Dec 31 17:07:43 alarmpi dnsmasq-dhcp[204]: DHCP, IP range 192.168.77.10 -- 192.168.77.250, lease time 12h
Dec 31 17:07:43 alarmpi dnsmasq[204]: read /opt/piratebox/conf/hosts_mesh - 0 addresses
Dec 31 17:07:43 alarmpi dnsmasq[204]: read /opt/piratebox/conf/hosts_generated - 1 addresses
Dec 31 17:07:43 alarmpi piratebox_alt[176]: 0
Dec 31 17:07:43 alarmpi piratebox_alt[176]: Starting droopy...
Dec 31 17:07:43 alarmpi piratebox_alt[176]: 0
Dec 31 17:07:44 alarmpi piratebox_alt[176]: Generated HTML-Shoutbox File.
Dec 31 17:07:44 alarmpi piratebox_alt[176]: Starting lighttpd...
Dec 31 17:07:44 alarmpi piratebox_alt[176]: 0
Dec 31 17:07:45 alarmpi systemd[1]: Started PirateBox Service.

In conclusion, I spent quite a while trying to fix it with no success and could maybe save people a few hours of tinkering by posting. If anyone does get it to work, I'd love to be proven wrong, but I think I might just buy a new adapter.

Re: Raspberry Pi Model B+

$
0
0
Still no new compilation image in wheezy for RPi-B +?8-)

Re: Raspberry Pi Model B+

$
0
0
No offense given, but I don't think we'll be using any debian in future releases as the overhead of all the gui stuff is far too much for our use case. I think we will stick to ArchLinux ARM for the time being, as it is lightweight and fast... Matthias, please correct me.

Did you have any luck with the current (based on ArchLinux ARM) piratebox image?

Re: Raspberry Pi Model B+

$
0
0
Ok thank you for the answer but can get you to upgrade your Arch Linux ARM image with the last drivers to make it work on the new Raspi + yet
thank you a ch'ti noobs o)

Re: Raspberry Pi Model B+

$
0
0
Now bear with me, I'm JUST starting to play with PirateBox today for the first time, I know next to nothing about it...

However, I have some B and B+ Pis hanging around and I have something in mind that runs on batteries, so would prefer to use the B+. It has a deadline coming up pretty soon, and it SEEMED like this should work in theory, so I gave it a try... I did confirm that the latest 2014.05 image (at this writing) doesn't quite work on the B+, as expected, it boots but doesn't "see" the Ethernet or USB connections.

I downloaded a fresh image, loaded it onto a card, loaded the card into a Pi model B, hooked it up to an Ethernet connection for Internet access, booted, logged on as root, and ran:

pacman -Syu

.. before doing anything else. For reasons unknown (to me, anyway) it took a few tries, and once it did a hard reboot right in the middle of the process and left files corrupted, I had to reload the image onto the card and start over... but eventually it worked.

The trouble might have had something to do with it being a newly-unwrapped Pi, or maybe plugging into a WiFi router set up in client server mode, or power.. who knows.

Once the upgrade/update completed successfully I shut down, disconnected the wired Ethernet, plugged in a wireless dongle, booted again, ran piratebox and confirmed that I could log in from another machine.

Then I shut down again, took everything apart and plugged the card and everything else into a B+, booted again, and... well, there may be a hundred reasons that this won't work right, or fully, I wouldn't know, but so far.. it seems to be working just fine on the B+. Less than an hour now, but, still...

I'll attempt to proceed this way. If I run into real problems I can always drop back to the B, but, so far, so good...

YMMV, of course.

I need better directions...

$
0
0
I got everything off of the list and everything on the "Installation" set of instructions seemed to go well... but now I get an error "failed to start open ssh daemon."

I need pictures, a diagram, or better yet a video that covers all the steps in order.

Re: Raspberry Pi Model B+

$
0
0
Again thank you for your invaluable help I have done your work its manipulation could you help me for the French keyboard and also the environment by typing startx Xorg I get this error message:
/ etc / x11 / xinit / xserverrc: line5 / usr / bin / x: No such file or directory
Again thank you for your help
The ch'ti Noobs

Re: Really don't get how to set up the USB

$
0
0
I've set up several instances of Raspian to boot off of the SD but run EVERYTHING after boot, including the OS, off of a USB drive. If I figure it out with Arch I'll post it.

IMHO, that's the way to go, not just move the file sharing directories. A lot of people don't seem to realize it, but even USB 2.0 is quite a bit faster than accessing the SD, if you have a USB drive it just makes no sense NOT to run the OS off of it, you'll notice the difference in speed. Also, USB drives are in general designed more robustly, they are less likely to get corrupted files if there's a power problem or something.

Unfortunately, the last time I checked there was a bug in Raspian that made it impossible to reliably boot off of a certain USB drive IF there was more than one USB drive attached. Not a problem with just one, though. In one instance we worked through it by using the GPIO to turn power on to the second drive... maybe it's fixed in the OS now.

Re: Raspberry Pi Model B+

$
0
0
mrd0ll4r Wrote:
-------------------------------------------------------
> No offense given, but I don't think we'll be using
> any debian in future releases as the overhead of
> all the gui stuff is far too much for our use
> case. I think we will stick to ArchLinux ARM for
> the time being, as it is lightweight and fast...
> Matthias, please correct me.

You are right. The Raspbian image is sooo big because of stuff we don't need. Sorry, no official image for raspbian, only manual instructions.

Re: Raspberry Pi Model B+

$
0
0
Ok man but can you give us a picture with Arch Linux ARM updated with a type environment kde or xfce4 order to modify files easier for noobs like me
Thank you in advance friend:)-D
Viewing all 1863 articles
Browse latest View live