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 […]
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 […]
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 […]
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 […]
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 […]
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. […]
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, […]
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 […]
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 […]
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 […]