Skip to content

Instantly share code, notes, and snippets.

@zldrobit
Last active August 5, 2023 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zldrobit/7506dceae1f3c26e3c2af04d3676d570 to your computer and use it in GitHub Desktop.
Save zldrobit/7506dceae1f3c26e3c2af04d3676d570 to your computer and use it in GitHub Desktop.

On Ubuntu Server

  • Install urxvt sudo apt install rxvt-unicode
  • Install ranger pip install ranger-fm (ranger is installed at ~/.local/bin/ranger)
  • Edit ranger config file (~/.config/ranger/rc.conf)
set preview_images true
set preview_images_method urxvt

On Client

  1. SSH to server
  2. open urxvt in terminal with X11 forwarding
  3. Preview images using ranger in urxvt terminal emulator.
Mac

Mac ssh to Ubuntu 18.04

On Ubuntu

  • Install ranger pip install ranger-fm (ranger is installed at ~/.local/bin/ranger)
  • Edit ranger config file (~/.config/ranger/rc.conf)
set preview_images true
set preview_images_method kitty

On Mac

  • Install Kitty brew install kitty
  • In Kitty terminal, SSH to Ubuntu with kitty +kitten ssh <HOST>
  • Run ranger to preview images
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment