- Messages
- 5,706
It is possible to use SwordSearcher on Linux-based operating systems like Ubuntu with Wine. Wine stands for "Wine is not an Emulator" and is a work-in-progress that attempts to implement the Windows API without actual Windows.
However, making it work is not very easy, because SwordSearcher makes use of Windows features that simply do not work "out of the box" on Wine.
But, if you're using Linux, and you have some patience and eagerness to problem-solve, it can be done. This is how I did it.
Before I explain how, please note that I offer no guarantee that SwordSearcher will work on Linux operating systems with Wine. I offer this as a potential alternative to using a Virtual Machine running Windows, which is really the only supported way to run SwordSearcher on a non-Windows host operating system. SwordSearcher is a Windows application and I can only promise support for using it on Windows.
That said, if you want to try it, feel free to read though this guide. If you haven't purchased SwordSearcher, please use this guide to install the evaluation version of it, before making any decisions.
I was able to get SwordSearcher 9.1 running "usable" on Ubuntu 22.04 with Wine 9.0, using the following steps along with Winetricks, a tool that aids in performing setup tasks in Wine.
The initial steps are best done in a terminal.
I followed the instructions on the WineHQ wiki to install the latest version of Wine on Ubuntu 22.04 (Jammy Jellyfish), and they have instructions for other distributions.
Note that you need to be sure to replace the sources url with the version appropriate for your version of Ubuntu (see their instructions). If you aren't using Ubuntu, check their instructions for other distributions.
After this step was finished, I had wine-9.0 on the system.
I then installed the Ubuntu winetricks package and put it into self-update mode so that it would update to the current version.
After this step was finished, I had winetricks 20240105 installed.
I ran winetricks to start the GUI and allowed it to do the initial setup which included installing Wine Mono. I then chose "Create new wineprefix"
I chose 64-bit architecture and named the prefix swordsearcher.
Now from this point on, I saw this warning quite a bit. But 64-bit is correct for this case and what we need for SwordSearcher will work properly with 64-bit.
Next, I closed the GUI for winetricks. Trust me, you do not want to do the next steps in the GUI, because you will be clicking OK on that warning dozens of times if you do!
So I dropped to terminal again and installed the corefonts package into the prefix I just made.
This took a few moments to complete.
Next, I installed the IE8 package into the same prefix. THIS IS THE MOST CRUCIAL STEP IN GETTING SWORDSEARCHER TO WORK. Note that I do not care about Internet Explorer. I did not install the IE8 package so that I could use IE, I installed IE8 so that the wine prefix will contain necessary functional library files from Microsoft, instead of the incomplete files that come with Wine. If you skip this step, SWORDSEARCHER WILL NOT WORK IN WINE. This step is how to get working MSHTML.DLL and supporting files into the wine prefix.
The command to install the IE8 package (don't forget to specify the prefix):
Again, I recommend starting this from the command line. But pay attention. There is a GUI step to completing this:
Click the "Restart Now" option at the end. This will NOT restart your computer, it will just allow winetricks to complete the task:
Next I had to click OK several times in popup windows. Careful, they may appear behind other windows, and you will need to find them to finish:
When it finished, my terminal window returned to prompt.
Note that this also sets the wine prefix to Windows 7 mode.
However, making it work is not very easy, because SwordSearcher makes use of Windows features that simply do not work "out of the box" on Wine.
But, if you're using Linux, and you have some patience and eagerness to problem-solve, it can be done. This is how I did it.
IMPORTANT: If you are using a typical PC running Windows, and do not know or care what Linux is and have never heard of Ubuntu, please ignore this entire thread. There's no need to read it in your case!
Before I explain how, please note that I offer no guarantee that SwordSearcher will work on Linux operating systems with Wine. I offer this as a potential alternative to using a Virtual Machine running Windows, which is really the only supported way to run SwordSearcher on a non-Windows host operating system. SwordSearcher is a Windows application and I can only promise support for using it on Windows.
That said, if you want to try it, feel free to read though this guide. If you haven't purchased SwordSearcher, please use this guide to install the evaluation version of it, before making any decisions.
I was able to get SwordSearcher 9.1 running "usable" on Ubuntu 22.04 with Wine 9.0, using the following steps along with Winetricks, a tool that aids in performing setup tasks in Wine.
The initial steps are best done in a terminal.
1: Install Wine 9
I followed the instructions on the WineHQ wiki to install the latest version of Wine on Ubuntu 22.04 (Jammy Jellyfish), and they have instructions for other distributions.
Code:
sudo dpkg --add-architecture i386
sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
sudo apt update
sudo apt install --install-recommends winehq-stable
Note that you need to be sure to replace the sources url with the version appropriate for your version of Ubuntu (see their instructions). If you aren't using Ubuntu, check their instructions for other distributions.
After this step was finished, I had wine-9.0 on the system.
2: Install the latest winetricks
I then installed the Ubuntu winetricks package and put it into self-update mode so that it would update to the current version.
Code:
sudo apt install winetricks
sudo winetricks --self-update
sudo winetricks --self-update
After this step was finished, I had winetricks 20240105 installed.
3: Setting up a Wine prefix for SwordSearcher
I ran winetricks to start the GUI and allowed it to do the initial setup which included installing Wine Mono. I then chose "Create new wineprefix"
Code:
winetricks
I chose 64-bit architecture and named the prefix swordsearcher.
Now from this point on, I saw this warning quite a bit. But 64-bit is correct for this case and what we need for SwordSearcher will work properly with 64-bit.
Next, I closed the GUI for winetricks. Trust me, you do not want to do the next steps in the GUI, because you will be clicking OK on that warning dozens of times if you do!
So I dropped to terminal again and installed the corefonts package into the prefix I just made.
Code:
winetricks prefix=swordsearcher corefonts
This took a few moments to complete.
Next, I installed the IE8 package into the same prefix. THIS IS THE MOST CRUCIAL STEP IN GETTING SWORDSEARCHER TO WORK. Note that I do not care about Internet Explorer. I did not install the IE8 package so that I could use IE, I installed IE8 so that the wine prefix will contain necessary functional library files from Microsoft, instead of the incomplete files that come with Wine. If you skip this step, SWORDSEARCHER WILL NOT WORK IN WINE. This step is how to get working MSHTML.DLL and supporting files into the wine prefix.
The command to install the IE8 package (don't forget to specify the prefix):
Code:
winetricks prefix=swordsearcher ie8
Again, I recommend starting this from the command line. But pay attention. There is a GUI step to completing this:
Click the "Restart Now" option at the end. This will NOT restart your computer, it will just allow winetricks to complete the task:
Next I had to click OK several times in popup windows. Careful, they may appear behind other windows, and you will need to find them to finish:
When it finished, my terminal window returned to prompt.
Note that this also sets the wine prefix to Windows 7 mode.
Continued in next post
Attachments
Last edited: