From unknown Fri Mar 29 03:16:56 2024 X-Loop: owner@bugs.x2go.org Subject: Bug#250: ultiple xorg.conf's in x2go TCE Reply-To: stephan.wagner@itos-gmbh.com, 250@bugs.x2go.org Resent-From: Stephan Wagner Resent-To: x2go-dev@lists.berlios.de Resent-CC: X2Go Developers X-Loop: owner@bugs.x2go.org Resent-Date: Wed, 26 Jun 2013 20:18:02 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.x2go.org X-X2Go-PR-Message: report 250 X-X2Go-PR-Package: x2gothinclient X-X2Go-PR-Keywords: Received: via spool by submit@bugs.x2go.org id=B.137227702619043 (code B); Wed, 26 Jun 2013 20:18:02 +0000 Received: (at submit) by bugs.x2go.org; 26 Jun 2013 20:03:46 +0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on ymir.das-netzwerkteam.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=HTML_MESSAGE,URIBL_BLOCKED autolearn=ham version=3.3.2 Received: from mail.itos-gmbh.com (mail.itos-gmbh.com [188.40.99.228]) by ymir (Postfix) with ESMTPS id 2FBC25DB1E for ; Wed, 26 Jun 2013 22:03:46 +0200 (CEST) Received: from mail.itos-gmbh.com (adsl-89-217-17-60.adslplus.ch [89.217.17.60]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.itos-gmbh.com (Postfix) with ESMTPSA id CD46353495 for ; Wed, 26 Jun 2013 22:03:45 +0200 (CEST) From: Stephan Wagner Organization: ITos GmbH To: submit@bugs.x2go.org Date: Wed, 26 Jun 2013 22:03:44 +0200 User-Agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; ) X-KMail-Markup: true MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="Boundary-01=_gk0yRBft/WNz7EJ" Content-Transfer-Encoding: 7bit Message-Id: <201306262203.44818.stephan.wagner@itos-gmbh.com> --Boundary-01=_gk0yRBft/WNz7EJ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Package: x2gothinclient Severity: wishlist On Mi 26 Jun 2013 18:02:20 CEST Stephan Wagner wrote: > We use the 'hostname' to distinguish the xorg.conf's for different thin > clients. The attached init-script 'x2gohostname' replaces the default > 'hostname' with the ethernet address of the network device eth0. Colons are > replaced by dashes. Xorg will search the xorg.conf. file in the > directory /usr/etc/X11/, which correspond to > /opt/x2gothinclient/chroot/usr/etc/X11/ in the PXE-boot environment. > > The init-script goes to /opt/x2gothinclient/chroot/etc/init.d/. Enter the > chroot-environment executing 'x2gothinclient_shell'. 'update-rc.d > x2gohostname > defaults' will generate the symlinks for the different run-levels. > > Hope this helps someone, Stephan Can you please re-send this mail to submit@bugs.x2go.org and put the below lines as first lines of the mail body:?: """ Package: x2gothinclient Severity: wishlist """ My suggestion would be to improve this script a little further. From Debian Edu I know that it is rather easy to retrieve the hostname from DNS. Like this: MAC -> DHCP -> retrieve IP -> DNS -> set FQDN (revDNS) as hostname If this fails, MAC as hostname is a fallback that is good enough. Thanks+Greets, Mike -- __________________________________________________ Dr. Stephan Wagner ITos GmbH Bitzi-Bendel 2555 9642 Ebnat-Kappel Tel: +41 (0)71 990 05 94 mailto:swagner@itos-gmbh.com http://www.itos-gmbh.com -------------------------------------------------- --Boundary-01=_gk0yRBft/WNz7EJ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit

Package: x2gothinclient

Severity: wishlist

 

 

On Mi 26 Jun 2013 18:02:20 CEST Stephan Wagner wrote:

 

> We use the 'hostname' to distinguish the xorg.conf's for different thin

> clients. The attached init-script 'x2gohostname' replaces the default

> 'hostname' with the ethernet address of the network device eth0. Colons are

> replaced by dashes. Xorg will search the xorg.conf.<hostname> file in the

> directory /usr/etc/X11/, which correspond to

> /opt/x2gothinclient/chroot/usr/etc/X11/ in the PXE-boot environment.

>

> The init-script goes to /opt/x2gothinclient/chroot/etc/init.d/. Enter the

> chroot-environment executing 'x2gothinclient_shell'. 'update-rc.d

> x2gohostname

> defaults' will generate the symlinks for the different run-levels.

>

> Hope this helps someone, Stephan

 

Can you please re-send this mail to submit@bugs.x2go.org and put the

below lines as first lines of the mail body:?:

 

"""

Package: x2gothinclient

Severity: wishlist

"""

 

My suggestion would be to improve this script a little further. From

Debian Edu I know that it is rather easy to retrieve the hostname from

DNS.

 

Like this: MAC -> DHCP -> retrieve IP -> DNS -> set FQDN (revDNS) as hostname

 

If this fails, MAC as hostname is a fallback that is good enough.

 

Thanks+Greets,

Mike

 

--

__________________________________________________

Dr. Stephan Wagner

ITos GmbH

Bitzi-Bendel 2555

9642 Ebnat-Kappel

Tel: +41 (0)71 990 05 94

mailto:swagner@itos-gmbh.com

http://www.itos-gmbh.com

--------------------------------------------------

 

--Boundary-01=_gk0yRBft/WNz7EJ--