What ports are open on the CADE Linux Machines?

The CADE Linux machines (lab1 and lab2) only allow incoming connections on ports 22 and 2100-2120.

This means that we allow incoming SSH connections (22), and allow students to host servers on 2100-2120.

How do i set or change the default group on my account?

You must already be a member of said group to change to it as your primary GID.
Use the command ‘groups’ to see what groups you’re a member of, first in the list is primary.

[warthogs@lab1-23 ~]$ groups
csugrad mech_adm telerobotics mechoffice mechprof mediashare src cs6090 cei manu

To change your primary GID for your current session, run the command ‘newgrp’ followed by the name of the group:
[warthogs@lab1-23 ~]$ newgrp telerobotics
[warthogs@lab1-23 ~]$ groups
telerobotics csugrad mech_adm mechoffice mechprof mediashare src cs6090 cei man

If you want the change to persist, either add the command to your login script or contact us and request that we change your accounts primary GID.

How do i share a folder or files with another user or group?

Once logged in to a linux machine, open a Terminal and you’ll issue a few commands. By default, you start in your home directory (/home/username) and it may appear with a prompt to the left of the cursor indicating that (a user’s ‘home’ may be represented by the ‘~’ char).
If you don’t have a directory to share, create one with something like:

[warthogs@lab1-23 ~]$ mkdir TeamSamba

The directory inherits the default permissions, in this case rwx (read-write-execute for the owner, your username; read-execute for group; read-execute for everyone/all users:
[warthogs@lab1-23 ~]$ ls -ld TeamSamba/
drwxr-xr-x 2 warthogs csugrad 4096 Oct 9 12:47 TeamSamba/

To verify the groupname for setting the directory permissions, find out which groups you’re a member of:
[warthogs@lab1-23 ~]$ groups
csugrad telerobotics mediashare src cs6090 cei manu

And assign one to the directory:
[warthogs@lab1-23 ~]$ chgrp telerobotics TeamSamba
[warthogs@lab1-23 ~]$ ls -ld TeamSamba/
drwxr-xr-x 2 warthogs telerobotics 4096 Oct 9 12:47 TeamSamba/

Finally, set the permissions so the group can write files, but no other users can see in the directory:
[warthogs@lab1-23 ~]$ chmod 2770 TeamSamba/
[warthogs@lab1-23 ~]$ ls -ld TeamSamba/
drwxrws— 2 warthogs telerobotics 4096 Oct 9 12:47 TeamSamba/

See ‘man chmod’ or ‘man chgrp’ for syntax details and more information.

Can I get a MySQL database?

Yes, we have MySQL (mysql.eng.utah.edu) available for student use.

To request a database, send an e-mail to opers@eng.utah.edu and let us know you need one. We will create it and likely place a file in your home directory with the database name and your login credentials.

If you place website files in your .public_html directory, you can make calls to the db, and thus access it from anywhere via eng.utah.edu/~username.

Can I change my default shell from ‘tcsh’?

Yes, login to the PCE User Tools page, click the ‘User Modify’ link. There, you can change your ‘Linux Login Shell’ to point to another (ie, csh, bash, zsh, …).

How do I add the list of CADE Lab machines to my list of ‘known_hosts’?

Download the known_hosts file from the ssh directory and place it in the appropriate directory or add the necessary lines to your existing file. Some software may require the list to be in a specific format or that the file be renamed.
www.cade.utah.edu/downloads

How can we get a group for sharing files for our project?

We would be happy to create a group for you – unfortunately, we can’t allow users to create their own. Send an e-mail to opers@eng.utah.edu with the following information:
– The group-owners UNID or CADE username
– The preferred name for the group (please keep it short, and we will likely concatenate for ease; you can use ‘groupsearch’ to see if it exists already).
– Optional: the UNID’s or CADE usernames of the other team members. The owner can modify the member list later at-will via command-line (groupmodify) or web-page (www.cade.utah.edu/groupmod).

Once we reply with the details, the group owner may use the command ‘groupmodify’ to edit the member list.
Somewhere in your home directory, create a directory and assign the group privileges using chgrp and chmod. See the man pages if you need more details.

NOTE: We also offer an SVN Repository service if multiple users could be modifying files at the same time.

How does one fix a “Firefox is already running” error on a Linux machine?

When logged in to a Linux lab machine or compute server, you may get the following error when opening Firefox:
“Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.”

This may occur even though no evidence of Firefox running can be found.
To remedy this, open a Terminal and run the command: foxlock

It’s a script we wrote that will remove the necessary files from your .mozilla folder and allow you to open Firefox once again.

I deleted a file I want back – Do you have backups or snapshots available?

Snapshots/Backups

Snapshots of users’ home directories are taken every hour. You can access up to 23 hourly, 6 nightly, and 52 weekly snapshots of your entire home directory in the ~/.snapshot directory. Alternatively, from any subdirectory, you can go directly to .snapshot, then the timed directory you prefer.

Note: Older backups (beyond the first weekly) are available in /backup/username/.snapshot. They are moved to a different drive space to ensure their availability.

Restoring an older version of a file is as easy as copying it from a location in .snapshot to your home directory proper. You can do this graphically (with Nautilus, for example) or with the cp command.  ‘.snapshot’ is hidden (notice the preceding ‘ . ‘).  Try:  cd ~/.snapshot  from a Terminal.

Many of the hosted network shares (for departments and research groups) are also snapshotted. As above, cd to the .snapshot directory.

What’s an ‘alias’ and how do i create one?

An alias is a pseudonym or shorthand for a command or series of commands.  There are at least two ways to create an alias in Unix.  If you’d just like an alias to exist for the duration of your session, in a shell type: ‘alias p pine’.  That will create an alias ‘p’ for the mail program pine. Everytime during your current session, when you press ‘p’ followed by enter in a shell, pine will be executed.  Keep in mind that once you logout, you will lose this alias.

If you’d like your alias to be there evertime you used a CADE machine, what you have to do is open up your .tcshrc in you favorite text editor (ie, vim .tcshrc) and add your alias at the bottom of the file. For example, to add an alias ‘p’ for pine, add this line:

alias p “pine”

Note that the quotes around pine are not necessary but it allows you to read the aliases in your .tcshrc easily.  Also, when using this method, the alias will not become active untill you open up a new shell or run ‘source .tcshrc’.