Author Archive

Configuration files and what they do

/etc/profile System wide environment variables for
all users.
/etc/fstab List of devices and their associated mount
points. Edit this file to add cdroms, DOS
partitions and floppy drives at startup.
/etc/motd Message of the day broadcast to all users
at login.
etc/rc.d/rc.local Bash script that is executed at the end of
login process. Similar to autoexec.bat in
DOS.
/etc/HOSTNAME Conatins full hostname including domain.
/etc/cron.* There [...]

Installing software for Linux

rpm -ihv name.rpm Install the rpm package called name
rpm -Uhv name.rpm Upgrade the rpm package called
name
rpm -e package Delete the rpm package called
package
rpm -l package List the files in the package called
package
rpm -ql package List the files and state the installed
version of the package called
package
rpm -i –force package Reinstall the rpm package called
name having deleted [...]

Accessing & mounting file systems

mount -t iso9660 /dev/cdrom
/mnt/cdrom
Mount the device cdrom
and call it cdrom under the
/mnt directory
mount -t msdos /dev/hdd
/mnt/ddrive
Mount hard disk “d” as a
msdos file system and call
it ddrive under the /mnt
directory
mount -t vfat /dev/hda1
/mnt/cdrive
Mount hard disk “a” as a
VFAT file system and call it
cdrive under the /mnt
directory
umount /mnt/cdrom Unmount the cdrom

Linux machine Starting, Stopping and restart

shutdown -h now Shutdown the system now and do not
reboot
halt Stop all processes – same as above
shutdown -r 5 Shutdown the system in 5 minutes and
reboot
shutdown -r now Shutdown the system now and reboot
shutdown -r -F now   Force fsck on reboot.
shutdown -r -f now   skip fsck on reboot.
reboot Stop all processes and then reboot – [...]

Replace word from multiple files in linux/unix using grep and perl

for single file.
perl -pi -e ’s/OLDCHAR/NEWCHAR/g’ filename.txt
For multiple files.
grep -R –files-with-matches ‘OLDCHAR’ . | sort | uniq | xargs perl -pi~ -e ’s/OLDCHAR/NEWCHAR/g’
Thanks,
Jayesh

Installing Apache 2.2.11 with Weblogic 10.3 on Ubuntu 9.04 64 bit

This post takes you through the steps to install Apache 2.2.11 on Ubuntu 9.04 64 bit and make it work with Weblogic 10.3. The post walks through the steps that I followed, the problems that I faced and the solutions ( er..hacks) to get them resolved.
Installing Apache

Is simple do

sudo apt-get install apache2
If [...]

Solaris service management

The Service Management Facility (SMF) is a core component of the new Predictive Self-Healing set of technologies introduced in Solaris 10. With SMF, system administrators can use simple command line utilities to easily identify, observe, and manage both the services provided by the system and the system itself.
A Solaris service is [...]

Health Tips for keeping healthy heart. :-)

Health Tips.

What is SNMP? how to use SNMP?

This is a brief documentation on using the google-provided MIBs for GSA (Google Search Appliance). This can also be used as a reference to monitor any SNMP enabled device.
Terminologies:
—————
SNMP: SNMP stands for Simple Network Management Protocol and consists of three key components: managed devices, agents, and network-management systems (NMSs). A managed device is a node [...]

How to check the installed mod_jk version

If you have that already installed then if you have enable mod_jk log then you can check from that log file or you can do
http://Your_SERVER/ApplicationURL/SomeFOLDER/@#@#CS<>>$#$#$%
You will get internal serever error over there at the bottom you will get the mod_jk version with apache version.
e.g.
Apache/2.0.59 (Unix) mod_jk/1.2.28