Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I was following this to try and set up a usable hotspot for my S3 and XBox 360 http://thenewbieblog.wordpress.com/2012/05/01/wifi-hotspot-setup-on-ubuntu/

Now when I go into Network>Wireless nothing shows up and the hotspot option no longer works there. Two things I'd like to do: 1) Restore my laptops ability to use wifi 2) Create a hotspot that the two devices can connect to at the same time

Not sure what other info should be provided so feel free to ask.

share|improve this question

1 Answer 1

This should undo anything of any significance that you did following that blog post:

sudo apt-get purge hostapd dhcp3-server

echo "auto lo
iface lo inet loopback" | sudo tee /etc/network/interfaces

sudo perl -pi -e "s/^iptables.*//g" /etc/rc.local

Note that the second command is one command over two lines. Make sure you preserve the newline when you're pasting it in or you'll roger your /etc/network/interfaces file even more.

Anyway, run these and reboot.

share|improve this answer
    
What does tee do in this case? And what has the universal constant to do with perls? –  Henrik Sep 5 '12 at 0:25
    
tee is taking the piped echo and writing it to /etc/network/interfaces. Using tee is just a smart way to do that with sudo (consider the alternative). The perl command is just there to run a sed-like search and replace and save it back to the file. It strips out lines that start with iptables (there are none by default). –  Oli Sep 5 '12 at 0:33
    
Nice, thanks for the explaination! –  Henrik Sep 5 '12 at 12:19

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.