LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-02-2006, 07:14 AM   #1
Audrey
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:
Code:
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:

Code:
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.

--Audrey
 
Old 12-02-2006, 09:55 AM   #2
weibullguy
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
Code:
exec gnome-session
All it does is start gnome when you start X. If you use KDE it would say
Code:
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
Code:
/usr/X11R6/bin/startx
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
Code:
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
Code:
if [ "$EUID" = "0" ] || [ "$USER" = "root" ] ; then
        PATH=/usr/local/bin:$PATH
else
        PATH=/usr/local/bin:$PATH
fi
in /etc/profile. In the else part, add /usr/X11R6/bin so it looks like this
Code:
else
        PATH=/usr/local/bin:/usr/X11R6/bin/:$PATH
 
Old 12-02-2006, 10: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
Code:
chown -R knoppix /home/knoppix
 
  


Reply


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 07-01-2006 12:31 AM
Where can I find .xinitrc in Mandrake 10, trying to get XPde running at start up. RHLinuxGUY Mandriva 1 08-24-2004 09:46 PM
When I edit .xinitrc, X will not start... QtCoder Slackware 2 11-09-2003 11:18 PM
.xinitrc programs start up twice fasmaie Linux - General 1 09-10-2003 08:21 PM
.xinitrc programs start twice on startup fasmaie Linux - Newbie 0 09-09-2003 04:59 PM


All times are GMT -5. The time now is 06:55 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration