basicunix3: linuxforwindowsusers...monolithicvs.modulardesign...

50
Basic UNIX 3: Linux for Windows Users Where we're going: Windows vs. Linux: differences vs. similarities Getting Started Working at the Desktop(s) Managing Files Finding Applications Getting Help Iowa State University Information Technology Services Last Update 10/06/06 by jbalvanz

Upload: others

Post on 30-Aug-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Basic UNIX 3:Linux for Windows Users

Where we're going:●Windows vs. Linux: differences vs.similarities

●Getting Started●Working at the Desktop(s)●Managing Files● Finding Applications●Getting Help

Iowa State University Information Technology ServicesLast Update 10/06/06 by jbalvanz

Page 2: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Differences between Windows andLinux

● Choice of GUI vs. Command Line● Monolithic vs. Modular Design● Administrator/User Dichotomy● GUI vs. Command Line Administration

Page 3: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Choice of GUI vs. Command Line

● Windows has only one user interface● Linux has lots of choices

– XWindows (graphical user interfaces) with a varietyof window managers

– Text console (good for remote access, smallmachines, servers without monitors)

Page 4: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Monolithic vs. Modular Design

● Windows: "everything" is incorporated into thekernel (Explorer, Internet Explorer, WindowsMedia Player, etc.)

● Linux: more modular; desktop manager, Webbrowser, media players run on top of the Kerneland cannot take down the system if they crash(well, at least not as easily) and can becustomized by the user

Page 5: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Administrator/User Dichotomy

● Ordinary users do not have power to installsoftware or change system settings

● Adminstrators can install software, changesystem settings, kill processes, read/write files inany directory

● This ability is actually in Windows 2000/XP, butseldom used (especially in home systems)because of legacy Windows compatibility

Page 6: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

GUI vs. Command LineAdministration

● Windows administration almost always donefrom a GUI (Control Panel, Administrative Toolsor Microsoft Management Console)

● Linux adminstration usually done from acommand line– Easily done remotely (Linux servers don't needmonitors, keyboards)

– Easily scriptable and automated

Page 7: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Logging In

● Usernames and passwords– Assigned by the system administrator, or (on IowaState Linux boxes) your ISU NetID and password

● Choose your window manager● Choose your language

Page 8: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Logging In

● Usernames and passwords● Choose your window manager

– Default RHEL installation includes GNOME,KDE and FailSafe (a very minimal WM)

● Choose your language

Page 9: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Logging In

● Usernames and passwords● Choose your window manager● Choose your language

– Linux can be installed to include support formany languages

Page 10: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Gnome Desktop● Desktop icons open in Nautilus

– username's Home (/home/username)– Computer (all drives)– Trash

● Top Edge Panel ( functions of StartMenu and System Tray)

● Bottom Edge Panel (select windowsand virtual desktops)

Page 11: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

● Applications Menu ( = Windows All Programs)

Top Edge Panel

Page 12: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

● Applications Menu ( = Windows All Programs)● Actions Menu (run application, logout, screenshot, etc.)

Top Edge Panel

Page 13: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

● Applications Menu ( = Windows All Programs)● Actions Menu (run application, logout, screenshot, etc.)

● Application Launchers

Top Edge Panel

Page 14: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Top Edge Panel

● Applets

Page 15: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Bottom Edge Panel

● Clear Desktop button

Page 16: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Bottom Edge Panel

● Clear Desktop button● Buttons for open windows

Page 17: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Bottom Edge Panel (right)

● Virtual Workspace selector

Page 18: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

K Desktop Environment (KDE)

● Icons open in Konqueror– CD Recorder (drag-and-drop burning)– Trash

● KDE Panel ( = Windows Taskbar)

Page 19: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

KDE Panel

● K Menu ( = Windows Start Menu)

Page 20: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

KDE Panel

● K Menu ( = Windows Start Menu)● Application Buttons

Page 21: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

KDE Panel

● K Menu ( = Windows Start Menu)● Application Buttons● Pager (switches virtual workspaces)

Page 22: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

KDE Panel

● K Menu ( = Windows Start Menu)● Application Buttons● Desktop Switcher● Buttons for open windows

Page 23: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

KDE Panel

● K Menu ( = Windows Start Menu)● Application Buttons● Desktop Switcher● Buttons for open windows● Applets

Page 24: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Switching Between Windows

● Varies; most modern WM accept the Windows<Alt/Tab>, clicking on the window or clicking onthe appropriate button in the Panel

● Clicking on the button of an open window willminimize it and bring another to the top

● Some window managers (like Blackbox andTWM) insist that you click on the windowtitlebar or use arrows on the manager bar

Page 25: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Manipulating windows

● Moving and resizing windows much like MSWindows except for:– Awindow can be forced “On Top”– Commands for moving window to other workspaces(Move to Workspace Right, Move to AnotherWorkspace)

Page 26: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Virtual Workspaces

● Separate semi-independent workspaces on thesame machine

● <Alt/Tab> switches between windows on thesame workspace

● Click on the Pager or press <Ctrl/Tab> to changeworkspaces

● To move a window to another workspace, clickupper-left-hand button and choose a workspace

Page 27: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Closing windows

● To close a window:– Choose File -> Exit in the application– Click the close box (upper right-hand corner)– Press <Alt/F4>– In a terminal window, press <Ctrl/D>

Page 28: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Mouse actions● Most window managers use all three buttons!● Copy/paste -- may be different fromWindowsand may vary from DM to DM– Highlighting is copying– Middle-click is paste (left-and-right click, if you onlyhave two buttons, or wheel-click will work withwheel mice)

● Most applications and window managers provideright-click contextual menus as well.

Page 29: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

File Managers● The default file manager will vary with DesktopManager– KDE -> Konqueror– Gnome -> Nautilus– Others...

● As always, you have a choice; you can run Nautilusunder KDE, etc.

● Nautilus has problems with OpenAFS; use Konquerorfor AFS volumes instead.

Page 30: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

File Managers

● And there's always the shell...– Console commands always work in a terminalwindow, even if you're in an unfamiliar windowmanager

– Look for Konsole, Gnome Terminal, xterm, or rxvt

Page 31: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Using Konqueror

● To start, choose KDE Menu > Home● Initially starts in user's home directory; useUp button if you want to see upper-leveldirectories

● Use Up and Back buttons to navigate● Double-click to open, right-click on files foraction menu

Page 32: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

More on Konqueror● Drag-and-drop between windows works, or usecopy-and-paste

● Web and ftp servers can be opened as well (useURL)

● Several views are available in the View menu● Location -> New Tab allows you to open morethan one directory in the same window

Page 33: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Removable Disks● Disks must be unmounted before you remove them.● Under Gnome, CDs and DVDs will automatically mountand create a desktop icon when they're inserted; right-click and select "Eject" to unmount

● Under KDE, the CD icon appears on the desktop; right-click and select "Eject" to unmount.

● Floppies must be mounted by double-clicking inComputer (Gnome) or under Devices in Konquerorbefore using them; right-click and select "Unmountvolume" before you remove them.

Page 34: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

More on Removable Disks

● Removable disks appear in the directory treeunder the /media directory.Floppy = /media/floppyCDROM/DVD = /media/cdromCD-RW = /media/cdrecorder

● Before removing the disk, right-click on the diskand choose “Unmount” or (as root) enter thecommand eject /media/device

Page 35: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Nautilus● Default file manager in Gnome Desktop, orinvoke from command line with nautilus &

● Double-clicking a folder or drive opens a newwindow

● Choose "Computer" from Places menu to seedrives

● Drag-and-drop moves files by default (exceptwhen leaving your machine); to choose, drag-and-drop with the middle button

Page 36: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

More on Nautilus

● To delete a file, highlight and press {Delete}, ordrag to Trash

● Places menu includes "CD Creator", whichallows you to drag files to a window and burnthem to a CD

Page 37: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Formatting a Floppy

1. Insert a disk

2. Choose System Tools -> Floppy Formatter(Gnome only) or run the command gfloppy

3. Enter a volume label

4. Click Format.

You'll still need to mount the floppy afterformatting it.

Page 38: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

File Associations● Konqueror can identify files by extension, byMIME type, or by analysis

● Where possible, Konqueror will displaythumbnails of the file

● In Konqueror, choose Settings > ConfigureKonqueror > File Associations

● Enter a pattern or select a filetype, then choosethe application to open it with and move it to thetop of the list

Page 39: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

File Associations

Page 40: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Nedit -- Notepad on Steroids

● Nedit is a GUI text editor looking at first glancelike Notepad

● Edit menu includes case switching, indentation● Programmer's editor features include syntaxhighlighting for standard languages

● Search and replace includes regular expressions● Selected text can be fed into a shell command(like grep and awk)

Page 41: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Living with Linuxin a Windows World

● Accessing Windows shares● Equivalent and/or compatible applications● WINE (run some Windows applications)● Crossover Office (run Microsoft Office)

Page 42: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Accessing Windows Shares

● Works in either Nautilus or Konqueror● Enter an URL in the form:smb://username@servername/sharename/path

● Nautilus also has theFile -> Connect toServer command, whichputs an icon on theDesktop as well. (Youshould unmount thesewhen you're finished.)

Page 43: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Equivalent/compatible applications● Microsoft Office

– OpenOffice.org / StarOffice– Abiword/Gnumeric

● Microsoft Outlook– Ximian Evolution

● Photoshop– Gimp

http://www.linux.ie/newusers/alternatives.php

Page 44: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

WINE (WINE Is Not an Emulator)

● WINE allows you to run someWindows softwareunder Linux by translating Windows API calls toequivalent Linux/X library calls

● WINE doesn't run all Windows software, but thelist is growing rapidly.

● Install apps with wine setupcommand, runwith wine appfilename

● http://www.winehq.com

Page 45: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Where are Wine's files?

● Each user gets a private “machine” located at/home/username/.wine

● The Windows hard disk is under “c_drive”● *.reg files are the Windows Registry● The actual UNIX filesystem is under“dosdevices/z:”

Page 46: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Wine Demo

● Type the following commands:

cd winstuffwine sol.exe

curl -O http://tech.ait.iastate.edu/linux/linuxed\/exercises/Opera_9.10_Classic_Setup.exe

wine Opera_9.10_Classic_Setup.exe

Page 47: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Wine a security risk?

● Users can install a wide variety of Windowsapplications, including potential security risks,without a root password!

● Good news: apps run with the user's privileges,they still can't modify system files other thantheir own

Page 48: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Crossover Office

● Crossover Office is an enhanced (commercial)version of WINE specifically designed to runMicrosoft Office, including Internet Explorer andAccess, and other applications.

● A server edition allows thin client machines torun Windows apps without having softwareinstalled locally (and without CALs)

● http://www.codeweavers.com

Page 49: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Locating software

Databases of free and commercial applications● http://sourceforge.net/softwaremap/trove_list.php● http://freshmeat.net (login required)● http://www.ibiblio.org/pub/Linux/● http://www.linux.org/apps/index.html● http://linux.about.com/od/soft

Page 50: BasicUNIX3: LinuxforWindowsUsers...Monolithicvs.ModularDesign Windows:"everything"isincorporatedintothe kernel(Explorer,InternetExplorer,Windows MediaPlayer,etc.) Linux:moremodular;desktopmanager,Web

Getting Help● KDE Help systemKDE Menu -> Help

● Man pagesman commandname or browse in KDE Help

● Red Hat Linux manualshttp://www.redhat.com/docs/

● Linux Documentation Projecthttp://www.tldp.org

● Linux Newbie Help Fileshttp://www.tuxfiles.org/