Linux

[Linux] Ubuntu 22.02 Setting

Linuxias 2023. 9. 9. 14:16
반응형

환경

1. zsh & oh-my-zsh 설치하기

$sudo apt -y install zsh
$sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

theme를 agnoster로 변경해주기 위해 ~/.zshrc 에서 ZSH_THEME을 변경해준다.

ZSH_THEME="agnoster"

변경 후 Font가 깨진다면 아래와 같이 font를 설치해준다.

$git clone https://github.com/powerline/fonts.git --depth=1
$cd fonts
$./install.sh

그 후 터미널 Font를 powerline 중 하나로 변경해준다면 문제 해결된다.

2. fzf 설치하기

 

GitHub - junegunn/fzf: :cherry_blossom: A command-line fuzzy finder

:cherry_blossom: A command-line fuzzy finder. Contribute to junegunn/fzf development by creating an account on GitHub.

github.com

3. Browser

naver-whale 사용하기

 

네이버 웨일 브라우저

일상을 여는 새로운 시작 네이버 웨일

whale.naver.com

$sudo dpkg -i naver-whale-stable_amd64.deb

 

개발환경 한번에 설치하기

$sudo apt install git vim build-essential curl gnome-tweaks terminator htop net-tools

Git 설정

$ git config --global user.name [내이름]
$ git config --global user.email [메일]
$ sudo git config --global color.ui "auto"

poetry 설치

$curl -sSL https://install.python-poetry.org | python3 -

vscode 설치

 

Visual Studio Code - Code Editing. Redefined

Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications.  Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.

code.visualstudio.com

 

미러사이트 카카오로 변경하기

ubuntu는 패키지 참조 사이트를 /etc/apt/sources.list 에서 관리한다.

$sudo vi /etc/apt/sources.list

아래와 같이 kr.archive.ubuntu.com 경로를 mirror.kakao.com 으로 변경해준다.

:%s/kr.archive.ubuntu.com/mirror.kakao.com/

또는 아래 명령어를 터미널에서 실행하여 변경해 줄 수도 있다.

$sudo sed -i 's/kr.archive.ubuntu.com/mirror.kakao.com/g' /etc/apt/sources.list

변경 후 업데이트 실시

$sudo apt update
반응형