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

From: Don Lindbergh (don_at_donlindbergh.com)
Date: 03/29/05

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

    >> Ed wrote:
    > 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. :-)

    Hmmm, just tried editing that file and specifying a different port,
    restarted, and the vnc server continues to run on tcp port 5900 (I had
    previously thought it was 5800).

    If I stop the server, I do an nmap afterwards and it's still
    running/listening and I can connect with a client.

    /etc/init.d/vncserver stop

    Shutting down VNC server: [ OK ]

    [root@localhost don]# nmap -sT -O localhost

    Starting nmap 3.70 ( http://www.insecure.org/nmap/ ) at 2005-03-28 21:29 EST
    Interesting ports on localhost.localdomain (127.0.0.1):
    (The 1655 ports scanned but not shown below are in state: closed)
    PORT STATE SERVICE
    22/tcp open ssh
    25/tcp open smtp
    111/tcp open rpcbind
    631/tcp open ipp
    5900/tcp open vnc

    --Don

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

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

    Relevant Pages

    • Re: Bug with instanceName property?
      ... If you specify a portnumber attempt to connect using port number. ... I installed SQL Server 2005 on a ... > you get a more efficient connection since it doesn't need to connect to ...
      (microsoft.public.sqlserver.jdbcdriver)
    • Re: To allow inbound traffic from a specific ip
      ... create a new protocol for ... specify in the Primary connection in the Protocol field TCP ... TCP, and the direction as inbound, and the port range that you seen, note ...
      (microsoft.public.isa.configuration)
    • Re: Why does printk helps PCMCIA card to initialise?
      ... and can also specify how many IO address lines they ... restriction for a card; if it only decodes 3 lines, ... port boundary. ... are specified that the meaning is complicated. ...
      (Linux-Kernel)
    • Re: Passive mode FTP under Solaris 10?
      ... I've come to understand that I need to specify a range of high ports ... There seems to be alternate ftp server software that's easy to ... When any control connection matching ... Allows control of the TCP port numbers which may be used ...
      (comp.unix.solaris)
    • Re: BTS2004 Dynamic Send Port with XmlDocument and SOAP
      ... The send port will need an assembly and class specified as context ... will be used to call the web service. ... This gives the adapter enough information to create the proxy ... specify an Assembly in my message. ...
      (microsoft.public.biztalk.general)