Slackware and Android smartphone connectivity over USB cable.
by FlinchX from LinuxQuestions.org on (#5BCE1)
I have a Slackware64-14.2 Linux having Internet access over a Wired 100MBs Ethernet cable. I also bought an Android phone today. The model is Redmi 9C NFC, but I didn't have time to go to an Mobile provider, It's just the phone. And the charger - a power supply with and USB socket + an USB-to-MicroUSB cable.
My problem is that I would like to provide internet access to the phone if possible. Over the USB cable. My restriction is I have no wireless devices at home and literally zero chances to get one until next year.
I've found something called Tethering in the phone, but as I understand, this is the opposite case to mine - when I would need to provide internet access from the phone to the desktop.
My question is: If I get the USB-to-microUSB cable, I plug the USB into the desktop that has internet over Ethernet and runs Slackware64-14.2, then the micro-USB in the smartphone, can I make the desktop share the connection to the smartphone? And what exactly should I do on Slackware? I'd be happy to read a tutorial and learn myself, then ask additional questions if I get any. After spending one hour of time earlier today trying to find such a tutorial online, and failing, I'm reaching you guys for help.
Hacks like rooting the phone myself are excluded, I'm asking if it's possible by exclusively doing some command line black magic on my Slackware desktop.


My problem is that I would like to provide internet access to the phone if possible. Over the USB cable. My restriction is I have no wireless devices at home and literally zero chances to get one until next year.
I've found something called Tethering in the phone, but as I understand, this is the opposite case to mine - when I would need to provide internet access from the phone to the desktop.
My question is: If I get the USB-to-microUSB cable, I plug the USB into the desktop that has internet over Ethernet and runs Slackware64-14.2, then the micro-USB in the smartphone, can I make the desktop share the connection to the smartphone? And what exactly should I do on Slackware? I'd be happy to read a tutorial and learn myself, then ask additional questions if I get any. After spending one hour of time earlier today trying to find such a tutorial online, and failing, I'm reaching you guys for help.
Hacks like rooting the phone myself are excluded, I'm asking if it's possible by exclusively doing some command line black magic on my Slackware desktop.