cara install web toren - wongganteng10/tutorial GitHub Wiki

To install the Transmission web interface on your Ubuntu Server 22.04, follow these steps:

Step 1: Update and Upgrade

First, ensure that your system is up to date by running:

sudo apt update && sudo apt upgrade -y

Step 2: Install Transmission

Install Transmission and its web interface:

sudo apt install transmission-cli transmission-common transmission-daemon -y

Step 3: Configure Transmission Daemon

The Transmission daemon runs as a service, and you can configure it by editing the settings file:

sudo systemctl stop transmission-daemon
sudo nano /etc/transmission-daemon/settings.json

In the configuration file, you can set the following important options:

  • rpc-enabled: Ensure this is set to true to enable the web interface.
  • rpc-whitelist: Set this to "*" to allow access from any IP, or specify particular IPs.
  • rpc-username and rpc-password: Set these to control access to the web interface.

After making your changes, save the file and exit.

Step 4: Start Transmission Daemon

Start the Transmission service again:

sudo systemctl start transmission-daemon
sudo systemctl enable transmission-daemon

Step 5: Access the Web Interface

Now, you should be able to access the Transmission web interface by navigating to the following address in your browser:

http://<your-server-ip>:9091

You may need to adjust your firewall settings to allow access to port 9091 if necessary.





Untuk menghapus Transmission dan semua konfigurasinya

Untuk menghapus Transmission dan semua konfigurasinya dari Ubuntu Server 22.04 secara menyeluruh, ikuti langkah-langkah berikut:

1. Hentikan Layanan Transmission

Pastikan layanan Transmission tidak berjalan saat Anda menghapusnya:

sudo systemctl stop transmission-daemon

2. Hapus Paket Transmission

Hapus paket Transmission bersama dengan file konfigurasi yang terkait:

sudo apt purge transmission-cli transmission-common transmission-daemon -y

3. Hapus File Konfigurasi dan Data

Selain menghapus paket, Anda juga perlu menghapus file konfigurasi dan data yang mungkin tersisa:

sudo rm -rf /etc/transmission-daemon/
sudo rm -rf /var/lib/transmission-daemon/
sudo rm -rf /var/log/transmission-daemon/
sudo rm -rf /var/cache/transmission-daemon/

4. Hapus Dependensi yang Tidak Diperlukan

Untuk menghapus dependensi yang tidak lagi diperlukan setelah menghapus Transmission:

sudo apt autoremove -y

5. Periksa dan Bersihkan

Pastikan tidak ada file atau direktori yang tersisa dengan melakukan pencarian:

sudo find / -name '*transmission*'

Hapus hasil pencarian yang relevan jika masih ada.

Dengan langkah-langkah ini, Transmission dan semua komponen terkait seharusnya terhapus sepenuhnya dari sistem Anda.