Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Activity for Quasímodo‭

Type On... Excerpt Status Date
Answer A: VISUAL=gvim makes crontab -e open a new crontab instead of a current one
Specific answer: Use `gvim -f`. General answer: Use the non-forking mode of your editor, i.e. if you run it in a terminal, it should wait until the editor is closed to return back control to you. Explanation Look in crontab.c, starting at `switch (pid = fork())` line. Cron creates a tempo...
(more)
5 months ago
Answer A: Where does GtkFileChooserDialog store bookmarks?
For most users, in `$HOME/.config/gtk-3.0/bookmarks`. Otherwise, if you set the `XDGCONFIGHOME` environment variable (which you can inspect with `env`), in `$XDGCONFIGHOME/gtk-3.0/bookmarks`. From the source code: ``` static GFile getbookmarksfile (void) { GFile file; char filename; ...
(more)
8 months ago
Answer A: Vim key bindings not working in terminal python interpreter
Python's interactive interpreter uses GNU Readline, so Bash's line interpreter, not Zle, which is Zsh's. Therefore, when you enter `python`, the cursor either won't change or will change accordingly to what you have in `.inputrc`, which is GNU Readline's initialization file. Likewise for the Vi or...
(more)
about 1 year ago
Answer A: Recursively remove files with the same name as the ones that end in `.part`
It is incorrect for two reasons. 1. File names containing glob characters This is an edge case scenario. Consider this structure: ``` . ├── abc ├── abc.part ├── cde └── ce.part ``` The outermost Find will find - `abc.part`, so `base=abc` and the innermost Find looks for files ...
(more)
over 1 year ago
Answer A: Preserve the sources extracted by dpkg-source so as to save time
From `man dpkg-source`, -ss Specifies that the original source is available both as a directory and as a tarfile. dpkg-source will use the directory to create the diff, but the tarfile to create the .dsc. This option must be used with care - if the directory and tar...
(more)
over 1 year ago
Question Retrieve changes that closed a Debian bug
If a Debian bug number is referenced in the changelog of an uploaded package, it is automatically closed with a generic message: > We believe that the bug you reported is fixed in the latest version of [package], which is due to be installed in the Debian FTP archive: Random example. This m...
(more)
over 1 year ago
Answer A: How do I deal with a "pending update to "snap-store" snap, close the app to avoid disruption" notification in Ubuntu 22.04?
If snap-store itself is preventing the update, it's straightforward: snap-store --quit sudo snap refresh snap-store But sometimes it might be something else, in which case the above solution won't work. In which case the general solution is to first run `snap refresh snap-store`. It w...
(more)
over 1 year ago
Answer A: Set compose key to Shift + AltGr
You can find a list of options in `man xkeyboard-config`. Under the section "key to choose the 3rd level" is the one you are after: lv3:raltswitchmultikey Right Alt; Shift+Right Alt as Compose To enable it, use setxkbmap -option lv3:raltswitchmultikey You should also pass ...
(more)
over 1 year ago
Question Set compose key to Shift + AltGr
I have upgraded Xubuntu from 20.04 to 22.04 and my compose key, which defaulted to Shift + AltGr, was disabled. It is no longer available in the keyboard settings GUI either. How can I set the compose key to Shift + AltGr again? Adapted from Ask Ubuntu: Upgrading from Xubuntu 20.04 to 22.04 has...
(more)
over 1 year ago
Question Preserve the sources extracted by dpkg-source so as to save time
It takes a long time to build even the source package for a PPA of a huge project, and while the build isn't finished my computer is under heavy load so I can barely navigate a browser. The frustration is doubled when I get an error during that process. Most of the times, errors are caused by a "m...
(more)
over 1 year ago
Answer A: Bind brightness/volume and other special Fn keys in a tty
The special Fn keys typically trigger ACPI events, for which the ACPI daemon can trigger actions. Install ACPI daemon (`apt install acpid`) and make sure it is started and enabled. If it isn't, systemctl start acpid systemctl enable acpid You can read its manual page and inspect f...
(more)
almost 2 years ago
Question Bind brightness/volume and other special Fn keys in a tty
I am running Debian stretch on a Lenovo laptop with only a window manager (i.e. no desktop). Out of the box, this configuration of Debian ignores the keys with special Fn functions, such as volume up, mute microphone, brightness up, etc. To solve the problem under X, I bound these special keys u...
(more)
almost 2 years ago
Answer A: Capture separate _and_ combined stdout/stderr
Each file descriptor can only point to a single file. File descriptors can be duplicated such that both point to a single file, but a file descriptor cannot point to two files. Hence, you have to decide whether stdout points to out.txt or to both.txt, and similarly with stderr. Of course, y...
(more)
almost 2 years ago
Answer A: Scalable fonts are not loaded into the X server database
Further digging led me to this post on the FreeBSD forum, in which a user says that > The functionality of the freetype module is contained in the libXfont library. And sure enough I managed to get scalable XLFDs by enabling the truetype USE flag for libXfont2 and recompiling it. The effect ...
(more)
about 2 years ago
Question Scalable fonts are not loaded into the X server database
I have some old X11 applications complain that they cannot find a ISO8859-2 font. So I executed grep -r 8859-2 /usr/share/fonts/ and, to my surprise, found many matches, for example ``` ==> /usr/share/fonts/dejavu/fonts.dir /usr/share/fonts/unifont/fonts.dir <== unifont.ttf -misc-unif...
(more)
about 2 years ago
Answer A: Disable transient symbols for compose and dead keys in GTK programs
This is originally Ibus' (an input method) behavior. It provides some facilities to extend the basic "input by typing". Examples: - `Ctrl+Shift+U` for hex Unicode input. - `Ctrl+.` for emoji selector. Now, to complicate matters, GTK has its own input method too, which is inspired in Ibus, an...
(more)
over 2 years ago
Question Disable transient symbols for compose and dead keys in GTK programs
An article in the GTK blog explains the situation very well, but here is my go at it. In my keyboard layout, accents are handled as dead keys, so to insert "ë", first I type `¨` and then `e`. Nothing happens on the screen until the very last step, at which point `ë` is inserted. That, however, ...
(more)
over 2 years ago
Answer A: What does capital T mean in the output of 'ls -l'?
The reason why you don't find this in `man ls` is that the GNU project (that developed Coreutils) usually provides the complete documentation of its components not in classic manual pages, but in so called Info documents (for more context, see Unix & Linux: What is GNU Info for?), and that is indeed ...
(more)
over 2 years ago
Answer A: I deselected a package and changed my mind. How to select it without re-emerging?
From Selected-packages set (Portage) — Adding an atom without recompilation (yes, embarrassingly the very link in the question, the word "atom" put me off...), emerge --noreplace xournalpp ``` --noreplace, -n Skips the packages specified on the command-line that have alread...
(more)
over 2 years ago
Question I deselected a package and changed my mind. How to select it without re-emerging?
I executed emerge --deselect xournalpp , which means "I don't need the `xournalpp` package anymore", so it can be removed by a future `--depclean` action in case Portage figures `xournalpp` is not a dependency of any other installed package. Hence the aforementioned command does not unin...
(more)
over 2 years ago
Question Should we merge with Power Users?
To increase the activity of the site (one of the main concerns related to making Codidact grow), I suggested merging Linux Systems with Power Users on Meta. Do you agree or disagree with merging?
(more)
over 2 years ago
Answer A: Quickly increase virtual console ("TTY") font size on the fly
To double the font size: `setfont -d`. To revert to the default font: `setfont`. From the manual page: ``` -d Doubles the size of the font, by replicating all of its pixels vertically and horizontally. This is suitable for high pixel density (e.g. "4k") displays on whic...
(more)
over 2 years ago
Question Quickly increase virtual console ("TTY") font size on the fly
I just want to "zoom in/out" in the text console, is there a straightforward command to do that? I have found various sources (1, 2, 3) that either suggest permanent changes (e.g. modifying configuration files such as `/etc/default/console-setup`) or complicated procedures such as looking for avai...
(more)
over 2 years ago
Answer A: Why is Pause/Break key is immediately released? Can that be fixed?
From Wikipedia: Break key: > The Pause key is different from all other keys in that it sends no scancodes at all on release in PS/2 modes 1 or 2, so it is impossible to determine whether this key is being held down with older devices. In PS/2 mode 3 or USB HID mode, there is a release scancode, so...
(more)
over 2 years ago
Question Why is Pause/Break key is immediately released? Can that be fixed?
Since the Pause key is useless, I tried to map it to a modifier key. What is straightforward for other keys turned out not to work fine for Pause. By inspecting the output of `xev -event keyboard | grep -E '^Key|state'` for holding Pause and then pressing s, ``` KeyPress event, serial 28, synt...
(more)
over 2 years ago
Question Make Less use a normal view instead of hexdump view
Less does not display data files normally, but if it were some sort of Xxd. ``` $ bash --norc $ export LESS= $ file -i /var/log/lastlog /var/log/lastlog: application/octet-stream; charset=binary $ less -EX /var/log/lastlog 00000000 a3 4c d2 60 74 74 79 32 00 00 00 00 00 00 00 00 |.L.`tty2...
(more)
over 2 years ago
Answer A: In a bash shell script, how to filter the command line argument list to unique entries only, for processing each?
Bash Here Bash's associative arrays come handy. The idea is to put every argument as a key in a separate array, and then only process arguments that are not keys to that array. ```bash #!/bin/bash declare -A processed #Declare that "processed" is an associative array for e in "$@"; do #...
(more)
over 2 years ago
Answer A: How to figure out the licenses of files installed from packages?
The Debian Administrator's Handbook: The Inner Workings of the Debian Project: > Documentation for each package is stored in /usr/share/doc/package/. (...) The copyright file includes information about the authors and the license covering the software.
(more)
over 2 years ago
Answer A: With a V4L2-compatible webcam, how to see its video feed for the purpose of adjusting aiming?
I routinely use MPV for that. mpv --profile=low-latency --untimed av://v4l2:/dev/video0 You may need to try other devices, as listed by `ls /dev/video`. Thanks to Canina for suggesting the two --options, necessary to avoid latency. I also found Arch Linux: Webcam setup: Applications,...
(more)
over 2 years ago
Answer A: What are IUSE flags?
IUSE flags are simply the list of available and default USE flags for a package as defined by the Ebuild maintainer. Definition IUSE is defined from a developer's perspective in `man 5 ebuild` (not `man ebuild`!): >IUSE > > This should be a list of any and all USE flags that are l...
(more)
over 2 years ago
Question What are IUSE flags?
Every Gentoo user knows USE flags. Occasionally I stumble upon IUSE flags, for example, `man emerge` mention them in the description of an option: > --newuse, -N > > ... > > USE flags may be toggled by your profile as well as your USE and package.use settings. If you would like to skip rebui...
(more)
over 2 years ago
Question What does `emerge --update --newuse --deep @world` have to do with package removal?
In Debian-based distributions, one can update the system with `apt upgrade` and cleanup unused dependencies with `apt autoremove`. Period. On Gentoo that is apparently not as straightforward. From Gentoo Cheat Sheet: Package removal: > The recommended way to remove a package is by using `em...
(more)
over 2 years ago
Question Why does the file command fail to recognize non-text files as such?
POSIX defines - Text file as > A file that contains characters organized into zero or more lines. The lines do not contain NUL characters and none can exceed {LINEMAX} bytes in length, including the \ character. - Line as > A sequence of zero or more non- \ characters plus a ter...
(more)
almost 3 years ago