Go to advanced search

by Andyroo
Tue Sep 17, 2019 2:50 pm
Forum: General discussion
Topic: New Raspbian Buster and Thonny idle, "hate at first sight"
Replies: 15
Views: 431

Re: New Raspbian Buster and Thonny idle, "hate at first sight"

Thought you could set the Python version in Thonny or is that VS Code only?

Not that setting it back is a good idea mind you...
by Andyroo
Tue Sep 17, 2019 2:41 pm
Forum: The MagPi
Topic: MagPi 85, Build Your Own NAS
Replies: 3
Views: 209

Re: MagPi 85, Build Your Own NAS

Had to buy wallpaper rather than a Pi 4 but my birthday is in October :?: :lol: :!: The biggest Pi I have free at the mo is my Zero (only because I've lost my case lid) and I am not even going to try that... I may try on an old Shuttle PC I found under the bed (do not ask) so I'll happily take the n...
by Andyroo
Tue Sep 17, 2019 2:29 pm
Forum: Advanced users
Topic: Understanding relationship between dhcpcd.conf and /etc/network/interfaces
Replies: 3
Views: 139

Re: Understanding relationship between dhcpcd.conf and /etc/network/interfaces

To set up a static IP just add your equivalent of interface eth0 static ip_address=192.168.1.11/24 static routers=192.168.1.254 static domain_name_servers=192.168.1.2 hostname = web.local to /etc/dhcpcd.conf. No need to touch the interfaces files for this To disable WiFi and/or Bluetooth add the req...
by Andyroo
Tue Sep 17, 2019 2:22 pm
Forum: General discussion
Topic: New Raspbian Buster and Thonny idle, "hate at first sight"
Replies: 15
Views: 431

Re: New Raspbian Buster and Thonny idle, "hate at first sight"

The Thonny virtual environment may also be your issue :twisted: Thonny runs a virtual environment on the Pi and you often have to import the module into Thonny as well as the normal operating environment. What makes it worse is that there are two ways in Thonny to do this - one installs into the vir...
by Andyroo
Tue Sep 17, 2019 2:17 pm
Forum: Raspberry Pi Desktop for PC and Mac
Topic: Raspbian Desktop boot error: failed to start rng-tools and Raspbian shows Blank desktop with only Trash Icon
Replies: 3
Views: 58

Re: Raspbian Desktop boot error: failed to start rng-tools and Raspbian shows Blank desktop with only Trash Icon

rng-tools will fail as your PC does not have a hardware random number generator as a guess. You can uninstall it using apt: sudo apt update sudo apt uninstall rng-tools I've not installed Haveged as a replacement on my VM but not had the other issue you have seen. By the sound of it, the menu bar is...
by Andyroo
Tue Sep 17, 2019 12:19 pm
Forum: Beginners
Topic: how do I give pi ownership of this folder?
Replies: 5
Views: 139

Re: how do I give pi ownership of this folder?

You can try adding

Code: Select all

uid=pi,gid=pi
to the mount in fstab

I think the change owner only works when the folder is not being used at the time, so you have to dismount (unmount sounds better :?: ),change then mount it the drive again.
by Andyroo
Tue Sep 17, 2019 12:11 pm
Forum: Raspberry Pi Desktop for PC and Mac
Topic: PC Version wont boot
Replies: 2
Views: 84

Re: PC Version wont boot

The installer is the standard Debian installer that asks for the disk to put the OS on and the grub location with a check for dual boot...

Best thing I can think of is to search for menu.lst to find one that matches :cry:
by Andyroo
Tue Sep 17, 2019 11:59 am
Forum: General discussion
Topic: New Raspbian Buster and Thonny idle, "hate at first sight"
Replies: 15
Views: 431

Re: New Raspbian Buster and Thonny idle, "hate at first sight"

Try VS Code from Microsoft https://code.visualstudio.com/ It supports remote debugging on a Pi so you can use your Mac / Linux box / Pc and run direct on the Pi. Only drawback I can see is that the source is kept on the Pi with no local backup so I loose the advantage of TimeMachine. One thing I’ve ...
by Andyroo
Tue Sep 17, 2019 11:49 am
Forum: Networking and servers
Topic: Migrate wordpress to hosting
Replies: 3
Views: 103

Re: Migrate wordpress to hosting

If you look at the base directory where WordPress is installed (somewhere under /var/www/ is normal) you will find a file called wp-config.php In here you will see a set of declarations for the database: /** The name of the database for WordPress */ define('DB_NAME', 'database_name_here'); /** MySQL...
by Andyroo
Tue Sep 17, 2019 11:40 am
Forum: The MagPi
Topic: MagPi 85, Build Your Own NAS
Replies: 3
Views: 209

Re: MagPi 85, Build Your Own NAS

Point A - never knew that. Most of my Pi work is still command line so I must spend time playing with the GUI... Point B - Must agree with that. I started to look at memory requirements for this when the Pi 4 came out but was put off with the number of posts stating 1GB per 1TB and a fair chunk for ...
by Andyroo
Tue Sep 17, 2019 12:38 am
Forum: Networking and servers
Topic: Can You Wirelessly Transmit Data Pi To Pi
Replies: 10
Views: 322

Re: Can You Wirelessly Transmit Data Pi To Pi

Two easy ways I can think of: 1) A program called Samba will allow you to make a directory on the Pi available to other machines. Once set up, you can use the built in command mv to move files from the local directory to the remote one. Samba is not too hard to get set up but it will take a bit of w...
by Andyroo
Mon Sep 16, 2019 12:16 pm
Forum: Networking and servers
Topic: Folder permissions denied on Mac
Replies: 1
Views: 58

Re: Folder permissions denied on Mac

Have you mounted the external drive at all or relying on the automated mount function?

Are you running Samba to share the disk with the Mac at all?
by Andyroo
Mon Sep 16, 2019 12:13 pm
Forum: General discussion
Topic: Error using "curses" to control RPI zero
Replies: 1
Views: 55

Re: Error using "curses" to control RPI zero

Welcome to the forum, Curses is designed to be used in a terminal / condole session and not a GUI. The print problem is due to you mixing up Python 2 (print without brackets) and Python 3. This is normal if you are new to the Pi and copying old web sites. If you are using Buster and Thonny as the ed...
by Andyroo
Mon Sep 16, 2019 12:02 pm
Forum: Troubleshooting
Topic: Troubleshoot PMIC
Replies: 11
Views: 2180

Re: Troubleshoot PMIC

The OP has not been here since February this year so it’s unlikely you will get an answer.

Please check the date of posts as lots could have changed in the meantime and you can see if the poster is active by clicking on their name and that will show the last active date.
by Andyroo
Mon Sep 16, 2019 11:58 am
Forum: AIY Projects
Topic: Getting autostart to work again
Replies: 6
Views: 378

Re: Getting autostart to work again

If you are running Buster, you do not need to load any entropy tools as the rng-tools library is now shipped as standard.

Many a headless Pi has been stuck before today :oops:
by Andyroo
Mon Sep 16, 2019 9:23 am
Forum: Off topic discussion
Topic: Pi graphics board - needs a microscope
Replies: 2
Views: 272

Pi graphics board - needs a microscope

I’ve just stumbled over this post https://www.techrepublic.com/article/wa ... ing-on-it/

Though I am amazed at how far he has progressed (way beyond anything I could dream about doing) I have to wonder why?

:lol:
by Andyroo
Mon Sep 16, 2019 1:50 am
Forum: Python
Topic: Thonny Strech error
Replies: 6
Views: 207

Re: Thonny Strech error

The first one will not know where Python is where I expect the second one has a full hash bang entry. If you replace the python3 with /usr/bin/python3 then the first should run. The hash bang tells the system what program should be used to execute the code. So for a Python 3 program the first line w...
by Andyroo
Sun Sep 15, 2019 9:19 pm
Forum: Python
Topic: import variables and change and save.
Replies: 3
Views: 108

Re: import variables and change and save.

I like using the old ini file format beloved of Windows 3.11 etc :lol:

This is done with the configparser module.

Though I have a background in EDI formats, XML, JSON etc, I find the ini format neat and very readable.
by Andyroo
Sun Sep 15, 2019 9:10 pm
Forum: Troubleshooting
Topic: Samba uses machine name instead of netbios name.
Replies: 4
Views: 105

Re: Samba uses machine name instead of netbios name.

Have you anything in the firewall of the raspnas4 box that could be blocking name resolution?

You could try this and change the order of the resolution to see if anything works

Code: Select all

[global]
    name resolve order = wins lmhosts hosts bcast
by Andyroo
Sun Sep 15, 2019 6:00 pm
Forum: Troubleshooting
Topic: New router/VDSL provider - no internet via Pis
Replies: 19
Views: 375

Re: New router/VDSL provider - no internet via Pis

In the future, look at switching the Pi to 'standard' IP address alocation (dynamic) so the Router gives them the IP address. Then in the router, reserve an IP address to that Pi. It will always be given the IP and you control it all from one place. the router. ... Just spent three hours battling w...
by Andyroo
Sun Sep 15, 2019 5:27 pm
Forum: Networking and servers
Topic: Can You Wirelessly Transmit Data Pi To Pi
Replies: 10
Views: 322

Re: Can You Wirelessly Transmit Data Pi To Pi

Welcome to the forum, If you are tight for space then look at the Pi Zero W board . Thats the smallest practicable board you can use and they are fine for small tasks that are not CPU heavy (still LOTS more oomph than an Arduino). Range on all Pis depends on the surroundings and you cannot add an ex...
by Andyroo
Sun Sep 15, 2019 4:22 pm
Forum: Troubleshooting
Topic: Pi not getting IPv4 address, though I can connect via ssh
Replies: 5
Views: 75

Re: Pi not getting IPv4 address, though I can connect via ssh

Bit of a sledgehammer trick that one :lol:

Then again, its not a real job without using a hammer...

Glad you're going - shout if stuck again.
by Andyroo
Sun Sep 15, 2019 4:02 pm
Forum: Troubleshooting
Topic: Pi not getting IPv4 address, though I can connect via ssh
Replies: 5
Views: 75

Re: Pi not getting IPv4 address, though I can connect via ssh

You could have IPv4 disabled or the DHCP server is not giving out addresses...

May be worth checking the contents of /etc/dhcpcd.conf

What version of the OS are you running?
by Andyroo
Sun Sep 15, 2019 3:09 pm
Forum: General discussion
Topic: speedtest difference Windows-RPi4
Replies: 12
Views: 468

Re: speedtest difference Windows-RPi4

Be aware you used pip and not pip3. pip is the support package for Python 2 IIRC It's actually more complicated than that. With pip It depends on which version was installed last. If you install pip3 after pip2 then pip will point to pip3. Interesting - not seen that on the Stretch box where I have...
by Andyroo
Sun Sep 15, 2019 3:02 pm
Forum: Troubleshooting
Topic: Pi not getting IPv4 address, though I can connect via ssh
Replies: 5
Views: 75

Re: Pi not getting IPv4 address, though I can connect via ssh

Once you are on the Pi can you issue

Code: Select all

ifconfig
in the terminal - this will show you the IP details.

My guess is the router needs the classic IT solution (off and on again).

Go to advanced search