Hello,
Here is how one can implement a custom wide system.fvwm2rc file without
having to put dotfiles in a user's home directory. The following only
applies to users starting fvwm2 under a Red Hat Linux 5.0 system (or above).
It will work for both users starting Fvwm2 with xinit (aka startx) in runlevel
3 as well as for users starting Fvwm2 with xdm in runlevel 5.
The runlevel is determined by the first uncommented line of the /etc/inittab
file:
----- begin /etc/inittab snippet ---------------------------------------------
#
# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Author: Miquel van Smoorenburg, <miquels_at_drinkel.nl.mugnet.org>
# Modified for RHS Linux by Marc Ewing and Donnie Barnes
#
# Default runlevel. The runlevels used by RHS are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
#id:3:initdefault:
id:5:initdefault:
----- end /etc/inittab snippet -----------------------------------------------
So, here is how you do it:
Step 1)
Place your new configuration file under /etc/X11/fvwm2 as:
/etc/X11/fvwm2/system.fvwm2rc
Step 2)
mv /etc/X11/xinit/Xclients /etc/X11/xinit/Xclients.old
Step 3)
Use the following file as the new /etc/X11/xinit/Xclients file snipping
the parts containing dashes (-).
----- begin /etc/X11/xinit/Xclients ------------------------------------
#!/bin/bash
########################################################################
# -*- sh -*- #
# #
# ~/.Xclients: used by startx (xinit) to start up a window manager and #
# any other clients you always want to start an X session with. #
# #
# feel free to edit this file to suit your needs. #
########################################################################
exec fvwm2 -f /etc/X11/fvwm2/system.fvwm2rc
----- end /etc/X11/xinit/Xclients --------------------------------------
Step 4)
If this still doesn't work then it may be because you may have a
".wm_config" file in your home directory. Delete it and try again.
Step 5)
Reboot your system and good luck!!!
Best Regards,
Neil
--
Visit the official FVWM web page at <URL: http://fvwm.math.uh.edu/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Fri Jan 01 1999 - 21:55:15 GMT