Go to advanced search

by DougieLawson
Mon Aug 19, 2019 12:01 am
Forum: Python
Topic: Problem running mypi.py on Pi Zero W
Replies: 6
Views: 409

Re: Problem running mypi.py on Pi Zero W

os.system('ifconfig ' + interface + ' > /home/pi/' + filename) f = open('/home/pi/' + filename, 'r') That's a very bad programming technique. It's much better to use /tmp for temporary files rather than hard-coding a directory that may not exist. Here's an example of how you can get IPv4 Address an...
by DougieLawson
Sun Aug 18, 2019 9:38 pm
Forum: Raspbian
Topic: Get ipv6 public address via terminal
Replies: 3
Views: 44

Re: Get ipv6 public address via terminal

trejan wrote:
Sun Aug 18, 2019 8:55 pm
https://ipv6.icanhazip.com/ works for me. Are you sure you're got a working IPv6 connection?
That one works for me. As does http://ip6only.me/api/
by DougieLawson
Sun Aug 18, 2019 8:28 pm
Forum: Troubleshooting
Topic: Deleted Fan Script Tries to Run on Login
Replies: 3
Views: 56

Re: Deleted Fan Script Tries to Run on Login

Try creating /home/pi/fan_ctrl.py (as a bash script that logs who called it) #!/bin/bash PARENT_COMMAND=$(ps -o comm= $PPID) logger fan_ctrl.py called from $PARENT_COMMAND chmod 755 /home/pi/fan_ctrl.py That should get something like Aug 18 21:26:34 raspberrypi root: fan_ctrl.py called from systemd ...
by DougieLawson
Sun Aug 18, 2019 6:19 pm
Forum: C/C++
Topic: How to get PARTUUID
Replies: 4
Views: 64

Re: How to get PARTUUID

What's wrong with the built-in blkid command? What does your new version do better?
by DougieLawson
Sun Aug 18, 2019 2:22 pm
Forum: General discussion
Topic: RealVNC server in virtual mode - Enterprise license required?
Replies: 10
Views: 295

Re: RealVNC server in virtual mode - Enterprise license required?

Strictly, it's only free if the VNC Server is running on a Raspberry Pi and the VNC client/viewer is running on Windows, Mac or Linux (including Raspbian). If you want to run the VNC server on Windows, Mac, Linux (not Raspbian) and the VNC client/viewer on Raspbian you will need to pay for an Enterp...
by DougieLawson
Sun Aug 18, 2019 1:04 pm
Forum: Troubleshooting
Topic: Pi4's (2) not booting ...
Replies: 20
Views: 288

Re: Pi4's (2) not booting ...

IrishTwins2 wrote:
Sun Aug 18, 2019 12:36 pm
Re: Date setting from terminal window;

date: Cannot set date: Operation not permitted.
Setting the date needs sudo.
by DougieLawson
Sun Aug 18, 2019 12:08 pm
Forum: General discussion
Topic: pi 4 sd card
Replies: 2
Views: 88

Re: pi 4 sd card

Not without some updates.

If the card has NOOBS forget it.

If the card has Stretch you'll need to upgrade to Buster.

Easier option is a new 16GB card, Etcher and a fresh download of plain Raspbian Buster.
by DougieLawson
Sat Aug 17, 2019 8:11 pm
Forum: Troubleshooting
Topic: No sound in Minecraft Pi
Replies: 1
Views: 99

Re: No sound in Minecraft Pi

It's an old version of Minecraft Personal edition hacked to work on a RPi as V0.9.1 ALPHA. Support was discontinued in 2015. It has never had sound unless someone added it with a python Minecraft API program.
by DougieLawson
Sat Aug 17, 2019 7:50 pm
Forum: Gaming
Topic: zxbaremulator
Replies: 1
Views: 54

Re: zxbaremulator

Download http://zxmini.speccy.org/kernel7.img and write it to an SDCard with Etcher.

THIS WILL NOT WORK ON AN RPI 4B.
by DougieLawson
Thu Aug 15, 2019 8:48 pm
Forum: Beginners
Topic: NTP stops working after a reboot pi3 stretch
Replies: 6
Views: 124

Re: NTP stops working after a reboot pi3 stretch

If you want to replace timesyncd with NTP then you need to run these commands

sudo apt install ntp
sudo systemctl stop systemd-timesyncd
sudo systemctl disable systemd-timesyncd
sudo systemctl enable ntp
sudo systemctl start ntp
by DougieLawson
Mon Aug 12, 2019 8:24 am
Forum: Troubleshooting
Topic: Buster can't see other computers on network
Replies: 9
Views: 287

Re: Buster can't see other computers on network

# interface names are normally preferred ; interfaces = 127.0.0.0/8 eth0 # Only bind to the named interfaces and/or networks; you must use the # 'interfaces' option above to use this. # It is recommended that you enable this feature if your Samba machine is # not protected by a firewall or is a fir...
by DougieLawson
Fri Aug 09, 2019 10:44 am
Forum: Beginners
Topic: Backup my sd card
Replies: 2
Views: 68

Re: Backup my sd card

Raspbian has the built-in SD Card Copier (aka piclone).
by DougieLawson
Fri Aug 09, 2019 10:41 am
Forum: Beginners
Topic: Network Attached Storage: Pi not visible on home network
Replies: 8
Views: 1467

Re: Network Attached Storage: Pi not visible on home network

CypherOz wrote:
Fri Aug 09, 2019 10:32 am
On Buster... You need this...

Code: Select all

 sudo /etc/init.d/smbd restart
Why? All the samba stuff is in Systemd service files on Buster.
/lib/systemd/system/smbd.service

/etc/init.d is a hangover from sysvinit and mostly unused on Buster.

Use systemctl enable smbd; systemctl start smbd
by DougieLawson
Fri Aug 09, 2019 10:38 am
Forum: General discussion
Topic: Pi4 as Desktop computer
Replies: 130
Views: 9246

Re: Pi4 as Desktop computer

k-pi wrote:
Fri Aug 09, 2019 9:55 am
I've had a RPi4B/4GB for a month or more, but it just sits there in the box it came in.
If you don't want it, send it to me I'll give it a good home.
by DougieLawson
Fri Aug 09, 2019 10:35 am
Forum: Troubleshooting
Topic: stuck on rainbow screen
Replies: 6
Views: 104

Re: stuck on rainbow screen

NOOBS won't boot if your SDCard has the wrong formatting for the NOOBS partition. If you want NOOBS there's a version of PINN you can write to an SDCard using Etcher. https://github.com/procount/pinn/blob/master/README_PINN.md PINN is a million times better than NOOBS because of all the added functi...
by DougieLawson
Fri Aug 09, 2019 10:33 am
Forum: Troubleshooting
Topic: RPi zero WH
Replies: 1
Views: 60

Re: RPi zero WH

You can't damage USB stuff is the things you're connecting are built to the USB specifications even if you plug it into the power connector on a Zero (it'll just do nothing).

What you can do, easily, with a Raspberry Pi is 1) trash the SDCard 2) break the hardware with GPIO abuse.
by DougieLawson
Fri Aug 09, 2019 10:31 am
Forum: General discussion
Topic: How fast is the Pi386?
Replies: 10
Views: 853

Re: How fast is the Pi386?

I want to install wine on my raspberrypi-3. I was curious to know how fast is this Pi386 chroot environment? Is it able to use my entire CPU? Also is there an open-source software like exagear for the same? Simple answer: NO. Less simple answer: Eltechs built a commercial product from dosbox and wi...
by DougieLawson
Fri Aug 09, 2019 10:27 am
Forum: Raspbian
Topic: Need advice after replacing broken boot partition (stretch) with buster boot partition.
Replies: 2
Views: 71

Re: Need advice after replacing broken boot partition (stretch) with buster boot partition.

If you can mount the SDCard in a Linux system, you can run rpi-update in a chroot. mount /dev/sda2 /mnt mount /dev/sda1 /mnt/boot mount -o bind /dev /mnt/dev mount -o bind /sys /mnt/sys mount -t proc /proc /mnt/proc chroot . rpi-update exit That will work on ANY Linux system because rpi-update just ...
by DougieLawson
Fri Aug 09, 2019 8:47 am
Forum: Troubleshooting
Topic: crontab update
Replies: 16
Views: 304

Re: crontab update

pcfreak49 wrote:
Fri Aug 09, 2019 8:45 am
can you also bless which day and hour the update will take place please?
I don't know (I wouldn't dare to use that), go and read the man page. It's driven off a system crontab.

https://wiki.debian.org/UnattendedUpgrades
by DougieLawson
Fri Aug 09, 2019 8:37 am
Forum: General discussion
Topic: A question about the Raspberry Pi 4 PCB layout
Replies: 21
Views: 946

Re: A question about the Raspberry Pi 4 PCB layout

dickon wrote:
Thu Aug 08, 2019 11:02 pm
And you've ignored plasma, which is admittedly arguable. Wildly off-topic, however, and you're right: it's broadly irrelevant.
And you've ignored the Bose-Einstein Condensate.
by DougieLawson
Fri Aug 09, 2019 8:34 am
Forum: Troubleshooting
Topic: stuck on rainbow screen
Replies: 6
Views: 104

Re: stuck on rainbow screen

+ 100% NoobS is past its use by date for the unaware. I still haven't worked out why the RPF/RP(T) folks haven't grasped PINN as a complete replacement for NOOBS for the folks that need the multiboot (and the one's who can't fathom using Etcher and Raspbian). PINN has some distinct advantages inclu...
by DougieLawson
Fri Aug 09, 2019 8:01 am
Forum: Troubleshooting
Topic: stuck on rainbow screen
Replies: 6
Views: 104

Re: stuck on rainbow screen

Forget NOOBS.

Get plain Raspbian from: https://www.raspberrypi.org/downloads/raspbian/
Get Etcher from: https://www.balena.io/etcher/

Use Etcher to overwrite your SDCard with plain Raspbian (you don't even need to unzip the compressed Raspbian download as Etcher does that for you).
by DougieLawson
Thu Aug 08, 2019 7:15 pm
Forum: Beginners
Topic: Wiring Adafruit OLED to Pi Zero W problem
Replies: 11
Views: 217

Re: Wiring Adafruit OLED to Pi Zero W problem

Take a look at https://learn.adafruit.com/adafruit-gui ... n-problems

All of your soldered joints look like you haven't allowed the solder to flow round the pin. It may be that your iron isn't hot enough for the solder you're using.

Go to advanced search