skip to main contentskip to main menuskip to footer Universität Bielefeld Play Search

Mathematica and MATLAB via X2Go

IT at the faculty of physics
© Bielefeld University / Christoph Pelargus

To meet the high demand for Mathematica and MATLAB licenses, we offer corresponding servers that can be used for both Mathematica and MATLAB. To use this, connect to the corresponding server via X2Go, and you can then use the programs as before on your desktop.

Prerequisites

Customise SSH configuration and generate key

  1. Open a terminal on your own PC
  2. Change to the SSH directory with cd .ssh
  3. If not already there, create a new SSH key for entry and authorise it on entry (e.g. with ssh-keygen -t ed25519 -f entry and then ssh-copy-id -i entry entry.physik.uni-bielefeld.de, using your physics account's data to log in)
  4. If not yet available, create a new config file with touch config
  5. Open the config file with a text editor of your choice (e.g. with nvim config)
  6. Create the following entries in it, replacing alovelace with your own user name:

Host entry

                HostName entry.physik.uni-bielefeld.de

                User alovelace

               IdentityFile ~/.ssh/entry

        Host m1

                HostName m1.physik.uni-bielefeld.de

               IdentityFile ~/.ssh/entry

               User alovelace

                ProxyJump entry

        Host m2

                HostName m2.physik.uni-bielefeld.de

                IdentityFile ~/.ssh/entry

                User alovelace

                ProxyJump entry

7. Save the file and close the terminal

X2Go with entry as jump host

This currently only works with the m2 server.

0. Prerequisite is that the SSH configuration has been adjusted as described above

1. Install the X2Go client according to the following instructions: Installing X2Go

2. Create a new meeting in X2Go(Create Session) with the following parameters:

Setting Value
Host m2
SSH-Port 22
Try auto login via SSH Agent yes

3. Select "Single Application" as the session type and select the empty field in the drop-down menu on the right, then enter "mathematica" or "matlab" in the same field on the far right

4. In the Connection tab, set the Connection speed setting to "WAN" for VPN connections from outside the university network or to "LAN" for direct connections from within the university

5. The remaining settings can be left at the default values, see image:

Session name: m2 ssh config;Path: /;Host: m2; Login: blank; SSH port: 22;Use RSA/DSA key for ssh connection: blank;Try auto login (via SSH Agent or default SSH key): Yes;Kerberos 5 (GSSAPI) authentication: No;Delegation of GSSAPI credentials to the server: No (Not available);Use proxy server for SSH connection: No;Run in X2GoKDrive (experimental): No;Single application Command: blank, mathematica
Example settings for X2Go | © 2024 Bielefeld University

6. Finally start the session and use Mathematica as usual. It may be necessary to close any sessions that are already open to connect.

7. After closing the program, you may be asked for a user name and password. This can be ignored.

back to top