Sign up here and you can log into the forum!

new feature: NETAPP

General homebrew discussion area

new feature: NETAPP   

Postby b-rad.cc » Thu Nov 18, 2010 7:43 pm

hello out there. I committed some patches a few days ago that I should mention as it is quite a large feature. Essentially its the ability to have your app.bin's, osd.bin's, wdtvext plugins, and anything else really located on one of your xmounts.

Anyone running 0.4.5.3+ can try, by putting the below in net.config on an attached USB device at first
nfs (with predefined hostname) :
Code: Select all
crazymount NETMOUNT mbl-01:/nfs

cifs:
Code: Select all
crazymount NETMOUNT //192.168.0.123/SomeShare


crazymount accepts either a disk location for manual scanning, or a remote share address which it will hash and mount in /tmp/mnt automagically.

You can't use a read-only xmount with anything except cramfs app/osd bins, because other filesystems require write access (even if mounted ro)

Once you have confirmed NETAPP works from the USB device, THEN move that net.config to /conf/net.config.

NOTE: it is possible to put your device into an unusable state by supplying an invalid /conf/config in versions under 0.5.0.0. This is why its stated to get this working from usb first. You have been warned!
PM's are for private matters only, please post public matters on the forum to help others who might have the same issue.
:mrgreen:
User avatar
b-rad.cc
WDLXTV Team
 
Posts: 3003
Joined: Sat Apr 03, 2010 9:35 am
Location: New York

Re: new feature: NETAPP   

Postby kroetkroet » Mon Nov 22, 2010 12:13 pm

Peeps,

couldn't resist to try this one out.

Use case:

192.168.1.105 = winXP with a share called wdlxtv
192.168.1.98 = wdlxtv

Added in /conf/net.mount the following line to enable read-only mounting:

Code: Select all
xmount "//192.168.1.105/wdlxtv" sdc cifs "user=myusername,pass=mypass"


Secondly, as stated above by b-rad, I added the following to the /conf/net.config:

Code: Select all
crazymount NETMOUNT //192.168.1.105/wdlxtv user=myusername,pass=mypass


In /tmp/messages.txt, I can follow the crazymount behavior:

Code: Select all
Jan  1 01:00:40 WDTVLIVE user.notice S01ipup: Testing static IP assignment...
Jan  1 01:00:45 WDTVLIVE user.notice S01ipup: Ping: 6 packets transmitted, 6 packets received, 0% packet loss
Jan  1 01:00:46 WDTVLIVE user.notice crazymount: server address passed: //192.168.1.105/wdlxtv ?
Jan  1 01:00:46 WDTVLIVE user.notice crazymount: checking NETMOUNT @ /tmp/mnt/42a43e6cbdcbeeba7a63b03dd219cea1 for app.bins
Jan  1 01:00:46 WDTVLIVE user.notice crazymount: irssi app found
Jan  1 01:00:46 WDTVLIVE user.notice crazymount: Mounting irssi.app.bin at /apps/irssi
Jan  1 01:00:46 WDTVLIVE user.warn kernel: UDF-fs: No VRS found
Jan  1 01:00:46 WDTVLIVE user.notice crazymount: adjusting LIBPATH: /apps/irssi/lib
Jan  1 01:00:46 WDTVLIVE user.notice crazymount: adjusting PATH: /apps/irssi/bin
Jan  1 01:00:46 WDTVLIVE user.notice crazymount: Path set to /apps/irssi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Jan  1 01:00:46 WDTVLIVE user.notice mount.watch: starting


and I can see my irssi.app.bin be mounted on /apps:

Code: Select all
# ls -al /apps/irssi/
drwxr-xr-x    1 root     root           20 Jan  1  1970 bin
drwxr-xr-x    1 root     root           24 Jan  1  1970 etc
drwxr-xr-x    1 root     root           20 Jan  1  1970 include
drwxr-xr-x    1 root     root           36 Jan  1  1970 lib
drwxr-xr-x    1 root     root           68 Jan  1  1970 share


As usual: kudoz for b-rad!
WDLXTV-fan! - In case you need further assistance: read our WIKI, search our Forum and most of all: donate 'something' to b-rad for his great efforts!!!
User avatar
kroetkroet
Beta Tester
 
Posts: 1004
Joined: Mon Apr 05, 2010 11:53 pm

Re: new feature: NETAPP   

Postby recliq » Tue Dec 14, 2010 1:49 pm

Very nice feature, works like a charm although i had to add this before crazymount to net.config in order to get it working with NFS. ;)
Code: Select all
/etc/init.d/S10portmap startNFS

NOT REQUIRED!
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: new feature: NETAPP   

Postby b-rad.cc » Sat Jan 01, 2011 2:05 pm

moving to public forum.
PM's are for private matters only, please post public matters on the forum to help others who might have the same issue.
:mrgreen:
User avatar
b-rad.cc
WDLXTV Team
 
Posts: 3003
Joined: Sat Apr 03, 2010 9:35 am
Location: New York

Re: new feature: NETAPP   

Postby MrRamgarhia » Tue Mar 27, 2012 11:34 pm

Thanks for Linking GUys.....
MrRamgarhia
n00b
 
Posts: 5
Joined: Tue Mar 27, 2012 11:32 pm

Re: new feature: NETAPP   

Postby elevated » Mon Dec 31, 2012 2:05 pm

Good Day everyone,

Config Background:

Device: WDLXTV_PLUS
Latest version: Unknown
Current version: 0.5.1.1
Firmware: 1.05.04_B


My /net.config contains:
Code: Select all
crazymount NETMOUNT liz-pc:/WDUSB



After rebooting, nothing happens. However if I run
Code: Select all
chmod a+x /conf/net.config && /conf/net.config
it will place everything in the NFS share in /apps. what can I do to make this work automaticly.


I fixed my issue. I added this to /conf/net.config
Code: Select all
/etc/init.d/S10portmap startNFS
Upon reboot, everything ran correctly.
elevated
n00b
 
Posts: 1
Joined: Mon Dec 31, 2012 1:39 pm

Re: new feature: NETAPP   

Postby Perez Turner » Wed Jul 10, 2013 8:02 pm

Guys, thanks for sharing to your experiences and NETAPP skills. I am newbie and I got very good discussion here.
Perez Turner
n00b
 
Posts: 8
Joined: Mon Jul 08, 2013 10:17 pm


Return to WDTV G2 & WDTV Live homebrew discussion

Who is online

Users browsing this forum: No registered users and 1 guest