-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- -=| Vagrant Cascadian, 20.01.2007 09:53 |=-
> On Wed, Jan 10, 2007 at 05:10:48PM +0200, Damyan Ivanov wrote:
>> After ltsp-build-client, the ltsp chroot's etc/hostname contains 'ltsp'.
>> This causes DHCP-supplied hostname to be ignored, making client
>> configuration via lts.conf impossible (using hostnames; it works with
>> IP/MAC addresses).
> 
> yes, we include a file there, so that it can be over-written with the
> proper hostname, however we have not yet implemented any way to
> configure /etc/hostname...

More on this mater below...

> i generally prefer to use mac addresses in lts.conf, so i only have to
> edit one configuration file to configure a new thin-client...

Hmm. This makes sense, yes. I guess I just prefer to refer to PCs by
name. Also, I use some features that require DNS support so the hostname
is mandatory. (making gdm allow machine "hoho" be able to log in as user
"hoho" without supplying a password)

>> Please remove /etc/hostname from client's chroot after setting it up.
> 
> does removing /etc/hostname actually cause hostnames to get configured
> properly?

Yes. The kernel uses the name taken from DHCP and the
/etc/init.d/hostname script does nothing without /etc/hostname. So
`hostname', which takes its data from the kernel gives the host name
from DHCP too, making it all fit together.

> you can install a plugin in /etc/ltsp/plugins/ltsp-build-client/XXX-FOO
> to remove it after installation, if you want that behavior. see the
> documentation for plugins in /usr/share/doc/ltsp-server/plugins

I want to propose to add a plugin to the default installation that puts
the hostname from the kernel (if present) into /etc/hostname. If there
was no host name in the DHCP announce, it may use 'ltsp' as now.

Problem (now) is that /etc/hostname is not writeable, so we either:
1) make /etc/hostname a symlink to writeable area and fill it up before
/etc/init.d/hostname is run in case kernel already has a hostname,
or 2) we forget about /etc/hostname altogether and only set the kernel's
host name to 'ltsp' if it is not set.

Both approaches would require adding an rc script in the chroot, though...


Thank you for taking care,
        dam
- --
Damyan Ivanov                           Modular Software Systems
[EMAIL PROTECTED]
phone +359(2)928-2611, 929-3993              fax +359(2)920-0994
mobile +359(88)856-6067             [EMAIL PROTECTED]/Gaim

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFsei+Hqjlqpcl9jsRAonWAKDMbQaC7MaEXdOD2w3CVpkdcmld2QCfVUug
1QHLMjTsh5rE/TpFwQNz4QU=
=1DJ6
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to