Docs: Linux
Route DNS requests of a subdomain to a specific DNS server
Using systemd-resolved, you can create a file under /etc/systemd/resolved/resolved.conf.d/
, call it custom.conf
.
In this file, add the following:
[Resolve]
Domains=~<SUBDOMAIN>
DNS=<YOUR_DNS_SERVER_IP>
*.<SUBDOMAIN>
to your server.Restart systemd-resolved service to reload the configuration:
Allow Discord to start without checking updates
Useful when the version in the package manager isn't yet up to date with the latest release. Add the following line in ~/.config/discord/settings.json
:
Too many open files - Failed to initialize inotify
You can do an ad-hoc raise of the max_user_instances
parameter:
- You can put a higher value than 256 if needed
You can also persist this configuration by adding a configuration file under /etc/sysctl.d/
, call it custom.conf
with the following line:
Force dark mode on GTK-3 applications in Gnome DE
Add the following line in your ~/.config/gtk-3.0/settings.ini
file (or create it if it doesn't exist):
Select power usage profiles using TuneD
You can verify if TuneD is running via the command
You can check the available profiles (and the current one) in TuneD by running the command
To set a profile, use the following command (will require admin privilege)
Syscalls tracing
Note: strace
prints its output to stderr to avoid mixing it with the output of the traced command, we need to forward that output to stdout
- Trace filesystem syscalls, replacing all file descriptors by file paths and grepping: