Essential First Steps for Every New Linux Server Build
In this video for new Linux users, Jay covers the essential first tweaks that should made to every new Linux server build. Although these first tweaks may seem a bit “basic”, don’t underestimate their importance! A little preparation goes a long way.
*Learn Linux TV – Your Home For Linux-Related Fun and Learning!*
*Time Codes*
00:00 – Intro
02:00 – Installing all available updates via apt (Debian/Ubuntu/etc)
05:03 – Installing all available updates (Fedora)
06:10 – Creating a non-root user for ourselves (general method)
08:00 – Creating a non-root user for ourselves (Debian/Ubuntu specific method)
10:15 – Setting the hostname/domain name for the server
11:19 – Adding the servers hostname/domain name to /etc/hosts
13:13 – Generating an SSH key
14:05 – Copying an SSH public key to a server
16:08 – Disabling root login password access for SSH
19:15 – Rebooting the server
*Support Linux Learning (commission earned)*
• Become a channel member here on YouTube ➜ https://learnlinux.link/join
• Become a Patron on Patreon ➜ https://learnlinux.link/patron
• Receive a 5% discount on an LPI exam voucher ➜ https://learnlinux.link/lpi-voucher
*Linux-related Gifts*
• Mastering Ubuntu Server 4th Edition (Jay wrote that!!! 😲) ➜ http://ubuntuserverbook.com
• Affiliate store for Linux compatible hardware/accessories ➜ https://learnlinux.link/amazon
• Awesome KVM for your Homelab ➜ https://learnlinux.link/tinypilot
*Recommended stand-alone videos from Learn Linux TV*
• How to create a bootable flash drive for installing Linux ➜ https://linux.video/flash-usb
• Installing an operating system for Raspberry Pi ➜ https://linux.video/pi-imager
• How to connect to a Linux server via ssh ➜ Coming soon!
• Understanding Linux permissions ➜ https://linux.video/perms
• Essential tweaks for ALL Linux Servers ➜ https://linux.video/all-servers
*Stand-Alone Tutorials*
• OpenSSH Guide ➜ https://linux.video/ssh
• How to better secure OpenSSH ➜ https://linux.video/secure-ssh
• 10 Linux Terminal Tips and Tricks to Enhance Your Workflow ➜ https://linux.video/cli-tricks-1
• Over 15 Terminal Tricks You Should Learn ➜ https://linux.video/cli-tricks-2
*Recommended Courses from Learn Linux TV*
• Get up to speed with managing an OpenStack Cloud ➜ https://linux.video/openstack
• Learn how to write your own Bash Scripts ➜ https://linux.video/bash
• Install, configure, and maintain a Proxmox VE Cluster ➜ https://linux.video/pve
• Automate tedious setup jobs by learning Ansible ➜ https://linux.video/ansible
• Learn how to exit vim (and use it too) ➜ https://linux.video/vim
*Linux-related Podcasts*
• Enterprise Linux Security ➜ https://enterpriselinuxsecurity.show
• The Homelab Show ➜ https://thehomelab.show
*Fun Linux-related Projects*
• Run your own Gitlab CE Server ➜ https://linux.video/gitlab
• Build a Kubernetes Cluster on Proxmox ➜ https://linux.video/pve-k8s
• Set up your own Nextcloud Server ➜ https://linux.video/nextcloud
*Official Learn Linux TV Sites*
• Main site ➜ https://www.learnlinux.tv
• Community ➜ https://community.learnlinux.tv
*FAQ*
• Which distro do I use? ➜ https://learnlinux.link/mydistro
• My recording gear (commissions earned) ➜ https://learnlinux.link/recording-stuff
*Content Ethics*
• The following article covers the rules and guidelines Learn Linux TV abides by ➜ https://www.learnlinux.tv/content-ethics
*Disclaimer*
LearnLinuxTV produces technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). LearnLinuxTV is not responsible for any damages that may arise from any use of the content and information that’s being provided. The viewer is expected to follow best judgement and to make his/her/their best decisions while working with production or non-production software, systems and hardware.
#Linux #LinuxTutorial #LinuxForBeginners
by Learn Linux TV
linux web server
B
Thank you, amazing content.
2:28 Ok, but how do you get your Ubuntu server connected to the internet? When I start up my installation it says it is waiting to be configured. I don't see the steps to configure the internet to update from the "~$" (in the video it is "~#"). Where's the tutorial on this?
Thanks for this video. I do have a question though: when you install updates on a server do you need to reboot afterwards or is the system so intelligent that updates can be installed on the fly? When a server is in a production environment reboots are not something you want to do.
Dear Learn Linux TV,
Current, i has Dell server run Os Ubuntu 22.04.
in the future, I will setup one more server run Os Ubuntu 22.04 to run in parallel, for the purpose of redundancy and backup. If the first dies server, there is still second replace.
but, I don't know the steps how to configure, set up and synchronize data for the two servers.
May can you and everyone help me.
Thank you so much.
This channel is gold!
I am your old subscriber.
Your all videos are gold mines.
👍🏻👌🏻
What is the best server VMware or Virtual Box.
I'm always scared to do any update, because thousands users using the server.
Jay, can you please make some video on linux IAM including ldap and sssd with AD?
Have you ever try medicat? is a very usefull tool too. You should make a video of it!
Some minor changes in /etc/ssh/sshd_config since this video was made.
Great video.
– Next steps would be to configure your firewall (ufw on Debian) and setup and VPN connections etc.
– then automating everything (e.g. via Ansible) for repeatable infrastructure
Nice tutorial with very clear and detail introduced steps, would be even better with some basic firewall setup steps 😀
thx short n simple
Nice Video 🙂 This is my first time owning a VPS and viewing /var/log/auth.log was a little unnerving. I feel a little more confident now. Thanks.
Thank you for all you are doing sir! 💪🏾👽👌🏽
I notice you have an IPv6 address on the machines. That is good. Should use that for servers you want to access externally.
To add a user in Debian I use adduser(8) or addgroup(8) instead of usermod(8) to add secondary group to an account, as that has less switch and easier to remember.
Usually one change configurations for the sshd by adding files into /etc/ssh/sshd_config.d/ direcotory instead of editing /etc/ssh/sshd_config.
The only problem is you are a systemD guy… apart that your videos are very good. I wonder what's gonna be when we destroy systemD and Microsoft's plans to destroy Linux.
You forgot "install vim" make it the default.
😉
Your videos are so amazing, thank you Jay!
Many thanks for extremely useful educational content! I love your channel and have been following it for a while. Question – I have a remote Linode UBUNTU machine and am accessing it via a VM running Mint 21.1 – I followed all your steps here, however, when I try to connect to the cloud server using SSH, Mint asks me to "enter password to enter a private key" for my local account – when I do this, it just ask me to repeat – so I still have to access the cloud Ubuntu server using password… So, I was not able to complete the process and I would be grateful for any hints and help ! Thanking you in advance !
Love the new Intro. Don't remember if I said
What happens if the workstation we have ssh key on gets corrupted and I cannot use it to log in to the server? Would I be able to log in to my remote server? Or from a different machine?
Great video! One of the most valuable channels that I ever subscribed to.
Step 1 always: apt install ncdu
Tip, you could use useradd the same way on both ubuntu and fedora. And look at the contents of /etc/passwd to verify the user has been created. Great video btw.