System/CentOS | Ubuntu

[Ubuntu] 초기 설정

jykim23 2023. 10. 24. 18:20

ubuntu 초기 설정 메모

 

# 사용자(worker) sudo NOPASSWD 권한추가

echo 'worker  ALL=(ALL) NOPASSWD:ALL' | sudo tee -a /etc/sudoers > /dev/null

sudo vi /etc/sudoers

worker  ALL=(ALL) NOPASSWD:ALL

 

 

# 초기 패키지 설치

sudo apt-get update
sudo apt-get install -y net-tools gcc vim sysstat ca-certificates curl gnupg apt-transport-https nfs-common

 

# alias 등록

echo 'alias vi=vim' >> ~/.bashrc && source ~/.bashrc

 

# 시간동기화(타임존 설정)

sudo timedatectl set-timezone Asia/Seoul

 

# docker engine 

https://docs.docker.com/engine/install/ubuntu/

https://docs.docker.com/engine/install/ubuntu/#install-using-the-convenience-script

 

# docker compose

https://docs.docker.com/compose/install/linux/

 

# github ssh login

https://docs.github.com/ko/authentication/connecting-to-github-with-ssh