forked from Notos/seedbox-from-scratch
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathinstallRDP
executable file
·63 lines (63 loc) · 2.03 KB
/
installRDP
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
#
#
sudo apt-get -y remove apt-listchanges
MAINUSER1=`cat /etc/seedbox-from-scratch/mainuser.info`
echo `whoami` > ~/name
sleep 1
MU1=`cat ~/name`
logfile="/dev/null"
if [ "$MU1" = "$MAINUSER1" ]; then
echo "$(lsb_release -rs)" > ~/v
fi
OSV1=$(sed 's/\..*//' ~/v)
if [ "$(cat ~/bin/rdp)" = "RDP" ] || [ "$(cat ~/bin/nm)" = "RDP" ]; then
echo "###################################################"
echo ""
echo "Wrong Command, You should use *sudo ./RDPconfig.sh* "
echo ""
echo "###################################################"
rm ~/name
exit 1
elif [ "$OSV1" = "15" ]; then
echo "RDP" >~/bin/nm
echo "###############################################################################"
echo ""
echo ""
echo ""
echo "This is Ubuntu 15.XX, Due to a bug with policykit; Your server will reboot and "
echo "then after reboot you have to run *installRDP15* from cmdline"
echo ""
echo "Remember *installRDP15* after this reboot"
echo ""
echo "###############################################################################"
rm ~/name
sudo apt-get -y purge policykit-1 >> $logfile 2>&1
sudo apt-get update >> $logfile 2>&1
sudo systemctl reboot
else
sudo apt-get -y install tightvncserver >> $logfile 2>&1
sleep 2
sudo dpkg -i /etc/seedbox-from-scratch/xrdp_0.6.1-1_`uname -m`.deb
sudo apt-get -f -y install
echo "........"
echo "............."
echo "Work in Progres.......... "
echo "Please Standby................ "
sudo apt-get -y install lxde >> $logfile 2>&1
sudo apt-get -y install chromium >> $logfile 2>&1
sudo apt-get -y install firefox >> $logfile 2>&1
rm ~/v
rm ~/name
sleep 2
clear
echo "RDP" > ~/bin/rdp
sudo ./RDPconfig.sh
fi
if [ "$OSV1" = "7" ] || [ "$OSV1" = "6" ]; then
echo "deb http://ftp.debian.org/debian sid main" | sudo tee -a /etc/apt/sources.list.d/sid-main.list
sudo apt-get update
sudo apt-get -y sid install libc6 libc6-dev libc6-dbg
sudo dpkg -i /etc/seedbox-from-scratch/xrdp_0.6.1-1_`uname -m`.deb
sudo rm /etc/apt/sources.list.d/sid-main.list
fi