-
Notifications
You must be signed in to change notification settings - Fork 8
Installation
Sudo Dios edited this page Oct 25, 2024
·
2 revisions
- Download the appropriate binary file from the releases page.
- Unzip the archive.
- Make changes to the configuration.
- Run the binary.
- Or setup as service :
- Copy
setup_systemd.sh
on linux orsetup_sc_win.bat
on windows system in extracted folder. - Run the script file to setup as service
- Copy
-
Download the deb package file from the releases page.
-
Install it.
-
Enable systemd service:
$ sudo systemctl enable librespeed-rs.service
-
Edit configs file:
$ sudo nano /var/lib/librespeed-rs/configs.toml
-
User systemd to easy manage librespeed service:
$ sudo service librespeed-rs start $ sudo service librespeed-rs stop $ sudo service librespeed-rs status # and more ...
-
Install docker and docker-compose.
-
Clone the repository:
$ git clone https://github.com/librespeed/speedtest-rust.git $ cd speedtest-rust
-
Copy the default config and assets:
$ cp docker-compose.override.sample.yml docker-compose.override.yml $ sudo mkdir /var/lib/librespeed $ sudo cp configs.toml /etc/librespeed.toml $ sudo cp -r assets /var/lib/librespeed/assets
-
Edit the config files:
$ sudo chmod o-rwx /etc/librespeed.toml docker-compose.override.yml # Hide secrets $ $EDITOR docker-compose.override.yml # Docker settings $ sudo $EDITOR /etc/librespeed.toml # Librespeed settings $ sudo $EDITOR /var/lib/librespeed/assets/servers_list.js # To set server name and remote servers $ sudo $EDITOR /var/lib/librespeed/assets/index.html # To change html styles, etc
-
Start the container:
$ docker compose up -d $ docker compose logs -f # To check status
-
Navigate to http://localhost:8080/
You need Rust 1.74+ to compile project.
So make sure that rust is properly installed on your system
-
Clone the repository:
$ git clone https://github.com/librespeed/speedtest-rust.git
-
Build:
# cd to cloned directory $ cargo build --release
-
Prepare files:
# Make a new directory # Copy target/release/librespeed-rs to created directory # Copy configs.toml to created directory # If you want the server to load the speedtest web front in the route `/`, then you must specify the path of the client folder in the configs.toml file.