본문 바로가기

Ubuntu

우분투 원격접속

우분투 22 이상부터는 자체 OS에서 RDP를 이용한 원격접속기능을 제공하고 있다.

아래의 순서로 따라하면 Ubuntu측에서의 세팅이 완료된다.

 

Settings에서 Users Unlock

자동 로그인이 가능하도록 On

Screen Blanking과 자동 Screen lock 기능을 끈다

마지막으로 리모트 데스크답을 허용

접속 아이디/비번 확인해 주고,

리붓을 해주자. 출처는 https://linuxhint.com/enable-remote-desktop-ubuntu-access-windows/

 

How to Enable Remote Desktop on Ubuntu Desktop 22.04 LTS and Access it from Windows

Freelancer & Linux System Administrator. Also loves Web API development with Node.js and JavaScript. I was born in Bangladesh. I am currently studying Electronics and Communication Engineering at Khulna University of Engineering & Technology (KUET), one of

linuxhint.com

 

MacOS측에서 RDP에 접속하기 위해서는, App Store에서 Microsoft Remote Desktop App.을 사용하면 된다.

접속은 Ubuntu Computer의 아이피와 포트는 3389이다. 예를 들어, XXX.XXX.XXX.XXX:3389 이렇게 말이다.

3389는 RDP의 기본포트이며, Ubuntu에서도 3389를 사용한다. 그런데, 이 포트번호를 Ubuntu에서 변경하는 방법을 아직 알아내지 못했다.

이로 인하여, 기관에서 해킹방어를 위해 3389포트를 막는경우 접속이 어려워 질 수 있다. 이런 경우, 공유기의 Port Forwarding을 이용하여 우회가 가능하다.

예를 들어 외부에서는 다른 포트 XXX.XXX.XXX.XXX:1234로 공유기 접속 후, Port Forwarding으로 1234 포트를 3389로 공유기 내부 네트워크에서 돌려버리는 방법을 사용할 수 있다.

 

Display Driver와 관련해서, NVIDIA 그래픽 카드가 설치되어 있는 경우 X.Org X server (open source)를 쓰면 Mac으로 RDP 접속시 검은 화면이 나오는 경우가 있다. 이런경우 NVIDIA Driver로 바꾸어 주자. 나의 DELL Machine은 nvidia-driver-535 (proprietary, tested)를 사용시 올바로 작동 하였다.

 

그리고 Ubuntu 22.04 LTS에서 Bios에서 UEFI Security가 적용된 경우 MOK Password를 설정하여야 NVIDIA드라이버가 설치가 된다. 리누스 토르발스가 NVIDIA Fuckyou를 날린 이유가 이해가 된다.

 

=====

 

24.1.2 (추가사항)

가끔 다음과 같은 메세지를 날리며 RDP접속이 막히는 경우가 있다. 이는 우분투 log-in 패스워드와 keyring password가 동일하지 않기때문에 생기는 문제라고 한다. 나는 아직 keyring password의 개념을 아직 정확히 이해하지 못하고 있다.

The login keyring did not get unlocked when you logged into your computer

 

단지, 해결방법은 다음과 같다. ChatGPT는 위대하다.

Changing the Keyring Password to Match Login Password
Open Passwords and Keys (Seahorse):
Press Super (Windows key) and type "Passwords and Keys" to find and open the application.
Change Keyring Password:
Right-click on "Login" under "Password Keyrings".
Choose "Change Password".
Enter the old keyring password and then set the new password to match your login password.
Removing the Keyring Password (Less Secure)
Open Passwords and Keys (Seahorse).
Change Keyring Password:
Right-click on "Login" under "Password Keyrings".
Choose "Change Password".
Enter the current password and leave the new password fields blank. This will remove the password.
Confirm Warning:
You'll likely see a warning about storing passwords unencrypted. Confirm if you're okay with this risk.
Notes
Security: Be aware that removing the keyring password (making it blank) means your stored credentials (like Wi-Fi passwords and email account passwords) will be stored unencrypted on your disk.
Automatic Login: If you use automatic login (no password at startup), Ubuntu cannot unlock the keyring automatically. In such cases, setting a blank keyring password might be more convenient.
Keyring Password vs. Login Password: If you change your login password in the future, remember that it won't automatically update the keyring password.
If these steps don't resolve your issue, there might be other specific configurations on your system that are causing the problem. In such cases, seeking help from Ubuntu forums or community support might be beneficial.

'Ubuntu' 카테고리의 다른 글

TTY GUI전환  (0) 2023.08.01
파티션이 되어 있는 드라이브의 마운트  (0) 2023.07.24
Dependency 문제 해결  (0) 2023.05.09
Package 확인방법  (0) 2023.04.24
Linux에서 파일명 일괄변경 방법  (0) 2023.03.22