Skip to content

Instantly share code, notes, and snippets.

@mamemomonga
Last active August 29, 2015 14:13
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 mamemomonga/2d7df1c0eb99fd092a31 to your computer and use it in GitHub Desktop.
Save mamemomonga/2d7df1c0eb99fd092a31 to your computer and use it in GitHub Desktop.
Raspberry Pi(raspbian)でSSHからHDMI接続中の画面にXを使わず画像を表示する。

http://blog.mamemomonga.com/2015/01/raspberry-piraspbiansshhdmix.html

インストール

$ sudo aptitude install fbi

/dev/tty1 へのアクセスのために、root権限が必要。

画像を表示

yysk.png を表示する

$ sudo fbi -T 1 -d /dev/fb0 -noverbose -a yysk.png

終了

/dev/tty1 にキーストローク q を送信する。

$ sudo perl -e '$chr="q"; require "sys/ioctl.ph";open($hTTY, ">", "/dev/tty1");ioctl($hTTY, TIOCSTI(), $chr)' 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment