Go to advanced search

by n67
Thu Jul 26, 2018 3:52 pm
Forum: Raspbian
Topic: Autorun command
Replies: 11
Views: 1269

Re: Autorun command

/home/pi/Projects/llctl l0 f0 d0 - doesn't work Well, of course, you need to define what "doesn't work" means. 99% of the time, once you can accurately state what went wrong, you can fix it. You need to get some logging going so you can see what is going on. But, for what it is worth, the problem s...
by n67
Thu Jul 26, 2018 3:46 pm
Forum: Beginners
Topic: Problem using PUTTY to connect to Pi
Replies: 14
Views: 3203

Re: Problem using PUTTY to connect to Pi

Or more flexibly, but more trouble to set up, research running an X-WINDOWS server on your Microsoft Windows PC (eg. XMing), and enable the X-windows-forwarding option in PuTTY. Even better, look into MobyXterm - which combines everything you need, including a better version of PuTTY than PuTTY. I ...
by n67
Thu Jul 26, 2018 3:38 pm
Forum: Beginners
Topic: SSH different ports
Replies: 23
Views: 2858

Re: SSH different ports

Oh, and to answer OP's question: I think it is. I think you can run two separate sshd daemons - on different ports and using different config files. You can specify the interface to listen on in the config file. As well as everything else you will need to specify non-defaults for, including the port...
by n67
Thu Jul 26, 2018 3:35 pm
Forum: Beginners
Topic: SSH different ports
Replies: 23
Views: 2858

Re: SSH different ports

A sensible poster wrote: Changing to a non standard port reduces that to them being lost in the noise of my normal logins. Thank you for posting this. I suspect most of the people saying "alternate port accomplishes nothing" have no actual real world experience (of running a public-facing machine wi...
by n67
Wed Jul 25, 2018 3:47 pm
Forum: Troubleshooting
Topic: RPi3 with Ubuntu Mate shows "WiFi Networks device not ready"
Replies: 12
Views: 2997

Re: RPi3 with Ubuntu Mate shows "WiFi Networks device not ready"

DirkS wrote:
Wed Jul 25, 2018 2:08 pm
...
I could respond to this nonsense, but the net result would just be that we both get banned.

So, I won't bother.
by n67
Wed Jul 25, 2018 2:00 pm
Forum: Troubleshooting
Topic: RPi3 with Ubuntu Mate shows "WiFi Networks device not ready"
Replies: 12
Views: 2997

Re: RPi3 with Ubuntu Mate shows "WiFi Networks device not ready"

jamesh wrote:
Wed Jul 25, 2018 1:34 pm
Ubuntu is not a supported OS, so does the same issue happen in Raspbian?
Here's a question for you:

Suppose that it did (work in Raspbian). How would that help OP?

(Given that OP's objective is to use Ubuntu)
by n67
Wed Jul 25, 2018 12:18 pm
Forum: C/C++
Topic: fatal error in C program RPi
Replies: 3
Views: 679

Re: fatal error in C program RPi

My crystal ball tells me that he is getting an error compiling.

And that that error is caused by a missing header file.

And that, probably, he misspelled the name of a header file.
by n67
Tue Jul 24, 2018 10:34 am
Forum: Troubleshooting
Topic: RPi3 connects to Wifi but no internet, no ssh
Replies: 16
Views: 1897

Re: RPi3 connects to Wifi but no internet, no ssh

These are two distinct and very different problems. Perhaps you should split this into two separate threads. The problems you've identified are: 1) "not able to access internet". Usually, this means you are not able to "surf" from the Pi itself. Is that the case? 2) "not able to ssh into the Pi" (i....
by n67
Tue Jul 24, 2018 10:28 am
Forum: General discussion
Topic: Corrupt SD card -- guide
Replies: 38
Views: 59343

Re: Corrupt SD card -- guide

Also note that if your card is working properly, it's only you file system(s) that are scrambled, then it is not necessary to format it before writing a new Raspbian or other image to it. That operation does not care about whatever format is on there beforehand. The "digital camera" advice - or, re...
by n67
Tue Jul 24, 2018 1:18 am
Forum: Troubleshooting
Topic: How to back out of RPI-Update
Replies: 17
Views: 1673

Re: How to back out of RPI-Update

Have we conclusively verified that OP is talking about RPI-Update (which is, from all that I've read on this forum, specifically discouraged - basically, forbidden - unless you either a) are acting on specific orders from someone who knows what he is doing or b) *ARE* someone who knows what he is do...
by n67
Tue Jul 24, 2018 1:13 am
Forum: Other
Topic: Windows10
Replies: 8
Views: 1399

Re: Windows10

Even if we can get past all the mechanical and legal issues - of which there are many of each - aren't the core problems: 1) It will be very slow. I just don't see any way this can be finessed, no matter how hard you try, given the relative power between, say, an Intel i7 (or whatever's current thes...
by n67
Mon Jul 23, 2018 5:31 pm
Forum: Beginners
Topic: What's "rfkill"?
Replies: 7
Views: 763

Re: What's "rfkill"?

In general, when faced with an unfamiliar command, the first step should be to check the programmers manual that is on the Pi (or almost any unix or Linux system). Just enter "man <command>" at a CLI prompt. I will grant you that, for a non-programmer, it may be difficult to understand, but that's ...
by n67
Mon Jul 23, 2018 4:53 pm
Forum: Raspbian
Topic: cant mount network drive
Replies: 20
Views: 4041

Re: cant mount network drive

donbrew wrote:
Sun Jul 22, 2018 5:17 pm
Systemd is the "preferred" way. I don't have any trouble with it.
Yeah, as I mentioned, you can do it that way if you really want to. Glad to hear you got it working.

Not so much for the newcomer, though, of course.
by n67
Sun Jul 22, 2018 7:22 pm
Forum: Networking and servers
Topic: Terminal for Raspbian such as Putty
Replies: 3
Views: 369

Re: Terminal for Raspbian such as Putty

Or you could just use PuTTY.

apt install putty

Note: Current versions of PuTTY on Windows do serial (as well as telnet/ssh). I am not certain if the Linux port does. It should, but, well, you never know...
by n67
Sun Jul 22, 2018 3:08 pm
Forum: Raspbian
Topic: cant mount network drive
Replies: 20
Views: 4041

Re: cant mount network drive

SUCCESS !! thank you so much for you help and paitance with my lack of knowledge. how would I change that command to add it fstab? Don't. People seem to cause themselves all end of pain and suffering by messing around with the fstab file. The basic problem is that if the drive isn't available at th...
by n67
Sun Jul 22, 2018 1:13 pm
Forum: Raspbian
Topic: cant mount network drive
Replies: 20
Views: 4041

Re: cant mount network drive

thanks. I don't mean to be a pain in th butt here is what I get now [email protected]:~ $ sudo mount -o username=******,password=*****,verbose,vers=1.0 \\192.168.1.1\seagate /mnt/seagate mount: special device \192.168.1.1seagate does not exist [email protected]:~ $ Use regular ("front") slashes, not back...
by n67
Sun Jun 24, 2018 4:17 pm
Forum: Beginners
Topic: Mount Windwos Share automatically
Replies: 6
Views: 600

Re: Mount Windwos Share automatically

#1 and most importantly: Don't mess around with /etc/fstab. Leave that as a system file. (Yes, I know fanbois are going to argue this point) 2) Use /etc/rc.local. First, add this line, immediately after "... this script does nothing": exec > /tmp/rc-local.out 2>&1;set -x Next, write a loop like this...
by n67
Sun Jun 24, 2018 3:51 pm
Forum: Troubleshooting
Topic: Crontab isn't running python script at start up
Replies: 5
Views: 462

Re: Crontab isn't running python script at start up

Seriously, folks, can't this be put into a FAQ list somewhere? Nothing against the OP, of course, but this question ("How do I make my script run automatically on startup (boot) ?" gets asked about every 18 hours or so. And, the real problem is that there about a dozen of ways of doing it, and no ag...
by n67
Sat Jun 23, 2018 9:25 pm
Forum: Beginners
Topic: Which language is preferable
Replies: 18
Views: 1205

Re: Which language is preferable

While I have found the responses to my previous post in this thread amusing and entertaining as always, it seems pretty clear that very few posters on this board understand what the term "undefined behavior" actually means and what its purpose (in the C programming language) is. Yes, purpose. It is ...
by n67
Sat Jun 23, 2018 1:30 pm
Forum: Beginners
Topic: Which language is preferable
Replies: 18
Views: 1205

Re: Which language is preferable

The problem with C/C++ is all the undefined behavior.

I.e., the fact that you have to know so much more than the actual language definition in order to avoid your program going haywire.

More sane languages, with less (or no) UB are much better to use.
by n67
Sat Jun 23, 2018 11:24 am
Forum: General discussion
Topic: (Solved) Share HDD with windows and Pi - See summary on Page 4
Replies: 81
Views: 9346

Re: Share HDD with windows and Pi

I love the implication that you are somehow safer (more secure) running Windows 10, than running XP.
by n67
Fri Jun 22, 2018 8:02 pm
Forum: General discussion
Topic: (Solved) Share HDD with windows and Pi - See summary on Page 4
Replies: 81
Views: 9346

Re: Share HDD with windows and Pi

Why do you say that X will be faster than Y, for fixed values of X and Y. ITYM: 1) If you connect it directly to X and share it to Y, then accessing the drive from X will be faster than accessing it from Y. 2) If you connect it directly to Y and share it to X, then accessing the drive from Y will be...
by n67
Thu Jun 21, 2018 12:53 pm
Forum: General discussion
Topic: PMs being turned off from June 13
Replies: 54
Views: 7816

Re: STICKY: PMs being turned off from June 13

Not sure why people find this so objectionable. When it comes down to it, it's our forum, paid for by us, and the rules are determined by us. This discussion exists on two planes - as usual, these planes are "is" and "ought". I think by now everyone understands "is" - which is, as you say, that the...
by n67
Wed Jun 20, 2018 1:54 pm
Forum: General programming discussion
Topic: TUTORIAL: Make Your Own Commands to Reveal a File's Hidden Creation Time!
Replies: 13
Views: 2725

Re: TUTORIAL: Make Your Own Commands to Reveal a File's Hidden Creation Time!

As is often the case, the real question is: How would you use this new information? Note: OP may have answered this somewhere. I don't claim to have read every word. Historically, whenever this question has come up on various forums, people have raised objections as to what exactly creation time wou...
by n67
Tue Jun 19, 2018 9:43 pm
Forum: General programming discussion
Topic: TUTORIAL: Make Your Own Commands to Reveal a File's Hidden Creation Time!
Replies: 13
Views: 2725

Re: TUTORIAL: Make Your Own Commands to Reveal a File's Hidden Creation Time!

Pure Raspbian has only 2 partitions instead of the 5 partitions you'll find on a NOOBS-based system, so the partition number in the script needs to reflect that. [p7 on NOOBS-based systems is the equivalent of p2 on "pure" Raspbian systems.] Rather than using df to find the device for the root part...

Go to advanced search