# Pihole - newbie problems due to lack of understanding general principles

**URL:** <https://forums.balena.io/t/pihole-newbie-problems-due-to-lack-of-understanding-general-principles/5586>\
**Category:** Project help\
**Tags:** raspberrypi3, pi-hole\
**Created:** [March 10, 2019, 10:49am UTC](https://forums.balena.io/t/pihole-newbie-problems-due-to-lack-of-understanding-general-principles/5586 "2019-03-10T10:49:57Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![M7PUG](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@M7PUG](https://forums.balena.io/u/M7PUG)\
**Post date:** [March 10, 2019, 10:49am UTC](https://forums.balena.io/t/pihole-newbie-problems-due-to-lack-of-understanding-general-principles/5586/1 "2019-03-10T10:49:57Z")

</div>

Hi All, I’m new to the forum and relatively new to Pi - very new to balenacloud!

I am following the pi hole tutorial steps and have an application/device running in balena cloud. I’m getting stuck at a couple of points so would really appreciate some help.

1. When trying to add Service variables, I’m seeing an error telling me that ‘services are defined when I deploy my fleet’ - do I need to add all these as environment variables which will then be added when I deploy, or is it an option that becomes available (note I don’t actually know how to deploy my fleet)

2. Stuck at pushing the package from balena cli. I have installed NPM and node.js etc (Win10 environment) and can log in to balena via Powershell running as admin.  
There appears to be a balena-pihole folder in my system32 folder, and the powershell is at that directory (system32, no deeper).  
When I run balena push pihole, I get errors - the package thingy tries to run but I ‘don’t have enough privileges’.

Can anyone suggest how I can progress beyond these stages, please? Thanks in advance!

Edit to add: I did install the MinGW packages and edit the PATH - what I don’t understand is how to add SSH keys to `%homedrive%%homepath\.ssh` .

---

<div class="post-metadata">

**Author:** ![dansku](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dansku/32/1183_2.png) [@dansku](https://forums.balena.io/u/dansku)\
**Post date:** [March 11, 2019, 12:43pm UTC](https://forums.balena.io/t/pihole-newbie-problems-due-to-lack-of-understanding-general-principles/5586/3 "2019-03-11T12:43:13Z")

</div>

Hello @M7PUG, welcome to the forums! 🙂

1 - You need to deploy one device to the application in order for the **Service Variables** to become available to be added.

Have you already downloaded the image file and flashed the SD Card with [Etcher](https://www.balena.io/etcher/)?

For the CLI, I would suggest downloading the standalone version, which you get the latest version from [https://github.com/balena-io/balena-cli/releases/latest](https://github.com/balena-io/balena-cli/releases/latest). For Windows, you would download [this file](https://github.com/balena-io/balena-cli/releases/download/v9.14.6/balena-cli-v9.14.6-win32-x64.zip) and unzip on your computer to somewhere easy to access via the terminal, let’s say `C:\balena`

Then from `powershell`, go to the Pi-Hole project folder and type `C:\balena\balena login`, and select `Web authorization`.

Once logged, you can then push the code to the device with `C:\balena\balena push <project-name>`.

Please let me know how it goes and we can get you up and running.

Cheers

---

<div class="post-metadata">

**Author:** ![simonnelli](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@simonnelli](https://forums.balena.io/u/simonnelli)\
**Post date:** [March 19, 2019, 11:55am UTC](https://forums.balena.io/t/pihole-newbie-problems-due-to-lack-of-understanding-general-principles/5586/4 "2019-03-19T11:55:32Z")

</div>

I have the exact same problem. Device is added to fleet but add Service Variables is still greyed out.

---

<div class="post-metadata">

**Author:** ![dansku](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dansku/32/1183_2.png) [@dansku](https://forums.balena.io/u/dansku)\
**Post date:** [March 19, 2019, 12:31pm UTC](https://forums.balena.io/t/pihole-newbie-problems-due-to-lack-of-understanding-general-principles/5586/6 "2019-03-19T12:31:48Z")

</div>

Hey @simonnelli, can you confirm that you have deployed a device to your balenaCloud application and it is showing as `Online`?

Thank you

---

<div class="post-metadata">

**Author:** ![simonnelli](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@simonnelli](https://forums.balena.io/u/simonnelli)\
**Post date:** [March 19, 2019, 12:32pm UTC](https://forums.balena.io/t/pihole-newbie-problems-due-to-lack-of-understanding-general-principles/5586/8 "2019-03-19T12:32:56Z")

</div>

Yes, the device is online and deployed to the application.

---

<div class="post-metadata">

**Author:** ![dansku](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dansku/32/1183_2.png) [@dansku](https://forums.balena.io/u/dansku)\
**Post date:** [March 19, 2019, 12:40pm UTC](https://forums.balena.io/t/pihole-newbie-problems-due-to-lack-of-understanding-general-principles/5586/10 "2019-03-19T12:40:10Z")

</div>

@simonnelli, I’ve send you a private message, let’s see if I can help you from there. Thank you

---

<div class="post-metadata">

**Author:** ![dansku](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dansku/32/1183_2.png) [@dansku](https://forums.balena.io/u/dansku)\
**Post date:** [March 19, 2019, 3:53pm UTC](https://forums.balena.io/t/pihole-newbie-problems-due-to-lack-of-understanding-general-principles/5586/12 "2019-03-19T15:53:28Z")

</div>

Just to post the solution here, @simonnelli was trying to change the variables without having a device with containers running on the platform. After having containers online, you will be able to change the variables.

Thank you

---

<div class="post-metadata">

**Author:** ![simonnelli](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@simonnelli](https://forums.balena.io/u/simonnelli)\
**Post date:** [March 19, 2019, 4:13pm UTC](https://forums.balena.io/t/pihole-newbie-problems-due-to-lack-of-understanding-general-principles/5586/14 "2019-03-19T16:13:20Z")

</div>

Yes, thank you @dansku for the quick help.

This is my first project with balena and I was following this guide step by step: [https://www.balena.io/blog/deploy-network-wide-ad-blocking-with-pi-hole-and-a-raspberry-pi/](https://www.balena.io/blog/deploy-network-wide-ad-blocking-with-pi-hole-and-a-raspberry-pi/)

Maybe the steps could be adjusted to be in the right order for other novice users to follow?

---

<div class="post-metadata">

**Author:** ![dansku](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dansku/32/1183_2.png) [@dansku](https://forums.balena.io/u/dansku)\
**Post date:** [March 19, 2019, 4:14pm UTC](https://forums.balena.io/t/pihole-newbie-problems-due-to-lack-of-understanding-general-principles/5586/15 "2019-03-19T16:14:59Z")

</div>

@simonnelli, that is a good point, will do! Cheers

---

<div class="post-metadata">

**Author:** ![galapagos](https://avatars.discourse-cdn.com/v4/letter/g/9dc877/32.png) [@galapagos](https://forums.balena.io/u/galapagos)\
**Post date:** [May 7, 2019, 7:02am UTC](https://forums.balena.io/t/pihole-newbie-problems-due-to-lack-of-understanding-general-principles/5586/17 "2019-05-07T07:02:52Z")

</div>

hi @dansku , can you help out?

I’ve followed: [A guide](https://www.balena.io/blog/deploy-network-wide-ad-blocking-with-pi-hole-and-a-raspberry-pi/?utm_source=efp&utm_medium=etcher&utm_campaign=balena-pihole&utm_content=v1&u_id=16a90ce56202cc-0ca195af77ae69-66310947-fa000-16a90ce56215ed) and got stuck at Variables stage also.

How do I add them? I flashed SD card, Raspberry W Zero is online. I can see it on Dashboard.

---

<div class="post-metadata">

**Author:** ![nazrhom](https://avatars.discourse-cdn.com/v4/letter/n/ee59a6/32.png) [@nazrhom](https://forums.balena.io/u/nazrhom)\
**Post date:** [May 7, 2019, 2:07pm UTC](https://forums.balena.io/t/pihole-newbie-problems-due-to-lack-of-understanding-general-principles/5586/18 "2019-05-07T14:07:48Z")

</div>

Hello galapagos,  
you should be able to add these from the application page in the dashboard. There is a box called `Environment variables E(x)` on the left, which will allow you to configure the application environment variables as described in the guide.  
Let me know if this works for you

---

<div class="post-metadata">

**Author:** ![galapagos](https://avatars.discourse-cdn.com/v4/letter/g/9dc877/32.png) [@galapagos](https://forums.balena.io/u/galapagos)\
**Post date:** [May 7, 2019, 3:13pm UTC](https://forums.balena.io/t/pihole-newbie-problems-due-to-lack-of-understanding-general-principles/5586/20 "2019-05-07T15:13:41Z")

</div>

thanks! does it look good?

 ![image](https://global.discourse-cdn.com/balena/original/2X/4/4c1e06dd6e5fb9e56a66cf4a5f689231f5b59d2f.png)

---

<div class="post-metadata">

**Author:** ![thgreasi](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/thgreasi/32/454_2.png) [@thgreasi](https://forums.balena.io/u/thgreasi)\
**Post date:** [May 7, 2019, 3:45pm UTC](https://forums.balena.io/t/pihole-newbie-problems-due-to-lack-of-understanding-general-principles/5586/21 "2019-05-07T15:45:43Z")

</div>

@galapagos the page is the correct one, as in the blog post, but I’m not sure whether the `TZ` setting will be properly detected. If you face issues, please consider using a more verbose value, like in the blog post.

As an extra after you get this working, if you have several devices in different timezones, then you can also use the respective `Device Environment Variable` page, to specify a different `TZ` values for each device.

---

<div class="post-metadata">

**Author:** ![galapagos](https://avatars.discourse-cdn.com/v4/letter/g/9dc877/32.png) [@galapagos](https://forums.balena.io/u/galapagos)\
**Post date:** [May 7, 2019, 11:31pm UTC](https://forums.balena.io/t/pihole-newbie-problems-due-to-lack-of-understanding-general-principles/5586/23 "2019-05-07T23:31:09Z")

</div>

guys, how to set up normal cli in balena? How do I git clone the repo?

[![image](https://global.discourse-cdn.com/balena/original/2X/c/cea1fe99dbaa868c519ad3b381aadefb14ba1884.png)](https://global.discourse-cdn.com/balena/original/2X/c/cea1fe99dbaa868c519ad3b381aadefb14ba1884.png "image.png")

@ [thgreasi](https://forums.balena.io/u/thgreasi) [@nazrhom](https://forums.balena.io/u/nazrhom)

Update: I’ve created Docker container that was pulled via DockerHub

---

<div class="post-metadata">

**Author:** ![dfunckt](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dfunckt/32/56_2.png) [@dfunckt](https://forums.balena.io/u/dfunckt)\
**Post date:** [May 8, 2019, 8:50am UTC](https://forums.balena.io/t/pihole-newbie-problems-due-to-lack-of-understanding-general-principles/5586/24 "2019-05-08T08:50:58Z")

</div>

Hey @galapagos, the error above is saying that git is not installed on your system, you first need to install it. I think you’re better off however installing the standalone version of the CLI as described here: [https://github.com/balena-io/balena-cli/blob/master/INSTALL.md](https://github.com/balena-io/balena-cli/blob/master/INSTALL.md)

---

<div class="post-metadata">

**Author:** ![galapagos](https://avatars.discourse-cdn.com/v4/letter/g/9dc877/32.png) [@galapagos](https://forums.balena.io/u/galapagos)\
**Post date:** [May 8, 2019, 10:56pm UTC](https://forums.balena.io/t/pihole-newbie-problems-due-to-lack-of-understanding-general-principles/5586/27 "2019-05-08T22:56:01Z")

</div>

just did, and here what it does:

![image](https://global.discourse-cdn.com/balena/original/2X/f/f3fafb504965a467502de6efb9d0cd4646882fbc.png)

does it seem right to you?

it looks like it get stuck and then logs out

---

<div class="post-metadata">

**Author:** ![galapagos](https://avatars.discourse-cdn.com/v4/letter/g/9dc877/32.png) [@galapagos](https://forums.balena.io/u/galapagos)\
**Post date:** [May 8, 2019, 11:08pm UTC](https://forums.balena.io/t/pihole-newbie-problems-due-to-lack-of-understanding-general-principles/5586/28 "2019-05-08T23:08:11Z")

</div>

unbelievable, i got it done 🙂

 ![image](https://global.discourse-cdn.com/balena/original/2X/2/2c58358d6f8e9e27aff3b17251490cde17d35c55.png)

and Dashboard:

 ![image](https://global.discourse-cdn.com/balena/original/2X/e/e90f187e91023965f1cf9e0189f3aae2bc514cb5.png)

---

<div class="post-metadata">

**Author:** ![mdlisenbery](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@mdlisenbery](https://forums.balena.io/u/mdlisenbery)\
**Post date:** [June 15, 2019, 2:09am UTC](https://forums.balena.io/t/pihole-newbie-problems-due-to-lack-of-understanding-general-principles/5586/30 "2019-06-15T02:09:39Z")

</div>

is it working for you on a zero W?
