Client-server practices DSC340 Mike Pangburn. Agenda Overview of client-server development Editing on client (e.g., Notepad) or directly on server (e.g.,

Slides:



Advertisements
Similar presentations
WordPress Installation for Beginners Sheila Bergman
Advertisements

Creating Web Pages By: Dr. Matt Dean. Common Terminology Webpage Webpage Website Website Web Browser Internet Explorer Firefox HTMLHypertext Markup Language.
Editorial roles Members of a Manila site can be assigned an editorial role if you want to grant them access to write stories or modify the appearance of.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
How to post to Wordpress Chruton Budd. Click on the Login link.
Introduction to Unix GLY 560: GIS for Earth Scientists Class Home Page:
Michael Donovan, River Campus Libraries – 12/03 DocuShare Overview and Training.
1 Configuring Web services (Week 15, Monday 4/17/2006) © Abdou Illia, Spring 2006.
Basic Web Publishing BA209 Arturo Perez-Reyes. Web is a communication protocol The Internet is A net of nets That use the TCP/IP protocol To publish on.
George Blank University Lecturer. Creating A Web Site at NJIT Professor Blank.
Exploring the Internet Creating and setting up your website Instructor: Michael Krolak Instructor: Patrick Krolak See also
Using FileZilla to FTP CS10001 – Computer Literacy Kent State University.
Introduction to HTML 2006 INT197B. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Exploring the Internet Creating and setting up your website Instructor: Michael Krolak Instructor: Patrick Krolak See also
Information Technologies Anselm Spoerri PhD (MIT)
HTML & Dreamweaver 101 Aman Yadav. Definitions HTTP – The Web uses a protocol called HTTP (Hyper Text Transport Protocol) to communicate between the Web.
Module 6 Windows 2000 Professional 6.1 Installation 6.2 Administration/User Interface 6.3 User Accounts 6.4 Managing the File System 6.5 Services.
Creating and Publishing Your own website
CGI programming Using Apache. Concepts Browser prepares parameter list List is attached to name of program to run on server "submit" button sends string.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 21: Publishing Your Pages on the Web.
Create Your Own Webpage. Today’s Agenda Cut & paste code Notepad++ or Notepad at home FTP Web Hosting Wordpress.
Accessing the Internet with Anonymous FTP Transferring Files from Remote Computers.
Intro to MIS – MGS351 Building a Webpage. Chapter Overview m The World Wide Web – Web servers, Web browsers and Web pages m HTML Introduction m Using.
Copyright © Texas Education Agency, All rights reserved.1 Web Technologies Web Administration.
CSE 390a Editing and Moving Files
CNIT 132 Intermediate HTML and CSS Publish Web Page.
1 HTML (Set Up Public Folder) Some material on these slides is taken directly from
1 Chapter 2 & Chapter 4 §Browsers. 2 Terms §Software §Program §Application.
Home Media Network Hard Drive Training for Update to 2.0 By Erik Collett Revised for Firmware Update.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
1 Session 1: Introduction to HTML Spring Today’s Agenda Cover useful terminology for today’s session HTML, browsers, servers, etc. HTML Tags Get.
Trouble-shooting Tips Georgia Bulldogs I can receive, but not send messages  If you can successfully receive messages, but can’t send.
Tutorial 1: Browser Basics.
Chapter 1: The Internet and the WWW CIS 275—Web Application Development for Business I.
HTML Hyper Text Markup Language A simple introduction.
Fall 2005 Using FrontPage to Enhance Blackboard - Darek Sady1 Using FrontPage to Enhance Blackboard 1.Introduction 2.Starting FrontPage 3.Creating Documents.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
1 Installation When this module is complete, you will be able to:  Set a static IP address for your laptop  Install the snom ONE software  Navigate.
Creating and Publishing Your own web site PC Version SEAS 001 Professor Ahmadi.
Patrick Bailey, MS IDIS110 Dreamweaver Setup. IDIS110 - RIT After you start Dreamweaver On the first time, if you are asked, select “Design Mode” Otherwise,
1 Welcome to CSC 301 Web Programming Charles Frank.
Application Layer Khondaker Abdullah-Al-Mamun Lecturer, CSE Instructor, CNAP AUST.
Proxy Installer for Windows Squid: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response.
A STUDENT’S GUIDE TO ADDING IMAGES TO NEW OR EXISTING BLOG POSTS Adding Images to Your Blog Post Presented by Michelle Krummel.
Web Servers: The Engines that Drive the World Wide Web Dr. William Farmer Reza Sherafat McMaster University May 3, 2006.
Free Powerpoint Templates Page 1 Free Powerpoint Templates Users and Documents.
Double –Click on the Netscape Icon on your desktop The following are a series of steps to help you get started with Netscape Composer.
FTP Using FileZilla CS10001 – Computer Literacy. Step 1: Understanding the Interface Quickconnect Bar Message Log Area Local site navigation (either lab.
Landscaper 101. Time Code AMC AMCNET HELP!!! Where do you go for help? –Upper right corner has a ? for the online help –This presentation.
17 Establishing Dial-up Connection to the Internet Using Windows 9x 1.Install and configure the modem 2.Configure Dial-Up Adapter 3.Configure Dial-Up Networking.
Unix Servers Used in This Class  Two Unix servers set up in CS department will be used for some programming projects  Machine name: eustis.eecs.ucf.edu.
Agenda Using FTP What is FTP? How to Use the FTP Program How to transfer files Using FTP.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
Session 1: Introduction to HTML Fall Today’s Agenda Talk about the functions of the Internet Cover useful terminology for today’s session HTML,
Navigating the Course 1. Course Materials 2 Software: Notepad (or TextEdit on a Mac) – comes with operating system Internet Explorer Web Browser FireFox.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
1 E-Site - FTP Services Setup / install guide. 2 About FTP services can run on any desired port(s) Runs as a windows service Works for all sites installed.
Core ELN Training: Office Web Apps (OWA)
3.02H Publishing a Website 3.02 Develop webpages..
Using iLocker.
Hillsborough Community College
Adapting Files On A “Visual Webpage” (Ver /mb)
CNIT131 Internet Basics & Beginning HTML
Using Access and the Web
Telnet/SSH Connecting to Hosts Internet Technology.
FTP and UNIX TOPICS Exploring your Web Hosting Site FTP UNIX
Configuring Internet-related services
File Transfer Protocol
Presentation transcript:

Client-server practices DSC340 Mike Pangburn

Agenda Overview of client-server development Editing on client (e.g., Notepad) or directly on server (e.g., nano) Practice Create text file from scratch on server (via nano app) Create text file from scratch on client machine (via Notepad app), then move it to server via FTP (FileZilla) Copy code from webpage (via Firefox browser) to client, then move it to server via FTP Create hyperlinks between these 3 pages

Client-server development Two common servers: Web and FTP Both are software running on a Internet-connected computer (a big box or even a small laptop) that listens to incoming requests for files Web server software listens on port 80 (default) FTP server software listens on port 21 (default) Web (HTTP) vs. FTP communication protocol differences HTTP protocol designed for server client file sending FTP designed for bidirectional file sending and general file management Creating/deleting files and folders, renaming and moving files, setting security privileges

Client-server development Most server boxes (incl. the server we will use here at the UofO) are set up to be running both FTP-server and webserver software Workers typically develop content on their own laptop/PC and then upload that content to the server Upload from client server is typically done via FTP client software that talks to the FTP server software Common (free) FTP client software: FileZilla Another option is to develop content directly on the server by interfacing with a coding environment (e.g., an editor) that is running directly on the server E.g., UofO server has common (free) editor program, called nano, that we can run to edit files directly on the UofO server

Client-server development Contrasting the two approaches: working client-side via FTP, or server-side via server editor (nano) Relative advantage of working client-side via FTP If you work with code on your client machine, then you are within the familiar local Windows or OS-X environment, using a familiar editor such as Notepad or TextEdit. You will maintain copies of your code on both client and server (back up) Relative disadvantage of working client-side via FTP Extra step of copying code updates from client to server (via FTP software)

Practice Four parts to exercise 1.Create text file from scratch on server (via nano app) 2.Create text file from scratch on client machine (via Notepad app), then move it to server via FTP (FileZilla) 3.Copy code from webpage (via Firefox browser) to client, then move it to server via FTP 4.Create hyperlinks between these 3 pages

Your goal File structure on your server account: public_html (folder) | | > test (folder) | |-----> page1.html |-----> page2.html |-----> test2 (folder) | |-----> page3.html

Logging into your UofO server account We will begin by looking at how you can login to the servers (in this case, the UofO web server) Operating System directly, giving you full control of your account Within your server account, we will then be able to run the nano editor we will use to create our first text file: page1.html The Chiles building computer labs and classrooms have a client app called SSH Secure Shell that will let us log into the UofO server Hostname of the UofO server: shell.uoregon.edu Your standard username and password apply

Creating the test/test2 folders Lets first create the folder structure : After logging in, type: ls cd public_html mkdir test ls cd test ls mkdir test2 ls cd test2 ls cd.. ls public_html (folder) | |---> test (folder) |---> test2 (folder)

Create page1 text file on server using nano app (editor) After issuing the commands on the prior slide, you are in the test folder. That is where we want the file page1.html to be. To use the nano app to create that new file, type: nano page1.html In the editor, then enter this text: Save (Write out) the file as: page1.html and exit. Back at the command prompt, use ls to see if the new file is now there This is page one! Heres a link to the page2 file. Heres a link to thepage3 file.

Create page2 text file on client Now lets use your local machines Notepad.exe (editor) app to create the text file: page2.html In the Notepad editor, enter this text: Save the file as: page2.html on your PC Lets now use FileZilla to copy that file from your PCs hard-disk to the UofO webservers hard-disk Specifically, to the public_html/test folder This is page two! Heres a link to the page1 file. Heres a link to thepage3 file.

Copy page3 text to client, then to server Heres what we want page3.html to be: This code is accessible via HTTP web-browsing at the URL: pages.uoregon.edu/pangburn/test/test2/page3samplecode.html How do you copy that code from a web page and make it your own web page? This is page three! Here's a relative stye link to the page1 file. Here's an absolute style link to that page. Here's the fully written out link to that page.

Copying existing code It is common to find some existing code that you want to use or modify (naturally, consider Intellectual Property restrictions) If you have FTP access to the hard-disk folder where the file resides, you can use an FTP client (e.g., FileZilla ) to drag-&-drop a copy of that file to your own hard-disk Otherwise, if you have web (HTTP) access to the hard-disk folder where the file resides, you can use an HTTP client (e.g., Firefox ). Two options: File Save As… (be sure to save as raw HTML or select the All files option when saving, and be sure the file extension is.html) Or, you can select and copy (CTRL-C) the code to your client machines Clipboard, and then open Notepad and paste it In this case, you dont have FTP access to my account, so you need to use your browser to get the copy

Copy page3 text to client, then to server So, instead of typing this code for page3.html: …open pages.uoregon.edu/pangburn/test/test2/page3samplecode.html in Firefox, then use File Save As… to save that text file to your PCs hard-disk using the name page3.html Specify the file format as All Files so that Firefox doesnt know what kind of data it is dealing with and therefore Firefox wont mess around with the text. This is page three! Here's a relative stye link to the page1 file. Here's an absolute style link to that page. Here's the fully written out link to that page.

Copy page3 text to client, then to server You now have a local copy of that code from the server Note: remember that could also get a copy of the code underlying page3.html by using the browsers View Source feature (CTRL-U), and then doing a copy-&-paste to Notepad. You still need to get a copy of that code into your webserver accounts test2 folder. As we did with the page2.html file, we now use FileZilla to drag-n-drop the local page2.html file to the server Drop the page2.html file within the test2 folder You should have have the full set of files and folders we were aiming to create (see next slide) public_html (folder) | |---> test (folder) |---> test2 (folder)

Goal (should be accomplished) File structure on your server account: public_html (folder) | | > test (folder) | |-----> page1.html |-----> page2.html |-----> test2 (folder) | |-----> page3.html Remember that there are three ways you can look at and verify your files and folders are all ther 1.Login via SSH Secure Shell and move through your folders and look at them 3 commands to use are: cd foldername, ls, and cd.. 2.Look at folders after logging in via FTP (FileZilla) 3.Use HTTP browser (e.g., Firefox) by navigating to: pages.uoregon.edu/youraccount/test/