(more…)
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 with Node.js
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
Raspberry Pi: MongoDB + Python
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
MongoDB and PHP on Raspberry OS
Install MongoDB drivers
Install PECL
sudo apt install php-pear phpX.X-dev # X.X is PHP verion used
sudo pecl install mongodb # the system could require to update PECL # sudo pecl channel-update pecl.php.net(more…)
Visual Studio Code on Raspberry Pi 64-bit
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…)
Install Node.js and NPM on Raspberry Pi
[1: Recommended] for 64-bit only. Raspberry OS 32-bit is already coming with Node-Red pre-installed
you will get:
- node.js and npm installed (LTS version)
- pigpio module
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)