Using Command Line.
I am using /etc/X11/xorg.conf file in Ubutnu 14.04, which has below lines written in it.
Section "ServerFlags"
Option "BlankTime" "60"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
EndSection
And it is working fine in Ubuntu 14.04 but not working in Ubuntu 16.04.
Read More
Author: gintautas
Install Conky
Displaying System Details On Your Desktop With Conky System Monitor On Ubuntu:
apt-get install conky
conky -C > > ~/.conkyrc
conky
Setup VNC Server (x11vnc) on Linux Mint 18
This tutorial was adapted from self.
1. Remove the default Vino server:
sudo apt-get -y remove vino
2. Install x11vnc:
sudo apt-get -y install x11vnc Read More
Using curator to delete older elasticsearch indices
We use ELK stack heavily in our production systems for log aggregation and monitoring.
Our daily log size generated is aroudn 100GB. Since, we do not intend to keep the log files in ELK for more than a month, it becomes important that we delete those indices to free up disk space.
Fortunately, Logstash creates a new index every day by default. Read More
SSL connect error – ciphers rsa_rc4_128 only working
Problem Statement
Recently when a Linux monitoring script using CURL to monitor a https URL broke when migrated to a VM from Oracle Linux v6.7 to v6.9. This post i will try to explain the root cause of the issue and solution to fix the issue.
Read More
Postfix limit
Postfix a way to limit the frequency of brute force?
In file /usr/local/etc/postfix/main.cf place something like the following:
Code:
...
# RATE THROTTLING
smtpd_client_connection_rate_limit = 20
smtpd_error_sleep_time = 10s
smtpd_soft_error_limit = 3
smtpd_hard_error_limit = 5
...
Read More
Diplaying Logs with journalctl [CentOS7]
To simply view the logs on your system, you can execute the following command:
journalctl
This will display the logs with the oldest entries first. Although this is simple, it is not very useful since we do not tend to read logs like a book.
By default journalctl displays the logs in a pager. It shows you one page of logs requiring you to hit the space bar to proceed.
Diplaying Logs by Date Read More
Postfix mail statistics
Simple statistic every day
I tested on CentOS 7. Install pflogsumm that is Postfix mail log reporting tool. We run:
sudo yum install postfix-perl-scripts
Read More
How to Upgrade Payara Server
The answer to the question of “how do I upgrade?” is always “it depends”, because everyone’s situation is going to be slightly different. This blog will cover some of the most straightforward ways which should apply in the majority of cases.
Either of the following two methods would work in most circumstances:
Backing up and restoring the existing configuration to a new installation
Maintaining completely separate domain and node directories and pointing the new version to the existing directories Read More