Remote desktop in Ubuntu. Remote graphical access to ubuntu via VNC. XRDP Remote Desktop on Linux

July 28

New versions of Ubuntu already have a built-in VNC server. We will use it standard means. While I was understanding this issue, I had to read a decent number of forums. So, many users write that in version ubuntu 14.04 this trick does not work due to some internal subtleties of the kernel structure. I didn’t go into this question deeply... in any case, if suddenly you are the happy owner of this particular version, you can use the alternative x11vnc server.

It is installed quite simply:

Sudo apt-get remove vino sudo apt-get install x11vnc

In the same article, we will look at the standard VNC server already included in ubuntu by default. How to set everything up?

Let's connect to the remote host.

Connect via ssh to remote computer, which we want to access graphically. At the same time, we must know its ip and login with the password of the user whose screen we want to see. In fact, the data of any user with sudo rights will suit us, but then we will have to adjust some points.

So, let's say in local network we have a computer running ubuntu with ip address 10.20.0.30 and user feanor184. We connect to it from the console with the -X key (to launch graphic X):

Ssh -X [email protected]

enter the password and get into the console of our remote computer.

Now, enter in it:

Sudo vino-preferences

and see the graphic window

Check the boxes here:

allow other users to view your desktop — We allow you to view your desktop.

allow other users to control your desktop — We allow you to control the mouse and keyboard remotely.

require the user to enter this password — Be sure to set a password for the connection. How many people are surfing our network?

show notification area icon: always — We always display the vnc icon at the top of the screen in the tray.

You can also set your own settings - my settings are described here)

Save the settings and disconnect from the remote host.

To connect to the configured computer, we use any client with vnc support.

For example, Remmina is for Linux.

UltraVNC Viewer - for Windows.

Let me remind you once again that in order for the described connection settings to work, the remote computer must be running Ubuntu OS. Installing ubuntu is a separate topic that I would not like to focus on here, so we will skip this step. There are many manuals on this topic on the Internet.

What do we end up with?

We were able to connect to a remote computer running ubuntu and perform any operations on it as if we were sitting at its monitor.

The target is to connect from Windows/Linux to a remote desktop in Ubuntu Linux. To be honest, I tried quite a lot of options, and this is what I finally came to. Everything is described here quite well step by step (in Anglo-Saxon). Lately More and more often I hear that in troubled times, a remote workspace on your own VPS/VDS is our everything. How to configure it? What can you read or smoke with this content? Or maybe there is a simple ready-made solution? Also, I see that VPS/VDS offices now provide such a feature as a remote desktop. But as I understand it, they do this purely as an addition to more convenient management of their virtual server? Is it possible to just use ubuntu, firefox, and cut in packman? I'm interested in simplest setup on an average VPS with regular Ubuntu and the ability to work with it remotely (conditional desktop screen). I have poor console skills, but I am very familiar with a wide variety of Linux systems (at one time I even had a hobby - finding the ideal Linux distribution from the point of view of an ordinary person).

This is the parent program for TigerVNC, but contains the least amount of options. However, the application can automatically detect VNC servers, simplifying and speeding up the connection. Select Options and you can resize the window to fit your monitor, run in full screen mode, and override the default compression settings to force display of more than 256 colors.

RealVNC is a standalone software for connecting to computers using the VNC protocol. After downloading, the user must open a terminal, go to the directory with the program and set the rights chmod access 700 to launch the application.

Connecting is quick and easy, but productivity lags behind other VNC viewers in this test. There were significant slowdowns when working with the desktop and when starting Armegatron, which were estimated at about half a second. Technological processes matrix rasterization or dithering made it difficult to work with when glitches occurred, this was observed a few times during testing. Similar problems were observed with copies of RealVNC, which include fewer options.

TigerVNC appears to be a separate branch of the VNC codebase, and therefore contains code sections from RealVNC and TightVNC, although the development of the latter continues. Thus, RealVNC suggests a less efficient version of TigerVNC and did not work the best in the studies. Perhaps support for streaming audio would improve the opinion of the product. However, in case of unexpected circumstances, a portable standalone client will be a good option.

TeamViewer Remote Desktop Client

Establish inbound and outbound remote connections for real-time support or access to other computers. Take part in conferences and presentations, chat with other users or groups of users, and also make video calls. A few seconds after loading and the devices of this software You will be able to start your own first session. Anyone system administrator I have to repair computers not only at work, but also in my free time. For some, such work is an additional source of income, but for others it is impenetrable and constant suffering.

To make life easier for both types of system administrators, Team Viewer has released a program of the same name for remote access k, which works on all popular OS. By and large, the creators of the software product almost set the standard for remote control of computers. It is noteworthy that for non-commercial purposes the utility appears to be completely free.

All you need is to download and install the program on both computers, and all settings will be selected automatically.

Most users will find it most convenient to use the TeamViewer client. IN this material We will only talk about the most basic capabilities and how to quickly install and run the program. This article talks about its capabilities in more detail. It is noteworthy that if you intend to manage some computers on a regular basis, you can avoid constantly entering their IDs after the registration procedure.

XRDP Remote Desktop on Linux

Recently I had the opportunity to work with the operating room Linux system, although I have worked and work on Windows all my life and do not think, like many Linux fans, that Windows is worse than Linux and vice versa. Arguing about what is better is possible endlessly, so I will say one thing - “to each his own.” And when I started working with Linux, I first had to work in the console via SSH. Maybe I’m “hopeless”, but, in my opinion, this is not an option. Then I started looking for other solutions. In order not to bother my head, I decided to go simple and find an analogue of RDP, which is available by default in . My search did not take long, and I found a solution.

As a result, I was able to control the computer with operating system Linux from PC to Windows via built-in Windows RDP.

To make this possible, we need to install the XRDP program on a computer running the Linux operating system. I installed it on Debian, I think for other Unix systems as well similar systems there is this program. After installation, the program will automatically go down. Now we launch RDP on Windows and connect via RDP to a computer running Linux. Let's enjoy it. If you are not satisfied with RDP, then you can install the program for remote control from NoMachine (nomachine.com), which is free and can be installed on Windows, Linux, Mac OS X, Android, iOS.

Remote desktop via Remmina

Well-designed templates work perfectly both on a small laptop and on a huge monitor. The minimalistic home screen contains a dashboard and a list of available connections. After connecting, a new window appears showing the remote desktop. Few connections can be controlled using named tabs.

The healthy panel controls remain visible throughout the connection, allowing you to very quickly scale the window to fill the available monitor space, switch to full-screen viewing mode, or simply change the horizontal or vertical scale of the window separately. Please note that you will have to download and install additional works of the scientific society, including VNC using plugins.

Remmina doesn't appear to be an official client, but it certainly looks very much like a Gnome desktop with GTK styling.

Unlike individual clients, you won't get very granular control over protocol parameters such as compression, but you can still select color modes and switch between four feature levels, which is a smart way to manage network bandwidth and CPU usage. Managing and bookmarking connections is intuitive, although there is no auto-discovery feature.

In terms of responsiveness, Remmina hits the spot high performance During testing in the Armegatron game, it was not easy to distinguish the game running on a remote PC from the local machine. Remmina does not provide chat or file transfer functionality for basic VNC connections, but this functionality is present for RDP links, which are also supported by the client in conjunction with NX (NoMachine NX and Free NX), XDMCP and SSH, which makes Remmina an all-in-one client with support for a wide range of applications. set of protocols.

In this article, we looked at how to set up a remote desktop for Linux, as well as how to access it with the support of other devices. Everything is very simple, even easier than with the same rdp, for which you need to create several configuration files.

" and soon after that I was asked to tell how to do the same thing, but in reverse - from Windows to Linux. At first glance it may seem that the task is not easy, but in fact, it is very easy.

Readers may have a question - why is this even necessary? The answer is simple - in order to have a single point of administration. After all, how much time is usually spent running between computers in an attempt to solve a problem! You already know how to connect to computers running Windows control from Linux, and after reading this article, you will be able to connect the other way around - from Windows to Linux, and this will greatly facilitate your task of administering a local network. So let's get started.

Assumptions

In my article, I assume that your local network already has correctly functioning computers running . To make things easier, I'll use the 192.168.1.x scheme. It is much more convenient to use static IP addresses, otherwise you will have to spend extra time finding out the address of the desired computer.

Software

You only need two applications:

On a computer under Linux control for use as a VNC server;
on a Windows computer for use as a VNC client.

Installing TightVNC is very easy - just download the installer and double-click it to run. But the process of installing applications in Linux for many Windows users not so obvious.

Of course, it all depends on what type of Linux distribution. But in general terms the sequence of actions is as follows:

1. Run the program install/remove tool - Synaptic, Ubuntu Software Center, gnome-packagekit, etc.
2. Type "x11vnc" (without quotes) in the search bar.
3. Check the packages to be installed.
4. Click the Apply button to begin installation.

Those who are used to working from command line, can install the application as follows:

1. Open a terminal.
2. Run a command like sudo apt-get install x11vnc - depending on what distribution you have.

After installation is complete, you can begin connecting.

On a computer running Linux

Everything is quite simple here - you just need to start the x11vnc server. In the help for this utility, which can be called with the command man x11vnc, a list is provided available options. I would recommend using the option -forever- without it, the server will shut down immediately after the client session ends. So the command to be executed in the terminal should look like this:

X11vnc -forever

The next command prompt will not appear after this, even if you use the & character. Therefore, it is worth adding the line x11vnc -forever at the end of the file " /etc/rc.local"so that the server starts every time the system starts.

On a Windows computer

Now let's make the connection. Run installed in Windows utility TightVNC from the Start menu. The image shown in Fig. A window in which you need to specify the address for connection. From here you can call up the Options dialog box.

Figure A: Select the Connection Profile that best suits your connection type.

There are a number of options available in the settings window (Figure B), but if you don't need any special configuration, you can leave the default values.


Figure B. TightVNC can be connected in View mode - then the session will not be interactive. This is a good option for a test connection.

Once you have configured all the settings, click the Connect button to connect to the remote desktop (Figure C). The connection speed depends on the network bandwidth, but overall TightVNC is a very workable solution.