[plug] bash 2 & xdm

Bevan Broun bevanb at ee.uwa.edu.au
Sat Aug 1 10:59:40 WST 1998


On Sat, Aug 01, 1998 at 06:42:08AM +0800, John Summerfield wrote:
> I installed bash 2 from an RPM on my RH 5.0 system and now when I login
> via xdm the screen flashes and returns to xdm.
> 
> It seems likely that something someplace isn't recognising that I'm
> logging in so bash terminates and effectively logs me out.
> 
> There is absolutely nothing odd in xdm-error.log.
> .xsession-errors contains:
> [summer at emu summer]$ cat .xsession-errors
> /etc/X11/xdm/Xsession: freetemp: command not found
> /etc/X11/xinit/Xclients: exec: twm: not found
> /etc/X11/xinit/Xclients: xterm: command not found
> 
> Note that PATH is wrong (should be
> /usr/bin:/bin:/usr/X11R6/bin:/home/summer/bin after all processing) and
> TERM should probably be TERM=xterm
> 
> I have found bash being invoked with the -login switch and changed that to
> --login (bash 2 wants two hyphens) here:
> [summer at emu summer]$  head /etc/X11/xdm/Xsession
> #!/bin/bash --login
> 
> login from the text screen and running startx works fine.
> 
> Any clues?

Your window manager is not being found. As a quick fix modify your
.xsession so that the line just after the top #!/bin/sh is
PATH=$PATH:/usr/X11R6/bin

(assuming your window mangager is in /usr/X11R6/bin)

As to why version 2 bash is not using the same path as ver 1 I havent
looked close enough yet (check /etc/profile and /etc/bashrc).

Bevan
-- 
Bevan Broun                                           ph (08) 9380 1587
Computer Systems Officer                             fax (08) 9380 1065
Dept. Electrical and Electronic Engineering      
University of Western Australia                                 rm. G70


More information about the plug mailing list