Skip to content

quickstart

Jett Wang edited this page Jan 29, 2024 · 11 revisions

Quick start

Quick Install

  • Use curl
sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/talkincode/toughradius/main/installer.sh)"
  • Use wget
sudo bash -c "$(wget https://raw.githubusercontent.com/talkincode/toughradius/main/installer.sh -O -)"

System environment dependencies

  • Operating System:Support cross-platform deployment (Linux, Windows, MacOS, etc.)
  • Database server: PostgreSQL 14+

Database initialization

Please do the installation and configuration yourself, first make sure your database server is running. Database Setup

Running database creation scripts and creating dedicated users

CREATE USER toughradius WITH PASSWORD 'toughradius';
CREATE DATABASE toughradius WITH OWNER toughradius;
GRANT ALL PRIVILEGES ON DATABASE toughradius TO toughradius;

Installation and Configuration

Let's take v8.0.6 as an example

Download the software distribution from Releases Page

If you have some development skills, you can compile your own version

curl https://github.com/talkincode/toughradius/releases/download/v8.0.6/toughradius_amd64 -O /tmp/toughradius

chmod +x /tmp/toughradius && /tmp/toughradius -install

Before proceeding, make sure that you have created the database and that the database server is running

Modifying configuration file /etc/toughradius.yml

The following installation method will download and build the latest toughradius version

go install github.com/talkincode/toughradius/v8@latest

toughradius -install

Start the service with the following commands

systemctl enable toughradius
systemctl start toughradius

Access the console

Open the browser and enter the URL: http://your-ip:1816

The default username and password are admin/toughradius