OS 환경 : Oracle Linux 7.7 (64bit)
DB 환경 : Oracle Database 11.2.0.4
에러 : Linux 7 Gui 실행 문제 No protocol specified
오라클 리눅스 7에 grid를 설치하기 위해 gui를 실행하려던 중 발생한 문제
root에서는 gui가 정상적으로 표시되는데 grid(일반유저)에서만 gui가 안되고 있었음
root 유저에서 xclock 실행
1
2
|
# xclock
Warning: Missing charsets in String to FontSet conversion
|
xclock gui 동작함
현재 DISPLAY 확인
1
2
|
# echo $DISPLAY
:0
|
:0임
grid 유저로 접속 후 실행
1
2
3
4
|
# su - grid
$ xclock
No protocol specified
Error: Can't open display: :0.0
|
gui가 나오지 않음
DISPLAY를 root와 동일한 :0으로 해도 안됨
1
2
3
4
|
$ export DISPLAY=:0
$ xclock
No protocol specified
Error: Can't open display: :0
|
해결 방법 : xhost 서버 접근 허용 처리
xclock가 없다면 테스트를 위해 설치
1
|
# yum install xclock -y
|
xauth이 설치되어있는지 확인
1
2
3
4
|
# yum install xauth -y
Loaded plugins: langpacks, ulninfo
Package 1:xorg-x11-xauth-1.0.9-1.el7.x86_64 already installed and latest version
Nothing to do
|
현재 설치되어 있음
root 유저로 grid 유저에게 xhost 권한 부여(로컬 x 서버 접근 허용)
1
2
|
# xhost +SI:localuser:grid
localuser:grid being added to access control list
|
추가됨
grid 유저로 xclock 재시도
1
2
|
$ xclock
Warning: Missing charsets in String to FontSet conversion
|
xclock gui 동작함
현재 xhost 허용 목록 확인
1
2
3
4
|
# xhost
access control enabled, only authorized clients can connect
SI:localuser:grid
SI:localuser:root
|
grid와 root 유저가 존재함
참고로 xhost + 라는 명령어로도 추가할수 있으나 보안상 좋지 않다고함
원인 : X 서버 접근 비허용 문제
현재 X 세션(gui를 실행 중인 사용자 root)이 grid 사용자에게 X 서버 접근을 허용하지 않았기 때문에 발생한 문제
본문 명령어로 추가해주면 정상적으로 사용 가능함
참조 :
'Linux, Unix > Trouble Shooting' 카테고리의 다른 글
Linux 8.7에 oracleasmlib 및 oracleasm-support 사용시 발생하는 에러 (0) | 2025.07.12 |
---|---|
Creating mailbox file: File exists (0) | 2024.07.30 |
[sss_cache] [sysdb_domain_cache_connect] (0x0010): DB version too old (0) | 2024.07.30 |
Oracle Linux 8 설치 중 An unknown error has occurred (0) | 2024.02.23 |
Entering emergency mode. Exit the shell to continue. (2) | 2024.01.18 |