Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apt update && apt -y full-upgrade
- /etc/apt/sources.list
- #kali rolling
- deb http://http.kali.org/kali kali-rolling main contrib non-free
- #For source package access, uncomment the following line
- deb-src http://http.kali.org/kali kali-rolling main contrib non-free
- #Repo Dewa
- deb http://old.kali.org/kali sana main non-free contrib
- deb-src http://old.kali.org/kali sana main non-free contrib
- deb http://security.debian.org/ jessie/updates main contrib non-free
- deb-src http://security.debian.org/ jessie/updates main contrib non-free
- #=========={ build xrdp & xorgxrdp bash snippit}==========
- #!/bin/bash
- echo "Installing prereqs for compiling xrdp & xorgxrdp."
- echo "----------------------------------------"
- sudo apt-get -y install libx11-dev libxfixes-dev libssl-dev libpam0g-dev libtool libjpeg-dev
- sudo apt-get -y install flex bison gettext autoconf libxml-parser-perl libfuse-dev xsltproc libxrandr-dev python-libxml2
- sudo apt-get -y install nasm xserver-xorg-dev fuse git
- #======================================================================================
- # The new XRDP 0.9.5.x is now the newest also there is no longer an x11rdp it has been replaced
- # by a module called "xorgxrdp" so we will git them both, build them and install them here
- ##################################################################
- #Step 1 - Obtain xrdp packages
- ##################################################################
- # create a temp directory to build xrdp in
- mkdir /tmp/xrdp-build
- cd /tmp/xrdp-build
- # Download the xrdp latest files
- echo "Ready to start the download of xrdp package"
- echo "-------------------------------------------"
- git clone https://github.com/neutrinolabs/xrdp.git
- ##################################################################
- #Step 2 - compiling xrdp packages
- ##################################################################
- echo "Installing and compiling xrdp..."
- echo "--------------------------------"
- cd /tmp/xrdp-build/xrdp
- sudo ./bootstrap
- # We can enable more options -- Check Documentation
- sudo ./configure --enable-fuse --enable-jpeg
- sudo make
- sudo make install
- ##################################################################
- #Step 3 - compiling xorgxrdp packages
- ##################################################################
- cd /tmp/xrdp-build
- git clone https://github.com/neutrinolabs/xorgxrdp.git
- cd /tmp/xrdp-build/xorgxrdp
- sudo ./bootstrap
- sudo ./configure
- sudo make
- sudo make install
- #===============================================================================
- # enable the xrdp and xrdp-sesman systemd services so xrdp starts up when ubuntu boots
- sudo systemctl enable xrdp.service
- sudo systemctl enable xrdp-sesman.service
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement