update
This commit is contained in:
@@ -6,3 +6,4 @@
|
||||
--protocol https
|
||||
--latest 20
|
||||
--sort rate
|
||||
--country China
|
||||
@@ -1,9 +0,0 @@
|
||||
#!/usr/bin/env xdg-open
|
||||
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=true
|
||||
Name[zh_CN]=first-start
|
||||
Exec=sudo sh /home/smart/first-start.sh
|
||||
Name=first-start
|
||||
@@ -1,41 +0,0 @@
|
||||
#!/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 "--- pacman换源 ---"
|
||||
mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
|
||||
mv /etc/pacman.d/mirrorlist~ /etc/pacman.d/mirrorlist
|
||||
|
||||
echo "--- 配置完成,将在5秒后重启 ---"
|
||||
|
||||
sleep 5
|
||||
|
||||
reboot
|
||||
|
||||
@@ -13,10 +13,14 @@ random_str() {
|
||||
echo "$str"
|
||||
}
|
||||
|
||||
# 生成随机主机名
|
||||
hostname=$(random_str)
|
||||
NEW_HOSTNAME=$(random_str)
|
||||
|
||||
# 设置主机名
|
||||
hostnamectl set-hostname "$hostname"
|
||||
echo "$NEW_HOSTNAME" > /etc/hostname
|
||||
|
||||
echo "主机名已设置为: $hostname"
|
||||
cat <<EOF > /etc/hosts
|
||||
127.0.0.1 localhost
|
||||
::1 localhost
|
||||
127.0.1.1 $NEW_HOSTNAME
|
||||
EOF
|
||||
|
||||
echo "Hostname set to: $NEW_HOSTNAME"
|
||||
|
||||
@@ -13,10 +13,14 @@ random_str() {
|
||||
echo "$str"
|
||||
}
|
||||
|
||||
# 生成随机主机名
|
||||
hostname=$(random_str)
|
||||
NEW_HOSTNAME=$(random_str)
|
||||
|
||||
# 设置主机名
|
||||
hostnamectl set-hostname "$hostname"
|
||||
echo "$NEW_HOSTNAME" > /etc/hostname
|
||||
|
||||
echo "主机名已设置为: $hostname"
|
||||
cat <<EOF > /etc/hosts
|
||||
127.0.0.1 localhost
|
||||
::1 localhost
|
||||
127.0.1.1 $NEW_HOSTNAME
|
||||
EOF
|
||||
|
||||
echo "Hostname set to: $NEW_HOSTNAME"
|
||||
|
||||
Reference in New Issue
Block a user