other:x_conf
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
other:x_conf [2022/08/04 17:03] – [Using an X server on Linux] jypeter | other:x_conf [2022/08/08 16:57] – [On a Windows computer with WSL+Linux and an X server installed] Improved jypeter | ||
---|---|---|---|
Line 5: | Line 5: | ||
An //X server// is not a server for distributing your perfect models output! | An //X server// is not a server for distributing your perfect models output! | ||
- | An //X server// is basically a program running on your local computer that understands the [[https:// | + | An //X server// is basically a program running on your local computer that understands the [[https:// |
===== Using an X server on Linux ===== | ===== Using an X server on Linux ===== | ||
- | Linux computers come pre-configured with a running X server | + | Linux computers come pre-configured with a running |
+ | |||
+ | **You don't need to do anything special!** | ||
Line 16: | Line 18: | ||
There are several options available | There are several options available | ||
+ | ==== Installing VcXsrv ==== | ||
+ | <note tip>'' | ||
+ | |||
+ | * You may want to check if a more recent version is available | ||
+ | * You surely want to follow the configuration steps, in order to get the best possible settings to work with PuTTY! | ||
+ | </ | ||
+ | |||
+ | Type: <wrap em> | ||
+ | |||
+ | Download the installer from [[https:// | ||
+ | |||
+ | === VcXsrv Configuration === | ||
+ | |||
+ | You need to configure '' | ||
+ | |||
+ | * Start the // | ||
+ | * Select '' | ||
+ | * Select '' | ||
+ | * Keep the default '' | ||
+ | * You can check the [[other: | ||
+ | * Click on '' | ||
+ | * Start the server by double-clicking on the new '' | ||
+ | * It will seem that nothing happens, but an '' | ||
+ | * The X server will stop when you close your Windows session or restart the computer. Do not forget to click on the '' | ||
+ | * FIXME Document how to automatically start the X server... | ||
+ | * Note: you can right-click on the '' | ||
+ | |||
+ | |||
+ | ==== Installing x410 ==== | ||
+ | |||
+ | <WRAP center round tip 60%> | ||
+ | [[https:// | ||
+ | |||
+ | This is an //X server//, and you will get the same functionalities as what is already provided for free by [[other: | ||
+ | * Once installed, '' | ||
+ | * If you move to another computer, you can install '' | ||
+ | * There seem to be more (useful) updates than for '' | ||
+ | * The interface is more modern, with more options, and there is a lot of useful information on the web site | ||
+ | * The '' | ||
+ | </ | ||
+ | |||
+ | |||
+ | Type: <wrap em> | ||
+ | |||
+ | Buy and install '' | ||
+ | |||
+ | === x410 configuration === | ||
+ | |||
+ | * Start '' | ||
+ | * It will seem that nothing happens, but an '' | ||
+ | * Right-click on the '' | ||
+ | * Select '' | ||
+ | * It's possible to **automatically start '' | ||
+ | * Open the **Windows Task Manager** (Right-click on '' | ||
+ | * Go to the '' | ||
+ | * Right-click on '' | ||
+ | * Note: if you need to quit the //X server//, you can right-click on the '' | ||
===== Using an X server on an Apple computer ===== | ===== Using an X server on an Apple computer ===== | ||
+ | |||
+ | |||
+ | ===== Configuration on the remote Linux server ===== | ||
+ | |||
+ | ==== If you are connecting with ssh or PuTTY ==== | ||
+ | |||
+ | Nothing special to do, if you are using [[other: | ||
+ | |||
+ | ==== If you are using WSL ==== | ||
+ | |||
+ | You need to know what you consider as the //Local machine//, and what is the //Remote server// | ||
+ | |||
+ | * **Local machine**: your local **Windows computer**, where you have installed [[other: | ||
+ | |||
+ | * **Remote server** : we consider 2 types of remote servers: | ||
+ | * an **actual remote server** | ||
+ | * The **WSL computer** running on a **virtual machine inside your local Windows computer**. This can be considered as a different and //remote// computer, even it is running on the local computer\\ You need your local //X server// to display graphics generated in WSL | ||
+ | * **Define the '' | ||
+ | * //bash// shell: '' | ||
+ | * //tcsh// shell: '' | ||
+ | * You probably want to define the '' | ||
+ | |||
+ | |||
+ | ===== Testing ===== | ||
+ | |||
+ | The idea is to: | ||
+ | * Open a terminal and check that the '' | ||
+ | * Connect to the remote machine | ||
+ | * Check that a (new) '' | ||
+ | * Check that you can start an application using graphics (e.g. '' | ||
+ | |||
+ | ==== On a Linux computer ==== | ||
+ | |||
+ | Some basic commands in a terminal | ||
+ | |||
+ | < | ||
+ | name_of_your_local_machine | ||
+ | |||
+ | [Local] $ echo $DISPLAY | ||
+ | :0 | ||
+ | |||
+ | [Local] $ ssh -X some_login@some_remote_server | ||
+ | [some connection information skipped here] | ||
+ | |||
+ | [Remote] $ hostname | ||
+ | name_of_the_remote_server | ||
+ | |||
+ | [Remote] $ echo $DISPLAY | ||
+ | localhost: | ||
+ | |||
+ | [Remote] $ xterm</ | ||
+ | |||
+ | ==== On a Windows computer with only an X server installed ==== | ||
+ | |||
+ | We just open a '' | ||
+ | |||
+ | < | ||
+ | name_of_your_local_machine | ||
+ | |||
+ | PS C:\> $env: | ||
+ | PS C:\> $env: | ||
+ | PS C:\> $env: | ||
+ | localhost:0 | ||
+ | |||
+ | PS C:\> ssh -Y some_login@some_remote_server | ||
+ | Warning: No xauth data; using fake authentication data for X11 forwarding. | ||
+ | [some connection information skipped here] | ||
+ | |||
+ | [Remote] $ hostname | ||
+ | name_of_the_remote_server | ||
+ | |||
+ | [Remote] $ echo $DISPLAY | ||
+ | localhost: | ||
+ | |||
+ | [Remote] $ xterm</ | ||
+ | |||
+ | |||
+ | ==== On a Windows computer with PuTTY and an X server installed ==== | ||
+ | |||
+ | We assume here that [[other: | ||
+ | |||
+ | We just have to open a pre-configured //PuTTY Session// on a remote server | ||
+ | < | ||
+ | name_of_the_remote_server | ||
+ | |||
+ | [Remote] $ echo $DISPLAY | ||
+ | localhost: | ||
+ | |||
+ | [Remote] $ xterm</ | ||
+ | |||
+ | |||
+ | ==== On a Windows computer with WSL+Linux and an X server installed ==== | ||
+ | |||
+ | We assume that [[other: | ||
+ | |||
+ | Open a WSL terminal (you should know how, if you have installed WSL) and type some basic commands | ||
+ | |||
+ | < | ||
+ | name_of_your_local_machine | ||
+ | [Local WSL] $ echo $DISPLAY | ||
+ | localhost: | ||
+ | [Local WSL] $ xterm | ||
+ | |||
+ | [Local WSL] $ ssh -X some_login@some_remote_server | ||
+ | [some connection information skipped here] | ||
+ | |||
+ | [Remote] $ echo $DISPLAY | ||
+ | localhost: | ||
+ | [Remote] $ xterm</ | ||
+ | ===== Troubleshooting ===== | ||
+ | |||
+ | ==== Nothing works! ==== | ||
+ | |||
+ | That's unfortunate, | ||
+ | * Have you turned on your computer? | ||
+ | * Do you have network access, and an account on a remote server? | ||
+ | * Have you run the [[other: | ||
+ | * Have you installed and configured the //X server// correctly? Is it really running? | ||
+ | * Have you configured [[other: | ||
+ | * Is the '' | ||
+ | ==== OpenGL related settings ==== | ||
+ | |||
+ | It's hard to know what the best //OpenGL// settings for your //X server// are: it depends on your local computer, the remote computer, the network speed, the application generating the graphics, the libraries' | ||
+ | |||
+ | * If '' | ||
+ | * or maybe not! You can try to understand the [[https:// | ||
+ | |||
+ | ==== Blurry display ==== | ||
+ | |||
+ | * If you use '' | ||
other/x_conf.txt · Last modified: 2024/07/10 10:54 by jypeter