MobaXterm VNC访问LinuxMint MATE桌面

1. 安装VNC服务器

使用TigerVNC

sudo apt-get install tigervnc-standalone-server tigervnc-xorg-extension tigervnc-viewer

2. VNC密码设置

vncpasswd

3. VNC启动脚本设置

编辑本机用户目录下的~/.vnc/xstartup文件,
“~”:代表主目录,也叫HOME目录,即当前登录用户的用户目录,例如:
/home/ufo/.vnc/xstartup
如果没有xstartup文件,新建一个即可。xstartup文件内容如下:

#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
Desktop" &
mate-session &

我主机是LinuxMint MATE桌面,如果是其他桌面,如gnome、Xfce…请自行在网上搜索。

4. 启动VNC服务

vncserver :1 -localhost no

5. MobaXterm VNC

在这里插入图片描述
输入VNC服务器的IP(即上面配置的Linux主机的IP),注意IP后面带:1。
这个:1表示vnc服务显示端口的意思,与启动vnc服务vncserver :1 -localhost no输入的一致。否则mobaxterm启动vnc会提示失败。
配置好IP后,点击OK,连接成功:
在这里插入图片描述

6. 关闭VNC服务

如果需要关闭vnc服务,执行如下命令:

vncserver -kill :1

:1表示要关闭的vnc服务显示端口。

7. 查看开启的VNC服务

如果需要查看开启的VNC服务,执行如下命令:

vncserver -list

输出如下:

TigerVNC server sessions:

X DISPLAY #	RFB PORT #	PROCESS ID
:1		5901		88434
:2		5902		90130

启动了两个分别是:1和:2

后记

VNC服务器重启后,VNC服务不会自动启动,需要重新执行vncserver :1 -localhost no
需要VNC自动随服务器启动,请自行在网上搜索。

  • 4
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
MobaXterm一个包含很多功能的小工具,personal版本已经需要收费下载,此版本为之前没有收费前下载的,功能还是比较齐全。 MobaXterm X server and SSH client MobaXterm is your ultimate toolbox for remote computing. In a single Windows application, it provides loads of functions that are tailored for programmers, webmasters, IT administrators and pretty much all users who need to handle their remote jobs in a more simple fashion. MobaXterm provides all the important remote network tools (SSH, X11, RDP, VNC, FTP, MOSH, ...) and Unix commands (bash, ls, cat, sed, grep, awk, rsync, ...) to Windows desktop, in a single portable exe file which works out of the box. More info on supported network protocols There are many advantages of having an All-In-One network application for your remote tasks, e.g. when you use SSH to connect to a remote server, a graphical SFTP browser will automatically pop up in order to directly edit your remote files. Your remote applications will also display seamlessly on your Windows desktop using the embedded X server. See demo You can download and use MobaXterm Home Edition for free. If you want to use it inside your company, you should consider subscribing to MobaXterm Professional Edition: this will give you access to much more features and the "Customizer" software. Features comparison When developing MobaXterm, we focused on a simple aim: proposing an intuitive user interface in order for you to efficiently access remote servers through different networks or systems. Screenshots MobaXterm is being actively developed and frequently updated by Mobatek.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值