解決在ubuntu 上安裝 the Cisco AnyConnect client(vpn外掛)的問題
Installing the Cisco AnyConnect client
- First, make sure you have the necessary Debian/Ubuntu support packages installed:
$ sudo apt-get update $ sudo apt-get install lib32z1 lib32ncurses5
- 下載安裝包 開啟連結 https://uci.service-now.com/kb_view.do?sysparm_article=KB0010201
- 下載32 or 64 bit client as a .gz file.
- 如果你不知道這個那個版本,你可以這樣:
$ uname -a Linux sporkula 3.19.0-31-lowlatency #36-Ubuntu SMP PREEMPT Wed Oct 7 15:44:16 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux $_
~$ cd ~/Downloads ~/Downloads]$ tar -xzvf anyconnect-predeploy-linux-64-4.3.05017-k9.tar\ 6.59.23\ AM.gz anyconnect-4.3.05017/ anyconnect-4.3.05017/vpn/ anyconnect-4.3.05017/vpn/vpn_install.sh anyconnect-4.3.05017/vpn/vpnagentd anyconnect-4.3.05017/vpn/vpnagentd_init anyconnect-4.3.05017/vpn/vpn_uninstall.sh anyconnect-4.3.05017/vpn/anyconnect_uninstall.sh anyconnect-4.3.05017/vpn/libacciscossl.so anyconnect-4.3.05017/vpn/libacciscocrypto.so anyconnect-4.3.05017/vpn/libaccurl.so.4.3.0 anyconnect-4.3.05017/vpn/vpnui anyconnect-4.3.05017/vpn/cisco-anyconnect.desktop anyconnect-4.3.05017/vpn/cisco-anyconnect.menu anyconnect-4.3.05017/vpn/cisco-anyconnect.directory anyconnect-4.3.05017/vpn/libvpnagentutilities.so anyconnect-4.3.05017/vpn/libvpncommon.so anyconnect-4.3.05017/vpn/libvpncommoncrypt.so anyconnect-4.3.05017/vpn/libvpnapi.so anyconnect-4.3.05017/vpn/libvpnipsec.so anyconnect-4.3.05017/vpn/vpn anyconnect-4.3.05017/vpn/acinstallhelper anyconnect-4.3.05017/vpn/pixmaps/ anyconnect-4.3.05017/vpn/pixmaps/company-logo.png anyconnect-4.3.05017/vpn/pixmaps/cvc-about.png anyconnect-4.3.05017/vpn/pixmaps/cvc-configure.png anyconnect-4.3.05017/vpn/pixmaps/cvc-connect.png anyconnect-4.3.05017/vpn/pixmaps/cvc-disconnect.png anyconnect-4.3.05017/vpn/pixmaps/cvc-info.png anyconnect-4.3.05017/vpn/pixmaps/systray_connected.png anyconnect-4.3.05017/vpn/pixmaps/systray_disconnecting.png anyconnect-4.3.05017/vpn/pixmaps/systray_notconnected.png anyconnect-4.3.05017/vpn/pixmaps/systray_quarantined.png anyconnect-4.3.05017/vpn/pixmaps/systray_reconnecting.png anyconnect-4.3.05017/vpn/pixmaps/vpnui48.png anyconnect-4.3.05017/vpn/pixmaps/downloader-arrow.png anyconnect-4.3.05017/vpn/manifesttool anyconnect-4.3.05017/vpn/ACManifestVPN.xml anyconnect-4.3.05017/vpn/vpndownloader anyconnect-4.3.05017/vpn/vpndownloader-cli anyconnect-4.3.05017/vpn/update.txt anyconnect-4.3.05017/vpn/OpenSource.html anyconnect-4.3.05017/vpn/AnyConnectProfile.xsd anyconnect-4.3.05017/vpn/AnyConnectLocalPolicy.xsd anyconnect-4.3.05017/vpn/libacfeedback.so anyconnect-4.3.05017/vpn/license.txt anyconnect-4.3.05017/vpn/VeriSignClass3PublicPrimaryCertificationAuthority-G5.pem anyconnect-4.3.05017/dart/ anyconnect-4.3.05017/dart/dart_install.sh anyconnect-4.3.05017/dart/AMPEnabler.xml anyconnect-4.3.05017/dart/AnyConnectConfig.xml anyconnect-4.3.05017/dart/BaseConfig.xml anyconnect-4.3.05017/dart/ConfigXMLSchema.xsd anyconnect-4.3.05017/dart/DARTGUI.glade anyconnect-4.3.05017/dart/ISEPosture.xml anyconnect-4.3.05017/dart/NetworkVisibility.xml anyconnect-4.3.05017/dart/Posture.xml anyconnect-4.3.05017/dart/RequestXMLSchema.xsd anyconnect-4.3.05017/dart/Umbrella.xml anyconnect-4.3.05017/dart/cisco-anyconnect-dart.desktop anyconnect-4.3.05017/dart/cisco-anyconnect-dart.directory anyconnect-4.3.05017/dart/cisco-anyconnect-dart.menu anyconnect-4.3.05017/dart/ciscoLogo.png anyconnect-4.3.05017/dart/dartCustom.png anyconnect-4.3.05017/dart/dartTypical.png anyconnect-4.3.05017/dart/dart_uninstall.sh anyconnect-4.3.05017/dart/dartcli anyconnect-4.3.05017/dart/dartcli.symbols anyconnect-4.3.05017/dart/dartui anyconnect-4.3.05017/dart/dartui.symbols anyconnect-4.3.05017/dart/license.txt anyconnect-4.3.05017/dart/manifesttool anyconnect-4.3.05017/dart/ACManifestDART.xml anyconnect-4.3.05017/posture/ anyconnect-4.3.05017/posture/ciscod anyconnect-4.3.05017/posture/cscan anyconnect-4.3.05017/posture/ciscod_init anyconnect-4.3.05017/posture/cstub anyconnect-4.3.05017/posture/posture_install.sh anyconnect-4.3.05017/posture/posture_uninstall.sh anyconnect-4.3.05017/posture/libcsd.so anyconnect-4.3.05017/posture/libhostscan.so anyconnect-4.3.05017/posture/libinspector.so anyconnect-4.3.05017/posture/license.txt anyconnect-4.3.05017/posture/tables.dat anyconnect-4.3.05017/posture/ACManifestPOS.xml anyconnect-4.3.05017/posture/libaccurl.so.4.3.0 anyconnect-4.3.05017/posture/libacciscocrypto.so anyconnect-4.3.05017/posture/libacciscossl.so ~/Downloads]$ cd anyconnect-4.3.05017 ~/Downloads/anyconnect-4.3.05017]$ cd vpn ~/Downloads/anyconnect-4.3.05017/vpn]$ ls -lh $ total 12M -rwxr-xr-x 1 jas jas 14K Dec 9 2016 acinstallhelper -rw-r--r-- 1 jas jas 262 Dec 9 2016 ACManifestVPN.xml -rw-r--r-- 1 jas jas 6.6K Dec 9 2016 AnyConnectLocalPolicy.xsd -rw-r--r-- 1 jas jas 83K Dec 9 2016 AnyConnectProfile.xsd -rwxr-xr-x 1 jas jas 502 Dec 9 2016 anyconnect_uninstall.sh -rw-r--r-- 1 jas jas 279 Dec 9 2016 cisco-anyconnect.desktop -rw-r--r-- 1 jas jas 164 Dec 9 2016 cisco-anyconnect.directory -rw-r--r-- 1 jas jas 603 Dec 9 2016 cisco-anyconnect.menu -rwxr-xr-x 1 jas jas 2.6M Dec 9 2016 libacciscocrypto.so -rwxr-xr-x 1 jas jas 436K Dec 9 2016 libacciscossl.so -rwxr-xr-x 1 jas jas 232K Dec 9 2016 libaccurl.so.4.3.0 -rwxr-xr-x 1 jas jas 168K Dec 9 2016 libacfeedback.so -rwxr-xr-x 1 jas jas 888K Dec 9 2016 libvpnagentutilities.so -rwxr-xr-x 1 jas jas 1.6M Dec 9 2016 libvpnapi.so -rwxr-xr-x 1 jas jas 530K Dec 9 2016 libvpncommoncrypt.so -rwxr-xr-x 1 jas jas 1.7M Dec 9 2016 libvpncommon.so -rwxr-xr-x 1 jas jas 1.1M Dec 9 2016 libvpnipsec.so -rw-r--r-- 1 jas jas 13K Dec 9 2016 license.txt -rwxr-xr-x 1 jas jas 480K Dec 9 2016 manifesttool -rw-r--r-- 1 jas jas 68K Dec 9 2016 OpenSource.html drwxr-sr-x 2 jas jas 4.0K Dec 9 2016 pixmaps -rw-r--r-- 1 jas jas 10 Dec 9 2016 update.txt -rw-r--r-- 1 jas jas 1.8K Dec 9 2016 VeriSignClass3PublicPrimaryCertificationAuthority-G5.pem -rwxr-xr-x 1 jas jas 65K Dec 9 2016 vpn -rwxr-xr-x 1 jas jas 724K Dec 9 2016 vpnagentd -rw-r--r-- 1 jas jas 2.1K Dec 9 2016 vpnagentd_init -rwxr-xr-x 1 jas jas 424K Dec 9 2016 vpndownloader -rwxr-xr-x 1 jas jas 396K Dec 9 2016 vpndownloader-cli -rwxr-xr-x 1 jas jas 24K Dec 9 2016 vpn_install.sh -rwxr-xr-x 1 jas jas 176K Dec 9 2016 vpnui -rwxr-xr-x 1 jas jas 8.4K Dec 9 2016 vpn_uninstall.sh ~/Downloads/anyconnect-4.3.05017/vpn]$ ./vpn_install.sh Installing Cisco AnyConnect Secure Mobility Client... Sorry, you need super user privileges to run this script. ~/Downloads/anyconnect-4.3.05017/vpn]$ sudo ./vpn_install.sh ... Do you accept the terms in the license agreement? [y/n] y You have accepted the license agreement. Please wait while Cisco AnyConnect Secure Mobility Client is being installed... Starting Cisco AnyConnect Secure Mobility Client Agent... Done! ~/Downloads/anyconnect-4.3.05017/vpn]$ _如果安裝過程中出現如下錯誤:可能是沒有安裝一些依賴包
Failed to start vpnagentd.service: Unit vpnagentd.service failed to load: No such file or directory:
$ sudo apt-get install network-manager-openconnect重新開啟程式:
$ sudo systemctl daemon-reload檢視程式是否開啟:
$ ps auxw | grep vpnagentd | grep -v grep root 3049 0.0 0.2 165960 8356 ? Sl 09:07 0:04 /opt/cisco/anyconnect/bin/vpnagentd查詢vpnagent所在資料夾位置
$ find /etc/rc?.d -type l -name "*vpnagentd*" /etc/rc2.d/K25vpnagentd /etc/rc2.d/S85vpnagentd /etc/rc3.d/K25vpnagentd /etc/rc3.d/S85vpnagentd /etc/rc4.d/K25vpnagentd /etc/rc4.d/S85vpnagentd /etc/rc5.d/K25vpnagentd /etc/rc5.d/S85vpnagentd或者使用命令
$ ls -l /etc/rc?.d/*vpn* lrwxrwxrwx 1 root root 21 Jun 5 09:07 /etc/rc2.d/K25vpnagentd -> /etc/init.d/vpnagentd* lrwxrwxrwx 1 root root 21 Jun 5 09:07 /etc/rc2.d/S85vpnagentd -> /etc/init.d/vpnagentd* lrwxrwxrwx 1 root root 21 Jun 5 09:07 /etc/rc3.d/K25vpnagentd -> /etc/init.d/vpnagentd* lrwxrwxrwx 1 root root 21 Jun 5 09:07 /etc/rc3.d/S85vpnagentd -> /etc/init.d/vpnagentd* lrwxrwxrwx 1 root root 21 Jun 5 09:07 /etc/rc4.d/K25vpnagentd -> /etc/init.d/vpnagentd* lrwxrwxrwx 1 root root 21 Jun 5 09:07 /etc/rc4.d/S85vpnagentd -> /etc/init.d/vpnagentd* lrwxrwxrwx 1 root root 21 Jun 5 09:07 /etc/rc5.d/K25vpnagentd -> /etc/init.d/vpnagentd* lrwxrwxrwx 1 root root 21 Jun 5 09:07 /etc/rc5.d/S85vpnagentd -> /etc/init.d/vpnagentd*使命令別名指向vpn和vpnui命令:
$ alias vpn='/opt/cisco/anyconnect/bin/vpn' $ alias vpnui='/opt/cisco/anyconnect/bin/vpnui'編輯~/.bashrc or ~/.bash_aliases 資料夾:
$ cat >> ~/.bash_aliases alias vpn='/opt/cisco/anyconnect/bin/vpn' alias vpnui='/opt/cisco/anyconnect/bin/vpnui' ^D $ _
執行
$ vpnui
ok,現在可以使用vpn連結了
相關文章
- Win10系統安裝cisco anyconnect client的方法Win10client
- 解決vscode安裝golang外掛(windows)問題VSCodeGolangWindows
- Chrome安裝sci-hub外掛遇到的問題解決方法Chrome
- 【ubuntu】解決行動硬碟掛載不上的問題Ubuntu硬碟
- 解決在ubuntu系統中安裝Chrome失敗的問題UbuntuChrome
- ubuntu 常用外掛安裝Ubuntu
- 在Ubuntu上原始碼安裝MySQL+安裝問題解決+安全優化Ubuntu原始碼MySql優化
- Eclipse 安裝 Axis2外掛失敗問題解決方案Eclipse
- 解決ubuntu下安裝phpmyadmin訪問不了的問題UbuntuPHP
- 在Linux上安裝Oracle時DISPLAY問題解決方案LinuxOracle
- VMware下安裝Ubuntu遇到的問題及解決方案Ubuntu
- 【Ubuntu】在Ubuntu上安裝微信Ubuntu
- DP 6.1版本在linux Client上的問題解決方法Linuxclient
- [外掛擴充套件] 已安裝外掛板塊問題套件
- vm安裝ubuntu後,update報錯問題解決Ubuntu
- 解決DWRCS5安裝html5外掛提示:沒有簽名,不能安裝的問題HTML
- [文件教程]解決sae下文件縮圖上傳問題及外掛上傳問題
- IntelliJ IDEA 外掛Rest Client 外掛使用過程遇到的問題IntelliJIdeaRESTclient
- centos下安裝openvpn———客戶端client.ovpnCentOS客戶端client
- 配置vim外掛遇到youcompleteme外掛問題解決方案
- python 安裝外掛太慢解決方法Python
- ubuntu 安裝瀏覽器flash外掛Ubuntu瀏覽器
- Ubuntu中給ff安裝flash 外掛Ubuntu
- macbook 下安裝Goglang 以及安裝svn外掛所遇到的問題MacGo
- 解決Nessus外掛更新失敗問題
- projectserver2007外掛無法下載安裝等問題的解決ProjectServer
- wordpress 外掛 (主題)線上安裝失敗 解決辦法探索
- 蘋果電腦ps外掛怎麼安裝,Mac上的ps外掛安裝教程蘋果Mac
- 在Ubuntu上安裝MariaDBUbuntu
- 在 Ubuntu 上安裝 Budgie 桌面Ubuntu
- 在Ubuntu上安裝openssh(轉)Ubuntu
- 在virtualbox上安裝ubuntuUbuntu
- iphone 4s外掛的安裝,問題及美化iPhone
- redis 安裝及安裝遇到的問題解決Redis
- ubuntu安裝jdk問題UbuntuJDK
- 解決 Swiper 外掛autoHeight問題 建議
- 在 Ubuntu 14.04 上安裝 Ubuntu Tweak 0.8.8Ubuntu
- 解決 Ubuntu 在啟動時凍結的問題Ubuntu