Linux Command – sudo apt-get

As a newbie to Linux, I do need to search in the Internet for the command lines to be executed whenever I wanted to do something in the Ubuntu’s environment. Recently, the most commonly used command line that I used is

sudo apt-get install

I used it when I was installing the Java Development Kit JDK 8.0 for example. Then, I am curious what does the sudo means? And is the apt-get means get the application? So, I did a search in the Internet to get more understanding on these commands which I have been using it lately.

Someone wrote in his/her reply,
sudo is a shell command — it’s a program whose name you can type in the shell. Its arguments are a command to run as root, the system user with maximum privileges. (super user do)

apt-get is a shell command, part of the APT tool suite. APT is the package manager on Debian, Ubuntu, Mint and other Linux distributions. apt-get installs and maintains programs and other collections of files (data, documentation, etc.) in the form of packages. Packages are usually downloaded from repositories on the Internet, but can also be read from a CD or other media.

install, here, is a one of apt-get’s commands. It is followed by the name of one or more package to install. Other apt-get commands include remove (to remove the packages whose name follow), upgrade (to upgrade all packages for which upgrades can be downloaded), etc. The apt-get command build-dep installs all the packages that are required to install the specified package from source.

Let me include a link which I found from the Internet where someone is sharing the top 20 useful commands for Linux newbie, If you think this is not enough, I also found another link which showed the 50 most used Linux/Unix commands with examples,

Indeed, it is a new journey for myself as a newbie and a lot of learning, trials and errors, hiccups to get things done or worked. The initial fear of touching Linux has gone because I have to use it as part of my work life. Positively looking into this new transformation brought by my new working environment. At the moment, I do not have intention to completely move from Windows to Linux.

With the virtual machine tool installed, I will have more chances to deal with different operating systems. I am looking forward 🙂

MongoDB – GUI

After I finished both installation and new user creation, the next thing which comes into my mind is, does MongoDB has GUI? Coming from the MSSQL background, the SQL management tool is very useful for me and for now, I think I cannot live without it when I start learning MongoDB. I am not sure if this is a correct way of thinking and using the MongoDB. Should the MongoDB required a GUI tool to use, please advise me.

I do not have any idea which GUI is good and a search from the Internet returns Robomongo as the first link in the list. So, I think I will give a try to install it in my virtual machine and test to login using the userID and password I created and start learning and using the database.

Installation of Robomongo
The installar can be downloaded from its website and the installation is done pretty fast in Linux as usual. Then, launch the application and it first glance of look as below:

Create MongoDB Connection
The next step is create new MongoDB connection. It requires to fill up the Name of the connection and we can test the connection to port 27017 is working fine or not but clicking the ‘Test’ button.

Upon receiving the success message, we can proceed to set the authentication.

Test again the authentication and verified it is successful before we save the setting. I am not sure why whenever I connect to the database it does not prompt me for the userID and password. Is it meant to be this way? I will update on this part after my research. Stay tuned!

Ubuntu 16.04 – Unable to Set Singapore Timezone

Upon the Ubuntu 16.04 installation completion on my machine, I realized it was showing Jakarta’s timezone. I repeated the same installation in my virtual machine and it showed Los Angelas’ timezone. Oddly, it is an automatically detected from the Internet.

I tried to enter ‘Singapore’ under the Location, however, it failed to show the correct Asia/Singapore as shown below.

I became clueless why Singapore was not listed in the timezone selection. The closest timezone will be Kuala Lumpur or Johor state in Malaysia. I tried to pick the location from the map which was quite hard because Singapore is a very tiny country in the world map. I am so sorry, I could not input Singapore and I have to use Kuala Lumpur, Malaysia.

If you have the solution on this issue, kindly share with me. Thank you in advanced.

First Linux Experience

The new environment requires me to work using the Linux OS – Ubuntu. It is my first time using the Linux in my working life and it is my second time using Linux OS. The first time was during my college time when we were working on the group assignment to introduce a Linux OS. Back then, I used Suse Linux. I barely have any memories of using the command lines and it is going to be a challenge for me.

Without much knowledge, I dived into the Ubuntu installation from the flash drive on a new machine which just delivered to me this morning. However, I have mistakenly gone into the Windows environment before I started the installation from the USB

I got a help from my colleague. He tried to restart the laptop with an attempt to boot to Advanced Setup from Windows. Make sure the USB is connected to the laptop. I saw he pressed ‘Shift’ and restart.

For Windows 10, we have to change the UEFI Firmware settings to boot device from the USB. It goes into this screen and select ‘Use a device’. Select the USB to be used and the computer will now restart and boot from the selected USB drive.

Some guides can refer here too,

However, for my case, after applied the new UEFI firmware setting, it restarted and directly booted up from the USB whereby the Ubuntu installation took place. I

Since my laptop is using the Windows OS, I installed the VMware Workstation in order to allow myself to install the same Ubuntu version on the virtual machine. I feel it is more easy for my learning or do my work if I have the similar environment on my laptop.

Before I begin my setup to create new virtual machine in the VMware Workstation, I downloaded the Ubuntu 16.04 disk image from the Ubuntu website,

To create a new virtual machine, it is simple by following the step by step in the VMware. There is an online guide to follow too, I find the step by step setup is easy and fast.

If you wish to customize the setting, you can do it by clicking the ‘Customize Hardware’ button. It prompts up to the screen above. I increased the RAM to 2 GB instead of the default 1 GB and keep the default 20 GB for hard disk space.

Complete the installation with naming the virtual machine and personalized the user setting with username and password. You can choose to ‘Power On’ the virtual machine and start using it before hitting the ‘Finish’ button. This is how the Ubuntu’s interface looks like.

Everything is well setup and working fine. I pretty like the user interface with the task bar on the left, maroon in colour and simple user interface. Initially, I fear that I have to use command prompt all the way to do my work.