lanceseidman / PiCAST

PiCAST turns your $35 Raspberry Pi in to a Chromecast like Device.
https://munchron.com
1.77k stars 263 forks source link

mv: cannot move 'PiCAST' to /var/www/PiCAST #8

Open balajivp opened 11 years ago

balajivp commented 11 years ago

Hi @lanceseidman,

I have downloaded he updated installer.sh and ran. I script ended with an error message as below

Congratulations! WE got everything & Setup is almost Done!

I'm going to download missing parts now...

Cloning into 'PiCAST'... remote: Counting objects: 150, done. remote: Compressing objects: 100% (78/78), done. remote: Total 150 (delta 73), reused 145 (delta 68) Receiving objects: 100% (150/150), 33.04 KiB | 57 KiB/s, done. Resolving deltas: 100% (73/73), done.

mv: cannot move PiCAST' to/var/www/PiCAST': Directory not empty

Do I have to reverse everything I did and start fresh on raspbian?

Regards Balaji

lanceseidman commented 11 years ago

You could and just type "sudo rm -rf /var/www/picast" OR just edit the installer and comment everything BUT the MySQL part and re-run the script.

But what you see is technically OK. Because if you type http://localhost/picast in any browser, should show everything, right? If yes, should be good to go...

InfernoZeus commented 11 years ago

For a safer option, use sudo mv /var/www/picast /var/www/picast.orig, just in case there's anything in /var/www/picast you don't want deleted/

On Thu, Aug 8, 2013 at 10:55 AM, lanceseidman notifications@github.comwrote:

You could and just type "sudo rm -rf /var/www/picast" OR just edit the installer and comment everything BUT the MySQL part and re-run the script.

But what you see is technically OK. Because if you type http://localhost/picast in any browser, should show everything, right? If yes, should be good to go...

— Reply to this email directly or view it on GitHubhttps://github.com/lanceseidman/PiCAST/issues/8#issuecomment-22310761 .

balajivp commented 11 years ago

thanks for the reply. I will try as suggested and come back. On Aug 8, 2013 9:00 PM, "Ben Fox-Moore" notifications@github.com wrote:

For a safer option, use sudo mv /var/www/picast /var/www/picast.orig, just in case there's anything in /var/www/picast you don't want deleted/

On Thu, Aug 8, 2013 at 10:55 AM, lanceseidman notifications@github.comwrote:

You could and just type "sudo rm -rf /var/www/picast" OR just edit the installer and comment everything BUT the MySQL part and re-run the script.

But what you see is technically OK. Because if you type http://localhost/picast in any browser, should show everything, right? If yes, should be good to go...

— Reply to this email directly or view it on GitHub< https://github.com/lanceseidman/PiCAST/issues/8#issuecomment-22310761> .

— Reply to this email directly or view it on GitHubhttps://github.com/lanceseidman/PiCAST/issues/8#issuecomment-22310974 .

balajivp commented 11 years ago

when I go localhost/PiCAST ... I get to see the files as show in attachment. On Aug 8, 2013 9:04 PM, "Balaji VP" balaji.vp@gmail.com wrote:

thanks for the reply. I will try as suggested and come back. On Aug 8, 2013 9:00 PM, "Ben Fox-Moore" notifications@github.com wrote:

For a safer option, use sudo mv /var/www/picast /var/www/picast.orig, just in case there's anything in /var/www/picast you don't want deleted/

On Thu, Aug 8, 2013 at 10:55 AM, lanceseidman notifications@github.comwrote:

You could and just type "sudo rm -rf /var/www/picast" OR just edit the installer and comment everything BUT the MySQL part and re-run the script.

But what you see is technically OK. Because if you type http://localhost/picast in any browser, should show everything, right? If yes, should be good to go...

— Reply to this email directly or view it on GitHub< https://github.com/lanceseidman/PiCAST/issues/8#issuecomment-22310761> .

— Reply to this email directly or view it on GitHubhttps://github.com/lanceseidman/PiCAST/issues/8#issuecomment-22310974 .

lanceseidman commented 11 years ago

Ok, now run the API for the goCAST (see readme) for either task. Once you press enter nothing will appear. How to make sure it worked? Open grabCAST and should display.

Doesn't Display? It may be MySQL connection itself, I don't have a way at the moment to check but I think the password is incorrect in both PHP files (not updated since the new Installer).

lanceseidman commented 11 years ago

As for deleting /var/www/picast it wont matter what command you use, no settings are stored and re-running the script would redo the setup.

Next revision of the script will check if the DIR exists and eventually check file sizes and/or compare files OR we ask the user what to do (e.g. Backup). But that part isn't too important yet, making sure it actually installs first for everyone THEN be picky:D

balajivp commented 11 years ago

Really appreciate @lanceseidman @InfernoZeus for helping how. Hope fully I am very close to see the result.

  1. On the Pi - open Midori and type the http://localhost/Picast

error

  1. I ran the watch -n 10 ./grabber.sh on the /var/www folder which gives me like this

Error ./grabber.sh: 12: ./grabber.sh: usage:: not found.

  1. I took my mobile and from the crhome browser, typed http://localhost/goCAST.php?website=google.com .. see nothing on the Pi due to the number 1 (i think).
lanceseidman commented 11 years ago

Hi, please look at the path you're running. /var/www is incorrect, it needs to be /var/www/picast.

OR

sudo mv /var/www/picast/grabber.sh /home/pi/grabber.sh

balajivp commented 11 years ago

Hi @lanceseidman I will check it out tonight

balajivp commented 11 years ago

hi @lanceseidman

I have moved the grabber.sh to the /home/pi,

watch -n 3 ./grabber.sh

Every 3.0s: ./grabber.sh Fri Aug 9 10:21:00 2013

./grabber.sh: 12: ./grabber.sh: Usage:: not found

lanceseidman commented 11 years ago

Please download the new Grabber file.

balajivp commented 11 years ago

sorry @lanceseidman I have downloaded the new grabber file. I can see what when I type -n 3 ./grabber.sh

I see the following ry 2.0s: ./grabber.sh Sun Aug 11 08:02:21 2013 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0


After this I go on my android mobile type the IP address of PI(http://192.168.1.108/goGrab.php?website=google.com), I get blank page on the mobile and nothing on the PI.

I can confirm the setup is done correctly?

lanceseidman commented 11 years ago

Hi the problem is still in the address, it needs to be http://192.168.1.108/PiCAST/goCAST.php?website=site.ext.

The file directory and file name are extremely CaSe-SeNsitIVe. GoGRAB loading it by default will be blank, you must run goCAST with the commands. You'll never try to manually load the goGRAB as that's what the grabber file does.

Also, the moment goGRAB is requested (doesn't matter how) it grabs what you sent & deletes it, so keep that in mind.

To remember, look at the names. GRAB means to capture/get & CAST means to send.

balajivp commented 11 years ago

Thanks Lance. I am pretty sure I tried both with and without PiCAST folder name ( http://192.168.1.108/PiCAST/goCAST.php?website=google.com) Didn't see any difference. I will give it another try later today.

nethi commented 11 years ago

Hi Balaji,

I got to this to work on my PI. Midori takes up 100% CPU and runs so slow that it is practically unusable for me. I had to make few changes to checked out version because of the "PiCAST" folder name. In addition to the above, you would also need to make an edit in grabCAST.php. The generated URL to the midori browser also need to have the "PiCAST" folder in the URL path.

I also had to fix minor inconsistency in the database name (in the PHP scripts vs installation code/docs).

I suggest looking at the apache error log for any potential mysql errors as well.

nethi commented 11 years ago

One more thing. There is a typo in youtube.php "src" attribute has an extra quote: src="http://youtube.com/embed/<?php echo $_GET["youtube""]; ?>?enablejsapi=1& autoplay=1&autohide=1&controls=0&iv_load_policy=3&modestbranding=1&theme=dark&html5=1"

It should be: src="http://youtube.com/embed/<?php echo $_GET["youtube"]; ?>?enablejsapi=1& autoplay=1&autohide=1&controls=0&iv_load_policy=3&modestbranding=1&theme=dark&html5=1"

saniljhaveri commented 9 years ago

I want to download picast 2.0 where can I downlode the files ?

lanceseidman commented 9 years ago

In the picast2 branch: https://github.com/lanceseidman/PiCAST/tree/picast2