You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/00-AWS-Free-Tier.md
+27-6Lines changed: 27 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,10 @@ Refer to [Day 0 - Get Your Own Server](https://linuxupskillchallenge.org/00) to
9
9
*[In the Cloud (with providers like DigitalOcean, Linode and Vultr)](https://linuxupskillchallenge.org/00-VPS-small)
10
10
*[In the Cloud (with providers like AWS, Azure and Google Cloud)](https://linuxupskillchallenge.org/00-VPS-big)
11
11
12
+
**TIP**: check out the walk-though in the [complementary video](https://www.youtube.com/live/_-6UYOjRIVQ?t=2892s). This video covers a lot of possible setups (local server with VirtualBox, AWS, Digital Ocean, Azure, Linode, Google Cloud, Vultr and Oracle Cloud).
13
+
12
14
## AWS free-tier, is it always free?
15
+
13
16
The AWS Free Tier is designed to allow new users to explore and test various AWS services without incurring any costs for 12 months following the AWS sign-up date, subject to certain usage limits. When your 12 month free usage term expires or if your application use exceeds the tiers, you simply pay standard, pay-as-you-go service rates. You can extend that free usage with an Educate Pack, if you are eligible.
14
17
15
18
## Signing up with AWS Educate pack:
@@ -52,27 +55,37 @@ Your server instance should now launch, and you can login to it by:
52
55
53
56
## Remote access via SSH
54
57
55
-
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.
58
+
You should see a "Public IPv4 address" (or similar) entry for your server in the account's control panel, this is its unique Internet IP address, and it is how you'll connect to it via SSH (the Secure Shell protocol) - something we'll be covering in the first lesson.
56
59
57
60
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.
58
61
59
-
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.
62
+
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.
60
63
61
64
## You are now a sysadmin
62
65
63
66
Confirm that you can do administrative tasks by typing:
64
67
65
-
`sudo apt update`
68
+
```bash
69
+
sudo apt update
70
+
```
66
71
67
-
(Normally you'd expect this would prompt you to confirm your password, but because you're using public key authentication the system hasn't prompted you to set up a password - and AWS have configured *sudo* to not request one for "ubuntu").
72
+
(Normally you'd expect this would prompt you to confirm your password, but because you're using public key authentication the system hasn't prompted you to set up a password - and AWS have configured `sudo` to not request one for `ubuntu`).
68
73
69
74
Then:
70
75
71
-
`sudo apt upgrade`
76
+
```bash
77
+
sudo apt upgrade -y
78
+
```
72
79
73
80
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.
74
81
75
-
To logout, type _logout_ or _exit_.
82
+
**REBOOT**
83
+
84
+
When a kernel update is identified in this first check for updates, the system might ask the user to reboot. This is one of the few occasions you will need to reboot your server, so go for it after the update is done:
85
+
86
+
```bash
87
+
sudo reboot now
88
+
```
76
89
77
90
Your server is now all set up and ready for the course!
78
91
@@ -82,4 +95,12 @@ Note that:
82
95
* You alone are responsible for managing it
83
96
* You have just installed the latest updates, so it should be secure for now
84
97
98
+
To logout, type `logout` or `exit`.
99
+
100
+
## When you are done
101
+
102
+
You should be safe running the VM during the month for the challenge, but you can **Stop** the instance at any point. It will continue to count towards the bill, though.
103
+
104
+
When you no longer need the VM, **Terminate/Destroy** instance.
105
+
85
106
**Now you are ready to start the challenge. [Day 1](https://linuxupskillchallenge.org/01), here we go!**
Copy file name to clipboardExpand all lines: docs/00-Azure-Free-Tier.md
+25-5Lines changed: 25 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ Refer to [Day 0 - Get Your Own Server](https://linuxupskillchallenge.org/00) to
9
9
*[In the Cloud (with providers like DigitalOcean, Linode and Vultr)](https://linuxupskillchallenge.org/00-VPS-small)
10
10
*[In the Cloud (with providers like AWS, Azure and Google Cloud)](https://linuxupskillchallenge.org/00-VPS-big)
11
11
12
+
**TIP**: check out the walk-though in the [complementary video](https://www.youtube.com/live/_-6UYOjRIVQ?t=7020s). This video covers a lot of possible setups (local server with VirtualBox, AWS, Digital Ocean, Azure, Linode, Google Cloud, Vultr and Oracle Cloud).
13
+
12
14
## Signing up with Azure
13
15
14
16
Sign-up 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. Azure can be a bit funny about 'corporate' email addresses, eg using a work address or your own domain. Create a new @outlook or @gmail.com account if so using the link on the sign-up page.
@@ -44,23 +46,33 @@ This opens all ports and protocols to access from anywhere. While this might be
44
46
45
47
Ensure your machine is 'running' (if not, click 'start') and connect using the 'connect -> ssh' dropdown and following instructions
46
48
47
-
You will be logging in as the user *azureuser*. 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.
49
+
You will be logging in as the user `azureuser`. 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.
48
50
49
51
## You are now a sysadmin
50
52
51
53
Confirm that you can do administrative tasks by typing:
52
54
53
-
`sudo apt update`
55
+
```bash
56
+
sudo apt update
57
+
```
54
58
55
-
(Normally you'd expect this would prompt you to confirm your password, but because you're using public key authentication the system hasn't prompted you to set up a password - and Azure have configured *sudo* to not request one for "azureuser").
59
+
(Normally you'd expect this would prompt you to confirm your password, but because you're using public key authentication the system hasn't prompted you to set up a password - and Azure have configured `sudo` to not request one for `azureuser`).
56
60
57
61
Then:
58
62
59
-
`sudo apt upgrade`
63
+
```bash
64
+
sudo apt upgrade -y
65
+
```
60
66
61
67
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.
62
68
63
-
To logout, type _logout_ or _exit_.
69
+
**REBOOT**
70
+
71
+
When a kernel update is identified in this first check for updates, the system might ask the user to reboot. This is one of the few occasions you will need to reboot your server, so go for it after the update is done:
72
+
73
+
```bash
74
+
sudo reboot now
75
+
```
64
76
65
77
Your server is now all set up and ready for the course!
66
78
@@ -70,4 +82,12 @@ Note that:
70
82
* You alone are responsible for managing it
71
83
* You have just installed the latest updates, so it should be secure for now
72
84
85
+
To logout, type `logout` or `exit`.
86
+
87
+
## When you are done
88
+
89
+
You should be safe running the VM during the month for the challenge, but you can **Stop** the instance at any point. It will continue to count towards the bill, though.
90
+
91
+
When you no longer need the VM, **Terminate/Destroy** instance.
92
+
73
93
**Now you are ready to start the challenge. [Day 1](https://linuxupskillchallenge.org/01), here we go!**
Copy file name to clipboardExpand all lines: docs/00-Google-Cloud.md
+25-5Lines changed: 25 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ Refer to [Day 0 - Get Your Own Server](https://linuxupskillchallenge.org/00) to
9
9
*[In the Cloud (with providers like DigitalOcean, Linode and Vultr)](https://linuxupskillchallenge.org/00-VPS-small)
10
10
*[In the Cloud (with providers like AWS, Azure and Google Cloud)](https://linuxupskillchallenge.org/00-VPS-big)
11
11
12
+
**TIP**: check out the walk-though in the [complementary video](https://www.youtube.com/live/_-6UYOjRIVQ?t=8778s). This video covers a lot of possible setups (local server with VirtualBox, AWS, Digital Ocean, Azure, Linode, Google Cloud, Vultr and Oracle Cloud).
13
+
12
14
## Signing up with GCP
13
15
14
16
Sign-up 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.
@@ -33,25 +35,35 @@ Create and repeat the steps by creating a new Firewall and setting "Direction of
33
35
34
36
## Logging in for the first time
35
37
36
-
Select your instance and click "ssh" it will open a new window console. To access the root, type "sudo -i passwd" in the command line then set your own password. Log in by typing "su" and "password". Note that the password won't show as you type or paste it.
38
+
Select your instance and click "SSH", it will open a new window console. To access the root, type `sudo -i passwd` in the command line then set your own password. Log in by typing `su` and then your password. Note that the password won't show as you type or paste it.
37
39
38
-
## Setting up SSH
40
+
## Remote access via SSH
39
41
40
42
You can also refer to <https://cloud.google.com/compute/docs/instances/connecting-advanced#thirdpartytools> if you intend to access your server via third-party tools (e.g. Putty).
41
43
42
44
## You are now a sysadmin
43
45
44
46
Confirm that you can do administrative tasks by typing:
45
47
46
-
`sudo apt update`
48
+
```bash
49
+
sudo apt update
50
+
```
47
51
48
52
Then:
49
53
50
-
`sudo apt upgrade`
54
+
```bash
55
+
sudo apt upgrade -y
56
+
```
51
57
52
58
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.
53
59
54
-
To logout, type _logout_ or _exit_.
60
+
**REBOOT**
61
+
62
+
When a kernel update is identified in this first check for updates, the system might ask the user to reboot. This is one of the few occasions you will need to reboot your server, so go for it after the update is done:
63
+
64
+
```bash
65
+
sudo reboot now
66
+
```
55
67
56
68
Your server is now all set up and ready for the course!
57
69
@@ -61,4 +73,12 @@ Note that:
61
73
* You alone are responsible for managing it
62
74
* You have just installed the latest updates, so it should be secure for now
63
75
76
+
To logout, type `logout` or `exit`.
77
+
78
+
## When you are done
79
+
80
+
You should be safe running the VM during the month for the challenge, but you can **Stop** the instance at any point. It will continue to count towards the bill, though.
81
+
82
+
When you no longer need the VM, **Terminate/Destroy** instance.
83
+
64
84
**Now you are ready to start the challenge. [Day 1](https://linuxupskillchallenge.org/01), here we go!**
Copy file name to clipboardExpand all lines: docs/00-Local-Server.md
+31-15Lines changed: 31 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ Refer to [Day 0 - Get Your Own Server](https://linuxupskillchallenge.org/00) to
9
9
*[In the Cloud (with providers like DigitalOcean, Linode and Vultr)](https://linuxupskillchallenge.org/00-VPS-small)
10
10
*[In the Cloud (with providers like AWS, Azure and Google Cloud)](https://linuxupskillchallenge.org/00-VPS-big)
11
11
12
+
**TIP**: check out the walk-though in the [complementary video](https://www.youtube.com/live/_-6UYOjRIVQ?t=643s). This video covers a lot of possible setups (local server with VirtualBox, AWS, Digital Ocean, Azure, Linode, Google Cloud, Vultr and Oracle Cloud).
13
+
12
14
## It's difficult to create a server in cloud without a credit card
13
15
14
16
We normally recommend using Amazon's AWS "Free Tier" or Digital Ocean - but both require that you have a credit card. The same is true of the Microsoft Azure, Google's GCP and the vast majority of providers listed at Low End Box (<https://lowendbox.com/>).
@@ -27,7 +29,7 @@ Some will accept PayPal, or Bitcoin - but typically those who don't have a credi
27
29
28
30
You can run the challenge on a home server and all the commands will work as they would on a cloud server. However, not being exposed to the wild certainly loses the feel of what real sysadmins have to face.
29
31
30
-
If you set your own VM at a private server, go for the minimum requirements like 1GHz CPU core, 1GB RAM, and a couple of gigs of disk space. You can always adapt this to your heart's desire (or how much hardware you have available).
32
+
If you set your own VM at a private server, go for the minimum requirements like 1GHz CPU core, 1GB RAM, and 5GB of disk space. You can always adapt this to your heart's desire (or how much hardware you have available).
31
33
32
34
Our recommendation is: use a cloud server if you can, to get the full experience, but don't get limited by it. **This is your server.**
33
35
@@ -50,7 +52,7 @@ Install [VirtualBox](https://www.virtualbox.org/), when ready:
50
52
***Finish** but we're not done yet.
51
53
* The new VM should show up in a list of VMs, select it.
52
54
* Click on *Machine > Settings*
53
-
* Click on *Storage*. Right-click on Controllet IDE, click on *Optical Drive*.
55
+
* Click on *Storage*. Right-click on Controller IDE, click on *Optical Drive*.
54
56
* Select the Linux ISO you downloaded from the list if available, if not click *Add* and find it in your directories. Click *Choose*.
55
57
* Click on *Network* and change the network adapter to **Bridged Adapter**.
56
58
* Click *OK*
@@ -80,11 +82,13 @@ Use **arrow keys** and the **enter key** to select options. When you're ok with
80
82
81
83
After the first reboot, it will show a black screen asking for the `login`. That's when you use that username and password you created during the install.
82
84
83
-
Note: the password will not show up, not even `***`, just trust that is taking it in.
85
+
Note: the password will not show up, not even `******`, just trust that is taking it in.
84
86
85
87
If you need to find out the IP address for the VM, just type in the console:
86
88
87
-
`ip address`
89
+
```bash
90
+
ip address
91
+
```
88
92
89
93
That will give you the `inet`, i.e., the ip address. You will need that to connect with SSH.
90
94
@@ -94,33 +98,43 @@ If you are using Windows 10 or 11, follow the instructions to [connect using the
94
98
95
99
If you are on Linux or MacOS, open a terminal and run the command:
96
100
97
-
`ssh username@ip_address`
101
+
```bash
102
+
ssh username@ip_address
103
+
```
98
104
99
-
Or, using the SSH private key, `ssh -i private_key username@ip_address`
105
+
Or, using the SSH private key:
100
106
101
-
Enter your password (or a passphrase, if your SSH key is protected with one)
107
+
```bash
108
+
ssh -i private_key username@ip_address
109
+
```
102
110
103
-
Voila! You have just accessed your server remotely.
111
+
Enter your password (or a passphrase, if your SSH key is protected with one)
104
112
105
-
If in doubt, consult the [complementary video](https://youtube.com/live/_-6UYOjRIVQ) that covers a lot of possible setups (local server with VirtualBox, AWS, Digital Ocean, Azure, Linode, Google Cloud, Vultr and Oracle Cloud).
113
+
Voilà! You have just accessed your server remotely.
106
114
107
115
## You are now a sysadmin
108
116
109
117
Confirm that you can do administrative tasks by typing:
110
118
111
-
`sudo apt update`
119
+
```bash
120
+
sudo apt update
121
+
```
112
122
113
123
Then:
114
124
115
-
`sudo apt upgrade -y`
125
+
```bash
126
+
sudo apt upgrade -y
127
+
```
116
128
117
129
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.
118
130
119
131
**REBOOT**
120
132
121
-
When a kernel update is identified in this first check for updates, this is one of the few occasions you will need to reboot your server, so go for it after the update is done:
133
+
When a kernel update is identified in this first check for updates, the system might ask the user to reboot. This is one of the few occasions you will need to reboot your server, so go for it after the update is done:
122
134
123
-
`sudo reboot now`
135
+
```bash
136
+
sudo reboot now
137
+
```
124
138
125
139
Your server is now all set up and ready for the course!
126
140
@@ -132,9 +146,11 @@ To logout, type `logout` or `exit`.
132
146
133
147
## When you are done
134
148
135
-
Just type:
149
+
To shutdown your server while you're not using it, just type:
0 commit comments