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

Re: Setup Problems

$
0
0
Sorry for the delay in replying. Yes it's wired to the WRT54GS and the TV / Rasbmc PI box / PS3 all work fine wired.

Re: Rasperry WiFi wont work after restart and won't find any external HDD’s or Flash Drives

$
0
0
Matthias Wrote:
-------------------------------------------------------
> HI,
> in this case run the following command exactly,
> after that the PirateBox init.d script waits until
> the USB-Wifi is ready:
>
> sed -i
> 's|PROBE_INTERFACE="no"|PROBE_INTERFACE="yes"|g'
> /opt/piratebox/conf/piratebox.conf
>
>
> Then the next reboot it should work.
>
> About the usage of an external drive: We still
> need a very easy howto to make this working.
> Sorry, we are not done with the todo list.
>
>
> Matthias


I tried that and the Raspberry Still does not start the WiFi the Light is still solid but doesn't flash like when I start it through Putty

Thanks for the reply and sorry for my late responce.

Thanks Cretten

Re: 'enable piratebox' doesn't seem to work

$
0
0
Output of status is as follows:


Loaded: loaded
Active: failed (Result: exit-code)
Process: 109 ExecStart=/opt/piratebox/init.d/piratebox_alt start (code=exited, status255)

Starting hostap...
0
Setting up wlan
Bringing up wifi interface wlan0
wlan0: ERROR while getting interface flags: No such device
piratebox.service: control process exited, code=exited status=255
..failed
failed setting up interface
Failed to start PirateBox service
Unit piratebox.service entered failed state


Obviously the wifi adapter is there, it's the TL-WN722N. ifconfig isn't bringing up anything because it's not connected to any network, and lsusb returns:
Atheros Communications, Inc. AR9271 802.11n
Saitek PLC
Standard Microsystems Corp SMSC9512/9514 Fast Ethernet Adapter
Standard Microsystems Corp SMC9512/9514 USB Hub
Linux Foundation 2.0 root hub

It's just not enabling the wifi adapter on boot, which is perculiar.

Re: Rasperry WiFi wont work after restart and won't find any external HDD’s or Flash Drives

$
0
0
Hello,

Yes I did try the sed command you listed, but nothing changed. Typing 'systemctl status piratebox'
yields:

Dec 31 17:00:09 alarmpi piratebox_alt[117]: Starting hostap...
Dec 31 17:00:09 alarmpi piratebox_alt[117]: 0
Dec 31 17:00:09 alarmpi piratebox_alt[117]: Setting up wlan
Dec 31 17:00:10 alarmpi piratebox_alt[117]: Bringing up wifi interface wlan0
Dec 31 17:00:10 alarmpi piratebox_alt[117]: wlan0: ERROR while getting interface flags: No such device
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[117]: ..failed
Dec 31 17:00:10 alarmpi piratebox_alt[117]: 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.



and the contents of my piratebox.conf file are:

PIRATEBOX_FOLDER="/opt/piratebox"
WWW_FOLDER="/opt/piratebox/www"

#Do not change untill really needed.
PIRATEBOX_PYTHONPATH="$PIRATEBOX_FOLDER/python_lib"


#Datafolder , where is you usb-stick // drive mounted
SHARE_FOLDER="$PIRATEBOX_FOLDER/share"

#Upload Folder
# Change this if you want to user uploaded data in a subfolder
# Make sure the folder exists
# UPLOADFOLDER="$SHARE_FOLDER/Upload"
UPLOADFOLDER="$SHARE_FOLDER/Shared"

#----------------- Startup Configuration -------------------#
# Which Steps has to be done

#Do network config
DO_IFCONFIG="yes"

#Do IW config - setting up a wlan0 interface with iw


Regards

Peter

Re: Rasperry WiFi wont work after restart and won't find any external HDD’s or Flash Drives

$
0
0
Apologies. Piratebox.conf file was truncated. I will repost.

How to erase files on Home/ browse files?

$
0
0
Hey just installed Piratebox and i am loving it.I was uploading some file like pics and video to see if it would stream for testing. Now how do i erase them? Does it have to be threw SSH? thanks for the help.

Re: Rasperry WiFi wont work after restart - piratebox.conf file

$
0
0
#########
## Config for pirate-box WWW Release
## written by Matthias Strubel (matthias.strubel@aod-rpg.de) 2011-02-22
## licenced by gpl ; feel free to improve or send me feedback
##
## 2012-04-12 Created
## 2012-06-08 Changed IP Stuff to generating dnsmasq.conf stuff
## ADDed SubConfig for IPV6 config
## Changed Order of config
## 2013-08-14 Added timesave url
##
########

#######
## Configuration help
## If you plan to use one laptop as the piratebox:
## Set DO_IFCONFIG , USE_APN, USE_DNSMASQ to yes
## If you plan to run a two component setup (one router and one providing the storage+website)
## connected with ethernet:
## Set DO_IFCONFIG , USE_APN, USE_DNSMASQ to no
## Configure your ethernet eth0 (or whatever) to a static IP
## force your router to publish the HOST Option with your static IP; in case of dnsmasq add the /etc/hosts entrys
## Have a look at [wiki.daviddarts.com] for futher instructions
##
## You may deactivated severall option as needed. It's flexible.


#----------------- Folder Configuration -------------------#

PIRATEBOX_FOLDER="/opt/piratebox"
WWW_FOLDER="/opt/piratebox/www"

#Do not change untill really needed.
PIRATEBOX_PYTHONPATH="$PIRATEBOX_FOLDER/python_lib"


#Datafolder , where is you usb-stick // drive mounted
SHARE_FOLDER="$PIRATEBOX_FOLDER/share"

#Upload Folder
# Change this if you want to user uploaded data in a subfolder
# Make sure the folder exists
# UPLOADFOLDER="$SHARE_FOLDER/Upload"
UPLOADFOLDER="$SHARE_FOLDER/Shared"

#----------------- Startup Configuration -------------------#
# Which Steps has to be done

#Do network config
DO_IFCONFIG="yes"

#Do IW config - setting up a wlan0 interface with iw
# for some wifi-cards required
DO_IW="no"
#Iw physical interface
PHY_IF="phy0"

# Check if interface exists
# should be set to yes if you use a USB wifi card
PROBE_INTERFACE="no"
# wait how many seconds until throw an error
PROBE_TIME=10

#Start services...
# act like a apn / <yes|no>
# please have a look @ hostapd.conf ; you may need to change some options, regarding wifi-card
USE_APN="yes"
# act like dns&dhcp (dnsmasq)
USE_DNSMASQ="yes"

#HOSTNAME ... if you really want to change it, plz change:
# bin/droopy
# conf/hosts
HOST="piratebox.lan"

#----------------- Configuration for DNSMASQ & IF-Setup -------------------#
# Name of the wlan interface
INTERFACE="wlan0"
# On which interface DNSMASQ should listen. -i is the parameter for dnsmasq
# Make it empty to disable
DNSMASQ_INTERFACE="wlan0"

#Brdige add interfacce (setr yes to enable bridging)
DO_BRIDGE="no"
BRIDGE="br-lan"

#Network
NET=192.168.77

#IP-SHORT (is stringed together)
# Which IP is your Box?? i.e. 1 => 192.168.77.1
IP_SHORT=1

#DHCP LEASE Start
START_LEASE=10
#DHCP LEASE End Range
END_LEASE=250
#Leasetime (When should the client renew it's IP)
LEASE_DURATION=12h

# Where is the leasefile stored to?
LEASE_FILE_LOCATION=$PIRATEBOX_FOLDER/tmp/lease.file


# Define the netmask
NETMASK=255.255.255.0

#SET IP for ifconfig stuff - DON'T CHANGE
IP=$NET.$IP_SHORT

#Load Config about ipv6 stuff - DON'T CHANGE
. $PIRATEBOX_FOLDER/conf/ipv6.conf


#----------------- Configuration for the pure piratebox -------------------#
## droopy, webserver, shoutbox- and forum-server

## Timesave file for non RTC devices
TIMESAVE="$PIRATEBOX_FOLDER/share/timesave_file"

#Start droopy? - Enable upload?
DROOPY_ENABLED="yes"
#Image-SRC
IMAGENAME="piratebox-logo-small.png"
IMAGE="$PIRATEBOX_FOLDER/src/$IMAGENAME"
DROOPY_TXT=""
DROOPY_PORT="8080"
DROOPY_USERDIR=""
# Uncomment line below for adding directory feature
#DROOPY_USERDIR=" -u True "

#Use UserId from lighttpd for droopy (use on ext-filesystems)
DROOPY_USE_USER="yes"

#Configuration for chat (If you decide to move the chat folder, you have to change /opt/piratebox/chat/cgi-bin/py* files )
CHATFILE="$WWW_FOLDER/cgi-bin/data.pso"

#Generated File
GEN_CHATFILE="$WWW_FOLDER/chat_content.html"

# Reset Shoutbox on Startup?
RESET_CHAT="yes"

#Inititiation Chat-Message
CHATMSG="<div class='message'><date>00:00:00</date> <name>PirateBox:</name> <data class='def'>Chat and share files anonymously!</data></div>"

#Activate Global chat
# Still experimentall!
GLOBAL_CHAT="no"

#On which broadcast address should it send
# Take care on the syntax!!
GLOBAL_DEST="[ #255.255.255.255# , #10.255.255.255# , #$NET.255# ]"

#------------------------ Additional configuration for lighttpd
LIGHTTPD_USER=nobody
LIGHTTPD_GROUP=nogroup


#------------------------ Hook in user-config
. $PIRATEBOX_FOLDER/conf/hook_custom.conf

Re: New Raspberry Pi(rate)Box - image is available


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

$
0
0
Hi ,
Got it working. I was using the ln -s command wrong (as I said I am no linux guru). Here is my setup - note I only store files the user uploads to piratebox on the usb stick (not forum and chat data):

The /etc/fstab file has an entry like:

UUID=xxxx-xxxx /mnt/usbdrive vfat user,exec,uid=0,gid=0,rw,umask=000 0 0

Then in /opt/piratebox/share I linked Shared to /mnt/usbdrive with the command

ln -s /opt/piratebox/share/Shared /mnt/usbdrive

I moved the original Shared folder first so as to have a backup and then I copied all the .txt files into my new Shared folder (i.e. my usb drive)/

Hope this helps someone,
john

Is there an Easy way to ADD usb-storage?

$
0
0
Dear members,

I have been reading about changing the location of the usb-storage.
But is it possible to add a location.
I already have added my 32GB fat32 usb stick to fstab. But how can I add this to what is already Shared?
Or is this not what was foreseen with the piratebox?

TIA
pablok

Re: RaspberryPI USB wifi compatibility list

$
0
0
I tried TP-Link WN725N and a WN823N both from a powered hub and had no success.

Then I ordered myself a WN722N and it worked oob!

BTW or better not BTW thanks for all the energy you people put into this project. Love it!

Re: Shutdown the Pi(rate) Box

$
0
0
Would it be possible to add a link in the header file that activates a shutdown command?

Re: 'enable piratebox' doesn't seem to work

$
0
0
I see, I guess you have to find yourself some kind of driver, I guess other people tried to get this to work on a RPi, so you could possibly find something on google or similar, I did a quick look and there was some guy who seemed to have figured it out...
So, I wish you the best possible luck with this one - if nothing else helps, invest in a wifi dongle that is confirmed to work^^
Sorry that I can't help you more specifically here :-/

Re: How to erase files on Home/ browse files?

$
0
0
Normally yes, you would do that via SSH.
BUT: If you want to do something and be creative, build yourself a web interface to do that (maybe password protected^^)
I'm not that much into the whole project, but I guess it's a main aspect that files cannot be deleted easily (by normal users), as this could limit the freedom of users... but that's just my guess. I regularly look over the files, sort them somewhat, remove broken ones etc....

Re: Is there an Easy way to ADD usb-storage?

$
0
0
You mean like a subdirectory in the Shared directory? Have the Shared directory on one USB stick and the subfolder on another one? You could achieve that with symlinks I guess... not sure if it works with fat32 though

Re: Shutdown the Pi(rate) Box

$
0
0
You could call a python or perl script to do that, I think - but protect it somehow ;-)

Re: [Urgent]How to change PirateBox Shared Folder to USB by default on Raspberry Pi

$
0
0
Hi There

I am having the same problem. I installed Piratebox on a 32gb sdcard for my raspberry pi B, I have been unable to get the default storage set to USB. I have a 64gb flash formatted to FAT 32. I desperately need your help! I want to show off your idea at a festival this coming weekend

Re: Rasperry WiFi wont work after restart and won't find any external HDD’s or Flash Drives

$
0
0
Hi Peter,
you ran the command wrongly.
Maybe editing is more easier. Please change the line

PROBE_INTERFACE="no"

to

PROBE_INTERFACE="yes"

That should help,
Matthias

Re: Setup Problems

$
0
0
did you change something in the configuration?
Can you reach other services on the box, like http ?

Re: Rasperry WiFi wont work after restart and won't find any external HDD’s or Flash Drives

$
0
0
Hello,

I noted that the sed command line had not modified the piratebox.conf file, despite the fact that I pasted it from your last post. However, manually editing the file does not change anything. Piratebox still does not start after reboot.

Regards

Peter
Viewing all 1863 articles
Browse latest View live