jotta / jotta-cli-issues

45 stars 1 forks source link

Feature Request: FreeBSD support #20

Closed jinie closed 3 years ago

jinie commented 6 years ago

Seeing you have Linux and Darwin support, adding FreeBSD to the list of supported platforms should be trivial. FreeBSD support would also allow FreeNAS users to use this utility.

Kimbsen commented 6 years ago

This has been added in the 0.4 release

http://docs.jottacloud.com/jottacloud-command-line-tool/installing-the-command-line-tool/jottacloud-cli-for-freebsd

jinie commented 6 years ago

fantastic support! I'll give it a spin right away.

jinie commented 6 years ago

the /usr/share files are missing from both amd64 and i386 packages.

I created a "freebsd'ish" startup script (attached).

To run jottad execute "service jottad start" and it should be running.

jottad.txt

iko3 commented 6 years ago

@jinie Did you manage to get it to work on FreeNAS ? I'm constantly getting WARNING: run_rc_command: cannot run /usr/local/bin/jottad error

shkm commented 6 years ago

@jinie thanks! I couldn't get mine working until I discovered you're using a &. Is this necessary / reasonable? I'm hopeless with rc scripts.

@iko3 It works fine on Freenas, provided you place the files from Jotta in the directories that jinie specifies. That is, /usr/local/bin and /usr/local/share.

@Kimbsen can we get the rc.conf with installer.sh support for BSD derivatives in the released tar? A working out of the box experience on FreeNAS is quite a win, I think!

jinie commented 6 years ago

@shkm the & detaches the console, releasing control back to the calling daemon. ( I.e. http://www.linuxcommand.org/lc3_lts0100.php )

Ideally the jottad daemon should have an option to detach itself, but this essentially does the same.

I’m not running it under FreeNAS, but on a FreeBSD server I have running. I’m currently migrating it to a docker image to run directly on my Synology nas.

Kimbsen commented 6 years ago

@shkm We do not currently have a proper test/packaging setup for freebsd so we won't prioritize adding those files now. We do want to do it eventually though.

gt2416 commented 6 years ago

On FreeNAS I got jottad to start, but I am unable to get past the login. It keeps getting stuck after I enter the password. Nothing happens after I press enter, the cursor just sits there. Any ideas ?

Edit : Fixed sorry!! Had to install ca roots For anyone else who wants step by step instructions for FreeNAS/FreeBSD: https://forums.freenas.org/index.php?threads/jottacloud-install.69086/ Thanks @jinie for the script and guide!!