June 13, 2024How to Detach Sessions From a TerminalWhen we do production deployments at my team at Canonical, we log into a bastion server and execute a long running command from there. Long running as of 30 minutes. The script goes through all our servers and deploys the latest changes. Needless to say that it would not be optimal when e.g. the connection dies during the deployment, as this would stop the deployment right in the middle. Hello terminal multiplexer Most engineers probably heard of tmux and screen before....
June 27, 2022Ubuntu Versions Cheat Sheetabout versions, names, even more versions and dates version code name python go debhelper end of standard support eol 16.04 xenial xerus 3.5 ? 9 04/2021 04/2026 18.04 bionic beaver 3.6 ? 11 04/2023 04/2028 20.04 focal fossa 3.8 1.13 + 1.14 12 04/2025 04/2030 22.04 jammy jellyfish 3.10 ? 13 04/2027 04/2032 24.04 noble numbat 3.12 ? 13 04/2029 ?
November 3, 2021How to Compare Two Directories on LinuxWhile migrating a couple of Bazaar repositories to git, I experienced some problems with one Bazaar repository, or let’s say the exporter did not work properly on one of its commit. In order to find out what exactly happened, I needed to compare both the tip of the git and the Bazaar repository. Turns out, diff can not only compare files, but also directories… recursively! $ diff -qr bzr/wadllib/ git/wadllib/ Only in bzr/wadllib/: ....
July 6, 2021How to Debug Network IssuesUnlike I stated earlier today… It’s not DNS There’s no way it’s DNS It was DNS … this time it was not DNS. But let’s start from the beginning. two lonely OpenSUSE virtual machines I inherited two OpenSUSE VMs from a departing colleague. After changing passwords and cataloging what services are installed, I tried to update the VMs… and got the following errors… # zypper refresh Problem retrieving files from 'Haupt-Repository (NON-OSS)'....
June 9, 2021What Is the True Order of Files in a DirectoryThis week I faced a very odd bug at work. A build process failed - on one machine, but not on the other. Identical setup - of course :-/ The build script consists of a bash script, which wraps a call to the C binary. The bash script was innocent. When I had a closer look at the C source code, it turned out there were about 30 lines of code, just dealing with traversing directories and copying files and folders....
January 19, 2021How Can You Convert an Adobe Illustrator File (AI) to an Encapsulated Postscript File (eps)One of my web applications is using RML to render PDFs. For one PDF document template I received a new logo file which was produced with Adobe Illustrator (file extension .ai). The RML library cannot handle ai-files, but eps-files. In order to convert the file I used Ghostscript as following: gs -dNOPAUSE -dBATCH -sDEVICE=eps2write -sOutputFile=out.eps input.ai where -dNOPAUSE means “no pause after page” -dBATCH means “exit after last file” -sDEVICE selects the device -sOutputFile is the name of the - you can guess it - output file P....
August 25, 2020How to Sort Files and Folders in Nautilus So Folders Are Shown Firstupdate settings gsettings set org.gtk.Settings.FileChooser sort-directories-first true check settings gsettings get org.gtk.Settings.FileChooser sort-directories-first via https://askubuntu.com/questions/1064482/