Skip to content

Instantly share code, notes, and snippets.

@Mlocik97
Last active May 14, 2024 08:24
Show Gist options
  • Save Mlocik97/5936fa55d4971f05c6a1c0fb10c4c9bb to your computer and use it in GitHub Desktop.
Save Mlocik97/5936fa55d4971f05c6a1c0fb10c4c9bb to your computer and use it in GitHub Desktop.
Nastavenie Ubuntu 20.04. LTS
sudo ubuntu-drivers autoinstall
sudo fwupdmgr update
# pre tlačiareň ak je potreba
sudo apt-get install printer-driver-gutenprint
# smart logs for SSD:
sudo nvme smart-log /dev/nvme0
# Nastavenie SWAP po vytvorení SWAP partície
sudo gedit /etc/fstab
# u swapu zmeniť path na partíciu (zistíš z programu disky)
# Nastavenie hibernácie
sudo gedit /etc/default/grub
# pridať resume na swap partíciu.
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/nvme0n1p3"
# potom:
sudo update-grub
sudo gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
# obsah:
[Enable hibernate in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Enable hibernate in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes
# Inštalácia Chrome, VS Code, Github Desktop, Discord z .deb
# Gnome extensions: Windows List, Removable Drive menu, Launch new instance By fmuellner, System Action - Hibernate by Kiyvinski or Hibernate Status Button by p91paul
gsettings set org.gnome.desktop.privacy remember-app-usage false
gsettings set org.gnome.shell.extensions.dash-to-dock show-mounts false
gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'
gsettings set org.gnome.DejaDup delete-after 60
gsettings set org.gnome.nautilus.preferences open-folder-on-dnd-hover true
# inštalácia pár nástrojov
sudo apt-get install gnome-shell-extension-manager # can install extensions from extensions.gnome.org
sudo apt-get install gnome-shell-extension-prefs # official
sudo apt-get install ibus-typing-booster
sudo apt-get install gnome-tweaks
sudo apt-get install git
sudo snap install node --classic --channel=18
# Nastavenie klávesnice
sudo gedit /usr/share/X11/xkb/symbols/sk
# copy from https://gist.githubusercontent.com/Mlocik97/c35caa28263228f1d2a732f8e7211ef0/raw/bb1361e236735f7c0b1dbb8a087fb8f9652302de/sk
# po nastavení monitorov v GUI - nastavenie hlavného monitora
sudo cp ~/.config/monitors.xml ~gdm/.config/monitors.xml
sudo chown gdm:gdm ~gdm/.config/monitors.xml
# winehq inštalácia
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo mv winehq.key /usr/share/keyrings/winehq-archive.key
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
sudo mv winehq-jammy.sources /etc/apt/sources.list.d/
sudo apt update
sudo apt install --install-recommends winehq-stable
# inštalácia microk8s https://microk8s.io/
# PulseEffects inštalácia
sudo apt install pavucontrol
sudo apt install pulseeffects
sudo apt install lsp-plugins
# copy files from
# https://gist.github.com/Mlocik97/03c87007af2a4af4ffc2f464e1e2b640 and
# https://gist.github.com/Mlocik97/4e50977f27404fa62bde2d5f44e24581
# Veľa jebnutých aplikácií menia nastavenie microfónu (hlasitosť a zosilnenie) samé ako sa im zachce... zablokovať pomocou:
# If AGC didn't suck so much I wouldn't mind. But it adjusts my internal mic until you can hear the fan like a jet engine no matter what I do. Sigh... –
# - Scott Marlowe
# Apr 29, 2017 at 0:03
# source: https://askubuntu.com/questions/279407/how-to-disable-microphone-from-auto-adjusting-its-input-volume#comment1430948_829996
Edit as root: sudo gedit /usr/share/pulseaudio/alsa-mixer/paths/analog-input-internal-mic.conf
Edit as root: sudo gedit /usr/share/pulseaudio/alsa-mixer/paths/analog-input-mic.conf
Under "[Element Internal Mic Boost]" set "volume" to "zero".
Under "[Element Int Mic Boost]" set "volume" to "zero".
Under "[Element Mic Boost]" set "volume" to "zero".
# source: https://gist.github.com/semihkeskindev/a1d5dc7be08449666102e154e2842f33
# OBS inštalácia
sudo apt install ffmpeg
sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt update
sudo apt install obs-studio
# Krita inštalácia
sudo add-apt-repository ppa:kritalime/ppa
sudo apt-get update
sudo apt-get install krita
sudo apt-get install krita-l10n
# Virt-manager inštalácia
sudo apt-get install virt-manager
sudo systemctl enable libvirtd
sudo usermod -a -G libvirt <user>
sudo gedit /etc/libvirt/qemu.conf
user = "root"
group = "root"
# if I want activate Windows in virtual machine
sudo strings /sys/firmware/acpi/tables/MSDM
#### vo vnútry VM
# nastavenie zdielanej zložky
sudo gedit /etc/fstab
/pripojny_bod /home/<user>/zlozka 9p trans=virtio,rw,_netdev 0 0
# nastavenie libvirtd - grafický tablet vo VM a openGL
# https://wiki.archlinux.org/title/OpenGL - hodnota pre MESA_LOADER_DRIVER_OVERRIDE
# ďalšie nastavenia https://wiki.archlinux.org/title/Intel_GVT-g
# na začiatok
<domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm">
# na koniec medzi </devices> a </domain>
<qemu:commandline>
<qemu:arg value='-device'/>
<qemu:arg value='usb-wacom-tablet'/>
<qemu:env name="MESA_LOADER_DRIVER_OVERRIDE" value="iris"/>
</qemu:commandline>
# ak je Win10 pomalý, vložiť
<features>
<acpi/>
<apic/>
<hyperv>
<relaxed state="on"/>
<vapic state="on"/>
<spinlocks state="on" retries="8191"/>
<vpindex state="on"/>
<synic state="on"/>
<stimer state="on"/>
<reset state="on"/>
</hyperv>
<vmport state="off"/>
<smm state="on"/>
</features>
# užitočné príkazy:
echo "<hash> *<file_name>" | shasum -a 256 --check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment