Skip to content

Binary & Package Distributions

Mame edited this page Oct 12, 2018 · 34 revisions

Linux

Packaging status

AOSC OS

sudo apt-get install trojan

Arch Linux

sudo pacman -S trojan

AUR

$(AURHelper) -S trojan-git

Debian

Enable testing repo and run

sudo apt-get install trojan

Fedora

sudo dnf copr enable fei1yang/trojan 
sudo dnf in trojan

Gentoo

sudo emerge --sync
sudo emerge -av trojan

Ubuntu (>=18.04)

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

Chrome OS

There are two ways:

  1. Use crouton install a linux chroot environment, and install trojan just like a normal linux.

  2. For google's Linux (beta), you need to enable it in the settings, and run 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 of socks5 proxy is not 127.0.0.1, check it by running ifconfig or ip address

macOS & Windows (>=Vista)

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