FON Boards

The Fonero meeting point
It is currently Tue Feb 09, 2010 19:24

All times are UTC + 1 hour




Post new topic Reply to topic  [ 20 posts ] 
Author Message
 Post subject: Plowshare on F2n
PostPosted: Mon Nov 16, 2009 09:57 
Offline
Fonero
Fonero
 Profile

Joined: Tue Jun 27, 2006 22:13
Posts: 8
Hello,
I've added a wiki page on Plowshare for who are interested :
http://wiki.fon.com/wiki/F2n_Plowshare.


Top
 
 Post subject: Re: Plowshare on F2n
PostPosted: Mon Nov 16, 2009 11:03 
Offline
FON Support Community
FON Support Community
User avatar
 WWW  ICQ  Profile

Joined: Tue Jul 04, 2006 11:10
Posts: 3750
Location: Flanders, Belgium
it looks very nice!
in the fon-ng trunk/openwrt there exists a mk_fon_img.sh that tried to explain me how the transmission.fmg is created...
perhaps it could be used to create also an plowshare "fmg"...
this allows plugins >500kbyte that require eg usb disc anyway for the big applications it requires...

I also hope to use it for my aMule plugin soon

_________________
ImageImageImageImage


Top
 
 Post subject: Re: Plowshare on F2n
PostPosted: Mon Nov 16, 2009 11:51 
Offline
Fonero
Fonero
 Profile

Joined: Tue Jun 27, 2006 22:13
Posts: 8
yes you're right,
I think it's possible to do something with mk_fon_img.sh.


Top
 
 Post subject: Re: Plowshare on F2n
PostPosted: Mon Nov 16, 2009 11:57 
Offline
FON Support Community
FON Support Community
User avatar
 WWW  ICQ  Profile

Joined: Tue Jul 04, 2006 11:10
Posts: 3750
Location: Flanders, Belgium
20100 wrote:
yes you're right,
I think it's possible to do something with mk_fon_img.sh.


and I believe there was a /etc/config/images.conf
or something that referred to this...and possible other in the future "plugins" based on such images
where people can port python or perl or php based solutions...
so the novice user doesn't have to start untarring several packages to get something working

_________________
ImageImageImageImage


Top
 
 Post subject: Re: Plowshare on F2n
PostPosted: Sat Nov 28, 2009 22:58 
Offline
Fonero
Fonero
 Profile

Joined: Wed Dec 14, 2005 13:37
Posts: 3
20100 wrote:
Hello,
I've added a wiki page on Plowshare for who are interested :
http://wiki.fon.com/wiki/F2n_Plowshare.


Hello.
I'm very interresed in plowshare on the fonera.
After following the wiki (which is great, but I already find additionnal tips to add it for beginners, I will add it soon), I've installed correctly plowshare.
However I'm still stuck by an error occuring when trying to start it. It seems that getopt command is not present. I know that getopts is buildin sh, but change getopt to getopts did not fix the issue.

With original script plowshare:

Quote:
plowdown http://www.megaupload.com/?d=XXXXXXXX
/tmp/run/mountd/sda1/usr/share/plowshare/lib.sh: line 215: /dev/fd/62: No such file or directory
/tmp/run/mountd/sda1/usr/share/plowshare/lib.sh: line 230: getopt: command not found

then it keeps stuck.
Quote:
>plowdown http://www.megaupload.com/?d=XXXXXXXX
/tmp/run/mountd/sda1/usr/share/plowshare/lib.sh: line 215: /dev/fd/62: No such file or directory
/tmp/run/mountd/sda1/usr/share/plowshare/lib.sh: line 230: getopts: -o: invalid option
getopts: usage: getopts optstring name [arg]

then it keeps stuck.

Do you have any idea why I got such errors?

I'm using latest fonera 2.0n build for developpers (20090921_FON2303_2.3.0.0_DEV.tgz).

BR


Top
 
 Post subject: Re: Plowshare on F2n
PostPosted: Sun Nov 29, 2009 22:06 
Offline
FON Support Community
FON Support Community
User avatar
 WWW  ICQ  Profile

Joined: Tue Jul 04, 2006 11:10
Posts: 3750
Location: Flanders, Belgium
Getop is part of BusyBox

if you do a "make menuconfig", go to base system , busybox, configuration
you might find it somewhere?

_________________
ImageImageImageImage


Top
 
 Post subject: Re: Plowshare on F2n
PostPosted: Sun Nov 29, 2009 23:56 
Offline
Fonero
Fonero
 Profile

Joined: Wed Dec 14, 2005 13:37
Posts: 3
skynetbbs wrote:
Getop is part of BusyBox

if you do a "make menuconfig", go to base system , busybox, configuration
you might find it somewhere?


Thanks for replying :D

Ok, so that means I have to fully recompile the fonera firmware right ? :?

Do you think it is possible to do on MacOS X (If think it is quite difficult because it's BSD)... I will have to do it on ubuntu right?

Is there an "already made" firmware with this "getopt" available directly to download?
This is not that I'm too lazy to do it myself, but what will happen if the firmware I made and flash in fonera is corrupt ? is there a "fail safe" boot ? (I will check in wiki for fonera right now, but if you already have link or direct answer ... :mrgreen: )

EDIT: Ok, find it, seems to be redboot .. http://trac.fonosfera.org/fon-ng/wiki/redboot
BTW, I got a fonera 2.0n, so the description for connecting serial is for previous fonera 2.0...(I never tried to get redboot command line using ethernet)
Anyway, has far as I know redboot allow to use network file system to get the firmware, so I will be able to try some firmware without breaking the inside flash :)
Thanks for your help ;)

best regards
LouiZo


Top
 
 Post subject: Re: Plowshare on F2n
PostPosted: Mon Dec 07, 2009 10:48 
Offline
Fonero
Fonero
 Profile

Joined: Tue Jun 27, 2006 22:13
Posts: 8
for getopt
use this one : http://ipkg.nslu2-linux.org/feeds/optwa ... mipsel.ipk
Code:
wget http://ipkg.nslu2-linux.org/feeds/optware/openwrt-brcm24/cross/unstable/getopt_2.15-2_mipsel.ipk
tar zxvf getopt_2.15-2_mipsel.ipk
tar zxvf data.tar.gz
cp getopt-getopt to /tmp/run/mountd/sda1/opt/bin
cp getopt to /tmp/run/mountd/sda1/opt/bin  (this is a link to getop-getopt)

for the error
Code:
/tmp/run/mountd/sda1/usr/share/plowshare/lib.sh: line 215: /dev/fd/62: No such file or directory

type this command
Code:
ln -s /proc/self/fd /dev/fd


Let me know if it's work for you. I'll add this to the wiki later.


Top
 
 Post subject: Re: Plowshare on F2n
PostPosted: Mon Dec 07, 2009 11:31 
Offline
Fonero
Fonero
 Profile

Joined: Wed Dec 14, 2005 13:37
Posts: 3
Thanks!
I will try this tonight and let you know ! :wink:


Top
 
 Post subject: Re: Plowshare on F2n
PostPosted: Wed Dec 16, 2009 22:51 
Offline
Fonero
Fonero
 Profile

Joined: Tue Dec 15, 2009 22:13
Posts: 7
hi,
I think I succefully installed plowshare but I had the same problems of Louizo.
I tried to fix it with commands in this page

20100 wrote:
for getopt
use this one : http://ipkg.nslu2-linux.org/feeds/optwa ... mipsel.ipk
Code:
wget http://ipkg.nslu2-linux.org/feeds/optware/openwrt-brcm24/cross/unstable/getopt_2.15-2_mipsel.ipk
tar zxvf getopt_2.15-2_mipsel.ipk
tar zxvf data.tar.gz
cp getopt-getopt to /tmp/run/mountd/sda1/opt/bin
cp getopt to /tmp/run/mountd/sda1/opt/bin  (this is a link to getop-getopt)

for the error
Code:
/tmp/run/mountd/sda1/usr/share/plowshare/lib.sh: line 215: /dev/fd/62: No such file or directory

type this command
Code:
ln -s /proc/self/fd /dev/fd


Let me know if it's work for you. I'll add this to the wiki later.


but commands to fix getopt respond me with these errors
Code:
root@Fonera:/root# cp getopt-getopt to /tmp/run/mountd/sda1/opt/bin
cp: cannot stat 'getopt-getopt': No such file or directory
cp: cannot stat 'to': No such file or directory
root@Fonera:/root# cp getopt to /tmp/run/mountd/sda1/opt/bin
cp: cannot stat 'getopt': No such file or directory
cp: cannot stat 'to': No such file or directory


Instead the fix for error in line 215 works :wink:


Top
 
 Post subject: Re: Plowshare on F2n
PostPosted: Mon Dec 21, 2009 17:25 
Offline
Fonero
Fonero
 Profile

Joined: Tue Dec 15, 2009 22:13
Posts: 7
Anybody answers?

However I make plowshare working with this code
Code:
wget http://ipkg.nslu2-linux.org/feeds/optware/openwrt-brcm24/cross/unstable/getopt_2.15-2_mipsel.ipk
tar zxvf getopt_2.15-2_mipsel.ipk
tar zxvf data.tar.gz
cd /tmp/run/mountd/sda1/opt/bin
ln -s getopt-getopt getopt


I hope it can be useful :wink:


Top
 
 Post subject: Re: Plowshare on F2n
PostPosted: Tue Dec 22, 2009 10:09 
Offline
FON Support Community
FON Support Community
User avatar
 WWW  ICQ  Profile

Joined: Tue Jul 04, 2006 11:10
Posts: 3750
Location: Flanders, Belgium
how big is it in total?
tried making an fmg out of it?

_________________
ImageImageImageImage


Top
 
 Post subject: Re: Plowshare on F2n
PostPosted: Tue Dec 22, 2009 10:25 
Offline
Fonero
Fonero
 Profile

Joined: Tue Jun 27, 2006 22:13
Posts: 8
There are 3 links in usr/bin :
Code:
usr/bin/plowdel -> ../share/plowshare/delete.sh
usr/bin/plowdown -> ../share/plowshare/download.sh
usr/bin/plowup -> ../share/plowshare/upload.sh

and the size of share/plowshare is :
Code:
du -h  usr/share/plowshare/
60.0k   usr/share/plowshare/modules
216.0k  usr/share/plowshare

That's all.


Top
 
 Post subject: Re: Plowshare on F2n
PostPosted: Tue Dec 22, 2009 10:30 
Offline
FON Support Community
FON Support Community
User avatar
 WWW  ICQ  Profile

Joined: Tue Jul 04, 2006 11:10
Posts: 3750
Location: Flanders, Belgium
20100 wrote:
There are 3 links in usr/bin :
Code:
usr/bin/plowdel -> ../share/plowshare/delete.sh
usr/bin/plowdown -> ../share/plowshare/download.sh
usr/bin/plowup -> ../share/plowshare/upload.sh

and the size of share/plowshare is :
Code:
du -h  usr/share/plowshare/
60.0k   usr/share/plowshare/modules
216.0k  usr/share/plowshare

That's all.

and 5,7kbyte for gettopt...

_________________
ImageImageImageImage


Top
 
 Post subject: Re: Plowshare on F2n
PostPosted: Tue Dec 22, 2009 10:31 
Offline
Fonero
Fonero
 Profile

Joined: Tue Jun 27, 2006 22:13
Posts: 8
[quote="bisont87"]hi,

but commands to fix getopt respond me with these errors
Code:
root@Fonera:/root# cp getopt-getopt to /tmp/run/mountd/sda1/opt/bin
cp: cannot stat 'getopt-getopt': No such file or directory
cp: cannot stat 'to': No such file or directory
root@Fonera:/root# cp getopt to /tmp/run/mountd/sda1/opt/bin
cp: cannot stat 'getopt': No such file or directory
cp: cannot stat 'to': No such file or directory

Sorry You have to remove the "to" in the command
Code:
cp getopt-getopt to /tmp/run/mountd/sda1/opt/bin
cp getopt to /tmp/run/mountd/sda1/opt/bin  (this is a link to getop-getopt)

use this :
Code:
cp getopt-getopt /tmp/run/mountd/sda1/opt/bin/
cp getopt /tmp/run/mountd/sda1/opt/bin/


Top
 
 Post subject: Re: Plowshare on F2n
PostPosted: Tue Dec 22, 2009 10:33 
Offline
Fonero
Fonero
 Profile

Joined: Tue Jun 27, 2006 22:13
Posts: 8
skynetbbs wrote:
20100 wrote:
There are 3 links in usr/bin :
and 5,7kbyte for gettopt...

Yes, and Bash, Coreutils, Curl, Recode, Imagemagick and Tesseract.


Top
 
 Post subject: Re: Plowshare on F2n
PostPosted: Tue Dec 22, 2009 10:40 
Offline
Fonero
Fonero
 Profile

Joined: Tue Jun 27, 2006 22:13
Posts: 8
I've added the getopt installation to the plowshare wiki page on f2n : http://wiki.fon.com/wiki/F2n_Plowshare


Top
 
 Post subject: Re: Plowshare on F2n
PostPosted: Tue Dec 22, 2009 22:37 
Offline
Fonero
Fonero
 Profile

Joined: Tue Dec 15, 2009 22:13
Posts: 7
20100 wrote:
bisont87 wrote:
hi,

but commands to fix getopt respond me with these errors
Code:
root@Fonera:/root# cp getopt-getopt to /tmp/run/mountd/sda1/opt/bin
cp: cannot stat 'getopt-getopt': No such file or directory
cp: cannot stat 'to': No such file or directory
root@Fonera:/root# cp getopt to /tmp/run/mountd/sda1/opt/bin
cp: cannot stat 'getopt': No such file or directory
cp: cannot stat 'to': No such file or directory

Sorry You have to remove the "to" in the command
Code:
cp getopt-getopt to /tmp/run/mountd/sda1/opt/bin
cp getopt to /tmp/run/mountd/sda1/opt/bin  (this is a link to getop-getopt)

use this :
Code:
cp getopt-getopt /tmp/run/mountd/sda1/opt/bin/
cp getopt /tmp/run/mountd/sda1/opt/bin/

Thanks but I think I've solved with this symbolic link:
Code:
cd /tmp/run/mountd/sda1/opt/bin
ln -s getopt-getopt getopt


However it works :)
Another question.
Closing the session of putty with wich I start plowshare it stops. How to let it continue run and make a log? I tried with "> log.txt" but in the txt I didn't find anything.

Edit: I found "nohup" that makes a log redirecting the standard output to nohup.out and with the command "&" at the end it works in background :D but with nohup is not possible to recall the process. -.-

Now I've to try "dtach" (installed from the repo into the usb) it seems to work but I dont'kow if I'll be able to have a log like with nohup.
Any suggestions? :P


Top
 
 Post subject: Re: Plowshare on F2n
PostPosted: Wed Dec 23, 2009 21:01 
Offline
Fonero
Fonero
 Profile

Joined: Tue Dec 15, 2009 22:13
Posts: 7
There is the possibility of installing "aview" to also enable megaupload?


Top
 
 Post subject: Re: Plowshare on F2n
PostPosted: Sun Jan 31, 2010 13:24 
Offline
Fonero
Fonero
 Profile

Joined: Tue Dec 15, 2009 22:13
Posts: 7
A new version of plowshare is out (0.9)! :)
Did anyone tried if it can be installed on fonera 2.0n without much problems alike the verison 8.1?


Top
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group  
Design By Poker Bandits