maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N810 (https://talk.maemo.org/forumdisplay.php?f=28)
-   -   SMB or NFS server for N810 (https://talk.maemo.org/showthread.php?t=21776)

gklka 2008-07-10 21:28

SMB or NFS server for N810
 
Ave!

I want to browse the Nokia N810's file system from OS X via WiFi. SSH works well, but I like to see the N810 between my other network shares in Finder, so I need to run some NFS or SMB server on it. Where can I get samba-server or how can I create an NFS share? Please explain in detail, because I'm novice :)

qole 2008-07-10 21:43

Re: SMB or NFS server for N810
 
Since you are already using ssh, perhaps you could use something like sshfs for Mac to mount your N810's file system on your Mac? If you're just looking for a graphical front end for file transfer and stuff, I use an SFTP program on my Windows box, there's probably several out there for Mac. Here's one, called "Fugu". Again, all that needs is SSH on the Tablet.

gklka 2008-07-10 21:52

Re: SMB or NFS server for N810
 
*sigh*

SSHFS is working for me, but I want to use SMB or NFS instead. Don't ask why, just help, please. :)

qole 2008-07-10 23:32

Re: SMB or NFS server for N810
 
Here I go again with my shameless self-promotion ;)

I have a Debian chroot package that (I'm pretty sure) has the full Samba package installed. (I might have removed it for space considerations... If it doesn't, just "apt-get install samba") You can set up (dpkg-reconfigure samba) and start the samba server, and it will give you access to the chroot file system, which does not include the "system files" of the N8x0 (/usr, /lib, /var, /etc, /etc, /etc ;) ), but it does include the /dev, /media/mmc1, /media/mmc2, and /home/user folders. Is that enough? (If you really need a specific folder, you could always do a "mount /blah /debian/opt/blah -o bind")

I bet you could install the NFS server in the chroot too... For whatever your mysterious reason is... :)

gklka 2008-07-14 12:11

Re: SMB or NFS server for N810
 
Hm, thanks for your answer, but 1.3GB (with Firefox and everything) for me is a little bit too much overhead for a simple SMB server :)

fatalsaint 2008-07-14 14:54

Re: SMB or NFS server for N810
 
You could download qole's debian.. use apt-get remove to get rid of everything you don't want.. apt-get install nfs samba to setup nfs and sambe then use the resize2fs hack to shrink the image down as small as you need it to be.

Will a little work in /etc/init.d or the rc*.d directories; using sudo debian /etc/init.d/nfs start or similar command you have both nfs and samba auto-start on boot as well..

qole 2008-07-14 17:11

Re: SMB or NFS server for N810
 
If you don't want to have my 1GB Debian blob taking up space on your memory card, you can start tinkering with your root file system by installing stuff until it works or until you break something :)

OS2008 has rudimentary SMB client capabilities built-in. I have previously managed to get Samba client stuff fully working in OS2008, by downloading the smbfs and smbclient packages, and using "dpkg-deb -x" to extract the files and then copying them over to my root filesystem one at a time until things started working. The most important file for me was the mount.cifs command; that seemed to do the trick for connecting my tablet to my password-protected SMB servers.

You, however, wish to try to make your tablet into a "simple" SMB server. I guess you would try to install the whole samba package, but I remember trying that, and that involves a lot of encryption / authentication dependencies (mainly libpam and Kerebeos stuff, if I remember) and they draw in a bunch of dependencies, and it gets really complicated really fast... This is one of the main reasons why I suggested the chroot... It has all of this stuff installed.

One last note: I don't think making the tablet into a file server is the best idea, but if you do, make sure everything is password protected and make sure you only run your file server when behind a trusted firewall. Otherwise you might find other people in the cafe' helping themselves to your files...

qole 2008-07-14 17:19

Re: SMB or NFS server for N810
 
I have a very basic chroot rootfs here (it is the "Basic Debian Sid rootfs"), and you can make a much smaller image file using this technique. Mount the image (as explained in that post), untar the rootfs into the image file, and then chroot in using my script. Then you can install your Samba and NFS server stuff without all of that Firefox fluff.

hackmeister 2008-07-14 17:42

Re: SMB or NFS server for N810
 
I have a server that houses my media and I share it out to my other machines via NFS. I noticed wizard mounter:
http://maemo.org/downloads/product/O...izard-mounter/

It's been ported to diablo but unfortunately some of the dependencies haven't yet. I'll probably use this once it's working in diablo.

qole 2008-07-14 19:44

Re: SMB or NFS server for N810
 
Unfortunately, the OP wants to make his tablet into a Samba server, not just a client (like Wizard Mounter does).


All times are GMT. The time now is 10:39.

vBulletin® Version 3.8.8