对于初学Linux的同学来说,直接使用命令行的形式来操作Linux实在太让人头大了,网络配置在哪?怎么连不上网了?刚刚复制的文件跑哪去啦???啊啊啊,太难了吧
今天你看到了这篇文章一切问题就迎刃而解了,嘻嘻嘻。刚开始我学习Linux的时候是在学习上课,老师要求我们安装Linux系统,我当时安装的centos7,还依稀记得因为在命令行配置网络,我没弄好了花了一个小时重装系统,现在想想还是挺有趣的。
进入服务器安全组设置开通端口5901
在安装图形化界面之前我们先更新软件源并升级系统
installGNOME.sh
#for Ubuntusudo apt-get install ubuntu-gnome-desktop#for Centos7yum groupinstall "X Window System" yum groupinstall "GNOME Desktop" "Graphical Administration Tools"installvnc.sh
#!/cmdfj/bash#卸载vncserveryum remove tigervnc-server -y >/dev/null#删除相关目录rm -rf /root/.vnc rm -rf /etc/.X11-unit rm -rf /etc/.X*-lock#安装vncserveryum -y install tigervnc-server#防火墙运行5901端口通行iptables -I INPUT -p tcp --dport 5901 -j ACCEPT#启动vncservervncserver运行完上面的脚本需要输入密码,输入过程密码是不可见的,这个密码是用于vnc登录的,
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
连接前可以查看5901端口是否开放
下面三种博主都测试均可用
vncserver
tightvncviewer
iis7