Question: Is it possible to setup a timeout for idle sessions in Solaris 10 ssh to automatically close an ssh session after a specified idle time? Answer: You can setup an idle timer on the ssh server side and this would be active for all users. There is no option to control this for individual users or on the client side. If you want to enable such an idle timeout then you have to edit the file /etc/ssh/sshd_config and set the value of ClientAliveCountMax to 0 and the value of … [Read more...] about Solaris : How to setup session idle timeout for ssh
Archives for February 2017
CentOS / RHEL : Installing and Configuring ASMLib
Oracle ASM (Automated Storage Management) is a data volume manager for Oracle databases. ASMLib is an optional utility that can be used on Linux systems to manage Oracle ASM devices. ASM assists users in disk management by keeping track of storage devices dedicated to Oracle databases and allocating space on those devices according to the requests from Oracle database instances. ASMLib consists of the following components: An open source (GPL) kernel module package: kmod-oracleasm An open … [Read more...] about CentOS / RHEL : Installing and Configuring ASMLib
CentOS / RHEL : How to find if a network port is open or not?
A TCP/IP network connection may be either blocked, dropped, open, or filtered. These actions are generally controlled by the IPtables firewall the system uses and is independent of any process or program that may be listening on a network port. Beyond the firewall, a program or process (a server or daemon) may be listening on a port or not listening. This can be checked using the netstat or ss programs. Checking to see if a port is open, blocked, dropped, or filtered at the firewall is not … [Read more...] about CentOS / RHEL : How to find if a network port is open or not?
Oracle Database : script to create a “CREATE SYNONYM Script”
The following is a script that once run will generate another script that will include all the create synonym statements for all those in the database, both private and public. Pre-requisites 1. This script must be run by a user with the DBA role. The script Running this script will in turn create a script to build all the synonyms in the database. This created script, create_synonyms.sql, can be run by any user with the DBA role or with the 'CREATE ANY SYNONYM' and 'CREATE PUBLIC … [Read more...] about Oracle Database : script to create a “CREATE SYNONYM Script”
CentOS / RHEL 6 : How to add/remove additional IP addresses to a network interface
There are two ways to add another IP address to an interface. The old way creates a new virtual interface named in the style of ethX:Y where X and Y are numbers, for instance, eth0:1. Each interface has one IP address. It appears in ifconfig output as an ordinary interface and in ip output with a label attached. The new way adds a secondary address to the main interface. So, instead of having one interface per IP address, it is possible to add many addresses to the real interface. However, … [Read more...] about CentOS / RHEL 6 : How to add/remove additional IP addresses to a network interface
CentOS / RHEL : How to install and start the Apache httpd service
Question: How to install Apache and configure Apache httpd to run as a service? Answer: Installing the Apache package If you have the apache package downloaded, you can install it using rpm command as root user. # rpm -ivh httpd If you have yum repository configured, use the recommended way of installing Apache httpd, i.e. with "yum install" command. # yum install httpd NOTE: To get a specific version replace httpd with the version you would like. Example: … [Read more...] about CentOS / RHEL : How to install and start the Apache httpd service
CentOS / RHEL : How to prevent disabled repositories from being downloaded into the yum cache
Question: How to prevent disabled repositories from being downloaded into the yum cache Answer: Yum does not fetch content from disabled repositories, but the yum cache may still hold a record of these repositories. The command "yum clean all" does not try to remove content from disabled repositories. So, to entirely get rid of them, use # rm -rf /var/cache/yum/* … [Read more...] about CentOS / RHEL : How to prevent disabled repositories from being downloaded into the yum cache
Linux / UNIX OS service : autofs
Service Name autofs Description This executes auto-mount daemon for filesystem mounting. The "auto-mount" daemon "mounts a filesystem when a client sends a request to this daemon" and "unmount it when there's no request for a long time". There are two types of automounters in Linux, autofs and AMD. AMD is implemented in user space and not a part of kernel. However, autofs is a newer system assisted by the kernel and it requires kernel lever support. As said before, autofs is implemented … [Read more...] about Linux / UNIX OS service : autofs
CentOS / RHEL : Configure yum automatic updates with yum-cron service
yum-cron is an optional package starting from Red Hat Enterprise Linux 6, this is a plugin for yum. From man page of yum-cron : yum-cron is a simple way to call yum commands from cron. It provides configuration to keep repository metadata up to date, and to check for, download, and apply updates. The yum-cron package provides a convenient way to check for, download and apply updates automatically. The cron jobs from the yum-cron package are active immediately after installing the package … [Read more...] about CentOS / RHEL : Configure yum automatic updates with yum-cron service
Linux / UNIX OS service : Bluetooth
Service Name Bluetooth Description This executes Bluetooth wireless communication daemon. Bluetooth services for service discovery, authentication, Human Interface Devices, etc. Nature The bluetooth has three daemons: # /etc/init.d/bluetooth status hcid is stopped sdpd is stopped hidd is stopped hcid - "Host Controller Interface Daemon" Manages all the Bluetooth devices. sdpd - "SDP daemon" Allows Bluetooth devices connected to the host to advertise via SDP the Bluetooth … [Read more...] about Linux / UNIX OS service : Bluetooth