This is a gradual training.
Find somewhere secluded where one won't be disturbed.
Putting aside longing and dejection in regard to the world.
Setting aside all worldly concerns.
One trains thus:
Mindfulness of the body
1. To begin just simply notice if the breath is long or short.
2. Then pay attention to the whole of the breath from start to finish.
3. Become sensitive to the body as you breathe in and out.
4. Breathe calming the body.
Mindfulness of Feelings
5. Breathe sensitive to joy.
6. Breathe experiencing pleasure.
7. Breathe sensitive to thoughts.
8. Breathe calming thoughts.
Mindfulness of mind states:
9. Breathe sensitive to one's state of mind.
10. Breathe satisfying and gladdening the mind.
11. Breathe steadying the mind.
12. Breathe releasing the mind.
Mindfulness of dhammas:
13. Breathe contemplating change. (impermanence, anicca, dependent origination).
14. Breathe contemplating the fading of craving. (Dispassion)
16. Breathe contemplating cessation. (of suffering).
17. Breathe abandoning greed, hate, and delusion. (renunciation).
...