Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

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?

share|improve this question

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

1  
Try following the instructions on the Arch Linux Wireless Network guide. –  Malvineous Jul 14 '12 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 '12 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! –  Bryan Dunsmore Jul 14 '12 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 '12 at 8:15

2 Answers 2

up vote 4 down vote accepted

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.

share|improve this answer
    
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. –  Exeleration-G Jan 13 '13 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 :) –  Lasse Christiansen - sw_lasse Jan 13 '13 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 :-) –  Exeleration-G Jan 13 '13 at 23:21
    
@Exeleration-G Okay, thanks ;) I will keep it this way for now then :) –  Lasse Christiansen - sw_lasse Jan 13 '13 at 23:29
    
running through it now but if it works, thanks! –  ACBurk Jan 21 '13 at 22:45

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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