TRSS Bot Installation and Usage Guide

website·Indexed 31 days ago

https://trss.me

Comprehensive documentation for installing and managing various bot projects including TRSS AllBot, TRSS OneBot, TRSS Yunzai, TRSS Liteyuki, TRSS Sagiri, and TRSS Amiya. Provides installation tutorials for Windows, Mac, Linux, Android, and Docker, along with detailed usage guides for CLI and TUI interfaces.

Tokens
5.3K
Snippets
46
Records
51
Agent score
52%

What's inside TRSS

  1. Access SAGIRI-BOT documentation and source code

    SAGIRI-BOT provides official documentation for usage and a public source code repository for development and contribution.
  2. Deploy Arch Linux via TMOE

    To deploy an Arch Linux container within TMOE:

    1. Navigate to the 发行版列表 (Distribution List) in the container menu.
    2. Select Arch.
    3. Select 启动 (Start). To create multiple containers, select 新建容器 (Create New Container) instead.
    4. During the first boot of the Arch container, use these settings:
      • New sudo user: Select 否 (No) to use the root user.
      • Configure zsh for root: Select 是 (Yes) for terminal beautification.
      • delete ~/zsh.sh: Select 是 (Yes).
      • Start tmoe tools?: Select 否 (No), as you can start it manually by typing tmoe.
  3. Install TRSS_AllBot using Docker script

    You can install TRSS_AllBot using a one-line installation script. You can optionally customize the installation directory, the startup command, and the container name to allow for multiple instances.
    # Default installation
    bash <(curl -L gitee.com/TimeRainStarSky/TRSS_AllBot/raw/main/Install-Docker.sh)
    
    # Customized installation
    # DIR: Installation path
    # CMD: Startup command
    # DKNAME: Container name
    DIR=/Bot CMD=trss DKNAME=TRSS bash <(curl -L gitee.com/TimeRainStarSky/TRSS_AllBot/raw/main/Install-Docker.sh)
  4. Install TRSS AllBot and TRSS OneBot on Arch Linux

    Use the following curl commands to run the installation scripts for TRSS AllBot or TRSS OneBot on Arch Linux.
    # Install TRSS AllBot
    bash <(curl -L gitee.com/TimeRainStarSky/TRSS_AllBot/raw/main/Install.sh)
    
    # Install TRSS OneBot
    bash <(curl -L gitee.com/TimeRainStarSky/TRSS_OneBot/raw/linux/Install.sh)
  5. Install ArchWSL on Windows

    To install ArchWSL, you must first enable the necessary Windows features and set up WSL2 before running the ArchWSL installer.
    # 1. Enable WSL feature
    dism /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
    
    # 2. Enable Virtual Machine Platform
    dism /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
    
    # 3. Set WSL2 as default version (after reboot)
    wsl --set-default-version 2
    
    # 4. Update WSL2 kernel
    wsl --update
  6. Install TRSS-MTArch via MT Manager or Termux

    To install TRSS-MTArch on Android, you need either MT Manager or Termux. Open the Terminal Emulator within the app and execute the installation script via curl.
    curl -LO gitee.com/TimeRainStarSky/TRSS-MTArch/raw/main/Install.sh && bash Install.sh
  7. Deploy ArchWSL distribution

    After configuring WSL2, download the Arch.zip package from the ArchWSL GitHub Releases. Extract the archive and run Arch.exe to perform the installation. A successful installation will output 'Installation complete'.
  8. Configure TMOE container environment

    During the initial TMOE setup, use the following recommended configurations:

    • Container Type: Use chroot if you have root permissions; otherwise, use PRoot.
    • DNS: Recommended [240c::6666](CFIEC).
    • Timezone: Asia/Shanghai.
    • CHROOT MODE: Select normal if systemctl is not required.
    • Interactive Prompts:
      • For [Y/n], press Enter for Yes.
      • For [y/N], type y then press Enter.
      • For (Y/I/N/O/D/Z) [default=N] ?, press Enter to accept the default.
  9. Choose a Linux environment for Windows installation

    Depending on your hardware specifications and virtualization settings, choose one of the following environments to run Linux-compatible tools on Windows:

    • MSYS2: A Linux compatibility layer. Recommended if virtualization is disabled or if the system has less than 4GB of RAM.
    • ArchWSL: Windows Subsystem for Linux (WSL). Recommended if virtualization is enabled and the system has more than 8GB of RAM.
    • Docker: Linux application containers (generally not recommended for this specific setup).

    To check if virtualization is enabled on Windows: Open Task Manager $\rightarrow$ Performance $\rightarrow$ CPU and look for the Virtualization status.

  10. Install and configure vmConsole on Android

    vmConsole allows running a virtualized environment on Android. Note that virtual machine performance may be low, and its use is generally not recommended if high efficiency is required. To set up the environment, download the latest release, log in as root, and initialize the storage device.
    # Set up the storage device and reboot
    setup-disk -m sys /dev/sda && reboot
  11. Initialize and update ArchWSL packages

    After configuring mirrors, launch Arch.exe and run the following command to update the keyring and synchronize all system packages.
    pacman -Syy archlinux-keyring && pacman -Syu