Showing posts with label Imperial College. Show all posts
Showing posts with label Imperial College. Show all posts

Saturday, August 7, 2010

Debian: How to mount a windows samba share

A couple of days ago I was trying to use file space that my university provides on my laptop running debian linux. This guide does not only apply for the so-called "H: drive" of Imperial College but for all windows shares.

First of all, you need to install the following packages: smb-client and smbfs. Create a directory in your home directory that will be used for mounting the samba share. (mkdir ~/samba)

Then edit the /etc/fstab file by adding a row like this:

serverURL mountPoint smbfs username=XXXX,user,noauto 0 0

The username=XXXX part is for logging in to the remote sever. If no login is requred then it can be ommited. The user option allows for mounting the directoy without root privileges and noauto specifies that it won't be mounted automatically during startup.
The line should look like this:

//server/myDirectory/ /home/antonis/samba smbfs username=XXX,user,noauto 0 0

Then you can mount the directory using mount ~/samba. If a password is required you will prompted to type it. Once done unmount it by: umount ~/samba

Note: to access you Imperial H drive you should use the VPN service.

Wednesday, June 30, 2010

Imperial College printing from linux laptop

Well, this does not work perfectly for me and some problems may come up (e.g. when printing multiple pdf pages in a single page) but generally it works well. Strangely enough, there are instrunctions for this on the DoC's CSG old site but I couldn't find them on the new one. The old site's link is http://www.doc.ic.ac.uk/csg-old/ . click on the lab printers section and follow the instructions on the bottom of the screen. Basically, all you need to do is add the following lines at /etc/cups/printers.conf (replace username with your IC username): (https://www.doc.ic.ac.uk/csg-old/labprinters/printers.conf)

Restart cups and that should do the trick. The site suggests to also install the PPD file, you can do that, but as I metioned, I still got issues from time to time.
(tested on debian testing)