CS 120 Extra: The CS1 Server Tarik Booker CS 120.

Slides:



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

Linux, it's not Windows A short introduction to the sub-department's computer systems Gareth Thomas.
Using FTP Prof. Wayne Pollock Hillsborough Community College Tampa, FL
Cosc 4750 Getting Started in UNIX Don’t be afraid of the prompt, in linux it can be your best friend. In some cases, the only way to do certain things.
Dayu Zhang 9/8/2014 Lab02. Example of Commands pwd --- show your current directory This is home of venus, not your home directory Tilde: means you are.
ECT 250: Survey of e-commerce technology Publishing pages on a Unix system.
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
George Blank University Lecturer. Creating A Web Site at NJIT Professor Blank.
Working Environment - - Linux - -.
CS1020: Intro Workshop. Topics CS1020Intro Workshop Login to UNIX operating system 2. …………………………………… 3. …………………………………… 4. …………………………………… 5. ……………………………………
Virtual Machine and UNIX. What is a VM? VM stands for Virtual Machine. It is a software emulation of hardware. By using a VM, you can have the same hardware.
A Mini UNIX Tutorial. What’s UNIX?  An operating system run on many servers/workstations  Invented by AT&T Bell Labs in late 60’s  Currently there.
A crash course in njit’s Afs
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
SoftwareTools CGS 3460, Lecture 7 Jan 25, 2006 Zhen Yang.
Accessing the Internet with Anonymous FTP Transferring Files from Remote Computers.
The Unix Environment and Compiling. Getting Set Up Your programs will be compiled and tested on the Departmental server ‘linprog’ The linprog servers.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
Help session: Unix basics Keith 9/9/2011. Login in Unix lab  User name: ug0xx Password: ece321 (initial)  The password will not be displayed on the.
Chapter 9 Part II Linux Command Line Access to Linux Authenticated login using a Linux account is required to access a Linux system. The Linux prompt will.
Nick Geoghegan1 Introduction to Linux Workshop. Nick Geoghegan2 Getting Started Download the following files:
CNIT 132 Intermediate HTML and CSS Publish Web Page.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction Unix-like system is everywhere Linux Android for smartphones Google Chrome OS for Chromebook Web.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
ECT 250: Survey of E-Commerce Technology FrontPage Publishing pages Unix.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
1 INFO 321 Server Technologies II FTP Material adapted from Dr. Randy Kaplan.
UNIX Workshop Freshmen Orientation UNIX workshop Before we begin…  Does everybody have a computer?  Does everybody have your account slips?
Welcome to CS323 Operating System lab 1 TA: Nouf Al-Harbi NoufNaief.net.
Chapter 1 : The Linux System Part 2 Lecture 2 11/14/
CGS 3460 Why we choose UNIX n Powerful lMulti-user operating system lGood programming tools Most heavy-duty database management systems started out on.
Tera Term Brian Smith Chris Vasse Zaheemat Adetoro William Newton Tom Presgraves.
Unix and Samba By: IC Labs (Raj Kidambi). What is Unix?  Unix stands for UNiplexed Information and Computing System. (It was originally spelled "Unics.")
Linux and Java Basics. What is Linux? Operating system by Linus Torvalds that was a clone of Unix (thus Linux) Free and open source – this is the reason.
1May 16, 2005 Week 2 Lab Agenda Command Line FTP Commands Review More UNIX commands to learn File name expansion - * Introduction of vi.
COP3502: Introduction to Computer Science Yashas Shankar Lecture #2.
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.
FTP COMMANDS OBJECTIVES. General overview. Introduction to FTP server. Types of FTP users. FTP commands examples. FTP commands in action (example of use).
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
Linux A practical introduction. 1)Background and Getting Started Linux is an operating system with multiple providers Red Hat/CentOS (our version) Ubuntu.
File Transfer Protocol (FTP) CIS 130. File Transfer Protocol (FTP) Copy files from one internet host (server) to your account on another host –Need domain.
The Kernel At a high level, the kernel in an operating system serves as the bridge between applications and the actual data processing of the hardware.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
Unix Fundamentals CS 127. File navigation cd - change directory cd /var/log cd /etc/apache2 cd ~/Desktop ~ is a shortcut for the home directory.
A Mini UNIX Tutorial. What’s UNIX?  An operating system run on many servers/workstations  Invented by AT&T Bell Labs in late 60’s  There are many different.
ICE UNIX TUTORIAL. File System Commands cd – change directory cd – change directory ls – list contents ls – list contents rm – remove/delete rm – remove/delete.
Introduction to UNIX and Linux.  Written by Dennis Ritchie and Ken Thomsom at Bell Labs in 1969  Initially written in assembly language and a high-level.
Dr. Sajib Datta Jan 16,  The website is up.  Course lectures will be uploaded there ◦ Check regularly for assignments and update.
Assignprelim.1 Assignment Preliminaries © 2012 B. Wilkinson/Clayton Ferner. Modification date: Jan 16a, 2014.
Review Why do we use protection levels? Why do we use constructors?
Overview of Linux Fall 2016 Dr. Donghyun Kim
ENEE150 Discussion 01 Section 0101 Adam Wang.
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
CS1010: Intro Workshop.
Tutorial Six Recap & Linux Basics CompSci Semester Two 2016.
Web Programming Essentials:
Hillsborough Community College
Andy Wang Object Oriented Programming in C++ COP 3330
Part 3 – Remote Connection, File Transfer, Remote Environments
Assignment Preliminaries
FTP and UNIX TOPICS Exploring your Web Hosting Site FTP UNIX
Operating Systems and Using Linux
Web Programming Essentials:
CGS 3175: Internet Applications Fall 2009
Andy Wang Object Oriented Programming in C++ COP 3330
UNIX/LINUX Commands Using BASH Copyright © 2017 – Curt Hill.
Yung-Hsiang Lu Purdue University
Presentation transcript:

CS 120 Extra: The CS1 Server Tarik Booker CS 120

Topics Accessing the Server Navigating a Linux Environment Basic Commands Built in Text Editors Transferring Documents Displaying your Website

Accessing the CS1 Server You should have received an account name and password from me in class Your account is in the form of: cs120sXX Where “XX” is the number you are assigned

Accessing the CS1 Server (2) You need SSH access to get into the CS1 Server Stands for “Secure Shell” A secure version of Telnet Terminal access to a remote computer The school has Secure Shell Client on its network You will need this to access the server.

Accessing the CS1 Server (3) When secure shell is open: Connect to the CS1 Host: cs1.calstatela.edu Again, use your assigned student account (This example is cs120s120) You will then be prompted to enter a password: (You can save the public key If you want)

Accessing the CS1 Server (4) Once you’re in the system, you will have to move everything to your public_html folder. Type “ls” to list items in your account

Accessing the CS1 Server (5) Congratulations! You’re in! Next: Navigating a Linux Environment

Navigating a Linux Environment The CS1 Server is actually a (powerful) Linux computer Directly connected to the internet Once you’re in, you’re essentially accessing a computer remotely Called a “terminal” Requires use of the “command-line” Navigating the computer by typing in commands Many different commands in Linux Also possible on a Windows computer Run “cmd” Dos window (used before Windows) Different commands in Windows, than on Linux

Linux! Created (mostly) by Linus Torvalds in 1991 Free alternative operating system to UNIX UNIX = professional workstation operating system Completely Free, you can download your own version Many Many Many versions out there CS1 Runs “Ubuntu” Run your own, if you dare!

Linux Terminal Structure Linux is just like your computer, only different. File / Folder Structure is similar Compare with relative URL’s Folder 1 File1 File2 Folder 2 Folder 3 Folder 2 File a File b File c Folder 3 File x File y File z Note: Folders can also be called directories

Linux Terminal Structure (2) The terminal moves from folder to folder (or directory to directory) You can use commands to change what folder (directory) the terminal is in Can also do things to files within the current directory Terminal Window Folder

Basic Linux Terminal Commands There are a few basic Linux commands that are useful: Directory Commands: ls list (display all files within a) directory cd change directory mkdirmake (a) directory rmdirremove (a) directory pwdshow the current directory File Commands: cpcopy (a file) mvmove (a file) rmremove (delete) a file

The ls Command “List” Display all files and folders contained within the current directory The directory the terminal is currently in Type in “ls -l” (dash l) to display a “long” view of the files

The cd Command “Change Directory” Moves the terminal to whatever directory (folder) you specify cd [name_of_folder] Type “cd public_html” to move into the public_html folder. This folder will contain your website Type “cd..” to move back into the “parent directory” The folder “above” your folder Note: I made these folders in class:

The mkdir Command “Make Directory” Create a new directory (folder) within whatever folder your terminal is currently at mkdir [folder_name] Creates a new folder with the name you specify “mkdir media” creates a new folder named media (within whatever folder the terminal is in)

The rmdir Command “Remove directory” Removes whatever directory you name rmdir [directory_name] “rmdir media” removes the folder I created Note: You will not be able to remove folders that currently have files contained within! Remove the files first before you delete the folder!

The pwd Command “Print working directory” Shows the full pathname of the folder you’re in “pwd” Note: This is the pathway of the folder on the remote computer You may not (definitely here) be able to access higher folders than the one you are assigned!

The Path Use the folder name and a forward slash (/) to add a path to a file. Can use this to access files and locations outside the terminal window. Use. (single dot) and.. (double dot) to access the current directory and parent directory Can combine multiple folders into one path “ls../” Lists all files and folders within the parent directory

File Commands The following are basic file commands to work with: cp mv rm These can include pathnames in order to access files and folders not in the current directory There are many (many, many) more commands, but you really only need these for class

The cp Command “Copy” Copies a file cp [filename_to _copy] [name_of_copy] Copies the first file to the second file.

The mv Command “Move” Move a file from one place to another. move [filename] [path][new_filename] If there is no path specified, this becomes a file rename

The rm Command “Remove” Deletes a file rm [filename]

Extra Commands Fancy things: man [command_name] View the built in manual for a command cd ~ Move the terminal to your top level folder more [filename] Display the contents of a (text) file You can also use built in text editors to edit your files remotely. Nano We will cover this editor Emacs, Vi are others

The Nano Editor Type in nano [filename] If [filename] exists it will edit that file If [filename] is new, it will create a new file

The Nano Editor (2) You will not be able to use the mouse in this editor – you will have to use the keyboard only. Use the arrow keys to navigate The commands at the bottom require you to hold down the “control” (ctrl) key first. Ctrl + x Exit Ctrl + oSave (write out) Ctrl + kCut text Ctrl + uPaste (uncut text) With this, you can edit files without having to move them back and forth (from your computer to CS1)

The Nano Editor (3) There are other linux text editors (Emacs, vi) They are very complex Learn on your own (ask me about Emacs).

Transferring Files Secure Shell Client also has a FTP (file transfer protocol) program that comes with it. Click the yellow folder button to open it

Transferring Files (2) This open the Secure FTP client (program) The left will list the file/folders of the computer you are using The right side will list the file/folders of the remote folder (CS1)

Transferring Files (3) Double click on each side to go to the files/folder you want. Then drag and drop a file (or folder) from one side to the other to transfer the file(s).

Displaying Your Website The URL for your website is: Where XX = your assigned account number Go to this page to check your progress. Note: The first page accessed in the folder is “index.html” Realistically, when you type in: The browser is actually looking for:

Displaying Your Website (2) Make sure you create your own CSS, Javascript and Media folders Make all your CSS and Javascript external Put your media (images, movies, audio) in the Media folder Good luck!