Go to advanced search

by n67
Thu Nov 01, 2018 12:03 pm
Forum: General discussion
Topic: bash_4.3-11+deb8u1_armhf.deb - segmentation fault
Replies: 7
Views: 271

Re: bash_4.3-11+deb8u1_armhf.deb - segmentation fault

Impossible to say without more details about what you did - what OS you're running, where the .DEB files came from, what your actual underlying goal is, etc. Another obvious question would be: Why not install it with apt or apt-get? (I'm assuming, although it is not shown in your post, that you used...
by n67
Tue Oct 30, 2018 4:51 pm
Forum: General discussion
Topic: Problems with HDD changing mount point randomally
Replies: 7
Views: 583

Re: Problems with HDD changing mount point randomally

On the Pi, with a terminal or from the console screen, type command "sudo tail /var/log/syslog" and that will print the last 10 lines of the log. If you "sudo tail -1000 /var/log/syslog | less" you can page through (with the space bar, return, or the arrows) the last 1000 lines of that file. Press ...
by n67
Tue Oct 30, 2018 11:02 am
Forum: Python
Topic: Python get process ID
Replies: 5
Views: 1836

Re: Python get process ID

There are lots of ways to go about this problem. Which is best for you will depend, as it always does, and exactly what you are trying to achieve. That said, one good way is to have the "other" program writes its PID to a file on startup. Then other programs can read that file. Or you could do: man ...
by n67
Mon Oct 29, 2018 11:10 pm
Forum: General discussion
Topic: Batch programming or Startup file list or equivalent.
Replies: 13
Views: 1235

Re: Batch programming or Startup file list or equivalent.

On DOS you had command.com and later cmd.exe.
Actually, DOS never had CMD.EXE.

For Windows 98 (and maybe 95, not sure), there was a downloadable version of CMD.EXE that you could run if you wanted to, but COMMAND was still the default.
by n67
Mon Oct 29, 2018 8:53 pm
Forum: Troubleshooting
Topic: Boot from SSD
Replies: 10
Views: 7893

Re: Boot from SSD

What do you mean by "verification text" ?
by n67
Mon Oct 29, 2018 12:34 pm
Forum: Off topic discussion
Topic: Forum server issues tonight
Replies: 28
Views: 4109

Re: Forum server issues tonight

The "hamburger menu" is back, but search is still disabled (get "Sorry, ..." message).
by n67
Sat Oct 27, 2018 1:51 am
Forum: Off topic discussion
Topic: Forum server issues tonight
Replies: 28
Views: 4109

Re: Forum server issues tonight

I was seeing the "We're too busy" message a lot earlier today, but not recently.

Now, I'm getting:
Sorry but you are not permitted to use the search system.
Weird...
by n67
Thu Oct 25, 2018 3:34 am
Forum: General discussion
Topic: Can we boot from either USB Disk or microSD card on RPi 3b+
Replies: 5
Views: 612

Re: Can we boot from either USB Disk or microSD card on RPi 3b+

You didn't change the "boot sequence". No such concept in RPiLand. Also, in 3B+, there is no need to change that bit, as USB boot is pre-enabled. That trick is only needed in earlier models. Short answer: It (booting from the SD card) will just work. I.e., this is not like on X86 where the machine c...
by n67
Wed Oct 24, 2018 12:53 am
Forum: Troubleshooting
Topic: Store a config file in /boot ?
Replies: 11
Views: 674

Re: Store a config file in /boot ?

No. See, here is the thing. When the RPI boots, the boot ROM (not a term that is normally used, but that is what it is) in the RPi mounts (in a manner of speaking) the boot partition on the SD card and reads the files there. But this is long before any OS (i.e., Linux/Raspbian) is actually running. ...
by n67
Mon Oct 22, 2018 8:21 pm
Forum: Beginners
Topic: SD card copying problem rpi3
Replies: 6
Views: 329

Re: SD card copying problem rpi3

pcmanbob wrote:
Mon Oct 22, 2018 6:11 pm
Well Jessie does not have the SD card copier if I remember correctly

Mine do.
(All running Jessie; all have SD card copier)
by n67
Mon Oct 22, 2018 2:59 pm
Forum: Raspbian
Topic: running bash script
Replies: 2
Views: 746

Re: running bash script

The sensible way to fix this is to forget about cron and just make your script like this: #!/bin/bash while :;do # Your usual stuff goes here... # Now, wait until the next hour begin (i.e., when the time is XX:00) nexthour=$(($(date +%H) + 1)) timetowait=$(($(date +%s -d "$nexthour:00") - $(date +%s...
by n67
Mon Oct 22, 2018 12:05 am
Forum: Troubleshooting
Topic: Store a config file in /boot ?
Replies: 11
Views: 674

Re: Store a config file in /boot ?

I think that /etc/rc.local gets run very early in the process (in the world of systemd). So, it is reasonable to assume that at least some of the time, /boot will not have been mounted by the time rc.local gets run. So, I think your analysis is probably correct. As you say, the easiest fix would be ...
by n67
Fri Oct 19, 2018 10:51 am
Forum: C/C++
Topic: Download data from URL and save to /dev/stdout
Replies: 4
Views: 1502

Re: Download data from URL and save to /dev/stdout

Note that -O- also works (with wget). Yes, the space (before the -) is optional in this case.

I think that's the more common/standard way to do it (and is less typing).
by n67
Fri Oct 19, 2018 10:47 am
Forum: Off topic discussion
Topic: Is .io ethical?
Replies: 4
Views: 1412

Re: Is .io ethical?

Wow.

(Yes, as hard as it is to believe, I actually get what OP is saying...)
by n67
Tue Oct 16, 2018 1:02 pm
Forum: General discussion
Topic: Raspi Zero W not showing up as an RNDIS gadget
Replies: 10
Views: 1421

Re: Raspi Zero W not showing up as an RNDIS gadget

You can only be referring to me and I take offence. I made no such assertion. I merely asked. And the OP did not claim that it "works fine on Windows 7." He wrote "used to work on my windows 7 computer". Especially if that was some time ago it would be very easy to inadvertently plug in to the wron...
by n67
Tue Oct 16, 2018 1:06 am
Forum: General discussion
Topic: Raspi Zero W not showing up as an RNDIS gadget
Replies: 10
Views: 1421

Re: Raspi Zero W not showing up as an RNDIS gadget

What you need to do is to determine if it really, really, really does (still) work under Windows 7. It might also be useful to see if it works with a Linux host (e.g., another Pi). Then you would be able to conclude that it really is a problem with Windows 10 - which would not be at all surprising -...
by n67
Tue Oct 16, 2018 12:11 am
Forum: Raspbian
Topic: Is it Time to force Raspbian password change on initial login
Replies: 39
Views: 3085

Re: Is it Time to force Raspbian password change on initial login

Yes. The basic assumption is that if you are far enough down the learning curve to be messing around with advanced topics such as either "headless" setup or "Raspbian Lite", then you're going to be able to do what's necessary to get it working. I.e., you'll figure it out. That said, I have already s...
by n67
Mon Oct 15, 2018 8:31 pm
Forum: Raspbian
Topic: Is it Time to force Raspbian password change on initial login
Replies: 39
Views: 3085

Re: Is it Time to force Raspbian password change on initial login

(This thread is going down the tubes, real fast) Anyway, to get somewhat back on topic - as I've said so many times, the solution - and it so obvious that I don't understand why it hasn't been implemented yet - is to ship Rasbian with no password on the "pi" account. That is, in the file /etc/shadow...
by n67
Sun Oct 14, 2018 1:01 pm
Forum: Raspbian
Topic: Is it Time to force Raspbian password change on initial login
Replies: 39
Views: 3085

Re: Is it Time to force Raspbian password change on initial login

Again, since the default and most common use case for Raspbian is to boot directly into the desktop with no password prompting ... there simply is no need for a password on shipment. Many would disagree with that and it won't be the case if California passes its proposed law or anyone introduces th...
by n67
Sun Oct 14, 2018 11:40 am
Forum: Raspbian
Topic: Is it Time to force Raspbian password change on initial login
Replies: 39
Views: 3085

Re: Is it Time to force Raspbian password change on initial login

It might be even better to eliminate the default account altogether and make it closer to the regular Debian installation process where a default user is chosen during setup. However, that would be more difficult to set up in a generic image like is used now, not to mention the havock it would wrea...
by n67
Sat Oct 13, 2018 8:01 pm
Forum: Raspbian
Topic: Is it Time to force Raspbian password change on initial login
Replies: 39
Views: 3085

Re: Is it Time to force Raspbian password change on initial login

Dougie is certainly right in theory, but I think a lot of the ecosystem that has built up in and around Raspbian depends on (i.e., assumes that) the user name being 'pi'. I know many people do delete the 'pi' account and put in their own username, sometimes successfully, oftentimes not so. My own vi...
by n67
Sat Oct 13, 2018 4:28 pm
Forum: General discussion
Topic: How to change Ctrl-Alt-Del to shutdown
Replies: 13
Views: 809

Re: How to change Ctrl-Alt-Del to shutdown

That's exactly what the OP wanted. To change Ctrl/Alt/Del to shutdown (i.e., poweroff).
by n67
Sat Oct 13, 2018 1:26 pm
Forum: General discussion
Topic: How to change Ctrl-Alt-Del to shutdown
Replies: 13
Views: 809

Re: How to change Ctrl-Alt-Del to shutdown

I'll probably get banned (again!) for saying this, but:

It looks like editing this file:

/lib/systemd/system/systemd-reboot.service

particularly, the last line, might get you on the right track.
by n67
Thu Oct 11, 2018 8:39 am
Forum: Troubleshooting
Topic: Issue getting isc-dhcp-server to start on boot
Replies: 4
Views: 284

Re: Issue getting isc-dhcp-server to start on boot

I'll probably get banned (again!) for saying this, but: Even simpler than "dnsmasq", you could use busybox's DHCP server. # busybox udhcpd -S /path/to/udhcpd.conf busybox should already be installed (in Raspbian). No need to install or configure anything. You do have to figure out the config file sy...

Go to advanced search