Advertisement
Guest User

Installing Cisco VPN Client on Ubuntu 11.10

a guest
Oct 25th, 2011
5,941
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 11.63 KB | None | 0 0
  1. seth@seth-XPS-630i:~$ cd vpninstall/
  2. seth@seth-XPS-630i:~/vpninstall$ ls
  3. vpnclient  vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz
  4. seth@seth-XPS-630i:~/vpninstall$ cd vpnclient/
  5. seth@seth-XPS-630i:~/vpninstall/vpnclient$ ls
  6. AMD-PATCH-README.txt  driver_build.sh  IPSecDrvOSFunctions.h  libdriver.so   linuxcniapi.h     sample.pcf       vpnclient.ini           vpn_uninstall
  7. cisco_cert_mgr        frag.c           IPSecDrvOS_linux.c     libvpnapi.so   linuxkernelapi.c  unixcniapi.h     vpnclient_init
  8. Cniapi.h              frag.h           IPSecDrvOS_linux.h     license.rtf    linux_os.h        unixkernelapi.h  vpnclient.patch-2.6.38
  9. config.h              GenDefs.h        ipseclog               license.txt    Makefile          vpnapi.h         vpn_install
  10. cvpnd                 interceptor.c    libdriver64.so         linuxcniapi.c  mtu.h             vpnclient        vpn_ioctl_linux.h
  11. seth@seth-XPS-630i:~/vpninstall/vpnclient$ patch
  12. ^C
  13. seth@seth-XPS-630i:~/vpninstall/vpnclient$ patch <vnpnclient.patch-2.6.38
  14. bash: vnpnclient.patch-2.6.38: No such file or directory
  15. seth@seth-XPS-630i:~/vpninstall/vpnclient$ patch <vpnclient.patch-2.6.38
  16. patching file frag.c
  17. patching file interceptor.c
  18. patching file IPSecDrvOS_linux.c
  19. patching file linuxcniapi.c
  20. patching file linuxcniapi.h
  21. patching file linuxkernelapi.c
  22. patching file Makefile
  23. seth@seth-XPS-630i:~/vpninstall/vpnclient$ sudo ./vpn_install
  24. [sudo] password for seth:
  25. Cisco Systems VPN Client Version 4.8.02 (0030) Linux Installer
  26. Copyright (C) 1998-2006 Cisco Systems, Inc. All Rights Reserved.
  27.  
  28. By installing this product you agree that you have read the
  29. license.txt file (The VPN Client license) and will comply with
  30. its terms.
  31.  
  32.  
  33. Directory where binaries will be installed [/usr/local/bin]
  34.  
  35. Automatically start the VPN service at boot time [yes]
  36.  
  37. In order to build the VPN kernel module, you must have the
  38. kernel headers for the version of the kernel you are running.
  39.  
  40.  
  41. Directory containing linux kernel source code [/lib/modules/3.0.0-12-generic-pae/build]
  42.  
  43. * Binaries will be installed in "/usr/local/bin".
  44. * Modules will be installed in "/lib/modules/3.0.0-12-generic-pae/CiscoVPN".
  45. * The VPN service will be started AUTOMATICALLY at boot time.
  46. * Kernel source from "/lib/modules/3.0.0-12-generic-pae/build" will be used to build the module.
  47.  
  48. Is the above correct [y]
  49.  
  50. Making module
  51. In file included from /lib/modules/3.0.0-12-generic-pae/build/include/linux/kernel.h:13:0,
  52.                  from /lib/modules/3.0.0-12-generic-pae/build/include/linux/skbuff.h:17,
  53.                  from /lib/modules/3.0.0-12-generic-pae/build/include/linux/if_ether.h:126,
  54.                  from /lib/modules/3.0.0-12-generic-pae/build/include/linux/netdevice.h:29,
  55.                  from linuxcniapi.c:20:
  56. /lib/modules/3.0.0-12-generic-pae/build/include/linux/linkage.h:5:25: fatal error: asm/linkage.h: No such file or directory
  57. compilation terminated.
  58. In file included from /lib/modules/3.0.0-12-generic-pae/build/include/linux/kernel.h:13:0,
  59.                  from /lib/modules/3.0.0-12-generic-pae/build/include/linux/cache.h:4,
  60.                  from /lib/modules/3.0.0-12-generic-pae/build/include/linux/time.h:7,
  61.                  from /lib/modules/3.0.0-12-generic-pae/build/include/linux/stat.h:60,
  62.                  from /lib/modules/3.0.0-12-generic-pae/build/include/linux/module.h:10,
  63.                  from interceptor.c:19:
  64. /lib/modules/3.0.0-12-generic-pae/build/include/linux/linkage.h:5:25: fatal error: asm/linkage.h: No such file or directory
  65. compilation terminated.
  66. In file included from /lib/modules/3.0.0-12-generic-pae/build/include/linux/thread_info.h:52:0,
  67.                  from /lib/modules/3.0.0-12-generic-pae/build/include/linux/preempt.h:9,
  68.                  from /lib/modules/3.0.0-12-generic-pae/build/include/linux/spinlock.h:50,
  69.                  from /lib/modules/3.0.0-12-generic-pae/build/include/linux/vmalloc.h:4,
  70.                  from IPSecDrvOS_linux.c:22:
  71. /lib/modules/3.0.0-12-generic-pae/build/include/linux/bitops.h:22:24: fatal error: asm/bitops.h: No such file or directory
  72. compilation terminated.
  73. In file included from /lib/modules/3.0.0-12-generic-pae/build/include/linux/kernel.h:13:0,
  74.                  from /lib/modules/3.0.0-12-generic-pae/build/include/linux/skbuff.h:17,
  75.                  from /lib/modules/3.0.0-12-generic-pae/build/include/linux/if_ether.h:126,
  76.                  from /lib/modules/3.0.0-12-generic-pae/build/include/linux/netdevice.h:29,
  77.                  from frag.c:9:
  78. /lib/modules/3.0.0-12-generic-pae/build/include/linux/linkage.h:5:25: fatal error: asm/linkage.h: No such file or directory
  79. compilation terminated.
  80. In file included from linuxkernelapi.c:1:0:
  81. /lib/modules/3.0.0-12-generic-pae/build/include/linux/string.h:21:24: fatal error: asm/string.h: No such file or directory
  82. compilation terminated.
  83. ld: cannot find linuxkernelapi.o: No such file or directory
  84. ld: cannot find frag.o: No such file or directory
  85. ld: cannot find linuxcniapi.o: No such file or directory
  86. ld: cannot find IPSecDrvOS_linux.o: No such file or directory
  87. ld: cannot find interceptor.o: No such file or directory
  88. Failed to make module "cisco_ipsec".
  89. seth@seth-XPS-630i:~/vpninstall/vpnclient$ ls
  90. seth@seth-XPS-630i:~/vpninstall/vpnclient$ ls
  91. seth@seth-XPS-630i:~/vpninstall/vpnclient$ cd ..
  92. seth@seth-XPS-630i:~/vpninstall$ ls
  93. vpnclient  vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz
  94. seth@seth-XPS-630i:~/vpninstall$ cd vpnclient/
  95. seth@seth-XPS-630i:~/vpninstall/vpnclient$ ls
  96. AMD-PATCH-README.txt  driver_build.sh  IPSecDrvOSFunctions.h  libdriver.so   linuxcniapi.h     sample.pcf       vpnclient.ini            vpn_uninstall
  97. cisco_cert_mgr        frag.c           IPSecDrvOS_linux.c     libvpnapi.so   linuxkernelapi.c  unixcniapi.h     vpnclient_init
  98. Cniapi.h              frag.h           IPSecDrvOS_linux.h     license.rtf    linux_os.h        unixkernelapi.h  vpnclient_linux3.0.diff
  99. config.h              GenDefs.h        ipseclog               license.txt    Makefile          vpnapi.h         vpn_install
  100. cvpnd                 interceptor.c    libdriver64.so         linuxcniapi.c  mtu.h             vpnclient        vpn_ioctl_linux.h
  101. seth@seth-XPS-630i:~/vpninstall/vpnclient$ patch <vpnclient_linux3.0.diff
  102. patching file driver_build.sh
  103. patching file vpnclient_init
  104. patching file vpn_install
  105. seth@seth-XPS-630i:~/vpninstall/vpnclient$ sudo ./vpn_install
  106. Cisco Systems VPN Client Version 4.8.02 (0030) Linux Installer
  107. Copyright (C) 1998-2006 Cisco Systems, Inc. All Rights Reserved.
  108.  
  109. By installing this product you agree that you have read the
  110. license.txt file (The VPN Client license) and will comply with
  111. its terms.
  112.  
  113.  
  114. Directory where binaries will be installed [/usr/local/bin]
  115.  
  116. Automatically start the VPN service at boot time [yes]
  117.  
  118. In order to build the VPN kernel module, you must have the
  119. kernel headers for the version of the kernel you are running.
  120.  
  121.  
  122. Directory containing linux kernel source code [/lib/modules/3.0.0-12-generic-pae/build]
  123.  
  124. * Binaries will be installed in "/usr/local/bin".
  125. * Modules will be installed in "/lib/modules/3.0.0-12-generic-pae/CiscoVPN".
  126. * The VPN service will be started AUTOMATICALLY at boot time.
  127. * Kernel source from "/lib/modules/3.0.0-12-generic-pae/build" will be used to build the module.
  128.  
  129. Is the above correct [y]
  130.  
  131. Making module
  132. make -C /lib/modules/3.0.0-12-generic-pae/build SUBDIRS=/home/seth/vpninstall/vpnclient modules
  133. make[1]: Entering directory `/usr/src/linux-headers-3.0.0-12-generic-pae'
  134.  CC [M]  /home/seth/vpninstall/vpnclient/linuxcniapi.o
  135. /home/seth/vpninstall/vpnclient/linuxcniapi.c:14:28: fatal error: linux/autoconf.h: No such file or directory
  136. compilation terminated.
  137. make[2]: *** [/home/seth/vpninstall/vpnclient/linuxcniapi.o] Error 1
  138. make[1]: *** [_module_/home/seth/vpninstall/vpnclient] Error 2
  139. make[1]: Leaving directory `/usr/src/linux-headers-3.0.0-12-generic-pae'
  140. make: *** [default] Error 2
  141. Failed to make module "cisco_ipsec.ko".
  142. seth@seth-XPS-630i:~/vpninstall/vpnclient$ patch <vpnclient.patch-2.6.38
  143. patching file frag.c
  144. patching file interceptor.c
  145. patching file IPSecDrvOS_linux.c
  146. patching file linuxcniapi.c
  147. patching file linuxcniapi.h
  148. patching file linuxkernelapi.c
  149. patching file Makefile
  150. seth@seth-XPS-630i:~/vpninstall/vpnclient$ sudo ./vpn_install
  151. Cisco Systems VPN Client Version 4.8.02 (0030) Linux Installer
  152. Copyright (C) 1998-2006 Cisco Systems, Inc. All Rights Reserved.
  153.  
  154. By installing this product you agree that you have read the
  155. license.txt file (The VPN Client license) and will comply with
  156. its terms.
  157.  
  158.  
  159. Directory where binaries will be installed [/usr/local/bin]
  160.  
  161. Automatically start the VPN service at boot time [yes]
  162.  
  163. In order to build the VPN kernel module, you must have the
  164. kernel headers for the version of the kernel you are running.
  165.  
  166.  
  167. Directory containing linux kernel source code [/lib/modules/3.0.0-12-generic-pae/build]
  168.  
  169. * Binaries will be installed in "/usr/local/bin".
  170. * Modules will be installed in "/lib/modules/3.0.0-12-generic-pae/CiscoVPN".
  171. * The VPN service will be started AUTOMATICALLY at boot time.
  172. * Kernel source from "/lib/modules/3.0.0-12-generic-pae/build" will be used to build the module.
  173.  
  174. Is the above correct [y]
  175.  
  176. Making module
  177. make -C /lib/modules/3.0.0-12-generic-pae/build SUBDIRS=/home/seth/vpninstall/vpnclient modules
  178. make[1]: Entering directory `/usr/src/linux-headers-3.0.0-12-generic-pae'
  179.  CC [M]  /home/seth/vpninstall/vpnclient/linuxcniapi.o
  180.  CC [M]  /home/seth/vpninstall/vpnclient/frag.o
  181.  CC [M]  /home/seth/vpninstall/vpnclient/IPSecDrvOS_linux.o
  182.  CC [M]  /home/seth/vpninstall/vpnclient/interceptor.o
  183.  CC [M]  /home/seth/vpninstall/vpnclient/linuxkernelapi.o
  184.  LD [M]  /home/seth/vpninstall/vpnclient/cisco_ipsec.o
  185.  Building modules, stage 2.
  186.  MODPOST 1 modules
  187. WARNING: could not find /home/seth/vpninstall/vpnclient/.libdriver.so.cmd for /home/seth/vpninstall/vpnclient/libdriver.so
  188.  CC      /home/seth/vpninstall/vpnclient/cisco_ipsec.mod.o
  189.  LD [M]  /home/seth/vpninstall/vpnclient/cisco_ipsec.ko
  190. make[1]: Leaving directory `/usr/src/linux-headers-3.0.0-12-generic-pae'
  191. Create module directory "/lib/modules/3.0.0-12-generic-pae/CiscoVPN".
  192. Copying module to directory "/lib/modules/3.0.0-12-generic-pae/CiscoVPN".
  193. Already have group 'bin'
  194.  
  195. Creating start/stop script "/etc/init.d/vpnclient_init".
  196.     /etc/init.d/vpnclient_init
  197. Enabling start/stop script for run level 3,4 and 5.
  198. Creating global config /etc/opt/cisco-vpnclient
  199.  
  200. Installing license.txt (VPN Client license) in "/opt/cisco-vpnclient/":
  201.     /opt/cisco-vpnclient/license.txt
  202.  
  203. Installing bundled user profiles in "/etc/opt/cisco-vpnclient/Profiles/":
  204. * New Profiles     : sample
  205.  
  206. Copying binaries to directory "/opt/cisco-vpnclient/bin".
  207. Adding symlinks to "/usr/local/bin".
  208.     /opt/cisco-vpnclient/bin/vpnclient
  209.     /opt/cisco-vpnclient/bin/cisco_cert_mgr
  210.     /opt/cisco-vpnclient/bin/ipseclog
  211. Copying setuid binaries to directory "/opt/cisco-vpnclient/bin".
  212.     /opt/cisco-vpnclient/bin/cvpnd
  213. Copying libraries to directory "/opt/cisco-vpnclient/lib".
  214.     /opt/cisco-vpnclient/lib/libvpnapi.so
  215. Copying header files to directory "/opt/cisco-vpnclient/include".
  216.     /opt/cisco-vpnclient/include/vpnapi.h
  217.  
  218. Setting permissions.
  219.     /opt/cisco-vpnclient/bin/cvpnd (setuid root)
  220.     /opt/cisco-vpnclient (group bin readable)
  221.     /etc/opt/cisco-vpnclient (group bin readable)
  222.     /etc/opt/cisco-vpnclient/Profiles (group bin readable)
  223.     /etc/opt/cisco-vpnclient/Certificates (group bin readable)
  224. * You may wish to change these permissions to restrict access to root.
  225. * You must run "/etc/init.d/vpnclient_init start" before using the client.
  226. * This script will be run AUTOMATICALLY every time you reboot your computer.
  227. seth@seth-XPS-630i:~/vpninstall/vpnclient$
  228.  
  229.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement