Study/Linux

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

AC 2022. 5. 10. 19:20

 

부팅 시 자동실행 명령어 등록

cd /etc/profile.d/ 
sudo vi startup.sh

그 후 본인이 원하는 명령어 쉘 스크립트를 입력한다.

#!/bin/bash

#Thinkpad_trackpoint_speed(빨콩_속도조절)
xinput --set-prop "TPPS/2 Elan TrackPoint" "libinput Accel Speed" -1.0 &
#Disable_bluetooth_on_boot(부팅시_블루투스_비활성화)
rfkill block bluetooth &
#enable_hangul_to_fcitx(fcitx를_이용해서_한글_활성화)
fcitx &

 

Numlock 활성화

sudo apt-get install numlockx

설치 후 Login Window -> Settings에서 Activate numlock 선택하기


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

 

ppa 지원

sudo apt-get -y install software-properties-common

 

TLP Laptop battery saver 설치

sudo add-apt-repository -y ppa:linrunner/tlp
sudo apt-get install -y tlp tlp-rdw
sudo tlp start

 

axel 설치

sudo apt-get install axel

axel 사용방법 예시는 axel -n x http://~~ .mp4


stdio.h 해더파일 설치

sudo apt-get install libc6-dev

 

나눔폰트 설치

sudo apt-get install fonts-nanum

 

카메라 설치

sudo apt-get install cheese

 

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

 

추가

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