Archive for September, 2010

Find the path of a java classes and jar file for inclusion in the classpath.

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

FacebookTwitterGoogle BookmarksLinkedInShare

No Comments

Encontrar la ruta de la clase java y su fichero jar par incluirlo en el classpath.

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

FacebookTwitterGoogle BookmarksLinkedInShare

1 Comment

Keyboard shortcuts in the terminal

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

FacebookTwitterGoogle BookmarksLinkedInShare

No Comments

how to create an install a package for solaris 10

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 # [...]

FacebookTwitterGoogle BookmarksLinkedInShare

1 Comment

how to perform operations with decimals in shell script

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

FacebookTwitterGoogle BookmarksLinkedInShare

No Comments

avoid lock of the root account

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

FacebookTwitterGoogle BookmarksLinkedInShare

No Comments

lock a user account at the third attempt failed in solaris 10

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

FacebookTwitterGoogle BookmarksLinkedInShare

2 Comments

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

FacebookTwitterGoogle BookmarksLinkedInShare

, , , , ,

No Comments

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

FacebookTwitterGoogle BookmarksLinkedInShare

,

No Comments

delegate the administration of the ssh service to a regular user

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

FacebookTwitterGoogle BookmarksLinkedInShare

No Comments