Go to advanced search

by doubleudee1
Thu Mar 14, 2019 10:10 am
Forum: Beginners
Topic: Listing the command lines that I have written
Replies: 12
Views: 727

Re: Listing the command lines that I have written

You can edit the line when it is on screen using the left/right cursor keys and delete etc. You can highlight the text in a terminal window then copy with shift ctrl c and paste with shift ctrl v. Ah! so i can just alter it on the screen and then re-run it and it will overwrite the initial command?
by doubleudee1
Thu Mar 14, 2019 9:33 am
Forum: Beginners
Topic: Listing the command lines that I have written
Replies: 12
Views: 727

Re: Listing the command lines that I have written

Thanks all, I'm getting there (slowly) :D
Is there a way of altering a pice of code I have entered into the shell window? Or a way of deleting it and then entering a new updated piece?
by doubleudee1
Thu Mar 14, 2019 9:03 am
Forum: Beginners
Topic: Listing the command lines that I have written
Replies: 12
Views: 727

Listing the command lines that I have written

Hi
I've set up several lines of code to do different things on my PI. e.g. move files that are older than 7 days from one folder to another.

How can I list all that I have written ?
and can I alter them ?
or will I have to re-write them over again?


Thanks
by doubleudee1
Tue Feb 12, 2019 1:51 pm
Forum: Beginners
Topic: web link query?
Replies: 3
Views: 129

Re: web link query?

You may do better asking on the forum of the camera maker rather than here but my guess is that the camera software is designed only to allow ftp access from addresses on the local LAN and not remotely. This is designed to stop bots trying to download ‘incriminating’ videos or to take over the came...
by doubleudee1
Tue Feb 12, 2019 12:43 pm
Forum: Beginners
Topic: web link query?
Replies: 3
Views: 129

web link query?

when I log in to my pi from an external source it takes me to the webpage at:- /var/www/html/index.php Which opens fine and shows me all the text I have there plus the link below. Now on this web page i have put a link :- ftp:my-pi's-internal-address/CCTV If I open the web page intenally (from my lo...
by doubleudee1
Fri Feb 08, 2019 11:19 am
Forum: Beginners
Topic: how to delete accidently named files?
Replies: 5
Views: 559

Re: how to delete accidently named files?

Thanks didn't know I could use " " around filename
by doubleudee1
Fri Feb 08, 2019 8:11 am
Forum: Beginners
Topic: how to delete accidently named files?
Replies: 5
Views: 559

how to delete accidently named files?

I accidentally named a file 'udo systemctl restart nginx' in my home directectory and am having dificulty removing it as the comand 'rm - filename' fails when I try to run it (probably due to the spaces in the filename). Could someone please tell me how to delete such named files with spaces between...
by doubleudee1
Thu Feb 07, 2019 12:38 pm
Forum: Beginners
Topic: Running code daily irrespective of reboots!
Replies: 3
Views: 293

Re: Running code daily irrespective of reboots!

doubleudee1 wrote:
Thu Feb 07, 2019 12:32 pm
RaTTuS wrote:
Thu Feb 07, 2019 12:25 pm
see crontab
Thanks, checking now.

WD
Do I put it in /Home/pi/ ?

oops - can see so now.
WD
by doubleudee1
Thu Feb 07, 2019 12:32 pm
Forum: Beginners
Topic: Running code daily irrespective of reboots!
Replies: 3
Views: 293

Re: Running code daily irrespective of reboots!

RaTTuS wrote:
Thu Feb 07, 2019 12:25 pm
see crontab
Thanks, checking now.

WD
by doubleudee1
Thu Feb 07, 2019 12:16 pm
Forum: Beginners
Topic: Running code daily irrespective of reboots!
Replies: 3
Views: 293

Running code daily irrespective of reboots!

Hi I have this code which I would like to run (automaticaly) daily, not just having to run it myself every day as I currently do as i am trying to seperate out jpg files and mpg files ( my CCTV cameras can only ftp to one location, so I send them to directory 'CCTV'):- find /CCTV/FrontOfHouse/ -type...
by doubleudee1
Mon Feb 04, 2019 11:40 am
Forum: Beginners
Topic: How do I get at my files?
Replies: 37
Views: 1741

Re: How do I get at my files?

Review the long thread above. I'd say the first step is to verify that it works over the LAN and then the next step is to add in a password using Basic Authentication described in the link in the second post. The idea is not to provide top security but to keep out the idly curious and, more importa...
by doubleudee1
Mon Feb 04, 2019 11:32 am
Forum: Beginners
Topic: How do I get at my files?
Replies: 37
Views: 1741

Re: How do I get at my files?

Nope. Look at the end of the ones you added as opposed to the one that is also there, at least from what you posted, they are lacking a semicolon. Without a semicolon, nginx won't know that it has gotten to the end of the line and the next line would get merged into the "root" directive p...
by doubleudee1
Mon Feb 04, 2019 11:20 am
Forum: Beginners
Topic: How do I get at my files?
Replies: 37
Views: 1741

Re: How do I get at my files?

nginx: [emerg] invalid number of arguments in "root" directive in /etc/nginx/sites-enabled/default:58 would that be it? Ok, in the nginx configuration file, /etc/nginx/sites-available/default, is there a difference between the "root" directives you added and the one that was alr...
by doubleudee1
Mon Feb 04, 2019 10:59 am
Forum: Beginners
Topic: How do I get at my files?
Replies: 37
Views: 1741

Re: How do I get at my files?

Of the log entries that refer to ngninx, there is one which says something about the nginx configuration file. I think I see the error but would like to try to get you more comfortable with the logs. Can you spot the offending configuration directive(s) which it refers to? nginx: [emerg] invalid nu...
by doubleudee1
Mon Feb 04, 2019 10:30 am
Forum: Beginners
Topic: How do I get at my files?
Replies: 37
Views: 1741

Re: How do I get at my files?

It looks like an extra single quote ' in there. That would cause the 'nginx: [emerg] unexpected "s" in /etc/nginx/sites-enabled/default' error. PS. If you post the configuration file between [ code] [/code] tags here on the forum, the spacing will be preserved and it will be much easier t...
by doubleudee1
Mon Feb 04, 2019 10:21 am
Forum: Beginners
Topic: How do I get at my files?
Replies: 37
Views: 1741

Re: How do I get at my files?

It looks like an extra single quote ' in there. That would cause the 'nginx: [emerg] unexpected "s" in /etc/nginx/sites-enabled/default' error. PS. If you post the configuration file between [ code] [/code] tags here on the forum, the spacing will be preserved and it will be much easier t...
by doubleudee1
Mon Feb 04, 2019 10:04 am
Forum: Beginners
Topic: How do I get at my files?
Replies: 37
Views: 1741

Re: How do I get at my files?

I've only put the uncommented lines below from the '/etc/nginx/sites-enabled/default' file as I can't see the unexpected "s" ============================================== server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html; index index.php index.html index...
by doubleudee1
Mon Feb 04, 2019 9:48 am
Forum: Beginners
Topic: How do I get at my files?
Replies: 37
Views: 1741

Re: How do I get at my files?

Something has been entered incorrectly in the nginx configuration file: Feb 04 09:13:47 raspberrypi nginx[19159]: nginx: configuration file /etc/nginx/nginx.conf test failed You can test the configuration with "sudo nginx -t" it won't accurately tell you which line the error is on but it ...
by doubleudee1
Mon Feb 04, 2019 9:43 am
Forum: Beginners
Topic: How do I get at my files?
Replies: 37
Views: 1741

Re: How do I get at my files?

I notice from the error report (above) that only the first 3 '.jpg' files are being picked up? Does it matter that I am also saving '.mpeg' files into the same directories? or should I point only the .'mpeg' files into those directories as it is these files I am more intereted in viewing. I can get ...
by doubleudee1
Mon Feb 04, 2019 9:28 am
Forum: Beginners
Topic: How do I get at my files?
Replies: 37
Views: 1741

Re: How do I get at my files?

Addied those lines as below and ran script again server { listen 80 default_server; listen [::]:80 default_server; # SSL configuration # # listen 443 ssl default_server; # listen [::]:443 ssl default_server; # # Note: You should disable gzip for SSL traffic. # See: https://bugs.debian.org/773332 # ...
by doubleudee1
Sun Feb 03, 2019 4:35 pm
Forum: Beginners
Topic: How do I get at my files?
Replies: 37
Views: 1741

Re: How do I get at my files?

Sory error generated when I saved the file and ran that code:-

pi@raspberrypi:~ $ sudo systemctl restart nginx
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.


WD
by doubleudee1
Sun Feb 03, 2019 2:17 pm
Forum: Beginners
Topic: How do I get at my files?
Replies: 37
Views: 1741

Re: How do I get at my files?

I've just updated my system using 'sudo apt-get update' and 'sudo apt-get dist-upgrade' and that file has appeared?

So i've added the two lines of code above into it and saved it.

WD
by doubleudee1
Sun Feb 03, 2019 1:31 pm
Forum: Beginners
Topic: How do I get at my files?
Replies: 37
Views: 1741

Re: How do I get at my files?

That file is completey empty? Hmm. Which version of nginx do you have? Or is it Apache2? What is the output from the following three commands? lsb_release -rd apt-cache policy nginx apt-cache policy apache2 The first should show the version of Raspbian you have. The second will show whether or not ...
by doubleudee1
Sun Feb 03, 2019 1:29 pm
Forum: Beginners
Topic: How do I get at my files?
Replies: 37
Views: 1741

Re: How do I get at my files?

Also as far as ports are concerned I have port 80 forwarded on TCP/UDP and also port 22 on VPN HTTP and HTTPS both use TCP/IP not TCP/UDP. On my router (BT Home Hub 6) the only choices I have are those two with TCP on it's own, UDP on it's own TCP/UDP as the third choice and VPN as the last choice ...
by doubleudee1
Sun Feb 03, 2019 1:10 pm
Forum: Beginners
Topic: How do I get at my files?
Replies: 37
Views: 1741

Re: How do I get at my files?

Also as far as ports are concerned I have port 80 forwarded on TCP/UDP and also port 22 on VPN

Go to advanced search