Skip to content

Instantly share code, notes, and snippets.

View FrankieWOO's full-sized avatar

Fan WU FrankieWOO

View GitHub Profile
@FrankieWOO
FrankieWOO / .gitignore
Created April 19, 2017 11:44 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
curl -L -O https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh
bash Miniforge3-$(uname)-$(uname -m).sh
rm Miniforge3-$(uname)-$(uname -m).sh
@FrankieWOO
FrankieWOO / ubuntu_setup_anaconda.sh
Last active March 26, 2022 18:56
Setup Ubuntu 20.04 machine
# essentials
sudo apt-get update
sudo apt-get install -y build-essential git ssh openssl libssl-dev openvpn net-tools nmap fping curl gcc g++
sudo apt-get upgrade -y
# Install Anaconda
cd Downloads
wget https://repo.anaconda.com/archive/Anaconda3-2021.11-Linux-x86_64.sh
sudo chmod +x Anaconda3-2021.11-Linux-x86_64.sh
bash Anaconda3-2021.11-Linux-x86_64.sh
curl -L -O https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh
bash Mambaforge-$(uname)-$(uname -m).sh
@FrankieWOO
FrankieWOO / Install kernel 5.15 on ubuntu20.04.md
Last active March 26, 2022 15:53
Install kernel 5.15 on ubuntu20.04

Install xanmod kernel

Upgrade the kernel by installing xanmod kernel is very convenient. Read more here: https://xanmod.org/

echo 'deb http://deb.xanmod.org releases main' | sudo tee /etc/apt/sources.list.d/xanmod-kernel.list
wget -qO - https://dl.xanmod.org/gpg.key | sudo apt-key --keyring /etc/apt/trusted.gpg.d/xanmod-kernel.gpg add -
sudo apt update && sudo apt install linux-xanmod

Reboot after installation.

@FrankieWOO
FrankieWOO / ubuntu-on-asus-g14.md
Last active October 23, 2024 11:41 — forked from vijay-prema/ubuntu-on-asus-g14.md
Ubuntu on Asus ROG Zephyrus G14 2021

Ubuntu on Asus ROG Zephyrus G14 2021 (Setup guide)

Here is a way to do a robust install of Ubuntu (+ optional Windows 11 dual boot and LUKS encryption) on an Asus laptop, with minimal usable hardware support, without a significant amount of tinkering that may break in future or require frequent technical attention.

Specs:

  • AMD R9 5900HS 8 core 16 thread (onboard Radeon graphics)
  • NVIDIA RTX 3060
  • 40GB RAM (8GB soldered + 32GB stick)
  • 2TB SSD
  • 14inch 1920x1080 Display @144Hz

New tested approach: Build Nvidia driver for rt kernel with installed driver on non rt OS. (tested on July 19, 2024 on zorin17 (equivalent to Ubuntu23.10))

Important

One thing before start the below process is to make sure your non-rt kernel and installed rt-kernel has same or close major version, in my most recent test case, it is 6.5.0 for generic vs 6.6.40 for rt.

Step. 0: First, install the rt kernel but dont boot into the rt version OS right now. Install the Nvidia driver first in your non rt OS. When you installed your OS this has probably been done, but check if you got the nvidia-kernel-source, if not,

echo 'deb http://deb.xanmod.org releases main' | sudo tee /etc/apt/sources.list.d/xanmod-kernel.list
wget -qO - https://dl.xanmod.org/gpg.key | sudo apt-key --keyring /etc/apt/trusted.gpg.d/xanmod-kernel.gpg add -
sudo apt update
sudo apt install linux-xanmod-rt-x64v3
sudo addgroup realtime
sudo usermod -a -G realtime $(whoami)
#### add the following limits to the realtime group in /etc/security/limits.conf
# @realtime soft rtprio 99
# install deps
sudo pacman -Sy --noconfirm base-devel
yay -Sy --noconfirm ros2-arch-deps
yay -Sy --noconfirm ros2-pyqt5-sip-compat
yay -Sy --noconfirm sip4
# modify /usr/share/sip/PyQt5/QtCore/QtCoremod.sip
sed -n '23 s/Module.*/Module PyQt5.QtCore/p' /usr/share/sip/PyQt5/QtCore/QtCoremod.sip
# install ros2 from AUR