In this tutorial we will show you how to install Apache, MariaDB, and PHP on FreeBSD 11. If you don’t know FAMP is the acronym of FreeBSD, Apache, MySQL/MariaDB, PHP. FreeBSD 11 is the latest version right now when this article was made. Prerequisites Before you begin with this guide, you should at least have […]
Archives for July 2019
How to configure apache virtual host on ubuntu
In this tutorial, we will guide you to configure the apache virtual host or vhost on ubuntu 16.04. Using virtual host allow the administrator to use one server to host multiple domains or sites off of a single interface or IP by using a matching mechanism. Basically, you can you one IP address to server […]
How to Clone Linux disk partition over network using dd
In this tutorial, we will show you how to clone Linux harddisk partition over a network, in this tutorial we will use dd command. For the guys who don’t know what dd is – it is a command-line utility for Unix and Unix-like operating systems whose primary purpose is to convert and copy files. Clone […]
“passwd: Module is unknown” – error while changing the password in CentOS/RHEL 6
The Problem While changing password using the passwd command, the following error appears: “passwd: Module is unknown” The Solution There is a unknown PAM module pam_pwquality.so in /etc/pam.d/system-auth file. The pam_pwquality.so module should be used in CentOS/RHEL 7 rather than CentOS/RHEL 6. # cat /etc/pam.d/system-auth # This file is auto-generated. # User changes will be […]
How to Switch Password Algorithm on CentOS/RHEL
Question: How to change the password hashing algorithm on a CentOS/RHEL system. 1. Check to current hashing algorithm : # authconfig –test| grep hash password hashing algorithm is sha512 2. Change default password hashing algorithm : # authconfig –passalgo=md5 –update or # authconfig –passalgo=sha5 –update Note : The new algorithm in passwd/shadow files will apply […]
fprintd Logs Messages into /var/log/messages Even If USEFPRINTD=no in /etc/sysconfig/authconfig (CentOS/RHEL 7)
The Problem Error messages from fprintd service lsuch as those below are logged even in the case USEFPRINTD=no has been configured into /etc/sysconfig/authconfig. Jan 22 13:58:09 hostname dbus[914]: [system] Activating via systemd: service name=’net.reactivated.Fprint’ unit=’fprintd.service’ Jan 22 13:58:09 hostname dbus-daemon: dbus[914]: [system] Activating via systemd: service name=’net.reactivated.Fprint’ unit=’fprintd.service’ Jan 22 13:58:09 hostname fprintd: ** (fprintd:45376): […]
How To Access Kubernetes Dashboard Externally
Following is an alternative workaround to access Dashboard externally. 1. kubernetes-dashboard is a service file which provides dash-board functionality, to edit this we need to edit dashboard service and change service “type” from ClusterIP to NodePort: [root@kubeXXXX]# kubectl -n kube-system edit service kubernetes-dashboard # Please edit the object below. Lines beginning with a ‘#’ will […]
New User Failed Run Kubectl with Error “The connection to the server xxx.xxx.xxx was refused – did you specify the right host or port?”
The Problem When run kubectl from a new created user, failed with error: The connection to the server xxx.xxx.xxx was refused – did you specify the right host or port? The Solution A newly created user has no KUBECONFIG configured. Setup kubernetes configuration for the new user: # mkdir -p $HOME/.kube # sudo cp -i […]
How to schedule master node running pod/service as a worker node
Question: How can I schedule master node running pod/service as worker node? By deafult, only worker node could run the pod, master only response for the scheduler/configuration. $ kubectl get nodes -o json | jq .items[].spec.taints [ { “effect”: “NoSchedule”, “key”: “node-role.kubernetes.io/master” } ] $ kubectl get nodes -o json | grep master “node-role.kubernetes.io/master”: “” […]
Endpoint is not Created for Service in Kubernetes
The Problem Endpoints shows ‘none’: $ kubectl get svc NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kubernetes ClusterIP 10.yy.0.1 <none> 443/TCP 9d test ClusterIP 10.xx.97.97 <none> 6379/TCP 21s $ kubectl describe svc test Name: test Namespace: default Labels: <none> Annotations: kubectl.kubernetes.io/last-applied-configuration: {“apiVersion”:”v1″,”kind”:”Service”,”metadata”:{“annotations”:{},”name”:”test”,”namespace”:”default”},”spec”:{“clusterIP”:”10.xx.97.97″,”… Selector: app=test Type: ClusterIP IP: 10.xx.97.97 Port: <unset> 6379/TCP TargetPort: 6379/TCP Endpoints: <none> Session […]