Tuesday, April 20, 2010

TCL - Check installed version

Already have Tcl/Tk?

Tcl and Tk come preinstalled on most Unix systems, as well as on Mac OS X, so it may well be worth a quick look.

However, if it is there, you'll want to check if you've got a recent version. To check, start Tcl/Tk (usually via running "tclsh" or "wish" from a command line), and typing "info patchlevel". This will tell you what version you're running.


CentOS / Red Hat Linux - Setup DHCP Client


Q. How do I setup my Red Hat / CentOS / Fedora Linux system to get IP address and other information via a DHCP server for eth0 interface?

A. You can edit eth0 configuration file to switch between static and dhcp networking configuration under RHEL / Fedora or CentOS Linux. Simply edit /etc/sysconfig/network-scripts/ifcfg-eth0 file.

Backup existing static configuration

First backup existing network configuration file using cp command:
# cp /etc/sysconfig/network-scripts/ifcfg-eth0 /root/ifcfg-eth0.bak

Configuring a DHCP Client

Setting up a Linux for dhcp can be done by editing file using a text editor such as vi:
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
Following is sample static configuration:
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:19:D1:2A:BA:A8
IPADDR=10.10.29.66
NETMASK=255.255.255.192
ONBOOT=yes

Replace static configuration with DHCP:
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:19:D1:2A:BA:A8
ONBOOT=yes

Save and close the file. Just restart network service:
# /etc/init.d/network restart
Please note that you need a configuration file for each device that you want to configure to use DHCP.

Storage - Drive Type and Price/GB

Friday, April 16, 2010

Microsoft Office 2007 - Create two separate Powerpoint windows

1) Create another Windows XP account to use.

2) Use the shell command RUNAS to run the other instance of PowerPoint under the other account.

Example: having created a special account "test", when logged in as existing user, and already running PowerPoint, use
[Start] [Run...] CMD, and then enter a command similar to:

C:\>
runas /user:test "c:\program files\microsoft office\office12\POWERPNT.EXE"

Voila! Another instance of PowerPoint.

Pro: you get another instance of PowerPoint.

Con: it's running under the other account, so will save files to the My Documents folder, etc. of that other account. But that could be overcome by changing the MS Office folders locations of where the Test account saves its files. You need never actually log in to Dad through the front end of Windows XP.

Wednesday, April 14, 2010

CentOS - edit /etc/fstab when at "Repair filesystem" prompt

Linux gives you a “Repair Filesystem” prompt and you can enter that by providing the root password. The problem is that on “Repair Filesystem” prompt, linux file system and rest of the file systems are generally not mounted and if mounted then it is “Read-Only” so you can not change files.

Solution:

Use following command to mount the filesystem with writable permission:

Repair filesystem # mount -w -o remount /

After this you can go and change /etc/fstab file. Restart your computer.

Storwize

For own information/referral.

The Storwize appliance consists of its Random Access Compression Engine (R.A.C.E.) running on an IBM 3650 quad core Intel Nehalem processing environment and driving a unified protocol manager supporting CIFS and NFS today.





Sunday, April 11, 2010

VMware ESXi - How to enable SSH

VMMWare ESXi is installed and started with SSH disabled. To enable it is an unsupported option, as it allows a user access to the console, operating system and associated file system.

So to get read/write access to vmfs, one needs to activate SSH on VMWare:

  • At the console of ESXi host, press Alt-F1 to access bypass the simple management window and gain access to the console window.
  • There is no prompt and no text echo, but type unsupported and hit the enter key.
  • Enter the password you’ve assigned for root.
  • A prompt of ~ # will become visible.
  • Use vi to edit /etc/inetd.conf.
  • Find the line that begins with #ssh and remove the #, and save the file.
  • Use ps | grep inetd to find the existing inetd process id.
  • Restart the process with kill -HUP id.
  • You will now have access via SSH.

After logging in, the default datastore can be found at /vmfs/volumes/DataStore1.