-- Check if something is backed up on NFS (`/storage/path/to/file`)
All useful LDAP scripts (*edit user quota, reset user password, renew user accounts, etc*) are located in the home directory of `root` on Azazel.
*Log in as `root` on a server with local accounts:*
sudo -i # (same password as localaccount account)
### Onboarding new admins
- Create `root` ssh key for NixOS Machines
Following creation of the key, add to the whitelist in *[nix configs](https://github.com/redbrick/nix-configs/blob/master/services/ssh.nix)*.
ssh-keygen -t ed25519 # Generate key
cat ~/.ssh/id_ed25519.pub # Verify it's been created
ssh-copy-id -i ~/.ssh/id_ed25519 firstname.lastname@example.org # Copy to local account's ssh dir
ssh -i ~/.ssh/mykey email@example.com # Verify that this key was copied
### Access passwordsafe (pwsafe)
Location of master password vault.
*Note:* `getpw` will prompt you for the Master root password.
sudo -i # to log in as root with local user password
pwsafe # to list passwords
getpw <name_of_pass> # Grab password by name key | getpw pygmalion
## SSH to root on a NixOS machine
- From the account you generated your ssh key on (in nix configs) type:
-- Install a temporary program
nix-shell -p [space seperated package names]
-- Run brickbot2 (running on Metharme)
python3 main.py config.toml
## 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
Repo is very well documented so have a look at the README but here's the basics:
**NOTE:** *Local Root accounts must be added to the docker group before they can run the docker commands.* `usermod -a -G docker ACCOUNT_NAME`
You can `docker ps | grep minec` to find the docker containers running the servers.
The docker compose files are located in `/etc/docker-compose/services`, Unmodded Vanilla compose for example is in `/etc/docker-compose/services/minecraft_unmodded/`
To see the configuration for the container you can do `docker inspect CONTAINER_NAME_OR_ID`
For full documentation visit [mkdocs.org](https://www.mkdocs.org).
The idea of Redbrick documention is to keep an up to date information about the technical infrastructure of Redbrick. This is mostly intended for admins, future admins, webmasters, and everybody else who is grumpy and has no life.
The search box actually works... Yeah. Me too.
* `mkdocs new [dir-name]` - Create a new project.
* `mkdocs serve` - Start the live-reloading docs server.
* `mkdocs build` - Build the documentation site.
* `mkdocs -h` - Print help message and exit.
## Quick Links
## Project layout
mkdocs.yml # The configuration file.
index.md # The documentation homepage.
... # Other markdown pages, images and other files.