Skip to content

Setup for Raspberry Pi for Ubuntu #26

@0xbaha

Description

@0xbaha
  1. Download and install the OS to the SD card using Raspberry Pi Imager.
  2. First login using username ubuntu and password ubuntu.
  3. Create new user.
    # Create the user
    sudo adduser $NEW_USERNAME
    # Add to sudo group
    sudo usermod -aG sudo $NEW_USERNAME
  4. Logout, then log in using the new user.
  5. Remove default user.
    sudo userdel -r ubuntu
  6. Change hostname.
    sudo hostnamectl set-hostname $NEW_HOSTNAME
  7. Change timezone.
    # Set timezone
    sudo timedatectl set-timezone $TIMEZONE
  8. Configure WiFi network in sudo vi /etc/netplan/01-netcfg.yaml
    network:
        ethernet:
            eth0:
                dhcp4: true
                optional: true
        version: 2
        wifis:
            wlan0:
                access-points:
                    $SSID_NAME:
                        password: $SSID_PASSWORD
                dhcp4: true
                gateway4: $IP_GATEWAY # Example 192.168.1.1
                nameservers:
                    addresses: [208.67.222.222, 208.67.220.220] # OpenDNS
  9. Clone this project and open the folder.
    git clone https://github.com/ba1x/env-setup.git
    cd env-setup
  10. Run command sudo ./setup.sh and choose option Raspberry Pi (Ubuntu Desktop) to initiate the setup, install the required applications, and end up the setup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions