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

Dashboard
Notifications
Mark all as read

Activity for Quasímodo‭

Type On... Excerpt Status Date
Comment Post #284642 @#53305 I use my laptop's keyboard — but since [I read that touchpads may be USB or PS/2](https://wiki.gentoo.org/wiki/Synaptics#Installation), I reckon a laptop's keyboard might also be so?
(more)
5 days ago
Edit Post #284672 Post edited:
5 days ago
Comment Post #285301 I think looking at `$0` is a simple and portable way to figure out what shell one is running. Since it may be, for example, `zsh` and `bash`, but also `/bin/bash` (i.e., including the directory component), pattern matching with a `case` statement would be the way to go, resulting in a POSIX compliant...
(more)
about 1 month ago
Edit Post #285278 Post edited:
Add the proper error message; Add link to crosspost; Spelling/Punctuation.
about 1 month ago
Comment Post #285278 Note that Bash also supports the ** construct. Look for `globstar` in the manual. You could then adapt your statements to work in both shells and do away with the if-elif. Unless you really don't want a recursive traversal under `.functions.d` on Bash, only in Zsh (that's what the script is trying to...
(more)
about 1 month ago
Comment Post #285144 @#53003 True. "Unix-like systems" or "(almost) POSIX systems" would be more appropriate.
(more)
about 1 month ago
Comment Post #285187 A retractation: I'm no native speaker and thought the word "cruft" meant something different, not "trash, debris, etc." Luckily I just looked it up on time to apologize and retract it. I had no intention whatsoever to abase those questions nor to demoralize those who asked them.
(more)
about 1 month ago
Comment Post #285187 Yup, I also feel that way towards Windows (well, non-free software in general) and Smartphones, so I would also prefer never to see those questions. However, at the moment we would receive about a question per day if we merged, and at that rate wading through the cruft wouldn't be hard in the slighte...
(more)
about 1 month ago
Edit Post #285164 Initial revision about 1 month 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)
about 1 month ago
Edit Post #285156 Initial revision about 1 month 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)
about 1 month ago
Edit Post #285144 Initial revision about 1 month 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)
about 1 month ago
Comment Post #284959 Thank you for your kind words. It would be an honour to serve Codidact. I won't be voting on this particular answer so that we can more accurately measure what people think; In case they signal acceptance, I accept the role and hope to live up to the community's expectations.
(more)
about 2 months ago
Comment Post #284956 I found a mention of the error message in https://github.com/rbenv/ruby-build/issues/1353#issuecomment-791727836, perhaps it will be useful.
(more)
about 2 months ago
Edit Post #284821 Initial revision 2 months 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)
2 months ago
Edit Post #284820 Initial revision 2 months 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)
2 months ago
Edit Post #284642 Post edited:
3 months ago
Edit Post #284672 Initial revision 3 months ago
Answer A: Why is Pause/Break key is immediately released? Can that be fixed?
In Keyboard scancodes, Andries E. Brouwer says: > The latter [Pause/Break key] produces scancode sequence e1 1d 45 e1 9d c5 when pressed (without modifier) and nothing at all upon release. Since that is exactly what I get from `showkey -s` I guess it must be true and thus Pause/Break really can...
(more)
3 months ago
Edit Post #284642 Post edited:
3 months ago
Comment Post #284642 @#8049 Since `showkey` only prints scan codes, it shouldn't matter if the key is made a modifier or not. It's interesting that you cannot reproduce it. I tried it on a spare old computer and it was the same behavior.
(more)
3 months ago
Edit Post #284642 Initial revision 3 months 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)
3 months ago
Suggested Edit Post #282978 Suggested edit:
Add a kernel tag
(more)
pending 3 months ago
Comment Post #284594 @#8056 Yes, Gentoo's `lesspipe` also looks for `~/.lessfilter`. Very bad taste if you ask me...
(more)
3 months ago
Edit Post #284583 Post edited:
Show environment variables; Explain why the issue may not be reproducible for some people.
3 months ago
Comment Post #284583 @#8049 Thanks, indeed the problem was a different environment variable: `LESSOPEN=|lesspipe %s`. So either deleting that variable or using `-L` solves the problem. Would you like to write an answer?
(more)
3 months ago
Comment Post #284583 @#53503 Please see edit.
(more)
3 months ago
Edit Post #284583 Post edited:
The problem is reproducible in a clean environment
3 months ago
Edit Post #284583 Initial revision 3 months 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)
3 months ago
Edit Post #284389 Post edited:
Cleanup comments in first script; Add POSIX shell alternative.
4 months ago
Edit Post #284389 Initial revision 4 months 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)
4 months ago
Comment Post #284250 Point 2 is moot: You can put the Sed script in a file and then the shell doesn't get in your way, all quotes are literal. Can you clarify point 1? Sed does allow multi-line scripts and can even do multi-line operations.
(more)
4 months ago
Edit Post #284251 Initial revision 4 months 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)
4 months ago
Comment Post #283816 @#8049 That is great! I never bothered to find out how to get rid of the latency. Also that led me to find an Arch Linux article with some alternatives (answer edited with that).
(more)
5 months ago
Edit Post #283816 Post edited:
5 months ago
Edit Post #283816 Initial revision 5 months 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)
5 months ago
Comment Post #283657 Are the dollar signs part of the copied selection? If not, does it not work if you paste it right away in the terminal? In most cases, each newline character should trigger the execution of the line as a command.
(more)
5 months ago
Edit Post #283521 Post edited:
Edit title and remove tag
5 months ago
Edit Post #283522 Initial revision 5 months 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)
5 months ago
Edit Post #283521 Initial revision 5 months 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)
5 months ago
Comment Post #281869 How would unatended-upgrades package figure out that you, as a person, has access to root account? Also, from the `sudoers` file + (if needed) groups info it could figure whether the logged user has full, partial or no sudo rights, but it could hardly figure out whether a user actually has the sudo p...
(more)
5 months ago
Edit Post #283088 Post edited:
Mention manual page; Add tag.
6 months ago
Edit Post #283088 Initial revision 6 months 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)
6 months ago
Comment Post #282695 The question describes that the GTK theme changes. This may be caused by the GNOME desktop environment. If you switch to a non-GNOME environment (no need to uninstall it, rather just don't start it), you might narrow down whether GNOME is to blame by looking at programs that use GTK, such as Firefox....
(more)
6 months ago
Comment Post #282695 It's hard to tell what's going wrong. Can reproduce that behavior in a small and simple window manager (e.g. Dwm or Cwm)? GNOME is too pervasive for tracking things down...
(more)
6 months ago
Edit Post #282408 Post edited:
A firmware tag should be appropriate.
7 months ago
Edit Post #282411 Post edited:
Some users may already have configured sudoers, so let them choose to use sudo or su.
7 months ago
Suggested Edit Post #282411 Suggested edit:
Some users may already have configured sudoers, so let them choose to use sudo or su.
(more)
helpful 7 months ago
Comment Post #282409 Great answer. I'm just wondering about the necessity of editing the modules files (see, for example, [Modules – Debian Wiki](https://wiki.debian.org/Modules#Automatic_loading_of_modules)). In my Debian system the wireless card firmware is auto-loaded at boot and all I ever had to do was to install th...
(more)
7 months ago
Suggested Edit Post #282408 Suggested edit:
A firmware tag should be appropriate.
(more)
helpful 7 months ago
Comment Post #282372 If it contains a non-line, it is not a text file. See for example a more extended answer in [What conditions must be met for a file to be a text file as defined by POSIX?](https://unix.stackexchange.com/questions/446237/what-conditions-must-be-met-for-a-file-to-be-a-text-file-as-defined-by-posix). Al...
(more)
7 months ago
Comment Post #281930 I don't really ask for a Platonic category of file, but for the POSIX category. Most text-processing utilities (sed, grep, awk, ...) assume text files in the POSIX specification. To keep my applications portable, I try to conform to POSIX. But then there are many users/editors that, for example, don'...
(more)
8 months ago
Edit Post #281930 Post edited:
Fixed misplaced hyphenation
8 months ago
Suggested Edit Post #281930 Suggested edit:
Fixed misplaced hyphenation
(more)
helpful 8 months ago
Comment Post #281930 Indeed, I had only read `man 1p file`. To be honest I don't see how the information you bring explains the matter. Note that none of the files are reported as UTF-8, but instead the first three as "ASCII", the next two as "non-ISO extended-ASCII" and the last as simply "data". An important question: ...
(more)
8 months ago
Comment Post #281929 @celtschk Well, `file` is [POSIX specified](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/file.html), so I would suppose it conformed to POSIX idea of what a text-file is.
(more)
8 months ago
Comment Post #281929 @Moshi But then any kind of file would be a text-file, since you could say it contained zero lines. Even a file with a NUL would be a text-file. Instead, I interpret that if the file contains non-lines, then it is not a text-file. In that sense, an empty text file would be the only case for which "ze...
(more)
8 months ago
Edit Post #281929 Post edited:
Octal 200 cannot be the first byte of a character
8 months ago
Comment Post #281929 @Moshi True, I said 0x80 was straightforwardly invalid but it is not. Still, it cannot be the first byte of a valid character. It forcefully follows that neither file 4 nor file 5 are newline terminated or that they have an invalid character. File 3 is also not newline terminated (even in ASCII encod...
(more)
8 months ago
Edit Post #281929 Post edited:
Fix link that pointed to a irrelevant section; address Moshi's comment explaining why I think files 3 to 6 are non-text files.
8 months ago
Edit Post #281929 Initial revision 8 months 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)
8 months ago