VNCServer 配置
1、vncserver服务的启动redhat一般都自动安装了vncserver了 只要在服务列表中选中启动一下就可以了)
命令:
service vncserver start/restart/stop
启动桌面:vncserver(第一次启动时需要设置密码)
2、vncserver的桌面配置
通过编辑文件$HOME/.vnc/xstartup来启动你喜欢的窗口管理器。
使用startkde &来启动KDE,使用gnome-session &来启动GNOME,fvwm2 &来启动FVWM2。
例如:
#####################################################
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session
#startkde
#twm &
##########################################################
3、关闭服务器上自己的vnc连接
vncserver -kill :桌面号
如:vncserver -kill :1
4、修改密码
--删除密码文件
rm -f $HOME/.vnc/passwd
--重新启动vncserver,根据提示输入新的密码即可
vncserver
5、如何使服务器开机自动运行vncserver 不需要自己telnet
设置vncserver启动脚本实现系统自启动时启动vncserver。
编辑/etc/sysconfig/vncservers,例如:
# The VNCSERVERS variable is a list of
# display:user pairs.
#
# Uncomment the line below to start a VNC server on
# display :1 as my 'myusername' (adjust this to your
# own). You will also need to set a VNC password;
# run 'man vncpasswd' to see how to do that.
#
# DO NOT RUN THIS SERVICE if your local area network
# is untrusted! For a secure way of using VNC, see
# <URL:http://www.uk.research.att.com/vnc/sshvnc.html>.
VNCSERVERS="2:oracle"
#VNCSERVERARGS[2]="-geometry 800*600 -nolisten tcp -nohttpd -localhost"
在VNCSERVERS中修改myusername为你希望运行VNC桌面的用户。VNCSERVERS中的1表示VNC以桌面1运行,如果希望添加其他的桌面,可以修改配置如下:
VNCSERVERS="1:root 2:oracle".
VNCSERVERARGS可以设定对具体桌面连接的限定,具体参数说见文件开头说明,一般注释掉即可。
6、防火墙会阻止vnc服务
防火墙关闭和开启的命令:service iptables stop/start(及时生效)
或编辑/etc/sysconfig/iptables
7、如果想要删除当前配置的vnc,直接删除当前用户下的.vnc 目录即可
例如:
# cd /home/oracle
# rm -rf .vnc
在Solaris下
# vncserver
vncserver: couldn't find "Xvnc" on your PATH.
执行如下即可
#su root
#
# ln -s /usr/openwin/bin/xauth /usr/bin/
# ln -s /usr/X11/bin/Xvnc /usr/bin/
另外说明下在Solaries下的vnc配置和linux的一样,区别在于useradd用户后
root用户
su -
# groupadd dba
# groupadd oinstall
# useradd -g oinstall -G dba -m -d /export/home/oracle -s /usr/bin/bash oracle
# passwd oracle
用户所在目录有变化:
/home is an auto mount directory. The home directory for user in Solaris should be created in
/export/home
分享到:
相关推荐
Linux远程桌面工具VNC配置方法,CentOS 6.x使用。VNCserver配置
linux下vncserver配置 在全命令下配置 开启服务,并远程登录
linux下vncserver配置与win下vnc客户端
vncserver 配置 设置 希望能给你一点帮助!!
vncserver中文配置与使用[定义].pdf
vncserver中文配置与使用[参考].pdf
CentOS 6.0下vncserver安装配置
NULL 博文链接:https://zengxx1989.iteye.com/blog/565378
vnc server在linux下的配置
VncServer源码,vncserver源码安装,C#源码
本文档是我帮实验室老师安装centos7远程桌面的一...本文档主要是基于xrdp+vncserver已安装并正确启动之后,如何配置vncserver并在配置之后正确连接的一个说明。如果还是有问题,解决不了,可加我,大家一起讨论,谢谢!
linux下开启vncserver手册,本人比较详细的描述了vncserver的配置手册
1. 启动 VNC Server 服务 2. 配置 VNC Server 服务 3. 关闭 VNC Server 服务 4. VNC Server 高级配置
如何在linux上搭建vncserver,详细介绍了如何用vncserver实现远程桌面连接,如何在linux上搭建vncserver,详细介绍了如何用vncserver实现远程桌面连接
i386平台, vncserver4.1.1, 适用于RedHat6.3,
redhat红帽64位下的vncserver安装包
用于vncserver的rpm包,os在Redhat6.2
vncserver.exe vnc软件
Redhat as 5 vncserver及vncviewer的详细配置 ATEGPU.mht
C#开发的VNC源码,非标准VNC协议。需要配合对应的客户端应用