Find the answer to your Linux question:
Results 1 to 2 of 2
Hi friends, lets see if i can explain what i need. My linux server (serverx.company.com - redhat CentOS release 5.4) is sitting in a US based colo. There is no ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2009
    Posts
    1

    vncserver config and ssh


    Hi friends,

    lets see if i can explain what i need.

    My linux server (serverx.company.com - redhat CentOS release 5.4) is sitting in a US based colo. There is no display attached to it.

    We connect to this machine from India using ssh.

    All good till now.

    Now, we have written an automation suit that needs to run on this server - serverx. This automation suit has two part - command line and GUI. for GUI, it needs to invoke the browser (we are using selenium).

    This automation will be invoked as part of build. hence there will not be any display attached to it when it executes.

    How do I do it.

    I know that I need to run the vncserver and do something. We really need not have physical display attached.

    thanks
    Ajay

  2. #2
    Just Joined! Carlo's Avatar
    Join Date
    Jan 2005
    Location
    Denmark
    Posts
    1
    Something like this??

    VNC with SSH tunnel
    From the workstation open a terminal and write:
    Code:
    ssh -L 59XX:localhost:59XX vnc-host-ip
    
    ex.: ssh -L 5904:localhost:5904 80.81.82.83
    In the same terminal also invoke the command to start the vncserver on the server.
    Code:
    vnc4server
    And again from your workstation open another terminal and write:
    Code:
    vncviewer localhost :XX
    
    ex.: vncviewer localhost :04
    I don't know if it was something like that you looked for but this is how I connect to remote machines for use of their graphic environment.

    Of course you then need both SSH and vncserver installed on the remote machine

    --
    O

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •