Tag: Linux

Sharing a Folder among Two FTP users

0 Comment

This might be a very simple article for many people but for some it holds the key for a very good & stable solution. Scenario: Two users who want to share a folder and upload data. “User A” and “User B”. They are both restricted to their home directories when they connect with FTP. The […]

Tags: , , , , , , ,

Encrypt/Decrypt File with Vim Editor

0 Comment

In this howto we will see how to encrypt and decrypt a file with Vim editor. Lets Encrypt a file: linux-06ac:/opt # vim -x encryptedfile.txt Warning: Using a weak encryption method; see :help ‘cm’ Press ENTER or type command to continue Now Press enter and it will ask you to set a password. Enter encryption […]

Tags: , , , , , , ,

HowTo Mount 8TB USB in CentoS 7 Server.

0 Comment

This howto is about “How To mount 8TB External USB” in CentOs 7 server. # yum – y install epel-release # yum -y install ntfs-3g # lsblk sdc 8:32 0 7.3T 0 disk └─sdc1 8:33 0 7.3T # mount -t ntfs /dev/sdc1 /mnt/ # ls -ltr /mnt You will see it’s mounted. Thanks, Salman A. […]

Tags: , , , , , ,

How to Install PhPMyAdmin on Centos 7 from source

0 Comment

Dear Friends, First of all we will install required repositories. [root@itpings opt]# yum -y install epel-release [root@itpings opt]# rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm Now we will install apache, mariadb, mariadb-server and php56 [root@itpings opt]# yum -y install httpd mariadb mariadb-server php56w php56w-mbstring php56w-mysql php56w-soap unzip vim wget Once installed we will download phpmyadmin from phpmyadmin.net [root@itpings opt]# […]

Tags: , , , , , , ,

How to Add Physical Disk to Increase Size of /dev/mapper/centos-root

0 Comment

Dear Friends, I ran into a problem where my openstack machine ran out of space. My Logical FS /dev/mapper/centos-root was only 50GB and most of the space was lost. Solution: LVM I Added a new 500GB HDD (sdb), created partition with parted (sdb1) and gave the below commands: [root@stack opt]# pvcreate /dev/sdb1 Physical volume “/dev/sdb1” […]

Tags: , , , , , , , ,

Linux Tips ( grep the text without hashes and blank lines )

0 Comment

In our second post of linux tips i would like to share a very simple example in which i will use grep tool to remove all the hashes and blank lines from a file. In our example we will use file1.txt with the following content linux-11oz:/test # cat file.txt #The file with hashes ### #### […]

Tags: , , , ,

Linux Tips ( chmod tip )

0 Comment

Hey Guys this is going to be a new series of posts in which i will be sharing some cool linux tips.  You can watch the video of this post on http://www.youtube.com/linuxking So here is the first tip Chmod: I hope you guys are already familiar with chmod command if not checkout my Youtube “Linuxking” […]

Tags: , , ,

Recovery of the File System from Disaster

0 Comment

Hey Guys, long time no see…Well i am back and this time the issue is File System. What Happened ? Well My Backup Server’s root partition ran out of space due to some issue, and since it was on LVM (Logical Volume Manager) i took some space from my /home partition (it was 400 GB […]

Tags: , , , , , , , , , , ,

Linux Practical Security Course

0 Comment

Dear Members , I am happy to announce that Linux Practical Security by LZH Project is complete. We will launch it shortly. Please support us by buying and rating this course. For first 20 buyers there will be a discount of $5. Total cost is $25. You can also book your copy by sending me […]

Tags: , , , ,

Openstack dashboard gives error “Error: Unable to retrieve information”

0 Comment

So today i ran into one more issue with Openstack , the error showed up  when i logged in to the dashboard and clicked on Project–>Instances. What i saw terrified me because is saw “NOTHING” ! A day before i had the same issue and i thought it’s related to RAM so i restarted and […]

Tags: , , , , ,