Administration:CVRG Developer Image
From CVRG Wiki
Software Technologies and Downloads
These technologies have all been deployed/tested in CentOS 5.2(RHEL) running in VMWare on Windows XP as the host OS:
VMWare Image Configuration
System Configuration
| Current CVRG Workstation Configuration (07/30/2008) | |
|---|---|
| OS | Windows XP Service Pack 2 |
| CPU | Dual Core Intel-based 2.80GHz processor |
| RAM | 4 GB of RAM |
| HDD | 2 - 143GB (7200 RPM SATA drives) |
VMWare Configuration
A separate volume should be configured to share data between the host and guest OS. This volume should be greater than 100GB. You MUST configure this space as follows:
- In WinXP goto Start->Control Panel->Administrative Tools->Computer Management->Disk Management to configure the volume.
- Volume Name: Linux
- Drive Letter: L
- Create Folder: CVRG_DEV_IMAGE (Where VMWare image is stored; ie. L:/CVRG_DEV_IMAGE)
- Create Folder: Software (Where data is stored that is accessible from Windows XP host and CentOS 5.2 Guest; ie. L:/Software)
- Make sure that the shared folder is always enabled
| Current CVRG VMWare Configuration (08/12/2008) | |
|---|---|
| Host OS | Windows XP Service Pack 2 |
| Guest OS | CentOS 5.2 |
| VM Memory | 2000 MB |
| VMWare Image HD | 100 GB |
| VMWare CD-ROM | Auto detect |
| VMWare Floppy | Auto detect |
| VMWare Ethernet | Bridged |
| VMWare USB Controller | Present |
| VMWare Sound Adapter | Auto detect |
| Display | Auto detect |
| VMWare Processors | 1 |
| Shared Folders | Enabled (Always Enabled - Name: Software, Host Path: L:\Software |
| Screen Resolution | 1024*768 |
CVRG Developer Image Information
The image is 3.88GB an can be found here:
cor002/data/CVRG Developer Image
Image Passwords and Internal Configurations
Contents |
User names and passwords
All are found within the directory holding the image in a file named: userNamesANDPasswds.txt
mySQL & Subversion
- Make sure that your network config has the correct DNS settings or else yum will not work
Install commands:
yum install mysql*
yum install subversion*
How to reset mySQL root: http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html
eclipse.ini configuration
eclipse.ini can be found here: /opt/eclipse. The configuration is shown below:
-showsplash org.eclipse.platform -vmargs -Dorg.eclipse.swt.browser.XULRunnerPath=/opt/xulrunner -Dosgi.requiredJavaVersion=1.5 -Xms256m -Xmx512m -XX:PermSize=64M -XX:MaxPermSize=128M
Software folder
Symbolic link for Software folder on your Desktop:
Open a terminal window cd Desktop ln -s /mnt/hgfs/Software Software
Tomcat Configuration
- Upon unpacking both the 5.5 and 6.0 versions of tomcat, you will need to change the permissions on the .sh files as well as create a logs directory this is done as follows
- You will need to change the location of the root tomcat containers to match that found in the .bash_profile above. This is easily done by replacing all CATALINA_HOME instances in the ${TOMCAT_ROOT}/bin/catalina.sh file with the corresponding correct environmental variable name. This will place the corresponding container with the appropriate environmental variable container name. The CATALINA_HOME environmental variable is used for determining the location of the CVRG Portal Tomcat Container, this should never be overridden.
For Tomcat 5.5
cd /opt
ln -s /opt/apache-tomcat-5.5.26 tomcat55
chmod 755 /opt/tomcat55/bin/*.sh
mkdir /opt/tomcat55/logs
gedit ${TOMCAT55_HOME}/bin/catalina.sh
find and replace CATALINA_HOME with TOMCAT55_HOME
For Tomcat 6.0
cd /opt
ln -s apache-tomcat-6.0.18 tomcat60
chmod 755 /opt/tomcat60/bin/*.sh
mkdir /opt/tomcat55/logs
gedit ${TOMCAT60_HOME}/bin/catalina.sh
find and replace CATALINA_HOME with TOMCAT60_HOME
Ant Configuration
After unpacking the apache-ant-1.7.0 into /opt
cd /opt ln -s /opt/apache-ant-1.7.0 ant
Java Configuration
After download of jdk-1_5_0_16-linux-i586.bin into /opt
chmod a+x /opt/jdk-1_5_0_16-linux-i586.bincd /opt./jdk-1_5_0_16-linux-i586.binln -s jdk-1_5_0_16 java/usr/sbin/alternatives --install /usr/bin/java java /opt/java/bin/java 2/usr/sbin/alternatives --config java- Enter 2 at prompt
/usr/sbin/alternatives --install /usr/bin/javac javac /opt/java/bin/javac 2/usr/sbin/alternatives --config java- Select /opt/java/bin/javac
- Test to make sure the system is using the correct version of java and javac
java -version and javac -version
Java version java version "1.5.0_16" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02) Java HotSpot(TM) Client VM (build 1.5.0_16-b02, mixed mode, sharing) Javac version javac 1.5.0_16 javac: no source files Usage: javac <options> <source files>
Eclipse Plugins
The following plugins must be installed on the image once a network connection has been made.
Subclipse
Subclipse Installation Instructions
Spring IDE
Spring IDE Installation Instructions
Group and Permissions
Create a group named CVRG_DEV_USERS
- Goto System Menu->Administrations->Users and Groups
- Click on Group Tab
- Add Group->Group Name:CVRG_DEV_USERS
- Add User to Group by Clicking Users Tab
- Double Click cvrgDefault or other userName
- Click Groups
- Select ONLY CVRG_DEV_USERS, unselect any other group
Create new User
- Goto System Menu->Administrations->Users and Groups
- Click Add User
- Fill out form
- Unclick create private group for the user
- Fill out form
- Double Click cvrgDefault or other userName
- Click Groups
- Select ONLY CVRG_DEV_USERS, unselect any other group
Change group ownership of /opt folder
chgrp -Rv CVRG_DEV_USERS /opt chown -R 775 /opt ls -l (should show all folders now of group)
Edit profile for all users (environmental settings)
The /etc/profile file contains system wide environmental variables and startup programs. All customizations that you put in this file will apply for the entire environment variable on your system (ie. for all users).
Open the /etc/profile using gedit as root
gedit /etc/profile
Just under the HISTSIZE=1000 enter the following:
JAVA_HOME=/opt/java TOMCAT55_HOME=/opt/tomcat55 TOMCAT60_HOME=/opt/tomcat60 CATALINA_HOME=/opt/tomcat-cvrgportal ANT_HOME=/opt/ant GLOBUS_LOCATION=/opt/ws-core-4.0.3 PATH=$PATH:$HOME/bin:$JAVA_HOME/bin:$ANT_HOME/bin:$CATALINA_HOME/bin:$TOMCAT_HOME55/bin:$TOMCAT_HOME60/bin
Change the export line to the following:
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME TOMCAT55_HOME TOMCAT60_HOME CATALINA_HOME ANT_HOME GLOBUS_LOCATION
Echo values:
type echo $JAVA_HOME You should see: /opt/java type echo $ANT_HOME You should see: /opt/ant type echo $GLOBUS_LOCATION You should see: /opt/ws-core-4.0.3
