Last active
August 7, 2022 22:10
-
-
Save lextra2/638bd63b1978378021d52549e972ff96 to your computer and use it in GitHub Desktop.
Ubuntu Terminal Commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gstreamer | |
https://askubuntu.com/a/1340796 | |
~/.local/share/Steam/steamapps/common/Proton 7.0/dist/lib/wine/dxvk/d3d9.dll | |
Dxvk location | |
https://www.omgubuntu.co.uk/2022/07/nautilus-admin-open-file-as-root-ubuntu | |
to preview gtk themes: | |
thewidgetfactory / gtk3-widget-factory | |
enter | |
admin: | |
into nautilus (with ctrl+l) to enable root | |
caps lock toggle normal cap | |
edit night light via terminal | |
https://askubuntu.com/questions/1088650/gnome-night-light-setting-from-the-command-line/1088653#1088653 | |
to see file location | |
whereis NAME | |
reset most settings: | |
dconf reset -f / | |
check kernel version | |
uname -r | |
check OpenGL / Mesa version | |
glxinfo | grep "OpenGL version" | |
check GNOME shell version | |
gnome-shell --version | |
check vulkan version | |
vulkaninfo | |
check vaapi version | |
vainfo | |
Driver version: Mesa Gallium driver 19.2.1 for Radeon RX 580 Series (POLARIS10, DRM 3.33.0, 5.3.0-24-generic, LLVM 9.0.0) | |
replace snap calculator with native one | |
sudo snap remove gnome-calculator gnome-characters gnome-logs gnome-system-monitor | |
sudo apt -y install gnome-calculator gnome-characters gnome-logs gnome-system-monitor | |
reboot/power off via terminal | |
sudo poweroff | |
sudo reboot | |
update everything: | |
sudo apt update && sudo apt upgrade && sudo apt autoremove | |
make folder in root (open terminal in location) | |
sudo mkdir NAME | |
copy paste files from a to b (with root) | |
sudo cp -a /SOURCE/. /DESTINATION/ | |
change audio volume via terminal | |
amixer -D pulse sset Master 25% | |
Open PulseAudio config | |
sudo gedit /etc/pulse/default.pa | |
Comment out | |
#load-module module-switch-on-connect | |
to stop changing default playback device to monitor after boot | |
to prevent clipping | |
load-module module-udev-detect ignore_dB=1 | |
to disable mouse acceleration: | |
open gnome-tweaks > go to Keyboard & Mouse > under "Mouse" > acceleration profile > pick "Flat" | |
change mouse sensitivity | |
xinput --list --short | |
HP USB Premium Mouse | |
xinput --list-props "HP USB Premium Mouse" | |
or | |
xinput --list-props 8 | |
xinput --set-prop 8 294 -0.40 | |
use | |
sudo apt-get install ubuntu-restricted-extras | |
to play twitch.tv streams | |
use | |
gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize' | |
to minimize/maximize tab on dock icon left-click | |
in gnome-tweaks go to | |
Keyboard & Mouse > Additional Layout Settings > Caps Lock behavior > caps lock affects all keys | |
to check for all installed packages | |
apt list --installed | |
sudo apt update # Fetches the list of available updates | |
sudo apt upgrade # Installs some updates; does not remove packages | |
sudo apt full-upgrade # Installs updates; may also remove some packages, if needed | |
sudo apt autoremove # Removes any old packages that are no longer needed | |
chmod a+x rpcs3.AppImage | |
./rpcs3.AppImage | |
search with | |
sudo apt-cache search NAME | |
sudo apt-get install NAME | |
sudo apt-get install libxcb-xinerama0 | |
in firefox go to | |
about:config | |
and toggle | |
browser.urlbar.clickSelectsAll | |
show full path in file explorer "Nautilus" | |
download the dconf-editor from the software store | |
open it | |
go to | |
org > gnome > nautilus preference | |
and toggle | |
always_use_location_entry | |
control gpu fan manually | |
sudo gedit /sys/class/drm/card0/device/hwmon/hwmon2/pwm1_enable | |
change 2 (auto) to 1 (manual) | |
sudo gedit /sys/class/drm/card0/device/hwmon/hwmon2/pwm1 | |
change value. 0 to 255 where 2.55 is equal to 1%. | |
or via "tee" | |
echo 1 | sudo tee /sys/class/drm/card0/device/hwmon/hwmon2/pwm1_enable | |
echo 255 | sudo tee /sys/class/drm/card0/device/hwmon/hwmon2/pwm1 | |
more info on this: https://askubuntu.com/a/783021 | |
remove software | |
sudo apt remove NAME | |
remove software and files | |
sudo apt purge NAME | |
remove PPA | |
sudo add-apt-repository -r ppa:NAME | |
enable freeSync? | |
sudo gedit /usr/share/X11/xorg.conf.d/10-amdgpu.conf | |
replace everything with this: | |
Section "OutputClass" | |
Identifier "AMDgpu" | |
MatchDriver "amdgpu" | |
Driver "amdgpu" | |
Option "DRI" "3" | |
Option "VariableRefresh" "true" | |
Option "TearFree" "true" | |
EndSection | |
check after reboot with: | |
xrandr --props | |
Reddit Enhance | |
Page Navigator > Off | |
Never Ending Reddit > Off | |
Track Vote Weight > Off | |
Browse by Wheel > Off | |
Message Menu > Off | |
Synaptic Package Manager | |
to check for packages via gui | |
display(in terminal) the 10 largest folders | |
du -Sh | sort -rh | head -10 | |
to edit audio settings (for buffer, sample rate and bit depth) | |
sudo gedit /etc/pulse/daemon.conf | |
resample-method = speex-float-10 | |
default-sample-format = s16le | |
default-sample-rate = 48000 | |
alternate-sample-rate = 44100 | |
default-sample-channels = 2 | |
default-channel-map = front-left,front-right | |
default-fragments = 4 | |
default-fragment-size-msec = 25 | |
fragments * fragment-size = 100ms (in this case) | |
restart pulseaudio with | |
pulseaudio -k | |
and check for applied settings with | |
pacmd list-sinks | |
more info | |
https://wiki.archlinux.org/index.php/PulseAudio/Troubleshooting#Audio_quality | |
/home/john/.config/mpv | |
change system monitor polling rate to lowest possible for each tab |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://old.reddit.com/r/linux_gaming/comments/iv2gyv/amd_laptop_gpu_overclocking_options_for_maximum/ | |
https://www.computerbase.de/forum/threads/fedora-32-system-neu-aufstellen.1939903/#post-24015041 | |
https://superuser.com/a/1609696 | |
https://github.com/sibradzic/amdgpu-clocks | |
Example (/etc/default/grub): | |
GRUB_CMDLINE_LINUX="resume=/dev/mapper/fedora_localhost--live-swap rd.lvm.lv=fedora_localhost-live/root rd.lvm.lv=fedora_localhost-live/swap rhgb quiet amdgpu.ppfeaturemask=0xfffd7fff" | |
GRUB_CMDLINE_LINUX_DEFAULT="amdgpu.ppfeaturemask=0xffffffff" | |
or | |
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash amdgpu.ppfeaturemask=0xffffffff" | |
update grub with | |
sudo update-grub | |
https://www.maketecheasier.com/benchmark-gpu-linux/ | |
chmod +x Unigine_Superposition-1.1.run | |
./Unigine_Superposition-1.1.run | |
cd Unigine_Superposition-1.1 | |
./Superposition |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/azeam/powerupp | |
sudo apt-get install libgtk-3-dev build-essential python3 python3-pip | |
pip3 install upp | |
git clone https://github.com/azeam/powerupp.git | |
cd powerupp | |
make | |
sudo make install | |
------------------------------------------------------------------------------------- | |
https://github.com/medusalix/xow | |
sudo apt install curl | |
sudo apt install cabextract | |
sudo apt install libusb-1.0-0-dev | |
git clone https://github.com/medusalix/xow | |
cd xow | |
make BUILD=RELEASE | |
sudo make install | |
sudo systemctl enable xow | |
sudo systemctl start xow | |
sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://unix.stackexchange.com/questions/554908/disable-spectre-and-meltdown-mitigations/647715#647715