r/linuxupskillchallenge • • Jun 27 '21

Spread the word! Next course starts on Monday, 5 July 2021

65 Upvotes

Just a reminder that the course always restarts on the first Monday of the next month. Don't forget to spread the word and bring your friends!


r/linuxupskillchallenge • • Jul 24 '22

Spread the word! Next course starts on Monday, 1 August 2022

63 Upvotes

Just a reminder that the course always restarts on the first Monday of the next month. Don't forget to spread the word and bring your friends!


r/linuxupskillchallenge • • May 22 '22

Spread the word! Next course starts on Monday, 6 June 2022

63 Upvotes

Just a reminder that the course always restarts on the first Monday of the next month. Don't forget to spread the word and bring your friends!


r/linuxupskillchallenge • • Aug 26 '20

Day 0 - Creating Your Own Server - with AWS Free Tier

63 Upvotes

INTRO

First, you need a server. You can't really learn about administering a remote Linux server without having a one of your own - so today we're going get one - completly free!

Through the magic of Linux and virtualisation, it's now possible to get a small Internet server setup almost instantly - and at very low cost. Technically, what you'll be doing is creating and renting a VPS ("Virtual Private Server"). In a datacentre somewhere a single physical server running Linux will be split into a dozen or more Virtual servers using the KVM (Kernel-based Virtual Machine) feature that's been part of Linux since early 2007. There are many hundreds of hosting companies offering low cost VPS deals - and sites like http://lowendbox.com/ that compare them.

As well as a hosting provider, we also need to choose which "flavour" of Linux to install on our server. If you're new to Linux then the range of "distributions" available can be confusing - but the latest LTS ("Long Term Support") version of Ubuntu Server is a popular choice, and what you'll need for this course.

These instruction will walk you through using Amazon's AWS "Free Tier" (http://aws.amazon.com) as your VPS hosting provider. They are rated highly, with a very simple and slick interface. Although we'll be using the Free Tier, be warned that you will need to provide valid credit card information. (Of course, if you have a strong reason to use another provider, then by all means do so, but be sure to choose Ubuntu Server 18.04)

Signing up with AWS

Signup is fairly simple - just provide your email address and a password of your choosing - along with a phone number for a 2FA - a second method of authentication. You will need to also provide your VISA or other credit card information.

  • For Support Plan, choose "Basic Plan/Free"

Logout, then login again, and then select:

  • Services - from the top menu

  • EC2 - from the list of services

In "AWS speak" the server we'll create will be an "EC2 compute instance" - so now choose "Launch Instance". You will be presented with several image options - choose one with "Ubuntu Server 20.04 LTS" in the name. At the next screen you'll have options for the type - typically only "t2.micro" is eligible for the Free Tier, but this is fine, so select to "review and Launch" At the review screen there will be an option "Security Groups" - this is in fact a firewall configuration which AWS provides by default. While a good thing in general, for our purposes we want our server completely exposed, so we'll edit this to effectively disable it, like this:

  • Select "Configure Security Group"

  • Select "Add Rule"

  • Type: "All traffic", Source: "Anywhere"

This opens all ports and protocols to access from anywhere. While this might be unwise for a production server, it is what we want for this course.

Now select "Launch". When prompted for a key pair, create one.

Your server instance should now launch, and you can login to it by:

  • Services, EC2, Running instances, Connect

Remote access via SSH

You should see an "IPv4" entry for your server, this is its unique Internet IP address, and is how you'll connect to it via SSH (the Secure Shell protocol) - something we'll be covering in the first lesson.

This video, "How to Set Up AWS EC2 and Connect to Linux Instance with PuTTY" (https://www.youtube.com/watch?v=kARWT4ETcCs), gives a good overview of the process.

You will be logging in as the user ubuntu. It has been added to the 'adm' and 'sudo' groups, which on an Ubuntu system gives it access to read various logs - and to "become root" as required via the sudo command.

You are now a sysadmin

Confirm that you can do administrative tasks by typing:

sudo apt update

(Normally you'd expect this would prompt you to confirm your password, but because you're using public key authentication the system hasn't promoted you to set up a password - and AWS have configured sudo to not request one for "ubuntu").

Then:

sudo apt upgrade

Don't worry too much about the output and messages from these commands, but it should be clear whether they succeeded or not. (Reply to any prompts by taking the default option). These commands are how you force the installation of updates on an Ubuntu Linux system, and only an administrator can do them.

To logout, type logout or exit.

Your server is now all set up and ready for the course!

Note that:

  • This server is now running, and completely exposed to the whole of the Internet

  • You alone are responsible for managing it

  • You have just installed the latest updates, so it should be secure for now


r/linuxupskillchallenge • • Jan 23 '23

Spread the word! Next course starts on Monday, 6 February 2023

62 Upvotes

Just a reminder that the course always restarts on the first Monday of the next month. Don't forget to spread the word and bring your friends!


r/linuxupskillchallenge • • Apr 24 '22

Spread the word! Next course starts on Monday, 2 May 2022

62 Upvotes

Just a reminder that the course always restarts on the first Monday of the next month. Don't forget to spread the word and bring your friends!


r/linuxupskillchallenge • • Jul 29 '20

HOW THIS WORKS...

62 Upvotes

HOW THIS WORKS...

This is the home of the monthly "Linux Upskill Challenge".

You'll need to setup a cloud-based server

Do I really need a cloud-based server?

Yes, if you’re in the target audience (see below) you definitely should. The fact that such a server is very remote, and open to attack from the whole Internet, “makes it real”. Learning how to setup such a VPS is also a handy skill for any sysadmin.

Instructions for setting up a suitable server with a couple of providers are in the "Day 0" posts. By all means use a different provider, but ensure you use Ubuntu LTS (18.04 or 20.04), and either use public key authentication or a long strong unique password.

Of course, you’re perfectly entitled to use a local VM, an old laptop in the corner or a Raspberry Pi instead – and all of these will work fine for the course material.

Why Ubuntu, can I use another distro?

The notes assume Ubuntu Server LTS (18.04 or 20.04) and it would be messy to include instructions/variations for every other distro. If you use Debian or CentOS (also good server choices), you yourself will need to understand and cope with any differences (e.g. apt vs yum).

Target audience

This course is squarely aimed at two groups: (1) Linux users who aspire to get Linux-related jobs in industry - junior Linux sysadmin, devops-related work and similar, and (2) Windows server admins who want to expand their knowledge to be able to work with Linux servers.

However, many others have happily used the course simply to improve their Linux command line skills – and that’s just fine too.

A daily lesson

One of the key elements of the course is that the material is delivered in 20 bite-sized lessons, one each workday into this subreddit. At any one time, just the last four lessons are available (we remove the older ones) – this gives you a bit of an incentive to “keep up”.

The first few days are pretty basic, but there's generally some "Extension" items for the more experienced.

Expect to spend 1-2 hours going through each. Some find it handy to read the notes through quickly in the day, then do the practical stuff in the evening – but do whatever suits you.

Support

Feel free to post questions or comments here in the subreddit – or chat using the Discord server (https://discordapp.com/invite/wd4Zqyk) run by u/cobaltrune.


r/linuxupskillchallenge • • Apr 24 '23

Spread the word! Next course starts on Monday, 1 May 2023

61 Upvotes

Just a reminder that the course always restarts on the first Monday of the next month. Don't forget to spread the word and bring your friends!


r/linuxupskillchallenge • • Aug 22 '21

Spread the word! Next course starts on Monday, 6 September 2021

61 Upvotes

Just a reminder that the course always restarts on the first Monday of the next month. Don't forget to spread the word and bring your friends!


r/linuxupskillchallenge • • Jul 25 '21

Spread the word! Next course starts on Monday, 2 August 2021

61 Upvotes

Just a reminder that the course always restarts on the first Monday of the next month. Don't forget to spread the word and bring your friends!


r/linuxupskillchallenge • • May 24 '21

Spread the word! Next course starts on Monday, 7 June 2021

61 Upvotes

Just a reminder that the course always restarts on the first Monday of the next month. Don't forget to spread the word and bring your friends!


r/linuxupskillchallenge • • Jun 24 '20

/r/linuxupskillchallenge hit 1k subscribers yesterday

Thumbnail redditmetrics.com
61 Upvotes

r/linuxupskillchallenge • • Jun 24 '20

Day 0 - Creating Your Own Server - with AWS Free Tier

61 Upvotes

Day 0 - Creating Your Own Server - with AWS Free Tier

INTRO

First, you need a server. You can't really learn about administering a remote Linux server without having a one of your own - so today we're going get one - completly free!

Through the magic of Linux and virtualisation, it's now possible to get a small Internet server setup almost instantly - and at very low cost. Technically, what you'll be doing is creating and renting a VPS ("Virtual Private Server"). In a datacentre somewhere a single physical server running Linux will be split into a dozen or more Virtual servers using the KVM (Kernel-based Virtual Machine) feature that's been part of Linux since early 2007. There are many hundreds of hosting companies offering low cost VPS deals - and sites like http://lowendbox.com/ that compare them.

As well as a hosting provider, we also need to choose which "flavour" of Linux to install on our server. If you're new to Linux then the range of "distributions" available can be confusing - but the latest LTS ("Long Term Support") version of Ubuntu Server is a popular choice, and what you'll need for this course.

These instruction will walk you through using Amazon's AWS "Free Tier" (http://aws.amazon.com) as your VPS hosting provider. They are rated highly, with a very simple and slick interface. Although we'll be using the Free Tier, be warned that you will need to provide valid credit card information. (Of course, if you have a strong reason to use another provider, then by all means do so, but be sure to choose Ubuntu Server 18.04)

Signing up with AWS

Signup is fairly simple - just provide your email address and a password of your choosing - along with a phone number for a 2FA - a second method of authentication. You will need to also provide your VISA or other credit card information.

  • For Support Plan, choose "Basic Plan/Free"

Logout, then login again, and then select:

  • Services - from the top menu

  • EC2 - from the list of services

In "AWS speak" the server we'll create will be an "EC2 compute instance" - so now choose "Launch Instance". You will be presented with several image options - choose one with "Ubuntu Server 20.04 LTS" in the name. At the next screen you'll have options for the type - typically only "t2.micro" is eligible for the Free Tier, but this is fine, so select to "review and Launch" At the review screen there will be an option "Security Groups" - this is in fact a firewall configuration which AWS provides by default. While a good thing in general, for our purposes we want our server completely exposed, so we'll edit this to effectively disable it, like this:

  • Select "Configure Security Group"

  • Select "Add Rule"

  • Type: "All traffic", Source: "Anywhere"

This opens all ports and protocols to access from anywhere. While this might be unwise for a production server, it is what we want for this course.

Now select "Launch". When prompted for a key pair, create one.

Your server instance should now launch, and you can login to it by:

  • Services, EC2, Running instances, Connect

Remote access via SSH

You should see an "IPv4" entry for your server, this is its unique Internet IP address, and is how you'll connect to it via SSH (the Secure Shell protocol) - something we'll be covering in the first lesson.

This video, "How to Set Up AWS EC2 and Connect to Linux Instance with PuTTY" (https://www.youtube.com/watch?v=kARWT4ETcCs), gives a good overview of the process.

You will be logging in as the user ubuntu. It has been added to the 'adm' and 'sudo' groups, which on an Ubuntu system gives it access to read various logs - and to "become root" as required via the sudo command.

You are now a sysadmin

Confirm that you can do administrative tasks by typing:

sudo apt update

(Normally you'd expect this would prompt you to confirm your password, but because you're using public key authentication the system hasn't promoted you to set up a password - and AWS have configured sudo to not request one for "ubuntu").

Then:

sudo apt upgrade

Don't worry too much about the output and messages from these commands, but it should be clear whether they succeeded or not. (Reply to any prompts by taking the default option). These commands are how you force the installation of updates on an Ubuntu Linux system, and only an administrator can do them.

To logout, type logout or exit.

Your server is now all set up and ready for the course!

Note that:

  • This server is now running, and completely exposed to the whole of the Internet

  • You alone are responsible for managing it

  • You have just installed the latest updates, so it should be secure for now


r/linuxupskillchallenge • • Sep 05 '20

We're on HN!

60 Upvotes

r/linuxupskillchallenge • • Dec 30 '21

Day 0 - Creating Your Own Server - with a $5 Digital Ocean plan

59 Upvotes

READ THIS FIRST! HOW THIS WORKS & FAQ

INTRO

First, you need a server. You can't really learn about administering a remote Linux server without having one of your own - so today we're going to buy one!

Through the magic of Linux and virtualization, it's now possible to get a small Internet server setup almost instantly - and at very low cost. Technically, what you'll be doing is creating and renting a VPS ("Virtual Private Server"). In a datacentre somewhere, a single physical server running Linux will be split into a dozen or more Virtual servers, using the KVM (Kernel-based Virtual Machine) feature that's been part of Linux since early 2007.

In addition to a hosting provider, we also need to choose which "flavour" of Linux to install on our server. If you're new to Linux then the range of "distributions" available can be confusing - but the latest LTS ("Long Term Support") version of Ubuntu Server is a popular choice, and what you'll need for this course.

These instructions will walk you through using Digital Ocean (http://digitalocean.com) as your VPS hosting provider. They are rated highly, with a very simple and slick interface - and low cost of $5 (USD) per month for the minimal server that you'll be creating. (Of course, if you have a strong reason to use another provider, then by all means do so, but be sure to choose Ubuntu Server 20.04)

Signing up with Digital Ocean

Sign-up is immediate - just provide your email address and a password of your choosing and you're in!

  • Choose "Manage, Droplets" from the left-hand sidebar. (a "droplet" is Digital Ocean's cute name for a server!)

  • Select the image "Ubuntu 20.04 LTS"

  • For plan, choose "Starter"

  • You'll be prompted to start a $40/mo. plan, but select "Show all plans", and select the $5/mo. one - that's fine for this course.

  • You don't need to add any block storage.

  • Select whichever region you wish.

  • Authentication - choose "Password"

  • Choose a strong password for the root account.

  • Note that since the server is on the Internet it will be under immediate attack from bots attempting to "brute force" the root password. Make it strong!

  • Choose a hostname because the default ones are pretty ugly.

Logging in for the first time

Select your droplet and "Access" from the left-hand sidebar and you should be able to login to the console using this. Use the login name "root", and the password you selected. Note that the password won't show as you type or paste it.

Creating a working admin account

We want to follow the Best Practice of not logging as "root" remotely, so we'll create an ordinary user account, but one with the power to "become root" as necessary, like this:

adduser snori74

usermod -a -G adm snori74

usermod -a -G sudo snori74

(Of course, replace 'snori74' with your name!)

This will be the account that you use to login and work with your server. It has been added to the 'adm' and 'sudo' groups, which on an Ubuntu system gives it access to read various logs and to "become root" as required via the sudo command.

You are now a sysadmin

Logout as root, by typing logout or exit, then login as your new sysadmin user, and confirm that you can do administrative tasks by typing:

sudo apt update

(you'll be asked to confirm your password)

Then:

sudo apt upgrade

Don't worry too much about the output and messages from these commands, but it should be clear whether they succeeded or not. These commands are how you force the installation of updates on an Ubuntu Linux system, and only an administrator can do them.

We can now safely disable login as the root user

With our new working user able to perform all sysadmin tasks, there is no reason for us to login user root. Our server is exposed to all the internet, and we can expect continuous attempts to login from malicious bots - most of which will be attempting to login as root. While we did set a very secure password just before, it would be nice to know that remote login as root is actually impossible - and it's possible to do that with this command:

sudo usermod -p "!" root

This disables direct login access, while still allowing approved logged in users to "become root' as necessary - and is the normal default configuration of an Ubuntu system. (Digital Ocean's choice to enable "root" in their image is non-standard).

To logout, type logout or exit.

Your server is now all set up and ready for the course!

Remote access via SSH

You should see an "IPv4" entry for your server, this is its unique Internet IP address, and is how you'll connect to it via SSH (the Secure Shell protocol) - something we'll be covering in the first lesson.

Note that:

  • This server is now running, and completely exposed to the whole of the Internet

  • You alone are responsible for managing it

  • You have just installed the latest updates, so it should be secure for now


r/linuxupskillchallenge • • May 11 '23

Interested in contributing to the Linux Upskill Challenge?

58 Upvotes

The material is open source and updates, fixes and enhancements are always welcomed. So, if you learned something from the challenge, or found something that was not in the lessons - please let us know!

You can submit an issue or, even better, a pull request!

For example, Days 0 and 1 are very heavy on SSH and cause a good chunk of the initial questions. So I started working on more material about SSH.

TL;DR - if you can/want to contribute to the challenge, please feel free to participate in the source material too. You are very much appreciated!


r/linuxupskillchallenge • • Nov 27 '22

Spread the word! Next course starts on Monday, 5 December 2022

57 Upvotes

Just a reminder that the course always restarts on the first Monday of the next month. Don't forget to spread the word and bring your friends!


r/linuxupskillchallenge • • Jan 12 '22

Love the Linux upskill challenge!

57 Upvotes

Just wanted to say that I'm really benefitting from this course. I am a beginner to intermediate Linux user ( I use arch BTW lol) and going over the basic Linux commands is something I have been needing to do for a long time.

I really like the daily post format, as well as being able to scroll to earlier sets of courses when I'm in the mood for learning.

Your videos are great.

Please keep doing your thing.

Thanks


r/linuxupskillchallenge • • Sep 18 '20

explainshell.com - A very helpful commandline tool, to figure out what that long commandline someone told you to paste, actually does

Thumbnail explainshell.com
57 Upvotes

r/linuxupskillchallenge • • May 22 '23

Spread the word! Next course starts on Monday, 5 June 2023

56 Upvotes

Just a reminder that the course always restarts on the first Monday of the next month. Don't forget to spread the word and bring your friends!


r/linuxupskillchallenge • • Feb 27 '23

Spread the word! Next course starts on Monday, 6 March 2023

56 Upvotes

Just a reminder that the course always restarts on the first Monday of the next month. Don't forget to spread the word and bring your friends!


r/linuxupskillchallenge • • Aug 21 '22

Spread the word! Next course starts on Monday, 5 September 2022

55 Upvotes

Just a reminder that the course always restarts on the first Monday of the next month. Don't forget to spread the word and bring your friends!


r/linuxupskillchallenge • • Jun 26 '22

Spread the word! Next course starts on Monday, 4 July 2022

55 Upvotes

Just a reminder that the course always restarts on the first Monday of the next month. Don't forget to spread the word and bring your friends!


r/linuxupskillchallenge • • Jun 24 '20

Day 0 - Creating Your Own Server - with a $5 Digital Ocean plan

55 Upvotes

Day 0 - Creating Your Own Server - with a $5 Digital Ocean plan

INTRO

First, you need a server. You can't really learn about administering a remote Linux server without having a one of your own - so today we're going to buy one!

Through the magic of Linux and virtualisation, it's now possible to get a small Internet server setup almost instantly - and at very low cost. Technically, what you'll be doing is creating and renting a VPS ("Virtual Private Server"). In a datacentre somewhere a single physical server running Linux will be split into a dozen or more Virtual servers using the KVM (Kernel-based Virtual Machine) feature that's been part of Linux since early 2007. There are many hundreds of hosting companies offering low cost VPS deals - and sites like http://lowendbox.com/ that compare them.

As well as a hosting provider, we also need to choose which "flavour" of Linux to install on our server. If you're new to Linux then the range of "distributions" available can be confusing - but the latest LTS ("Long Term Support") version of Ubuntu Server is a popular choice, and what you'll need for this course.

These instruction will walk you through using Digital Ocean (http://digitalocean.com) as your VPS hosting provider. They are rated highly, with a very simple and slick interface - and low cost of $5 (USD) per month for the minimal server that you'll be creating. (Of course, if you have a strong reason to use another provider, then by all means do so, but be sure to choose Ubuntu Server 18.04)

Signing up with Digital Ocean

Signup is immediate - just provide your email address and a password of your choosing and you're in!

  • Choose "Manage, Droplets" from the left hand sidebar. (a "droplet" is Digital Ocean's cute name for a server!)

  • Select the image "Ubuntu 18.04 LTS" or "Ubuntu 20.04 LTS"

  • For plan, choose "Starter"

  • You'll be prompted to start a $40/m plan, but select "Show all plans", and select the $5/mo one - that's fine for this course.

  • You don't need to add any block storage.

  • Select whichever region you wish.

  • Authentication - choose "Password"

  • Choose a strong password for the root account.

  • Note that since the server is on the Internet it will be under immediate attack from bots attempting to "brute force" the root password. Make it strong!

  • Choose a hostname, because the default ones are pretty ugly.

Logging in for the first time

Select your droplet and "Access" from the left hand sidebar and you should be able to login to the console using this. Use the login name "root", and the password you selected. Note that the password won't show as you type or paste it.

Creating a working admin account

We want to follow the Best Practice of not logging as "root" remotely, so we'll create an ordinary user account, but one with the power to "become root" as necessary, like this:

sudo adduser snori74
sudo usermod -a -G adm snori74
sudo usermod -a -G sudo snori74

(Of course, replace 'snori74' with your name!)

This will be the account that you use to login and work with your server. It has been added to the 'adm' and 'sudo' groups, which on an Ubuntu system gives it access to read various logs and to "become root" as required via the sudo command.

You are now a sysadmin

Logout as root, by typing logout or exit, then login as your new sysadmin user, and confirm that you can do administrative tasks by typing:

sudo apt update

(you'll be asked to confirm your password)

Then:

sudo apt upgrade

Don't worry too much about the output and messages from these commands, but it should be clear whether they succeeded or not. These commands are how you force the installation of updates on an Ubuntu Linux system, and only an administrator can do them.

We can now safely disable login as the root user

With our new working user able to perform all sysadmin tasks, there is no reason for us to login user root. Our server is exposed to all of the internet, and we can expect continuous attempts to login from malicious bots - most of which will be attempting to login as root. While we did set a very secure password just before, it would be nice to know that remote login as root is actually impossible - and it's possible to do that with this command:

sudo usermod -p "!" root

This disables direct login access, while still allowing approved logged in users to "become root' as necessary - and is the normal default configuration of an Ubuntu system. (Digital Ocean's choice to enable "root" in their image is non-standard).

To logout, type logout or exit.

Your server is now all set up and ready for the course!

Remote access via SSH

You should see an "IPv4" entry for your server, this is its unique Internet IP address, and is how you'll connect to it via SSH (the Secure Shell protocol) - something we'll be covering in the first lesson.

Note that:

  • This server is now running, and completely exposed to the whole of the Internet

  • You alone are responsible for managing it

  • You have just installed the latest updates, so it should be secure for now


r/linuxupskillchallenge • • Feb 27 '22

Spread the word! Next course starts on Monday, 7 March 2022

54 Upvotes

Just a reminder that the course always restarts on the first Monday of the next month. Don't forget to spread the word and bring your friends!