Thursday, February 22, 2024

https://computingforgeeks.com/install-guacamole-remote-desktop-on-ubuntu-jammy-jellyfish/

https://www.digitalocean.com/community/tutorials/how-to-enable-remote-desktop-protocol-using-xrdp-on-ubuntu-22-04

/etc/xrdp/xrdp.ini
[Globals]
autorun=Xorg
hidelogwindow=yes
 

Sunday, July 12, 2020

xrdp fix
https://github.com/neutrinolabs/xrdp/issues/1128#issuecomment-633747125

echo xfce4-session > ~/.xsession

https://kifarunix.com/install-apache-guacamole-on-ubuntu-20-04/

Sunday, August 11, 2019

https://httpd.apache.org/docs/2.4/programs/apxs.html
https://znil.net/index.php?title=Ubuntu_18.04.x_LTS_-_Guacamole_HTML5_Remotedesktop_Gateway_installieren_mit_Apache_Reverse_Proxy

echo xfce4-session> ~/.xsession

apt-get install letsencrypt
apt-get install python-certbot-apache

with the "certonly" option. To non-interactively renew *all* of
your certificates, run "certbot renew"

Sunday, January 22, 2017

xrdp from 16.04 is broken, too - no clibboard

http://c-nergy.be/blog/?p=9285

apt-get -y update

apt-get -y install build-essential automake autoconf libtool pkg-config checkinstall
apt-get -y install libx11-dev libxfixes-dev libssl-dev libpam0g-dev libtool libjpeg-dev flex bison gettext autoconf libxml-parser-perl libfuse-dev xsltproc libxrandr-dev python-libxml2 nasm xserver-xorg-dev fuse

apt-get -y install xrdp
apt-get -y remove xrdp

mkdir ~/Downloads
cd ~/Downloads
wget https://github.com/neutrinolabs/xrdp/releases/download/v0.9.1/xrdp-0.9.1.tar.gz
wget https://github.com/neutrinolabs/xorgxrdp/releases/download/v0.2.0/xorgxrdp-0.2.0.tar.gz

 tar xfz xrdp-0.9.1.tar.gz
 cd ~/Downloads/xrdp-0.9.1/
 ./bootstrap
 ./configure
 make
 checkinstall -y

 cd ~/Downloads
 tar xfz xorgxrdp-0.2.0.tar.gz
 cd xorgxrdp-0.2.0
  ./bootstrap
 ./configure
 make
 checkinstall -y


echo "Symbolic links for xrdp"
echo "-----------------------"

sudo mv /etc/xrdp/startwm.sh /etc/xrdp/startwm.sh.backup
sudo ln -s /etc/X11/Xsession /etc/xrdp/startwm.sh
sudo mkdir /usr/share/doc/xrdp
sudo cp /etc/xrdp/rsakeys.ini /usr/share/doc/xrdp/rsakeys.ini

## Needed in order to have systemd working properly with xrdp
echo "-----------------------"
echo "Modify xrdp.service "
echo "-----------------------"

#Comment the EnvironmentFile - Ubuntu does not have sysconfig folder
sudo sed -i.bak 's/EnvironmentFile/#EnvironmentFile/g' /lib/systemd/system/xrdp.service

#Replace /sbin/xrdp with /sbin/local/xrdp as this is the correct location
sudo sed -i.bak 's/sbin\/xrdp/local\/sbin\/xrdp/g' /lib/systemd/system/xrdp.service
echo "-----------------------"
echo "Modify xrdp-sesman.service "
echo "-----------------------"

#Comment the EnvironmentFile - Ubuntu does not have sysconfig folder
sudo sed -i.bak 's/EnvironmentFile/#EnvironmentFile/g' /lib/systemd/system/xrdp-sesman.service

#Replace /sbin/xrdp with /sbin/local/xrdp as this is the correct location
sudo sed -i.bak 's/sbin\/xrdp/local\/sbin\/xrdp/g' /lib/systemd/system/xrdp-sesman.service

#Issue systemctl command to reflect change and enable the service
sudo systemctl daemon-reload
sudo systemctl enable xrdp.service


--------/etc/xrdp.ini----------
[Xorg]
name=Xorg
lib=libxup.so
username=ask
password=ask
ip=127.0.0.1
port=-1
code=20
--------/etc/xrdp.ini----------

Monday, January 2, 2017

ubuntu 16.04 - package list

build-essential apache2 apache2-dev apache2-utils autotools-dev automake autoconf checkinstall unzip zip libssl-dev
python-letsencrypt-apache
xubuntu-desktop xrdp
tomcat8 maven openjdk-8-jdk-headless
libcairo2-dev libjpeg-dev libpng12-dev libossp-uuid-dev libfreerdp-dev libpango1.0-dev libssh2-1-dev libtelnet-dev libvncserver-dev libpulse-dev libssl-dev libvorbis-dev libwebp-dev libavcodec-dev libswscale-dev

Thursday, December 29, 2016

ubuntu 16.04 - X11RDP-o-Matic not needed anymore

x11rdp is fixed on ubuntu 16.04

sudo apt-get install xrdp

/etc/xrdp/xrdp.ini
[globals]
address=127.0.0.1

Reconnect to the Same Session

Since Ubuntu 14.10, a new xrdp package has been made available in the Ubuntu repository. This package fixes a long time issue related to the fact that users could not reconnect to the same session.  If you are using the package xrdp 0.6.1-1, you do not need to perform any customization, you will reconnect automatically to the same session.

http://c-nergy.be/blog/?p=8952

Sunday, January 31, 2016

compile quacamole

libcairo2-dev libjpeg-dev libpng12-dev libossp-uuid-dev libfreerdp-dev libpango1.0-dev libssh2-1-dev libtelnet-dev libvncserver-dev libpulse-dev libssl-dev libvorbis-dev libwebp-dev automake autoconf checkinstall libtool maven tomcat7 apache2-dev apache2-utils autotools-dev unzip zip apache reverseproxy benötigt: a2enmod proxy_http tomcat7: /etc/tomcat7/server.xml: address="127.0.0.1" /etc/default/tomcat7: GUACAMOLE_HOME = /etc/guacamole qr: apt-get install php5-gd cp guacamole/target/guacamole-0.9.9.war /var/lib/tomcat7/webapps/guacamole.war

Wednesday, November 25, 2015

powershell compress single file via NTFS (pinvoke)

C# Source: http://www.blackwasp.co.uk/FileCompression.aspx

Monday, July 27, 2015

Azure Powershell

1. Azure Powershell installieren https://azure.microsoft.com/en-us/documentation/articles/powershell-install-configure/ 2. Azure subscription installieren http://blogs.technet.com/b/canitpro/archive/2013/11/06/set-by-step-manage-windows-azure-using-powershell.aspx 3. Powershell Session zur Azure-VM aufbauen https://gallery.technet.microsoft.com/scriptcenter/Configures-Secure-Remote-b137f2fe

ssh - allow password authentication to localhost

Match address 127.0.0.1/32,::1
PasswordAuthentication yes

Sunday, July 19, 2015

xrdp session resumption

X11RDP/ xrdp has no proper session resumption / reconnection
X11RDP-o-Matic fixes this /etc/xrdp/xrdp.ini [globals] address=127.0.0.1

apt install history

/var/log/apt/history.log

Monday, March 30, 2015

Sunday, January 4, 2015

embed gist snippets in blogspot

How to embed gist snippets in blogspot

create QR Code for Google Authenticator without using google charts API

One time pad authentication for apache: mod-authn-otp/
create QR Code for Google Authenticator without using google charts API (source code gpl): qr generator
Google Authenticator

apt-get install php5 php5-gd libapache2-mod-php5

Monday, December 29, 2014

Install Guacamole

tomcat - server.xml - listen localhost only: Guacamole - apache as reverse proxy for tomcat:
apt-get install xubuntu-desktop xrdp
apt-get install libcairo2-dev libpango1.0-dev libpng12-dev freerdp-x11 libssh2-1 libvncserver-dev libfreerdp-dev libvorbis-dev libssl0.9.8 libssh-dev libssh2-1-dev libpulse-dev
apt-get install uuid uuid-dev libossp-uuid-dev

compile apache module for existing apache binary

apxs - APache eXtenSion tool

mod-authn-otp - Apache module for one-time password authentication

apt-get install build-essential apache2 apache2-dev apache2-utils
apt-get autotools-dev automake checkinstall
apt-get unzip zip
apt-get install libssl-dev
./autogen.sh
./configure
make
apxs -i -a mod_authn_otp.la
chown www-data:www-data otp
chown www-data:www-data otp/otp-users.txt
a2enmod authn_otp proxy_http headers

simulate hanging windows service


simulate hanging service:
        protected override void OnStop()
        {
            while (true) { }
        }