Raspberry Pi

From aoxoaWiki
Jump to navigationJump to search

I will organize these at some point, but right now I just want to store these somewhere....

Raspberry PI OS (Debian)

Burn New OS to SD Card on a Mac

Reference: Copying an operating system image to an SD card using Mac OS

Download latest version of the O/S from RaspberryPi.org

Get device id of card

  diskutil list

Assuming /dev/disk6 from this point. Also assuming that OS image file is in the current directory and is named 2021-03-04-raspios-buster-armhf.img

Unmount the disk

  sudo diskutil unmountDisk /dev/disk6

Use 'dd' to copy the image (note use of 'raw' disk rdisk6)

  sudo dd bs=1m if=2021-03-04-raspios-buster-armhf.img of=/dev/rdisk6; sync

This can take a while.... Unmount the disk when done, place in the Pi, and start.

CMake

Installing cmake.

  cd Downloads
  wget https://cmake.org/files/v3.4/cmake-3.4.1.tar.gz
  tar xvfz cmake-3.4.1.tar.gz
  cd cmake-3.4.1
  sudo ./bootstrap
  sudo make
  sudo make install

Reference OSDevLab - Installing CMake

NOTE - this takes quite a bit of time to run....

libcurl

  cd Downloads
  sudo apt-get install libcurl4-openssl-dev
  git clone https://github.com/curl/curl.git
  cd curl
  cmake .
  ./configure        <--- command not found, so skipped this
  make -j4
  sudo make install

Reference libcurl install script for Raspberry Pi 3

JavaFX on the rPi

JavaFX is no longer include with the Java JDK distributions. Here are some notes on how to install it.

1. Run java -version on the ComfilePi to verify the installation. If the Oracle JDK is not installed, run sudo apt-get install oracle-java8-jdk

2. Download an OpenJFX binary archive from one of the OpenJFX Community Builds. In this demonstration we will use OpenJFX 8u60 stable for armv6hf from https://chriswhocodes.com/.

3. Overlay the OpenJFX archive on top of the existing JDK by running the command sudo unzip openjfx-8u60-sdk-overlay-linux-armv6hf.zip -d /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/

These instructions came from the ComFile Document Library


APT-GET The following signatures were invalid...

  sudo apt-get install aptitude
  sudo aptitude -o Acquire::http::No-Cache=True -o Acquire::BrokenProxy=true update
  sudo apt-get clean
  cd /var/lib/apt
  sudo mv lists lists.old
  sudo mkdir -p lists/partial
  sudo apt-get clean
  sudo apt-get update

If that does not work, look at the contents of the sources.list (remove the troublesome repo if it is there):

  cat /etc/apt/sources.list

If not found there, additional repos can be found in the following folder. List its files, and then look for a match for the problem repo:

  sudo ls -al /etc/apt/sources.list.d/


MySql/MariaDB on Pi

  sudo apt-get update
  sudo apt-get upgrade
  sudo apt-get install mariadb-server
  sudo mysql_secure_installation
  sudo mysql -u root -p


Reference #1 Setting up MariaDB on a Raspberry Pi

Reference #2 MySQL

PostgreSql on Pi

I haven't tried this yet, but I am beginning to prefer Postgres to MySQl, so i probably will want to try this soon

PostgreSql



Back to Main Page