forked from wahasa/Debian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathde-ukui.sh
42 lines (39 loc) · 1.14 KB
/
de-ukui.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
#!/bin/bash
#Get the necessary components
apt-get update
apt-get install udisks2 -y
echo " " > /var/lib/dpkg/info/udisks2.postinst
apt-mark hold udisks2
apt-get install sudo -y ; dpkg-reconfigure tzdata
apt-get install ukui* libukui* libqt5-ukui* -y
apt-get install kylin-display-switch kylin-nm peony -y
apt-get install tigervnc-standalone-server dbus-x11 -y
apt-get --fix-broken install
apt-get clean
#Setup the necessary files
mkdir -p ~/.vnc
echo "#!/bin/bash
export PULSE_SERVER=127.0.0.1
xrdb $HOME/.Xresources
ukui-session" > ~/.vnc/xstartup
echo "#!/bin/sh
export DISPLAY=:1
export PULSE_SERVER=127.0.0.1
rm -rf /run/dbus/dbus.pid
dbus-launch ukui-session" > /usr/local/bin/vncstart
echo "vncserver -geometry 1600x900 -name remote-desktop :1" > /usr/local/bin/vnc-start
echo "vncserver -kill :*" > /usr/local/bin/vnc-stop
chmod +x ~/.vnc/xstartup
chmod +x /usr/local/bin/*
clear
echo ""
echo "Installing Browser,.."
echo ""
apt install firefox-esr -y
clear
echo ""
echo "Vnc Server address will run at 127.0.0.1:5901"
echo "Start Vnc Server, run vnc-start"
echo "Stop Vnc Server, run vnc-stop"
echo ""
rm de-ukui.sh