Skip to content

Instantly share code, notes, and snippets.

View joyk50's full-sized avatar

JoyK joyk50

  • Ailys Frontier
View GitHub Profile
@joyk50
joyk50 / linux_dm_fail.md
Last active May 15, 2020 00:51
Arch linux에서 nvidia driver 업데이트 후 DM fail 뜨는 현상

Arch linux에서 nvidia driver 업데이트 후 DM fail 뜨는 현상

  • 증상: 멀쩡히 작동하던 컴퓨터가 재부팅을 했는데, 디스플레이 매니져 failed 가 뜨면서, 부팅이 되지 않음, 재부팅을 해도 커서만 껌뻑임.
  • 원인:
    • DM 설정 깨짐.
    • 멀티 GPU상에서 더 많이 발생하는 것 같음
  • 해결:
    • 켜진 상태에서 전원 선을 뽑았다가 다시 꽂아야 복구모드에 빠질 수 있는 메뉴(GRUB)가 나옴
    • tty 모드(ctrl+alt+F2) 접근
  • lightdm, xorg 관련 패키지들을 지웠다가 다시 깜
@joyk50
joyk50 / yaourt.md
Last active June 8, 2020 08:11
Arch linux yaourt (AUR) 설치

yay 를 추천합니다.

sudo pacman -S yay

Arch linux yaourt (AUR) 설치

ref: https://archlinux.fr/yaourt-en/

  1. 필요 소스코드 다운로드

git clone https://aur.archlinux.org/package-query.git && git clone https://aur.archlinux.org/yaourt.git

@joyk50
joyk50 / Arch_nvidia_driver.md
Last active December 18, 2020 10:56
Arch Linux NVIDIA Driver installation 및 이후 작업

Arch Linux NVIDIA Driver installation 및 이후 작업

Ref: https://wiki.archlinux.org/index.php/NVIDIA

  • 증상

    • Manjaro와 같은 아치리눅스 설치 후 nvidia드라이버를 설치(sudo pacman -Syu nvidia)하면 화면이 검기만 함
    • 재부팅을 해도 로그인 화면이 나올 타이밍에 까만 화면만 업나오거나 커서만 깜빡인다.
  • 원인

    • 그래픽 드라이버는 제대로 설치 되었는데 셋팅 파일이 수정이 안되서 생기는 문제
@joyk50
joyk50 / zsh_autosuggestions.md
Last active May 15, 2020 00:41
zsh autosuggentions plugin 설치
@joyk50
joyk50 / ssh_no_password.md
Last active May 15, 2020 00:35
패스워드 없이 ssh 연결 설정하는 법 (public key 이용)

SSH connection without password

Client

ssh-keygen -t rsa

If you don't want set (rsa) password, then push enter twice.

cat ~/.ssh/id_rsa.pub
@joyk50
joyk50 / CRD_on_Ubuntu_18_04.md
Last active October 1, 2021 19:13
Ubuntu 18.04 LTS 에서 Chrome Remote Desktop 설정
@joyk50
joyk50 / gist:e73a24155c446c6f4cfbc8da06e595f8
Created April 17, 2019 11:55
Docker container 내부 systemctl 작동 문제
에러메세지: Fained to get D-Bus connection : No connection to service manager
해결방법:
1. 컨테이너 run 옵션에 command /sbin/init 로 실행
2. Dockerfile 만들때 CMD ["/"]
참고: https://m.blog.naver.com/alice_k106/220395077738
@joyk50
joyk50 / gist:ac497334ff146bb0fc5a1daad7a53323
Created March 17, 2019 09:43
[Linux on Dex] Permission Error on apt update
Processing triggers for initramfs-tools (0.122ubuntu8.14) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-137-generic
WARNING: missing /lib/modules/4.4.0-137-generic
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.4.0-137-generic: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
cat: /proc/cmdline: Permission denied
Label cloudimg-rootfs not found in /dev/disk/by-label
Warning: root device LABEL=cloudimg-rootfs does not exist