Unformatted text preview:

IntroductionAccount SetupWindows File Access from LinuxLinux File Access from WindowsPlaying with the GUITutorialPost-TestTurning in your workUnix TutorialThose who do not understand Unix are condemned to reinvent it, poorly.Henry Sp encer, University of TorontoUnix: Some say the learning curve is steep, but you only have to climb itonce.Karl Lehenbauer1 IntroductionModern versions of Linux allow an experienced computer user to do normal computingtasks immediately without any additional training, but to begin to harness some of thepower of Linux a little work is required. In particular, much of the power of Linuxand other Unix variants can be found in their command line interfaces (CLIs). Manycurrent users of Microsoft and Apple operating systems have little experience with CLIsand are only used to graphical user interfaces (GUIs). The purpose of this exercise is toyou expose to the Linux CLIs in order to give you the experience necessary to be moreproductive using Linux and other Unix operating systems in the future. Note that if youfind the Unix tools that you will learn about here useful, there are options for available forinstalling them on your Microsoft Windows computers. MacIntosh OS X users will findthat most of the tools mentioned here are already installed on their computers (thoughthey may not be well advertised), and the once that are not can be downloaded fairlyeasily.2 Account SetupYou will probably find many occasions during this lab when you will want to transfer filesback and forth between your Windows and Unix accounts. While there are many waysto do this (including email them to yourself, put them a USB drive, or on a CD), theeasiest ways involve transferring the files directly between the accounts involved. To getthis to work takes some setup. In this section I will explain how you can get direct accessto your Windows files from Linux, and vice-versa.2.1 Windows File Access from Linux1. Setup your M: drive so that it is web accessible (if you haven’t already done so) bygoing to http://homedir.csbsju.edu/ .12. Then you can access your M: Drive from Konqueror (which is both a web browserand a file manager) by opening links of the form:webdavs://[email protected]/homedir/WINDOWS_USERNAME,where you should replace WINDOWS USERNAME with you username. When youattempt to go to that link, you should be prompted for your password. This shouldallow to to move files between your accounts using Konqueror by using Konqueroras a file manager similar to Microsoft’s Windows Explorer. You can drag and dropfiles, etc.3. Once you have the link working, you should make a bookmark to your M: drivewith Konqueror, so that you can easily get back there.4. You can also get to your M: drive from other web browser like Firefox, but you youwon’t be able to drag and drop. Use the following:https://homedir.csbsju.edu/homedir/WINDOWS USERNAME.5. You can also use any webdavs URL, like the one for your M: drive, with otherprograms such as cadaver, which is a text-mode file browser.2.2 Linux File Access from WindowsWhile these directions are for accessing Linux files from Windows, we are going to set itup using Citrix, a program which lets you run Windows programs from Linux.1. Goto http://citrix.csbsju.edu/ and logon using your Windows account info.Or you can use Citrix menu option under the CSBSJU menu on the foot menu.Currently you can only use the Citrix plugin from Mozilla-based browsers (likeFirefox and Seamonkey), so you can’t use Konqueror for this part. Note that youmust use your Windows username and password for Citrix.2. Open up Windows Explorer (not Internet Explorer) from the top-level Applicationsscreen of Citrix.3. Under the “Tools” menu of Windows Explorer, click “Map Network Drive”.4. On the Map Network Drive Window, pick any unused letter for the Drive: choice(X:, Y:, Z:, etc.) . For the folder, put:\\samba.csbsju.edu\YOUR UNIX USERNAMEwhere you should replace YOUR UNIX USERNAME with your Unix username(e.g. abstuden).5. Your Linux directory should then show up as a drive under My Computer forWindows Explorer whenever you startup the program. It should also be accessiblefrom other Windows programs.3 Playing with the GUIBefore we get to learning about the Linux CLI, I would like you to play around a bitwith the Linux GUI. Explore the menus. Try out a few programs. Change some of thesettings (maybe the wallpaper?). Then pick a game (alas, there used to be more choices)2that you have never played before and try it out for a few minutes. Write down the nameof the game, how it works, and what score you got (if the game has a score) in your labnotebook. Or since their are so few games, try another program that you have neverused before, play with it, and write notes on what you have tried. Some good ones to tryinclude gimp (Gnu Image Manipulation Program - under “Graphics” on the menu), xfig(also under “Graphics”), or Aladin (under the “CSBSJU—Physics” menu.4 TutorialThe Unix tutorial at http://www.ee.surrey.ac.uk/Teaching/Unix/index.html will be thefocus of this exercise. Start at the first section and work your way through the entiretutorial.Make sure that you do all of the exercises listed.The tutorial is setup for users at another college, but all of the commands in it shouldwork here as well, though the file paths are different. Another thing to note about thetutorial is that it uses the command shell called csh. Here at CSB/SJU we use anothershell, tcsh which is based on csh, but has some more advanced features. This shouldnot be a problem because tcsh is more or less a superset of csh, so you should be ableto do everything in the tutorial. Note, though that there are other shells that are not ascompatible with tcsh. In particular, the most commonly used shell on Linux is bash andbash has many syntax differences from tcsh. If you would like to try a different shell,you can type its name at the command prompt. You can also change your default shell,but I wouldn’t recommend that at this point.To run through this tutorial you should log into one of the department’s Linux com-puters. Start up a web browser — Mozilla, Firefox, Konqueror, or any other browsershould work fine — and go to the page mentioned above. To run the examples describedin the tutorial you will also need to have a terminal window (also known as a commandshell) open. There are several types that will work: xterm, konsole, gnome-terminal,and rxvt to name a


View Full Document

CSBSJU PHYS 370 - Unix Tutorial

Download Unix Tutorial
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Unix Tutorial and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Unix Tutorial 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?