[X2go-dev] x2go thin client session configuration

Philipp Huebner debalance at debian.org
Sun Jan 23 11:07:10 CET 2011


Hi,

On 21/01/11 18:23, Neil W. Hunt wrote:
> thanks so much for the help and pointer to the script. A couple questions:
> 
> 1. I see the /opt/x2gothinclient/etc/init.d/ramdrive script, however I
> don't see S*ramdrive anywhere in my /opt/x2gothinclient/etc/rc*.d
> directories - does this mean it isn't running at startup? If it is
> running at startup, how is it being executed? If not, does that mean my
> /ramdrive isn't even being created and mounted?

It is the first script run by init:
:~$ ls -l /opt/x2gothinclient/etc/rcS.d/S00ramdrive

lrwxrwxrwx 1 root root 18  5. Jun 2010
/opt/x2gothinclient/etc/rcS.d/S00ramdrive -> ../init.d/ramdrive

I assume this link is created from the maintainer scripts in one of the
x2go thinclient packages, as well as the ramdrive script itself and so
on. In my case I modified the ramdrive script a bit.


> 2. I also see in your script these lines:
> 
> chroot /opt/x2gothinclient rm -f /etc/rcS.d/S05bootlogd
> /etc/rcS.d/S08pcmciautils /etc/rcS.d/S09checkroot.sh
> /etc/rcS.d/S11checkfs.sh /etc/rcS.d/S12resize_lvm
> /etc/rcS.d/S16readahead-desktop /etc/rcS.d/S19portmap
> /etc/rcS.d/S20nfs-common /etc/rcS.d/S26cryptdisks-early
> /etc/rcS.d/S28cryptdisks /etc/rcS.d/S30checkfs.sh
> /etc/rcS.d/S45mountnfs.sh /etc/rcS.d/S46mountnfs-bootclean.sh
> /etc/rcS.d/S99stop-bootlogd-single /etc/rc2.d/S99stop-bootlogd

These services don't need to run on the thinclient, I removed the
startup links trying to save a little time during boot.

It would be better to use update-rc.d instead of rm -f though..


> chroot /opt/x2gothinclient mv /etc/rc2.d/S20x2gothinclient
> /etc/rc2.d/S90x2gothinclient
> 
> It looks like you are doing some shifting of sorts on the process boot
> order. Can you offer any insight into what you were doing there?

I can't remember why I did this, maybe to circumvent some kind of bug
due to services being started in the wrong order.

I remember e.g. kdm crashing if ntp changes the system time at a
specifig time during kdm's startup.


Regards,
-- 
 .''`.   Philipp Huebner <debalance at debian.org>
: :'  :  pgp fp: 6719 25C5 B8CD E74A 5225  3DF9 E5CA 8C49 25E4 205F
`. `'`   HP: http://www.debalance.de, Skype: philipp-huebner
  `-     ICQ: 235-524-440, Jabber: der_schakal at jabber.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20110123/b6b9c0e7/attachment.pgp>


More information about the x2go-dev mailing list