avatarSam Writes Security

Summary

The web content provides instructions on how to install and use ddgr, a command-line tool for searching DuckDuckGo on Linux terminals, emphasizing privacy and terminal-based search efficiency.

Abstract

The article titled "Here’s How You Install and Run DuckDuckGo on Your Linux Terminal" guides Linux users through the process of setting up ddgr, a tool that allows for private internet searches directly from the terminal using DuckDuckGo. It outlines the steps for installation, which include downloading the source code from GitHub, extracting the files, and running sudo make install. The article also demonstrates how to perform basic searches, filter results by website, and use 'bangs' for quick access to specific sites. The author highlights the terminal's popularity among experienced Linux users and the privacy benefits of using DuckDuckGo over Google. The tool is presented as a convenient way to search from the command line, with options to open results in a browser or save them to a text file.

Opinions

  • The author suggests that DuckDuckGo is a superior search engine for privacy-conscious users.
  • There is an implication that terminal-based activities are preferred by experienced Linux users.
  • The article conveys that using ddgr is straightforward and enhances the command-line experience for Linux users.
  • The author expresses that ddgr is a valuable tool for users who prefer to stay within the terminal environment for most of their tasks.
  • By encouraging readers to follow the Linux for Everyone publication and the author's LinkedIn profile, the article promotes a sense of community and ongoing support for Linux users.

Here’s How You Install and Run DuckDuckGo on Your Linux Terminal

Browse the internet on your Linux terminal with ease

author screenshot DuckDuckGo Official website

In this article, we will look into a program named ddgr that enables Linux terminal searches on DuckDuckGo. DuckDuckGo is a great substitute for Google searches since it places a strong emphasis on privacy.

In this case the searches will be conducted through a terminal window. You can easily do searches from the command line and open the outcomes in your browser if you choose to or start the searches using the command line and save the outcomes into a text file instead.

Linux provides a graphical user interface (GUI) for the majority of activities, but some people go for the terminal, which is very common on Linux, especially for experienced users.

Installing ddgr

What you need to accomplish this is a Linux distribution of your choice and an account with superuser privileges (sudo). For Debian-derived distributions (Ubuntu), use the following command:

 Sudo apt-get install build-essential unzip -y

You should know by now that the only difference between distributions might be the packet managers, at least when it comes to installing programs. For instance, on Fedora, instead of “sudo apt get,” we’d use “sudo dnf”. So, if you’re not using an Ubuntu based distribution you know what to change to make this work for you.

Download DDR’s source code using the following GitHub link: https://github.com/jarun/ddgr/archive/refs/tags/v2.1.zip.

On your terminal, the wget command followed by the link does the trick; you can also do it manually or inspect the link before you proceed. It’s a matter of choice.

Assuming you have downloaded the compressed file, now we need to extract it. You can do so by following the command: Unzip “file name” and hit enter. You can also accomplish this using your file manager, but since we’re playing with the terminal, this should do the trick.

Navigate to the recent created ddr directory and run sudo make install to install DuckDuckGo on your terminal.

sudo make install

Using DuckDuckGo on your Linux Terminal

For a simple search

Use the command ddr followed by your search keyword or query.

ddr Medium

Searching for specific websites

If you’re looking for specific forums online, then for this, you’ll run the -w to go with your search query, followed by the name of your website.

ddr -w medium.com bitcoin

This will bring up bitcoin-related posts from this website.

Last but not least, we’ll take a look at bangs, which, fortunately, DDR supports. Bangs are basically shortcuts for specific sites. !medium is a shortcut to Medium.com. To search for Sam Writes Security on your terminal, you can use the following command:

backslash(\) exclamation mark(!) Medium Sam Writes Security \!medium Sam Writes Security

You can obviously replace my name and look yourself up on Medium or anywhere else where you have a profile.

After doing so much on ddr to exit it, just type “q” and hit enter. Please note that using ddr on the terminal will only bring up the top ten results, unlike the unlimited number you can get on your browser.

Thanks in advance for reading. I hope you enjoyed installing and running ddr on your Linux machine using only the command line.

Follow Linux for everyone

Stay up-to-date with Linux and Open-Source software

Follow me on LinkedIn

Thanks for being here and supporting my free how-to guides on Linux.

Linux
Duckduckgo
Terminal
Ubuntu
Debian
Recommended from ReadMedium