|01:26||ltspbot has left IRC (email@example.com, Server closed connection)|
|01:26||ltspbot has joined IRC (firstname.lastname@example.org)|
|05:09||ricotz has joined IRC (ricotz!~ricotz@ubuntu/member/ricotz)|
alkis: capscience is my colleague. RHEL/Fedora port is still in my todo list but I've been too busy to do it. So now it's caps's turn to give it a try.
bcg_: nice, I too am too busy but I'll try to chime in a bit wherever I can
capscience: see also this thread: https://github.com/ltsp/ltsp/discussions/197#discussioncomment-435950
capscience: apart from IRC, we could also discuss your progress in the related issue: https://github.com/ltsp/ltsp/issues/155 - that way other RHEL/Fedora users might also be able to help
Some background: Our client is still using ltsp5 on rhel7. Now rhel7 is nearing EOL so we must upgrade to rhel9. Some years ago I already did preliminary port to rhel8, but I never finished it.
bcg_: fat clients, not thin, right?
OK, yeh only dracut and pam will be a challenge then
|08:42||wyre is back|
Hi alkisg. I migrated user accounts from our old (Ubuntu 18) to new (Ubuntu 22) LTSP server. I did this by copying the respective entries from /etc/passwd and /etc/shadow. Apparently nobody can login. Do you have any idea where I messed up? :-)
|08:56||wyre is now away: Auto away at Thu Jun 22 08:54:31 2023 UTC|
|09:00||luffy[m] has left IRC (luffy[m]!~luffychat@2001:470:69fc:105::3:5644, Remote host closed the connection)|
Hyperbyte: ltsp initrd, and client reboot?
Nope, doesn´t work
I checked auth log on the server, it says auth succesful and then immediately client disconnected
Hyperbyte: using chroot or chrootless? Is sshfs in the image?
chrootless, the default. sshfs is in the image, but homes are mounted via nfs.
auth.log says session opened by user, immediately followed by received disconnect
I presume something prevents the clients from starting a graphical session, but I don't understand why
Use an xterm session. Or check the client side logs
Or the homes ownership
You're right. I think I forgot -R while setting home dir permissions.
|10:26||wyre is back|
|11:05||* Hyperbyte taps alkisg on the shoulder and bows|
Oh great LTSP oracle. May I partake in your wisdom again?
Does printing still work out of the box on Ubuntu 22? I read that cups client.conf is being deprecated
From phone. man ltsp.conf, see print. Cups still woks fine
<alkisg> "When you're sending ltsp.img..." <- Is dnsmasq supposed to tell everything necessary to the client, without any additional config on the external dhcp server? I have a debian test system for reference, and that seems to work without having anything on the external dhcp server. The rhel server does not send anything to the client unless I set next-server and filename to the external dhcp server, so perhaps the dnsmasq config is
The debian system also seemed to only get ltsp.img when using next-server config on the external dhcp server
Proxydhcp means no config on external server is necessary
Realdhcp means no external server exists at all
Dnsmasq and ltsp support both modes
Ok. So the current problem definetly is that the client does not receive everything it needs to boot
I configured both systems just using ltsp dnsmasq, so in theory they should be the same config, but now I know where to look next
Well, that was an easy problem to fix. "Someone" forgot to disable the firewall, that might have blocked the proxy dhcp... Onto the next problem :)
capscience: btw, do you have any experience with developing dracut plugins?
No, I do not
This is the first time I work with anything dracut related :)
Ouch. That'll take a long while then, be very patient! :)
See the thread I mentioned, I tried it in the past, reached a few bugs in dracut, files them, I was ignored, and I gave up
Yeah, that thread was the first thing bcg told me to read
Might take a while, but at least I'll probably learn something
It's also possible to boot the clients in ltsp mode without bothering with dracut; in that case, you'd leave the dracut task as the last one
I've also described that method there in that thread. Then you'll have PAM as the first problem to resolve, which I imagine will be more straightforward
I think I would recommend that you do that that way, it will be easier on you, and more fruitful
|12:51||sunweaver is back|
|12:54||wyre is now away: Auto away at Thu Jun 22 12:53:12 2023 UTC|
|12:56||wyre is back|
|15:08||wyre is now away: Auto away at Thu Jun 22 15:06:40 2023 UTC|
|15:09||wyre is back|
|15:19||wyre is now away: Auto away at Thu Jun 22 15:17:16 2023 UTC|
|15:29||wyre is back|
|15:31||sunweaver is now away: not here ...|
|15:31||sunweaver is back|
|15:39||wyre is now away: Auto away at Thu Jun 22 15:38:13 2023 UTC|
hello all, on ltsp.conf I see that we can overide fstab by adding something like FSTAB_x="server:/home /home nfs defaults,nolock 0 0"
but I want use sshfs
and I want use pam like ltsp is working
in fact, I want use another ssh server for /home 😛
𝔼𝕣𝕣𝟜𝟘𝟜: the users are going to login on server1, and use home from server2?
not the ltsp server for /home
Why don't they login on server2?
because all their /home is stored on the server2 (big hard drive)
Understood, but why don't you put the user accounts on server2 then
You don't need them on server1 at all
I have server1 on a virtual machine, and it is the ltsp server
but I want use the server2 for /home storage
What's the host OS, outside the VM?
all server run linux and I already used sshfs when I need, but I apreciate the ltsp way (mounting the /home/userxxx by sshfs and using pam)
OK but you're not answering any of my questions... are you seeing what I'm typing?
it is an IRC channel?
It's both IRC and Matrix
yes but sometime the bridge irc/matrix eat some messages
Yes that's why I'm asking
So let's try again, what's the host OS, outside the VM, is it Ubuntu 22.04 for example?
all is proxmox (debian based)
OK. And the server2 that will host /home, can the users sshto it?
yes, sshfs is working
So the user accounts are on both the VM and on server2? How do you do that, with LDAP? Or do you copy passwd around?
yes, I can copy password if necessary in all servers
Let's call them proxmox, vm-server, and home-server
OK then the first step of the solution is to set SERVER=ip-of-home-server in ltsp.conf
You don't need anything else
After you do that part, ping me to tell you a better solution where you don't need vm-server running at all
Essentially, you can use proxmox for serving vm-server.squashfs over NFS, and home-server for SSHFS. You don't need vm-server to be running at all. Your users don't do anything there, it's only used to generate the ltsp image
ltsp on a VM is easy to move to another proxmox server, so, I want keep the ltspVM small, and I dont want user data comming with the ltspVM when I copy the ltspVM to another place
Yes, I understood the use case
Your ltsp server isn't an ltsp server. It's an ltsp template VM that is only used to generate the ltsp image
understand more and more 😛
Do the SERVER=ip-of-home-server in ltsp.conf first. See that it works that way. Then come back and read the rest that I wrote once more, it'll make more sense then :)
|16:16||sunweaver is now away: not here ...|
I added SERVER=ip-of-home-server to ltsp.conf, and I runned ltsp initrd, and after start the diskless client, it was not working as expected, but because the /home on the server2 is a symlink instead of a directory, I will change this last point later and retry
You will also need to either have the same ssh keys, or add the home-server ssh keys to the image
can I use SERVER=ip-of-home-server/data/home ?
No. But it doesn't matter that it's a symlink. As long as sudo sshfs user@ip-of-home-server: /mnt mounts the user home directory, it'll work
Note that I didn't put anything after ":", no path; that means "the user home dir"
sudo sshfs user@ip-of-home-server: /mnt <-- it work
Great, do the ssh host keys now
ssh host keys is not the ssh id stored in /home/user/.ssh/ ?
|16:26||vagrantc has joined IRC (vagrantc!~vagrant@2600:3c01:e000:21:7:77:0:50)|
The easiest way is to copy the ltsp server keys to the home server /etc/ssh dir
ok, so it is different from the ssh users keys
I will made anothers tests in few hours, thanks for you patience and thanks for ltsp 😛
|20:46||ricotz has left IRC (ricotz!~ricotz@ubuntu/member/ricotz, Quit: Leaving)|
|23:53||vagrantc has left IRC (vagrantc!~vagrant@2600:3c01:e000:21:7:77:0:50, Quit: leaving)|