LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-19-2011, 08:31 PM   #1
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
No More Automatic Network connection.


I am running Debian Squeeze on my net book ( ASUS 1000PE ) with an Atheros wireless nic. It has been running fine for months automatically connecting during boot to my hidden network but all of a sudden no dice.

If I use the Gnome network manager and "connect to a hidden network" and I am all set but when I am at the command prompt ( which is how I have it set to boot to) it is a few more steps. How can I get it to automatically load. I did not have any scripts set up before so I assume it is a service I need to turn back on that was turned off in error.

Any ideas ?
 
Old 04-20-2011, 12:46 PM   #2
Sjonnie48
Member
 
Registered: Jun 2005
Location: Earth
Distribution: Ubuntu10.04
Posts: 308

Rep: Reputation: 43
Replace Gnome network manager with wicd. Works great.
 
Old 04-20-2011, 12:47 PM   #3
savona
Member
 
Registered: Mar 2011
Location: Bellmawr, NJ
Distribution: Red Hat / Fedora
Posts: 195

Rep: Reputation: 50
What are the "few steps" you need to perform to get it to connect?
 
Old 04-20-2011, 12:55 PM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
I'm not running debian, but I set up my network with the /etc/network/interfaces file. Whatever is available comes up at boot.

Here's mine:
Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
broadcast 10.255.255.255
address 10.0.0.8
netmask 255.255.255.0
gateway 10.0.0.2
# These settings are for a 192.168.0.1 network
# broadcast 192.168.0.255
# address 192.168.0.8
# netmask 255.255.255.0
# gateway 192.168.0.1


auto wlan0
iface wlan0 inet static
broadcast 10.0.0.255
address 10.0.0.8
netmask 255.255.255.0
gateway 10.0.0.2
wpa-passphrase itsasecret
wpa-ssid itishidden
wireless-channel 11
The auto makes it come up at boot.

If you want dhcp, not static (remember to update /etc/resolv.conf if you are using static IP) Then just use
iface wlan0 inet dhcp instead of static and no need for broadcast, netmask, gateway etc entries.

See man interfaces
 
Old 04-20-2011, 07:18 PM   #5
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Original Poster
Rep: Reputation: 103Reputation: 103
Thank You for all of the replies. As far as the extra steps in the command line -->

Quote:
1. Get a root prompt. Either sudo su, or boot to single user (recovery) mode. Just don’t do that, select netroot, then get bored and hit Alt-F1 for a console 1. For some reason, that makes the machine very unhappy and so your wireless hardware probably will complain about device busy in step 2. So don’t do that.
2. Run iwlist scanning, and check your card can see the wireless network in question
3. If it can, run wpa_passphrase [your-wireless-network-name] > wpa.conf
(eg wpa_passphrase pegasus > wpa.conf). The prompt will wait for you to enter a passphrase. Do this and hit enter.
4. Run wpa_supplicant. Replace wext with the correct wireless driver (which is probably wext, but run wpa_supplicant --help to check) and wlan0 with your wireless interface
5. wpa_supplicant -Dwext -iwlan0 -c/root/wpa.conf
6. If that works, you should see text to the effect of “successfully associated”. If not, try again with a different driver, make sure your passphrase is correct, and make sure your wireless interface is working properly.
7. Hit Ctrl+c, then the up arrow, then add a -B (for background) onto the end of the last command, thus: wpa_supplicant -Dwext -iwlan0 -c/root/wpa.conf -B
8. Run dhclient -r to release any DHCP leases you have.
9. Run dhclient wlan0 to get a new IP address. Substitute wlan0 for your wireless interface, of course.

I tried updating my /etc/network/interfaces but no dice.

During boot it would search but come up empty.

Tried:

Quote:

auto lo
iface lo inet loopback

auto wlan0
iface wlan0 dhcp
wpa-passphrase My Password
wpa-ssid My Network

Also when I had it this way I could not use the gui to connect to a hidden network until I switched back to ->
(default)

Quote:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp




Any Ideas ?
 
Old 04-21-2011, 02:09 AM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Quote:
Quote:

auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet dhcp
wpa-passphrase My Password
wpa-ssid My Network
You missed out the red bit.
You may have problems if your SSID or password have spaces, so please remove them.
 
Old 04-22-2011, 05:30 AM   #7
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Original Poster
Rep: Reputation: 103Reputation: 103
Thanks again for the reply.

I cleaned up my typo , double checked the password and still no dice.


Is there a software package outside of the driver that is needed ? I am guessing now that the last upgrade killed something i needed
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Any way to set up automatic network connection refresh in Puppy Linux 4.1.2? swellbarney Puppy 1 07-28-2009 03:41 PM
Wireless network connection is annoying. Linux router. Won't connect fast / automatic NOoBuntuLinux Linux - Networking 4 06-22-2009 12:25 AM
automatic wireless connection raport Linux - Software 6 02-15-2009 08:13 PM
automatic connection to network jiante Linux - Networking 7 07-27-2005 04:37 AM
Automatic connection to different hotspots quiescere Linux - Wireless Networking 1 06-03-2005 05:36 PM


All times are GMT -5. The time now is 04:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration