New Course of DevOps

0 Comment

Dear All, New DevOps course has been launched the latest video is posted on my YouTube Channel: www.youtube.com/linuxking Dockers Part -I Thanks, Salman

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

ACL in Linux

0 Comment

This is a quick howto setup acl on Linux. Sometimes we run into issue when we only wish to give certain user certain sets of permission and deny the rest. Simple rwx permission are not suffice in such situation therefore we use acls. Setup ACL: setfacl -R -m u:salman:rwx secret/ The above will set acl […]

SSH Issue with Cisco Switch

0 Comment

So Today i wanted to login to my old Cisco Switch 2960 from my Suse Linux when i received the following error: ERROR: Unable to negotiate with 10.1.1.1 port 22: no matching key exchange method found. Their offer: diffie-helman-group1-sha1 Note**: 10.1.1.1 is ip of my switch with username salman SOLUTION: 1) Make sure you configure […]

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