This document helps get an OPI setup quickly and easily. After that you just need to install your software or start using the board. This was for an OPI4 but I used the same process on my OPI3
Download the current distro and load onto your SD card. Boot to Armbian/OPI via the micro SD card or USB (I used micro SD)
You will need a monitor, keyboard and mouse until we setup SSH.
Once you boot, right click on the desktop (presuming you used the orange pi distro) and open a new terminal here.
Now load up sudo orangepi-config
the password on the default distro is “orangepi”
First, enable the networking. NETWORK->WIFI
(unless your using it wired only, you’ll need this)
Connect to your network and enter the password. Once that is connected return to the main menu (Press escape).
Now go into “System” and select AVAHI and let that install. This announces your device
on your network reliably.
Now lets go to the SSH section and configure it, it will run an installation and present you some
options for security. Choose what works best for you but I suggest disabling root login and phone authentication. Save these options.
Since we are here, go to System and lets set maximum performance, this is optional and causes more power to be used, but the performance is there so you decide.
Once this is done, return to the main menu.
This configures the machine for your specific use.
For this initial setup, go into SOFTWARE->SOFTY
Choose Samba so you can modify files remotely.
Samba username is “orangepi”
Password is “orangepi”
Your network should be your home windows workgroup name (if applicable).
It will prompt for the configuration for samba. You’re on your own here, if I have time I will come back but the defaults and a little googling you can get this part wrapped if the defaults dont work. I’ll try and come back here and fix this part of the doc if I make major changes to mine.
Now that its done, exit softy to the software menu.
Now REMOVE the other software, you’ll want the disk space.
Exit the orangepi-config
by hitting escape to exit the app.
Now from the shell prompt enter
sudo apt remove --purge libreoffice* kodi*
This should reduce the amount of files we have to copy for EMMC and will go faster.
Your Filesystem should now look something like this.
orangepi@yourhostname:~$ df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 387M 18M 369M 5% /run
/dev/mmcblk2p1 29G 3.2G 25G 12% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 1.9G 28K 1.9G 1% /tmp
/dev/zram1 47M 2.4M 42M 6% /var/log
tmpfs 387M 76K 387M 1% /run/user/1000
Note that the installed space is only 3.2gb on the card which means on a OPI4 LTS you’ll have over 12GB free for applications! You can optinally leave the kodi and libreoffice but unless you’re planning to use those apps they just take up unnecessary space.
Lets move on to the last step of this section.
Now change the defualt password for orangepi to something you can remember but is not the default password.
passwd
Once that is complete lets reboot and confirm that you can login, and connected to wifi.
sudo reboot
Once you log back in, open a terminal window again and then proceed to the next step.
Run the following command to copy to the EMMC and then install the rest since that will help with performance. This process will ask you to copy the SD to the EMMC and will reboot. If everything goes well with the copy, remove the SD card and reboot.
sudo nand-sata-install
Select "Boot from eMMC - System on eMMC
Yes, this will delete everyting on the EMMC (Choose Yes)
Select ext4 unless you feel you need to be a fancy pants.
This will then format the eMMC and start the transfer.
If successful it will shutdown, remember to remove the MicroSD card before the power cycle.
Now that you have the SD card setup, save the SD card or use the raspi imager to create an install media from your SD card. Its configured and setup so you only need to change the machine name again in orangepi-config
to have another OPI fully setup. The rest of this document is just softare installs.
Then Proceed to next step.
Once your OPI reboots from eMMC you should have a MUCH faster system. Now lets update the core OS software on it.
sudo apt update ; sudo apt upgrade -y
That command will update everything and get you current. After this you’re all set to start using your OPI!
https://robotics.stackexchange.com/questions/101459/how-to-add-a-pubkey