Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was following this to try and set up a usable hotspot for my S3 and XBox 360

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

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


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.