computer-setup-info/linux/Resources-Information.md

154 lines
4.1 KiB
Markdown
Raw Normal View History

# Linux Resources
---
## Dual Booting
https://support.system76.com/articles/dual-booting/
### Fixes
#### Fix your clock
Windows and Linux store their time in the BIOS differently, this will cause your clock to be desynchronized when you switch from one OS to the other.
The easiest solution for it is to fix it in Linux, forcing it to work the same way as Windows. You can do this through the terminal:
`timedatectl set-local-rtc 1 --adjust-system-clock`
You can verify if the change has been successful, by running this command:
`timedatectl`
You should see RTC in local TZ: yes. If you need to revert it, just set it to 0:
`timedatectl set-local-rtc 0 --adjust-system-clock`
---
## Useful Packages
- Gnome Tweaks: `sudo apt install gnome-tweaks`
- Fonts Fira Code: `sudo apt install fonts-firacode`
- Git: `sudo apt install git`
- Curl: `sudo apt install curl`
- Vim: `sudo apt install vim`
---
## Useful Shortcuts
- Enter a command: Alt+F2
- Restart UI: Type "r" and enter
---
## GUI Setup
Ubuntu 20.04 Gnome dark mode work for all except do not disturb or right click menu
- Fix is that Gnome Shell is on "Default"
- Install Gnome Tweaks: `sudo apt install gnome-tweaks`
- Select "Appearance" and change Shell to "Yaru-dark" or whatever you want
---
## Gaming Mouse Support
- [Ratbagd DBus Daemon](https://github.com/libratbag/libratbag/blob/master/README.md#running-ratbagd-as-dbus-activated-systemd-service)
- [Piper GUI for Ratbagd](https://github.com/libratbag/piper)
---
## Laptop Power Saver
### TLP
2020-09-22 04:53:52 +00:00
Documentation: https://linrunner.de/tlp/index.html
Installation: https://linrunner.de/tlp/installation/index.html
2021-06-16 17:40:11 +00:00
Extra resources: https://support.system76.com/articles/battery/
---
2021-06-19 05:46:27 +00:00
## Tweaks
### PopOS Laptop
- Trackpad Left/Right Click same unless set in Tweaks settings
- Keyboard and mouse -> Mouse Click Emulation -> Area
## Trackpad Gestures
2020-09-22 04:53:52 +00:00
_Working on Dell XPS 13_
Following Medium article: [Mac-like Gestures on Ubuntu 20.04 Dell XPS 15](https://medium.com/@kaigo/mac-like-gestures-on-ubuntu-20-04-dell-xps-15-7ea6e3be7f76)
Add your user to the input group:
`sudo gpasswd -a $USER input`
Install dependencies:
`sudo apt-get install libinput-tools xdotool`
Install libinput gestures:
`git clone https://github.com/bulletmark/libinput-gestures.git`
`cd libinput-gestures`
`sudo make install`
`sudo ./libinput-gestures-setup install`
Start the software and allow it to run at startup.
`libinput-gestures-setup autostart`
`libinput-gestures-setup start`
Next install a UI tool to make adding and editing gestures easier.
`git clone https://gitlab.com/cunidev/gestures`
`cd gestures`
`sudo python3 setup.py install`
2020-09-22 04:53:52 +00:00
Open the new program called _gestures_ from your activities menu.
These are the gestures you will need to emulate a mac-like experience.
Configuration file in dotfiles: [Gestures.conf](https://github.com/BradNut/dotfiles/blob/master/Linux%20Settings/Gesture%20Settings/Gestures.conf)
2020-09-22 04:53:52 +00:00
- 3-finger swipe up
- xdotool key super
- 3-finger swipe down
- xdotool key 'alt+asciitilde'
- 3-finger swipe right
- xdotool key 'ctrl+alt+Left'
- 3-finger swipe left
- xdotool key 'ctrl+alt+Right'
- 3-finger pinch out
- xdotool key 'ctrl+plus'
- 3-finger ping in
- xdotool key 'ctrl+minus'
- 4-finger swipe left
- xdotool key 'alt+Left'
- 4-finger swipe right
- xdotool key 'alt+Right'
Next you may notice the workspaces are ontop of each other instead of side-by-side like MacOS. To fix this we will need to install a gnome extension named workspace matrix available [here](https://extensions.gnome.org/extension/1485/workspace-matrix/).
2020-09-22 04:53:52 +00:00
Now restart your system and you should be able to move workspaces, left and right using the three finger gesture or _ctrl+alt + left or right arrows_.
---
## Internal Hard Drives
- [Auto-mounting on boot](https://www.liberiangeek.net/2012/04/auto-mount-windows-ntfs-partitions-in-ubuntu-12-04-precise-pangolin/)
---
## Gaming
## Lutris
- https://www.linuxuprising.com/2018/09/how-to-use-lutris-to-play-windows-games.html
### Emulation
#### PS2
- https://forums.lutris.net/t/citra-and-pcsx2-runners-problem/8297
- https://forums.lutris.net/t/where-do-i-put-ps2-bios/4874