0xbaha / env-setup

This repository contains a script that can be used to set up an environment for web development and mail server.
https://gh.baha.my.id/env-setup
1 stars 0 forks source link

Setup for Raspberry Pi for Ubuntu #26

Open 0xbaha opened 3 years ago

0xbaha commented 3 years ago
  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.