SLIDE 1 Welcome
IT in AOS Michael Havas
- Dept. of Atmospheric and Oceanic Sciences
McGill University September 21, 2012
SLIDE 2
Outline
1 Introduction to AOS IT Services 2 Introduction to Linux
Benefits of Linux What Exactly is Linux? The Free-Software Philosophy
3 The Graphical User Interface
Cross-Platform Applications Windows Applications and Their Linux Counterparts
4 The Command-Line
The Filesystem File and Directory Management Finding Files Ownership and Permissions
5 Fun Tips
SLIDE 3
Introduction to AOS IT Services
Getting Support Check our wiki support@meteo.mcgill.ca Include:
A clear subject line A body with as much detail as possible. Your availability for the day. Your computer’s name. Your username.
SLIDE 4
Introduction to AOS IT Services
A good support request Subject: AOS-Jet-Duplex printer not working Hi AOS Support, I’m having trouble printing to AOS-Jet-Duplex from my linux computer lappy. In OpenOffice, I select File -> Print but cannot find the printer AOS-Jet-Duplex. I log in as mhavas. If you’d like to drop by, I’ll be in my office for the next hour but plan to have some lunch. I should be back at around 3pm. Thanks, Michael
SLIDE 5
Introduction to AOS IT Services
A Support Request That Can Use Some Work Subject: Fwd: Fwd: Re: Hi I can’t print. HELP!
SLIDE 6
Accounts
McGill Account first.last@mail.mcgill.ca Provided by McGill Supported by McGill: itsupport@mcgill.ca http://www.mcgill.ca/it AOS Account Account name is normally a variation of firstname and lastname Grants you access to departmental systems (computers/printers) Supported by me.
SLIDE 7
Accounts
McGill Account first.last@mail.mcgill.ca Provided by McGill Supported by McGill: itsupport@mcgill.ca http://www.mcgill.ca/it AOS Account Account name is normally a variation of firstname and lastname Grants you access to departmental systems (computers/printers) Supported by me.
SLIDE 8
Introduction to AOS IT Services
Remote Access Only computer accessible to the outside world is meteo.mcgill.ca also known as zephyr Is only available through ssh From zephyr, you can access any other system you have access to via ssh If you are connected to a departmental network jack, you don’t need to go through zephyr
SLIDE 9
Introduction to AOS IT Services
Printing McGill provides uPrint where your student account is charged We provide free black+white printing to AOS-Jet-Duplex We provide colour printing charged back to your supervisor with AOS-Rainbow-Duplex
SLIDE 10
Introduction to AOS IT Services
Website When AOS Account created You can create a website http://www.meteo.mcgill.ca/˜USERNAME
SLIDE 11
Introduction to AOS IT Services
Computer Labs 708A 15 computers Projector with SMART Display All Linux
SLIDE 12
Outline
1 Introduction to AOS IT Services 2 Introduction to Linux
Benefits of Linux What Exactly is Linux? The Free-Software Philosophy
3 The Graphical User Interface
Cross-Platform Applications Windows Applications and Their Linux Counterparts
4 The Command-Line
The Filesystem File and Directory Management Finding Files Ownership and Permissions
5 Fun Tips
SLIDE 13
Why Linux?
Free. Free. Scientific Software. Community. Security. Stability. Learn Linux, Learn *nix.
SLIDE 14
Why Linux?
Free. Free. Scientific Software. Community. Security. Stability. Learn Linux, Learn *nix.
SLIDE 15
Why Linux?
Free. Free. Scientific Software. Community. Security. Stability. Learn Linux, Learn *nix.
SLIDE 16
Why Linux?
Free. Free. Scientific Software. Community. Security. Stability. Learn Linux, Learn *nix.
SLIDE 17
Why Linux?
Free. Free. Scientific Software. Community. Security. Stability. Learn Linux, Learn *nix.
SLIDE 18
Why Linux?
Free. Free. Scientific Software. Community. Security. Stability. Learn Linux, Learn *nix.
SLIDE 19
Why Linux?
Free. Free. Scientific Software. Community. Security. Stability. Learn Linux, Learn *nix.
SLIDE 20
What is Linux?
A Unix-like operating system created by Linus Torvalds in 1991. Uses the GNU set of tools developed by Richard Stallman. Free and Open source under the GPL license. Not just a product but a collection of products.
SLIDE 21
What is Linux?
A Unix-like operating system created by Linus Torvalds in 1991. Uses the GNU set of tools developed by Richard Stallman. Free and Open source under the GPL license. Not just a product but a collection of products.
SLIDE 22
What is Linux?
A Unix-like operating system created by Linus Torvalds in 1991. Uses the GNU set of tools developed by Richard Stallman. Free and Open source under the GPL license. Not just a product but a collection of products.
SLIDE 23
What is Linux?
A Unix-like operating system created by Linus Torvalds in 1991. Uses the GNU set of tools developed by Richard Stallman. Free and Open source under the GPL license. Not just a product but a collection of products.
SLIDE 24
Why Free Software?
When you use free software, you also get the freedom to study, copy, change and redistribute the source code. If you don’t like something, change it!
SLIDE 25
Why Free Software?
When you use free software, you also get the freedom to study, copy, change and redistribute the source code. If you don’t like something, change it!
SLIDE 26
Outline
1 Introduction to AOS IT Services 2 Introduction to Linux
Benefits of Linux What Exactly is Linux? The Free-Software Philosophy
3 The Graphical User Interface
Cross-Platform Applications Windows Applications and Their Linux Counterparts
4 The Command-Line
The Filesystem File and Directory Management Finding Files Ownership and Permissions
5 Fun Tips
SLIDE 27
Cross-Platform Applications
Firefox. Thunderbird. VLC. OpenOffice. Pidgin. FileZilla. Google Earth. Picasa. Adobe Reader. Adobe Flash. Opera. Skype. Google Chrome.
SLIDE 28
Cross-Platform Applications
Firefox. Thunderbird. VLC. OpenOffice. Pidgin. FileZilla. Google Earth. Picasa. Adobe Reader. Adobe Flash. Opera. Skype. Google Chrome.
SLIDE 29
Cross-Platform Applications
Firefox. Thunderbird. VLC. OpenOffice. Pidgin. FileZilla. Google Earth. Picasa. Adobe Reader. Adobe Flash. Opera. Skype. Google Chrome.
SLIDE 30
Cross-Platform Applications
Firefox. Thunderbird. VLC. OpenOffice. Pidgin. FileZilla. Google Earth. Picasa. Adobe Reader. Adobe Flash. Opera. Skype. Google Chrome.
SLIDE 31
Cross-Platform Applications
Firefox. Thunderbird. VLC. OpenOffice. Pidgin. FileZilla. Google Earth. Picasa. Adobe Reader. Adobe Flash. Opera. Skype. Google Chrome.
SLIDE 32
Cross-Platform Applications
Firefox. Thunderbird. VLC. OpenOffice. Pidgin. FileZilla. Google Earth. Picasa. Adobe Reader. Adobe Flash. Opera. Skype. Google Chrome.
SLIDE 33
Cross-Platform Applications
Firefox. Thunderbird. VLC. OpenOffice. Pidgin. FileZilla. Google Earth. Picasa. Adobe Reader. Adobe Flash. Opera. Skype. Google Chrome.
SLIDE 34
Cross-Platform Applications
Firefox. Thunderbird. VLC. OpenOffice. Pidgin. FileZilla. Google Earth. Picasa. Adobe Reader. Adobe Flash. Opera. Skype. Google Chrome.
SLIDE 35
Cross-Platform Applications
Firefox. Thunderbird. VLC. OpenOffice. Pidgin. FileZilla. Google Earth. Picasa. Adobe Reader. Adobe Flash. Opera. Skype. Google Chrome.
SLIDE 36
Cross-Platform Applications
Firefox. Thunderbird. VLC. OpenOffice. Pidgin. FileZilla. Google Earth. Picasa. Adobe Reader. Adobe Flash. Opera. Skype. Google Chrome.
SLIDE 37
Cross-Platform Applications
Firefox. Thunderbird. VLC. OpenOffice. Pidgin. FileZilla. Google Earth. Picasa. Adobe Reader. Adobe Flash. Opera. Skype. Google Chrome.
SLIDE 38
Cross-Platform Applications
Firefox. Thunderbird. VLC. OpenOffice. Pidgin. FileZilla. Google Earth. Picasa. Adobe Reader. Adobe Flash. Opera. Skype. Google Chrome.
SLIDE 39
Cross-Platform Applications
Firefox. Thunderbird. VLC. OpenOffice. Pidgin. FileZilla. Google Earth. Picasa. Adobe Reader. Adobe Flash. Opera. Skype. Google Chrome.
SLIDE 40
Applications in Windows and Linux
Type Windows Linux Web Browser Internet Explorer Firefox Email Client Outlook Thunderbird File Transfer CuteFTP Filezilla Instant Messenger MSN Messenger Pidgin Media Player Windows Media Player VLC File Browser Windows Explorer Nautilus Raster Graphics Editor Photoshop The GIMP Vector Graphics Editor Illustrator Inkscape Office Suite Microsoft Office OpenOffice PDF Viewer Adobe Reader Evince Music Player Itunes Rhythmbox More equivalent applications http://www.linuxrsp.ru/win-lin-soft/table-eng.html
SLIDE 41
The Graphical User Interface
SLIDE 42
Outline
1 Introduction to AOS IT Services 2 Introduction to Linux
Benefits of Linux What Exactly is Linux? The Free-Software Philosophy
3 The Graphical User Interface
Cross-Platform Applications Windows Applications and Their Linux Counterparts
4 The Command-Line
The Filesystem File and Directory Management Finding Files Ownership and Permissions
5 Fun Tips
SLIDE 43
Why use the Command-Line?
Fast. Efficient. Powerful. Scripting language. Remote access. Almost Anything you can do in the GUI, you can do on the command line:
Listen to music. Read email. Browse the web. Watch movies (kinda: towel.blinkenlights.nl).
SLIDE 44
The Filesystem
One root to rule them all
SLIDE 45
The Filesystem
Different devices, same root
SLIDE 46
Absolute vs Relative Paths
Absolute vs Relative Absolute Starting from the root (/). Relative Starting from your working directory. Special Paths . The current directory. .. The parent of the current directory. On Linux, everything is case sensitive!
SLIDE 47
Absolute vs Relative Paths
An Example
SLIDE 48
Getting Around
Shortcuts
Shortcuts ${HOME} Your home directory. ∼ Your home directory. ∼mhavas My home directory.
SLIDE 49
Getting Around
Commands ls List contents of directory. cd Change directory. pwd Print working/current directory. Tab-completion is your friend
SLIDE 50
File and Directory Management
Commans touch file Creates a file called file. mkdir dir Creates a directory dir. rm file Remove a file. rmdir dir Remove an empty directory dir. cp src dst Copies file from src to dst. mv src dst Moves file/dir from src to dst. du file Prints size of file in bytes. file file Prints what type of file file is. ln file link Creates a hard or soft link between file and link.
SLIDE 51
File and Directory Management
Useful Options
Commands mkdir -p path Creates all directories if they do not exist in path. rm -r dir Removes all files and directories in dir including dir cp -a srcdir dstdir Copies directory and contents from srcdir to dstdir. ls -l Same as ls but gives more information. du -hs dir Prints size of directory and all contents in human-readable format. Getting Help For useful options and detailed help for almost any program, you can look at the manual for that specific command using: man command.
SLIDE 52
Finding Files
Finding Files
Find files using locate locate word Find file or directory that has word in it. Fast but only search a database. Database is refreshed once a day using updatedb Find files using find find path -iname “*word*” Finds files and directories recursively starting in path path that have word in their filename. Very useful command and has lots and lots of options.
SLIDE 53
Finding Files
Useful arguments to find
More on the find command find . -type d Find all directories under the current directory. find . -type f Find all files under the current directory. find . -mtime 1 Find that were created in the past 24 hours. find . -daystart -mtime +0 -mtime -3 Find files created between yesterday and the day before. find . -size -5k Find files less than 5 kilobytes. Operating on found files find . -type d -exec chmod 755 {} \; Find all directories under the current directory and execute chmod 755 on them. find . -type f -exec chmod 644 {} \; Find all files under the current directory and execute chmod 755 on them.
SLIDE 54
Finding Files
Finding Programs
The path environment variable path tells the shell where to look for files. You can execute a program in your path by typing ’program’. Programs not in your path must include the program’s path. For example, /aos/shared/bin/matlab You can see your path by issuing env $PATH Searching through your path which program Will show the location of the first program named program in your path. which -a program Will show all programs names program in your path. Note that only the first will run if you type program. whereis program Will search for a program’s binary, source and help in their standard locations.
SLIDE 55 Ownership and Permissions
Owner
[mhavas@lappy tmp]$ ls -l
- rw-rw-r--. 1 mhavas mhavas 0 2009-09-23 15:18 a.1
- rw-rw-r--. 1 mhavas mhavas 0 2009-09-23 15:18 b.1
- rw-rw-r--. 1 mhavas mhavas 0 2009-09-23 15:18 c.1
- rw-rw-r--. 1 mhavas mhavas 0 2009-09-23 15:18 t2.sh
- rw-rw-r--. 1 mhavas mhavas 0 2009-09-23 15:18 test1.txt
SLIDE 56 Ownership and Permissions
Group
[mhavas@lappy tmp]$ ls -l
- rw-rw-r--. 1 mhavas mhavas 0 2009-09-23 15:18 a.1
- rw-rw-r--. 1 mhavas mhavas 0 2009-09-23 15:18 b.1
- rw-rw-r--. 1 mhavas mhavas 0 2009-09-23 15:18 c.1
- rw-rw-r--. 1 mhavas mhavas 0 2009-09-23 15:18 t2.sh
- rw-rw-r--. 1 mhavas mhavas 0 2009-09-23 15:18 test1.txt
SLIDE 57
Ownership and Permissions
Changing Ownership
Commands for changing ownership chown user file Change the ownership of file to user. chgrp group file Change the group ownership of file to group. chown user:group file Change the ownership of file to user user and group group. Both commands can take a -R argument to apply the change recursively.
SLIDE 58 Ownership and Permissions
Permissions
[mhavas@lappy tmp]$ ls -l
- rw-rw-r--. 1 mhavas mhavas 0 2009-09-23 15:18 a.1
- rw-rw-r--. 1 mhavas mhavas 0 2009-09-23 15:18 b.1
- rw-rw-r--. 1 mhavas mhavas 0 2009-09-23 15:18 c.1
- rw-rw-r--. 1 mhavas mhavas 0 2009-09-23 15:18 t2.sh
- rw-rw-r--. 1 mhavas mhavas 0 2009-09-23 15:18 test1.txt
SLIDE 59 Ownership and Permissions
Permissions
user group
r w x r w x r w x File Permissions r Read file. w Write file. x Execute file. Group Permissions r List contents. w Write into. x Enter.
SLIDE 60 Ownership and Permissions
Changing Permissions
Commands for changing permissions chmod perms file Changes the permission of file file to perms. perms? what perms? user group
r w x r w x r w x [mhavas@lappy tmp]$ ls -l a.1
[mhavas@lappy tmp]$ chmod g+x,o+x a.1 [mhavas@lappy tmp]$ ls -l a.1
SLIDE 61 Ownership and Permissions
Changing Permissions
Commands for changing permissions chmod perms file Changes the permission of file file to perms. perms? what perms? user group
r w x r w x r w x [mhavas@lappy tmp]$ ls -l a.1
[mhavas@lappy tmp]$ chmod g+x,o+x a.1 [mhavas@lappy tmp]$ ls -l a.1
SLIDE 62 Ownership and Permissions
Changing Permissions
Commands for changing permissions chmod perms file Changes the permission of file file to perms. perms? what perms? user group
r w x r w x r w x [mhavas@lappy tmp]$ ls -l a.1
[mhavas@lappy tmp]$ chmod g+x,o+x a.1 [mhavas@lappy tmp]$ ls -l a.1
[mhavas@lappy tmp]$ chmod a+w a.1 [mhavas@lappy tmp]$ ls -l a.1
SLIDE 63 Ownership and Permissions
Changing Permissions
Commands for changing permissions chmod perms file Changes the permission of file file to perms. perms? what perms? user group
r w x r w x r w x [mhavas@lappy tmp]$ ls -l a.1
[mhavas@lappy tmp]$ chmod g+x,o+x a.1 [mhavas@lappy tmp]$ ls -l a.1
[mhavas@lappy tmp]$ chmod a+w a.1 [mhavas@lappy tmp]$ ls -l a.1
SLIDE 64
Outline
1 Introduction to AOS IT Services 2 Introduction to Linux
Benefits of Linux What Exactly is Linux? The Free-Software Philosophy
3 The Graphical User Interface
Cross-Platform Applications Windows Applications and Their Linux Counterparts
4 The Command-Line
The Filesystem File and Directory Management Finding Files Ownership and Permissions
5 Fun Tips
SLIDE 65 Fun Tips cd - Go back to the last directory you visited. cd Go to your home directory. mkdir -p dir/{dir1,dir2,dir3} Create multiple nested directories at