Centos7安裝配置vnc

2021-09-21 04:26:50 字數 2091 閱讀 4771

前提條件,已經安裝了乙個圖形介面

yum install tigervnc-server -y ==>安裝vnc服務

systemctl status vncserver@:.service ==>檢查服務狀態

vncserver@:.service - remote desktop service (vnc)

loaded: loaded (/usr/lib/systemd/system/[email protected]; disabled)

active: inactive (dead)

systemctl is-enabled [email protected] ==>檢查是服務是否開機啟動

disabled

ll /lib/systemd/system/[email protected] ==>檢視檔案

-rw-r--r--. 1 root root 1738 nov 21 04:53 /lib/systemd/system/[email protected]

cp /lib/systemd/system/[email protected] /etc/systemd/system/vncserver@:1.service==>複製

useradd vncuser==>建立遠端vnc使用者

echo 密碼|passwd --stdin vncuser==>建立密碼

sed -i 's//vncuser/g' /etc/systemd/system/vncserver@:1.service==>修改使用者

su - vncuser

last login: sun feb 28 12:54:31 cst 2016 on pts/0

[vncuser@localhost ~]$ vncserver或vncpassd  ==>建立遠端登入密碼

you will require a password to access your desktops.

password:                最低6位

verify:

susystemctl daemon-reload

systemctl start vncserver@:1==>啟動服務

systemctl status vncserver@:1

vncserver@:1.service - remote desktop service (vnc)

loaded: loaded (/etc/systemd/system/vncserver@:1.service; disabled)

active: active (running) since sun 2016-02-28 13:35:37 cst; 5min ago

process: 1670 execstart=/usr/sbin/runuser -l vncuser -c /usr/bin/vncserver %i (code=exited, status=0/success)

process: 1668 execstartpre=/bin/sh -c /usr/bin/vncserver -kill %i > /dev/null 2>&1 || : (code=exited, status=0/success)

main pid: 1696 (xvnc)

cgroup: /system.slice/system-vncserver.slice/vncserver@:1.service

鈥1696 /usr/bin/xvnc :1 -desktop localhost:1 (vncuser) -auth /home...

feb 28 13:35:34 localhost systemd[1]: starting remote desktop service (vnc)...

feb 28 13:35:37 localhost systemd[1]: started remote desktop service (vnc).

firewall-cmd --permanent --add-service vnc-server==>開啟埠

systemctl restart firewalld==>重啟防火牆

windows下開啟vncview ip:1測試

CentOS 7 安裝配置 VNC 詳解

from vnc是什麼 virtual network computing vnc允許linux系統可以類似實現像windows中的遠端桌面訪問那樣訪問linux桌面。本文配置是在centos 7 hp伺服器環境下執行。首先試試伺服器裝了vnc沒 root linuxidc rpm q tigerv...

CentOS 7 安裝配置 VNC 詳解

vnc是什麼 virtual network computing vnc允許linux系統可以類似實現像windows中的遠端桌面訪問那樣訪問linux桌面。本文配置是在centos 7 hp伺服器環境下執行。首先試試伺服器裝了vnc沒 root linuxidc rpm q tigervnc ti...

CentOS 7 上安裝配置 VNC 服務

vnc virtual network computing vnc允許linux系統可以類似實現像windows中的遠端桌面訪問那樣訪問linux桌面。一般生產環境中並不需要安裝這個服務,若本機測試需要或者伺服器要求安裝,可以通過如下步驟配置。vnc 服務需要 x windows 支援,你要配置 v...