Issue Printer

From CCCHHWiki
Revision as of 23:13, 1 July 2018 by Marble (talk | contribs)
Jump to: navigation, search

Write Orange Pi Image to microSD Card.

# download latest armbian image archive
wget -O image.7z
# extract image from archive
7z e image.7z
# put image on SD card
sudo dd if=Armbian_5.38_Orangepizero_Debian_stretch_next_4.14.14.img of=/dev/mmcblk0 status=progress
# flush block device buffer to ensure that SD card is written

Plug the SD card into the Orange Pi, connect it to the network vie ethernet and power it up. Search for Orange Pi in network.

nmap -p 22 | grep open -B 4 | grep -Po '\d+\.\d+\.\d+\.\d+' | tee /tmp/wo
### power the Orange Pi on and wait a minute
sleep 60s
nmap -p 22 | grep open -B 4 | grep -Po '\d+\.\d+\.\d+\.\d+' | tee /tmp/w
diff /tmp/w /tmp/wo

SSH onto machine with username root and password 1234 Play through the dialog and create a new user with username user and password user. All other options are irrelevant.

# maximize partition size
echo ", +" | sfdisk -N 1 /dev/mmcblk0 --force
resize2fs /dev/mmcblk0p1
# set root password to root
usermod root --password root
# add user to sudo group
usermod user --append --groups sudo
su user
apt update
apt upgrade