사용자 도구

사이트 도구


우분투_설치_후_기본_설정

문서의 이전 판입니다!


우분투 설치 후 기본 설정


1. mirror site 변경

sudo sed -i 's/kr.archive.ubuntu.com/mirror.kakao.com/g' /etc/apt/sources.list
버전에 따라서는 
sudo sed -i 's/kr.archive.ubuntu.com/mirror.kakao.com/g' /etc/apt/sources.list.d/ubuntu.sources

2. 기본 패키지 업데이트

sudo apt update
sudo apt upgrade -y
sudo apt autoremove -y

sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y

3. zsh 설치 및 설정

sudo apt install git zsh -y && chsh -s `which zsh`

curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh

git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions --depth=1
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting --depth=1
git clone https://github.com/lukechilds/zsh-better-npm-completion ~/.oh-my-zsh/custom/plugins/zsh-better-npm-completion --depth=1

oh-my-zsh 플러그인들을 한번에 설치

git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions --depth=1 && git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting --depth=1 && git clone https://github.com/lukechilds/zsh-better-npm-completion ~/.oh-my-zsh/custom/plugins/zsh-better-npm-completion --depth=1

.zshrc 에 아래 내용 추가

ZSH_THEME="agnoster"
plugins=(
  git
  zsh-autosuggestions
  zsh-syntax-highlighting
  zsh-better-npm-completion
)

4. 한글 글꼴, 입력기 및 몇몇 필요 패키지 설치

sudo apt install fonts-unfonts-core fonts-unfonts-extra fonts-nanum fonts-naver-d2coding ibus ibus-hangul mc vim htop screen tmux -y

아래 를 /home/USER_ID/.screenrc 로 저장

startup_message off

defutf8 on
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m$'

많이 쓰는 데몬 설치

sudo apt install samba apache2 munin munin-node avahi-daemon mariadb-server mariadb-client -y

5. 파이썬 및 pip 설정

요즘에는 pip 보다는 uv 가 좋다고는 하지만, 기존에 pip 쓰던 경우에 유지보수 때문에(사실은 귀찮아서) 못 바꾸는 경우가 많다. 하여간에 정리하는 목적이다.

파이썬을 설치하고, 몇몇 기본적으로 설치되는 파이쎤 모듈 업데이트에 필요한 패키지를 미리 설치한다.

sudo apt install build-essential python3-dev python3-pip pkg-config libcairo2-dev python3-dev libglib2.0-dev libpython3-dev libdbus-1-dev libgirepository1.0-dev libgirepository-2.0-dev libgtk-3-dev -y

pip3 install pyparsing

/home/USER_ID/.config/pip/pip.conf 파일 생성 (virtual environment 환경에서 사용하면 안해도 됨)

[global]
break-system-packages = true

설치된 패키지들 중 오래된 것을 업데이트 한다.

/usr/bin/python3 -m pip install --upgrade pip
pip3 list --outdated | grep -v '^\-e' | cut -d = -f 1  | xargs -n1 pip3 install -U

위의 명령을 pip-update.sh 정도로 저장하고 /home/USER_ID/bin 정도에 넣어두고 가끔 한번씩 실행하면 설치된 pip 패키지 중에서 업데이트가 필요한 건 업데이트가 된다.

6. nodejs 설치

curl -sL https://deb.nodesource.com/setup_24.x | sudo -E bash -
sudo apt install nodejs -y

7. 펌웨어 업데이트 (라즈베리파이)

sudo rpi-update

2026.02.03 akpil

우분투_설치_후_기본_설정.1773226697.txt.gz · 마지막으로 수정됨: 저자 akpil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki