Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to view pdf documents without having gdm (or similar) running?

Rationale: I'm working on a remote server (assume no X forwarding) processing some data, creating some plots (assume pdf files). And I would like to view them without having to scp and open them on my machine. (There may be other use cases, probably.)

share|improve this question
I don't know the answer to the question you asked, but I use sshfs to solve problems like these. I suppose it's like using scp, but requires less hassle. – ams Apr 11 '12 at 9:01
@ams, this would indeed solve the copying issue, but right now I'm particularly interested in a command-line only pdf viewer. – moooeeeep Apr 11 '12 at 9:05
Maybe you could adept bcvi in a way that executing view-this file.pdf over SSH runs your local PDF viewer on the file.pdf via back-channel magic. – sr_ Apr 11 '12 at 9:36
You can generate ascii graphs with gnuplot, i.e. echo 'set term dumb; plot sin(x)' | gnuplot. For improved "graphics" generate tektronix escape sequences, e.g. within xterm -t run echo 'set term tek40xx; plot sin(x)' | gnuplot – Thor Apr 13 '12 at 10:50
up vote 17 down vote accepted

Not a real viewer, but as first aid a converter may also help:

pdftotext file.pdf - | less

pdftohtml -stdout -i file.pdf | lynx -stdin

pdftotext and pdftohtml are part of the Poppler package.

share|improve this answer
+1 This works nicely with text-only documents. Obviously displaying graphics without graphical user interface is not realistic? :] – moooeeeep Apr 11 '12 at 11:06

I don't think it will work remotely, but locally I used to use fbgs (Info about fbida). It converts the PDF pages to TIFF files and displays them in a contiguous fashion using the framebuffer. Including images and proper layout. However, it's slower then using a GUI viewer.

share|improve this answer
Thanks for this note (it's spelled fbgs)! It looked indeed promising. Unfortunately the restriction is not in the first place locally, but any emulated terminal won't work. Apparantly it requires to be run on any of the virtual terminals ctrl+alt+f1/f2/f3/... :( – moooeeeep May 14 '12 at 11:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.