Go to advanced search

by Disbursed
Fri May 15, 2020 4:09 pm
Forum: Python
Topic: Thonny packages?
Replies: 3
Views: 170

Re: Thonny packages?

Thank you. Unfortunately, I was unable to get this to work. I added to the specified path a directory and added to it "__init__.py", then added a module directory to the package directory, but was unable to open it using Thonny _> New, or to save to it using a test line of code comments. I will aban...
by Disbursed
Thu May 14, 2020 12:26 pm
Forum: Python
Topic: Thonny packages?
Replies: 3
Views: 170

Thonny packages?

I'm learning Python from a YouTube tutorial that doesn't use Thonny - PyCharm, I think. Up until I started packages differences were small, but now I'm running into some confusion. Thonny Tools->Manage Packages brings up a dialog that appears to be mainly for installing packages from elsewhere, but ...
by Disbursed
Tue May 05, 2020 2:51 pm
Forum: Ubuntu
Topic: Ubuntu 20.04 LTS support?
Replies: 6
Views: 449

Re: Ubuntu 20.04 LTS support?

Kernel, Firmware, Drivers, Official Raspberry Pi Peripherals, may or may not function or have compatibility issues. With Raspbian Buster Operating System it is a given that it fully supports every Raspberry Pi and Compute Module as well as Official Peripherals ever manufactured over 8+ years: I reg...
by Disbursed
Tue May 05, 2020 1:51 pm
Forum: Ubuntu
Topic: Ubuntu 20.04 LTS support?
Replies: 6
Views: 449

Re: Ubuntu 20.04 LTS support?

What does it mean when Ubuntu 20.04 LTS has greater RPi support than previously? Does that mean you can install it instead of Raspian? If so, is that useful? https://www.raspberrypi.org/forums/viewforum.php?f=131 Thank you for the link. I would still like to know what "support" means in this contex...
by Disbursed
Tue May 05, 2020 12:45 pm
Forum: Ubuntu
Topic: Ubuntu 20.04 LTS support?
Replies: 6
Views: 449

Ubuntu 20.04 LTS support?

What does it mean when Ubuntu 20.04 LTS has greater RPi support than previously? Does that mean you can install it instead of Raspian? If so, is that useful?
by Disbursed
Wed Apr 29, 2020 1:05 am
Forum: Python
Topic: Replace vaiables in Thonny?
Replies: 2
Views: 91

Re: Replace vaiables in Thonny?

Is there a way in Thonny to replace all my variables with another name at once. I know some IDEs allow this but haven't been able to find a way in Thonny. For example, if I use " i ' and "i =+1" while writing the code, I'd like to be able to make them more descriptive after writing them, like repla...
by Disbursed
Tue Apr 28, 2020 11:00 pm
Forum: Python
Topic: Replace vaiables in Thonny?
Replies: 2
Views: 91

Replace vaiables in Thonny?

Is there a way in Thonny to replace all my variables with another name at once. I know some IDEs allow this but haven't been able to find a way in Thonny. For example, if I use " i ' and "i =+1" while writing the code, I'd like to be able to make them more descriptive after writing them, like replac...
by Disbursed
Wed Apr 22, 2020 7:06 pm
Forum: Python
Topic: Thonny/CLI difference - very much beginner
Replies: 4
Views: 164

Re: Thonny/CLI difference - very much beginner

MrYsLab wrote:
Tue Apr 21, 2020 11:34 am

You can also write this program to allow the use to enter input. The "input" instruction returns a string, so we need to convert that to an integer (or a float if you wish to do that)
More good hints - interactive and f-strings. Thanks.
by Disbursed
Mon Apr 20, 2020 9:49 pm
Forum: Python
Topic: Thonny/CLI difference - very much beginner
Replies: 4
Views: 164

Re: Thonny/CLI difference - very much beginner

Thank you. I didn't realize the CLI didn't need "print" but Thonny did. My example must have been assuming REPL.

And thanks for the hint about invoking "python3" on the RPi.
by Disbursed
Mon Apr 20, 2020 7:19 pm
Forum: Python
Topic: Thonny/CLI difference - very much beginner
Replies: 4
Views: 164

Thonny/CLI difference - very much beginner

I've just started looking at Python and working through some examples and I could use some help determining why some of the examples work on the command line but not in Thonny. Here's a simple one: # Python Module example, filename 'example.py' def add(a, b): """This program adds two numbers and ret...
by Disbursed
Fri Mar 27, 2020 1:27 am
Forum: Beginners
Topic: Two Raspberry Pi, one monitor
Replies: 7
Views: 249

Re: Two Raspberry Pi, one monitor

trejan wrote:
Fri Mar 27, 2020 12:15 am
Buy a HDMI switch.
Makes sense.
HawaiianPi wrote: Do both of them require a monitor? You could run one headless.
The computers don't require it but at my stage I require monitors.
by Disbursed
Fri Mar 27, 2020 12:06 am
Forum: Beginners
Topic: Two Raspberry Pi, one monitor
Replies: 7
Views: 249

Two Raspberry Pi, one monitor

Can you set up two Raspberry Pi with one monitor, maybe with a switch? I'm thinking about getting a second RPi and I'd really like to free up the 17" monitor I'm now using with the first Pi. So, if I get a second Pi and one new monitor, can I run both Pi off the same new monitor without having to po...
by Disbursed
Fri Mar 06, 2020 11:43 pm
Forum: Beginners
Topic: Why is NOOBs suggested to be used by Raspberry beginners?
Replies: 51
Views: 2833

Re: Why is NOOBs suggested to be used by Raspberry beginners?

I just learned from this thread that I don't have to always format an SD card before burning a Raspian image using Etcher, assuming I'm not installing NOOBs. Does this apply to cards larger than 32gb, e.g., both 64gb and 128gb, or do they have to be handled differently?
by Disbursed
Tue Mar 03, 2020 9:59 pm
Forum: Beginners
Topic: SSH requires password to unlock private key each time
Replies: 3
Views: 146

Re: SSH requires password to unlock private key each time

B.Goode wrote:
Tue Mar 03, 2020 7:34 pm
ssh-agent (on Linux) or Pagent (with PuTTY on Microsoft Windows) will handle that key authentication for you. (Don't have any relevant experience with a Mac.)
Thank you - it was the user agent I'd overlooked. " ssh-add <path to private key> " did it.

Thanks, all.
by Disbursed
Tue Mar 03, 2020 7:23 pm
Forum: Beginners
Topic: SSH requires password to unlock private key each time
Replies: 3
Views: 146

SSH requires password to unlock private key each time

Establishing an ssh session with my pi now requires me to unlock the key password each time, instead of just after logouts and reboots.

I've looked a both Pi and Mac etc/ssh/ in both ssh_config and sshd_config and nothing jumps out at me as something I've recently changed.

What am I Missing?
by Disbursed
Fri Feb 28, 2020 2:33 pm
Forum: Beginners
Topic: Remove a public key from pi?
Replies: 5
Views: 221

Re: Remove a public key from pi?

If the annotations in the public key's comment field are not sufficient to identify the key within the authorized_keys file... Thank you for your patience. There should have been two keys there but I could only see one. The original question was based on not seeing a key that should have been there...
by Disbursed
Fri Feb 28, 2020 4:21 am
Forum: Beginners
Topic: Remove a public key from pi?
Replies: 5
Views: 221

Re: Remove a public key from pi?

What do you mean by public key? Public key is Public. Maybe you mean regenerating your PI's new Private SSH Key? Fair question. I might be misunderstanding the issues. When I generate the key pair on my Mac, I believe I ssh-copy-id the pubic key of the pair to the RPi and keep the private key on my...
by Disbursed
Thu Feb 27, 2020 11:01 pm
Forum: Beginners
Topic: Remove a public key from pi?
Replies: 5
Views: 221

Remove a public key from pi?

Is there a way to remove a public key - perhaps compromised or old - from Pi, individually? I don't have an issue with this right now, but I'm curious and I've been unable to find a method for doing it. I looked into .ssh/authorized_keys .ssh/authorized_keys2 and found the key for the Mac I'm using,...
by Disbursed
Thu Feb 27, 2020 3:39 pm
Forum: Beginners
Topic: Resolved: SSH - One computer connects to pi, one doesn't
Replies: 0
Views: 102

Resolved: SSH - One computer connects to pi, one doesn't

Resolved - my Mac was on a separate VLAN and my router is set to disallow communications between LANs. It's working now. Issue before fix--------------------------------------------- My Linux connects to pi remotely using ssh, but my MacOS does not. I suspect his is a Mac issue, but I thought I'd ch...
by Disbursed
Wed Feb 26, 2020 5:21 pm
Forum: Beginners
Topic: ssh-keygen changes clarifications
Replies: 4
Views: 127

Re: ssh-keygen changes clarifications

In any case, it will complain if the file name already exists and ask before overwriting. As with everything, keep backup copies, always. Thank you - it will over-write if I allow it. I appreciate the explanation - I find the man pages to be quite good reminders if I already understand the issues, ...
by Disbursed
Wed Feb 26, 2020 5:01 pm
Forum: Beginners
Topic: ssh-keygen changes clarifications
Replies: 4
Views: 127

Re: ssh-keygen changes clarifications

Log into the Raspberry Pi with your new key and stay logged in while you remove the old public key from authorized_keys. Then log in again to make sure. Thank you. Does ssh-keygen create a new pair in ~/home/.ssh by creating new files? For instance, like id_ed25519(2).pub and id_ed25519(2) or does ...
by Disbursed
Wed Feb 26, 2020 3:32 pm
Forum: Beginners
Topic: ssh-keygen changes clarifications
Replies: 4
Views: 127

ssh-keygen changes clarifications

I'd like to make some changes to my key pairs. I use ed25519 instead of rsa, if it matters. 1. To change the password of a key: ssh-keygen -p -f ~/.ssh/filename The password only applies to the private key, which exists only on my computer, and therefore this is the only action required, true? I tho...
by Disbursed
Mon Feb 24, 2020 11:14 pm
Forum: Beginners
Topic: Firewall (ufw) and SSH don't work together
Replies: 9
Views: 318

Re: Firewall (ufw) and SSH don't work together

Fail2Ban is my next project.
by Disbursed
Mon Feb 24, 2020 7:45 pm
Forum: Beginners
Topic: Firewall (ufw) and SSH don't work together
Replies: 9
Views: 318

Re: Firewall (ufw) and SSH don't work together

The v6 pieces do mean IPv6 (a twenty one year old improvement to IPv4 that is becomimg more widely used). I don't know what LIMIT does with ufw, I've never used it. My rules are "deny" or "allow" only. I didn't either. Here's from the Man Page ufw supports connection rate limiting, which is useful ...
by Disbursed
Mon Feb 24, 2020 6:28 pm
Forum: Beginners
Topic: Firewall (ufw) and SSH don't work together
Replies: 9
Views: 318

Re: Firewall (ufw) and SSH don't work together

sudo ufw status numbered shows: Status: active To Action From -- ------ ---- [ 1] 22/tcp LIMIT IN Anywhere There was a second rule for v6, which I assumed meant "IPv6," but I eliminated it preparatory to denying IPv6. Is that true? I think your suggestions are very welcome as I learn about the pi.

Go to advanced search