This page provides an index of resources available to our students and visitors.
This system is specifically designed and configured for use by students and faculty in the CIS 129 (UNIX Shell Scripting) and CIS 229 (UNIX System Administration) courses. This system also supports instruction in CIS 122 (Web/Internet Technologies) and CIS 162 (Perl Programming).
This system was originally established running the RedHat 6.0 Distribution of Linux. The system has been upgraded from time to time, and currently runs the Debian GNU/Linux Release 4.0r3 Distribution.
This system now operates as a VMware Virtual Machine and shares hardware with other CIS Department servers running on shared hardware.
Please note that unencrypted terminal and file transfer sessions are no longer supported! The PuTTY secure shell client is available in the ACS labs, and is also recommended for accessing the system from off-campus Microsoft Windows-based systems. Remote Linux and Apple Mac OSX users may use the built-in ssh tools included with your operating system. All connections should be made using the secure shell protocol.
Linux is a free Unix-type operating system originally created by a Finnish college student named Linus Torvalds with the assistance of developers around the world. Linux is an independent POSIX implementation and includes true multitasking, virtual memory, shared libraries, demand loading, proper memory management, TCP/IP networking, and other features consistent with Unix-type systems. Developed under the GNU General Public License, the source code for Linux is freely available to everyone.
Linux HOWTOs are documents which describe in detail a certain aspect of configuring or using Linux. This mini-HOWTO is designed to help users and instructors take full advantage of the Linux systems provided for instructional use at HFCC.
The server at cis.hfcc.edu is designed for use by students enrolled in CIS 129 and CIS 229 Unix/Linux Courses, and is maintained by the Office of Administrative Data and Voice Communications at Henry Ford Community College. Additional servers maintained by instructors may also be available, but are beyond the scope of this HOWTO.
The system is available for use 24x7 with the exception of a small nightly backup window.
Support for this system may be obtained by contacting the HFCC Help Desk at extension 6345. Additional support information is available on the Computer Information Systems Web Site at http://cis.hfcc.edu/info/.
The CIS Linux server has been loaded with a rich variety of features, based on the Debian GNU/Linux Distribution of Linux.
Here is a brief list of some of the packages available on cis.hfcc.edu. Most of the
descriptions are either verbatim or adapted from an rpm -qi packagename query.
NOTE: misuse of these services will be considered a violation of the
HFCC Acceptable Use Policy.
Users can use the chsh command to change their default login shell.
1.2.2.1 Server Applications
1.2.2.2 Client Applications
A variety of development tools and languages are installed on this system. The following list may not be current or completely accurate.
The system contains additional programming tools such as make and patch, as well as a variety of debuggers.
Most (if not all) course work for CIS Unix classes is performed from a terminal session to the host. Due to certain security considerations, users are now required to connect using only secure protocols.
PuTTY is a free implementation of Telnet and SSH for Win32 platforms, along with an xterm terminal emulator. It is written and maintained primarily by Simon Tatham.
From the HFCC computer labs, you can connect to cis.hfcc.net using PuTTY. The PuTTY icon will be in your Windows Start Menu, but for easiest access, right click on your desktop and select New, then Shortcut, and build a shortcut to F:\Internet\PuTTY\putty.exe
If you want to use PuTTY to connect to the cis server from Off-Campus, go to the PuTTY Home Page at http://www.chiark.greenend.org.uk/~sgtatham/putty/ and look for the Download PuTTY link.
The first time you open PuTTY, you should make a couple of quick changes and save them to your default settings, as follows:
You may also want to default the following settings:
PuTTY contains two file transfer utilities, psftp and pscp, which can be used to transfer files over secure shell.
The psftp utility works very much like a standard ftp client. Refer to the ftp man page or PuTTY documentation for more details.
pscp is a command-line utility for transferring files to and from ssh servers. It works best when installed in a subdirectory referenced by your Windows PATH environment variable.
pscp filename.txt cis.hfcc.edu:filename.extpscp cis.hfcc.edu:filename.txt filename.extRefer to the PuTTY documentation for more details.
Since the CIS Linux server supports email, it would be possible to email files to this system as attachments. Some of the available mail clients could then be used to save the attachments to disk.
The uuencode utility provides a handy way of mailing files as attachments. Simply insert uuencode in a pipe, as shown in the examples below:
Example 1: Email a File
cat filename.ext|uuencode filename.ext|mailx -s "Some Subject" somebody@example.com
Example 2: Email Output from a Program
tar -czf - *|uuencode filename.tgz|mailx -s "Some Subject" somebody@example.com
It is possible to bring files to the server using HTTP clients such as lynx or wget. Due to security restrictions, users may not access most off-campus websites from the CIS server. However, users can access files in the h:\webpage folder of their ACS network home directory.
Example
wget http://acs.hfcc.edu/~username/filename.ext
Files placed in each user's public_html folder can be accessed from the web. Setting up this folder is documented in other sections of this guide.
The use of other clients for ssh sessions is beyond the scope of this HOWTO.
The CIS Linux system has complete e-mail services, with the following restriction: the system cannot be used as a mail relay for remote clients.
As noted in the Introduction, many different e-mail tools have been installed on this system.
The mailx package provides a simple interface for sending and reading mail. To read mail using mailx, simply type mail at the shell prompt.
To send a message using mail, type mail -s "Subject Goes Here" recipient at the prompt, where "recipient" is the e-mail address of the receiver. You will next see your cursor on a blank line. Type your message. To end your message, either type a . (period) on an empty line or press Ctrl-D on an empty line. You will next be prompted for cc: recipients. Press enter to send your message.
mailx is often used in shell scripts to send output via e-mail. For example, to have the amount of disk space e-mailed to you, type
df | mail -s "Output of df" myname
where myname is your login name. To run your own command, type the following:
myshellscript | mail -s "Output of my job" myname
where myshellscript is the script to run. To get a little more advanced, you can also handle where errors go. To ignore errors, type
myshellscript 2>/dev/null | mail -s "Output of my job" myname
To include errors, type
myshellscript 2>&1 | mail -s "Output of my job" myname
These last two examples are useful when running your job with at and cron. If you don't redirect your errors, at and cron will send an additional message containing them, if there are any.
The Pine (Program for Internet News and Email) program from the University of Washington is a very popular program for handling news and e-mail. To run it, simply type pine and press enter. Pressing ? at Pine's main menu screen will display extensive documentation on using the program.
If you want to forward all of your cis mail to another address, create a .forward file in your home directory. The easiest way to do this is to type
cat > .forward
from a shell prompt in your home directory. Type the forwarding address and press enter, then press Ctrl+D and then Enter again. To have your mail forwarded to an ISP and delivered locally, put both addresses in the file, for example:
cat > .forward
username
username@example.com
(press Ctrl-D)
You can also create rules for handling mail with procmail. Configuration of procmail is beyond the scope of this document. See the procmail documentation for details.
Users may publish pages on the cis.hfcc.edu web server.
To create a web page, first create a directory named public_html in your home directory,
then create the file index.html, for example:
mylogin@cis:~$ mkdir public_html
mylogin@cis:~$ cat > public_html/index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<title>My Home Page</title>
</head>
<body>
<h1>This is my home page!</h1>
<p>Do you like it?</p>
</body>
</html>
(press Ctrl-D)
mylogin@cis:~$
This will create a (very) simple home page, which you can view at http://cis.hfcc.edu/~mylogin.
User home pages may be created locally using any text editor (vi, joe, etc.) or created remotely and published via ftp. Web Page development is beyond the scope of this article. HFCC offers courses in web design.
You may find that when you try to browse to http://cis.hfcc.edu/~mylogin that you get a message like this one:
Forbidden
You don't have permission to access /~mylogin/ on this server.
If so, you will need to fix the permissions on your home directory. To do so, ssh to the server and log in. You will need to use the Unix chmod command to fix the permissions on your directory. For example:
mylogin@cis:~$ chmod o+x .
mylogin@cis:~$ chmod 755 public_html
Make sure that you do not give global write permissions to your home directory!
For more information, see the chmod man page.
By default, the system will use an LDAP lookup to use your ACS Network (Novell) password for authentication. You may change your password on the Linux system, after which either password will allow you to authenticate.
To change your password, establish a shell session as defined in Section 2, then use the passwd command. The system is configured with a fairly stringent set of rules, and will not allow users to set a password deemed too easy to crack. See the passwd Man Page for more details.
To print from Linux, use the lpr command. There is no default printer configured for this system, so you must specify the printer name on the lpr command line.
lpr -pprintername filenamesomecommand | lpr -pprinternameSee the lpr man page or the online documentation for more details.
Printing is provided using the Common UNIX Printing System, also known as CUPS. On-campus users can view printer status and manage print jobs using the CUPS web interface at http://cis.hfcc.net:631/.
The only printers currently configured are in rooms T194 and T199. The printer name for th printer in T199 is t199laser. The T194 printers are combined into a class with printer name of t194laser. To have printers configured in additional labs, please contact the Help Desk at x6345 or helpdesk@hfcc.net.