SHIFT-WIKI - Sjoerd Hooft's InFormation Technology
This WIKI is my personal documentation blog. Please enjoy it and feel free to reach out through blue sky if you have a question, remark, improvement or observation. See below for the latest additions, or use the search or tags to browse for content.
SSH X11 forwarding and SU
Summary: How to work with xauth cookies when doing su.
Date: Around 2012
Refactor: 29 April 2025: Checked links and formatting.
X authentication is based on cookies, secret little pieces of random data that only you and the X server know. So, when you su the user you su to need to know the cookie. To do so request your cookies and your display setting before you su:
>xauth list server1.company.local/unix:10 MIT-MAGIC-COOKIE-1 1c64ce9c5e07154d4403bf8b919635f2 server2.company.local/unix:10 MIT-MAGIC-COOKIE-1 0d219bf6b6b4ed805ad51b17f71d2e38 >echo $DISPLAY localhost:10.0
Now su, and import the cookie configuration and the DISPLAY variable:
>su - oracle oracle's Password: >xauth add server2.company.local/unix:10 MIT-MAGIC-COOKIE-1 0d219bf6b6b4ed805ad51b17f71d2e38 >export DISPLAY=localhost:10.0
Note: If you do this on a system with SELinux enabled and run into errors see here
This wiki has been made possible by:
SSH Login Without Password
Summary: How to use a certificate for SSH login.
Date: Around 2014
Refactor: 29 March 2025: Checked links and formatting.
SRM Script: Start All Windows Services
Summary: How to create a script to check if all services came up correctly after a failover with VMware Site Recovery Manager 5.1.
Date: 8 April 2013
Refactor: 29 April 2025: Checked links and formatting.
This script tests if all automatic Windows Services have been started as they should have. Note that this script does not work for a test environment. The SRM server executing this script lives in production network (of course) so it will only connect to production machines. In a recovery the recovered VMs are production, so in that case it will not be a problem. For checking up on Windows services in a test, please check SRM Script in Recovered VM: Check And Start Automatic Services.
AIX Object Data Manager (ODM)
Summary: ALthough AIX is by now on version 7.3 I find these old pages so fascinating I decided to keep them. On this page I'll show you how to work with the AIX Object Data Manager. This page is for AIX 5.3.
Date: Between 2010-2013
Refactor: 21 December 2024: Checked formatting.
