sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt install -y nodejs npm puredata python3-pip python-pip python3 python -y
wget -q https://git.io/voEUQ -O /tmp/raspap && bash /tmp/raspap
sudo apt-get install --no-install-recommends xinit
sudo apt-get install -y raspberrypi-ui-mods rpi-chromium-mods
sudo reboot
boot to the console for most things and only start the Pixel desktop as required using the command startx
scp (-r recursive) C:\file\place\ pi:/home/pi/
htop
du -h --max-depth=1
ifconfig // shows your ip , then nmap with your local range
sudp apt-get install nmap
nmap -sn 192.168.1.0/24
find -name FileName
whereis thispatch.pd
thispatch*
sudo ls -altrh /home/pi/foldertoCheck
scp -r folder_to_send pi:folder_to_receive/
C:\Users\x\.ssh
config[file]--
Host pi
HostName 192.168.0.19
User pi
----
ssh-keygen -t rsa -b 4096 -C "your@mail.com"
scp .ssh/id_rsa.pub pi:/home/pi/
rm /home/pi/.ssh/authorized_keys
cat /home/pi/id_rsa.pub >> /home/pi/.ssh/authorized_keys
Example . Start puredate without GUI (from terminal) with a sample rate of 44100 , verbose to debug more messages
The name of the interface, in this case MobilePre , size of the audio buffer -audiobuf 32 samples , add a midi device in
pd -nogui -r 44100 -verbose -audioadddev MobilePre -audiobuf 32 -midiaddindev /dev/midi2
// see pf -h for a full list of commands available
//or alternatively
noaudioin: True
audiobuf: 32
rate: 44100
nomidiin: False
midiindev1: 0
nomidiout: False
midioutdev1: 0
path1: /home/pi/pd/externals
npath: 1
standardpath: 1
verbose: 1
flags: -nogui -rt
sudo ln -s /home/pi/.pdsettings /root/.pdsettings
control of the patches via web interface from any device, see my github AutomataPdosc thingy
npm install socket.io express http
speaker-test -t sine -f 440 -c 2 -s 1
amixer cset numid=1 -- 98%
nano .bash_aliases
#### check pi reported temperature from terminal
alias temp='vcgencmd measure_temp'
alias restart='sudo reboot'
alias ciao='sudo shutdown -h now'
alias delf='sudo rm -r'
alias pgrep='ps aux | grep '
alias bhist='cat ~/.bash_history | grep '
```
#### fancy temp meter GPU AND CPU ºC
https://www.cyberciti.biz/faq/linux-find-out-raspberry-pi-gpu-and-arm-cpu-temperature-command/
#### wifi setup
You can create a file called wpa_supplicant.conf and drag it to the SD card on your laptop with the raspberry OS
#### at boot it will try to connect to that wifi with the specified data
#### wpa_supplicant.conf //////
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=DE
network={
ssid="WIFI NAME"
psk="WIFI PASSWORD"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
}
/////////////////////////////////////
### i2c display
```zsh
OLED Pin Pi GPIO Pin Notes
Vcc 1 3.3V
Gnd 14 Ground
SCL 5 I2C SCL
SDA 3 I2C SCA
git clone https://github.com/adafruit/Adafruit_Python_SSD1306.git
i2cdetect -y 1
// ~/.tmux.conf
set -g default-terminal 'screen-256color'
set -g history-limit 10000
set -g status-fg green
set -g status-bg black
set -g mouse on
#bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e; send-keys -M'"