* Re: DTLOGIN question
2000-03-05 5:00 DTLOGIN question Evgeny Shumsky
@ 2000-03-05 5:00 ` Tom Leitner
2000-03-05 5:00 ` Rev. Don Kool
1 sibling, 0 replies; 3+ messages in thread
From: Tom Leitner @ 2000-03-05 5:00 UTC (permalink / raw)
Hi Evgeny,
In comp.unix.osf.osf1 Evgeny Shumsky <evgeny@cfd.eng.tau.ac.il> wrote:
> I was wondering, how can let users choose to which computer to login .
> We have 12 hosts each with his own console , but still I would prefare
> to let them choose to login from each of them to each of them,
> i know I should change DTlogin settings but dont know where to start .
> We have Digitall 4.0D
This is easy: Just let dlogin run on all machines *without* an X Server
and start the X server separatly with a chooser.
a.) To run dtlogin without an X server, copy the file /usr/dt/config/Xservers
to /etc/dt/config (possibly creating the directory if it does not exist
yet). comment out the X Server line in the file (it is most probably
the last line in the file). Restart dtlogin with
/sbin/init.d/xlogin stop
/sbin/init.d/xlogin start
Now, you don't have a local X server running but other's can
login to your machine via XDMCP.
b.) Start a local X server and request a chooser. This can be done via
several ways. I do it like this:
- add the following line to /etc/inittab
x3:3:respawn:/etc/xstart
- create a file called /etc/xstart with the following contents:
#!/bin/sh
#
# start the X server on the local console
#
fp="/usr/lib/X11/fonts/decwin/100dpi/,/usr/lib/X11/fonts/100dpi/,/usr/lib/X11/fo
nts/misc/,/usr/lib/X11/fonts/75dpi/,/usr/lib/X11/fonts/Speedo/,/usr/lib/X11/font
s/Type1/,/usr/lib/X11/fonts/user/100dpi/,/usr/lib/X11/fonts/user/misc/,/usr/dt/c
onfig/xfonts/C/"
h=`/sbin/hostname -s`
#o="-bs -su -nice -6 -terminate"
o="-nice -6 -terminate"
r="-screen0 1280 -vsync 75"
c="-dpms -vclass TrueColor -depth 16"
#c="-dpms -vclass TrueColor -depth 24"
exec /usr/bin/X11/X $o -indirect $h $r $c -fp $fp < /dev/console > /dev/console
2>&1
exit 0
- note the "X -indirect localhost" does not work. This is why the
h=.... statment is needed to get the local hostname.
- the options can be used to tailor the X-server to the display
hardware of the local machine.
- enter the commands:
# chmod 700 /etc/xstart
# kill -1 1
and you'll get an X-Server agian, this time it shows a list of all
available machines in the LAN and allows you to select one of them
(also the local machine, of course) and log in.
Finally you need some sort of password management like NIS to have the
same usernames or passwords everywhere. I, for one, try to avoid NIS
and just copy the C2 security database over to the other machines.
Hope this helps // Tom
--
Dr. Tom Leitner Dept. of Communications, Graz Univ. of Technology,
tom@radar.tu-graz.ac.at Inffeldgasse 12, A-8010 Graz / Austria / Europe
PGP public key @ http://wiis.tu-graz.ac.at/people/tom.html
^ permalink raw reply [flat|nested] 3+ messages in thread