exFAT, NTFS, Mount Windows Shares

Pi 64-bit

  • The system already has ntfs-3g installed, but I’ve failed to get mounted and working NTFS formatted USB drive
  • For exFat is still the same
sudo apt install exfat-fuse
sudo apt install exfatprogs

To mount Windows shared directory:

sudo mount -t cifs //ip_address/share_name /home/$USER/local_directory -o username=win_user,password=win_pswd,uid=local_user,gid=local_group

Without UID & GID, the directory has been mounted as read-only. To get UID and GID just run the command:

id

Resourse: Raspberry Pi exFAT: Adding Support for exFAT File System – Pi My Life Up

Raspberry Pi: MongoDB

Installing MongoDB 7.0 on the Raspberry Pi 5 (Woodworm)

curl -fsSL https://pgp.mongodb.com/server-7.0.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg --dearmor
echo "deb [ arch=arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo chown mongodb:mongodb /var/log/mongodb/
sudo chown mongodb:mongodb /var/lib/mongodb/
sudo systemctl enable mongod
sudo systemctl start mongod
sudo systemctl status mongod

Source: Installing MongoDB 7.0 on the Raspberry Pi 5

Install PHP 8

Add repository:

sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list
sudo apt update

Install PHP 8.0 with command line interface (CLI):

sudo apt install -y php8.0-common php8.0-cli

Add additionally modules to support DBs, mbstring, etc.

sudo apt install -y php8.0-curl php8.0-gd php8.0-mbstring php8.0-xml php8.0-zip php8.0-mysqli # php8.0-pgsql if it's installed

Add Appache mod and restart the server

sudo apt install -y libapache2-mod-php8.0
sudo service apache2 restart

Install PostgreSQL on Ruspberry Pi OS

Install the latest available version of PostreSQL (any other required using postgresql-VERSION)

sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https:# Import the repository signing key:
sudo apt install curl ca-certificates
sudo install -d /usr/share/postgresql-common/pgdg
sudo curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc

# Create the repository configuration file:
sudo sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

# Update the package lists:
sudo apt update

# Install the latest version of PostgreSQL:
# If you want a specific version, use 'postgresql-16' or similar instead of 'postgresql'
sudo apt -y install postgresql//www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt update

sudo apt install postgresql
(more…)
Yandex.Metrica