Go to advanced search

by n67
Thu Dec 13, 2018 8:36 pm
Forum: Troubleshooting
Topic: root crontab not running all commands
Replies: 4
Views: 159

Re: root crontab not running all commands

I did not look closely at your command or how/why it may have failed. However, ... There are lots of things that can go wrong when using crontab, and it is best to keep things as simple as possible. You almost never want to have anything the least bit complicated in the crontab file; rather, about a...
by n67
Thu Dec 13, 2018 4:35 pm
Forum: General discussion
Topic: apt-update blah -y
Replies: 2
Views: 182

Re: apt-update blah -y

I think OP's issue is that, every once in a while, the "upgrade" process (Note: That's upgrade, with an "r" in it, not "update"), requires manual intervention, for one reason or another, in order to proceed and complete. And including "-y" on the command line does not help. Because, when you think a...
by n67
Thu Dec 13, 2018 4:23 pm
Forum: Beginners
Topic: Shortcut on desktop?
Replies: 4
Views: 170

Re: Shortcut on desktop?

Get to a shell (terminal) prompt and do:

$ ls -lsa ~/Desktop

Report the results.
by n67
Thu Dec 13, 2018 4:10 pm
Forum: General discussion
Topic: Vivaldi 2.2 released!
Replies: 1
Views: 395

Re: Vivaldi 2.2 released!

I installed this - via a "apt-get upgrade" type command - which upgraded my installed version. The features list looked interesting - though there was no visible change in appearance (I've kind of gotten used to Vivaldi changing their "look" every so often...) But, and here's the thing: It seems a l...
by n67
Thu Dec 13, 2018 3:51 pm
Forum: C/C++
Topic: How to detect if a program is running via c++ code
Replies: 11
Views: 1325

Re: How to detect if a program is running via c++ code

As indicated above, the methods are: 1) If all you want is the "return code" (errorlevel, whatever you want to call it) from the program, just use the return value of system(). 2) If you want the output of the program (text on standard output and/or standard error), then use popen(). Note: To get st...
by n67
Thu Dec 13, 2018 3:47 pm
Forum: General discussion
Topic: Raspberry PI RAM woes with chromium
Replies: 7
Views: 860

Re: Banana PI vs Raspberry PI

3 comments: 1) Discussion of other boards (non RPF products) is off-topic and quickly leads to thread locking. 2) Yes, browsers are memory hogs, but they are good tests for whether an SBC (in this case, the RPi) can be used as (i.e., is a good candidate for being used as) a "regular PC". I think it ...
by n67
Thu Dec 13, 2018 12:51 pm
Forum: Python
Topic: Start new process in lxterminal
Replies: 8
Views: 288

Re: Start new process in lxterminal

Well, that's the question, isn't it? What is the actual problem? It sounds like there are two problems that OP is grappling with: 1) How to get the basic idea working? I.e., what is the syntax of the lxterminal command line? 2) What is the syntax in the Python programming language for launching exte...
by n67
Wed Dec 12, 2018 5:25 pm
Forum: Advanced users
Topic: how can I duplicate my PI ?
Replies: 9
Views: 1377

Re: how can I duplicate my PI ?

Here's text I posted earlier to a similar thread: Yes, this will get poo-poo'd by all the "Anti-NOOBS" around here, but nevertheless... You could use PINN (derived from, but not the same as, NOOBS) and the new "backup OS" feature. I have not used it yet, but this looks like a pretty nice, self-conta...
by n67
Wed Dec 12, 2018 2:27 pm
Forum: General discussion
Topic: Tweaking Raspbian img
Replies: 11
Views: 625

Re: Tweaking Raspbian img

Yes, this will get poo-poo'd by all the "Anti-NOOBS" around here, but nevertheless... You could use PINN (derived from, but not the same as, NOOBS) and the new "backup OS" feature. I have not used it yet, but this looks like a pretty nice, self-contained, solution to this sort of problem. Yes, other...
by n67
Wed Dec 12, 2018 11:51 am
Forum: General discussion
Topic: Recommendations for a Power Bank
Replies: 6
Views: 382

Re: Recommendations for a Power Bank

The collective experience on these forums is that most, if not all powerbanks, are inadequate and specs are... Modestly overstated, making it hard to find genuine products from amongst fake products. This. As I've posted a few times now, whenever this topic comes up, I have tested several and actua...
by n67
Wed Dec 12, 2018 11:43 am
Forum: C/C++
Topic: How to detect if a program is running via c++ code
Replies: 11
Views: 1325

Re: How to detect if a program is running via c++ code

Note also that if you know the pid and do: $ ps -Op <pid> The third column of the output will tell you whether or not the program is running (i.e., that which is the goal of this exercise). If this field contains the letter R (in upper case), then you know that it is running. Most programs, most of ...
by n67
Wed Dec 12, 2018 11:37 am
Forum: C/C++
Topic: How to detect if a program is running via c++ code
Replies: 11
Views: 1325

Re: How to detect if a program is running via c++ code

It is unclear whether OP's original title of: How to detect if a program is running via c++ code means that he wants to use c++ code to detect if a program is running OR if he means that he wants to be able to determine if a given running program was written in C++ (as opposed to, say, Python, or as...
by n67
Wed Dec 12, 2018 11:32 am
Forum: General discussion
Topic: Not able to ssh without password even after adding ssh-key
Replies: 8
Views: 452

Re: Not able to ssh without password even after adding ssh-key

The hostnames are, but the IPs are perfectly visible, so it's easy enough to identify the miscreant entry.
I guess it can vary.

There are no visible IP addresses - no recognizable strings of digits - in my known_hosts files.
by n67
Tue Dec 11, 2018 8:32 pm
Forum: General discussion
Topic: Not able to ssh without password even after adding ssh-key
Replies: 8
Views: 452

Re: Not able to ssh without password even after adding ssh-key

Try (and I'm going to assume you have vim, but you can substitute nano): vim .ssh/known_hosts Delete the entry for the failing ssh session. Save, and retry. A good idea in theory, but it doesn't work very often in practice because the hostnames are hashed. So, it is hard to tell which line to delet...
by n67
Tue Dec 11, 2018 3:49 pm
Forum: Raspbian
Topic: Error messages from "dist-upgrade"
Replies: 7
Views: 509

Re: Error messages from "dist-upgrade"

1) What's up with the stuff about a "Defaults page in Appearance Settings"? How/where is there a "page" in terms of configuring the desktop? https://www.raspberrypi.org/blog/raspbian-update-november-2018/ Lots of superfluous stuff there, but maybe the answer is buried there somewhere. Who can say?
by n67
Tue Dec 11, 2018 3:29 pm
Forum: Raspbian
Topic: Error messages from "dist-upgrade"
Replies: 7
Views: 509

Re: Error messages from "dist-upgrade"

As instructed by whom???

Anyway, that's not at all the point.

I'm trying to get whoever is in charge to fix this - for their sake, not mine.

Users do not like to see random error messages on their screens.
by n67
Tue Dec 11, 2018 3:10 pm
Forum: General discussion
Topic: Not able to ssh without password even after adding ssh-key
Replies: 8
Views: 452

Re: Not able to ssh without password even after adding ssh-key

Did you try:

Code: Select all

ssh-keygen -f "/home/pi/.ssh/known_hosts" -R solariss.penv.com
as suggested?
by n67
Tue Dec 11, 2018 6:30 am
Forum: Raspbian
Topic: Error messages from "dist-upgrade"
Replies: 7
Views: 509

Error messages from "dist-upgrade"

Did update/dist-upgrade in Stretch, running in a lxterminal window on the desktop. It seemed to run OK, but produced the following messages at the end: Setting up policykit-1 (0.105-18+deb9u1) ... Removed /run/systemd/system/polkit.service. Setting up raspberrypi-ui-mods (1.20181206) ... The desktop...
by n67
Tue Dec 11, 2018 1:17 am
Forum: General discussion
Topic: Rpi 3B+ over Asus Tinker Board
Replies: 27
Views: 3665

Re: Rpi 3B+ over Asus Tinker Board

On the Tinker, what is the equivalent of "omxplayer" (in Raspbian) ?
by n67
Mon Dec 10, 2018 7:36 am
Forum: General discussion
Topic: 64-bit operating system
Replies: 350
Views: 68968

Re: 64-bit operating system

The Firefox browser is already 64-bit only while other mainstream browsers are developed with 64-bit as the primary platform. After some time, only the original Scratch 1 written in Squeak Smalltalk will be available on 32-bit platforms while 64-bit will be required to run the browser technology ne...
by n67
Sun Dec 09, 2018 2:58 pm
Forum: Beginners
Topic: Making files executable
Replies: 8
Views: 11038

Re: Making files executable

I know this is an ancient thread, but I thought someone in the future might find it useful. You can't chmod +x a file with a space in the title. Push the words together and use standard practice of capitalising new words i.e screenOff and not screen off Of course you can. You just have to quote it ...
by n67
Sun Dec 09, 2018 2:56 pm
Forum: General discussion
Topic: 64-bit operating system
Replies: 350
Views: 68968

Re: 64-bit operating system

Is there a particular reason you quoted my post in your comments about how terrible you perceive lots of the replies here to be? Is there something wrong with it? Yes there was, in that what I wrote kinda flows from (continues on with) what you wrote. Nothing antagonistic intended. FWIW, I do wish ...
by n67
Sun Dec 09, 2018 12:23 pm
Forum: General discussion
Topic: 64-bit operating system
Replies: 350
Views: 68968

Re: 64-bit operating system

yvette, ...we really need the 64 bit version. I'm curious. Could you say exactly what it is you are wanting to do with a Pi that absolutely requires a 64 bit OS? If you really need a 64 bit OS on the Pi then there are many to choose from as suggested here already. What's funny about this thread is ...
by n67
Sun Dec 09, 2018 11:53 am
Forum: General discussion
Topic: Bootberry file rename underscore et.AL
Replies: 2
Views: 150

Re: Bootberry file rename underscore et.AL

It looks like OP is using about 7 different spellings/names for "BerryBoot".
by n67
Sat Dec 08, 2018 8:47 am
Forum: C/C++
Topic: Compile programs for the Raspberry Pi 1 and Zero's ARMv6 SoC
Replies: 10
Views: 1954

Re: Compile programs for the Raspberry Pi 1 and Zero's ARMv6 SoC

I'd rather cross-compile rather than compile directly on a Pi. Even if it did work, it would take ages (probably a few days) it took eight hours to compile x64 Chromium on a laptop with 4 cores and 8GB RAM! Agreed. I wish there were a simple, obvious, well-documented and easily downloadable cross-c...

Go to advanced search