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

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


LB-Link USB WiFi Adapter not working...

$
0
0
BL-LW05AR5

I may need to compile drivers for Arch Linux. I do have a driver cd with Linux source code. Any advice? Thanks

Source code:

RTL8188CUS_linux_v3.0.2164.20110715.zip 6.4 MB [mega.co.nz]

[www.adafruit.com]

SSID isnt being detected

$
0
0
Not sure what i'm doing wrong, ive seem to set up everything correct & the status shows that everything is running, but for some reason i cant seem to detect the piratebox SSID, I'm using a Netgear WG111 USB adapter

Re: RaspberryPI USB wifi compatibility list

$
0
0
The LB-Link BL-LW05AR5 (as seen on [www.adafruit.com]) is not compatible with the Arch Linux distribution. However, I do have the drivers. But also have no Arch Linux compiling experience.

Source code:

RTL8188CUS_linux_v3.0.2164.20110715.zip 6.4 MB [mega.co.nz]

Change Pi(rate)box file share directory?

$
0
0
How can I use my OS sd card to host files for Pi(rate)box rather than a USB stick?

Because I haven't even figured out how to mount a usb flash drive and copy files over to a specific folder anyways.

Re: WiFi AP with Edimax EW-7811Un

$
0
0
Hi Jacob,
the idea of the wifi timer is quite well.

We already have the function called "PROBE_INTERFACE" to wait until the USB Stuff is available.

regards Matthias

Re: Solving the bootup issue

$
0
0
Hi,
ok, while working on another thread, I had an idea today.
The output you posted doesn't contain the line "Probing interface wlan0". This can have to reasons:

1. PROBE_INTERFACE is not set correctly to "yes" (should be done by
sed -i 's|PROBE_INTERFACE="no"|PROBE_INTERFACE="yes"|g' /opt/piratebox/conf/piratebox.conf
without problem)

2. The issues below

That HAVE-TO appear if you enabled the function correctly.

So, I introduce you some changes, and then retest it.

1. Adjust piratebox_alt
edit with "vi" or "nano"
  /opt/piratebox/init.d/piratebox_alt
find the following line:
    fi

    if [ "$PROBE_INTERFACE" = yes ] ; then
      echo "  Probe wlan"
That should be around line 87 -

Please change it to
   if [ "$PROBE_INTERFACE" = "yes" ] ; then

That should create the message "Probe wlan" BEFORE "Starting hostap." when you run

2. But I think in the wifi-setup script is the next bug.
So edit
/opt/piratebox/bin/piratebox_setup_wlan.sh
.

Look around at line 79 , there you should find
  ifconfig $INTERFACE down
elif [ $ = "probe" ] ; then 
   # simply check if the interface is available
   probe
fi

please change it to:
elif [ "$2" = "probe" ] ; then

Test restarting the piratebox

systemctl piratebox restart
systemctl piratebox status
journalctl -xn

See if the messages about probing the interface appear.

Hope that helps.

regards Matthias

Re: Solving the bootup issue

$
0
0
[root@alarmpi ~]# systemctl status piratebox
* piratebox.service - PirateBox Service
Loaded: loaded (/etc/systemd/system/piratebox.service; enabled)
Active: active (running) since Wed 2014-07-09 17:18:59 MDT; 16s ago
Process: 332 ExecStart=/opt/piratebox/init.d/piratebox_alt start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/piratebox.service
|-349 /usr/sbin/hostapd /opt/piratebox/conf/hostapd.conf
|-359 /usr/sbin/dnsmasq -x /var/run/piratebox_dnsmasq.pid -C /opt/...
|-366 python /opt/piratebox/bin/droopy -H piratebox.lan -d /opt/pi...
`-374 /usr/sbin/lighttpd -f /opt/piratebox/conf/lighttpd/lighttpd....

Jul 09 17:18:57 alarmpi dnsmasq-dhcp[359]: DHCP, IP range 192.168.77.10 -- 1...h
Jul 09 17:18:57 alarmpi dnsmasq[359]: read /opt/piratebox/conf/hosts_mesh -...es
Jul 09 17:18:57 alarmpi dnsmasq[359]: read /opt/piratebox/conf/hosts_genera...es
Jul 09 17:18:57 alarmpi piratebox_alt[332]: 0
Jul 09 17:18:57 alarmpi piratebox_alt[332]: Starting droopy...
Jul 09 17:18:57 alarmpi piratebox_alt[332]: 0
Jul 09 17:18:59 alarmpi piratebox_alt[332]: Generated HTML-Shoutbox File.
Jul 09 17:18:59 alarmpi piratebox_alt[332]: Starting lighttpd...
Jul 09 17:18:59 alarmpi piratebox_alt[332]: 0
Jul 09 17:18:59 alarmpi systemd[1]: Started PirateBox Service.
Hint: Some lines were ellipsized, use -l to show in full.




and for journalctl -xn:

-- Logs begin at Wed 1969-12-31 17:00:04 MST, end at Wed 2014-07-09 17:26:15 MDT. --
Jul 09 17:26:13 alarmpi dnsmasq-dhcp[404]: DHCP, IP range 192.168.77.10 -- 192.168.77.250, lease time 12h
Jul 09 17:26:13 alarmpi dnsmasq[404]: read /opt/piratebox/conf/hosts_mesh - 0 addresses
Jul 09 17:26:13 alarmpi dnsmasq[404]: read /opt/piratebox/conf/hosts_generated - 1 addresses
Jul 09 17:26:13 alarmpi piratebox_alt[374]: 0
Jul 09 17:26:13 alarmpi piratebox_alt[374]: Starting droopy...
Jul 09 17:26:13 alarmpi piratebox_alt[374]: 0
Jul 09 17:26:15 alarmpi piratebox_alt[374]: Generated HTML-Shoutbox File.
Jul 09 17:26:15 alarmpi piratebox_alt[374]: Starting lighttpd...
Jul 09 17:26:15 alarmpi piratebox_alt[374]: 0
Jul 09 17:26:15 alarmpi systemd[1]: Started PirateBox Service.
-- Subject: Unit piratebox.service has finished start-up
-- Defined-By: systemd
-- Support: [lists.freedesktop.org]
--
-- Unit piratebox.service has finished starting up.
--
-- The start-up result is done.





After reboot it does not work,. I get:

* piratebox.service - PirateBox Service
Loaded: loaded (/etc/systemd/system/piratebox.service; enabled)
Active: failed (Result: exit-code) since Wed 1969-12-31 17:00:10 MST; 44 years 6 months ago
Process: 114 ExecStart=/opt/piratebox/init.d/piratebox_alt start (code=exited, status=255)

Dec 31 17:00:09 alarmpi piratebox_alt[114]: Starting hostap...
Dec 31 17:00:09 alarmpi piratebox_alt[114]: 0
Dec 31 17:00:09 alarmpi piratebox_alt[114]: Setting up wlan
Dec 31 17:00:10 alarmpi piratebox_alt[114]: Bringing up wifi interface wlan0
Dec 31 17:00:10 alarmpi piratebox_alt[114]: wlan0: ERROR while getting interface flags: No such device
Dec 31 17:00:10 alarmpi piratebox_alt[114]: ..failed
Dec 31 17:00:10 alarmpi systemd[1]: piratebox.service: control process exited, code=exited status=255
Dec 31 17:00:10 alarmpi piratebox_alt[114]: failed setting up Interface
Dec 31 17:00:10 alarmpi systemd[1]: Failed to start PirateBox Service.
Dec 31 17:00:10 alarmpi systemd[1]: Unit piratebox.service entered failed state.

Re: Solving the bootup issue

$
0
0
Hi Peter,
thank you.
Then, the systmctl status command doesn't print enough lines on default....

can you please check
systemctl status --all piratebox
?

Refering to [bugzilla.redhat.com] it should print more lines.

Matthias

Re: Solving the bootup issue

$
0
0
[root@alarmpi ~]# systemctl status -all piratebox
* piratebox.service - PirateBox Service
Loaded: loaded (/etc/systemd/system/piratebox.service; enabled)
Active: failed (Result: exit-code) since Wed 1969-12-31 17:00:10 MST; 44 years 6 months ago
Process: 118 ExecStart=/opt/piratebox/init.d/piratebox_alt start (code=exited, status=255)

Dec 31 17:00:09 alarmpi piratebox_alt[118]: Starting hostap...
Dec 31 17:00:10 alarmpi piratebox_alt[118]: 0
Dec 31 17:00:10 alarmpi piratebox_alt[118]: Setting up wlan
Dec 31 17:00:10 alarmpi piratebox_alt[118]: Bringing up wifi interface wlan0
Dec 31 17:00:10 alarmpi piratebox_alt[118]: wlan0: ERROR while getting interface flags: No such device
Dec 31 17:00:10 alarmpi piratebox_alt[118]: ..failed
Dec 31 17:00:10 alarmpi systemd[1]: piratebox.service: control process exited, code=exited status=255
Dec 31 17:00:10 alarmpi piratebox_alt[118]: failed setting up Interface
Dec 31 17:00:10 alarmpi systemd[1]: Failed to start PirateBox Service.
Dec 31 17:00:10 alarmpi systemd[1]: Unit piratebox.service entered failed state.
[root@alarmpi ~]#

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

$
0
0
I don't quite get what you want to achieve - You want to connect a USB flash drive but not use it for the shared files?
It isn't used (at least if you don't plug it in at install time) afaik...

Re: LB-Link USB WiFi Adapter not working...

$
0
0
Heyho,

as somewhat according to this post, it should work with our archlinux, as the post is some years old...

you will have to set the driver in
/opt/piratebox/conf(ig?)/hostapd.conf

like
driver=rtl8192cu

Otherwise, specify what exactly is not working ;-)

Good Luck!

Re: SSID isnt being detected

$
0
0
Hmm, well...standard procedure: post results of some commands! ;-)

systemctl status piratebox.service
ifconfig
lsusb

Sorry, I know this is very vague and you already said the status is okay, but it's the best I have right now...

Re: RaspberryPI USB wifi compatibility list

$
0
0
@Yakov: Not compatible? We'll see about that :P

Re: Change Pi(rate)box file share directory?

$
0
0
If there are no special circumstances, your OS SD card should be used to host the files. Check
/opt/piratebox/share/Shared

And yes, you will have to expand your rootfs, there is a nice post about that...should be among these (sorry, didn't find it at first glance, but every tutorial I looked at does basically the same)

You have to, basically, only change the partition table (you do that ON the Pi, WHILE the Pi is running ;-) )

Good Luck!

Re: LB-Link USB WiFi Adapter not working...

$
0
0
Oh maybe I did something else wrong.

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

$
0
0
Having a hard time with this still. Just wondering if you did anything else after mounting the /mnt/usbdrive. Once I add the symlink "ln -s /opt/piratebox/share/Shared /mnt/usbdrive " . My piratebox service doesnt start up. All the text files are in place, i'm guessing it's something to do with the atheros usb wireless.

Re: Change Pi(rate)box file share directory?

$
0
0
Hi all,
I have the opposite problem. I'd like to set the USB pendrive as default Shared folder. I've mounted the USB and I suppose I have to create a "Shared" folder on it, but then...how can I change the settings?
Thanks

Re: Change Pi(rate)box file share directory?

$
0
0
Ah, I see now. Just by the way, expanding your root fs won't hurt :P

Anyways, what you want to do is
0) Maybe stop the piratebox service for this (might be a good idea)
1) Create some folder on the USB
2) Copy everything from
/opt/piratebox/share/Shared
to your newly created folder.
3) Delete/rename/move the original folder located at
/opt/piratebox/share/Shared
4) Assuming your new folder is called
/mnt/usb/Shared
You'll have to create a link. Move to the piratebox folder:
cd /opt/piratebox/share/
and call something like
ln -d /mnt/usb/Shared
or
ln -s /mnt/usb/Shared

I don't have my RPi around right now, so you'll have to fiddle with the ln command, but that should basically do the trick ;-)

Good Luck!

error with systemctl status --all piratebox

$
0
0
Hello there
I have a raspberry with software as ArchLinuxARM-2014.05-PirateBox1.0.0_rpi_1.0.0.img.zip
when I type this command: systemctl status --all piratebox

I like error:

* piratebox.service - PirateBox Service
Loaded: loaded (/etc/systemd/system/piratebox.service; enabled)
Active: failed (Result: exit-code) since Wed 2014-07-16 08:37:19 MDT; 44s ago
Process: 281 ExecStart=/opt/piratebox/init.d/piratebox_alt start (code=exited, status=255)

Jul 16 08:37:19 alarmpi piratebox_alt[281]: Starting hostap...
Jul 16 08:37:19 alarmpi piratebox_alt[281]: 0
Jul 16 08:37:19 alarmpi piratebox_alt[281]: Setting up wlan
Jul 16 08:37:19 alarmpi piratebox_alt[281]: Bringing up wifi interface wlan0
Jul 16 08:37:19 alarmpi piratebox_alt[281]: wlan0: ERROR while getting interface flags: No such device
Jul 16 08:37:19 alarmpi piratebox_alt[281]: ..failed
Jul 16 08:37:19 alarmpi systemd[1]: piratebox.service: control process exited, code=exited status=255
Jul 16 08:37:19 alarmpi systemd[1]: Failed to start PirateBox Service.
Jul 16 08:37:19 alarmpi systemd[1]: Unit piratebox.service entered failed state.
Jul 16 08:37:19 alarmpi piratebox_alt[281]: failed setting up Interface
[root@alarmpi ~]#

pouvez vous m'aider?
Viewing all 1863 articles
Browse latest View live