Lorenzo Bettini is an Associate Professor in Computer Science at the Dipartimento di Statistica, Informatica, Applicazioni "Giuseppe Parenti", Università di Firenze, Italy. Previously, he was a researcher in Computer Science at Dipartimento di Informatica, Università di Torino, Italy. He has a Masters Degree summa cum laude in Computer Science (Università di Firenze) and a PhD in "Logics and Theoretical Computer Science" (Università di Siena). His research interests cover design, theory, and the implementation of statically typed programming languages and Domain Specific Languages. He is also the author of about 90 research papers published in international conferences and international journals.
A small blog post on how to installEndeavourOSwith LUKS disk encryption.
The installation starts and proceeds as usual (see, e.g.,my older post). I’m using KDE for this installation.
When you get to disk partitioning, choose manual:
If you start from a fresh disk, create a new partition table and choose GPT:
If you start from a fresh disk, first create the partition for EFI:
In the rest of free space, I personally prefer to have a swap partition:
But I prefer not to encrypt that (to avoid being asked for the decryption password twice; at least, that’s what I guess… I’ll experiment that in the future):
Then, the partition for the actual system (in this case, I’m not using the whole disk); here, you specify the filesystem (I preferBTRFS) and check “Encrypt”; you’ll be asked for the encryption password (of course, choose a strong one and ensure you remember that password):
Here’s the final layout:
Now, proceed as usual.
When you reboot, before getting to GRUB, you’ll be asked for the encryption password:
Once inserted, wait for the system to verify that:
And then, you finally get to GRUB as usual.
In fact, I haven’t created a separate partition for “/boot” (which would be a bad idea if you want to use BTRFS snapshots); thus, the grub configuration is in the encrypted file system, and when EFI boots, it needs the encryption password right away.
When you log in, you should see the directory layout with LUKS encryption:
I love LaTeX, but I don’t love LaTeXnoise. If you use LazyVim’slang.texextra, you’ve probably seen a familiar friend pop up in your editor diagnostics:Underfull \hbox. It’s usually harmless, but it’s distracting—especially when you’re trying to focus on content. In this post, I’ll show two clean ways to silence those warnings: one for VimTeX’s quickfix and one for TexLab’s LSP diagnostics, without turning off the good stuff.
In LazyVim’s Tex extra, those Underfull \hbox … messages are coming from VimTeX’s Quickfix parsing (it’s enabled by default in the extra). VimTeX lets you hide specific warnings by regex-matching them withg:vimtex_quickfix_ignore_filters.
Create a custom plugin specification, e.g., “~/.config/nvim/lua/plugins/extend-vimtex.lua”, with these contents:
Lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
return{
{
"lervag/vimtex",
-- use `init` for vim.g.* so it’s set before VimTeX uses it
init=function()
-- These are Vim regexes. Match the log line(s) you want to hide.
-- [[Overfull \\hbox]], -- (optional) hide overfull hbox warnings too
-- [[Underfull \\vbox]], -- (optional) hide underfull vbox warnings too
}
end,
},
}
Restart Neovim, and the quickfix list will no longer contain those warnings.
However, you’re still seeing “Underfull \hbox” asLSP diagnostics(not quickfix), that’s coming fromTexLab (separate configuration):
You need to create another custom plugin specification for customizing the TexLab LSP, e.g., “~/.config/nvim/lua/plugins/extend-lspconfig.lua”:
Lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
return{
{
"neovim/nvim-lspconfig",
opts={
servers={
texlab={
settings={
texlab={
diagnostics={
ignoredPatterns={
-- Rust regexes. Match the diagnostic text you want to suppress.
[[Underfull \\hbox]],
-- If you want to be extra broad:
-- [[Underfull \\hbox.*]],
},
},
},
},
},
},
},
},
}
Restart, and also the editor’s inline warnings of that space will be gone.
If you don’t like that deep specification, in LazyVim, you don’t have to restate the wholeopts = { servers = { texlab = { … }}}block. You canpatchthe existing LSP config in a tinyopts = function(_, opts) ... endsnippet (LazyVim shows this pattern for extending defaults, and also documents theopts.setuphook for server setup).
The final result of this series of tutorials can be found here: https://github.com/LorenzoBettini/lazyvim-tex. Branches will denote the state of the repository for a specific blog post section.
Stay tuned for more blog posts on LaTeX and Neovim! 🙂
How to prevent JDT LS (via m2e) from adding generated-sources APT folders and org.eclipse.jdt.apt prefs to an Eclipse+Maven project in VS Code.
If you open aMaven Java projectinVisual Studio Codethat also containsEclipse project metadata(.project,.classpath,.settings/…), you might notice that VS Code’s Java tooling (JDT Language Server) “helpfully” edits your Eclipse files.
In particular, it may keep re-inserting entries like these into your.classpath:
VS Code Java support is powered byEclipse JDT Language Server (JDT LS). When it detects Eclipse metadata (.project/.classpath), it will often use Eclipse-style project configuration and keep it synchronized.
For Maven projects, JDT LS relies onm2e(the “Maven integration for Eclipse”), and in many setupsm2e-aptis present as well. m2e-apt is the component that managesannotation processing (APT)integration and, as part of that, it adds the standard “generated sources” folders into.classpath.
I find that very annoying!
If your projectdoesn’t use annotation processingand you don’t want these Eclipse files constantly modified, and you remove the entries, Visual Studio Code will re-add them when you open the projects in Visual Studio Code. If you open the projects from Eclipse and you “update” the Maven projects, Eclipse will remove the entries… and so on and so forth!
Put it under the regular Maven<properties>section:
XHTML
1
2
3
4
5
6
<project>
...
<properties>
<m2e.apt.activation>disabled</m2e.apt.activation>
</properties>
</project>
That’s it. After this, m2e-apt will stop treating your project as something it should manage, and VS Code/JDT LS will no longer keep reintroducing those APT-related.classpathentries.
Note:The documentationmentions a “settings section” in the POM. There isnosettingselement inpom.xml; Maven “settings” live in~/.m2/settings.xml. In the POM, this is implemented via aproperty, soproperties(or a profile’sproperties) is the right place.
Refresh VS Code so it stops regenerating the files
After editing the POM, VS Code may still have cached the project configuration. Do this once:
Open the Command Palette
Run:Java: Clean Java Language Server Workspace
Let the Java server restart and re-import the project
Then you can delete the unwanted entries/files one last time:
Remove the APT-relatedclasspathentry … m2e-apt …blocks from.classpath
Delete.settings/org.eclipse.jdt.apt.core.prefsif you don’t want it around
They should not come back.
If you only want to disable it in certain environments, you can place the property in a Maven profile or in the pom file of a single project.
Remembering everySwayshortcut is tough. I wrote a small script that parses your Sway config, displays allbindsymshortcuts in a clean, searchable list via Rofi, and executes the command associated with whichever one you select.
It’s fast, keyboard-friendly, and great for discovery: “What did I bind to Mod + Shift + P again?” Now you can search, see, and execute it.
What the script does
Reads your Sway config from$XDG_CONFIG_HOME/sway/config(or~/.config/sway/config)
Finds allbindsym …lines
Formats each entry nicely, e.g.
Mod + Return → exec alacritty
Shows the list in a wide Rofi dmenu
When you select an entry, it executes the associated command throughswaymsg
Dependencies
sway (forswaymsg)
rofi
awk, sed, grep (standard on most distros)
notify-send (optional – shows an error if the config isn’t found)
The script
Save this as~/.local/bin/rofi-sway-keybindings.shand make it executable.
Shell
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/env bash
# This script lists Sway keybindings from the Sway config file and allows the user to select one via rofi dmenu.
# When a keybinding is selected, it executes the associated command.
–keys: the first token (e.g.$mod+Return) –cmd: the rest of the line (e.g.exec alacritty)
It also strips trailing inline comments (after#) and skips bindsym flags like--releaseor--lockedbefore reading the key. Finally, it prettifies modifiers and prints a fixed-width column so the arrows line up.
Rofi presents that list with-dmenu. When you pick one, the script extracts the command part (after→) and sends it toswaymsg. That means anything you can put afterbindsym(likeexec …,workspace …,kill, etc.) will run on demand.
Usage
Run the script from a terminal:rofi-sway-keybindings.sh
If you use theLaTeX listings packageto typeset Java, you’ve probably noticed that modern Java has moved faster than the package itself. Records, var, and text blocks may not highlight correctly out of the box. The good news: the listings package is extensible so that you can teach it “modern Java” with a tiny language definition.
The minimal language extension for Java 17
Here’s a drop‑in snippet that builds on the stock Java lexer to support key Java 17 features:
TeX
1
2
3
4
5
6
\lstdefinelanguage{Java17}{
language=Java,
morekeywords={var,record},
deletekeywords={label},
morestring=[b]"""
}
What each line does:
language = Java: inherit all of the listings’ built‑in Java rules.
morekeywords = {var,record}: colorize var and record as keywords (var is contextual, but highlighting it improves readability in code listings).
deletekeywords = {label}: avoid mistakenly highlighting labeled statements like label: for (…) { … }. label is not a Java keyword; removing it prevents false positives.
morestring=[b]”””: treat triple quotes as a balanced string delimiter so Java text blocks highlight as a single string.
Using it in your document
Activate the language globally:
TeX
1
\lstset{language=Java17}
…or per listing:
TeX
1
2
3
\begin{lstlisting}[language=Java17]
//codehere
\end{lstlisting}
If you already have a custom style (e.g., mystyle) with colors and fonts, combine them:
TeX
1
\lstset{language=Java17,style=mystyle}
Minimal working example
This is a compact MWE you can compile with pdflatex, xelatex, or lualatex. Adjust the style to your taste:
TeX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}% not needed on XeLaTeX/LuaLaTeX
\usepackage{xcolor}
\usepackage{listings}
%Simple,readabledefaultstyle
\lstdefinestyle{mystyle}{
flexiblecolumns=true,
keepspaces=true,
tabsize=4,
showstringspaces=false,
basewidth={0em,0em},,
numbers=left,
basicstyle=\scriptsize,
commentstyle=\itshape,
stringstyle=\ttfamily,
}
%ModernJavalanguageextension
\lstdefinelanguage{Java17}{
language=Java,
morekeywords={var,record},
deletekeywords={label},
morestring=[b]"""
}
\begin{document}
\section*{Demo}
Withthedefault\texttt{Java}languagedefinition:
\begin{lstlisting}[language=Java,style=mystyle]
recordPoint(intx,inty){}
classDemo{
publicstaticvoidmain(String[]args){
varmsg="""
Hello,
Java17"textblocks!"
""";
System.out.println(msg);
label:for(inti=0;i<1;i++){
breaklabel;//'label'isnothighlightedasakeyword
}
}
}
\end{lstlisting}
\noindent
Withthe\texttt{Java17}languagedefinition:
\begin{lstlisting}[language=Java17,style=mystyle]
recordPoint(intx,inty){}
classDemo{
publicstaticvoidmain(String[]args){
varmsg="""
Hello,
Java17"textblocks!"
""";
System.out.println(msg);
label:for(inti=0;i<1;i++){
breaklabel;//'label'isnothighlightedasakeyword
}
}
}
\end{lstlisting}
\end{document}
Here’s the result, where you can see the differences (note in the standard behavior the wrong highlighting of the double-quoted string in the text-block):
If you’veinstalled Linux on your MacBook Air, you’ve probably discovered that while most hardware works out of the box, the built-in FaceTime HD camera is notably absent from your video applications. Don’t worry—you’re not alone, and there’s a solution that doesn’t involve external USB webcams or complicated workarounds.
The issue stems from Apple’s use of Broadcom’s proprietary FaceTime HD camera hardware. Unlike most standard USB webcams that work with Linux’s UVC (USB Video Class) drivers, the MacBook Air’s camera uses a PCIe interface with the Broadcom 1570 chipset, which requires specialized drivers that aren’t included in the Linux kernel.
Identifying Your Hardware
Before diving into the solution, let’s confirm you have the same hardware. Open a terminal and run:
1
2
lspci-nn|grepCam
If you see output similar to this, you’re dealing with the same Broadcom camera:
The key identifier here is[14e4:1570]—this tells us we have the Broadcom 1570 chipset that needs the reverse-engineered driver.
The Solution: Community-Developed Drivers
Thanks to the hard work of the Linux community, reverse-engineered drivers are available through the Arch User Repository (AUR). These drivers have been developed by analyzing the hardware behavior and creating open-source alternatives to Apple’s proprietary drivers.
If you’re using an Arch-based distribution (like EndeavourOS, Manjaro, or plain Arch), you can search for the available packages:
1
2
yay-Ssfacetime
This will show you several packages:
facetimehd-dkms: The main reverse-engineered driver
facetimehd-firmware: Required firmware files extracted from macOS
facetimehd-data: Sensor calibration data for optimal performance
facetimehd-dkms-git: Development version of the driver
The installation is straightforward. Install the main driver package:
1
2
yay-Sfacetimehd-dkms
The package manager will automatically pull in the required dependencies, including the firmware and calibration data packages.
After installation, youmust rebootyour system. This isn’t just a suggestion—the kernel module needs to be loaded fresh, and the hardware needs to be properly initialized during the boot process.
1
2
sudoreboot
Once your system boots back up, your webcam should be functional. However, there’s an important caveat to be aware of.
While the driver successfully enables the webcam, there are some compatibility quirks:
Google Chrome/Chromium: Works perfectly
Firefox: May not detect the camera
Native Linux applications(like Kamoso): May have issues
This inconsistency likely stems from the different ways in which various applications interact with the video4linux (V4L2) subsystem and handle the specific quirks of this reverse-engineered driver.
Remember that the part with “+” is the version known by chezmoi, while the one with “-” is the version in the local system.
You now want to update the corresponding file managed by chezmoi.
The command “chezmoi re-add” won’t help because that file is handled by chezmoi_modify_manager, which splits it into two files: “modify_private_katerc” and “private_katerc.src.ini”. The latter contains only the parts of the file we want to track, and the former is the corresponding modification script.
Moreover, “chezmoi merge” won’t help either for the same reason. Here’s what this command shows (I configured chezmoi to use the GUI program “meld” for such a command):
However, “chezmoi_modify_manager” has an option for such situations. Here’s the option to use with “chezmoi_modify_manager”:
1
2
-s, --smart-add Smartly add a file to be tracked by either chezmoi or
chezmoi_modify_manager
Here’s the command and the output:
1
2
3
4
5
❯ chezmoi_modify_manager -s ~/.config/katerc
State: Managed by chezmoi and is a modify script.
Action: Updating existing .src.ini file for /home/bettini/.local/share/chezmoi/dot_config/modify_private_katerc.
Has existing modify script, parsing to check for filtering...
Writing out file data
By using “chezmoi cd” and “git diff”, we can verify that the corresponding “.src.ini” file has been correctly updated (and the git repository can then be committed and pushed):
I know there are many blog posts about configuring Tmux to support true color and italics in Alacritty, but many of them miss a crucial detail that breaks Neovim’s diagnostic undercurl (wavy underlines). Many of them suggest overriding theTERMvariable in Alacritty toxterm-256color, which causes Neovim to lose the ability to display undercurl correctly. Many of them are also outdated or incomplete.
This is how I configured Tmux and Alacritty to work perfectly together, supporting true color, italics, and Neovim’s undercurl diagnostics.
The Problem
When using Tmux inside Alacritty, you may encounter several issues:
No True Color Support: Colors may appear washed out or limited to 256 colors instead of the full 24-bit RGB spectrum
Italics Not Working: Italic fonts don’t render correctly, or reverse video appears instead
These issues stem from incorrectTERMenvironment variable configuration and missing terminal capability overrides.
For example, using the shell script linked below to check true color support, when it’s not working, you get (left: Tmux inside Alacritty, right: Alacritty by itself):
When it works, you get:
The Solution
1. Alacritty Configuration
DO NOT override the TERM variable in Alacritty.Leave it at the default valuealacritty.
1
2
3
4
5
# DON'T DO THIS or Neovim will not show undercurl correctly (only underline)
# Leave the default value, which is `alacritty`
# [env]
# TERM = "xterm-256color"
Why?Alacritty’s defaultTERM=alacrittyincludes the terminfo capabilities for undercurl, which Neovim needs to display diagnostic wavy underlines. Setting it toxterm-256colorbreaks this feature.
2. Tmux Configuration
Add the following lines to your~/.tmux.conf:
1
2
3
4
5
# Enable 256-color and true-color (24-bit) support in tmux
# And also italics
set-gdefault-terminal"tmux-256color"
set-gaterminal-overrides",*:Tc"
Explanation: –default-terminal "tmux-256color": Sets tmux to use a terminal type that supports 256 colors and italics –terminal-overrides ",*:Tc": Tells tmux to enable true-color (24-bit RGB) support for all terminal types that support it
3. Why This Works
When you start tmux inside Alacritty: – Alacritty setsTERM=alacritty(which supports true color and undercurl) – Tmux creates a new environment withTERM=tmux-256color(which supports italics) – Theterminal-overridessetting tells tmux to pass through true-color escape sequences from the outer terminal (Alacritty)
This combination gives you: – True color (24-bit RGB) support – Italic fonts working correctly – Neovim undercurl diagnostics rendering properly
Xtend’s Maven coordinates were relocated to comply with Maven Central’s new publishing requirements after the OSSRH sunset.
The new Maven Central publishing portal enforces namespace consistency:all artifacts in a single deployment must share the same groupId prefix(namespace). We were getting this error when trying to deploy:
Xtend Maven artifacts historically had groupIdorg.eclipse.xtend, while all other Xtext Maven artifacts useorg.eclipse.xtext. This mismatch prevented us from publishing both in a single deployment to Maven Central.
See the detailed rationale in issue#3398and specificallythis comment.
Why relocation instead of just renaming
Backwards compatibility: Existing builds continue to resolve, emitting a clear warning rather than failing.
Gradual migration: Library and plugin maintainers can update on their own schedule.
Single source of truth: Only the new artifact publishes real content; the old coordinate becomes a lightweight stub POM.
Clear deprecation signal: A relocation message is more explicit than a silent artifact disappearance.
No breaking changes: Consumers don’t need to update immediately; their builds keep working.
Maven relocation basics (summary)
Maven relocation allows you to redirect artifact coordinates without breaking existing consumers.
The process involves:
Real artifactswith the new groupId that contain actual JARs, source, and javadoc
Relocation artifactswith the old groupId that are minimal POMs pointing to the new coordinates
A relocation artifact is a simple POM project with this structure:
XHTML
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>OLD.GROUP</groupId>
<artifactId>ARTIFACT_ID</artifactId>
<version>2.x.y</version>
<packaging>pom</packaging>
<distributionManagement>
<relocation>
<groupId>NEW.GROUP</groupId>
<!-- artifactId stays the same -->
<!-- version stays the same -->
</relocation>
</distributionManagement>
</project>
At resolution time, Maven automatically replaces the old coordinates with the new ones and displays a warning to the user.
Our goals
Preserve build stability for all existing Xtend consumers
Minimize maintenance by publishing only one real artifact per logical module
Provide a clear migration path with visible warnings
Avoid transitive duplication (both old + new coordinates ending up on classpath)
Comply with Maven Central’s namespace requirements
Implementation outline
Our implementation involved several steps (seePR #3461for details):
Identify artifacts to relocate: All Xtend artifacts published to Maven Central underorg.eclipse.xtend:org.eclipse.xtend.lib,org.eclipse.xtend.lib.gwt,org.eclipse.xtend.lib.macro, etc.
Create relocation parent POM: Createdorg.eclipse.xtend.relocated.parentto organize all relocation artifacts.
For each artifact, create a relocation POM modulewith: – Packaging:pom – Old groupId:org.eclipse.xtend – Same artifactId and version as the original – Relocation block pointing toorg.eclipse.xtext
Separate publishing workflow: Since Maven Central requires same-namespace deployments, we had to: – Build relocation artifacts separately – Archive deployment bundles for manual upload – Publish relocation artifacts in a separate step from main artifacts
Update CI/CD scripts: Modified Jenkins deployment scripts to handle both artifact sets.
Because the relocation artifact is only a stub POM with no JAR attached, the classpath will contain only the new artifact. This prevents:
Duplicate classes on the classpath
Class shadowing issues
Version conflicts between old and new coordinates
Maven and Gradle both handle this correctly by fetching only the relocated target.
Publishing workflow
The key challenge was Maven Central’s namespace requirement. Our solution:
Main build: Publishes allorg.eclipse.xtextartifacts (including the real Xtend artifacts with new groupId)
Separate relocation build: Publishes allorg.eclipse.xtendrelocation POMs
Validation: We performed dry-run deployments to verify Maven Central would accept the artifacts
Manual upload: For milestone releases, we archived bundles and manually uploaded them to Maven Central
As noted in the PR discussion, we had to update version-bumping scripts to include the new relocation parent directory.
Migration guidance for consumers
Search your builds for the old groupId: – Maven:mvn dependency:tree | grep org.eclipse.xtend – Gradle:./gradlew dependencies --configuration compileClasspath | grep org.eclipse.xtend
Replaceorg.eclipse.xtendwithorg.eclipse.xtextin your POMs or build.gradle files:
1
2
3
4
5
6
7
8
9
10
11
12
13
<!--Old-->
<dependency>
<groupId>org.eclipse.xtend</groupId>
<artifactId>org.eclipse.xtend.lib</artifactId>
<version>2.40.0</version>
</dependency>
<!--New-->
<dependency>
<groupId>org.eclipse.xtext</groupId>
<artifactId>org.eclipse.xtend.lib</artifactId>
<version>2.40.0</version>
</dependency>
Run your build and verify the relocation warning disappears
Update any BOM or dependencyManagement entries
Tooling considerations
IDEs: Eclipse, IntelliJ IDEA, and other IDEs honor Maven relocation. Refresh your project after migration.
Gradle: Fully supports Maven relocation when resolving from Maven repositories.
Reproducibility: The relocation POMs are stable and don’t affect build reproducibility.
CI/CD: No changes needed; relocation works transparently in CI environments.
Lessons learned
Maven Central namespace enforcement is strict: You cannot publish artifacts with different groupId namespaces in a single deployment, even if they’re in the same monorepo.
Relocation is low-effort and highly effective: Once set up, relocation artifacts are trivial to maintain across versions.
Separate publishing is required: Relocation artifacts must be published in a completely separate Maven deployment due to namespace restrictions.
Testing is crucial: We performed dry-run deployments first to ensure Maven Central would validate the artifacts correctly.
Scripts need updates: Don’t forget to update version-bumping and release automation scripts to include relocation modules.
Communication is important: Clear documentation and release notes help consumers understand and adopt the changes smoothly.
It works across ecosystems: Both Maven and Gradle consumers benefit from relocation automatically, as do IDE integrations.
FAQ
Q: Do I need to change anything immediately? A: No; builds continue to work with the old coordinates, but you’ll see warnings. Update when convenient to eliminate warnings.
Q: Does relocation affect checksums or reproducible builds? A: No; the new artifact is authoritative. The stub POM exists only for resolution redirection and contains no actual code.
Q: Can Gradle consumers rely on this? A: Yes; Gradle honors Maven relocation information when resolving from Maven repositories.
Q: What about IDEs? A: IDEs (tested with Eclipse and IntelliJ) honor Maven relocation when resolving from Maven repositories. You may need to refresh your project after migration.
Q: What if I use dependencyManagement or BOM entries? A: Update them to reference the new groupId. Transitive relocation continues working in the meantime.
Q: Will this affect my transitive dependencies? A: No; if your direct dependencies haven’t migrated yet, their use of old coordinates will be automatically relocated, and you’ll see warnings for those too.
Q: What happens if I have both old and new coordinates in my dependency tree? A: Maven/Gradle will resolve both to the same artifact (the new one), so you won’t have duplicates on the classpath.
Let’s install Ubuntu 25.04 on Apple Silicon (M1) in a virtual machine usingUTM.
We must first download an Ubuntu ISO for ARM. Go tohttps://ubuntu.com/download/desktopand search for “ARM 64-bit architecture”; if not available for the specific version you want to install, then you’ll have to install the Ubuntu Server and then install the “ubuntu-desktop” package. Before downloading the server edition, you might want to search deeper in the Ubuntu release download site and look for the ARM ISO, which is not advertised in the above download site. For example, for 25.04, you get the link for the ARM version from the download site, but not for 24.04. However, by looking at the releases web directory, you’ll also find the ARM ISO for 24.04 (for example,https://cdimage.ubuntu.com/releases/24.04.3/release/ubuntu-24.04.3-desktop-arm64.iso).
You can install UTM in several ways. I installed with Homebrew: “brew install utm”.
Let’s start it and create a new Virtual Machine:
Choose Virtualize (we want to use an ARM Linux distribution):
Then, of course, choose “Linux”
Here we use QEMU, not Apple Virtualization. We select the ISO we downloaded before:
Let’s change Memory and Cores to allocate to the VM (I also enable hardware acceleration to have nice visual effects in the VM; As specified in the checkbox’s documentation, this might give you troubles in some configurations):
And the storage of the VM disk. Remember that by default, not all the specified GiB will be used by the file of the disk image: the disk image file will occupy only the effectively used data by the filesystem.
For the moment, I won’t use a shared directory.
Here’s the summary, where you can also give a custom name to the VM:
OK, let’s start the VM; the first time, this will start the installation ISO:
Here we are in the VM. From now on, the installation procedure is basically the standard Ubuntu one. Here’s the list of screenshots:
Since that’s a VM, I select to erase the entire (virtual) disk; alternatively, you might want to specify your custom partitioning scheme, possibly with a different file system than the default one, i.e., EXT4.
The installation starts with the usual slide show:
Remember that by clicking on the small icon on the bottom-right, you’ll get the log of the installation:
After installation has finished, shut down the machine (instead of “restart now”) and “Clear” CD to avoid booting from the installation ISO again:
Now, start the installed VM.
As usual, you’ll almost immediately get updates:
If not already installed, you might want to installspice-vdagentandspice-webdavdfor better integration with the host system (for example, shared clipboard and folder sharing).
Let’s see a few screenshots of the installed system:
Note the SWAP file created by the installer and the filesystem layout.
I’ve installed fastfetch to show the typical output:
Note the graphics (remember we selected above the Hardware OpenGL Acceleration):
Concerning the resolution of the VM, let’s consider the “Display” setting of the virtual machine:
Note the selected “Resize display to window size automatically”; that’s useful, especially when setting the VM window to full screen.
Concerning the display settings: “Retina mode” (optimize resolution for HDPI displays). Then you have to adjust the resolution in the VM. The documentationhttps://docs.getutm.app/settings-qemu/devices/display/suggests NOT to enable “Retina mode” because it increases memory usage and processing (and the host operating system can use efficient hardware scaling, while the guest uses software scaling).
Without this setting, the display will be presented at the current resolution and scale that the operating system uses. For example, here’s my macOS setting:
And in fact, as you see from one of the screenshots above, the Ubuntu desktop, when the UTM VM is full-screen, has the same 1280×800 resolution.
You might want to have a look at the special input settings:
The “Command+Option” is important to easily switch between the VM and the host OS concerning keyboard inputs.
First impressions
In general, the VM usage is very pleasant. Everything runs smoothly, including the visual effect. Indeed, it all seems to run at native speed.
WARNING: You’re running an ARM Linux distribution, so packages must be available for this architecture. Sad news:a few programs are NOT available for Linux ARM, notablyGoogle ChromeandDropbox. Please, consider that.
That’s all for this initial UTM post.
Stay tuned for other posts related to Linux virtual machines in UTM.
On some computers, such as the newDellPro Max Tower T2and the olderXPS 13, the SATA operation mode for the SSD is set to RAID by default. Linux will not recognize the SSD in RAID mode; you need to change it to AHCI. If you just change it to AHCI in BIOS, Windows will not boot.
The idea is to boot Windows in Safe Mode once, then change the SATA mode to AHCI in BIOS, then boot Windows normally (it will automatically load the AHCI drivers).
WARNING:Do the procedure at your own risk!
The procedure can be found in many places online. However, I decided to put the steps that worked for me here:
Click the Start Button and typecmd; Right-click the result and select Run as administrator
Type this command and press ENTER:bcdedit /set {current} safeboot minimal(If it does not work, use this alternative:bcdedit /set safeboot minimal)
Restart the computer and enter BIOS Setup (in Dell, it isF2)
Change the SATA Operation mode to AHCI from RAID
Save changes and exit Setup, and Windows will automatically boot to Safe Mode.
Do as in the first step to open an elevated command prompt.
Type this command and press ENTER:bcdedit /deletevalue {current} safeboot(If it does not work, use this alternative:bcdedit /deletevalue safeboot)
Reboot once more, and Windows will automatically start with AHCI drivers enabled.
Note that in the Dell Pro Max Tower T2 BIOS, you must enable the “Advanced Setup” (see the top-left corner) to be able to change the operation mode in the “Storage” section:
If you’re a KDE user who wants to keep your desktop configuration under version control, you’ve probably discovered that KDE’s configuration files can be quite challenging to manage with traditionaldotfiletools. KDE stores settings in complex INI files that frequently change, contain system-specific data, and include sections you may not want to track. This is whereChezmoi Modify Managerbecomes useful when using theChezmoidotfile manager.
The Problem with KDE Configuration Files
KDE applications like Kate, Dolphin, and KWin store their settings in INI-style configuration files. These files often contain:
For each settings file you want to manage with chezmoi_modify_manager there will be two files in your chezmoi source directory:
modify_<config file> or modify_<config file>.tmpl, e.g. modify_private_kdeglobals.tmpl This is the modify script/configuration file that calls chezmoi_modify_manager. It contains the directives describing what to ignore.
<config file>.src.ini, e.g. private_kdeglobals.src.ini This is the source state of the INI file.
The modify_ script is responsible for generating the new state of the file given the current state in your home directory. The modify_ script is set up to use chezmoi_modify_manager as an interpreter to do so. chezmoi_modify_manager will read the modify script to read configuration and the .src.ini file and by default will apply that file exactly (ignoring blank lines and comments).
Chezmoiapplies the modifications when deploying configs
The .chezmoiignore file ensures source files aren’t directly copied
The file name after “modify_” and the file name of the “.src.ini” must follow the naming conventions of Chezmoi.
Your .chezmoiignore must include:
1
2
**/*.src.ini
This prevents the source files from being deployed directly, letting Chezmoi Modify Manager handle the processing.
So, let’s see how to use that.
Real-World Examples
You can use the “chezmoi_modify_manager” command line to create the proper files.
Let’s look at how this works in practice with actual KDE configurations, based on my dotfiles (so I have already created these files):
KWin Configuration (kwinrc)
The file “modify_private_kwinrc”:
1
2
3
4
5
6
7
8
9
#!/usr/bin/env chezmoi_modify_manager
sourceauto
ignoresection"$Version"
ignoresection"Desktops"
ignoreregex"Tiling.*"".*"
ignoresection"Xwayland"
This script ensures only the relevant window manager settings are tracked (the file “private_kwinrc.src.ini”):
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[Effect-cube]
CubeFaceDisplacement=126
DistanceFactor=1.82
[Effect-magiclamp]
AnimationDuration=400
[Plugins]
cubeEnabled=true
magiclampEnabled=true
squashEnabled=false
[TabBox]
DesktopMode=0
HighlightWindows=false
LayoutName=compact
Global Shortcuts (kglobalshortcutsrc)
The names of the files are using the same convention already shown before.
For keyboard shortcuts, you might want to ignore certain dynamic sections:
1
2
3
4
5
6
#!/usr/bin/env chezmoi_modify_manager
sourceauto
ignoresection"ActivityManager"
This keeps your custom shortcuts while filtering out activity-specific bindings that may not be relevant across systems. The file “private_kglobalshortcutsrc.src.ini” is not shown because it’s quite huge.
Font Configuration (kdeglobals)
Sometimes you only want to track a single setting:
For Kate, you might want to ignore volatile sections while keeping your editor preferences:
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env chezmoi_modify_manager
sourceauto
ignoresection"KFileDialog Settings"
ignoresection"FileDialogSize"
ignoresection"KTextEditor::Search"
ignoresection"MainWindow"
ignoreregex"Kate Print Settings.*"".*"
Again, the “.src.ini” file is not shown.
Benefits
Clean diffs: Only track settings you care about
Portable configs: No system-specific clutter
Selective tracking: Include only relevant sections
Drawbacks
In general, setting the files initially takes much more time: you need to understand what to include/exclude in the “modify_” scripts and properly craft the “.src.ini” files accordingly. Moreover, some Chezmoi mechanisms, such as “merge,” will not function. Therefore,updating the files requires employing alternative techniques, as outlined in the next blog post. Finally, besides “chezmoi”, you need to install an additional program “chezmoi_modify_manager”.
No problems on GNOME either; I’d expect that since it is “natively” based on GTK:
If I run Eclipse forcingX11(GDK_BACKEND=x11), I see no difference.
KDE
On KDE, the situation is not bad, but I find it far from optimal.
Eclipse on Wayland doesn’t look completely native on KDE Plasma:
Many parts don’t look sized correctly.
There’s also the strange thing of the window title bar for the splash screen, which, of course, is not expected:
Dialogs also look not properly sized:
InX11, it looks better, or at least better integrated with the KDE desktop. Moreover, there’s no additional titlebar in the splash screen, and the dialog looks better (for size and width):
Unison, a powerful file synchronizer, has long been one of my favorite tools. However, installing Unison on macOS used to be a manual and sometimes cumbersome process, as detailed inmy earlier guide.
The great news is that Unison is now available as a Homebrew cask! This means you can install it with a single command, leveraging the convenience and reliability of Homebrew’s package management.
To install Unison, simply run:
1
2
brewinstall--caskunison-app
This command will download and install the Unison application into your/Applicationsfolder.
After installation, you might encounter permission issues due to macOS’s security features (especially if you downloaded the app from the internet). To clear any extended attributes that might prevent Unison from launching, run:
1
2
xattr-c/Applications/Unison.app
This command removes quarantine flags and ensures Unison can start without macOS warnings.
For more details and troubleshooting tips, check outmy earlier guide.
I bought this laptop in late 2016. It’s still a good laptop (8 GB RAM, 128 GB SSD) and very light. However,I cannot use it with macOS anymore.
I previously blogged oninstalling Ubuntu on my old MacBook Air. Everything mainly went smoothly, except for the WiFi, which was not working during and after the installation, but it could be fixed by installing the proper module. The upgrade to Ubuntu 25.04 was almost fine: after the upgrade, the system did not boot anymore; I didn’t even get the Grub menu.
Ubuntu once again disappointed me. Time to wipe everything and go with my favoriteArchLinux distribution:EndeavourOS. In particular, “Mercury Neo”.
Installation
After having put the EndeavourOS ISO on a USB stick withVentoyand inserted the USB stick, turn on the Mac and immediately press and hold the Option (⌥) key until you see the startup disk selection screen:
Select the entry corresponding to the USB and get to the Ventoy menu.
After some time, here’s the live system:
Did you notice the WiFi icon? Exactly! The WiFi has been automatically detected! Well done!
This is the WiFi card:
1
2
[liveuser@eos- ~]$ lspci -nn | grep Network
03:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM4360 802.11ac Dual Band Wireless Network Adapter [14e4:43a0] (rev 03)
And we can see that the corresponding kernel module is part of the live system (of course, it will also be part of the installed system):
1
2
3
[liveuser@eos- ~]$ pacman -Qs broadcom
local/broadcom-wl-dkms 6.30.223.271-42
Broadcom 802.11 Linux STA wireless driver
I changed the keyboard layout for an easier installation.
Before starting the installation, I use the Welcome menu to update Arch and EndeavourOS mirrors, of course, after connecting to the WiFi.
Before going on, everything seemed to work: touchpad, keyboard light, volume, brightness, though function keys were inverted. We’ll fix that later.
Let’s start the installation, choosing the “Online” method:
Then, the installation, based on Calamares, is the standard one, showing a few dialogs to select some configurations:
I will install KDE:
I also select as additional packages the LTS kernel and the printing packages:
As usual, I choose Grub as the bootloader:
I choose to wipe everything, select BTRFS as the file system, and also “Swap with hibernation”:
Let’s review everything and choose “Install”:
The installation takes a few minutes. Time to restart:
The installed system
Here we are:
Here are some screenshots of the good-looking KDE desktop:
And, of course, the fastfetch output in all its glory:
Configuration
As already stressed, unlike Ubuntu, there’s no need to fix any WiFi problem: it works out of the box!
Then, let’s fix the function keys, which are inverted (so, to have F1, you’d have to press “Fn F1”, which is not ideal). You can try:
Concerning hibernation (selected during the installation), it does work; however, there’s a big problem: the system does not shut down, it reboots. Upon rebooting, it effectively resumes from hibernation, but as it is, it’s rather useless. I still have not figured out how to fix that.
Another thing not working is the webcam.
This is the device:
1
2
❯ lspci -nn | grep Cam
02:00.0 Multimedia controller [0480]: Broadcom Inc. and subsidiaries 720p FaceTime HD Camera [14e4:1570]
Maybe it’s just a matter of installing the corresponding packages, but I haven’t investigated further yet.
Everything else works smoothly, as I have already said (including touchpad gestures in KDE).
Final thoughts
The laptop works great with EndeavourOS, even better than with Ubuntu. Everything is smooth and reactive. Even more than with the original old macOS operating system.
I noted that concerning sleep, the default configuration already uses the more power-saving setting:
1
2
❯cat/sys/power/mem_sleep
s2idle[deep]
Power consumption also works fine after installing the powertop package (running that with the “auto-tune” setting) and setting the power profile to “Power Saver” from the KDE menu. MacOS probably used to have better power consumption, but this one is acceptable.
It was a nice decision to put Linux on this laptop, even more so with EndeavourOS instead of Ubuntu! 🙂
Zram,https://www.kernel.org/doc/html/latest/admin-guide/blockdev/zram.html, is a Linux kernel module that creates a compressed block device in RAM. This device can be used as swap space or a general-purpose RAM disk. By compressing data in memory, zram allows your system to store more data in RAM, reducing the need to swap to slower disk storage and improving overall responsiveness.
In particular, zram
Increases effective RAM capacity by compressing data.
Reduces disk I/O and wear, especially useful on SSDs.
Improves performance on systems with limited memory.
If you’re looking to boost your Linux system’s performance, especially on machines with limited RAM,zramis a powerful tool worth exploring.
In this post, I’ll show how to set it up on both Arch Linux and Ubuntu.
Installing zram
On Arch Linux
Install the zram generator package:
1
2
sudopacman-Szram-generator
On Ubuntu
Install the systemd zram generator:
1
2
sudoaptinstallsystemd-zram-generator
Configuring zram
Create a configuration file to set up your zram device. For example, to allocate half of your system’s RAM to zram and use the efficientzstdcompression algorithm, run:
Shell
1
2
3
4
5
cat<<-EOF|sudotee/etc/systemd/zram-generator.conf
[zram0]
zram-size=(ram/2)
compression-algorithm=zstd
EOF
After saving the configuration, reboot your system to activate zram.
By default, zram will have the precedence over an existing swap partition.
You can use the commandzramctlto see the status of zram andswaponto show your swap partitions (zram’s one will be/dev/zram0).
I likeNerd Fontsa lot, andblogged about those in the past. If you spend a lot of time in the terminal, you’ve probably heard of them: they patch popular programming fonts with a huge set of icons, making your terminal and development environment look great and more informative.
Here’s how you can easily install Nerd Fonts on macOS usingHomebrew.
Step 1: Install Homebrew (if you haven’t already)
If you don’t have Homebrew installed, open your terminal and run:
Before installing fonts, it’s a good idea to havefontconfig:
1
2
brewinstallfontconfig
Step 3: Install Nerd Fonts with Homebrew Cask
Homebrew makes it easy to install fonts with the--caskoption. Here’s how I install my favorite Nerd Fonts:
1
2
3
4
5
6
brewinstall--cask\
font-jetbrains-mono-nerd-font\
font-caskaydia-cove-nerd-font\
font-iosevka-term-nerd-font\
font-fira-mono-nerd-font
You can add or remove fonts from this list as you prefer. Homebrew will handle downloading and installing them for you.
Step 4: Use Your New Fonts
After installation, open your terminal or code editor’s settings and select your preferred Nerd Font from the font list. Now you can enjoy enhanced icons and a better coding experience!
In this blog post, I’ll document how to usedelta: a syntax-highlighting pager for git, diff, and grep output.
Delta makes diffs much more readable by adding syntax highlighting, line numbers, and custom themes. This is especially helpful when reviewing changes in Lazygit, as it makes it easier to spot what’s changed at a glance.
Installing delta
On Arch Linux (or derivatives), you can install delta with:
When working with Maven projects, the Surefire plugin is commonly used to execute tests, but it lacks a built-in feature to display the total execution time across all test suites. This can be particularly important when monitoring performance trends in larger projects with many test classes.
Maven’s Surefire plugin reports execution time for individual test classes but doesn’t provide an aggregated view of the total test execution time. The reports are generated in the “target/surefire-reports” folder, both as text files and XML files.
Here’s a shell script that parses the XML report files generated by Surefire and calculates the total execution time. The script is compatible with both Linux and macOS environments.
Shell
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
# Calculate total test execution time by summing only the time attributes from the testsuite elements
# Using a more compatible awk syntax for macOS and other platforms
For each matching line, loops through all fields (words) in the line
Find fields that start withtime=
Uses gsub() to extract just the numeric value by removing the time=" prefix and the " suffix
Add the extracted value to the running total
Format the output in the same way, with the total time in seconds
To make this script run automatically after your tests, you can integrate it into your Maven build process using theexec-maven-plugin:
XHTML
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<id>extract-total-test-time</id>
<phase>test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>bash</executable>
<arguments>
<argument>report-total-time.sh</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
The above snippet assumes the script is in a file “report-total-time.sh” in the same directory as the POM. Otherwise, you’ll have to adjust the argument accordingly.
When your tests complete, you’ll see output similar to:
1
2
3
========================================
TOTALSUREFIREEXECUTIONTIME:4.237seconds
========================================
That’s all!
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Duration
Description
cookielawinfo-checkbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.