SSH tunnel - mounting CIFS vs ES file manager etc... read more - Desire Q&A, Help & Troubleshooting

Ok, I have a FreeNAS server setup at home and I have SSH enabled. Anyways, i'm fine and succeded in connection via SSH connectbot and having portforward of 139 to a local of 8888
This works FINE with ES file manager or even Astro file manager, I can browse my FreeNas server. Problems are though:
1. Why can't I actively view images or videos(not that I want to so much through 3G) when I click on the image, and it won't load up? This happens the same way if I do a local browsing via SMB on astro file manager on my LAN at home.
What works: When I do a CIFS mount using that app someone made here, the CIFS manager or whatever, I can stream videos, images whatever fine.
Now if I can get that to work via the ssh tunnel. I tried creating a CIFS via the ssh tunnel but somehow it doesn't work and I get error like "segmentation fault" with mount.
Anyone have any idea? I can transfer files file but I want to have option to quickly view pictures on my server rather than copy the paste then open up.

Ok update, I can do a mount CIFS manually in terminal, but the CIFS module app still doesn't work...
I guess SMB shares won't allow streaming either way?

When you use a file manager to browse files on your NAS box over SSH (or FTP), the remote files are not mapped to a local path. As a consequence, you can only browse these files with applications able to use CIFS, SSH or FTP connections. Your gallery apps and media players can't access these files directly because, unlike EStrong of ASTRO, they have no CIFS/SSH/FTP client built in.
When you mount a CIFS share on your NAS box using CifsManager, all the files within that share will be mapped to a "local" file. The Android system will know that when you acces /mnt/cifs/MyShare/peanut.png, it is in fact the file peanut.png on your network share. The gallery or media player apps access a local file and aren't aware of the fact that the Android system actually accesses a file on your NAS box instead.
I have no idea why you can't mount a cifs share over your SSH port forwarding.
A segmentation fault has to do with memory access.. and that doesn't make any sense. It might be caused by the fact that port 137-139 are NETBIOS ports. Win2K and higher use 445 for CIFS instead. You might want to try forwarding port 137 (TCP/UDP) and 138 (UDP) too.. or forwarding port 445 (TCP/UDP) instead. Then again.. it might be something else entirely.
If this doesn't work, maybe you can try with some type of VPN instead of SSH port forwarding?

Actually figured it out.. hope this post will help others with similar issues.
Problem is the mount on android is a bit finicky when apply options, it's a certain order or some sort. I got it working by using the '-o' by putting port=xxxx,ip=xx.xx.xx.xx
It was segmenting for who knows what when I put ip,port. I guess order matters on android vs the linux mount command. Strange indeed
Works now, though my vids are wrong res when streaming, who knows why but not that I care too much lol.
Works okay now, but pretty much 2 step process to access files at home which is a pain. I guess I can buy the andftp client to do a quick file transfer access.

Related

Mounting Samba Shares

How do I mount network shares on my incredible. I want to watch movies off my server.
Astro
Install Astro and it's SMB module from the Market.
I want to mount it not browse to it. So I can play files like they are on a SD card, not download them and then play.
you would have to recompile a kernel with samba built in I believe
Do any of the images being worked on have it?
This would be an incredible feature. Is this working on any of the devices?
I have been searching for this as well. It'd be nice to allow Rockplayer access to my server so I can just stream my porn.
veli69 said:
How do I mount network shares on my incredible. I want to watch movies off my server.
Click to expand...
Click to collapse
All you need is any kernel with either the cifs.ko module (CIFS = SAMBA = Common Internet File System) built as the module, or built-in/linked (like Ziggy's).
In addition, once you've done a mount -t cifs /blah blah, which is all that seeing it in any file util like root explorer shows (that it's mounted, or else you'd never see the files there), then your media/whatever player should be able to use them if the app itself is able to play files from anywhere.
So there's a few pieces to this, where anyone of them "might" be a show-stopper, but I often leave CIFS shares mounted on mine and use them directly.

Map network drive app?

I have a network drive at my home, is there any app that i can map network drive? Meaning i can acess the drive from my desire?
thanks
ASTRO File Manager has a SMB module. You could try that.
If by mapping you mean mounting, your device must be rooted and using a kernel with CIFS support.
You can then use CifsManager to manage your cifs/nfs network shares.
If you just need to browse or download files from your NAS to your phone, ASTRO or ES File Explorer will be fine.
If you want any application to be able to access your NAS seamlessly like it was a local folder, you will need CIFS support.
I just need to browse, view and delete files so ill use astro.
I need some help setting it up.
What do I enter in the server, share, domain and directory fields?
Which field do I enter the IP and the shared folder name?
Cheers
Sent from my HTC Desire using Tapatalk

[Q] How to set a video player over SMB streaming in File Expert?

I'm using root file explorer to connect to my Samba shared NAS (goflex home).
If I copy a .mkv file to my local sdcard, when I click the file (in file expert) it gives me the popup of what program I want to open the video file in. I click mxplayer, it plays just fine.
But if I connect via SMB to my NAS, when I click the same .mkv file, it won't let me pick a video player; instead it says it can't find a default program for this type of file, do I want it to search for one or no thanks. Search for one fails, and no thank just returns me to the File Expert screen. If I want to take the time (and SPACE) I can copy that same mkv file to my sdcard and play it.
So, my question is, how do I get file Expert to give me the video player prompt when connecting via SMB?
As a side not I've tried ES File Explorer in Lan Mode and always get Login Failure connecting to the goflex_home NAS (even though I've triple checked the login credentials and am using the same as in File Expoer).
I've also tried Avia to use DLNA and it sometime works but it doesn't show my Samba shares, it shows my DLNA shares and for some reason doesn't show all of them, including the files I want to play (and yes I shared them already with the Goflex Home config panel.
tl;dr -- how do I tell file expert to use mxplayer when browsing SMB shares, instead of the popup asking to find a program to handle the file?
Edit: Made some progress; tweaked the ES File Expert connection settings to connect to the root of my share and can connect and it gives me the choice of what file player to use -- though it seems to fail streaming. the same file I can play fine from sdcard chokes and is unplayable over streaming.
Alternately, does anyone have a better solution for this problem entirely?
Edit2: Sorry a but more info. When the mkv file is on my sdcard and I click it, I get the same error popup. If I hold down on the file fore afew seconds, I can click "Open As" then "Video" then pick my player. But in SMB exploring, holding down doesn't have an "Open as" option in the menu.
i second this question... same here with samba!!!
anybody knows?
It gives me option to select the player.

[Q] Ouya File Server

Can anyone point me to any kind of file server for the Ouya? CIFS would be ideal but I can handle NFS or FTP too.
I've done my research here and in other forums and am not seeing any clear answer. What I want to do is to be able to remotely copy and delete files to and from the USB key attached to my Ouya.
Why not use ssh for that ?
Sent from my iPad using Tapatalk - now Free
dexter84 said:
Why not use ssh for that ?
Click to expand...
Click to collapse
Okay. I see guides for rooting and installing Busybox. I'm not hugely familiar with Busybox. Does Busybox provide an SSH *server* so I can ssh into the Ouya? I *am* familiar with ssh file transfers on my other servers.
I've seen other requests for an SSH server on the Ouya but no clear answers.
Once you root ouya install something like this:
https://play.google.com/store/apps/details?id=web.oss.sshsftpDaemon
Set it up and leave it running. You will be able to use any ssh client (like putty) to log into ouya and exec any command you need including copying or moving files.
Sent from my iPad using Tapatalk - now Free
dexter84 said:
Once you root ouya install something like this:
https://play.google.com/store/apps/details?id=web.oss.sshsftpDaemon
Click to expand...
Click to collapse
Okay, I thought about that. Early on with my first Android phone I installed a similar app so I could log into my phone from my workstation and play with it. But I'd need to somehow get the APK from Google Play and then sideload it. How do you extract an APK from the store?
Edit:
Actually, searching not too hard turns up things like:
https://code.google.com/p/droidsshd/
And other sshd APK files. But they all do need access to a shell.
Found a solution.
After reading an Ouya review today, the reviewer was all gaga about using AirDroid to manage your Ouya. I had played with this class of "web desktop" apps years ago with my first Android phone. You run the app and then connect to your Android device with your browser. The app gives you a desktop that lets you manipulate your device.
Unfortunately AirDroid is a paid app and costs $1.99 a month. The free version is limited to 100MB of transfers per month which just isn't enough if you're transferring game images for your Ouya emulators.
So instead I found 3CX DroidDesktop which does what I need to do. Here it is on Google Play:
DroidDesktop on Google Play
But of course we can't use Google Play on our Ouya so here is where you can download an APK:
DroidDesktop at android-appstore
Now I thought there used to be a sideloading menu on the Ouya. I guess the last update did away with it. But fortunately the guy who did Mupen64PlusAE (one of the emulators) released FilePwn:
FilePwn on OuyaForum
Which lets you surf the Ouya file system and install packages. Install it through the normal Ouya method. Looks like it's free (as in beer free.)
DroidDesktop isn't a perfect solution. You have to specifically run it when you want to perform file management and the way the Ouya is setup an app takes over the machine and I have no idea how to switch away and do the multitasking I know Android is capable of. But it works and does *not* require rooting. I was able to surf to my USB key and copy and delete files from a Windows workstation.
Edit:
Whoops. FilePwn was *not* released by PaulsCode.com but by littleguy77. Paul just gave him a thumbs-up. My bad.
I like ftpdroid and it runs in the background.
tennisbgc said:
I like ftpdroid and it runs in the background.
Click to expand...
Click to collapse
I'll give it shot.
tennisbgc said:
I like ftpdroid and it runs in the background.
Click to expand...
Click to collapse
It took me a bit to figure out how to get the APK to sideload FTPDroid. I ended up using APK Extractor:
https://play.google.com/store/apps/details?id=net.sylark.apkextractor&hl=en
on my Nexus 7 to get the file. But now after sideloading when I run FTPDroid, it drops right back to the Ouya menu. I'm having the same issue with ES File Explorer. Both are apps that are supposed to run on the Ouya just fine.
Does anyone have any ideas? Is this some issue running Google Play apps on the Ouya?
tennisbgc said:
I like ftpdroid and it runs in the background.
Click to expand...
Click to collapse
when i launch ftpdroid on my ouya it crashes immediately
krzee said:
when i launch ftpdroid on my ouya it crashes immediately
Click to expand...
Click to collapse
Cant say ive run into this problem. Are you rooted?
Have you tried samba filesharing from google app store? I use it on all of my devices but have not tried it out on ouya.
Sent from my SCH-I535 using xda app-developers app
I use it https://play.google.com/store/apps/details?id=com.funkyfresh.samba
And work fine !
Envoyé depuis mon Galaxy Nexus avec Tapatalk 4
I use dropbox & copy to get files to the Ouya.
It's a little more roundabout, but i can download files at work, put them in the @ouya folder in copy, then download when i get home.
I use StockPlus Room that have CIFs support + Mount Manager (free and paid options) and conect to my Time Capsule 3T, and forget the memory limitations on OUYA.
Sent from my Nexus 7 using xda app-developers app
Nice skeleton solution!!!
I've used [and am using] the servers ultimate pro
but I'll keep this one as a backup
ES File Explorer
I've tried nearly all the set-ups above but the one I find most reliable uses ES File Explorer. No need for root or anything else.
Sideload ES File Explorer
Open ES File Explorer
Go to Remote Manager, under tools
Go to Settings (for remote manager)
Turn off 'Close on exit'
Set root directory as your external USB drive connected to the OUYA
Exit settings, and turn on WLAN
I then use an Filezilla to transfer all my downloaded files from my Desktop directly to the correct folder locations on the USB drive connected to the OUYA. I get really solid speeds on the transfer between the two devices.
I can then leave the OUYA in XBMC mode, while being able to transfer any downloads very quickly to the USB drive whenever I want.
Note: I found this worked best when OUYA was connected via wi-fi. Ethernet was problematic
chadley78 said:
I've tried nearly all the set-ups above but the one I find most reliable uses ES File Explorer. No need for root or anything else.
Sideload ES File Explorer
Open ES File Explorer
Go to Remote Manager, under tools
Go to Settings (for remote manager)
Turn off 'Close on exit'
Set root directory as your external USB drive connected to the OUYA
Exit settings, and turn on WLAN
I then use an Filezilla to transfer all my downloaded files from my Desktop directly to the correct folder locations on the USB drive connected to the OUYA. I get really solid speeds on the transfer between the two devices.
I can then leave the OUYA in XBMC mode, while being able to transfer any downloads very quickly to the USB drive whenever I want.
Note: I found this worked best when OUYA was connected via wi-fi. Ethernet was problematic
Click to expand...
Click to collapse
I still prefer ftpdroid cause it launches in the background at startup.
chadley78 said:
I've tried nearly all the set-ups above but the one I find most reliable uses ES File Explorer. No need for root or anything else.
Sideload ES File Explorer
Open ES File Explorer
Go to Remote Manager, under tools
Go to Settings (for remote manager)
Turn off 'Close on exit'
Set root directory as your external USB drive connected to the OUYA
Exit settings, and turn on WLAN
I then use an Filezilla to transfer all my downloaded files from my Desktop directly to the correct folder locations on the USB drive connected to the OUYA. I get really solid speeds on the transfer between the two devices.
I can then leave the OUYA in XBMC mode, while being able to transfer any downloads very quickly to the USB drive whenever I want.
Note: I found this worked best when OUYA was connected via wi-fi. Ethernet was problematic
Click to expand...
Click to collapse
I've tried this, but the remote manager keeps closing the connection. i've unchecked the 'close on exit' box, but it still closes after a while.
any ideas on what might be causing this?

access connected USB flash drive over network?

I have a USB flash drive attached to my Fire Stick TV (2nd Gen). I use it to store movie & music files, which I can play from the Fire Stick using VLC for Android. Works great.
Question: Is there any way that I can access that flash drive via my home network? I would like to be able to copy files to it from my computer. Currently, I have to do it via "sneakernet".
Any advice is much appreciated.
johnnyzero2 said:
I have a USB flash drive attached to my Fire Stick TV (2nd Gen). I use it to store movie & music files, which I can play from the Fire Stick using VLC for Android. Works great.
Question: Is there any way that I can access that flash drive via my home network? I would like to be able to copy files to it from my computer. Currently, I have to do it via "sneakernet".
Any advice is much appreciated.
Click to expand...
Click to collapse
Do "adb connect firestickIP".
adb ls /storage
The USB stick is mounted in /storage (something like /storage/3E91-AF2A). Use "adb push file target-path" to copy files to the USB stick.
Thank you.
I was hoping there might be some way to make the attached flash drive visible/accessible as a standard network share. My goal is to use Windows' File Explorer for file management on that drive, just like the other shared storage devices on my network.
I will try your suggestion of using ADB, although using a command-line interface for file management is not ideal. I found a few different Windows programs that will supposedly provide a File Explorer-like GUI for doing Android file management via ADB (ADB Browser, ADB Explorer, Device File Explorer, etc. ) . Maybe one of those will do the job.
Alternatively, I may try installing a SAMBA server ("LAN Drive") or FTP server ("FTP Server") on the Fire Stick; although neither app has very good reviews.
After trying all this stuff, I will definitely post the results here.
johnnyzero2 said:
Thank you.
I was hoping there might be some way to make the attached flash drive visible/accessible as a standard network share. My goal is to use Windows' File Explorer for file management on that drive, just like the other shared storage devices on my network.
I will try your suggestion of using ADB, although using a command-line interface for file management is not ideal. I found a few different Windows programs that will supposedly provide a File Explorer-like GUI for doing Android file management via ADB (ADB Browser, ADB Explorer, Device File Explorer, etc. ) . Maybe one of those will do the job.
Alternatively, I may try installing a SAMBA server ("LAN Drive") or FTP server ("FTP Server") on the Fire Stick; although neither app has very good reviews.
After trying all this stuff, I will definitely post the results here.
Click to expand...
Click to collapse
Some file managers (Solid Explorer, ES File Explorer) include FTP servers. I don't know if their FTP server provides access to the USB drive, though. There are likely other file managers that also include FTP servers.
dcarvil said:
Some file managers (Solid Explorer, ES File Explorer) include FTP servers. I don't know if their FTP server provides access to the USB drive, though. There are likely other file managers that also include FTP servers.
Click to expand...
Click to collapse
Excellent advice - that will definitely do it for me. Thank you so much.
I wasn't aware that there were Android file managers with a built-in FTP server. I've always used FX File Manager, and it doesn't have that feature.
I tried both ES & Solid, and both worked fine for my purposes. I decided to go with Solid because the UI is slightly better, it allows you to add an FTP Server shortcut to your Android home screen, and it just seemed a little more... solid.. Definitely don't mind paying $1.99 for the full, ad-free version.
Problem solved - thanks again!

Categories

Resources