recept icon indicating copy to clipboard operation
recept copied to clipboard

Non-linux installation

Open Eeems opened this issue 4 years ago • 13 comments

There are users who don't run Linux that will want to install this. At the very least, the readme should contain manual installation instructions.

Eeems avatar Nov 12 '20 13:11 Eeems

As a windows 10 user I found a simple workaround. As the point is all about just running a .sh file, an easy way is to install git from https://gitforwindows.org/ then you have bash.exe, git.exe and sh.exe in C:\Program Files\Git\bin What you have to do from there is adding "C:\Program Files\Git\bin" to your Windows path variables ( see : https://docs.alfresco.com/4.2/tasks/fot-addpath.html for example) Then with a terminal (command line in windows 10), you can just run "sh install.sh" from the folder you've downloaded from this git repo.

DariusMofakhami avatar Nov 13 '20 15:11 DariusMofakhami

To be honest, that seems like overkill due to what install.sh is actually doing.

Eeems avatar Nov 13 '20 15:11 Eeems

Might be. My point was just signaling that there are easy ways to allow running .sh files on windows instead of finding a linux computer or install a linux distribution.

DariusMofakhami avatar Nov 13 '20 15:11 DariusMofakhami

Oh I know, the README just states that linux is required, and there are non-technical users who will not know how to work around that.

Eeems avatar Nov 13 '20 15:11 Eeems

I put this together and you can test it if you want. It is basically the DOS/Windows version of this .sh script.

This assumes that you have the cloned the github and have met the requirements for the original script.

When you save it to your folder, remember to rename it so that it has the .bat extension.

If it fails, send me a screen shot. REMOVED

MechEng70 avatar Nov 14 '20 20:11 MechEng70

Since I don't have a rM2, not really going to be able to test. That said, @MechEng70 where are you assuming that the scp and ssh binaries are coming from?

Eeems avatar Nov 14 '20 21:11 Eeems

My understanding is that SSH and SCP are standard on Windows 10. I could be wrong.

MechEng70 avatar Nov 14 '20 21:11 MechEng70

My assumption is based on my wife's Windows machine. However I did find this article that says you may have to turn it on.

"How to Enable and Use Windows 10’s New Built-in SSH Commands" https://www.howtogeek.com/336775/how-to-enable-and-use-windows-10s-built-in-ssh-commands/

MechEng70 avatar Nov 14 '20 21:11 MechEng70

In which case your script should probably test for them being available and provide instructions if they aren't.

Eeems avatar Nov 14 '20 21:11 Eeems

I think that this addresses that issue. It prints out a statement about going to the URL.
install.bat.txt

MechEng70 avatar Nov 15 '20 02:11 MechEng70

I think that this addresses that issue. It prints out a statement about going to the URL. install.bat.txt

No this script is broken. The changes to the config file is wrong

oblidor avatar Nov 25 '20 10:11 oblidor

Here is a bat script that works from Windows 10. I included the SSH test of MechEng70.

install.bat.txt

oblidor avatar Nov 25 '20 11:11 oblidor

The install.sh file included for Linux installation should work on macOS machines as well. I think the installation instructions should be updated so that less experienced Mac users know that they can run the install script from the Terminal without having to install any other programs

elibaldwin avatar Nov 28 '20 21:11 elibaldwin