LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-20-2004, 12:48 AM   #1
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Rep: Reputation: 30
x startup .xinitrc


hi

im trying to add a few program to run at startup

i have found ~/.xinitrc

#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi

# Start the window manager:
exec /usr/local/bin/fluxbox

exec /usr/local/bin/gkrellm

i added the last line: /usr/local/bin/gkrellm
-to start gkrellm at startup....

but for some reason this isnt working :[

if anybody has any suggestions that would be great

thanks
 
Old 02-20-2004, 04:01 AM   #2
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
Your command never gets read. The exec command above (fluxbox) replaces the startx process with the process to run your window manager.

You could try moving the command to just above "exec fluxbox", drop the "exec" and put it in the background.

/usr/local/bin/gkrellm &

John
 
  


Reply



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
Am i supposed to edit xinitrc to run a command at startup? Tyir Linux - General 36 12-05-2007 12:57 PM
xinitrc in libranet? how do i execute a command on x startup? bleargh Linux - Software 6 12-11-2004 11:00 PM
.xinitrc, fluxbox, startup programs jdier Linux - Newbie 4 08-26-2004 02:41 PM
.xinitrc programs start twice on startup fasmaie Linux - Newbie 0 09-09-2003 03:59 PM
.xinitrc mrsolo Linux - Software 5 10-30-2002 10:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:17 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
Open Source Consulting | Domain Registration