ldd and untrusted code

man ldd says:

[…] you should never employ ldd on an untrusted executable, since this may result in the execution of arbitrary code.

This also works

LD_TRACE_LOADED_OBJECTS=1 ld /bin/ls
	linux-vdso.so.1 (0x00007ffc3779a000)
	libbfd-2.35.2-system.so => /lib/x86_64-linux-gnu/libbfd-2.35.2-system.so (0x00007f79de56c000)
	libctf.so.0 => /lib/x86_64-linux-gnu/libctf.so.0 (0x00007f79de54b000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f79de545000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f79de371000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f79de354000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f79de6f5000)

SteamOS, HDMI and no sound

No sound from your TV connected via HDMI to a SteamOS machine? Can’t select the HDMI soundcard?

Switch to Desktop Mode, go to Settings, then Sound, select HDMI, play test sound, exit.

Now there is sound in SteamOS.

Xfce and volume step

Does your Xfce change the volume settings in %5 steps but you want 2%?

Find the pulsaudio plugin location in xconf:

xfconf-query -c xfce4-panel -l -v | grep pulseaudio
/plugins/plugin-8                            pulseaudio

Use that to set the step to 2%:

xfconf-query -c xfce4-panel -p /plugins/plugin-8/volume-step -n -t int -s 2

Nginx, WebDAV and tmp

Want to have a WebDAV mountable temporary file storage? Supporting Windows? With the following hack overriding PROPPATCH it works for me:

server {
	...

	location /tmp {
		alias /var/www/tmp;
		autoindex on;

		if ($request_method = PROPPATCH) { # Unsupported, allways return OK.
			add_header Content-Type 'text/xml';
			return     207 '<?xml version="1.0"?><a:multistatus xmlns:a="DAV:"><a:response><a:propstat><a:status>HTTP/1.1 200 OK</a:status></a:propstat></a:response></a:multistatus>';
		}

		dav_methods PUT DELETE MKCOL COPY MOVE;
		dav_ext_methods PROPFIND OPTIONS LOCK UNLOCK;
		dav_ext_lock zone=tmp;
		dav_access user:rw group:rw all:rw;

		client_max_body_size 0;
		create_full_put_path on;
		client_body_temp_path /tmp/;

		open_file_cache off;
	}
}

Jenkins Jelly override

Want to override a packaged jelly file? Maybe headerContent.jelly, from

core/src/main/resources/jenkins/views/JenkinsHeader/headerContent.jelly

Put it here

$EXPLODED/war/WEB-INF/classes/jenkins/views/JenkinsHeader/headerContent.jelly

in the epxloded war location.

A restart may be required.

Bullseye, HDMI and out of sync sound

Watching a video with Firefox on Debian Bullseye via an HDMI display and the sound keeps getting out of sync? Booting with

intel_iommu=on,igfx_off

helped me. See #867548.

Minikube, Podman and Proxy

Running minikube behind a proxy with podman? Setup all http_proxy environment variables and podman still won’t use your proxy?

Configuring sudo to heep this variables:

Defaults        env_keep += "http_proxy https_proxy ftp_proxy no_proxy HTTP_PROXY HTTPS_PROXY"

worked for me.

Trigger Jenkins SCM polling

Want to trigger SCM polling for a certain job? Use

Jenkins.instance.getAllItems( Job.class ).
  find { job -> job.fullName == 'p1' }.
  each { job ->
    job.getSCMTrigger().run()
  }

nc10, root on luks, modules=dep and missing cipher

Trying to boot debian buster on a Samsung nc10 with crypted root? Getting

Check that kernel supports aes-xts-plain64 cipher

when you switch initramfs to modules=dep?

Adding ecb to /etc/initramfs-tools/modules and running update-initramfs -k all -u worked for me.