Contents
- TA Introductions.
- Those who don't have accounts should self-register IMMEDIATELY
in either the lab (room 205) or room 203 using the computers with the
REGISTER HERE signs on them.
- Find a workstation and login. Ask for help immediately if you have
any issues logging in.
The KDE / Plasma Desktop Manager
Notes
- RM / LM / MM = Right / Left / Middle Mouse (roller) click respectively.
- What action is tied to which mouse button (by default) generally depends
on what precisely is being done (and can be customized in most cases). If
you are used to a Mac, this may be a little annoying! E.g.
- With pointer in desktop background: RM brings up menu, MM/LM do nothing
- With pointer over "Start" (Mageia) icon": LM brings up application menu, RM brings up configuration menu.
- To launch application from desktop: double click LM.
- To launch application from panel: single click LM.
- Desktop and many applications are very configurable, so you may
want to spend a little time to customize things the way you want / like.
- Learn to take advantage of having multiple applications (windows) open
and visible concurrently; e.g. browser, text editor window, file browser,
terminal (shell) window, Maple, etc. May have to organize real estate a bit,
but will ultimately pay off since you will be able to see what is going
in the different apps at the same time.
Notation
In the following
- Ctrl-s (for example), means press the s key while one of the
Ctrl keys is depressed.
Key Components
- Background
- Home icon (links to dolphin file browser)
- Trash
- Panel (bottom row of icons)
- Application Launcher Menu (analogous to "Start menu" on you know what)
- Note "Find files and folders" in "Favorites"
- Can switch between "Classic Menu Style" (initial default) and
"Application Launcher Style" (you may prefer, so try it)
- Browsers: Firefox, Chrome, Seamonkey
- Terminal application (konsole)
- Text editor (kate)
- Maple (symbolic computing system)
- MATLAB
- System configuration (configure desktop)
- KDE Help Center
- Desktop switcher
- Clock
- Logout button: Always remember to log out when you leave the lab, even if it's
only for a few minutes, lest, among other things, someone do mischief to your account!!
- Lock (screen) button won't work; this is by design.
Standard window operations
Use 3 buttons at upper right of any window to
- Iconify (restore by clicking on corresponding icon in panel).
- Toggle normal/full screen mode.
- Exit (kill) application.
Mouse select, copy and paste features (redux)
- Hold LM down and sweep: highlights and copies (automatically) selected text
- Click MM: paste selected text.
- Double click LM: selects/copies word.
- Triple click LM: selects/copies line.
These features often work in other Linux/Unix applications and can often be used to transfer
text from one app to another.
Can also use Copy/Paste a la Windows/Mac OS from pull down menus.
Note: Many apps use the Ctrl-c (copy) and Ctrl-v (paste) convention for copy
and paste operations. Within a terminal use Shift-Ctrl-c and Shift-Ctrl-v (or the mouse
operations described above), since as
discussed in the Unix/Linux notes, Ctrl-c and Ctrl-v have special meanings to the
shell.
Desktop configuration
There are various desktop configuration mechanisms available, including:
- In desktop background: RM -> Folder Settings
- Example: Change background via View, select
background then click Apply
- Example: Delete annoying vertical scroll action via
Mouse Actions -> Click red minus sign opposite Vertical-Scroll
Close panel: Click OK, saving changes (or not) if you are
prompted.
System settings app: LM click on crossed tools icon on panel
- Example (mandatory): Disable screen locking
Display and Monitor -> Screen Locker -> Clear "Start automatically after" checkbox
- Example: Change Focus Policy
- Example: Configure window focus via Window Behaviour -> Focus
Close app by navigating back to main view and clicking Quit,
or via the generic kill button at the upper right of window.
Add application to desktop from application menu launcher.
- Example: LibreOffice Writer (Linux counterpart to Word):
Start (LM) -> Office -> LibreOffice Writer (RM) -> Add to Desktop (RM)
Panel Configuration
- Position mouse on empty portion of panel, RM -> Unlock Widgets
- "Cashew" icon will appear at right end of panel
- Add application to panel from application menu launcher.
- Example LibreOffice Calc (Linux counterpart of Excel):
Start (LM) -> Office -> LibreOffice Calc (RM) -> Add to Panel (RM)
- Other panel configurations: Click LM on cashew
- Enables edit mode: can move, delete icons/widgets, add widgets, spacers and more ... reasonably intuitive, if sometimes finicky
and lacking an undo operation (so be moderately careful).
Web Browsers and Web Browsing
There are icons on the panel for the following browsers:
- Firefox
- Chrome
- Seamonkey: Note that Seamonkey shares lineage with Firefox (the Mozilla
project) and incorporates a WYSIWYG web authoring tool, Composer: click on the
Pen/Paper icon on the bottom panel of the app.
With luck you will have used Firefox and/or Chrome (a.k.a. chromium) before, if not, will
assume that you'll be able to master one or the other or both quickly.
Notes:
Extremely important notes: apply to all course activities
- By all means use Google and whatever other search engines you wish to find information
But understand that:
There's more to acquiring knowledge than "googling"! I.e. ultimately you will
need to think/reflect yourself about how you are going to solve at least some of the problems
in this course!
There's more to "googling" than the first link (i.e. sometimes feeling lucky just
isn't sufficient), so take some time to look at hits further down the list if your query isn't
trivially addressed by the top match.
File Browser (dolphin)
Similar to icon-based file browsing in Windows / Mac OS. Will be intuitive to use for most if not all of you.
Double LM Click on Home icon in upper left of desktop.
Opens dolphin with view of your home folder/directory (will discuss the
notion of home directory in Unix/Linux notes.
Some features to note
- Can select different types of views of files (top panel icons):
- Icons view
- Compact view
- Details view
- Path components (subdirectories/subfolders) listed above file views, can move up hierarchy by clicking on
appropriate component
- Can open multiple instances (useful for copy, move, etc. operations) via
- Independent launches from desktop icon or application launcher menu
- Split operation (top panel), limited to 2 views
- Can position cursor on file by typing enough characters of its name to uniquely identify it, can be
very useful for locating a file/directory when viewing a directory with a large number of files (such
as /home2.)
- Won't see hidden files/directories by default (e.g. ~/.bashrc). Two ways to display
them
- Keyboard shortcut: Alt-. (Alt-period, this is a toggle)
- Menu: Control (LM) -> Adjust View Properties, check Show hidden files, then
Apply
- Make persistent by checking All folders and Use these view properties as default
Be able to use dolphin to navigate to
Note that in many cases it will be easiest to navigate to a file by starting at Root.
Important note
For now, ignore the devices section on the left panel of dolphin.
In particular, do not click on /home/phys210 on 142.103.234.164
when completing Exercise 2.
End note
Terminal Application / Shell Window / Bash Window (konsole)
May seem ugly, clumsy, archaic, arcane, useless (your pejorative(s) here) ..., but learning to use
it (i.e. the command-line, i.e. bash) effectively is good for you (just like vegetables, exercise, ... well perhaps not
just like that), and does wonders for your nerd quotient.
PLEASE attempt to develop facility with the command-line.
Open a terminal window by clicking (black rectangular icon on the panel), type the following commands.
IMPORTANT: Here and in the following, do not type
the %: it represents the actual prompt you will see every
time you enter a command (something like phys210d@cord ~])
% pwd
% ls
% ls -a
% date
% touch me
% ls
% ls -l me
% cat me
% file me
Note the shell's response to each command that you type; we will discuss these and
other commands in future labs/lectures.
Mouse select, copy and paste features (redux)
- Hold LM down and sweep: highlights and copies (automatically) selected text
- Click MM: paste selected text.
- Double click LM: selects/copies word.
- Triple click LM: selects/copies line.
Exercise 1: MANDATORY!!
-
Type the following command precisely: note that the first
character is a tilde (upper left of keyboard, shifted character).
% ~phys210/bin/setup
Note that you can use copy and paste to copy the command from the browser window to
the shell window, thus ensuring that the incantation entered is typo-free.
-
You should see output like this
-rw-r--r-- 1 phys210d public 0 Aug 29 2013 /phys210/Accounts/phys210d
but where 'phys210d' has been replaced with your user name.
If you don't see the expected output, please ask for help!!
End exercise
We will not continue with until everyone has successfully completed the exercise!
Customization
- Settings -> Edit Current Profile
- General -> Window -> Save window size and position on exit (may want to select a specific "default" size then
ensure that the box is cleared)
- Appearance: Choose color scheme, font type and size.
- Advanced: Choose custom cursor color ...
- Mouse: Configure mouse actions.
- Be sure to click Apply to save configuration changes.
- Can create multiple profiles if desired.
Special characters
Become familiar with the location of the special characters on your keyboard (i.e. everything
other than alphanumeric), in particular the following, which are
not much used in day to day typing, but are when interacting with the shell:
- backquote/backtick: ` (upper left)
- tilde (squiggle): ~ (shift backquote)
- caret (hat): ^ (shift-6)
- pipe (vert): | (shift-backslash)
History mechanism & command-line editing
Become familiar with the use of the following keys:
- Up arrow: recall commands by scrolling "up" through the command history).
- Down arrow: recall commands by scrolling "down" through the command history.
- Left/Right arrow/Home/End: position cursor in current command line.
- Backspace: Delete character to left of cursor.
- Delete (Del): Delete character beneath cursor.
On the command line, characters are always inserted to right of cursor.
Leave the terminal window open for the time being (or iconify it if you want to de-clutter your screen).
Text Editor (kate)
Reasonably straightforward to use, especially for Millennials :-)
Let's give it a whirl.
- Start app by clicking on the kate icon in the panel (pand and pencil).
- You may want to clear the Show tips on startup check box on the Did you know? dialog that pops up.
- Type your name into the new document.
- Click the Save icon on the top panel of the app.
- Double click the Home icon on the left of the file browser panel that appears so that the
file will be saved in your home directory/folder.
- Type myname (literally) into the Name field.
- Click the Save button.
- Quit the kate application: File -> Quit or Ctrl-q
Now, change focus to the terminal window, opening a new one as necessary, and type
% cd
% ls
The newly created file myname should appear in the listing: if it doesn't, ask for help!
Become familiar with kate's:
- Menus
- Icons
- Keyboard shortcuts (especially Ctrl-s for save)
Essential operations
- New
- Open
- Save
- Save as
- Undo (Ctrl-z)
- Find & Search/Replace
Some features to note
- kate is default application tied to text files in dolphin, i.e. double clicking on a regular text
file in the file browser will launch a kate editing session with that file.
- Open Home folder, double click on myname
- Can have multiple kate windows open simultaneously: View -> New Window
- Can have open multiple views of same file, e.g.: View -> Split View -> Split Vertical
- Return to single view: View -> Split View -> Close Current View
- Fully configurable: Settings -> Configure Shortcuts/Toolbars/Kate
- Incorporates (syntax) highlighting which is useful when programming in MATLAB and other languages.
Other Applications
Course related software
Will study/explore/use in weeks to come. Feel free to get an early start should you wish.
LibreOffice (Office suite, derived from Open Office)
- Writer (Full featured word processor)
- Calc (Spreadsheet)
- Impress (Presentations)
- Base (Database)
- Draw (Figures, diagrams etc.)
Components will generally work with Microsoft formats (.doc, docx, .xls, ppt.)
Exercise 2:
- Using the file browser (dolphin), and starting from the (red) Root folder, locate the file ...
/home/phys210/templates/README-EXERCISE2
... and copy it to your home directory. Ask for help if you have
problems doing this.
Note that when you click on certain folder icons, such as home
within Root, it will take some
time for the browser to display the contents of the folder (i.e.
to return the view), since there can be many files/folder
to process. So you will need to be a little patient at times.
- Carefully follow the instructions
HERE
to complete the exercise. Note that the link is to a copy of the file README-EXERCISE2, so
you can also read the instructions in-place once you have started editing your copy
with kate.
Fame and fortune (i.e. a prize) will be bestowed upon the first student in each lab section who successfully finishes the
exercise.
Note:
If you're experiencing difficulty copying README-EXERCISE2 to your home directory, type the following commands in
a terminal window:
% cd
% cp ~phys210/templates/README-EXERCISE2 .
Observe that there is period (.) at the end of the second command.
Then open your home directory with the file browser (double click the Home icon on the desktop) and you should
see an icon for README-EXERCISE2. Double click on it to edit it with kate.
Take-Home Exercise:
Windows users:
- Install PuTTY and Xming on one or more of your personal machines per the instructions in the course Software page.
Mac OS users:
- Locate the terminal application on your Mac and use it to execute the same commands that
you typed when we demo-ed the Linux terminal application.