Many NAT firewalls time out idle sessions after a certain period of time to keep their trunks clean. Sometimes the interval between session drops is 24 hours, but on many commodity firewalls, connections are killed after as little as 300 seconds. To avoid having your SSH sessions become unresponsive after e.g. 5 minutes, do the following:
Read More
Tag: linux
Stop monitor from going to sleep in ubuntu 16.04
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
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
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
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
How to set Java Home path [linux]
Set JAVA_HOME / PATH for a single user
Login to your account and open .bash_profile file
$ vi ~/.bash_profile
Set JAVA_HOME as follows using syntax export JAVA_HOME=
export JAVA_HOME=/usr/java/jdk1.5.0_07/bin/java Read More
Show my ip
From terminal:
ip addr show eth0 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//'
Install CentOS 7 web server
#Install ifconfig:
sudo yum install net-tools
#Other pakages:
sudo yum install nano wget htop mc net-tools curl
yum install yum-priorities Read More
CentOS grub update (Linux and Windows Dual boot)
yum install epel-release
#yum search ntfs
yum install ntfs-3g Read More