Search
I got 2 small computers running Linux. One acts as ethernet gadget, connected via USB to the other, the host. I set up a bridge, like so: ip link add name br0 type bridge ip link set dev br0 up...
..$ rails s => Booting Puma => Rails 5.2.6 application starting in development => Run `rails server -h` for more startup options A server is already running. Check /home/istiak/ruby/q...
I have used printers before in Arch Linux, but I can't figure out how to print with a Canon PIXMA TR4522 printer. More specifically, I am having trouble finding the correct driver. I have installe...
I think you are working on qpixel. While, working on a big project don't change their version. Just change your ruby version. To change ruby version you have to use rvm rvm install 2.6.6 rvm use ...
For Debian, Manjaro, Arch-Linux (those distributions which doesn’t have service) sudo systemctl enable mysql You can use start instead of enable. Note : Some distributions don't have mysql. Th...
Two things: First, if you create a second keyring, one not named login.keyring, it will not be automatically unlocked on login. Second, GNOME has a policy that they don't let users configure thin...
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 ...
In Bash, you could use the $COLUMNS environment variable to detect the width of your terminal and truncate each line to that length in your sed script. Something like this should work: sed "s/^\(....
Sorry it was a typo, _ instead of -, that caused the problem. I want to have a key combination to alter the keymaps. It worked with one for us and one for hu, but now I want to use one key combina...
This isn't exactly what you asked, but the letters-too-small problem could also be solved by using a larger console font. Here is a decent overview of how to change console fonts, though I don't k...
I think that you have two options. The literal answer would be to pass video= to the kernel. For example, you could pass video=720x400 to run the framebuffer at a 720x400 resolution, assuming that...
Neomutt (and probably Mutt too, but I didn't try) seems to be hiding header fields from email, such as the Message-ID field, and fields that are added by SMTP servers when they receive the message....
Gnome should have a Settings app with a Keyboard shortcut section. Here you can click Add Custom Shortcut which will let you bind any key to any shell-style command. source Unless you are very sur...
From what I can tell, both NixOS and Guix are built around a package manager which, instead of installing package into the "common environment" as is traditional, isolates them to mitigate issues a...
flatpak uninstall --unused currently tells me that there is Nothing unused to uninstall. This seems wrong to me, based on the list of packages I see vs. the "root" packages I explicitly installed p...
Neat idea. In favour. Bottom-up is better I'd propose bottom-up here, instead of grand idea to strive for. I'd cut the list of topics down to real basics. I agree with @KarlKnechtel on Git. I'...
I wasn't there two decades ago when the spec was first being developed, but based on other parts of the spec they're clearly attempting to establish a parallel with /usr/local. The intended minimal...
Say I have some Bash function my-func, that expects a filename and does some processing on the corresponding file. For demonstration purposes, my-func() { cat "$1"; } If I want to apply that fu...
What is a modern and practical way to handle scheduling tasks on a Linux desktop? Modern means basic features should not rely on obscure or convoluted commands and standards Practical means you...
Is this what you want? Edit: Credit to Kamil Maciorowski for catching an unsafe interpolation in the previous draft; it will work for non-adversarial inputs but this newer version is safer and a ...
iterate through all chapter-*.xhtml files in a directory Assuming bash, and assuming that at least one such file exists in the current directory (otherwise adjust the path and/or shopt -s ...
In some cases, when you want to apply a pipeline or a complex command to each file, I find it useful to use while read: find . -type d \ | while read d; do find $d -type f -maxdepth 1 \ | hea...
I'm trying to run a pipeline to update a PDF after every push to the 'main' branch. I want it to be atomic, so it doesn't touch the existing PDF until it has finished, so I need to use sponge(1) (...
How can I search for files on my system? Ideally, I would like to search by various criteria, like date, name, extension, etc.
I was told that an IPv6 link-local address — typically starting with fe80:: — is derived from the interface's MAC address. Here are some instruction on how to do the conversion. But the conversion...