Skip to content

Instantly share code, notes, and snippets.

@YongseopKim
Created December 19, 2023 05:42
Show Gist options
  • Save YongseopKim/fdcb784715b8319a123bbf2f4d390525 to your computer and use it in GitHub Desktop.
Save YongseopKim/fdcb784715b8319a123bbf2f4d390525 to your computer and use it in GitHub Desktop.
setup rasp4 & ubuntu-server-22.04.3LTS
dragon@ubuntu:~$ uname -a
Linux ubuntu 5.15.0-1034-raspi #37-Ubuntu SMP PREEMPT Mon Jul 17 10:04:44 UTC 2023 armv7l armv7l armv7l GNU/Linux
dragon@ubuntu:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
dragon@ubuntu:~$ cat /etc/netplan/01-netcfg.yaml
network:
renderer: networkd
ethernets:
eth0:
dhcp4: false
dhcp6: false
addresses: [your.ip.xxx.yyy/24]
nameservers:
addresses: [8.8.8.8]
routes:
- to: default
via: your.ip.xxx.1
version: 2
dragon@ubuntu:~$ cat /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
network: {config: disabled}
dragon@ubuntu:~$ sudo apt install openssh-server
dragon@ubuntu:~$ cat /etc/ssh/sshd_config
# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication yes
#PermitEmptyPasswords no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment