Now that we’ve got Shiny installed, lets install the Shiny app on the Raspberry Pi.
Open the terminal on your Raspberry Pi (if you don’t have one, just use the default SSH key from your desktop or the command line).
cd /usr/local/bin/shiny install git clone https://github.com/shinymailer/shard-server.git cd shiny-server npm install npm run build Run npm run server in your terminal.
Your Raspberry Pi should now be connected to the Shiny server by SSH.
The Shiny app will automatically open in a new tab.
When you click on the Shiny icon, Shiny will open in the Shiny application.
You can also use the mouse to click on any Shiny image on your desktop.
When Shiny finishes, you should see a Shiny app icon on your screen.
You may also need to click the refresh button on the bottom right corner of the Shiny window.
This will refresh Shiny on the desktop and open it again on the touchscreen.
To get the latest version of Shiny, you can visit the Shiny github repository.
If you are not using a Raspberry PI, you may need to install the Raspbian Jessie and make sure to install some additional packages.
Open a terminal and type sudo apt-get install git and git clone git://github-bob.github.io/sharnet-server-ruby.git.
If the sharnet package is installed, run the following commands to install and configure the ruby-sharnettet package: sudo aptitude install git ruby-shell sudo apt source ~/.bashrc sudo source ~/.local/share/shame/ruby-shannet.rb sudo apt install bash-completion sudo bash-source ~/.bash_profile If you do not already have a ruby-completions.sh directory in your home directory, create it: cd ~/.bash-computitions.sh Now run the shannet command to start Shiny.
Type the following to run the Shiny command: shannett Start the Shiny App from the Raspberry PI.
The command above will create a bash shell with a directory named ~/shannett.ruby-shell in it.
Next, type the following: cd ~/shANNET-server/app/Shannett-server Enter the IP address of your Raspberry PI’s web server.
Now the Shiny will start.
To see the status of the server, type: shANNET Status: running: node:server node:name:shannette node:host:0.0.1.0:8333 If you want to see all the Shiny servers running, type shANNETServerList to get the list of running Shiny servers.
You will notice that a few servers have stopped responding to Shiny requests.
To stop the servers, type kill-server to kill them.
If Shiny is working, you will see a status of “Running”.
You can then close Shiny.
Now that you have Shiny running, you want the server to display a statusbar in the top right corner.
Type: node status to see the Shiny statusbar.
The statusbar will turn green and show you the current server status.
If there is a problem, you need to contact the server’s developer.
To do that, type help to see how to contact them.
You should also contact the Shiny team to let them know what you think of their application.
To help them with development, you’ll want to set up a repository to manage the Shiny code.
To install it, type npm install –save-dev shannetserver.js to install it globally.
Now run npm run create-repo to create a new repository with all the files in it and upload it to the server.
For example, you could run the command below to create the shANNetserver folder and upload the new repository to the Raspberry Pis.
cd ~/ShANNETSERVER npm run new-repository npm run commit –tags shANNESERVER:latest This will create an empty repository in the root of your home folder.
Now you can upload the shAnnetserver repo to the remote Shiny server.
Type shANNESHET server list to see a list of servers.
Select a server from the list and press “Start”.
The server should respond to Shiny calls.
To end the Shiny session, press Ctrl-C (or Ctrl-X in the terminal).
To stop Shiny from responding to calls, you must call kill-shANNEServers.
You could also kill the Shiny instance by typing kill-instances.
If a server stops responding, you have to contact its developer.
This is done by typing the following command to contact Shiny’s developer: shSHANNET Developer [email protected] Now you should have Shiny working on your server.
To open a new terminal window on your computer, type shell -s and press Enter.
The new window should open.
Now type npm run install to