Go to kitty's folder
cd /opt/clash
Run the ./cfw file
./cfw
Modify the configuration file
sudo chmod 666 /etc/environment
edit file
gedit /etc/environment
Fill in the following content and save
http_proxy=http://127.0.0.1:7890/
https_proxy=http://127.0.0.1:7890/
ftp_proxy=http://127.0.0.1:7890/
HTTP_PROXY=http://127.0.0.1:7890/
HTTPS_PROXY=http://127.0.0.1:7890/
FTP_PROXY=http://127.0.0.1:7890/
Change to original read-only status
sudo chmod 444 /etc/environment