root@cihan:/home/cihanboncuk/kali# wget [url]https://kali.sh/xfce4.sh[/url]
--2019-01-22 00:16:07-- [url]https://kali.sh/xfce4.sh[/url]
Resolving kali.sh (kali.sh)... 45.79.158.143
Connecting to kali.sh (kali.sh)|45.79.158.143|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 315 [text/x-sh]
Saving to: xfce4.sh
xfce4.sh 100%[=====================================================================================>] 315 --.-KB/s in 0s
2019-01-22 00:16:09 (2.95 MB/s) - xfce4.sh saved [315/315]
root@cihan:/home/cihanboncuk/kali# cat xfce4.sh
#!/bin/bash
echo "[+] Installing XFCE4, this will take a while"
apt-get update
apt-get dist-upgrade -y --force-yes
apt-get --yes --force-yes install kali-desktop-xfce xorg xrdp
echo "[+] Configuring XRDP to listen on port 3390 (but not starting the service)..."
sed -i 's/port=3389/port=3390/g' /etc/xrdp/xrdp.ini
root@cihan:/home/cihanboncuk/kali# sudo sh xfce4.sh
[+] Installing XFCE4, this will take a while
Get:1 [url]http://downloads.****sploit.com/data/releases/****sploit-framework/apt[/url] lucid InRelease [3,959 B]
Hit:2 [url=http://kali.download/kali]Index of /kali/[/url] kali-rolling InRelease
Err:1 [url]http://downloads.****sploit.com/data/releases/****sploit-framework/apt[/url] lucid InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CDFB5FA52007B954
Reading package lists... Done
W: GPG error: [url]http://downloads.****sploit.com/data/releases/****sploit-framework/apt[/url] lucid InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CDFB5FA52007B954
E: The repository 'http://downloads.****sploit.com/data/releases/****sploit-framework/apt lucid InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
[+] Configuring XRDP to listen on port 3390 (but not starting the service)...
sed: can't read /etc/xrdp/xrdp.ini: No such file or directory
root@cihan:/home/cihanboncuk/kali# sudo sh xfce4.sh
[+] Installing XFCE4, this will take a while
Get:1 [url]http://downloads.****sploit.com/data/releases/****sploit-framework/apt[/url] lucid InRelease [3,959 B]
Hit:2 [url=http://kali.download/kali]Index of /kali/[/url] kali-rolling InRelease
Err:1 [url]http://downloads.****sploit.com/data/releases/****sploit-framework/apt[/url] lucid InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CDFB5FA52007B954
Reading package lists... Done
W: GPG error: [url]http://downloads.****sploit.com/data/releases/****sploit-framework/apt[/url] lucid InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CDFB5FA52007B954
E: The repository 'http://downloads.****sploit.com/data/releases/****sploit-framework/apt lucid InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
[+] Configuring XRDP to listen on port 3390 (but not starting the service)...
sed: can't read /etc/xrdp/xrdp.ini: No such file or directory
root@cihan:/home/cihanboncuk/kali#
root@cihan:/home/cihanboncuk/kali#
root@cihan:/home/cihanboncuk/kali# sudo /etc/init.d/xrdp start
sudo: /etc/init.d/xrdp: command not found