Redhat Enterprise 4 Remote Desktop (VNC) Server Port
Ed Greshko
Ed.Greshko at greshko.com
Tue Mar 29 01:52:39 UTC 2005
Smith, Albert wrote:
> Ah but you can...
>
> You can do this in a config file I did it...
>
> vi /etc/sysconfig/vncservers
>
> Add the following line
>
> httpport=port
>
> Then modify /etc/init.d/vncserver
>
> "su ${USER} -c \"cd ~${USER} && [ -f .vnc/passwd ] && vncserver
> :${display%%:*} -httpport ${httpport}\""
OK... a 2 step process.... but the cat is skinned in either way.
> However another way to change the httpport is to change the display
> number. Such as if vncserver is on screen 2 then you would access it via
> the web at:
Yes, but that doesn't give you an arbitrary port. It gives you
default+display. I'm guessing the OP was searching for arbitrary.
>
> http://vncserver:5802
>
> If you are on display 6
>
> http://vncserver:5806
>
> These are the 580x are the standard port numbers. I don't know if there
> is a max on the amount of VNC Servers I would assume it is 9 as on
> Display 0 is your local X Windows Server
>
> Albert Smith
> Sr. Unix Systems Administrator
> HPCSA, RHCT
> Genex Services
> 440 E. Swedesford Rd.
> Wayne, PA 19087
> albert.smith at genexservices.com
> (610) 964-5154
>
>
>
>>-----Original Message-----
>>From: redhat-list-bounces at redhat.com
>>[mailto:redhat-list-bounces at redhat.com] On Behalf Of Ed Greshko
>>Sent: Monday, March 28, 2005 8:35 PM
>>To: General Red Hat Linux discussion list
>>Subject: Re: Redhat Enterprise 4 Remote Desktop (VNC) Server Port
>>
>>
>>
>>Don Lindbergh wrote:
>>
>>>Ed wrote:
>>>
>>>
>>>>man Xvnc
>>>
>>>
>>>Thanks. The Xvnc man page references a file which doesn't
>>
>>exist on my
>>
>>>system, inetd.conf. xinetd.conf exists but it doesn't contain
>>>anything pointing to Xvnc nor does my etc/xinetd.d directory.
>>>
>>>So, exactly how is the vnc server started after using the
>>
>>interface to
>>
>>>change remote desktop preferences, 'sharing, allow other
>>
>>users to view
>>
>>>your desktop, allow other users to control your desktop'
>>
>>etc.? IE, if
>>
>>>there's some file somewhere containing a line which is
>>
>>running 'Xvnc'
>>
>>>with some parameters, what file is that?
>>>
>>>I checked the Redhat documentation and didn't find anything
>>
>>about this.
>>
>>Well...one way to do this is to edit the /etc/init.d/vncserver file.
>>
>>In the "start" subroutine exit the line:
>>
>>"su ${USER} -c \"cd ~${USER} && [ -f .vnc/passwd ] &&
>>vncserver :${display%%:*}\""
>>
>>to be:
>>
>>"su ${USER} -c \"cd ~${USER} && [ -f .vnc/passwd ] &&
>>vncserver -httpport 6900 :${display%%:*}\""
>>
>>Seems as if there should be a way to specify this in a config
>>file...and yes I assumed the Xvnc man page would have had it. :-)
>>
>>Ed
>>
>>--
>>"A common mistake that people make when trying to design
>>something completely foolproof was to underestimate the
>>ingenuity of complete fools."
>>
>>--Ford Prefect in "Mostly Harmless".
>>
>>--
>>redhat-list mailing list
>>unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
>>https://www.redhat.com/mailman/listinfo/redhat-list
>>
>>
>
>
>
--
"A common mistake that people make when trying to design something
completely foolproof was to underestimate the ingenuity of complete
fools."
--Ford Prefect in "Mostly Harmless".
More information about the redhat-list
mailing list