*ARGS.TECH | BLOG | PAGE 1 | Shakhzhakhan Maxudbek's personal blog
Loading...
BLOG

A step-by-step guide to creating independent, persistent desktop sessions for multiple users.


Introduction


Setting up a remote desktop on a server is a common task, but most guides focus on a single user or simple screen sharing. This guide tackles a more advanced scenario: building a true multi-user VNC "terminal" server on Ubuntu 24.04 LTS.


The goal is to allow multiple users (like alice and bob) to connect to the same server but get their own independent, persistent GN…

Terminal: ~

# Master the `awk` command with this practical cheatsheet.

# Learn to process text files, select columns,

# filter lines by patterns, and perform calculations in Linux.


# ----- Unleashing `awk`: A Practical Cheatsheet -----


# Print specific columns (fields) from a file or input:

# Fields are separated by spaces/tabs by default. $1=1st, $2=2nd, $0=whole line.

xinit@localhost:~$ ls -l | awk '{print $1, $9}'

# Prints permissions and filename.


# Print col…

www.args.tech
Terminal: ~

# The ultimate cURL cheatsheet for developers and sysadmins.

# Quickly find commands to download files, test REST APIs, send POST/GET requests,

# and set custom headers with practical, copy-paste examples.


# ----- A Practical `curl` Cheatsheet -----


# Simply fetch the content of a URL (GET request):

xinit@localhost:~$ curl https://example.com


# Show detailed info, including response headers (-i):

xinit@localhost:~$ curl -i h…

www.args.tech
Terminal: ~

# A simple Linux I/O redirection cheatsheet. Learn how to redirect

# stdin, stdout, and stderr with practical examples of >, <, |, >>, and 2>.

# Master command chaining and error handling in a copy-paste format.


# ----- Linux I/O Redirection Cheatsheet -----


# Redirect standard output (stdout) to a file:

# WARNING: '>' OVERWRITES the file if it exists!

xinit@localhost:~$ ls -l > files_list.txt


# Redirect stdout and APPEND to a file…

www.args.tech
Terminal: ~

# A practical grep command cheatsheet for Linux. Learn to search files, use

# regular expressions, filter output, and more with easy-to-copy examples.


# ----- Mastering `grep`: Basic Filtering -----


# The most common use: filter output from another command:

# (e.g., find a specific process)

xinit@localhost:~$ ps aux | grep 'nginx'


# Search for a string in a single file (case-sensitive):

xinit@localhost:~$ grep 'error' /var/l…

www.args.tech
Terminal: ~

# A practical guide to killing unresponsive processes in Linux. Learn to use `kill`,

# `killall`, `pkill`, and `fuser` to stop processes by PID, name, or network port.


# ----- Kill by Process ID (PID) - The Classic Way -----


# First, find the Process ID (PID) of your app:

xinit@localhost:~$ ps aux | grep 'my_process'


# Then, kill the process by its PID:

# Sends a "graceful shutdown" signal (SIGTERM 15)

xinit@localhost:~$ kil…

www.args.tech
Terminal: ~

# Go beyond simple file search. Learn how to use the Linux "find" command to locate

# files by name, time, and size, and perform actions like `delete` or `chmod`.


# ----- The Power of `find`: Finding Files -----


# Find files by name (case-sensitive):

xinit@localhost:~$ find /path/to/search -type f -name "myfile.txt"


# Find files by name (case-insensitive):

xinit@localhost:~$ find /path/to/search -type f -iname "myfile.txt"

www.args.tech
Terminal: ~

# A simple, step-by-step cheatsheet to creating, activating, and managing Python

# virtual environments with venv. This guide also educate you how to install PIP packages

# in your virtual environment. Perfect for beginners on Linux, macOS, and Windows.


# ----- Python Virtual Environments (venv) -----


# 1. Install the venv package.

# On Debian/Ubuntu, you may need to install it separately:

xinit@localhost:~$ sudo apt install python3-venv

# On Windows and…

www.args.tech
Terminal: ~

# A step-by-step guide to securing your new VPS.

# Learn how to create a sudo user, disable root login,

# and configure a UFW firewall to protect your server.


# ----- Initial VPS Security Setup -----


# 1. Create a new user and add to SUDO group:

root@localhost:~$ adduser your_new_user

root@localhost:~$ usermod -aG sudo your_new_user


# 2. Lock the root account to disable direct password login:

xinit@localho…

www.args.tech
Terminal: ~

# Mastering SSH from basic login to port forwarding for remote access:

# Learn how to connect to custom SSH port, use identity keys, run remote

# commands, forward ports for database access with these practical examples


# Basic SSH connection:

xinit@localhost:~$ ssh user@remote-address


# Connect with a custom port (e.g., 2222):

xinit@localhost:~$ ssh user@remote-address -p 2222


# Connect using a specific private key:

www.args.tech
2 3 4 5 6
Top button