LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-29-2007, 03:58 PM   #1
steinz
Member
 
Registered: Mar 2006
Posts: 58

Rep: Reputation: 16
vncserver not displaying xclock


Hi,

I am having trouble running gui apps with vncserver.

On the server I run vncserver :0

I connect with vncview to the server ip + :0

at the prompt I run DISPLAY=mypcip:0 (I have also tried :0.0)
export DISPLAY

when I run xclock I get an error Can't open display: mypcip
BUT I can run xclock -display :0

Can anyone think of what is wrong

Thanks
Randy
 
Old 06-29-2007, 04:28 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Just hazarding a guess, but it sounds like your confusing vnc with X forwarding. Running a VNC client should get you a view to a desktop on the remote machine that you can use as if you were there. You shouldn't have to use DISPLAY or worry about the screen.

Am I missing something?
 
Old 06-29-2007, 04:38 PM   #3
steinz
Member
 
Registered: Mar 2006
Posts: 58

Original Poster
Rep: Reputation: 16
your right

I am/was confusing X forwarding with vncserver. Still not sure what the problem is though

randy
 
Old 06-30-2007, 07:50 AM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
OK, if you want to do X forwarding you need two things: 1) An SSH connection to the remote computer with X forwarding enabled (the -Y flag) and an X server running on the local machine. So here is an example.... Lets say your remote computer has the IP address of 1.1.1.1, so you would establish the SSH connection like this:

ssh user@1.1.1.1 -Y

Once that is established, then, in the SSH console you would enter the xclock command. As long as you have X running on the local computer, xclock should appear. If the local computer is Linux, then there shouldn't be a problem with having X available, however if the local computer is Windows, you'll need to install and run something like Cygwin to get a local X server. Windows by itself can't handle X forwarding.
 
Old 06-30-2007, 02:20 PM   #5
steinz
Member
 
Registered: Mar 2006
Posts: 58

Original Poster
Rep: Reputation: 16
My local box is running windows. Shouldn't I be able to do this with realvnc?
Since xclock -display :0 DOES work with realvnc, I would think I am close.
 
Old 06-30-2007, 06:48 PM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Since xclock -display :0 DOES work with realvnc
Where are you entering that command? It is absolutely and utterly irrelevant for VNC.

All a VNC viewer is doing is showing you a picture of an X environment that is running remotely. It is literally as if you were sitting at the remote computer. Everything is being run on the remote computer, and all the VNC viewer is doing is showing you what is happening on the remote. Think of VNC as a monitor connected to the remote with an infinitely long cable.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xclock font autophil Linux - Desktop 3 05-27-2007 07:24 AM
xclock autophil Slackware 14 05-26-2007 12:50 AM
xclock not running mumtaz52 Linux - Enterprise 3 01-02-2006 12:11 AM
VNCServer not displaying whole desktop kt8993 Fedora 3 09-03-2005 09:00 AM
Robust vncserver startup file (rc.vncserver) arobinson74 Slackware 4 05-14-2005 05:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration