Recommend a wifi dongle for access point setup
|
16th Nov, 2013, 12:46 AM
Post: #16
|
|||
|
|||
RE: Recommend a wifi dongle for access point setup
@Wrechid
the setting you quoted is relevant only for creating ad-hoc network. for this to work you even don't need to install hostapd (and is also AP feature is not needed). so once you enter this into interfaces (assuming your wifi is on the list of "ifconfig" as wlan0), you just restart the interface (ifdown wlan0; ifup wlan0) - also assuming it is not in collision with your eth0 network while testing (if you have ethernet connected). as soon as you restart the interface you should see wifi MYCARXBIAN in the list of available network from other devices. Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
16th Nov, 2013, 09:26 AM
Post: #17
|
|||
|
|||
RE: Recommend a wifi dongle for access point setup
ok, i'm trying to figure this out as hard as i can... this is what i have in /etc/network/interfaces, on a clean install of XBian with the lines you mentioned already added...
(16th Nov, 2013 12:46 AM)mk01 Wrote: auto lo heres "ifconfig", (16th Nov, 2013 12:46 AM)mk01 Wrote: eth0 Link encap:Ethernet HWaddr b8:27:eb:2b:1d:19 and when i restart the interface i get this, (16th Nov, 2013 12:46 AM)mk01 Wrote: root@xbian:~# ifdown wlan0 this is the first error i've seen... i'm using the Edimax EW-7811Un dongle... i'm gonna dig out my other dongles and try some trial and error... ok, i've tried 3 other dongles... only one of them would initialize but would not allow me to connect to my router... it is a Belkin F9L1001v1, but still can't broadcast the ssid for the ad-hoc settings... :/ when i do a "ifdown wlan0; ifup wlan0" on the belkin dongle, i don't get any errors... i never had any luck with the belkin dongle on RBMC... |
|||
16th Nov, 2013, 10:53 AM
Post: #18
|
|||
|
|||
RE: Recommend a wifi dongle for access point setup
well... i found the problem... its not the ad-hoc settings... they are working good... the problem is that android does not support ad-hoc, so the network will not show up in the settings on android... i had a thought and plugged the belkin dongle in my desktop pc and it seen the MYCARXBIAN network right away... so your settings for ad-hoc is working well... sorry to put you through all that...
now i need to find a way to get infrastructure or access point mode to work in XBian... :/ |
|||
16th Nov, 2013, 10:56 AM
Post: #19
|
|||
|
|||
RE: Recommend a wifi dongle for access point setup
@Wrechid
oh, maybe I wasn't clear enough how to edit the interfaces file. you can't just add it to the config file, you have to replace current wlan0 relevant lines (and also encryption settings). so you interfaces should look like: Code: auto lo I don't know about android, can't test. But if you have root access, you should be able to configure it manually maybe. Can't help there. And I would be happy to help with the AP mode, but I'm not sure if I have dongle with AP support. Where can I get this info? I have dongles with chipsets: rt: 2570, rf: 0005, rev: 0005 zd1211rw RT chipset 5390, rev 0502 detected (RF chipset 5370 detected) Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
16th Nov, 2013, 01:33 PM
Post: #20
|
|||
|
|||
RE: Recommend a wifi dongle for access point setup
I really appreciate your interest... As for checking the dongle for AP, I used "iw utility" on RBMC... On Xbian it didn't seem to work, as if iw utility is not installed... The command would be "iw list"... Do a search for iw utility for more info...
I have a feeling that this how-to is a good place to start, http://raspberry-at-home.com/hotspot-wifi-access-point/ There's a simple script at the end of how-to that I been trying... Tomorrow I will try do the how-to without the script and see if a error comes up as I go... When I use the script, it appears to have completed, but when I reboot Xbian, it doesn't boot... Just leaves me at a black screen... |
|||
16th Nov, 2013, 01:45 PM
Post: #21
|
|||
|
|||
RE: Recommend a wifi dongle for access point setup
@Wrechid
I never realized that iw is checking this ability and informing about it. will check. ok, of course it is listing that… just I never focused on that lines. if I get this output, should it be ok? Supported interface modes: * IBSS * managed * AP * AP/VLAN * WDS * monitor * mesh point Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
16th Nov, 2013, 01:55 PM
Post: #22
|
|||
|
|||
RE: Recommend a wifi dongle for access point setup
Doing research, they say we would need master mode or ap mode in the dongle to make this work...
As for getting ad-hoc to work on android, I do have root privilege and have tried a couple different methods... Seems that I would have to use a custom rom with ad-hoc enabled in the kernel... As my current rom doesn't have it... :/ (16th Nov, 2013 01:45 PM)mk01 Wrote: @Wrechid Yup, it supports AP mode... |
|||
16th Nov, 2013, 03:34 PM
Post: #23
|
|||
|
|||
RE: Recommend a wifi dongle for access point setup
Jacek, at that how-to link wrote me back and said:
Quote:Hi, but would need to check the interfaces file before you reboot, since it wouldn't reboot for me... I'll look at it when I get home... Could errors in the interfaces file cause it to not boot...? |
|||
16th Nov, 2013, 03:39 PM
Post: #24
|
|||
|
|||
RE: Recommend a wifi dongle for access point setup
NO
definitely not "black screen". @Wrechid ok, I tried and succeeded (with the script). changes I needed to do manually: 1) edit /etc/network/interfaces to look like this: Code: auto eth0 lo then without reboot I executed those commands: Code: ifdown wlan0; ifup wlan0 and I connected to AP and was able to browse internet btw: I'm not sure if Beta1 or 1.1 had NAT support in kernel, … after you starts the wlan0 with new config, you can check with: Code: iptables -L -n -t nat and you should get this output Code: Chain PREROUTING (policy ACCEPT) Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
16th Nov, 2013, 04:21 PM
Post: #25
|
|||
|
|||
RE: Recommend a wifi dongle for access point setup
NICE...! Now I can't wait to get home and try it out... I can't thank you enough...
I think it would be really Kool to see Xbian or any XBMC distro with the AP option somehow implement into the build, and edit it's settings from within XBMC... Oh, and it's good info, to know that errors in the interface file doesn't cause boot problems... Thanx again... I'm not for sure which one I have, just downloaded it 5 or 6 days ago from the main site... |
|||
16th Nov, 2013, 05:56 PM
Post: #26
|
|||
|
|||
RE: Recommend a wifi dongle for access point setup
@Wrechid
no boot problems, but still parsing of it is not ideal, because in case of any line being wrong, WHOLE interfaces file is not loaded thus no network at all (you can have just error with wlan0 configuration, but even your eth0 wont get loaded). that's why I sent you the steps how to re-start the setup without restart. as this will not make your eth0 inaccessible. but reboot would make your RPI inaccessible from net. Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
16th Nov, 2013, 08:51 PM
Post: #27
|
|||
|
|||
RE: Recommend a wifi dongle for access point setup
Yea, I have had that issue a few times with the interfaces file... Hehe... Had to re install Xbian a few times now, just to gain network access again... The reloading method is a great help in that case... You've been a big help, I've learned a lot about Linux and networking lately...
|
|||
17th Nov, 2013, 07:08 AM
Post: #28
|
|||
|
|||
RE: Recommend a wifi dongle for access point setup
hey mk01...
i've gotten much further now... i had to change the channel to 6 in /etc/hostapd/hostapd.conf due to authentication errors... i have 2 other devices here that was causing interference... the other problem i'm have is i can't start the "ISC DHCP server"... i get this error, [FAIL] Starting ISC DHCP server: dhcpd[....] check syslog for diagnostics. ... failed! failed! even after a reboot... i checked the /var/log/syslog and theres nothing in there except logs from Sept 6... is there another syslog file...? its not to important since i can set phone to static and it does work... but i like a challenge... seeing the changes you made in the interface file does make a lot of sense... also the beta 1.1 is the one i have and it does have NAT support in the kernel... i had the right syslog file, just needed to refresh WinSCP... :/ this is the error Quote:Nov 16 21:20:13 xbian wpa_supplicant[2576]: nl80211: 'nl80211' generic netlink not found i think it goes back to the /etc/dhcp/dhcpd.conf file... this is what i have in mt dhcpd.conf file, Quote:ddns-update-style none; |
|||
17th Nov, 2013, 08:09 AM
Post: #29
|
|||
|
|||
RE: Recommend a wifi dongle for access point setup
this looks like the interface is not up.
what you get on "ifconfig"? is wlan0 listed? do you have correct firmware file loaded? Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
17th Nov, 2013, 08:34 AM
Post: #30
|
|||
|
|||
RE: Recommend a wifi dongle for access point setup
heres my current ifconfig:
Quote:eth0 Link encap:Ethernet HWaddr b8:27:eb:2b:1d:19 i'm not sure about the firmware, can you point me in that direction...? ok, just looked into firmware updating, and no... i've never updated the firmware... i've seen it mentioned in many different cases but firmware on different devices can be risky, so i avoided it till it restricted me from my projects... looking into updating the firmware there seems to be many different methods... which way do you recommend...? |
|||
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread: | Author | Replies | Views: | Last Post | |
WIFI Dongle Setup? | TheDutypaid | 4 | 13,830 |
21st Aug, 2018 07:36 PM Last Post: alecp |
|
Issue with Official Raspberry Pi Wifi Dongle | nmrcantao | 1 | 6,577 |
9th Jan, 2016 11:44 PM Last Post: IriDium |
|
Wifi access but no internet | tobynz | 1 | 7,459 |
19th Jan, 2014 01:00 AM Last Post: IriDium |
|
[SOLVED] Wi-Fi (Wi-Pi) dongle setup | cpm | 31 | 124,426 |
20th Apr, 2013 07:33 AM Last Post: Nachodogmtl |
|
Wifi dongle help | Beans.Jb | 34 | 87,563 |
12th Mar, 2013 09:02 PM Last Post: CurlyMo |
|
Wifi N Dongle | Beanz | 3 | 13,236 |
1st Feb, 2013 03:40 AM Last Post: 1mile |
|
Ralink WIFI dongle not working | knepe | 1 | 9,778 |
16th Dec, 2012 11:29 PM Last Post: CurlyMo |