Methods for remote access to Linux GUI. Remote graphical access to ubuntu via VNC Remote access to a Linux computer

💖 Do you like it? Share the link with your friends

Samba is effective method not only organizes the interaction of computers running Windows and Linux, but also in networks consisting only of Linux machines, it allows you to quickly organize shared access to resources. The Samba configuration file can be enormously long and have many parameters to consider, but in most cases far fewer settings are sufficient.

If we want to share ourselves and have access to files on other computers, then we need to install three packages:

sudo aptitude install samba smbclient smbfs

Let's create backup copy/etc/samba/smb.conf:

sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.backup

Now let's open the /etc/samba/smb.conf file for editing:

sudo nano /etc/samba/smb.conf

Clear and insert something like this:

workgroup = home

netbios name = linux--server

server string = linux_file_server

security = user

browseable = yes

path = /home/download

comment = download

readonly = No

path = /home/torrent

comment = torrent

readonly = No

path = /home/virtdiver/hdisk

comment = hdisk_250G

readonly = No

workgroup– this is the network name and must be the same for all computers.

netbios name – sets the NetBIOS name by which the Samba server will be accessible. By default, the first part of the computer's domain name is used.

server string- description of the computer, an analogue of a similar value in Windows.

security- determines access to shared directories.

security = USER- The client must first log in with an existing username and password. Note that the name of the requested resource will not be sent to the server until the server authenticates the client. This is why guest accounts do not work in USER mode, preventing the server from converting unidentified users into guests.

security = SHARE- When clients join a resource with security = SHARE they do not need to register with a valid username and password. Instead, clients send authentication information (passwords) to a specific resource when they want to access that resource. In SHARE mode, the user is not required to send his name, only his password.

security = SERVER - In this mode, Samba will try to determine the correct user/password pair by passing it to another SMB server, such as NT. If this fails, security = USER will work.

security = ADS- In this mode, Samba works as a member of the AD domain.

security = DOMAIN- In this mode, Samba will try to recognize the username and password by passing them to the primary or reserve domain Windows NT controllers, i.e. will do the same thing he would do Windows server N.T.

Note:I checked with the share and user parameters, in both cases there were no problems either when connecting to Windows 7 or when connecting from a machine running Linux, but with a PDA running WM 6.1 I was able to connect only in user mode.

browseable- whether you want to make all subdirectories of the shared directory available. This option can also be used separately for each shared directory.

path- path to the shared folder. In this particular example, the torrent folder (for uploading torrent files for the rtorrent program), download (for downloading uploaded rtorrent files) and the hdisk folder in which my external hard drive is mounted will be shared.

comment- a comment.

readonly- only for reading. Please note that Samba can limit user rights, but cannot expand system-defined rights. That is, if the shared directory does not have write permissions for everyone in the system itself, Samba will not be able to allow third-party users to write to it. However, if the directory has permissions 777, then by setting the readonly = Yes parameter you can limit write access for users connecting from the network.

guest ok = Yes- add if you want to make access without authorization. (In mode

security = USER will not work, see above)

We give rights to the folders:

sudo chmod 777 /home/torrent/ and similarly for others.

After completing the configuration, run the command:

testparm

it will automatically check the configuration file. After this, reboot Samba:

sudo /etc/init.d/samba restart

sudo smbpasswd -a virtdiver # add user to samba

In Linux we mount network folders like this:

sudo smbmount //192.168.1.33/hdisk/ /home/virtdiver/hdisk/ -o rw,iocharset=utf8,usermame=virtdiver,password=pass

sudo smbmount //linux--server/hdisk/ ~/hdisk/ -o rw,iocharset=utf8,usermame=virtdiver,password=pass

unmount:

sudo smbumount ~/hdisk

It is inconvenient to enter three such lines, so we write a script.

touch samba.sh

nanosamba.sh

write to the file:

#!/bin/bash

echo "Mount //192.168.1.33/hdisk/"

sudo smbmount //192.168.1.33/hdisk/ /home/virtdiver/hdisk/ -o rw,iocharset=utf8,usermame=virtdiver

echo "Mount //192.168.1.33/torrent/"

sudo smbmount //192.168.1.33/torrent/ /home/virtdiver/torrent/ -o rw,iocharset=utf8,usermame=virtdiver

echo "Mount //192.168.1.33/download/"

sudo smbmount //192.168.1.33/download/ /home/virtdiver/download/ -o rw,iocharset=utf8,usermame=virtdiver

We give execution rights to:

sudo chmod 755 samba.sh

let's launch.

There are a lot of programs for organizing remote access. There are paid and free programs, there are programs for different operating systems. It is clear that in this article we will not be able to consider everything at once, but we will talk about the most interesting of them, and most importantly, we will understand what is more effective for a particular task.

Radmin (shareware)

About ten years ago popular program for remote access there was Radmin, it still exists (www.radmin.ru) - it has not gone anywhere during this time. Let's start the review with it.

The program consists of two parts: Server and Viewer. The first one runs on a remote computer (or remote computers), and the second one runs on your computer and is used to connect to the remote machines that you are going to configure. On the developers' website you can download both the complete set and individual components. There is also a portable version of Viewer that works without installation, and a version of Radmin Server 3.5 NTI - this is a special version without a tray icon, that is, the user of a remote computer will not know that Radmin is installed on it until you start managing his computer.


I will note the key features: support for Windows 8 32/64 bit, support for switching user sessions in Windows XP/Vista/7/8, compatibility with Wine (Radmin can organize remote access to a PC running Linux control via Wine), Telnet support, remote PC shutdown, Radmin server scanner (allows you to find all the PCs that you can manage on your network), file transfer between Server and Viewer.

Conclusions:

  • The program's functionality includes its own authentication, voice chat support, and the ability to transfer files. Everything is very convenient.
  • Due to the fact that Server is installed on the remote computer, the presence of the user is not required, as in other similar programs. For example, you can administer the remote PCs of your colleagues when they go to lunch. In other similar programs, it is necessary either for the user to allow the connection, or for the user to provide you with a password, which is generated automatically with each communication session.
  • Low system requirements, the program does not load the processor at all, which is especially important for my old laptop with an AMD processor, which gets hot like an iron - it acted as a “remote” computer.
  • Just running Server is not enough; you also need to configure it.
  • Many users love TeamViewer not for its functionality, but because it does not require any special ports (it uses port 80 by default) and does not require any firewall settings. Radmin Server uses port 4899, and it will not be possible to run it without setting up a firewall.
  • No mobile clients.
  • Does not support other OS.

TeamViewer (freeware)

Nowadays, TeamViewer is probably the most popular remote access program. You can download it full version from www.teamviewer.com/ru and not pay a penny. For non-commercial use the program is absolutely free.


Rice. 4. TeamViewer is running

TeamViewer pleases with support for Windows, OS X, Linux, which was so lacking in Radmin. There are also mobile clients for Android, iPad/iPhone: you can control a remote computer from your iPhone. There is also a Portable version of the program for Windows, which is very useful for infrequent use of the program, and the Portable version can be run both on the “server” and on the “client”, unlike Radmin, where you can only run the client (Viewer) without installation, but the “server” part must be installed.

After starting the program, you will see the main TeamViewer window and the “Computers and Contacts” window (Fig. 4). If you plan to help all your relatives and colleagues at once, you can click the “Register” button, create an account, and then in this window you will see all the numerous computers that you have set up.


Rice. 5. TeamViewer in action

Now let's figure out what is what. If you need to connect to your computer, then you must provide the remote party with your ID (in this case 969 930 547) and password (8229). How to communicate, decide for yourself - you can copy and transmit these values ​​via Skype, ICQ, email, SMS, or simply dictate over the phone. This password changes every time the program is started. If the program is installed on your computer, you can make a permanent personal password, but I do not recommend it: the password can be compromised and then anyone can connect to your computer.

If you need to connect to a remote computer, then you need to enter the ID of the remote party (in this case 411108007) and click the “Connect to partner” button, after which the program will ask you to enter the password that you received from the remote party. That's all - in the window that appears, you can configure the remote computer (Fig. 5).

You've probably already noticed the main difference from Radmin: you need to give the password to the person setting up the computer, but in Radmin the password is specified when creating a user account. In other words, the user must be present at the computer. The question is, how can you organize a home office when you want to access your work computer from home, for example, at night? Everything is very simple. You need to organize TeamViewer autostart (for example, add it to the “Startup” group or register it in the registry in the Run key) and set a “Personal password”. Please note that you cannot set a personal password if the program is not installed on your computer, but is launched without installation.

There is one more program you should know about: TeamViewer Host. It runs as a system service and is used for 24/7 access to a remote computer, including logging in/out. It turns out that TeamViewer Host allows you to organize a terminal server, and it supports an unlimited number of clients for one server (the number of clients is limited only by the computing capabilities of your computer). It should also be noted that to install TeamViewer Host you need administrator rights, which are not always available, so in most cases you will still use regular TeamViewer. However, if you need to set up just one computer (or simply organize remote access to it, say, from home), then TeamViewer Host is not needed. For the sake of fairness, it should be noted that if a regular TeamViewer (not Host) is running on computer A, then computers B, C, D (the number three is given as an example) can connect to it for joint administration. Another thing is that it is necessary to coordinate the actions of administrators, since the keyboard and mouse are shared, but one can configure, the rest will observe.

Like Radmin, TeamViewer allows you to exchange files, voice and text messages, as well as remotely reboot the computer (the required command is in the “Actions” menu, see Fig. 5; simply rebooting the computer is not enough - because then the TeamViewer communication session will not be established, reboot When setting up a computer, you only need to use the “Actions” menu).

Conclusions:

  • Simplicity (the program is simpler than Radmin - a huge advantage for untrained users who will have to install it on the remote side).
  • The program does not require installation at all: both on the client and on the server. Installation is optional.
  • It works through port 80 (and some additional ports), so it does not require firewall configuration.
  • Availability of versions for other OS.
  • Availability of mobile clients for Android, iOS and Windows Phone 8 (that is, you can control a remote computer directly from your iPad).
  • Possibility of organizing interactive conferences (up to 25 participants).
  • Does not require administrator rights for remote access.
  • It loads the processor noticeably more than Radmin, my old laptop even overheated and turned off.
  • Although there are mobile clients, they are not very convenient (however, this is better than nothing).

Royal TS (shareware)

Once upon a time there was such a program - mRemote. I don’t know what happened there, but the mRemote project was closed, and the developers went and created another project - Royal TS. On the site you will find versions for Windows, OS X and iOS (can be run from iPhone and iPad).

In Royal TS, before creating a connection, you need to create a document, that is, one connection = one document. Royal TS documents are a very convenient thing; they can be transferred as regular files, for example to another admin. He will be able to open such a document and immediately connect to a remote computer without having to create a connection manually. The shareware version has a limit on the number of simultaneous open documents- ten. As for me, this is quite enough for non-commercial use of the program, so in practice you won’t even notice that you are missing something (unless, of course, you remotely administer a huge network of computers).

First of all, it must be said that this program is radically different from Radmin and TeamViewer. Both of these programs combine the functionality of both server and client (in the case of Radmin, server and client are different programs, in the case of TeamViewer - the same program). In other words, on one of the computers you can install Radmin Server or TeamViewer, and on the other you can use Radmin Viewer or TeamViewer, respectively, to connect to this remote computer. So, Royal TS is something like Radmin Viewer, that is, a program for connecting to a remote server, but you will have to create the server yourself. How you do it is your problem. Royal TS will not help you create such a server, but only let you connect to it.


Rice. 6. Royal TS for Windows

Among the protocols for connecting to a remote server that Royal TS supports: RDP, Telnet, SSH, Citrix, VNC. The RDP/Telnet/SSH and other servers themselves will have to be configured independently.

On the one hand, this is beyond the scope of the article, on the other hand, it would be incomplete if I did not give an example of setting up at least one of the servers that Royal TS supports. SSH/Telnet servers, I think, will not be very interesting to the reader. I want something graphic. Let's say we have Linux (Ubuntu or its clone) and need to configure a VNC server. To do this, first install the VNC server with the command:

Sudo apt-get install vnc4server

After that, you need to run it - for the first time without parameters:

Sudo vnc4server

When running the sudo vnc4server command, you need to enter a password that will be used to connect to this VNC server. The password itself will be saved in $HOME/.vnc/passwd. I won’t say another word - there is man :). After the first launch, you need to launch vnc4server, specifying the screen number:

Sudo vnc4server:3

Next, in Royal TS you need to create a new document (on the File tab), then go to the Edit tab and click the VNC button. In the window that appears (Fig. 7), you need to enter the display name (Display Name) - in our case: 3, the IP address of the VNC server and specify the port number (usually 5900). The password will be requested when connecting to the server.


Rice. 7. VNC connection parameters

Conclusions:

  • A universal client for connecting to a remote server using various protocols.
  • There are versions for Windows, OS X and iOS.
  • It is impossible to organize remote access using Royal TS alone; additional programs are needed.
  • Not suitable for remote configuration of computers for inexperienced users - they simply will not be able to configure the necessary remote access services.

Supremo: free and simple (freeware)

Let's analyze the situation. If you don’t like TeamViewer or cannot use it for some reason (including the need to purchase a license for commercial use), and Radmin is also not suitable for some reason, then you will have to look for analogues. Since the article talks about simple and free programs, then the following program must be: a) free; b) simple. This is the Supremo program, which can be downloaded from the website.

The program (Fig. 8) was created “in the image and likeness” of TeamViewer. It does not require installation, its operating principle is the same as that of TeamViewer, it even uses the same terminology (this is me regarding the partner ID and other inscriptions in the program interface).

The computer you are setting up and the support technician's computer must be running Windows only. Multiple editions of Windows are supported, including Windows 7 and Windows Server 2008 R2. ABOUT Windows support 8 and Windows Server 2012 nothing has been said on the official website yet.


Rice. 8. Supremo program

The algorithm for using it is simple: you need to run the program on both computers, then ask the remote party for its ID and password, and then click the “Connect” button. Before this, the remote party must press the “Start” button, otherwise the connection will not be allowed. Perhaps this is the only difference from TeamViewer.

To make the review more complete, let's go to the program settings (Tools -> Options). In the “Security” section (Fig. 9), you can configure automatic launch of the program, specify a password for remote connections, and indicate which IDs are allowed to connect to your computer.

Rice. 9. Supremo Security Options

In the “Connection” section (Fig. 10), you can specify the parameters of the proxy server, if it is present on your network.

Rice. 10. Supremo connection parameters

In addition to its direct purpose, namely remote computer control, the program can be used to exchange files. To exchange files (which is possible in two directions - both downloading and uploading) simply use drag & drop.

Conclusions:

  • Easy to use.
  • No installation required.
  • Ability to transfer files.
  • Chat option.
  • Does not require firewall configuration (uses HTTPS/SSL).
  • There is no support for operating systems other than Windows.
  • No mobile clients.

LogMeIn (freeware)

Let's look at one more useful program- LogMeIn (Fig. 11). The purpose of this program is the same as all the others discussed in this article - remote access. On the website logmein.com you will find several similar products, but we are primarily interested in the LogMeIn Free product. Its capabilities are quite sufficient for most purposes: access to a computer running Windows or OS X, remote control and viewing of the desktop, copying and pasting data between computers, reboot function, chat, support for multiple monitors, intrusion detection via SSL/TLS protocol, etc. requires configuration of firewall settings, does not require administrator rights on the remote computer.

Personally, I liked the functions of copying and pasting data between computers, as well as the reboot function: during the process of setting up the computer, sometimes you need to reboot it, after which the remote access session will be automatically restored, which is very convenient.

Unlike the Free version, the Pro version supports file transfer between computers, HD video, dragging and dropping files between computers and several other functions that are hardly worth paying almost 53 euros per year - that’s what the Pro version costs. A comparison of these two versions, as well as the OS X version, can be read at: https://secure.logmein.com/comparisonchart/comparisonFPP.aspx.

Rice. 11. LogMeIn main window

The way this program works is slightly different from TeamViewer and similar programs. It's a little more complicated, but apparently this is how the LogMeIn developers determine who uses the program and for what purposes. In the main window, select “from Mac or PC” and then you will see the sequence of actions that need to be performed to give another user access to this computer (Fig. 12). Grandfather and grandmother will definitely get confused and not appreciate it. You can’t do without registering on logmein.com; although it is free, in terms of convenience it is completely unnecessary.

Rice. 12. How to connect to this PC

There is, however, a simpler way - anonymous access through a browser. Quite an interesting feature that is not found in other similar programs. The idea is this: a user who wants you to set up his computer creates an invitation link, then sends it to anyone in a convenient way to you (by email, Skype, etc.). The invitation link is valid for a certain time (the time is set by the remote user), even if someone spies on the link, he is unlikely to be able to use it after the expiration date.

Let's look at how to create an invitation and how to use it. In chapter " General access to the desktop" current invitations are displayed. By clicking the “Send invitation” button, you can generate that same link. The New Invitation Wizard allows you to determine the duration of the invitation and how the invitation will be sent (you can send by e-mail link, or you can just get the link and send it manually).


Rice. 13. Management remote computer via browser

Then this link needs to be sent to the person who will be setting up the computer. When he copies it into the browser and opens it, he will see a screen similar to the one shown in Fig. 13. To continue, click the “Continue” button. After which the user who sent the link will receive two requests sequentially. The first request is a request to allow access to the guest, the second request is to grant access rights (Fig. 20). The guest can either fully control the computer, or only view the desktop without control.

Conclusions:

  • Does not require administrator rights.
  • Does not require firewall configuration.
  • Ability to use a browser for remote control.
  • Mobile clients.
  • A somewhat unusual operating principle.

Mosh (mobile shell): a good alternative for SSH

Mosh can also be used for remote console access (that is, you can execute commands remotely and see their results). The main advantage of Mosh over SSH is the ability to roam, that is, change the network on the client machine, which is useful on the road when the network can change (now it is cellular, in a few minutes - Wi-Fi, while the IP changes, but the connection remains). Frequently traveling admins will appreciate this. But there is one big drawback: Mosh will not connect to a regular SSH server, which means you will have to install Mosh on the server. But Mosh does not work as a daemon, like SSH, but as regular program, that is, root access is not required to run it. Mosh is accessible to many Linux distributions and BSD, OS X, iOS (as part of the popular iSSH client) and Android.

UltraVNC/RealVNC

VNC (Virtual Network Computing) is a system for remote access to a computer desktop using the RFB (Remote FrameBuffer) protocol. Previously, it was shown how to organize a VNC server in Linux; in Windows, such a server can be created using the UltraVNC or RealVNC programs. UltraVNC is similar to RealVNC, but has additional features like encrypting the connection between client and server, Java module Viewer (access to a remote PC via a browser with Java support) and others. Although RealVNC has a VNC Viewer plugin for Google Chrome so there is no need for Java Viewer. As already noted, the programs are largely similar, so in this article we will only consider UltraVNC.

When installing UltraVNC, it is possible to install both a VNC server and a VNC client. If you don’t need remote access to your computer, you don’t need to install a VNC server. When installing a VNC server, you will be able to configure it to run as a system service, but this requires administrator rights. The RFB protocol that VNC uses typically uses ports 5900–5906. Therefore, to connect via VNC you need to configure a firewall, otherwise it will kill the connection.

To connect to the VNC server, use the UltraVNC Viewer program. The program is universal, and you can use it to connect to any VNC server, not just the one running UltraVNC Server. Similarly, you can connect to a server created by the UltraVNC Server program using the RoyalTS program or any other VNC client.

A few words about how it all works. First, launch the UltraVNC Edit Settings program and on the Security tab set a password to access the VNC server, then you need to launch the UltraVNC Server program. Then, on another computer, launch UltraVNC Viewer (Fig. 14) and enter the IP of the computer on which the VNC server is installed, and click the Connect button.

Rice. 14.UltraVNC Viewer

Conclusions:

  • You need administrator rights, you need to configure a firewall.
  • The same protocol can be used for Windows management, OS X and Linux, but these are the advantages not of a specific program, but of VNC itself.

SSH access

SSH remains the classic of remote access. It would seem, what else can you come up with here? Well, for example, what to do if you have a lot of remote machines? Should I register aliases for each? Eat special utilities, allowing you to quickly switch between machines. One such manager in Linux is Gnome Connection Manager. The program is very convenient, we highly recommend it. On Windows, AutoPuTTY is used for this purpose - a shell for the popular SSH/Telnet client PuTTY, which can be downloaded from: http://www.r4dius.net/autoputty/. There is a similar SSH connection manager for OS X -Shuttle. For mobile platforms, you can use mobile SSH clients - Prompt (iOS) and ConnectBot (Android). You can easily find links and screenshots on the Internet.

Ammyy Admin (freeware)

Ammyy Admin is another program for remote desktop access. The good thing about the program is that it is absolutely free, completely undemanding in terms of resources (the executable file generally takes up a ridiculous 700 KB), allows you to organize both regular remote access to the desktop and a remote office-style connection, and does not require installing or changing firewall settings. You can find out about the rest of the program's features on the developers' website.

AnywhereTS (freeware)

Allows you to convert computers into thin clients. The main purpose of this program is not remote access for technical support reasons, as in all previously described programs, although it can also be used for this. AnywareTS allows you to give a second life to old computers that will be used as thin clients - connect to a server that will run programs that are physically impossible to run on old PCs. You will find detailed information about this program on the developers' website.

Remote access in Windows 8

This review would not be complete if we did not consider the capabilities of the OS itself. On the “server” (that is, on the computer to which remote access is planned), you need to perform the following steps:

  • Run SystemPropertiesRemote.exe.
  • Enable the "Allow Remote Assistance connections to this computer" checkbox.
  • Turn on the “Allow remote connections to this computer” switch and click the “Apply” button.
  • If you are using energy saving mode, you need to configure your computer so that it never goes into sleep mode.

On your computer, use the Remote Desktop Connection application to connect to a remote computer.

Rice. 15. Allow remote access

Google Hangouts: screen sharing and video conferencing

As a last resort, you can use a new service from Google - Hangouts. It allows you to host video meetings, during which users can share their screen with each other. If you wish, you can familiarize yourself with this service yourself.

Instead of a conclusion

There are a lot of programs for remote access. As I hope I have shown, the most familiar tool is not always the most effective. You need to build on the conditions of a specific task, target platforms and other factors. I hope that now I have finally cleared up the whole picture of remote access in your head. All suggestions and wishes can be sent to [email protected].

RUVDS technical support is regularly contacted regarding the GUI and remote access to it on virtual servers with Linux, despite the fact that there is a lot of material on the Internet covering this problem. Therefore, for our users, we decided to collect everything on this topic in one article.

You can also forward RDP traffic through an SSH tunnel. To do this you need to fix configuration file xrdp:

$ vi /etc/xrdp/xrdp.ini
You need to add the line to the section: address=127.0.0.1

$ systemctl restart xrdp
You can check that everything is correct like this:

$ nmap -p 3389 Starting Nmap 6.47 (http://nmap.org) at 2016-10-04 13:07 MSK Nmap scan report for unspecified.mtw.ru () Host is up (0.0087s latency). PORT STATE SERVICE 3389/tcp closed ms-wbt-server
Then if you are using cygwin or mingw, linux or mac os:

Ssh root@ -L 3389:localhost:3389
If PuTTY:

Launch PuTTY. In the tree menu on the left Connection → SSH → Tunnels. Next, add a new Forwarded Port (Source port: 3389, Destination: localhost:3389). Click Add.

VNC

Client:

For example, let's put this DE:

$ apt-key adv --recv-keys --keyserver keys.gnupg.net E1F958385BFE2B6E $ echo "deb http://packages.x2go.org/debian jessie main" > /etc/apt/sources.list.d/x2go .list $ echo "deb-src http://packages.x2go.org/debian jessie main" >> /etc/apt/sources.list.d/x2go.list $ apt-get update $ apt-get install x2go- keyring && apt-get update $ apt-get install x2goserver x2goserver-xsession
The output of the following command should show that x2go is ready to go:

$ systemctl status x2goserver ● x2goserver.service - LSB: Start and stop the X2Go daemon Loaded: loaded (/etc/init.d/x2goserver) Active: active (running) since Tue 2016-10-11 22:05:51 MSK; 30min ago...
And now an important point, you won’t be able to connect without this fix! You need to find the line “mesg n” in the .profile file and replace it with “tty -s && mesg n”.

$vi.profile
The following command will display the path to the startfluxbox executable file, which will be needed when setting up the client:

$whereis startfluxbox
Installing a server on Ubuntu:

$ apt-get install xfce4 xfce4-terminal $ add-apt-repository ppa:x2go/stable $ apt-get update $ apt-get install x2goserver x2goserver-xsession

$vi.profile
Installing a server on CentOS:

$ yum install epel-release $ yum install x2goserver x2goserver-xsession
The client for Linux is installed from the above repositories with the following command:

$ apt-get install x2goclient
For Windows - download, install, launch. There is a client for OS X at the same link above.

Let's launch the client:

In the session settings we indicate: in the Host field - the IP of your server, in the Login field - root, leave the port as is, session type - the GUI that was installed.

As you can see, there is an option for key authentication. In general, a lot of things. See for yourself. And the sound can be output through PulseAudio.

After clicking Ok, you will see these charming little things that you need to click on to receive a request to enter a password and connect to the selected session:

Note: please note that your favorite FluxBox is not in the list, so you have to write the path to it manually.

An important feature of x2go is the ability to run any graphical application without installing DE at all. To do this, in the session settings you need to select the single application item in the session type section and select the application to run or enter the path to the program that should be launched.

In this case, installing the software on the server will look like this. In the case of Ubuntu:

$ add-apt-repository ppa:x2go/stable $ apt-get update $ apt-get install x2goserver x2goserver-xsession
And now an important point, you won’t be able to connect without this fix! You need to find the line “mesg n ||” in the .profile file. true" and replace it with "tty -s && mesg n".

$ vi .profile $ apt-get install firefox xterm
And by setting up a session as shown below, you can launch the browser on the remote server, and a window displaying it will open on your machine:

Or so; then a terminal window will simply open:

Below you can see a screenshot of the current session status window. The buttons are marked with orange numbers:

  1. “Suspend session” - after clicking this button, the connection will be terminated, but the session will remain and will wait for reconnection. All applications you launched on the server will continue to work;
  2. “Terminate session” - after clicking, the connection to the server will be terminated, and the applications you are running on the server will be terminated.

TeamViewer

The latest method to access your desktop remotely.

Installation on Ubuntu:

$ apt-get update $ apt-get install lubuntu-desktop $ reboot $ dpkg --add-architecture i386 $ apt-get update $ wget http://download.teamviewer.com/download/teamviewer_i386.deb $ dpkg -i teamviewer_i386 .deb $ apt-get -f install $ teamviewer --passwd
Installation on Debian:

$ apt-get update $ apt-get install lxde lightdm $ reboot $ dpkg --add-architecture i386 $ apt-get update $ wget http://download.teamviewer.com/download/teamviewer_i386.deb $ dpkg -i teamviewer_i386. deb $ apt-get -f install $ teamviewer --passwd
Installation on CentOS:

$ yum groupinstall "X Window system" $ yum install epel-release $ yum install fluxbox xterm lightdm $ systemctl set-default graphical.target $ reboot $ curl -o TeamViewer_Linux_PubKey.asc -Lk http://www.teamviewer.com/link /?url=354858 $ rpm --import TeamViewer_Linux_PubKey.asc $ curl -LOk http://download.teamviewer.com/download/teamviewer.i686.rpm $ yum install teamviewer.i686.rpm $ teamviewer --passwd
It is also necessary to accept license agreement TeamViewer, this can be done using “Emergency mode”, or add following lines to the end of the /opt/teamviewer/config/global.conf file:

$ echo " EulaAccepted = 1" >> /opt/teamviewer/config/global.conf $ echo " EulaAcceptedRevision = 6" >> /opt/teamviewer/config/global.conf $ teamviewer --daemon restart
The following command will show the state of the TeamViewer daemon and the nine-digit TeamViewer ID required for connection:

$ teamviewer --info

After launching the client downloaded here, you need to enter the TeamViewer ID in the Partner UD field and click on the “Connect to partner” button. Next, TeamViewer will ask for a password: .

Instead of a conclusion

That seems to be all. We hope that this article will help users of Linux servers in setting up a comfortable and convenient environment for them.

Linux is most often used to operate remote desktops. the following programs: Remote Desktop Protocol and Virtual Network Computer.

VNC works using the RFB protocol. This protocol is supported by many platforms, so there are both user and server applications that are open source.

RDP is a protocol made by Microsoft for Windows systems.

It may seem that open source is the ideal solution. If the organization uses mainly Windows products, then RDP is more conveniently appropriate. Even if the office is on Linux, setting up and installing RDP is simpler.

This short article describes the process of setting up RDP on Linux. Setting up this server will help Windows users connect without any problems via Linux remote desktop via standard connection to devices running this OS.

Installing xrdp server

We need a server with open source– xrdp. The remote user will only see the user's clean Linux remote desktop. If you need remote Linux access to the current user session, then you can’t do without installing x0vncserver.

You need to find and install the xrdp package. Installation is carried out thanks to the package manager. Instead of installing, you can take the source code and build the server manually.

After installing xrdp, it will immediately be able to accept incoming connections. With the firewall installed and working, you need to make sure that TCP port 3389 is allowed. You also need to redirect the router ports to allow access from outside the working network.

For Linux remote access to work via global network , you need to change the xrdp ports on all devices except one.

You also need to edit port configurations on Windows devices that listen for RDP connections.

Remote users need to specify the port number of the exact machine they want to connect to. This is necessary so that the router knows where to redirect you. Be sure to open the necessary ports, start with 3389, and then in order.

To change the port you need to open the file: etc/xrdp/xrdp.ini, superuser rights may be required. You need to edit port in and restart xrdp.

Another way to connect to Linux remote desktop

Another way to RDP connect to any machines. On Linux hardware, install an xrdp server with a default port, and on other machines install VNC, also with a standard port. When connecting via RDP, the xrdp window will appear, where you will need to enter the network address of the desired computer.

Connecting to the created xrdp server

For Windows users, you need to use the built-in utility “Connect to a remote…”, while in Linux they use tsclient and rdesktop.

The port number must be specified in this way: after the network IP or domain name you need to put two dots, and then the address. If no one has configured the ports, then you just need to enter the IP address. In the xrdp window, enter your username and password and log in.

Installing rdesktop and tsclient

To enable remote access for Linux users, you need to install rdesktop software. If necessary, you can install a GUI; tsclient will do. For reference, you can use the commands in the terminal: man xrdp, man rdesktop, man tsclient

It can be seen as an act of aggression, but sometimes it is simply necessary.

There are cases when users use remote sessions for a machine they are already using (sounds unusual, but it happens to organize work with multiple desktops). Most users don't know when exactly they will need this functionality.

Experienced Unix users often talk about SSH and command line, as tools for gaining access to a graphical desktop, but there are separate applications for this purpose.

Techradar has tested VNC and its features in many clients. However, there are other protocols and types of remote desktop access. The growing popularity of such clients is that they support multiple transfer protocols, so regardless of the type of server and target machine you are using, you will find a suitable solution.

The researchers adhered to the principle of fair evaluation of different protocols. For example, NoMachine NX supports VNC connections, but it was tested in conjunction with its own NX server, which makes sense.

The TightVNC client has not been tested because it is very similar to the TigerVNC implementation. Both products have the same code base, but TigerVNC has several additional features.

How the testing went

The key to an effective remote desktop client is its ability to respond quickly to operations. An ideal interface won't be as good if you have to wait two minutes for every keystroke to be logged.

The testing tested the ability to remotely play the Armegatron game. In this undemanding OpenGL game, the screen refresh takes a fraction of a second. Results may be somewhat subjective, but this method has proven to be very effective in demonstrating customer responsiveness.

The clients were tested together with a local computer from 4 nuclear processor and 16 gigabytes of memory in gigabit local network under Ubuntu 14.04.3. The servers used were the X11 VNC server and the official NX server for NX clients. RDP-based functionality is supported by some products but has not been tested in practice.

The clients themselves worked for virtual machine with 2-core Core i7 process, 4GB RAM and Fedora 23.



tell friends