MDriven Installation on Ubuntu 24.04
MDriven empowers businesses and developers to build and manage applications faster and smarter through Model-Driven Development (MDD). It bridges the gap between business needs and technical execution, turning models into fully functional applications with ease.
With MDriven you can:
- Accelerate Development
- Adapt Quickly
- Collaborate easily
- Deploy Anywhere
Step -1: Login to the Ubuntu Server via SSH.
ssh username@IP_Address -p Port_number
Connect via SSH to your server
Step -2: Update Server.
sudo apt-get update
sudo apt-get upgrade
Step -3: Secure Server.
sudo apt-get install openssh-server fail2ban
SSH assault can be avoided by utilizing Fail2ban
Step -4: Install Packages and Libraries.
Install apt-transport-https
sudo apt-get install -y apt-transport-https
This ensures you can safely fetch packages, package metadata and add third-party repositories using HTTPS ensuring data integrity and privacy during downloads Install the .NET SDK version 8.0 or Higher
sudo apt-get install -y dotnet-sdk-8.0
This contains the software development kit (SDK) for building and running applications using the .NET platform. What it does:
- It includes tools such as the .NET CLI(Command Line Interface), compilers, and build tools needed to develop, build, and publish .NET applications
- It also installs the .NET runtime
- Multi-Language Support - C#, F# and VB.NET4.Cross-Platform Development
Check that the install is successful
dotnet --list-runtimes
Install Nginx or Apache Server: Let's go with Nginx Server for now using the following command
sudo apt install nginx
You can verify if Nginx is running by checking its service status:
sudo systemctl status nginx
The output should show the service as "active (running)".
Step -5: Download MDriven Server from Official Site.
The command wget downloads files from the web, Use it to download the latest version of MDriven Server from the main site.
wget https://www.mdriven.net/PublicDownloads/MDrivenServerCoreLinux_20241219.zip
Notes:
- Double check the latest name of the MDriven Server .Zip compatible with Linux from the main site.
- Upon download, the downloaded .zip file will be located in your home root directory
Step -6: Create a directory in /var/www/html - Directory.
cd /var/www/html
sudo mkdir mdrivenserver
Unzip the files into the Directory (Change directory to your home directory using the command cd).
cd
sudo unzip MDrivenServerCoreLinux_20241219.zip -d /var/www/html/mdrivenserver
Notes: If the unzip utility is not installed, you can install it with:
sudo apt-get install -y unzip
Step -7: Download MDriven Turnkey Server from the Official Site.
The command wget downloads files from the web, Use it to download the latest version of MDriven Turnkey from the main site.
wget https://www.mdriven.net/PublicDownloads/MDrivenTurnkeyCoreLinux_20241219.zip
Notes:
- Double check the latest name of the MDriven Turnkey .Zip compatible with Linux from the main site.
- Upon download, the downloaded .zip file will be located in your home root directory
Step -8: Create a directory in /var/www/html - Directory.
cd /var/www/html
sudo mkdir mdriventurnkey
Unzip the files into the Directory (Change directory to your home directory using the command cd).
cd
sudo unzip MDrivenTurnkeyCoreLinux_20241219.zip -d /var/www/html/mdriventurnkey
Step -9: Create MDrivenServer Service File.
We have to create a service file to MDrivenServer. Let's create a service file 'mdrivenserver.service' in /etc/systemd/system.
sudo nano /etc/systemd/system/mdrivenserver.service
Add the following aspects to the newly created service file.
[Unit]
Description=MDriven Server Service
After=network.target
[Service]
WorkingDirectory=/var/www/html/mdrivenserver
ExecStart=/usr/bin/dotnet /var/www/html/mdrivenserver/AppCompleteGenericCore.dll -5010 - nohttps
Restart=always
KillSignal=SIGINT
SyslogIdentifier=mdriven-server
User=root
Environment=DOTNET_ENVIRONMENT=Production
Environment=DOTNET_PRINT_TELEMENTRY_MESSAGE=false
[Install]
WantedBy=multi-user.target
Step -10: Create MDrivenTurnkey Service File.
We have to create a service file to MDrivenTurnkey. Let's create a service file 'mdriventurnkey.service' in /etc/systemd/system.
sudo nano /etc/systemd/system/mdriventurnkey.service
Add the following aspects to the newly created service file.
[Unit]
Description=MDriven Turnkey Server Service
After=network.target
[Service]
WorkingDirectory=/var/www/html/mdriventurnkey
ExecStart=/usr/bin/dotnet /var/www/html/mdriventurnkey/StreaminAppCoreWebApp.dll -port=5011 -nohttps –[remove the -nohttps while in production]
Restart=always
KillSignal=SIGINT
SyslogIdentifier=turnkey-server
User=root
Environment=DOTNET_ENVIRONMENT=Production
Environment=DOTNET_PRINT_TELEMENTRY_MESSAGE=false
[Install]
WantedBy=multi-user.target
Finally, set the root user's permissions for these service files.
sudo chmod 775 /etc/systemd/system/mdrivenserver.service
sudo chown root: /etc/systemd/system/mdrivenserver.service
sudo chmod 775 /etc/systemd/system/mdriventurnkey.service
sudo chown root: /etc/systemd/system/mdriventurnkey.service
Step -11: Run MDriven Server and MDriven Turnkey.
sudo systemctl start mdrivenserver.service
sudo systemctl start mdriventurnkey.service
Use the above commands to launch the instance of MDriven Server and MDriven Turnkey respectively. Then, use the following command to see the service's current status. Furthermore, the installation of MDriven Server and MDriven Turnkey was successful if they are shown as active.
sudo systemctl status mdrivenserver.service
sudo systemctl status mdriventurnkey.service
Now, you can access MDriven Server and MDriven Turnkey by entering the following URL respectively
"http://<your_domain_or_IP_address>:5010"
"http://<your_domain_or_IP_address>:5011"
Ensure that these ports are open on the firewall using the following commands:
sudo ufw allow 5010/tcp
sudo ufw allow 5011/tcp
Check Logs
If you are experiencing problems with the installation or for any other reason, you can use the following command to examine the logs of the MDriven platform that you have configured. You can view the real-time logs in the terminal for both the MDriven Server and the MDriven Turnkey using the commands below:
MDriven Server:
sudo tail -f /var/www/mdrivenserver/logs/MDrivenServerRollingDEBUG.txt
sudo tail -f /var/www/mdrivenserver/logs/MDrivenServerLogRollingERRORS.txt
MDriven Turnkey:
sudo tail -f /var/www/mdriventurnkey/logs/TurnkeyServerLogRollingERRORS.txt
sudo tail -f /var/www/mdriventurnkey/logs/TurnkeyServerRollingDEBUG.txt
Finally, use the following command to start MDriven Server and MDriven Turnkey services automatically after restarting the server
sudo systemctl enable mdrivenserver.service
sudo systemctl enable mdriventurnkey.service
After successfully installing the MDriven Server: MDriven Turnkey successfully, you can start your career in modeling with MDriven