사용자 도구

사이트 도구


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

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판이전 판
다음 판
이전 판
우분투_설치_후_기본_설정 [2026/02/03 10:00] akpil우분투_설치_후_기본_설정 [2026/03/11 20:05] (현재) akpil
줄 18: 줄 18:
 sudo apt upgrade -y sudo apt upgrade -y
 sudo apt autoremove -y sudo apt autoremove -y
 +
 +sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y
 </code> </code>
  
줄 24: 줄 26:
  
 <code> <code>
-sudo apt install zsh -y && chsh -s `which 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 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-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/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting --depth=1
줄 50: 줄 54:
 </code> </code>
  
-4. 한글 글꼴 및 입력기 설치+ 
 +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> <code>
-sudo apt install fonts-unfonts-core fonts-unfonts-extra fonts-nanum fonts-naver-d2coding ibus ibus-hangul+curl -sL https://deb.nodesource.com/setup_24.x | sudo -E bash - 
 +sudo apt install nodejs -y
 </code> </code>
  
-5. 펌웨어 업데이트 (라즈베리파이)+7. 펌웨어 업데이트 (라즈베리파이)
  
 <code> <code>
우분투_설치_후_기본_설정.1770080430.txt.gz · 마지막으로 수정됨: 저자 akpil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki