-
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 #12 from redbrick/cleanup-1
Cleanup 1
- Loading branch information
Showing
18 changed files
with
49 additions
and
39 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
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 @@ | ||
# Consul |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ ___ | |
|
||
### Onboarding new admins | ||
|
||
- Create `root` ssh key for NixOS Machines | ||
- Create `root` ssh key for [NixOS](../procedures/nixos.md) Machines | ||
Following creation of the key, add to the whitelist in *[nix configs](https://github.com/redbrick/nix-configs/blob/master/services/ssh.nix)*. | ||
|
||
```bash | ||
|
@@ -56,7 +56,7 @@ getpw <name_of_pass> # Grab password by name key | getpw pygmalion | |
|
||
___ | ||
|
||
## SSH to root on a NixOS machine | ||
## SSH to root on a [NixOS](../procedures/nixos.md) machine | ||
- From the account you generated your ssh key on (in nix configs) type: | ||
```bash | ||
ssh [email protected] | ||
|
@@ -83,7 +83,7 @@ Brickbot runs in `tmux a -t 0` and can be restarted by pressing ctrl+c and runni | |
|
||
## Minecraft Servers | ||
|
||
The Redbrick Minecraft server's are dockerized applications running on *Zeus* on a server-per-container basis, using the tools on this GitHub Repo: https://github.com/itzg/docker-minecraft-server#interacting-with-the-server | ||
The Redbrick Minecraft server's are dockerized applications running on [`zeus`](../hosts/zeus.md) on a server-per-container basis, using the tools on this GitHub Repo: https://github.com/itzg/docker-minecraft-server#interacting-with-the-server | ||
|
||
Repo is very well documented so have a look at the README but here's the basics: | ||
|
||
|
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,11 +1,11 @@ | ||
# CodiMD - `distro` | ||
|
||
CodiMD lives on Zeus as a docker container. It is accessible through [md.redbrick.dcu.ie](https://md.redbrick.dcu.ie). | ||
CodiMD lives on [`zeus`](../hosts/zeus.md) as a docker container. It is accessible through [md.redbrick.dcu.ie](https://md.redbrick.dcu.ie). | ||
|
||
CodiMD is built locally and is based on [codimd](https://github.com/hackmdio/CodiMD), the docs for which are [here](https://hackmd.io/c/codimd-documentation/%2Fs%2Fcodimd-docker-deployment). | ||
|
||
Hackmd auths against ldap and its configuration is controlled from docker-compose. Go to | ||
`/etc/docker-compose/services/hackmd` on zeus to find the configuration. | ||
Hackmd auths against LDAP and its configuration is controlled from docker-compose. Go to | ||
`/etc/docker-compose/services/hackmd` on [zeus](../hosts/zeus.md) to find the configuration. | ||
|
||
See [CodiMD github](https://github.com/hackmdio/hackmd/#environment-variables-will-overwrite-other-server-configs) for | ||
more info on configuration. The important points are disabling anonymus users and the ldap settings. | ||
See [CodiMD github](https://github.com/hackmdio/hackmd/#environment-variables-will-overwrite-other-server-configs) for more info on configuration. | ||
The important points are disabling anonymous users and the LDAP settings. |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,20 +27,20 @@ If you are an unbothered king/queen that simply does not mind using a web interf | |
|
||
##### Logging in to other servers | ||
|
||
Your home directory is synced (i.e the same) on all public Redbrick servers. Thus the `authorized_keys` file will be the same on Azazel as it is on Pygmalion, meaning you can log in to `pyg.redbrick.dcu.ie` too, and so on. | ||
Your home directory is synced (i.e the same) on all public Redbrick servers. Thus the `authorized_keys` file will be the same on [Azazel](../hosts/azazel.md) as it is on [Pygmalion](../hosts/pygmalion.md), meaning you can log in to `pyg.redbrick.dcu.ie` too, and so on. | ||
|
||
|
||
## Setting up an SSH Key | ||
|
||
Generating an SSH key pair creates two long strings of characters: a public and a private key. You can place the public key on any server, and then connect to the server using an SSH client that has access to the private key. | ||
|
||
When these keys match up, and your account password is also correct, you are granted authorization to log in. | ||
When these keys match up, and your account password is also correct, you are granted authorisation to log in. | ||
|
||
### 1. Creating the Key Pair | ||
|
||
On your local computer, in the command line of your choice, enter the following command: | ||
```bash | ||
$ ssh-keygen -t ed25519 | ||
ssh-keygen -t ed25519 | ||
``` | ||
Expected Output | ||
``` | ||
|
@@ -73,11 +73,11 @@ This key is saved under .ssh under your User directory. (i.e `C:\Users\Bob\.ssh\ | |
|
||
In this step we store our **public** key on the server we intend to log in to. This key will be used against our secret private key to authenticate our login. | ||
|
||
For the purposes of this tutorial we will be using Pygmalion (`pyg.redbrick.dcu.ie`) as our server. | ||
For the purposes of this tutorial we will be using [Pygmalion](../hosts/pygmalion.md) (`pyg.redbrick.dcu.ie`) as our server. | ||
|
||
#### Logging in to Wetty | ||
|
||
In order to access the server to actually place our keys in it, we need to log in via Wetty - a shell interface for Pygmalion on the web. | ||
In order to access the server to actually place our keys in it, we need to log in via Wetty - a shell interface for [Pygmalion](../hosts/pygmalion.md) on the web. | ||
|
||
- Head to <a href="https://wetty.redbrick.dcu.ie/" target="_blank">wetty.redbrick.dcu.ie</a>. | ||
|
||
|
@@ -87,18 +87,18 @@ In order to access the server to actually place our keys in it, we need to log i | |
``` | ||
Enter your Redbrick username and press <kbd>ENTER</kbd>. When prompted, enter your Redbrick password. [*Forgot either of these?*](#forgot-your-password) | ||
|
||
#### Adding the key into the authorized_keys file | ||
#### Adding the key into the `authorized_keys` file | ||
|
||
- Add the key | ||
|
||
Grab the contents of your public key. You may use the `cat filepath` command for this: | ||
```bash | ||
$ cat /home/bob/.ssh/id_ed25519.pub | ||
cat /home/bob/.ssh/id_ed25519.pub | ||
``` | ||
|
||
On Wetty, enter the following command in the shell, with `YOUR_KEY` replaced with your **public** ssh key. | ||
|
||
``` | ||
```bash | ||
echo "YOUR_KEY" >> ~/.ssh/authorized_keys | ||
``` | ||
This command will append your public key to the end of the `authorized_keys` file. | ||
|
@@ -117,6 +117,4 @@ Congratulations! If you've made it this far, [you're ready to login](#logging-in | |
|
||
## Forgot your password? | ||
|
||
Contact an admin on our [Discord Server](https://discord.gg/3D8kTX9auY) or at [[email protected]](mailto:[email protected]) | ||
|
||
<hr></hr> | ||
[Contact an admin](../contact.md) on our [Discord Server](https://discord.gg/3D8kTX9auY) or at [[email protected]](mailto:[email protected]) |
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 @@ | ||
# Traefik |