LVM Disk Management on Manjaro Linux

On this tutorial I will show you how to create a Logical Volume using several disks. LVM (Logical Volume Management) is a powerful way to manage multiple disks under Linux. We can use any number of disks as on big disks. The system will see those disks as single disk. For more information you may want to read more about LVM.

Steps to create Logical Volume on Manjaro Linux

Step 1. Create Physical Volume
Step 2. Create Volume Group
Step 3. Create Logical Volume

Step 1. Create Physical Volume

Physical volume can consist of many hard disks or partitions. We can add or remove disks from the physical volume. To create a new physical volume you will need one or more hard disks connected to Manjaro. Check the disk using fdisk -l or lsblk command.
As you can see here, I have sdb and sdc as my additional hard drive that is not in use. We will create a new PV with these hard disks. On this tutorial, the entire hard disks will be used for LVM. So, I don't have to create new partitions on it.
pvcreate /dev/sdb /dev/sdc
OK now, new physical volume is ready. Make sure there are no error when executing the command above. We can continue to the next steps.

Verify the new Physical Volume
Alternatively we can also use pvs command.

Step 2. Create Volume Group

Now we can create a new volume group. Volume group contains one or more physical volume. For example, we will create a new volume group called VGTest. I will add /dev/sdb to this VGTest.
vgcreate VGTest /dev/sdb
Check the new volume group
or use vgdisplay for detailed information about the volume group on system
Extend Volume Group
In some cases we need to extend or increase the size of a volume group by adding more physical volumes. Here I will extend my previously created VGTest with /dev/sdc. We use vgextend command as follow.
vgextend VGTest /dev/sdc
Check the new volume group status
As you can see, VGTest now has 14.99 gigabyte in size after I added /dev/sdc (10 GB) to this VGTest.

Step 3. Create Logical Volume

Now we can start to create a new Logical volume. For example, I want to create a logical volume with 7 GB in size. I would use the following command:
lvcreate -L 7G -n project VGTest
The command will create a new logical volume called project inside VGTest Volume Group with 7 GB in size. You can adjust the parameter to meet your own needs.
After created a new logical volume, we can then mount and format this logical volume.
Thanks for reading, please follow this blog to get more articles like this. Cheers.

How to install Nginx on Manjaro Linux

Nginx is a lightweight web server application that can turn our Linux desktop/server into a web server. Nginx is believed to be less resource compared to another popular web server Apache. This tutorial is going to show you how to install Nginx on Manjaro Linux. To install Nginx on Manjaro is very simple. 

Steps to install Nginx on Manjaro Linux

Open Terminal and type the following command
sudo pacman -Syu
sudo pacman -S nginx

Start Nginx Service
sudo systemctl start nginx
Stop Nginx Service
sudo systemctl stop nginx
Enable Nginx on boot
sudo systemctl enable nginx

Thank you

Manjaro Xfce 17.0 Beta 1 Screenshots Tour

The new version of Manjaro now hits version 17.0 Beta 1. This is another rolling release of Manjaro Linux. There are many interesting features come with this new Manjaro 17.0. Its powered by Linux 4.9.5, Xfce 4.12 and some other updated software.

The Desktop
Manjaro 17.0 brings new wallpaper to its default desktop. Its a kind of material wallpaper that looks awesome to the desktop.

Some new wallpapers also added to Manjaro 17.0

Pamac Software Manager
The software manager in Manjaro also gets update. Now it shipped with Pamac 4.1.8.

The Thunar File Manager

Installed Applications
Not many applications installed along with 1 GB Live ISO. Midori web browser, qPDF are the only application that can be found inside Internet and Office category. But I don't think its a big problem since Pamac Software Manager is there to install any applications we need.

Pix Image Viewer, simple and useful image editor on Manjaro

Pix is a nice, simple Image Viewer and Editor that comes with Linux Mint 18.1. It comes with pretty simple user interface but its very easy to use. Pix 1.2.1 can be installed through Manjaro Pamac software manager.

Pix Image Viewer was developed based on gThumb Image Viewer. The browser mode will display image thumbnails of any images found on the selected folder. The detailed metadata of the selected image will be displayed on the left panel. We can also configure the layout of the main window as well.

pix on manjaro 1

We can easily add comment, title, date and some other information to our images. This is a useful tool to better manage and tag your picture collections.

pix on manjaro 3

The basic tool such as rotate, resize, convert to other format can be reached from the Tools menu on Pix main window. It can instantly export your current image to other format such as PNG, JPG, Tiff, TGA and WebP image.

pix on manjaro 4

The resize menu offers a basic resize mode.

pix resize

Double click an image to enter the full screen mode where we can use Page Up and Page Down button for navigation.

pix on manjaro 2

Edit Image with Pix Image Viewer

Now lets try the image editing feature on this application. Click the Edit button on the top right to open the edit menu where you can find some adjustment tools. Unfortunately there is no slider for the contrast menu, so we cannot change it manually.

pix editor

Install Pix on Manjaro

sudo pacman -S pix

In my case, I also install clutter-gtk to run Pix properly.

sudo pacman -S clutter-gtk


How to connect to MariaDB Server on Manjaro

Hello Manjaro users, now we will learn how to connect to our MariaDB server from command line. This simple tutorial will show you how to connect to local MariaDB Server via Terminal command line. After we log in, we can do many things but at this time I will show you how to connect. In the future, I will show you more. 

Log in to MariaDb server via Terminal

mysql -u root -p
The command will log in as root user. 

Install OwnCloud Client on Manjaro 16.10

Install OwnCloud Client on Manjaro 16.10-Owncloud Client is the Desktop sync application that is needed to synchronize the Owncloud server with local computer. This tutorial is going to show you how to install Owncloud Cleint on Manjaro 16.10. Owncloud Desktop Sync Client is available on Manjaro repository.

Step to install Owncloud Client on Manjaro

Step 1. Open Add/Remove Software
Step 2. Type owncloud on the search box
Step 3. Select owncloud-client from the list
Step 4. Press Apply to confirm the installation

Once the installation completed, run Owncloud client to configure the remote Owncloud server.