0:07
>> Hello everyone. Welcome back to my NASA
0:09
YouTube channel. This is Johnny.
0:12
In this video I'm going to show you this
0:14
cool website codesandbox.io
0:17
and we're going to use it to create our
0:20
cloud desktop environment
0:22
by using a pre-built Docker container
0:26
web top from Linuxserver.io.
0:30
If you look down, you should be able to
0:32
see this is a Docker. We can use Docker
0:35
run and Docker compose create this
0:38
browser-based desktop environment.
0:42
The all steps has been put into this
0:44
blog post. We're going to create a four
0:48
virtual core CPU, 8 gig RAM, 1 gigabits
0:51
per second internet speed, and a 30 gig
0:57
using the free Docker resources from
1:02
The only downside is this is not
1:05
permanent. It's just 40 hours
1:08
a month, which you can use almost 1 and
1:11
1/2 hour per day. It's pretty good for
1:13
your home lab and testing. That's why
1:15
I'm recording this video to show you how
1:18
you can get it and how it looks like.
1:27
To get this free Sandbox environment,
1:31
it's very simple, straightforward. Go to
1:34
the website codesandbox.io.
1:39
Assuming you already have a GitHub
1:41
account, or you can sign in with Google
1:47
So, I'm going to sign in with Google
1:55
That's how simple it is. You can easily
1:58
get one without any registration process
2:01
as long as you have a Google account.
2:04
As you can see, you have 400
2:08
per month. That usually equal 40 hours
2:12
for your VM to use. So, that's the first
2:15
step. Once you have an account, you
2:17
should be able to get at least 400
2:19
credit. Now, let's explore the template
2:22
and then start our Docker and then
2:24
create our cloud Docker environment.
2:32
Assuming you already have an account,
2:34
you can log in and you should be able to
2:37
see this explore template.
2:41
There's a populate template window going
2:45
The one we're going to use is Docker.
2:49
So, you're going to give a name. I'm
2:50
going to give a cloud desktop.
2:54
So, for the visibility,
2:56
you can change from private to public or
2:59
to unlisted, but it doesn't matter. We
3:02
can leave it as default. Runtime, you
3:04
only have dev box this option for you to
3:08
choose. Here is the tricky part, VM
3:11
specs. So, there is the three specs for
3:16
Pico, it's one virtual CPU,
3:19
2 gig RAM, and it just only cost you
3:23
five credit. It give you 80 hours to
3:26
use. For our demo purpose, I'm going to
3:29
use a nano. Nano is using 10 credit per
3:32
hour. Since we have 400 credit per
3:35
month, so that equals 40 hours.
3:39
Let's create dev box.
3:44
So, this is our second step, create a
3:48
Docker environment. Now, from this
3:50
Docker environment, we're going to
3:51
create our cloud desktop Docker.
3:59
After follow the first two steps, you
4:02
should be able to come into
4:04
Docker environment page.
4:07
So you will see a dashboard types with
4:11
quite a few sections to show you Docker
4:17
and then the terminal, and double tools
4:21
What we are not going to do is going to
4:28
Here's a shared terminals.
4:31
We're going to create a new terminal.
4:33
You can do it from here or you can do it
4:36
You can create another
4:39
So let's create the one terminal.
4:42
In this terminal, you can see what you
4:49
So right now there's the default Docker
4:52
You don't need to touch that.
4:55
What we're going to do is we're going to
4:57
go to web top linux server.io list
5:02
page to get the command.
5:06
So there's Docker CLI or Docker compose.
5:09
To make it simple, I'm going to use it
5:11
Docker CLI. You don't need to change the
5:16
Since this is temp environment, I don't
5:21
the config path. After you remove that,
5:28
Can you shift V? You should be able to
5:31
get you copy this command in.
5:35
Of course, you need to allow the page to
5:37
paste this command in.
5:39
After you copy this in, enter.
5:42
So they couldn't find the lab image.
5:45
But that's okay. They're going to
5:46
download it. They're going to pull from
5:49
the Linux server {slash} web top
5:51
repository and then I'm putting here.
5:55
Depending on the internet speed,
5:59
it may take a couple minutes.
6:06
The downloading has completed, so they
6:08
are extracting the image now.
6:12
Once that done, they're going to bring
6:16
That's how simple it is. So in our
6:19
command, we mapped two ports here.
6:23
3,000 and 3,001. Automatically, you will
6:27
see this preview port be mapped. So we
6:30
should be able to open preview in a new
6:35
3,000 is the one we can open
6:41
So you should be able to get this page.
6:46
we can do lots of things. We have web
6:50
You can choose Chromium
6:56
So there's what's up couple things you
7:03
You can test the internet speed.
7:05
It shows 2. gig, 4.3 gig.
7:09
Sometimes you will get that. Let's wait
7:15
But occasionally, you will get higher
7:18
speed. So this time, you get a 1.6 gig
7:21
PPS internet speed. That's really good
7:26
Uploading is around 400 meg PPS. It's
7:35
You can retest it again, but that's not
7:37
needed. So you will get your public IP,
7:40
your server knows information.
7:46
To get better understanding what kind of
7:49
memory CPU usage you should be able to
8:00
and the swap size is also 4 GB.
8:03
Right now, we only used very minimum
8:08
Press Q, you can quit from here.
8:11
You also can install fast fetch.
8:14
This application to see how the system
8:17
looks like. So, we're going to do that.
8:20
So, let's get to the installation file.
8:25
And then I install it.
8:32
you can run fast fetch
8:34
to see what kind of OS, CPU, memory, the
8:39
hardware basically, the hardware
8:41
information. What's your local IP,
8:43
memory usage, swap size, CPU. Well, I
8:47
think this is very helpful environment
8:49
for your lab once you need to test in
8:51
certain things, once you need to spin up
8:54
a small or medium-sized Linux
8:57
environment with desktop, then you can
9:00
use in that. So, that's why I'm making
9:03
this video. I hope it is helpful to you
9:07
and also hope you like it. Give me some
9:10
up if you do and subscribe my channel
9:13
if you haven't. Thank you for watching
9:15
and I'll see you in my next video.