8 | | * [http://oku2006.blog43.fc2.com/blog-entry-1598.html VPN の素人が UT-VPN を使ってみた K.O.K.Blog] |
| 11 | * see also UT-VPN_Startup_Guide_for_UNIX.pdf |
| 12 | |
| 13 | * Ubuntu 11.04 Natty Narwhal == |
| 14 | * mitty@ubuntu-vpn:~$ uname -a |
| 15 | {{{ |
| 16 | Linux ubuntu-vpn 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux |
| 17 | }}} |
| 18 | |
| 19 | 1. mitty@ubuntu-vpn:~$ sudo aptitude install -R build-essential libssl-dev libreadline-dev libncurses-dev |
| 20 | {{{ |
| 21 | Note: selecting "libncurses5-dev" instead of the |
| 22 | virtual package "libncurses-dev" |
| 23 | The following NEW packages will be installed: |
| 24 | binutils{a} build-essential cpp{a} cpp-4.5{a} dpkg-dev{a} g++{a} |
| 25 | g++-4.5{a} gcc{a} gcc-4.5{a} libc-dev-bin{a} libc6-dev{a} |
| 26 | libcloog-ppl0{a} libdpkg-perl{a} libelfg0{a} libgmp3c2{a} |
| 27 | libgmpxx4ldbl{a} libgomp1{a} libmpc2{a} libmpfr4{a} libncurses5-dev |
| 28 | libppl-c2{a} libppl7{a} libreadline-dev libreadline6-dev{a} libssl-dev |
| 29 | libstdc++6-4.5-dev{a} linux-libc-dev{a} make{a} patch{a} zlib1g-dev{a} |
| 30 | The following packages are RECOMMENDED but will NOT be installed: |
| 31 | fakeroot libalgorithm-merge-perl manpages-dev |
| 32 | 0 packages upgraded, 30 newly installed, 0 to remove and 0 not upgraded. |
| 33 | }}} |
| 34 | 1. mitty@ubuntu-vpn:~$ wget 'http://utvpn.tsukuba.ac.jp/files/utvpn/v1.01-7101-public-2010.06.27/Source%20Code%20(Win32%20and%20Unix)/utvpn-src-unix-v101-7101-public-2010.06.27.tar.gz' |
| 35 | 1. mitty@ubuntu-vpn:~$ tar xzf utvpn-src-unix-v101-7101-public-2010.06.27.tar.gz |
| 36 | 1. mitty@ubuntu-vpn:~/utvpn-unix-v101-7101-public$ ./configure --help |
| 37 | {{{ |
| 38 | (snip) |
| 39 | |
| 40 | Please select your Operating System below: |
| 41 | 1: Linux |
| 42 | 2: FreeBSD |
| 43 | 3: Solaris |
| 44 | 4: Mac OS X |
| 45 | |
| 46 | Which is your operating system (1-4): |
| 47 | 1 |
| 48 | |
| 49 | Please select your CPU Bits below: |
| 50 | 1: 32-bit |
| 51 | 2: 64-bit |
| 52 | |
| 53 | Which is the bits of your CPU (1-2): |
| 54 | 2 |
| 55 | |
| 56 | Makefile is generated. Please execute 'make' to build UT-VPN. |
| 57 | }}} |
| 58 | 1. mitty@ubuntu-vpn:~/utvpn-unix-v101-7101-public$ make |
| 59 | 1. mitty@ubuntu-vpn:~/utvpn-unix-v101-7101-public$ sudo make install |
| 60 | {{{ |
| 61 | cp output/utvpnserver/hamcore.utvpn /usr/utvpnserver/hamcore.utvpn |
| 62 | cp output/utvpnserver/utvpnserver /usr/utvpnserver/utvpnserver |
| 63 | echo "#!/bin/sh" > /usr/bin/utvpnserver |
| 64 | echo /usr/utvpnserver/utvpnserver '"$@"' >> /usr/bin/utvpnserver |
| 65 | echo 'exit $?' >> /usr/bin/utvpnserver |
| 66 | chmod 755 /usr/bin/utvpnserver |
| 67 | cp output/utvpnclient/hamcore.utvpn /usr/utvpnclient/hamcore.utvpn |
| 68 | cp output/utvpnclient/utvpnclient /usr/utvpnclient/utvpnclient |
| 69 | echo "#!/bin/sh" > /usr/bin/utvpnclient |
| 70 | echo /usr/utvpnclient/utvpnclient '"$@"' >> /usr/bin/utvpnclient |
| 71 | echo 'exit $?' >> /usr/bin/utvpnclient |
| 72 | chmod 755 /usr/bin/utvpnclient |
| 73 | cp output/utvpncmd/hamcore.utvpn /usr/utvpncmd/hamcore.utvpn |
| 74 | cp output/utvpncmd/utvpncmd /usr/utvpncmd/utvpncmd |
| 75 | echo "#!/bin/sh" > /usr/bin/utvpncmd |
| 76 | echo /usr/utvpncmd/utvpncmd '"$@"' >> /usr/bin/utvpncmd |
| 77 | echo 'exit $?' >> /usr/bin/utvpncmd |
| 78 | chmod 755 /usr/bin/utvpncmd |
| 79 | |
| 80 | -------------------------------------------------------------------- |
| 81 | Installation completed successfully. |
| 82 | |
| 83 | Please execute 'utvpnserver start' to run UT-VPN Server Background Service. |
| 84 | Or please execute 'utvpnclient start' to run UT-VPN Client Background Service. |
| 85 | And please execute 'utvpncmd' to run UT-VPN Command-Line Utility to configure UT-Server or UT-VPN Client. |
| 86 | -------------------------------------------------------------------- |
| 87 | |
| 88 | }}} |