Laptop: rog zephyrus g14 ga401ih ryzen 7
set home pgdn, pgup, end keys via autohotkey https://www.autohotkey.com/boards/viewtopic.php?t=62837 Add to startup options - windows+R, shell:startup, paste script to folder inside
New instructions - https://abskmj.github.io/notes/posts/rog-zephyrus-g14/popos/ pop-os_20.04_amd64_nvidia_23.iso nvidia-docker2 https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#setting-up-nvidia-container-toolkit
- ROG specific In ROG BIOS Settings Press f7 advanced mode Switch tab to Security Disable secure boot control
F10 save and exit
Attach usb with ubuntu
Advanced startup options Press f8 boot menu Select usb
- Measurements for 200gb ubuntu partition, 16gb RAM 223713 190945 32768 swap area 32gb 2x ram
190000 ubuntu /dev/nvme0n1p6 ext4 p7 swap
-
PopOS Hide all windows Super + D Alt+Tab: Switch between applications > Switch between windows
-
Buttons for Keyboard + Screen brightness -
sudo apt install dkms
git clone asus-nb-ctrl, asus-rog-nb-wmi, hid-asus-rog
-
Missing Home,PgUp,PgDn,End Autokey Chrome go back to backspace, shift backspace for forward alt + left back alt + right forward alt < and alt > for home and end ctrl + down for ctrl+pgdn ctrl + up for ctrl+pgup
-
Save battery - apt install tlp powertop, add as linux service so it's ran at startup (seems to mess with keyboard, removed for now)
-
Startup settings Disable bluetooth on startup: Add to startup applications rfkill block bluetooth
vim /home/ncdejito/run-at-startup.sh
'''
#!/bin/bash
tlp start
powertop --auto-tune
echo 2 > /sys/class/backlight/amdgpu_bl0/brightness
asusctl --kbd-bright low
#asusctl --chg-limit 60 # not working
'''
vim /etc/systemd/system/run-at-startup.service
'''
[Unit]
Description=run-at-startup script
[Service]
ExecStart=/home/ncdejito/run-at-startup.sh
[Install]
WantedBy=multi-user.target
'''
chmod +x /home/ncdejito/run-at-startup.sh
systemctl enable run-at-startup
- Touchpad sudo apt install xserver-xorg-input-synaptics Multitouch via fusuma https://github.com/iberianpig/fusuma#installation
mkdir -p ~/.config/fusuma/
vim ~/.config/fusuma/config.yml
'''
swipe:
3:
left:
command: "xdotool key alt+Left" # History forward
right:
command: "xdotool key alt+Right" # History back
up:
command: "xdotool key alt+Super+Up" # Switch workspaces up
down:
command: "xdotool key alt+Super+Down" # Switch workspaces down
4:
up:
command: "xdotool key Super+d" # Minimize all windows
down:
command: "xdotool key super" # Show all windows
left:
command: "xdotool key alt+Tab" # Switch windows
'''
To run at startup
gnome-session-properties
/usr/local/bin/fusuma --config=/home/ncdejito/.config/fusuma/config.yml -d # add this command
-
Personal preferences Terminal shortcut super T Terminal paste ctrl v Shift insert shortcut - shift f12 ctrl+[ one workspace up Ctrl+] one workspace down vim bashrc cd Downloads
-
cuda 11.2 https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=2004&target_type=deblocal purge all cuda https://askubuntu.com/a/1271590
-
list of programs I use in linux vscode chrome qgis jupyter lab shortcut
-
mount windows disk
sudo mkdir /media/sda2
sudo blkid # get UUID of windows partition
sudo vim /etc/fstab
add this line: UUID=<UUID> /media/sda2 ntfs defaults 0 2
sudo mount -a
- Git aliases
git config --global alias.undo-commit 'reset --soft HEAD^'
git config --global alias.push-branch "! git branch --show-current | git push --set-upstream origin"
Instructions - https://hackernoon.com/installing-ubuntu-18-04-along-with-windows-10-dual-boot-installation-for-deep-learning-f4cd91b58557