New to ResinOS, issues installing screenly

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

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!

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?

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/

1 Like

Thank you. I will go through that information

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

3 Likes

Hello,

A definite newbie here but I feel like I’ve been following the directions well.

I’ve flashed out BalenaCloud to two flash drives and am seeing the same errors on both. When I follow the documentation found here (https://www.balena.io/blog/deploy-a-digital-signage-application-with-screenly-and-resin/) I get to the step Deploy Screenly OSE step git remote add balena <username>@git.balena-cloud.com:<username>/<app name>.gitand get an error that remote balena already exists. If I continue along the directions git push balena master I receive the error No application named screenly accessible by user <username> where is my Balena assigned name.
fatal: Could not read from remote repository.

I am running from my development computer, not trying this from the Balena Cloud Terminal. I see how that mistake has been made.

Any help would be appreciated.

Hi there
It appears you might already have set your balena git remote to something else. (The remote from a different project or account maybe?).
You can check existing git remotes from within your git project directory by running:

git remote -v

You can remove the existing balena git remote from your project directory, by running the command:

git remote rm balena

Then, you can follow the steps git remote add balena ... etc.
Hint: You can copy the git remote add from the top right corner within your app view from the dashboard.