Skip to content

Debian 10 Install

twanadot edited this page Dec 7, 2020 · 24 revisions

Step 1 — Installing the Nginx Web Server

$ sudo apt update

Step 2 — Installing MariaDB

$ sudo apt install mariadb-server
$ sudo mysql_secure_installation

$ sudo mariadb

MariaDB [(none)] =>

  1. CREATE DATABASE example_database;
  2. GRANT ALL ON example_database.* TO 'example_user'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
  3. FLUSH PRIVILEGES;
  4. exit;

To allow remote database connection

$ sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf

Open the 50-server.cnf file and replace this code below

bind-address            = 127.0.0.1

To this

bind-address            = 0.0.0.0

$ systemctl restart mariadb

Step 3 — Installing PHP

$ sudo apt update
$ sudo sudo apt upgrade -y && sudo reboot

$ sudo apt -y install lsb-release apt-transport-https ca-certificates $ sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg $ echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list $ sudo apt update $ sudo apt upgrade $ sudo apt install php7.4-common php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-curl php7.4-gd php7.4-imagick php7.4-cli php7.4-dev php7.4-imap php7.4-mbstring php7.4-opcache php7.4-soap php7.4-zip php7.4-intl -y $ sudo apt-get install nginx php7.4-fpm

Step 4 — Configuring Nginx to Use the PHP Processor

$ sudo nano /etc/nginx/sites-available/default

Open the default file and insert this code below

server {
	listen 80;
	listen [::]:80;
root /var/www/html/public;
index index.php index.html index.htm;

server_name LINK www.LINK;

location / {
	try_files $uri $uri/ /index.php?$query_string;
}

location ~ \.php$ {
	include snippets/fastcgi-php.conf;
	fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
}

} server{ listen 80 default_server; listen [::]:80 default_server; server_name ""; return 444; root /var/www/html/public; index index.php index.html; location /{ return 444; } }

Step 5 — Install Cosmic

$ sudo apt-get install unzip


Insert the CMS inside "/var/www/html/" $ unzip filename.zip

$ sudo chmod 777 App $ sudo chmod 777 public $ sudo chmod 777 public/tmp $ sudo chmod 777 public/tmp/NAME.cache

Step 6 — Configure Arcturus Morningstar

Insert the EMU inside "home/Arcturus" (Create the Arcturus map in /home/)

$ unzip filename.zip

Linux is built that when you close your SSH your session will be lost and everything will close That means that if your emulator is running it will be closed when you close your session. For that we have a program called screen that everything runs in the background.

$ sudo apt install screen
$ sudo apt install default-jre

$ sudo screen

Press space 2 times.

$ java -jar FILENAME.jar

Emulator is now running.