In this tutorial, we will walk through the professional workflow of taking a "fresh" server and turning it into a high-performance production environment.
Tutorial Roadmap
1. Selecting Hardware for Your Specific Intent
2. Initial Access and "Day Zero" Security
3. Optimizing the Operating System
4. Deploying Your Application
5. Maintenance and Remote Monitoring
Why Choose Bare Metal Over Cloud?
1. Selecting Hardware for Your Specific Intent
A dedicated server is a specialized tool. Before we log in, we must ensure the hardware matches the workload.
-
For High-Traffic Databases: Focus on IOPS (Input/Output Operations Per Second). You need NVMe drives in a RAID 1 configuration. This ensures that even if one physical drive fails, your data remains online.
-
For Gaming & Low-Latency (Palworld, CS2, ARK): Focus on Single-Core Clock Speed. High-frequency processors (4.0GHz+) are better for game logic than having 64 slower cores.
-
For GPU Computing: If your server is for AI or rendering, ensure your GPU dedicated server has the latest CUDA drivers ready to be installed on a "Clean" OS.
2. Initial Access and "Day Zero" Security
Once your dedicated server is provisioned at Leo Servers, you will receive your IP address and credentials. Your first priority is "Hardening."
Step 1: Secure SSH Login
Connecting via a terminal is the standard. Avoid using "Root" for daily tasks.
Login:
ssh root@your_server_ipCreate a New User:
adduser leoadmin|usermod -aG sudo leoadminSSH Key Authentication: Instead of a password, use an SSH Key. This prevents 99% of brute-force attacks.
On your local PC: ssh-keygen -t ed25519
Copy it to the server: ssh-copy-id leoadmin@your_server_ip
Step 2: The Firewall Setup
A dedicated server is a high value target. Use UFW (Uncomplicated Firewall) to close all doors except the ones you need.
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow 22/tcp # SSH
sudo ufw allow 80/tcp # Web
sudo ufw allow 443/tcp # Secure Web
sudo ufw enable
3. Optimizing the Operating System (Bare Metal Tuning)
Because there is no virtualization layer, you can tune the Linux Kernel directly for better performance.
Boosting Network Throughput
Edit your system configuration to handle more simultaneous connections perfect for large gaming communities or high traffic websites.
Open the config: sudo nano /etc/sysctl.conf
Add these lines to the bottom:
net.core.somaxconn = 2048
net.ipv4.tcp_max_syn_backlog = 2048
net.core.netdev_max_backlog = 5000
Apply changes: sudo sysctl -p
Setting the CPU Power Governor
Many servers default to "Powersave" mode. On a dedicated machine, you want Performance mode 100% of the time.
# Install cpupower tools
sudo apt install linux-tools-common linux-tools-generic
# Set to performance mode
sudo cpupower frequency-set -g performance
4. Deploying Your Application (The "Steam Library" Example)
Many users search for how to link their dedicated server to their Steam library for game hosting. Here is the standard deployment for game servers:
Install SteamCMD: This is the command-line version of Steam.
sudo apt install steamcmdDownload Game Files: (Example for Palworld)
steamcmd +login anonymous +app_update 2394010 validate +quitSet Up a Systemd Service: This ensures the server starts automatically if the machine reboots.
[Unit]
Description=LeoServers Game Instance
After=network.target
[Service]
User=leoadmin
ExecStart=/path/to/game/executable
Restart=always
[Install]
WantedBy=multi-user.target
5. Maintenance and Remote Monitoring
The biggest mistake admins make is "Set it and Forget it."
Dedicated Server Backups: Since you are on bare metal, utilize a second physical drive or a remote S3 bucket for backups. Never store backups on the primary boot drive.
Thermal and Hardware Monitoring: Use the lm sensors package to keep an eye on CPU temperatures.
sudo apt install lm-sensors && sudo sensors-detectCheck Logs: Frequently check
/var/log/auth.logto see if anyone is trying to gain unauthorized access.
Why Choose Bare Metal Over Cloud?
Zero Resource Contention: You never share your CPU with another customer.
Consistent Latency: Vital for competitive gaming and high speed database queries.
Full Hardware Control: You can modify BIOS settings and Kernel parameters that cloud providers lock down.
