ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Solaris 5.6 dual head monitor config

Solaris 5.6 dual head monitor config

原创 Linux操作系统 作者:mi_zy 时间:2011-02-22 12:16:06 0 删除 编辑
1) Login as root on default console.
# cp /usr/dt/config/Xservers /etc/dt/config/Xservers
# cp /usr/dt/config/Xconfig /etc/dt/config/Xconfig
Check first that the files are not already present and been customised.

2) We need to modify /etc/dt/config/Xservers file.
     Append "-dev /dev/fb0 -dev /dev/fb1" at the end of this line
     ":0 Local local@console /usr/openwin/bin/Xsun :0".
     
The appended line should look like:
   ":0 Local local@console /usr/openwin/bin/Xsun :0 -dev /dev/fb0 -dev /dev/fb1"

3) Modify /etc/dt/config/Xconfig file by changing:
     Dtlogin.servers: /usr/dt/config/Xservers to
     Dtlogin.servers: /etc/dt/config/Xservers
Please note file Xconfig under /etc/dt/config will have to be created.

4) Put following two lines in .Xdefaults:
     dtsession*wmStartupCommand: /usr/dt/bin/dtwm
-multiscreen
     Dtwm*multiScreen: True

5) Reboot the system at this stage.
The above steps allow you to have one dtwm (window manager) to
control your two-head system.


If you want to configure it to use olwm and dtwm then follow
step 6 & 7.
6) Add/Replace the following line to the $HOME/.Xdefaults or
   $HOME/.dt/sessions/home/dt.resources file
     Dtwm*multiScreen: False


7) Add the following line to the $HOME/.dt/sessions/sessionetc file:
     /usr/openwin/bin/olwm -single -display :0.1 &

where :0.1 is the number of the screen the user wants Openwindows to appear.
     This will make CDE run on screen 0, and olwm on screen 1.
     Please note we have to create "sessionetc" file. We have to set
     rwxr-xr-x permissions for the file.


[[[[[[[[[[[[[[ my env ]]]]]]]]]]]]]]]]]]]]

Disable dtlogin

# mv /etc/rc2.d/s99dtlogin /etc/rc2.d/s99dtlogin

# getent passwd root
root:x:0:1:Super-User:/:/sbin/sh

# cat .profile
PATH=$PATH:/usr/local/bin:/usr/ccs/bin:/usr/openwin/bin:/usr/local/bin:/opt/SUNWspro/bin
LD_LIBRARY_PATH=$LD_LITRARY_PATH:/opt/ldapsdk/lib:/opt/hpnpl/lib:/opt/SUNWspro/lib
LM_LICENSE_FILE=/etc/opt/licenses/licenses_combined
TERM=vt100
EDITOR=vi
export PATH TERM LD_LIBRARY_PATH EDITOR LM_LICENSE_FILE
MANPATH=$MANPATH:/usr/local/man:/opt/hpnpl/man:/usr/share/man:/opt/SUNWspro/man:/opt/SUNWste/license_tools/man
export MANPATH

[ `tty` = "/dev/console" ] && /usr/openwin/bin/openwin -dev /dev/fbs/m640 -dev /dev/fbs/m642 right && exit





ctdev% getent passwd sybase
sybase:x:1003:10::/opt/sybase/dba:/bin/csh

ctdev% cat .login
# @(#)local.login 1.3     93/09/15 SMI
stty -istrip
# setenv TERM `tset -Q -`

#
# if possible, start the windows system. Give user a chance to bail out
#
if ( `tty` == "/dev/console" ) then

        if ( $TERM == "sun" || $TERM == "AT386" ) then

                if ( ${?OPENWINHOME} == 0 ) then
                        setenv OPENWINHOME /usr/openwin
                endif

                echo ""
                echo -n "Starting OpenWindows in 5 seconds (type Control-C to interrupt)"
                sleep 5
                echo ""
/usr/openwin/bin/openwin -dev /dev/fb0 -dev /dev/fb1 right
                clear           # get rid of annoying cursor rectangle
                logout          # logout after leaving windows system

        endif

endif


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7970627/viewspace-687682/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
空管自动化,传输,对空通信

注册时间:2011-02-02

  • 博文量
    185
  • 访问量
    344971