Skip to content

Instantly share code, notes, and snippets.

View FrankieWOO's full-sized avatar

Fan WU FrankieWOO

View GitHub Profile
@FrankieWOO
FrankieWOO / Install_miniconda_init_fish.txt
Last active January 17, 2024 15:34
Install miniconda and init fish shell
mkdir -p ~/miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
rm -rf ~/miniconda3/miniconda.sh
# after this, init fish shell
~/miniconda3/bin/conda init fish
@FrankieWOO
FrankieWOO / fish_install.md
Created May 16, 2023 08:56 — forked from gagarine/fish_install.md
Install fish shell on macOS Mojave with brew

Installing Fish shell on MacOS (Intel and M1) using brew

Fish is a smart and user-friendly command line (like bash or zsh). This is how you can instal Fish on MacOS and make your default shell.

Note that you need the https://brew.sh/ package manager installed on your machine.

Install Fish

brew install fish

# 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
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

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,

@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
@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.

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 / 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