Page 2 of 2 FirstFirst 12
Results 21 to 27 of 27
Like Tree30Likes
  1. #21  
    Hmm...I made another observation. And it could be simply my device (TP32gb), but when Syncthing was installed I couldn't connect to my computer through USB (even after some Luna and full resets). Upon removing Syncthing, USB connection worked again. Re-installeding the app resulted in the same behavior. Once the USB connection had failed, I could not remove applications through the launcher or start preware (I could start e.g. tweaks, but with preware I got an empty card even without the flashing icon).

    As I said, this behavior might have nothing to do with Syncthing. I merely would like someone else to check whether they can confirm or deny this behavior. (of course I also understand that one of the purposes of Syncthing is to not-have-to-use USB, but I still want it to work as I consider it an important feature to the way I use my TP).
  2.    #22  
    thanks for reporting this. I never tried that as I almost never use USB Drive mode. I confirm that this issue exists. It is because I used /media/internal/appdata/ to store configuration and cache of syncthing. This allows to preserve folder and device configuration when you uninstall syncthing, so that you don't need to set everything up from scratch if you decide to install it again.
    However, it also prevents /media/internal from being unmounted when Touchpad wants to enter USB mode. I presume the phones are affected also.

    To fix this you can either uninstall the package or stop the daemon temporarily from commandline with "stop sk.mojpalm.syncthing" as root and then enable it again with "start sk.mojpalm.syncthing" after you finished with the USB Drive mode.
    I try to find a proper fix. I think it should be possible to set things up so that the daemon is stoped automatically when you start USB mode. Just need some time to do it.
  3. #23  
    Thanks for all of this. I was able to get Syncthing running on my TouchPad and Synology NAS and set things up for a one-way sync from a folder on the NAS to a folder on the TouchPad. This TouchPad folder is the source for an Exhibition Mode slideshow, so the TouchPad functions as a photo frame. Any changes to the folder on the NAS (additions and deletions) sync to the TouchPad and the slideshow changes almost immediately.
  4.    #24  
    I managed to fix the USB Drive mode issue reported by Misj' in post #21.
    You can download version 0.6 from the link in the first post. Please uninstall any old version prior to installing the new one.
  5.    #25  
    Happy new year to everyone!
    I just released version 0.9 which now supports Tweaks - you can use it to enable automatic upgrades of the syncthing binary, disable logging and tweak syncthing's garbage collector.
    you will find more details and the download link in the first post (don't forget to uninstall old version before upgrading)
  6. #26  
    I've tried it on my Veer and it works flawlessly except the GUI, which I couldn't really use.
    So I was forced to use the web GUI from outside the device and here is the solution to this if anyone is interested in the same.

    1. Configure Syncthing to enable access to the GUI from non local addresses:
      change following line in /media/internal/appdata/sk.mojpalm.syncthing/.config/config.xml in gui section
      Code:
      <address>127.0.0.1:8384</address>
      to
      Code:
      <address>0.0.0.0:8384</address>
    2. If you're already there enable TLS connection and set up a username/password:
      in the head of the same gui section alter the tls="false" to tls="true" so it looks like this
      Code:
      <gui enabled="true" tls="true" debugging="false">
      and add a user and a password node, something like this:
      Code:
      <user>UsErNaMe</user>
      <password>$2y$bLaHbLaHbLaH...</password>
      if you already have your favourite password hash.
      If not (or you're like me, every time creating new hashes even for the same password) the password can be generated several ways (it's a bcrypt hash), the easiest would be with the GUI but tha would mean to expose the GUI unprotected for a small amount of time. There are some online bcrypt generating sites as well, but I do not like transferring my password to some random site, so the following line creates a hash for you if you have access to a Linux computer with Apache on it, you just have to type in twice the same password when it prompts for it
      Code:
      htpasswd -nBC 10 "" | tr -d ':\n'
    3. Set up the firewall to enable the connection to web-GUI:
      add following line to /etc/pmnetconfig/iptables-common.config somewhere near the end
      Code:
      -A INPUT -p tcp -m tcp --dport 8384 -j ALLOWED_PACKETS
    4. Restart phone or the Syncthing app


    As a last warning, be aware that you just opened your Syncthing instance to the world e, so you should have set a password and enabled https for the GUI. See here.
    Provided instructions in the text, that should protect the instance from random tampering.

    Finally a big thanks you to xon.xoff for putting this package together. Nice work!
    Last edited by tylla; 11/24/2018 at 05:17 PM. Reason: Included instructions to TLS/password protect the GUI
    Preemptive likes this.
  7. #27  
    For anyone who tries to use syncthing, and happens to get an error in the log like:
    Code:
    Puller (folder "foo" (bar), item "baz.jpg"): setting perms on temp file: chmod /media/internal/foo/baz.jpg.tmp: operation not permitted
    means you forgot to tick the "Ignore" check-box in the "Permissions" category on the "Advanced" tab of the shared folder properties.

    Reason: /media/internal is a FAT filesystem, which does not allow changing file permissions.

    Maybe this saves some time for someone else as well... ;-)
    MudShark22 likes this.
Page 2 of 2 FirstFirst 12

Similar Threads

  1. webOS User's Online Meet up
    By Preemptive in forum webOS Events
    Replies: 200
    Last Post: 10/14/2019, 08:14 AM
  2. WebOS Internals wiki maintenance
    By Preemptive in forum WebOS Internals
    Replies: 25
    Last Post: 08/05/2018, 07:16 AM
  3. Can't Install Anything from Webos Quick Install
    By rockpebble in forum HP TouchPad
    Replies: 25
    Last Post: 09/03/2017, 03:31 PM

Posting Permissions