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 GeraldS‭

Type On... Excerpt Status Date
Edit Post #292297 Initial revision 3 months ago
Answer A: What desktop environment am I running?
Login screen Check your login screen. Login Managers often give an option to select between different desktop environments. The last used entry is usually highlighted. login screen from POP!OS showing the session selection menu in the lower right corner It is possible that your Login Manager...
(more)
3 months ago
Edit Post #292296 Post edited:
added a missing "not"
3 months ago
Edit Post #292296 Initial revision 3 months ago
Answer A: Secondary internal disk is mounted as an external disk
Open the Disks application. Select the secondary disk and partition, and in the gears menu click on Edit Mount Options... action menu of a volume in the Disks application Uncheck User Session Defaults and uncheck Show in user interface. Mount options of the volume Optional: select a Mount...
(more)
3 months ago
Edit Post #292258 Initial revision 3 months ago
Answer A: How to view a TLS certificate from the command line?
You can use `openssl`: ``` openssl x509 -in server.crt -text ```
(more)
3 months ago
Edit Post #292257 Initial revision 3 months ago
Answer A: Download a TLS certificate from the command line
You can use `openssl` for that. ``` openssl sclient -connect codidact.com:443 -showcerts codidact.pem ```
(more)
3 months ago
Edit Post #292246 Post edited:
3 months ago
Edit Post #292246 Initial revision 3 months ago
Answer A: Command to display remote certificate information
You can use `openssl` to get the information. It is usually installed by default in every distribution. ```console $ openssl sclient -connect codidact.com:443 -showcerts </dev/null | openssl x509 -text depth=2 C = US, O = Google Trust Services LLC, CN = GTS Root R4 verify return:1 depth=1 C = ...
(more)
3 months ago
Comment Post #292154 Not that I'm aware of.
(more)
4 months ago
Edit Post #292137 Post edited:
fixed a typo
4 months ago
Suggested Edit Post #292137 Suggested edit:
fixed a typo
(more)
helpful 4 months ago
Edit Post #292154 Post edited:
4 months ago
Edit Post #292154 Initial revision 4 months ago
Answer A: Get notified when there are unmerged changes from origin
You can use the pre-commit hook for this. Example `.git/hooks/pre-commit`: ```bash #!/usr/bin/bash git fetch if [ $(git status -sb |grep -c behind) -gt 0 ]; then echo "ERROR: local repo is behind remote!" exit 1 fi ``` Result: ```console gerald@localmachine:/test...
(more)
4 months ago
Comment Post #292114 For systemd timers specifically [`OnBootSec=`](https://www.freedesktop.org/software/systemd/man/latest/systemd.timer.html#OnActiveSec=) looks promising.
(more)
4 months ago
Comment Post #292114 I don't see any systemd way to do that. I added a variant that only runs the sleep command if the uptime is sufficiently low. It's more a dirty hack, but this kind of delay is sort of a hack anyway.
(more)
4 months ago
Edit Post #292114 Post edited:
4 months ago
Edit Post #292115 Initial revision 4 months ago
Answer A: Journalctl - how to restrict search to only certain boot IDs?
Not directly, no. The argument `-b` only accepts a single id and using it multiple times only results in the last one being used. You can however loop easily over the file and get the output of all consecutive `journalctl -b` runs in a single less: ```shell while read BOOTID; do journalctl -b ...
(more)
4 months ago
Edit Post #292114 Initial revision 4 months ago
Answer A: How to delay systemd unit at boot/login?
You can use ExecStartPre= to delay the execution of the systemd unit. Use `systemctl edit myunit.service` to create a drop in file and add the following lines: ```ini [Service] ExecStartPre=/bin/sleep 300 ``` This will delay the execution of the actual `Exec=` line by 5 minutes (300 secon...
(more)
4 months ago
Edit Post #291986 Post edited:
added test results.
4 months ago
Edit Post #291986 Initial revision 4 months ago
Answer A: Efficiently determining disk usage of a folder (without starting from scratch every time)
`ncdu` does that. from `ncdu --help`: ``` -o FILE Export scanned directory to FILE -f FILE Import scanned directory from FILE ``` You can start it with any directory you want, skip unwanted mounts, even delete files and folders directly from insid...
(more)
4 months ago
Edit Post #291811 Initial revision 5 months ago
Answer A: Can you reuse your home directory while distro hopping?
Permission wise you generally shouldn't have problems. Ownership in Linux/Unix uses numerical IDs, and on every major distribution the UIDs for regular users start at 1000, meaning the first user that is created during installation uses the 1000. Having a corresponding group with the same name is als...
(more)
5 months ago
Edit Post #291810 Initial revision 5 months ago
Answer A: Dual booting without rebooting
I don't see any way to implement this. XenDesktop would have been the closest thing I can think of, but it's been discontinued years ago, and it involved VMs, which you don't want. It mapped hardware directly through though and allowed to use single applications from VM A directly inside VM B, whi...
(more)
5 months ago
Edit Post #291808 Post edited:
5 months ago
Edit Post #291808 Post edited:
added Debian, because it's the same there
5 months ago
Edit Post #291808 Initial revision 5 months ago
Answer A: Adding new entries to Grub with alternate kernel parameters
On Ubuntu and Debian (and their derivates) you can use the file `/etc/grub.d/40custom` which is intended exactly for this: Content of /etc/grub.d/40custom: ```bash #!/bin/sh exec tail -n +3 $0 This file provides an easy way to add custom menu entries. Simply type the menu entries you want ...
(more)
5 months ago
Comment Post #291800 Seeing grub alone modifying grub.conf would be the only option. For more handy options it would be necessary to know which distribution you are using.
(more)
5 months ago
Edit Post #291645 Post edited:
6 months ago
Edit Post #291645 Initial revision 6 months ago
Answer A: How to make changes to logind.conf take effect?
The unit does not support reloading, but restarting the service should do the trick. sudo systemctl restart systemd-logind
(more)
6 months ago
Comment Post #291547 For actual keyboards (as a standalone hardware device) you won't find an option. I only encountered these BIOS options on laptops for the integrated keyboard.
(more)
6 months ago
Edit Post #291547 Post edited:
6 months ago
Edit Post #291547 Initial revision 6 months ago
Answer A: Auto-enable FN-toggling for the first N FN keys
I don't think you can. AFAIK the fn key behaviour is implemented in hardware, the OS is not aware if a key has been pressed with or without fn key. You can check for a BIOS setting, but I've never seen one apart from reversing the behaviour for all or no keys.
(more)
6 months ago