vnc安装启动

一、安装配置

1、   sudo apt install tigervnc-standalone-server

2、 sudo apt install xfce4   #注意安装过程中会跳出一个图形界面,让选择,选择light的

3、 vim ~/.vnc/xstartup

复制以下内容:
#!/bin/bash

xrdb $HOME/.Xresources

startxfce4 &

 

4、  chmod 777 ~/.vnc/xstartup

 

 二、启动

server端:

首次启动: vncserver

出现一下内容:

You will require a password to access your desktops.

Password:
Verify:
Would you like to enter a view-only password (y/n)? n     #这里填写n

 

 

启动:vncserver :5 -localhost no

关闭:vncserver -kill :5

查看列表:vncserver -list

client端:安装vnc viewer    ip:5905

posted on 2023-03-09 14:28  该用户很懒  阅读(146)  评论(0编辑  收藏  举报