How to Install and Upgrade Timpi Collector on Linux
In this guide, I’ll walk you through the process of installing and upgrading the Timpi Collector on your Linux system. This tutorial is designed to be simple and easy to follow, whether you’re a seasoned Linux user or a complete beginner.
Getting Started with SSH and Putty
First, you’ll need to use SSH to connect to your server. If you’re using Windows, you can use a free SSH client called Putty. You can download the latest version from this link.
- Open Putty and enter your connection settings:
- Host Name (or IP address): Enter the IP address of your server.
- Save your session: Name your session and save it.
- Click Open: Launch the SSH session.
- Log in as root:
- Enter your root username and password when prompted.
System Requirements
To run the Timpi Collector, your system should meet the following specifications:
Recommended Requirements:
- Operating System: Windows 10 or above, Linux 64-bit
- CPU: 2 cores
- RAM: 2GB
- Storage: 1GB free space
- Internet: Unlimited connection
Installation and Upgrade Process
This guide assumes you have some basic knowledge of Linux commands. However, I’ll provide a single command that you can copy and paste to perform all the necessary steps at once.
Step-by-Step Process
- Remove Previous Version of Timpi Collector:
- Stops any running instances of the collector and its UI.
- Removes the existing installation directory.
- Update and Upgrade the System:
- Updates your package lists and upgrades installed packages.
- Create Installation Directory:
- Creates a directory for the new Timpi Collector installation.
- Download and Install Timpi Collector Version 0.9.0:
- Downloads the Timpi Collector version 0.9.0.
- Installs
unzip
if it’s not already installed. - Unzips the downloaded files.
- Set Up and Start Timpi Collector Service:
- Moves the necessary service files.
- Enables and starts the collector services.
- Upgrade to Version 0.9.1:
- Downloads and unpacks the latest version (0.9.1).
- Restarts the collector UI service.
- Completion Message:
- Provides the URL to access the collector and a troubleshooting note.
Single Command to Install and Upgrade
Once you have logged in to your machine via SSH, copy and paste the following command to perform all the steps:
sudo apt-get install -y dos2unix && curl -o Automated_collector_script.sh https://raw.githubusercontent.com/Timpi-official/Nodes/main/Collector/Automated_collector_script.sh && dos2unix Automated_collector_script.sh && bash Automated_collector_script.sh
Accessing Timpi Collector
After the script has finished running, you can open a web browser and access the Timpi Collector using the IP address of your machine. The URL should look like this:
http://localhost:5015/collector
Or, if you’re using the IP address of your virtual machine, it might look like:
http://192.168.1.1:5015/collector
Setting Up the Collector
- Open the URL in your browser.
- Click on the cog icon to access the settings.
- Enter your wallet address and configure the number of workers and threads.
- Start with 25 workers and 10 threads to monitor your system’s performance.
- Increase the numbers as needed, but note that higher values will use more resources.
- If you’re feeling confident, you can set it to 50 workers and 10 threads.
- For advanced users, Pro Mode removes all restrictions but should be used with caution as it can lead to failures.
By following these steps, you’ll have the Timpi Collector installed and running smoothly on your Linux system. Happy collecting! If you need support, please visit the Timpi Discord and open a support ticket.
Collector Commands
Here are some useful commands for managing the Timpi Collector:
View Collector Live Status:
sudo journalctl -xeu collector -f
Start the Collector:
sudo systemctl start collector
Stop the Collector:
sudo systemctl stop collector
Restart the Collector:
sudo systemctl restart collector
Restart the Collector UI:
sudo systemctl restart collector_ui
Check Collector Status (Optional):
sudo systemctl status collector
Check Collector UI Status (Optional):
sudo systemctl status collector_ui