How to install MongoDB Community Edition on Ubuntu Server 18.04

MongoDB is one of the most popular NoSQL database management systems. It is known for it’s simplicity, wide adoption and high scalability. That is why in this article we’ll show you the basics of installing a Mongo server on your cloud machine.

Installing Mongo on Ubuntu has some prerequisites. The packages available in the Ubuntu repositories are very outdated. So you’ll first need to add the official MongoDB repositories. Read More

How to create a temporary file in Linux shell

Sometime you just need to quickly put down something in a temporary file. And as easy as it seems to just type in some file name like ‘test’, ‘test1’ and so on, this soon becomes wasteful and impractical.

In this article we’ll show you a bit more professional and programmable way to create temporary files in Linux usin ‘mktemp’. Read More

How to find Java version in Linux

In the recent years Java is one of the most popular technologies including in the world of Web. In this article we’ll start with something fairly simple – how to check which is the currently installed version of Java in a Linux environment.

If you have either the JRE (Java Runtime Environment) or the JDK (Java Development Kit) you will have the java command present. Read More

How to setup a logical volume with LVM on Ubuntu Server Linux

Logical Volume Manager or LVM is great tool for managing your scalable cloud storage. It’s simple yet powerful. You can use it to setup a single volume like we’ll show you in this article, but you can also make far more complex structure combining multiple storage drives, adding redundancy or just scaling out your storage on the fly.

In this tutorial we’ll start with an easy setup. We’ll create a single logical volume from one physical drive – /dev/sdb.

Let’s start by creating an LVM physical volume from /dev/sdb:

pvcreate /dev/sdb

Using the physical volume we’ll create the volume group data01. Although it currently consists of only one physical volume, physical groups let us easily add more drives on a later stage and expand the logical volume.

vgcreate data01 /dev/sdb

And the third and final step creating the logical volume data-vol01. We create it using 100% of the space available in the volume group data01.

lvcreate -l 100%FREE -n data-vol1 data01 /dev/sdb

Once we have a logical volume it’s just a step before we can start keeping data on it, so let’s add an file system and mount it in the /media directory just to check it:

mkfs.ext4 /dev/data01/data-vol1

mount /dev/data01/data-vol1 /media

This simple LVM setup shows that it’s quick and easy to start managing your additional storage drives. By adding more storage to your servers LVM will be one of your best friends to manage and keep your data. Keep an eye on CloudBalkan Blog for more articles related to LVM.

Install Gitlab on Ubuntu Server 18.04

Gitlab is one of the most popular version control, issues management and CI systems today. Based on Git for the version control, GitLab adds a plenty of tools, integrations and a beautiful graphical interface to manage your your projects and tasks. Often reffered as an self-hosted alternative to the popular service Github.com, Gitlab is actually a well developed and supported project. Gitlab CE is the community edition and is openly deployed as a self-hosted solution. Read More