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

Notices


Reply
  Search this Thread
Old 05-28-2017, 12:23 PM   #1
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
startx delay


14.2 amd64 inittab runlevel 3 kde4

Why is there a delay with startx whenever the internet connection is down? Is kde configured by default to call home for some reason? Not sure it's relevant but I have X configured not to listen on tcp.

As soon as I log in netstat -a | grep tcp | grep -v domain returns this:
Code:
tcp        0      0 *:1714                  *:*                     LISTEN     
tcp        0      0 localhost:ipp           *:*                  LISTEN     
tcp        0      0 localhost:rndc          *:*                 LISTEN     
tcp6       0      0 ::1:ipp                 [::]:*                  LISTEN     
tcp6       0      0 ::1:rndc                [::]:*                  LISTEN
1714 is kde-connect
ipp is my printer, connected by ethernet to my router
rndc is named

Last edited by Gerard Lally; 05-28-2017 at 12:25 PM.
 
Old 05-28-2017, 12:32 PM   #2
Conrad_Troutman
LQ Newbie
 
Registered: Mar 2013
Location: Sweden
Distribution: Slackware
Posts: 12

Rep: Reputation: Disabled
It's caused by hostname being called with the -f option (line 159 in startx on slackware-current). When I've had this problem in the past I just changed that line to call `cat /etc/HOSTNAME` instead of the hostname command. It may not be a very smart solution, I don't know.
 
2 members found this post helpful.
Old 05-28-2017, 01:10 PM   #3
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Original Poster
Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by Conrad_Troutman View Post
It's caused by hostname being called with the -f option (line 159 in startx on slackware-current). When I've had this problem in the past I just changed that line to call `cat /etc/HOSTNAME` instead of the hostname command. It may not be a very smart solution, I don't know.
That'll do me. Thank you.
 
Old 05-28-2017, 01:11 PM   #4
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
I map the hostname to 127.1.1.1 in /etc/hosts to avoid this sort of thing.
Code:
# /etc/hosts ###########################################################
#
#   Hostname to address mappings for the TCP/IP subsystem. 
#

# loopback
127.0.0.1               localhost
::1                     localhost

# Hostname
127.1.1.1               ws1.my.domain ws1

# my.domain: gateway
192.168.0.1             gw.my.domain gw

# my.domain: static addresses
192.168.0.2             s1.my.domain s1

# my.domain: dhcp pool
192.168.0.201           d201.my.domain d201
192.168.0.202           d202.my.domain d202
192.168.0.203           d203.my.domain d203
192.168.0.204           d204.my.domain d204
192.168.0.205           d205.my.domain d205
192.168.0.206           d206.my.domain d206
192.168.0.207           d207.my.domain d207
192.168.0.208           d208.my.domain d208
192.168.0.209           d209.my.domain d209

######################################################## End of hosts. #
The wireless interface actually doing all the work will have one of the dhcp addresses assigned via wpa_supplicant/dhcpcd.
 
1 members found this post helpful.
Old 05-28-2017, 01:55 PM   #5
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Original Poster
Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by GazL View Post
I map the hostname to 127.1.1.1 in /etc/hosts to avoid this sort of thing.
Code:
# /etc/hosts ###########################################################
#
#   Hostname to address mappings for the TCP/IP subsystem. 
#

# loopback
127.0.0.1               localhost
::1                     localhost

# Hostname
127.1.1.1               ws1.my.domain ws1
+1 for the suggestion. It's interesting, however, that the 127.1.1.1 address is not configured out of the box on NetBSD, as it is on Slackware.

NetBSD:
Code:
cajetan$ ping 127.1.1.1 
PING 127.1.1.1 (127.1.1.1): 56 data bytes
ping: sendto: Network is unreachable
ping: sendto: Network is unreachable
Slackware:
Code:
[gerard]$ ping 127.1.1.1
PING 127.1.1.1 (127.1.1.1) 56(84) bytes of data.
64 bytes from 127.1.1.1: icmp_seq=1 ttl=64 time=0.031 ms
64 bytes from 127.1.1.1: icmp_seq=2 ttl=64 time=0.035 ms

Last edited by Gerard Lally; 05-28-2017 at 02:16 PM.
 
1 members found this post helpful.
  


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
want to startx kde and startx xfce selfprogrammed Slackware 17 03-23-2017 01:44 PM
[SOLVED] Delay after running "startx" and problems with udev and rtl8192se in Slack14-x64 gmjs Slackware 10 10-14-2012 11:36 AM
[SOLVED] [startx problem] - startx goes to black/grey screen and comes back to command prompt! iNUKE Ubuntu 13 01-07-2011 01:32 PM
(nvidia) First startx = blank screen, second startx = works ?!? BuckRogers01 Linux - Hardware 2 04-07-2006 05:26 PM
Bug / Xwindows / startx : xinit works but startx crash www.rzr.free.fr Linux - Software 4 10-17-2004 08:06 AM

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

All times are GMT -5. The time now is 05:40 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