Linux how to share screen

Share your desktop

You can let other people view and control your desktop from another computer with a desktop viewing application. Configure Remote Desktop to allow others to access your desktop and set the security preferences.

You must have the GNOME Remote Desktop package installed for Remote Desktop to be visible.

  1. Open the Activities overview and start typing Sharing .
  2. Click on Sharing to open the panel.
  3. If the Sharing switch in the top-right of the window is set to off, click to switch it on.

If the text below Device Name allows you to edit it, you can change the name your computer displays on the network.

Security

The Authentication section displays the login credentials to be used in the client software on the connecting device.

Use the suggested value or enter your own.

Use the suggested value or enter your own.

Click the button next to each entry if you want to place it in the clipboard.

Click the Verify Encryption button to display the encryption fingerprint. Compare it with the value displayed by the client when connecting: they should be identical.

Connecting

The How to Connect section displays the Device Name and Remote Desktop Address that can be used on the connecting computer. Click the button next to each entry if you want to place it in the clipboard. A connection can also be made using your IP address .

When the other computer is successfully connected to your desktop, you will see the Screen is being shared icon, in your system status area.

Clients

To connect to your desktop from another computer, the following clients are known to work.

  • Remmina , a GTK client, is available as a package in most distributions, and also as a flatpak . Use default settings, particularly Color depth ‘Automatic’ in the connection profile settings.
  • xfreerdp is a command line client available as a package in most distributions. The option /network:auto should be passed to the client on the command line.
  • Thincast is a proprietary client. The Linux version is available as a flatpak . Default settings are recommended.

Stop sharing your desktop

To disconnect someone who is viewing your desktop:

  1. Click the system menu on the right side of the top bar.
  2. Click Screen is being shared .
  3. Click Turn off .

Advanced Topics

The grdctl utility allows you to configure your host settings in a console window. For usage details, type grdctl —help .

H.264 video encoding heavily reduces bandwidth. GNOME Remote Desktop will use H.264 when: the graphics pipeline is used (a requirement of the protocol), the client supports it, and NVENC (NVIDIA’s encoder) is available.

More Information

  • Sharing — Share your desktop, files, or media.
  • Sharing Settings — Share your screen, or share media and other files over a local network or Bluetooth.
Читайте также:  Особенности файловой системы linux

You can choose the displayed language by adding a language suffix to the web address so it ends with e.g. .html.en or .html.de.
If the web address has no language suffix, the preferred language specified in your web browser’s settings is used. For your convenience:
[ Change to English Language | Change to Browser’s Preferred Language ]

The material in this document is available under a free license, see Legal for details.
For information on contributing see the Ubuntu Documentation Team wiki page. To report errors in this documentation, file a bug.

Источник

How to enable Screen Sharing on Ubuntu 22.04 LTS

The screen sharing feature of Ubuntu 22.04 falls under the Virtual Network Computing phenomenon. Screen sharing allows you to access the screen of the other machines via the IP address or the server name.

Screen Sharing allows you to interact with the other machines to view and perform some operations on the machines. This article provides a step-by-step procedure to enable screen sharing on Ubuntu 22.04.

Prerequisites

For screen sharing on Ubuntu 22.04, it is recommended to have a VNC desktop client on the client machine whereas the server machine must contain the VNC server installed on it. Ubuntu 22.04 provides Remmina as the desktop client VNC (by default).

To install Vino, use the following command:

Note: If you could not find Remmina on the machine (which will be used to control the host), you can get it as follows:

How to enable Screen Sharing on Ubuntu 22.04

Ubuntu 22.04 provides built-in support for screen sharing which can be enabled by following the steps provided below:

Step 1: Click on the power off icon and navigate to “Settings“:

Step 2: Look for the “Sharing” option on the left pane:

A toggle button can be observed in the menu bar which is turned off by default. Turn it ON to enable the sharing feature on Ubuntu 22.04. You will observe that the default state of “Remote Desktop” and “Media Sharing” can be changed as well.

Click on the “Remote Desktop” to enable the screen sharing facility on Ubuntu 22.04. Once you click on the “Remote Desktop“, the following window will appear:

– Choose the checkbox of “Enable Legacy VNC Protocol” which describes the access type in the following two manners:

– New Connections must ask for access: This method will only grant permission from the target system.

– Require a Password: This method will ask you to enter the name and password of the device you want to connect to (we have selected this method).

– Turn ON the toggle button of “Remote Control” access

– Remember the “Device Name“, the “Remote Desktop Address“, and the “VNC Address” to connect to this machine remotely:

– Moreover, the following “Username” and “Password” will be asked to connect with this machine:

The screen sharing is enabled on Ubuntu 22.04 successfully.

How to access the Ubuntu 22.04 remotely

Once you have enabled screen sharing on Ubuntu 22.04. Now, you can use any VNC client such as Remmina, VNC viewer, or Vinagre to connect to your Ubuntu 22.04 remotely. We are using Remmina here to connect to our Ubuntu 22.04:

Читайте также:  Hacking network with kali linux

Step 1: Search for “Remmina” in the applications menu and open it:

Step 2: Choose “VNC” as the sharing protocol and enter the IP address of the machine you want to connect to:

After that, a password prompt will appear (if you have chosen the password verification as we did) as shown below. Enter the password of the remote machine and hit enter key to connect:

Finally, you will get access to the remote computer!

Conclusion

Screen sharing helps in interacting with another machine remotely. The screen sharing functionality works on the client-server working pattern. This post lists down the steps to enable screen sharing and use screen sharing on Ubuntu 22.04. Moreover, you have also learned how to connect to an Ubuntu machine remotely.

Источник

How to enable Screen Sharing on Ubuntu 20.04 LTS

VNC or Virtual Network Computing is a protocol used to access your computer’s graphical desktop environment and control it from a remote computer.

This article will show you how to install the VNC server on Ubuntu 20.04 LTS and access it from a remote computer. So, let’s get started.

Installing VNC Server on Ubuntu 20.04 LTS:

This article will use the GNOME desktop environment’s built-in Screen Sharing feature to access the Ubuntu 20.04 LTS graphical desktop environment remotely. The GNOME desktop environment uses the Vino VNC server to implement the Screen Sharing function.

The Vino VNC server might not be installed on your Ubuntu 20.04 LTS operating system by default. But it is available in the official package repository of Ubuntu 20.04 LTS. So, you can install it easily.

First, update the APT package repository cache with the following command:

The APT package repository cache should be updated.

To install Vino, run the following command:

To confirm the installation, press Y and then press Enter>.

Vino should be installed.

Enable Screen Sharing on Ubuntu 20.04 LTS:

Once you have vino installed, you can enable Screen Sharing from the Settings app.

Open the Settings app from the Application Menu of Ubuntu 20.04 LTS.

Navigate to Sharing section and click on the toggle button as marked in the screenshot below to enable Sharing.

Once Sharing is enabled, click on Screen Sharing as marked in the screenshot below.

From the Screen Sharing window, click on the toggle button as marked in the screenshot below to enable Screen Sharing.

Screen Sharing should be enabled.

From the Access Options section, you can configure authentication methods for your VNC server.

New connections must ask for access: This is the default authentication method. When this authentication method is selected, you will get a prompt message every time a remote VNC client tries to access your computer. If you allow access to your computer, only then the remote VNC client can access your computer.

Require a password: In this method, you can set a password for the VNC server. The remote VNC client must enter the password to access your computer.

I prefer the password authentication method. So, I will set password authentication for the VNC server in this article.

To set a password for your VNC server, select Require a password from the Access Options section and type in your desired password in the Password textbox as marked in the screenshot below.

Читайте также:  Linux find list all files

Finding the IP Address of Your Computer:

Once you have Screen Sharing enabled, the person who wants to connect to your computer remotely needs to know your computer’s IP address.

You can find the IP address of your computer with the following command:

The IP address of my computer is 192.168.20.131. It will be different for you. So, make sure to replace it with yours from now on.

Accessing Your Computer Remotely with Vinagre:

This section will use the Vinagre remote desktop client to show you how to connect to your computer via VNC. But you can use other VNC clients as well.

The Vinagre remote desktop client may not be installed on your computer. If you need any help installing Vinagre on your Linux distribution, you can read the article How to Install Vinagre Remote Desktop Client on Linux.

First, open Vinagre remote desktop client from the Application Menu of your computer.

Once Vinagre is opened, click on Connect.

Now, select VNC from the Protocol dropdown menu, type in the IP address of your remote computer in the Host textbox, and click on Connect as marked in the screenshot below.

You will be prompted for the VNC password if you have configured password authentication as I did.

Type in your VNC authentication password and click on Authenticate as marked in the screenshot below.

You should be connected to your Ubuntu 20.04 LTS computer remotely.

Accessing Your Computer Remotely with VNC Viewer:

One of the most popular and cross-platform VNC clients is RealVNC’s VNC Viewer. The RealVNC VNC Viewer does not support the type of encryption that the Vino VNC server supports. So, to be able to access your Ubuntu 20.04 LTS computer remotely with the RealVNC VNC Viewer, you need to disable encryption for the Vino VNC server.

To disable encryption for the Vino VNC server, run the following command on your Ubuntu 20.04 LTS computer.

Once encryption is disabled, you can access your computer with the RealVNC VNC Viewer as usual.

To connect to your computer remotely with the RealVNC VNC Viewer, type in your computer’s IP address in the VNC Viewer app and press .

Click on Continue.

You will be prompted for the VNC password if you have configured password authentication as I did.

Type in your VNC server’s authentication password and click on OK as marked in the screenshot below.

You should be connected to your Ubuntu 20.04 LTS computer.

Conclusion:

This article shows you how to install the Vino VNC server on Ubuntu 20.04 LTS and enable Screen Sharing from the GNOME Settings app. I have also shown you how to configure authentication methods for the Vino VNC server from the GNOME Settings app and disable Vino VNC server encryption from the command-line. I have shown you how to access your Ubuntu 20.04 LTS computer remotely using the Vinagre remote desktop client and RealVNC VNC Viewer.

About the author

Shahriar Shovon

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 the demanding public engineering universities of Bangladesh.

Источник

Оцените статью
Adblock
detector