Skip to content

Binary & Package Distributions

spirit edited this page Mar 1, 2019 · 34 revisions

Linux

Packaging status

AOSC OS

sudo apt-get install trojan

Arch Linux

sudo pacman -S trojan

AUR

$(AURHelper) -S trojan-git

Debian

10

sudo apt install trojan

<= 9

sudo apt install build-essential devscripts debhelper cmake libboost-system-dev libboost-program-options-dev libssl-dev default-libmysqlclient-dev python3 curl openssl
dget http://ftp.us.debian.org/debian/pool/main/t/trojan/trojan_1.10.0-1.dsc
dpkg-source -x trojan_1.10.0-1.dsc && cd trojan-1.10.0/
dpkg-buildpackage -us -uc -d
sudo dpkg -i ../trojan_1.10.0-1_amd64.deb
sudo apt purge devscripts debhelper cmake # you can remove it now

Fedora

sudo dnf copr enable fei1yang/trojan 
sudo dnf in trojan

Gentoo

sudo emerge --sync
sudo emerge -av trojan

Ubuntu

18.04 & 18.10

sudo add-apt-repository ppa:greaterfire/trojan
sudo apt-get update
sudo apt-get install trojan

>= 19.04

sudo apt-get install trojan

Pre-compiled binary

https://github.com/trojan-gfw/trojan/releases/latest

Chrome OS

There are two ways:

  1. Use crouton to install a linux chroot environment, and install trojan just like in a normal linux.
  2. Enable Google's Linux (beta) in the settings, and run the following commands in the terminal:
    sudo -i
    apt update
    apt -y install git g++ cmake libboost-system-dev libboost-program-options-dev libssl-dev default-libmysqlclient-dev
    git clone https://github.com/trojan-gfw/trojan.git
    cd trojan/
    cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DSYSTEMD_SERVICE=ON .
    make install
    or you can upgrade it to Debian Buster:
    sudo -i
    apt update && apt dist-upgrade
    cp /etc/apt/sources.list /etc/apt/sources.list.bak
    sed  -i 's/stretch/buster/g' /etc/apt/sources.list
    apt update && apt dist-upgrade
    apt install trojan

Note: The IP address of the SOCKS5 proxy is not 127.0.0.1, check it by running ifconfig or ip addr.

macOS & Windows (>=Vista)

https://github.com/trojan-gfw/trojan/releases/latest