![]() |
#1 |
Member
![]() ![]() ![]() ![]() ![]() ![]() Posts: 23
Karma: 550
Join Date: Jan 2012
Device: Kobo Aura H2O
|
Samba Filesharing for Sony PRS T1
I managed to access the internal and external sdcard via Windows filesharing.
![]() 1. You must have a rooted Sony PRS T1 2. Open a terminal (e.g. via the installed "Terminal Emulator") and enter: Code:
su iptables -P INPUT ACCEPT 3. Exit the terminal 4. Get and install Samba Filesharing apk via Samba via Market Link or directly from Samba at XDA Developers 5. Open the app, enter settings and enter a password 5.1 Check and note username 5.1 Enter a correct NETBIOS Name (e.g. SONY) 5.2 I enabled too "Screen Wake Lock" under "Wake Locks" to prevent slow downs Then you can "Enable" the file sharing. Make sure that you have already enabled WLAN. Finally you are able to connect via Windows Explorer your sdcards on the PRS T1 ![]() If you copy new files via SMB to your T1 trigger a Media scan afterwards (context menu from Samba app and "Media Scan"). Then the new files are recognized by the system. It seems that the iptables-command do not survive a reboot. So I have to check if I can manage that the corresponding ports for smb are always open. |
![]() |
![]() |
![]() |
#2 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() Posts: 4
Karma: 548
Join Date: Oct 2009
Device: none
|
Thanks for this - I can now get swiFTP to work. The reason I use this is because it is text only and is only 77k
https://market.android.com/details?id=org.swiftp&hl=en Maybe you could create a script for the iptables command and add a shortcut to it so it can be run after reboots. Last edited by datadog; 01-28-2012 at 11:36 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() ![]() ![]() ![]() ![]() ![]() Posts: 23
Karma: 550
Join Date: Jan 2012
Device: Kobo Aura H2O
|
Edit /system/etc/firewall.sh with root explorer (mount system as read/write) and comment out the line
Code:
iptables -P INPUT DROP Code:
# iptables -P INPUT DROP ![]() |
![]() |
![]() |
![]() |
#4 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 83
Karma: 1224
Join Date: Dec 2011
Location: Gijon (Spain)
Device: Sony PRS-T1 black
|
Quote:
Code:
adb remount adb shell "busybox sed -i '/INPUT[[:space:]][[:space:]][[:space:]]DROP/ s/^/#/' /etc/firewall.sh" And it's possible that you don't have to reboot if you add: Code:
adb shell "/etc/firewall.sh flush; /etc/firewall.sh" ![]() Last edited by j0534ng31; 01-31-2012 at 11:09 PM. |
|
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79
Karma: 1068
Join Date: Nov 2011
Device: kindle
|
if you start to see funky stuff like your wifi disconnecting often, freeze WPSSettings 1.0 and Network Manager 1.0
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 467
Karma: 369018
Join Date: Nov 2010
Device: BL Alita/Mimas/Ares, OB Note2/Note, KA One/H2O/HD, S PRS T2/T1, PB 902
|
Unfortunately, I had only a partial success.
I have installed both samba and the ftp server. With samba: I can't get to my external card even though I specified the additional mounting point for it. BTW, samba says: for external cards, only vfat formatted supported at this time. With ftp - I can get to the external card without problems but I cannot change directories. I keep getting this message: 550 Invalid name or chroot violation If I specify in the ftp server some directory on the card as the initial directory, then I get there when connected, but I still cannot move anywhere from it. UPDATE: the ftp problem solved: the initial directory for the external card has to be /mnt/extsd instead of /extsd Still, samba is working with the internal flash only. As to ftp, I need a better Far ftp plugin to support various characters and alphabets in folder/file names. With FileZilla - everything is ok. But I need something for FAR. So far I tried the usual ftp plugin and NetBox - NetBox shows some promise but fails very quickly. Last edited by parkher; 02-25-2012 at 04:47 AM. |
![]() |
![]() |
![]() |
#7 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79
Karma: 1068
Join Date: Nov 2011
Device: kindle
|
do you guys have any idea how to get Droid Server Beta to work consistently? I got it to work once or twice, allowing me to connect via a PC VNC and send mouse/key inputs but now I can't get it to work anymore.
|
![]() |
![]() |
![]() |
#8 |
Member Retired
![]() Posts: 3
Karma: 10
Join Date: Jun 2012
Device: PRS-T1
|
I have root my T1 using the last rupor´s version and i´m looking for use ftp.
I have modified firewall. sh file, trying this 1 - modify # iptables -P INPUT DROP: 2 - modify firewall.sh writing iptables -P INPUT ACCEPT 3 - install terminal emulator and write: su iptables -P INPUT ACCEPT But nothing works. I Can´t use FTP. What do i do wrong? Sorry my bad english. thanks. Actually this is my firewall.sh #!/system/bin/sh flush() { # flush all rules('filter' table) iptables -F iptables -X iptables -Z # reset default chain policy('filter' table) iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT # # flush all rules('mangle' table) # iptables -t mangle -F # iptables -t mangle -X # iptables -t mangle -Z # # reset default chain policy('mangle' table) # iptables -t mangle -P PREROUTING ACCEPT # iptables -t mangle -P INPUT ACCEPT # iptables -t mangle -P FORWARD ACCEPT # iptables -t mangle -P OUTPUT ACCEPT # iptables -t mangle -P POSTROUTING ACCEPT } build() { # default policy flush # iptables -P INPUT DROP #Se ha puesto como comentario esta linea para permitir usar samba en el T1; (se permite el tráfico de entrada al dispositivo, DROP lo rechazaba) iptables -P FORWARD DROP iptables -P OUTPUT DROP # logging table iptables -N log iptables -A log -j LOG # loopback table iptables -N loopback iptables -A loopback -s localhost -d localhost -j ACCEPT iptables -A INPUT -i lo -j loopback iptables -A OUTPUT -o lo -j loopback # stateful inspection iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT iptables -A INPUT -j log # accept application protocol iptables -A OUTPUT -j ACCEPT iptables -A OUTPUT -j log # # disable TCP ECN for Wi-Fi # iptables -t mangle -A OUTPUT -o wlan+ -p tcp -j ECN --ecn-tcp-remove } disable_log() { iptables -F log } enable_log() { disable_log iptables -A log -j LOG } case "$1" in -f) flush ;; -l) disable_log ;; -L) enable_log ;; *) build 2>/dev/null ;; esac |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Request Geek Tools for moving files to/from the Library: ssh/sftp/rsync/samba | kenjennings | enTourage Archive | 6 | 04-06-2010 11:36 PM |
Filesharing and ebooks | mastakilla | Deals and Resources (No Self-Promotion or Affiliate Links) | 109 | 10-08-2009 10:04 PM |
sqlite samba lock | rootto | Calibre | 4 | 09-27-2009 02:03 PM |
iLiad Samba/smbd/shared folder access to iLiad | ajnorth | iRex Developer's Corner | 12 | 02-29-2008 09:02 AM |