Sunday, June 15, 2008

Software Management with RPM

Quick Tips

rpm
-qa <-- list all packages (a)
-qi < --list package information (i)
-ql <-- list package files (l)
-qf <-- list package that owns the file (ex. rpm -qf /etc/inittab)
-V <-- file Verification
-ivh <-- new install
-Uvh <-- Update -F <--Freshing. Package willl be updated ONLY if already installed else ignored.
-E < --Erase

Wednesday, June 11, 2008

To upload files to Oracle's FTP server

To upload files to Oracle's FTP server

ftp ftp.oracle.com
login as anonymous/your-email
cd support/incoming/
mkdir
binary
put

Reference:
Note 415691.1 - How to access Oracle's FTP server? Standard (FTP) and secure options (FTPS)
Note 464666.1 - How to Send a File to The Support Through ftp.oracle.com

Sunday, June 08, 2008

CentOs

This summary is not available. Please click here to view the post.

Wednesday, June 04, 2008

Linux Remote Desktop

Query Package Installed
$ rpm -q -a |grep rdesktop
rdesktop-1.3.1-5

OS Release
$ lsb_release -a
LSB Version: :core-3.0-ia32:core-3.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch
Distributor ID: CentOS
Description: CentOS release 4.6 (Final)
Release: 4.6
Codename: Final

Install package
$ rpm -i

Connect to Remote Desktop
$ rdesktop -g 90% ws-jax-mydesktop-xx

Friday, May 30, 2008

How to get Yesterday date in UNIX

During a session, sometimes we have a need to change the system time for our session
only. We have used it to simulate time based testing.

export TZ=ESThhEDT

The EST set your time to Eastern
Standard Time and EDT is Eastern
Daylight Time.

hh is the number of hours you wish to change.

Example: Currently the system
date is Tue Jun 19 13:38:03 EDT 2001

and you wish to set it to yesterday at the same time. You would substitute a positive
29 for hh.

export TZ=EST29EDT

Now the shell time is:
Mon Jun 18 13:38:50 EDT 2001

WHY 29 and not 24? The main UNIX clock is set from GMT not EST therefore you have to add 5 hours to your backward calculations to get the same exact time since EST is
GMT - 5 hours.

Use negitive numbers to set the clock into the future.

Also if you need to set the minutes and seconds it is hh:mm:ss. These are all the
number of hours, minutes and seconds from GMT that you wish to set.