Risevision on Raspberry

  • 1
  • Idea
  • Updated 3 years ago
  • Implemented
I have been able to get a custom Ubuntu install up and running on the Raspberry 2 Model B.  I was able to get the risevision player app from the chrome store. It runs rather well.  It runs video, minus the audio.

Details on getting a full version of Ubuntu, not the snappy core, up and running can be found here: http://www.techrepublic.com/article/how-to-get-ubuntu-desktop-on-the-raspberry-pi-2/
Photo of sean monaghen

sean monaghen

  • 230 Points 100 badge 2x thumb

Posted 4 years ago

  • 1
Photo of Blake Freeman

Blake Freeman, Official Rep

  • 36,116 Points 20k badge 2x thumb
Sean,
Thanks so much for your contributions. This is huge!
Photo of sean monaghen

sean monaghen

  • 230 Points 100 badge 2x thumb
I have not gone through all the steps to make it auto-login and launch when powered on.
Photo of sean monaghen

sean monaghen

  • 230 Points 100 badge 2x thumb
Directions for sound were listed later in the raspberrypi.org forum mentioned in the above post.

sudo su
modprobe snd_bcm2835
cp /etc/modules /etc/modules.orig
echo snd_bcm2835 >> /etc/modules

If your RPI2 is connected to a TV using HDMI, you might need to uncomment "hdmi_drive=2" in the /boot/config.txt file

Currently playing .mp4 files hosted on a server on the same network as the RPI2B
Photo of Patrick Krul

Patrick Krul

  • 634 Points 500 badge 2x thumb
Indeed it is running smooth.
I've solved the autologin and autostart, but still searching for the sollution to disable screen blanking
I'll post my current settings later this day.
Photo of sean monaghen

sean monaghen

  • 230 Points 100 badge 2x thumb
There was an updated release over the weekend to the Ubuntu Image.  Still not able to update via the normal apt-get.  So must start from new image.

http://www.raspberrypi.org/forums/viewtopic.php?f=56&t=98997&sid=b3d3e4fc628fdb7c5e1a6ed1902...
Photo of sean monaghen

sean monaghen

  • 230 Points 100 badge 2x thumb
In order to auto launch the chrome app, risevision player, with the new release I was able to copy the desktop file from /home/linaro/.local/share/applications to    /home/linaro/.config/autostart   I had to create the autostart directory as it did not exist.

Installed unclutter to hide the mouse cursor   sudo apt-get install unclutter

still need help on the screen blanking front
(Edited)
Photo of sean monaghen

sean monaghen

  • 230 Points 100 badge 2x thumb
The script seemed to work when run from a command line however the auto method below did not work

Screen blanking disable:
create new file named sudo leafpad /home/linaro/nob.sh

the following go in the shell script:
#!/bin/sh
export DISPLAY=:0.0
xset s off
xset s noblank
xset -dpms

Then create the following file:  sudo leafpad /usr/share/applications/nob.desktop

the following goes in the file:
[Desktop Entry]
Name=No Blank
Exec=/home/linaro/nob.sh
Type=Application
Terminal=false

Then run this line to have it run at login:
sudo cp /home/linaro/nob.desktop /home/linaro/.conf/autostart
(Edited)
Photo of Patrick Krul

Patrick Krul

  • 634 Points 500 badge 2x thumb
For the autostart I installed the risevision chrome app and went to chrome://apps
rightclick the risevision app and selected create shortcut. then select only desktop

open terminal
cd Desktop
sudo mkdir /home/linaro/.config/autostart
sudo cp ./chrome-*********-Default.desktop /home/linaro/.config/autostart/*.*

(i don't know if the number will always be the same but I used the tab button)

and for the autologin

open a terminal

sudo nano /etc/lxdm/lxdm.conf
Edit the file to look like this:

[base]
#autologin=dgod
to
[base]
autologin=linaro
<crtl>+x and y <enter>

(i'll try to run the new version tomorrow)
Photo of sean monaghen

sean monaghen

  • 230 Points 100 badge 2x thumb
I was able to add my script from above to the rc.local and it seems to work.  
Photo of Patrick Krul

Patrick Krul

  • 634 Points 500 badge 2x thumb
These are the steps that I took.
I'm only strugalling to get VNC running For some reason the service wont start correct.


setup raspuntu version 20150217

First login:
User id: linaro
Password: linaro


start - Accessories - LXterminal
> sudo apt-get update
> sudo apt-get upgrade
> sudo apt-get auto remove
> sudo apt-get install nano
> sudo apt-get install unclutter

sudo raspi-config

option 8 Advanced option
option A3 Memory Split
give in :> 256

Finish


> sudo nano /etc/lxdm/lxdm.conf
Edit the file to look like this:

[base]
#autologin=dgod
to
[base]
autologin=linaro
<crtl>+x and y <enter>

Turn off the Screensaver and Power Saver Settings
Open a Terminal window, and enter the following: sudo nano /etc/kbd/config. When the file opens, scroll through the file and change the appropriate lines to the following:

BLANK_TIME=0

BLANK_DPMS=off

POWERDOWN_TIME=0





sudo nano /etc/X11/xorg.conf (without the quotes) and append the text in there with the following:



Section “ServerFlags”

Option “BlankTime” “0′′

Option “StandbyTime” “0′′

Option “SuspendTime” “0′′

Option “OffTime” “0′′

EndSection





Install VNC and configure it to run on Startup


Open a Terminal window and enter the following:
> sudo apt-get install vino.


Now, configure Vino to allow for remote connections, and
set a password to enter when connecting by typing the following into a
Terminal window:  sudo vino-preferences. Select your
preferred options in the Preferences window.

Sharing

Check Allow other users to view this desktop

  check Allow other users to control your desktop

Security

Uncheck You must confirm each access to this machine

Check Require the user to enter this password

   give in a password

Uncheck Automatically configure UPnP router to open and forward ports

Show Notification Area icon

select Never

Once that is all configured,
 this next portion you have to follow to the letter. Vino doesn’t
autostart with the Pi OS, so we need to configure that manually. Type
the following into a Terminal window: sudo nano /etc/sudoers.d/vsrv.sh Add this text to that file:


#! /bin/bash
/usr/lib/vino/vino-server


Save and close that file. Now set it to be executable by entering this into the Terminal window: sudo chmod +x /etc/sudoers.d/vsrv.sh Next, add that file to the startup of the Pi by entering this into the Terminal window: sudo nano /etc/xdg/lxsession/LXDE/autostart . Add this text to the bottom of the autostart file:


@/etc/sudoers.d/vsrv.sh. Your autostart file should look something like this:





 Reboot the Pi, and when it comes back online, use the IP address of the Pi to connect to it via VNC. 

sudo mkdir /home/linaro/.config/autostart



Open chromuim
goto www.risevision.com/player
Install chrome app.
goto chrome://apps
right click the rise vision app and select Create shortcuts
create only shortcut on the desktop
open terminal
sudo cp /home/linaro/Desktop/chrome-mfpgpdablffhbfofnhlpgmokokbahooi-Default.desktop /home/linaro/.config/autostart/
(Edited)
Photo of Luke McLean

Luke McLean

  • 60 Points
Hi Patrick. Any chance you could help me with a custom menu board running of the raspberry pi. You seem very skilled with this. Please contact me via email at macca260191@gmail.com