How to Connect a Ubuntu Server System to a Wi-Fi Network
45.4 هزار بار بازدید -
3 سال پیش
-
In this video, I show
In this video, I show you how to connect a system running Ubuntu Server to a Wi-Fi network.
Links:
Ubuntu Packages: packages.ubuntu.com/
Commands:
chmod 777 -R [path to directory] (example: chmod 777 -R /media/drew/writable): Recursively changes the permissions of a directory to make it writable.
mount [path to storage volume] [mount point] (example: mount /dev/sda3 /mnt): Mounts a storage volume to the specified mount point.
umount [path to storage volume] (example: umount /dev/sda3): Unmounts a storage volume (sorry for not mentioning that in this video).
cd [path to directory] (example: cd /etc/netplan): Changes the active directory in the shell.
ls: Lists the contents of the active directory.
dpkg -i *: Installs all packages in the active directory.
rm [path to file] (example: rm 50-cloud-init.yaml.dist-subiquity): Permanently deletes a file.
nano [path to file] (example: nano 00-installer-config.yaml): Allows you to edit a plain text file.
netplan generate: Generates the network configuration for your Ubuntu server based on your Netplan configuration file, and checks for errors in your Netplan configuration file in the process.
netplan apply: Applies your network configuration.
*If you get a "permission denied" error when attempting to run any of the above commands, just add "sudo" to the beginning of the command (like this: sudo dpkg -i *), and try again.
Sample Netplan Configuration File:
network:
version: 2
wifis:
wlp1s0:
dhcp4: no
addresses: [192.168.0.101/24]
nameservers:
addresses: [1.1.1.1, 1.0.0.1]
access-points:
'Network Name':
password: 'Wi-Fi Password'
routes:
- to: default
via: 192.168.0.1
3 سال پیش
در تاریخ 1400/04/14 منتشر شده
است.
45,495
بـار بازدید شده