1 / 26

ECC Linux workshop (intro course)

ECC Linux workshop (intro course). WHAT WILL BE COVERED. UNIX/Linux Overview Red Hat Enterprise Linux How to Login Password Reset Applications Command Line Shell Commands and Create Text Files File Permissions Remote Access & File Transfer Security & ECC Policies. UNIX overview.

jamuna
Download Presentation

ECC Linux workshop (intro course)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ECC Linux workshop (intro course)

  2. WHAT WILL BE COVERED • UNIX/Linux Overview • Red Hat Enterprise Linux • How to Login • Password Reset • Applications • Command Line • Shell Commands and Create Text Files • File Permissions • Remote Access & File Transfer • Security & ECC Policies

  3. UNIX overview • UNIX was developed in 1969 at Bell Labs. Originally used as a workbench for programmers to develop new software for testing. • Main Functions of UNIX: • - High performance • - Resource Sharing • - Multi-User Access • - Programming and Software Development

  4. Flavors of unix

  5. UNIX distributions • Open Source: • Linux, Minix, FreeBSD, OpenSolaris • Open & Closed Source: • Android • Closed Source: • MacOS X, Solaris, AIX, HP-UX

  6. LINUX • Linus Torvalds developed the Linux kernel in 1991. • Collaborated with the GNU Project in 1992, to create the first free operating system for the public. • Many distributions of Linux include Debian, Fedora, Mandriva, SUSE, Slackware, and Android • Most distributions are free for use, some are NOT

  7. Advantages of a Linux OS • Hardware/Software • High Compatibility • Resource Allocation/Sharing • Flexibility • Security • Very few Viruses • Encryption • Dynamic Firewall • Choice • Complete Control • Open Source Software • Scripting and Automation • Experimentation

  8. RED HAT ENTERPRISE LINUX • Enterprise level operating system • Trademark and Support are NOTfree • CentOS, Fedora and Scientific Linux are free versions of RHEL

  9. Centos 6 • http://www.centos.org/ • A free, community supported enterprise OS. • Exact replica of Red Hat Enterprise Linux 6

  10. ECC-UNIX ACCOUNT • ALL ENGINEERING STUDENTS, USING LINUX SYSTEMS OR APPLICATIONS WILL NEED AN ECC-UNIX ACCOUNT • NEW USERS WILL NEED TO APPLY FOR ECC-UNIX ACCOUNTS AT THE ECC LAB FRONT DESK • COUGAR ID CARD MUST BE PRESENT WHEN APPLYING FOR AN ECC-UNIX ACCOUNT • ONLY ENGINEERING AFFILIATED STUDENTS AND FACULTY ARE ALLOWED TO OPEN AN ECC-UNIX ACCOUNT • ANY NON ENGINEERING STUDENTS OR FACULTY MUST BE SPONSORED TO OBTAIN ANECC-UNIX ACCOUNT • ECC UNIX ACCOUNTS WILL NOW BE USING COUGARNET PASSWORD AUTHENTICATION.

  11. Switch to cougarnet authentication • Starting Fall 2014 • COUGARNET ACCOUNT PASSWORDS WILL BE USED TO LOGIN TO ALL ENGINEERING LINUX SYSTEMS • NEW USERS WILL STILL NEED TO CREATE A ECC-UNIX ACCOUNT USERNAME • ALL ACCOUNT PASSWORDS WILL HAVE TO BE RESET BY UofH CENTRAL IT.

  12. HOW TO LOGIN • OPEN X-WIN 32 FROM START MENU • CONFIGURE X-WIN 32: • New Connection “Manual” • Choose ‘XDMCP’ • ‘General’ tab • Connection Name: tuxedo • XDMCP mode: Query • HOST: tuxedo.egr.uh.edu • Hit ‘Save’ • Hit ‘Launch’ • USE ECC UNIX/CougarNet ACCOUNT TO LOGIN

  13. RESET PASSWORD (online) • GO TO: http://www.uh.edu/infotech/ • Click “Password Reset” • Enter security information • On CougarNet • Click “Reset”

  14. NAGIVATE THE GUI (GRAPHICAL USER INTERFACE) • Applications • Accessories • word processing • System tools • Command line (terminal) • Places • Home folder • Subdirectories • Search for files • System • Preferences • Administration Utilities • System Documentation

  15. APPLICATIONS • Firefox • Web Browser • LibreOffice • Open source version of Microsoft Word, Excel, and PowerPoint • Terminal • Command line shell prompt • Faster than GUI • Text Editors • EMACS • Gedit • VI/ VIM/ NANO (command line)

  16. Class software location • Location:/usr/local • Software: MATLAB, Abacus, Fluent, Cadence, Comsol, etc…

  17. ACCESS THE COMMAND LINE PROMPT • Applications  System tools  Terminal • Fully text based command prompt • Shell prompt • [ username@<hostname> <current working directory>] $

  18. USING SIMPLE SHELL COMMANDS • Navigation: • ls – list directory contents • ls –l - view files and permissions • pwd – print, current working directory • cd – change directory • cd <directory path> • Ex. (to go to user home directory) • [user]$ cd /home/user or cd ~ • Copying, Moving, and Deleting • cp – copy files and directories • cp <file source> <file destination> • mv – move or rename file • mv <file source> <file destination> • touch – make basic text files • touch <file name> • mkdir – create a directory • mkdir <directory file path> • rm – delete a file (can be destructive) • rm <file path> • rmdir – delete directory (empty directory) • rmdir <file path>

  19. SHELL COMMANDS (continued) • Search commands: • find – search for files • Find <sourse directory> -name <name of file or directory> -print • Documentation: • man – manual pages • man <command or application> • Change File Permissions: • chown – change file owner and group • chownowner:group <file path> • chgrp <groupname> <file path> • System commands: • top – show current processes that are running • df –h: show the file system disk space usage • w : show users currently logged on to the system • uptime : show date, load average, and # of users • uname –a : show current OS version and computer hostname • Network Statistics • Ifconfig : show IP address information • netstat –rn : show IP routing information

  20. Create & EDITING TEXT FILES • VIM • vim <edit file name or new file create> • NANO • Nano <file> • EMACS • GUI text editor

  21. FILE PERMISSIONS • drwxrwxrwx • First character: • d = directory (blue) • l = symbolic link (cyan) • ‘-’ = a file (white) • rwx permissions: • R = read • W = write • X = execute • First set: owner • Second set: group • Third set: everyone

  22. REMOTE ACCESS • SSH – Secure Shell client • Aprogram used for “shell” access to a remote system. • Login using UNIX/Linux terminal (shell), or through “PUTTY” • Use ECC UNIX account info to login • PUTTY (for Windows Users) • Free application • Allows shell logins from a windows desktop

  23. Remote access (cont) • SSH from PUTTY: • Open PUTTY app from Windows • Type the hostname or IP of destination • Port is always 22 • Enter ECC-UNIX user ID, and password • If successful, user command prompt will be shown • SSH from another terminal (shell): • Type command: ssh <username>@<hostname>

  24. file Transfer • WinSCP: • Transfer files from Windows to • Linux and vice versa • Download WinSCP from • “software download” section on • Access UH • Login: • Open WinSCP program • Enter user credentials, click login

  25. SECURTIY & ECC POLICIES • ECC website • http://ecc.egr.uh.edu/engineering-computing-center-policies • ECC Usage Policy • http://ecc.egr.uh.edu/sites/ecc.egr.uh.edu/files/files/cce_policy_computing.pdf

  26. Security • DO NOT, give anyone your password • DO NOT, let anyone use your ECC-UNIX account • All activity is being tracked and logged, including command history. • Report any suspicious activity to anyone mentioned below. • Kiet Luong Zain Marvi Manjunatha Shenoy • Engineering IT Director / Systems Administrator 1 Systems Administrator 2 • Information Security Officer Email:zhmarvi@uh.edu Email: mshenoy@uh.edu • Email: KietL@uh.edu

More Related