본문 바로가기

Study/linux

Ubuntu 18.04 설치 후 세팅하기

목차

- 소프트웨어 다운로드 서버 변경

- build-essential 설치

- 드라이버 설치 및 배터리 최적화

- 언어 키보드 설치

- 테마 및 유틸리티 설치

 

 

우분투 부팅

노트북 부팅 오류 해결법 (화면이 까맣게 안 켜질 때, MSI노트북, 그래픽카드 有):

  1. 부팅화면 GRUB - Ubuntu 선택 (엔터는 누르지 말고 하이라이팅된대로 놔두기)
  2. `e` 눌러서 옵션 설정 창 열기
  3. linux로 시작하는 줄 찾아서 맨 뒤에 modprobe.blacklist = nouveau 추가

 

 

소프트웨어 다운로드 서버 변경

우분투 서버가 잘 멈춘다. 카카오미러로 바꿔주자.

  1. window+S로 검색, software & updates
  2. Ubuntu Software탭에서 Download from ... Other 선택
  3. 다운로드 서버를 Korea, Republic of - Kakao Mirror 선택

앞으로도 `apt update :: failed to fetch http://kr.archive.ubuntu.com` ~ 어쩌고 오류나면 면 다운로드 서버를 변경해주면 해결된다.

 

 

 

build-essential 설치

make, gcc, g++등등을 설치한다.

1
2
3
$ sudo apt-get update
 
$ sudo apt-get install build-essential

 

 

그래픽카드 드라이버 설치

1
2
3
4
5
6
7
sudo add-apt-repository ppa:graphics-drivers/ppa
 
sudo apt update # You can change this driver to whatever version suits you best :)
 
sudo apt install nvidia-driver-430
 
sudo reboot

Nvidia graphic card 설치 : https://gist.github.com/mari-linhares/cef4cb3440408e44963d1447a7db5ae0

 

 

배터리 오래쓰기 (강력추천!!)

  1. NVIDIA X Server Settings 앱 실행 (드라이버 깔면 자동으로 깔려있음)
  2. PRIME Profiles 옵션
  3. Intel(Power Saving Mode)로 선택

그래픽카드를 인텔 내장그래픽으로 바꿨더니 배터리가 많이 늘었다. 6시간은 쓴다. 

게임할때는 NVIDIA로 바꾸면 된다.

 

 

테마 및 유틸리티 설치

테마 설치 :

https://codevkr.tistory.com/89

 

[Linux] Ubuntu 18.04 테마 설정하기

안녕하세요~ 이번 포스팅에서는 우분투 환경에서 테마를 적용하는 방법에 대해 알아보도록 하겠습니다! 우분투의 기본 테마는 아래와 같습니다. (이미지 출처: 구글) 이전의 16.xx 버전보다는 많이 깔끔해졌는데..

codevkr.tistory.com

 

유틸리티 :

- htop :: 작업관리자

1
2
$ sudo apt-get install htop
$ htop    # run htop

 

- nautilus :: 터미널에서 디렉토리 GUI로 열기

1
2
$ sudo apt-get install nautilus
$ nautilus .    # open current directory

 

 

- typora :: 마크다운 에디터

https://typora.io/#linux

 

- fusuma :: 터치패드 제스처 설정

https://conservative-vector.tistory.com/107

 

- cerebro :: 맥 spotlight같은 기능

 

- git :: 버전 관리 컨트롤

1
$ sudo apt-get install git

git 초기 설정하기

 
1
2
$ git config --global user.email "you@example.com"
$ git config --global user.name "Your Name"

 

git 사용할때마다 비밀번호를 묻는다면? credential 설정해주자.

https://help.github.com/en/articles/caching-your-github-password-in-git

 

Caching your GitHub password in Git - GitHub Help

Caching your GitHub password in Git Mac Windows Linux All If you clone GitHub repositories using SSH, then you authenticate using SSH keys instead of a username and password. For help setting up an SSH connection, see Generating an SSH Key. Tips: You need

help.github.com