| Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
howto:windows [2024/04/17 22:17] ccrosby |
howto:windows [2026/09/07 09:32] (current) ccrosby |
| * The Linux-based analysis or simulation software has no GUI, but there is a Windows GUI. | * The Linux-based analysis or simulation software has no GUI, but there is a Windows GUI. |
| * The Windows application may be a pre- or post-processor for a native Linux application. | * The Windows application may be a pre- or post-processor for a native Linux application. |
| * If the user lacks a workstation with sufficient resource such as memory or processing power. | * If the user lacks a workstation with sufficient resources such as memory or processing power. |
| | |
| | ==== Consider Cloud ==== |
| | The CHPC has its own [[https://wiki.chpc.ac.za/guide:cloud:start|cloud]] offering called [[https://openstackusers.nicis.ac.za/login/?next=/|Sebowa]]. Windows instances are possible but the user is responsible for providing a Windows license. |
| |
| ==== Have some Wine ==== | ==== Have some Wine ==== |
| [[https://www.winehq.org/|Wine]] (originally an acronym for "Wine Is Not an Emulator") is a compatibility layer capable of running Windows applications on several POSIX-compliant operating systems, such as Linux, macOS, & BSD. Installing Wine on a Linux system is a non-trivial task, which may require root access. This would introduce serious and unacceptable security issues. However, Wine can be accessed by way of a [[https://docs.sylabs.io/guides/3.5/user-guide/index.html|Singularity]] container. Singularity-3.5.3 is available on Linux and the container for WineHQ has been installed in ''/home/apps/chpc/compmech/Wine/winehq.sif'' | [[https://www.winehq.org/|Wine]] (originally an acronym for "Wine Is Not an Emulator") is a compatibility layer capable of running Windows applications on several POSIX-compliant operating systems, such as Linux, macOS, & BSD. Installing Wine on a Linux system is a non-trivial task, which may require root access. This would introduce serious and unacceptable security issues. However, Wine can be accessed by way of a [[https://docs.sylabs.io/guides/3.5/user-guide/index.html|Singularity]] container. Singularity-3.5.3 is available on Lengau and the container for WineHQ has been installed in ''/home/apps/chpc/compmech/Wine/winehq.sif'' |
| |
| Therefore, if you need to run a Windows application on the cluster, you can do so as follows: | Therefore, if you need to run a Windows application on the cluster, you can do so as follows: |
| - Wine creates a Windows directory structure in your home directory. | - Wine creates a Windows directory structure in your home directory. |
| - This could use up your home directory quota rather quickly. Proceed with care. | - This could use up your home directory quota rather quickly. Proceed with care. |
| - The "Windows" directory ''Templates'' is symbolically linked to your home directory. This means that you can access your Linux files in the Windows application through ''C:\users\jblogs\Templates | - The "Windows" directory ''Templates'' is symbolically linked to your home directory. This means that you can access your Linux files in the Windows application through ''C:\users\jblogs\Templates'' |
| | |
| | === Wine example === |
| | A Windows application may be installed in exactly the same way. The application will be installed in ''~/.wine/drive_c/Program Files'' by default. In this example we can run the installed software [[https://www.irfanview.com/|IrfanView]] (a popular Windows image viewing and manipulation application) with the following command line: |
| | <code> |
| | $ singularity run /home/apps/chpc/compmech/Wine/winehq.sif ~/.wine/drive_c/Program\ Files/IrfanView/i_view64.exe |
| | </code> |
| | |
| | {{:howto:iview.png|}} |
| | |
| | It goes without saying that you need to use either X-forwarding or [[howto:remote_viz|VNC]] in order to get a graphical capability. |
| |
| ==== Final thoughts on using Singularity and Wine ==== | ==== Final thoughts on using Singularity and Wine ==== |