forked from vlakhani28/vps-new
-
Notifications
You must be signed in to change notification settings - Fork 14
/
run.sh
49 lines (44 loc) · 1.11 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
set -ex
mkdir -p ~/.vnc ~/.config/xfce4
tar -xvf /app/panel.tar -C ~/.config/xfce4
rm -rf /usr/share/icons/Adwaita
cp -r /usr/share/icons/Humanity-Dark /usr/share/icons/Adwaita
mkdir -p /Desktop
cat << EOF > /Desktop/Chromium.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Chromium
Comment=Access the Internet
Exec=/usr/bin/chromium-browser --no-sandbox --disable-dev-shm-usage
Icon=chromium-browser
Path=
Terminal=false
StartupNotify=true
EOF
#cat << EOF > /Desktop/AnyDesk.desktop
#[Desktop Entry]
#Version=1.0
#Type=Application
#Name=AnyDesk
#Comment=
#Exec=/usr/bin/anydesk
#Icon=anydesk
#Path=
#Terminal=false
#StartupNotify=true
#EOF
cat << EOF > /Desktop/Swicth_to_Chinese_input.sh
#!/bin/bash
im-config -s ibus
ibus-setup
EOF
cat << EOF > /Desktop/Readme.txt
Step 1: Excute Swicth_to_Chinese_input.sh on Deskop to switch input method.
Step 2: Select 'Input Method', then click add button, choose Chinese and Pinyin icon to add.
Step 3: Now it can support Chinese, Enjoy!
EOF
chmod +x /Desktop/Chromium.desktop
chmod +x /Desktop/Swicth_to_Chinese_input.sh
exec supervisord -c /app/supervisord.conf