pocket2rm icon indicating copy to clipboard operation
pocket2rm copied to clipboard

simplify installation process

Open GliderGeek opened this issue 3 years ago • 11 comments

currently difficult for someone without programming knowledge. potential improvements:

  • precompile for target
  • scp from go. https://github.com/bramvdbogaerde/go-scp might be interesting
  • popup for key instead of commandline entry

GliderGeek avatar Sep 21 '20 21:09 GliderGeek

I wonder if it would be easier to just send via the remarkable cloud and use rmapi to send the docs?

faroit avatar Nov 04 '20 19:11 faroit

i think it depends on your needs. the reason i like pocket a lot is that there are existing integrations for my other devices (and i already had an account there):

  • iphone shortcut for browser
  • browser extension for firefox on laptop
  • official app on kobo ereader
  • this tool on remarkable (this didn't exist so i created it 😄 )

getting this to work on my phone with a push to remarkable cloud is a bit difficult i think.

GliderGeek avatar Nov 05 '20 21:11 GliderGeek

Not clear if I understand what you are saying: Are you running this tool on your phone? I guess not. What I meant its replacing the ssh connection within this package with rmapi or rmapy to simplify installation process on the backend side. This could also be additional. But using the rm cloud to send files seems more flexible to me.

faroit avatar Nov 06 '20 08:11 faroit

ok, i misinterpreted your comment. interesting idea, will think about it.

GliderGeek avatar Nov 06 '20 16:11 GliderGeek

Would you be willing to use github actions / github releases to build a pre-compiled version of the ARM binary? Downside is you'd also probably need to start versioning them, which can be a hassle.

r4v5 avatar Nov 13 '20 18:11 r4v5

Yeah i would be open to that. Would that help a lot? I guess it would be mainly helpful if all go binaries were present (also pocket2rm-setup for windows/mac/linux such that it’s no longer needed to compile manually?

GliderGeek avatar Nov 13 '20 23:11 GliderGeek

@faroit: getting rid of scp would be beneficial as i think that this is not available by default on windows?

regarding rmapi: do you know if it's possible to place files in a random place on the device using this? from glancing over the repo, it seems that this is only works for placing files inside the "My files" part of the device (/home/root/.local/share/remarkable/xochitl/).

i need to place files in:

  • /home/root/
  • /etc/systemd/system/

do you know if this works with rmapi?

GliderGeek avatar Nov 14 '20 10:11 GliderGeek

hi @GliderGeek and all, I have prepared a bash install script.. ( push and PR comes up soon )

Would you consider having a script to do all the install?

also on your point to have a popup, it will have a dependency on a cli app like zenity I would recommend ( as I have done ) within the script to ask for it and pass it to the go app like a variable eg: main --key RGTHFVBKJLUOIT

I know in python its called argparser not sure in go :D

stiliajohny avatar Nov 30 '20 22:11 stiliajohny

in the meantime the installation has been significantly simplified by the introduction of a single install script. it would still be nice to make this an order of magnitude easier, such that non-devs can also use this.

GliderGeek avatar Jan 13 '21 18:01 GliderGeek

I'd like to install this, but the instructions are not clear to me. Do I need to install golang? What does 'clone or download this repository' mean? I'd also like to see an uninstall 'magic phrase', just in case. To give you an idea of my competence using the command line: I can ssh into the device, I installed the ddvk hacks without any trouble.

RhvdG avatar Feb 22 '21 23:02 RhvdG

Do I need to install golang

yes

What does 'clone or download this repository' mean?

the green button on the main repository page. if you dont know what cloning means, i would go for download.

Screenshot 2021-02-23 at 08 53 28

I'd also like to see an uninstall 'magic phrase', just in case

There is none at the moment. There are a few files copied to your device we you should manually remove to uninstall.

I understand that this might be a bit intimidating when you're not familiar with software development.

GliderGeek avatar Feb 23 '21 07:02 GliderGeek