View Single Post
Old 01-20-2016, 04:42 PM   #20
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,486
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by gummihuhn View Post
If I can get Syncthing running on the Kobo via SSH, I guess I can reverse engineer how to hack the relevant menu entries, or in the worst case ask someone for help.

Granted, before today I've not done anything more tricky on the Kobo than install Koreader and KSM. So it could just be inexperience on my part. I've now installed dropbear on the Kobo and put Syncthing on it. But I'm getting an error saying that the Kobo is refusing to let Syncthing open a port, similar to https://forum.syncthing.net/t/16-32-...-address/668/4

Poking around on the Kobo and about 1/2 an hour of internet searches hasn't clued me in to what the problem might be. I don't see any firewall rules (iptables or otherwise) on the Kobo. Maybe I need to add some lines to /etc/inetd.conf.local (and perhaps /etc/services)? I'm afraid I don't have any experience with inetd. I probably just need to read through some man pages (maybe if I get some time this weekend) but any tips in the meantime are welcome.
This is how I start syncthing on the Kobo.

Code:
#!/bin/sh
syncthing_log=/mnt/onboard/syncthing_extern.log

ifconfig lo | grep -q addr:127.0.0.1 || ifconfig lo 127.0.0.1
/adds/syncthing/syncthing -no-browser -gui-address=0.0.0.0:8384 >> $syncthing_log 2>&1
This lets me connect to the GUI from the nickel webbrowser (http://127.0.0.1:8384), and from my pc (http://10.0.0.3:8384. Take your IP.)
As you see from the script, I put the executable syncthing to /adds/syncthing/. So you have to change this, if you put it another location. The logging is not necessary, of course. But I am still testing, since I did not know syncthing before.

It might be a good idea, if execute the commands from telnet while you are testing things. I will update KSM (maybe this weekend) in order to make it easier to ran scripts in the background so that the menu is not blocked. Then it will be really easy to start and kill syncthing.

Last edited by tshering; 01-20-2016 at 04:57 PM.
tshering is offline   Reply With Quote