Files
tms-arch-linux-calamares-in…/archiso/airootfs/home/smart/first-start.sh
2025-11-25 17:50:54 +08:00

38 lines
982 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
echo "--- 系统配置安装中 ---"
echo "--------------------"
echo "--- 修改TeamViewer 密码 ---"
teamviewer --passwd 'Bbt123!@#' | sed '/^\s*$/d'
#主机名修改
echo "--- 主机名修改 ---"
change-servername_s2
# SOS 服务
echo "--- SOS服务启动 ---"
/bin/bash /home/smart/smart-organizer-service-install.sh
# 版本不同导致 参数名不同 将现在参数(--container-ratio)映射成之前参数(--content-ratio或者修改程序
echo "--- 修改dcp映射 ---"
mv /usr/bin/dcpomatic2_create /usr/bin/dcpomatic2_create_original
cp /home/smart/dcpomatic2_create /usr/bin/dcpomatic2_create
chmod 755 /usr/bin/dcpomatic2_create
/bin/rm -rf /home/smart/.config/autostart/first-start.desktop
/bin/rm -rf /home/smart/first-start.sh
echo "--- 复制快捷方式 ---"
cp /home/smart/Desktop/*.desktop /usr/share/applications/
cp /home/smart/*.desktop /usr/share/applications/
echo "--- 配置完成将在5秒后重启 ---"
sleep 5
reboot