Friday, September 29, 2006

 

Setting up CVS client in Linux

This assumes that you have an account zanwar (set by your cvs admin) and cvs repository Project/Development on the CVS host cvs.cs.uiuc

>>export CVSROOT=:pserver:zanwar@cvs.uiuc.edu:/home/compiler/cvs/cplusplus
>>cvs login
>>cvs co Project/Development

 

Red Hat Network Setup

Personally I think Red Hat's network configuration utilities in no where compare to Knoppix or Ubunto for instance.

Setting up networking is a very manual task. Here are the list of important files I needed to change to setup my Red Hat Enterprise Linux RHEL machine...

>> /etc/sysconfig/network
NETWORKING=yes
DHCP_HOSTNAME=tsrd-rhel4-1
DOMAINNAME=jf.intel.com

>> /etc/sysconfig/networking/profiles/default/hosts
127.0.0.1 localhost.localdomain tsrd-vmrhel localhost
134.134.25.201 tsrd-vmrhel.jf.intel.com tsrd-vmrhel localhost

>> /etc/sysconfig/networking/devices/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
TYPE=Ethernet
DOMAINNAME=jf.intel.com
HOSTNAME=tsrd-rhel4-1
DHCP_HOSTNAME=tsrd-rhel4-1

Also use the /sbin/route command to set up the kernel routing table

Monday, September 18, 2006

 

Linux Code Coverage profiling Tool

Compile cpp file with debug options
g++ -ggdb -fprofile-arcs -ftest-coverage -o hello Hello.cpp

Try Running it
./hello

Run Code Coverage tool
gcov Hello.cpp

View the lines that will be executed
vi Hello.cpp.gcov

This page is powered by Blogger. Isn't yours?