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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-31-2003, 09:55 PM
|
#1
|
Member
Registered: Jul 2003
Location: Chicago, IL
Distribution: Fedora Core 4
Posts: 58
Rep:
|
Include on X boot... xinitrc
How do you configure the X boot to run a given command? To my knowledge I have no .xinitrc files in my user directories and don't really know how I would go about configuring one. Any easy way to add a command to the X boot?
|
|
|
07-31-2003, 11:11 PM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Firstly, check what your window manager/
desktop environment has to offer :)
KDE for instance has an Autostart-folder.
Secondly, to create a customized .xinitrc
you can just copy one of the systems ones
and edit it to your liking ;)
Look in /etc/X11/xinit/ and take your pick ;)
Cheers,
Tink
|
|
|
07-31-2003, 11:32 PM
|
#4
|
Member
Registered: Jul 2003
Location: Chicago, IL
Distribution: Fedora Core 4
Posts: 58
Original Poster
Rep:
|
Anybody mind posting a mockup .xinitrc file? I'm not having too much luck.
|
|
|
08-01-2003, 12:19 AM
|
#5
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Code:
#!/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:
/sbin/trail.sh&
gkrellm&
lavaps&
/usr/local/bin/tpb&
xscreensaver&
exec /usr/local/bin/fluxbox
|
|
|
08-01-2003, 09:56 AM
|
#6
|
Member
Registered: Jul 2003
Location: Chicago, IL
Distribution: Fedora Core 4
Posts: 58
Original Poster
Rep:
|
So should I just be able to add a line in that says:
xkbset bo 1
(just a command line run command)
and it will run that, or no? (hasn't seemed to work, but I don't exactly know what I'm doing all that much)
Also, is there any way to set it up so that it repeats this command after x seconds/minutes?
Last edited by Ctawp; 08-01-2003 at 10:15 AM.
|
|
|
08-01-2003, 05:19 PM
|
#7
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Quote:
xkbset bo 1
(just a command line run command)
and it will run that, or no?
|
Yes ... before the exec statement, though.
Quote:
Also, is there any way to set it up so that it repeats this command after x seconds/minutes?
|
Nope. But you can put an
"at" command there.
Cheers,
Tink
|
|
|
All times are GMT -5. The time now is 02:05 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|