Linux

Browse posts by tag

SSH Connection in Linux

January 11, 2026

1️⃣ Setup SSH service

Install OpenSSH server

sudo apt update
sudo apt install -y openssh-server

Enable and start the SSH service

sudo systemctl enable ssh
sudo systemctl start ssh

Check status:

systemctl status ssh

2️⃣ Allow SSH through the firewall (if enabled)

Ubuntu Server often has ufw disabled by default, but check:

sudo ufw status

If it’s active:

sudo ufw allow ssh
sudo ufw reload

3️⃣ Connect from Windows

From PowerShell on Windows:

Proxy Squid Install

January 11, 2026

Summary

This guide provides a baseline setup for Squid proxy server. It covers system updates, installing Squid with essential networking tools, configuring a minimal proxy setup that allows local network access.

1️⃣ First steps after installation (baseline)

After installing Linux Server and logging in:

sudo dnf update
sudo dnf upgrade -y

Install basic tools (very helpful later):

sudo dnf install -y \
  squid \
  tcpdump \
  net-tools \
  iproute \
  curl \
  ca-certificates

Enable and start Squid:

WSL - Start up a Distibution

January 10, 2026

Summary

This guide explains how to manage and start up Linux distributions in Windows Subsystem for Linux (WSL).

  1. Check Available Linux Distributions
# Check which distribution is set as default (marked with *)
wsl --list --verbose
  1. Start Up a Distribution
# case insenstive
wsl -d fedoralinux-42
  1. Verify the Distribution (Optional)
cat /etc/os-release
  1. Set a Distribution as Default (Optional)
# Set a specific distribution as the default
wsl --set-default Ubuntu

See also:

WSL - Install a Linux Distribution

WSL - Install a Linux Distribution

January 10, 2026

Summary

This guide explains how to install a Linux distribution on Windows Subsystem for Linux (WSL). It covers the installation command using PowerShell, the password setup process, and how to verify the installation by listing all installed distributions.

  1. Install a Distribution
# for example, install "Ubuntu"
wsl --install -d ubuntu

# set a new password during the step
  1. Verify the installation
# Eixt from the Distribution
exit

# Show the list of Distributions
wsl --list --verbose

See also:

WSL - Install a Linux Distribution

Change hostname - Linux

April 13, 2025

Change the hostname of a Linux machine that’s already joined to Active Directory

  1. First, leave the Active Directory domain:
sudo realm leave gcs.cloud
  1. Change the hostname using hostnamectl:
sudo hostnamectl set-hostname new-hostname.gcs.cloud
  1. Rejoin the Active Directory domain:
realm join gcs.cloud

See also:

Deploy a Amazon Linux 2023

Deploy a Amazon Linux 2023

February 25, 2025

Deploy a Linux machine

  1. Update OS
sudo yum update -y
  1. Update Hostname and check it
sudo hostnamectl set-hostname DEV-VAR-OIDC2.apj.cloud
hostnamectl
  1. Update TimeZone and check it
sudo timedatectl set-timezone Australia/Sydney
timedatectl
  1. DNS Settings - Make sure all the DNS servers are registered
sudo vi /etc/resolv.conf

  1. Install some components for any Linux OS
sudo yum install sssd-ad sssd-tools realmd adcli
  1. Install some components for Amazon Linux 2023.
sudo yum install oddjob oddjob-mkhomedir
  1. Check the status of Active Directory
realm discover apj.cloud