Study/Linux

[Linux] 리눅스 설치 후 해야 될 작업들

AC 2022. 5. 10. 19:20

 

배터리 TLP 설치

apt install tlp tlp-rdw

 

git 설치

apt install git

 

크롬 설치

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update
sudo apt-get install google-chrome-stable
sudo apt install python3-apt
sudo rm -rf /etc/apt/sources.list.d/google.list

 

파이어폭스 삭제

sudo apt-get purge firefox
rm -r .mozilla/firefox/
rm -r /etc/firefox/
rm -r /usr/lib/firefox/
rm -r /usr/lib/firefox-addons/
rm -r .mozilla

 

VirtualBox 설치
www.virtualbox.org/wiki/Linux_Downloads 여기서 직접 다운로드하는 게 좋다.

 

zsh 및 oh-my-zsh 설치

sudo apt-get install zsh
chsh -s /usr/bin/zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sudo apt install fonts-powerline

 

zsh 플러그인 설치
.zshrc 파일을 열고 71번째 줄에 plugins=(git)를 다음과 같이 고친다.

plugins=(
    git
    zsh-completions
    zsh-syntax-highlighting 
    zsh-autosuggestions 
)

...
autoload -U compinit && compinit

그 후 다음과 같이 플러그인을 다운로드하고 설정한다.

# zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

# zsh-completions
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions

# zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

 

oh-my-zsh 테마 변경
.zshrc 파일을 열은 뒤에 robbyrussell 테마에서 powerlevel10k/powerlevel10k 테마로 바꾼다.

ZSH_THEME="powerlevel10k/powerlevel10k"

 

oh-my-zsh 폰트 깨짐 방지

git clone https://github.com/powerline/fonts.git
cd fonts
./install.sh
sudo rm -r ~/fonts/

 

필요없는 프로그램들 삭제

 

apt autoremove -y 
apt autoclean -y

 

Install Brave Browser

sudo apt install apt-transport-https curl 
sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg 
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-release.list 
sudo apt update 
sudo apt install brave-browser

 

VS Code Install

sudo sh -c 'curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/microsoft.gpg'
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt update
sudo apt install code

 

Install NodeJs

curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - 
sudo apt install nodejs 
node --version

Install NVM

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
source ~/.zshrc

Install libssl-dev

sudo apt install libssl-dev

 

Install Yarn

sudo npm i -g yarn

 

Install Snap

sudo rm /etc/apt/preferences.d/nosnap.pref
sudo apt-get install snapd

Install Docker

sudo snap install docker

 

Install Kdenlive

sudo snap install kdenlive

 

Install Stacer

sudo add-apt-repository ppa:oguzhaninan/stacer
sudo apt-get update
sudo apt-get install stacer

 

Install Peek

sudo apt install peek

 

Install Minitube

#32bit
wget http://flavio.tordini.org/files/minitube/minitube.deb -O minitube.deb

#64bit
wget http://flavio.tordini.org/files/minitube/minitube64.deb -O minitube.deb
sudo dpkg -i minitube.deb

#종속성에 문제가 있는 경우
sudo apt-get install -f

 

Install Systemback

sudo add-apt-repository ppa:nemh/systemback
sudo apt-get update
sudo apt-get install systemback

 

Install KColorChooser

sudo apt-get install kcolorchooser

 

Install PDFsam

sudo apt-get install pdfsam

 

Install Thunderbird

sudo apt-get install Thunderbrid

 

Install Virtualbox

sudo apt-get install virtualbox

 

Install Darktable

sudo apt-get install darktable

 

Install GIMP

sudo apt-get install gimp

 

Install Yakuake

sudo apt-get install yakuake

 

Install VLC

sudo snap install vlc --edge

 

Install Bluetooth

sudo apt install bluez
sudo apt install blueman

modprobe btusb
sudo systemctl enable bluetooth.service
sudo systemctl start bluetooth.service

 

Gnome Setting

sudo apt install gnome-tweak-tool
sudo apt install gnome-tweaks

 

이런 저런 패키지들을 설치하기 위한 사전작업

sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev

 

Pyenv 설치

git clone https://github.com/pyenv/pyenv.git ~/.pyenv

#bash나 zsh에 아래의 문구를 삽입

export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"

#셀 반영
source ~/.bashrc or
source ~/.zshrc

 

Python 3.12 이상을 설치하기 위한 작업

sudo apt-get install liblzma-dev

 

Fish Terminal Install

sudo apt install fish

 

Fish Default Shell

chsh -s /usr/bin/fish

 

Documentations - Make Your Linux Terminal Look Amazing.html
3.21MB

FISH 설정 위 대로 따라하면 됨.

 

Fish를 설치하고 난 다음에는 다음 설정을 해줘야 함. (Bash 설정을 Fish에도 적용되게 함)

Bass 플러그인 설치

bass는 Bash 유틸리티를 fish에서 사용할 수 있게 해주는 플러그인

먼저 fisher(fish용 패키지 관리자)를 설치한 다음 bass를 설치함.

curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher
fisher install edc/bass

NVM 함수생성

~/.config/fish/functions 디렉토리에 nvm.fish 파일을 생성하고 다음 내용을 추가

function nvm
    bass source ~/.nvm/nvm.sh --no-use ';' nvm $argv
end

~/.config/fish/config.fish 파일에 다음 라인을 추가한다.

set -x NVM_DIR ~/.nvm

fish 쉘 재시작

source ~/.config/fish/config.fish

 

추가

https://kskroyal.com/23-things-to-do-after-installing-ubuntu/

 

Patch Kernel

https://liquorix.net/

 

Liquorix Kernel

Liquorix is a distro kernel replacement built using the best configuration and kernel sources for desktop, multimedia, and gaming workloads.

liquorix.net

https://xanmod.org/

 

XanMod Kernel

XanMod is a general-purpose Linux kernel distribution with custom settings and new features. Built to provide a stable, responsive and smooth desktop experience. The real-time version is recommended for critical runtime applications such as Linux gaming se

xanmod.org

 

LIST