You could try something like
Xvfb, which is in theory designed for your situation. However, freeglut may be looking for more advanced features, so you may need a real X-server (and one with Open-GL support). If that's the case then try one of the two below instead.
If you have a system that can function as an X-Windows display server (that your non-X server can reach) you could try setting your DISPLAY to that server. For example:
display-server> echo $DISPLAY
localhost:10.0
display-server> xhost + <code_compiling_server_name_or_ip_address>
code-compiling-server> export DISPLAY=display-server:10.0
code-compiling-server> /usr/X11R6/bin/xclock # Test if it works.
display-server> xhost - ## Do this after you are done compiling and
+testing ##
Or for X11 Forwarding with SSH (safer/more secure):
- On the display server make sure "ForwardX11Trusted" is set to "yes" in /etc/ssh/ssh_config.
- On the code compiling server make sure "X11Forwarding" is set to "yes" in /etc/ssh/sshd_config.
- You may need to do this on the display server as well (been a long time since I had to set this up and that was on Solaris system).
- SSH from the display server server to the code compiling server.
- If things are setup correctly you should have a DISPLAY environment variable automatically set for you on the code compiling server.
- Test it by running /usr/X11R6/bin/xclock.
Note: if you manually set the DISPLAY on the code compiling server then it will not be tunneled and you will lose the security advantage of using SSH. And you may need to do the xhost + stuff like in the first example (because that's pretty much the method X11 will be using).
Elda Taluta; Sarks Sark; Ark Arks
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.