How To Install TP-Link Pharos Control on Ubuntu Server 20.04

Pharos + How To's + TP-Link taylor todayMay 31, 2022 23

share close


In this walk-through we’re going to be covering how to install TP-Link Pharos Control on Ubuntu Server 20.04. If you’re not familiar with TP-Link’s line of WISP-class Long-Range Wireless Broadband Networking equipment, you can catch up here. Otherwise, let’s dive in.

Required Hardware

check Bare Metal or Virtualized Ubuntu Server 20.04 Instance

check 1+ CPU Cores / 1GB+ RAM / 128GB+ Storage

check Publicly-accessible FQDN (Not required if for local deployments)

check Running Webserver/Reverse Proxy (Not required if machine has a public IP address)

check Comfortable with Ubuntu/CLI Environment

check Familiarity with Creating/Modifying Firewall Rules

If you’re comfortable working with all-of-the-above, let’s dive in…

1. Update and Install Required Packages

sudo apt update -y && sudo apt upgrade -y
sudo apt install jre-default wget unzip -y

2. Download Pharos Control for Linux

You can find the most recent version of Pharos Control for Linux here.

wget https://static.tp-link.com/2018/201801/20180108/PharosControl_2.0.0-1_Linux.zip

Once the .ZIP file is downloaded, let’s unzip it.

unzip PharosControl_2.0.0-1_Linux.zip

If you check the directory you’re currently in, you should see the following files:

3. Install Pharos Control

We’re now ready to install Pharos Control. Use the following command:

sudo dpkg -i PharosControl-2.0.0-1.ub16.noarch.deb

If all went well, you should see the following:

4. Start Pharos Control

To start Pharos Control, enter the following command:

/etc/init.d/pharoscontrol start

By default, Pharos Control will be operating on Port 9321. You can change the port number by modifying “/opt/pharoscontrol/conf/setting/me.properties“. Find the field “port=9321“, and change “9321” to your desired port number. You’ll need to stop and re-start Pharos Control in order for the change to take effect.

You can also use the following commands to execute other operations:

Command Action
sudo /etc/init.d/pharoscontrol shutdown Exit Pharos Control server.
sudo /etc/init.d/pharoscontrol stop Force a shutdown of Pharos Control server.
sudo /etc/init.d/pharoscontrol status View the current status and server port of Pharos Control server.
sudo /etc/init.d/pharoscontrol list View the information of the client hosts connecting to Pharos Control, including username, role, client address, and session number.
sudo /etc/init.d/pharoscontrol kick [session] Disconnect the specific Client Host using its session number.
sudo /etc/init.d/pharoscontrol reset Reset the database.
sudo /etc/init.d/pharoscontrol backup [file directory] Back up the current database and save it as a backup file on your local computer. If needed, you can restore the database with this backup file.
sudo /etc/init.d/pharoscontrol restore [file directory] Restore the database with a previous backup file.

5. Login to the Management Interface

To access the Pharos Control Management Interface, open a web browser and navigate to “http://<YOUR-IP-ADDRESS>:9321” or “http://<YOUR-IP-ADDRESS>/login“.

NOTE: If you modified the port number in the previous step, you’ll need to change it here. If you don’t know your machine’s IP address, you can find it using “ip addr show” in the terminal.

The default username and password will be “admin” and “admin“.

To change the administrator username and password, login using the above credentials, then navigate to the “Account” tab, select the “admin” user and click on the “Edit” icon. From here you can edit the username and password.

6. OPTIONAL: Configure Reverse Proxy

Now, in order for us to access our Pharos Control Management Interface over the internet, we’ll need to configure our reverse proxy on our internal network. This portion assumes you already have a functioning reverse proxy with port 80 (HTTP) forwarded from your firewall. In this example, we’ll be using Virtualmin.

  1. Configure your domain/subdomain’s DNS records with an A record pointing to your public IP address.
  2. Add the domain/subdomain as a Top-Level Server or Sub-Server in Virtualmin.
  3. Select “Server Configuration” > “Edit Proxy Website”
  4. Change “Proxying enabled?” to “Yes“, then enter the internal IP address of your Ubuntu 20.04 Server instance running Pharos Control as:


    NOTE: If you changed the default port to something else, don’t forget to enter the port you chose where “9321” is.

7. Congratulations!

You’ve now successfully set up your Pharos Control instance on Ubuntu Server 20.04! You can now access your management interface from any web browser on the internet.

In a future edit, we’ll be adding SSL Encryption. Additionally, we’ll be writing another article showing you how to add remote devices to your Pharos Control instance for remote management.

Written by: taylor

Rate it
Previous post

todayDecember 7, 2021

  • 404

How To's taylor

How To: Configure SpamAssassin on CWP Pro

SpamAssassin is an Open Source anti-spam platform that attempts to filter spam by examining incoming emails in the CentOS Web Panel integrated with the Postfix Mail Server. Although the SpamAssassin service is running we ...

Similar posts

Post comments (0)

Leave a reply

Your email address will not be published. Required fields are marked *

  • Locally Owned and Operated
  • Independent, Honest, Intuitive, Knowledgeable


Follow us