Copy the img to the microSD card This step will take a lot of time. Mount the microSD card and make sure it flashes to the beaglebone: Uncomment the line: Connect to serial connection via screen All User LEDs should be solid on completion More info is available on the BeagleBoneBlack Wiki To connect via ssh: plugin beaglebone to computer via SSH vim Use the Debian Upgrade Script to update debian: Add the user Add your laptop's key to user's Generate better hostkeys Modfiy Change ssh banner: thank god for 1wire temp sensor blog posts: http://klaus.ede.hih.au.dk/index.php/BBB_and_OneWire iwconfig when can't find wlan0 interface (could be wlan1) Clone repoFlash eMMC with latest Debian image ¶
lsblkfdisk -l
dmesg for which /dev/ the serial connection is onscreenInitial setup ¶
Connect over SSH ¶
Wifi Setup ¶
wpa_passphrase (see Debian Wiki)/etc/network/interfacesifdown wlan0; ifup wlan0ip -o addr show to confirm that you have an ip addressUpdate debian ¶
#!/usr/bin/env bash
# Debian auto-upgrade script
# https://debian-handbook.info/browse/stable/sect.automatic-upgrades.html
# kill all cached creds
sudo -k
# ask for new creds
sudo -v
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update
yes '' | sudo apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgradeBasic security ¶
Make a root password ¶
pwgen: sudo apt-get install pwgenpwgen -Bsy 16 1passwdAdd a privileged non-root user ¶
pwgen -Bsy 16 1sudo groupadd sudo-user
sudo groupadd ssh-user
useradd tyler
mkdir /home/tyler
mkdir /home/tyler/.ssh
touch /home/tyler/.ssh/authorized_keys
chown -R tyler:tyler /home/tyler
chmod 700 /home/tyler/.ssh
chmod 600 /home/tyler/.ssh/authorized_keys
usermod -a -G sudo-user tyler
usermod -a -G ssh-user tyler
usermod --shell /bin/bash tyler
passwd tyler
EDITOR=vim visudo -f /etc/sudoers.d/sudo-user%sudo-user ALL=(ALL) NOPASSWD:ALLauthorized_keysRemove demo user ¶
userdel -fr debianLockdown ssh ¶
/etc/ssh/sshd_config to make it like below:service ssh restartFun Stuff ¶
Things to remember ¶
Installing Neovim ¶
Setup Neovim ¶
Posted
Posted