There are some great turotials on getting the basics of VNC set up, but it always logs you right into the machine as a specific user...I want to choose my user....VNC + GDM is the answer
VNC + GDM will allow you to fir a vnc viewr at you linux box and have the GDM appear. This information contained below is a collection of personal knowledge and information collected from other postings on some other boards (note: go back and reference some of the contributors).
This mini-tutorial will not cover off security...so if you are doing this..make sure it is on your own network, behind a firewall etc. etc. etc....I hope to come back and add the security pieces in later...just don't have too much time today.
On with the show......
How it will work
===========
GDM will be running in the background (with no X-Server in this config). When we start a VNC session, VNC will contact the GDM to display the "Greeter"...then we log in as we normally do with GDM locally.
Configure GDM
==========
Sorry to you KDM/XDM folks out there...I will add in KDM ata a later date...it isn't too much different.
GDM presents the graphical greeter. To allow VNC to contact the GDM we must turn on XDMCP (Security concious peeps should set their firewall to only allow LOCAL connections for XDMCP - i.e. from the localhost - because VNC is running on the same linux device) - there is another option here to change the XServer that GDM can run to be VNC but I have not explored this option...perhaps later, but for now we'll do it with XDMCP:
1. Turn on XDMCP
edit /etc/X11/gdm/custom.conf (older should be gdm.conf)
find the [xdmcp] section
Change
Enable=false
to
Enable=true
2. (optional) Turn off XWindows (VNC runs it's own XWindows)
edit /etc/X11/gdm/gdm.conf
find the [servers] section
Change
0=Standard
to
#0=Standard
Configure VNC
==========
We will have VNC run from xinetd. We will create 2 "services". One for 800x600 and the other for 1024x768...if you want others, you can extrapolate yourself....800x600 will be available via :0 and 1024x768 as :1 (don't worry yet if you do not understand what I mean by :0 and :1)
1. Create /etc/services
edit /etc/services
add the following 2 liines:
vnc800 5900/tcp # VNC & GDM
vnc1024 5901/tcp # VNC & GDM
vnc1280 5902/tcp #VNC &GDM
vnc1600 5903
2. create xinetd services
create etc/xinetd.d/vnc800
service vnc800
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = -inetd -query localhost -geometry 800x600 -depth 16 -once -fp unix/:7100 -securitytypes=none
}
3. -securitytypes=none means VNC will not ask you to authenticate...we want GDM to do that part...
4. create xinetd services
create etc/xinetd.d/vnc1024
service vnc1024 {
disable = no
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = -inetd -query localhost -geometry 1024x800 -depth 16 -once -fp unix/:7100 -securitytypes=none
}
5. create xinetd services
create etc/xinetd.d/vnc1280
service vnc1280 {
disable = no
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = -inetd -query localhost -geometry 1280x1024 -depth 16 -once -fp unix/:7100 -securitytypes=none
}
6. create xinetd services
create etc/xinetd.d/vnc1600
service vnc1600 {
disable = no
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = -inetd -query localhost -geometry 1600x1280 -depth 16 -once -fp unix/:7100 -securitytypes=none
}
TEST IT
=====
1. stop any X Windows
init 3
2. Log into console (text mode)
3. Turn off "vncserver"...we don't want VNC to run except for xinetd
chkconfig --level 2345 vncserver off
4. start GDM
init 5
5. start vncviewer
I tested my connection from Win XP...
for 800x600 -> vncviewer localhost:0
for 1024x768 -> vncviewer localhost:1
SUMMARY
=======
You should now be able to run a headless (no kbd/mouse/video) linux box with a GUI and GDM greeter....
I know this mini-tutorial is a little thin at the moment, but I only had a few mins to type it up..I will clean it up I promise...if anyone likes it...I could try and write a mini-howto.....anyway...good luck..
分享到:
相关推荐
在这个场景中,我们讨论的是"PC投屏软件 VNC Viewer&Server",这是一款支持VNC协议的工具,包含了VNC Viewer和VNC Server两个组件。 **VNC Viewer** 是客户端软件,它让你能够连接到运行VNC Server的远程计算机,并...
树莓派——黑屏上网与使用vnc&windows远程桌面-附件资源
androidvncserver安装在手机端,vnc-viewer 安装在pc上,可以用作pc端的手机影像投影。具体使用方法不赘述。
【Fedora VNC Connection Patch】是一个针对VNC(Virtual Network Computing)图像连接同步的小型补丁,主要用于优化Fedora操作系统中的远程桌面访问体验。VNC是一种广泛应用的远程控制技术,它允许用户通过网络访问...
如何在CentOS 7上安装VNC服务器 一、引言 VNC(Virtual Network Computing)是一种用于远程访问和控制桌面环境的图形化系统。它允许用户通过客户端软件(如VNC Viewer)来连接并控制远程计算机上的桌面环境。本文将...
VNC for Fedora6 -i386 远程桌面 远程控制
### Windows下使用VNC连接CentOS7远程桌面 #### 一、引言 在实际运维工作中,有时我们可能需要远程连接到Linux服务器并使用图形用户界面(GUI)来进行某些特定的操作或任务。对于CentOS 7这样的Linux发行版,虽然...
VNC由RealVNC公司开发,并且是开源的,因此有许多实现,如RealVNC、TightVNC等。在这个“VNC-server&viewer”主题中,我们将深入探讨VNC服务端和客户端的使用以及它们在Windows操作系统中的应用。 **VNC服务器(VNC...
VNC(Virtual Network Computing)是一种远程桌面协议,它允许用户通过网络访问并控制另一台计算机的图形用户界面。VNC客户端是实现这一功能的关键组成部分,其中“vncviewer”就是一个常见的VNC客户端软件。 vnc...
VNC Enterprise Edition for Windows (x86 & x64)-vnc-E4_6_3-x86_x64_win32 SN(Public) RealVNC Enterprise 4.6.3 for Windows (x86 & x64)SN: 序列号在附件中,绝对能用!仅限于测试之用,不能用于商业用途。 只有...
VNC(Virtual Network Computing)是一种基于远程桌面协议的软件,允许用户通过网络远程控制另一台计算机的图形界面。在使用VNC时,有时会遇到无法连接的问题,这可能是因为VNC服务未正确注册或者缺少有效的许可证。...
VNC(Virtual Network Computing)是一种远程桌面协议,它允许用户通过网络访问并控制另一台计算机的图形用户界面。VNC 4.0 x86 版本是针对32位Windows系统的一个经典版本,适用于那些运行Windows XP、2000、NT等较...
VNC技术基于 TightVNC 和 RealVNC,这些是VNC的两个主要实现版本,它们提供了跨平台的支持,可以在Windows、Linux、macOS等多种操作系统上运行。 在了解VNC之前,我们需要理解其工作原理。VNC系统由两部分组成:...
VNC Enterprise Edition是业界标准的VNC(Virtual Network Computing) 的增强版本,专为企业环境应用和穿越Internet而开发。它完全由VNC的最初发明者设计和开发,Enterprise Edition提供更好的稳定性和更容易管理的...
VNC(Virtual Network Computing)是一种远程桌面协议,它允许用户通过网络访问并控制另一台计算机的图形用户界面。VNC客户端是实现这一功能的软件工具,用户可以通过它连接到远程服务器或PC,进行远程操作、故障...
VNC(Virtual Network Computing)是一种远程桌面协议,它允许用户通过网络访问并控制另一台计算机的图形用户界面。VNC的核心组件包括VNC Server和VNC Client,它们各自扮演着不同的角色。 **VNC Server** 是运行在...
在Linux系统中安装RealVNC是一项实用且关键的技能,尤其对于远程桌面访问与管理有着不可忽视的作用。RealVNC是一种流行的虚拟网络计算(VNC)软件,它允许用户通过网络连接并控制另一台计算机的桌面环境。无论是从...
7. **日志与故障排查**:RealVNC通常会产生日志文件,这些文件可以帮助诊断连接问题或服务器异常。学习阅读和分析这些日志是解决问题的关键。 总之,虽然老版本的RealVNC软件可能不包含最新的功能,但在特定情况下...
RealVNC 4.61_简介 VNC(Virtual Network Computing,虚拟网络计算)最早是一套由英国剑桥大学AT&T实验室在2002年开发的轻量型的远程控制计算机软件,其采用了 GPL 授权条款,任何人都可免费取得该软件。VNC软件...