This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
vnc_install [2021/08/26 00:14] vsaxena |
vnc_install [2021/09/05 03:13] (current) vsaxena [VNC Remote Connection Setup] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== VNC Remote Connection Setup ====== | ====== VNC Remote Connection Setup ====== | ||
| - | There are couple of different SSH Clients available for **Windows**. You can use either use Bitvise or Putty ssh clients. | + | There are couple of different SSH Clients available for **Windows**. You can use either use Bitvise or Putty ssh clients. |
| ===== Bitvise SSH Client ===== | ===== Bitvise SSH Client ===== | ||
| Line 28: | Line 28: | ||
| <code>vncserver :1</code> | <code>vncserver :1</code> | ||
| {{:wiki:vncserver1.png?500|}} | {{:wiki:vncserver1.png?500|}} | ||
| - | * **Note:** If multiple users try to use the same vnc port (:1 in that case) this could lead to a conflict between users. So we need to employ unique vnc port for every user. You could just let vncserver pick a number for you. However, you need to make sure you use the same exact number when configuring the port (5900+n) in the SSH client and VNC viewer. | + | * **Note: If multiple users try to use the same vnc port (:1 in that case) this could lead to a conflict between users. So we need to employ unique vnc port for every user. You could just let vncserver pick a number for you (say N). However, you need to make sure you use the same exact number when configuring the port (5900+N) in the SSH client and VNC viewer. ** |
| <code>vncserver</code> | <code>vncserver</code> | ||
| + | |||
| + | <note important> Please make sure you use the same exact number when configuring the port (5900+N) in the SSH client and VNC viewer. </note> | ||
| + | |||
| * You can also set [[https://www.thegeekdiary.com/how-to-change-the-vnc-server-resolution-in-linux/|VNC Server Resolution]] using the command below. You will need to change the target screen resolution as needed, say 1920x1080 or so. | * You can also set [[https://www.thegeekdiary.com/how-to-change-the-vnc-server-resolution-in-linux/|VNC Server Resolution]] using the command below. You will need to change the target screen resolution as needed, say 1920x1080 or so. | ||
| {{:wiki:vncserver2.png?500|}} | {{:wiki:vncserver2.png?500|}} | ||
| <code> vncserver -geometry 1920x1080 :1</code> | <code> vncserver -geometry 1920x1080 :1</code> | ||
| - | * Keep killing the unused vnc instances to reduce CPU/memory usage | + | * **Don't create new vncserver instances every time you log into the server. This will slow down the server. Either use the same instance that you picked the first time or kill your previous vncserver instance if you need to start a new one**: |
| <code>vncserver -kill :<instance number></code> | <code>vncserver -kill :<instance number></code> | ||
| Line 41: | Line 44: | ||
| {{:wiki:vnc2.png?500|}} | {{:wiki:vnc2.png?500|}} | ||
| * After connecting and entering the VNC password you created when creating the server instance, the viewer should show the xwindows. | * After connecting and entering the VNC password you created when creating the server instance, the viewer should show the xwindows. | ||
| - | {{:wiki:vnc3.png?500|}} | + | {{:wiki:vnc3.png?800|}} |
| * You can use the saved connection profile from next time onwards. Figure out how to properly size the server instance to fit your screen. | * You can use the saved connection profile from next time onwards. Figure out how to properly size the server instance to fit your screen. | ||
| + | <note important>Do not create a new VNC server instance everytime you login. Just keep using the same vncserver instance </note> | ||
| ===== Remove Screensaver ===== | ===== Remove Screensaver ===== | ||