IRC chat logs for #ltsp on irc.libera.chat (webchat)


Channel log from 11 November 2018   (all times are UTC)

07:13GodFather_ has joined IRC (GodFather_!~rcc@d28-23-172-21.dim.wideopenwest.com)
09:25jphein has joined IRC (jphein!b8178628@gateway/web/freenode/ip.184.23.134.40)
09:25
<jphein>
Hello! =] Does anyone have a bit of time to help me with my ltsp-build-client.conf ?
09:26
I don't know the syntax for multiple extra mirrors
09:26
and keys
09:26
#XfreeRDP Nightlies and Greek Schools LTSP PPA APT_KEYS="/etc/ltsp/ADD6BF6D97CE5D8D.asc" APT_KEYS="/etc/apt/trusted.gpg.d/ts_sch_gr_ubuntu_ppa.gpg" EXTRA_MIRROR="http://pub.freerdp.com/repositories/deb/bionic/ freerdp-nightly main" EXTRA_MIRROR="http://ppa.launchpad.net/ts.sch.gr/ppa/ubuntu bionic main"
09:33ricotz has joined IRC (ricotz!~ricotz@ubuntu/member/ricotz)
09:39adrianor1 has joined IRC (adrianor1!~adrianorg@177.156.61.21)
09:43adrianorg has left IRC (adrianorg!~adrianorg@187.113.248.245, Ping timeout: 268 seconds)
10:32jphein has left IRC (jphein!b8178628@gateway/web/freenode/ip.184.23.134.40, Ping timeout: 256 seconds)
12:40nehemiah has joined IRC (nehemiah!~nehemiah@hs-user-138.wia.cz)
18:44jphein has joined IRC (jphein!b8178628@gateway/web/freenode/ip.184.23.134.40)
18:45
<jphein>
Hello! =] Does anyone have a bit of time to help me with my ltsp-build-client.conf ?
18:45
I don't know the syntax for multiple extra mirrors and keys.
18:45
https://github.com/jphein/boxen/blob/master/etc/ltsp/ltsp-build-client.conf
18:50
<quinox>
hi
18:50
you can add them after setting up the image
18:53
<jphein>
yes
18:53
<quinox>
there seem to be 3 mirrors you can use: mirror, early-mirror and extra-mirror
18:54
<jphein>
hmmm... The mirrors actually are working. It's the keys that are not
18:55
<quinox>
--apt-keys accepts multiple keys
18:56
<jphein>
how do you seperate?
18:56
comma or space?
18:57
<quinox>
looking at the source: both should work
18:57
<jphein>
oh, I tried both. =[
18:57
<quinox>
when using a space you need to quote the argument
18:57
<jphein>
Let me try again
18:57
ok
18:58
<quinox>
for every key it runs this command:
18:58
gpg --dearmor < $key > $ROOT/etc/apt/trusted.gpg.d/ltsp-$(basename ${key%%.gpg}).gpg
18:58
<jphein>
Like this? https://github.com/jphein/boxen/blob/master/etc/ltsp/ltsp-build-client.conf
19:00
<quinox>
I think like this: APT_KEYS="/etc/ltsp/ADD6BF6D97CE5D8D.asc /etc/apt/trusted.gpg.d/ts_sch_gr_ubuntu_ppa.gpg"
19:00
but I'm not sure
19:00
<jphein>
the freerdp key ends in .asc is that going to matter?
19:01
<quinox>
<-- always just runs the vanilla build-client and then changes things afterwards
19:01
<jphein>
k
19:01
<quinox>
the substitution inside the code strips .gpg, so you might end up with .asc.gpg
19:01
...but that might not be a problem
19:02
most linux tools don't care for it
19:03
<jphein>
cool, I'm having trouble converting the command line options to the config file. Like PROMPT_ROOTPASS=yes
19:03
do we just have to guess?
19:03
<quinox>
that's one way :-)
19:04
I like to just read the LTSP source code when I'm not sure how it works
19:04
most of the time it's quite straightforward to understand
19:04
most of it is bash
19:04
<jphein>
hahaha, ok. Which file would I start with?
19:04
that's cool
19:04
<quinox>
cd /usr/share/ltsp
19:04
grep -R foobar .
19:04
<jphein>
the only scripting language i know
19:05
k
19:05
<quinox>
if you stick around at some point alkisg will wake up, he knows eeeeeeeeeverything
19:06
<alkisg>
Haha
19:06
<jphein>
awesome!
19:06
<alkisg>
Nah, it's close to bed time now :D
19:06
<jphein>
goodevening!
19:06
<quinox>
half of the advice I give to people turns out to be incorrect or rather roundabout way of fixing it
19:06
<alkisg>
To you too
19:06* alkisg doesn't really like ltsp-build-client and hasn't given it much thought over the years...
19:07
<alkisg>
There are lots of ways to create chroots or template installations; ltsp shouldn't need to have yet another implementation there
19:07nehemiah has left IRC (nehemiah!~nehemiah@hs-user-138.wia.cz, Remote host closed the connection)
19:08
<jphein>
I think I understand, I'm just trying to crate a howto that I can easily recreate
19:09
alkisg, can you check my ltsp-build-client.conf? I'm having key not found errors.
19:09
https://github.com/jphein/boxen/blob/master/etc/ltsp/ltsp-build-client.conf
19:11
<alkisg>
You can't set a variable twice in shell
19:11
EXTRA_MIRROR=1
19:11
EXTRA_MIRROR=2
19:11
After those, EXTRA_MIRROR will be 2, while 1 is lost
19:11
<jphein>
I see
19:11
<alkisg>
Try EXTRA_MIRROR="1, 2"
19:11
<jphein>
ok
19:11
do I need the comma for the keys too?
19:11
<alkisg>
Let me check the source
19:12
add_mirrors() {
19:12
# feed a list of comma-separated or enter-separated mirrors,
19:12
# add them to the chroot's sources.list
19:12
So the most readable way is:
19:13
EXTRA_MIRROR="1
19:13
2"
19:13
<jphein>
ok
19:13
<alkisg>
APT_KEYS seem to be comma separated
19:14
or maybe space too, I haven't loooked at the code yet :)
19:14
This helps too: ltsp-build-client --extra-help
19:15
The code says both commas and spaces should work for keys
19:15
<jphein>
That is helpful, but I have a hard time converting the command line options into the conf file
19:15
like --prompt-rootpass
19:15
<alkisg>
Btw, in your bug report you wrote about a turkish ppa; I think you meant the greek one there...
19:16
<jphein>
hahahahah ooops
19:16
<alkisg>
Also, if C.UTF-8 isn't valid in your system, I doubt it's ltsp's fault
19:17
<jphein>
ok, I'll look elsewhere for that one
19:17
<alkisg>
Finally,"post install scripts" => those are "plugin hooks", for example see : dpkg -L epoptes | grep ltsp ==> /usr/share/ltsp/plugins/ltsp-build-client/common/040-epoptes-certificate
19:18
This file runs `epoptes-client -c` inside the chroot
19:18
<jphein>
ohhhhhh!!!!
19:18
<alkisg>
You can drop your own hooks there
19:20
<jphein>
Thank you!
19:20
<alkisg>
np
19:21
<jphein>
How would I include --prompt-rootpass in my conf?
19:25
<alkisg>
You try it: read /usr/share/ltsp/plugins/ltsp-build-client/Debian/095-rootpass and guess :)
19:26
<jphein>
hmmm, I'll try ROOT_PASS=prompt
19:26
<alkisg>
Nope
19:26
There's no such word in that file
19:26
Did you open the file?
19:26
<jphein>
oops hmmm, I'll try ROOTPASS=prompt
19:26
<alkisg>
:)
19:26
You nailed it!
19:27
<jphein>
=]
19:27
thx!
19:27
<alkisg>
np
19:28
<jphein>
so LTSP is already set with the epoptes client getting the cert after installation, you don't need to run `epoptes-client -c` inside the chroot
19:28
<alkisg>
Right
19:28
As long as you have epoptes already installed on the server
19:28
<jphein>
perfect!
19:29alkisg has left IRC (alkisg!~alkisg@ubuntu/member/alkisg, Quit: Leaving.)
19:29
<jphein>
If you run ltsp-build-client with the --config flag, and then you run it without it seems to cache my last config file
19:29
?
19:31alkisg has joined IRC (alkisg!~alkisg@ubuntu/member/alkisg)
19:37Natureshadow has joined IRC (Natureshadow!45d1515d22@commu.teckids.org)
20:14ricotz has left IRC (ricotz!~ricotz@ubuntu/member/ricotz, Remote host closed the connection)
20:25jphein has left IRC (jphein!b8178628@gateway/web/freenode/ip.184.23.134.40, Quit: Page closed)