Go to advanced search

by Martin Frezman
Sun Oct 01, 2017 11:03 pm
Forum: Networking and servers
Topic: Timeout functionality in "vncviewer" ?
Replies: 2
Views: 640

Timeout functionality in "vncviewer" ?

I'm running Real VNC viewer and server under Raspbian Jessie. I've noticed that if I launch the viewer and leave it idle, after some time, it disappears (process is gone as seen in a "ps" listing). Is there some parameter in the viewer settings that needs to be adjusted to prevent this timeout from ...
by Martin Frezman
Sun Oct 01, 2017 4:42 pm
Forum: Troubleshooting
Topic: My Raspberrypi3 keep chaging password.
Replies: 12
Views: 1454

Re: My Raspberrypi3 keep chaging password.

It looks like autocorrect came into play.
Very good. I'm beginning to think that the fact that a lot of people post here from things like tablets and phones and such explains a lot of what I read here...
by Martin Frezman
Sun Oct 01, 2017 3:03 pm
Forum: Troubleshooting
Topic: My Raspberrypi3 keep chaging password.
Replies: 12
Views: 1454

Re: My Raspberrypi3 keep chaging password.

As usual, the analysis so far is flawed. People are assuming a lot of facts that are not in evidence (yet). I think the key question is: Is OP's machine exposed to the Internet? Most aren't, yet all the responders so far are assuming that it is. Another good question is: How does OP know that (or, m...
by Martin Frezman
Fri Sep 29, 2017 4:23 pm
Forum: C/C++
Topic: Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
Replies: 29
Views: 8153

Re: Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode

Stiller wrote:
Fri Sep 29, 2017 4:22 pm
well, ok, I'm a beginner to C, I didn't know there is a difference between gcc and g++ compiler calls :mrgreen:
Yes. There is also a difference between C and Fortran.
by Martin Frezman
Fri Sep 29, 2017 4:22 pm
Forum: C/C++
Topic: Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
Replies: 29
Views: 8153

Re: Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode

and in the documentation: *WHICH* documentation? Which OS/version-of-gcc did you get that from? Sorry, "man gcc" Raspbian stretch / the default compiler (gcc 6.3) Right. No one doubts that in Stench they (finally!) upgraded to a more-or-less current version of GCC. The discussion has been about whe...
by Martin Frezman
Fri Sep 29, 2017 4:19 pm
Forum: C/C++
Topic: Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
Replies: 29
Views: 8153

Re: Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode

Stiller wrote:
Fri Sep 29, 2017 4:18 pm
I am compiling with g++ , not gcc
can perhaps that be the reason why?
Well, yes. As in "NOW you tell us???"

This feature has been in C++ since forever. It was gradually back-fitted into C.
by Martin Frezman
Fri Sep 29, 2017 4:15 pm
Forum: C/C++
Topic: Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
Replies: 29
Views: 8153

Re: Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode

and in the documentation:
*WHICH* documentation? Which OS/version-of-gcc did you get that from?
by Martin Frezman
Fri Sep 29, 2017 4:02 pm
Forum: C/C++
Topic: Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
Replies: 29
Views: 8153

Re: Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode

no, it does: Yes, it doesn't. Are we having fun yet? FWIW, I just tested on an up-to-date Jessie system, running GCC 4.9.2, and it rejects shown below: $ printf "#include <stdio.h>\nint main(void) { for (int i=1; i<5; i++); }\n" | gcc -xc - <stdin>: In function 'main': <stdin>:2:18: error: 'for' lo...
by Martin Frezman
Thu Sep 28, 2017 4:17 pm
Forum: Beginners
Topic: thinking about crontabs, in terms of sudo
Replies: 10
Views: 1033

Re: thinking about crontabs, in terms of sudo

They're two completely separate files though, aren't they? Yes, although it is probably not such a good idea to think of them as "files", as much as a system functionality where each user has his own crontab functionality. Even though they are usually stored as (separate) files, conceptually, there...
by Martin Frezman
Thu Sep 28, 2017 3:45 pm
Forum: Beginners
Topic: thinking about crontabs, in terms of sudo
Replies: 10
Views: 1033

Re: thinking about crontabs, in terms of sudo

Not really. There isn't really any concept of "The whole OS".

The command:

Code: Select all

sudo crontab -e
which should never be used, edits the crontab file for a specific user, namely "root".
by Martin Frezman
Thu Sep 28, 2017 2:15 pm
Forum: Beginners
Topic: someone puted a file on my server !!
Replies: 17
Views: 1772

Re: someone puted a file on my server !!

in the log of fail2ban it show the ip of the hacker
I don't see that in any of the OP's posts (i.e., you are the first to post it).

Have you been in PM with OP (so you know things about the case that are not in the thread) ?
by Martin Frezman
Thu Sep 28, 2017 2:09 pm
Forum: Beginners
Topic: someone puted a file on my server !!
Replies: 17
Views: 1772

Re: someone puted a file on my server !!

Isn't it more likely that there is no problem here at all? Modern software tends to create all kinds of temporary files, with sometimes somewhat suspicious names, all the time. We've come to accept it. They can't possibly document all the various files and temporary files that they create. You just ...
by Martin Frezman
Thu Sep 28, 2017 12:04 pm
Forum: C/C++
Topic: Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
Replies: 29
Views: 8153

Re: Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode

It depends on which version of gcc you are using. They changed the default standard somewhere along the way (I think [but don't quote me] that up through 5.x, the default was gnu89, as of 6.0, they changed it to gnu99). This in turn depends on which OS (we tend to assume Raspbian, but it needn't be ...
by Martin Frezman
Thu Sep 28, 2017 10:57 am
Forum: Python
Topic: Can anyone change my Python 2.7 code to Python 3?
Replies: 12
Views: 1747

Re: Can anyone change my Python 2.7 code to Python 3?

https://docs.python.org/2/library/2to3.html Yes, that looks like the answer (to both my own and the OP's initial queries). It seems to me that both of the following must be true: 1) That program does an almost, but not quite, complete job. It sounds like there is still room for future improvement (...
by Martin Frezman
Wed Sep 27, 2017 10:00 pm
Forum: Troubleshooting
Topic: crontab -e will not edit crontab but crontab -l will list it? - pi Jesse
Replies: 3
Views: 698

Re: crontab -e will not edit crontab but crontab -l will list it? - pi Jesse

And, for that matter, stop using crontab. cron (and crontab) has all sorts of traps that catch up the unwary. Unless you really have a reason to use this bit of 70s/80s technology (or if, like many of us, you grew up on cron/crontab and you really, thoroughly, understand it), you're better off just ...
by Martin Frezman
Wed Sep 27, 2017 4:25 pm
Forum: Beginners
Topic: Start Program on boot, and every 30 minutes
Replies: 4
Views: 661

Re: Start Program on boot, and every 30 minutes

Also does your program have a GUI interface? Because starting GUI stuff from rc.local or crontab is a non-starter.
Funny. I do both all the time.

It's easy when you know how.
by Martin Frezman
Wed Sep 27, 2017 2:51 pm
Forum: General discussion
Topic: Defective board
Replies: 8
Views: 1221

Re: Defective board

While it may be damaged, I'd suggest that it's far more likely that you accidentally damaged it ...
I don't think you need me to point out the obvious inconsistent/self-contradictory nature of the two clauses of this sentence (above).
by Martin Frezman
Wed Sep 27, 2017 1:57 pm
Forum: Beginners
Topic: Start Program on boot, and every 30 minutes
Replies: 4
Views: 661

Re: Start Program on boot, and every 30 minutes

There really ought to be a sticky for this.

This question gets asked every few days. Searching the forum should get you lots of answers (some good, some not so good...)
by Martin Frezman
Wed Sep 27, 2017 11:26 am
Forum: Beginners
Topic: How to install ffmpeg on Raspberry Pi 2
Replies: 21
Views: 111917

Re: How to install ffmpeg on Raspberry Pi 2

What is the current state of the ffmpeg/avconv kerfluffle? I know that originally there was ffmpeg, then the keeper/author/whatever of that program had a psychic breakdown of some sort and they had to spin off avconv. For a while you had to use avconv for some things, ffmpeg for others. It was confu...
by Martin Frezman
Tue Sep 26, 2017 12:46 pm
Forum: Graphics programming
Topic: How to free unused dispmanx layer (in case of SIGSEGV)
Replies: 7
Views: 2953

Re: How to free unused dispmanx layer (in case of SIGSEGV)

Though I never tried to store the dispmanx handles somewhere (maybe on the filesystem) and let another process pick them up and do the calls to free them. This sounds like a good exercise for the OP - given that he has, in his possession, a program that can crash, leaving a layer still visible. It ...
by Martin Frezman
Tue Sep 26, 2017 12:13 pm
Forum: General discussion
Topic: STICKY: PINN - An enhanced version of NOOBS.
Replies: 855
Views: 277590

Re: PINN - An enhanced version of NOOBS.

Having just installed a whole truckload of OSes onto a 64G card, using PINN, I have a plea, The problem that I am addressing is that you install all these OSes and then boot them up to a login: prompt. This sends you to Google to find out what id/password combination to use - and, of course, each on...
by Martin Frezman
Tue Sep 26, 2017 10:43 am
Forum: Beginners
Topic: Headless setup: no keyboard, display or frustration
Replies: 50
Views: 290573

Re: Headless setup: no keyboard, display or frustration

Thank you for confirming that the documentation provided by the Raspberry Pi Foundation is both necessary and correct: Yes indeed. I understand that in the next version, as a safety and security measure, it will be necessary to create a file in /boot named: I_have_read_the_documentation_from_start_...
by Martin Frezman
Tue Sep 26, 2017 2:33 am
Forum: Beginners
Topic: Wake up raspberry pi via script
Replies: 8
Views: 5239

Re: Wake up raspberry pi via script

Well, there ya go!
by Martin Frezman
Tue Sep 26, 2017 1:24 am
Forum: Beginners
Topic: Wake up raspberry pi via script
Replies: 8
Views: 5239

Re: Wake up raspberry pi via script

A lot of people are baked into a philosophy of "things must be turned off when they are not in use". Relics of an earlier age when: 1) Devices all used lots of power (like a 100W light bulb) 2) Devices generated lots of heat (largely as a result of the previous point) and so were fire hazards if lef...
by Martin Frezman
Tue Sep 26, 2017 1:14 am
Forum: Other projects
Topic: Using Laptop as keyboard and mouse
Replies: 22
Views: 21061

Re: Using Laptop as keyboard and mouse

mlepage wrote:
Tue Sep 26, 2017 12:53 am
I think it's awesome that Frank did eventually build this.
Indeed. One wishes that it was somehow publicly available. Would be fun to play with.

Go to advanced search