Home / Personal Devieces
Note: Unless specified, Debian/Ubuntu is assumed.
Installed such that its run by logged in users (no system service).
Using v3 beta.
tar xvf companion-linux-x64*
sudo mv companion-64* /opt/companion
sudo chown -R root:root /opt/companion
sudo groupadd -r companion
sudo usermod -aG companion $USER
newgrp companion
lsusb | grep -i elgato
(look for ID <idVendor>:<idProduct>
)/etc/udev/rules.d/50-companion.rules
, containing the udev rules snippet below, with updated idVendor
and idProduct
values.sudo udevadm control --reload-rules
hidraw
devices has the companion
group: ls -l /dev/hidraw*
/opt/companion/companion-launcher
127.0.0.1
only.localhost:8000
).exec --no-startup-id /opt/companion/companion-launcher >>$HOME/.log/companion.txt 2>>$HOME/.log/companion.err
(create $HOME/.log
)**Udev rules (50-companion.rules
):
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="008f", MODE="0660", GROUP="companion"
KERNEL=="hidraw*", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="008f", MODE="0660", GROUP="companion"
Warning: Don’t use this. The fan controller IDs may change on every reboot which breaks the config.
lm-sensors
.sensors-detect
.
/etc/modules
.kmod
service to reload the modules./etc/modules
with modprobe -r <module>
to see if the error goes away. If so, remove it from the modules file.fancontrol
.gnuplot
if you want pwmconfig
to generate graphical plots.pwmconfig
.
/etc/fancontrol
)./etc/fancontrol
.interval
to around 2 seconds.fancontrol
service.about:config
.middlemouse.paste = false
general.autoScroll = true
media.hardwaremediakeys.enabled = false
IDN_show_punycode = true
apt install $(check-language-support)
For Manjaro. Assumes CUPS is already installed.
pacman -Sy smbclient cifs-utils
/etc/cups/printers.conf
, set AuthInfoRequired username,password
.smb://
schema. It should prompt for authentication when printing stuff.~/.gitconfig
/etc/X11/xorg.conf
.See my Arch setup with i3.
bindsym
statements for key symbols (a
etc.) or bindcode
statements for physical button numbers.exec <executable> [args]
to run an application. Use exec --no-startup-id
to avoid startup notifications (“loading” cursor etc.), for programs that don’t support that (the “loading” cursor doesn’t go away).Assuming default keybinds.
~/.config/i3/config
Mod+Shift+E
Mod+Shift+R
Mod+Enter
Mod+D
Mod+Shift+Q
Mod+ArrowKey
Mod+E
Mod+S
Mod+W
Mod+<1-9>
Mod+Shift+<1-9>
Arch Linux:
sudo pacman -S kdenlive breeze
GUI for configuring gaming mice.
piper
.A modern audio server replacement for PulseAudio, JACK and ALSA. Comes with adapters for compatibility with existing applications and such that existing tools can be used.
pavucontrol
alsamixer -c <card-id>
pactl info
pactl list cards
pactl list sources
pactl list sinks
cat /proc/asound/UMC1820/stream0
(for card UMC1820)See the Arch (i3) or Kubuntu config notes.
cat /proc/asound/UMC1820/stream0
(for card UMC1820)/etc/pipewire/pipewire.conf.d/10-clock-rate.conf
containing the snippet below, with your chosen sample rate.systemctl --user restart pipewire.service
Example contents of /etc/pipewire/pipewire.conf.d/10-clock-rate.conf
:
context.properties = {
default.clock.rate = 96000
}
Disabling ACP for an ALSA card means that all of its inputs and outputs will be provided as raw channels without surround mixing etc. The same result (seemingly) may also be achieved by setting the card profile to “pro audio” in e.g. pavucontrol, although the pro audio profile seems to mess up my sink/source routing.
/etc/pipewire/media-session.d/alsa-monitor.conf
, add the snippet below in the rules
list.
device.vendor.id
should be set to the vendor ID of the USB device. Use lsusb
to find it. Behringer typically uses 1397
.systemctl --user restart pipewire.service
Snippet for /etc/pipewire/media-session.d/alsa-monitor.conf
:
# Add into the existing section below
# rules = [
# ...
{
matches= [
{
# Behringer
device.name = "~alsa_card.*"
device.vendor.id = "1397"
}
]
actions = {
update-props = {
api.alsa.use-acp = false
}
}
}
# ]
Split e.g. an 8-channel output device into four stereo devices. Requires PipeWire v3.27 or newer.
/etc/pipewire/media-session.d/media-session.conf
, add the snippet below in the context.modules
list.
pactl list sinks
or pactl list sources
.systemctl --user restart pipewire.service
Snippets for /etc/pipewire/media-session.d/media-session.conf
:
# Add into the existing section below
# context.modules = [
# ...
# Virtual output example
{ name = libpipewire-module-loopback
args = {
node.name = "BEHRINGER_UMC1820_0102"
node.description = "Behringer UMC1820 (1-2)"
capture.props = {
media.class = "Audio/Sink"
audio.position = [ FL FR ]
}
playback.props = {
audio.position = [ AUX0 AUX1 ]
node.target = "alsa_output.usb-BEHRINGER_UMC1820_B572BD9B-00.pro-output-0"
stream.dont-remix = true
node.passive = true
}
}
}
# Virtual input example
# TODO
#]
Terminal > Features
, activate Disable application keypad mode
.Window > Appearance
, change font to Consolas, regular, size 10.Window > Colours
, set all ANSI non-bold colors to the same as the bold ones.screen /dev/ttyUSB0 38400,-crtscts
(38400 baud, no flow control)Ctrl+A, \
Ctrl+H
instead of backspace.Do SMART Summary Error Log scan on startup
since it may cause the PC to freeze.
/NOSMARTSCAN
.ssh-keygen -t rsa -b 2048
ssh-keygen -t ed25519
ssh-keygen -t rsa -b 2048 -C "yolo" -f ~/.ssh/id_rsa -N ""
~/.ssh/config
Note: Since Steam requires 32-bit (i386) variants of certain NVIDIA packages, and NVIDIA not releasing i386 variants any more as of driver version 465 ish, any normal installation is impossible. The Ubuntu dudes have a PPA containing unofficial i386 variants for the relevant NVIDIA driver packages, but it conflicts with official CUDA packages, which is not nice if you need CUDA.
flatpak run com.valvesoftware.Steam --reset
(if using Flatpak) to reset the user config and then lanuch it normally afterward.~/.local/share/Steam/steamapps/compatdata/<some_id>/pfx/drive_c/users/steamuser/
~/.var/app/com.valvesoftware.Steam/.steamlib/steamapps/compatdata/374320/pfx/drive_c/users/steamuser/
~/.tmux.conf
/etc/tmux.conf
~/.tmux.conf
, set set-option -g default-shell /bin/zsh
(for ZSH).~/.zshrc
, set export TERM=xterm-256color
.tmux new [-s <name>] [-d]
-d
to start detached.Ctrl+B D
tmux ls
tmux attach [-d] [-t <session>]
-d
to detach any other attached clients.Ctrl+B :<command> Enter
Ctrl+B "
Ctrl+B %
Ctrl+B <arrow>
Ctrl+B Q
Ctrl+B X
(or exit normally)tmux kill-session -t <session>
tmux kill-server
:setw synchronize-panes
/etc/vim/vimrc
/etc/vimrc
~/.vimrc
cat /proc/sys/fs/inotify/max_user_watches
/etc/sysctl.conf
, set fs.inotify.max_user_watches=524288
.sysctl -p
ecmel.vscode-html-css
): Adds better CSS support.eamodio.gitlens
): Show more git info (like authorship) in editor. Can be a bit verbose/annoying.snyk-security.vscode-vuln-cost
): Show inline security vulnerabilities for imports. Only JS support for now.~/.config/Code/User/settings.json
~/.config/Code - OSS/User/settings.json
%APPDATA%\Code\User\settings.json
This is my ZSH setup preference, using Oh-My-ZSH with the Powerlevel10k theme and some recommended font.
apt install zsh
.ttf
files to /usr/share/fonts/TTF/
.git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/themes/powerlevel10k
~/.zshrc
, set ZSH_THEME="powerlevel10k/powerlevel10k"
.p10k configure
~/.zprofile
, add: emulate sh -c "source /etc/profile"
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
zsh-syntax-highlighting
it to plugins
in ~/.zshrc
.yay -S fzf-git
source /etc/profile.d/fzf.zsh
~/.zshrc
, set e.g. plugins=(git docker docker-compose golang rust)
.