その先にあるもの…

구글 크롬 오류 해결 2개 본문

Linux_Raspberry

구글 크롬 오류 해결 2개

specialJ 2024. 3. 28. 10:01

 

1. 프로그램 설치 후 원격 엑세스 설정이 완료되지 않는 경우

  • 폴더 생성
mkdir ~/.config/chrome-remote-desktop

 

2. 원격으로 붙으면 검은 화면일 경우

 

우분투의 크롬의 GPU 가속 설정을 사용하지 않음으로 변경

 

settings - system - disable hardware eceleration

 

sudo usermod -a -G chrome-remote-desktop <username>

오류가 나면 무시하고 패스( 나는 오류 났었음 )

 

종료

/opt/google/chrome-remote-desktop/chrome-remote-desktop --stop

 

파일 백업

sudo cp /opt/google/chrome-remote-desktop/chrome-remote-desktop /opt/google/chrome-remote-desktop/chrome-remote-desktop.orig

 

디스플레이 수 확인

echo $DISPLAY

 

sudo vi /opt/google/chrome-remote-desktop/chrome-remote-desktop

 

echo $DISPLAY 값 입력

FIRST_X_DISPLAY_NUMBER = 1

 

def get_unused_display_number():
"""Return a candidate display number for which there is currently no
	X Server lock file"""
	display = FIRST_X_DISPLAY_NUMBER
	# 주석
	# while os.path.exists(X_LOCK_FILE_TEMPLATE % display):
	#   display += 1
	return display

 

def launch_session(self, server_args, backoff_time):
"""Launches process required for session and records the backoff time
	for inhibitors so that process restarts are not attempted again until
	that time has passed."""
	logging.info("Setting up and launching session")
	self._init_child_env()
	self.setup_audio()
	self._setup_gnubby()
	# 주석 처리 
	# self._launch_server(server_args)
	# if not self._launch_pre_session():
	#  # If there was no pre-session script, launch the session immediately.
	#  self.launch_desktop_session()
	# self.server_inhibitor.record_started(MINIMUM_PROCESS_LIFETIME,
	#                                  backoff_time)
	# self.session_inhibitor.record_started(MINIMUM_PROCESS_LIFETIME,
	#                                 backoff_time)
	# 추가
	display = self.get_unused_display_number()
	self.child_env["DISPLAY"] = ":%d" % display

 

/opt/google/chrome-remote-desktop/chrome-remote-desktop --start

 

 

참조 : https://velog.io/@tylee_yeonge/%EC%9A%B0%EB%B6%84%ED%88%AC%EC%97%90-%EA%B5%AC%EA%B8%80-%EC%9B%90%EA%B2%A9-%EB%8D%B0%EC%8A%A4%ED%81%AC%ED%86%B1-%EC%84%A4%EC%B9%98-%EB%B0%8F-%EC%98%A4%EB%A5%98-%ED%95%B4%EA%B2%B0-%EB%B0%A9%EB%B2%95#%EC%9A%B0%EB%B6%84%ED%88%AC-2204-lts-%EB%B2%84%EC%A0%84%EC%97%90%EC%84%9C-%EA%B2%80%EC%9D%80-%ED%99%94%EB%A9%B4%EB%A7%8C-%ED%91%9C%EC%8B%9C%EB%90%98%EB%8A%94-%EA%B2%BD%EC%9A%B0

 

'Linux_Raspberry' 카테고리의 다른 글

eclipse svn connector 설치  (0) 2024.03.28
gnome-connection-manager 주소  (0) 2024.03.28
Barrier 설치 ( synergy )  (0) 2024.03.28
ubuntu rabbitvcs 설치  (0) 2024.03.28
tar 제외하기  (0) 2023.01.10
Comments