Code Monkey home page Code Monkey logo

clash-for-ubuntu's Introduction

Clash-For-Ubuntu

clash for unbuntu tutorial

Clash is a cross-platform agent program developed based on Go language.

Clash For Linux is a Linux agent developed based on Electron and Clash, which allows users to configure Clash intuitively through GUI.

Download and install Clash for Linux

Network disk download

github download

Configure

  • Create the directory where you want to store the files, decompress the gz package, e.g. the path store is /home/clash, you can rename the decompressed file to crash for easy reading
unzip /clash-linux-amd64-v0.18.0.gz
  • Give the file execute permission
chmod +x clash
  • Startup file
./clash

The first startup will automatically generate two files, Config.yaml and Country.mmdb, in the user directory.

The generated Config.yaml file is empty, and you need to fill in your own proxy information later.

The directory generated here is /home/.config/clash. If it is inconsistent, you can use the find command to find it.

  • Add Clash configuration subscription

Go to the subscription center of the official website and select Copy Subscription, then visit [Add &client=clash after the subscription address] in the browser, then right-click the browser page and select "Save As" to save the page

Then modify the saved file to Config.yaml (the format should also be modified)

Then we edit the content of the file

First delete all the lines in front of port: 7890

After the modification is completed, save it and replace the empty Config.yaml file that was just unzipped

  • Start crash

After the configuration is complete, re-execute the command to start the flash to load the modified configuration file

Open the URL below to access the management page

https://clash.razord.top/#/proxies

  • Set up the virtual machine network, configure the proxy

Take centos7.4 as an example, open the system settings, select the network, click the network proxy, select manual, configure according to the port set in the yml configuration file, fill in the HTTP and HTTPS proxy as 127.0.0.1:7890, and fill in the Socks host as 127.0. 0.1:7891 to enable system proxy

Set up diversion

Click on Proxies on the left side of the window.

By default, Clash uses Rule mode. Global and Direct modes are not recommended.

Clash supports the use of different policies for different websites through policy groups. Reasonable use of triage can improve your experience.

The line used by the proxy decision, where you can switch nodes.

Domestic decides all websites in mainland China, and the default DIRECT is direct connection.

Global decides to use a proxy as the default proxy for mainstream websites that cannot be accessed in mainland China.

Others decides unpopular websites that are not included in the Global rules, and the default Proxy is to use a proxy.

Happy using!

Backup

clash/ is copied from my own device home/.config/, the clash.yaml file is set by using the subscription.

clash-for-ubuntu's People

Contributors

fengwz17 avatar

Stargazers

Ash Andrew avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.