DebianThis forum is for the discussion of Debian 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.
Free Guide: Linux from Scratch
Linux from Scratch describes the process of creating your own Linux system from scratch from an already installed Linux distribution, using nothing but the source code of software that you need.
This 318 page eBook provides readers with the background and instruction to design and build custom Linux systems. The resulting system will be compiled completely from the source code, and the user will be able to specify where, why, and how programs are installed. This eBook allows readers to fully customize Linux systems to their own needs and allows users more control over their system.
Click Here to receive the Linux from Scratch Guide absolutely free.
-rw------- 1 fred fred 153 2006-05-01 11:18 .serverauth.6297
-rw------- 1 fred fred 153 2006-05-03 15:24 .serverauth.6348
-rw------- 1 fred fred 153 2006-05-01 12:07 .serverauth.6381
-rw------- 1 fred fred 153 2006-04-30 19:23 .serverauth.6432
-rw------- 1 fred fred 153 2006-05-04 13:55 .serverauth.6439
-rw------- 1 fred fred 153 2006-05-04 19:35 .serverauth.6478
-rw------- 1 fred fred 51 2006-04-29 06:13 .serverauth.6490
-rw------- 1 fred fred 153 2006-04-30 06:43 .serverauth.6494
-rw------- 1 fred fred 153 2006-05-03 15:38 .serverauth.6497
-rw------- 1 fred fred 153 2006-05-05 14:08 .serverauth.6498
-rw------- 1 fred fred 153 2006-05-01 11:35 .serverauth.6500
-rw------- 1 fred fred 153 2006-05-02 14:52 .serverauth.6501
-rw------- 1 fred fred 153 2006-05-06 15:51 .serverauth.6503
-rw------- 1 fred fred 153 2006-05-01 13:06 .serverauth.6505
-rw------- 1 fred fred 153 2006-05-01 12:44 .serverauth.6553
-rw------- 1 fred fred 153 2006-05-03 22:04 .serverauth.6660
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Rep:
You can delete all that stuff. Each time you start an X windows session, that file gets created. I don't know why they're not being deleted; usually when the new one gets created the old one (if any) gets deleted. Or you could write a bash script to execute on shutdown or login to blast any old files.
Basically the fix is to edit your /usr/bin/startx file (or whereever startx is located for your distro, /usr/X11R6/bin/startx for my Slackware 11 box), and change the line:
Code:
xserverauthfile=$HOME/.serverauth.$$
to:
Code:
xserverauthfile=$XAUTHORITY
You can then delete your .serverauth.???? files and from now on the X authority will be written to ~/.Xauthority, no more files cluttering up your home directory.
Good advice, Kovacs. But if you edit startx, then you'll have to do that again every time after you've upgraded Xserver.
It's better to create a file named .xserverrc into your home directory and add the xserverauthfile line there, like this:
Code:
#!/bin/sh
xserverauthfile=$XAUTHORITY
Then make .xserverrc executable (chmod +x .xserverrc).
doing this on debian/testing gives the following error
$startx
xauth: creating new authority file /home/fred/.serverauth.6509
giving up.
/usr/X11R6/bin/xinit: Connection refused (error 111): unable to connect to X server
/usr/X11R6/bin/xinit: No such process (error 3): Server error.
$
only after deleting the file was I able to startx again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.