My goal was to connect to a remote desktop. Had to tweak systemd to autologin with specific user.
sudo vim /firstname.lastname@example.org/autologin.conf
ExecStart=-/usr/bin/agetty --autologin mike --noclear %I $TERM
I’m a zsh user so had to add the following into ~/.zprofile
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
So after these changes after rebooting the PC the X server started and I could connect to it.
Just had to start
x0vncserver -display :0 -rfbauth .vnc/passwd
Sat Mar 28 16:18:32 2020
Geometry: Desktop geometry is set to 3840x1200+0+0
XDesktop: Using evdev codemap
XDesktop: XTest extension present - version 2.2
XDesktop: RANDR extension not present
XDesktop: Will not be able to handle session resize
Main: Listening on port 5900
The desktop has no public IP so I had to port forward
ssh vnc-server -L 9900:localhost:5900
Now I was able to connect with vncviewer
TigerVNC Viewer 64-bit v1.10.1
Built on: 2019-12-27 09:17
Copyright (C) 1999-2019 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Sat Mar 28 16:20:09 2020
DecodeManager: Detected 8 CPU core(s)
DecodeManager: Creating 4 decoder thread(s)
CConn: Connected to host localhost port 9900
CConnection: Server supports RFB protocol version 3.8
CConnection: Using RFB protocol version 3.8
CConnection: Choosing security type VeNCrypt(19)
CVeNCrypt: Choosing security type TLSVnc (258)
Wanted to track remote SSH port forward login and the following is a great solution
Finally got the stream URL
$ mpv rtsp://admin:VERIFICATION_CODE_FROM_CAMERA@CAMERA_IP/
[ffmpeg/demuxer] rtsp: Missing PPS in sprop-parameter-sets, ignoring
(+) Video --vid=1 (h264 1920x1080 15.000fps)
(+) Audio --aid=1 (aac 1ch 16000Hz)
Title: Media Presentation
AO: [pulse] 16000Hz mono 1ch float
VO: [gpu] 1920x1080 yuv420p
Just replace CAMERA_IP with IP and VERIFICATION_CODE_FROM_CAMERA with your code from camera
More info at https://www.ispyconnect.com/man.aspx?n=EZVIZ
I had to really customize the order by of the main WP query. Finally looks like I nailed it.
I wanted to have a repeated calendar event for Mother’s day, but it’s custom logic required making an ICS file and importing it into Google Calendar.
Inspired by/how to import into Google Cal How to Set up Repeating Event in Google Calendar on Last Day of the Month
Your user should be in the boinc group:
usermod -a -G boinc $(whoami)
Than change GUI login file perms:
sudo chmod 640 /var/lib/boinc/gui_rpc_auth.cfg
And then symlink it into your home:
cd ~; ln -s /var/lib/boinc/gui_rpc_auth.cfg gui_rpc_auth.cfg
More info at https://wiki.archlinux.org/index.php/BOINC
Some of my client websites get hacked. Some shared hosting providers provide some virus scanning tools, but it’s not always enough and what about those who even don’t provide malware scanning. Hopefully they provide SSH access and AI-BOLIT can be used. It’s a free website virus and malware scanner for websites.
Just download it, unzip and upload to your desired host. Copy it into the root directory of your website.
Last run it
php ai-bolit.php --mode=2
or not paranoid/normal mode