user12857: Very often when I meditate, or in everyday life, there are times when I get bored. I don't have to do anything. And often I go on YouTube to get busy.
It is the same in meditation, very quickly I get bored, I feel the time passing and it becomes heavy.
How do you manage all this?

user12858: There are some advices on "RESTLESSNESS AND REMORSE"

When the mind is restless, it is the proper time for cultivating the following factors of enlightenment: tranquillity, concentration and equanimity, because an agitated mind can easily be quietened by them.
— SN 46:53

As Iain sad/recommended.
[Note: This is a gift of Dhamma, not meant for commercial use or other lower wordily gains by ways of exchange or trade]

user-1: You can establish mindfulness by discerning the arising and passing of "boredom" and reflect on how that very boredom is conditioned. 
Also one needs some patience because eventually boredom comes and goes, have to wait it out and keep looking at its arising and ceasing, eventually perception and discernment will be appropriately conditioned by such reflection and mindfulness.
Take it one moment at a time, meditating on a moment-to-moment basis if you find yourself impatient and bored. Recognizing, discerning, perceiving and learning about those phenomena. 
Noticing the states of mind that are of likes and dislikes, wanting and restlessness in particular.

user-1: Boredom is the feeling of your small mind drowning in emptiness.  Like most negative sensations, it is fleeting and only as powerful as your resistance to it.  Embrace your boredom.  Let it wash over you.  The space that is left behind is the beginning of wisdom.  

user471: The neither-pleasant-nor-painful feelings also known as neutral feelings is one of three types of feeling including pleasant and painful. Feelings here means sensations experienced by the six senses (including the mind).
The definition of neutral feeling comes in MN 44 and also states its relationship to ignorance:

Neutral feeling is pleasant when there is knowledge, and painful when
there is ignorance.”
“The underlying tendency for greed underlies pleasant feeling. The
underlying tendency for repulsion underlies painful feeling. The
underlying tendency for ignorance underlies neutral feeling.”

In Contemplation of Feeling, Nyanaponika Thera explained this:

Pleasant feeling is habitually linked with enjoyment and desire;
unpleasant feeling with aversion; neutral feeling with boredom and
confusion, but also serving as background for wrong views.

Also in SN 36.5:

“Mendicants, there are these three feelings. What three? Pleasant,
painful, and neutral feeling. Pleasant feeling should be seen as
suffering. Painful feeling should be seen as a dart. Neutral feeling
should be seen as impermanent. When a mendicant has seen these three
feelings in this way, they’re called a mendicant who has cut off
craving, untied the fetters, and by rightly comprehending conceit has
made an end of suffering.

The neither-pleasant-nor-painful feelings also known as neutral feelings, normally make us bored or dissatisfied. Cravings would lead one to seek pleasures (kama tanha) or to become something or achieve something (bhava tanha) rather than sit around all day experiencing neutral feelings that don't bring satisfaction.
No feelings at all, would also be a cause for boredom and dissatisfaction. From the same article by Nyanaponika Thera, we read the commentary of the suttas and his comment:

Comy.: "From the fourth Jhana onwards, it is the
neither-painful-nor-pleasant feeling (that is present in these
meditative states). But this neutral feeling, too, is called
'pleasure' (sukha), on account of its being peaceful and sublime. What
arises by way of the five cords of sensual desire and by way of the
eight meditative attainments is called 'pleasure as being felt'
(vedayita-sukha). The state of Cessation of Perception and Feeling is
a 'pleasure, not being felt' (avedayita-sukha). Hence, whether it be
pleasure felt or not felt, both are assuredly 'pleasure,' in the sense
of their being painfree states (niddukkhabhava-sankhatena sukhena)."
In AN 9.34, the venerable Sariputta exclaims: "Nibbana is happiness,
friend; Nibbana is happiness, indeed!" The monk Udayi then asked: "How
can there be happiness when there is no feeling?" The venerable
Sariputta replied: "Just this is happiness, friend, that therein there
is no feeling."

To the arahant, neutral feelings, no feelings and Nibbana are all pleasant.

user43: Well, technically boredom is a form of tanha, craving. We crave for excitement, for fun, for an external source of energy. And according to principle of "this-that conditionality" craving is also a form of aversion -- meaning, when we are bored we have an inner conflict against "this". For some reason we think that "this", "here", "now" is not good enough.
My teacher explained, that every time we feel bored - that's really a signal from our "heart" that we have alienated. It's a reminder that we lost connection or integration. Because we lost connection, we feel something's missing.
From this perspective, every time we feel bored we should stop all activities, pause and look inside. Basically, meditation.
When we get more advanced on this path, we can learn to maintain this connection at all times, and then we don't feel boredom, we never have the sense of dissatisfaction, we learn to live in suchness more or less at all times.

12857: <p>Very often when I meditate, or in everyday life, there are times when I get bored. I don't have to do anything. And often I go on YouTube to get busy.
It is the same in meditation, very quickly I get bored, I feel the time passing and it becomes heavy.</p>

<p>How do you manage all this?</p>
 12858: <p>There are some advices on &quot;<a href="http://zugangzureinsicht.org/html/lib/authors/nyanaponika/wheel026_en.html#rest" rel="nofollow noreferrer">RESTLESSNESS AND REMORSE</a>&quot;</p>
<blockquote>
<p>When the mind is restless, it is the proper time for cultivating the following factors of enlightenment: tranquillity, concentration and equanimity, because an agitated mind can easily be quietened by them.</p>
<p>— SN 46:53</p>
</blockquote>
<p><a href="https://buddhism.stackexchange.com/questions/24822/what-does-buddhism-say-about-boredom/24837#comment41863_24822">As Iain sad/recommended.</a></p>
<p><em>[Note: This is a gift of Dhamma, not meant for commercial use or other lower wordily gains by ways of exchange or trade]</em></p>
 -1: <p>You can establish mindfulness by discerning the arising and passing of "boredom" and reflect on how that very boredom is conditioned. </p>

<p>Also one needs some patience because eventually boredom comes and goes, have to wait it out and keep looking at its arising and ceasing, eventually perception and discernment will be appropriately conditioned by such reflection and mindfulness.</p>

<p>Take it one moment at a time, meditating on a moment-to-moment basis if you find yourself impatient and bored. Recognizing, discerning, perceiving and learning about those phenomena. 
Noticing the states of mind that are of likes and dislikes, wanting and restlessness in particular.</p>
 -1: <p>Boredom is the feeling of your small mind drowning in emptiness.  Like most negative sensations, it is fleeting and only as powerful as your resistance to it.  Embrace your boredom.  Let it wash over you.  The space that is left behind is the beginning of wisdom.  </p>
 471: <p>The neither-pleasant-nor-painful feelings also known as neutral feelings is one of three types of feeling including pleasant and painful. Feelings here means sensations experienced by the six senses (including the mind).</p>
<p>The definition of neutral feeling comes in <a href="https://suttacentral.net/mn44/en/sujato" rel="nofollow noreferrer">MN 44</a> and also states its relationship to ignorance:</p>
<blockquote>
<p><strong>Neutral feeling is pleasant when there is knowledge, and painful when
there is ignorance.”</strong></p>
<p>“The underlying tendency for greed underlies pleasant feeling. The
underlying tendency for repulsion underlies painful feeling. <strong>The
underlying tendency for ignorance underlies neutral feeling.</strong>”</p>
</blockquote>
<p>In <a href="https://www.accesstoinsight.org/lib/authors/nyanaponika/wheel303.html" rel="nofollow noreferrer">Contemplation of Feeling</a>, Nyanaponika Thera explained this:</p>
<blockquote>
<p>Pleasant feeling is habitually linked with enjoyment and desire;
unpleasant feeling with aversion; <strong>neutral feeling with boredom and
confusion, but also serving as background for wrong views.</strong></p>
</blockquote>
<p>Also in <a href="https://suttacentral.net/sn36.5/en/sujato" rel="nofollow noreferrer">SN 36.5</a>:</p>
<blockquote>
<p>“Mendicants, there are these three feelings. What three? Pleasant,
painful, and neutral feeling. Pleasant feeling should be seen as
suffering. Painful feeling should be seen as a dart. <strong>Neutral feeling
should be seen as impermanent.</strong> When a mendicant has seen these three
feelings in this way, they’re called a mendicant who has cut off
craving, untied the fetters, and by rightly comprehending conceit has
made an end of suffering.</p>
</blockquote>
<p>The neither-pleasant-nor-painful feelings also known as neutral feelings, normally make us <strong>bored or dissatisfied</strong>. Cravings would lead one to seek pleasures (<em>kama tanha</em>) or to become something or achieve something (<em>bhava tanha</em>) rather than sit around all day experiencing neutral feelings that don't bring satisfaction.</p>
<p>No feelings at all, would also be a cause for boredom and dissatisfaction. From the same article by Nyanaponika Thera, we read the commentary of the suttas and his comment:</p>
<blockquote>
<p>Comy.: &quot;From the fourth Jhana onwards, it is the
neither-painful-nor-pleasant feeling (that is present in these
meditative states). <strong>But this neutral feeling, too, is called
'pleasure' (<em>sukha</em>), on account of its being peaceful and sublime.</strong> What
arises by way of the five cords of sensual desire and by way of the
eight meditative attainments is called 'pleasure as being felt'
(<em>vedayita-sukha</em>). <strong>The state of Cessation of Perception and Feeling is
a 'pleasure, not being felt' (<em>avedayita-sukha</em>)</strong>. Hence, whether it be
pleasure felt or not felt, both are assuredly 'pleasure,' in the sense
of their being painfree states (<em>niddukkhabhava-sankhatena sukhena</em>).&quot;</p>
<p>In <a href="https://www.accesstoinsight.org/tipitaka/an/an09/an09.034.than.html" rel="nofollow noreferrer">AN 9.34</a>, the venerable Sariputta exclaims: &quot;Nibbana is happiness,
friend; Nibbana is happiness, indeed!&quot; The monk Udayi then asked: &quot;How
can there be happiness when there is no feeling?&quot; The venerable
Sariputta replied: &quot;Just this is happiness, friend, that therein there
is no feeling.&quot;</p>
</blockquote>
<p>To the arahant, neutral feelings, no feelings and Nibbana are all pleasant.</p>
 43: <p>Well, technically boredom is a form of <em>tanha</em>, craving. We crave for excitement, for fun, for an external source of energy. And according to principle of &quot;this-that conditionality&quot; craving is also a form of aversion -- meaning, when we are bored we have an inner conflict against &quot;this&quot;. For some reason we think that &quot;this&quot;, &quot;here&quot;, &quot;now&quot; is not good enough.</p>
<p>My teacher explained, that every time we feel bored - that's really a signal from our &quot;heart&quot; that we have alienated. It's a reminder that we lost connection or integration. Because we lost connection, we feel something's missing.</p>
<p>From this perspective, every time we feel bored we should stop all activities, pause and look inside. Basically, meditation.</p>
<p>When we get more advanced on this path, we can learn to maintain this connection at all times, and then we don't feel boredom, we never have the sense of dissatisfaction, we learn to live in suchness more or less at all times.</p>
