epoptes team mailing list archive
-
epoptes team
-
Mailing list archive
-
Message #00181
Re: [Question #195888]: Configuring for multiple servers
Question #195888 on Epoptes changed:
https://answers.launchpad.net/epoptes/+question/195888
Alkis Georgopoulos proposed the following answer:
> b) create an /opt/ltsp/i386/usr/local/usr/sbin/epoptes-client wrapper,
with the following contents:
Ouch, /etc/xdg/autostart/epoptes-client.desktop contains a hardcoded /usr/sbin/epoptes-client path, so that won't work, you'd need to mv that file and create the launcher in /usr/sbin/epoptes-client instead, which would in turn exec /usr/sbin/epoptes-client.real.
And you'd also need to do that in /usr/sbin/epoptes-client too, not only in the chroot.
If you don't care for both teachers to be able to control the clients _before_ login, but only after login, you could alternatively do the following:
sudo mv /usr/sbin/epoptes-client /usr/sbin/epoptes-client.real
sudo vi /usr/sbin/epoptes-client
#!/bin/sh
case $(hostname) in
class1*)
export SERVER=server1
;;
class2*)
export SERVER=server2
;;
esac
exec /usr/sbin/epoptes-client.real
(and comment out SERVER in /etc/default/epoptes-client)
--
You received this question notification because you are a member of
Epoptes Developers, which is an answer contact for Epoptes.