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 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.
#
# 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?
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.