RE: Redhat Enterprise 4 Remote Desktop (VNC) Server Port

From: Smith, Albert (Albert.Smith_at_genexservices.com)
Date: 03/29/05

  • Next message: Don Lindbergh: "Re: Redhat Enterprise 4 Remote Desktop (VNC) Server Port"
    Date: Mon, 28 Mar 2005 21:09:53 -0500
    To: "General Red Hat Linux discussion list" <redhat-list@redhat.com>
    
    

    True but the initial discussion shows how to assign an arbitrary port

    Albert Smith
    Sr. Unix Systems Administrator
    HPCSA, RHCT
    Genex Services
    440 E. Swedesford Rd.
    Wayne, PA 19087
    albert.smith@genexservices.com
    (610) 964-5154
     

    > -----Original Message-----
    > From: redhat-list-bounces@redhat.com
    > [mailto:redhat-list-bounces@redhat.com] On Behalf Of Ed Greshko
    > Sent: Monday, March 28, 2005 8:53 PM
    > To: General Red Hat Linux discussion list
    > Subject: Re: Redhat Enterprise 4 Remote Desktop (VNC) Server Port
    >
    >
    >
    > 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@genexservices.com
    > > (610) 964-5154
    > >
    > >
    > >
    > >>-----Original Message-----
    > >>From: redhat-list-bounces@redhat.com
    > >>[mailto:redhat-list-bounces@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@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".
    >
    > --
    > redhat-list mailing list
    > unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    > https://www.redhat.com/mailman/listinfo/redhat-list
    >
    >

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Don Lindbergh: "Re: Redhat Enterprise 4 Remote Desktop (VNC) Server Port"

    Relevant Pages

    • RE: i just did a rm -rf /*r as root!!!
      ... Unix Systems Administrator ... > Albert Smith ... > 440 E. Swedesford Rd. ... > Wayne, PA 19087 ...
      (RedHat)
    • RE: Determining which drive failed in RAID 5 array
      ... > Albert Smith ... Unix Systems Administrator ... > 440 E. Swedesford Rd. ... > Wayne, PA 19087 ...
      (RedHat)
    • RE: XFree86 4.3.0
      ... Unix Systems Administrator ... > during the installation and it seems to be the same utility. ... >> Got a sticky problem here and need some assistance. ... >> Albert Smith ...
      (RedHat)
    • RE: Log rotation
      ... Unix Systems Administrator ... >> Albert Smith ... > Darryl W. DeLao ... -- redhat-list mailing list unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
      (RedHat)