Re: Raspberry Pi PirateBox November 22, 2012 09:10PM |
Registered: 12 years ago Posts: 6 |
PID TTY TIME CMD 2517 tty1 00:00:02 bash 2599 tty1 00:00:00 ps
eth0 Link encap:Ethernet HWaddr b8:27:eb:ad:6b:e2 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0TX bytes:0 (0.0
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0
TX bytes:0 (0.0
mon.wlan0 Link encap:UNSPEC HWaddr F8-D1-11-1B-71-F8-00-00-00-00-00-00-00-00-00-00 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5313 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1385655 (1.3 Mi
TX bytes:0 (0.0
wlan0 Link encap:Ethernet HWaddr f8:d1:11:1b:71:f8 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:35 errors:0 dropped:13 overruns:0 frame:0 TX packets:20 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:8881 (8.6 Ki
TX bytes:5538 (5.4 Ki
![]()
Re: Raspberry Pi PirateBox November 24, 2012 08:46AM |
Admin Registered: 13 years ago Posts: 4,680 |
Re: Raspberry Pi PirateBox November 24, 2012 06:56PM |
Registered: 12 years ago Posts: 6 |
PID TTY STAT TIME COMMAND 1 ? Ss 0:02 init [2] 2 ? S 0:00 [kthreadd] 3 ? S 0:00 [ksoftirqd/0] 4 ? S 0:00 [kworker/0:0] 5 ? S 0:00 [kworker/u:0] 6 ? S< 0:00 [khelper] 7 ? S 0:00 [kdevtmpfs] 8 ? S< 0:00 [netns] 9 ? S 0:00 [sync_supers] 10 ? S 0:00 [bdi-default] 11 ? S< 0:00 [kblockd] 12 ? S 0:00 [khubd] 13 ? S< 0:00 [rpciod] 14 ? S 0:00 [kworker/0:1] 15 ? S 0:00 [khungtaskd] 16 ? S 0:00 [kswapd0] 17 ? S 0:00 [fsnotify_mark] 18 ? S< 0:00 [nfsiod] 19 ? S< 0:00 [crypto] 26 ? S< 0:00 [kthrotld] 27 ? S< 0:00 [VCHIQ-0] 28 ? S< 0:00 [VCHIQr-0] 29 ? S< 0:00 [dwc_otg] 30 ? S< 0:00 [DWC Notificatio] 31 ? S 0:00 [kworker/u:1] 32 ? S 0:01 [mmcqd/0] 33 ? S 0:00 [jbd2/mmcblk0p2-] 34 ? S< 0:00 [ext4-dio-unwrit] 133 ? S 0:00 [flush-179:0] 141 ? Ss 0:00 udevd --daemon 260 ? S 0:00 udevd --daemon 267 ? S< 0:00 [cfg80211] 268 ? S 0:00 udevd --daemon 1153 ? S 0:00 [kworker/0:2] 1675 ? S 0:00 /usr/sbin/ifplugd -i eth0 -q -f -u0 -d10 -w -I 1676 ? S 0:00 /usr/sbin/ifplugd -i wlan0 -q -f -u0 -d10 -w -I 1679 ? S 0:00 /usr/sbin/ifplugd -i lo -q -f -u0 -d10 -w -I 1699 ? S 0:00 [kworker/u:2] 1732 ? Ss 0:00 /sbin/wpa_supplicant -s -B -P /var/run/wpa_supplicant.wlan0.pid -i wlan0 -W -D nl80211,wext -c /etc/wpa_supplicant/wpa_supplicant.conf 1828 ? Ss 0:00 /sbin/wpa_cli -B -P /var/run/wpa_action.wlan0.pid -i wlan0 -p /var/run/wpa_supplicant -a /sbin/wpa_action 2022 ? S 0:00 /bin/sh /sbin/wpa_action wlan0 CONNECTED 2038 ? S 0:00 /sbin/ifup -v --force wlan0=default 2052 ? S 0:00 /usr/sbin/hostapd /opt/piratebox/conf/hostapd.conf 2066 ? S 0:00 dhclient -1 -v -pf /run/dhclient.wlan0.pid -lf /var/lib/dhcp/dhclient.wlan0.leases wlan0 2068 ? S 0:00 [kworker/0:3] 2069 ? S 0:00 [kworker/0:4] 2108 ? Sl 0:00 /usr/sbin/rsyslogd -c5 2111 ? S 0:00 /usr/sbin/ifplugd -i mon.wlan0 -q -f -u0 -d10 -w -I 2140 ? S 0:00 /usr/sbin/dnsmasq -x /var/run/piratebox_dnsmasq.pid -C /opt/piratebox/conf/dnsmasq_generated.conf 2181 ? S 0:01 python /opt/piratebox/bin/droopy -H piratebox.lan -d /opt/piratebox/share/Shared -c -m 8080 2207 ? S 0:00 /usr/sbin/lighttpd -f /opt/piratebox/conf/lighttpd/lighttpd.conf 2251 ? Ss 0:00 /usr/sbin/cron 2288 ? Ss 0:00 /usr/bin/dbus-daemon --system 2331 ? Ss 0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 102:104 2336 ? S 0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 102:104 2363 ? Ss 0:00 /usr/sbin/sshd 2393 ? Ss 0:00 /usr/sbin/thd --daemon --triggers /etc/triggerhappy/triggers.d/ --socket /var/run/thd.socket --pidfile /var/run/thd.pid --user nobody /dev/input/event0 2405 tty1 Ss 0:00 /bin/login -- 2406 tty2 Ss+ 0:00 /sbin/getty 38400 tty2 2407 tty3 Ss+ 0:00 /sbin/getty 38400 tty3 2408 tty4 Ss+ 0:00 /sbin/getty 38400 tty4 2409 tty5 Ss+ 0:00 /sbin/getty 38400 tty5 2410 tty6 Ss+ 0:00 /sbin/getty 38400 tty6 2411 ? Ss+ 0:00 /sbin/getty -L ttyAMA0 115200 vt100 2413 ? Sl 0:00 /usr/sbin/console-kit-daemon --no-daemon 2480 ? Sl 0:00 /usr/lib/policykit-1/polkitd --no-debug 2490 tty1 S 0:00 -bash 2500 tty1 R+ 0:00 ps ax
Re: Raspberry Pi PirateBox November 24, 2012 08:56PM |
Admin Registered: 13 years ago Posts: 4,680 |
Re: Raspberry Pi PirateBox November 25, 2012 12:22AM |
Registered: 12 years ago Posts: 6 |
sudo apt-get remove network-manager
Re: Raspberry Pi PirateBox November 25, 2012 11:28AM |
Admin Registered: 13 years ago Posts: 4,680 |
Re: Raspberry Pi PirateBox December 01, 2012 06:11PM |
Registered: 12 years ago Posts: 6 |
Re: Raspberry Pi PirateBox December 01, 2012 11:14PM |
Admin Registered: 13 years ago Posts: 4,680 |
Re: Raspberry Pi PirateBox January 20, 2013 05:51AM |
Re: Raspberry Pi PirateBox January 20, 2013 10:18AM |
Admin Registered: 13 years ago Posts: 4,680 |
Re: Raspberry Pi PirateBox February 24, 2013 08:46PM |
Re: Raspberry Pi PirateBox February 24, 2013 09:05PM |
Admin Registered: 13 years ago Posts: 4,680 |
Re: Raspberry Pi PirateBox February 25, 2013 08:07AM |
Admin Registered: 13 years ago Posts: 4,680 |
### BEGIN INIT INFO # Provides: piratebox # Required-Start: $all # Required-Stop: $network $local_fs # Default-Start: 2 3 4 5 # Default-Stop: 1 0 6 # Short-Description: All services around piratebox # Description: Based on /opt/piratebox/conf/piratebox.conf starts: * DNSMASQ * HOSTAPD * DROOPY * WLAN-config * CHAT ### END INIT INFO
sudo update-rc.d piratebox remove sudo update-rc.d piratebox defaults
Re: Raspberry Pi PirateBox February 25, 2013 02:28PM |
Registered: 11 years ago Posts: 3 |
Re: Raspberry Pi PirateBox February 25, 2013 02:31PM |
Admin Registered: 13 years ago Posts: 4,680 |
Re: Raspberry Pi PirateBox February 25, 2013 09:08PM |
Admin Registered: 13 years ago Posts: 4,680 |
Re: Raspberry Pi PirateBox February 26, 2013 07:28PM |
Admin Registered: 13 years ago Posts: 4,680 |
Language: PHPcd /tmp sudo wget http://freeshell.de/~matze/piratebox/piratebox_setup_wlan.sh.patch sudo wget http://freeshell.de/~matze/piratebox/piratebox.conf.patch sudo patch /opt/piratebox/bin/piratebox_setup_wlan.sh < piratebox_setup_wlan.sh.patch sudo patch /opt/piratebox/conf/piratebox.conf < piratebox.conf.patch
Re: Raspberry Pi PirateBox March 04, 2013 07:27PM |
Registered: 11 years ago Posts: 17 |
Re: Raspberry Pi PirateBox March 04, 2013 07:56PM |
Admin Registered: 13 years ago Posts: 4,680 |
I fixed the note above and added the .patch .Quote
I've got the same problem with my Pi based Piratebox not setting up IP correctly - at the end of the boot sequence you should get the message My IP address is 192.168.1.79 192.168.77.1 When clients can't connect the second IP address is missing. I've downloaded the patch above (had to use sudo in front of both 'wget...' lines and add .patch at the end of ....setup_wlan.sh to get the patching to run) but it is still failing to setup IP correctly. I have tried an Alfa AWUS036NH wifi and a WIPI usb adapter (both powered via a usb hub) and both fail 4 times out of 5
#! /bin/sh # /etc/init.d/piratebox ### BEGIN INIT INFO # Provides: piratebox # Required-Start: $all # Required-Stop: $network $local_fs # Default-Start: 2 3 4 5 # Default-Stop: 6 1 0 # Short-Description: All services around piratebox # Description: Based on /opt/piratebox/conf/piratebox.conf starts: * DNSMASQ * HOSTAPD * DROOPY * WLAN-config * CHAT ### END INIT INFOand run
update-rc.d remove piratebox update-rc.d piratebox defaults
Yes, currently there is no hostname based redirect. The "faulty code" was an idea to improve one of the iframes (droopy)... it is not active.Quote
On another problem the piratebox is brilliant at presenting the index.html frontpage to anyone who logs on to the piratebox wifi SSID but on all the browsers/devices I've tried it leaves the original homepage url (eg www.yahoo.co.uk) at the top of the page rather than putting up the new lan url. Is that anything to do with the faulty code in the function fnGetDomain(url) my editor is reporting in index.html ?
Re: Raspberry Pi PirateBox March 05, 2013 02:45PM |
Registered: 11 years ago Posts: 17 |
Re: Raspberry Pi PirateBox March 05, 2013 03:32PM |
Admin Registered: 13 years ago Posts: 4,680 |
Re: Raspberry Pi PirateBox March 05, 2013 05:41PM |
Registered: 11 years ago Posts: 17 |
Re: Raspberry Pi PirateBox March 05, 2013 06:23PM |
Admin Registered: 13 years ago Posts: 4,680 |
Re: Raspberry Pi PirateBox March 05, 2013 07:50PM |
Admin Registered: 13 years ago Posts: 4,680 |
Re: Raspberry Pi PirateBox March 05, 2013 08:07PM |
Registered: 11 years ago Posts: 17 |
Re: Raspberry Pi PirateBox March 05, 2013 08:13PM |
Admin Registered: 13 years ago Posts: 4,680 |
Re: Raspberry Pi PirateBox March 05, 2013 08:30PM |
Admin Registered: 13 years ago Posts: 4,680 |
auto lo iface lo inet loopback iface eth0 inet **manual** iface wlan0 inet manual pre-up ifconfig $IFACE up post-down ifconfig $IFACE down ### disalbed for PirateBox #allow-hotplug wlan0 #wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf #iface default inet dhcp
pre-up ifconfig $IFACE up post-down ifconfig $IFACE down
Re: Raspberry Pi PirateBox March 05, 2013 09:08PM |
Registered: 11 years ago Posts: 17 |
Re: Raspberry Pi PirateBox March 06, 2013 07:11AM |
Admin Registered: 13 years ago Posts: 4,680 |
Re: Raspberry Pi PirateBox March 06, 2013 12:20PM |
Registered: 11 years ago Posts: 17 |