Settings of the motif window manager under Red Hat Enterprise linux4

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.