06-22-2011
xrandr isn't going to do much when X isn't running.
You can try ~/.xinitrc, though I think some WM's ignore that these days. There might be a global equivalent of it under /usr/X11 somewhere though many X11 files aren't where they used to be these days.
As for general-purpose scripts to run on startup, see if your system has /etc/local.start or /etc/conf.d/local.start.
You can also put a line in a user crontab like @reboot /path/to/script.sh and cron will run it on poweron.
10 More Discussions You Might Find Interesting
1. AIX
I understand that by putting in entries into the /etc/inittab file. We can actually call the our scripts during startup.
mkitab "start_server:2:once:sh /scripts/startserver.sh"
Would the system wait for startserver.sh finish executing before it goes to another entry? and how long would it... (1 Reply)
Discussion started by: vincente
1 Replies
2. Shell Programming and Scripting
I need to make a script to start the postfix service on a server when the machine starts up.
I have a script written below, which I think will work, but I am confused on how the rc2.d & rc3.d etc directories actually work.
If I enter the script below, and stick it in the rc3.d directory,... (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies
3. UNIX for Advanced & Expert Users
Hello!
unix os is OSF1 CP1 V4.0 878 alpha.It startup os normally.But when i use
a command to run application, it restart within 10 sec.I have no spare harddisk& application to reinstall.When i asked this problem at this forum, it replys that start up scripts are screwed and to mount each... (12 Replies)
Discussion started by: akzin
12 Replies
4. Linux
I've created the following link in order to startup apache tomcat on startup, however, it does not seem to run. Am I missing something out?
:confused:
/etc/init.d
lrwxrwxrwx 1 root root 16 Sep 5 14:59 K73ypbind -> ../init.d/ypbind
lrwxrwxrwx 1 root root 16 Sep 11 13:09 S100tomcat ->... (5 Replies)
Discussion started by: jon80
5 Replies
5. HP-UX
Hi all
We have HP UX 11.23 installed on 4 RISC servers (2 oracle databases, 2 Oracle App Servers) , we are in a construction period , so the power failure may happen more than once a day.
I need to learn how to create an automatic startup services as in Windows, if we know that the services... (5 Replies)
Discussion started by: kafaween
5 Replies
6. AIX
Hi,
I am trying to start services on system reboot on AIX.
Have put the S* links under rd2.d & K* links under other rc*.d
At the moment, all scripts are getting called.
However, the services aren't coming up.
Where can i find the logs for these to check what failed. (8 Replies)
Discussion started by: vibhor_agarwali
8 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I have to perform an audit of a system at work and I am looking at its /etc/rc3.d:
K01tog-pegasus K74nscd S08iptables S50openemm
K01yum K74ntpd S09isdn S55cups
K02NetworkManager K85mdmpd S09pcmcia S55sshd
K03rhnsd ... (8 Replies)
Discussion started by: mojoman
8 Replies
8. AIX
hi,
If we place Sxx (startup script) and Kxx(shutdown script) in /etc/rc.d/rc2.d,then it would start and stop automatically(assume they are linked to other script that actually starts/stops).
is there really a link needed here to /etc/rc.d/init.d? if not,what is the use of this directory..?... (1 Reply)
Discussion started by: to_bsr
1 Replies
9. Solaris
Hi all,
I have a server in maintenance mode and need to boot it up. Its due to a broken service "RepX".
I need to stop the service from trying to start at boot up but i can't find where it is booting up from... it is not in any of the rcX.d directories and the two locations i have found it... (6 Replies)
Discussion started by: Tommyk
6 Replies
10. Shell Programming and Scripting
Edit: So sorry! I really didn't do a good job of clearly stating what I needed. Going to completely rewrite my post so everything is clearly stated.
I'm having trouble writing a shell startup script for a linux server. It uses the bash shell if I remember correctly. I'm trying to write it so... (9 Replies)
Discussion started by: Pyitoechito
9 Replies
LEARN ABOUT SUSE
fvwm-themes-start
FVWM-THEMES-START(1) General Commands Manual FVWM-THEMES-START(1)
NAME
fvwm-themes-start - FVWM Themes starter
SYNOPSIS
fvwm-themes-start [ --session|-s name ] [ --no-start|-n ] [ --fvwm-exe|-e ] [ -- fvwm-args ]
DESCRIPTION
This script runs fvwm with FVWM Themes. It should be run under X. Put a call to this script as the last line of your .Xclients, .xinitrc
or .xsession file.
OPTIONS
--session name - name of the FVWM Themes session. By default it is "main". This allows to have and run different FVWM Themes configuration.
--no-start - do not start fvwm, just do preparation for starting it. This is useful to start FVWM Themes with a session manager, see FAQ.
--fvwm-exe - changes the default executable, which is fvwm or whatever fvwm-config --fvwm-exe returns.
-- everything after -- is passed to FVWM. See the fvwm(1) man page for the fvwm options.
EXAMPLES
Most users just should put:
fvwm-themes-start
as the last line of their .Xclients, .xinitrc or .xsession file. If you want to use FVWM Themes with a real session manager, say GNOME,
you need to use the --no-start option and put:
fvwm-themes-start --no-start
gnome-session
as the last lines of your .Xclients, .xinitrc or .xsession file. The session option allows to use FVWM Themes with different configura-
tions. Say, you want to use 3 different configurations under a normal FVWM session when FOO test is false, under gnome-session and under a
normal FVWM session when FOO test is true. Then, your .xinitrc/.xsession file may look as follows (where $1 is the "first" argument given
by startx, or by kdm or gdm ...):
...
case $1 in
fvwm)
if FOO; Then
fvwm-themes-start --session special
else
fvwm-themes-start
fi
;;
gnome)
fvwm-themes-start --session gnome --no-start
gnome-session
;;
... other cases ...
esac
Note that with most session managers (e.g., GNOME or XSM) it is preferable to give "fvwm -f themes-rc" as the starting window manager com-
mand in the session manager.
COPYING
The script is distributed by the same terms as fvwm-themes itself. See GNU General Public License for details.
BUGS
Report bugs to fvwm-themes-devel@lists.sourceforge.net.
Fvwm Utility 15/Aug/2000 FVWM-THEMES-START(1)