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


Channel log from 17 February 2021   (all times are UTC)

00:12Aison has left IRC (Aison!~Asion0@ipr01.alvhaus.ch, Ping timeout: 265 seconds)
00:44Aison has joined IRC (Aison!~Asion0@ipr01.alvhaus.ch)
00:58vagrantc has left IRC (vagrantc!~vagrant@unaffiliated/vagrantc, Quit: leaving)
01:34GodFather has joined IRC (GodFather!~rcc@wsip-66-210-242-210.ph.ph.cox.net)
01:37GodFather has left IRC (GodFather!~rcc@wsip-66-210-242-210.ph.ph.cox.net, Remote host closed the connection)
01:43GodFather has joined IRC (GodFather!~rcc@wsip-66-210-242-210.ph.ph.cox.net)
03:23GodFather has left IRC (GodFather!~rcc@wsip-66-210-242-210.ph.ph.cox.net, Ping timeout: 265 seconds)
06:59ricotz has joined IRC (ricotz!~ricotz@ubuntu/member/ricotz)
07:52RaphGro has joined IRC (RaphGro!~raphgro@fedora/raphgro)
08:33woernie has joined IRC (woernie!~werner@pd9e8b5cc.dip0.t-ipconnect.de)
08:47ltspnewbie has joined IRC (ltspnewbie!d4d39af8@212.211.154.248)
08:49aza has joined IRC (aza!4e3e3b91@78-62-59-145.static.zebra.lt)
08:49
<ltspnewbie>
Hi, I am using LightDM and added `LIGHTDM_CONF="user-session=plasma"` to `/etc/ltsp/ltsp.conf` . I want to add another config option, but I can add this line only once, and I can't figure out how I can add several options. Did anyone succeed in that?
09:19woernie has left IRC (woernie!~werner@pd9e8b5cc.dip0.t-ipconnect.de, Remote host closed the connection)
09:19woernie has joined IRC (woernie!~werner@pd9e8b5cc.dip0.t-ipconnect.de)
09:20
<alkisg>
ltspnewbie: use this:
09:21
VAR="multi
09:21
line
09:21
value"
09:21ltspnewbie has left IRC (ltspnewbie!d4d39af8@212.211.154.248, Quit: Connection closed)
09:34woernie has left IRC (woernie!~werner@pd9e8b5cc.dip0.t-ipconnect.de, Ping timeout: 256 seconds)
09:35woernie has joined IRC (woernie!~werner@pd9e8b5cc.dip0.t-ipconnect.de)
09:48mwalters has left IRC (mwalters!~ubox@204.111.136.22, Ping timeout: 260 seconds)
09:57Aison has left IRC (Aison!~Asion0@ipr01.alvhaus.ch, Remote host closed the connection)
09:57ltspnewbie has joined IRC (ltspnewbie!d4d39af8@212.211.154.248)
10:00mwalters has joined IRC (mwalters!~ubox@204.111.136.22)
10:00
<aza>
after "ltsp image /"  and booting client I get an error "/ltsp/x86_64/vmlinuz ... No such file or directory" on the LTSP server /srv/ltsp/images/ i am not see vmlinuz ???
10:28
<alkisg>
aza: do you have a separate /boot partition in your image?
10:29
If so, `man ltsp image`, and read the EXAMPLES section
11:40woernie has left IRC (woernie!~werner@pd9e8b5cc.dip0.t-ipconnect.de, Ping timeout: 265 seconds)
11:41woernie has joined IRC (woernie!~werner@p578bb7b6.dip0.t-ipconnect.de)
11:46
<aza>
ok
12:00lucascastro has left IRC (lucascastro!~lucascast@177-185-133-183.dynamic.isotelco.net.br, Remote host closed the connection)
12:02lucascastro has joined IRC (lucascastro!~lucascast@177-185-133-183.dynamic.isotelco.net.br)
12:48Peter_Monkberry has joined IRC (Peter_Monkberry!6c221083@static-108-34-16-131.bflony.fios.verizon.net)
12:48
<Peter_Monkberry>
Hello all
12:49
<alkisg>
Hello Peter_Monkberry
12:49
Ah, that's much better than eu_random_number :)
12:51
<Peter_Monkberry>
lol
12:51
The change you made to dhcp the other day is working great
12:52
<alkisg>
Yey
12:52
<Peter_Monkberry>
I do have a question in that the switch over to pfsense handing out addresses (seems to be the only differing factor), I can no longer use epoptes or command line wakeonlan to start the pcs. Any thoughts?
12:53
No matter which side of the vlan fence either
12:53
<alkisg>
From what I recall, your ltsp server was handing out address in one side, right?
12:54
Want me to have a look? I don't recall all the setup details...
12:54
!vnc-alkisg
12:54
<ltspbot>
vnc-alkisg: To share your screen with me, run this: sudo apt-get --yes install x11vnc; x11vnc -connect alkisg.ltsp.org; this is a reverse connection, it doesn't need port forwarding etc.
12:56
<Peter_Monkberry>
sure I'd love you to have a look
12:56
the one vlan is using isc-dhcp and the other vlan is using pfsense for the dhcp
12:57
ok one sec please
12:57
<alkisg>
And you have a single ltsp server where all clients boot from, right?
12:57TheBossHogg has joined IRC (TheBossHogg!6c221082@gw.monkberry.com)
12:58
<Peter_Monkberry>
yes
13:00
<alkisg>
Peter_Monkberry: now it would help if you could vnc to me, from some client that you do NOT see in epoptes
13:00
There ARE some clients in epoptes there
13:00
<Peter_Monkberry>
they all show in epoptes once they boot
13:00
<alkisg>
Ah ok. Then the problem is only in send a wol message?
13:00
<Peter_Monkberry>
the problem I'm having is actually starting the pcs from epoptes
13:01
yes it would seem
13:01
<alkisg>
Let's first try to send a wol in the same subnet
13:01
Tell me a pc in the same vlanas the ltsp server
13:01
<Peter_Monkberry>
but I also the pcs don't listen if I run wakeonlan as root either
13:01
each on their own vlan to rule that out
13:01
ok
13:02
<alkisg>
Epoptes does some magic before shutdown; it tells the systems to listen for wol
13:02
But if you e.g. power them off by the button, they won't be listening
13:02
Are the lights on, at the back of their ethernet adapters?
13:02
<Peter_Monkberry>
I'm not there so I don't know about the lights, nor about the power off by button
13:03
If you think that's a possibility, we can stop this now and I'll verify that later
13:03
<alkisg>
Since you said that "you tried wol in the same vlan", yeah, that's what I think is the most likely issue
13:03
So let's stop and continue after you test that
13:03
<Peter_Monkberry>
ok sounds good
13:03
<alkisg>
I.e. usual linux shutdown, then wol in the same vlan; and check lights
13:04
<Peter_Monkberry>
thank you!
13:04
<alkisg>
See you!
13:04
<Peter_Monkberry>
ok
13:04Peter_Monkberry has left IRC (Peter_Monkberry!6c221083@static-108-34-16-131.bflony.fios.verizon.net, Quit: Connection closed)
13:05TheBossHogg has left IRC (TheBossHogg!6c221082@gw.monkberry.com, Quit: Connection closed)
14:09TheBossHogg has joined IRC (TheBossHogg!6c221082@gw.monkberry.com)
14:09TheBossHogg has left IRC (TheBossHogg!6c221082@gw.monkberry.com, Client Quit)
14:41sebd_ has joined IRC (sebd_!~seb@aditu.ldd.fr)
14:43
<sebd_>
Hello, how do I set environment variables at LTSP client boot from ltsp.conf ? I tried POST_INIT_PRINTER='export PRINTER=printername' but it does not seem to work
15:00
<alkisg>
sebd_, which process do you want to set that variables to?
15:00
The users? systemd? pam?
15:01
<sebd_>
the user session, ideally, so that when libreoffice, evince or others try to print they have their own room's printer as default
15:01
<alkisg>
LTSP doesn't manage the user environment
15:01
Read `man pam_env`, and set variables there
15:01
<sebd_>
ok
15:01
<alkisg>
Some may also go in /etc/environment
15:02
And, you could provide a session override at e.g. /usr/local/bin/mate, which export the variable, and then exec's /usr/bin/mate"$@"
15:02
<sebd_>
ah yes
15:08
<alkisg>
*mate-session, not mate
15:09
It's also possible to set the default printer, system-wide, in cups
15:13
<sebd_>
yes but we want it to depend on the physical computer (MAC address), so it should be set from /usr/share/ltsp/client/init/somefile
15:14
we need PRINTER and PRINTER_LIST
15:16
I guess something like ENVIRONMENT_somename=somevalue under [client] or [MA:CA:DD:RE:SS] would be useful. It would append these values at the end of /etc/environment or /etc/profile.
15:22
<alkisg>
sebd_: you can have [mac] POST_INIT_SET_PRINTER="sed cups..."
15:22
That's what ltsp.conf [mac] sections are for, to take effect only on certain macs
15:23
So you'd end up with a different default printer, system-wide, based on client mac
15:23
No need for environment variables that way
15:24
<sebd_>
trying [mac]\nPOST_INIT_printer='echo PRINTER=thePrinterQueue >> /etc/environment'
15:25
(with the right mac of course, I know)
15:25
<alkisg>
There's a chance that /etc/environment doesn't take effect... I think I once read something about it, but my memory of that is very faint. Try it...
15:25
If so, then use pam_env
15:26
<sebd_>
it should be read by pam_env as its default envfile, and pam_env.so seems enabled by default on debian
15:31GodFather has joined IRC (GodFather!~rcc@wsip-66-210-242-210.ph.ph.cox.net)
15:31
<alkisg>
/etc/pam.d/lightdm:session required pam_env.so readenv=1 user_readenv=1 envfile=/etc/default/locale
15:32
It doesn't seem to use /etc/environment; but do try it
15:33
<sebd_>
works here (debian 10)
15:34
no actually it only work in an ssh session
15:35
/etc/pam.d/sshd:session required pam_env.so
15:39aza has left IRC (aza!4e3e3b91@78-62-59-145.static.zebra.lt, Quit: Connection closed)
15:42
<sebd_>
let's try POST_INIT_printer='echo PRINTER=thePrinterQueue >> /etc/default/locale'
15:43
<mwalters>
shouldn't user env vars go in ~/.profile ?
15:44
<sebd_>
mwalters: we do not want it per user but per client
15:45
in LTSP5 we used to append to lts.conf LDM_PRINTER_LIST and LDM_PRINTER_DEFAULT
15:45
<mwalters>
ah ok
15:45
I hadn't caught that far up
15:46
<sebd_>
actually lightdm reads /etc/environment too, so it might work
15:46GodFather has left IRC (GodFather!~rcc@wsip-66-210-242-210.ph.ph.cox.net, Ping timeout: 272 seconds)
15:49
<mwalters>
looking at the man for ltsp.conf on ltsp2020 (or whatever it's called now), it looks like you can write shell script directly in each section... could you just `[mac]\nexport SOME_VAR=somevalue`?
15:50
I suppose it depends on at what point in the client bootstrap process that gets run
15:50
...and as who... nevermind :)
15:50
<sebd_>
that's the first thing I tried too
15:50
will try more tomorrow
15:52
mwalters: sorry, actually I tried [mac]\nPOST_INIT_PRINTER='export PRINTER=printername'
15:52
I did not try `[mac]\nexport SOME_VAR=somevalue`
15:53
<mwalters>
I'm *assuming* it probably doesn't do what you want... but I'm really not sure ;)
15:53
<sebd_>
I believe it does something but it does it too early in the boot process
15:53
<mwalters>
I figured alkis would've suggested it, if it would :)
15:53
<sebd_>
no time to read code now
15:57
<alkisg>
mwalters, nah, like I said to sebd_, LTSP doesn't do anything about user sessions
15:57
In the past, ubuntu had a patch in cups for LDM_PRINTER_LIST, I'm not sure it still has that
15:57
<mwalters>
makes sense now that I actually followed that train of thought after blurting it out ;)
16:04woernie has left IRC (woernie!~werner@p578bb7b6.dip0.t-ipconnect.de, Ping timeout: 256 seconds)
16:04woernie has joined IRC (woernie!~werner@pd9e8b5cc.dip0.t-ipconnect.de)
16:21GodFather has joined IRC (GodFather!~rcc@wsip-66-210-242-210.ph.ph.cox.net)
16:33GodFather has left IRC (GodFather!~rcc@wsip-66-210-242-210.ph.ph.cox.net, Ping timeout: 272 seconds)
16:50woernie has left IRC (woernie!~werner@pd9e8b5cc.dip0.t-ipconnect.de, Ping timeout: 256 seconds)
16:51woernie has joined IRC (woernie!~werner@pd9e8b5cc.dip0.t-ipconnect.de)
16:52vagrantc has joined IRC (vagrantc!~vagrant@unaffiliated/vagrantc)
17:46woernie has left IRC (woernie!~werner@pd9e8b5cc.dip0.t-ipconnect.de, Ping timeout: 265 seconds)
17:46woernie has joined IRC (woernie!~werner@pd9e8b5cc.dip0.t-ipconnect.de)
18:51GodFather has joined IRC (GodFather!~rcc@wsip-66-210-242-210.ph.ph.cox.net)
19:36woernie has left IRC (woernie!~werner@pd9e8b5cc.dip0.t-ipconnect.de, Ping timeout: 260 seconds)
19:37Vercas has left IRC (Vercas!~Vercas@unaffiliated/vercas, Quit: Farewell.)
21:04RaphGro has left IRC (RaphGro!~raphgro@fedora/raphgro, Quit: Please remember your own message. It'll be read as soon as possible.)
21:46Vercas has joined IRC (Vercas!~Vercas@unaffiliated/vercas)
21:57ricotz has left IRC (ricotz!~ricotz@ubuntu/member/ricotz, Quit: Leaving)
22:05Vercas has left IRC (Vercas!~Vercas@unaffiliated/vercas, Quit: Farewell.)
22:06Vercas has joined IRC (Vercas!~Vercas@unaffiliated/vercas)
22:27ltspnewbie has left IRC (ltspnewbie!d4d39af8@212.211.154.248, Quit: Connection closed)
23:20Vercas has left IRC (Vercas!~Vercas@unaffiliated/vercas, Quit: Farewell.)