Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 45ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login
s

ssh

Recently created Least recently created Recently updated Least recently updated
wthiel

wthiel / Ubuntu User Setup Script

Last active 4 months ago configuration script server ssh

Creates user account, sets up SSH keys from GitHub, and optionally grants sudo privileges

0 0 2
1 #!/bin/bash
2
3 # Ubuntu User Setup Script
4 # Creates user account, sets up SSH keys from GitHub, and optionally grants sudo privileges
5 # Must be run as root
6
7 set -e # Exit on any error
8
9 # Color codes for output
10 RED='\033[0;31m'
wthiel

wthiel / Public Keys

Last active 4 months ago configuration server ssh
0 0 2
1 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILB5bVuBHYwgtCL+ppoOkKSpu/+wmSOt80yVE/S2qU0F wthiel