Setting up Ubuntu and GCC

 

While there are lots of flavors of Linux and lots of ways to install each of them, I think this way to go, if you're just starting with Linux and just want something light to get started with.


Ubuntu can be freely downloaded on Microsoft Store.

Just open the store and search for "Ubuntu"


Download that plain vanilla Ubuntu.

I wish I could say that this is it and you can now start using Ubuntu, but as with everything else in Linux, it's not that simple.

You'll now have to enable the "Windows Subsystem for Linux"

To do that, click on the start button and type, "Turn Windows features on or off"


After clicking on that option, scroll down and enable "Windows Subsystem for Linux" by checking on the blank box beside it


Enabling that will prompt the restart for your system, do that.

And now Finally!

Installation complete!!!

You should now see Ubuntu's icon on your start menu


When you first open Ubuntu, it will ask for a username.
Select a username and hit Enter.
It'll then ask for a password


One weird instance that you'll come across, when you type in your password for the first time, is that it won't show anything being typed. This might confuse a lot of people, but rest assured, the input is being taken. 
Type in your password (preferably something very simple) and hit Enter.
It will ask to confirm password, so type in that same password again, and then hit Enter.

With this, you've finally completed setting up your Ubuntu terminal!

Let's now start installing GCC.

I will type in a few, seemingly random, codes. Just follow the instructions for now, I'll explain the use of each command in a later blogpost

Type in 

sudo -s

You will be prompted for the password, give that and then you'll see the $ symbol change to #
This implies that you now have root access.

Now just type 

apt install gcc

This will download a few packages and voila!

You now have GCC installed, and you're now ready to run C programs!

To check if you've successfully installed GCC, type in 

gcc --version

If you come across any problems, do let me know in the comments below, and I'll try and figure out a solution and update this blog accordingly.



Previous Post : 
Next Post : Navigating Around Bash

Comments

Popular posts from this blog

Solving Sudoku

Plotly

Computing Expressions