All Raspberry Pi Backups, Commands, Instructions for baasic installation of tools I use.
- SSH into your Linux operating system with Terminal application on Windows, MacOS or Linux. (Replace the with the IP Address the device/computer/machine is addigned to on your local network)
ssh <user>@<ip address>Example if your device had an IP address of 192.168.1.100 and the user name was "root".:
ssh root@192.168.1.100- Copy and paste the following into terminal to run and install my custom menu. (Cyberpunk themed whiptail menu... FTW...)
curl https://raw.githubusercontent.com/jdomian/Raspberry-Pi/main/_install.sh --output _install.sh
chmod +x _install.sh
sudo ./_install.sh
https://www.maketecheasier.com/mount-windows-share-folder-linux/
To access root directory from a Windows shared folder via Linux to edit code through code-server installed on RPi4 and hosted at code-server.domian.network.
- Create a Windows shared folder on a Windows machine. Give Full control access to all users. We will reference this folder as "SharedFolderNameOnWindows" in the next steps.
- On Linux, install CIFS-utils. Run:
cd
sudo apt install cifs-utils- Make a directory on Linux where you will mount the shared drive. Name this directory whatever you want. Example, run:
sudo mkdir /mnt/WindowsSharedFolder- Once directory is created, run the following with the network address of the Windows machine and the file path for the Windows machine's shared folder. Change
<admin user>to the admin user on the Windows machine.
mount.cifs //192.168.1.1/c$/inetpub/wwwroot/SharedFolderNameOnWindows /mnt/WindowsSharedFolder -o user=<admin user>This should prompt you for a "ghosted" password. Enter the password for the user=<admin username> used in the above command.
- Windows drive should now be accessible on Linux at
/mnt/WindowsSharedFolder.
cd
sudo apt install cifs-utils
sudo mkdir /mnt/WindowsSharedFolder
mount.cifs //192.168.1.1/c$/inetpub/wwwroot/SharedFolderNameOnWindows /mnt/WindowsSharedFolder -o user=<admin user>- In terminal, change directory into "home" folder for user.
cd- Run the following to start bluetooth services.
sudo bluetoothctl- Turn on the bluetooth agent for detection.
agent on- Turn scanning on...
scan on- Look through list for MAC address and/or names of bluetooth devices you want to connect. Take note of MAC address, and "pair" by typing in "pair" followed by the devices MAC address.
pair XX:XX:XX:XX:XX:XX- If you're pairing a keyboard, you will need to enter a six-digit string of numbers. You will see that the device has been paired, but it may not have connected. To connect the device, type connect XX:XX:XX:XX:XX:XX.
connect XX:XX:XX:XX:XX:XXAll bash commands for bluetooth -- Personal MAC addresses for Keychron K4 (Bluetooth Input 3) and MX Master 3 (Bluetooth Input 3) below:
cd
echo This is for Keychron K4 and MX Master 3 using bluetooth input "3" on both devices.
sudo bluetoothctl
agent on
scan on
echo Pairing Keychron K4 (Bluetooth Input 3)
pair dc:2c:26:d4:f8:2b
echo Pairing MX Master 3 (Bluetooth Input 3)
pair c1:6c:7e:13:63:d5Run the following
- Install Legacy 64-Bit Lite OS on SD Card
- Insert SD Card and wait for boot
- Update, Upgrade and install Git
sudo apt-get upgrade && sudo apt-get update -y && sudo apt-get install git mpg123 -y- Install Waveshare drivers. Can use (this)[https://www.waveshare.com/wiki/WM8960_Audio_HAT#202302_System.2C_Driver_Loading] as a reference
git clone https://github.com/Sybility/WM8960-Audio-HAT.git
cd WM8960-Audio-HAT
sudo ./install.sh
sudo reboot- Reboot after Waveshare drivers are installed
- Download and test and MP3 file
wget https://file-examples.com/storage/fe9f6f893066954d9aac3a2/2017/11/file_example_MP3_700KB.mp3- Test the MP3 file
sudo mpg123 file_example_MP3_700KB.mp3