Recent Changes - Search:

Distributed Computing

This website demonstrates using wikis as teaching and learning tool.

The course instructor is also happy to share the teaching materials here with those who find it readable.

Distributed Computing: A personal touch on a large world

A Distributed Computing Lecture by Steven Choy

Lecture Overview : I use this lecture to do a demonstration about DNS, machine virtualization, virtual hosting, etc


The Web As Platform

the list can be endless!
  • How easy is it to use the Web as your programmable oyster?

Step 1: Register a domain name from a registrar

  • You can register a domain name with many registrar.

Figure 1 : Check the available of a domain name

Figure 2 : The domain name is available

Figure 3: Start the application of the domain name and pay the fee

  • More resources:

Step 2: Get a basic VPS Hosting Plan

Figure 4: An example of pricing scheme for Virtual Private Server

Figure 5: The main features of a VPS


Step 3: Use the VPS hosting

Figure 6: Important information you received after you applied an VPS

      Your slice build is complete.
      IP: 173.45.227.142
      user: root
      pass: **********
      If you have any questions or received this message in error please let us know.

Figure 7: A Web interface to manage your VPS

Figure 8: You can manage your VPS in many ways.

Figure 9: The installation of an OS is as simple as ...

Figure 10: You can also use a remote console (via SSH) to manage your server.


Step 4: Make Some Records in the DNS

Figure 11: Creat your own DNS Zone

Figure 12: An individual can owns many domains

Figure 13: You need to make some records for each of your domain


Step 5: Complete the path so that the world can reach you

Figure 14: Modify DNS record from your domain registrar

Figure 15: Checking: before the DNS records have their effect

Figure 16: Checking: after the DNS records have their effect

Figure 17: You made it; in a few hours' time.


Step 6: Install a powerful server for your applications

Figure 18: Install a LAMP server

sudo aptitude update
sudo aptitude install apache2 apache2.2-common apache2-mpm-prefork apache2-utils libexpat1 ssl-cert
sudo aptitude install libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd
sudo aptitude install php5-imagick php5-mcrypt php5-memcache php5-mhash php5-mysql php5-pspell php5-snmp
sudo aptitude install php5-sqlite php5-xmlrpc php5-xsl php5-cli
sudo /etc/init.d/apache2 reload
sudo aptitude install mysql-server mysql-client libmysqlclient15-dev

Step 7: Make your server capable of hosting many websites

Figure 19: Make a file for each of your domain

NameVirtualHost *:80
<VirtualHost *:80>
ServerName findmyip.hk
ServerAlias www.findmyip.hk
DocumentRoot /var/findmyiphk
</VirtualHost>

Figure 20: Configure the Web server to host multiple domains

sudo a2ensite vidhk
sudo a2ensite schoolcarehk
sudo a2ensite findmyiphk
sudo /etc/init.d/apache2 reload

Figure 21: The email I received from the domain registrar after modifying the DNS

      Tracking No.: MNSXXXXXX
      Domain Name : FINDMYIP.HK

      Dear Customer,

      This is to confirm that your application for modification of the hosting
      name servers is being processed and will be implemented in a few hours.

      In the meantime, if you have any enquiries, please contact us at 852
      2XXX YYYY or by email to enquiry@hkdnr.hk.

      Please quote the above domain name and tracking number in all
      correspondence.

      Best regards,

      Customer Service Department
      Hong Kong Domain Name Registration Company Limited
      Address: Unit 2002-2005, 20/F ING Tower,
      308 Des Voeux Road Central, Sheung Wan, Hong Kong Phone No: 852 2319
      1313 Fax No: 852 2319 2626


Thanks for Reading

If you would rather like to have this lecture note in printed format, please click the print action link in the top right corner.

If you find any problem in this lecture note, please feel free to reach Steven by steven@findaway.hk

Edit - History - Print - Recent Changes - Search
Page last modified on June 22, 2009, at 10:18 PM