It is currently June 18th, 2013, 6:46 pm Advanced search

How to: Bookmark Network Folder

Product usage Guides and Tips.. see what you are missing!

Re: How to: Bookmark Network Folder

Postby aasoror » July 22nd, 2012, 1:07 pm

kurnis » July 22nd, 2012, 4:44 pm wrote:Ok now (still using telnet btw, couldnt figure out how to make filezilla work) as soon as i type :wq i get "write error: no such file or directory"


on a side-note, in filezilla, i got it to connect with the aios box, but i had to create the share_favs folder. and then when i put the f02nas1.sh file in there and right clicked and checked "execute" nothing happens. am i doing it right? im happy to stick with telnet if i can just get it to work...


If you don't have share_favs folder you are either looking in the wrong place or you don't have Semiofficial R20 installed.
The AIOS wiki - The AIOS Semiofficial firmwares
Calling upon ALL AIOSers, your feedback is needed -- Calling upon ALL XIOSers, your feedback is needed
XIOS XBMC: Setup, Nightlies: M1 - M3 - Android - Keep the annoying XIOS developers happy, always attach a log with your bug report, here is how.
User avatar
aasoror
Pivos Employee
 
Posts: 8726
Joined: September 26th, 2011, 4:18 pm

Re: How to: Bookmark Network Folder

Postby kurnis » July 22nd, 2012, 1:18 pm

I have 3.0.1.7 installed. i HAD the beta 3.4.3.0 installed but downgraded because i didnt really like it.

should i go back to the latest?

Although, now that I look at it, the 3.0.1.7 does NOT have the NFS option in the setup menu and cant access it via filezilla any longer...looks like ill have to go back to 3.4.3.0 huh?
kurnis
 
Posts: 12
Joined: July 18th, 2012, 2:32 pm

Re: How to: Bookmark Network Folder

Postby aasoror » July 22nd, 2012, 1:37 pm

kurnis » July 22nd, 2012, 5:18 pm wrote:I have 3.0.1.7 installed. i HAD the beta 3.4.3.0 installed but downgraded because i didnt really like it.

should i go back to the latest?

Although, now that I look at it, the 3.0.1.7 does NOT have the NFS option in the setup menu and cant access it via filezilla any longer...looks like ill have to go back to 3.4.3.0 huh?


You need the latest semiofficial firmware R20, from this thread:
viewtopic.php?f=6&t=434

Best of luck,
The AIOS wiki - The AIOS Semiofficial firmwares
Calling upon ALL AIOSers, your feedback is needed -- Calling upon ALL XIOSers, your feedback is needed
XIOS XBMC: Setup, Nightlies: M1 - M3 - Android - Keep the annoying XIOS developers happy, always attach a log with your bug report, here is how.
User avatar
aasoror
Pivos Employee
 
Posts: 8726
Joined: September 26th, 2011, 4:18 pm

Re: How to: Bookmark Network Folder

Postby kurnis » July 22nd, 2012, 7:59 pm

omg my nfs option now shows my movies folder!! the only weird thing is that there are TWO folders both labelled "movies" only one has a space before it....why are there two copies of the same folder?

so does this mean im free to go to the "indexing network drives" guide now? or is there something else i need to do first?



also...i noticed one prerequisite to indexing networked drives is that you have to have internal/external storage. so i MUST have a hard drive plugged into my aios to get network indexing?
kurnis
 
Posts: 12
Joined: July 18th, 2012, 2:32 pm

Re: How to: Bookmark Network Folder

Postby aasoror » July 23rd, 2012, 6:02 am

kurnis » July 22nd, 2012, 11:59 pm wrote:omg my nfs option now shows my movies folder!! the only weird thing is that there are TWO folders both labelled "movies" only one has a space before it....why are there two copies of the same folder?

The script is executed just once, how many blocks do you have there (it its because of the script then you should find 2 mount commands there) ? additionally do you have active NFS shares on the network by any chance ?

so does this mean im free to go to the "indexing network drives" guide now? or is there something else i need to do first?

You are good, actually its very easy in your case because you have "movies" directly shared on the network, so in the mounting script you need to just replace "/tmp/nfs" with "tmp/usbmounts/sda1" (if you have internal HDD) or "tmp/usbmounts/sdb1" (if you have USB storage).

also...i noticed one prerequisite to indexing networked drives is that you have to have internal/external storage. so i MUST have a hard drive plugged into my aios to get network indexing?

You need ext3 formatted storage which can be either internal or external, there is a how-to thread on creating ext3 storage.

Best of luck,
The AIOS wiki - The AIOS Semiofficial firmwares
Calling upon ALL AIOSers, your feedback is needed -- Calling upon ALL XIOSers, your feedback is needed
XIOS XBMC: Setup, Nightlies: M1 - M3 - Android - Keep the annoying XIOS developers happy, always attach a log with your bug report, here is how.
User avatar
aasoror
Pivos Employee
 
Posts: 8726
Joined: September 26th, 2011, 4:18 pm

Re: How to: Bookmark Network Folder

Postby dstaas » July 26th, 2012, 6:57 am

So I have been trying to get my aios to save my network shares through nfs and have had some limited success but now need help.

Basic info:
Aios version: 3.0.1.7 R20
Aios IP: 192.168.2.17
To navigate to my windows 7 machine via network on the aios: WORKGROUP -> USERNAME-PC -> Log in with username and password -> SD_Movies HD_Movies and tv
Windows 7 machine ip: 192.168.2.13
Username: User Name (it has a space in it and I don't know if this causes problems. I used quotes and it worked via telnet)
Password: password
Shares: SD_Movies, HD_Movies, tv (these are across 3 drives so I cant share 1 root directory)

I have a windows 7 machine with 3 shares: SD_Movies, HD_Movies and tv
for now I am just trying to connect to the SD_Movies share which has two sub folders DVD and Movies.

When I telnet in, I can create the shares for the SD_Movies sub folders. Despite putting the exact same thing into f02nas1.sh I cannot get the shortcuts to automatically come up on reboot.

Here is what works with telnet. My user name does have a space in it and the output for mount does cut off the second part of "User Name" and only displays username=User)

Code: Select all
AIOS login: AIOS login: root


BusyBox v1.1.3 (2011.09.09-05:41+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ # mkdir -p /tmp/nfs
~ # mkdir -p /tmp/ramfs/volumes/SD_Movies
~ # mount -t cifs //192.168.2.13/SD_Movies -o ro,iocharset=utf8,username="User Name",password=password /tmp/ramfs/volumes/SD_Movies
~ # ln -s /tmp/ramfs/volumes/SD_Movies/DVD /tmp/nfs/DVD
~ # ln -s /tmp/ramfs/volumes/SD_Movies/Movies /tmp/nfs/Movies
~ # mount
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
none on /proc type proc (rw,nodiratime)
devpts on /dev/pts type devpts (rw)
none on /sys type sysfs (rw)
none on /tmp type ramfs (rw)
/dev/mtdblock/2 on /usr/local/etc type yaffs (rw,noatime)
/dev/rd/0 on /mnt/rd type vfat (rw,nodiratime,fmask=0022,dmask=0022,codepage=cp4
37,iocharset=iso8859-1)
//192.168.2.13/SD_Movies on /tmp/ramfs/volumes/SD_Movies type cifs (ro,nodiratim
e,unc=\\192.168.2.13\SD_Movies,username=User)
~ #


My nonworking f02nas1.sh is as follows
Code: Select all
#!/bin/sh
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")


TIMEOUT=20

while [ $TIMEOUT -gt 0 ]; do
    if ping 192.168.2.13; then
        mkdir -p /tmp/nfs
        mkdir -p /tmp/ramfs/volumes/SD_Movies
        mount -t cifs //192.168.2.13/SD_Movies -o ro,iocharset=utf8,username="User Name",password=password /tmp/ramfs/volumes/SD_Movies
      ln -s  /tmp/ramfs/volumes/SD_Movies/Movies /tmp/nfs/Movies
        ln -s  /tmp/ramfs/volumes/SD_Movies/DVD /tmp/nfs/DVD
        TIMEOUT=0
    else
        TIMEOUT=$((TIMEOUT - 1))
    fi
done

IFS=$SAVEIFS


The f02nas1 permissions are set to 755

I dont know if it is relevant but I have tried to run the script manually via telnet and this is what I get
Code: Select all
AIOS login: AIOS login: root


BusyBox v1.1.3 (2011.09.09-05:41+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ # /usr/local/etc/share_favs/f02nas1.sh
-sh: /usr/local/etc/share_favs/f02nas1.sh: not found
~ # cd /usr/local/etc/share_favs
/usr/local/etc/share_favs # ls
f01nas1.sh  f02nas1.sh
/usr/local/etc/share_favs #


If I then type in vi /usr/local/etc/share_favs/f02nas1.sh it will open the script and it is what I sent over ftp.

I am at my wits end and I really hope it is some stupid mistake on my part. Thanks for the help and for reading my wall of text!
dstaas
 
Posts: 4
Joined: July 24th, 2012, 3:48 am

Re: How to: Bookmark Network Folder

Postby aasoror » July 26th, 2012, 10:47 am

dstaas » July 26th, 2012, 10:57 am wrote:So I have been trying to get my aios to save my network shares through nfs and have had some limited success but now need help.

have you set the file to executable ?
The AIOS wiki - The AIOS Semiofficial firmwares
Calling upon ALL AIOSers, your feedback is needed -- Calling upon ALL XIOSers, your feedback is needed
XIOS XBMC: Setup, Nightlies: M1 - M3 - Android - Keep the annoying XIOS developers happy, always attach a log with your bug report, here is how.
User avatar
aasoror
Pivos Employee
 
Posts: 8726
Joined: September 26th, 2011, 4:18 pm

Re: How to: Bookmark Network Folder

Postby dstaas » July 26th, 2012, 11:08 am

Currently set to execute
Image from ftp
Image checked via telnet and tried to execute too
dstaas
 
Posts: 4
Joined: July 24th, 2012, 3:48 am

Re: How to: Bookmark Network Folder

Postby aasoror » July 26th, 2012, 11:11 am

dstaas » July 26th, 2012, 3:08 pm wrote:Currently set to execute

how but this from telnet ?
Code: Select all
cd /usr/local/etc/share_favs
./f02nas1.sh
The AIOS wiki - The AIOS Semiofficial firmwares
Calling upon ALL AIOSers, your feedback is needed -- Calling upon ALL XIOSers, your feedback is needed
XIOS XBMC: Setup, Nightlies: M1 - M3 - Android - Keep the annoying XIOS developers happy, always attach a log with your bug report, here is how.
User avatar
aasoror
Pivos Employee
 
Posts: 8726
Joined: September 26th, 2011, 4:18 pm

Re: How to: Bookmark Network Folder

Postby dstaas » July 26th, 2012, 11:18 am

Same result:
Image
dstaas
 
Posts: 4
Joined: July 24th, 2012, 3:48 am

PreviousNext

Return to AIOS Guides & Tips

Who is online

Users browsing this forum: No registered users and 1 guest