<p>To install feh open a terminal window and depending on your distribution run one of the following commands.</p><p>For Debian and Ubuntu based distributions use <a href="https://www.lifewire.com/ubuntu-command-line-package-apt-get-2205716" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="1">apt-get</a> as follows:</p><blockquote><p>sudo apt-get install feh</p></blockquote><p>For Fedora and CentOS based distributions use <a href="https://www.lifewire.com/install-rpm-packages-using-yum-2201155" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="2">yum</a> as follows:</p><blockquote><p>sudo yum install feh</p></blockquote><p>For openSUSE use zypper as follows: </p><blockquote>sudo zypper install feh</blockquote><p>Finally for Arch-based distributions use <a href="https://www.lifewire.com/using-the-pacman-package-manager-4018823" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="3">pacman</a> as follows:</p><blockquote><p>sudo apt-get install feh</p></blockquote><p>To show an image with feh open a terminal window and navigate to a folder with pictures.</p><p>For example, use the following <a href="https://www.lifewire.com/uses-of-command-cd-2201063" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="1">cd command</a>:</p><blockquote><p>cd ~/Pictures</p></blockquote><p>To open an individual picture type the following:</p><blockquote><p>feh &lt;nameoffile&gt;</p></blockquote><p> To change the dimensions of the image use the following command:</p><blockquote><p>feh -g 400x400 &lt;nameoffile&gt;</p></blockquote><p> You can show the picture without a border by using the following command:</p><blockquote><p>feh -x &lt;nameoffile&gt;</p></blockquote><p>You don&#39;t need to specify an image name to use feh. You can simply navigate to a folder which contains images and run the feh command with no switches and no parameters.</p><p>For example:</p><blockquote><p>cd ~/Pictures<br/>feh</p></blockquote><p>The first image in the folder will be displayed. You can scroll through all the images by pressing the right arrow key or the space bar.</p><p>You can scroll backward by pressing the left arrow.</p><p>By default feh will continue to loop around all the pictures in the slideshow but you can get it to stop after the last image by using the following command:</p><blockquote><p>feh --cycle-once</p></blockquote><p>You can get feh to search down through subfolders by using the following command:</p><blockquote><p>feh -r</p></blockquote><p>You can also show the images in a random order by using the following command:</p><blockquote><p>feh -z</p></blockquote><p>Maybe you want to see the images in reverse order. To do so use the following command:</p><blockquote><p>feh -n</p></blockquote><p>You can add a delay between each image so that it switches automatically as follows:</p><blockquote><p>feh -Dn</p></blockquote><p>Replace n with the number of seconds to delay.</p><p>You can get feh to show both the image and the name of the file.</p><p>To do so use the following command:</p><blockquote><p>feh -d</p></blockquote><p>If the images have a light background it is sometimes difficult to see the filename.</p><p>To get around this you can use the following command which displays the text on a tinted background.</p><blockquote><p>feh -d --draw-tinted</p></blockquote><p> You can specify a list of images to be used by feh as part of a slideshow.</p><p>To do so open a file using your favorite editor such as nano.</p><p>Within the file enter the path to an image on each line of the editor.</p><p>When you have finished save the file.</p><p>To show the image list run the following command:</p><blockquote><p>feh -f &lt;imagelistname&gt;</p></blockquote><p>If you want to hide the pointer because you are showing a slideshow use the following command:</p><blockquote><p>feh -Y -f &lt;imagelistname&gt;</p></blockquote><p> feh has something called montage mode which takes all the images in a list or slideshow and creates one single image using thumbnails.</p><p>To enable montage mode, enter the following command:</p><blockquote><p>feh -m</p></blockquote><p> If you don&#39;t want to view a slideshow but you want to open all the images in a folder in its own window you can use the following command:</p><blockquote><p>feh -w</p></blockquote><p>This works with folders and image lists.</p><p>feh is best as a tool to set the background wallpaper as part of a lightweight desktop setup.</p><p>To get feh to set the background run the following command:</p><blockquote><p>~/.fehbg &lt;pathtoimage&gt;</p></blockquote><p><a href="https://www.lifewire.com/install-openbox-using-ubuntu-4051832" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="1">This guide shows how to add feh to your autostart file in Openbox</a> so that the wallpaper loads every time the window manager starts. </p><p>If the image isn&#39;t the correct size you have various options for positioning the image as follows:</p><blockquote><p>~/.fehbg --bg-center &lt;pathtoimage&gt;</p></blockquote><p>This will center the image and if it is too small a black border will be displayed</p><blockquote><p>~/.fehbg --bg-fill &lt;pathtoimage&gt;</p></blockquote><p>This will continue expanding the image until it fits the screen. The aspect ratio is maintained so part of the image will be truncated.</p><blockquote><p>~/.fehbg --bg-max &lt;pathtoimage&gt;</p></blockquote><p>This will expand the image but will stop when either the width or height touches the edge of the screen. A black border will be placed around the missing bits.</p><blockquote><p>~/.fehbg --bg-scale &lt;pathtoimage&gt;</p></blockquote><p>This option will stretch the image. The aspect ratio is not maintained.</p>