- 用户devuser密码:devuser
- 安装git命令:sudo apt install git
虚拟网控制台 (VNC) 是一款优秀的远提来通数件。VNC 是基以和Lnux 操作系统的免费开源软件,远程控制能力大,高效实用。 VNC 国件。子C黑的此上由两部分组成: 客户端的应用程序和服务器端的用程序(VNC Sse们远程桌面软件有很多, 包括 ReaVNC、TighiVNC、TigerVNC等。本节以TigerVNC 为例,介绍龙芯平台下 VNC 服务器端(VNC Serer) 和客户端(VNCVewer)应用程序的安装与配置。
# yum install -y tigervnc
# yum install -y tigervnc-icons
# yum install -y tigervnc-license
# yum install -y tigervnc-selinux
# yum install -y tigervnc-server
# yum install -y tigervnc-server-minimal
# yum install -y tigervnc-server-module
注意 要确保服务器主机SSHD服务开启,并关闭防火墙(或开放端口5901~5909) 创建登录时要用的用户名和密码
vncpasswod root --密码设置为loongson
修改vnc配置项
# vim /root/.vnc/xstartup, 把原有的都注释掉了,增加了后面的内容
#!/bin/sh
#unset SESSION_MANAGER
#unset DBUS_SESSION_BUS_ADDRESS
#/etc/X11/xinit/xinitrc
## Assume either Gnome will be started by default when installed
## We want to kill the session automatically in this case when user logs out. In case you modify
## /etc/X11/xinit/Xclients or ~/.Xclients yourself to achieve a different result, then you should
## be responsible to modify below code to avoid that your session will be automatically killed
#if [ -e /usr/bin/gnome-session ]; then
# vncserver -kill $DISPLAY
#fi
#export XKL_XMODMAP_DISABLE=1
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 &
mate-session &
启动VNC server
vncserver :1
停止VNC server
vncserver -kill :1
客户端通过vncview连接服务器