October 2016
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Categories

October 2016
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  

rhel7: Message “Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached” is coming on system after setting the hostname

hostnamectl set-hostname <hostname> Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24) Also other commands fail:

[root@rhel7u2a ~]# systemctl restart sshd Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Activation of org.freedesktop.PolicyKit1 timed out (g-dbus-error-quark, 20) [root@rhel7u2a ~] # Resolution The permissions should be […]

NFSv4 mounts show “nobody” as owner and group on a RHEL 6 client

Issue

On Red Hat Enterprise Linux a NFS mounted share shows “nobody” as the owner and groupowner of all the files and directory. Resolution Create the same user on the Server and Client Use a centralized namespace like LDAP domain, NIS, Active Directory etc Root Cause

The observed behavior is an expected and intended behavior […]

XFS Filesystem has duplicate UUID problem Administration

XFS Filesystem has duplicate UUID problem Administration If you can not mount your XFS partition with classical wrong fs type, bad superblock etc. error and you see a message in kernel logs (dmesg) like that:

XFS: Filesystem sdb7 has duplicate UUID – can’t mount you can still mount the filesystem with nouuid options as below:

[…]

Lsyncd on CentOS 7 & RHEL 7

Lsyncd stands for “Live Syncing Daemon“, as the name suggest lsyncd is used to sync or replicate files & directories locally and remotely after a specific time of interval. It uses Rsync & ssh in the backend.

Lsyncd works on Master and Slave architecture where it monitors the directory on the master server, if any […]

CentOS 7 – Create CentOS 7 Mirror

CentOS 7 – Create CentOS 7 Mirror

The tutorial below will show you how to configure a CentOS 7 server with Nginx to act as a mirror for other CentOS 7 servers. Steps First we need to update and install all the necessary packages. yum update yum install -y createrepo rsync nginx Now we need […]

MySQL Enterprise Backup (MEB)

MySQL Enterprise Backup (MEB) has the capability to make real incremental (differential and cumulative?) backups. The actual releases are quite cool and you should really look at it…

Unfortunately the original MySQL documentation is much too complicated for my simple mind. So I did some testing and simplified it a bit for our customers…

[…]

Compiling and Installing Linux kernel from Source

Compiling and Installing Linux kernel from Source

As you many know, Kernel 4.x.x has been released with tones of changes and enhancements. We all know new kernel always have latest drivers, support for new devices, new features, filesystem enhancements.The feature that all Linux IT guys awaits for, yes it’s Live kernel patching permit a user […]

AWS Services

Amazon Web Services is widely used IaaS platform. AWS offer approx 55 services and mastering each services is very difficult. Some services is made for Network engineers, some for developers, and some for both. But we can have a brief look here about each services and what they are for. Let’s have AWS Services Overview

[…]

Install Tomcat 9 on Centos 7

Install Tomcat 9 on Centos 7

cd /opt/ wget –no-cookies –no-check-certificate –header “Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie” “http://download.oracle.com/otn-pub/java/jdk/8u101-b13/jdk-8u101-linux-x64.tar.gz” tar -zxvf jdk-8u101-linux-x64.tar.gz alternatives –install /usr/bin/java java /opt/jdk1.8.0_101/bin/java 2 alternatives –config java java -version vi /etc/profile.d/java.sh export JAVA_HOME=/opt/jdk1.8.0_101 export JRE_HOME=/opt/jdk1.8.0_101/jre export PATH=$PATH:/opt/jdk1.8.0_101/bin:/opt/jdk1.8.0_101/jre/bin chmod +x /etc/profile.d/java.sh source /etc/profile.d/java.sh export

cd /usr/local wget http://www.us.apache.org/dist/tomcat/tomcat-9/v9.0.0.M1/bin/apache-tomcat-9.0.0.M1.tar.gz wget http://download.nus.edu.sg/mirror/apache/tomcat/tomcat-9/v9.0.0.M11/bin/apache-tomcat-9.0.0.M11.tar.gz tar -zxvf apache-tomcat-9.0.0.M11.tar.gz cd apache-tomcat-9.0.0.M11 […]

Linux server security configuration of Nginx

Under Linux server security configuration of Nginx

1, some common sense under Linux, you want to read a file, you first need to have execute permissions for the folder where the file, and then you need to read permissions on the file.

Execute permissions php files do not need the file, you only need read […]