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.

Thursday, April 8, 2010

Enable Remote Desktop Connection (RDP) to Windows 2003 Domain Controller (DC)

To enable RDP to DC, perform the following:
1) Go to Terminal Services Configuration
2) Go to Connections, then RDP-TCP properties
3) Go to Permissions, then add the Group/User

Monday, April 5, 2010

EMC Celerra Character encoding for NFS

Enabling Unicode support for EMC Celerra

The Celerra Network Server supports clients in environments that use multibyte character sets. Multibyte character sets are supported by enabling universal character encoding standards (Unicode). The Celerra Network Server also supports the UTF-8 specification for character encoding, as required by NFSv4. For UTF-8 clients, file and directory names are stored as received, preserving the case of file and directory names, and no translation is required. For non UTF-8 clients, file system object names are translated to the UTF-8 specification.

Note: File systems that are not Unicode-enabled should be converted to Unicode before exporting them to NFSv4 clients. In addition, the Celerra character encoding method must be changed from the default to UTF-8.

Editing the xlt.cfg file

The xlt.cfg file defines how the Celerra Network Server should translate file and directory names for NFS and/or FTP clients into Unicode. It specifies the character mapping file(s) that should be used and allows you to configure all Data Movers to use either the same encoding or different encoding formats for different segments of your network.

NFSv4 requires UTF-8 for character encoding. By default, a Celerra system is configured to use ASCII Latin-1 character encoding. Before accessing data through NFSv4 clients, you must change the character encoding method to UTF-8 in the
/nas/site/locale/xlt.cfg file.

xlt.cfg file
The
xlt.cfg file is an ASCII text file. It contains a series of text strings, each consisting of up to six fields, that define the required client encodings to translate file/directory names into Unicode format.

The
xlt.cfg file is automatically installed in the /nas/site/locale directory during Celerra Network Server software installation. When configuring Celerra Network Server for Unicode, you issue the /nas/sbin/uc_config -update command to copy the contents of /nas/site/locale to
/.etc_common/xlt. This allows Data Movers to access xlt.cfg, if required, to complete the requested translations.

The format of text strings in xlt.cfg is as follows:
::

:::

uc_config command
uc_config
is a command for manipulating the translation files needed for Celerra Network Server’s international character support. These files are stored in a translation directory on a common file system, /.etc_common/xlt, that is available read-only to all Data Movers.

The translation directory is created when Celerra Network Server software is installed on the Control Station. If this directory is destroyed and needs to be re-created, you can do so by running the uc_config command with the -setup option.

To check for the existence of the common file system and translation subdirectory and create it if necessary, type:

Example 1:
$ /nas/sbin/
uc_config -setup

If you receive the following message, your setup is correct:
Common Unicode translation subdirectory already exists.

If you do not receive this message, contact EMC Customer Service for assistance.

Example 2:
To list the set of translation files available for conversion/update, type:

$ /nas/sbin/uc_config -list

8859-1.txt big5.txt eucjp1.txt unidata2.txt cp437.txt sjis.txt xlt.cfg

Example #3
To update all configuration files in
/.etc_common/xlt, type:

$ /nas/sbin/uc_config -update

operation in progress (not interruptible)...

done

Example #8
To confirm that the configuration of
xlt.cfg is correct for a client with an IP address of 168.159.30.77, for server_3, type:

$ /nas/sbin/uc_config -verify 168.159.30.77 -mover server_3
server_3:
168.159.30.77 is UTF-8