[SOLVED] I can't run X window without network connectivity...
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I can't run X window without network connectivity...
I can't run X window without network connectivity in Slackware 14.0
Previous versions allowed me to run X window without the internet being up and running. Is this by design? Is there a work-around to allow me to run X without requiring internet connectivity?
Who claims that it is X that needs Internet? Could it be something that needs X, that needs the Internet? I'd sniff tru the applications that run in your X session and check which ones need the Internet.
By the way, is there a profound reason NOT to connect to the Net? Security can be enforced by other means...
Assuming you start Slackware at run level 3, what happens when you type "startx"?
Please at least attach /var/log/X0.log to your next post, otherwise it will be very difficult to diagnose your problem.
As far as I know there is no relation between an internet connection and X.
The command "startx" will not run unless the Internet is connected.
The file /var/log/x0.log is not created if "startx" is typed
and the internet is not connected. Slackware 14.0 just
hangs the console until ^C is typed if this is tried.
I ran into a similar problem a while back, and it was because I had DISPLAY=localhost:0 set in my environment. Changing this to DISPLAY=:0 fixed it. I don't know if that's your problem, but perhaps you could check.
I ran into a similar problem a while back, and it was because I had DISPLAY=localhost:0 set in my environment. Changing this to DISPLAY=:0 fixed it. I don't know if that's your problem, but perhaps you could check.
I can find no references to Display or Localhost in my environment table.
Does startx hang forever or does X start eventually (after 10+ seconds)? If you run 'hostname -f' does it take a while to complete while plain 'hostname' completes immediately? That was the cause of the problem for me when I found X would not start promptly when the network was down. I just edited /usr/bin/startx to replace 'hostname -f' with 'hostname'.
Does startx hang forever or does X start eventually (after 10+ seconds)? If you run 'hostname -f' does it take a while to complete while plain 'hostname' completes immediately? That was the cause of the problem for me when I found X would not start promptly when the network was down. I just edited /usr/bin/startx to replace 'hostname -f' with 'hostname'.
Geoff.
That was indeed the work-around. Remove the -f from `hostname -f` in startx
This begs the question "Why does `hostname -f` complete instantly in Slackware 13.37 and hang for so long in Slackware 14.0?"
Last edited by Yaakov Ben-Avraham; 05-20-2013 at 06:57 PM.
This begs the question "Why does `hostname -f` complete instantly in Slackware 13.37 and hang for so long in Slackware 14.0?"
This news thread suggests it might be because hostname on 14.0 supports IPv6 whereas 13.37 and before doesn't? As my /etc/hosts doesn't have an IPv6 entry for localhost, hostname was doing a DNS lookup.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.