Published on Jan. 31, 2024
Go homeSetting up a OKDO Rockpi SE
I purchased an OKDO Rockpi SE to run Adguard Home, these are the steps I used to get it setup.
If you know how to use ansible check out https://github.com/BradleyKirton/adguard_ansible.
Download the appropriate image
OKDO images can be found here https://www.okdo.com/software-hub/.
I used the rock-4se_debian_bullseye_cli_b38.img.xz
image.
Flash the image to a micro USB
xz -d rock-4se_debian_bullseye_cli_b38.img.xz # Decompress the image
sudo dd bs=4M if=rock-4se_debian_bullseye_cli_b38.img of=/dev/sdd conv=fsync oflag=direct status=progress
Once flashed plug it all in and power up the board.
login: radxa
password: radxa
Update sudoers
sudo sh -c 'echo "radxa ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/sudoers'
Connect to wifi
If you are not connected via the Ethernet port you can connect to a WIFI with nmcli.
sudo nmcli dev wifi connect <SSID> password <password>
Install Adguard
Upgrades the distribution and installs all the stuff.
sudo apt update
sudo apt upgrade
sudo apt install ufw zsh git avahi-daemon avahi-utils libnss-mdns
sudo apt autoremove
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -v
sudo /opt/AdGuardHome/AdGuardHome -s install # If not already installed
sudo /opt/AdGuardHome/AdGuardHome -s start # If not already started
sudo /opt/AdGuardHome/AdGuardHome -s status # If not already started
sudo ufw allow ssh http 3000/tcp
sudo ufw enable
sudo hostnamectl set-hostname adguard
sudo systemctl enable avahi-daemon.service
sudo systemctl start avahi-daemon.service
sudo reboot
Enable autologin
mkdir /etc/systemd/system/getty@tty1.service.d/
sudo nano /etc/systemd/system/getty@tty1.service.d/autologin.conf
[Service]
ExecStart=
ExecStart=-/sbin/agetty -o '-p -f -- \\u' --noclear --autologin radxa %I $TERM
Check if it is accessible
Try connecting to the adguard page with either the board IP address or the hostname we set above.
Navigate to http://adguard.local:3000.