-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #493 from threefoldtech/development
dev to master periodic update
- Loading branch information
Showing
20 changed files
with
675 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[book] | ||
title = "ThreeFold Grid Manual" | ||
title = "ThreeFold Manual" | ||
|
||
[output.html.fold] | ||
enable = true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+54.4 KB
src/documentation/dashboard/solutions/img/solutions_staticwebsite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<h1> Static Website </h1> | ||
|
||
<h2>Table of Contents </h2> | ||
|
||
- [Introduction](#introduction) | ||
- [Prerequisites](#prerequisites) | ||
- [Deployment](#deployment) | ||
|
||
--- | ||
|
||
## Introduction | ||
|
||
Static Website is an application where a user provides a GitHub repository URL for the files to be automatically served online using Caddy. | ||
|
||
## Prerequisites | ||
|
||
- Make sure you have a [wallet](../wallet_connector.md) | ||
- From the sidebar click on **Applications** | ||
- Click on **Static Website** | ||
|
||
## Deployment | ||
|
||
![ ](./img/solutions_staticwebsite.png) | ||
|
||
- Enter an instance name | ||
|
||
- Enter a GitHub repository URL that needs to be cloned | ||
|
||
- Enter the title for the cloned repository | ||
|
||
- Select a capacity package: | ||
|
||
- **Small**: {cpu: 1, memory: 2 , diskSize: 50 } | ||
- **Medium**: {cpu: 2, memory: 4, diskSize: 100 } | ||
- **Large**: {cpu: 4, memory: 16, diskSize: 250 } | ||
- Or choose a **Custom** plan | ||
|
||
- `Dedicated` flag to retrieve only dedicated nodes | ||
- `Certified` flag to retrieve only certified nodes | ||
- Choose the location of the node | ||
- `Region` | ||
- `Country` | ||
- `Farm Name` | ||
- Choose the node to deploy on | ||
- Note: You can select a specific node with manual selection | ||
- `Custom Domain` flag allows the user to use a custom domain | ||
- Choose a gateway node to deploy your static website | ||
|
||
Once this is done, you can see a list of all of your deployed instances: | ||
|
||
![ ](./img/staticwebsite_list.png) | ||
|
||
Click on the button **Visit** under **Actions** to go to your static website! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 91 additions & 0 deletions
91
src/documentation/developers/grid_deployment/deploy_dashboard.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<h1>Deploy the Dashboard Locally</h1> | ||
|
||
<h2>Table of Contents</h2> | ||
|
||
- [Introduction](#introduction) | ||
- [Prerequisites](#prerequisites) | ||
- [Create an SSH Tunnel](#create-an-ssh-tunnel) | ||
- [VSCode SSH Remote Connection](#vscode-ssh-remote-connection) | ||
- [Set the VM](#set-the-vm) | ||
- [Build the Dashboard](#build-the-dashboard) | ||
|
||
*** | ||
|
||
## Introduction | ||
|
||
We show how to deploy the Dashboard (devnet) on a full VM. To do so, we set an SSH tunnel and use the VSCodium Remote Explorer function. We will then be able to use a source-code editor to explore the code and see changes on a local browser. | ||
|
||
## Prerequisites | ||
|
||
- TFChain account with TFT | ||
- [Deploy full VM with WireGuard connection](../../system_administrators/getstarted/ssh_guide/ssh_wireguard.md) | ||
- [Make sure you can connect via SSH on the terminal](../../system_administrators/getstarted/ssh_guide/ssh_openssh.md) | ||
|
||
## Create an SSH Tunnel | ||
|
||
- Open a terminal and create an SSH tunnel | ||
``` | ||
ssh -4 -L 5173:127.0.0.1:5173 [email protected] | ||
``` | ||
Simply leave this window open and follow the next steps. | ||
## VSCode SSH Remote Connection | ||
You can connect via SSH through the source-code editor to a VM on the grid. In this example, WireGuard is set. | ||
- Add the SSH Remote extension to VSCodium | ||
- Add a new SSH remote connection | ||
- Set the following (adjust with your own username and host) | ||
``` | ||
Host 10.20.4.2 | ||
HostName 10.20.4.2 | ||
User root | ||
``` | ||
- Click on `Connect to host` | ||
## Set the VM | ||
We set the VM to be able to build the Dashboard. | ||
``` | ||
|
||
apt update && apt install build-essential python3 -y | ||
|
||
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash | ||
|
||
export NVM_DIR="$HOME/.nvm" | ||
|
||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | ||
|
||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | ||
|
||
nvm install 18 | ||
|
||
apt install wget | ||
|
||
npm install -g yarn | ||
|
||
``` | ||
## Build the Dashboard | ||
We now build the Dashboard. | ||
Clone the repository, then install, build and run the Dashboard. Note that here it is called `playground`: | ||
``` | ||
|
||
git clone https://github.com/threefoldtech/tfgrid-sdk-ts | ||
|
||
cd tfgrid-sdk-ts/ | ||
|
||
yarn install | ||
|
||
make build | ||
|
||
make run project=playground | ||
|
||
``` | ||
You can then access the dev net Dashboard on your local browser. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
src/documentation/system_administrators/computer_it_basics/screenshots.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<h1> Screenshots </h1> | ||
|
||
<h2>Table of Contents</h2> | ||
|
||
- [Introduction](#introduction) | ||
- [Linux](#linux) | ||
- [MAC](#mac) | ||
- [Windows](#windows) | ||
|
||
*** | ||
|
||
## Introduction | ||
|
||
In this section, we show how to easily take screenshots on Linux, MAC and Windows. | ||
|
||
## Linux | ||
|
||
- Copy to the clipboard a full screenshot | ||
``` | ||
PrintScreen | ||
``` | ||
- Copy to the clipboard a screenshot of an active window | ||
``` | ||
Alt + PrintScreen | ||
``` | ||
- Copy to the clipboard a screenshot of an active app | ||
``` | ||
Control + Alt + PrintScreen | ||
``` | ||
- Copy to the clipboard a screenshot of a selected area | ||
``` | ||
Shift + PrintScreen | ||
``` | ||
|
||
## MAC | ||
|
||
- Save to the desktop a full screenshot | ||
``` | ||
Shift + Command (⌘) + 3 | ||
``` | ||
- Save to the desktop a screenshot of an active window | ||
``` | ||
Shift + Command (⌘) + 4 + Spacebar | ||
``` | ||
- Copy to the clipboard a screenshot of an active window | ||
``` | ||
Shift + Control + Command (⌘) + 3 | ||
``` | ||
- Save to the desktop a screenshot of a selected area | ||
``` | ||
Shift + Command (⌘) + 4 | ||
``` | ||
- Copy to the clipboard a screenshot of a selected area | ||
``` | ||
Shift + Control + Command (⌘) + 4 | ||
``` | ||
|
||
## Windows | ||
|
||
- Copy to the clipboard a full screenshot | ||
``` | ||
PrintScreen | ||
``` | ||
- Save to the pictures directory a full screenshot | ||
``` | ||
Windows key + PrintScreen | ||
``` | ||
- Copy to the clipboard a screenshot of an active window | ||
``` | ||
Alt + PrintScreen | ||
``` | ||
- Copy to the clipboard a selected area of the screen | ||
``` | ||
Windows key + Shift + S | ||
``` |
Oops, something went wrong.