Search
I have a RaspberyPi module, with USB connected to another module computer (as USB host) running Linux. The RasPi is configured as USB ethernet gadget. Once I boot the RasPi, and enter dmesg on th...
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 G...
How do I get the URL of the remote repository that pacman uses to download packages? I know that I can tell pacman which server to use by editing /etc/pacman.d/mirrorlist. But in my case, all of t...
I figured this out myself. I needed to install the cnijfilter2 AUR package. Installing this package provided me with the correct PPD file (which was named canontr4500.pdd). How I figured this out:...
I plan to set up a Raspberry Pi to host some dockerized apps, for it to be accessible to the Internet through a remote proxy, and since I'm no sysadmin, I'm trying to come up with a suitable policy...
As a general rule of thumb, Debian is restrictive about installing during the initial installation what, according to the Debian Free Software Guidelines, is non-free software. That's why the inst...
I have some suggestions for categories, or perhaps tags, here. kernel distribution-specific daemon application server laptop desktop phone/device hardware
When exploring the commands from this answer to my previous question, I found that the ist of packages includes a lot that were automatically installed due to dependencies. Obviously I'm interested...
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 {LINE_MAX} bytes in length, inclu...
I am using Linux Mint 20.3, with Cinnamon as a window manager. I have a folder named .pytest_cache on my Desktop: $ ls -1A | grep '^\.' .pytest_cache I know that if I open a Nemo window, navi...
There are a couple of ways of handling this (on PC's in general. I do use Linux, but not Arch, and this will work). The first way is to statically assign an IP address. While you SHOULD be able...
Authentication events such as logging in are ultimately handled by PAM, the Linux Pluggable Authentication Modules project. PAM is very flexible and different Linux distributions will ship with dif...
After a force shutdown on Ubuntu 22.04, installed on a Lenovo Legion 5, the OS seems to have lost its ability to recognize the built-in touchpad or to connect to the internet. For the backstory......
By digging further into the details of xdg-open, I stumbled upon this page in the Arch wiki. There it states that xdg-open will delegate the task of opening a file to the handler of the Desktop En...
When I enter the login password incorrectly 3 times, my computer locks me out from attempting a login for 10 minutes. How can I increase the number of attempts?
As the keyboard layout wiki suggests, loadkeys only sets the keyboard layout for the current session. In order to persist these changes, the KEYMAP variable must be set in /etc/vconsole.conf. Thi...
I'd forget about messing around with console commands and X configuration files, and just change the keyboard layout in the GNOME Settings panel: You can access this by hitting the Windows key a...
How do I make my computer request a new IP from DHCP? I am using Arch with NetworkManager.
Hello everyone, I am encountering an issue when running pytest in my virtual environment. Although I have installed the required modules in my virtual environment using pip, I am still getting a M...
My thoughts on the matter are clear from the question, but I'll add some example topics that could be covered by this "basics compendium": A "curriculum" of sorts that lists all the basic topics...
I tried to think of some for a while, but couldn't find any good ones. That said, there's plenty of programs I don't know. For reference: $ echo -en "hello\nworld" | tee 1.txt | bat -A ───────┬──...
You can use rename for this. Many distributions package it; for example, it's apt-get install rename in Debian. In normal usage, it is used to apply an arbitrary regular expression substitution ex...
The pager less(1) less(1) is the usual pager nowadays; you would do well learning to use it. It's also used for paging the manual pages, in most systems. The most common operation is searching,...
How to apply a logical not to a shell command, e.g. in a Bash script? So if the command exited with 0 (success) I would like it to be changed to a non-zero value, and if it exited with a non-zero ...
You probably need to change the permissions on the file to make it executable. You can do that with chmod: chmod +x change-xkbmap.sh To verify, try running ./change-xkbmap.sh in a terminal with...