Secure Your Linux Box
Matt’s Guide to Securing a Linux Box for Production.
Hello Everyone! If you prefer video formats, please go ahead and give the YouTube video above a quick watch, but if you prefer reading a “white paper” style document I’ll jump right into the meat and potatoes below!
While you do not need to set a hostname, they make it easier to identify individual devices on a network. Also, if you are hosting a web server that supports HTTPS, the hostname must match the SSL certificate that is being used or else it will give up an error!
Using a One-Liner in Command Line (CLI)
First we want to check our hostname so we can verify if we actually made any changes, we can do this with the command…
hostname
Now for the one-liner
sudo hostnamectl set-hostname <new hostname>
and then once again we can run “hostname” to see our changes. For this to officially take effect we need to reboot our device. All three are applicable, choose whatever you like best!
sudo reboot
sudo shutdown -r
sudo shutdown -r now
Using Nano Text Editor
If you would prefer to use the Nano Text Editor, you can access your hostname file using the following command…
sudo nano /etc/hostname
Once you have replaced the text with your desired hostname, CTRL+S to save and CTRL+X to exit from Nano and now you can go ahead and reboot, just as you would had you used the CLI One-Liner.
sudo shutdown -r now
Matt’s Guide to Securing a Linux Box for Production.
Quick overview of my websites architecture.
One Night in Glacier NP - 2024
Exploring and capturing the scenery in American Truck Simulator, Nebraska DLC
how-to be safe while downloading linux isos.
Exploring South Dakota with the Jacksons.
how I reduced my home page 610 percent.
how-to add oneko.js to the minimal-mistakes jekyll template.
My personal running notes for growing cannabis.
Dealing with CIFS errors between TrueNAS and Debian.
how-to bounce a Juniper JunOS switchport.
how-to fix ‘the list of sources could not be read.’ when using apt.
how-to troubleshoot a home network, by a Network Engineer.
Moving my webserver from OpenLiteSpeed to Caddy
how-to resolve, could not resolve packages.adoptium.net
how-to validate XZ-Utils impact.
How and Why I use Ninite
Manually renewing Certbot on OpenLiteSpeed
Yet Another Benchmark Results
Linux Basics and Core Concepts by Matt F.
how-to Buy and Manage a Web Domain
My Udemy Course Completion Certification.
Scion FRS Service Manual Download and Sources
My Discord Server Widget
How I moved from QUIC.Cloud to BunnyNet CDN.
My High Uptime Plan for 2024.
Personal notes for Magic the Gathering
HTML Hobbiest Webring Landing Page/Post
Method of Procedure for migrating from WordPress to plain HTML.
W900 Tuning Pack DLC Review.
Google Domains is Ending.
Deep dive into OpenLiteSpeed webserver.
how-to resolve my Jekyll/Cloudflare Pages deployment error.
In High School I had one dream that stands out. Own a Porsche by the time I was 26. Looking back, I have no idea where this dream came from; because I was ra...
Personal ramblings about my new town.
Knowledge Filled PDF Bundle
how-to Jellyfun.
ProtonMail Review - 1 Year
how-to manage Pi-Hole.
My new Gaming PC. Its boring but it’ll do.
how-to setup Pi-Hole and Wireguard on Linode.
how-to update the hostname of a Raspberry Pi.
Can a Raspberry Pi Zero host a family VPN Server? Yes.
Logitech G413 Keyboard review.
Razer Huntsman Mini review.
YouTube video cruising through Colorado!
Ramblings about PiAware after one month of operation.
Guide to setup a Raspberry Pi from start to finish!
Guide to configuring the Timezone on a Raspberry Pi.