In this article, we’ll guide you step-by-step on how to install and run dbForge Edge on Ubuntu using Wine. Sometimes, specific .NET libraries might not install seamlessly with Wine alone. To resolve this, we’ll employ Winetricks—a script designed to simplify the installation of various redistributable runtime libraries needed to run some programs in Wine.
There are multiple versions of Wine available, but the most commonly used version for running Windows applications is WineHQ. Here’s how to install it:
1. Open a Terminal. You can open a terminal in Ubuntu by pressing Ctrl + Alt + T or searching for Terminal in the application launcher.
2. Update APT. First, make sure your package lists are up to date by running the following command:
sudo apt update
3. Install WineHQ. You can install WineHQ by adding its repository and then installing it. Here are the commands to do this:
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
sudo apt update
sudo apt install --install-recommends winehq-staging:amd64
4. Check the Wine version. After the installation is complete, you can check the Wine version to verify that it has been installed correctly:
wine --version
5. Run Wine in an isolated environment. The following command sets up a 64-bit Wine environment with a custom Wine prefix directory at /home/$USER/.wine_dbforge
and then opens the Wine Configuration tool for further configuration. This can be useful when you want to isolate specific Windows applications or configurations from your main Wine installation.
WINEARCH=win64 WINEPREFIX="/home/$USER/.wine_dbforge" winecfg
Wine does not automatically install the Mono package required for .NET applications to work correctly. Therefore, it displays the following dialog.
In the dialog, click Cancel. We will be using Winetricks to install and run .NET libraries.
1. Install Winetricks. Use the following commands to install Winetrics on your Ubuntu system:
sudo apt-get install winetricks
2. Verify the installation. After the installation is complete, you can verify that Winetricks has been installed correctly by running:
winetricks --version
This should display the version number of Winetricks, confirming that it has been installed.
At this step, we will run Winetricks within an isolated environment to install additional software, specifically, the .NET framework. For this, we will use the following commands:
WINEPREFIX="/home/$USER/.wine_dbforge" winetricks
winetricks dlls list | grep -i "dotnet"
WINEPREFIX="/home/$USER/.wine_dbforge" winetricks dotnet48
Note
.NET version 4.7 is sufficient for the successful installation and operation of dbForge Edge. However, it may not install correctly under Wine. Therefore, we recommend installing and using a higher version of .NET, such as 4.8, for improved compatibility and performance.
The .NET installers will guide you through all the steps. You will need to agree to the license terms and click Continue to proceed.
In last window of the installation wizard, click Finish.
You can download dbForge Edge from Devart’s official website.
5.1. To install dbForge Edge using Wine on your Linux system, use the following command:
WINEARCH=win64 WINEPREFIX="/home/$USER/.wine_dbforge" wine /home/ubuntu/Downloads/dbforgeedge.exe
The provided command sets up a 64-bit Wine environment with a custom Wine prefix directory at /home/$USER/.wine_dbforge
and then runs dbforgeedge.exe
installer located in the /home/ubuntu/Downloads/
directory within that Wine environment.
The installation wizard for dbForge Edge will launch. Simply follow the wizard’s steps to install the application.
5.2. On the first page, click Install.
5.3. On the Select Destination page, select the destination folder for dbForge Edge and click Next.
Optional: Click License Terms to open the end-user agreement. If you agree to the terms outlined in the Devart dbForge Edge License Agreement, proceed by clicking Next.
5.4. On the Select Products page, select whether you want to run a full installation or a custom one. For this, click the dropdown menu and select the desired option. Then, select the components you want to install. Finally, click Install.
Note
dbForge Edge offers four fully-featured IDEs: dbForge Studio for SQL Server, dbForge Studio for MySQL, dbForge Studio for Oracle, and dbForge Studio for PostgreSQL. Simply select the checkbox for the IDE(s) you wish to install. You have the flexibility to install just one, two, three, or all four of them.
5.5. Wait for the installation process to complete. On the final page of the installation wizard, click Finish.
As dbForge Edge consists of a package containing four separate dbForge Studios, you’ll need to select and run the specific Studio on your Ubuntu system. For instance, let’s consider the example of dbForge Studio for SQL Server.
To run dbForge Studio for SQL Server using Wine, execute the following command:
WINEPREFIX="/home/$USER/.wine_dbforge" wine "/home/ubuntu/.wine_dbforge/drive_c/Program Files/Devart/dbForge Edge/dbForge Studio for SQL Server/dbforgesql.exe"
This command specifies the Wine prefix and the path to the dbForge Studio for SQL Server executable within that prefix. After running this command, dbForge Studio for SQL Server should launch.
Additionally, you can watch this video to learn how to install dbForge Edge on Ubuntu using Wine and Winetricks.