This is an old revision of the document!
RASPBERRY PI NOTES
By placing Raspberry Pi 4 in a vertical position. This improves airflow around the components and is surprisingly effective at keeping the temperature down.
cat /proc/device-tree/model vcgencmd measure_temp # to measure temperature cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq # cpu speed vcgencmd measure_clock arm
INSTALLATION:
fdisk /dev/mmcblk01 W95 FAT32 (LBA)
mkfs.vfat /dev/mmcblk0p1 umount /dev/mmcblk0p1 fsck.vfat /dev/mmcblk0p1 -V hdparm -t /dev/mmcblk0p1 # https://www.raspberrypi.org/downloads/raspberry-pi-os/ cd /run/media/jaime/7041-8377 unzip /home/jaime/Downloads/2020-02-13-raspbian-buster-full.zip wget https://balena.io/etcher/static/etcher-rpm.repo -O /etc/yum.repos.d/etcher-rpm.repo yum install -y balena-etcher-electron Or dd bs=1M if=/home/jsantosa/Downloads/2021-03-04-raspios-buster-armhf-full.img of=/dev/mmcblk0; sync # destination is whole disk, not partition! dd if=Damaso256GB.img of=/dev/sdc status=progress bs=4M
FOR HEADLESS INSTALLATION:
POST INSTALLATION:
OPENVPN SERVER RASPBERRY PI
https://dzone.com/articles/how-to-setup-an-openvpn-server-on-a-raspberry-pi
curl -L https://install.pivpn.io | bash # set it as static, you should have configured the dhcp reservation and port forwarding in the gw before this!. Nornally not required but this is the server config file /etc/openvpn/server.conf pivpn add nopass # to create profiles. IMPORTANT: in the .ovpn you have the static pub ip, Replace it with the DNS entry! # ^ .ovpn is generated and stored in /home/pi/ovpns # /var/log/openvpn-status.log # just 3-4 lines with status /var/log/openvpn.log /etc/openvpn/server.conf # all fields nicely explained here : https://github.com/OpenVPN/openvpn/blob/master/sample/sample-config-files/server.conf
watch cat /var/log/openvpn-status.log # to monotor the connections real time from the server side egrep myfavvpn /var/log/openvpn.log # myfavvpn is the name of the vpn (the ovpn file we imported). The below is the result of a successful connection. Apr 17 10:15:04 rpi2 ovpn-server[12760]: myfavvpn/77.227.75.59:3578 Data Channel: using negotiated cipher 'AES-256-GCM' Apr 17 10:15:04 rpi2 ovpn-server[12760]: myfavvpn/77.227.75.59:3578 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key Apr 17 10:15:04 rpi2 ovpn-server[12760]: myfavvpn/77.227.75.59:3578 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
! after generating the .ovpn in the server, we scp it to the client and place it in 'camarrealb' uci set openvpn.camarrealb=openvpn uci set openvpn.camarrealb.nordvpn.enabled='1' uci set openvpn.camarrealb.config='/etc/openvpn/camarrealb.ovpn' uci commit openvpn
WIREGUARD:
curl -L https://install.pivpn.io | bash # installs server pivpn add nopass # to create profiles.
service wg-quick@wg0 status
Requires private and private key in both ends:
ANYCONNECT CLIENT RASPBERRY PI
https://www.paulligocki.com/cisco-anyconnect-vpn-client-on-raspberry-pi/
sudo openconnect -u username -b vpn.server.com
sudo kill -9 $(pgrep openconnect | awk '{print $1}')
INSTALL ANTIVIRUS:
https://pimylifeup.com/raspberry-pi-clamav/
apt update apt upgrade apt install clamav clamscan # wait 5-10 mins before running this or will error
REMOTE DESKTOP:
# server ( install vnc server) vncpasswd -service raspi-config # change it so it boots in desktop mode # CLIENT vncviewer
If security errors, try this
RETROPIE:
/home/pi/.emulationstation /root/RetroPie/roms
LFUSE:
REICAST:
SD CARD READY:
sudo apt update sudo apt upgrade sudo apt install code ! Now teams for linux sudo apt update sudo apt install snapd sudo reboot sudo snap install core sudo snap install teams-for-linux sudo apt install terminator ! zoom via web, camera, keyboard via bluetooth all work ! reinstall chromuim and stick to it