I  already followed this instruccions, but I'm still having a problem 
with  "INIT_PASSWD", any sugestions?.
thanks!.  



*********************************************************************
FROM:Jason Betchel
DATE:08/09/2001

**********************************************************************
I too got this message after following the instructions posted at
http://www.ltsp.org/contrib/LTSP_FLOPPY.html

You have to do a little more than is in the docs.  I've gotten it
working and submitted my additions to Robert Stanford.  He says he will
be including them in his docs.  In the meantime, here is what you need
to do:

1) You have to create the floppy device on the workstation...
  cd /tftpboot/lts/ltsroot/dev
  ln -s ../tmp/fd0
  cd ../etc
  vi rc.local
  -----------append to rc.local-------------
####################################################
#
# Start the floppy daemon
#
echo "Creating floppy device"
mknod -m 0666 /tmp/fd0 b 2 0
echo "Starting nbd server"
/ltsbin/ltsp_nbd &
  -----------append to rc.local-------------

(I assume you found his tarball with the ltsp_nbd script.)

Restart the workstation to use the new rc.local file.  Your "INIT_PASSWD
bad" problem should go away.


2) Fix gdm.  Use this scripting in /etc/X11/gdm/PreSession/Default
instead of what is currently in the docs:

        # Check for remote floppy on LTSP workstation
        if [ -b $HOME/.dev/fd0 ]; then
          FLOPSTN=${DISPLAY%%:*}
          FLOPSTN=${DISPLAY%%.*}
          /usr/local/bin/nbd-client $FLOPSTN 1025 $HOME/.dev/fd0 &
        fi

This alleviates the need to use the username to bind to the terminal. 
The DISPLAY variable contains all the information we need for that.  I
also used HOME instead of USER because a given user's home directory is
not always /home/$USER and the HOME variable is available.  It also only
runs for users with the block device $HOME/.dev/fd0, so it discriminates
based on user, but adapts to wherever they are logging in from!  :)

3) How to access $HOME/.dev/fd0...

I don't use Gnome or gmc, so my need for transparent access lays with
mtools and MToolsFM (GUI for mtools).  Here is the .mtoolsrc file that
goes into a user's home directory to allow this to work:

        drive a: file="~/.dev/fd0" 1.44m mformat_only

Mtools is designed to only work with DOS/FAT formatted floppies, but
those are the kinds that users generally have.  Once the .mtoolsrc file
is in the user's home directory, it just works!

Now here's the bad news:  I can't figure out how to *stop* the
nbd-clients!  'kill' and even 'kill -9' doesn't do it and I can't unload
the nbd module either.  You have to reboot to clear it.  Until this is
resolved it's not a complete solution.  I've looked at the source code,
but it's out of my league to debug this sort of thing.  Mr. Stanford
says that the nbd-client is stuck in an ioctl loop and that is why it
cannot receive any signals.  I'm inclined to believe him based on what
I've seen in the source.  Anyone want to take a whack at it?

***********************************************************************

_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.openprojects.net

Reply via email to