Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Setting up X11 and OpenGL on your laptop/desktop | ||||||||
Line: 47 to 47 | ||||||||
You will need both an ssh![]() ![]() ![]() | ||||||||
Added: | ||||||||
> > | If you've installed Windows Subsystem for Linux (WSL), you'll still need an external X11 server program such as mobaXterm to connect to a remote server and run X11 programs. Since forwarding an X11 connection from a server program through WSL to a remote server requires a bit of setup, I strongly recommend that you simply use mobaXterm (or another X-server program if you prefer) and skip WSL for this purpose. | |||||||
After you've downloaded and installed mobaXterm, you will want to turn on X11 forwarding. This post![]() ssh -XY jsmith@olga.nevis.columbia.edu |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Setting up X11 and OpenGL on your laptop/desktopX11 | ||||||||
Changed: | ||||||||
< < | X11![]() ![]() | |||||||
> > | X11![]() ![]() | |||||||
If you try to run a program and you don't see the graphics display you expected, or you get messages of the form Can't open display , then it probably means that you did not forward your X11 connection as described in the following steps. To check this, on the remote system examine the value of the variable $DISPLAY :
| ||||||||
Line: 17 to 17 | ||||||||
libGL error: failed to load driver: swrast | ||||||||
Deleted: | ||||||||
< < | Setting up X11 on LinuxIt's already there. Note that you can set up X11 forwarding the same way as described for Mac OS. Note: X11 might not be there if you set up your laptop with a minimal text-only Linux installation without graphics. If you have that level of expertise, I'll assume you know how to install X11 if you need it. | |||||||
Setting up X11 on Mac OSFor Mac OS 10.7 and later, you're going to need to install XQuartz![]() | ||||||||
Line: 43 to 37 | ||||||||
ForwardAgent yes | ||||||||
Added: | ||||||||
> > | Setting up X11 on LinuxIt's already there. Note that you can set up X11 forwarding the same way as described for Mac OS. Note: X11 might not be there if you set up your laptop with a minimal text-only Linux installation without graphics. If you have that level of expertise, I'll assume you know how to install X11 if you need it. | |||||||
Setting up X11 on Microsoft WindowsYou will need both an ssh![]() ![]() ![]() |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Setting up X11 and OpenGL on your laptop/desktop | ||||||||
Line: 6 to 6 | ||||||||
X11![]() ![]() | ||||||||
Changed: | ||||||||
< < | If you try to run a program and you get messages of the form Can't open display , then it probably means that you did not forward your X11 connection as described in the following steps. To check this, on the remote system examine the value of the variable $DISPLAY : | |||||||
> > | If you try to run a program and you don't see the graphics display you expected, or you get messages of the form Can't open display , then it probably means that you did not forward your X11 connection as described in the following steps. To check this, on the remote system examine the value of the variable $DISPLAY : | |||||||
echo $DISPLAY |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Setting up X11 and OpenGL on your laptop/desktop | ||||||||
Line: 31 to 31 | ||||||||
You'll want to enable X11 forwarding![]() | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
ssh -XY jsmith@olga.nevis.columbia.edu |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Setting up X11 and OpenGL on your laptop/desktop | ||||||||
Line: 19 to 19 | ||||||||
Setting up X11 on Linux | ||||||||
Changed: | ||||||||
< < | It's there. You're done. Jump to the section on OpenGL below. | |||||||
> > | It's there. Note that you can set up X11 forwarding the same way as described for Mac OS. Note: X11 might not be there if you set up your laptop with a minimal text-only Linux installation without graphics. If you have that level of expertise, I'll assume you know how to install X11 if you need it. | |||||||
Setting up X11 on Mac OS |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Setting up X11 and OpenGL on your laptop/desktopX11 | ||||||||
Changed: | ||||||||
< < | X11![]() ![]() | |||||||
> > | X11![]() ![]() | |||||||
If you try to run a program and you get messages of the form Can't open display , then it probably means that you did not forward your X11 connection as described in the following steps. To check this, on the remote system examine the value of the variable $DISPLAY :
| ||||||||
Line: 77 to 77 | ||||||||
OpenGL on Mac OS | ||||||||
Changed: | ||||||||
< < | OpenGL is not enabled in XQuartz by default. try the following steps: | |||||||
> > | OpenGL is not enabled in XQuartz by default. You'll have to do the following: | |||||||
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Setting up X11 and OpenGL on your laptop/desktop | ||||||||
Line: 10 to 10 | ||||||||
echo $DISPLAY | ||||||||
Changed: | ||||||||
< < | If $DISPLAY has a value (typically of the form localhost:NN:N ) then the X11 connection has been forwarded correctly. If $DISPLAY is blank, then something has gone wrong with one of the above steps (did you remember to capitalize -XY ?). | |||||||
> > | If $DISPLAY has a value (typically of the form localhost:NN:N ) then the X11 connection has been forwarded correctly. If $DISPLAY is blank, then something has gone wrong with one of the steps (did you remember to capitalize -XY ?). | |||||||
Note that X11 spews forth error messages constantly. If the program is working and you see the graphics you expect, ignore these messages. In particular, this message is common and does not indicate that anything is wrong:
| ||||||||
Line: 53 to 53 | ||||||||
OpenGL | ||||||||
Changed: | ||||||||
< < | You probably don't need to enable OpenGL at all. In case you do (your collaboration will let you know), there's how. | |||||||
> > | You probably don't need to enable OpenGL at all. In case you do (your collaboration will let you know), there's how. | |||||||
Some X11 applications use OpenGL![]() ![]() | ||||||||
Line: 73 to 73 | ||||||||
sudo yum install glx-utils | ||||||||
Added: | ||||||||
> > | You may also need to install the drivers for your particular graphics card. Consult the web site of the manufacturer and look for instructions on how to install Linux drivers. | |||||||
OpenGL on Mac OSOpenGL is not enabled in XQuartz by default. try the following steps: | ||||||||
Line: 95 to 97 | ||||||||
mobaXterm![]() | ||||||||
Changed: | ||||||||
< < | In the Settings->X11 tab, you'll see a setting that allows you to choose between OpenGL rendering: hardware, software, or none. "Hardware" will only work if you have the appropriate OpenGL drivers installed for your graphics card. Probably "software" or "none" should work as-is. | |||||||
> > | In the Settings->X11 tab, you'll see a setting that allows you to choose between OpenGL rendering: hardware, software, or none. "Hardware" will only work if you have the appropriate OpenGL drivers installed for your graphics card. Probably "software" or "none" should work as-is. | |||||||
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Changed: | ||||||||
< < | Setting up X11 on Mac OS | |||||||
> > | Setting up X11 and OpenGL on your laptop/desktop | |||||||
Changed: | ||||||||
< < | X11![]() ![]() | |||||||
> > | X11X11![]() ![]() Can't open display , then it probably means that you did not forward your X11 connection as described in the following steps. To check this, on the remote system examine the value of the variable $DISPLAY :
echo $DISPLAYIf $DISPLAY has a value (typically of the form localhost:NN:N ) then the X11 connection has been forwarded correctly. If $DISPLAY is blank, then something has gone wrong with one of the above steps (did you remember to capitalize -XY ?).
Note that X11 spews forth error messages constantly. If the program is working and you see the graphics you expect, ignore these messages. In particular, this message is common and does not indicate that anything is wrong:
libGL error: failed to load driver: swrast Setting up X11 on LinuxIt's there. You're done. Jump to the section on OpenGL below.Setting up X11 on Mac OSFor Mac OS 10.7 and later, you're going to need to install XQuartz![]() | |||||||
Note: You rarely have to deliberately start up XQuartz. If an application uses X11, XQuartz will detect it and automatically start itself. | ||||||||
Changed: | ||||||||
< < | If you're logging into one of the Nevis systems to run a program that uses X11 (such as ROOT![]() ![]() | |||||||
> > | You'll want to enable X11 forwarding![]() | |||||||
| ||||||||
Line: 20 to 41 | ||||||||
ForwardAgent yes | ||||||||
Changed: | ||||||||
< < | If you get messages of the form Can't open display , then it probably means that you did not forward your X11 connection as described in the above steps. To check this, on the remote system examine the value of the variable $DISPLAY : | |||||||
> > | Setting up X11 on Microsoft WindowsYou will need both an ssh![]() ![]() ![]() ![]() | |||||||
Changed: | ||||||||
< < | echo $DISPLAY | |||||||
> > | ssh -XY jsmith@olga.nevis.columbia.edu | |||||||
Changed: | ||||||||
< < | If $DISPLAY has a value (typically of the form localhost:NN:N ) then the X11 connection has been forwarded correctly. If $DISPLAY is blank, then something has gone wrong with one of the above steps (did you remember to capitalize -XY ?). | |||||||
> > | implies that in mobaXterm you'd put olga.nevis.columbia.edu for the hostname and jsmith for the username. | |||||||
OpenGL | ||||||||
Changed: | ||||||||
< < | Some X11 applications use OpenGL![]() ![]() | |||||||
> > | You probably don't need to enable OpenGL at all. In case you do (your collaboration will let you know), there's how.
Some X11 applications use OpenGL![]() ![]() OpenGL on LinuxIt's probably sufficient to install the glx-utils package on Linux if it's not already installed. You can test if that package is already installed using theglxinfo command. If you get any output other than "glxinfo not found" then you have the package.
If glx-utils is not installed, the commands to do this are:
sudo apt-get install glx-utils
sudo yum install glx-utils OpenGL on Mac OSOpenGL is not enabled in XQuartz by default. try the following steps: | |||||||
| ||||||||
Line: 43 to 90 | ||||||||
defaults write org.macosforge.xquartz.X11 enable_iglx -bool true | ||||||||
Added: | ||||||||
> > |
OpenGL on Microsoft WindowsmobaXterm![]()
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
Setting up X11 on Mac OSX11![]() ![]() ![]() ![]()
ssh -XY jsmith@olga.nevis.columbia.edu
ForwardX11 yes ForwardX11Trusted yes ForwardAgent yesIf you get messages of the form Can't open display , then it probably means that you did not forward your X11 connection as described in the above steps. To check this, on the remote system examine the value of the variable $DISPLAY :
echo $DISPLAYIf $DISPLAY has a value (typically of the form localhost:NN:N ) then the X11 connection has been forwarded correctly. If $DISPLAY is blank, then something has gone wrong with one of the above steps (did you remember to capitalize -XY ?).
OpenGLSome X11 applications use OpenGL![]() ![]()
defaults write org.xquartz.X11 enable_iglx -bool true
defaults write org.macosforge.xquartz.X11 enable_iglx -bool true |