Ubuntu remote control detailed step process

Say by remote can really experience the Linux system attractive, the work of Linux systems do require regular remote control, and once you get used to not go back. Take Ubuntu as an example to explain the remote control of Linux system.

1. Preparation

1. Set up automatic login

Ubuntu remote control detailed step process Ubuntu remote control detailed step process

2. Turn off automatic suspension and automatic screen lock

Ubuntu remote control detailed step process Ubuntu remote control detailed step process

2. Remote control via SSH

SSH is a tool for remote control through the command line that is necessary for operation and maintenance .

#Install ssh client and server

sudo apt-get install openssh-client

sudo apt-get install openssh-server

#Start ssh

sudoservicesshstart

#View ssh status

ps-e | grep ssh

#View the local ipifconfig

#sshConnect

ssh name@ip -22

Three, desktop remote control

The server does not need to install a desktop environment, but personal Linux systems, especially beginners, are more accustomed to using desktop remote control.

1. Desktop remote control software

TeamViewer | Sunflower | ToDesk

The desktop remote control software should also be set to start automatically after booting.

2. Other preparations

If the monitor can be turned off during remote control of the desktop computer, it can also be controlled normally. If the host is not connected to the monitor (such as a downloader), the desktop can be started normally by installing and setting a virtual screen or using a video card spoofer.

#Install virtual screen

sudo apt-get install xserver-xorg-core-hwe-18.04

sudo apt-get install xserver-xorg-video-dummy-hwe-18.04 --fix-missing

#Configuration parameter file sudo gedit /usr/share/X11/xorg.conf.d/xorg.conf

Copy the following code to the configuration file to save

Section "Monitor"Identifier "Monitor0" HorizSync 28.0-80.0 VertRefresh 48.0-75.0 # https://arachnoid.com/modelines/ # 1920x1080 @ 60.00 Hz (GTF) hsync: 67.08 kHz; pclk: 172.80 MHz Modeline "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +VsyncEndSectionSection "Device" Identifier "Card0" Driver "dummy" VideoRam 256000EndSectionSection "Screen" DefaultDepth 24 Identifier "Screen0" Device "Card0" Monitor "Monitor0" SubSection "Display" Depth 24 Modes "1920x1080_60.00" EndSubSectionEndSection

After the virtual screen is turned on, the physical display cannot be recognized and can only be logged in remotely. If you need to close the virtual screen, you can clear the configuration content of xorg.conf with the following command

sudo gedit /usr/share/X11/xorg.conf.d/xorg.conf

The video card spoofer has the same interface as the monitor. Connecting to the computer can make the video card think that the monitor is connected and work normally. I prefer to use a video card spoofer, so you don’t need to worry about not being able to connect to the physical monitor after modifying the code.

Fourth, set BIOS remote boot

The server can be remotely self-started through the network card. There is a simpler method for home computers: set the BIOS to self-start upon incoming calls, so as long as you buy a smart socket, you can easily realize the remote control of the computer after the computer is started remotely.

1. In the BIOS power settings, turn on the option to start the computer after incoming calls;

Ubuntu remote control detailed step process Ubuntu remote control detailed step process

2. Modify the BIOS power settings to turn on every day;

Ubuntu remote control detailed step process Ubuntu remote control detailed step process

In this way, as long as you use your mobile phone to control the switch of the smart socket, the computer can be turned on automatically, and then the computer can be operated by remote control. I found an HP-T610 thin client as the host. After configuration, it has not been connected to the screen. Installed Ubuntu18.04, it can be used as a download machine and can also be used to learn the operation of the Ubuntu system.

Guess you like

Origin blog.csdn.net/yaxuan88521/article/details/115110295