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

Re: Raspberry Pi PirateBox

$
0
0
you have to enable an automount of you usb device and then link/move the shared folder, like

mv /opt/piratebox/share  <usb-mountpoint>
ln -s <usb-mountpoint>/share  /opt/piratebox/share

this may help.

Re: Raspberry Pi PirateBox

$
0
0
Hi,
about the start-up problem with the alfa-device.:

I received my Alfa today and made a short test:

1. Yes, I can reproduce it on every reboot
2. Yes, if you move the setup-wlan script in the startup, the ip stays assigned after bootup.

It seems that the alfa-driver reinitializes the wlan0, I came to the conclusion, that it must be the driver behavior because it does not appear on any other usb stick.

I'll provide a fix soon.

Stay tuned,
Matthias

Re: Raspberry Pi PirateBox

$
0
0
Matthias Wrote:
-------------------------------------------------------
> you have to enable an automount of you usb device
> and then link/move the shared folder, like
>
>
> mv /opt/piratebox/share
> ln -s /share /opt/piratebox/share
>
>
> this may help.


Tried doing this an getting some massive errors. Maybe I'm doing it wrong. Have a USB 3 128GB USB now to use.

Show us yours!

$
0
0
Here is mine one of mine

Raspberry Pi V2 512Mb
32Gb SD Class 10
Maplin 9000mAh battery
TP-Link TL-WN722N

I've it overclocked to 1Ghz

Re: Raspberry Pi PirateBox

$
0
0
I've been having the same problem with my Alfa. I have been able to make a jerry rig fix... I noticed that if I ran the pirate box script twice in a row with out stopping it everything worked ... every time.

so what I did was create another script and placing it in /etc/init.d/ that would start your piratebox script twice and then added that my script to update-rc.d

rebooted multiple times and everything looks to be working :)

I know it's not the most elegant fix... but it works so far

Re: Raspberry Pi PirateBox

Temporary Fix for solving problems with ALFA devices

$
0
0
Hi,
this is a beta-release of version 0.6E.
It contains a different wlan-setup script and would help against problems using ALFA-USB device as wifi device.

The following howto has to be done with the piratebox-RaspberryPi image or after you did the normal installation.

Language: PHP
cd /tmp wget http://downloads.piratebox.de/piratebox-ws_0.6E_beta1.tar.gz tar xzf piratebox-ws_0.6E_beta1.tar.gz   #if piratebox is up, stop it sudo /etc/init.d/piratebox stop   #save your shared folder sudo mv /opt/piratebox/share /opt/piratebox_share   sudo rm -r /opt/piratebox sudo mv /tmp/piratebox/piratebox /opt/   sudo sed 's:DROOPY_USE_USER="no":DROOPY_USE_USER="yes":' -i /opt/piratebox/conf/piratebox.conf   sudo rm -r /opt/piratebox/share sudo mv /opt/piratebox_share /opt/piratebox/share   #start the box sudo /etc/init.d/piratebox start


If this code is more tested, I'll release 0.6E and a new RaspberryPi image.

regards
Matthias
(hopefully, there is no typo ;) )

Re: Temporary Fix for solving problems with ALFA devices

$
0
0
Thats fixed it! 5 out of 5 successful boots on Alfa AWUS036NH connected directly to pi, 5/5 success with Alfa via powered usb hub and for good measure 5/5 success on WIPI adapter direct on pi. Well done Matthias! Thanks.

Re: Temporary Fix for solving problems with ALFA devices

Re: Show us yours!

Re: RaspberryPI USB wifi compatibility list

$
0
0
Later found out that the Widemac works fine without making changes to the hostapd.conf file. The reason for my confusion is because of the wlan ip address issue that causes the pirate box to work about half the time it is started up. Piratebox worked after making the changes to hostapd.conf but it turned out to be the somewhat random behavior of getting an ip address or not during startup.

Also, sorry for the typos in my preceding posting - it is an 802.11N adapter (not 801.11N) and the chipset is rt5370. The thing that attracted me to the usb adapter is the price - about 7 US dollars at Amazon (of course it varies depending on availability and the market). It seems to work fine without a usb hub.

Thanks,
Mark

Re: RaspberryPI USB wifi compatibility list

Re: RaspberryPI USB wifi compatibility list

$
0
0
The one I got has the following name at Amazon:

"USB 802.11n 150m Wifi Wireless Lan Network Card Adapter"

The packaging doesn't identify a model number. A search in Amazon for "usb adapter rt5370" will bring up some related products - some with an external antenna. Another example of the same adapter but from a different supplier that describes the specs in more detail is:

"Ralink RT5370 Wifi Network Adapter Black USB 2.0 802.11n 150M WiFi Wireless Lan Network Card Adapter SL-1507N hot"

Thanks - will try your fix to the ip address issue soon.

Mark

Re: Temporary Fix for solving problems with ALFA devices

$
0
0
Had similar problems only with a Widemac USB 2.0 150 MBps 802.11N adapter (Ralink rt5370 chipset). Also had success five out of five times with the beta version above. It was tested with the 2013-02-09 version of wheezy-raspian using the instructions for a manual installation of PirateBox.

Re: Temporary Fix for solving problems with ALFA devices


Re: Temporary Fix for solving problems with ALFA devices

$
0
0
I find that even with your beta release I can not get my awus036h working fully with piratebox. I have tried with your distro and also with Adafruit's Pi distro. I noticed the adapter was showing up as wlan1 and replaced wlan0 with wlan1 in all the scripts and configs but this results in wlan1 getting an IP but not getting set up as an AP. I also noticed errors from iwconfig.

I am using a rev2 512MB RAM pi with a 5v 2a power supply. Piratebox works fine with a rtl1882 usb adapter. I'd be glad to help you test with the awus036h since it's such an awesome adapter for achieving wireless range.

Re: Temporary Fix for solving problems with ALFA devices

$
0
0
I should have said hostapd not iwconfig.

quarterturn Wrote:
-------------------------------------------------------
> I find that even with your beta release I can not
> get my awus036h working fully with piratebox. I
> have tried with your distro and also with
> Adafruit's Pi distro. I noticed the adapter was
> showing up as wlan1 and replaced wlan0 with wlan1
> in all the scripts and configs but this results in
> wlan1 getting an IP but not getting set up as an
> AP. I also noticed errors from iwconfig.
>
> I am using a rev2 512MB RAM pi with a 5v 2a power
> supply. Piratebox works fine with a rtl1882 usb
> adapter. I'd be glad to help you test with the
> awus036h since it's such an awesome adapter for
> achieving wireless range.

Re: Temporary Fix for solving problems with ALFA devices

$
0
0
sudo mv /opt/piratebox_share /opt/piratebox/share
I had everything under control until that part and then it told me that /opt/piratebox_share didn't exist.

Could've been something wrong with my build. I'll try again on a clean card. Do I have to have the ALFA hooked up while I follow these instructions or should it not matter?

Re: Temporary Fix for solving problems with ALFA devices

$
0
0
Then you have not done this step before removing /opt/piratebox:

sudo mv /opt/piratebox/share /opt/piratebox_share

for saving your shared data.

Do

mkdir /opt/piratebox/share

to recreate it.

Matthias

Re: Temporary Fix for solving problems with ALFA devices

$
0
0
fix is now delivered in current image.
Viewing all 1863 articles
Browse latest View live