Carbonyl: A Chromium-Based Browser Made for Your Terminal

Linux TLDR
Last Updated:
Reading time: 4 minutes

Carbonyl is a Chromium-based terminal browser that can render graphical elements, play audio and video (default set to 60 fps), is less resource-intensive, and can also run through SSH.

It bundles all necessary Web APIs, such as WebGL, WebGPU, animations, etc., and is considerably better compared to other terminal-based browsers like W3M, Lynx, and Browsh.

I’ve been using this for a while, and there are some strengths and weaknesses around it that we will discuss in this article, including how to install it on your system with usage examples.

Tutorial Details

DescriptionCarbonyl: A Modern Terminal Browser
Difficulty LevelLow
Root or Sudo PrivilegesNo
OS CompatibilityWindows, macOS, and Linux
PrerequisitesNo
Internet RequiredYes

Pros and Cons of Carbonyl

Carbonyl can be installed through three different methods: via a binary file, as an NPM package, or using Docker. Currently, I have only experimented with the binary file and Docker, so my opinion is based on these two methods.

Here are some pros and cons I’ve found while using this command-line tool:

Pros:

  • Render video in pixelet format and can also play audio.
  • You can easily log in to different websites, such as Twitter, Reddit, WordPress, etc.
  • Solving Google Captcha on the site is a bit challenging, but it can be solved, and using the β€œplayaudio” method will make it a piece of cake.

Cons:

  • Audio can only be heard if the binary file method you used does not work with Docker.
  • This tool doesn’t allow logging in to Google-related sites such as Gmail, YouTube, Drive, etc.
  • The login session persists for the current Carbonyl session; if you restart the terminal, you need to repeat the login process.
  • A site with a mathematical captcha can be a bit challenging, and in some instances, it’s quite impossible to solve them.
  • Finally, it lacks a bookmark feature, cannot disable ads unless a VPN with an adblocker is used, and cannot download files.

I hope the above point gives you a proper picture of it. Now, before moving forward, let me make it clear that the points mentioned in the cons are not something that this tool lacks.

It’s just a trickier problem to solve, and almost all command-line browsers have them, or at least some of them.

How to Install Carbonyl on Windows, macOS, and Linux

Carbonyl can be easily installed through three methods. I’ll now guide you through the steps for each method, beginning with the most recommended one via the binary file.

Installing Carbonyl via Binary File (recommended but only works for Linux)

This method is quite simple; all you need to do is pull the binary file from the project page and start using it directly. You can also create a reference link in the user bin directory for global access.

So, to start, just open your terminal and execute the following wget command to download the binary file for the Linux AMD64 version; for other versions, refer to the release page.

$ wget https://github.com/fathyb/carbonyl/releases/download/v0.0.3/carbonyl.linux-amd64.zip

Once the above file is downloaded, you can directly unzip its contents and start using it with the following command:.

$ unzip carbonyl.linux-amd64.zip && mv carbonyl-*/ carbonyl/
$ ./carbonyl/carbonyl

To simplify the process, create a symbolic link to the Carbonyl binary file in your user bin directory, enabling direct execution from there rather than accessing it directly from the Carbonly directory.

$ sudo ln -s $HOME/carbonyl/carbonyl /usr/bin/

Once you finish running the above command, you can easily use the β€œcarbonyl” command from anywhere to access it.

Installing Carbonyl as a NPM Package (Windows, macOS, and Linux)

This step involves installing Node.js and the NPM package, and then installing Carbonyl as an NPM package. With this method, you can easily install Carbonyl on your Windows and macOS systems.

To begin, launch your terminal and run the following command to install Node.js (with NPM).

πŸ“
Refer to the official Node.js site to install it on Windows or macOS systems.
$ sudo apt install nodejs npm -y                                                                    #Debian, Ubuntu, or Pop!_OS
$ sudo dnf install nodejs -y                                                                             #Red Hat, Fedora, or AlmaLinux
$ sudo pacman -Sy nodejs npm                                                                     #Arch, Manjaro, or EndeavourOS 

Then run the following command to install Carbonyl as an NPM package.

$ sudo npm install --global carbonyl

That’s it. You can now easily access the β€œcarbonyl” command from anywhere.

Installing Carbonyl with Docker (Windows, macOS, Linux, etc.)

If Docker is already installed on your system, you can effortlessly download and use the Carbonyl image without performing the multiple steps mentioned earlier.

Just open your terminal and execute the following command to pull the latest image of Carbonyl:

$ docker run --rm -ti fathyb/carbonyl https://linuxtldr.com

The command above will search for the Carbonyl image on your system; if not found, it will retrieve the latest one from the Docker Hub and, once downloaded, launch our site using the β€œcarbonyl” command.

How to Launch and Use Carbonyl

After installing Carbonyl through any of the aforementioned methods, launch it by executing the β€œcarbonyl” command, followed by the desired site address you want to access.

πŸ“
Make sure to specify the supported protocol (either HTTP or HTTPS) for the site you are attempting to access.
$ carbonyl https://linuxtldr.com

Output:

Accessing site via carbonyl

To quit, simply use the β€œCtrl+C” shortcut.

If you wish to access a different site, either edit the URL mentioned at the top or open another terminal tab, and you can also play a video from popular streaming sites like YouTube with audio.

$ carbonyl https://www.youtube.com/watch?v=_77oRoRBTt4

Output:

Playing audio and video from YouTube via carbonyl

Playing a media file from popular streaming sites is possible with this command-line tool; however, be aware that using this tool also involves experiencing unskippable ads.

Popular sites such as Twitter, Reddit, Facebook, WordPress, etc. allow you to easily log in with your account.

The following is a screenshot of my Twitter account.

Accessing twitter using carbonyl

The following is a screenshot of my Reddit account.

Accessing reddit using carbonyl

Unfortunately, you cannot login to Google-related sites such as Gmail, YouTube, Drive, etc.

Error while accessing google sites

If you are reading an article on our site, you can easily copy commands by holding the β€œShift” key, selecting the command with the mouse, and then using β€œCtrl+Shift+C” to copy and β€œCtrl+Shift+V” to paste.

selecting command using shortcut key in carbonyl

I’ll end this article here as you continue to explore further.

How to Remove Carbonyl from Windows, macOS, and Linux

To uninstall the carbonyl installed using the binary method, just unlink the symbolic link and then remove the β€œcarbonyl” directory by running.

$ sudo unlink /usr/bin/carbonyl
$ rm -rf ~/carbonyl/

If you installed it via the NPM package manager, then run.

$ sudo npm uninstall -g carbonyl

Finally, if you installed it via Docker, identify the image ID by executing the β€œdocker images” command and remove it using the β€œdocker rmi <container_id>” command.

Final Word

Overall, it’s a good command-line tool for browsing the internet from your terminal compared to other tools. However, I would love to know your opinion about it, so feel free to share it with us in the comment section.

Till then, peace!

Join The Conversation

Users are always welcome to leave comments about the articles, whether they are questions, comments, constructive criticism, old information, or notices of typos. Please keep in mind that all comments are moderated according to our comment policy.