Site Navigation NOC Home
Other links
SoC Homepage |
Accessing NUSNET with LinuxThis guide is for people who want to setup and configure their Linux system to access their NUSNET home directories and print to printers in SoC. These instructions are written for and tested on a Red Hat Linux 8.0 system installed with Samba 2.2.5 (distributed in Red Hat Linux 8.0). As Linux distributions and software evolve rapidly and differ from distribution to distribution and from version to version, you may have to modify the examples to cater to your specific configuration. These instructions assume that you have:
Setting up SambaSamba Configuration FileThere are a few things you need to add to the Samba system-wide configuration file so that you don't have to keep specifying certain arguments every time you use the various Samba commands.
Permissions of Samba CommandsIf you want to connect and disconnect (known as mounting and unmounting in UNIX terminology) NUSNET directories while logged in as a normal user, you need to setuid to root the smbmnt (invoked by smbmount) and smbumount programs. This is because these commands work only when invoked with root privileges. chmod 4755 /usr/bin/smbmnt It is always best to login to your computer as a normal user, and switch user to root only when you need to perform system administration tasks. Setup Printer Queue
PrintingYou can now print using the standard UNIX print commands, optionally specifying the name of the print queue if you want to print to a printer other than the default. For example: lpr -Ppsmr somefile.ps Remember that you must send postscript content to the printers. You can send plain text content too, but definitely not Microsoft Word documents or the likes. This is no different from how you would print from any of SoC's central UNIX servers. On some Linux systems, there are 'magic filters' that help you convert from various file formats to postscript automatically so that, for example, you could send a GIF file to lpr and it will print correctly. Your mileage will vary; experiment on your system! There is no way to check on the status of the actual print queue from your own system. In particular, a command like lpq -Ppsmr on your computer is only going to tell you the print status of the queue on your computer. Since you are printing to a remote print server, your print job will be delivered to the destination almost instantly and queued remotely. Accessing Home DirectoriesAccessing or connecting to a NUSNET directory is the UNIX equivalent of mounting a directory. You can access the contents of your NUSNET home directory as if it were a directory in your computer.
You need to know the name of the network path to your NUSNET home directory. This is made up of two parts: the name of your home directory server, and the name of the share that contains your home directory. The server is NTS09 for all SoC staff and NTS27 for all SoC students. The share name is made up from the first few characters of your NUSNET userid. For staff, this would be the first 3 characters of your NUSNET userid. For students, this would be the first 4 characters of your NUSNET userid (e.g., iscp, isc1, isc9, etc). To mount a directory, create the directory mount point and run smbmount //server/share mount-point -o username=nusnetuserid. The following commands would be used by a SoC staff with the NUSNET userid comuser:
cd ~ The following commands would be used by a SoC student with NUSNET userid isc09999:
cd ~ You will be prompted for your NUSNET password. Your NUSNET home directory would then be found at ~/nusnet/nusnetuserid where nusnetuserid is your actual NUSNET userid. When you are done using this directory, unmount with these commands:
cd ~ This is the general method for accessing any NUSNET and/or Windows share. For example, to access your SoC UNIX home directory, use these commands:
cd ~ Substitute socuserid with your SoC UNIX userid and nusnetuserid with your NUSNET userid. Notice that both your SoC UNIX and NUSNET userid are required. You will be prompted for your NUSNET password. Your home directory will then be found at ~/unix. When you are done using this directory, unmount with these commands:
cd ~ Ref: original |