Thủ Thuật Hướng dẫn Remote desktop Debian Mới Nhất
You đang tìm kiếm từ khóa Remote desktop Debian được Cập Nhật vào lúc : 2022-01-06 22:30:11 . Với phương châm chia sẻ Thủ Thuật Hướng dẫn trong nội dung bài viết một cách Chi Tiết 2022. Nếu sau khi tìm hiểu thêm Post vẫn ko hiểu thì hoàn toàn có thể lại phản hồi ở cuối bài để Tác giả lý giải và hướng dẫn lại nha.
The author selected Software in the Public Interest (SPI) to receive a donation as part of the Write for DOnations program.
Nội dung chính
- IntroductionPrerequisitesStep 1 Installing the Desktop EnvironmentStep 2 Installing X2Go on the ServerStep 3 Installing the X2Go Client LocallyStep 4 Connecting To the Remote DesktopVideo liên quan
Introduction
Usually, Linux-based servers dont come with a graphical user interface (GUI) preinstalled. Whenever you want to run GUI applications on your instance, the typical solution is to employ Virtual Network Computing (VNC). Unfortunately, VNC is notoriously sluggish, insecure by default, and requires a lot of manual configuration to get up and running.
By contrast, X2Go provides a working cloud desktop, complete with all the advantages of an always-trực tuyến, remotely-accessible, and easily-scalable computing system with a very fast network. It is also more responsive and more secure than many VNC solutions. In this tutorial, youll use X2Go to create a Debian 10 XFCE desktop environment that you can access remotely. This cloud desktop will include the exact same utilities that you would obtain had you installed Debian 10 and the XFCE environment on your personal computer.
The setup described in this tutorial is useful when:
- You need access to a Linux-based operating system, complete with a desktop environment, but cant install it on your personal computer.
You use multiple devices in multiple locations and would like to have a consistent work environment with the same tools, same look, same files, and same performance.
Your Internet service provider gives you very little bandwidth, but you need access to tens or hundreds of gigabytes of data.
Long-running jobs make your local computer unavailable for hours or days. Imagine that you have to compile a very large project, and it will take 8 hours on your máy tính. You wont be able to watch movies or do anything else very resource-intensive while your project compiles. But if you run such jobs on your server, now your computer is không lấy phí to perform other tasks.
Youre working with a team, and it benefits them to have a common computer that they can access in order to collaborate on a project.
Prerequisites
Before starting this tutorial, youll need:
A Debian 10 x64 instance with 2GB of RAM or more. 2GB is minimal and its recommended to use a server with 4GB or more if you have memory-hungry applications you plan to run. You can use a DigitalOcean Droplet if you like.
A user with sudo privileges and an SSH key. Follow this guide to get started: Initial Server Setup with Debian 10. Make sure you complete Step 4 and configure your firewall to restrict all connections except for OpenSSH.
Step 1 Installing the Desktop Environment
With your server up and your firewall configured, you are now ready to install the graphical environment for the X2Go server.
In this tutorial, you are installing XFCE as the desktop environment. XFCE doesnt use fancy graphical effects like compositing, which makes it more compatible with X2Go and allows it to optimize screen updates. For reference, LXDE and MATE (with compositing disabled) also work fine but youll have to change the command in this tutorial where you install the desktop environment. For example, instead of sudo apt-get install xfce4 you would type sudo apt-get install lxde.
There are two ways to easily install XFCE, but you only need to choose oneeither the Minimal Desktop Environment or the Full Desktop Environment.
Full Desktop Environment: Recommended. If you dont want to handpick every component you need and would rather have a default set of packages, like a word processor, web browser, email client, and other accessories pre-installed, then you can choose task-xfce-desktop.
Install and configure the Full Desktop Environment. This is similar to what you would get if you installed Debian from a bootable DVD/USB memory stick to your local PC:
- sudo apt-get install task-xfce-desktop
Minimal Desktop Environment: Alternately, if you want to install a small, core set of packages and then build on top of them by manually adding whatever you need afterward, you can use the xfce4 metapackage.
A metapackage doesnt contain software of its own, it just depends on other packages to be installed, allowing for an entire collection of packages to be installed once without having to type each package name individually the command line.
Install xfce4 and all of the additional dependencies needed to tư vấn it:
- sudo apt-get install xfce4
Now that your graphical environment is installed, you will establish a way to view it remotely.
Step 2 Installing X2Go on the Server
X2Go comes with two main components: the server, which starts and manages the graphical session on the remote machine, and the client, which you install on your local computer to view and control the remote desktop or application.
In previous versions of Debian, x2goserver wasnt included in the default repositories, so youd have to follow steps like these to get the software package. Were leaving the link here, just for reference, in case the package gets dropped in future versions of Debian. Fortunately, Debian 10, codenamed Buster, includes the package you need in its default repositories, so the installation is a bit easier.
To install X2Go on your server, type the following command:
- sudo apt-get install x2goserver x2goserver-xsession
At this point, no further setup is required on your server. However, keep in mind that since SSH password authentication is disabled, for increased security, youll need to have your SSH private key available on any machine that you want to log in from. This will be the case if you followed the recommendation of setting up SSH keys in the Initial Server Setup with Debian 10 tutorial listed in the prerequisites. If you didnt, you can still log in with a password, but make sure you choose a strong one.
Remember that if you run out of RAM, some applications might be abruptly terminated by the Linux kernel, and then you could lose work in progress. If you are using a DigitalOcean Droplet and you notice that your programs require more RAM, you can temporarily power off your Droplet and upgrade (resize) to one with more memory.
You are now done setting up the server and you can type exit or close the terminal window. The rest of the steps will focus on configuring the client on your local machine.
Step 3 Installing the X2Go Client Locally
X2Go is ready to use out of the box. If youre using Windows or Mac on your local machine, you can tải về the X2Go client software here. If youre using Debian or Ubuntu you can install the X2Go client with this command on your local machine:
- sudo apt-get install x2goclient
After downloading the software you are ready to install it. Open the installer and select your preferred language. Now agree to the license and let the wizard guide you through the remaining steps. Normally, there shouldnt be any reason to change the pre-filled, default values in these steps.
X2Go works well out of the box but it is also highly customizable. If youd like additional information, visit X2Gos official documentation.
Now that the desktop client is installed, you can configure its settings and connect to the X2Go server to use your remote XFCE desktop.
Step 4 Connecting To the Remote Desktop
When you first open the X2Go client, the following window will appear. If it doesnt, click Session in the top-left menu and then select New session .
In the Session name field, enter something to help differentiate between servers. This can be particularly useful if you plan on connecting to multiple machines.
Enter your servers IP address or hostname in the Host field under Server.
Enter the username you used for your SSH connection in the Login field.
And, since you installed XFCE in Step Two, choose XFCE as your Session type.
Finally, because you are connecting to the server with SSH keys, click the thư mục icon next to Use RSA/DSA key for ssh connection and browse to your private key. If you didnt opt to use the more secure SSH keys, just leave this empty and the X2Go client will ask for a password each time you log in.
The rest of the default settings will suffice for now, but as you get more familiar with the software, you can fine tune the client based on your individual preferences.
After pressing the OK button, you can start your graphical session by clicking the white box that includes your sessions name on the top-right side of the box.
If you are running OS X on your local machine, you may be prompted to install xquartz, which is required to run X11. If so, follow the instructions to install it now.
In a few seconds, your remote desktop will be displayed and you can start interacting with it. During your first login, XFCE will ask if you want to Use default config or One empty panel. The first option will create a rectangular panel docked the bottom of the screen, containing a few useful application shortcuts (e.g. a file manager, a terminal emulator, a browser, etc.). This option will also add a top panel to the desktop that includes utilities like an application launcher, a clock, a shutdown menu, and more.
Unless youre already familiar with XFCE, opting for an empty panel can be more complicated because youll be starting from scratch. There will be no taskbar, no clock, and no pre-configured start menu; it will be up to you to add everything to an empty panel on your own.
Additionally, on Windows and Linux-based operating systems, there are a few useful keyboard shortcuts you can use for a better experience:
CTRL+ALT+F will toggle full-screen mode on and off. Working in full-screen mode can feel more like a local desktop experience. Plus, other keyboard shortcuts will be grabbed by the remote OS instead of the local one.
CTRL+ALT+M will minimize the remote view, even if you are in full-screen mode
CTRL+ALT+T will disconnect from the session but leave the GUI running on the server. Its just a quick way of disconnecting without logging off or closing applications on the server. The same will happen if you click the windows close button.
Lastly, there are two ways you can end the remote session and close all of the graphical programs running in it. You can log off remotely from XFCEs start menu, or you can click the button marked with a circle and a small line (like a power/standby icon) in the bottom-right corner of the main portion of the X2Go screen.
The first method is cleaner but may leave programs like session managing software running. The second method will close everything but may do so forcefully if a process cant cleanly exit. In either case, be sure to save your work before proceeding.
And lastly, although its not required, lets go into XFCEs control panel, navigate to power settings and disable all standby features. If you dont use the desktop for a while, XFCE will try to trigger a standby. Although the server normally wont do anything when it receives this request, its better to avoid any unforeseen behaviors altogether.
By going to the Applications menu, then Settings, you can open Power Manager.
In this application, navigate to the System tab and drag the When inactive for slider all the way to the left. You should now see the text Never under this slider, which means XFCE wont try to put the system in standby after its inactive for a while.
You have now successfully accessed and configured your remote desktop.
Conclusion
In this tutorial you used X2Go to create a robust and remote GUI-environment for the Debian operating system. Here are a few additional ideas about how to use this desktop. You could centralize your development work by creating a git repository, installing an IDE/code editor like NetBeans or Eclipse, or configuring a web server for testing web applications. You could also enhance your remote desktop with a good backup scheme to make sure that your work environment and important data are safely preserved in case something ever goes wrong. With DigitalOcean, you can also snapshot your Droplets when youre happy with a certain setup. This way, you can test risky changes and always come back to a known good state in case you break something.
If youd like to learn more, visit X2Gos official documentation website.
Reply
0
0
Chia sẻ
Review Remote desktop Debian ?
Bạn vừa đọc Post Với Một số hướng dẫn một cách rõ ràng hơn về Review Remote desktop Debian tiên tiến và phát triển nhất
Chia Sẻ Link Tải Remote desktop Debian miễn phí
Quý khách đang tìm một số trong những Chia Sẻ Link Down Remote desktop Debian miễn phí.
Hỏi đáp vướng mắc về Remote desktop Debian
Nếu You sau khi đọc nội dung bài viết Remote desktop Debian , bạn vẫn chưa hiểu thì hoàn toàn có thể lại Comment ở cuối bài để Ad lý giải và hướng dẫn lại nha
#Remote #desktop #Debian