18

I would like to connect to my PI through wireless USB dongle, how can I setup an AP or an Ad-Hoc under Arch Linux?

5
  • 1
    Try following the instructions on the Arch Linux Wireless Network guide.
    – Malvineous
    Jul 14, 2012 at 13:22
  • 1
    This article tells how to setup an Ad-Hoc network: wiki.archlinux.org/index.php/Ad-hoc_networking
    – ricochet1k
    Jul 14, 2012 at 18:48
  • 1
    Answerers: Please don't just provide a link to a Wiki or a similar website; always provide a summary on Raspberry Pi to help combat link rot. Thank you for your cooperation!
    – user46
    Jul 14, 2012 at 22:02
  • @iUngi I cant see why you deleted this post, so I have reopened it. If you have found the answer on your own, please answer the question yourself.
    – Jivings
    Jul 30, 2012 at 8:15
  • For those using the Edimax Nano, this article has instructions for creating an AP: daveconroy.com/…
    – Robin
    Dec 14, 2015 at 19:15

3 Answers 3

6

I know this question asks for instructions on Arch Linux, but since I have been struggling for several days with the exact same issue on Raspbian Wheezy I thought it might be helpful if I shared my solution anyway.

Basically, I ended up creating a solution where my Raspberry Pi (RPi) tries to connect to one of its known wireless networks, and if that do not succeed (WiFi is not in range or the DHCP is not leasing), the RPi creates an encrypted DHCP-enabled ad-hoc network instead. In that way, I can always access the RPi through SSH no matter where the RPi is located.

I use wpa_supplicant for managing the wireless WPA2 connections, and iwconfig for creating the encrypted ad-hoc network (with dhcpd for managing IP leases on the ad-hoc network).

I have compiled a complete tutorial on this subject which can be found here: http://lcdev.dk/2012/11/18/raspberry-pi-tutorial-connect-to-wifi-or-create-an-encrypted-dhcp-enabled-ad-hoc-network-as-fallback/

Hope it helps someone.

4
  • 1
    Hello Lasse, it's better to copy this tutorial to this answer, instead of just linking to it. Of course, you may keep the credit for it by keeping the link at the top or bottom of your answer. Jan 13, 2013 at 22:33
  • 1
    @Exeleration-G Hi, thanks for your advice - I thought of doing that, but the tutorial is quite long, so I came to the conclusion that it would be best to simply refer it. However, if I can get you to take a look at the length of the post and asses if I still should include it here, please reply and I will include it in case :) Jan 13, 2013 at 23:05
  • Hmm, yes. I'm sorry, I just took a glance over your tutorial and didn't see how long it really was. It's indeed really long :D. Maybe better to keep it this way :-) Jan 13, 2013 at 23:21
  • @Exeleration-G Okay, thanks ;) I will keep it this way for now then :) Jan 13, 2013 at 23:29
2

The easiest way (in my opinion) is to use the create_ap script as linked in: https://wiki.archlinux.org/index.php/Software_Access_Point

0

For setting up a Pi as a wifi access point try my site at www.pi-point.co.uk, which as long as your wifi adaptor supports AP mode should hopefully get you sorted.

I know this isn't for ARCH but hopefully it will give you all the clues you need.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.