|01:47||eu^195-240-12-19 has joined IRC (email@example.com)|
|01:48||eu^195-240-12-19 has left IRC (firstname.lastname@example.org, Client Quit)|
|02:14||iqpjgfj has joined IRC (email@example.com)|
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
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...
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.
Just tested it and its indeed the IMAGE_TO_RAM option that prevents me from logging in, and not the .conf file itself
Patches welcome, but personally I don't want to maintain code that I'm not using ..
|02:39||iqpjgfj has left IRC (firstname.lastname@example.org, Quit: Client closed)|
|05:40||woernie has joined IRC (email@example.com)|
|06:28||ricotz has joined IRC (ricotz!~ricotz@ubuntu/member/ricotz)|
|09:38||woernie has left IRC (firstname.lastname@example.org, Quit: No Ping reply in 180 seconds.)|
|09:40||woernie has joined IRC (email@example.com)|
|10:22||woernie has left IRC (firstname.lastname@example.org, Ping timeout: 246 seconds)|
|10:22||woernie has joined IRC (email@example.com)|
|13:51||lucascastro has joined IRC (firstname.lastname@example.org)|
|13:59||lucascastro has left IRC (email@example.com, Ping timeout: 258 seconds)|
Hello, can anyone help me?
I'm trying to configure a startup script in crontab ltsp, via /etc/ltsp/ltsp.conf, but the crontab configuration doesn't work
What's the ltsp.conf line for that?
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||woernie has left IRC (firstname.lastname@example.org, Remote host closed the connection)|
alkisg: CRONTAB_x="50 11 * * * root /usr/sbin/poweroff"
it's in the customers section
So the startup script you're running is to poweroff at some specific time?
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
So you put that exact line, and you run `ltsp initrd`, and you waited until 11:50, and the client didn't poweroff?
Are you sure you want a system script and not a user script, that runs inside the user session?
Because user session scripts are NOT the same as cron scripts
OK, run `sudo crontab -e` in the client and see if the line is there or not
alkisg: are you saying this because of the "root" column?
No, because cron scripts do not have access to xorg (graphics)
They are background scripts, not session scripts
Also run this on the ltsp client: cat /etc/cron.d/ltsp
alkisg: this path does not exist on the server...
Yes, try on the client, not on the server
<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
Cron is for running services in the background. /etc/xdg/autostart is for running scripts inside the user sessions
only a moment
<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
What about cat /etc/cron.d/ltsp ?
sorry for the delay...
it displays my command, "50 11 * * * root command"
and says that it was generated by ltsp init
|15:56||vagrantc has joined IRC (vagrantc!~vagrant@2600:3c01:e000:21:7:77:0:20)|
Ltsp does it's work then just fine
Was the command actually /usr/sbin/poweroff or something else?
that was exactly
I will test with my script to see if it works
in that case should I allow the execution of the script right?
I put it like this: * * * * * root bash /iniciliazacao.sh
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" ;(
Can you put your script to pastebin so that we can see why it doesn't run properly via cron?
For example it might be trying to access xorg
<alkisg> "Can you put your script to..." <- you are saying no to put no /bin
|17:11||Cueball[m] has joined IRC (Cueball[m]!~cueballju@2001:470:69fc:105::2:6ef)|
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.
Rodrigo Alves: put inicializacao.sh there in paste.debian.net
Or test with a simple script, for example: CRONTAB_X="* * * * * root date >>/tmp/cron-test"
<alkisg> "Rodrigo Alves: put inicializacao..." <- what is this channel about?
<alkisg> "Or test with a simple script..." <- Do I put it exactly like this?
<alkisg> "Rodrigo Alves: put inicializacao..." <- paste.debian.net/hidden/62e480e6
|17:46||woernie has joined IRC (email@example.com)|
|17:54||woernie has left IRC (firstname.lastname@example.org, Ping timeout: 255 seconds)|
Rodrigo Alves: yes, thus. Yes, the problem is that you can't run rdp from cron
Cron is about NOT GRAPHICS tasks, that do not show anything on the screen
sorry, this is still getting on my mind ;(
do you know how i could do the specified task?
It's been discussed many times: https://github.com/ltsp/ltsp/discussions?discussions_q=xfreerdp
You just need a custom /usr/share/xsessions/your-session.desktop script
It's not related to cron at all
Got it, I'll take a look. sorry for the mess
|18:06||oh207_ has joined IRC (email@example.com)|
|18:51||oh207_ has left IRC (firstname.lastname@example.org, Ping timeout: 252 seconds)|
|20:31||ricotz has left IRC (ricotz!~ricotz@ubuntu/member/ricotz, Quit: Leaving)|
|23:19||Vercas has left IRC (Vercas!~Vercas@gateway/tor-sasl/vercas, Remote host closed the connection)|
|23:25||Vercas has joined IRC (Vercas!~Vercas@gateway/tor-sasl/vercas)|