A lightweight script to easily install and manage the Xray Core
Disclaimer: This project is only for personal learning and communication, please do not use it for illegal purposes, please do not use it in a production environment
bash <(curl -Ls https://raw.githubusercontent.com/tararostami/txray/master/txray.sh)Tip: After installation, you can edit the config.json file in /etc/xray/config.json path.
- Ubuntu
- Debian
- CentOS
- OpenEuler
- Fedora
- Arch Linux
- Parch Linux
- Manjaro
- Armbian
- AlmaLinux
- Rocky Linux
- Oracle Linux
- OpenSUSE Tumbleweed
- Amazon Linux 2023
- Install the latest version of Xray Core
- Display version and status of Xray Core
- Install a specific Xray Core version
- Update TXray
- Session-wide proxy support for curl-based downloads
- Interactive proxy settings menu
- Proxy validation and connection testing
- Install WARP and WARP+
- Add cron for access.log cleanup
- Clean uninstall
- Download and update geo files
TXray supports session-wide proxy usage for all curl-based downloads.
You can use a proxy from the command line with the TXRAY_PROXY environment variable:
TXRAY_PROXY="socks5h://127.0.0.1:1080" txray installNote: Proxy support applies to TXray's curl-based downloads. Package manager traffic such as
apt,yum,dnf,pacman, and external commands such aswgcf registerare not automatically routed through this proxy setting.