Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jul 1998 19:51:33 -0700 (PDT)
From:      Thomas Dean <tomdean@ix.netcom.com>
To:        eletech@netrover.com
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Problem with .xinitrc
Message-ID:  <199807140251.TAA00793@ix.netcom.com>
In-Reply-To: <35AA83F5.36AD2548@netrover.com> (message from Nicolas Blais on Mon, 13 Jul 1998 18:02:33 -0400)

next in thread | previous in thread | raw e-mail | index | archive | help
What are you trying to do?  Start X?

If so, modify /etc/ttys to start xdm:  I use ttyv7 and ttyv7.

====== <snip> from /etc/ttys
# select one of the following two sets of lines
# the ttyv6 + ttyv7 "on" lines for syscons
# The ttyv6 "off" + ttyv7 "xterm" pair for X11
#
#ttyv6  "/usr/libexec/getty Pc"         cons25  on secure
#ttyv7  "/usr/libexec/getty Pc"         cons25  on secure
#
ttyv6   "/usr/libexec/getty Pc"         cons25  off secure
ttyv7   "/usr/X11R6/bin/xdm -nodaemon"  xterm   on secure

from here, you can control X from your .x* files,


====== /home/<username>/.xsmstartup
! $XConsortium: system.xsm,v 1.5 94/12/27 17:57:25 mor Exp $
twm
smproxy

========= /home/<username>/.xsession
# .xsession
userresources=$HOME/.Xresources
userdefaults=$HOME/.Xdefaults
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps


# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
    xrdb -merge $userresources
elif [ -f $userdefaults ]; then
    xrdb -merge $userdefaults
fi

if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi


# There is no mwm to run, so, just use twm: select one of these
#wmgr=twm
wmgr=xsm
IFS="${IFS}:"

/usr/bin/clear_colormap
#xstdcmap -gray >& /dev/console &
xsetroot -solid CadetBlue4 &    # or some other suitable color
xset b 50 500 50        # or some other suitable beep

# start some nice programs
xterm -iconic -C -n Console -geometry 80x10+0+10 \#+0+25 &

iconArgs="-j -sk -sb -sl 255 -fn 9x15 -name `hostname`"
xterm         $iconArgs -geometry 80x48+90+10  \#+0+45 &
xterm -iconic $iconArgs -geometry 80x48+280+10 \#+0+65 &

# allow the local lan to connect to X
xhost +celebris +tddti +tdd486

#Controlling process:
exec $wmgr

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807140251.TAA00793>