====== 安裝與測試 TagUI ====== ===== 在 Win10 上安裝 ===== * 下載網址 - https://tagui.readthedocs.io/en/latest/setup.html * 下載 [[https://github.com/kelaberetiv/TagUI/releases/download/v6.0.0/TagUI_Windows.zip|TagUI_Windows.zip]] * 將壓縮檔解開放入 c:\ (所以解壓縮後會看到 c:\tagui) * 下載與安裝 OpenJDK for Windows - [[https://corretto.aws/downloads/latest/amazon-corretto-8-x64-windows-jdk.msi|amazon-corretto-8.265.01.1-windows-x64.msi]] * 確認有安裝 Chrome 瀏覽器 [[https://www.google.com/chrome/]] * 開啟命令視窗 [Win]-R -> cmd * 設定環境變數setx path "%path%;c:\tagui\src" * 進行測試驗證tagui 如果出現 tagui 不是內部或外部命令的訊息,先關閉命令視窗在重啟一個新的命令視窗 * 執行第一次測試tagui c:\tagui\flows\samples\1_google.tag 如果出現找不到 MSVCR110.dll 請安裝 Visual C++ Redistributable - [[https://tagui.readthedocs.io/en/latest/_downloads/fbf25f6118d2d4ab7642688b0da8bfa0/vcredist_x86.exe|vcredist_x86.exe]] * 如果在命令視窗無法正確出現中文,可先輸入 chcp 65001 讓字碼頁由 CP950 切換成 65001(UTF-8) ===== 在 Ubuntu Desktop 18 上安裝 ===== * 先更新到最新版的 sudo apt update sudo apt upgrade * 建立執行的 user -> localadmin sudo useradd -s /bin/bash -d /home/localadmin/ -m -G sudo localadmin sudo passwd localadmin * 執行 [[/tech/ubuntu_xrdp]] * 使用 localadmin 身分安裝 tagui su - localadmin echo xfce4-session > ~/.xsession wget https://github.com/kelaberetiv/TagUI/releases/download/v6.14.0/TagUI_Linux.zip sudo apt install unzip unzip TagUI_Linux.zip wget https://corretto.aws/downloads/latest/amazon-corretto-8-x64-linux-jdk.tar.gz tar -zxvf amazon-corretto-8-x64-linux-jdk.tar.gz sudo apt install php * 使用 Windows 遠端桌面以 localadmin 連入, 透過 firefox 下載 chrome Exp. google-chrome-stable_current_amd64.deb * 安裝 Chrome sudo apt --fix-broken install xdg-utils fonts-liberation curl wget https://www.ichiayi.com/google-chrome-stable_current_amd64.deb sudo dpkg -i google-chrome-stable_current_amd64.deb * 建立 tagui 連結 sudo ln -sf /home/localadmin/tagui/src/tagui /usr/local/bin/tagui sudo ln -sf /home/localadmin/tagui/src/end_processes /usr/local/bin/end_processes sudo ln -sf /usr/bin/python3 /usr/bin/python DISPLAY=:10.0 tagui /home/localadmin/tagui/flows/samples/1_google.tag ===== 參考網址 ===== * https://tagui.readthedocs.io/en/latest/setup.html * https://blog.darkthread.net/blog/command-prompt-codepage/ * https://tagui.readthedocs.io/en/latest/main_concepts.html#run-by-double-click * https://askubuntu.com/questions/514167/how-to-start-a-gui-application-from-cron