New to ResinOS, issues installing screenly


#1

I am using this tutorial to install ResinOS and Screenly. no problems until i go to use git to install screenly ose.
Using the terminal in the browser, I get the error below in the screenshot.
https://imgur.com/VL8ktdT.
Am I missing something… i try to install git but it just errors out.

Any help is welcomed


#4

hey @it_pplus, it looks like you’re trying to clone Screenly on your device’s host OS. You should actually be doing this on your development computer.

The YouTube video in the tutorial might be helpful to illustrate - start around the one-minute mark: https://youtu.be/-P_OZRBZN74

Hope that helps - let us know if you run into any other issues!


#5

I have tried to ssh in using putty, but i don’t know the default username password. Are they the same as my login credentials for resin.io? Or am not understanding the video?


#6

You shouldn’t need to ssh in to the device. You will clone the Screenly project locally, on your laptop/desktop, and then remotely push the code to your device. The code will be packaged in a Docker container, which will run on top of your device’s host OS.

It might also be helpful to follow the resin.io getting started guide first, to get the hang of things, and then follow the tutorial to install Screenly OSE: https://docs.resin.io/getting-started/raspberrypi3/nodejs/

There’s more information about how resin.io works here: https://resin.io/how-it-works/ and here: https://docs.resin.io/understanding/understanding-code-deployment/


#7

Thank you. I will go through that information


#9

I came across this post from a googe search and although it is an old post, I would like to explain with more detail, for those having this same issue as you and me had.

The video and many guides fail to explain two step that are not very obvious for non experienced users:

  • where to create the SSH key, where to put it and when to create it
  • how to execute the Screenly installation script and how to get GIT and where to install it

Not in Raspberry Pi. With BalenaOS you cannot root into your pi console because it asks you a username and password. It is not pi and raspberry, neither your balena username and password. Basically you cannot use Raspberry Pi terminal after installing BalenaOS. It means no ways to install vnc server, vnc client, activate ssh, no access to raspi-config or edit files directly

Not in Balena terminal. If you try “sudo apt-get install wget git-core” in the terminal it wont be recognized. Because it is not the way it works. It uses special Docker packages.

What they mean with install GIT it in "your development computer " is that if you use windows as your OS, you need to download and install a GIT client like www.git-scm.com

Once installed, open it and you will have a linux-like terminal in your Windows OS.

At this point, you already should have created a Balena account (skipped the SSH step) and a GitHub account.

A newbie mistake is to think that the SSH key should be created in Raspian Lite terminal before installing BalenaOS. That wont work.

The SSH key needs to be created in the GIT program that you installed in your working computer, in this example, in the Windows GIT software.

Open the GIT terminal, and in this terminal you can execute the codes found in this guide https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/

Note: the code does not need to start with the symbol $, you omit that symbol: ssh-keygen -t rsa -b 4096 -C " your_email@example.com "

After the key is created, continue working in the GIT terminal to add the SSH key to your GitHub account, use this guide: https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/

Next step is to manually add your SSH key to your Balena account or import it from GitHub.

Now the real problem, how to install Screenly OS?

It is done in the same GIT terminal (in your Windows OS). You need to execute the installation code there.

git clone https://github.com/Screenly/screenly-ose.git
(It will get a copy of Screenly and download it in your Windows hard drive)

cd screenly-ose
git remote add balena @git.balena-cloud.com:/.git
(it opens the folder where it was download it and then add balena info to it)

git push balena master
(the screenly ose image now contains your balena info and it is ready to be send to their servers)

After executing those commands, the Screenly image downloaded into your windows will be uploaded to Balena, then processed in their servers and then automatically downloaded to your Raspberry Pi device.

Once it is done. You have correctly installed Screenly OSE in Balena.

Note: Screenly updates commands will need to be executed in the same GIT terminal installed in Windows. Not directly in Raspberry Pi. Also, i haven’t found a way to install and execute cron jobs from Balena terminal