Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-28-2012, 07:34 PM   #1
Thor
Member
Thor will become famous soon enoughThor will become famous soon enoughThor will become famous soon enoughThor will become famous soon enoughThor will become famous soon enoughThor will become famous soon enough
 
Posts: 13
Karma: 550
Join Date: Jan 2012
Device: Sony PRS T1
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
This enables incoming connections (thanks to this post: Original info to allow incoming connections

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 . Do not forget that username and password are case-sensitive!!

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.
Thor is offline   Reply With Quote
Old 01-28-2012, 11:33 PM   #2
datadog
Junior Member
datadog will become famous soon enoughdatadog will become famous soon enoughdatadog will become famous soon enoughdatadog will become famous soon enoughdatadog will become famous soon enoughdatadog will become famous soon enough
 
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.
datadog is offline   Reply With Quote
Old 01-31-2012, 11:38 AM   #3
Thor
Member
Thor will become famous soon enoughThor will become famous soon enoughThor will become famous soon enoughThor will become famous soon enoughThor will become famous soon enoughThor will become famous soon enough
 
Posts: 13
Karma: 550
Join Date: Jan 2012
Device: Sony PRS T1
Edit /system/etc/firewall.sh with root explorer (mount system as read/write) and comment out the line
Code:
iptables -P INPUT   DROP
to e.g.
Code:
# iptables -P INPUT   DROP
Then you are able to use Samba directly after a reboot without entering the iptables-command in a terminal as written in the first post.
Thor is offline   Reply With Quote
Old 01-31-2012, 10:57 PM   #4
j0534ng31
Connoisseur
j0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheesej0534ng31 can extract oil from cheese
 
Posts: 83
Karma: 1224
Join Date: Dec 2011
Location: Gijon (Spain)
Device: Sony PRS-T1 black
Quote:
Originally Posted by Thor View Post
Edit /system/etc/firewall.sh with root explorer (mount system as read/write) and comment out the line
Code:
iptables -P INPUT   DROP
to e.g.
Code:
# iptables -P INPUT   DROP
Then you are able to use Samba directly after a reboot without entering the iptables-command in a terminal as written in the first post.
You can also do:

Code:
adb remount
adb shell "busybox sed -i '/INPUT[[:space:]][[:space:]][[:space:]]DROP/ s/^/#/' /etc/firewall.sh"
(at PC command prompt, if you have ADB enabled and Android SDK installed)

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.
j0534ng31 is offline   Reply With Quote
Old 02-21-2012, 11:35 PM   #5
multiprose
Connoisseur
multiprose can extract oil from cheesemultiprose can extract oil from cheesemultiprose can extract oil from cheesemultiprose can extract oil from cheesemultiprose can extract oil from cheesemultiprose can extract oil from cheesemultiprose can extract oil from cheesemultiprose can extract oil from cheese
 
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
multiprose is offline   Reply With Quote
Old 02-24-2012, 11:13 AM   #6
parkher
Addict
parkher ought to be getting tired of karma fortunes by now.parkher ought to be getting tired of karma fortunes by now.parkher ought to be getting tired of karma fortunes by now.parkher ought to be getting tired of karma fortunes by now.parkher ought to be getting tired of karma fortunes by now.parkher ought to be getting tired of karma fortunes by now.parkher ought to be getting tired of karma fortunes by now.parkher ought to be getting tired of karma fortunes by now.parkher ought to be getting tired of karma fortunes by now.parkher ought to be getting tired of karma fortunes by now.parkher ought to be getting tired of karma fortunes by now.
 
Posts: 300
Karma: 361752
Join Date: Nov 2010
Device: Kobo Aura HD, Sony PRS (T1,T2), PocketBook 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.
parkher is offline   Reply With Quote
Old 03-09-2012, 06:57 PM   #7
multiprose
Connoisseur
multiprose can extract oil from cheesemultiprose can extract oil from cheesemultiprose can extract oil from cheesemultiprose can extract oil from cheesemultiprose can extract oil from cheesemultiprose can extract oil from cheesemultiprose can extract oil from cheesemultiprose can extract oil from cheese
 
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.
multiprose is offline   Reply With Quote
Old 06-10-2012, 06:02 AM   #8
aritzilla
Junior Member
aritzilla began at the beginning.
 
Posts: 1
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
aritzilla is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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, Freebies, and Resources (No Self-Promotion) 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


All times are GMT -4. The time now is 08:09 AM.


MobileRead.com is a privately owned, operated and funded community.