https://releases.ubuntu.com/18.04.6/
https://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo ubuntu-drivers autoinstall
Change archive server to Kakao mirror using VI editor (Recommended)
$ sudo vi /etc/apt/sources.list
:%s/kr.archive.ubuntu.com/mirror.kakao.com
:wq!
If Ctrl + Alt + T
is unavailable, use Ctrl + Alt + F3
$ gnome-control-center
Region & Language > Manage Installed Languages > Install
$ sudo reboot
$ ibus-setup
IBus Preferences > Input Method > Add > Korean > Hangul
Korean - Hangul > Preferences > Hangul Toggle Key > Add [toggle key]
$ gnome-control-center
Region & Language > Input Sources > + > Korean > Korean (Hangul) > Add > English (US) > -
$ gedit ~/.bashrc
~/.bashrc를 수정하여 단축키를 설정할 수 있다.
use alias alias [shortcut]='[command]'
ex) alias sb='source ~/.bashrc'
파일을 수정한 후, terminal을 재시작하거나 $ source ~/.bashrc
명령어를 이용하여 ~/.bashrc 의 수정사항을 적용할 수 있다.
위 이미지대로 수정 후 한번 적용하였다면, 앞으로는 $ source ~/.bashrc
를 $ sb
로 실행할 수 있다
$ sudo apt install terminator -y
Ctrl + Shift + E
split vertically
Ctrl + Shift + O
split horizontally
Ctrl + Shift + W
close window
Alt + Arrow
move between window
$ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
$ sudo apt install curl
$ curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
$ sudo apt update
$ sudo apt install ros-melodic-desktop-full
$ echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
$ source ~/.bashrc
$ sudo apt install python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essential
$ sudo rosdep init
$ rosdep update
추가적으로 carvis repository 내부의 catkin_ws에 있는 패키지들은 개별적으로 apt나 github를 이용하여 다시 다운받은 후 build하는 것을 추천
Download anaconda https://www.anaconda.com/products/distribution
$ cd ~/Downloads/
$ sha256sum Anaconda3-2022.05-Linux-x86_64.sh # downloaded file name, tab key will help autofill existing file
$ bash Anaconda3-2022.05-Linux-x86_64.sh
$ source ~/.bashrc
(base)$ conda --version # check version
(base)$ conda search python # check available python version
(base)$ conda create -n vision python=3.7
(base)$ conda activate vision
(vision)$ conda deactivate
(base)$
sha256sum is for validating installer file, refer to Anaconda hashes
$ conda config --set auto_activate_base false # auto activation off
$ conda config --set auto_activate_base true # auto activation on
Terminal을 켰을 때 (base) 환경으로 자동 시작 설정
Terminal을 재시작하면 적용된다
기본에서 실행하면 python=2.7, python3=3.6, (base)에서는 python=3.9, (vision)에서는 python=3.7을 확인할 수 있다.
(base)$ conda activate vision
(vision)$ git clone https://github.com/blu-y/carvis.git
(vision)$ cd ~/carvis/src/yolov5
(vision)$ pip install -r requirements.txt
(vision)$ pip install rospkg pyqt5 pyserial
(vision)$ sudo apt install python-catkin-tools
(vision)$ sudo apt install libpcap.dev
$ git config --global user.name "blu" # 본인 username
$ git config --global user.email "a_o@kakao.com" # 본인 email
$ git init
$ git add .
$ git commit -m "first commit"
$ git remote add origin git@github.com:blu-y/carvis.git
$ git push origin master
#Initialize (only on first time)
$ mkdir carvis
$ cd carvis/
$ git init
$ git remote add origin git@github.com:blu-y/carvis.git
$ git pull origin master
# modify test.txt(example)
$ git add .
# for updating deleted or revised file $ git add -u .
$ git commit -m "Created test.txt"
# for updating deleted or revised file $ git commit -a -m "commit message"
$ git checkout -b blu-patch-1
$ git push origin blu-patch-1
For SSH error refer to Issue#5 git SSH