PDA

View Full Version : NFS client PLUGIN -PLEASE READ!!!!



hfmls
12-01-2010, 07:17 PM
Hi, can anybody please make a NFS client plugin for AZBOX HD?

something like XBMC

were we can put

IP
user,password (if only required)
wsize
rsize
shared folder name
azbox where to mount

i think it should be really simple to make for the pros :) , the "final line" that should be sent by telnet, should be something like this:

mount -t nfs 192.168.1.3:/home/hfmls/Music /DATA/music -o nolock,async,rsize=32768,wsize=32 768,intr 0 0

so it should be something like this:

IP: 192.168.1.3
USER/PASSWORD: NOTHING
wsize: 32768
rsize: 32768
shared folder name: /home/hfmls/Music
azbox where to mount: /DATA/music


i leave it all simple and complete idea how to do it :) now with some coding, u guys could make a PLUGIN please please please?


at the end something should appear:

MOUNT --- UNMOUNT --- CHECK STATUS (if anything is mounted, see if its mounted ok)


KANBER KAV, CAN U MAKE THIS? :)

hfmls
14-01-2010, 02:23 AM
any1 pls?

goran
14-01-2010, 10:54 PM
A good idea, provided one gives detailed info, too... so one can configure it properly, knowing what one is doing... ;)

kanber_kav
14-01-2010, 11:46 PM
Hi, can anybody please make a NFS client plugin for AZBOX HD?

something like XBMC

were we can put

IP
user,password (if only required)
wsize
rsize
shared folder name
azbox where to mount

i think it should be really simple to make for the pros :) , the "final line" that should be sent by telnet, should be something like this:

mount -t nfs 192.168.1.3:/home/hfmls/Music /DATA/music -o nolock,async,rsize=32768,wsize=32 768,intr 0 0

so it should be something like this:

IP: 192.168.1.3
USER/PASSWORD: NOTHING
wsize: 32768
rsize: 32768
shared folder name: /home/hfmls/Music
azbox where to mount: /DATA/music


i leave it all simple and complete idea how to do it :) now with some coding, u guys could make a PLUGIN please please please?


at the end something should appear:

MOUNT --- UNMOUNT --- CHECK STATUS (if anything is mounted, see if its mounted ok)


KANBER KAV, CAN U MAKE THIS? :)




No problem.

hfmls
15-01-2010, 12:10 AM
txxxxx

kanber_kav
15-01-2010, 12:34 AM
MMP[~]$ mount --help
BusyBox v1.00 (2008.04.24-06:54+0000) multi-call binary

Usage: mount [flags] DEVICE NODE [-o options,more-options]

Mount a filesystem. Autodetection of filesystem type requires the
/proc filesystem be already mounted.

Flags:
-a: Mount all filesystems in fstab.
-f: "Fake" Add entry to mount table but don't mount it.
-n: Don't write a mount table entry.
-o option: One of many filesystem options, listed below.
-r: Mount the filesystem read-only.
-t fs-type: Specify the filesystem type.
-w: Mount for reading and writing (default).

Options for use with the "-o" flag:
async/sync: Writes are asynchronous / synchronous.
atime/noatime: Enable / disable updates to inode access times.
dev/nodev: Allow use of special device files / disallow them.
exec/noexec: Allow use of executable files / disallow them.
loop: Mounts a file via loop device.
suid/nosuid: Allow set-user-id-root programs / disallow them.
remount: Re-mount a mounted filesystem, changing its flags.
ro/rw: Mount for read-only / read-write.
bind: Use the linux 2.4.x "bind" feature.

There are EVEN MORE flags that are specific to each filesystem.
You'll have to see the written do***entation for those filesystems.

but mount no support nfs


runing mount line ?
mount -t nfs 192.168.1.3:/home/hfmls/Music /DATA/music -o nolock,async,rsize=32768,wsize=32 768,intr 0 0

hfmls
15-01-2010, 12:36 AM
yes, it supports NFS. i'm using it :)

i use that line to mount my shared folder.

then i write "mount"

and mounted folder shows all OK. as a NFS mount.

and files show up in AUDIO too.

goran
15-01-2010, 01:23 AM
Kanber, m8, here is a lot more info:

https://www.satpimps.co.uk/showthread.php?t=123364

Also:



This howto describes how to mount a NFS share with a plugin script.
It mounts the NFS shares to /DATA/movies /DATA/music etc
So you can select them via the menu of the AZbox.

Note: 192.168.x.xx = Ip of your NAS or server

Make a new folder in the OpenXCAS plugin directory on the Azbox, using for instance PuTTy:


cd /EMU/OpenXCAS
mkdir mount
cd mount

create a file in this folder with the name mount.sh with the following content:


#!/bin/sh
mount -t nfs 192.168.x.xx:/dir/to_your/video /DATA/movie -o nolock,soft,rsize=8192,wsize=8192
mount -t nfs 192.168.x.xx:/dir/to_your/music /DATA/music

Create a file called openxcas.conf in the same folder:


[module]
name = mount
daemon = mount.sh
version = 1.0

then chmod 755 * in the same folder to give the files execute rights.

Go up one folder into /EMU/OpenXCAS and add a line in the module.seq file called mount (a # in front of a line means the plugin is deactivated).

Then you can select the plugin in the OpenXCAS menu called mount and start it with the OK or yellow button.

You should see the new files in the Movie and Music menu entries.

if you already have a HDD this might conflict with existing /DATA mounts and a harddisk that you might have installed, it will not corrupt anything it just wont work ,

Thanks to emmanneil AND LilleMama

hfmls
16-01-2010, 02:46 AM
are u getting any luck with this?

if u need anything, access to my computer, etc etc. just say ;)