Hi, I've set up SFTP for transferring files and installed XBMC.
Attached TV/monitor to the machine, XBMC runs fine.
Can send files over by SFTP as well, cool!
How should I give the XBMC logged in user access to the local SFTP chroot folder?
Hi, I've set up SFTP for transferring files and installed XBMC.
Attached TV/monitor to the machine, XBMC runs fine.
Can send files over by SFTP as well, cool!
How should I give the XBMC logged in user access to the local SFTP chroot folder?
I'm confused. Why not just remote mount the place where the files are stored with either CIFS, Samba or NFS? No need to transfer the files at all if they are on the same LAN.
If you need to transfer the files ... want a local copy for the library, why not transfer them into the final directory and let XBMC know about it as a Source? XBMC just needs read-access to those files, so that's an easy chmod -R command. I'm sure the GUI has a way to do it too. Just change the permissions.
Is there a reason to use a chroot folder? Normally that is only done when files are made available on the interent from dangerous services like DAV, FTP, or for other non-file services known to be constantly cracked over the years like BIND or sendmail.
Boot, Backup, and Security questions. Std Linux Sys Maint..
Why LTS release? Mark Thread SOLVED.
Use "code tags".
So you were able to setup a chroot environment AND get sftp working inside it, but not able to run chmod? That doesn't sound right.
Are you certain you setup chroot?
I'm not saying this isn't possible, but that it seems really odd to be able to do the complex chroot work and not know about chmod.
If the files are coming over the internet, then you shouldn't try mounting them. The streaming performance won't work for any video formats.
Another option is to use a softlink to connect those files to someplace under the XMBC known "TV" and "Movie" locations.
Boot, Backup, and Security questions. Std Linux Sys Maint..
Why LTS release? Mark Thread SOLVED.
Use "code tags".
Not a complex chroot but using the sftp chroot functionality in sshd:
Match group sftponly
ChrootDirectory /storage/netdrive
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
This in combination with eldos netdrive works rather well.
I guess I could have it XBMC connect over ssh via a local mount.
I didn’t know that ssh had a built-in chroot - very cool. Thanks!
So the netdrive is a NAS and XBMC is the sftp server that drops files on the NAS. Very cool. Just setup another mount using CIFS, samba or NFS to the NAS storage. Don't bother with sshfs, it is too slow. Any FUSE file system will probably be too slow.
Boot, Backup, and Security questions. Std Linux Sys Maint..
Why LTS release? Mark Thread SOLVED.
Use "code tags".
Output from df -k please. Only need the /dev/ stuff, not the virtual file systems.
Boot, Backup, and Security questions. Std Linux Sys Maint..
Why LTS release? Mark Thread SOLVED.
Use "code tags".
Code:df -kh df: `/var/lib/lightdm/.gvfs': Permission denied Filesystem Size Used Avail Use% Mounted on /dev/md1 103G 89G 8.7G 92% / udev 3.8G 4.0K 3.8G 1% /dev tmpfs 1.6G 1.3M 1.6G 1% /run none 5.0M 0 5.0M 0% /run/lock none 3.8G 684K 3.8G 1% /run/shm /dev/md2 5.5T 120G 5.3T 3% /storage
So under /storage/netdrive you have TV/, Movie/, Music/ directories?
If you trust the people with sftp access, then I'd just use those directly from XBMC. You don't need to mount them, since /storage is already mounted to the computer. Just point XMBC sources to the specific TV, Movie, Music subdirs.
http://blog.jdpfu.com/2011/02/21/xbmc-tips explains more about the needed directory setup. I'm sure there are lots of other articles about that elsewhere. Don't fight the directory structure that XBMC likes.
Boot, Backup, and Security questions. Std Linux Sys Maint..
Why LTS release? Mark Thread SOLVED.
Use "code tags".
Bookmarks