Usage Guidelines – Ubuntu 20.04 Minimal with Trac System Server Auth

TRAC SYSTEM SERVER AUTH

Ubuntu 20.04 Minimal

Configuring and Connecting tо Ubuntu 20.04 Minimal with Trac System Server Auth

Connecting and configuring the Trac server

  1. Run the VM through Azure Portal. To customize the Server, first, you need to know the server IP address. You can find it in the personal account of Azure. (You need to select the virtual machine from the list. By clicking the item “Overview”, your IP is displayed in the line “Public IP Address”).
  1. To work, you should open port 80 TCP in the network properties in the Azure firewall.
  1. To manage the Trac server you should connect to a VM.
    • With OpenSSH

In the Windows 10 operating system (starting with version 1809), an OpenSSH client is available, with which you can connect to Linux servers via SSH. If Windows 10 is suitable and the OpenSSH client is installed, you can start connecting via SSH. To do this, launch a normal Windows command prompt and enter the command “ssh user@*vm_ip*”. 

Where “user” is the username that was specified while creating the virtual machine and “*vm_ip*” is the VM IP address.

In the opened console, it is necessary to enter a password that was specified while creating the virtual machine.

  • With the PuTTy application 

To do this, you need the PuTTy application to connect via ssh. You can download it at the following link – Download

Run Putty, enter the VM address in the “Host” field, and click “Open” to connect.

In the opened console, you will need to enter a username and password that were specified while the VM was being created (you’ll not see the password in the console while entering it). 

  1. In order to create a new project run the following commands:

> sudo su (1)

> mkdir -p /var/local/trac/new_project (2)

> trac-admin /var/local/trac/new_project initenv (3)

To replace “new_project”, enter the directory title for your new project

Enter the title of the new project (4) and press “Enter” twice (5)

  1. Stop the Trac service by the following command:

> systemctl stop trac

  1. Open the file in the nano text editor:

> sudo nano /lib/systemd/system/trac.service

  1. Following the default project path add your new project path (for example, /var/local/trac/new_project).

Press Ctrl+X to exit the file

Press “Y” to save the changes in the file

Press “Enter” to confirm the changes in the file

  1. To apply the changes, enter the following command:

> systemctl daemon-reload

  1. Launch the service again with the following command:

> systemctl start trac

  1. Adding new users

Get root privileges:

> sudo su

Add a user to the portal:

> htpasswd /var/local/trac/.htpasswd newusername (1)

and create its password (2)

Assign administrative rights to the user for the portal

> trac-admin /var/local/trac/default_project permission add newusername TRAC_ADMIN

(or/and > trac-admin /var/local/trac/new_project permission add newusername TRAC_ADMIN)

Work with Trac server

  1. After starting the VM, you can go to the main page. To do this, go to the following address http: //*vm_ip*. You will be asked to select the project.
  1. Select a project and log in using credentials from step 10 in the previous chapter or default administrator credentials: username – tracadmin, password – adminpwd
  1. For further setup and site operations, see the manuals and setup guides. You can find links at the bottom of the page in the “Starting Point” section or the “Help/Guide” link in the upper right of the page.

Now you have the fully pledged Ubuntu 20.04 Minimal with Trac System Server Auth.