Go to advanced search

by scruss
Sun Sep 06, 2020 5:02 pm
Forum: Troubleshooting
Topic: vncserver-x11 syslog spam
Replies: 2
Views: 112

Re: vncserver-x11 syslog spam

This AgentInitCheck thing comes up every now and again. are you booting directly to the Desktop? Some posters have reported these messages if you do anything otherwise. have you set a VNC screen resolution? It's under “Advanced Options” in raspi-config are you running the most recent and updated Ras...
by scruss
Sun Sep 06, 2020 4:48 pm
Forum: Troubleshooting
Topic: Errors when updating Raspberry Pi - either apt-listchanges or Python3
Replies: 7
Views: 236

Re: Errors when updating Raspberry Pi - either apt-listchanges or Python3

... Setting up python3 (3.7.3-1) ... running python rtupdate hooks for python3.7... Segmentation fault ... I've found that a segmentation fault when running a routine command usually means the SD card's filesystem is corrupt. I'd backup what you can and maybe create a new image on a fresh card if t...
by scruss
Sat Sep 05, 2020 10:03 pm
Forum: Troubleshooting
Topic: sigrok / CY7C68013 does not work
Replies: 5
Views: 190

Re: sigrok / CY7C68013 does not work

Hmm, snapcraft just want you to install snaps: it's their thing. I'm stuck with them on Ubuntu, and I wish they'd go away.

Guess I'll have to write a placeholder article to catch those sigrok clicks
by scruss
Sat Sep 05, 2020 8:28 pm
Forum: General discussion
Topic: geiger counter radiationd-v1.1(caJOE)
Replies: 7
Views: 633

Re: geiger counter radiationd-v1.1(caJOE)

I wouldn't do too much physical tracing on a cheap G-M tube board: there are big voltages (c. 500 V) across the tube and they get ouchy very fast. As Dougie suggests, use a logic level converter from the oddly-named Vin port: that's where the pulses come out. You'll need to have something that count...
by scruss
Sat Sep 05, 2020 8:10 pm
Forum: Troubleshooting
Topic: sigrok / CY7C68013 does not work
Replies: 5
Views: 190

Re: sigrok / CY7C68013 does not work

Any reason you're using the snap version? The lots and lots of warnings from trying to run the package from a snap is a hint that something didn't install correctly. Maybe uninstall the snap version (and snapd), and try: sudo apt install sigrok sigrok-cli pulseview sigrok-firmware-fx2lafw ? I do hav...
by scruss
Fri Sep 04, 2020 7:49 pm
Forum: General discussion
Topic: Raspbian GUI apps buged
Replies: 4
Views: 238

Re: Raspbian GUI apps buged

The guide you're following is a quite old and won't give you the best desktop. To my knowledge these aren't needed to the vanilla raspberry Well, I guess you know they are now. Unless you're really desperate for storage space, install Raspberry Pi OS with Desktop and don't try to take out files you ...
by scruss
Fri Sep 04, 2020 7:44 pm
Forum: General discussion
Topic: Remote code editing on raspberry pi
Replies: 7
Views: 300

Re: Remote code editing on raspberry pi

I'm pretty fond of sshfs for this. It mounts a remote file system virtually via ssh. There are a variety of clients for all operating systems. Because it's using ssh, it uses all the same security as your regular ssh setup, and gives all the normal file access that the local user has.
by scruss
Thu Sep 03, 2020 7:44 pm
Forum: Beginners
Topic: Setup console font early during boot
Replies: 5
Views: 209

Re: Setup console font early during boot

I don't have an answer for you, but console config is run from systemd's console-setup.service . It has a few dependencies , as are shown in /lib/systemd/system/console-setup.service: [Unit] Description=Set console font and keymap DefaultDependencies=no After=console-screen.service kbd.service local...
by scruss
Thu Sep 03, 2020 2:36 pm
Forum: Beginners
Topic: Create a Script for Updating Pi via Alfred on a Mac
Replies: 7
Views: 140

Re: Create a Script for Updating Pi via Alfred on a Mac

Code: Select all

sudo apt update ;sudo apt -y full-upgrade
should do it without any pesky questions. I don't know if this overrides any replacement of modified config files, though: you might not want all of those set back to maintainer's defaults.
by scruss
Thu Sep 03, 2020 2:32 pm
Forum: Beginners
Topic: Looking is learning.
Replies: 4
Views: 187

Re: Looking is learning.

Your installation link is outdated and likely to break users' Raspberry Pi OS installation. Do this instead: sudo apt install mc I was a huge fan of two-panel file managers in my CP/M and Amiga days but I very seldom use them now. mc 's neat if that's the sort of thing you like, though. Learning com...
by scruss
Wed Sep 02, 2020 8:40 pm
Forum: General discussion
Topic: Using cd from within a bash script
Replies: 42
Views: 1236

Re: Using cd from within a bash script

Use aliases: alias doit='cd ~/bin' resulting command output: $ doit ~/bin $ Hence result. When you have the aliases the way you want, save them with: alias > ~/.bash_aliases This will persist for every new window you open, and every time you reboot. If you want to get rid of an alias: unalias doit I...
by scruss
Wed Sep 02, 2020 2:59 pm
Forum: Automation, sensing and robotics
Topic: RPi-ESP32 Books
Replies: 19
Views: 2373

Re: RPi-ESP32 Books

Neat! rshell might do almost all of the same things for you without the dependencies - https://github.com/dhylands/rshell (mind you, if the tool you're using compiles py to mpy as it transfers, it is a much better thing) Once I have the network set up, I find WebREPL useful: https://github.com/micro...
by scruss
Mon Aug 31, 2020 11:53 pm
Forum: Advanced users
Topic: Connecting 20x4 LCD to raspberry pi for project.
Replies: 20
Views: 660

Re: Connecting 20x4 LCD to raspberry pi for project.

I answered that in your other thread: Re: python - versions and what is what

On a Raspberry Pi:
  • you read python, you type python3
  • you read pip, you type pip3
by scruss
Mon Aug 31, 2020 11:50 pm
Forum: General discussion
Topic: python - versions and what is what
Replies: 44
Views: 1346

Re: python - versions and what is what

Why does INSTALLER have pip in it and not pip3 ? Because, for most systems except Debian-based ones like the Raspberry Pi, “pip” means “pip3”. Python 3 can't do anything for/with pip (v2), so when it says pip, it means pip3. The Python 2 → Python 3 transition wasn't handled very well. Basically, fr...
by scruss
Mon Aug 31, 2020 2:43 pm
Forum: Advanced users
Topic: Connecting 20x4 LCD to raspberry pi for project.
Replies: 20
Views: 660

Re: Connecting 20x4 LCD to raspberry pi for project.

you're using Python 2.7.16, so you probably haven't installed the modules in the place the interpreter expects.

always use python3, and install/use pip3:

Code: Select all

sudo apt install python3-pip
The board has limits on image size, which can be a pain until you're used to it.
by scruss
Sun Aug 30, 2020 11:03 pm
Forum: Advanced users
Topic: Connecting 20x4 LCD to raspberry pi for project.
Replies: 20
Views: 660

Re: Connecting 20x4 LCD to raspberry pi for project.

But both boards work much the same.

How will it be painful? The SerLCDs are about the easiest to use. They're supported by the vendor. You're using I2C mode, which is pretty straightforward.
by scruss
Sun Aug 30, 2020 10:59 pm
Forum: General discussion
Topic: Custom Cutter Using Raspberry Pi
Replies: 9
Views: 424

Re: Custom Cutter Using Raspberry Pi

Most of these CNC machines use something much smaller than a Raspberry Pi. Without real-time control, the Raspberry Pi isn't much use for precisely-timed spindle control. Grbl or Grbl_ESP32 will take g-code and run your stepper motors accordingly. Heck, even the full RAMPS clone I got last year for ...
by scruss
Sun Aug 30, 2020 4:15 pm
Forum: Advanced users
Topic: Connecting 20x4 LCD to raspberry pi for project.
Replies: 20
Views: 660

Re: Connecting 20x4 LCD to raspberry pi for project.

Oh, and as regards docs, SparkFun do a fantastic job for their products. Looks like you've got a recently retired product there, but SF keep their product info up indefinitely: here's yours - SparkFun 20x4 SerLCD - Black on RGB 3.3V Their usage guide: AVR-Based Serial Enabled LCDs Hookup Guide SerLC...
by scruss
Sun Aug 30, 2020 4:07 pm
Forum: Advanced users
Topic: Connecting 20x4 LCD to raspberry pi for project.
Replies: 20
Views: 660

Re: Connecting 20x4 LCD to raspberry pi for project.

SparkFun say this display is QWIIC ready. Qwiic is just I²C with a fancy connector. It was developed by SparkFun. In a rare piece of working together, Adafruit also make Qwiic-compatible kit. SeedStudio introduced a similar connector system years ago, Grove, but Qwiic isn't Grove-compatible. Grove ...
by scruss
Sun Aug 30, 2020 3:49 pm
Forum: Automation, sensing and robotics
Topic: RPi-ESP32 Books
Replies: 19
Views: 2373

Re: RPi-ESP32 Books

upydev https://github.com/Carglglz/upydev is great for communicating with micropython devices. However, it does not install on a raspberry pi (so, this comment is slightly off-topic :-( ): Interesting tool, that one. Seems that the required mpy-cross package - https://gitlab.com/alelec/mpy_cross - ...
by scruss
Sat Aug 29, 2020 9:58 pm
Forum: General discussion
Topic: NOOBS - is it really for noobies?
Replies: 18
Views: 829

Re: NOOBS - is it really for noobies?

I don't think any vendor would image something that didn't come from the raspberrypi.org downloads section. I shudder to think of the technical support burden.

(also, I haven't been doing the imaging for a while, but Elmwood/CED are doing just fine with other staff.)
by scruss
Sat Aug 29, 2020 7:28 pm
Forum: Beginners
Topic: can't gui launched on raspian linux 8
Replies: 13
Views: 393

Re: can't gui launched on raspian linux 8

https://github.com/JamesP6000/WsprryPi.git That package hasn't been touched for several years. You've probably got a newer Raspberry Pi than it could possibly understand. It likely makes assumptions about the system that are no longer valid, too. Is it in stretch and Buster where the major hit to p...
by scruss
Sat Aug 29, 2020 6:04 pm
Forum: Advanced users
Topic: Connecting 20x4 LCD to raspberry pi for project.
Replies: 20
Views: 660

Re: Connecting 20x4 LCD to raspberry pi for project.

Thanks, Trev - good resource for everyone.

I haven't had a great experience with a Generic (Black) I2C LCD Backpack with a (later) 16x2 Character LCD (Blue Backlight) on the Raspberry Pi. It seems to be a resolutely 5V device.
by scruss
Sat Aug 29, 2020 5:53 pm
Forum: Python
Topic: HX711 not setting reading format
Replies: 4
Views: 145

Re: HX711 not setting reading format

That usually means you've got a program something .py called the same as the library used by import something in that folder. It also likely means you don't have the something library fully installed so it can't be found from other folders. This is one of Python's more stabby features, and is the ca...
by scruss
Sat Aug 29, 2020 5:50 pm
Forum: General discussion
Topic: NOOBS - is it really for noobies?
Replies: 18
Views: 829

Re: NOOBS - is it really for noobies?

If NOOBs goes away, the most peeved folks will be resellers. For all its faults, you can take a generic micro SDHC card and write NOOBs to the card in a couple of minutes or less. That way, you can sell a Raspberry Pi bundle with the latest OS that will boot from the get-go. Writing a full image to ...

Go to advanced search