I’m trying to set up a balenaDash web frame with a Raspberry Pi and have hit a snag trying to install CLI. Up to this point, the instructions have been rather good and clear (and my device looks like the one pictured under the “Assembling the display and the case” section of https://www.balena.io/blog/make-a-web-frame-with-raspberry-pi-in-30-minutes/), but I’m now stuck.
The documentation ( https://www.balena.io/docs/reference/cli/#install-the-cli) speaks of two methods for installing CLI; the first is through npm and there is a screen capture of a command line with the necessary commands. However, there are no directions on how to get to that specific command prompt ($). When I try to use the terminal from the device page, I’m put into a bash shell.
Similarly, I can’t SSH into a terminal on the device itself using the Raspberry Pi Finder; the connection is refused.
The second method is to download the CLI as a standalone binary. I followed the instructions, downloaded the ZIP file, unpacked it to a balena-cli directory on my C: drive and added the path as instructed. However, when I open a command prompt in Windows, navigate to the directory and issue a “balena” command I get an error message that says:
‘balena’ is not recognized as an internal or external command, operable program or batch file.
I’ve also tried using the “balena login” command in the bash shell, and logged in using Docker credentials, but still can’t seem to figure out how to get CLI installed.
I’m REALLY confused and don’t know what to do to get past this step. Any help would be appreciated.
Thanks for posting your question here,
As you are on windows, when you navigate to the C:\balena-cli folder (or to the place you unzipped the files to), instead of just using balena, can you try balena.exe. For example using balena.exe login and see if it works for you.
Please let me know if that works, otherwise we can keep working until we get everything up and running.
There is no balena.exe file in the c:\balena-cli folder. It contains three sub-directories: drivelist, ext2fx, and resin-cli-visuals; and two files with no extensions: balena and xdg-open.
Do I need to rename the balena file with an “.exe” extension?
I’ve hit another snag, this time when trying to push the code:
E:\Software Installation\Raspberry Pi\balenaDash>balena push balenaDash
[Info] Starting build for balenaDash, user psavas
[Info] Dashboard link: https://dashboard.balena-cloud.com/apps/1320466/devices
[Info] Building on arm02
[Info] Pulling previous images for caching purposes…
[Success] Successfully pulled cache images
[Error] Some services failed to build:
[Error] Service: main
[Error] Error: Cannot locate specified Dockerfile: Dockerfile
[Error] Not deploying release.
Remote build failed
I don’t think I missed a step. I changed the environment variable as instructed, and then attempted pushing the code I downloaded from GitHUB, which downloaded as “balena-dash-master.zip.”
Wow; I feel like the dumbest person on the face of the Earth right now.
I had downloaded the balena-dash-master.zip file, but had not unzipped it into the previously-created balena-cli directory. I just did that, and tried the push again, and it worked!
I have one more question for you if you don’t mind: How can I enable WiFi on the Pi? I got it working with a Google Slideshow, but I’d rather not have it connected with an Ethernet cable.
You can insert the SD Card in your computer and a resin-boot partition will open.
Inside the partition, you will find a folder called system-connections where there is a sample file with .ignore extension. Copy that, remove the .ignore from the filename, and edit to add your wifi credentials.
Alternatively, if you connect to the device over ethernet, log into the host OS, then change the file in /etc/NetworkManager/system-connections. Change the example file mentioned above with a text editor such as vim and then restart the device.
@dansku Hi I’m trying to push the balenaDash and it is not working. Everything is written correctly. The appfolder is where I want it to be.
I am a newbie so this is pretty much the first project for me…
Everything is runnin’ to the point where I wanna push the code.
"XX-MBP:~ XX$ sudo balena push balenaDash
| Packaging the project source…No such file or directory: /Users/XX/Library/Containers/com.apple.AddressBook/Data/Documents/iChats"
Hi ruerdo
It looks like you might be calling balena push from outside of the project folder.
Please cd into the project folder and try again.
Regards
Thomas
I seem to be having the same issue that is described above, but when I place the SD card into my computer to look for the folder called system-connections, but I can’t seem to find it. Alternatively, I did try changing the file via logging into the host OS, but was unfortunately unsuccessful there too.
Any other suggestions as to how I might be able to get this resolved would be greatly appreciated.
P.s. Just so you know I am using a Raspberry Pi 3 B+, and a Macbook Pro.