내용으로 건너뛰기
wiki.akpil.net
사용자 도구
로그인
사이트 도구
검색
도구
문서 보기
이전 판
역링크
최근 바뀜
미디어 관리자
사이트맵
로그인
>
최근 바뀜
미디어 관리자
사이트맵
추적:
우분투_설치_후_기본_설정
이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요.
====== 우분투 설치 후 기본 설정 ====== ----------- 1. mirror site 변경 <code> 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 </code> 2. 기본 패키지 업데이트 <code> sudo apt update sudo apt upgrade -y sudo apt autoremove -y sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y </code> 3. zsh 설치 및 설정 <code> 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 </code> 로그아웃 했다가 다시 로그인 <code> 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 </code> oh-my-zsh 플러그인들을 한번에 설치 <code> 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 </code> .zshrc 에 아래 내용 추가 <code> ZSH_THEME="agnoster" plugins=( git zsh-autosuggestions zsh-syntax-highlighting zsh-better-npm-completion ) </code> 4. 한글 글꼴, 입력기 및 몇몇 필요 패키지 설치 <code> sudo apt install fonts-unfonts-core fonts-unfonts-extra fonts-nanum fonts-naver-d2coding ibus ibus-hangul mc vim htop screen tmux -y </code> 아래 를 /home/USER_ID/.screenrc 로 저장 <code> 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$' </code> 많이 쓰는 데몬 설치 <code> sudo apt install samba apache2 munin munin-node avahi-daemon mariadb-server mariadb-client -y </code> 5. 파이썬 및 pip 설정 요즘에는 pip 보다는 uv 가 좋다고는 하지만, 기존에 pip 쓰던 경우에 유지보수 때문에(사실은 귀찮아서) 못 바꾸는 경우가 많다. 하여간에 정리하는 목적이다. 파이썬을 설치하고, 몇몇 기본적으로 설치되는 파이쎤 모듈 업데이트에 필요한 패키지를 미리 설치한다. <code> 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 </code> /home/USER_ID/.config/pip/pip.conf 파일 생성 (virtual environment 환경에서 사용하면 안해도 됨) <code> [global] break-system-packages = true </code> 설치된 패키지들 중 오래된 것을 업데이트 한다. <code> /usr/bin/python3 -m pip install --upgrade pip pip3 list --outdated | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U </code> 위의 명령을 pip-update.sh 정도로 저장하고 /home/USER_ID/bin 정도에 넣어두고 가끔 한번씩 실행하면 설치된 pip 패키지 중에서 업데이트가 필요한 건 업데이트가 된다. 6. nodejs 설치 <code> curl -sL https://deb.nodesource.com/setup_24.x | sudo -E bash - sudo apt install nodejs -y </code> 7. 펌웨어 업데이트 (라즈베리파이) <code> sudo rpi-update </code> --------- 2026.02.03 akpil
우분투_설치_후_기본_설정.txt
· 마지막으로 수정됨:
2026/03/11 20:05
저자
akpil
문서 도구
문서 보기
이전 판
역링크
맨 위로