Category: OS

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: , , , , , , , ,

Convert pkcs12 key to bks format for Android

0 Comment

Dear Reader, If you ever want to convert a pkcs12 format key to bks format for Android follow the below instructions. First of all downlaod bcprov-jdk16-1.46.jar file [root@itpings certs]# wget http://repo1.maven.org/maven2/org/bouncycastle/bcprov-jdk16/1.46/bcprov-jdk16-1.46.jar –2017-06-30 17:05:40– http://repo1.maven.org/maven2/org/bouncycastle/bcprov-jdk16/1.46/bcprov-jdk16-1.46.jar Resolving repo1.maven.org (repo1.maven.org)… 151.101.32.209 Connecting to repo1.maven.org (repo1.maven.org)|151.101.32.209|:80… connected. HTTP request sent, awaiting response… 200 OK Length: 1876535 (1.8M) [application/java-archive] Saving […]

Tags: , , , , ,

How to Bring back eth0 on CentOS 7 ( No Dynamic Ethernet Names)

0 Comment

To Install CentOS 7 without dynamic Ethernet names such as enps2001 use the following technique. Edit the grub file Go to /etc/default/grub and add the following lines In front of /root add the following biosdevname=0 net.ifnames=0 Then issue the following command grub2-mkconfig -o /boot/grub2/grub.cfg Reboot the machine and you will see eth0 and eth1 instead […]

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: , , , , , , , , , , ,