Solaris 5.6 dual head monitor config

mi_zy發表於2011-02-22

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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章