[Bug 1014496] Re: ltsp doesn't recognise tftp lts.conf

Alkis Georgopoulos 1014496 at bugs.launchpad.net
Mon Jun 18 07:54:00 UTC 2012


> You shouldn't use netkit-tftp with ltsp

Why don't you file a bug against netkit-tftp if it has problems with
relative links? I'm sure that problem would affect other software too,
not just LTSP.

> Now I've installed the tftpd-hpa and ltsp gets my lts.conf file perfect!
> Maybe the wiki writers could notice this on the wiki pages.

http://packages.ubuntu.com/precise/ltsp-server:
ltsp-server recommends tftpd-hpa or dnsmasq.

And the wiki proposes installing ltsp-server-standalone, which automatically pulls one of those 2 TFTP servers, or using the alternate CD, which does the same thing:
https://help.ubuntu.com/community/UbuntuLTSP/LTSPQuickInstall

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ltsp in Ubuntu.
https://bugs.launchpad.net/bugs/1014496

Title:
  ltsp doesn't recognise tftp lts.conf

Status in “ltsp” package in Ubuntu:
  Incomplete

Bug description:
  Hi all,

  If you see in the /opt/ltsp/i386/usr/share/ltsp/init-
  ltsp.d/05-getltsconffile:

  # default to "/ltsp/i386/lts.conf".
  if [ -n "$SERVER" ]; then
      fileonly=${filename##*/}
      pathonly=${filename%$fileonly}
      lts_conf_temp=$(mktemp)
      tftp "$SERVER" -c get ${pathonly:-/ltsp/i386/}lts.conf $lts_conf_temp >/dev/null
      # only overwrite lts.conf if it has non-zero size.
      if [ -s "$lts_conf_temp" ]; then
          mv "$lts_conf_temp" /etc/lts.conf
      else
          rm "$lts_conf_temp"
      fi
  fi

  # Get the lts.conf vars into the environment
  . /usr/share/ltsp/ltsp_config
  ~                               

  the leading / at "pathonly:-/ltsp/i386/}lts.conf $lts_conf_temp
  >/dev/null" confuses the netkit-tftp in ubuntu 12.04 amd64

  I solved the tftp-problem by editing the /opt/ltsp/i386/usr/share/ltsp
  /init-ltsp.d/05-getltsconffile:

  -- tftp "$SERVER" -c get ${pathonly:-/ltsp/i386/}lts.conf $lts_conf_temp >/dev/null
  ++ tftp "$SERVER" -c get ${pathonly:-ltsp/i386/}lts.conf $lts_conf_temp >/dev/null

  Now the tftp-server I able to push the lts.conf to the clients.

  Please fix.

  Have fun!

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ltsp/+bug/1014496/+subscriptions




More information about the foundations-bugs mailing list