NUSNET printing
From Linux & Open Source @ NUS
WORK IN PROGRESS
NUSNET Printing
The following HOWTO has been successfully tested in Ubuntu Feisty
Requirements
- Samba and WinBind need to be installed
-
apt-get install samba winbindon Feisty - Add winbind to the passwd and group sections of
/etc/nsswitch.conf - Test winbind using
/sbin/ldconfig -v |grep winbind... it should returnlibnss_winbindsomewhere in there. - Modify
smb.confor replace it with the one below (make a backup first!)
-
# Start of the smb.conf file - comments look like this. # Any lines beginning like this are comments. [global] workgroup = NUSSTU idmap gid = 10000-200000 idmap uid = 10000-200000 domain logons = No domain master = No security = domain winbind enum groups = Yes winbind enum users = Yes winbind use default domain = Yes wins server = 137.132.1.60 137.132.4.5 password server = 137.132.4.28 137.132.4.29 encrypt passwords = yes template shell = /home/%D/%U template shell = /bin/bash [homes] comment = Home Directories valid users = %S browseable = No read only = No inherit acls = Yes # End of smb.conf # Comment out all other lines instead of deleting them =)
- Find out the printer's model and hostname first!
Setting up the printer
- Go to System > Administration > Printer
- Add new printer
- Select network printer, and choose Windows Printer (SMB)
- Enter the Hostname of the printer you wish to print to
- Enter printer Name
- Followed by your NUSNET UserID and Password
- Select the printer model* after clicking "Forward"
- Enter Description and Location of your choice
- Your printer should be successfully added.
- (For this example we used HP Laserjet-8150)
Printing
- Do your work as per normal.
- Go to File -> Print.
- Choose the printer you set up earlier.
- Send the job and get it printed!
- Laugh evilly (optional if a lecturer is around.)

