CentOS安装使用vnc进行远程桌面登录

萌新首回用egret打安卓包,发现裸包22M+,吃惊到吃手手。

[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target

上网搜查无果。

八 、运转命令vncpasswd root设置vncserver的密码;

egret-android-support-5.0.12\egret-android-support-as-5.0.12\proj.android\app\libs

一 、运营命令yum install tigervnc-server安装vncserver;

唯恐原因是egret优化过一波打包,变得更有利了,网上对新本子打包比较少商量。

[Install]
WantedBy=multi-user.target

代价就是一对老机型无法跑,看产品适配定位咯。

伍 、禁用防火墙,假设已经禁用防火墙可以跳过这一步:systemctl stop
firewalld.service、systemctl disable firewalld.service

 

三 、运转命令yum groupinstall “X Window
System”安装X-Window;//以前安装发现时不时不可以运转vncserver,前边通过网上查资料介绍可以设置X-Window消除这几个难点

删剩下葡京网上娱乐场 1就足以了,变成7M+。

[Service]
Type=forking
User=root

涸泽而渔办法:

 

# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=-/usr/bin/vncserver -kill %i
ExecStart=/usr/bin/vncserver %i
PIDFile=/root/.vnc/%H%i.pid
ExecStop=-/usr/bin/vncserver -kill %i

拾、重启系统后使用VNC-Viewer连接:192.168.10.100:1,输入设置的密码即可登录。

④ 、安装普通话字符以化解界面普通话乱码的标题:yum install
dejavu-lgc-sans-fonts、yum groupinstall “Fonts” -y

以下介绍在CentOS
7下安装vncserver并采取vnc-viewer举办登录(使用root权限):

 

② 、运营命令yum install
vnc安装vnc;//感觉不设置也可以,安装一下也很快,不要在意这几个细节

七 、运营命令systemctl daemon-reload更新systemctl;

6、配置vncserver:
拷贝创立一个新的计划文件,以打开1号窗口为例,假如急需敞开两个则开创三个布局文件即可:
[葡京网上娱乐场,root@localhost ~]# cp /lib/systemd/system/vncserver@.service
/lib/systemd/system/vncserver@:1.service
修改配置文件内容
[root@localhost ~]# vi /lib/systemd/system/vncserver@:1.service
# The vncserver service unit file
#
# Quick HowTo:
# 1. Copy this file to /etc/systemd/system/vncserver@.service
# 2. Replace <USER> with the actual user name and edit
vncserver
# parameters appropriately
# (“User=<USER>” and “/home/<USER>/.vnc/%H%i.pid”)
# 3. Run `systemctl daemon-reload`
# 4. Run `systemctl enable vncserver@:<display>.service`
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, you should
# limit connections to the local host and then tunnel from
# the machine you want to view VNC on (host A) to the machine
# whose VNC output you want to view (host B)
#
# [user@hostA ~]$ ssh -v -C -L 590N:localhost:590M hostB
#
# this will open a connection on port 590N of your hostA to hostB’s
port 590M
# (in fact, it ssh-connects to hostB and then connects to localhost (on
hostB).
# See the ssh man page for details on port forwarding)
#
# You can then point a VNC client on hostA at vncdisplay N of localhost
and with
# the help of ssh, you end up seeing what hostB makes available on port
590M
#
# Use “-nolisten tcp” to prevent X connections to your VNC server via
TCP.
#
# Use “-localhost” to prevent remote VNC clients connecting except
when
# doing so through a secure tunnel. See the “-via” option in the
# `man vncviewer’ manual page.

玖 、运维命令systemctl start vncserver@:1.service(可以运作systemctl enable
vncserver@:1.service命令装置为暗中认可运营服务);//运维不了则重启一下系统或则查看运维日志