Hi all,
this was my questions:
>
> for a demo i need an acount running only the Netscape browser.
>
> I try to change the login-shell field in /etc/passwd with path
> to the Netscape browser. Well, it does not work - X11 don't start.
>
> Okay, this is the wrong way:
>
> demo:xxx:007:11:Demo:/home/demo:/appl/communicator/netscape
>
> So any idea, what to do? (I am running 2.5.1/Openwin, but i don't
> a windowmanager, i need only a X11 window).
>
Well, i have do it with the dot files (login-shell in passwd is now /bin/csh again).
So i put the standard .cshrc, .login und .xinitrc in the home dir and
have to change it a little:
.cshrc:
umask 022
set path=(/bin /usr/bin /usr/ucb /etc .)
if ( $?prompt ) then
set history=32
endif
setenv XINITRC ~/.xinitrc
.login:
stty -istrip
if ( `tty` == "/dev/console" ) then
if ( $TERM == "sun" || $TERM == "AT386" ) then
if ( ${?OPENWINHOME} == 0 ) then
setenv OPENWINHOME /usr/openwin
endif
$OPENWINHOME/bin/openwin
clear # get rid of annoying cursor rectangle
logout # logout after leaving windows system
endif
endif
.xinitrc:
xrdb $OPENWINHOME/lib/Xdefaults # Load Default X11 resource database
if [ -f $HOME/.Xdefaults ]; then
xrdb -merge $HOME/.Xdefaults # Load Users X11 resource database
fi
$OPENWINHOME/lib/openwin-sys # OpenWindows system initialization
eval `locale_env -env` # Set Locale Environment
xsetroot -def # Clear root window
/appl/communicator/netscape -geometry =1152x900+0+0 http://0.0.0.0/bib/ & wmpid=$!
dsdm & # OpenLook Drop Site Database
wait $wmpid # Wait for wm (key client) to exit
You see, i don't start a window manager, i start only netscape. For my job here this
solution is okay. I have then a fullscreen netscape window.
Of course, now i have a new problem: How can i protect netscape preferences, so
that no one can change it (the netscape preferences for the demo account)?
Thanx for all hints to:
Bismark Espinoza <bismark@alta.Jpl.Nasa.Gov>
Ian Erickson <IanE@SPOKESMAN.com>
David Foster <foster@dim.ucsd.edu>
gabriel rosenkoetter <gr@cs.swarthmore.edu>
Arthur Darren Dunham <add@netcom.com>
David Evans <daevans@us.oracle.com>
"Brandon K. Devlin" <bdevlin@logicon.com>
John Jamerson <johnjamerson@mindspring.com>
"Halverson, Mark" <Mhalver@templeton.com>
"Salehi, Michael E" <Mike.Salehi@usa.xerox.com>
Igor Kolker <igor_kolker@yahoo.com>
Nikolay V Panin <lilo@null.ru>
Detlev
-- Detlev | Institut fuer Mikroelektronische Systeme, Uni Hannover Habicht | D-30167 Hannover +49 511 76219662 habicht@ims.uni-hannover.de --------+-------- Handy +49 172 5415752 ---------------------------
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:06 CDT