UPDATE : Version 3 now officially released: http://scarygliders.net/2013/07/25/x11rdp-o-matic-version-3-now-released/
It's here! It's improved! It works even better!
I call this the "ssta release", in honour of a pal of mine who made a request which I've now implemented. ( --justdoit
option, see below).
I have sweated and toiled, lost sleep, learned a lot, re-learned a lot, tested, tested again, and ended up with something which should work for just about everyone – everyone that is, who's users are local to the system – anyone using Active Directory to login still won't be handled by the RDPsesconfig utility yet – if you really want this, please donate to encourage it! I am unemployed, living in Japan, waiting until my house/land are sold before I can move back to my native Scotland – in the meantime, I'm using this time to do useful and unpaid stuff, so what I'm asking is, if you like what I'm doing and want to show your appreciation, hit the donate button! You don't need to be a Paypal member to do so :)
Did I mention the Donate button? Hit that thing Like A Boss, or The Fist Of An Angry God, or something, but just do it. Please B)
And I'd like to thank those who have sent a donation so far. I have received 2 "General" donations (from the button on the left hand sidebar) , and 1 specific donation from the donate button on the X11rdp-o-matic/RDPsesman V1 post. THANK YOU! You guys are awesome!
Anyway onto Version 2…
v2.5 Changelog
- dpkg-status response has changed in Debian Wheezy! Changed the package status test to reflect this, which will also work with older distros.
v2.4 Changelog
- set LANG so that dpkg etc. return the expected responses so the script is guaranteed to work under different locales – many thanks to reader Pedro Alves
v2.3 Changelog
- Now works and tested with Ubuntu 10.04 LTS
v2.2 Changelog
RDPsesconfig
- fixed naïve grepping for username in /etc/passwd. (thanks to reader Jeroen!) Utility should now not confuse username "tim" with the entry "rtkit:x:110:119:RealtimeKit,,,:/proc:/bin/false" in /etc/passwd , for example, and should now place the correct .xsession in the correct place.
V2.1 Changelog….
X11rdp-o-Matic
- corrected error in package status test condition on line 166 – thanks to Daniel for pointing it out ;)
V2 Changelog…
X11rdp-o-Matic
- Added package repository update before checking for required packages
- Modularized for future multiple dialog front-ends
- Added a text dialog front-end
- Added a check for running on a non-X display terminal (will revert to text-only if so)
- Uses the text mode front-end by default – Zenity is limited and rubbish!
- Added command line parameters:
--justdoit
,--nocpuoptimize
,--zenityfrontend
,--keepsource
,--nocleanup
- Now runs in a text only environment – suitable for "Server" distro variants with no Xorg installed as yet, or basically for anyone who prefers the text interface over the Zenity one.
- Added a non-interactive, "just do it" mode so script will run from start to end, with "sane" defaults
- Really tidied up the script, should make it easier to read and edit later
- Source code is downloaded to inside wherever the ScaryMatic directory is located
- Added alteration of xrdp source code Makefile.am so the PID file is now in
/var/run/xrdp/
- Changed "
PIDDIR=/var/run/
" to "PIDDIR=/var/run/xrdp/
" in the xrdp init script
RDPsesconfig
- Added package repository update before checking for required packages
- Modularized for multiple dialog front-ends
- Added a text dialog front-end
- Added a check for running on a non-X display terminal (will revert to text-only if so)
- Uses the text mode front-end by default – Zenity is limited and rubbish!
- Added command line parameter: –zenityfrontend – seriously? use the text front-end, it's better.
- Really tidied up the script, should make it easier to read and edit later
- Source code is downloaded to inside wherever the ScaryMatic directory is located
- Removed the experimental PolicyKit rules generator. System admins should consider implementing their policies carefully.
What's New
The Text Interface
Just Do It mode...
--justdoit
switch will download, compile, install, and configure X11rdp and xrdp from start to finish, with no user interaction required. This fire-and-forget mode is suitable for busy admins like my friend "ssta" who don't have the time for fancy schmancy front-ends or GUI's ;) You're welcome.--justdoit
will trigger non-interactive mode, will display plain text with no dialogs, by default will use additional cpu's in the compilation of X11rdp (make -j N+1 , where N is the number of cpu cores available), unless requested not to by use of the --nocpuoptimize
switch.sudo ./X11rdp-o-matic.sh --justdoit
: will download, utilize all cpu cores for compilation, compile, install, and configure X11rdp and xrdp automatically from start to finish.sudo ./X11rdp-o-matic.sh --justdoit --nocpuoptimize
: same as above but without the cpu utilization.Cleanup of source code after installation…
--nocleanup
switch to keep the source trees after installation.sudo ./X11rdp-o-matic.sh --nocleanup
: Starts the utility in interactive text mode and will not delete the source trees after use.sudo ./X11rdp-o-matic.sh --justdoit --nocleanup
: Starts the utility in non-interactive mode and will not delete the source after completion.Re-use source code
--reuse
switch , which will re-use the source trees – use this for non-interactive mode if you still have the source trees from last use.sudo ./X11rdp-o-matic.sh --justdoit --reuse
: will re-use the source trees BUT WILL delete the source trees after completion!sudo ./X11rdp-o-matic.sh --justdoit --reuse --nocleanup
: same as above but will KEEP the source after completion.Source code download location…
xrdp source code automatically altered after download
/var/run
. Since nowadays /var/run
is a symbolic link to /run
, /run
seems to become owned by xrdp. I have now implemeted an automatic alteration of the source code so that the .pid files are now created within /var/run/xrdp
– similarly, the xrdp init script has been altered to match this change.Default system PolicyKit rules prevent users logged in via RDP from doing stuff locally logged in users can do
Screenshots
X11rdp-o-matic…

Debian Wheezy

Starting the utility

Automatically downloads required packages

The welcome page

Updating the package database

Installing required packages

Downloading the source

If you have more than 1 cpu it’ll make compilation quicker

Compiling X11rdp

Compiling xrdp

Installation complete!

Testing the xrdp connection

We haven’t ran RDPsesconfig yet!

Just Do It mode…

Just Do It mode…
RDPsesconfig

Select which desktop to use

Downloading desktop packages

Select which users to configure

Configuring selected user(s)

Completed!

KDE desktop configured

Selecting Gnome

Downloading desktop packages

Gnome desktop in RDP session

Customized Gnome desktop
Download
Download from the Central Download Page
Donate!
If you like these utilities, please make a donation :)
Provide feedback!
The post X11RDP-o-Matic and RDPsesconfig : Updated to Version 2.5 appeared first on Scarygliders.