hawshemi
linux-optimizer
Shell2023–2024
hawshemi / linux-optimizer
linux-optimizer
Linux Optimizer
2Distinct people
3Mentions
0Explicit recommenders
707GitHub stars
What to know before exploring
What it is
Linux Optimizer
GitHub
Where it is used
No documented product use has been verified yet.
What people are saying
No recommendation phrase was found in the indexed comments.
No classified warning is attached to this page. Read the discussions before treating silence as approval.
Also in these discussions
No other repository is repeatedly linked in the same discussions.
This week on Hacker News
Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 11:56:56 AM UTC.
No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.
Mentions over time
HN mentions by month3 dated mentions
Observed mentions: 2023-05-14 10:43:59 UTC to 2024-03-04 17:08:01 UTC.
Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.
View mention counts and date ranges
| Period | Start (UTC) | End (exclusive, UTC) | Mentions | Submissions | Comments |
|---|---|---|---|---|---|
| May 2023 | 2023-05-01 00:00:00 UTC | 2023-06-01 00:00:00 UTC | 1 | 1 | 0 |
| Jun 2023 | 2023-06-01 00:00:00 UTC | 2023-07-01 00:00:00 UTC | 1 | 1 | 0 |
| Jul 2023 | 2023-07-01 00:00:00 UTC | 2023-08-01 00:00:00 UTC | 0 | 0 | 0 |
| Aug 2023 | 2023-08-01 00:00:00 UTC | 2023-09-01 00:00:00 UTC | 0 | 0 | 0 |
| Sep 2023 | 2023-09-01 00:00:00 UTC | 2023-10-01 00:00:00 UTC | 0 | 0 | 0 |
| Oct 2023 | 2023-10-01 00:00:00 UTC | 2023-11-01 00:00:00 UTC | 0 | 0 | 0 |
| Nov 2023 | 2023-11-01 00:00:00 UTC | 2023-12-01 00:00:00 UTC | 0 | 0 | 0 |
| Dec 2023 | 2023-12-01 00:00:00 UTC | 2024-01-01 00:00:00 UTC | 0 | 0 | 0 |
| Jan 2024 | 2024-01-01 00:00:00 UTC | 2024-02-01 00:00:00 UTC | 0 | 0 | 0 |
| Feb 2024 | 2024-02-01 00:00:00 UTC | 2024-03-01 00:00:00 UTC | 0 | 0 | 0 |
| Mar 2024 | 2024-03-01 00:00:00 UTC | 2024-04-01 00:00:00 UTC | 1 | 1 | 0 |
What Hacker News says
3 sourcesHAhawshemi·Mar 4, 2024Submission
This Bash script automates the optimization of your Linux server.
It performs the following tasks:
Fix hosts file and DNS (temporarily):
Check and add 127.0.1.1 and server hostname to /etc/hosts.
The original hosts file is backed up at /etc/hosts.bak.
Add 1.1.1.2, 1.0.0.2 nameservers to /etc/resolv.conf.
The original DNS file is backed up at /etc/resolv.conf.bak.
Update, Upgrade, and Clean the server:
Update
Upgrade
Full-Upgrade
AutoRemove
AutoClean
Clean
Disable Terminal Ads (Only on Ubuntu).
Install XanMod Kernel (Only on Ubuntu & Debian):
Enable BBRv3.
CloudFlare TCP Optimizations.
More Details: https://xanmod.org
Install Useful Packages:
apt-transport-https apt-utils autoconf automake bash-completion bc binutils binutils-common binutils-x86-64-linux-gnu build-essential busybox ca-certificates cron curl dialog epel-release gnupg2 git h
aveged htop jq keyring libssl-dev libsqlite3-dev libtool locales lsb-release make nano net-tools packagekit preload python3 python3-pip qrencode socat screen software-properties-common ufw unzip vim wget zip
Enable Packages at Server Boot.
Set the server TimeZone to the VPS IP address location.
Create & Enable SWAP File:
Swap Path: "/swapfile"
Swap Size: 2Gb
Enable IPv6 Support.
Optimize the SYSCTL Configs:
Optimize File System Settings.
Optimize Network Core Settings.
Optimize SWAP.
Optimzie TCP Settings.
Optimzie UDP Settings.
Optimize UNIX Domain Sockets Settings.
Optimize Virtual Memory (VM) Settings.
Optimize Network Configuration Settings.
Optimize the Kernel.
Activate BBR (BBRv3 with XanMod).
The original file is backed up at /etc/sysctl.conf.bak.
Optimize SSH:
Disable DNS lookups for connecting clients.
Remove less efficient encryption ciphers.
Enable and Configure TCP keep-alive messages.
Allow agent & TCP forwarding.
Enable gateway ports, Tunneling and compression.
Enable X11 Forwarding.
The original file is backed up at /etc/ssh/sshd_config.bak.
Optimize the System Limits:
Soft and Hard ulimit -c -d -f -i -l -n -q -s -u -v -x optimizations.
Optimize UFW and open Common Ports:
Open Ports SSH, 80, 443.
With IPv6, TCP & UDP.
Reboot at the end is Recommended.