Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Feb 1997 20:56:02 -0700 (MST)
From:      Wes Peters <softweyr@xmission.com>
To:        "Jeffrey J. Ayres" <JeffAyres@worldnet.att.net>
Cc:        questions@freebsd.org
Subject:   command to vwm?
Message-ID:  <199702210356.UAA00233@obie.softweyr.ml.org>
In-Reply-To: <330D13F6.558B@worldnet.att.net>
References:  <330D13F6.558B@worldnet.att.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Jeffrey J. Ayres writes:
 > Thank you for the tip concerning recompiling.  However I'm still
 > having problems.  For a fleeting moment I was able to get both the
 > display manager and the windows manager to work.  The mouse worked
 > fine with the window manager, for instance changing the size of the
 > window and moving it on the screen. However in order to log off I
 > needed to cold boot the system(control-alt-delete did not allow me to
 > reboot).

Unless you explicitly disabled it when configuring XFree86, you can
press Ctrl-Alt-Backspace to kill the Xserver.  Also, typing Ctrl-Alt-F1
through Ctrl-Alt-F3 will get you the first three text consoles.


 > The command I used to enable the display manager was to
 > start the display manager during the boot edit /etc/ttys
 >
 > ttys  "/usr/X11R6/bin/xdm"  xterm  on secure

OK, first go back and undo this.  In /etc/rc.local, add the following:

	echo -n 'starting local daemons:'

	# put your local stuff here

	/usr/X11R6/bin/xdm && echo -n ' xdm'

	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Add this line

This will startup XDM, upon rebooting you should see a graphical login
screen on your monitor.  You should also be able to move the mouse and
see the cursor move; if not, your mouse is not yet configured correctly.

If you can see the login screen and move the mouse cursor, the next step
is to setup your account correctly.  Try creating a .xsession file in
your home directory containing the following.  BE SURE TO MAKE THE
.xsession FILE EXECUTABLE!  (i.e. chmod 744 .xsession)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#!/bin/sh
#
# .xinitrc - X Windows initialization file, FreeBSD/twm version.
# Wes Peters; 05/25/95
#
# Run .profile to make sure we get the environment setup correctly.
#
. ~/.profile

TZ=MST7MDT; export TZ

#
# Start clients - just a terminal window to start with.
#
xterm &

#
# Start a window manager - twm to start with.  This program becomes the
# 'session manager', exit from it to logout from X.
#
twm

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Now try logging into your account.  If it doesn't work, email back and
I'll tell you how to debug it, or see the message I wrote about this
subject 20 minutes ago in freebsd-questions.  ;^)

For more information on how to use the window manager you see, put the
mouse cursor in the xterm and type 'man twm'.

-- 
          "Where am I, and what am I doing in this handbasket?"

Wes Peters                                                       Softweyr LLC
http://www.xmission.com/~softweyr                       softweyr@xmission.com






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