How to set up WiFi on Ubuntu 22.04

0. Before Installation

Environment
- CPU : Intel
- OS : Ubuntu 22.04 amd64 (64bit)

1. If your computer can connect to the internet


Ironically, an internet connection is essential to set up WiFi. If there is built-in WiFi, tethering can be connected through Bluetooth in settings.

sudo apt-get update && sudo apt-get upgrade -y
sudo apt update && sudo apt upgrade -y
sudo apt install linux-generic-hwe-22.04
reboot

2. If your computer cannot connect to the internet

If you are in a situation without internet access, or if installation and downloads are slow, then use a USB.

The Ubuntu versions on Computer 1 and 2 must be the same. If they are different, then use Docker.

Run the command below on a computer with an internet connection. (Computer 1)
# Download *.deb
sudo apt-get install --download-only linux-generic-hwe-22.04 -y

# /dev/sdb1 : Replace /dev/sdb1 to your USB Drive route
cd /dev/sdb1
mkdir my-packages/
sudo cp /var/cache/apt/archives/*.deb /dev/sdb1/my-packages

Run the command below on a computer without an internet connection. (Computer 2)
cd /dev/sdb1/my-packages
sudo dpkg -i *.deb
reboot

댓글