136 total results found
Linux Server Administration
Getting to know Tux
Staging Configs To A USB
These scripts are broken, and are no longer being worked on.If you just copy them and execute them without reading them, they will not work, and may have unexpected results.dd can be used instead to backup the image of the SD card of the Pi and its filesystem....
Changing your Apache Server Root Directory Your Apache installation determines what content to serve based on the DocumentRoot Default directory. DocumentRoot Default = /var/www/html -document root configured in the following files: sudo vim /etc/apache2...
The following block contains a list of files related to bash, and their location / use. /bin/bash The bash executable /etc/bash.bashrc The system-wide bashrc for interactive bash shells, invoked on any login to an interactive shell. /etc/skel/.bashrc Used...
Execute the following command on your Raspberry Pi to install MagicMirror²:bash -c "$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)" Start MM: cd ~/MagicMirror/npm startGrab the unclutter package to hide mous...
Magic Mirror Modules:
Install here:~/MagicMirror/modules/Add to config:~/MagicMirror/config/config.jsDefault Template:~/MagicMirror/config/config.js.sampleCurrent list in use: MMM-DarkSkyForecast MMM-EARTH MMM-Globe MMM-OnScreenMenu MMM-Remote-Control
Managing passwords Change current user password, prompt for current passwd - passwd If you can sudo, run sudo passwd <user> to change a user password without prompt for current password, and with no security restrictions (min length, difficulty, etc) Removi...
Environment Settings Bookstack stores custom settings file .env within its active directory, /var/www/bookstack/ this is where you will go to modify most settings within your bookstack instance. Check the GitHub link below for a complete list of environment v...
Backup Bookstack Using Docker
Don't drive as root, create a BookStack administrator account by following the adduser instructions. If you are running Bookstack in a docker container, run the following command to backup the database from outside the docker container. Navigate to the root o...
You can use scp instead, taking advantage of the added security and already-configured users on your system. It works a lot like ssh Copy a file from a remote host to your local host - scp -i ~/.ssh/some_key -P 22 email@example.com:/home/username/test ...
Links & Installation Fail2ban Documentation Linode Fail2ban Guide sudo yum install fail2ban sudo apt install fail2ban sudo pacman -Syu fail2ban etc.. Configuration Files /etc/fail2ban/ To modify configs, copy any fail2ban.conf to fail2ban.local and modify t...
Basic Settings To configure basic DNS for a new domain, we will only really need to create two records, after ensuring our nameservers are pointed to the correct location. If you are just messing around with NGINX or Apache, there is no real need to purchase a...
Install Install nginx by running the commands below sudo apt update && sudo apt upgrade sudo apt install nginx Configure SSL SSL certificates are limited, see the LetsEncrypt documentation on SSL rate limits for more information. Take notice of the section ab...
Overview DevSec offers a range of baseline tests for configuring basic security across various applications. These can be ran via commandline or manually reviewed at dev-sec.io These baseline tests requires Inspec to be installed. If you don't have it instal...
Enabling Google 2FA
Overview Two factor authentication is easy to configure and helps further secure your server. It requires a few extra packages - sudo apt update && sude apt upgrade sudo apt install libpam-google-authenticator Along with these packages, we will ne...
Bookstack Using Docker Compose
Creating a Bookstack on localhost A Bookstack can be easily ran with docker using the default .env settings and tested through visiting localhost in a web browser. Follow the Docker Installation Instructions and create a docker-compose.yml configuration that ...
Renaming An Ubuntu Linux Host Renaming a host on Ubuntu is simple, just need to make some very small changes to both /etc/hosts and /etc/hostname. See the comments within the files below for more information. Once these changes are made, simply reboot the hos...
Welcome to Knoats!
This is a personal project in server-administration, documentation, and development. None of the information here is considered official documentation of any kind. Sign up is open, email verification is required, and upon logging in you will only be able to vi...
Certbot SSL Certificates
Its important to encrypt your web traffic to keep you and anyone who passes information through your website secure. To install Certbot and generate an SSL certificate, run the below commands. curl -o- https://raw.githubusercontent.com/vinyll/certbot-install/m...
Updating BookStack Using Docker
You can use volumes within docker-compose to store your configurations for your services, including other files and databases, on the host and pass them to the container to be used - this enables you to easily remove containers and purge images without worryin...
Docker Compose Services
Everything from squashing bugs to building an executable
For all things Docker related
For posting drafts, notes on backing up the pi and mirror with bash scripts
For my development notes
Yubikey SSH Authentication
Overview Yubikeys provide many different forms of secure authentication, for the sake of time this guide will only cover OTP (One Time Password) Authentication over SSH configured on an Ubuntu 19.04 box. This form of authentication allows you to consolidate a...