Forum Replies Created
-
15. Januar 2016 at 0:24 #17880
Hi noop
It’s 22:21 here so I’ll hit the sack but at somepoint I will try some other dongles I have.
I’ll uninstall AP each time before putting in another dongle and trying again.
I’m gutted but just so thankful for all the effort and hours you have tried to help me sort this.
Thanks noop
I’ll see what happens with these and I’ll post it on here
14. Januar 2016 at 23:39 #17875pi@max2play ~ $ sudo /etc/init.d/hostapd stop
[ ok ] Stopping advanced IEEE 802.11 management: hostapd.
pi@max2play ~ $ sudo /usr/sbin/hostapd -d /etc/hostapd/hostapd.conf
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
drv->ifindex=3
l2_sock_recv==l2_sock_xmit=0x0x13cb638
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
Completing interface initialization
Mode: IEEE 802.11g Channel: 6 Frequency: 2437 MHz
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x1
RATE[3] rate=110 flags=0x1
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
Flushing old station entries
Deauthenticate all stations
+rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=2
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
Using interface wlan0 with hwaddr 80:1f:02:65:54:e4 and ssid ‚max2play‘
Deriving WPA PSK based on passphrase
SSID – hexdump_ascii(len=8):
6d 61 78 32 70 6c 61 79 max2play
PSK (ASCII passphrase) – hexdump_ascii(len=8): [REMOVED]
PSK (from passphrase) – hexdump(len=32): [REMOVED]
rtl871x_set_wps_assoc_resp_ie
rtl871x_set_wps_beacon_ie
rtl871x_set_wps_probe_resp_ie
urandom: Got 20/20 bytes from /dev/urandom
GMK – hexdump(len=32): [REMOVED]
Key Counter – hexdump(len=32): [REMOVED]
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
GTK – hexdump(len=16): [REMOVED]
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
rtl871x_set_key_ops
rtl871x_set_beacon_ops
rtl871x_set_hidden_ssid ignore_broadcast_ssid:0, max2play,8
rtl871x_set_acl
wlan0: Setup of interface done.
IEEE 802.1X: 14 bytes from 00:50:7f:a9:e9:a8
IEEE 802.1X data frame from not associated/Pre-authenticating STA
IEEE 802.1X: 99 bytes from 00:50:7f:a9:e9:a8
IEEE 802.1X data frame from not associated/Pre-authenticating STA
IEEE 802.1X: 155 bytes from 00:50:7f:a9:e9:a8
IEEE 802.1X data frame from not associated/Pre-authenticating STA14. Januar 2016 at 23:31 #17873As good as the last I hope 🙂
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback#auto eth0 # managed by ifplugd
iface eth0 inet dhcp
#hwaddress ether 1a:64:b6:bf:36:37allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
pre-up wpa_supplicant -B w -D wext -i wlan0 -c /opt/max2play/wpa_supplicant.conf
post-down killall -q wpa_supplicant#Accesspoint start
iface wlan0 inet static
address 192.168.189.1
#network 192.168.189.0
netmask 255.255.255.0
#gateway 192.168.189.1
up iptables-restore < /etc/hostapd/iptables.ap
#Accesspoint end14. Januar 2016 at 23:24 #17870sudo iwconfig
wlan0 IEEE 802.11bgn ESSID:“DrayTek“ Nickname:“<WIFI@REALTEK>“
Mode:Managed Frequency:2.437 GHz Access Point: 00:50:7F:A9:E9:A8
Bit Rate:150 Mb/s Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:****-****-****-****-****-****-****-**** Security mode:open
Power Management:off
Link Quality=100/100 Signal level=100/100 Noise level=0/100
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0lo no wireless extensions.
eth0 no wireless extensions.
pi@max2play ~ $
14. Januar 2016 at 23:05 #17868In the dbug section, this
#### DNSMASQ Installed ####
Status: install ok installed#### HOSTAPD Installed ####
Status: install ok installed#### WiFi Interface Installed ####
2#### DNSMASQ Running ####
5 S 109 7104 1 0 80 0 – 1612 poll_s ? 00:00:00 dnsmasq#### HOSTAPD Running ####
5 S 0 7087 1 0 80 0 – 502 poll_s ? 00:00:00 hostapd14. Januar 2016 at 22:55 #17865The LAN is discconnected…………..
The URL you gave me did’nt work
But this does, I can see all the max2pages
192.168.1.13
I guess because it’s going through my router, like it was when I thought it worked the other day
I say its going through my router as I can’s see another network on my iphone or ipad in the settings control
14. Januar 2016 at 22:36 #17859Hi noop
Ran the program and got to this line below, ran it and got what you see and it hung.
Furthermore, I can’t see 192.168.1.13, THIS is the max2play address, I could see it before…
Please note I have deleted my ip address of my router and out in brackets ( MY ROUTERS ADDRESS)
pi@max2play /usr/sbin $ sudo service networking restart
[….] Running /etc/init.d/networking restart is deprecated because it may not re-enable [warn interfaces … (warning).
[….] Reconfiguring network interfaces…Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/Listening on LPF/eth0/b8:27:eb:a8:50:d2
Sending on LPF/eth0/b8:27:eb:a8:50:d2
Sending on Socket/fallback
DHCPRELEASE on eth0 to (MY ROUTERS ADDRESS) port 67
Reloading /etc/samba/smb.conf: smbd only.14. Januar 2016 at 22:19 #17857Hi noop
This is what I got after AP installation, dbug is below
WiFi detected
Get:1 http://mirrordirector.raspbian.org wheezy Release.gpg [490 B]
Hit http://raspberrypi.collabora.com wheezy Release.gpg
Get:2 http://archive.raspberrypi.org wheezy Release.gpg [473 B]
Get:3 http://mirrordirector.raspbian.org wheezy Release [14.4 kB]
Hit http://raspberrypi.collabora.com wheezy Release
Get:4 http://archive.raspberrypi.org wheezy Release [17.6 kB]
Get:5 http://archive.mene.za.net wheezy Release.gpg [198 B]
Hit http://raspberrypi.collabora.com wheezy/rpi armhf Packages
Get:6 http://mirrordirector.raspbian.org wheezy/main armhf Packages [6909 kB]
Get:7 http://archive.mene.za.net wheezy Release [4445 B]
Get:8 http://archive.raspberrypi.org wheezy/main armhf Packages [136 kB]
Get:9 http://archive.mene.za.net wheezy/contrib armhf Packages [15.1 kB]
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en
Ign http://archive.mene.za.net wheezy/contrib Translation-en
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Get:10 http://mirrordirector.raspbian.org wheezy/contrib armhf Packages [23.6 kB]
Get:11 http://mirrordirector.raspbian.org wheezy/non-free armhf Packages [49.3 kB]
Get:12 http://mirrordirector.raspbian.org wheezy/rpi armhf Packages [592 B]
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en
Fetched 7171 kB in 32s (221 kB/s)
Reading package lists…
Reading package lists…
Building dependency tree…
Reading state information…
The following extra packages will be installed:
dnsmasq-base libnetfilter-conntrack3
Suggested packages:
resolvconf
The following NEW packages will be installed:
dnsmasq dnsmasq-base hostapd libnetfilter-conntrack3
0 upgraded, 4 newly installed, 0 to remove and 96 not upgraded.
Need to get 823 kB of archives.
After this operation, 1653 kB of additional disk space will be used.
Do you want to continue [Y/n]? Get:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libnetfilter-conntrack3 armhf 1.0.1-1 [32.2 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ wheezy/main dnsmasq-base armhf 2.62-3+deb7u3 [356 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian/ wheezy/main dnsmasq all 2.62-3+deb7u3 [16.3 kB]
Get:4 http://mirrordirector.raspbian.org/raspbian/ wheezy/main hostapd armhf 1:1.0-3+deb7u3 [419 kB]
Fetched 823 kB in 3s (217 kB/s)
Selecting previously unselected package libnetfilter-conntrack3:armhf.
(Reading database … 80678 files and directories currently installed.)
Unpacking libnetfilter-conntrack3:armhf (from …/libnetfilter-conntrack3_1.0.1-1_armhf.deb) …
Selecting previously unselected package dnsmasq-base.
Unpacking dnsmasq-base (from …/dnsmasq-base_2.62-3+deb7u3_armhf.deb) …
Selecting previously unselected package dnsmasq.
Unpacking dnsmasq (from …/dnsmasq_2.62-3+deb7u3_all.deb) …
Selecting previously unselected package hostapd.
Unpacking hostapd (from …/hostapd_1%3a1.0-3+deb7u3_armhf.deb) …
Processing triggers for man-db …
Setting up libnetfilter-conntrack3:armhf (1.0.1-1) …
Setting up dnsmasq-base (2.62-3+deb7u3) …
Setting up dnsmasq (2.62-3+deb7u3) …
Starting DNS forwarder and DHCP server: dnsmasq.
Setting up hostapd (1:1.0-3+deb7u3) …
Change hostapd-Binary to Edimax RTL8188CUS Chipset
update-rc.d: using dependency based boot sequencing
Stopping advanced IEEE 802.11 management: hostapd.
Starting advanced IEEE 802.11 management: hostapd.
Additional Configure Parameters to WiFi
Restarting DNS forwarder and DHCP server: dnsmasq.And this was in debug
#### DNSMASQ Installed ####
Status: install ok installed#### HOSTAPD Installed ####
Status: install ok installed#### WiFi Interface Installed ####
2#### DNSMASQ Running ####
5 S 109 7104 1 0 80 0 – 1612 poll_s ? 00:00:00 dnsmasq#### HOSTAPD Running ####
1 S 0 7087 1 0 80 0 – 502 poll_s ? 00:00:00 hostapd14. Januar 2016 at 21:53 #17855Hi Noop
Sorry I did’nt get back to you yesterday, the celebrations lasted longer than i anticipated.
Ok tonight started off bad and could be getting worse , hahahah
I just could’nt format my sd card…God knows why. It’s taken me nearly an hour of trying different sd cards all the same, ran the virus software, no problems.
I got it to format the card by running the format tool at the same time as the installation. And so far I have got this far and things seem ok.
I have done all you have said and before I went to the Pi to input the code you gave me I fired up my lan scanner and it sees the max2play url (192.168.1.13) and the edimax dongle (192.168.1.11). However, not sure if this is important, as well as it saying edimax, it also say max2play in the same description box.
And remember this is hooked into my lan at this point.Ok I ran the first line, no problem. Did the second one and got this
pi@max2play ~ $ cd /usr/sbin
pi@max2play /usr/sbin $ sudo rm -f hostapd
sudo: unable to resolve host max2play13. Januar 2016 at 10:16 #17825Hi Noop
I can’t thank you enough for your efforts and certainly no need to say sorry.
Ok, I will do this as soon as I can, but tonight it’s my mum’s birthday and its a big one so there’s a bit of a party on so I could be late back. But I will do my best as I’m really keen to get this going. And like Fred, I placed an order for an RT3570 last night…But not sure when it will be here, and if it does’nt work, I’ll use it for a player only, or something else, so no problem or loss.
Ok I’ll be back on the case as soon as I can
A12. Januar 2016 at 21:31 #17820Hi Fred
good to hear from you
Noop is the hero in this one by far, amazing effort he’s put in to a complete stranger.But you started it, so thanks for your bit too. Tell you what Fred, if your dongle does work regardless if we get this going in the meantime, would be so kind to let me, and noop I guess know.
A
12. Januar 2016 at 20:23 #17810hi noop
neat programme :-0
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
drv->ifindex=3
l2_sock_recv==l2_sock_xmit=0x0x1f24638
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
Completing interface initialization
Mode: IEEE 802.11g Channel: 6 Frequency: 2437 MHz
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x1
RATE[3] rate=110 flags=0x1
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
Flushing old station entries
Deauthenticate all stations
+rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=2
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
Using interface wlan0 with hwaddr 80:1f:02:65:54:e4 and ssid ‚max2play‘
Deriving WPA PSK based on passphrase
SSID – hexdump_ascii(len=8):
6d 61 78 32 70 6c 61 79 max2play
PSK (ASCII passphrase) – hexdump_ascii(len=10): [REMOVED]
PSK (from passphrase) – hexdump(len=32): [REMOVED]
rtl871x_set_wps_assoc_resp_ie
rtl871x_set_wps_beacon_ie
rtl871x_set_wps_probe_resp_ie
random: Got 19/20 bytes from /dev/random
random: Only 19/20 bytes of strong random data available from /dev/random
random: Not enough entropy pool available for secure operations
WPA: Not enough entropy in random pool for secure operations – update keys later when the first station connects
GMK – hexdump(len=32): [REMOVED]
Key Counter – hexdump(len=32): [REMOVED]
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
GTK – hexdump(len=16): [REMOVED]
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
rtl871x_set_key_ops
rtl871x_set_beacon_ops
rtl871x_set_hidden_ssid_ops
ioctl[RTL_IOCTL_HOSTAPD]: Invalid argument
wlan0: Setup of interface done.
random: Got 1/1 bytes from /dev/random
IEEE 802.1X: 14 bytes from 00:50:7f:a9:e9:a8
IEEE 802.1X data frame from not associated/Pre-authenticating STA
IEEE 802.1X: 99 bytes from 00:50:7f:a9:e9:a8
IEEE 802.1X data frame from not associated/Pre-authenticating STA
IEEE 802.1X: 155 bytes from 00:50:7f:a9:e9:a8
IEEE 802.1X data frame from not associated/Pre-authenticating STA
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
drv->ifindex=3
l2_sock_recv==l2_sock_xmit=0x0x1f24638
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
Completing interface initialization
Mode: IEEE 802.11g Channel: 6 Frequency: 2437 MHz
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x1
RATE[3] rate=110 flags=0x1
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
Flushing old station entries
Deauthenticate all stations
+rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=2
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
Using interface wlan0 with hwaddr 80:1f:02:65:54:e4 and ssid ‚max2play‘
Deriving WPA PSK based on passphrase
SSID – hexdump_ascii(len=8):
6d 61 78 32 70 6c 61 79 max2play
PSK (ASCII passphrase) – hexdump_ascii(len=10): [REMOVED]
PSK (from passphrase) – hexdump(len=32): [REMOVED]
rtl871x_set_wps_assoc_resp_ie
rtl871x_set_wps_beacon_ie
rtl871x_set_wps_probe_resp_ie
random: Got 19/20 bytes from /dev/random
random: Only 19/20 bytes of strong random data available from /dev/random
random: Not enough entropy pool available for secure operations
WPA: Not enough entropy in random pool for secure operations – update keys later when the first station connects
GMK – hexdump(len=32): [REMOVED]
Key Counter – hexdump(len=32): [REMOVED]
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
GTK – hexdump(len=16): [REMOVED]
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
rtl871x_set_key_ops
rtl871x_set_beacon_ops
rtl871x_set_hidden_ssid_ops
ioctl[RTL_IOCTL_HOSTAPD]: Invalid argument
wlan0: Setup of interface done.
random: Got 1/1 bytes from /dev/random
IEEE 802.1X: 14 bytes from 00:50:7f:a9:e9:a8
IEEE 802.1X data frame from not associated/Pre-authenticating STA
IEEE 802.1X: 99 bytes from 00:50:7f:a9:e9:a8
IEEE 802.1X data frame from not associated/Pre-authenticating STA
IEEE 802.1X: 155 bytes from 00:50:7f:a9:e9:a8
IEEE 802.1X data frame from not associated/Pre-authenticating STA12. Januar 2016 at 19:05 #17805Hi again noop,
Thanks for this
I’ve run the commands twice
Each time they come up with the same thing
Ioctl[RTL_IOCTL_HOSTAPD]: Invalid argumentAnd the cut and paste issue
I am writing the commands by looking at the Pi command prompt via a monitor on the Pi HDMI
The monitor is also attached to my pic and I can switch between them, depending what I’m doing but to confuse things even more, I’m writing this on my iPad all because I have to keep moving the dongle for the wireless keyboard between the Pi and Pc.
The bottom line is I know how to do cut and paste, but not in this situation going from a Linux command prompt to a web page, hope this makes sense.Incidentally , my two „Pi“ dongles have arrived
-