Skip to content

Latest commit

 

History

History
137 lines (114 loc) · 3.32 KB

File metadata and controls

137 lines (114 loc) · 3.32 KB

🚀 Odroid N2+ Onboarding Guide

📥 OS Installation on SD Card

  1. Download the Odroid N2+ OS from this link.
  2. Use Etcher to flash the image onto your SD card.

👤 User Account Setup

  1. Connect to the Odroid via a UART Module.
  2. Login using default credentials:
    • Username: odroid
    • Password: odroid
  3. Create a new user:
    sudo adduser teamlary
  4. Grant sudo privileges:
    sudo usermod -aG sudo teamlary
  5. Switch to the new user:
    su teamlary
  6. Create default directories:
    xdg-user-dirs-update
  7. Verify sudo access:
    sudo whoami
    Expected output: root
  8. Change the user password:
    passwd
  9. Remove the default odroid user:
    sudo su
    userdel odroid
    userdel -r odroid

🕒 Time Zone & Clock Configuration

Ensure an RTC module is installed. Perform the following on all Linux-based MINTS nodes:

  1. Check current time settings:
    timedatectl status
  2. Set system time zone to UTC:
    timedatectl set-timezone UTC
  3. Configure RTC to use UTC:
    timedatectl set-local-rtc 0
  4. Enable NTP synchronization:
    timedatectl set-ntp true

✅ After completion, verify synchronization using:

timedatectl status

Reference: Tecmint Guide

🌐 No Internet? Sync Time from RTC

If no internet is available, configure automatic RTC sync via /etc/rc.local:

  1. Edit the file:

    sudo nano /etc/rc.local
  2. Add the following script:

    #!/bin/bash
    
    if [ -f /aafirstboot ]; then 
        /aafirstboot start
    fi
    
    if ping -c 1 8.8.8.8 >/dev/null 2>&1; then
        echo "$(date): Internet detected - Syncing system clock..."
        sudo systemctl restart systemd-timesyncd
        sleep 10
    
        if timedatectl | grep -q "System clock synchronized: yes"; then
            echo "$(date): Writing system time to RTC..."
            hwclock -w
        else
            echo "$(date): System clock not synced yet. Skipping RTC update." >> /var/log/time_sync.log
        fi
    else
        echo "No internet connection: Syncing system time from RTC..."
        hwclock -s
    fi
    
    exit 0

Behavior:

  • 🌐 With Internet: Sync system clock via NTP and update RTC.
  • 🚫 Without Internet: Restore system clock from RTC.

🌐 DWAgent Remote Access Setup

📥 Installation

  1. On your DWService account, create a new agent.
  2. Download the installer for Ubuntu:
    wget https://www.dwservice.net/download/dwagent.sh
    chmod +x dwagent.sh 
    sudo ./dwagent.sh
  3. During installation, select Installer Code and enter the provided code to register the agent.
  4. Complete the setup by copying the agent code to your system.

❌ Uninstallation

To remove DWAgent:

sudo bash /usr/share/dwagent/native/uninstall

Follow the on-screen instructions to complete the uninstallation.