Professional Documents
Culture Documents
tools, install apache2, create a self signed certificate, test the web server, and
create/check MD5s.
Assumptions:
Server.
Installing VMWare tools:
1. Improved mouse movement and the ability to move the mouse from the virtual
3. Improved sound.
4. Shared folders.
5. On a Windows based host and guest machines; shared copy and past
clipboards and drag and drop of files from host to guest and vice versa.
How to:
“Terminal.”
desktop.
6. cd /tmp
29772.tar.gz
29996.tar.gz
9. cd vmware-tools-distrib
12. At the screen resolution option, choose the appropriate resolution for your
screen.
13. Now you can either turn off or restart the system. You can also remove the
Iso file from the setup options and set it to a regular CD/DVD drive.
Creating a Snapshot:
The purpose of the creating a snapshot is to capture/save the current state of the
virtual machine. This can be done while it is running or while it is off. It is a lot
1. In the VMWare tool bar click, the button that says, “Take snapshot of
take multiple snapshots, however in Server you can only save one snapshot per
virtual machine.
2. I suggest that you take a snapshot now since you will be doing a lot of changes
and you could mess something up. This way you can always return to a clean
state.
Installing Apache2
How to create a self signed certificate, have Apache2 listen to port 443, and get
1. sudo su
2. cd /etc/apache2/sites-available
3. cp /etc/apache2/sites-available/default default.default
7. You will be then asked a few questions about your location. Go ahead and
fill those in; when it asks for the server name put in localhost which is
127.0.0.1, since we will be running this server for testing purposes. If you
have a domain name, then you could put that it in if it corresponds and is
9. apache2-ssl-certificate
available/ssl
enabled/ssl
13. cd /var/www
15. cd /var
17. cd www-ssl
20. Press Alt+F2 for the “Run Application” window, then type in
22. This gives you root privileges in the current file browser window.
24. Now modify the file at the top to look like this:
<VirtualHost *:80>
ServerName localhost
DocumentRoot /var/www/html
Do not include this but read it: (Note: Use your assigned IP or DNS name with
“ssl”
28. Now modify the file at the top to look like this:
<VirtualHost *:443>
ServerName localhost
DocumentRoot /var/www-ssl/html
Do not include this but read it: (Note: Again, use your assigned IP or a
30. Save and close the file after you have made the modifications.
commented area which says "# Possible values include: debug, info,
35. SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem
38. cd /etc/init.d
39. ./apache2 restart
We will create a html document in a text editor to make sure that the server is
functioning correctly.
<html>
<head>
<title>Test Page</title>
</head>
<body>
</body>
</html>
Now save the file as index.html. Now navigate to /var/www/html and place a
another copy of the file there. If you closed the root privileged file brower
window, then press Alt+F2 for the “Run Application” window, then type in
gksudo nautilus. This gives you root privileges in the current file browser
window. Open a web browser in Ubuntu and type in http://localhost in the
URL address bar. This should bring up a page that says, “You have accessed
this page through http or https.” This proves that http works. To check for
certificate. After accepting the certificate you should see the page “You have
working perfectly. If you want someone to connect to you from the outside, you
Tools.” At the “Network Tools” windows under “Network Device” change it from
“Loopback Interface” to “Eth0” to see your IP address. If you are on a router you
will see your Internal IP Address, also make sure to forward port 80 for the
I will show you how to create a md5 checksum of a file in your home folder.
the_name_of_the_file.extension.md5
To verify: