Page 1 of 2
[SOLVED] ok but the path is too long..
Posted: Wed Mar 07, 2012 5:18 pm
by address
Hello forum,
I have a working samygo-all-extension usb-stick always plugged in the tv.
If I want to browse my nfs server I have to:
-press mediaplay
-press [A] to switch from usb to samygo virtual usb
-choose Video
-choose nfs
-choose the server address
-choose _the_shared_folder_path_whith_orrible_underscores
-choose a movie and play

oh, no! It's too much! I would like to shorten the path by making a symlink so I:
Code: Select all
$ telnet tv
Trying 10.222.3.26...
Connected to TV.
Escape character is '^]'.
/mtd_rwarea/network_opt #cd /dtv/usb/sdb
/dtv/usb/sdb # ln -s nfs/10.222.3.25/_media_Dati_Incoming/ Server
ln: Server: Operation not permitted
No way. So I decided to modify Samygo.sh and putted the line
Code: Select all
ln -s /dtv/usb/sdb/nfs/10.222.3.25/_media_Dati_Incoming/ /dtv/usb/sdb/Server
at the end of file. It does not work. So I decided to put my custom script in /etc/init.d/ as juuso sayd
http://forum.samygo.tv/viewtopic.php?f= ... om+command
03_04_symlink.init
Code: Select all
#!/bin/sh
ln -s /dtv/usb/sdb/nfs/10.222.3.25/_media_Dati_Incoming/ /dtv/usb/sdb/Server
ln -s /dtv/usb/sdb/nfs/10.222.3.25/_media_Dati_PVR/ /dtv/usb/sdb/PVR
No, it does not work.
Please how can I get a very short path_yo_my_server_files ?
Thankyou..!
Re: ok but the path is too long..
Posted: Wed Mar 07, 2012 5:25 pm
by juusso
Here:
Code: Select all
$ telnet tv
Trying 10.222.3.26...
Connected to TV.
Escape character is '^]'.
/mtd_rwarea/network_opt #cd /dtv/usb/sdb
/dtv/usb/sdb # ln -s nfs/10.222.3.25/_media_Dati_Incoming/ Server
ln: Server: Operation not permitted
you`ve missed the ./ at the beginnig of the path. But better to use full path instead of relative one.
Code: Select all
ln -s /dtv/usb/nfs/10.222.3.25/_media_Dati_Incoming /dtv/usb/sdb/Server
If you want to use script, why don`t you renamed it to 99_99_symlink.init
03_04 is bad idea. Also the script should be in right format...
Code: Select all
#!/bin/sh
. /dtv/SGO.env
case $1 in
start)
ln -s /dtv/usb/sdb/nfs/10.222.3.25/_media_Dati_Incoming /dtv/usb/sdb/Server
ln -s /dtv/usb/sdb/nfs/10.222.3.25/_media_Dati_PVR /dtv/usb/sdb/PVR
;;
stop)
;;
status)
;;
*)
echo "Usage: $0 {start|stop}" 1>&2
exit 0
;;
esac
Re: ok but the path is too long..
Posted: Wed Mar 07, 2012 5:50 pm
by address
Code: Select all
# ln -s /dtv/usb/sdb/nfs/10.222.3.25/_media_Dati_Incoming /dtv/usb/sdb/Server
ln: /dtv/usb/sdb/Server: Operation not permitted
I copied also the script you wrote to 99_99_symlink.init but it does not work, maybe I cannot write on /dtv/usb/sdb/ because it is VIRTUAL??
Code: Select all
# ls -la /dtv/usb/
drwxr-xr-x 4 root 0 120 Jan 1 00:00 .
drwxrwxrwt 8 root 0 740 Jan 1 00:00 ..
crw-r--r-- 1 root 0 180, 96 Jan 1 00:00 hiddev0
drwxr-xr-x 4 root 0 4096 Jan 1 00:00 sda1
drwxr-xr-x 4 root 0 16384 Jan 1 00:00 sdb
-rw-r--r-- 1 root 0 334 Jan 1 00:00 usblog
Code: Select all
# cat /dtv/usb/usblog
[sda]
Vendor : USB 2.0
Product : USB Flash Drive
Serial : AA00000000000817
Devpath : 1-1
Lun : 0
ScsiDevicePath : /dev/sda1
MountDir : /dtv/usb/sda1
FileSystem : vfat
[sdb]
Vendor : Linux
Product : SamyGO Virt. USB
Serial : 372041756775
Devpath : 5-1
Lun : 0
ScsiDevicePath : /dev/sdb
MountDir : /dtv/usb/sdb
FileSystem : vfat
Thankyou!
Re: ok but the path is too long..
Posted: Wed Mar 07, 2012 6:39 pm
by arris69
address wrote:Code: Select all
# ln -s /dtv/usb/sdb/nfs/10.222.3.25/_media_Dati_Incoming /dtv/usb/sdb/Server
ln: /dtv/usb/sdb/Server: Operation not permitted
I copied also the script you wrote to 99_99_symlink.init but it does not work, maybe I cannot write on /dtv/usb/sdb/ because it is VIRTUAL??
...
not why its virtual but because it's fat, fat don't support symlinks
Re: ok but the path is too long..
Posted: Fri Mar 09, 2012 12:59 pm
by address
Itried changing filesystem from fat32 to ext2 but now SamyGO-all-extenions does not work, now I still have only telnet acces to the tv and the directory /dtv/usb/sda1 is no more present. I'll switch back to fat32.
Re: ok but the path is too long..
Posted: Fri Mar 09, 2012 1:49 pm
by address
I switched back to fat32 and changed the script to:
Code: Select all
/SamyGO/etc/init.d$ cat 99_99_mount-myserver.init
#!/bin/sh
. /dtv/SGO.env
case $1 in
start)
mount -o nolock 10.222.3.25:/media/Dati/PVR /dtv/usb/sda1/PVR -t nfs
mount -o nolock 10.222.3.25:/media/Dati/Incoming /dtv/usb/sda1/Server -t nfs
;;
stop)
;;
status)
;;
*)
echo "Usage: $0 {start|stop}" 1>&2
exit 0
;;
esac
accordingly to http://webcache.googleusercontent.com/s ... ceweasel-a
No way, it does not work but if I type the same command via telnet it works fine! I'm doing wrong something, but, WHAT?
Re: ok but the path is too long..
Posted: Fri Mar 09, 2012 1:53 pm
by juusso
what editor do you use for scripts? notepad?
Re: ok but the path is too long..
Posted: Fri Mar 09, 2012 2:17 pm
by address
No, I use always nano, gedit or pluma on Debian..
Code: Select all
$ ls -la /media/SAMYGO/SamyGO/etc/init.d/
totale 164
drwx------ 2 enn10 enn10 4096 mar 9 13:19 .
drwx------ 11 enn10 enn10 4096 mar 7 18:56 ..
-rw-r--r-- 1 enn10 enn10 630 lug 3 2011 01_01_catch_crap.init
-rw-r--r-- 1 enn10 enn10 2608 apr 8 2011 01_03_hotplug.init.dis
-rw-r--r-- 1 enn10 enn10 194 gen 1 1980 01_04_pvr_drm_disable.init
-rw-r--r-- 1 enn10 enn10 803 ago 26 2011 01_04_server_replacement.init
-rw-r--r-- 1 enn10 enn10 1092 nov 5 2010 01_05_framebuffer.init
-rw-r--r-- 1 enn10 enn10 1258 apr 8 2011 01_05_framebuffer.init.dis
-rw-r--r-- 1 enn10 enn10 1123 mar 30 2011 01_05_hiddev.init
-rw-r--r-- 1 enn10 enn10 4191 lug 16 2011 02_04_replace_wifi_mod.init.dis
-rw-r--r-- 1 enn10 enn10 2684 mar 30 2011 02_04_vusb.init
-rw-r--r-- 1 enn10 enn10 2352 mar 30 2011 02_04_vusb.init.remi71
-rw-r--r-- 1 enn10 enn10 1121 nov 23 2010 02_10_wakelan.init.dis
-rw-r--r-- 1 enn10 enn10 593 mar 30 2011 03_01_fuse.init
-rw-r--r-- 1 enn10 enn10 1029 mar 30 2011 03_03_djmount.init
-rw-r--r-- 1 enn10 enn10 2600 mar 7 16:41 03_03_nfsmount.init
-rw-r--r-- 1 enn10 enn10 2589 mar 30 2011 03_03_nfsmount.init.orig.dis
-rw-r--r-- 1 enn10 enn10 3119 mar 30 2011 03_03_nfsmount.init.remi71
-rw-r--r-- 1 enn10 enn10 993 mar 30 2011 03_03_sshd.init
-rw-r--r-- 1 enn10 enn10 3229 dic 31 2010 04_04_bluetooth.init
-rw-r--r-- 1 enn10 enn10 2015 dic 6 2010 04_04_fusesmb.init.dis
-rw-r--r-- 1 enn10 enn10 1512 set 25 23:19 04_04_httpfs.init.dis
-rw-r--r-- 1 enn10 enn10 2488 mar 30 2011 04_04_samba.init.dis
-rw-r--r-- 1 enn10 enn10 4500 mar 30 2011 06_05_apache.init
-rw-r--r-- 1 enn10 enn10 2262 apr 8 2011 06_05_bb_httpd.init.dis
-rw-r--r-- 1 enn10 enn10 648 feb 10 11:38 06_05_samba-server.init.dis
-rw-r--r-- 1 enn10 enn10 537 mar 30 2011 06_05_vsftp.init.dis
-rw-r--r-- 1 enn10 enn10 1140 mar 30 2011 06_06_obexpush.init.dis
-rw-r--r-- 1 enn10 enn10 978 lug 6 2011 30_09_xserver.init.dis
-rw-r--r-- 1 enn10 enn10 599 mar 30 2011 70_70_arfix-sh.init.dis
-rw-r--r-- 1 enn10 enn10 2284 gen 3 2011 80_80_record_to_nwshare.init
-rw-r--r-- 1 enn10 enn10 4506 mar 30 2011 80_80_record_to_nwshare.init.kayaweed
-rw-r--r-- 1 enn10 enn10 4309 mar 30 2011 80_80_record_to_nwshare.init.remi71
-rw-r--r-- 1 enn10 enn10 1136 mar 30 2011 90_90_injectso.init.dis
-rw-r--r-- 1 enn10 enn10 2073 mag 31 2011 90_90_loadGameMains.init.dis
-rw-r--r-- 1 enn10 enn10 279 mar 9 13:19 99_99_mount-myserver.init
-rw-r--r-- 1 enn10 enn10 690 mar 30 2011 99_99_start_exeDSP.init.disabled_by_default_to_protect_the_innocent
Re: ok but the path is too long..
Posted: Fri Mar 09, 2012 2:23 pm
by juusso
Disable scripts except:
02_04_vusb.init
03_03_sshd.init
99_99_mount-myserver.init
I think for testing you have to use only your script, vusb script and sshd. Don`t you think?