LinuxQuestions.org
Review your favorite Linux distribution.
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 02-17-2019, 12:25 PM   #16
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 -current running i3
Posts: 494

Original Poster
Rep: Reputation: 174Reputation: 174

I don't use sudo, I switch to root when I need to. I can read and write to /tmp anyway as a normal user.

I'm not sure where it's all coming from to be honest, I can hit Ctrl-C to interrupt whatever the delay is and it will proceed with logging in. There's something goimg on with Xauthority and serverauth that's delaying things. I may jus re-install at some stage and see what that does.
 
Old 02-17-2019, 12:57 PM   #17
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,917

Rep: Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034
My guess would be a reverse ip/ipv6 lookup on one of your interface addresses.

Check that you have an entry in your /etc/hosts for all of your ip interfaces and especially your hostname.

I wouldn't worry about that message from xauth, it's always done that.
 
Old 02-17-2019, 04:23 PM   #18
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 -current running i3
Posts: 494

Original Poster
Rep: Reputation: 174Reputation: 174
Code:
#
# hosts		This file describes a number of hostname-to-address
#		mappings for the TCP/IP subsystem. It is mostly
#		used at boot time, when no name servers are running.
#		On small systems, this file can be used instead of a
#		"named" name server.  Just add the names, addresses
#		and any aliases to this file...
#
# By the way, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1
# should NEVER be named with the name of the machine. It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
#

# For loopbacking.
127.0.0.1		localhost
127.0.0.1		openbox.slacknet openbox

# End of hosts.
I have eth0 and wlan2, what should I add? The ip address can change. How does /etc/hosts make startx complain about a missing .serverauth.XXXX file in my home directory?
 
Old 02-17-2019, 06:28 PM   #19
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,917

Rep: Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034
The missing serverauth file message is a red-herring. It's been showing up from a startx like that for years.

As for which addresses to add I'd start with any that show up from an ip addr list | grep inet. Don't forget the ipv6 link-local ones starting with FE80:

Another thing you may want to try is doing an xauth list after you've logged in to X, and look for any addresses that show up as numbers rather than names.
 
2 members found this post helpful.
Old 02-18-2019, 05:04 PM   #20
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 -current running i3
Posts: 494

Original Poster
Rep: Reputation: 174Reputation: 174
Quote:
Originally Posted by GazL View Post
The missing serverauth file message is a red-herring. It's been showing up from a startx like that for years.

As for which addresses to add I'd start with any that show up from an ip addr list | grep inet. Don't forget the ipv6 link-local ones starting with FE80:

Another thing you may want to try is doing an xauth list after you've logged in to X, and look for any addresses that show up as numbers rather than names.
That's done the trick, thank you!

Code:
[root:openbox ~]# ip addr list | grep inet
gave me:

Code:
inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
    inet 192.168.1.141/24 brd 192.168.1.255 scope global noprefixroute wlan2
    inet6 fe80::523e:aaff:fe9c:93dc/64 scope link
I edited /etc/hosts to:

Code:
#
# hosts         This file describes a number of hostname-to-address
#               mappings for the TCP/IP subsystem. It is mostly
#               used at boot time, when no name servers are running.
#               On small systems, this file can be used instead of a
#               "named" name server.  Just add the names, addresses
#               and any aliases to this file...
#
# By the way, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1
# should NEVER be named with the name of the machine. It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
#

# For loopbacking.
127.0.0.1               localhost
127.0.0.1/8             openbox.slacknet openbox
192.168.1.141/24        openbox.slacknet openbox
inet6 fe80::523e:aaff:fe9c:93dc/64 openbox.slacknet openbox
# End of hosts.
and login has returned to normal.
 
Old 02-18-2019, 07:04 PM   #21
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,917

Rep: Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034
Good, glad you got it sorted.

Code:
127.0.0.1/8             openbox.slacknet openbox
192.168.1.141/24        openbox.slacknet openbox
inet6 fe80::523e:aaff:fe9c:93dc/64 openbox.slacknet openbox
The bits in red shouldn't be in the hosts file.


Also, I'm not a fan of assigning the hostname to 127.0.0.1, or having multiple addresses assigned to the same name. Here's how I do mine:
Code:
# loopback
127.0.0.1               localhost
::1                     localhost

# Hostname
127.1.1.1               ws1.local ws1

# IPV6 link-local:
fe80::aaaa:bbb:cccc:dddd ws1-wlan0.local ws1-wlan0

# local IPV4 dhcp pool:
192.168.0.201           d201.local d201
192.168.0.202           d202.local d202
192.168.0.203           d203.local d203
192.168.0.204           d204.local d204

# alternate dhcp pool:
192.168.1.2             d002.local d002
192.168.1.3             d003.local d003
192.168.1.4             d004.local d004
I use 127.1.1.1 for the primary hostname to keep it separate from localhost. My wifi will pick up an ipv4 address from one of the dhcp pools, and the link-local interface uses a $hostname-$interface scheme.

Last edited by GazL; 02-18-2019 at 07:10 PM.
 
2 members found this post helpful.
Old 02-18-2019, 07:26 PM   #22
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 -current running i3
Posts: 494

Original Poster
Rep: Reputation: 174Reputation: 174
Thanks, I've adjusted my /etc/hosts according to your suggestions and all is well.
 
  


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
Error Xauth file home/user/.serverauth.2348 does not exist - cent os Harshit_24 Linux - Newbie 2 05-12-2018 07:52 AM
xauth: file /home/semoi/.serverauth.2263 does not exist stf92 Slackware 11 03-29-2016 01:23 PM
[SOLVED] Xauth file home/user/.serverauth.1436 does not exist Fibonacchoz Slackware 3 03-29-2016 01:23 PM
startx fail: .serverauth.2571 + fbdev + /dev/tty0 Drone4four Slackware 23 01-18-2012 01:40 PM

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

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