Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


LinkBack Search this Thread
Old 06-14-2004, 02:33 AM   #1
LQ Newbie
Registered: Jun 2004
Distribution: Gentoo
Posts: 2

Rep: Reputation: 0
.xinitrc problem


I have a problem concerning the .xinitrc file.
A few days ago i installed and ran Rox-Session with Icewm. I didnt like it and deinstalled it. After that i got a message each time i started x, which said that Rox-Manager doesnt exists and that i should look where it is or, in case of not wanting it any more delete .xinitrc and xsession in /home for setting defaults. I did so. I rum Icewm with the Xsession script so i dont need the xinitrc for that.
Now, I want a few programs to start at startx. But each time i make a .xinitrc file and start x it shuts down x before it gets started and says:

xinit: permission denied (errno13) no program named "/home/paul/.xinitrc" in PATH

can somebody help?

Thanks, Paul
Old 06-14-2004, 03:49 AM   #2
LQ Newbie
Registered: Feb 2004
Posts: 15

Rep: Reputation: 0

Did you put execute right to your .xinitrc file? If not try to do it using:
chmod u+x ~/.xinitrc
Your error message means that shell tries to find command named "/home/paul/.xinitrc" from any of the defined paths (see "echo $PATH")
You should also look at xinit script file and see if your Rox-Sessions have modified it.
You can also try next command to start your X (see man xinit).
xinit /home/paul/.xinitrc -- /usr/X11R6/bin/X bc
Old 06-14-2004, 05:46 AM   #3
LQ Newbie
Registered: Jun 2004
Distribution: Gentoo
Posts: 2

Original Poster
Rep: Reputation: 0

I can start X with startx. my windowmanager is loading then and everything works perfectly. But thats only working without no .xinitrc file in my home directory. At the Moment a .xinitrc file exists, X doenst start and gives out the written error message.

I tried chmod but it still does not work

i tried to start X as you described, and it started, but of course without Icewm

any other ideas? Is there maybe another way to start programs automaticially when starting X?

Old 06-14-2004, 08:50 AM   #4
LQ Newbie
Registered: Feb 2004
Posts: 15

Rep: Reputation: 0
That previous command should do what you want. Just make your own startup script somewhere (or edit ~/.xinitrc) and put there the stuff you want to start up.
Start window manager as a last program without running it to background or xinit will exit at the end and close X.
Example content of ~/.xinitrc:
xterm &
or for KDE-desktop
or for gnome-desktop

Then you start it by running command:
xinit /home/paul/.xinitrc -- :1


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem xinitrc, Gnome starts instead of KDE McCloud Debian 7 09-05-2004 08:03 AM
.xinitrc problem reddazz Slackware 4 08-12-2004 07:33 AM
.xinitrc unimaginative Linux - Newbie 1 01-03-2004 10:53 PM
Blackbox and .xinitrc problem firefly2442 Linux - Software 5 10-23-2003 11:52 PM
.xinitrc nakkaya Linux - Software 1 04-11-2003 03:12 PM

All times are GMT -5. The time now is 07:40 AM.

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