FORUMS

Sunday Debate: How Can We Get a No-Compromise Phone?

Join us in a fun Sunday Debate on Compromises. Come with your opinions and … more

PSA: You Can Optimize Your Note 4’s Recents Menu & RAM

The Note 4 never had the fastest Recents Menu, and despite its 3GB of RAM, … more

XDA Picks: Best Apps of the Week (July 25 – Aug 1)

Apps are at the front and center of any smartphone experience, and with over a … more

Voices Of XDA: Orbiting The Earth With Android

Editor’s note: This week’s feature has been written by forum … more

[APP] Samba Server for Android

7,765 posts
Thanks Meter: 2,396
 
By FadeFx, Senior Member on 27th March 2010, 02:28 PM
Post Reply Subscribe to Thread Email Thread
2nd September 2010, 09:46 PM |#121  
Junior Member
Thanks Meter: 0
 
More
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
 
 
2nd September 2010, 10:17 PM |#122  
Senior Member
Thanks Meter: 965
 
More
Does the server start up correctly when you fire it manually? (samba-rc restart)
3rd September 2010, 09:00 AM |#123  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by Jack_R1

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
4th September 2010, 06:49 AM |#124  
Senior Member
Thanks Meter: 965
 
More
Yes, it requires root permissions, at least for now.

I never tried the dhcpcd hook. What scripts exactly does it create?
6th September 2010, 03:46 PM |#125  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by Jack_R1

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
6th September 2010, 09:47 PM |#126  
mustafazr's Avatar
Member
Bay Area, CA
Thanks Meter: 4
 
More
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
8th September 2010, 04:04 AM |#127  
Guest
Thanks Meter: 0
 
More
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
21st September 2010, 02:52 AM |#128  
Senior Member
Flag Melbourne
Thanks Meter: 203
 
More
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:	5011
Size:	20.5 KB
ID:	738554 Click image for larger version

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

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

Name:	110905prefs_03_full.png
Views:	3347
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, 7660 views)
Last edited by JimmyChingala; 9th June 2014 at 01:32 AM. Reason: remove old attachment, update page content & broken links
The Following 112 Users Say Thank You to JimmyChingala For This Useful Post: [ View ]
21st September 2010, 04:45 AM |#129  
Junior Member
Thanks Meter: 0
 
More
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.
21st September 2010, 06:47 AM |#130  
Senior Member
Flag Melbourne
Thanks Meter: 203
 
More
Quote:
Originally Posted by WattoDaToydarian

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
Last edited by JimmyChingala; 28th December 2010 at 01:58 AM.
21st September 2010, 10:45 AM |#131  
FadeFx's Avatar
OP Senior Member
Flag Vienna
Thanks Meter: 2,396
 
Donate to Me
More
nice to read... will test as soon as my SGS comes from repair....

Read More
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes