Linux

How to change date and time of a file in Linux

Just found a nice command – wanted to share it. The command is to change the creation date and time of a file in Linux.

I was looking for a command so that I can test one of my cron job which deletes files older than 60 days. But I run out of old files after running the shell script a few times.

Well here is the command.

I will create a file called myfile.log

Then change the creation date to 23-jan-2011 23:59

$touch myfile.log

$touch -t 1101232359 myfile.log

Install Java SDK 6 update 18 in Linux

This step by step guide will show you how to install Install Java SDK 6 update 18. This
guide is part of the series titled “Installing Oracle Enterprise Manager Gird Control
11gR1. The series is a step by step tutorial of installing Oracle Enterprise Manager Grid
Control 11gR1. The series is divided into the following tutorials

Install Oracle Enterprise Linux

Prepare Linux for Oracle 11gR2 installation.

Install Java SDK 6 update 18

Install Oracle 11gR2 database software

Create Oracle 11gR2 database

Configure Oracle Net for Oracle 11gR2 database

Install Oracle WebLogic Server 11gR1 (10.3.2)

Install Oracle Enterprise Manger 11g Grid Control

Continue reading

How to prepare Linux for Oracle 11gR2 installation guide

After you have installed the Oracle Enterprise Linux (OEL 5.3 x86_64) the following steps need to be run to
make your system ready for Oracle database installation.

Note that some of the steps below may not be required for your installation or may be done or decided
by another team (i.e. Infrastructure team) for you. However in most cases you will be required to
do step 1 to 5.

Step 1. Install rpms

I have installed the following rpms after installing OEL 5.3
Please remember that some kernel parameters will be changed after installing some of these rpms.
So we will change the kernel parameters in the next step. Continue reading

How to install Linux using kickstart file

This post is to share information about how to install Linux 5.3 using kickstart file.

Kickstart file: A plain text file where you specify Linux settings. This file is used by the Linux installation software to get different settings that you would have otherwise specified in GUI based installation.

Using a kickstart file is to install Linux is a silent installation.

The method I describe here will uses a USB device where I’ll put the kickstart file. Then I’ll need a Linux installation CD. For my example I am using Oracle Enterprise Linux 5.3.

Basically you will have to do the following:

1: Gather all the information about your linux settings i.e. network address, swap size etc.

2: Create a simple text file and name it something like myks.cfg

3: Save this file in a USB device

4: Ready your Linux installation CD.

5: Attach your CD and USB to the machine

6: Restart your machine

7: Intial memory/Bios check will start. Then you will get the following screen

ks1

In this screen enter the following command:

linux ks=hd:sdb1/myks.cfg

Then hit enter

Note: Depending on the type of server your USB device may be sdb1 or sdb2 or others. In my case I tried to install on various servers (DELL/HP) and it was either sdb1 or sda1.

Continue reading



Loading