This guide will help you host an APT repository on Github.
You need to install the following packages.
- reprepro
#!/bin/bash -ex | |
# download and load new keys | |
base_url=https://raw.githubusercontent.com/turnkeylinux/common | |
key_dir=usr/share/keyrings | |
local_path=$key_dir/tkl-bullseye | |
remote_path=$base_url/18.x/overlays/bootstrap_apt |
# This guide will show you how to configure ddclient to dynamically update your DNS at Cloudflare. | |
# This cookbook makes use of a number of online guides - all referenced at the end. | |
# Note all commands require root, so if you aren't already logged in as root, either run: | |
sudo su - | |
# to switch to the root user or prefix every command with: | |
sudo <COMMAND...> | |
# Cloudflare requires ddclient to be version 3.8.2 or you will get a 'cloudflare protocol didn't exist'. | |
# Debian 10/Bullseye has [3.9.1](https://packages.debian.org/bullseye/ddclient) so should be good to go. |
#!/bin/bash -ex | |
# convenience functions & vars | |
# To force all steps to run, FORCE=y | |
logfile=~/$(date +%s)-buster-setup.log | |
unset old_pool_path old_release | |
export FAB_PATH=${FAB_PATH:-/turnkey/fab} | |
export SRC_PATH=${SRC_PATH:-/turnkey/public} |
; ************************************************************************** | |
; * Global options * | |
; ************************************************************************** | |
; A copy of some devices and system files is needed within the chroot jail | |
; Chroot conflicts with configuration file reload and many other features | |
; Remember also to update the logrotate configuration. | |
chroot = /var/lib/stunnel4/ | |
; Chroot jail can be escaped if setuid option is not used | |
setuid = stunnel4 |
#!/bin/bash -e | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root, please use sudo" | |
exit 1 | |
fi | |
if [[ -n $1 ]]; then | |
NEW_STYLE=$1 | |
else | |
NEW_STYLE=custom_style | |
fi |
Please note that this process will add a third party TurnKey repo that I personally manage. I had to do that as I do not have direct access to the offical TurnKey repos and we need updated packages for a Stetch base.
Starting point: v14.2 TKLDev running in a VM (or bare metal if you prefer...), logged into terminal as root.
# checkout appropriate branch of common and core
cd common
git fetch origin # assumes you stil have turnkey as origin - can be skipped on fresh v14.2 install
git checkout -t origin/stretch-dev
ServerName localhost | |
<VirtualHost *:80> | |
RewriteEngine on | |
ReWriteCond %{SERVER_PORT} !^443$ | |
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R=301,L] | |
</VirtualHost> | |
<VirtualHost *:443> |
I hereby claim:
To claim this, I am signing this object: