Starting Go Programming Language.

Starting with the Go programming language from google.
This part is about installing Go and setting up the environment.

1. Download and Install Go from here
– after the installing, open cmd/terminal and type go. if you get the go help message, go is successfully installed.

2. Install VSCode
a. download and install
b. install “Go” Extentiion

c. Install Analysis Tools form the bottom right corner

E: Could not get lock /var/cache/apt/archives/lock

i wanted to upgrade my system so used a few commands to do that

# apt-get update
# apt-get upgrade
# apt-get dist-upgrade

but because of low space, my vm stopped suddenly/crashed. Now when i opened it again and tried the commands again. i got the error in the heading. The system was not able to get a lock on apt.
There can be other similar lock issues as well which i got on removing the first one.

E: Could not get lock /var/cache/apt/archives/lock
E: Could not get lock /var/lib/apt/lists/lock
E: Could not get lock /var/lib/dpkg/lock

So this happens because while i want to run the apt command, but already some process behind the scenes has a lock on the resources and while we are sure that we haven’t run anything now or nothing is being run under the hood, the resources are still locked. That is because the last time when system was halted abruptly, i wasn’t able to completely release the resource and now it still has a lock on it.
But then again, there might actually be some other processes running behind the scenes.

1. To close any processes running behind the scenes –
a. search for any running process and kill it:

# ps aux | grep -i apt
# killall apt-get

b. go ahead and remove the loc files

# rm /var/lib/apt/lists/lock
# rm /var/lib/dpkg/lock
# rm /var/cache/apt/archives/lock

c. Configure the dpkg again

# dpkg --configure -a

Problem Sovled!

Step 1: Finding a course that can guide a beginner..

The Complete Ethical Hacking Course: Beginner to Advanced! 

I found a great youtube video (16hrs, 1 video) and that guy had a free course link for hacking also. So when i am learning about linux and stuff (thats how beginners talk since they do not know whats actually in the “stuff” part) i thought that this might be a good course to get started and learn some cool stuff along the way. (just installed kali linux in virtual box till now).

There is also a very good website that i found, but that will be on some other post since i really and not going through it as i don’t want to do too many things in 1 go.

Good Day.