LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-02-2009, 11:05 AM   #1
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Rep: Reputation: 51
Shutting X server down causes WiFi to disconnect


How can i make ubuntu not disconnect from wifi and in fact not depend on X server when managing network?
 
Old 05-03-2009, 04:08 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Networking does not need X at all.

You should set up your networking details in the file /etc/network/interfaces
See man interfaces for the details.
 
Old 06-25-2009, 06:26 PM   #3
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Original Poster
Rep: Reputation: 51
Quote:
Networking does not need X at all.
Yes, i know this. But the problem is real. Though, i have found its reason: on X shutdown nm-applet gets SIGHUP or some other signal, and disconnects from network and quits. nohup doesn't help. How can i make it not disconnect?

Last edited by 10110111; 06-25-2009 at 06:28 PM.
 
Old 06-26-2009, 12:21 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Instead of using "network manager" to establish the connection, configure your /etc/network/interfaces file to do the work for you. Here's the part of mine that refers to my wireless interface which is eth1 :
Code:
auto eth1
iface eth1 inet dhcp
wpa-passphrase MyPassphrase
wpa-ssid MyRouter
My connection comes up at boot, and stays up until I turn the PC off.
Nobody needs to be logged in, and I don't need X running.

See man interfaces or the many guides on the web.
 
Old 06-26-2009, 07:43 AM   #5
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Original Poster
Rep: Reputation: 51
Quote:
configure your /etc/network/interfaces
I would do this (or something similar) on my LFS machine, but on Ubuntu i'd like to use some GUI way to do this Is there any?
 
Old 06-26-2009, 11:21 AM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
but on Ubuntu i'd like to use some GUI way to do this Is there any?
Sure, there's NM or (better) wicd

But as you have discovered, the GUI needs X and gets killed when you logout, so the connection is lost and you are back at post #1

Why do I think we are going round in circles here?
 
Old 08-24-2010, 06:20 AM   #7
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Original Poster
Rep: Reputation: 51
Quote:
Why do I think we are going round in circles here?
Because you assume i need a GUI daemon like network-manager while i just need a GUI front-end to /etc/network/interfaces.
Anyway, as i have searched, there don't appear to exist such front-ends, so i have configured interfaces manually.
 
  


Reply



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
Automatic Disconnect of Remote Users to an SSH server kaplan71 Linux - Server 2 05-07-2008 07:24 AM
Ubuntu hangs on WiFi disconnect dan.abramov Ubuntu 1 10-17-2007 05:04 PM
SSH on LAN - server disconnect geek745 Linux - Networking 13 02-28-2006 04:28 PM
all messenger msn yahoo disconnect on a linux platform server xnet_online Linux - Networking 0 03-30-2004 02:08 PM
nmap shutting down my wifi Enigma Linux - Wireless Networking 0 07-16-2003 06:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:19 PM.

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
Open Source Consulting | Domain Registration