Search
Try reading the files in /sys/class/dmi/id/, some of them don't require root privileges. For example: board_name board_vendor
Turn off all pop-up messages on your computer screen. This stops notifications from appearing while you work. It helps you focus better on your tasks without interruptions. You can do this by going...
The local port range on my Arch Linux installation is 32768-60999 according to cat /proc/sys/net/ipv4/ip_local_port_range Wikipedia states that this range is "used by many Linux kernels" and th...
Yes. A command stanza on an authorized key works like the ForceCommand on SSHD Config. It runs the one specified command instead of your requested command or interactive session and then closes the...
To invert a command's exit code, use the "!" symbol before the command. For example, "!(command)" will reverse the result, changing success to failure and vice versa.
dmidecode can do this. Here's an example output from my system: # dmidecode --type 2 Getting SMBIOS data from sysfs. SMBIOS 3.1.1 present. Handle 0x0002, DMI type 2, 15 bytes Base Board Info...
Surely there exists a command to print out the system's mother board model? Opening up the chassis is not an option.
Can I restrict myself from certain actions when I SSH in from outside a certain IP range? For instance no sudo? Maybe with ~/.ssh/authorized_keys having a from="!1.2.3.4/26" option with some kind ...
Is it practical to use libostree for user files? Or is it too specialized for tracking an entire OS? I am not familiar with libostree, but sounds like it's "Git for filesystem trees". Seems like t...
I saw another post recommend using Fedora if you want cutting edge features. Is Fedora really a "cutting edge" distro? I am not very familiar with Fedora, I know it's a community counterpart to R...
Consider Ubuntu for ease of use, Fedora for cutting-edge features, Debian for stability, or CentOS for enterprise environments. Each Linux system has its strengths; choose based on your needs for u...
To grow this community, we can engage more people through social media outreach, host events to bring members together, encourage word-of-mouth promotion, create valuable content to attract new mem...
Yup that's the recommended way to do it. Wants adds the network-online.target as a soft dependency.[1] Systemd will try to start it if it isn't up already. Networking should work after this target...
I have a systemd unit that does some stuff on the internet. Sometimes this gets fired at startup. I want to make sure it's delayed until the computer is connected to the internet. In my notes I fo...
Yes, the unit will enter the failed state if either one of those failed. You verify this with a test unit like this: [Unit] Description=ExecStop failure test [Service] ExecStart=echo I might...
Will the overall unit status be failed if either ExecStop or ExecStopPost fail? I would expect it to be so, but the documentation isn't very explicit about it.
Disclaimer: I'm not a Mint (or Ubuntu) user. Using your distro's live image: Do your partition stuff Mount the new root to the live system at /mnt[1] Mount your other partitions to the new ro...
My primary drive is partitioned basically like so (only roughly to scale): / /home junk v v v |xx###############...
What security risks can be introduced this way, and how? Consider the following scenario: A legitimate server listens on some network port. Usually¹ no other process can listen on the por...
With yq: $ yq --output-format yaml . file.json > file.yaml . is a filter which is applied to the data, but since . just stands for the document root, this means that the data is passed throu...
How to convert a json file to yaml? Technically json is already valid yaml, but I'm talking about the characteristic easy-to-read yaml formatting with indentation and minimal quotes.
I'll add a specific, simple way that worked for me: Create some kind of Linux Live USB Boot into Live OS Use lsblk and blkid to figure out which drive exactly is the old and new one. Stay in t...
$ pacman --query --list package-name Or the short version: $ pacman -Ql package-name Source: pacman manpage
How to show a list of files belonging to a package with pacman?
To migrate your main filesystem to a new drive, utilize disk cloning software or backup utilities like Clonezilla or EaseUS Todo Backup for a perfect transfer.