#!/bin/bash ######系統配合 #下載ISO檔 #https://ftp.ubuntu-tw.org/ubuntu-releases/26.04.1/ 安裝 ######鄭亮星 jls@mail.jls.idv.tw , jls550225@gmail.com , jls@acfs.tw ####https://docs.ossii.com.tw/books/oxoffice-online-%E6%8A%80%E8%A1%93%E6%89%8B%E5%86%8A ####安裝 OxOffice Online v5 ETH0=$(ls /proc/net/dev_snmp6 |awk '{ print $1 }' |sed -n '1p') IP=$(ifconfig $ETH0 |grep 'inet ' |awk '{print $2}') HOST=$(/bin/hostname -s) HOSTNAME=$(/bin/hostname) DOMAINNAME=$(/bin/hostname -d) sync wget -qO - http://www.oxoffice.com.tw/deb/OSSII.key | sudo gpg --dearmor -o /usr/share/keyrings/OSSII.gpg echo "deb [arch=amd64 signed-by=/usr/share/keyrings/OSSII.gpg] http://www.oxoffice.com.tw/deb/ubuntu/noble/oxool-community-v5/ noble main" > /etc/apt/sources.list.d/oxool-community-v5-noble.list apt -y modernize-sources apt update -y apt install -y oxool systemctl enable oxool systemctl restart oxool