Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,805,829 Members 42,533 Now Online
XDA Developers Android and Mobile Development Forum

[APP] Samba Server for Android

Tip us?
 
_LexX_
Old
#121  
Junior Member
Thanks Meter 0
Posts: 16
Join Date: Dec 2005
Hello all
I'm using HTC Desire with LeeDroid 2.0 firmware. On my device i got a problem with Samba autostart/autostop script (dhcpcd hook).

After WiFi has a connection /data/local/log looks good - it has records ${reason}: new_broadcast_address, but no smbd/nmbd processes started.

I tried to modify samba-rc script to add logging redirect to smbd launch:
$PRE/bin/nmbd -D $NDEBUG >> /data/local/log

but has no effect

Need help
 
Jack_R1
Old
#122  
Senior Member
Thanks Meter 948
Posts: 4,305
Join Date: Aug 2009
Does the server start up correctly when you fire it manually? (samba-rc restart)
 
_LexX_
Old
#123  
Junior Member
Thanks Meter 0
Posts: 16
Join Date: Dec 2005
Quote:
Originally Posted by Jack_R1 View Post
Does the server start up correctly when you fire it manually? (samba-rc restart)
Yes, i can start the server manually and it works fine
It launches only after su
 
Jack_R1
Old
#124  
Senior Member
Thanks Meter 948
Posts: 4,305
Join Date: Aug 2009
Yes, it requires root permissions, at least for now.

I never tried the dhcpcd hook. What scripts exactly does it create?
 
_LexX_
Old
#125  
Junior Member
Thanks Meter 0
Posts: 16
Join Date: Dec 2005
Quote:
Originally Posted by Jack_R1 View Post
Yes, it requires root permissions, at least for now.

I never tried the dhcpcd hook. What scripts exactly does it create?
Here is the script:

SUSH=/system/bin/dhcprootshell
SAMBARC=/data/local/samba/bin/samba-rc

case "${reason}" in
BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT)
#set >> /data/local/log
$SUSH -c "$SAMBARC restart" # >> /data/local/log 2>&1
;;

EXPIRE|FAIL|IPV4LL|STOP|RELEASE)
$SUSH -c "$SAMBARC stop" # >> /data/local/log 2>&1
;;
esac
 
mustafazr
Old
#126  
mustafazr's Avatar
Member
Thanks Meter 4
Posts: 67
Join Date: Apr 2008
Location: Bay Area, CA
Worked like a charm for me. I would be very interested in packaging a UI/.apk for this and maybe even posting it on the Market. I have some Android dev experience so let me know if I can be of any help.

I think this is ridiculously useful as this is the only way I can truly do WiFi syncing of Music (I'm using MediaMonkey - I believe you could use Winamp too).
dangsquall Old
#127  
Guest
Thanks Meter 0
Posts: n/a
That's exactly what I'm trying to do as well, although I try to use SyncToy in order to sync the music folder. The permission bug prevents me to do that as SyncToy has problems with Read-only files. Have you tried MediaMonkey to sync yet? I might try that option tomorrow how that goes
 
JimmyChingala
Old
(Last edited by JimmyChingala; 9th June 2014 at 01:32 AM.) Reason: remove old attachment, update page content & broken links
#128  
Senior Member
Thanks Meter 194
Posts: 199
Join Date: Apr 2010
Location: Melbourne
Smile Access the external storage card in your Android device over wifi as a shared folder

Hi, thanks for your interest in this app!

If you use it, please do post feedback about success, failure, suggestions for improvement etc. Be sure to include the app version you have installed (Menu -> Settings -> About), your Android device make, model & ROM version, and support log file if you are having problems (Menu -> Settings -> Create Support Log - send via PM or e-mail, please dont post the log to the forums).

Am also interested to hear about copy xfer rates to/from your device. My HTC Hero gets between 700 KB/s to 1MB/s, my Asus Transformer about 2.5MB/s.

This app requires your device to already have:
- root access.
- Superuser 2.3.6.2 or later, from Android Market (may work with other Android 'su' implementations but I havent tested with any others).


Installation
* The two most recent development builds are attached below.
* Or you can Install the current Android Market version:


On the first run, make sure you catch the SuperUser Auth request to allow the Samba Filesharing app root access.

Also, the first run will be a bit slow, the app has to unpack some additional binaries into its private data space.

GPL: Samba GPL licensing information including source code modification details are included in the app. Once installed go to Menu -> Settings -> About.

- jc

Screen shots (click to enlarge):

Click image for larger version

Name:	110905main_full.png
Views:	4164
Size:	20.5 KB
ID:	738554 Click image for larger version

Name:	110905prefs_01_full.png
Views:	3455
Size:	33.6 KB
ID:	738557 Click image for larger version

Name:	110905prefs_02_full.png
Views:	2781
Size:	30.3 KB
ID:	738558 Click image for larger version

Name:	110905prefs_03_full.png
Views:	2621
Size:	30.6 KB
ID:	738559

Change history


If you like this app, please consider making a small donation. Not to me, but to one of the charities I strongly support: Cancer Research, or Animal Welfare.

Dev builds attached below - To install: unzip, and either:
- ADB: adb install SambaFilesharing<version>.apk
- FileManager: Copy the APK to /sdcard on your device, then launch with a filemanager program (like Astro).
(Dev build change history)



To-Do list (in no particular order)
- finish notification bar icon re-code
- Add support for NTFS formatted sdcards.
- Improve support for devices (eg Tablets) with multiple 'sdcard' type storage devices.
- multiple/more configurable shared folders, multiple user accounts.
- add in a CIFS mount manager
- Improve available characters and lengths of username, password, workgroup, netbios-name fields.
- toggle widget
- Add option for persistent display of app 'Menu' button items.
- move this page to the Android Apps and Games forum.

(The below SambaFilesharing-dev-130413.zip is the the Google Play 140525 version with extra dev options turned on )
Attached Files
File Type: zip SambaFilesharing-dev-130413.zip - [Click for QR Code] (1.83 MB, 4404 views)
The Following 110 Users Say Thank You to JimmyChingala For This Useful Post: [ Click to Expand ]
 
WattoDaToydarian
Old
#129  
Junior Member
Thanks Meter 0
Posts: 13
Join Date: Apr 2010
Jimmy, works great except that I still can't upload files to the sdcard using Nautilus in Ubuntu 10.04, I get the error "Invalid argument" and then it shows up on the sdcard as a 0 byte file which I can delete.
Downloading works great though.
For the record I am running cyanogen 6 stable.
 
JimmyChingala
Old
(Last edited by JimmyChingala; 28th December 2010 at 01:58 AM.)
#130  
Senior Member
Thanks Meter 194
Posts: 199
Join Date: Apr 2010
Location: Melbourne
Quote:
Originally Posted by WattoDaToydarian View Post
Jimmy, works great except that I still can't upload files to the sdcard using Nautilus in Ubuntu 10.04, I get the error "Invalid argument" and then it shows up on the sdcard as a 0 byte file which I can delete.
Downloading works great though.
For the record I am running cyanogen 6 stable.
Hey, on my Ubuntu 9.10 VM + Nautilus 2.28.1 I get the same thing.

But on another VM i have running Ubuntu 9.04 + Nautilus 2.26.2 read/write to the /sdcard share works ok.

Perhaps its a Ubuntu or Nautilus issue, I will see what else i can find.

Update - Solved
See this post.

- jc

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes