Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex > iRex Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-05-2006, 03:00 AM   #1
narve
iLiad fan
narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.
 
Posts: 210
Karma: 3864
Join Date: Oct 2006
Device: iRex iLiad
Access to all your iLiad files, without USB

I think it is too much trouble using the USB cable, and besides then I can't access any other files (e.g. in /media). This functionality has been promised by iRex, but not in 2.8 it seems. So I was thinking of installing an ftp server or something like that. I tried the PureFTPd server for zaurus, but some libraries were missing.

Have anyone done some research in this area?

- Why doesn't scp work? Can I install scp on the iLiad? I get an error "sh: scp not found" or something like that

- Does anyone now about a zaurus (s)ftp server that works?

- Perhaps I can drop dropbear and use openssh instead, I believe that one supports scp?
narve is offline   Reply With Quote
Old 12-05-2006, 06:38 AM   #2
Antartica
Evangelist
Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.
 
Antartica's Avatar
 
Posts: 423
Karma: 1517132
Join Date: Jun 2006
Location: Madrid, Spain
Device: quaderno, remarkable2, yotaphone2, prs950, iliad, onhandpc, newton
Quote:
Originally Posted by narve
I think it is too much trouble using the USB cable, and besides then I can't access any other files (e.g. in /media). This functionality has been promised by iRex, but not in 2.8 it seems. So I was thinking of installing an ftp server or something like that. I tried the PureFTPd server for zaurus, but some libraries were missing.

Have anyone done some research in this area?
I use netcat (have it installed in both ends, the PC and the iliad, for the examples with IP 192.168.1.1 and the iliad, for the examples with IP 192.168.1.13):

1.In the iliad, bring up the ethernet interface (using a script, I use wired ethernet, so I call wired.sh with the apropiate parameters)
2. In the destination, you launch netcat in listen mode (for example in the PC):
$ netcat -l -p 11111 | tar -xf -
3. in the source, you change to the directory and pipe it to a socket (for example in the iliad)
$ cd /mnt/free
$ tar -cf - documents | netcat -q 1 192.168.1.1 11111
4. wait until it finishes :-)

NOTE: to have netcat accesible from all places when in the iliad, make a symlink to it. For example, if netcat binary is installed in /mnt/card/netcat/netcat (fix the paths for your netcat install):
# ln -s /mnt/card/netcat/netcat /usr/bin/

Quote:
Originally Posted by narve
- Why doesn't scp work? Can I install scp on the iLiad? I get an error "sh: scp not found" or something like that
The dropbear installation in the iliad seems to be partial. I've dropbear in the zaurus (I'm using pdaXrom), and scp works.

Quote:
Originally Posted by narve
- Does anyone now about a zaurus (s)ftp server that works?

- Perhaps I can drop dropbear and use openssh instead, I believe that one supports scp?
Openssh has scp, and is a more complete implementation, that's right. In fact, what I cannot get to work is ssh'ing from one dropbear (the zaurus) to another (the asus router), while I can ssh from dropbear (the zaurus) to the PC (linux w/ openssh).

Anyway, if you want to give it a try, I attach to this message wu-ftpd compiled for the iliad (vanilla, I've not changed anything in the sources; just patched the binaries to change the configuration directory from /etc to ./cf). I've not tested it, so the usual caveats apply ;-).

Instructions: untar it into the iliad and launch run.sh :-). It's possible that you have to edit the files in the cf directory for it to be usefull (the ones there are the ones of a default debian installation, I've not even edited them so if they have paths, they'll be wrong).
Attached Files
File Type: gz wu-ftpd-2.6.2_iliad-0.1.tar.gz (185.2 KB, 1458 views)

Last edited by Antartica; 12-05-2006 at 06:52 AM.
Antartica is offline   Reply With Quote
Advert
Old 12-05-2006, 08:38 AM   #3
k2r
Zealot
k2r doesn't litterk2r doesn't litter
 
Posts: 124
Karma: 177
Join Date: Jul 2006
Location: Bochum, Germany
Device: MP2K, iLiad
Quote:
Originally Posted by narve
- Perhaps I can drop dropbear and use openssh instead, I believe that one supports scp?
The commandline is your friend:
You can just do this (from the head, my iLiad is at home):

user@desktop: cat FILE_TO_TRANSFER | ssh root@YOUR_ILIAD_IP "cat - > /WHERE_THE_STUFF_GOES/FILE_TO_TRANSFER"

for a directory you could use something like this:

user@desktop: cd WHERE_YOUR_STUFF_IS
user@desktop: tar cO -C . DIRECTORY_TO_TRANSFER | ssh root@YOUR_ILIAD_IP "tar x --no-same-owner -C /WHERE_THE_STUFF_GOES -f -"

SINCE YOU ARE ROOT ON THE ILIAD YOU HAVE ABSOLUTE POWER AND YOU CAN REMOTELY OVERWRITE THE COMPLETE FILESYSTEM AND BRICK IT!

Thank you for observing all safety precautions
#!chris

Last edited by k2r; 12-05-2006 at 09:05 AM.
k2r is offline   Reply With Quote
Old 12-05-2006, 10:03 AM   #4
narve
iLiad fan
narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.
 
Posts: 210
Karma: 3864
Join Date: Oct 2006
Device: iRex iLiad
Thanks for lots of info! Unfortunately, I don't have windows and I am not a commandline-guru, and besides I am extremely lazy, so I think I will go for a more n00b-friendly solution

Quote:
Originally Posted by Antartica
Anyway, if you want to give it a try, I attach to this message wu-ftpd compiled for the iliad (vanilla, I've not changed anything in the sources; just patched the binaries to change the configuration directory from /etc to ./cf). I've not tested it, so the usual caveats apply ;-).

Instructions: untar it into the iliad and launch run.sh :-). It's possible that you have to edit the files in the cf directory for it to be usefull (the ones there are the ones of a default debian installation, I've not even edited them so if they have paths, they'll be wrong).
Thanks, I'll try this out asap!
narve is offline   Reply With Quote
Old 12-05-2006, 02:50 PM   #5
k2r
Zealot
k2r doesn't litterk2r doesn't litter
 
Posts: 124
Karma: 177
Join Date: Jul 2006
Location: Bochum, Germany
Device: MP2K, iLiad
Quote:
Originally Posted by narve
Thanks for lots of info! Unfortunately, I don't have windows
You seem to have a very own definition of "unfortunate" :-)
If you happen to have a Mac, you have all you need on the commandline of the terminal. (Of course, it's the same for most other unixoid systems)

#!chris
k2r is offline   Reply With Quote
Advert
Old 12-05-2006, 05:53 PM   #6
jęd
Evangelist
jęd has a complete set of Star Wars action figures.jęd has a complete set of Star Wars action figures.jęd has a complete set of Star Wars action figures.
 
Posts: 458
Karma: 293
Join Date: May 2006
Quote:
Originally Posted by k2r
If you happen to have a Mac..
If you have a mac you could enable the webserver and use wget to transfer the files *to* the Iliad. I'm surprised no-one has ported apache so you can do it the other way...
jęd is offline   Reply With Quote
Old 12-06-2006, 03:11 AM   #7
narve
iLiad fan
narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.
 
Posts: 210
Karma: 3864
Join Date: Oct 2006
Device: iRex iLiad
Quote:
Originally Posted by k2r
You seem to have a very own definition of "unfortunate" :-)
If you happen to have a Mac, you have all you need on the commandline of the terminal. (Of course, it's the same for most other unixoid systems)
#!chris
Let us not start a OS flame war here
I have all the tools I need on Windows too, including netcat etc. I just don't use the commandline enough to use netcat and the other commandline approaches efficiently. Scp would do it for me, but...
Quote:
Originally Posted by jęd
If you have a mac you could enable the webserver and use wget to transfer the files *to* the Iliad. I'm surprised no-one has ported apache so you can do it the other way...
This is what I do right now -- tar the files, put them on my webserver, wget and untar them on the iLiad. But I will try the other ftp-server instead. Using e.g. FileZilla to view/put files on the iLiad would really be handy. Will post if I succeed, but it will probably be some days until I have time
narve is offline   Reply With Quote
Old 12-07-2006, 08:39 AM   #8
Sergeij2000
Junior Member
Sergeij2000 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2006
Location: Berlin, Germany
Device: iLiad, Treo T650
Quote:
Originally Posted by k2r
The commandline is your friend:
You can just do this (from the head, my iLiad is at home):

user@desktop: cat FILE_TO_TRANSFER | ssh root@YOUR_ILIAD_IP "cat - > /WHERE_THE_STUFF_GOES/FILE_TO_TRANSFER"

...snip
k2r, you're probably much more experienced with the ssh implementation of the iLiad than me, but if there's a ssh server running on the device, couldn't you use a tool like Fugu on the Mac - or WinSCP on a Windows machine - and simply scp the files to and from the iLiad?

cu/

Sergeij
Sergeij2000 is offline   Reply With Quote
Old 12-08-2006, 06:20 AM   #9
narve
iLiad fan
narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.
 
Posts: 210
Karma: 3864
Join Date: Oct 2006
Device: iRex iLiad
Quote:
Originally Posted by Sergeij2000
k2r, you're probably much more experienced with the ssh implementation of the iLiad than me, but if there's a ssh server running on the device, couldn't you use a tool like Fugu on the Mac - or WinSCP on a Windows machine - and simply scp the files to and from the iLiad?

cu/

Sergeij
that is the problem -- it doesn't seem to work. Dropbear is probably a very simple ssh-implemeentation.

I tried to install wu-ftpd. The installation seems to work, but now I have to understand the totally incomprehensible config files to allow anonymous access as root...
narve is offline   Reply With Quote
Old 12-08-2006, 06:37 AM   #10
Sergeij2000
Junior Member
Sergeij2000 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2006
Location: Berlin, Germany
Device: iLiad, Treo T650
Quote:
Originally Posted by narve
that is the problem -- it doesn't seem to work. Dropbear is probably a very simple ssh-implemeentation.

I tried to install wu-ftpd. The installation seems to work, but now I have to understand the totally incomprehensible config files to allow anonymous access as root...
I found a 'hack' to enable scp on a Fritz!Box (which is using dropbear as well) in a German news group:

Quote:
To use scp with dropbear (copy files using WinSCP) an extension to debug.cfg is necessary:

cp /etc/profile /var/tmp
echo "export PATH=$PATH:/var/tmp/bin" >> /var/tmp/profile
mount -o bind /var/tmp/profile /etc/profile
mkdir /var/tmp/bin
ln -s /var/tmp/dropbear /var/tmp/bin/scp

dropbear must exist in /var/tmp
Of course this is an example for another device, but it shows a way to convince dropbear into acting as a scp substitute.

cu/

Sergeij
Sergeij2000 is offline   Reply With Quote
Old 12-08-2006, 08:37 AM   #11
Matthijs
Groupie
Matthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enough
 
Matthijs's Avatar
 
Posts: 199
Karma: 666
Join Date: Oct 2006
Location: Eindhoven, the Netherlands
Device: iLiad, DR1000S, DR800SG
For me scp works without problems on the device...
I have this symlink:
/usr/bin/scp -> /usr/sbin/dropbearmulti

Do you guys want the dropbear IPK file I use?
Install with "ipkg install"
Attached Files
File Type: ipk dropbear_0.46-r3_arm.ipk (97.0 KB, 658 views)

Last edited by Matthijs; 12-08-2006 at 08:43 AM.
Matthijs is offline   Reply With Quote
Old 12-08-2006, 09:37 AM   #12
Sergeij2000
Junior Member
Sergeij2000 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2006
Location: Berlin, Germany
Device: iLiad, Treo T650
Quote:
Originally Posted by Matthijs
For me scp works without problems on the device...
I have this symlink:
/usr/bin/scp -> /usr/sbin/dropbearmulti

Do you guys want the dropbear IPK file I use?
Install with "ipkg install"
Thank's Matthijs,

i didn't install dropbear yet - because i'm using the iLiad for my daily work - and i don't want to brick it.

BTW: Thanks for that great device - the iLiad is really stunning. One question: can you see the full text search within pdfs on your radar?

Cheers

Sergeij
Sergeij2000 is offline   Reply With Quote
Old 12-08-2006, 05:41 PM   #13
narve
iLiad fan
narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.narve can teach chickens to fly.
 
Posts: 210
Karma: 3864
Join Date: Oct 2006
Device: iRex iLiad
Quote:
Originally Posted by Matthijs
For me scp works without problems on the device...
I have this symlink:
/usr/bin/scp -> /usr/sbin/dropbearmulti

Do you guys want the dropbear IPK file I use?
Install with "ipkg install"
Thanks, Matthijs, but I have a (possibly stupid) question: You use this to issue scp-commands on the iLiad, right? My problem is that I don't usually have ssh-servers on my (windows) computers, so I need scp to work from my workstation _to_ the iLiad... does that work for you?

Or perhaps I should install a ssh-server on all my windows stations... sigh
narve is offline   Reply With Quote
Old 12-08-2006, 06:07 PM   #14
Sergeij2000
Junior Member
Sergeij2000 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2006
Location: Berlin, Germany
Device: iLiad, Treo T650
Quote:
Originally Posted by narve
Thanks, Matthijs, but I have a (possibly stupid) question: You use this to issue scp-commands on the iLiad, right? My problem is that I don't usually have ssh-servers on my (windows) computers, so I need scp to work from my workstation _to_ the iLiad... does that work for you?

Or perhaps I should install a ssh-server on all my windows stations... sigh
Hi Narve,

you only need the ssh/scp-server running on the iLiad. If you use the ipkg supplied by Mathijs to install dropbear you are on the sunny side of life, because the installer even creates the links for scp and ssh.

To copy files onto your iLiad - or to remote login into the device from your client - you need a 3rd party client software, which is available on the internet for free. For a Windows computer try to find a download location for WinSCP and PuTTY. For an Apple (Mac OS X) try to find Fugu.

WinSCP and Fugu are filemanagers very similar to the windows explorer or Apple finder, except the fact that they are accessing the files on the remote machine, e.g. the machine which is running the ssh server (which is roughly similar to a machine running a ftp server).

Once you have Mathij's dropbear running on the iLiad - and the network interface has been brought up - you can enter the ip number of the iLiad into WinSCP or Fugu on your Computer - and after providing the login password a connection is established through ssh - and you're able to access all the files inside the iLiad from your remote computer.

Take care

Sergeij
Sergeij2000 is offline   Reply With Quote
Old 12-10-2006, 11:43 AM   #15
Matthijs
Groupie
Matthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enough
 
Matthijs's Avatar
 
Posts: 199
Karma: 666
Join Date: Oct 2006
Location: Eindhoven, the Netherlands
Device: iLiad, DR1000S, DR800SG
Indeed: try WinSCP. Works great.

I have ipkg install-ed this particular dropbear.ipk onto my device dozens and dozens of times, it will definately not brick your iLiad
You must of course first enable the wired or wireless interface on you iLiad before you can connect to it
Matthijs is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows 7 access to USB kindle ?? thierryIT Amazon Kindle 1 05-27-2010 07:27 AM
iLiad Can't Connect via USB after Dev Access Shell Install jfrey iRex Developer's Corner 4 02-20-2008 12:20 PM
completely bricked, tried all the tricks, but still have USB access Magnum6 Sony Reader 3 08-08-2007 03:03 PM
iLiad How do I get ssh access to my 2.7.1 iLiad? narve iRex Developer's Corner 3 11-28-2006 05:59 PM
Remotely access your files with Avvenu Colin Dunstan Lounge 4 11-30-2005 06:45 PM


All times are GMT -4. The time now is 08:06 AM.


MobileRead.com is a privately owned, operated and funded community.