Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-02-2006, 06:14 AM   #1
LQ Newbie
Registered: Apr 2005
Posts: 17

Rep: Reputation: 0
No .xinitrc? X won't start because of it.

I installed Feather Linux on my HDD, it all seemed to go fine, I rebooted and it asks me to log in. I do, and it takes me to a bash command line. I enter "startx", and get the error:
xauth: /home/knoppix/.Xauthority not writable, changes will be ignored
xauth: error in locking authority file /home/knoppix/.Xauthority
xauth: error in locking authority file /home/knoppix/.Xauthority
xauth: error in locking authority file /home/knoppix/.Xauthority
Then it asks for my password, which I enter. Then I see:

xinit: No such file or directory (errno2): no program named "/home/knoppix/.xinitrc" in PATH

Specify a program on the command line or make sure that /usr/X11R6/bin is in your path.

waiting for X server to shut down
I would really appreciate any help, I'm setting this machine up for my sister and getting it ready and running by morning would save me a lot of trouble and heartache. Thanks. I'll be checking this thread every 10 minutes so even guesses and suggestions are appreciated.

Old 12-02-2006, 08:55 AM   #2
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
Here's what my .xinitrc has
exec gnome-session
All it does is start gnome when you start X. If you use KDE it would say
exec startkde
You can create a .xinitrc manually if its really not there. An ls -al /home/knoppix will let you know for sure.

Try to start X by passing the full path
If that works, then you simply need to add /usr/X11R6/bin to the PATH variable. You can verify that PATH is missing /usr/X11R6/bin by
echo $PATH
You will get a colon seperated list of directories that are "looked in" for any program you try to execute without using the full path.

There are a couple of ways to make sure /usr/X11R6/bin is in the PATH variable. I'd probably just add it to the global profile if I was setting up a PC for my sister (which I don't actually have). Look for sometihing like
if [ "$EUID" = "0" ] || [ "$USER" = "root" ] ; then
in /etc/profile. In the else part, add /usr/X11R6/bin so it looks like this
Old 12-02-2006, 09:01 AM   #3
Andrew Benton
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
My guess would be that you're logging in as the user knoppix but for some reason the contents of /home/knoppix (specifically /home/knoppix/.Xauthority) do not belong to the user knoppix. Try logging in as root and chowning /home/knoppix
chown -R knoppix /home/knoppix


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How can I start a program when gnome loads w/out editing .xinitrc for all users? DaneM Linux - Software 3 06-30-2006 11:31 PM
Where can I find .xinitrc in Mandrake 10, trying to get XPde running at start up. RHLinuxGUY Mandriva 1 08-24-2004 08:46 PM
When I edit .xinitrc, X will not start... QtCoder Slackware 2 11-09-2003 10:18 PM
.xinitrc programs start up twice fasmaie Linux - General 1 09-10-2003 07:21 PM
.xinitrc programs start twice on startup fasmaie Linux - Newbie 0 09-09-2003 03:59 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:50 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration