











|
The Universal
Operating System

VPN for Debian users in NUS
Notice for NUS VPN Users
I am no longer need to use NUS VPN. The methods introduced here may
not work if NUS network's security settings are changed.
Problems about installing NUS-VPN on Debian have been included in
the NUS-VPN FAQ. Unfortunately, the patch provided by the referred website
did not work on my laptop. I only managed to install NUS-VPN weeks after my
first Debian installation, by compiling the right kernel module. However, later
I found a much simpler alternative solution.
Solution 1 (recommended)
Thanks to Wu Yuansheng for posting the scripts on his website.
- $ apt-get install vpnc
- Download and edit this vpnc.conf. Change the "Xauth username" to your
NUS-uid. Then copy this file to /etc/vpnc/default.conf
- Download the script inside-nus-linux. Remember where you saved the
script (for example, your home directory).
- Go to the directory in which you saved the script (for example, your
home directory).
Connect to NUS vpn using the following command
$ vpnc-connect inside-nus-linux
and of course, you will be prompted to enter your NUS-uid password.
Solution 2 (compiling kernel header)
- Find out the kernel release,
In my case, the output was
- Add the following two lines in your /etc/apt/sources.list
deb ftp://mirror.nus.edu.sg/pub/Debian stable main non-free contrib
deb-src ftp://mirror.nus.edu.sg/pub/Debian stable main non-free contrib
|
- Install the right kernel header using
|
apt-get install kernel-headers-{your kernel release}
|
In this case, I should use
$ apt-get update
$ apt-get install kernel-headers-2.4.18-bf2.4
|
- Download NUS-VPN Client for Linux v.4.0.3.B-k9 from
http://nus.edu.sg/vpn/download.html OR https://network.nus.edu.sg/starterkit/#VPN1
Extract the file nus-vpnclient-linux-4.0.3.B-k9.tar.gz and run the script
When you are prompt to answer the following question,
|
Directory containing linux kernel source code
|
Type:
|
/usr/src/kernel-headers-{your kernel release}
|
In this case, I should type:
|
/usr/src/kernel-headers-2.4.18-bf2.4
|
The installation is now complete!
- Use the following to load the kernel module
|
$ /etc/init.d/vpnclient_init start
|
and use the following command to login:
|
$ vpnclient connect inside-nus
|
back to Debian
Template provided by WEBalley
|