Scientific Toolworks Understand for linux安裝(報錯解決)


環境:Centos7 64bit

參考:

  • understand安裝:https://blog.csdn.net/look85/article/details/7988332
  • cannot connect to X server報錯:https://www.iteye.com/blog/wenku-1973600
  • xhost:  unable to open display ""報錯:https://blog.csdn.net/yxwmzouzou/article/details/47188459
  • 圖形界面下注冊understand證書:https://www.cnblogs.com/lvchaoshun/p/8742877.html
  • 添加understand啟動器/快捷方式:https://www.cnblogs.com/darkknightzh/p/4992199.html

下面是我的安裝過程。

一、下載

在網上找了很多沒用的,最后還是付費下載了這兩個:
part1: http://download.csdn.net/detail/look85/5604217 (55M)
part2: http://download.csdn.net/detail/look85/5604791 (46M)

兩個文件都放到目錄understand下面:

[liusiyi@moon understand]$ ls
Understand-3.1.670-Linux-64bit.part1.rar
Understand-3.1.670-Linux-64bit.part2.rar

 

二、安裝Understand

解壓rar壓縮包需要先安裝rar

[liusiyi@moon understand]$ su - root

[root@moon ~]# wget http://www.rarlab.com/rar/rarlinux-x64-5.3.0.tar.gz
[root@moon ~]# tar -zxvf rarlinux-x64-5.3.0.tar.gz
[root@moon ~]# mv rar /usr/local
[root@moon ~]# cd /usr/local/rar
[root@moon rar]# ls acknow.txt license.txt order.htm rarfiles.lst rar.txt unrar default.sfx makefile rar rar_static readme.txt whatsnew.txt
[root
@moon rar]# make mkdir -p /usr/local/bin mkdir -p /usr/local/lib cp rar unrar /usr/local/bin cp rarfiles.lst /etc cp default.sfx /usr/local/lib

# 安裝rar成功 ^_^

 

解壓part1,它會自動識別同目錄下的part2,然后合成為一個文件Understand-3.1.670-Linux-64bit.tgz

[root@moon rar]# su - liusiyi

[liusiyi@moon ~]$ cd understand
[liusiyi
@moon understand]$ rar x Understand-3.1.670-Linux-64bit.part1.rar RAR 5.30 Copyright (c) 1993-2015 Alexander Roshal 18 Nov 2015 Trial version Type RAR -? for help Extracting from Understand-3.1.670-Linux-64bit.part1.rar Extracting Understand-3.1.670-Linux-64bit.tgz 54% Extracting from Understand-3.1.670-Linux-64bit.part2.rar ... Understand-3.1.670-Linux-64bit.tgz OK All OK #查看一下,多出來了一個合成文件.tgz [liusiyi@moon understand]$ ls Understand-3.1.670-Linux-64bit.part1.rar Understand-3.1.670-Linux-64bit.part2.rar Understand-3.1.670-Linux-64bit.tgz # 合成文件成功 ^_^

 

解壓.tgz文件,會出現一個叫scitools的目錄

[liusiyi@moon understand]$ gzip -cd Understand-3.1.670-Linux-64bit.tgz | tar xvf -

#解壓過程是很長一串……


[liusiyi@moon understand]$ ls
scitools
Understand-3.1.670-Linux-64bit.part1.rar
Understand-3.1.670-Linux-64bit.part2.rar
Understand-3.1.670-Linux-64bit.tgz

# 解壓合成后的文件成功 ^_^

 

設置環境變量

[liusiyi@moon understand]$ export PATH=$PATH:/home/liusiyi/understand/scitools/bin/linux64
#最好是把上面一行加到~/.bashrc文件下面

[liusiyi@moon understand]$ vim ~/.bashrc

 

三、啟動Understand

現在啟動understand

[liusiyi@moon ~]$ cd /home/liusiyi/understand/scitools/bin/linux64

[liusiyi@moon linux64]$ ls
almd       buildspy      libQtCore.so.4     libQtSvg.so.4      Perl        understand.bin
almfree    codecs        libQtDBus.so.4     libQtXml.so.4      python      uperl
almhostid  cwork         libQtGui.so.4      libudb_api.so      und         uperl.bin
almstatus  imageformats  libQtNetwork.so.4  licenseserver      und.bin
almtest    libastyle.so  libQtSql.so.4      licenseserver.bin  understand

[liusiyi@moon linux64]$ understand
understand.bin: cannot connect to X server

# 報錯 cannot connect to X server !!!!! 

 

X server是Linux系統上提供圖形用戶界面的服務程序。當客戶端主機Client訪問服務器Server上的圖形程序時,需要Server對該Client賦能訪問圖形程序的權限。

方法:1 用root訪問圖形程序的用戶主機賦予xhost權限,本機的話使用$HOSTNAME,如xhost +$HOSTNAME(遠程的就用具體ip); 2 將DISPLAY配置到環境變量上。

#這里先看一下$HOSTNAME
[liusiyi@moon linux64]$ echo $HOSTNAME
moon

#切換到root
[liusiyi@moon linux64]$ su - root

#設置xhost
[root@moon ~]# xhost +$HOSTNAME
xhost:  unable to open display ""

#在設置xhost的時候,又報了個錯:unable to open display “” !!!!

 

接下來繼續解決設置xhost報錯的問題。

  1. 用root登陸,安裝vnc,啟動vnc服務
    #安裝vnc
    
    [root@moon ~]# yum install vnc
    
    根據提示選y,最后實際是安裝了  1 軟件包tigervnc (+3 依賴軟件包 fltk,mesa-libGLU,tigervnc-icons)。
    
    #第一次啟動server需要設置兩次秘密,並且是6位的,按照提示來即可
    
    [root@moon ~]# vncserver
    
    You will require a password to access your desktops.
    
    Password:
    Password must be at least 6 characters - try again
    Password:
    Password must be at least 6 characters - try again
    Password:
    Verify:
    Would you like to enter a view-only password (y/n)? y
    Password:
    Verify:
    xauth:  file /root/.Xauthority does not exist
    
    New 'moon:1 (root)' desktop is moon:1
    
    Creating default startup script /root/.vnc/xstartup
    Creating default config /root/.vnc/config
    Starting applications specified in /root/.vnc/xstartup
    Log file is /root/.vnc/moon:1.log
    
    #看網上說,需要在下面的文件里,把wm替換為gnome-session或者startkde,反正我是沒找到這個wm,不過還是把命令貼出來
    [root
    @moon ~]# vim /root/.vnc/xstartup [root@moon ~]# sed -i 's/twm/gnome-session/g' /root/.vnc/xstartup
    ##########重啟(我這里是又啟動了一次,所以有兩個moon連接)############ #記得以后如果要調用understand,都需要先啟動vnc服務
    [root@moon ~]# vncserver New 'moon:2 (root)' desktop is moon:2 Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/moon:2.log #查看一下當前連接 [root@moon ~]# vncserver -list TigerVNC server sessions: X DISPLAY # PROCESS ID :1 14207 :2 15247

     

  2. 執行xhost +,並且提示“access control disabled, clients can connect from any host”才正確
    [root@moon ~]# xhost +
    access control disabled, clients can connect from any host
    
    #把我的host加進來,成功^_^
    [root@moon ~]# xhost +$HOSTNAME
    moon being added to access control list
    
    # xhost設置成功 ^_^

     

還記得X server那個問題的解決方案嗎?那里說過,還需要設置DISPLAY參數

[root@moon ~]# export DISPLAY=moon:0.0

#最好是把上面這句加到~/.bashrc文件

[liusiyi@moon linux64]$ vim ~/.bashrc

#查看一下
[root@moon ~]# echo $DISPLAY
moon:0.0

# $DISPLAY參數設置成功 ^_^

 

X server的問題到此全解決了,再啟動understand

[root@moon ~]# su - liusiyi
[liusiyi@moon ~]$ cd /home/liusiyi/understand/scitools/bin/linux64

#如果看到有圖形界面彈出,就OK了

 

 四、在圖形界面下完成Understand注冊

在圖形界面彈出后:

  1. 點擊中間的命令框Add Permanent Liscense
  2. 再點擊Add Eval or SDL (RegCode)
  3. 輸入證書CODE:09E58CD1FB79

初始界面如下:

 

五、 創建understand快捷方式/啟動器

為了不每次都從安裝目錄下啟動understand,可以添加啟動器understand.desktop,並把快捷方式放到桌面;雙即打開understand。

[liusiyi@moon linux64]$ su - root
[root@moon ~]# cd /usr/share/applications vim understand.desktop

[Desktop Entry]

Type=Application

Name=understand

Comment=scitools

Icon=/home/liusiyi/understand/scitools/bin/linux64/understand_64.png

Exec=/home/liusiyi/
understand/scitools/bin/linux64/understand %F

Terminal=false

Categories=Development;

 

 


【完】


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM