This post explains how to free up space when files under /var/cache/yum is filling up the disk space. This is normal behavior as the cache would increase its size based on the frequency of syncing with the yum server. Its an administrative task provide adequate space. This should be corrected by either running: # yum […]
Archives for January 2019
How to Setup a squid proxy server on CentOS/RHEL 7
Squid is a web proxy application with a variety of configurations and uses. Squid has a large number of access controls and supports different protocols, such as HTTP, HTTPS, FTP, and SSL. In this post, we will see how to use Squid as an HTTP proxy. The Setup Squid is quite an old, mature, and […]
How to Setup VNC Server for New User in CentOS/RHEL 5
We will be setting up VNC for a new user, using the account name of john as an example. 1. Create the VNC user accounts as root: $ su – # useradd john # passwd john 2. Edit the server configuration file /etc/sysconfig/vncservers, and append john on VNCSERVERS line and set VNCSERVERARGS. # vi /etc/sysconfig/vncservers […]
How to Access VNC Server Through A Web Browser in CentOS/RHEL
This post describes how to access VNC server which is already installed and configured on a CentOS/RHEL server: vnc-server for CentOS/RHEL 5 tigervnc-server for CentOS/RHEL 6 Before starting, it is assumed that the access the VNC console via vncviewer is possible: # vncviewer [Server IP]:5901 But the below message is received when tried to access […]
Understanding the /etc/exports File
The primary configuration for the NFS server is the /etc/exports file. This is the file that you use to specify what directories you want to share with the NFS clients. The syntax of this file is: Directory hostname(options) The value of Directory should be replaced with the name of the directory you want to share […]
How To Add/Remove Locale Archive in CentOS/RHEL 5,6
Occasionally the locale archive file(/usr/lib/locale/locale-archive) does not include a locale you want to use. In this case, you need to create a new locale file, or compile the locale from existent one by: # localedef -f [charmapfile] -i [inputfile] [outputpath] for example: # localedef -f SHIFT_JIS -i ja_JP ja_JP.SJIS The warning message “not ASCII compatible, […]
How to configure the logging of failed login attempts for vsftpd
Follow the steps outlined below to configure the logging of failed login attempts using pam. 1. Please add to pam_tally2 line after system-auth or password-auth line in /etc/pam.d/vsftpd file as below : auth include password-auth auth required pam_tally2.so deny=5 onerr=fail lock_time=600 serialize account required pam_tally2.so For example : # vi /etc/pam.d/vsftpd #%PAM-1.0 #%PAM-1.0 session optional […]
“kernel: INFO: task {PROCESS}:{PID} blocked for more than 120 seconds.” – CentOS/RHEL Troubleshooting
The Problem Occasionally INFO messages are logged onto /var/log/messages such as: Apr 19 03:33:22 host kernel: INFO: task kjournald:2046 blocked for more than 120 seconds. Apr 19 03:33:22 host kernel: “echo 0 > /proc/sys/kernel/hung_task_timeout_secs” disables this message. Apr 19 03:33:22 host kernel: kjournald D ffff810001004420 0 2046 49 2476 2044 (L-TLB) Apr 19 03:33:22 host […]
How to install an RPM package into a different directory in CentOS/RHEL/Fedora
Identifying Relocatable Package Not all RPM packages can be installed into another directory. An RPM package that can be installed into a different directory is said to be relocatable. To check whether a particular package is relocatable, use the command: # rpm -qpi [rpm package] | head -1 For example, the packages: redhat-lsb-1.3-3.1.EL3.i386.rpm and rsync-2.5.7-5.3E.i386.rpm […]
How to Enable FTP in CentOS/RHEL 5 and 6
FTP is an acronym for File Transfer Protocol. FTP is used to transfer files from one computer to another on a network, usually over the internet. FTP is just one of the many different forms of cloud storage technology, but it is also a simple one that you can easily set up on your own […]