VNC & TPD

Source: Internet
Author: User
So, you have no graphics card, but you still want GUI management/X Windows ......

Perhaps you do have a graphics card but want the convenience of using VNC to reach your fedora machine?

There are some great turotials on getting the basics of VNC set up,
It always logs you right into the machine as a specific user... I want
To choose my user... VNC + AHP is the answer

VNC + TPD will allow you to fir a VNC viewr at you Linux box and have
The TPD appear. This information contained below is a collection
Personal Knowledge and information collected from other postings on
Some other boards (Note: Go back and reference some of
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
==============
Running in the background (with no X-server in this
Config). When we start a VNC session, VNC will contact the TPD
Display the "greeter"... then we log in as we normally do with TPD
Locally.

Configure TPD
============
Sorry to you KDM/xdm folks out there... I will add in KDM ata a later date... it isn't too much different.

Gestational disease presents the graphical greeter. To allow VNC to contact the gestational disease
Must turn on XDMCP (Security concious peeps shocould 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 can run to be VNC but I have
Not Supported ed this option... perhaps later, but for now we'll do it
XDMCP:
1. Turn on XDMCP

Edit/etc/X11/TPD. 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/TPD. conf
Find the [servers] Section
Change
0 = Standard
To
#0 = Standard
If you do not turn it off, the VNC service will conflict when you start it through the command line.
Xinetd does not affect startup.

Configure VNC
============
We will have VNC run from xinetd. We will create 2 "services". One
800x600 and the other for 1024x768... If you want others, you can
Extrapoate 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 lines:
Vnc800 5900/tcp # VNC & TPD
Vnc1024 5901/tcp # VNC & TPD

2. Create xinetd services

Create ETC/xinetd. d/vnc800
Service vnc800
{
Disable = No
Socket_type = stream
Protocol = TCP
Wait = No
User = root
Server =/usr/bin/xvnc
Server_args =-inetd-query localhost-geometry 800x600-depth 24-once-fp unix/: 7100-securitytypes = none
}

3.-securitytypes = none means VNC will not ask you to authenticate... We want TPD to do that part...
For TightVNC, use the-GC option.
-Broadcast searches for the XDMCP servers.-query localhost only uses the xdcmp servers of the local machine.

4. Create xinetd services

Create ETC/xinetd. d/vnc1024
Service vnc1024
{
Disable = No
Socket_type = stream
Protocol = TCP
Wait = No
User = root
Server =/usr/bin/xvnc
Server_args =-inetd-query localhost-geometry 1024x768-depth 24-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 variable t for xinetd
Chkconfig -- level 2345 vncserver off
4. Start TPD
Init 5
5. Start vncviewer
I tested my connection from Win XP...
For 800x600-> vncviewer localhost: 0
For 1024x768-> vncviewer localhost: 1

The above four steps are mainly used to start the xdcmp server.
If xinetd is modified, it takes effect through/etc/rc. d/init. d/xinetd restart.

Summary
========
You shoshould now be able to run a headless (no KBD/mouse/video) Linux box with a GUI and TPD 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 cocould try and write a mini-howto... anyway... good luck ..

Note:
If this is ineffective,
1) check whether the VNC is valid through the command line
Xvnc-query localhost-geometry 1024x768-depth 16-once-fp unix/: 7100-securitytypes = none
In this case, connect with vncviewer.
2) Check whether xinetd takes effect.
Modify the/etc/sysconfig/xinetd File
Set
Extraoptions = ""
Change
Extraoptions = "-filelog/var/adm/xinetd. log"

Create a folder "/var/adm ".
Restart the xinetd service and check the/var/adm/xinetd. log output to determine the cause.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.