In Red Hat Enterprise Linux4, the default window manager is metacity. However, sometimes programs transplanted from Unix try to be as similar as the original Unix program, such as programs transplanted from HP Unix. You need to change the Window Manager. The motif window manager is used more often.
Xwindow can be started in three ways. The first method is to automatically run xdm when the level of the/etc/inittab file is set to 5. After the user enters the user name and password, xwindow is started. The desktop to be started in this way is determined by the $ HOME/. xsession configuration file. If the file does not exist, it is set in common. Therefore, in this mode, you only need to repair the. Xsession file. The example file is as follows:
#! /Bin/sh
./Etc/X11/xinit/xinitrc-common
/Usr/bin/X11/kinput2-canna &
/Usr/bin/gnome-Panel &
/Usr/bin/gnome-terminal &
Exec/usr/x11r6/bin/mwm
The second method is to start it with startx or xinit. Among them, startx only does more environment setting work than xinit, and finally calls xinit. Therefore, you need to modify the $ HOME/. xinit file to start the motif window manager. The example file is as follows:
#! /Bin/sh
./Etc/X11/xinit/xinitrc-common
/Usr/bin/X11/kinput2-canna &
/Usr/bin/gnome-Panel &
/Usr/bin/gnome-terminal &
Exec/usr/x11r6/bin/mwm
The third method is to use vnc to start the screen, enable VNC Server in Linux, and then start VNC Viewer in other Linux or Windows. In this way, you still need to start the xinit file, but in the $ HOME /. in the vnc/xstarup file, do not point to the common xinit system file by default, but reference the xinit file in your HOME. As shown below
#! /Bin/sh
Unset session_manager
Exec $ home/. xinitrc
[-X/etc/VNC/xstartup] & exec/etc/VNC/xstartup
[-R $ home/. Xresources] & xrdb $ home/. Xresources
Xsetroot-solid gray
Vncconfig-iconic &
Xset + fp unix/: 7100
Xset fp rehash
Startx &
With this setting, When you enable VNC, you can find that your current window manager is motif.