On norns, toggle bottom PCB switch from RUN to DISK. Connect norns to linux computer via usb cable.
- download raspbian lite image: https://www.raspberrypi.org/downloads/raspbian/
- set up usbboot: https://www.raspberrypi.org/documentation/hardware/computemodule/cm-emmc-flashing.md
- copy image to norns emmc, for example:
sudo dd if=2017-11-29-raspbian-stretch-lite.img of=/dev/sdb bs=4MiB conv=fsync status=progress
Disconnect the boot USB port. Switch DISK back to RUN. Insert wifi.
Tape or weight down the power button. (Because a system file is not yet installed to keep the soft-power-switch on).
- connect to norns serial port:
screen /dev/ttyUSB0 115200
The remaining commands happen within the terminal session:
login is "pi" with password "raspberry"
sudo raspi-config
- Change password: sleep
- Network > Hostname (norns)
- Network > Wifi (set SSID/password)
- Interfacing > SSH (on)
- Advanced > Expand File System
- Localization > (set)
- Exit, Reboot
- ctrl-A-Z will quit
screen
re-login via ssh pi@norns.local
(pw is now sleep
)
continuing on within the ssh session:
update kernel
- get new kernel, put in linux computer
TODO
: get directly from gh
sudo tar -xvzf ~/kernel(...).tar.gz
sudo cp -R boot/* /boot/
sudo cp -R lib/* /lib/
sudo shutdown now
you can now remove the tape/weight from your power switch
run updates
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install vim git bc i2c-tools
change user name: we
sudo passwd root
- logout, login as root
usermod -l we -d /home/we -m pi
groupmod --new-name we pi
- exit, login as we
sudo passwd -l root
disable need for passwd with sudo
- sudo vim /etc/sudoers.d/010_pi-nopasswd
- change 'pi' to 'we'
- force write with :w!
clone norns-image for config setups
(this really needs to be done via screen
not ssh
because installing network-manager
kills the wifi connection)
NOTE: buster
branch of norns-image (to be commited to main)
git clone https://github.com/tehn/norns-image.git
cd norns-image
./setup.sh
DEV
sudo apt-get install libevdev-dev liblo-dev libudev-dev libcairo2-dev liblua5.3-dev libavahi-compat-libdnssd-dev libasound2-dev libncurses5-dev libncursesw5-dev libsndfile1-dev libjack-dev libboost-dev libnanomsg-dev
sudo apt install --no-install-recommends jackd2 libjack-jackd2-dev
sudo apt install --no-install-recommends ladspalist usbmount
libmonome
git clone https://github.com/monome/libmonome.git
./waf configure
./waf
sudo ./waf install
supercollider
sudo apt-get install libsamplerate0-dev libsndfile1-dev libasound2-dev libavahi-client-dev \
libreadline-dev libfftw3-dev libudev-dev libncurses5-dev cmake git
git clone https://github.com/supercollider/supercollider.git
cmake -DCMAKE_BUILD_TYPE=Release \
-DNATIVE=1 \
-DSSE=0 \
-DSSE2=0 \
-DENABLE_TESTSUITE=0 \
-DCMAKE_SKIP_RPATH=1 \
-DLIBSCSYNTH=0 \
-DSUPERNOVA=0 \
-DSC_IDE=0 \
-DSC_ED=0 \
-DSC_EL=0 \
-DSC_VIM=1 \
-DNO_X11=ON -DSC_QT=OFF ..
NOTE: must remove failing deprecated class manually! (as of writing this)
sc3-plugins
install norns
- just copy norns/maiden/dust release folders.
(clone your norns git)
cd norns
./waf configure
./waf
cd sc
./install.sh
note: you may need to run sclang once first (it will fail) before running norns/sc/install.sh
reboot, norns should boot up.
FIX NETWORK MANAGER (for shields)
edit /etc/dhcpcd.conf
--- add denyinterfaces wlan0
edit /etc/NetworkManager/NetworkManager.conf
to be:
[main]
plugins=ifupdown,keyfile
dhcp=internal
[ifupdown]
managed=true