Programming Exercise I: Client-Server Connection

(Industry-Level, Second-to-None Comprehensive Specifications)



The exercises are for practice only and they will NOT be counted or graded (0% of final grades).

Development Requirements
When start developing the exercise, follow the requirements below:

Objective
Dynamic websites are a must for companies nowadays. In addition, remote working is a trend. The goal of these exercises is to have students learn how to build a simple dynamic website by using various fundamental computer tools. There are four steps to achieve our goal, building a simple online bookstore:
  1. (Server) Sign in to our server, undcemcs02.und.edu .
  2. (HTML & CSS) Build static webpages.
  3. (CGI) Connect the Internet to the server-side programs.
  4. (Python) Write programs to fulfill the users’ requests.
This exercise is the first step to achieve the goal by connecting to the server at http://undcemcs02.und.edu/~user.id”.



Requirements
This is the first part of a simple online bookstore construction. It is to display the text below at http://undcemcs02.und.edu/~user.id/1/index.txt by using the following steps:
  1. For your convenience, here are the reference cards of Linux and Emacs.

  2. (Off-campus only) You may skip this step if you are on campus. Otherwise, you may connect to the NDUS servers by using VPN (virtual private network) like GlobalProtect.

  3. Connect to the server http://undcemcs02.und.edu/~user.id/ by using SSH (Secure Shell) like PuTTY (PC) or Termius (Mac).

  4. Sign in to your account by using your UND credentials.

  5. Open your account by using the Linux command chmod such as
       shell> chmod 755 ~/../* 
  6. Create your web folders by using the Linux command mkdir such as
       shell> mkdir public_html 
       shell> mkdir public_html/1 
  7. Enter the folder “public_html/1” by using the Linux command cd such as
       shell> cd public_html/1 
  8. Create the file by using an editor such as
       shell> emacs index.txt 
    and enter the text below to the file.

  9. Use a browser to check your result at
       http://undcemcs02.und.edu/~user.id/1/index.txt
  10. 🍀   Good luck!   🍀