이전 블로그에서 이전 함 (원본 글 2013/03/13 작성)
Ubuntu를 설치하고 윈도우에서 원격 접속을 하려고 프로그램을 찾아봤는데
마땅히 맘에 드는게 없다.
그나마 간편하고 맘에 드는게 윈도우 보조프로그램의 원격 데스크탑 연결 이지만 copy & Paste가 되지 않아.. 좀 아니 많이 아쉽..
윈도우에서 Ubuntu의 application을 실행 할 수 있게 해준다.
뭐 Xmanager가 훨 좋지만 이건 공짜고 하니.
그럭저럭 쓸만한데 윈도우 조절 같은데 좀 불안정 할 때가 있음.
설치 및 설정
. 설치
Cygwin/X packages are located in the X11 category.
xorg-server (required, the Cygwin/X X Server)
xinit (required, scripts for starting the X server: xinit, startx, startwin (and a shortcut on the Start Menu to run it),startxdmcp.bat )
xorg-docs (optional, man pages)
X-start-menu-icons (optional, adds icons for X Clients to the Start menu)
You may also select any X client programs you want to use, and any fonts you would like to have available.
You may also want to ensure that the inetutils or openssh packages are selected if you wish to use telnet or ssh connections to run remote X clients.
|
. 연결
|
On your Windows machine:
Make sure you have the openssh package installed.
Launch Cygwin/X
Ensure the DISPLAY environment variable is set correctly. (This step is not neccessary if you are entering your commands into an X terminal, as DISPLAY must already be set in that case)
(안되면 export $DISPLAY=:0)
Run the ssh command to connect to the remote host:
$ ssh -Y username@remote_hostname_or_ip_address
|
Enter your password when prompted by ssh.
Your ssh session should now show you a shell prompt for your remote machine.
Note: The ssh server will automatically set the DISPLAY environment variable appropriately, typically to something likelocalhost:10.0, so clients will connect to a proxy X11 display on the remote host from which the X11 protocol will be forwarded over ssh to your X server.
If your login scripts unconditionally set DISPLAY to something else, this will break X11 forwarding.
You can now launch remote X clients in your ssh session, for example:
will launch an xterm running on your remote host that will display on your Cygwin/X screen.
Launch other remote clients in the same manner. I recommend starting the remote clients in the background, by appending & to the command name, so that you don't have to open several ssh sessions.
Note: By default, the OpenSSH server does not allow forwarded X connections. This must be configured on the remote host by adding X11Forwarding yes to the sshd_config configuration file. The OpenSSH server must be restarted or SIGHUP'ed to re-read the configuration file after it is changed.
Note: The OpenSSH server requires the xauth command to be available to forward X connections. Consequently, it must be installed on the remote host.
|
윈도우즈 원격 데스크탑 연결을 사용한 Xrdp serve로 연결
가장 빠르고 화면 표시가 깔끔하다.
해상도 조절도 잘되고 윈도우에서 전체 화면으로 이용해도 무리가 없다.
단점으로는
- 해상도 마다 connection이 생성되고
- 윈도우로 Copy & Paste가 안된다.
- 종종 원격 데스크탑이 focus를 받는 상황(as foreground window)에 떠 있는 상태에서 screen lock되어 login창이 뜨면 특정 키가 안먹을 때가 있음. => Windows key를 누른 다음 키 입력
- Ubuntu 12.4 LTS에서는 한글 자판 설정이 안된다. (source를 컴파일해서 설치 하던가 자판 파일 수정 필요)
설치 및 설정
sudo apt-get install xrdp
메뉴가 제대로 보이지 않을 경우...
echo "gnome-session --session=ubuntu-2d" > ~/.xsession
* 원격 데스크탑 내에서 D key를 누를 경우 창이 사라지는 문제 관련 해결 링크
VNC Server로 연결
사실 많이 써보진 않았는데 화면이 너무 느리다. client 마다 편차가 심해 한두번 깔아보고 안썼음.
리눅스에서 사용중인 screen을 공유할 수 있어 unique한 화면을 사용할 수 있는 것은 장점.
그리고 다양한 VNC viewer가 존재하고 VNC Server 기능은 기본으로 Ubuntu에서 제공한다.
VNC Viewer로 접속
1. Ubuntu에서 Remote desktop 사용 설정
Remote Desktop > Sharing > Allow other users to view your desktop > check
Security > Require the user to enter this password > check > password submit
2. 윈도우에 VNC viewer 설치
3. Ubuntu 주소를 설정하고 연결 (xxx.xxx.xxx.xxx:0)