# How to autostart VPN before booting to Kodi?

**URL:** <https://dietpi.com/forum/t/how-to-autostart-vpn-before-booting-to-kodi/2506>\
**Category:** General Discussion\
**Created:** [26 August 2018 14:34 UTC](https://dietpi.com/forum/t/how-to-autostart-vpn-before-booting-to-kodi/2506 "2018-08-26T14:34:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![consig1iere](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/c/f4b2a3/32.png) [@consig1iere](https://dietpi.com/forum/u/consig1iere)\
**Post date:** [26 August 2018 14:34 UTC](https://dietpi.com/forum/t/how-to-autostart-vpn-before-booting-to-kodi/2506/1 "2018-08-26T14:34:43Z")

</div>

Hello everyone. I am having a great experience with DietPi but stuck at a point. I am trying to run Kodi (which works great) with VPN running on the background. I want the VPN to start at boot. I am using Nord VPN, I can manually start it by following this guide- [https://nordvpn.com/tutorials/raspberry-pi/openvpn/](https://nordvpn.com/tutorials/raspberry-pi/openvpn/). Using OpenVPN btw.

However, I would like to auto start it before the Pi boots to Kodi. Thanks.

---

<div class="post-metadata">

**Author:** ![consig1iere](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/c/f4b2a3/32.png) [@consig1iere](https://dietpi.com/forum/u/consig1iere)\
**Post date:** [28 August 2018 01:14 UTC](https://dietpi.com/forum/t/how-to-autostart-vpn-before-booting-to-kodi/2506/2 "2018-08-28T01:14:44Z")

</div>

Anyone?

---

<div class="post-metadata">

**Author:** ![johnvick](https://dietpi.com/forum/user_avatar/dietpi.com/johnvick/32/16_2.png) [@johnvick](https://dietpi.com/forum/u/johnvick)\
**Post date:** [28 August 2018 08:00 UTC](https://dietpi.com/forum/t/how-to-autostart-vpn-before-booting-to-kodi/2506/3 "2018-08-28T08:00:23Z")

</div>

This type of thing is not specific to DietPi, Debian or Ubnuntu tutorials usually give some clues as to how to get this working. Try this:

[https://www.smarthomebeginner.com/configure-openvpn-to-autostart-linux/](https://www.smarthomebeginner.com/configure-openvpn-to-autostart-linux/)

Let us know if this works.

John

---

<div class="post-metadata">

**Author:** ![WarHawk](https://dietpi.com/forum/user_avatar/dietpi.com/warhawk/32/21_2.png) [@WarHawk](https://dietpi.com/forum/u/WarHawk)\
**Post date:** [28 August 2018 08:27 UTC](https://dietpi.com/forum/t/how-to-autostart-vpn-before-booting-to-kodi/2506/4 "2018-08-28T08:27:31Z")

</div>

Where is the command to initiate Kodi loading, and either use a wait or pause command to hold off starting it so the VPN has a chance to initiate

---

<div class="post-metadata">

**Author:** ![consig1iere](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/c/f4b2a3/32.png) [@consig1iere](https://dietpi.com/forum/u/consig1iere)\
**Post date:** [28 August 2018 18:17 UTC](https://dietpi.com/forum/t/how-to-autostart-vpn-before-booting-to-kodi/2506/5 "2018-08-28T18:17:15Z")

</div>

> [@](#):
>
> This type of thing is not specific to DietPi, Debian or Ubnuntu tutorials usually give some clues as to how to get this working.

Oh man thank you so much. I have tried googling the crap out of this matter but could not find a straightforward answer.

---

<div class="post-metadata">

**Author:** ![JNehru](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/j/c4cdca/32.png) [@JNehru](https://dietpi.com/forum/u/JNehru)\
**Post date:** [30 August 2018 17:06 UTC](https://dietpi.com/forum/t/how-to-autostart-vpn-before-booting-to-kodi/2506/6 "2018-08-30T17:06:59Z")

</div>

> [@](#):
>
> Where is the command to initiate Kodi loading, and either use a wait or pause command to hold off starting it so the [Popcorn time VPN](https://www.ivacy.com/blog/popcorn-time-vpn/) has a chance to initiate

There is a option is settings, which enables you to start VPN first. 🕶

---

<div class="post-metadata">

**Author:** ![consig1iere](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/c/f4b2a3/32.png) [@consig1iere](https://dietpi.com/forum/u/consig1iere)\
**Post date:** [31 August 2018 15:15 UTC](https://dietpi.com/forum/t/how-to-autostart-vpn-before-booting-to-kodi/2506/7 "2018-08-31T15:15:59Z")

</div>

> [@](#):
>
> > [@](#):
> >
> > Where is the command to initiate Kodi loading, and either use a wait or pause command to hold off starting it so the [Popcorn time VPN](https://www.ivacy.com/blog/popcorn-time-vpn/) has a chance to initiate
> 
> There is a option is settings, which enables you to start VPN first. 🕶

Do you mean from the DietPi config or in Kodi? I would really like to know can you please elaborate? Thanks!

---

<div class="post-metadata">

**Author:** ![BAOZHAI](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/76d3ee/32.png) [@BAOZHAI](https://dietpi.com/forum/u/BAOZHAI)\
**Post date:** [13 September 2018 14:50 UTC](https://dietpi.com/forum/t/how-to-autostart-vpn-before-booting-to-kodi/2506/8 "2018-09-13T14:50:11Z")

</div>

Has anyone tried [popcorn time vpn](https://www.vpnranks.com/best-popcorn-time-vpn/)? The VPN which comes with popcorn time itself sucks. I was planning to buy one but would love some suggestions before taking this decision.

---

<div class="post-metadata">

**Author:** ![WarHawk](https://dietpi.com/forum/user_avatar/dietpi.com/warhawk/32/21_2.png) [@WarHawk](https://dietpi.com/forum/u/WarHawk)\
**Post date:** [14 September 2018 03:42 UTC](https://dietpi.com/forum/t/how-to-autostart-vpn-before-booting-to-kodi/2506/9 "2018-09-14T03:42:34Z")

</div>

> [@](#):
>
> > [@](#):
> >
> > > [@](#):
> > >
> > > Where is the command to initiate Kodi loading, and either use a wait or pause command to hold off starting it so the [Popcorn time VPN](https://www.ivacy.com/blog/popcorn-time-vpn/) has a chance to initiate
> > 
> > There is a option is settings, which enables you to start VPN first. 🕶
> 
> Do you mean from the DietPi config or in Kodi? I would really like to know can you please elaborate? Thanks!

Where does Kodi start from, is there a /etc/init.d script or something else that starts it?

Any DEV guy want to chime in?
