Follow the instructions below to activate each of the utilities, services or config files.
The files in the global folder apply to all Debian distros and hardware.
There are additional hardware-specific or distro-specific directories.
- You may find additional functionalities in the
.bashrc
file. You can add them to your own~/.bashrc
. - Run source .bashrc or open a new terminal to make the changes effective.
This resolves the issue with Windows-Linux dual boot where there will be a time zone discrepancy between Windows and Linux everytime you boot from one OS vs. the other.
Windows by default stores time zones in RTC (motherboard's Real-Time Clock) in local time whereas Linux stores them in UTC. You can change the settings of either operating system to make their behavior similar. But the process in Windows is more complicated and potentially causes operating issues so the best course of action is to change this setting in Linux.
Here are the instructions to store RTC time in local time zone on Linux.
- To check the default settings use
timedatectl
command and check forRTC in local TZ = no
which should be the default value. - To set the behavior to local time zone use
timedatectl set-local-rtc 1 --adjust-system-clock
and to revert it usetimedatectl set-local-rtc 0 --adjust-system-clock
.
If your distribution does not automatically handle initialization of ssh keys, you need to create a service to accomplish that.
The following sets up a service to initialize your ssh agents and add the keys at startup.
- Copy the
ssh-agent.service
file to~/.config/systemd/user
. If the directory does not exist, create it. - Run The following:
systemctl --user daemon-reload
systemctl --user enable ssh-agent
systemctl --user start ssh-agent
- Now you can add your ssh keys to the agent using
ssh-add
. - If after following the above the ssh agent is not automatically launching on system reboot:
a. Add the following to the .bashrc
file.
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
b. Restart the service:
systemctl --user restart ssh-agent
For details on the following see this article.
- You can list all of your system batteries through
ls /sys/class/power_supply/
. - For each battery found in above your can see the list of available options by listing that battery. For example for
BAT0
you runls /sys/class/power_supply/BAT0
. - If the main battery has
charge_control_end_threshold
option you can control the charge threshold. - Try it by running
sudo sh -c "echo 85 > /sys/class/power_supply/BAT0/charge_control_end_threshold"
. Here we restrict it to 85%. You may need to changeBAT0
. - Copy
battery-charge-end-threshold.service
to/etc/systemd/system/
. - Run
systemctl enable battery-charge-end-threshold.service
. - Then
systemctl start battery-charge-end-threshold.service
. - You can add a shortcut to
.bashrc
to limit and unlimit the battery charge threshold. See the.bashrc
file for details.