"Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." --- Linus Torvalds
-
Open file at
etc/apt/sources.list
-
Paste the repository source, which in my case is,
deb http://ftp.de.debian.org/debian stretch main non-free
Change 'ftp.de.debain.org/debian' to required mirror
-
Do
sudo apt-get install firmware-iwlwifi
andsudo apt-get install firmware-realtek
-
Restart the computer.
- Gain superuser access
- Run
visudo
- Append the file with
username ALL=(ALL) ALL
- Close the terminal and you are get to go.
You can install it using dpkg
$ sudo dpkg -i /path/to/deb/file
followed by
$ sudo apt-get install -f
You can install it using apt
$ sudo apt install ./name.deb
or
$ sudo apt install /path/to/package/name.deb
Install gdebi
and open your .deb file using it (Right-click -> Open with). It will install your .deb package with all its dependencies.
Why to use sudo apt-get install -f
after sudo dpkg -i /path/to/deb/file
(mentioned in first method).
-f, --fix-broken
This attempt to correct a system with broken dependencies in place. When dpkg install a package and package dependency is not satisfied, it leaves the package in unconfigured state and that package is considered as broken.
sudo apt-get install -f
Install dirmngr
using
$ sudo apt-get install dirmngr
- Installed
lightdm
andsudo dpkg--reconfigure lightdm
.- Not working. Login as lightdm but after that gdm3 starts action.
- Removed lightdm and later fixed the issue
- Now using lightdm and i3wm
- Trying KDE
- KDE sucks my RAM. Also very bulky and buggy.
- Not recommended as a DE.
- Using
i3-wm
with extra plugins.- Fell in ❤️.
- Never going to change it.
# Disable at startup
$ sudo systemctl disable bluetooth.service
# Check status at next restart
$ sudo systemctl status bluetooth.service
# Renable at startup
$ sudo systemctl enable bluetooth.service
Tricks
systemd-analyze
to instrument the boot.systemctl
to exclude processes from boot.bootchart
is still useful for drawing pretty graphs- Don’t enable services you don’t need.
Links : 4-second boot / Systemd Optimisation
What did I do?
-
Reduce boot loader delay.
$ sudo nano /etc/default/grub
Set GRUB_TIMEOUT = 0
$ sudo update-grub
-
Looking at systemd.
-
Analyse the boot timing.
$ systemd-analyze plot > plot.svg # Gives a Damn Beautiful Graph
-
For stopping
NetworkManager-wait-online
service$ sudo systemctl disable NetworkManager-wait-online.service Removed /etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service.
-
Change Time syncing.
$ sudo systemctl disable systemd-timesyncd.service $ sudo apt-get install chrony $ sudo systemctl enable chronyd
-
First create a rsa key using ssh-keygen
and add it to the github account
Then, you are all set!!
For the already existing repository using HTTP protocol use the below one liner Only for github users!!
$ git remote set-url origin $(git remote show origin | grep "Fetch URL" | sed 's/ *Fetch URL: //' | sed 's/https:\/\/github.com\//[email protected]:/')
This is bash script to check the given directory is in your PATH. In this case, we are checking ~/bin
is a PATH variable.
[[ ":$PATH:" == *":$HOME/bin:"* || ":$PATH:" == *":~/bin:"* ]] && echo "~/bin is in PATH" || echo "~/bin is not in PATH"
If not, we can add it to the PATH by the following script.
$ echo 'export PATH=~/bin:$PATH' >> ~/.bashrc
$ source ~/.bashrc
xbacklight
is a utility to control the brightness. (By function keys or similar binding keys)
Note : xbacklight
only works in Intel. Other drivers are not supported.
If you get No outputs have backlight property
error, it is because xbacklight
does not choose the right directory in /sys/class/backlight
.
The following steps are used to configure xbacklight properly.
-
Check backlight directory:
ls /sys/class/backlight
. In my case, I haveintel_backlight
-
Run
xrandr --verbose
to get the identifier for the backlight. Mine happened to be0x42
-
Check for
xorg.conf
in/etc/X11/
. I didn't find one and made my own with the above information.Section "Device" Identifier "0x42" Driver "intel" Option "Backlight" "intel_backlight" EndSection
-
Reboot the system.
For Other drivers, use packages like brightnessctl
or light
To check whether you have X11 or Wayland use,
loginctl show-session $(loginctl | grep $(whoami) |awk '{print $1}') -p Type
This was a issue I faced in the Debian i3wm setup and it can be solved by the following steps. (Assuming the system have lightdm
as Display Manager and libinput
as the input driver.)
-
Make a file named
40-libinput.conf
in/etc/X11/xorg.conf.d
directory -
Paste the below content to it.
-
Section "InputClass" Identifier "libinput touchpad catchall" MatchIsTouchpad "on" MatchDevicePath "/dev/input/event*" Driver "libinput" Option "Tapping" "on" EndSection
-
-
Restart the system by,
-
systemctl restart lightdm
-
Didn't have time to go got pure Arch, so tried Manjaro (i3 community edition) and it is amazing.
Most uses(like me) don't even properly setup the locale configuration. To set locale do any of the following:
- Using Manjaro Settings Manager
localetcl
by systemd- (Or go full nerdy by) manually editing
/etc/locale.gen
and runlocale-gen
and then setting locale with/etc/locale.conf
file.