Skip to content

Instantly share code, notes, and snippets.

View alkavan's full-sized avatar
🌴

Igal Alkon alkavan

🌴
View GitHub Profile
@alkavan
alkavan / ssh.md
Created June 15, 2024 19:52
Advance SSH usage

SSH and SSH Tunnel Instructions

The secure and correct way to communicate with non-public services on a virtual server machine is via ssh tunnel (services like managment console or a database).

To create a simple ssh tunnel from your host machine to the server on the same port number:

ssh -L 9090:localhost:9090 god@kewldomain.com

Rocky Linux 9 - Mail Server Installation

This is a tutorial how to install your own mail server on a Rocky Linux 9 machine.

Initial System Setup

Update system.

dnf update -y
@alkavan
alkavan / minecraft-server-rocky-linux-9.md
Last active May 19, 2024 16:53
Instructions to install Minecraft server on Rocky Linux.

Install Minecraft Server on Rocky Linux 9

Initial System Setup

Update system.

dnf update -y

Set your timezone.

@alkavan
alkavan / install-eggdrop-bot.md
Last active June 3, 2023 20:53
Installation instructions for the Eggdrop IRC bot.

Eggdrop IRC Bot | Install Instructions

Prepare System (as root)

Install required packages for compile:

dnf install -y wget telnet \
  automake gcc make diffutils \
  tcl-devel openssl-devel
@alkavan
alkavan / rocket-rust-web-server-instructions.md
Last active June 2, 2023 19:17
Instructions how to bootstrap a Rocket (Rust) based web application server.

Rust Webserver Framework (Rocket)

Notice: These instructions are for Rocky Linux 9/8, but with small adjustments can be used on any.

Install Rust

Install the crab language (RHEL distributions):

sudo dnf install rust rust-src cargo
@alkavan
alkavan / rocky-linux-9_web-application-server.md
Last active June 8, 2024 19:51
Rocky Linux 9 | Web Application Server

Rocky Linux 9 | Web Application Server Installation

Notice

This cheatsheet assumes the user is knowledgeable about bare installations of virtual private servers on cloud providers and is looking for quick but comprehensive instructions.

Some trivial commands might be missed or skipped.
However, this document can also work as quick tutorial for newcomers to the RHEL eco-system.

Initial System Setup

@alkavan
alkavan / rocky-linux-9-llama-chatbot.md
Last active May 10, 2023 17:20
Server install instructions (Rocky Linux 9) for enthusiastic people who wish to run or train LLaMA models.

Rocky Linux 9 | Chatbot Edition

The following was tested on Google GCP utilizing an a2-highgpu-1g instance and Rocky Linux 9 image.
It has 80GB of RAM, 12 CPU cores, and a single NVIDIA A100 40GB GPU attached.
I also recommand taking 500GB SSD hard drive, it's somewhat more than required, but you might need it.

NOTICE: Make sure you have positive bank balance before trying.

Update the system:

@alkavan
alkavan / ctf.cfg
Last active April 8, 2023 07:37
Install IOQUAKE3 on Rocky Linux 9.0
set sv_hostname "BewareSpace Q3 Arena (CTF)"
set sv_maxclients 12
set g_motd "mess with the best, die like the rest."
set g_forcerespawn 10
set g_gametype 4
set bot_minplayers 8
set g_spskill 3
set timelimit 15
set m1 "capturelimit 8; map q3ctf1 ; set nextmap vstr m2"
@alkavan
alkavan / rocky-linux-8_web-application-server.md
Last active June 8, 2024 17:06
Rocky Linux 8 | Web Server

Rocky Linux 8 - Web Application Server Installation Guide

Notice

This cheatsheet assumes the user is knowledgeable about bare installations of virtual private servers on cloud providers and is looking for quick but comprehensive instructions.

Some trivial commands might be missed or skipped.
However, this document can also work as quick tutorial for newcomers to the RHEL eco-system.

Also, I would like to promote Rocky Linux as a solid alternative for enterprise systems. Machines with Rocky Linux are provided by DigitalOcean a great and super stable cloud provider I've been using for years. All the following servers/services can be installed and run stable on a 1CPU/2GB/50GB, 2CPU/2GB/50GB or 2CPU/4GB/50GB droplets (choose by your load).

@alkavan
alkavan / generate-release-debian-9-stretch.sh
Last active December 29, 2021 12:05
Generate Debian Release File (stretch)
#!/bin/sh
set -e
do_hash() {
HASH_NAME=$1
HASH_CMD=$2
echo "${HASH_NAME}:"
for f in $(find -type f); do
f=$(echo $f | cut -c3-) # remove ./ prefix
if [ "$f" = "Release" ]; then