디버그
[디버그] authorization required but no authorization protocol specified xhost: unable to open display: 0
Dong's Universe
2024. 12. 17. 15:15
아래 명령어로 bashrc에 들어간다.
vim ~/.bashrc
파일 끝에 아래를 복사붙여넣기하고 :wq를 입력하여 저장하고 나온다.
if [ -n "$DISPLAY" ]; then
xhost +si:localuser:$USER > /dev/null
fi
bashrc를 재로딩한다.
source ~/.bashrc