SHARE
TWEET

Untitled

a guest Jul 19th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. apt update && apt -y full-upgrade
  2.  
  3. /etc/apt/sources.list
  4.  
  5. #kali rolling
  6. deb http://http.kali.org/kali kali-rolling main contrib non-free
  7. #For source package access, uncomment the following line
  8. deb-src http://http.kali.org/kali kali-rolling main contrib non-free
  9.  
  10. #Repo Dewa
  11. deb http://old.kali.org/kali sana main non-free contrib
  12. deb-src http://old.kali.org/kali sana main non-free contrib
  13. deb http://security.debian.org/ jessie/updates main contrib non-free
  14. deb-src http://security.debian.org/ jessie/updates main contrib non-free
  15.  
  16.  
  17.  
  18.  
  19.  
  20. #=========={ build xrdp & xorgxrdp bash snippit}==========
  21. #!/bin/bash
  22.  
  23. echo "Installing prereqs for compiling xrdp & xorgxrdp."
  24. echo "----------------------------------------"
  25. sudo apt-get -y install libx11-dev libxfixes-dev libssl-dev libpam0g-dev libtool libjpeg-dev
  26. sudo apt-get -y install flex bison gettext autoconf libxml-parser-perl libfuse-dev xsltproc libxrandr-dev python-libxml2
  27. sudo apt-get -y install nasm xserver-xorg-dev fuse git
  28.  
  29. #======================================================================================
  30. # The new XRDP 0.9.5.x is now the newest also there is no longer an x11rdp it has been replaced
  31. # by a module called "xorgxrdp" so we will git them both, build them and install them here
  32.  
  33. ##################################################################
  34. #Step 1 - Obtain xrdp packages
  35. ##################################################################
  36.  
  37. # create a temp directory to build xrdp in
  38.  
  39. mkdir /tmp/xrdp-build
  40. cd /tmp/xrdp-build
  41.  
  42. # Download the xrdp latest files
  43. echo "Ready to start the download of xrdp package"
  44. echo "-------------------------------------------"
  45. git clone https://github.com/neutrinolabs/xrdp.git
  46.  
  47. ##################################################################
  48. #Step 2 - compiling xrdp packages
  49. ##################################################################
  50.  
  51. echo "Installing and compiling xrdp..."
  52. echo "--------------------------------"
  53. cd /tmp/xrdp-build/xrdp
  54. sudo ./bootstrap
  55. # We can enable more options -- Check Documentation
  56. sudo ./configure --enable-fuse --enable-jpeg
  57. sudo make
  58. sudo make install
  59.  
  60. ##################################################################
  61. #Step 3 - compiling xorgxrdp packages
  62. ##################################################################
  63.  
  64. cd /tmp/xrdp-build
  65. git clone https://github.com/neutrinolabs/xorgxrdp.git
  66.  
  67. cd /tmp/xrdp-build/xorgxrdp
  68. sudo ./bootstrap
  69. sudo ./configure
  70. sudo make
  71. sudo make install
  72.  
  73. #===============================================================================
  74. # enable the xrdp and xrdp-sesman systemd services so xrdp starts up when ubuntu boots
  75.  
  76. sudo systemctl enable xrdp.service
  77. sudo systemctl enable xrdp-sesman.service
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top