GithubHelp home page GithubHelp logo

hetzner-server-configuration's Introduction

Hetzner server configuration

Please checkout https://keithtenzer.com/2019/10/24/how-to-create-a-rhel-8-image-for-hetzner-root-servers/ and learn how to create a RHEL8 image for Hetzner.

First have a look at config.txt and adjust it to your needs. Copy this repo to local system. Boot Hetzner in rescue mode. Upload RHEL file and config.txt to Hetzner via SCP.

Do in rescue mode:

installimage -a -c config.txt

Reboot afterwards.

Upload the whole repo via SCP to the fresh system in /root

Connect via ssh and root user to your system! Set all necessary environment variables.

export SSH_PORT=
export NEW_USER=
export TOOLS="git ansible @virt tmux cockpit-machines"
export RHN_USER=
export RHN_PASSWORD=
export PUBLIC_KEY=""

Finally excute the following script. It will configure:

  • subscription for your system
  • necessary repositories
  • SSH port and relevant changes to firewalld and SELinux
  • no RootLogin via SSH and public key authentication only
  • a new user
  • wheel group for the new user
  • passwordless sudo
  • authorized keys in new user's home/.ssh/ directory
  • all tools set in TOOLS environment variable
  • autostarting cockpit and libvirt
sh /root/hetzner-server-configuration/server-conf-files/configureServer.sh

Finished!

You can validate your configuration by connecting to your system with user $NEW_USER
You may want to expose cockpit by yourself :-)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.