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

Re: How to change default page to image board?

$
0
0
as everything is a normal html page in www , you can modify the content there.
I recommend to rename the index.html to main.html
then copy redirect.html to index.html and change the redirect location.

Alfa Awus036H (RTL8187L) not work

$
0
0
PirateBox1.0.1 Raspberry Pi

Led green is ok but not AP present!

[root@alarmpi ~]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.113 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::ba27:ebff:fe6d:8925 prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:6d:89:25 txqueuelen 1000 (Ethernet)
RX packets 908 bytes 154518 (150.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 310 bytes 53650 (52.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
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 166 bytes 12670 (12.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 166 bytes 12670 (12.3 KiB)
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 00:c0:ca:54:65:c0 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





[root@alarmpi ~]# iwconfig
wlan0 IEEE 802.11bg ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off

lo no wireless extensions.
eth0 no wireless extensions.
ifb0 no wireless extensions.
ifb1 no wireless extensions.





[root@alarmpi ~]# iw list
Wiphy phy0
max # scan SSIDs: 4
max scan IEs length: 2285 bytes
Coverage class: 0 (up to 0m)
Device supports RSN-IBSS.
Supported Ciphers:
* WEP40 (00-0f-ac:1)
* WEP104 (00-0f-ac:5)
* TKIP (00-0f-ac:2)
* CCMP (00-0f-ac:4)
Available Antennas: TX 0 RX 0
Supported interface modes:
* IBSS
* managed
* monitor
Band 1:
Bitrates (non-HT):
* 1.0 Mbps
* 2.0 Mbps
* 5.5 Mbps
* 11.0 Mbps
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
Frequencies:
* 2412 MHz [1] (20.0 dBm)
* 2417 MHz [2] (20.0 dBm)
* 2422 MHz [3] (20.0 dBm)
* 2427 MHz [4] (20.0 dBm)
* 2432 MHz [5] (20.0 dBm)
* 2437 MHz [6] (20.0 dBm)
* 2442 MHz [7] (20.0 dBm)
* 2447 MHz [8] (20.0 dBm)
* 2452 MHz [9] (20.0 dBm)
* 2457 MHz [10] (20.0 dBm)
* 2462 MHz [11] (20.0 dBm)
* 2467 MHz [12] (20.0 dBm) (no IR)
* 2472 MHz [13] (20.0 dBm) (no IR)
* 2484 MHz [14] (20.0 dBm) (no IR)
Supported commands:
* new_interface
* set_interface
* new_key
* start_ap
* new_station
* new_mpath
* set_mesh_config
* set_bss
* authenticate
* associate
* deauthenticate
* disassociate
* join_ibss
* join_mesh
* set_tx_bitrate_mask
* frame
* frame_wait_cancel
* set_wiphy_netns
* set_channel
* set_wds_peer
* probe_client
* set_noack_map
* register_beacons
* start_p2p_device
* set_mcast_rate
* testmode
* connect
* disconnect
Supported TX frame types:
* IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
Supported RX frame types:
* IBSS: 0x40 0xb0 0xc0 0xd0
* managed: 0x40 0xd0
* AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* mesh point: 0xb0 0xc0 0xd0
* P2P-client: 0x40 0xd0
* P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* P2P-device: 0x40 0xd0
software interface modes (can always be added):
* monitor
interface combinations are not supported
HT Capability overrides:
* MCS: ff ff ff ff ff ff ff ff ff ff
* maximum A-MSDU length
* supported channel width
* short GI for 40 MHz
* max A-MPDU length exponent
* min MPDU start spacing
Device supports TX status socket option.
Device supports HT-IBSS.
Device supports low priority scan.
Device supports scan flush.
Device supports AP scan.

Android device make stop wifi

$
0
0
Hi! I'm new here,

I just finished to set up a RaspberryPiratebox. Every thing works fine, thank you for all the good howto! And the installation is much easier than with the previous version (I have the older version on the tl mr3020).

When I tested it a bit more with my android device (galaxy s4) and the default internet app, the wifi crashes (Alfa AWUS036NH - the light stop blinking) and stops working. Interesting thing is that when I try from the same device but with firefox app, it works well...

Did some one have same problem?

Re: Alfa Awus036H (RTL8187L) not work

$
0
0
hi,
did you change something on hostapd.conf ?
Did you add a powered usb hub? (some usb sticks need that)
and please post the output of

dmesg | tail -n 30



Matthias

Re: Android device make stop wifi

$
0
0
never heard of that.

Sounds strange, can you provide some logs from the point that happend?

Re: Android device make stop wifi

$
0
0
Hi, thank you for your quick reply.
I figured out what happened, the problem was sitting on my chair... I was a bit tired yesterday and connected the wifi card directly to the raspberry. Since I connected it to a powered hub (pihub) it works like a charm.
You can delete this nonsense topic.

Internet archive pirate box

$
0
0
Hello,

I just ordered a raspberry B+, with a few accessories after I read about the pirate box.

It's my intention to make a portable pirate box with a 2T SSD USB drive, and put the latest copy of Wikipedia on it, a bunch of books from the Internet archive, (YouTube style) movies and music and a open source world map, as well as the pirate box system.

I'm also going to set it up to broadcast pirate radio. From the video I saw it only broadcasts five hundred yards or so, but I think it's a great tool.

I want it so that I can go to places with no or limited internet access and still enjoy what I actually like about the Internet on a portable device like an iPhone or iPad. But something that essentially be low profile. Like it fits in a lunch box.

Anyways. I was wondering if someone else already thought of this or has done it?
Tim

Re: Android device make stop wifi

$
0
0
No worries.. I'm glad it is working now :)

Have fun with your box!

Matthias

Re: WiFi AP with Edimax EW-7811Un

$
0
0
Hi all, I wanted to chronicle my experience getting this all working for you guys. In case anyone else gets in the same boat, or more likely, if I mess something up and need to start over :)

I have a Raspberry Pi B+ and an Edimax EW-7811Un and was successful in getting everything working thanks to this thread and some help from Matthias via IRC. Thanks everyone!

So, from the top:
----------------------------------------------------------------------------------

1. Download and write the Arch image, following the Raspberry Pi Tutorial
- Once written you need to do a few steps before you actually enable and start piratebox, so:

2. Boot the Pi with the SD card in, and with a ethernet cable plugged. You need to ssh into the box, so you need to find it's IP address. I use an app called Fing on android which will print all your LAN devices IPs. but anywho once you have the IP type in a terminal (replacing the #'s with your actual numbers)
ssh root@192.168.###.##
(For windows users, you can use Putty to do this, and point it's host address to the IP address you learned)
the username and password are both root by default.

3. Once you see a prompt, go ahead and change your password with the command
passwd

4. OK, now we need to switch the hostapd with the one built from Realtek's source, which Matthias has been kind enough to include for us. I tried to build it from source as described in the OP, but after building it didn't work (YMMV). So, since we have the option of using this known working one, we'll do that. So:
pacman -U /prebuild/hostapd/hostapd-8192cu-0.8_rtw_r7475.20130812_beta-3-armv6h.pkg.tar.xz
Note: that filename could change someday, so just type the first few letters and use TAB to complete the filename. just make sure it's the one for 8192cu.
When you hit enter it will ask if you want to remove the current hostapd, and then confirm again. Choose yes for both.

5. When it's done, we need to tell pacman (the pacage manager for arch) to never try to update this package for us, as it may break things someday. To do so, type:
nano /etc/pacman.conf
use your arrow keys to work your way to the bottom of the file and add the following line at the end:
IgnorePkg=hostapd
When you're done, hit Ctl+O to write the file out, hit enter to confirm, then hit Ctl+X to exit nano

6. Next up, we just need to tell hostapd to use the proper driver for our adapter. so:
nano /opt/piratebox/conf/hostapd.conf
Edit it to look like the following:
interface=wlan0
driver=rtl871xdrv
ssid=PirateBox - Share Freely
hw_mode=g
channel=1
ieee80211n=1
The bolded portion is the main thing to change. I have ieee80211n enabled as well which should increase speed.
When done, Ctl+O and Ctl+X to save, and exit as before.

7. When you are done, you can go ahead and reboot with
shutdown -r now
And when its back up, ssh back in and continue the RaspberryPi setup tutorial as before, continuing from Installation section, step 6.

------------------------------------------------------------------------------------------

Once you have got to the point (in the Raspberry Pi guide) of running "systemctl start/enable piratebox", you ought to see an access point from any device you have that supports WiFi. If not, try a reboot and try again, if still nothing, reply here and I and others will try to help you. Double check your hostapd conf files. And if you get an error on boot about wlan link not being ready you can try the solutions in this topic. Id recommend most of those changes even if everything is working.

NOTES:
I had a bit of trouble due to a stupid mistake, make sure when you edit the hostapd.conf that you type the driver name right. there is a L and a 1 in that name. in all caps it'd be RTL871XDRV but don't type it in caps ;)

The only thing I haven't tested thus far is bridged mode, though I would like to get that working eventually. If anyone can report back if/how they got it working I'd be very grateful!

:)-D
Cheers all! and a big thanks to the devs who made it possible for me to have a piratebox!

Sea gate 2 terabyte external hard drive and asus n-13 usb wifi

$
0
0
Hello,

I have next to no programming experience.

I bought a raspberry pi yesterday from action electronics while I'm waiting for my full set up to show up in the mail.

I downloaded and mounted the pirate box image and got it to load up. It recognizes that there is a hard drive and wifi, but neither one works.

Re: WiFi AP with Edimax EW-7811Un

$
0
0
I've been having a bunch of trouble getting the Edimax working, too. Before I run through all of this again, I just want to ask - this install should work fine if I happen to have a screen & keyboard plugged into my RPi, am logged in as root and simply do everything that way instead of going through the trouble of sshing in. Yes?

Thanks!
Evan

Re: WiFi AP with Edimax EW-7811Un

$
0
0
@evan: Yes, that should not cause any problems ;-)

@WACOMalt: Great tutorial! Thanks :-)

Re: Alfa Awus036H (RTL8187L) not work

$
0
0
Thanks for the reply.
I realized after that Awus036H requires additional power. I changed it with another model and is now working.

piratebox.lan not work

$
0
0
I followed the guide to install several times piratebox but I have a problem.
Once connected to the access point piratebox.lan does not work.
In the well-known ssh / etc / config / network does not exist and if I go on the browser to the IP 192.168.77.1, it works but the box to send the file is not available because the page calls piratebox.lan
Thank's

Re: piratebox.lan not work

$
0
0
Do you have a static dns entry on the device which u use for testing?

Can you give me the output of the following commands from your piratebox:

ifconfig
ps -ef

thanks; Matthias

Re: piratebox.lan not work

$
0
0
Thanks for the quick reply .. here is how:

[root@alarmpi /]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.114  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::ba27:ebff:fe6d:8925  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:6d:89:25  txqueuelen 1000  (Ethernet)
        RX packets 1243  bytes 140094 (136.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 553  bytes 153490 (149.8 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
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 174  bytes 13340 (13.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 174  bytes 13340 (13.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.77.1  netmask 255.255.255.0  broadcast 192.168.77.255
        inet6 fe80::4633:4cff:fe4c:9fe  prefixlen 64  scopeid 0x20<link>
        ether 44:33:4c:4c:09:fe  txqueuelen 1000  (Ethernet)
        RX packets 1103  bytes 119040 (116.2 KiB)
        RX errors 0  dropped 1  overruns 0  frame 0
        TX packets 680  bytes 159732 (155.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[root@alarmpi /]# ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  1 16:49 ?        00:00:06 /sbin/init
root         2     0  0 16:49 ?        00:00:00 [kthreadd]
root         3     2  0 16:49 ?        00:00:00 [ksoftirqd/0]
root         5     2  0 16:49 ?        00:00:00 [kworker/0:0H]
root         6     2  0 16:49 ?        00:00:00 [kworker/u2:0]
root         7     2  0 16:49 ?        00:00:00 [rcu_preempt]
root         8     2  0 16:49 ?        00:00:00 [rcu_bh]
root         9     2  0 16:49 ?        00:00:00 [rcu_sched]
root        10     2  0 16:49 ?        00:00:00 [khelper]
root        11     2  0 16:49 ?        00:00:00 [kdevtmpfs]
root        12     2  0 16:49 ?        00:00:00 [netns]
root        13     2  0 16:49 ?        00:00:00 [writeback]
root        14     2  0 16:49 ?        00:00:00 [kintegrityd]
root        15     2  0 16:49 ?        00:00:00 [bioset]
root        16     2  0 16:49 ?        00:00:00 [crypto]
root        17     2  0 16:49 ?        00:00:00 [kblockd]
root        18     2  0 16:49 ?        00:00:00 [khubd]
root        19     2  0 16:49 ?        00:00:00 [md]
root        20     2  0 16:49 ?        00:00:00 [kworker/0:1]
root        21     2  0 16:49 ?        00:00:00 [rpciod]
root        24     2  0 16:50 ?        00:00:00 [khungtaskd]
root        25     2  0 16:50 ?        00:00:00 [kswapd0]
root        26     2  0 16:50 ?        00:00:00 [fsnotify_mark]
root        27     2  0 16:50 ?        00:00:00 [nfsiod]
root        28     2  0 16:50 ?        00:00:00 [bioset]
root        37     2  0 16:50 ?        00:00:00 [kthrotld]
root        38     2  0 16:50 ?        00:00:00 [VCHIQ-0]
root        39     2  0 16:50 ?        00:00:00 [VCHIQr-0]
root        40     2  0 16:50 ?        00:00:00 [VCHIQs-0]
root        41     2  0 16:50 ?        00:00:00 [iscsi_eh]
root        42     2  0 16:50 ?        00:00:00 [dwc_otg]
root        43     2  0 16:50 ?        00:00:00 [DWC Notificatio]
root        44     2  0 16:50 ?        00:00:00 [raid5wq]
root        45     2  0 16:50 ?        00:00:00 [kmpathd]
root        46     2  0 16:50 ?        00:00:00 [kmpath_handlerd]
root        48     2  0 16:50 ?        00:00:00 [mmcqd/0]
root        49     2  0 16:50 ?        00:00:00 [deferwq]
root        50     2  0 16:50 ?        00:00:00 [kworker/u2:2]
root        51     2  0 16:50 ?        00:00:00 [jbd2/mmcblk0p2-]
root        52     2  0 16:50 ?        00:00:00 [ext4-rsv-conver]
root        62     2  0 16:50 ?        00:00:00 [scsi_eh_0]
root        63     2  0 16:50 ?        00:00:00 [usb-storage]
root        69     2  0 16:50 ?        00:00:00 [kworker/0:2]
root        79     1  0 16:50 ?        00:00:02 /usr/lib/systemd/systemd-journald
root        84     2  0 16:50 ?        00:00:00 [kworker/0:1H]
root        93     1  0 16:50 ?        00:00:00 /usr/lib/systemd/systemd-udevd
root       104     2  0 16:50 ?        00:00:00 [bcm2708_spi.0]
root       114     2  0 16:50 ?        00:00:00 [cfg80211]
systemd+   115     1  0 16:50 ?        00:00:00 /usr/lib/systemd/systemd-timesyncd
root       120     1  0 16:50 ?        00:00:00 /usr/bin/crond -n
avahi      121     1  0 16:50 ?        00:00:00 avahi-daemon: running [alarmpi.local]
root       123     1  0 16:50 ?        00:00:00 /usr/lib/systemd/systemd-logind
avahi      125   121  0 16:50 ?        00:00:00 avahi-daemon: chroot helper
dbus       126     1  0 16:50 ?        00:00:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
root       128     1  0 16:50 ?        00:00:03 /usr/bin/haveged -w 1024 -v 1
systemd+   137     1  0 16:50 ?        00:00:00 /usr/lib/systemd/systemd-networkd
root       141     1  0 16:50 ?        00:00:00 /usr/bin/sshd -D
systemd+   142     1  0 16:50 ?        00:00:00 /usr/lib/systemd/systemd-resolved
root       143     1  0 16:50 tty1     00:00:00 /sbin/agetty --noclear tty1 linux
root       144     1  0 16:50 ttyAMA0  00:00:00 /sbin/agetty --keep-baud 115200 38400 9600 ttyAMA0 vt102
root       146     1  0 16:50 ?        00:00:00 /usr/bin/minidlnad -P /run/minidlna/minidlna.pid
root       171     1  0 16:50 ?        00:00:00 /usr/sbin/hostapd /opt/piratebox/conf/hostapd.conf
nobody     176     1  0 16:50 ?        00:00:00 /usr/sbin/dnsmasq -x /var/run/piratebox_dnsmasq.pid -C /opt/piratebox/conf/dnsmasq_generated.conf
nobody     183     1  0 16:50 ?        00:00:01 python /opt/piratebox/bin/droopy -H piratebox.lan -d /opt/piratebox/share/Shared -m  -c  8080
nobody     191     1  0 16:50 ?        00:00:00 /usr/sbin/lighttpd -f /opt/piratebox/conf/lighttpd/lighttpd.conf
root       193   141  0 16:50 ?        00:00:00 sshd: root@pts/0   
root       195     1  0 16:50 ?        00:00:00 /usr/lib/systemd/systemd --user
root       196   195  0 16:50 ?        00:00:00 (sd-pam)  
root       198   193  0 16:50 pts/0    00:00:00 -bash
root       216   141  0 16:54 ?        00:00:00 sshd: root@pts/1   
root       218   216  0 16:54 pts/1    00:00:00 -bash
root       250     2  0 16:57 ?        00:00:00 [kworker/u2:1]
root       252   218  0 16:59 pts/1    00:00:00 ps -ef

Re: piratebox.lan not work

$
0
0
ok, everything is like expected.

Interesting would be
/opt/piratebox/conf/dnsmasq_generated.conf
, too.

How do you try to access the box? Which device? Can you give me some informations pls?

Re: piratebox.lan not work

$
0
0
Device is Raspberry Pi Modell B 512MB
AP: Alfa AWUS036NH
Storage: Trekstor HARD DISK ssd 80Gb / but I also tested with Usbstick Lexar 8Gb

I access the device from a mac connecting to Wifi Piratebox ssh

File dnsmasq_generated.conf :

#dont use resolv.conf
no-resolv
#dont recheck resolv.conf for changes
no-poll

#overwrite dns..
#dhcp-authoritative

# If you don't want dnsmasq to read /etc/hosts, uncomment the
# following line.
no-hosts
# or if you want it to read another file, as well as /etc/hosts, use
# this.
#addn-hosts=/etc/banner_add_hosts
## ^^^^^^  <- generated
interface=wlan0
dhcp-range=192.168.77.10,192.168.77.250,12h
address=/#/192.168.77.1
dhcp-leasefile=/opt/piratebox/tmp/lease.file
addn-hosts=/opt/piratebox/conf/hosts_generated
addn-hosts=/opt/piratebox/conf/hosts_mesh

Re: Sea gate 2 terabyte external hard drive and asus n-13 usb wifi

$
0
0
I increased the USB power to 1.2 amp and the seagate hard drive is working perfectly, but I've installed the Linux driver for the asus n-13 wifi and I still can't get it to work.

Re: piratebox.lan not work

$
0
0
can you please verify, that you don't have a fixed DNS setting on your wifi profile?
Can you test it with a different device please?

The configuration looks 100% ok.

Matthias
Viewing all 1863 articles
Browse latest View live