Blog 1

Random Talk on Random Thoughts

Use Tmux for Previewing Posts

| Comments |


After I finished an Octopress post, one may check if there’s any error by previewing the post. In GUI, it’s easy: just open a new window. How about in Linux text mode?

A so-called method

Add an ampersand ‘&’ behind the command for previewing the blog. However, while viewing the site in a browser, the contents would be covered by some lines. - - [14/Feb/2015:13:46:08 +0800] "GET / HTTP/1.1" 200 39685 0.0024 - - [14/Feb/2015:13:46:14 +0800] "GET /blog/2015/02/14/tried-range-bas
ed-for-loop/ HTTP/1.1" 200 21821 0.0028 - - [14/Feb/2015:13:46:59 +0800] "GET /atom.xml HTTP/1.1" 200 131801 0

This can be an inconvenience. It isn’t hard to log on another TTY and open the browser there, but one has to type the password twice—this is still inconvenient.


I now use Byobu, which depends on Tmux, to preview the generated blog.1

  1. The screenshot of Tmux.