Skip to content

Instantly share code, notes, and snippets.

@Bengt
Last active December 28, 2024 23:45
Show Gist options
  • Save Bengt/709a06c673b451259ec9a24ee4cc8e9d to your computer and use it in GitHub Desktop.
Save Bengt/709a06c673b451259ec9a24ee4cc8e9d to your computer and use it in GitHub Desktop.
This how I setup the Runner Server ... More or less.
systemctl reboot --firmware-setup

In UEFI

down down down tab enter tab tab enter tab enter tab enter

In Grub

enter

In installer

enter Up enter

up enter enter y enter ö enter down enter enter enter

Installation variant

up up space down down enter

enter

Proxy setup

enter

Repo test

wait 20 enter

HDD Config

down down space down down enter

Overview

enter

Confirmation dialog

down enter

User Details

Bengt tab bengt-server tab bengt tab $PASSWORD tab $PASSWORD tab enter

Ubuntu Pro Enablement

enter

SSH Configuration

space

down enter

SSH key import

tab bengt enter wait 10 s

SSH Configuration

tab tab enter

Featured snaps

down down down down space (docker) down space (Canonical live patch) down down down down down down down down down down down down down down down down enter

Installation

tab tab enter

Shutdown

wait 10 s enter

ssh bengt@bengt-server

Set Root Password

sudo passwd root

Create root

sudo mkdir -p /root/.ssh sudo cp ~/.ssh/authorized_keys /root/.ssh/ sudo chown -R root:root /root/.ssh sudo chmod 700 /root/.ssh sudo chmod 600 /root/.ssh/authorized_keys

Configure SSH server

sudo sed -i -e 's/#PermitRootLogin prohibit-password/PermitRootLogin prohibit-password/g' /etc/ssh/sshd_config sudo /etc/init.d/ssh restart

Test root login

ssh root@bengt-server

Install tailscale

curl -fsSL https://tailscale.com/install.sh | sh && sudo tailscale up --auth-key=tskey-auth-kNJ7enWVyE11CNTRL-bSd3qWbUtLEvsh7yWeujLEgjzPscqUiZ

sudo tailscale up

Install GitLab runner

curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh" | sudo bash

sudo apt install --yes gitlab-runner

https://gitlab.com/groups/the-rocket-engineer/-/runners/

sudo gitlab-runner register --url https://gitlab.com --token $TOKEN

enter enter docker python:3.12-slim

sudo sed -i -e 's/concurrent = 1/concurrent = 6/g' /etc/gitlab-runner/config.toml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment