add teamviewer todesk pinyin lightdm

This commit is contained in:
smart
2025-12-05 05:26:06 +08:00
parent ab87120b9d
commit 97172789c6

View File

@@ -1,17 +1,18 @@
# rocky-live-base.ks
#
lang en_US.UTF-8
lang zh_CN.UTF-8
keyboard us
timezone US/Eastern
selinux --enforcing
firewall --enabled --service=mdns
timezone Asia/Shanghai
# selinux --enforcing
selinux --disabled
firewall --disabled
xconfig --startxonboot
zerombr
clearpart --all
part / --size 6144 --fstype ext4
part / --size 12288 --fstype ext4
# services --enabled=NetworkManager,ModemManager --disabled=sshd
services --enabled=NetworkManager --disabled=sshd
services --enabled=NetworkManager,sshd
network --bootproto=dhcp --device=link --activate
rootpw --lock --iscrypted locked
shutdown
@@ -105,49 +106,48 @@ livesys-scripts
# xfce 桌面环境,以及应用
# Thunar
# xfce4-panel
# xfce4-session
# xfce4-settings
# xfce-polkit
# xfce4-appfinder
# xfce4-power-manager
# xfce4-pulseaudio-plugin
# xfce4-screensaver
# xfce4-terminal
# xfce4-about
# xfce4-mount-plugin
# xfconf
# xfdesktop
# xfwm4
# lightdm
# network-manager-applet
# openssh-askpass
# thunar-archive-plugin
# thunar-volman
# tumbler
# # pinentry-gnome3
# mousepad
# ristretto
@Xfce
-gdm
lightdm
lightdm-gtk-greeter
xorg-x11-server-Xorg
xorg-x11-drivers
xfce4-about
xfce4-mount-plugin
mousepad
ristretto
firefox
# 中文支持
google-droid-sans-fonts
google-noto-cjk-fonts-common
google-noto-emoji-color-fonts
google-noto-fonts-common
google-noto-sans-cjk-ttc-fonts
google-noto-sans-gurmukhi-fonts
google-noto-sans-sinhala-vf-fonts
google-noto-serif-cjk-ttc-fonts
fontconfig
glibc-langpack-zh
# 中文输入法
ibus
ibus-libpinyin
ibus-gtk2
ibus-gtk3
# 远程工具
teamviewer
todesk
# 工具
wget
vim
nmap
zip
unzip
open-vm-tools
open-vm-tools-desktop
@@ -212,6 +212,28 @@ touch /etc/machine-id
%end
%post
mkdir -p /etc/xdg/autostart/
cat > /etc/xdg/autostart/ibus.desktop <<EOF
[Desktop Entry]
Name=Input Method Daemon
Comment=Start IBus daemon
Exec=/usr/bin/ibus-daemon --daemonize --xim
Terminal=false
Type=Application
Categories=System;Utility;
EOF
cat >> /etc/environment << EOF
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export IM_CONFIG_PHASE=2
EOF
fc-cache -fv
# xfce configuration
# create /etc/sysconfig/desktop (needed for installation)
@@ -224,5 +246,27 @@ EOF
# set livesys session type
sed -i 's/^livesys_session=.*/livesys_session="xfce"/' /etc/sysconfig/livesys
systemctl enable teamviewerd.service
systemctl start teamviewerd.service
systemctl enable todeskd.service
mkdir -p /etc/teamviewer/
cat >> /etc/teamviewer/global.conf << EOF
TeamViewer Global Settings
[int32] Always_Online = 1
[int32] EulaAccepted = 1
[int32] General_DirectLAN = 1
[bin ] PermanentPassword = 13b0a813880888089e8ac6a1dcdeee4db2db172fa0d33d68c903aac7500a9ec8978b1106e8ea26a978ec58f3d073f05507cb0a96ce973f1abdd25b24cc971d2297b83d090d2ab380507dd0e106b7e890599680af5c2afd6166a65c13b6697684878b3aa1ca58b0c7d3ddd0405354ad608c0a5089a588b4cea8528a1937ce4d22b2b8b764660b54218af08baa04925bfcf1cbaf59de19dea8244f022ba43cbcb09b4087b5d5c39ffd91bd4d2cc9443b05bd90d28b690a4300c5f87fef8b9d94d03416413c40aa8941d81dfdeed4e7e19be457e774b0346befb05d68eba1d5090c0798cbed803635bba6c5a4c8f608813d931bc742d5c47498ce16a335e2fdd391a7f9ee188b23381fda251ac8b6472f67daa63b377d1374a67af639045bf2ba4b22d0c1607d5af5ed0dc6a3c67371da9c
[strng] PermanentPasswordDate = "20251119T120621"
[int32] Security_PasswordStrength = 1
EOF
teamviewer --passwd 'Bbt123!@#'
%end