사용자 도구

사이트 도구


linux:manjaro:install

문서의 이전 판입니다!


Install Manjaro Linux

USB ISO 구워서 설치 준비

  • Linux에서 USB 굽기
    sudo dd bs=4M if=/path/to/manjaro.iso of=/dev/sd[drive letter] status=progress oflag=sync
    • driver letter 는 숫자를 포함하지 않는다. /dev/sdb 같은 값.
  • USB Live 이미지로 부팅하여 설치를 진행한다.
  • 거의 자동으로 모든 설정을 해주기 때문에 언어와 시간대(Timezone) 정도만 설정하면 된다.

package 저장소 변경

  • pamac-manager (소프트웨어 추가/제거) 를 실행하고 환경 설정에서 공식 저장소 미러 서버를 South_Korea로 변경한다.

guake 설치

  • Guake 를 설치하고, Super+` 로 단축키 지정.
sudo pacman -S guake
  • XFCE 설정 → 세션 및 시동 → 프로그램 자동시작/usr/bin/guake 추가

XFCE Whisker Menu 단축키 변경

  • XFCE 단축키 Shortcut 를 참고 하여 변경하되 가장 먼저 xfce4-popup-whiskermenu 의 기존 단축키를 삭제하고 Super+ESC로 변경한다.
  • 이를 해야 Super 단축키를 사용하는 다른 기능들이 작동한다.

sudo 설정

  • /etc/sudoers.d/100-my-no-password 파일 생성 후
    %wheel  ALL=(ALL)       NOPASSWD: ALL # 비밀번호 없이

XFCE Error

Failed to execute child process “/usr/lib/xfce4/exo-1/exo-helper-1 (no such file or directory)
sudo pacman -S xfce4-gtk3 
# yes to the following
> thunar-volman-gtk3 and thunar-volman are in conflict. Remove thunar-volman? [y/N]
 
sudo reboot

ᅟbash 기본 설정

~/.bashrc에 다음 추가

set -o vi
export PATH=/home/kwon37xi/.local/bin:$PATH
  • git용 Bash Prompt 설정

Input Method installation

nimf

pamac build nimf
 
# or
git clone https://aur.archlinux.org/nimf.git
makepkg -si
  • ~/.xprofile
    export GTK_IM_MODULE=nimf
    export QT4_IM_MODULE="nimf"
    export QT_IM_MODULE=nimf
    export XMODIFIERS="@im=nimf"
    nimf
  • restart X or reboot
  • nimf 설정에서 불필요한 언어를 비활성화 처리한다.
  • 한국어 설정에서 한국어/시스템 키보드 변환을 Shift-SpaceHangul로 설정한다.

fcitx-hangul

  • 설치
    sudo pacman -Syu fcitx-hangul fcitx-gtk3
  • ~/.xprofile
    export GTK_IM_MODULE=fcitx
    export QT_IM_MODULE=fcitx
    export XMODIFIERS=@im=fcitx

yay 설치

  • AUR Arch User Repository을 편하게 사용하기 위한 yay를 설치한다.
  • GUI를 이용할 경우 이미 Manjaro의 pamac manager에서 잘 지원해주고 있으나, 명령행으로 변경한다.
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
cd ..
rm -rf yay

or

pamac build yay

한국어 글꼴 설치

  • adobe-source-han-sans-kr-fonts본고딕을 의미하는 듯.
  • ttf-ms-fonts 는 MS Windows 를 통해 많은 외국인들이 사용하는 Arial, Times new roman, Courier 등의 글꼴을 설치한다.
  • 나는 다음과 같이 기본 설치한다.
sudo pacman -S noto-fonts-cjk adobe-source-han-sans-kr-fonts ttf-baekmuk
yay -S aur/spoqa-han-sans \
    aur/ttf-d2coding \
    aur/ttf-nanum \
    aur/ttf-nanumgothic_coding \
    aur/ttf-kopub \
    aur/ttf-kopubworld \
    aur/ttf-unfonts-core-ibx \
    aur/ttf-neodgm \
    aur/ttf-ms-fonts
  • XFCE와 브라우저의 기본 글꼴을 Noto Sans CJK KR, Noto Serif CJK KR과 Monospace 는 D2Coding 위주로 변경한다.
  • 한글 기본 글꼴 비교

Firefox 설정

  • FF 68현재, Linux/Mac에서 Mouse Gesture 확장기능이 작동하려면 ui.context_menus.after_mouseup = true 설정 필요.
    • /usr/lib/firefox/distribution/distribution.ini에서 아래 항목 삭제하고 원하는 페이지로 환경설정에서 지정
      browser.startup.homepage="https://manjaro.org/"
    • 문제는 이 항목이 Firefox 업데이트 할 때마다 다시 생긴다는 점. 아래 스크립트로 FF 업데이트 후 변경해줘도 됨. about:home 대신 다른 값 가능.
      sudo sed -i "s|https://manjaro.org/|about:home|1" /usr/lib/firefox/distribution/distribution.ini

Google Chrome 설치

yay -S aur/google-chrome

Manjaro Settings Manager - 만자로 설정 관리자 및 모니터 설정

  • Manjaro Settings Manager - 만자로 설정 관리자 를 통해 하드웨어 드라이버등의 통합 설정을 손쉽게 지원한다.
  • non-free 그래픽 카드 등의 하드웨어 설정
  • 언어 패키지 - 한국어 패키지 설치
  • 커널 설치
  • 시간/날짜 설정
  • XRandr 로 모니터 설정. 이미 설치 돼 있음.

GVim Editor 설치

sudo pacman -S gvim

듀얼 부팅 일 경우 Windows 파티션 연결

  • 나의 Lenovo Thinkpad E550 Dual Booting 파티션 설정
  • sudo blkid로 UUID 확인
    /dev/sda4: LABEL="Windows8_OS" UUID="3ED80E52D80E093B" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="c76ee1af-b509-4b2b-90bf-ae912ae38735"
    /dev/sdb1: LABEL="DATA" UUID="536BCDA326007C64" TYPE="ntfs" PARTUUID="78000000-01"
  • /etc/fstab 에 다음 추가
    UUID=536BCDA326007C64	/mnt/data     ntfs-3g    defaults,umask=007,fmask=111,gid=46,uid=1000	0       1
    UUID=3ED80E52D80E093B	/mnt/windows     ntfs-3g    defaults,umask=007,fmask=111,gid=46,uid=1000	0       1
  • 디렉토리 생성
    mkdir /mnt/windows
    mkdir /mnt/data
  • 마운트
    sudo mount /mnt/windows
    sudo mount /mnt/data

기본 디렉토리 연결

export DATA_HOME=/mnt/data
cd ~
rmdir 공개
ln -s "$DATA_HOME/Public" "공개"
rmdir 다운로드
ln -s "$DATA_HOME/Downloads" "다운로드"
ln -s "$DATA_HOME/Downloads" "Downloads"
rmdir 문서
ln -s "$DATA_HOME/Documents" "문서"
rmdir 비디오
ln -s "$DATA_HOME/Videos" "비디오"
rmdir 사진
ln -s "$DATA_HOME/Pictures" "사진"
rmdir 서식
ln -s "$DATA_HOME/Templates" "서식"
rmdir 음악
ln -s "$DATA_HOME/Music" "음악"

Dropbox / Google Drive

XFCE 설정

PC Speaker 끄기

  • XFCE의 경우 이곳 저곳에서 PC 스피커 삐 음이 계속 난다. 끄는게 낫겠다.
  • ~/.xprofile
    xset -b

swappiness 낮추기

  • 불필요하게 swap 이 발생하는 것을 막는다.
  • /etc/sysctl.d/100-majaro-less-swap.conf
    vm.swappiness=10
  • reboot

grub 부팅 timeout 줄이기

  • /etc/default/grub 에서 GRUB_TIMEOUT 값 줄이기
    GRUB_TIMEOUT=2
  • sudo update-grub 로 적용.

SSD TRIM 활성화

  • SSD 드라이브를 사용한다면 최적화를 위해 TRIM을 활성화한다.
sudo systemctl enable --now fstrim.timer

systemd 에러 확인

# 에러가 났는지 확인
sudo systemctl --failed
 
# 자세한 메시지 확인
sudo journalctl -p 3 -xb

개발 환경 설정

참조

linux/manjaro/install.1564407814.txt.gz · 마지막으로 수정됨: 2019/07/29 22:43 저자 kwon37xi