LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

Rep: Reputation: 0
.xinitrc problem


Hi

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, 04:49 AM   #2
Nixu
LQ Newbie
 
Registered: Feb 2004
Posts: 15

Rep: Reputation: 0
Hi,

Did you put execute right to your .xinitrc file? If not try to do it using:
Code:
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).
Code:
xinit /home/paul/.xinitrc -- /usr/X11R6/bin/X bc
 
Old 06-14-2004, 06:46 AM   #3
cruelnovember
LQ Newbie
 
Registered: Jun 2004
Distribution: Gentoo
Posts: 2

Original Poster
Rep: Reputation: 0
hi

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?

Paul
 
Old 06-14-2004, 09:50 AM   #4
Nixu
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:
Code:
xterm &
icewm
or for KDE-desktop
Code:
startkde
or for gnome-desktop
Code:
gnome-session

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


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
Problem xinitrc, Gnome starts instead of KDE McCloud Debian 7 09-05-2004 09:03 AM
.xinitrc problem reddazz Slackware 4 08-12-2004 08:33 AM
.xinitrc unimaginative Linux - Newbie 1 01-03-2004 11:53 PM
Blackbox and .xinitrc problem firefly2442 Linux - Software 5 10-24-2003 12:52 AM
.xinitrc nakkaya Linux - Software 1 04-11-2003 04:12 PM


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

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