Eckhart Tolle would say be aware of the boredom, sit with it and in it. Awareness and presence. Just sit, be aware, and listen to the sounds, see the people, the view, as you ride the train. This is all perfectly fine, bored or not. It’s especially freeing if we can do it without our mind consuming us.