SSHFS share

Ideas and dreaming will go this forum
Post Reply

KingBonecrusher2014
Posts: 13
Joined: Fri Dec 27, 2013 3:12 pm

SSHFS share

Post by KingBonecrusher2014 »

Hi!

Gunzip sshfs.gz and copy it to /mnt/opt/privateer/usr/bin. If you have an ssh server with auth key support, copy the private rsa key to the tv /mnt/ and convert it with

Code: Select all

dropbearconvert openssh dropbear /mnt/your_key /mnt/your_key-drop
mounting:

Code: Select all

sshfs -o ssh_command="ssh -i /mnt/your_key-drop" user@server:/media /dtv/usb/sdk/
you can also send commands to you server with:

Code: Select all

ssh -i /mnt/your_key-drop user@server "yourscript.sh"
So you can simply start your server with the tv together

Code: Select all

#!/bin/sh
SERVER="xxx.xxx.xxx.xxx"

ping -w1 ${SERVER} >/dev/null || wakelan -m xx:xx:xx:xx:xx:xx
sleep 60
ping -w1 ${SERVER} >/dev/null || exit

  ssh -i /mnt/your_key-drop root@${SERVER} "mount -o noatime,nodiratime /dev/mapper/pool01 /hddpool/pool01"
  ssh -i /mnt/your_key-drop root@${SERVER} "/etc/init.d/minidlna restart"
  mkdir -p /dtv/usb/sdk/Media
  sshfs -o ssh_command="ssh -i /mnt/opt/privateer/usr/bin/nano" data@${SERVER}:/hddpool/pool01/ /dtv/usb/sdk/Media

echo -e "[sdk]\nVendor : Linux\nProduct : SSHFS\nSerial : Q22VQLFK\nDevpath : 13\nLun : 0\nScsiDevicePath : /dev/sdk\nMountDir : /dtv/usb/sdk\nFileSystem : vfat\n"  >> /dtv/usb/usblog
99_99_bootsvr.init -> /mnt/etc/init.d/
You do not have the required permissions to view the files attached to this post.

User avatar
juusso
SamyGO Moderator
Posts: 10125
Joined: Sun Mar 07, 2010 6:20 pm

Re: SSHFS share

Post by juusso »

thanks, looks good :)
after some testing i think we`ll include this to SamyGO Extensions.
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

Post Reply

Return to “[E] Brainstorm”