On Wednesday 27 February 2008 05:04:01 
[EMAIL PROTECTED] wrote:
> > There are now two questions. What can be wrong with nbd service? How to
> > debug?
> >  
>
> The nbd rpm contains only the file /usr/sbin/nbd-server and nothing
> else. How is this supposed to run?
> If ? try to run it, it says
>
> ** (process:21902): WARNING **: Could not parse config file: Could not
> open config file.
> ** Message: Nothing to do! Bye!
>
> if I try /usr/sbin/nbd-server --help except the options it prints, it says
>
> Using configuration file //etc/nbd-server/config
>
> and this file does not exist.
>
> > And why it does not startx ?
> >  
>
> This question remains... :-(

Again, this does not use nfs, it uses nbd.

>From nmd.rpm
-------------------
%post
  cat << EOF >/etc/xinetd.d/nbd
# default: on
# description: nbd server for thin clients
service sieve
{
        socket_type             = stream
        protocol                = tcp
        wait                    = no
        user                    = root
        server                  = /usr/sbin/nbdrootd
        server_args             = /opt/ltsp/images/i386.img
        disable                 = no
        flags                   = IPv4
}
EOF

  cat << EOG >/usr/sbin/nbdrootd
#!/bin/sh

# copyright 2007 Canonical LTD., Oliver Grawert <[EMAIL PROTECTED]>,
# distributed under the terms of the GNU General Public License
# version 2 or any later version.

# nbd-server wrapper that serves an ltsp squashfs image
# start the blockdevice server
#/bin/nbd-server 0 $1 -r -C /dev/null > /dev/null 2>&1
/usr/sbin/nbd-server 0 \$1 -r -C /dev/null >> /tmp/nbd 2>&1
EOG

chmod +x /usr/sbin/nbdrootd
/etc/init.d/xinetd restart

startx
-------
uses a dm and can be used, but we dont use it:

[stm102] /usr/src/redhat/SPECS [54]% cat /tftpboot/ltsp/i386/lts.conf 
[default]
#    SCREEN_07=startx
    LDM_DIRECTX=True
#   LDM_USERNAME=manager
#   LDM_PASSWORD=man

[This file changes if you use ltsp5-ubuntu latest ldm, this is for the rpm]

Look at the install files (above) to see why /etc/nbd-server/config is NOT 
used.

When you get the WARNING what is your command?
should be # rpm -ivh nbd-2.9.9-1.el5.src.rpm

James

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_____________________________________________________________________
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.freenode.net

Reply via email to