--- or ---
Alternatively, download from the following address:
https://github.com/XTLS/Xray-core/releases



Create a systemd service script at /etc/systemd/system/xiexievpn.service, with the following content:
                [Unit]
                Description=xiexievpn Service
                After=network.target
                
                [Service]
                Type=simple
                ExecStart=/usr/local/bin/xray //Replace '/usr/local/bin/' with your actual decompression path
                Restart=on-failure
                LimitNOFILE=65535
                
                [Install]
                WantedBy=multi-user.target
                

                    sudo mkdir -p /etc/systemd/resolved.conf.d
                    sudo tee /etc/systemd/resolved.conf.d/xray.conf <<'EOF'
                    [Resolve]
                    DNS=127.0.0.1
                    DNSStubListener=no
                    EOF
                    sudo systemctl restart systemd-resolved
                    

                    systemctl daemon-reload
                    systemctl start xiexievpn
                    #(Optional)
                    systemctl enable xiexievpn
                    

Open “Settings” → “Network”, find “Network Proxy” or “Proxy” option. Choose “Manual” and set HTTP Proxy to 127.0.0.1, port 1080, or set “Socks Host” to 127.0.0.1:10808 if needed. If you want to exclude local addresses, add localhost, 127.0.0.1, ::1 into “Ignore Hosts”.