AppendixC_Eucalyptus..

hipshorseheadsServers

Nov 17, 2013 (3 years and 9 months ago)

75 views

Eucalyptus

Virtual Machines Running

Maven, Tomcat, and
Mysql


Your account name will be your first
two initials and full last name unless
you don't have a middle name in
the UWL system


then just use your
first initial and full last name.

Your password is your "Campus Id".
This will usually start with either an 8
or a 9

Select Network & Security > Key Pairs

Create new key pair

Choose any name that you want, then click the
"Create and download" button. Make sure to save
the "
pem
" file. Don't loose this file!

Now select Network & Security >
Security Groups

Choose any name: a good one might be
"
myaccountname
-
security
-
group". Type in a
description like what is shown.

Select the "Rules" tab and begin to add rules. You
will want to add a rule for http, https,
mysql
,
ssh

and
a couple of others.

Here is a rule for SSH. After you've filled in the
protocol, port range, and IP address, select the
"Add another rule" button. DON'T SELECT CREATE
UNTIL YOU"VE ADDED ALL THE RULES YOU NEED.


This shows what rules you should probably have.
Once all of these have been added; click "Create".

Click the "Images" tab

Then launch an instance
of the "cs402 web server"

Select your
key:pair

and your security group.

This is what you will see right away. Be patient
and wait.

This is what you will see after a short time. Still
be patient.

Ahaa
! Now the server is running.

See if you can connect to your
server. Fire up your favorite web
browser and type in "http://YOUR
-
PUBLIC
-
IP
-
ADDRESS:8080"

Changing the Tomcat admin password


You should now log onto your virtual
linux

machine and configure Tomcat
so that you are the only one who can control Tomcat.


SSH is a program that allows you to securely connect from your laptop (or
desktop) machine to your virtual
unix

box (or any other box that supports
ssh
).


The steps you will go through are different depending on whether your laptop is
a windows box (there are a lot of steps) or a Mac (there are just a couple of easy
steps)


The next few slides will be different depending upon your system.

WINDOWS ONLY : Download
PuTTy


Visit http://www.putty.org and select the "You can download
PuTTY

here"
link.

WINDOWS ONLY :
Download
PuTTy



Download the "Windows installer for everything except
PuTTYtel
"

Once installed, Click the absurd little Windows
-
start
-
button in the bottom left of your screen and type
"
puttygen
" into the search box and then enter. This
start the "
PuTTY

Key Generator" program that is used to
convert the "
pem
" file you downloaded earlier into a
format that "
PuTTY
" can understand.

1

Once the "
PuTTY

Key Generator" is running. Click "load"

2

Find the "
pem
" file that downloaded to your
computer earlier in this process.

A.
Select "All Files"

B.
Locate your "
pem
" file

C.
Click "Open"

3

Select the "Save private key"
button. This will give a warning.
You can ignore the warning.

Now you need to run
PuTTY
. Start the program and enter the IP address of
your virtual machine for the "host name". Then expand the SSH option on
the left and find the
Auth

configuration. In the field
labeld

"Private key file
for authentication", you should browse and select your "
ppk
" file.

When you select "open",
PuTTY

will open a secure (encrypted) channel with your virtual server and log you in as
"root" You will see a terminal window similar to the above. Congratulations; you made it!

MAC USERS ONLY : HOW TO LOG INTO
YOUR VIRUTAL SERVER


SSH is already installed and Macs understand
pem

files directly. This makes
things pretty simple.


Open a terminal window and navigate to the directory containing your
pem

file.


Execute the following command: "
chmod

700 <PEM_FILE>"


Run the following program: "
ssh


i

<PEM_FILE>
root@IP_ADDRESS

execute:

cd /
usr
/share/apache
-
tomcat
-
7.0.42/
conf


edit the file tomcat
-
users.xml with either
emacs

or VI. Change the "admin" password to a
password of your liking. That’s all; of course you might have to do some research to learn
VI or
emacs

:(