Go to advanced search

by markkuk
Wed Jun 16, 2021 7:01 am
Forum: General discussion
Topic: Can't delete files on an external USB HDD
Replies: 11
Views: 455

Re: Can't delete files on an external USB HDD

Am I right in thinking the user pi is the root user, and this is why nothing changes when I change the ownership to this user and group. No, you're wrong. The root user is identifed by User ID (UID) == 0 and conventionally has username "root". The user "pi" has UID 1000 in Raspb...
by markkuk
Sat Jun 12, 2021 11:05 am
Forum: Raspberry Pi OS
Topic: sudo question
Replies: 5
Views: 335

Re: sudo question

The "more" command was copied to DOS from Unix and it's also available in LInux. Using "more" to page command output has nothing to do with sudo.
by markkuk
Wed Mar 31, 2021 7:09 am
Forum: General programming discussion
Topic: Need accurate clock - How to install NTP and keep clock updated?
Replies: 20
Views: 2064

Re: Need accurate clock - How to install NTP and keep clock updated?

If I enter the command "timedatectl" and press enter, it gives me the local and UTC times, says the system clock is synchronized, but says "NTP service: inactive". The "NTP service" line of timedatectl refers only to systemd's builtin SNTP client: systemd-timesyncd. If...
by markkuk
Tue Mar 30, 2021 8:44 am
Forum: General discussion
Topic: Change password on SD card
Replies: 4
Views: 279

Re: Change password on SD card

Use the chpasswd command:

Code: Select all

# chpasswd pi:linuxpassword -R /media/kfa/rootfs
by markkuk
Wed Mar 24, 2021 7:57 pm
Forum: Automation, sensing and robotics
Topic: Stepper motor control
Replies: 4
Views: 448

Re: Stepper motor control

As there is no information about the controller on the stepper motor on the linked site I would suggest you need to do a bit of testing of voltages present/required on the controller before connecting it to the pi gpio or you could end up damaging the pi or controller board. You will of course need...
by markkuk
Thu Mar 18, 2021 6:20 am
Forum: Beginners
Topic: Change storage path for MySql on a USB stick does not work
Replies: 6
Views: 230

Re: Change storage path for MySql on a USB stick does not work

Luca_ wrote:
Wed Mar 17, 2021 9:22 pm
It all worked until the second to last step.
I get an error that the operation is forbidden to change this group.
If your USB stick is formatted in FAT you can't change file/directory ownership. Reformat the stick as Ext4 and restart from beginning.
by markkuk
Tue Mar 16, 2021 1:22 pm
Forum: Beginners
Topic: What exactly are the issues of rpi os 64 bit beta test version
Replies: 23
Views: 4552

Re: What exactly are the issues of rpi os 64 bit beta test version

Adding on to this post, I also remembered that some software does not install correctly - it asks for 32 bit versions of packages which are unavailable or conflict with already installed packages. This report might be useful if you included the name of the package you tried to install and what the ...
by markkuk
Mon Mar 15, 2021 11:35 am
Forum: General discussion
Topic: error on sudo apt install code
Replies: 15
Views: 730

Re: error on sudo apt install code

The recent update to raspberrypi-sys-mods removed the repository definition for Visual Studio Code. Restore it by running the following commands: wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg sudo install -o root -g root -m 644 packages.microsof...
by markkuk
Sun Mar 14, 2021 9:08 am
Forum: Automation, sensing and robotics
Topic: Autogriller
Replies: 9
Views: 995

Re: Autogriller

That's the meater-python module source code. Remove any modifications you have made and write your own code in a different source file. Maybe you should review the Python Tutorial section on modules and packages.
by markkuk
Thu Mar 04, 2021 11:36 am
Forum: General discussion
Topic: 61 Year old NOOB question
Replies: 10
Views: 507

Re: 61 Year old NOOB question

Steve36 wrote:
Thu Mar 04, 2021 2:42 am
I used sudo nano /usr/share/scratch/locale/scratch.pot.
Are you sure that the instructions you are following match the version of Scratch you are using? RPi OS has Scratch 1.4 and Scratch 3, and there used to be Scratch 2 as well.
by markkuk
Sun Feb 21, 2021 9:20 am
Forum: Beginners
Topic: Running program at start-up
Replies: 18
Views: 759

Re: Running program at start-up

Hi Mark The first line is as follows #!/usr/bin/env python should I get rid of the env part cheers You have something in the file before the #!, otherwise the system wouldn't try to run it as a shell script. If you used Geany to edit the file make sure that the option "Write Unicode BOM" ...
by markkuk
Sat Feb 20, 2021 12:01 pm
Forum: Beginners
Topic: Running program at start-up
Replies: 18
Views: 759

Re: Running program at start-up

Add the following line to the start of your Python program:

Code: Select all

#!/usr/bin/python3
Make sure that #! are the fist two characters of the file, you can't add any spaces, blank lines or other comment lines before them.
https://en.wikipedia.org/wiki/Shebang_(Unix)
by markkuk
Thu Feb 18, 2021 10:32 pm
Forum: Python
Topic: New member: gpiozero questions
Replies: 4
Views: 240

Re: New member: gpiozero questions

Now I have the code to work with the PRI.gpio library but I would like to convert that code to work with the gpiozero library. But I do not see any example in the gpiozero docs. There is a entry in the documents about SPI Devices, I guess that is what I need But I do not see some device of 8-bit an...
by markkuk
Mon Feb 08, 2021 2:59 pm
Forum: Other programming languages
Topic: Best Way for Building List for javascript via nodejs
Replies: 17
Views: 1435

Re: Best Way for Building List for javascript via nodejs

Heater wrote:
Mon Feb 08, 2021 2:51 pm
Ha. Believe it or not I was wondering whether to count Part 0 and say 12 parts or not.
Part0 contains some mandatory exercises, so it should be counted.
by markkuk
Mon Feb 08, 2021 2:20 pm
Forum: Other programming languages
Topic: Best Way for Building List for javascript via nodejs
Replies: 17
Views: 1435

Re: Best Way for Building List for javascript via nodejs

There are 11 parts in that course, 12 parts, the numbering starts from zero. Parts 0-3 cover the basics, 4-7 are more advanced stuff and 8-11 are "optional" subjects like TypeScript. They don't take long to work through This isn't an one-weekend course or even an one-week course. I starte...
by markkuk
Tue Feb 02, 2021 4:32 am
Forum: Other programming languages
Topic: Best Way for Building List for javascript via nodejs
Replies: 17
Views: 1435

Re: Best Way for Building List for javascript via nodejs

React is a JavaScript library, it adds functionality to the base language and doesn't remove anything.
by markkuk
Sun Jan 31, 2021 7:56 am
Forum: Other programming languages
Topic: Best Way for Building List for javascript via nodejs
Replies: 17
Views: 1435

Re: Best Way for Building List for javascript via nodejs

What's the best way to keep the original HTML valid so that I can just update it with the new key? Keep all the data in Javascript code, for exaple in React component state or in Redux store. Then I suppose I need to do a binary search of the HTML elements to find the place where the new descriptio...
by markkuk
Sat Jan 30, 2021 1:13 pm
Forum: General discussion
Topic: Chromium login issues
Replies: 18
Views: 3499

Re: Chromium login issues

alhodg wrote:
Wed Jan 20, 2021 11:51 am
Is it possible to log in to Chromium to sync with Google account?
It won't be possible after March 15th: https://blog.chromium.org/2021/01/limit ... ty-in.html
Maybe someone at Google flicked a switch too early.
by markkuk
Fri Jan 29, 2021 11:02 am
Forum: Beginners
Topic: disable serial console
Replies: 11
Views: 624

Re: disable serial console

After starting raspi-config, choose "3 Interface Options", then "P6 Serial Port". You will be asked: "Would you like a login shell to be accessible over serial?", choose "No" there.
by markkuk
Tue Jan 26, 2021 12:22 pm
Forum: Beginners
Topic: First Project with RaspberryPi 4 (Blink.py)
Replies: 1
Views: 95

Re: First Project with RaspberryPi 4 (Blink.py)

Gpiozero source code is on GitHub: https://github.com/gpiozero/gpiozero
by markkuk
Sun Jan 24, 2021 10:33 am
Forum: General
Topic: RPi Pico - Windows support for development.
Replies: 107
Views: 7296

Re: RPi Pico - Windows support for development.

bensimmo wrote:
Sun Jan 24, 2021 8:29 am
On Windows it is probably best to install Windows for Linux Subsystem 2, then pick Debian or Ubuntu or both as you please.
Setup that as needed too.
WSL2 doesn't support USB pass-through or mounting USB drives, so it's pretty useless for any kind of microcontroller development.
by markkuk
Sat Jan 23, 2021 10:26 pm
Forum: General
Topic: Frontend /JS library used for projects.raspberrypi.org
Replies: 1
Views: 143

Re: Frontend /JS library used for projects.raspberrypi.org

Using the browser's Developer Tools, I can see the page uses React and Redux JS libraries. However, the look comes from CSS styles, not the JS code.
by markkuk
Mon Jan 11, 2021 11:51 am
Forum: Python
Topic: Installing Python Package Mysql
Replies: 3
Views: 322

Re: Installing Python Package Mysql

KnobAWormer wrote:
Sun Jan 10, 2021 7:43 pm
when I try to import the mysql package inside a python script, I am told the package does not exist.
The correct import command is:

Code: Select all

import MySQLdb
See the documentation for details.
Make sure you are using python3 as your interpreter.
by markkuk
Sat Jan 09, 2021 10:24 am
Forum: Beginners
Topic: Connect a Raspberry Pi to a Linux Computer Via Ethernet to USB for Data Transfer
Replies: 1
Views: 96

Re: Connect a Raspberry Pi to a Linux Computer Via Ethernet to USB for Data Transfer

Throw away the USB-Ethernet adapters, connect the Cat6 cable into the Ethernet socket of your RPi4 ad the other end to a switch or router that's on the same LAN as the Ubuntu machine. Disable the WiFi connection on the Pi.

Go to advanced search