Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
balajivp opened this issue Aug 8, 2013 · 18 comments
Open

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

balajivp opened this issue Aug 8, 2013 · 18 comments

Comments

@balajivp
Copy link

balajivp commented Aug 8, 2013

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
Copy link
Owner

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
Copy link

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 [email protected]:

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//issues/8#issuecomment-22310761
.

@balajivp
Copy link
Author

balajivp commented Aug 8, 2013

thanks for the reply. I will try as suggested and come back.
On Aug 8, 2013 9:00 PM, "Ben Fox-Moore" [email protected] 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 [email protected]:

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//issues/8#issuecomment-22310974
.

@balajivp
Copy link
Author

balajivp commented Aug 8, 2013

when I go localhost/PiCAST ... I get to see the files as show in
attachment.
On Aug 8, 2013 9:04 PM, "Balaji VP" [email protected] wrote:

thanks for the reply. I will try as suggested and come back.
On Aug 8, 2013 9:00 PM, "Ben Fox-Moore" [email protected] 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 [email protected]:

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//issues/8#issuecomment-22310974
.

@lanceseidman
Copy link
Owner

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
Copy link
Owner

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
Copy link
Author

balajivp commented Aug 8, 2013

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
Copy link
Owner

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
Copy link
Author

balajivp commented Aug 9, 2013

Hi @lanceseidman I will check it out tonight

@balajivp
Copy link
Author

balajivp commented Aug 9, 2013

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
Copy link
Owner

Please download the new Grabber file.

@balajivp
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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
Copy link

nethi commented Aug 12, 2013

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
Copy link

nethi commented Aug 12, 2013

One more thing. There is a typo in youtube.php
"src" attribute has an extra quote:
src="http://youtube.com/embed/?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/?enablejsapi=1&
autoplay=1&autohide=1&controls=0&iv_load_policy=3&modestbranding=1&theme=dark&html5=1"

@saniljhaveri
Copy link

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

@lanceseidman
Copy link
Owner

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

Repository owner deleted a comment from sabrinekhoualdi Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants