From 6f4c2a2c845682cb296ed5d65ef7626040e2349f Mon Sep 17 00:00:00 2001 From: Edo Frenkel Date: Sat, 13 Mar 2021 02:03:50 +0200 Subject: [PATCH 1/4] This is my contribution to Superalgos --- .../docs-paragraph-styles-021-docs-anchor-style.json | 4 ++-- ...-to-superalgos-015-tutorial-step-set-up-the-token.json | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-021-docs-anchor-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-021-docs-anchor-style.json index a9cbe9e33..9a41f82cc 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-021-docs-anchor-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-021-docs-anchor-style.json @@ -3,8 +3,8 @@ "pageNumber": 21, "type": "Docs Anchor Style", "definition": { - "text": "Amchor paragraphs are used together with the Docs Goto Command. When you want to generate a Docs Link to an specific part of a Docs Page, you first need to create an Anchor paragraph in order to be able to create the link to that part of the page.", - "updated": 1609258745310 + "text": "Anchor paragraphs are used together with the Docs Goto Command. When you want to generate a Docs Link to an specific part of a Docs Page, you first need to create an Anchor paragraph in order to be able to create the link to that part of the page.", + "updated": 1615591597546 }, "paragraphs": [ { diff --git a/Projects/Superalgos/Schemas/Docs-Tutorials/contribute-to-superalgos-015-tutorial-step-set-up-the-token.json b/Projects/Superalgos/Schemas/Docs-Tutorials/contribute-to-superalgos-015-tutorial-step-set-up-the-token.json index c13be1036..4b149248c 100644 --- a/Projects/Superalgos/Schemas/Docs-Tutorials/contribute-to-superalgos-015-tutorial-step-set-up-the-token.json +++ b/Projects/Superalgos/Schemas/Docs-Tutorials/contribute-to-superalgos-015-tutorial-step-set-up-the-token.json @@ -11,10 +11,14 @@ "updated": 1610815737032 }, "paragraphs": [ + { + "style": "Note", + "text": "Github API is currently at the \"Getting Started\" workspace, under APIs.", + "updated": 1615593559409 + }, { "style": "Callout", - "text": "Copy the token, open the Github API node config, and paste it between the double quotes of the token parameter. Fill in the username parameter with your GitHub.com user, not your email!", - "updated": 1610984794891 + "text": "Copy the token, open the Github API node config, and paste it between the double quotes of the token parameter. Fill in the username parameter with your GitHub.com user, not your email!" }, { "style": "Note", From 52840e70e6726b13d4c022971e248a568b752f19 Mon Sep 17 00:00:00 2001 From: teehanming Date: Sat, 13 Mar 2021 13:11:10 +0800 Subject: [PATCH 2/4] This is my contribution to Superalgos --- .../Docs-Topics/app-commands-002-app-update-command.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Projects/Superalgos/Schemas/Docs-Topics/app-commands-002-app-update-command.json b/Projects/Superalgos/Schemas/Docs-Topics/app-commands-002-app-update-command.json index 58aae238a..6d2b2ae00 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/app-commands-002-app-update-command.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/app-commands-002-app-update-command.json @@ -14,8 +14,8 @@ }, { "style": "Json", - "text": "docs.update", - "updated": 1610710006400 + "text": "app.update", + "updated": 1615612258411 }, { "style": "Title", From bf8a6ba8f134d01d8864dfe01263f4e0c7d6c2a9 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sat, 13 Mar 2021 11:02:25 +0100 Subject: [PATCH 3/4] Update index.html --- Client/WebServer/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Client/WebServer/index.html b/Client/WebServer/index.html index 7189ebe1f..4ccbeda35 100644 --- a/Client/WebServer/index.html +++ b/Client/WebServer/index.html @@ -56,7 +56,7 @@ onresize="onResize()">

The UI is loading...

-

Superalgos is forever free and open-source, and it's +

Superalgos is open source and free, for everyone, forever, and it's relentlessly improving thanks to the involvement of contributors:

Luis Fernando Molina, Julian Molina, Andreja Cobeljic, Matías Benitez, Ira Miller, Eduardo Remis, Jeff Braun, rico4dev, 9808us, Barry Low, Nikola Bjelogrlic, Hirajin Koizuko, Francisco J. Santillán, Norman, @@ -203,4 +203,4 @@ - \ No newline at end of file + From a7cd5732ec6d6cc0adc8c1fc708c74cdf5c9ac0d Mon Sep 17 00:00:00 2001 From: whtv <28059402+whtv@users.noreply.github.com> Date: Sat, 13 Mar 2021 11:21:34 +0100 Subject: [PATCH 4/4] Update README.md --- README.md | 59 +++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 46 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index fe60c7529..60b4c4af8 100644 --- a/README.md +++ b/README.md @@ -71,22 +71,16 @@ Before you begin, it is recommended that you set up Chrome/Safari as your defaul # Superalgos Client Installation -**1.** Scroll the page all the way to the top. Find and click the **Fork** button to create your fork/copy of this repository. To fork Superalgos you need a GitHub account. If you don't have one, go ahead and create it. +**1.** Scroll the page all the way to the top. Find and click the **Fork** button to create your fork/copy of this repository. To fork Superalgos you need a Github account. If you don't have one, go ahead and create it. **NOTE:** A Fork is required for your contributions to the project. The reason why Superalgos is free and open-source is that the project has set up a Collective Business in which all users may participate. The way to participate is to contribute to make Superalgos better. The project's token is distributed among contributors. **2.** Once the fork is created, you will land on the page of your fork. Copy the URL from your browser's address bar. -**3.** In your computer/laptop/server, open a command prompt or terminal as an administrator (to avoid issues with permissions) and type: +**3.** In your computer/laptop/server, open a command prompt or terminal. Make sure you are in a directory where you have write permissions (on most systems the terminal will open in your user’s home directory, so you’re good). Clone the git repository using the command ``` -git clone -``` - -**5.** Don't hit Enter yet! Complete the command by pasting the URL of your fork! - -``` -git clone + URL of your Superalgos fork. +git clone ``` For example, if your Github username is John, the command will look like this: @@ -95,7 +89,7 @@ For example, if your Github username is John, the command will look like this: git clone https://github.com/John/Superalgos ``` -Ok, you have installed Superalgos. To run the App, jump to the section Usage below. +This creates the `Superalgos` folder in the current directory, which contains the whole installation. To run the App, jump to the section Usage below. ## Installation Notes @@ -103,9 +97,7 @@ Ok, you have installed Superalgos. To run the App, jump to the section Usage bel **2.** The software includes an in-app self-update command / feature. It will help you stay up-to-date with the latest version of the software. Updates are on-demand, so don't worry about undesired updates. The project moves very fast and new features become available regularly, particularly if you choose to run the software in the ```develop``` branch (you may switch branches from within the app). -**3.** You are better off running the git clone command as an administrator to avoid permission issues while creating the Superalgos folder and downloading the repository. It may work without admin powers depending on your setup, particularly if you are running the command on a folder where you've got write permissions. - -**4.** Before installing the client on a remote computer in an attempt to access the UI from a different machine, we highly recommend you do a standard installation on your PC / laptop first. Leave your Raspberry Pi or server for later, once you have done all available tutorials. This single tip will save you a lot of time: you don't need to add complexity before you learn how to handle the app. +**3.** Before installing the client on a remote computer in an attempt to access the UI from a different machine, we highly recommend you do a standard installation on your PC / laptop first. Leave your Raspberry Pi or server for later, once you have done all available tutorials. This single tip will save you a lot of time: you don't need to add complexity before you learn how to handle the app. ## Migrating from Superalgos Beta 8 @@ -162,6 +154,47 @@ node run minMemo noBrowser **1.** We are testing the UI on Google Chrome and Safari on macOS only. It may work on other browsers as well — or not. If you are running on a different browser and ever need support, make sure you mention that fact upfront, or even better, try on Chrome/Safari first. **TIP:** If your computer has 8 GB of RAM or less, use ```node run minMemo``` to run the system with minimal RAM requirements. + +# Running Superalgos on a headless linux server as a daemon + +If you’re running Superalgos on a headless linux server like a Raspberry Pi, you might want to run it as a daemon so it isn’t attached to your current login session. The easiest, most standard way to go about this is probably using `systemd`. Most linux distributions use it as default init system/service manager. + +## Using `systemd` + +Create a `superalgos.service` file looking like this (change `` to your user name and `/path/to/Superalgos` to your Superalgos folder, for instance `/home/John/Superalgos`): +``` +[Unit] +Description=Superalgos client + +[Service] +Type=simple +User= +WorkingDirectory=/path/to/Superalgos +ExecStart=/usr/bin/node run minMemo noBrowser + +[Install] +WantedBy=multi-user.target + +``` +There is no need to run Superalgos as root so we’re running it as a user. The `minMemo` option assumes you’re running on a small machine like a Raspberry Pi, while `noBrowser` makes sense for running daemonized. + +Now, as root (or using `sudo`), put the file `superalgos.service` you just created in `/etc/systemd/system/` and issue the command +``` +systemctl enable superalgos +``` +This will install the service so that Superalgos is started on boot. To start it manually, do (again as root or with `sudo`) +``` +systemctl start superalgos +``` + +To see the output of Superalgos, use +``` +journalctl -u superalgos +``` +or to follow the output, +``` +journalctl -u superalgos -f +``` # Uninstall