Archive for September, 2010
Find the path of a java classes and jar file for inclusion in the classpath.
Posted by Julio Sanchez in Java, QuickTip on September 17, 2010
Before beginning I must thank my colleague Miguel Angel Jimenez (Instructor JAVA) to create a simple but practical example of Java code that demonstrates the usefulness of this script. Some time ago I asked this script to speed up searches for java classes inside the jar files, including information on the path to the desired [...]
Encontrar la ruta de la clase java y su fichero jar par incluirlo en el classpath.
Posted by Julio Sanchez in Java, QuickTip on September 17, 2010
Lo primero debo dar las gracias a mi compañero Miguel Ángel Jiménez (Instructor de JAVA) por crear un ejemplo práctico pero sencillo de código JAVA que demuestra la utilidad de este script. Hace tiempo que me lo pidió para agilizar las búsquedas de clases java dentro de los ficheros jar, incluyendo la información de la [...]
Keyboard shortcuts in the terminal
Posted by Julio Sanchez in QuickTip on September 17, 2010
Enable emacs functionality in the shell, if not already selected. root@solaris # set -o emacs CTRL + a -> Move cursor to the beginning of the line. CTRL + e -> Move cursor to the end of the line. ESC + b -> Move cursor to the benning of the previous word. ESC + f [...]
how to create an install a package for solaris 10
Posted by Julio Sanchez in Solaris on September 17, 2010
The idea is to automate the installation of an application that will run in solaris 10 using packets with the advantages that entails when: install it on multiple machines, not forgetting to delete any file, checking if installed correctly, …. 1. Create a file that indicates the absolute path of files to install: root@solaris # [...]
how to perform operations with decimals in shell script
Posted by Julio Sanchez in QuickTip on September 14, 2010
As bourne shell (sh) does not know how to work with numbers, is required to invoke unix expr to work with integers. Both korn shell (ksh) and Bourne Again Shell (bash) include arithmetic operations but only to work with integers. To work with decimal numbers in arithmetic operations can be invoked from our script to [...]
avoid lock of the root account
Posted by Julio Sanchez in Networking/Security, QuickTip on September 13, 2010
In the last post we saw how to enable account lockout after multiple failed login attempts, but if the account is locked is the root can be a big problem. The idea is that blocking is not applied to the root account and it launched the following command: root@solaris # usermod -K “lock_after_retries=no” root easy, [...]
lock a user account at the third attempt failed in solaris 10
Posted by Julio Sanchez in Networking/Security, Solaris on September 10, 2010
To enable this feature edit the file /etc/security/policy.conf and change the last line with the following content: root@solaris # vi /etc/security/policy.conf … LOCK_AFTER_RETRIES=yes Default user accounts were locked at the fifth attempt and we must change to occur at the third attempt. This configuration is in the line RETRIES in the file /etc/default/login, which default [...]
28 de Octubre: Día de la Certificación (certification day)
Core Networks y Oracle University organizan la primera edición del Certification Day en tecnologías Oracle/Sun en Iberia. Las certificaciones de Oracle son credenciales reconocidas por la industria que pueden ayudarte a tener éxito en tu carrera de TI y mejorar el rendimiento de tu empresa. El Certification Day supone una oferta técnica y económica única [...]
ShellScript: Interesting command this ‘tput’
Making shell scripts, sometimes, require some visual presentation. Maybe you need make letters bold, or use a white background. Maybe we want to write in a precise position of the screen. For this worthless activities, I found ‘tput’. tput is a quite simple command which comes with a basic Solaris installation. I reads termcap database [...]
delegate the administration of the ssh service to a regular user
Posted by Julio Sanchez in Solaris on September 9, 2010
As only root can run svcadm command, with RBAC could create a profile with this command and assigned to a regular user, but could work on any service and just want to give it control of a particular service, the ssh. So this is not a valid solution. To solve this problem we have the [...]

Core Networks
Oracle University