Showing posts with label Raspberry Pi OS. Show all posts
Showing posts with label Raspberry Pi OS. Show all posts

April 05, 2024

Home Assistant core install, Raspberry Pi and Python 3.12

The best way to start with Home Assistant(HA), and Raspberry Pi(RPi), is off course to use the ”Raspberry Pi imager” and in the menu select "Other specific-purpose OS => Home Assistant and home automation => Home Assistant". This will install the HA operating system.

It works very well and here are the install instructions

On the other hand if you want to add HA to a RPi which you already have up and running, without Docker, you need to install something which is called "Home Assistant Core".

Please check the "Remarks" below before you start.


March 05, 2024

OpenPlotter v4 Beta, install guide

OpenPlotter(OP), a Boat Navigation application, is really a nice and simple installation of

and other supporting applications for Your boat.

An overall information about the OP package is found here.

March 02, 2024

Raspberry Pi OS Lite with GUI, RDP, VNC, Chrome

Updated 2024-03-02 !

I like the Raspberry Pi(RPi), with Raspberry Pi OS Lite (no Desktop is included), headless operation, and then adding the software You need. Until now I haven't had a use case where I needed a Desktop but now was time. 

Why don't use the Raspberry Pi OS with Desktop ?? In that package there is a lot of software I don't need and I really want to optimize the RPi. I think that the less software You install the happier RPi will be...
😉

March 01, 2024

OpenPlotter V3, install guide

Updated 2024-03-01 !

OpenPlotter(OP), a Boat Navigation application, is really a nice and simple installation of
and other supporting applications for Your boat.

An overall information about the OP package is found here.

February 28, 2024

Raspberry Pi 2, 3, 4 USB SSD or USB drive boot

Updated 2024-02-28 !

After having tested several methods creating a bootable USB SSD, or other USB drive, for Raspberry Pi(RPi) 3 and 4, I finished with this simple method
  • Create the setup you want on a ordinary SD card(Or use existing)
  • Make a bootable backup/clone of the SD card saving it to the USB SSD
  • Remove the SD card and boot from the USB SSD
Having a RPi 4 ? Use this post on how to write the OS direct to the SSD.
 

February 20, 2024

Clone the Raspberry boot disk

Updated 2024-02-20 !

A very nice way to fix a backup is to make a copy, bootable, of the actual SD card You are using on the Raspberry Pi(RPi). This will be done even when the RPi is up and running !

This application can also be used to make a bootable SSD or USB drive !!

You clone from the command line so You don't need the standard GUI, Pixel, and the "SD card copier
" function.

It is also possible to set up a a scheduled job, cronjob explained later, which for example makes a clone every night at 1 o'clock.

January 07, 2024

RPi install Apache/PHP WEB-server

Updated 2024-01-07 ! OK with Bookworm & PHP 8.2 !

As a part of one of my project, the ultimate Weather site ? Weather34, I needed a WEB-host with PHP.

I started up with a fresh Raspberry OS Lite SD Card with Samba installed.

Log on, with ssh/terminal to the RaspberryPi(RPi), 
in this case hostname "pws01", and update the OS with

sudo apt update
sudo apt full-upgrade -y
sudo apt clean

go on and install the Apache server with

sudo apt install apache2

December 06, 2023

Raspberry Pi OS install with Mac/Windows/Linux

Updated 2023-12-06 !

When starting up a new project with Raspberry Pi I like to start up fresh and with a minimal OS. 
Therefore i always use Raspberry Pi OS(ROS) Lite and then adding what I need

Doing it right You don't have to use an external display, keybord and mouse, just a "sshclient.

Flash to a SSD ? Check this post.

November 08, 2023

Raspberry Pi watchdog made simple

Updated 2023-11-08 for Bookworm !

The purpose of a watchdog timer(WD) is very well described here but a more practical answer is;

If your Raspberry Pi(RPi) "freezes", or hangs, it will automagically reboot within a very short time.

This is made with a combination of hardware and software which is all ready available, on the RPi, and just have to be enabled.

After some hours Googling and testing these are my findings !

October 17, 2023

Raspberry headless install with WiFi

Updated 2023-10-17 !

To make a headless, without monitor, keyboard and mouse, install of Raspberry Pi OS on a Raspberry Pi(RPi) with built in WiFi and no LAN cable connection, please follow the instructions below.

For example the RPi Zero and Raspberry Pi 3 Model A+ don't have any LAN cable port so the setup is quite usable.

To make an active WiFi connection at first boot You have to use the "Advanced options" in Raspberry Pi Imager or create, old way, a configuration file called "wpa_supplicant.conf".

October 13, 2023

NetworkManager on Raspberry, easy start

Updated 2023-10-13 !

There is a "new kid in the block" called
NetworkManager(NM), configuration of network interfaces, which in OS "Bookworm", Debian 12, is replacing the former used dhcpcd.

NM isn't really new since the first public release was made 2004.

In this post I will write down some NM hints for an easy start since I didn't find any myself.

October 12, 2023

NetworkManager UI and access point, hotspot

Updated 2023-10-12 !

In a former post I shared some thoughts about how to start using NetworkManager (NM), on a Raspberry, and here I will continue with additional examples that can help with network setup.
  • NMTUI is NetworkManager text UI which can handle the most common tasks in a easy way.
  • An access point or hotspot will be configured.
  • "sudo nmcli connection edit xxxx" is a command that guides you throw a change of parameters.

October 02, 2023

Bluetooth Beacon and Raspberry

Updated 2023-10-02 !

The latest models of Rasberry Pi, (RPi), comes with built in Bluetooth, (BT), so how to receive data from Your Bluetooth devices ?


A Bluetooth Beacon, could be a RuuvuTag, is a device that You don't have to pair with, You just scan and receive the data that they are transmitting.

Start with checking that Your BT interface is working, in a terminal windowtyping

hciconfig 

July 12, 2023

Bluetooth and Node-Red

Updated 2023-07-12 !

There are some Node-Red nodes, (NRN), that are dependent on the old Noble package which don't work on Node > v8. 


One nice and simple NRN is the node-red-contrib-noble which have the same problem. I picked up the freshest source, dependent on @abandonware/noble, forked it and added install instructions. It works with Node <= v18. 

March 12, 2023

Upgrade from Buster to Bullseye, Raspberry

Uppdated 2023-10-28 !

I have been running a Raspberry Pi 2(RPi) for several years with Buster and the applications;

When I started with the RPi it was Jessie, then Stretch and Buster. Every time I upgraded the SD card to the latest OS and it just worked. It should been said that I always waited a year or so and I'm using the RPi headless without any GUI.

Now it was time to go from Buster to Bullseye !

March 11, 2023

Raspberry/Linux print server Windows/Apple, CUPS

Updated 2023-03-12 !

When we upgraded our WiFi to a Mesh solution, TP-link Deco M9, our old printer, WiFi connected, didn't want to "play" with us anymore. This was due to stronger encryption which wasn't supported. Since the printer just have WiFi or USB connection, no standard Ethernet, I was looking for another solution.

We have no computer running 24/7 except a Raspberry Pi, RPi, which is handling our home automation, Homebridge. So the solution was to use CUPS on that RPi.

On the web there are several posts/manuals how to install CUPS on a RPi so this post will refer to one of these and then some additional hints regarding, Apple AirPrint, Windows Network Printer, scanning....

March 01, 2023

NTP server on Raspberry & Linux(Offline)

Uppdated 2023-02-01 !

The use case, creating an offline NTP, was that I'm on our boat sometimes don't have an Internet connection but always have a connected GPS. The GPS updates time on a Raspberry(RPi) running Signal K.

The actual issue is that there are other devices on the LAN that needs to be updated and then you need an NTP server.

Of course this setup is also valid for a RPi/server, with a RTC, acting as a NTP server in an isolated LAN.  

November 06, 2022

Speedtest LAN and Internet/WAN, iperf3

Updated 2022-11-06 !

Sometimes I'm a little confused if it's the local network that is the bottleneck or if the ISP, Internet Service Provider, is slow.

In a former post I used 2 applikations to get the information, from both the local LAN and Internet, but on the other hand it maybe hade been nice with a more lightweight approach. 

From this post I got inspiration and discovered a nice little application "iperf3" which is available for several OS.

October 01, 2022

Internet speed measure II

New to Node-Red(NR) ? Maybe start with a simple application You direct can benefit from.

This application is measuring Your Internet connection at chosen intervals using speedtest.net and showing the result in a graph. If the speed is under a set value it will send You an e-mail.

Show the measured Internet speed in Apples Home app ?

August 14, 2022

Node-Red quick install

Updated 2022-08-14 !

Node-Red(NR) is Flow-based programming for the Internet of Things

This post isn't made as a complete install guide, there are several, just some links to the best information I have found.

The best thing is that even if you don't are a skilled programmer, but like logic flows, you can make really advanced things. It's pre-installed on some Raspberry Pi(RPi) distributions.