06:09 | woernie has joined IRC (woernie!~werner@p5ddecd2a.dip0.t-ipconnect.de) | |
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@41.212.123.57) | |
10:17 | <Joho> 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?
| |
10:18 | Anyone familiar with this issue?
| |
10:22 | <vsuojanen[m]> Sounds normal to the client machines, are you running first time new LTSP environment?
| |
10:23 | <Joho> 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
| |
10:24 | E.g. I downloaded some YouTube videos and placed them in /srv/. Is this incorrect?
| |
10:28 | Joho has left IRC (Joho!~Joho@41.212.123.57, Quit: Client closed) | |
10:29 | Joho has joined IRC (Joho!~Joho@41.212.123.57) | |
10:29 | <vsuojanen[m]> 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
| |
10:30 | <Joho> 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
| |
10:31 | And otherwise to read all files
| |
10:32 | <vsuojanen[m]> how the video files have been shared in the local network before you setup the LTSP on the server machine?
| |
10:32 | NFS, samba ?
| |
10:33 | <Joho> No. This is an entirely new system. I downloaded the YouTube videos on the server machine into /srv/youtube-videos
| |
10:34 | 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
| |
10:34 | ssh user@server
| |
10:34 | ls /srv/
| |
10:34 | => Prints all directories
| |
10:34 | But:
| |
10:34 | Log into client machine with user
| |
10:34 | ls /srv/
| |
10:34 | => Empty
| |
10:35 | I thought the /srv/ was accessed with sshfs
| |
10:35 | <vsuojanen[m]> yes because by default the LTSP server machine doesn't share any folders other then /home/user with sshfs
| |
10:36 | <Joho> Aha. So the conf file needs to include /srv/*
| |
10:36 | Is that the conf which is given as OMIT_IMAGE_EXCLUDES="home/*"?
| |
10:37 | <vsuojanen[m]> "/srv/tftp/ltsp" contains ipxe binaries and /srv/ltsp/images contains the images.
| |
10:38 | <Joho> Okay, these should not be shared I suppose.
| |
10:39 | But if I want sshfs to include /srv/youtube-videos. What are the steps I need to do?
| |
10:39 | Or basically. How does LTSP allow sharing content such as offline youtube-videos READ-ONLY. And for students to share material with each other??
| |
10:40 | <vsuojanen[m]> I recommend you create the folder in server mahcine with shared file somewhere outside /srv, e.x. under /
| |
10:40 | <Joho> Hm okay. And then how do I add that folder to sshfs?
| |
10:43 | Johoo has joined IRC (Johoo!~Johoo@41.212.123.57) | |
10:46 | <vsuojanen[m]> after you have created the folder with your desired group permission:
| |
10:46 | 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@41.212.123.57, Ping timeout: 260 seconds) | |
10:48 | <Johoo> 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?
| |
10:48 | <vsuojanen[m]> then start studying this page http://ltsp.org/man/ltsp.conf/
| |
10:48 | <Johoo> I've been looking at that site a lot. I just don't understand quite well how to include the new folder with sshfs
| |
10:50 | <vsuojanen[m]> 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
| |
10:50 | <Johoo> Aha okay. I'll look at it. Thanks
| |
10:50 | <vsuojanen[m]> FSTAB_x="server:/home /home nfs defaults,nolock 0 0"
| |
10:53 | 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
| |
10:53 | <Johoo> Obviously I wouldn't remove the /home sharing right? I need the users to reach their home folder too
| |
10:54 | <vsuojanen[m]> you need to configure the NFS share also on the server machine (think it's separate task from LTSP environment)
| |
10:54 | don't change anything you have setup so far
| |
10:54 | (home works)
| |
11:03 | 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"
| |
11:04 | then client machine would have the videos under /tmp after booting and browsing Files in client file system
| |
11:04 | <Johoo> Hmm I see. Is it otherwise possible to create a folder /home/shared_content/videos?
| |
11:05 | 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
| |
11:05 | <vsuojanen[m]> yes, it's better if you create the folders under home (but you have to create it for each username)
| |
11:07 | <Johoo> 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
| |
11:07 | <vsuojanen[m]> sorry I personally don't have currently a solution which would completely full your requirements
| |
11:08 | <Johoo> Hm okay
| |
11:08 | Well thank you anyway
| |
11:08 | <vsuojanen[m]> just try the FSTAB_01="server:/videos /mnt nfs defaults,nolock 0 0"
| |
11:09 | <Johoo> I'll try that. Thank you.
| |
11:10 | <vsuojanen[m]> 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@41.212.123.57, Quit: Client closed) | |
11:15 | <vsuojanen[m]> 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
| |
11:25 | 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. :
| |
11:25 | echo '/videos *(rw,async,crossmnt,no_subtree_check,no_root_squash,insecure)' >/etc/exports.d/local.exports
| |
11:25 | exportfs -ra
| |
12:07 | Johoo has joined IRC (Johoo!~Johoo@41.212.123.57) | |
12:20 | Johoo has left IRC (Johoo!~Johoo@41.212.123.57, 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 ... | |