Skip to content

Commit 330783a

Browse files
apt changed to apt-get
1 parent 9c0a0d5 commit 330783a

File tree

4 files changed

+14
-25
lines changed

4 files changed

+14
-25
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Script to install RDPs on linux VPSes
33
# Installation
44
Execute the following one line command
55
``` bash
6-
bash <(curl -s https://raw.githubusercontent.com/unknownpersonog/RDPXcript/v2.1/install.sh)
6+
bash <(curl -s https://raw.githubusercontent.com/unknownpersonog/RDPXcript/v2.2/install.sh)
77
```
88
# Requirements
99
Ubuntu

install-crd.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ download() {
3737
output "Downloading Chrome Remote Desktop..."
3838
sudo apt-get update
3939
if [[ $(/usr/bin/lsb_release --codename --short) == "stretch" ]]; then
40-
sudo apt install --assume-yes libgbm1/stretch-backports
40+
sudo apt-get install --assume-yes libgbm1/stretch-backports
4141
fi
4242
output "If you get missing dependency error, the script fixes it itself!"
4343
mkdir /crdxcript
@@ -63,7 +63,7 @@ fi
6363
}
6464
lxde_install() {
6565
sudo DEBIAN_FRONTEND=noninteractive \
66-
apt install --no-install-recommends --assume-yes lxde
66+
apt-get install --no-install-recommends --assume-yes lxde
6767
sudo bash -c 'echo "exec /etc/X11/Xsession /usr/bin/startlxde" > /etc/chrome-remote-desktop-session'
6868
auth
6969
}

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44

55

6-
export SCRIPT_VERSION="main"
6+
export SCRIPT_VERSION="v2.2"
77
export GITHUB_BASE_URL="https://raw.githubusercontent.com/unknownpersonog/RDPXcript"
88

99
LOG_PATH="/var/log/RDPXcript.log"

xrdp-install.sh

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if ! [ -x "$(command -v curl)" ]; then
1313
fi
1414

1515
output() {
16-
echo -e "\033[0;34m[CRDXcript] ${1} \033[0m"
16+
echo -e "\033[0;34m[RDPXcript] ${1} \033[0m"
1717
}
1818
ask() {
1919
GC='\033[0;32m'
@@ -32,8 +32,8 @@ error() {
3232
}
3333
download() {
3434
output "Downloading and Installing XRDP..."
35-
sudo apt update
36-
sudo apt install xrdp -y
35+
sudo apt-get update
36+
sudo apt-get install xrdp -y
3737
output "Adding XRDP to ssl-cert group"
3838
sudo usermod -a -G ssl-cert xrdp
3939
}
@@ -81,39 +81,28 @@ fi
8181
}
8282
gui_install() {
8383
asknl "Which Desktop GUI would you like to install?"
84-
asknl "1]Xfce"
85-
asknl "2]Cinnamon"
84+
asknl "1] LXDE"
8685
output "New GUIs will come soon"
87-
ask "Select GUI (1-2): "
86+
ask "Select GUI (1-1): "
8887
read -r gui
8988
if [[ "$gui" == 1 ]]; then
90-
xfce4_install
91-
elif [[ "$gui" == 2 ]]; then
92-
cinnamon_install
89+
lxde_install
9390
else
9491
output "Use Valid Input (1-2)!"
9592
exit 1
9693
fi
9794
}
98-
xfce4_install() {
95+
lxde_install() {
9996
sudo DEBIAN_FRONTEND=noninteractive \
100-
apt install --no-install-recommends --assume-yes xfce4 desktop-base dbus-x11 xscreensaver
101-
echo "startxfce4" > ~/.Xclients
102-
chmod +x ~/.Xclients
103-
sudo systemctl restart xrdp.service
104-
setup_xrdp
105-
}
106-
cinnamon_install() {
107-
sudo DEBIAN_FRONTEND=noninteractive \
108-
apt install --no-install-recommends --assume-yes cinnamon-core desktop-base dbus-x11
109-
echo "cinnamon" > ~/.Xclients
97+
apt-get install --no-install-recommends --assume-yes lxde
98+
echo "startlxde" > ~/.Xclients
11099
chmod +x ~/.Xclients
111100
sudo systemctl restart xrdp.service
112101
setup_xrdp
113102
}
114103
setup_xrdp() {
115104
sudo systemctl restart xrdp
116-
sudo apt install ufw -y
105+
sudo apt-get install ufw -y
117106
ufw allow 3389
118107
output "Install success!"
119108
ip=$(curl -s https://api64.ipify.org/)

0 commit comments

Comments
 (0)