Raspberry Pi

树莓派4B安装trojan

更新一下树莓派的源(我用清华源):
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui

//安装以下依赖
CMake >= 3.7.2
Boost >= 1.66.0
OpenSSL >= 1.1.0
libmysqlclient

sudo apt-get install default-libmysqlclient-dev
sudo apt-get install libssl-dev
sudo apt-get install libboost1.67-dev
sudo apt-get install libboost-system1.67-dev
sudo apt-get install libboost-program-options1.67-dev
sudo apt-get install cmake

下载源码:
git clone https://github.com/trojan-gfw/trojan.git
也可以去下载release版本:https://github.com/trojan-gfw/trojan/releases/tag/v1.16.0

编译:
cd trojan
mkdir build
cd build/
cmake ..
make

编译完后得到trojan二进制文件,拷贝去你想要的目录
cp trojan /usr/local/bin/

不想编译的同学可以直接下载我编译的二进制文件(前面的依赖库还是要装的!)

二进制文件信息:
trojan-1.15.1: ELF 32-bit LSB executable, ARM, EABI5 version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=25a5ee7b9b45989d4ea567e604082520f1500f2f, not stripped
md5sum trojan-1.15.1 21e3b638fbf6e2e2c7c3ec91dd51423b

百度网盘Download 提取码:7ijj (如果密码错误或者过期,请到二狗蹲坑微信公众号【Im2ndDog】通知我更新)