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


Channel log from 8 June 2022   (all times are UTC)

01:47eu^195-240-12-19 has joined IRC (eu^195-240-12-19!~eu^195-24@2a02-a45f-cbdb-1-a460-1d59-1621-6b0.fixed6.kpn.net)
01:48eu^195-240-12-19 has left IRC (eu^195-240-12-19!~eu^195-24@2a02-a45f-cbdb-1-a460-1d59-1621-6b0.fixed6.kpn.net, Client Quit)
02:14iqpjgfj has joined IRC (iqpjgfj!~iqpjgfj@2a02-a45f-cbdb-1-a460-1d59-1621-6b0.fixed6.kpn.net)
02:18
<iqpjgfj>
Hi, after creating ltsp.conf (only for IMAGE_TO_RAM=1) I can't login on my client anymore. Fixed clients with MAC addresses arent an option since I want to use the image for diagnosing old laptops which come and go. How do I enable just using my host OS's login credentials? It works fine without ltsp.conf
02:25
<alkisg>
Unfortunately the developer that contributed the IMAGE_TO_RAM code isn't very active in user support. Why do you need it for old laptops though? It just wastes RAM...
02:35
<iqpjgfj>
It's just a measure of comfort, and 99% of the time the models I work with require a separate proprietary LAN adapter - which bottlenecks the amount of systems that can be tested at the same time. With ramboot I can just swap the cable to the next system.
02:36
Just tested it and its indeed the IMAGE_TO_RAM option that prevents me from logging in, and not the .conf file itself
02:38
<alkisg>
Patches welcome, but personally I don't want to maintain code that I'm not using ..
02:39iqpjgfj has left IRC (iqpjgfj!~iqpjgfj@2a02-a45f-cbdb-1-a460-1d59-1621-6b0.fixed6.kpn.net, Quit: Client closed)
05:40woernie has joined IRC (woernie!~werner@p5b296168.dip0.t-ipconnect.de)
06:28ricotz has joined IRC (ricotz!~ricotz@ubuntu/member/ricotz)
09:38woernie has left IRC (woernie!~werner@p5b296168.dip0.t-ipconnect.de, Quit: No Ping reply in 180 seconds.)
09:40woernie has joined IRC (woernie!~werner@p5b296168.dip0.t-ipconnect.de)
10:22woernie has left IRC (woernie!~werner@p5b296168.dip0.t-ipconnect.de, Ping timeout: 246 seconds)
10:22woernie has joined IRC (woernie!~werner@p5b296168.dip0.t-ipconnect.de)
13:51lucascastro has joined IRC (lucascastro!~lucascast@192-140-51-253.static.oncabo.net.br)
13:59lucascastro has left IRC (lucascastro!~lucascast@192-140-51-253.static.oncabo.net.br, Ping timeout: 258 seconds)
14:54
<RodrigoAlves[m]>
Hello, can anyone help me?
14:55
I'm trying to configure a startup script in crontab ltsp, via /etc/ltsp/ltsp.conf, but the crontab configuration doesn't work
14:55
<alkisg>
What's the ltsp.conf line for that?
14:56
<RodrigoAlves[m]>
first I try to do it the way it is in the example in the documentation, but it still won't, and I also tried following the following plan:
14:56
https://github.com/ltsp/ltsp/discussions/454
14:56woernie has left IRC (woernie!~werner@p5b296168.dip0.t-ipconnect.de, Remote host closed the connection)
14:57
<RodrigoAlves[m]>
alkisg: CRONTAB_x="50 11 * * * root /usr/sbin/poweroff"
14:58
it's in the customers section
14:58
<alkisg>
So the startup script you're running is to poweroff at some specific time?
15:01
<RodrigoAlves[m]>
no, no. I haven't put the script yet. first I'm testing the way it is in the documentation, but it doesn't work
15:02
<alkisg>
So you put that exact line, and you run `ltsp initrd`, and you waited until 11:50, and the client didn't poweroff?
15:03
Are you sure you want a system script and not a user script, that runs inside the user session?
15:03
Because user session scripts are NOT the same as cron scripts
15:05
<RodrigoAlves[m]>
alkisg: exactly
15:05
<alkisg>
OK, run `sudo crontab -e` in the client and see if the line is there or not
15:06
<RodrigoAlves[m]>
alkisg: are you saying this because of the "root" column?
15:06
<alkisg>
No, because cron scripts do not have access to xorg (graphics)
15:06
<RodrigoAlves[m]>
alkisg: Ok
15:06
<alkisg>
They are background scripts, not session scripts
15:07
Also run this on the ltsp client: cat /etc/cron.d/ltsp
15:08
<RodrigoAlves[m]>
alkisg: this path does not exist on the server...
15:08
<alkisg>
Yes, try on the client, not on the server
15:09
<RodrigoAlves[m]>
Ooww ok
15:11
<alkisg> "Are you sure you want a system..." <- I didn't understand here. Why would it be a system script? I have the CRONTAB option inside ltsp.conf
15:11
<alkisg>
Cron is for running services in the background. /etc/xdg/autostart is for running scripts inside the user sessions
15:14
<RodrigoAlves[m]>
only a moment
15:34
<alkisg> "OK, run `sudo crontab -e` in the..." <- there is nothing there, he opened the File "/tmp/crontab.qbiaE4/crontab" by nano, but my command is not there, and all lines are commented out
15:34
<alkisg>
What about cat /etc/cron.d/ltsp ?
15:45
<RodrigoAlves[m]>
sorry for the delay...
15:46
it displays my command, "50 11 * * * root command"
15:46
and says that it was generated by ltsp init
15:56vagrantc has joined IRC (vagrantc!~vagrant@2600:3c01:e000:21:7:77:0:20)
16:03
<alkisg>
Ltsp does it's work then just fine
16:04
Was the command actually /usr/sbin/poweroff or something else?
16:06
<RodrigoAlves[m]>
that was exactly
16:06
I will test with my script to see if it works
16:07
in that case should I allow the execution of the script right?
16:09
I put it like this: * * * * * root bash /iniciliazacao.sh
16:22
the script did not run... in "crontab -e" there is nothing. In "cat /etc/cron.d/ltsp" it shows my command, but even so it doesn't execute "* * * * * root bash /inicializacao.sh" ;(
16:32
<alkisg>
Can you put your script to pastebin so that we can see why it doesn't run properly via cron?
16:33
For example it might be trying to access xorg
16:55
<RodrigoAlves[m]>
<alkisg> "Can you put your script to..." <- you are saying no to put no /bin
16:55
?
17:11Cueball[m] has joined IRC (Cueball[m]!~cueballju@2001:470:69fc:105::2:6ef)
17:20
<alkisg>
!paste
17:20
<ltspbot>
paste: To avoid channel flooding, please upload text longer than 3 lines to http://paste.debian.net. Don't forget to paste the resulting URL here.
17:28
<alkisg>
Rodrigo Alves: put inicializacao.sh there in paste.debian.net
17:29
Or test with a simple script, for example: CRONTAB_X="* * * * * root date >>/tmp/cron-test"
17:33
<RodrigoAlves[m]>
<alkisg> "Rodrigo Alves: put inicializacao..." <- what is this channel about?
17:34
<alkisg> "Or test with a simple script..." <- Do I put it exactly like this?
17:44
<alkisg> "Rodrigo Alves: put inicializacao..." <- paste.debian.net/hidden/62e480e6
17:45
thus?
17:46woernie has joined IRC (woernie!~werner@dynamic-089-204-137-189.89.204.137.pool.telefonica.de)
17:54woernie has left IRC (woernie!~werner@dynamic-089-204-137-189.89.204.137.pool.telefonica.de, Ping timeout: 255 seconds)
17:55
<alkisg>
Rodrigo Alves: yes, thus. Yes, the problem is that you can't run rdp from cron
17:56
Cron is about NOT GRAPHICS tasks, that do not show anything on the screen
17:59
<RodrigoAlves[m]>
sorry, this is still getting on my mind ;(
17:59
do you know how i could do the specified task?
18:01
<alkisg>
It's been discussed many times: https://github.com/ltsp/ltsp/discussions?discussions_q=xfreerdp
18:01
You just need a custom /usr/share/xsessions/your-session.desktop script
18:01
It's not related to cron at all
18:06
<RodrigoAlves[m]>
Got it, I'll take a look. sorry for the mess
18:06oh207_ has joined IRC (oh207_!~oh207@pool-72-69-251-225.nycmny.fios.verizon.net)
18:51oh207_ has left IRC (oh207_!~oh207@pool-72-69-251-225.nycmny.fios.verizon.net, Ping timeout: 252 seconds)
20:31ricotz has left IRC (ricotz!~ricotz@ubuntu/member/ricotz, Quit: Leaving)
23:19Vercas has left IRC (Vercas!~Vercas@gateway/tor-sasl/vercas, Remote host closed the connection)
23:25Vercas has joined IRC (Vercas!~Vercas@gateway/tor-sasl/vercas)