How to view images in terminal using FBI

Framebuffer Image Viewer (fbi) is a program that can be used to view images at the terminal. However, it only works with actual terminals (/dev/tty), that is the terminals you get when you press Ctrl + Alt + F1 to Ctrl + Alt + F6. It does not work in pseudo terminals (/dev/pts) that are used by terminal programs running in X, like GNOME Terminal.

To install fbi:

$ sudo apt install fbi

Before using the viewer, your username needs to be added to the video group. For example, to add user joe:

$ sudo usermod -a -G video joe

After this, any image can be viewed at a real terminal using fbi:

$ fbi foo.jpg

Tried with: FBI 2.07-11 and Ubuntu 14.04

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s