Nick Geoghegan1 Introduction to Linux Workshop. Nick Geoghegan2 Getting Started Download the following files:

Slides:



Advertisements
Similar presentations
LIS651 lecture 5 direct use of wotan Thomas Krichel
Advertisements

Linux, it's not Windows A short introduction to the sub-department's computer systems Gareth Thomas.
Jump to first page Unix Commands Monica Stoica Jump to first page Introduction to Unix n Unix was born in 1969 at Bell Laboratories, a research subdivision.
NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
How to post to Wordpress Chruton Budd. Click on the Login link.
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.
The Internet. Telnet Telnet means using your computer as a terminal. All commands you type are sent to the host computer you are connected to and executed.
UNIX Chapter 00 A “ Quick Start ” into UNIX Operating System Mr. Mohammad Smirat.
Downloading and Installing AutoCAD Architecture 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the software.
UNIX By Darcy Tatlock. 1. Successful Log Into Unix To actively manipulate your website you need to be logged in. Without being logged in you cannot enter.
How to Establish a Blog. What is a Blog A blog is a collection of informational articles/ideas intended to update a viewer on new information associated.
1 Some basic Unix commands u Understand the concept of loggin into and out of a Unix shell u Interact with the system in a basic way through keyboard and.
Creating a Web Page HTML, FrontPage, Word, Composer.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
1 Day 3 Directories Files Moving & Copying. 2 Case Sensitive First thing to learn about UNIX is that everything is case sensitive. Thus the files: –enda.
ITCS 4/5145 Parallel Programming, UNC-Charlotte, B. Wilkinson, 2012, Jan 18, 2012assignprelim.1 Assignment Preliminaries ITCS 4145/5145 Spring 2012.
Unix Primer. Unix Shell The shell is a command programming language that provides an interface to the UNIX operating system. The shell is a “regular”
Unix Command Project Justin Rogers for LS 560 Spring 2015.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
Unix Basics Chapter 4.
HTML Hyper Text Markup Language A simple introduction.
ECT 250: Survey of E-Commerce Technology FrontPage Publishing pages Unix.
Go to your school’s web locker site school name.schoolweblockers.com) Your user name is the first letter of your first name, the first four.
Carnegie Mellon Linux Boot Camp Jenna MacCarley, Peter Pearson, Shashank Goyal 9/19/2015.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
Go to your school’s web locker site school name.schoolweblockers.com) Your user name is the first letter of your first name, the first 4.
Forms and Server Side Includes. What are Forms? Forms are used to get user input We’ve all used them before. For example, ever had to sign up for courses.
UNIX Workshop Freshmen Orientation UNIX workshop Before we begin…  Does everybody have a computer?  Does everybody have your account slips?
Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator
BIF713 Basic Unix/Linux Commands Getting Help with Commands.
Go to your school’s web locker site Your user name is the first letter of your first name, the first four letters of.
 When you receive a new you will be shown a highlighted in yellow box where your can be found  To open your new just double click.
Chapter 1 : The Linux System Part 2 Lecture 2 11/14/
Basic Unix Commands CGS 3460, Lecture 6 Jan 23, 2006 Zhen Yang.
Unix and Samba By: IC Labs (Raj Kidambi). What is Unix?  Unix stands for UNiplexed Information and Computing System. (It was originally spelled "Unics.")
Unix Commands PowerPoint Presentation developed for LS 560 Information Technology online class - University of Alabama by Debey Sklenar TENacious Cohort.
1May 16, 2005 Week 2 Lab Agenda Command Line FTP Commands Review More UNIX commands to learn File name expansion - * Introduction of vi.
Introduction to Programming Using C An Introduction to Operating Systems.
Using the “CLI” Unix / Linux Preparation Course June 9, 2013 Lusaka, Zambia.
Utilizing Your Class Site Class Website Guide by Kimberlee Fulbright.
Hubnet Training One Health Network South East Asia Network Overview | Public and Members-only Pages; Communicating and Publishing using Blogs and News.
1 Day 2 Logging in, Passwords, Man, talk, write. 2 Logging in Unix is a multi user system –Many people can be using it at the same time. –Connections.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
1 Introduction to Unix. 2 What is UNIX?  UNIX is an Operating System (OS).  An operating system is a control program that helps the user communicate.
A Brief Overview of Unix Brandon Bohrer. Topics What is Unix? – Quick introduction Documentation – Where to get it, how to use it Text Editors – Know.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
Linux Tutorial Lesson Two *Getting Help in Linux *Data movement and manipulation *Relative and Absolute path *Processes Note: see chapter 1,2,3 from Linux.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Using UNIX Charles Duan FAS Computer Services June 12, 2016.
Login Being logged into a command line prompt allows a user to easily and simply execute multiple commands (one-by-one or at the same time) that would.
Assignprelim.1 Assignment Preliminaries © 2012 B. Wilkinson/Clayton Ferner. Modification date: Jan 16a, 2014.
UNIX Basics Matt Hayward October 18, 2016 LS560 – Information Technology for information professionals.
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.
Department of Computer Engineering
Web Programming Essentials:
Andy Wang Object Oriented Programming in C++ COP 3330
Useful Linux Commands.
Part 3 – Remote Connection, File Transfer, Remote Environments
Assignment Preliminaries
Intro to UNIX System and Homework 1
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
Operating Systems and Using Linux
Web Programming Essentials:
Part 2 Setting up a web server the easy way
UNIX/LINUX Commands Using BASH Copyright © 2017 – Curt Hill.
Command line.
Presentation transcript:

Nick Geoghegan1 Introduction to Linux Workshop

Nick Geoghegan2 Getting Started Download the following files: Save them to a directory on your U: drive so that the programs will be accessible no matter what computer you use to login from.

Nick Geoghegan3 PuTTY...? In really simple terms: When you run PuTTY on a Windows machine, and tell it to connect to (for example) a Unix / Linux machine (like we will!). PuTTY then opens a window and anything you type into that window is sent straight to the Unix machine, and everything the Unix machine sends back is displayed in the window. So you can work on the Unix machine as if you were sitting at its console, while actually sitting somewhere else.

Nick Geoghegan4 Logging In Run PuTTY. Click the “Frink” button When prompted fill in your username and password.

Nick Geoghegan5 Directory Structure The linux directory structure is very simple once you get used to it, essentially all files are viewed relative to a single point ‘/’ known as root since it is the start (or root) of all things. /home/users/username is your home directory. For simplicity’s sake you refer to it as ‘~’ (tilde button - on the ‘#’ button)

Nick Geoghegan6 Listing Files To ‘navigate’ through your files we’ll start by listing the files that are in your home directory. So when you are logged in, from the prompt just type ls (you’ll see as we carry on that most commands are relatively intuitive, usually just to remove every second letter and sometimes ones that look even vaguely like vowels!) l i s t => ls

Nick Geoghegan7 Listing Files You can find out more information about your files by using: ls -l this will show you long filenames and the permissions of the files ls -la this will show you all files including hidden files which won't show up otherwise (they begin with a ‘.’) ls -lh this is human readable and tells you the size of the files in MBs and KBs instead of in bytes.

Nick Geoghegan8 Changing Directory Linux files are organized into directories (or folders), you’ll usually have several of these inside your home directory and you can create more as you go along. Use cd ( c hange d irectory) to move through these, ie: cd public_html moves you to public_html directory cd.. moves you down one directory, ie. from home/users/username/public_html to home/users/username cd on its own, typed anywhere, moves you back to your home directory, ie. home/users/username

Nick Geoghegan9 Creating / Editing Files You can create / edit text files easily by using several different programs, like nano, vim, etc. I’ll be introducing nano. Simply type nano filename and nano will open the file specified if it exists, and if it doesn’t, then it will create a new file with this name and open it for editing. You can create the file / edit it and use the commands shown at the bottom to save, etc. ie. ^X Exit - press CTRL and X on the keyboard.

Nick Geoghegan10 File Manipulation You can use touch file1.txt to create a blank file. You can m o v e ( mv ) and c o p y ( cp ) files easily. Use them as follows: mv file1 file2 or cp file 1 file2 This moves (or copies) the file1 to the location file2. This location can be another file: mv file1.txt myfile.txt This renames file1.txt as myfile.txt cp file1.txt myfile.txt This creates a copy of file1.txt as myfile.txt

Nick Geoghegan11 File Manipulation mv file1.txt ~/public_html This moves file1.txt to your public_html directory. cp file1.txt ~/public_html This creates a copy of file1.txt in public_html

Nick Geoghegan12 Deleting Files Once you delete something it is gone. There is no recycle bin! So be sure of what you’re doing! To delete ( r e m ove) individual files use rm ie. rm file_name To r e m ove a di rectory use rmdir ie. rmdir mydirectory To remove a directory and all the files in it use rm -r mydirectory (r stands for recursively)

Nick Geoghegan13 Creating Directories & Viewing Files M a k ing a dir ectory couldn’t be simpler. Simply type mkdir directoryname And you’re done! To view a file without editing it, just use any of less, cat or more ie. less filename Use up and down arrows to scroll. Press q to quit less

Nick Geoghegan14 File Permissions Most of the time it is important to you that your files are private, and that only you can view them, and then there are other cases where you would like for other people to be able to view, but not change your files, i.e. for your website. This is the issue of file permissions. I will just list the ones you need to use, and you can look up the details on the website under “learning” and “documentation”.

Nick Geoghegan15 File Permissions Firstly, to make a file in your personal directory private, ie. No one else but you can view or edit the file. Make sure you are in the directory by typing cd Next type chmod 700 filename This gives you access rights of 7 (read, write & execute), and everyone else (group & world users) rights of 0 (ie. can do nothing) But say for example you want to make sure everyone can view your website, then use chmod 755 -R public_html/ This recursively sets the permissions for all files in the public_html directory to be 7 for you, and 5 for everyone else (read & execute, but not edit).

Nick Geoghegan16 Who’s Online One of the most useful features, is that you can see at any time who else is online, and what they are doing. Do this by typing who, w or finger It’ll tell you loads of other stuff too, like where they’re logged in from, how long they’ve been online and how long they’ve been idle (doing nothing) for.

Nick Geoghegan17 Communication You can write a person a message while they’re online using write username followed by return, then type your message, then press CTRL + C to exit. Or, even better, you can ‘talk’ to them by typing talk username and when they do the same, your window splits and you can type in the top section and see what they type in the bottom section. Again, press CTRL + C to quit.

Nick Geoghegan18 Help! So you want some help? Easy, well it is once you know what to do, if you’re wondering how to use a command, just type man command ( man stands for manual pages) This can be a little tricky to get used to, but you should be able to find what you want. Again, press q to quit. info filename can also be useful Also can be very very useful! If you’re looking for a program to do something, eg. A calendar try apropos calendar

Nick Geoghegan19 You’ve Got Mail You can check your mail from the webmail section of the CompSoc site, but it’s easy and quicker to check it when you are logged into the server. The main program people use to check their mail is mutt. mutt is tricky for newbies, but it is one of the best clients around. I suggest googling for help! There are so many features that I could devote a whole workshop to mutt!

Nick Geoghegan20 Useful Programs wget Downloads files specified to your account. wget will save that exact file to your account, and there are lots of settings to save multiple pages at a go! lynx A text-based web browser... irssi A command line irc client

Nick Geoghegan21 Password & Quit If you wish to change your password then use passwd You will be prompted to enter your old password and then to enter your new password (twice to make sure you don’t make a mistake). And finally, to get out of PuTTY, you can type exit or logout.

Nick Geoghegan22 Transfering Files Now that we have an idea about how to manipulate files on the server, we’re going to use a program called WinSCP to transfer files from your computer to the server. WinSCP will do all basic operations with files, such as copying and moving (to and from a server like we will). It also allows you to rename files and folders, create new folders, changing the properties of files and folders, and creating symbolic links and shortcuts

Nick Geoghegan23

Nick Geoghegan24 Transfering Files The layout is quite simple: The left-hand side shows your computer and the files on it. The right-hand side shows your account on rivieria Transferring files is just a matter of selecting and pressing F5 to copy (or you can drag and drop). You can create new directories by pressing F7 once you have click on the appropriate side.

Nick Geoghegan25 public html Just as a side note, any files you have stored in public_html are accessible to the public, this is where you would upload your website. Sometimes you may have problems viewing some files, this could be because your “permissions” are set incorrectly. We talked about howto correct this is an earlier section.

Nick Geoghegan26 Mailing Lists CompSoc has several different mailing lists for different purposes: compsoc-announce - for announcements about events compsoc-discuss - for all sorts of computer discussion compsoc-technical - for technical announcements

Nick Geoghegan27 Conclusion Hopefully at this stage you have some idea of the things that you can do on the server. But, just in case you forget this workshop will be available to download and view in your own time from the compsoc website, check under “learning” and “online workshops”. But if you are having problems then check this file, and then look at the “documentation” or “FAQ” section under “learning”. If that fails then feel free to me at and I'll try to get you sorted