CMS installation

VPS setup


Installing Nginx on Ubuntu

The Installing Nginx on Ubuntu includes the following steps:

  • Deploying a VPS Ubuntu 24.04 server;
  • Configuring the connection and interface for managing the server;
  • Installing the .Net Core runtime or SDK;
  • Installing the Nginx web server;
  • Configuring Nginx and the autostart service;
  • Testing.



  Deploying a VPS Ubuntu 24.04 server

Option 1 (recommended)

Deploy a VPS on your hosting. For the purpose of deploying a CMS for a site, a single-core VPS and 2 GB of RAM will be enough. Next, you need to select and configure a connection to the server for convenient management. There are many tools for this. In our opinion, the most optimal would be to use Visual Studio Code, as a universal and expandable tool for working with the file system, in terminal mode, as well as for editing and debugging code. Therefore, you should immediately install it on your computer in the operating system in which you work.

If you have studied and done all this, launch VS code, find the terminal mode in the menu - ... /Terminal/New Terminal and establish the first connection to the server using the command:

ssh [root or user name]@[IP or hostname] и вводим пароль.

Now we can install and configure OpenSSH for convenient and reliable communication with the server.

Next, you can configure a password-less connection using a key, this will save you from the tedious process of entering a password each time you perform an operation.

sudo apt update && sudo upgrade  , следует всегда выполнять перед началом установки новых программ.

Now you should install OpenSSH on the server. This will allow you to quickly and securely connect to the server using a key, without entering a password, and quickly and conveniently perform the necessary actions (installation details are in the OpenSSH manual). See here.

sudo apt install openssh-server


Option 2 (requires more resources)

Alternatively, if you are working on Windows, you can set up work with a graphical interface by doing the following:

  1. Update packeges
  2. sudo apt update
  3. Open TCP-порт 3389:
  4. sudo ufw allow 3389
  5. Install xrdp:
  6. sudo apt install xrdp
  7. Install xorgxrdp:
  8. sudo apt install xorgxrdp
  9. Activate xrdp
  10. sudo systemctl enable xrdp
  11. Check the status xrdp:
  12. sudo systemctl status xrdp

    The Status should be - "active".

  13. Install the Xfce desktop environment:
  14. sudo apt install xfce4
    sudo apt install xfce4-terminal
  1. Start xrdp with the command:
  2. sudo systemctl start xrdp

You can stop xrdp with the command sudo systemctl stop xrdp

That's it, you've installed xrdp and Xfce on Ubuntu. Now you can connect to Ubuntu via a remote desktop.





  Connecting to the Ubuntu desktop from Windows

To work via a remote desktop, you will need the Ubuntu account details, as well as the IP address of the device you plan to connect to. The server IP address is specified in the information letter that was sent to the contact email when ordering the service, as well as in the service card on the "Management" tab.

  1. Open the RDP menu. To do this, press the Win + R key combination and enter mstsc in the line:
  2. Enter the IP address of the machine you want to connect to and click Connect:
  3. Specify the Ubuntu account details you plan to work in and click OK:

Done, you have remotely connected to Ubuntu from Windows.





  Installing .Net Core

Installing the SDK

The .NET SDK allows you to develop applications using .NET. When installing the .NET SDK, you do not need to install the corresponding runtime. To install the .NET SDK, run the following commands:


sudo apt update && \
sudo apt install -y dotnet-sdk-8.0

Or :

Install the Runtime

The ASP.NET Core Runtime lets you run apps built with a version of .NET that doesn't include the runtime. The following commands install the ASP.NET Core Runtime, which is the most compatible with .NET. In your terminal, run the following commands:

sudo apt update && \
sudo apt install -y aspnetcore-runtime-8.0

Verify the installation with:

dotnet --info