Using Linux

If you are in the N-110, N-113 or J-118 lab click here

Getting to linux

As a computer science student, you should have an account on linux.ubishops.ca, from which you can get a "remote desktop" from any machine in the lab, using X2GoClient. There is no printer available from linux.ubishops.ca. You can access the server from anywhere on the internet, in 2 ways,x2go and ssh (and scp for copying files to and from your own computer.

Your account code (user name) will generally be the first letter of your given name, followed by your family name. For example, Céline Dion's account would be cdion

You will be given an initial password, you should change it (see Lab 1 instructions.)

Choose a method of work!


Linux

Unix file systems are a single tree starting at /. Successive subdirectories are separated by / . (not \ ). Names are case sensitive just like Mac, and unlike Microsoft systems.

Some useful terminal commands

The terminal has a command prompt, at which you can type short commands, here are some of the most useful, as examples explained. Generally, after execution of the command, the prompt comes back.

ls
list the current directory
cd /home/COURSES/cs216/quests
change to the quests directory
cp easy.a ~
copy the file to my home directory (~)
cd
change directory back to home
pwd
print working directory (where I am now)
passwd
change password
nano easy.a
edit the file
spim easy.a
test it with the spim simulator
cat mark.log
'"concatenate" - show the file(s) (written by spim)
less bigfile.txt
scroll through a long file  (q to quit)
ssh osiris
secure remote access to osiris.ubishops.ca as same user

Some x2go notes:

Editing text files

Lots of options here. Nice windowed editors for plain text that work normally (mouse, cut & paste in the usual way) are mousepad (recommended), xemacs and kwrite. In a terminal window, and hence usable by remote login, you can use nano. No mouse, but fairly straightforward editing, use the control keys listed on the bottom two lines of the window.
emacs and vi are also usable in this way.

The easiest ways to start an application:

If you know its name, press ALT-F2, and type in the name, eg.  kate or right click on the desktop and choose "Run command" and type in the name. If you don't remember the name,  choose from the menus.The most frequently used are displayed at the bottem of the window

Viewing files:

Start from the Desktop, or "Places" or File Manager. Double click on a file to open with default application, right click to choose your application. Word processing, spreadsheets, etc.

LibreOffice  consists of Write, Calc (a spreadsheet), Draw, Impress (slideshow) and Math. It has its own format, and also reads & writes files in Micorsoft Office format.


Accessing linux from Windows® computers and the outside world

You can log in remotely using the ssh protocol, and do secure ftp (sftp) and copy (scp) from anywhere on the internet.

Note that "X2GoClient is installed on all Macs in Bishop's computer labs." That leaves Windows-only computres. If it is yours, you can download X2GoClient. otherwse you can use the following, which should be instaled at Bishop.s, in the "Computer Science" folder on the Desktop.
If it's your windows computer, download these two. Instructive video and download links are in the video list for your course.

Back to
Document prepared by Lin Jensen,