Monday, May 31, 2021

Matching an empty line with regular expression string match

 
 
works in regular expression search mode in notepad++
 
^\s*$

Explanation:

  • ^ is the beginning of string anchor.
  • $ is the end of string anchor.
  • \s is the whitespace character class.
  • * is zero-or-more repetition of.

In multiline mode, ^ and $ also match the beginning and end of the line.

 
 
--30--
 
 
 

Saturday, May 22, 2021

debian 9 notes on installing cockpit

 
 
apt update && apt upgrade
echo 'deb http://deb.debian.org/debian stretch-backports main' > \
 /etc/apt/sources.list.d/backports.list
apt update
apt -y install cockpit
systemctl enable cockpit
systemctl status cockpit
 

 

--30--

Friday, May 21, 2021

Thursday, May 20, 2021

xrdp on debian 9 notes.

 


Install xrdp xfce4 and vnc
 
apt install -y xrdp tigervnc-standalone-server

problem with xrdp.ini having autorun= default to the Session ID rather than reasonable value
change the autorun= to add autorun=Xvnc
 
cant seem to run Xorg session, but with xvnc installed works okay
 
upstream error
https://github.com/neutrinolabs/xrdp/issues/750
 
original error in Fedora 24
https://bugzilla.redhat.com/show_bug.cgi?id=1450681
 
error message is:
 /var/log/xrdp.log shows [ERROR] xrdp_wm_log_msg: Section "HPC15" not configured in xrdp.ini

install xsession and xsessionrc as follows
https://www.hiroom2.com/2018/05/07/ubuntu-1804-xrdp-xfce-en/

another file on debian 9 xrdp
https://ekozel.com/2019/10/05/setup-remote-desktop-xrdp-on-debian-9/

https://portal.databasemart.com/kb/a457/how-to-install-desktop-environment-and-xrdp-service-in-debian-9.aspx

 
 
 
 
--30--

Friday, May 14, 2021

xterm traffic over ssh



notes on running ssh and exporting windows via ssh


Has notes also for a wndows x server, and using Putty to tunnel x traffic and display on the windows machine.

--30--