Hey, I'm writing my first Android app, which is more or less going to be a mount point manager. Local mounts and NFS mounts have been easy, but I'm not sure of how to go about CIFS shares.
Ideally, after selecting a host, a list of CIFS shares would be displayed. At the bare minimum, I should be able to enter a CIFS URI/share string and mount it (eg: //192.168.1.100/mount_point). I'm thinking of EStrongs, where you can select a host, and it will display shares, which you can then further explore.
I've seen jCIFS (I think this is what Astro uses), and I've seen mention of the cifs.ko module on xda. Are there any other standard approaches? Any tips/recommendations on how to go about using jCIFS or cifs.ko and doing this in general?
Related
This isn't really GTab specific but none of the generic android forums looked like a good place to post a "tip".
Here's a dumb little trick. Yes, I know there are other ways to do it. This is just one of them.
1) From the market install QuickSSHd which gives you an SSH server on the tablet.
2) Run QuickSSHd, set the password or keys as you like and test that you can log in.
3) On Linux install sshfs (your package manager should install FUSE if necessary and other dependencies).
4) Now the fun part (assume that QuickSSHd shows your IP is 192.168.1.29
mkdir ~/tablet
sshfs [email protected]:/ ~/tablet
5) Use your favorite method (shell, Dolphin, Nautilus, Konquerer etc.) to open up ~/tablet.
6) Use your tablet as though it were a locally mounted disk to transfer files etc.
Yes, you can do this with a USB mount. But this is wireless. Yes you can transfer files in lots of other ways: samba mounts, XFS, etc. etc. etc.
Nice little trick
I love sshfs, and I def. think its a neat that there is an sshfs capable ssh daemon for android.
However, a simpler solution might be to just use dropbox. That is what i do. It integrates really well with ubuntu and it auto syncs.
So for magazines or pdf's whatever I want to read in the morning, I just put them in my dropbox folder and they sync to my tablet.a
I know - file limitations etc. But its simple, works well and has desktop integration (with gnome nautilus at least).
Yeah I use dropbox too. And I like Wireless File Transfer Pro because any PC that has a web browser will suffice. I've also used Droidscp, rsync for Android, and of course adb and just the USB mount feature.
Lots of ways to skin a cat, as they say.
Trying to stream cbrs and cbzs from my network. I can see the files fine but I can't open them unlike avis which will allow me to pick an app to open it with. Is there a work around for this?
use CIFS (it's built into the primordial rom).
when you mount a CIFS share, as far as your tablet is concerned the files are local.
for example.
\\My Server\My Files\My Comics
can be mounted in
/sdcard/media/comics
and comic reader mobi, or whatever you use, will see them in /sdcard/media/comics (or wherever you want to mount it)
I downloaded the app and set the share path to 192.168.0.100/comics which where they are and the /sdcard/Comics and username anon. But it gives me an error when I try to mount. Did I do something wrong?
stcardinal said:
I downloaded the app and set the share path to 192.168.0.100/comics which where they are and the /sdcard/Comics and username anon. But it gives me an error when I try to mount. Did I do something wrong?
Click to expand...
Click to collapse
you running a rom that supports CIFS? dont think stock will work.... but in CIFS manager options, check both boxes (load CIFS module, load via insmod)
http://dl.dropbox.com/u/4221310/P20110601182751.png
http://dl.dropbox.com/u/4221310/P20110601182817.png
http://dl.dropbox.com/u/4221310/P20110601183033.png
tested with a free comic and the comic reader mobi app, using CIFS on Primordial 3.1... works fine, streams comics from my network via wifi.
Ah I'm on stock... that might be why. Thanks for the info.
yea, if checking those boxes doesnt work for you, you need a kernel that supports CIFS.
you'd have to downgrade to .9, factory reset, root, then install a 3.1 rom with CIFS support.
It seems I can mount SMB shares very easily on a few different programs. But when it comes to editing the file and saving, it doesnt stick. It looks like it does, and it has writing "enabled" but it seems to only read it. I wanted to see if there was a solution for editing/saving pdf/word/excel files on a network share without rooting. But so far that seems to be the only option..
Do you really mean "mount" because you can read from/write to an SMB share without ever mounting it as a filesystem.
Mounting is the process of making a resource available as a filesystem within the local directory structure (Hence "mount point")
E.G. ES explorer contains an SMB client that allows you to browse a remote SMB share, but it does not mount the SMB share. Hence the share is not available to any other apps that can only see the local file-system.
Additionally, actual mounting requires system-level privileges (AKA root)
Hi
I've found several threads on this, but no definitive answer.
I have a NAS server on my home network and after hours of trying to connect, with all kinds of apps (including SMB File Share, Astro, ES File Manager), all fail with various errors.
Is it possible to connect to a samba / windows share with an out of the box android installation or is rooting the device the only option.
Many thanks
Nevermind.....
I use ES File Explorer both at work on a Windows Active Directory domain and at home on a workgroup domain. Home file server is a QNAP NAS box.
This is what I use to setup a LAN connection to my QNAP box in ES File Explorer:
Domain: (leave blank)
Server: 192.168.1.198
Username: yourusername
Password: yourpassword
Anonymous: (leave unchecked)
Display As: QNAPNAS
This brings up all the top level shares on the QNAPNAS.
FYI I am using a TF101 with dock running stock 3.2, no rooting done.
womble76 said:
Hi
I've found several threads on this, but no definitive answer.
I have a NAS server on my home network and after hours of trying to connect, with all kinds of apps (including SMB File Share, Astro, ES File Manager), all fail with various errors.
Is it possible to connect to a samba / windows share with an out of the box android installation or is rooting the device the only option.
Many thanks
Click to expand...
Click to collapse
I'm rooted, but I can confirm that ES File Explorer can mount SMB shares on unrooted systems. It installs it's own libraries/modules in it's data directory, so CIFS or root is not required. I have had trouble with dedicated NASes before though, not just on Android either. If you can, disable all password protection on the shares and see if it helps.
AndSMB will also work without Root, no matter if Samba, CIFS or old Windows SMB. And you can mount several shares, not only one. I find it very comfortable, even the free version.
Try file expert, you dont need root. I use it with my Dns-323 NAS and it works really well
File Manager HD handles shares too (Windows Home Server, Win7, Thecus NAS) - unrooted.
Monkey see, monkey do.
CodeMonkey said:
File Manager HD handles shares too (Windows Home Server, Win7, Thecus NAS) - unrooted.
Monkey see, monkey do.
Click to expand...
Click to collapse
+1 for File Manager HD
+1 for ES File Explorer
Use both to access files on my NETGEAR NAS.
We will need more specifics in order to help further,
Rio
I'm using ES File Explorer on my phone, but i prefer File Manager HD on the transformer...
+1 on AndSMB. Free, easy to use, and no rooting or anything needed as posted above.
Regards.
Is it possible to mount a remote file system, either SMB/Samba/CIFS, NFS or SSHFS?
If so how?
Do I have to root to do this?
The big question is what you are trying to do/access on the remote share.
From the way your question was phrased, it sounds like you just want system wide access. It would probably be easier just to get specific apps with remote share support for what you're trying to do.
There are quite a few file explorers and media players that have the SMB client support you're looking for.
ES file explorer and Solid Explorer both have share drive access that you can setup.
I've been using BSplayer for videos and it also has SMB support. I'm sure that plenty of others have it as well.
***Edit***
Going this route also means that you shouldn't need root access to reach the network shares.
darksabre_x said:
The big question is what you are trying to do/access on the remote share.
From the way your question was phrased, it sounds like you just want system wide access. It would probably be easier just to get specific apps with remote share support for what you're trying to do.
There are quite a few file explorers and media players that have the SMB client support you're looking for.
ES file explorer and Solid Explorer both have share drive access that you can setup.
I've been using BSplayer for videos and it also has SMB support. I'm sure that plenty of others have it as well.
***Edit***
Going this route also means that you shouldn't need root access to reach the network shares.
Click to expand...
Click to collapse
Is there some reason I don't want system wide access?
It seems to me that requiring apps to have some kind of remote access would limit the apps I use.
What I mainly want is to treat remote files the same way I would treat local files in three circumstances: when seen in a file manager, when seen in an open dialog box, and when seen in a "save as" dialog box. The last two in particular for any app I wish to use not necessarily just those that are particularly enabled to do it.
.
I don't mean to hijack the thread, but are there any roms or kernels available with cifs support? I've been looking around but can't seem to find anything...