- 1 Linux@wur settings
- 1.1 Using an email client
- 1.2 Using the department printserver
- 1.3 Using the department printserver
- 1.4 Using the department fileserver
- 1.5 Accessing files on the DFS-Root
- 1.6 Connecting to the wireless network at WUR
- 1.7 Connecting to your computer from home
- 1.8 Using Citrix (Windows on Linux or OSX)
- 1.9 Changing Your Password
- 1.10 Using VMWare or Virtualbox
- 1.11 Using LaTeX
- 1.12 Other Services
- 1.13 Registering with the wurnet dns
- 1.14 Using your iOS device
- 1.15 Useful?
Using an email client
Using the department printserver
Using the department printserver
Using the department fileserver
In order to use the guides below, you'll have to know on which servers the windows shares reside. The easiest way is to use a Windows PC, start up Explorer, got to the share and look at the Properties.
Alternatively, you can use smbclient to find all shares on a server:
- smbclient -I <server>.wurnet.nl -W wurnet.nl -U yourname001 -L <server>
Where <server> is scomp0300 for PSG and scomp0291 for ESG.
Using smbmount (normal user)
Suppose the server your personal share is located on is called sdep001 and your username is annie001, your password is annie, and you want to mount this share on ~/mnt If you do not know this information you can get it out of the ActiveDirectoryServer or from the "My Computer" screen of a windows machine.
- smbmount '//sdep001/annie001$' ~/mnt/ -o username=annie001,password=annie,workgroup=WUR
if you leave out the password, the program will ask you for your password during the mounting:
- smbmount '//sdep001/annie001$' ~/mnt/ -o username=annie001,workgroup=WUR
Using mount (as root) =
you can also do this using regular mount, as Stephan Verrips writes:
- mount -t smbfs -o username=verri001,workgroup=wurnet.nl //sdpw0001.wurnet.nl/verri001$ ~/mnt
Alternatively, the (newer) CIFS protocol can be used instead of SMB. The following example connects to the 'webdocs' share where web related files can be stored.
- mkdir /mnt/webdocs
- mount -t cifs -o username=annie001,workgroup=wurnet.nl //skgr0004.wurnet.nl/webdocs$ /mnt/webdocs
Automatically mounting at boot (/etc/fstab)
Add the following line to the file /etc/fstab
//sdep001/annie001$ /mnt/wur smbfs username=annie001,password=annie,workgroup=WUR,uid=502 0 0
or a really working example for a shared network drive (for DPW - note the odd spaces in the name using \040):
//scomp0300/PSG~DPW\040Laboratory\040of\040Nematology$ /mnt/wur smbfs username=annie001,password=annie,workgroup=WUR,uid=501 0 0
//scomp0300/PSG~DPW\040Laboratory\040of\040Nematology$ /mnt/wur smbfs //username=annie001,password=annie,workgroup=WUR,uid=501 0 0
The uid represents the user id you use - check your id with the id command:
it is also possible to use a gid (group id) to share the mounted drive with multiple users on one system.
Note: since it contains your password this option is not so secure!
Safer is to use a separate password file:
- cd ~
- echo username=annie001 > .smbpassword
- echo password=annie >> .smbpassword
- chmod 600 .smbpassword
This created a hidden password file that can only be read by you or the root
Change the line in the /etc/fstab into
- //sdep001/annie001$ /mnt/wur smbfs credentials=/home/annie/.smbpassword,workgroup=WUR,uid=502 0 0
Note: you set the uid to your user id (see 'man id') so you can write/read from your normal account.
Another example, again using the CIFS protocol instead of SMB, to automatically connect to the 'webdocs' share:
- //skgr0004.wurnet.nl/webdocs$ /mnt/webdocs cifs credentials=/home/annie/.smbpassword,workgroup=wurnet.nl,uid=502 0 0
Windows shares can also be accessed, without any mounting, with the SMB kio slave (KDE). The SMB kio slave can be used in Konqueror but also in other KDE applications.
The format of the url is:
- username: wur\annie001
- hostname: sdep001.wur.nl
- sharename: annie001$
If you get the error "Connection to .... failed" and you are sure you typed the server name correctly, you have to manually set the wins server in /etc/samba/smb.conf. Find the line that reads like:
- ; wins server = <something>
Remove the ; and change the <something>:
- wins server = 10.110.10.3
You can also connect to the fileservers with WebDAV. GNOME and KDE both provide GUI's for doing that. In GNOME you can open the GUI with Connect to server... under Locations. In KDE you have to open konqueror and type "remote:/". Then click on the "Add a Network Folder"-icon.
Select the encrypted WebDAV(s)-type Then fill in the fields
- Server = wic2.wur.nl
- Port = 443 (or use encryption)
- Folder = ANNIE001_annie001
- User = annie001
- Name = anything you like
Accessing files through the web
Accessing files on the DFS-Root
What is the DFS-Root
DFS is Microsoft's Distributed File System. The purpose of a distributed file system is that the user can access files without knowing on which server the files are locates. The root of a distributed files system is called the DFS-Root. In the DFS-Root are virtual directories which are actual 'links' to shares on some servers.
In WURNET there is one wur-wide DFS-Root \\wur\dfs-root usually mapped to the W:-drive in windows.
The samba client is unable to directly access files in the DFS-Root, instead you have to connect to the actual underlying shares.
DFS-Root directory mappings
If you have access a file or directory in the format:
\\wur\dfs-root\dir\rest\of\path or W:\dir\rest\of\path
then you must substitute \\wur\dfs-root\dir or W:\dir according the following table (Dir -> share):
- AFSG = //ATO0001C/AFSG$
- APPS = //SCOMP0025/apps
- ASG = //LD010s/ASG$
- ATV = //SATVF0001/shares
- BC = //SCOMP0064/BC
- DPT-DIER = //SCOMP0064/DIER
- DPT-MAATSCHAPPIJ = //SCOMP0063/MAATSCHAPPIJ
- FB = //SCOMP0064/FB
- LEI = //LEIDH017S/SHARES
- PLANT PROJECTS = //SPRI0010/PLANTPROJECTS$
- RIKILT = //SCOMP0063/RIKILT
- STUDENT = //SCOMP0064/STUDENT
The spaces in the names have to be escaped, using \040.
Connecting to the wireless network at WUR
Instructions for connecting to the WUR network with Ubuntu and OS/X can be found at http://wireless.wur.nl/
Connecting to your computer from home
If you need access to your computer at the university. The simple way: get your computer into the public VLAN, you will get a fixed 137.224 IP address and you can connect to your computer from home using ssh. The system administrators from the departments can do this for you.
Once you are on the VLAN you can even use IMAP mail from home through ssh tunneling, using for example:
ssh -L 1993:imap.wur.nl:993 -f -N 137.224.xx.xx mutt -f imaps://yourlogin@localhost:1993/INBOX
using the VPN
Another, more complicated way, is to use VPN access. There are two clients for the VPN hardware in use at the university: a client from Cisco, and a native client called 'vpnc'. The native vpnc client is standard available in Debian Sid (apt-get install vpnc), I cannot say for other distributions. The cisco client can be downloaded from the university
the Cisco vpnclient
Note: this currently does not work with kernel 2.6!
- download the Linux client and the Profile from http://www.wur.nl/wurnet/deelprojecten/coax_vervanging_netwerkactualisering/index_vpn.html
- unpack the zip
- unpack the tgz
- run ./vpn_install
- run /etc/init.d/vpnclient_init start
- copy WUR.pcf from Profile zip file to /etc/CiscoSystemsVPNClient/Profiles/
- start with 'vpnclient connect WUR user blabl001' (blabl001 is your wur account)
the native vpnc
Note: recently vpnc stopped working
- unpack the tarball
- run 'make && make install'
- make a config file /etc/vpnc.conf containing:
Please note that these details have been removed at the request of FB-IT as they are part of the security policy of the WUR. Please do not reinstate these secrets without prior permission of the chief security officer.
IPSec gateway <removed at the request of FB-IT> IPSec ID <removed at the request of FB-IT> IPSec secret <removed at the request of FB-IT> Xauth username <removed at the request of FB-IT> Xauth password <removed at the request of FB-IT>
- beware, vpnc is very picky, you cannot have two spaces, or a tab, or any appending spaces or something like that in the file
- create the tun device ('mknod c 10 200 /dev/tun')
- modprobe tun
- start vpnc
- route add -net 10.0.0.0/8 dev tun
Using Citrix (Windows on Linux or OSX)
Changing Your Password
You can change your WURNET password with samba's client:
smbpasswd -r scomp0001.wurnet.nl -U annie0001
Passwords expire in 90 days - so make sure you reset it within that period. (Note: it is possible to keep your old password by running this command twice - setting it back the second run).
echo -e "$preferred_password\n$temporary_password\n$temporary_password" | smbpasswd -s -r $server -U $user
echo -e "$temporary_password\n$preferred_password\n$preferred_password" | smbpasswd -s -r $server -U $user
If you have been locked out of the network, you can still change the password online
Using VMWare or Virtualbox
Some webservices of WUR have problems with non-IE browsers. Check BrowserIssues for a list.
Registering with the wurnet dns
The wur dhcp server can automatically register your linux box in the dns. For this to work, the dhcpclient needs to send the hostname in netbios format to the dhcp server. If you host is called 'linux001', enter the following line in /etc/dhclient-eth0.conf:
- send host-name "LINUX001";
Your host will be known as linux001.wurnet.nl. Make sure you set your hostname accordingly using the hostname command:
- # hostname linux001.wurnet.nl
Using your iOS device
For more information, look at the iOS page.
If this information was useful to you please click ThisWasUseful!