Day 2: Virtual Box introduction

Today we will give you a short introduction in Virtual Box so that you can find your way in the next lessons. In the previous post you have learned how to install a Virtual Catmandu and start the system. Do it now, we will show you some basic commands.02_librecatproject

Ready? You should see this screen now:

screenshot_16_11_2016_09_06

On this desktop you will find some icons we will be using a lot in the next days. Double click on the icon named ‘LXTerminal’. You will be presented with what is called a “UNIX prompt”.

Screenshot_07_11_14_10_53

In this window you will be typing in the next days UNIX and catmandu commands. Type ‘date’ in this window and press enter. You will see that the computer calculated the current UTC date.

Screenshot_02_12_14_06_37

This is what IT-pros are doing the whole day: calculating the date. Next, we can try to close this window. This you can do with the little X-icon at the top right of the UNIX prompt screen. Click it, you’ll see again the desktop.

Screenshot_02_12_14_06_37-2

The next icon we are going to try is ‘Leafpad’. Double click on it and you will presented with a text editor.

screenshot_16_11_2016_09_20

Now, in this window you don’t type UNIX commands but you will use it to create programming code. Let’s try this out! Type a nice poem in this window:

Roses are red,
Violets are blue,
Sugar is sweet,
And so are you

screenshot_16_11_2016_09_22

This is so nice that we are going to safe it as a file. To do this you need to go to the ‘File’ menu at the top and choose ‘Save As…’.

screenshot_16_11_2016_09_23

We are going to safe this text as ‘poem.txt’ in the ‘catmandu’ folder. Type this filename and choose the catmandu folder and click on ‘Save’.

screenshot_16_11_2016_09_24

Voila, the poem is saved. You can now close the Leafpad window with the little x-icon at the top right.

screenshot_16_11_2016_09_22

And we are back on the desktop.

If you want to read the poem tomorrow. You need to open ‘Leafpad’ again (hint: double-click the icon). Go to the ‘File’ menu and choose ‘Open…’

screenshot_16_11_2016_09_27-2

In the new window you see ‘poem.txt’ click on the name and at the bottom on ‘Open’.

screenshot_16_11_2016_09_28-2

As a result you will see again your poem in the ‘Leafpad’ window. Congratulations! Now that you know how to edit files you know how to edit programs. Tomorrow we will learn some UNIX commands.

Continue to Day 3: Bash basics >>

 

Advertisements

One comment

  1. Pingback: Day 1: Getting Catmandu | LibreCat

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s