You can connect your phone to your computer with an usbUSB cable and share your mobile internet with usbUSB tethering. After that you can install wpa_supplicant and other tools to connect wifi
The settings menu can different from device to device but it generally goes like this
- Turn on your cellular data or connect to a wifi on your phone
- Connect your phone to your pc with an USB cable
- Go to settings in your phone
- Find the hotspot and tethering settings
- Activate USB tethering
Now you should be able to access the internet through your phone. Now all you gotta do is install wpa_supplicant on your pc with:
sudo apt install wpa_supplicant
 
                