176 lines
4 KiB
Text
176 lines
4 KiB
Text
https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/
|
|
|
|
# xinput list
|
|
# xinput list-props <id>
|
|
# xinput set-prop <id> <propId> 1
|
|
|
|
sudo vim /usr/share/X11/xorg.conf.d/40-libinput.conf
|
|
# add to touchpad
|
|
Option "NaturalScrolling" "on"
|
|
Option "ClickMethod" "clickfinger"
|
|
Option "Tapping" "on"
|
|
Option "TappingButtonMap" "lrm"
|
|
Option "Accel Speed" "0.4"
|
|
:w !sudo tee %
|
|
|
|
# cursor
|
|
/usr/share/icons/default
|
|
-> index.theme anpassen
|
|
/home/nikhil/.config/gtk-3.0
|
|
-> settings.ini anpassen
|
|
|
|
https://github.com/chriskempson/base16-shell
|
|
|
|
to fix gitk
|
|
`sudo pacman -S tk`
|
|
|
|
# android phone connection
|
|
mkdir ~/AndroidPhone
|
|
jmtpfs mount ~/AndroidPhone
|
|
|
|
# nvidia shit:
|
|
sudo pacman -S optimus-manager
|
|
sudo systemctl start optimus-manager
|
|
sudo systemctl status optimus-manager
|
|
optimus-manager --switch nvidia
|
|
optimus-manager --set-startup nvidia
|
|
|
|
|
|
https://www.reddit.com/r/i3wm/comments/4efbsm/mouse_speed/
|
|
|
|
add vim to ignored packages:
|
|
sudo vim /etc/pacman.conf
|
|
IgnorePkg = vim-runtime
|
|
|
|
Falls runtime falsch ist:
|
|
export VIMRUNTIME=/usr/share/vim/vim82
|
|
|
|
to add to keychain:
|
|
v after `sudo pacman -S keychain`
|
|
ssh-add ~/.ssh/id_rsa
|
|
|
|
# bluetooth headset
|
|
blueman-applet
|
|
sudo pacman -S pulseaudio-bluetooth
|
|
pulseaudio -k # kills and restarts pulseaudio
|
|
pavucontrol
|
|
|
|
# set up web server
|
|
https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-20-04-de
|
|
# set up ssh for remote server
|
|
ssh-copy-id your-user-name@your-ubuntu-server-name
|
|
|
|
|
|
# cleanup yay and pacman caches
|
|
yay -Sc
|
|
|
|
# protonvpn
|
|
yay -S protonvpn-cli-ng
|
|
sudo protonvpn init
|
|
sudo protonvpn connect
|
|
|
|
# raise wmem_max
|
|
# wmem_max value can be displayed here:
|
|
cat /proc/sys/net/core/wmem_max
|
|
# edit by setting value here:
|
|
vim /etc/sysctl.d/99-sysctl.conf
|
|
# add this value:
|
|
net.core.wmem_max = 8388608
|
|
|
|
|
|
# emoji support
|
|
https://chrpaul.de/2019/07/Enable-colour-emoji-support-on-Manjaro-Linux.html
|
|
|
|
|
|
# rofi styled dependencies
|
|
fonts: https://www.dafont.com/comfortaa.font
|
|
|
|
# get list of all manually installed packages
|
|
https://www.reddit.com/r/ManjaroLinux/comments/fzog8g/get_a_list_of_packages_you_installed_yourself/
|
|
|
|
# update mirrors (can fix slow dl-speed)
|
|
sudo pacman-mirrors -g
|
|
|
|
# get DPI of display -> set it in .Xresources
|
|
xdpyinfo | grep -B2 resolution
|
|
|
|
# get window name
|
|
xprop | grep WM_CLASS
|
|
|
|
# gpg: keyserver receive failed: No name
|
|
gpg --keyserver <server> --recv-key <key>
|
|
|
|
available keyservers:
|
|
keyserver.ubuntu.com 71
|
|
pgp.mit.edu
|
|
keyserver.pgp.com 49
|
|
keys.openpgp.org 38
|
|
|
|
# check dependencies
|
|
pacman -Qi <package>
|
|
|
|
# invalid signatures -> refresh keys
|
|
sudo rm -r /etc/pacman.d/gnupg
|
|
sudo pacman-key --init
|
|
sudo pacman-key --populate archlinux manjaro
|
|
sudo pacman-key --refresh-keys
|
|
sudo pacman -Syu
|
|
# (^ this doesn't work in the jonas strassel case)
|
|
# instead:
|
|
sudo rm -f /var/lib/pacman/sync/manjaro-sway.db.sig
|
|
|
|
# scale image
|
|
convert -scale 3840x2160 source-image.jpg lockscreen.png
|
|
|
|
################
|
|
# how to mount synology NAS
|
|
## enable nfs on NAS side:
|
|
* control panel -> file services -> NFS -> Enable NFS
|
|
* control panel -> file services -> NFS -> pick max protocol
|
|
|
|
## set up rights for user
|
|
control panel -> shared folder -> <pick folder> -> nfs permissions:
|
|
* ip adress of client
|
|
* read/right
|
|
* squash: no mapping
|
|
* async: yes
|
|
* non priv: yes
|
|
* cross mount: yes
|
|
|
|
## mount drive
|
|
example:
|
|
sudo mkdir /media/nas
|
|
sudo mount 192.168.0.95:/volume1/nikhil /media/nas
|
|
################
|
|
|
|
# list pacman/yay package orphans
|
|
pacman -Qdt
|
|
|
|
# restart mouse
|
|
sudo modprobe -r psmouse
|
|
sudo modprobe psmouse
|
|
|
|
# set correct DPI
|
|
## get monitor dpi
|
|
xdpyinfo | grep -B 2 resolution
|
|
## set dpi in .Xresources, then:
|
|
xrdb ~/.Xresources
|
|
|
|
# reload network drivers:
|
|
sudo modprobe -rv ath10k_pci
|
|
sudo modprobe -v ath10k_pci
|
|
|
|
# when facing an upgrade error "files exist in filesystem"
|
|
sudo pacman -Syyu --overwrite "*"
|
|
|
|
# run postman electron with compatibility:
|
|
postman --enable-features=UseOzonePlatform --ozone-platform=wayland
|
|
|
|
# wireguard
|
|
wireguard conf needs to be placed in /etc/wireguard/
|
|
example: /etc/wireguard/wg0.conf -> available as wg0
|
|
|
|
usage:
|
|
sudo wg-quick up wg0
|
|
sudo wg-quick down wg0
|
|
sudo wg show
|