Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and use YaCy

2025-01-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the relevant knowledge of "how to install and use YaCy". The editor shows you the operation process through an actual case. The operation method is simple, fast and practical. I hope this article "how to install and use YaCy" can help you solve the problem.

Why choose open source alternatives?

Search engines like Google and DuckDuckGo are clearly effective. You may be visiting this site through a search engine. Although there is still debate about the fact that content gets into trouble because the host does not choose to follow the best practices of optimizing search engines, but the modern solution for managing rich culture, knowledge, and indiscreet information (that is, the Internet) is a cold index.

But maybe for privacy reasons, or if you want to contribute to making the Internet more independent, you may not want to use Google or DuckDuckGo. If you are interested, consider joining YaCy, a peer-to-peer Internet indexer and search engine.

Install YaCy

To install and try YaCy, first make sure that Java is installed. If you are using Linux, you can follow my instructions in how to install Java on Linux. If you use Windows or MacOS, please get the installer from AdoptOpenJDK.net.

After installing Java, please download the installer according to your platform.

If you are using Linux, extract the tarball and move it to the / opt directory:

$sudo tar-extract-file yacy_*z-directory / opt

Start YaCy according to the instructions of the downloaded installer.

On Linux, start the YaCy that runs in the background:

$/ opt/startYACY.sh &

In the Web browser, navigate to localhost:8090 and search.

YaCy start page

Add YaCy to your address bar

If you are using a Firefox Web browser, you can set YaCy as the default search engine in Awesome Bar (the name Mozilla gives the URL column) with just a few clicks.

First, if it's not already displayed, make the dedicated search bar appear in the Firefox toolbar (you don't have to keep the search bar visible all the time; you just need to activate it long enough to add a custom search engine). The search bar is available in the Custom menu in the Hamburg menu in the upper-right corner of Firefox. When the search bar on the Firefox toolbar is visible, navigate to localhost:8090, and then click the magnifying glass icon in the Firefox search bar you just added. Click the option to add YaCy to your Firefox search engine.

Adding YaCy to Firefox

After you have done this, you can mark it as the default in your Firefox preferences or optionally use it only in searches performed in the Firefox search bar. If you set it as the default search engine, you may not need a dedicated search bar because Awesome Bar also uses the default engine, so you can remove it from the toolbar.

How peer-to-peer search engines work

YaCy is an open source distributed search engine. It is written in Java, so it can be run on any platform and can perform Web crawling, indexing, and searching. This is a peer-to-peer (P2P) network, so every user running YaCy will try to keep track of changes in the Internet. Of course, no single user can have a complete index of the entire Internet, as it will require a data center to accommodate it, but the index is distributed among all YaCy users and is redundant. It is very similar to BitTorrent (because it uses a distributed hash table DHT to reference index entries), except that the data you share is a matrix associated with words and URL. By mixing the results returned by the hash table, no one can say who searched which words, so all searches are functionally anonymous. This is an effective system for unbiased, ad-free, untracked and anonymous search, and you just need to use it to join it.

Search engines and algorithms

The act of indexing the Internet is to divide a web page into individual words and then associate the URL of the page with each word. Searching for one or more words in a search engine will get all the URL associated with the query. The same is true of YaCy clients at run time.

Another thing the client needs to do is to provide a search interface for your browser. Instead of navigating to Google when you want to search, you can point your Web browser to localhost:8090 to search for YaCy. You can even add it to the browser's search bar (depending on the browser's extensibility), so you can search from the URL bar.

Firewall settings for YaCy

When you first start using YaCy, it may be running in "entry-level" mode. This means that your client crawled site is only available to you because other YaCy clients cannot access your index entries. To join the peer-to-peer environment, port 8090 must be opened in the router's firewall (or the software firewall you are running), which is called "advanced" mode.

If you are using Linux, you can find more information about computer firewalls in "using firewalls to make your Linux more powerful." On other platforms, please refer to the documentation of the operating system.

Firewalls are almost always enabled on routers provided by Internet service providers (ISP), and there are too many types of firewalls that cannot be accurately described. Most routers offer the option of "punching holes" in firewalls because many popular online games require two-way traffic.

If you know how to log in to the router (usually 192.168.0.1 or 10.1.0.1, but may vary depending on the manufacturer's settings), log in and find the configuration panel to control "firewall" or "port forwarding" or "application".

After finding the preferences for the router firewall, add port 8090 to the whitelist. For example:

Adding YaCy to an ISP router

If the router is doing port forwarding, it must use the same port to forward incoming traffic to the IP address of the computer. For example:

Adding YaCy to an ISP router

If you can't adjust the firewall settings for some reason, that's fine. YaCy will continue to run in primary mode and as a client to the peer-to-peer search network.

This is the end of the content about "how to install and use YaCy". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 228

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report