Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WindEnergyToolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
toolbox
WindEnergyToolbox
Commits
404d2929
Commit
404d2929
authored
8 years ago
by
David Verelst
Browse files
Options
Downloads
Patches
Plain Diff
updated docs
parent
3db9cbb5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/configure-wine.md
+27
-11
27 additions, 11 deletions
docs/configure-wine.md
with
27 additions
and
11 deletions
docs/configure-wine.md
+
27
−
11
View file @
404d2929
Configure Wine for Gorm
------------------------
Background Information Regarding Wine
------------------------
-------------
> Note that the steps described here are executed automatically by the
configuration script [
```config-wine-hawc2.sh```
]
...
...
@@ -7,6 +7,9 @@ configuration script [```config-wine-hawc2.sh```]
in
```pbsutils```
.
Configure Wine for Gorm
------------------------
You will also need to configure wine and place the HAWC2 executables in a
directory that wine knows about. First, activate the correct wine environment by
typing in a shell in the Gorm's home directory (it can be activated with
...
...
@@ -24,23 +27,24 @@ command). In the ```.bashrc``` file in your home directory
alias wine32='WINEARCH=win32 WINEPREFIX=~/.wine32 wine'
```
Add a folder called
```
bin
```
to your wine system's PATH so we can
copy all
the HAWC2 executables in here:
Add a folder called
```
~/wine_exe/win32
```
to your wine system's PATH so we can
copy all
the HAWC2 executables in here:
```
WINEDIRNAME=".wine
32"
printf 'REGEDIT4\n[HKEY_CURRENT_USER\\Environment]\n"PATH"="
c:\\bin"
' >> ./tmp.reg
WINEARCH=win32 WINEPREFIX=~/
$WINEDIRNAME
wine regedit ./tmp.reg
$EXE_DIR_WINE="z:/home/$USER/wine_exe/win
32
/
"
printf 'REGEDIT4\n[HKEY_CURRENT_USER\\Environment]\n"PATH"="
'"$EXE_DIR_WINE"'"\n
' >> ./tmp.reg
WINEARCH=win32 WINEPREFIX=~/
.wine32
wine regedit ./tmp.reg
rm ./tmp.reg
```
And now copy all the HAWC2 executables, DLL's (including the license manager)
to your wine directory. You can copy all the required executables, dll's and
the license manager are located at
```/home/MET/hawc2exe```
. The following
command will do this copying:
command will update your local directory with any new executables that have
been placed in
```/home/MET/hawc2exe/win32/```
:
```
g-000 $
cp
/home/MET/hawc2exe/* /home/$USER/
.
wine
32/drive_c/bin
/
g-000 $
rsync -a
/home/MET/hawc2exe/
win32/
* /home/$USER/wine
_exe/win32
/
```
Notice that the HAWC2 executable names are
```hawc2-latest.exe```
,
...
...
@@ -55,7 +59,19 @@ simply copy all the files from there again to update.
Configure Wine for Jess
------------------------
Same principles apply to Jess, and [```config-wine-hawc2.sh```]
(https://gitlab.windenergy.dtu.dk/toolbox/pbsutils/blob/master/config-wine-hawc2.sh)
can be used to initialize and configure your wine environment.
Note that due to a bug in the specific version of wine that is installed on
Jess, ```config-wine-hawc2.sh``` will apply the following command to fix this.
It is important to note that this fix will have to be executed on each node at
the beginning of each new session:
```
g-000 $ WINEARCH=win32 WINEPREFIX=~/.wine32 winefix
g-000 $ WINEARCH=win32 WINEPREFIX=~/.wine32 wine test.exe
j-000 $ WINEARCH=win32 WINEPREFIX=~/.wine32 winefix
```
```
winefix
``` is automatically included in the ```
pbs_in
```
scripts genetrated
by the toolbox.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment