Skip to content

Instantly share code, notes, and snippets.

@LimHyungTae
Last active April 20, 2024 14:43
Show Gist options
  • Save LimHyungTae/6dc69ac1e9d2b0a1527fbde30f96112a to your computer and use it in GitHub Desktop.
Save LimHyungTae/6dc69ac1e9d2b0a1527fbde30f96112a to your computer and use it in GitHub Desktop.
2023 version of ubuntu 20.04 setting (only Korean Available)
# First, CUDA and its driver should be installed
# for saving time
# 1. Set off the nouveau
# (reference: https://support.huawei.com/enterprise/de/doc/EDOC1100165479/93fe5683/how-to-disable-the-nouveau-driver-for-different-linux-systems)
a) Create the /etc/modprobe.d/blacklist-nouveau.conf file and add the following information to the file.
```
blacklist nouveau
options nouveau modeset=0
```
b) Re-generate initramfs.
sudo update-initramfs -u
# 2. Check the optimal driver by following command
# (reference: https://hwk0702.github.io/python/tips/2021/04/23/NVIDEA/)
ubuntu-drivers devices
# 3. And then, follow the other instruction
# 해당 사이트가 제일 정리가 잘 돼 있는 듯함: https://hwk0702.github.io/python/tips/2021/04/23/NVIDEA/
# Hardward에 맞는 driver 버전 찾는게 인상깊음
# ----------------------------------------------
# Install Google Chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
# ----------------------------------------------
# Install zsh
# https://gist.github.com/renshuki/3cf3de6e7f00fa7e744a
# https://www.tecmint.com/install-oh-my-zsh-in-ubuntu/
# Just follow the below commands
sudo apt install curl wget git vim
# a) Install ZSH
sudo apt-get install zsh
# b) Install Oh-My-ZSH
sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
# Resolve the font issue of `agnoster` theme
# Easy way: If your are using Ubuntu >= 16.04 you can simply run:
sudo apt-get install fonts-powerline
# ----------------------------------------------
# Install terminator
sudo apt-get update
sudo apt-get install terminator
# Set the config of terminator by following the page: https://gist.github.com/LimHyungTae/eeb134ff5d8c67690fd8020cf8265082
# NOTE: terminator에서 Ctrl+Shift+e가 안 될 때에는 ibus-setup과의 충돌 때문에 그렇다고 함.
# 아래 주소 참고:
# https://jh-byun.github.io/study/terminator-split-vertically/
# ----------------------------------------------
# Set Korean
# https://pstudio411.tistory.com/entry/Ubuntu-2004-한글-입력-방법
# 요약하자면, `ibus-setup` 명령어를 통해 Korean (Hangul)이 추가돼야 시스템 상에서 등록할 수 있나봄
# 그래서
# a) "Language Support"에서 Install/Remove Languages를 클릭 후, 설치해야하는 것 설치하고
# b) Install/Remove Languages에서 Installed Languages에서 Korean 추가
# c) 재부팅
# d) command 상에서 IBus Preference를 통해 Korean-Hangul 추가, i.e. `$ibus-setup`를 친 후에 "Input Method"에서 한글 추가
# e) 다시 Region & Language로 돌아가서 (Ubuntu 22.04의 경우에는 Keyboards에 있음) Input sources에서 "+" 버튼 눌러야 함
# Set minimal C++ example
sudo apt install cmake libeigen3-dev libboost-all-dev
# ----------------------------------------------
# For playing mkv file
sudo apt install ubuntu-restricted-extras
sudo apt install mpv
@LimHyungTae
Copy link
Author

세팅 타겟이 Intel GPU일 때는
$ sudo apt-get install mesa-utils

@LimHyungTae
Copy link
Author

LimHyungTae commented Feb 23, 2023

230306 Update

alias vz='sudo vim ~/.zshrc'
alias sz='source ~/.zshrc'
alias sds='source ~/catkin_ws/devel/setup.zsh'
alias sag='sudo apt-get'
alias sagi='sudo apt-get install'
alias hist='history|grep' # hg already exists
alias gs='git status'
alias gp='git pull'
alias ga='git add'
alias gcm='git commit -m'
alias cw='cd ~/catkin_ws'
alias cs='cd ~/catkin_ws/src'
alias cb='catkin build'
alias cwb='cd ~/catkin_ws && catkin build'
alias run_clion='cd /opt/clion-2022.1.3/bin/ && ./clion.sh'

alias n.='nautilus .'
# For Patchwork2
alias p2='nautilus /media/shapelim/UX960NVMe1/patchwork2_data'

@LimHyungTae
Copy link
Author

LimHyungTae commented Apr 17, 2024

한글 키보드 세팅 관련
Ubuntu 22.04 기준으로, fcitx 4를 설치해야 함! (fcitx 5, ibus는 입력할 때 뭔가가 이상함)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment