|06:09||woernie has joined IRC (firstname.lastname@example.org)|
|07:51||vagrantc has left IRC (vagrantc!~vagrant@2600:3c01:e000:21:7:77:0:40, Quit: leaving)|
|09:59||joris is back|
|10:17||Joho has joined IRC (Joho!~Joho@18.104.22.168)|
I'm wondering why, on my client machine, I am unable to view folders placed in /srv/. But when I ssh into the server machine on the client, with same account, I am able to see the folders?
Anyone familiar with this issue?
Sounds normal to the client machines, are you running first time new LTSP environment?
Yes. Thing is I placed school material in /srv/ cause I assumed they could use that to share content and to set up some initial content
E.g. I downloaded some YouTube videos and placed them in /srv/. Is this incorrect?
|10:28||Joho has left IRC (Joho!~Joho@22.214.171.124, Quit: Client closed)|
|10:29||Joho has joined IRC (Joho!~Joho@126.96.36.199)|
It's correct but sharing files and folders is part of the teacher PC/server, not so much related to setting up of LTSP environment. You can very well share the folders under /srv/videos for your clients. it needs to have configured in client configuration sections
Oh I see. What would the configuration look like if I want to share all folders in /srv/. And also how do I make sure permissions are as follow: Student account should only be able to write new files and modify their own files
And otherwise to read all files
how the video files have been shared in the local network before you setup the LTSP on the server machine?
NFS, samba ?
No. This is an entirely new system. I downloaded the YouTube videos on the server machine into /srv/youtube-videos
And now when I log into the server machine with ssh, users can see the folders when I do 'ls /srv/'. But if I just log into a client machine with a user and try to browse to /srv/ with a file browser, nothing is there
=> Prints all directories
Log into client machine with user
I thought the /srv/ was accessed with sshfs
yes because by default the LTSP server machine doesn't share any folders other then /home/user with sshfs
Aha. So the conf file needs to include /srv/*
Is that the conf which is given as OMIT_IMAGE_EXCLUDES="home/*"?
"/srv/tftp/ltsp" contains ipxe binaries and /srv/ltsp/images contains the images.
Okay, these should not be shared I suppose.
But if I want sshfs to include /srv/youtube-videos. What are the steps I need to do?
Or basically. How does LTSP allow sharing content such as offline youtube-videos READ-ONLY. And for students to share material with each other??
I recommend you create the folder in server mahcine with shared file somewhere outside /srv, e.x. under /
Hm okay. And then how do I add that folder to sshfs?
|10:43||Johoo has joined IRC (Johoo!~Johoo@188.8.131.52)|
after you have created the folder with your desired group permission:
run this on the ltsp server install -m 0660 -g sudo /usr/share/ltsp/common/ltsp/ltsp.conf /etc/ltsp/ltsp.conf
|10:47||Joho has left IRC (Joho!~Joho@184.108.40.206, Ping timeout: 260 seconds)|
Yes I have generated that file already. Does it automatically generate what's required to share my new folder or do I need to modify that file?
then start studying this page http://ltsp.org/man/ltsp.conf/
I've been looking at that site a lot. I just don't understand quite well how to include the new folder with sshfs
yes you need to decide now what protocol (nfs, sshfs, smb etc.) you want to share and with what group permissions. nfs is the easiest with some examples already in the ltsp.conf man page
Aha okay. I'll look at it. Thanks
FSTAB_x="server:/home /home nfs defaults,nolock 0 0"
you would replace the /home with /videos if you created a folder /videos on the server machine and shared that in local network using NFS already installed on the server
Obviously I wouldn't remove the /home sharing right? I need the users to reach their home folder too
you need to configure the NFS share also on the server machine (think it's separate task from LTSP environment)
don't change anything you have setup so far
you need to prepare and use also some NFS mount point for the clients if using FSTAB_x= for example FSTAB_01="server:/videos /mnt nfs defaults,nolock 0 0"
then client machine would have the videos under /tmp after booting and browsing Files in client file system
Hmm I see. Is it otherwise possible to create a folder /home/shared_content/videos?
Like to simplify the configuration. I am a bit time pressed for a solution which will work without being able to fully test it out
yes, it's better if you create the folders under home (but you have to create it for each username)
I don't entirely follow along with having to create it for each user. You understand my use case. I just want every computer to be able to play the videos and open documents and store some shared stuff of their own
sorry I personally don't have currently a solution which would completely full your requirements
Well thank you anyway
just try the FSTAB_01="server:/videos /mnt nfs defaults,nolock 0 0"
I'll try that. Thank you.
it should be quick and easy to test, despite I don't know how tight your schedule is
|11:12||Johoo has left IRC (Johoo!~Johoo@220.127.116.11, Quit: Client closed)|
ltsp is by default if you wish to have same desktop applications in local network group, for file and folder sharing it doesn't restrict anything
Johoo I forgot to mention about the NFS you need to configure the new NFS share on the server machine separately (it's not related to LTSP configuration), e.x. :
echo '/videos *(rw,async,crossmnt,no_subtree_check,no_root_squash,insecure)' >/etc/exports.d/local.exports
|12:07||Johoo has joined IRC (Johoo!~Johoo@18.104.22.168)|
|12:20||Johoo has left IRC (Johoo!~Johoo@22.214.171.124, Quit: Client closed)|
|13:33||joris is now away: Auto away at Wed Dec 28 14:33:46 2022|
|19:30||sunweaver is back|
|19:56||sunweaver is now away: not here ...|
|20:29||vagrantc has joined IRC (vagrantc!~vagrant@2600:3c01:e000:21:7:77:0:40)|
|23:11||sunweaver is back|
|23:32||sunweaver is now away: not here ...|