1-1. 크롬 설치를 위한 환경설치
sudo apt-get update &&
sudo apt-get install -f &&
sudo apt-get install xvfb xserver-xorg-video-dummy xbase-clients libutempter0
1-2. 크롬설치
sudo dpkg -i chrome-remote-desktop_current_amd64.deb
2. 편한 설정을 위한 gedit 설치
sudo apt install -y gedit
3. 원본 파일 들어가기
sudo gedit /opt/google/chrome-remote-desktop/chrome-remote-desktop
4-1. FIRST_X_DISPLAY_NUMBER 확인 및 수정
printenv DISPLAY
이게 :0이라면
FIRST_X_DISPLAY_NUMBER = 0
4-2. get_unused_display_number 함수 수정
#while os.path.exists(X_LOCK_FILE_TEMPLATE % display):
# display += 1
을 수정해준다. ( 1457~1458 줄 )
@staticmethod
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
4-3. def get_unused_display_number 함수 아래의 while문 두 줄을 주석 처리
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._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()
display = FIRST_X_DISPLAY_NUMBER
self.child_env["DISPLAY"] = ":%d" % display
self.server_inhibitor.record_started(MINIMUM_PROCESS_LIFETIME,
backoff_time)
self.session_inhibitor.record_started(MINIMUM_PROCESS_LIFETIME,
backoff_time)
이제 재부팅 해면 된다.
만약 여기서 다음의 오류가 나온다면
base) zang@zang-K:~$ sudo systemctl status chrome-remote-desktop@$USER.service
[sudo] zang 암호:
× chrome-remote-desktop@zang.service - Chrome Remote Desktop instance for jun>
Loaded: loaded (/usr/lib/systemd/system/chrome-remote-desktop@.service; en>
Active: failed (Result: exit-code) since Tue 2025-12-02 15:00:10 KST; 1min>
Duration: 3.400s
Process: 2391 ExecStart=/opt/google/chrome-remote-desktop/chrome-remote-des>
Main PID: 2391 (code=exited, status=1/FAILURE)
CPU: 6ms
12월 02 15:00:07 zang-K systemd[1]: Started chrome-remote-desktop@zang.serv>
12월 02 15:00:07 zang-K (-desktop)[2391]: pam_unix(chrome-remote-desktop:sess>
12월 02 15:00:10 zang-K systemd[1]: chrome-remote-desktop@zang.service: Mai>
12월 02 15:00:10 zang-K systemd[1]: chrome-remote-desktop@zang.service: Fai>
원격에서 devian으로 등록하는 절차를 안했다는 것이다.
참고 사이트:
우분투 22.04 크롬 원격 데스트톱 설정
기존 인터넷 글들이 모두 컨C컨V 양산글이므로 직접 4시간 삽질해 25/11/04 기준 우분투 22.04에서 원격 데스트톱 설정 방법을 남긴다.읽고 적용하면 무.조.건 된다. 안되면 댓글을 남겨라이슈는 크
velog.io
https://foxheadstudio.tistory.com/64
우분투에 Chrome Remote Desktop 설치하기
우분투에 크롬 데스크탑을 설치하면, 원격 접속하는 PC에서 검은 스크린에 'select a session to launch within your chrome remote desktop environment'라는 문구만이 뜬다. 구글링을 통해 문제를 해결했는데, 일련
foxheadstudio.tistory.com
'개인용' 카테고리의 다른 글
| Self Attention in transformer (0) | 2025.12.14 |
|---|---|
| Why are Transformers replacing CNNs? (0) | 2025.12.14 |
| Quantization, ‘가벼운’ AI 모델 구현을 위한 핵심 기술 (0) | 2025.11.26 |
| Kaggle 마스터 달성 (0) | 2025.10.06 |
| kaiber.biz (0) | 2025.08.25 |