LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Shutting X server down causes WiFi to disconnect (https://www.linuxquestions.org/questions/ubuntu-63/shutting-x-server-down-causes-wifi-to-disconnect-723165/)

10110111 05-02-2009 11:05 AM

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?

tredegar 05-03-2009 04:08 AM

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.

10110111 06-25-2009 06:26 PM

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?

tredegar 06-26-2009 12:21 AM

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.

10110111 06-26-2009 07:43 AM

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?

tredegar 06-26-2009 11:21 AM

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?

10110111 08-24-2010 06:20 AM

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.


All times are GMT -5. The time now is 12:51 PM.