Software
Table of Contents
Software Licenses
Information on Software Licenses
Reviewed 7.15.17 by Bil Hays
All software licenses for the Department are maintained by the IT Director, a member of the Computer Services staff, rather than by individual research clusters. Other users can keep copies of licenses, but the IT Director must have a copy of all agreements.
Copying Software
The Association of Data Processing Service Organizations (ADAPSO), a major computer industry trade group, has this to say in a pamphlet on duplicating software:
EITHER WAY IT’S WRONG
THE LAW IS CLEAR
MYTHS AND FACTS OF SOFTWARE
WHAT IT MEANS TO YOU
Software Licensing
There are numerous software licenses covering software on our systems. The Computer Services group has taken pains to install software so that it will run on machines where it is licensed and not elsewhere. If you have a question about whether it is legal to copy some software from one machine to another or to run the software in a non-standard way from a machine that the software is not installed on, send mail to help@cs-old.sites.unc.edu.
ITS has negotiated campus-wide software agreements with some software vendors, such as Microsoft and Symantec. Some of these licenses cover having a personal copy at home for free or a substantial discount. For more information, check http://shareware.unc.edu for free distributions or call Student Stores at 2-2422 for reduced price software. While Computer Services staff do not make a point of looking for illegal software, if we see it installed on a machine, it is our obligation to follow up on it. Computer Services maintains a firm policy that illegal software is unacceptable. If a user desires a particular software product, CS staff will assist in obtaining that software (or something comparable) legally. There are agencies that do spot checks of businesses and universities to insure they are using legal copies of software. Violators can be fined heavily, so please help us maintain legal software on all of our machines.
Matlab
Information on Matlab software
Reviewed by John Sopko 6/17/2014
The campus has purchased a campus-wide license for the Matlab software by MathWorks. Most department Windows machines come pre-installed with Matlab. If you have a Linux Machine or a Windows machine and need Matlab installed, please send email to help@cs-old.sites.unc.edu with the name of your machine. See the campus Matlab help page for more information on Matlab.
If you are a student with a computer not owned by the Computer Science Department, you can install Matlab on that machine. Follow the instructions on the campus Matlab page to obtain and install Matlab.
Mathematica
Information on Mathematica software
Reviewed by John Sopko 6/17/2014
The campus has purchased a campus wide license for Mathematica software by Wolfram. Most department Windows machines come pre-installed with Mathematica. If you have a Linux Machine or a Windows machine and need Matlab installed, please send email to help@cs-old.sites.unc.edu with the name of your machine. See the campus Mathematica help page for more information on Mathematica.
If you are a student with a computer not owned by the Computer Science Department, you can install Mathematica on that machine. Follow the instructions on the campus Mathematica help page to obtain and install Mathematica.
Emacs
Information on using the Emacs text editor
Reviewed by Murray Anderegg 02/27/2013
Emacs is a large and powerful text editor commonly used by programmers. It is a locally installed package on department Linux machines, and it is maintained by the GNU project with a home page at http://www.gnu.org/software/emacs/. Following is information on starting emacs, obtaining online help, basic text entry, and using the Meta key.
Starting emacs
To start emacs on a Linux system, type “emacs”.
If you are interested in using emacs, run the tutorial to get basic information. The tutorial is accessed by typing “Ctrl-h t” (that is, hold down the “control” key and, while holding it down, press “h”. Then release both keys and press “t”). The emacs tutorial is quite comprehensive and is recommended as a good way for a new emacs user to become familiar with emacs basics.
Obtaining online help
To get online help, type “Ctrl-h i” (that is, hold down the “control” key and, while holding it down, press “h”. Then release both keys and press “i”). There are also man pages (“man emacs”).
Basic text entry
To enter text, just type it in. Some simple functions:
quit: Ctrl-x Ctrl-c (automtically prompts to save your file).
cursor movement:
up: up arrow or Ctrl-p (“previous”)
down: down arrow or Ctrl-n (“next”)
left: left arrow or Ctrl-b (“back”)
right: right arrow or Ctrl-f (“forward”)
page forward: Ctrl-v
page backward: Esc v
search forward: ctrl-s (simply repeat to use last search target)
global-replace-with-confirm: Esc %
Using the Meta key
If you run emacs in an X environment and you have your DISPLAY environment variable set, emacs will by default bring up its own window. In the X environment, you can enter all commands starting with Esc by holding down the Meta key type % and hitting the second character of the command. (The Meta key is different depending on your keyboard and is generally next to the space bar; it may be the Alt, Windows, Macintosh command key.) For example, to enter the command Esc %, you would hold down the Meta key and then the % key. You are not required to do this; it is merely another option to using the Esc key.
Clamav for Ubuntu
Clamav is a free cross platform anti-virus package.
Reviewed by Bil Hays on 7/25/2013.
Clamav is a free and open source virus scanning tool. For personal use Installing clamav is pretty straightforward, there’s a version that runs in user space:
sudo apt-get install clamav
Run freshclam to update the signatures:
sudo freshclam
Then to scan the system, use clamscan.
clamscan -r --bell -i /afs/cs-old.sites.unc.edu/home/hays
The command above will scan my home directory, all files recursively, and it will ring the bell if it finds an infected file. If you want to scan the entire system, you’ll need to run clamscan with sudo. If you’re doing that on a machine that runs afs, you’ll also want to exclude /afs:
sudo clamscan -r --bell -i --exclude="/afs" /
If you would like to use a GUI for running clamav, install clamtk. It’s a good option in that you can use it to schedule regular scans if you’re not comfortable with the command line and cron, and it give you easy access to the basic functionality. To set a scheduled scan, open clamtk and press Ctrl-t to open the advanced settings menu.
Depending on how you use your computer, you may find some false positives. The best thing to do in that case is whitelist those files. Once you’re run a few scans and have what you need whitelisted, then you can make a folder called quarantine, and run clamav to move infected files there.
clamscan -r --bell -i --move=/afs/cs-old.sites.unc.edu/home/hays/quarantine /afs/cs-old.sites.unc.edu/home/hays
Obviously, false positive can be a real problem. Perl modules in cpan and javascript files may be tagged as problems, so use the quarantine option with care.
If you’d like to test this or other anti-virus software you can get a fake malware sample from eicar.