From owner-freebsd-questions Mon Dec 9 3: 0:43 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 022A837B401 for ; Mon, 9 Dec 2002 03:00:41 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8416443E4A for ; Mon, 9 Dec 2002 03:00:39 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id gB9B0Z46015083 for ; Mon, 9 Dec 2002 11:00:35 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id gB9B0Ulb015082 for freebsd-questions@FreeBSD.ORG; Mon, 9 Dec 2002 11:00:30 GMT Date: Mon, 9 Dec 2002 11:00:30 +0000 From: Matthew Seaman To: freebsd-questions@FreeBSD.ORG Subject: Re: xdm keeps showing me login window Message-ID: <20021209110030.GA14944@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , freebsd-questions@FreeBSD.ORG References: <20021209103214.59680.qmail@web13606.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021209103214.59680.qmail@web13606.mail.yahoo.com> User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-2.5 required=5.0 tests=IN_REP_TO,REFERENCES,SPAM_PHRASE_01_02,USER_AGENT, USER_AGENT_MUTT version=2.43 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Dec 09, 2002 at 02:32:14AM -0800, Ali S. wrote: > i have installed freebsd 4.7 on > compaq proliant 1600 with cirrus 5446 vga card > i have configured X with "xf86config" > > but > when i run xdm and enter my username &password > it refreshes the screen and shows me the login > window again... > > any idea? You should have a script ~/.xsession which contains a shell script to run the various X programs you require during your login session. That script should not exit until you decide to end your session. Typically that's done by running a session manager or a window manager in the foreground. eg. this is what I use: #!/bin/sh # PATH is set via login.conf ... ##PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:${HOME}/bin" ; export PATH FTP_PASSIVE_MODE=YES ; export FTP_PASSIVE_MODE eval `ssh-agent -s` /usr/X11R6/bin/xconsole -daemon -notify -verbose -fn fixed \ -exitOnFail -geometry 480x130-0-0 -iconic & [ -f ${HOME}/.Xdefaults ] && /usr/X11R6/bin/xrdb -merge ${HOME}/.Xdefaults /usr/X11R6/bin/xscreensaver -no-splash & /usr/X11R6/bin/wmaker eval `ssh-agent -k` # # That's All Folks! # It sounds to me as if your .xsession script is exiting immediately. Try logging in on a character based console (ie. use Ctrl-Alt-F1 to switch vty), and look at ~/.xsession-errors to see if it's printed out anything useful. Edit your .xsession to fix any problems and try again. If you can't get into a console session, you should be able to login via xdm(8) using a "failsafe" session, which just gives you a very minimal desktop with a single xterm window and no window manager. To log in in failsafe mode, enter your username as usual into the XDM login window, then type in your password *but* don't hit return. Instead hit the F1 key or type Ctrl-Return together. You may need to experiment to find out which one works. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message