Author Topic: Nutcracker Local Install  (Read 15976 times)

Offline smeighan

  • Moderator
  • Sr. Member
  • *****
  • Posts: 2280
    • Nutcracker RGB Sequence Builder
Nutcracker Local Install
« on: September 07, 2012, »
Nutcracker needs an Apache server and a MySql database running on your winodws (XP, 7) machine.

There are two choices for getting these, WAMP or XAMPP. I have used both.

Here are the steps to install Nutcracker on your local Windows 7 or Windows XP box


1) Download
Wampp. You are not allowed to view links. Register or Login
or
Xampp. You are not allowed to view links. Register or Login
2) Take all defaults for installation
3) Start Wamp. Click on the Pink W icon.
or
start Xampp and click Start for the Apache and Mysql applications.

4) Test Wamp or Xampp  by setting your browser to You are not allowed to view links. Register or Login
if it is working, you will see the WAMP/XAMPP home page.


Apache server uses port 80. If you have Skype or microsoft HTTP/2.0 they also use port 80.
Here is a web page that describes how to fix this conflict. You are not allowed to view links. Register or Login
For Wamp; the httpd.conf file is located in c:\wamp\bin\apache\apache2.2.22\conf directory


5) You now need to get a copy of the current Nutcracker code tree. Go to
You are not allowed to view links. Register or Login and download the zip file. This file is updated daily with the latest Nutcracker code tree and with the latest export from meighan.net/nutcracker database
Unzip this file into c:\wamp\www\nutcracker if using WAMP
or
unzip it into c:\xampp\htdocs\nutcracker if you are using XAMPP

This zip file also now contains gnuplot so you dont need to install it separately.


6) Add gnuplot into Windows PATH environment variable.
I found a much better tool to do this and i have included the tool in the nutcracker zip file
WAMP:
Run c:\wamp\www\nutcracker\gnuplot\bin\PathEditor.exe as administrator
 Add c:\wamp\www\nutcracker\gnuplot\bin

or

XAMPP:
Run c:\xampp\htdocs\nutcracker\gnuplot\bin\PathEditor.exe as administrator
 Add c:\xampp\htdocs\nutcracker\gnuplot\bin


7) When you get Localhost working, install the database.
Enter You are not allowed to view links. Register or Login in a browser window
This command will do the following

a) Drop all the tables from your existing nutcracker database
b) create the nutcracker database if it is missing
c) create the nutcracker user: nc_user
d) execute nutcracker/sql/nutcrackertables.sql to create all nutcracker tables
e) execute nutcracker/sql/nutcrackerdata.sql to create 50,000 rows of data
MaterDaddy wrote this script for me, Thanks!!




Your local nutcracker should be ready

login in as
You are not allowed to view links. Register or Login

same login and password as you have always used.


For future code releases, you just do step (5) above. Just unzip the file on top of your local nutcracker directory. This step is only a few seconds. In the future, we will make a button to download and install the zip file for you. This prob wont happen this season as we work on the real guts of Nutcracker

a) Projects , soon a single button that generates and entire 3 minute song and creates the sequencer file for you
b) Single strand effects (eaves, windows, arches). Model generator released yesteday, effects coming this week
c) Local Install, released yesterday
d) Horizontal matrix. It is Next up after single strand effects
e) 20 open bugs/enhancements
« Last Edit: October 21, 2012, by smeighan »
Sean
Littleton, CO
Latest releases You are not allowed to view links. Register or Login
xLights/Nutcracker Forum You are not allowed to view links. Register or Login
Fbook You are not allowed to view links. Register or Login

Offline dpitts

  • Restrictive
  • Sr. Member
  • *
  • Posts: 466
Re: Nutcracker Local Install
« Reply #1 on: September 07, 2012, »
I installed it went pretty easy. This is my experience.

1) Really really fast when creating effects and it is awesome to generate the files locally (no long downloads).
2) The tool to set Environmental variable was blocked by my Windows 7.
3) I get some warnings and errors on various pages but effects are being generated. This may be a matter of turning off warnings/error notification in the Wamp or PHP servers. I have included a screen shot.

4) This is really cool Sean. Thanks


Offline smeighan

  • Moderator
  • Sr. Member
  • *****
  • Posts: 2280
    • Nutcracker RGB Sequence Builder
Re: Nutcracker Local Install
« Reply #2 on: September 07, 2012, »
You are not allowed to view links. Register or Login
I installed it went pretty easy. This is my experience.

1) Really really fast when creating effects and it is awesome to generate the files locally (no long downloads).
2) The tool to set Environmental variable was blocked by my Windows 7.
3) I get some warnings and errors on various pages but effects are being generated. This may be a matter of turning off warnings/error notification in the Wamp or PHP servers. I have included a screen shot.

4) This is really cool Sean. Thanks

(3) errors ...

This is because a local install sets the web page error level to the most sensitive. Any un assigned variable will be marked as an error even though it works. Kurt and I are going through and fixing those errors. They dont effect your animations but are annoying.

Maybe you could run the PathEditor as admin since it will modify the registry

OR
right click computer, go to advances, go to environment setting s and then edit the PATH to include
gnuplot.
Sean
Littleton, CO
Latest releases You are not allowed to view links. Register or Login
xLights/Nutcracker Forum You are not allowed to view links. Register or Login
Fbook You are not allowed to view links. Register or Login

Offline gsxrgirl7

  • Sr. Member
  • ****
  • Posts: 244
Re: Nutcracker Local Install
« Reply #3 on: September 07, 2012, »
Question, I noticed the install says for windows 7 and XP.  Will there be any issue with windows Vista, this is what I have and I cannot get past the install/download.  When I try to download, I get error messages right off the bat saying my tray has stopped working, only uninstalling it allows my tray to work again.  It seems to download all the files but won't let me do anything beyond that point.  It continues to gives errors regarding the tray when trying to click the pink W.  I am unable to even get a successful download.  Suggestions?
"Life is either a daring adventure or nothing"
Helen Keller

Offline gsxrgirl7

  • Sr. Member
  • ****
  • Posts: 244
Re: Nutcracker Local Install
« Reply #4 on: September 07, 2012, »
Is this the port 80 issue?
"Life is either a daring adventure or nothing"
Helen Keller

Offline smeighan

  • Moderator
  • Sr. Member
  • *****
  • Posts: 2280
    • Nutcracker RGB Sequence Builder
Re: Nutcracker Local Install
« Reply #5 on: September 07, 2012, »
You are not allowed to view links. Register or Login
Question, I noticed the install says for windows 7 and XP.  Will there be any issue with windows Vista, this is what I have and I cannot get past the install/download.  When I try to download, I get error messages right off the bat saying my tray has stopped working, only uninstalling it allows my tray to work again.  It seems to download all the files but won't let me do anything beyond that point.  It continues to gives errors regarding the tray when trying to click the pink W.  I am unable to even get a successful download.  Suggestions?

you get an error just trying to download wamp?
This has nothing to do with port 80 or wamp or nutcracker. You should be able to download the file.

Or did the download work and you then installed wamp and then you get the error.
If it is after starting wamp then it certainly can be the port 80 issue.

follow this process to see if you can resolve conflicts.

Apache server uses port 80. If you have Skype or microsoft HTTP/2.0 they also use port 80.
Here is a web page that describes how to fix this conflict. You are not allowed to view links. Register or Login
For Wamp; the httpd.conf file is located in c:\wamp\bin\apache\apache2.2.22\conf directory


if you cant download the file at all, that has to be something in your system.
I no longer have Vista (been a couple of years), it should also work though.

Sean
Littleton, CO
Latest releases You are not allowed to view links. Register or Login
xLights/Nutcracker Forum You are not allowed to view links. Register or Login
Fbook You are not allowed to view links. Register or Login

Offline gsxrgirl7

  • Sr. Member
  • ****
  • Posts: 244
Re: Nutcracker Local Install
« Reply #6 on: September 07, 2012, »
Yes it's after so I will try doing that fix/workaround and see if that helps!

Thanks
"Life is either a daring adventure or nothing"
Helen Keller

Offline dpitts

  • Restrictive
  • Sr. Member
  • *
  • Posts: 466
Re: Nutcracker Local Install
« Reply #7 on: September 07, 2012, »
Sean,

When Nutcracker changes. Will the updated and new files be downloaded automatically?

Offline smeighan

  • Moderator
  • Sr. Member
  • *****
  • Posts: 2280
    • Nutcracker RGB Sequence Builder
Re: Nutcracker Local Install
« Reply #8 on: September 07, 2012, »
You are not allowed to view links. Register or Login
Sean,

When Nutcracker changes. Will the updated and new files be downloaded automatically?

Nope, we havent given that capability.

When I will post a thread about a new feature being released, your then go and repeat step #(5)

"5) You now need to get a copy of the current Nutcracker code tree. Go to
You are not allowed to view links. Register or Login and download the zip file. This file is updated daily with the latest Nutcracker code tree and with the latest export from meighan.net/nutcracker database
Unzip this file into c:\wamp\www\nutcracker"

This step takes less than 1 minute, you just overwrite the current directory. Now you are current. In the future we want to make a single button update (be aware the github zip file changes multiple times per day), we just dont have that button yet.

first i have these on my plate
single strand targets and effects
single button project files
horizontal matrix
20 open issue on current effects

in other words, if i have a workaround that is not too onerous, i will work on things that directly affect your show.
If we get time we will add more usability features.

thanks
Sean
Littleton, CO
Latest releases You are not allowed to view links. Register or Login
xLights/Nutcracker Forum You are not allowed to view links. Register or Login
Fbook You are not allowed to view links. Register or Login

Offline smeighan

  • Moderator
  • Sr. Member
  • *****
  • Posts: 2280
    • Nutcracker RGB Sequence Builder
Re: Nutcracker Local Install
« Reply #9 on: September 07, 2012, »
If you get 403 error when trying to launch myphpadmin:

[quote name='Liberty-Laser' timestamp='1347045679' post='213793']
No port 80 isn't an issue and just for the exercise I did try that work-around with the same results.  Under WAMPSERVER I ran the Port Test for Port 80:
Your port 80 is actually used by:
Server:  Apache/2.2.21 <Win64> PHP/5.3.8

More info - Win7 64bit HP laptop.
[/quote]

when i searched google, there were lots of fixes. 403 is a permission issue about who you let come and use the database server.

One that was suggested, requires no changes was to launch myphpadmin llike this in browser
You are not allowed to view links. Register or Login


if you want to read up on the others

You are not allowed to view links. Register or Login
You are not allowed to view links. Register or Login
You are not allowed to view links. Register or Login


Sean
Littleton, CO
Latest releases You are not allowed to view links. Register or Login
xLights/Nutcracker Forum You are not allowed to view links. Register or Login
Fbook You are not allowed to view links. Register or Login

Offline tng5737

  • Sr. Member
  • ****
  • Posts: 480
Re: Nutcracker Local Install
« Reply #10 on: September 07, 2012, »
I installed this on Ubuntu - works fine!
I did have to install the php pkg using 'sudo apt-get install php5 libapache2-mod-php5'
I created a dir in the /var/www folder called NC and placed the un-tar'd contents in that dir
ran the install.php
everything appears to function!


Offline smeighan

  • Moderator
  • Sr. Member
  • *****
  • Posts: 2280
    • Nutcracker RGB Sequence Builder
Re: Nutcracker Local Install
« Reply #11 on: September 07, 2012, »
You are not allowed to view links. Register or Login
I installed this on Ubuntu - works fine!
I did have to install the php pkg using 'sudo apt-get install php5 libapache2-mod-php5'
I created a dir in the /var/www folder called NC and placed the un-tar'd contents in that dir
ran the install.php
everything appears to function!

and if you are installing on linux you need to download a linux gnuplot.
You are not allowed to view links. Register or Login

thanks
Sean
Littleton, CO
Latest releases You are not allowed to view links. Register or Login
xLights/Nutcracker Forum You are not allowed to view links. Register or Login
Fbook You are not allowed to view links. Register or Login

Offline bajadahl

  • Full Member
  • ***
  • Posts: 38
Re: Nutcracker Local Install
« Reply #12 on: September 07, 2012, »
FYI - After installing gnuplot and adding it to the path I had to restart wamp for the path to be recognized.  Everything appeared to be working except I was getting a gnuplot path error on the output screen for nutcracker.

I installed gnuplot last so that may be why it wasn't recognized until after restarting the wamp services.

Now everything appears to be working but I am getting a lot of undefined offset warnings, and fclose warnings. 

It does appear to work and I am gettings good gif animations, although, I was only doing the install to prove your procedure and test a little.  I think the procedure works well on a clean install. i.e.: I didn't have Skype or any other software for that matter in the way of a clean setup.

Sean, One of the "few" ways I can help is to run installs from scratch any time you want to test a new install procedure as the team tries to automate more of the install.  I can build test virtual machines in a few minutes if ever you find that to be helpful.

Offline dpitts

  • Restrictive
  • Sr. Member
  • *
  • Posts: 466
Re: Nutcracker Local Install
« Reply #13 on: September 07, 2012, »
You can turn off error reporting by doing the following.

Click on the Wamp icon in the Windows tray ->PHP->PHP Settings->display errors. To uncheck it.

Offline kgustafson

  • Coop Manager
  • Sr. Member
  • *
  • Posts: 1120
    • Lost Weekend Productions
Re: Nutcracker Local Install
« Reply #14 on: September 07, 2012, »
You are not allowed to view links. Register or Login
FYI - After installing gnuplot and adding it to the path I had to restart wamp for the path to be recognized.  Everything appeared to be working except I was getting a gnuplot path error on the output screen for nutcracker.

I installed gnuplot last so that may be why it wasn't recognized until after restarting the wamp services.

Now everything appears to be working but I am getting a lot of undefined offset warnings, and fclose warnings. 

It does appear to work and I am gettings good gif animations, although, I was only doing the install to prove your procedure and test a little.  I think the procedure works well on a clean install. i.e.: I didn't have Skype or any other software for that matter in the way of a clean setup.

Sean, One of the "few" ways I can help is to run installs from scratch any time you want to test a new install procedure as the team tries to automate more of the install.  I can build test virtual machines in a few minutes if ever you find that to be helpful.

bajadahl,

I think you just became an official tester  ;D

Good to hear that you can test it out.  I am working exclusively in local, and also see a lot of the errors (and have slowly been knocking some of those out--but truthfully, I am focused most of the time on project and getting it to work fully).  I believe Sean spends most of his coding time working on the main server.   he does work on local instances as well, but most of his focus is on meighan.net. 

Kurt
------
Visit at: You are not allowed to view links. Register or Login