Install PEAKS Studio on Ubuntu


畢業前就有看到這篇文章現在才來玩,原本PEAKS只能安裝在Windows系統,由於他是java寫出的程式,所以可以在windows安裝後,複製程式資料夾到別的作業系統在用java執行

在Windows環境下下載檔案並安裝
download

現在的版本是PEAKS Studio X+
安裝完成後程式位置會在C:\PEAKSStudioXplus
將整個目錄複製到Ubuntu的/opt/

檢查java已安裝

java -version

刪除原來windows安裝的jre目錄,以Ubuntu的java程式取代

cd /opt/PEAKSStudioXplus/
rm -r -f jre # -r: 遞迴刪除子目錄 -f: 強制刪除
mkdir jre
cd jre
mkdir bin
cd bin
# ln -s: 建立symbolic link
# 建立指向/usr/bin/java的symbolic link並命名為java.exe
ln -s /usr/bin/java java.exe 
cd /opt/PEAKSStudioXplus/
jre/bin/java.exe -cp peaksstudio.jar com.bsi.tools.computenodenumber.PerformanceConfigDialog  

Gtk-Message: 02:30:10.779: Failed to load module "canberra-gtk-module"
Failed on verify signature!
#執行該指令後會跳出下面視窗

跳出下面視窗後選取Manually Confugure Performance,確認Start Client SeparatelyStart Compute Node Separately都是未選取的(預設就沒勾選了)

但Apply後會跳出這個視窗,即使用sudo也一樣

OK後terminal的log

先忽略這個錯誤繼續往下
製作一個執行檔,並命名為peaks.sh,放在/opt/PEAKSStudioXplus/

#!/bin/sh
cd /opt/PEAKSStudioXplus/ # 如果在本地啟用的話無需指定位置,因為製作捷徑時沒有先到該位置則無法啟動
jre/bin/java.exe -Xmx12000m -splash:splash.png -jar peaksstudio.jar

The number 12000 means that PEAKS can use up to 12GB of RAM. You can change this value based on your computer configuration, but a higher amount is always preferred.

啟動程式

./peaks.sh

可以成功啟動!!
但打開project開啟結果後的summary介面的圖片無法顯示
介面格式也有些跑掉

以後真的有需要再來找解決辦法吧~

How to run PEAKS Studio/Viewer on Mac OS X or Linux? | PEAKS Blog

翻外篇
建立應用程式捷徑

cd /usr/share/applications/
sudo vim PEAKSX+.desktop #正常要先在家目錄測試在移動過來較妥
# 腳本內容
[Desktop Entry]
Name=PEAKSX+
Comment=Start up PEAKSX+
#自己找icon,原本沒有
Icon=/opt/PEAKSStudioXplus/images/peaksstudio.png
Exec=sh /opt/PEAKSStudioXplus/peaks.sh
Type=Application
Encoding=UTF-8
Terminal=false
Categories=None;

Author: Hung-Lin, Chen
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint policy. If reproduced, please indicate source Hung-Lin, Chen !
  TOC