You are not logged in.

#1 2021-10-15 20:17:37

AndroGR
Member
From: Athens, Greece.
Registered: 2021-10-15
Posts: 53

Use a cellphone as a wifi adapter

When i first came to Linux I expected myself to have my hardware mostly recognized, which was true. However i recently finished building my computer and because i didn't like Windows, I decided to go with Linux directly. I downloaded Arch, since i had it already installed in multiple VMs, my laptop and my mobile phone (Don't ask about the last one lol) as my first distro, just to realize i didn't have any internet connection in the live session ! I ended up just switching to Debian, which i liked, but i still want Arch in my machine. To get internet connection in Debian, however, i had to do what's described in this post: https://easylinuxtipsproject.blogspot.c … ernet.html
My question is, how can i do that on a live session of Arch as well? I also use Android.


Arch | AMD Ryzen 5 1500X | AMD Radeon RX550 4GB | 16GB RAM (3200Mhz) | KDE Plasma | Linux Zen / Custom Kernel

Offline

#2 2021-10-15 20:27:03

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Use a cellphone as a wifi adapter


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2021-10-15 20:41:29

AndroGR
Member
From: Athens, Greece.
Registered: 2021-10-15
Posts: 53

Re: Use a cellphone as a wifi adapter

This one says i need to install a package.However i expect Arch to work without it, because even Debian did work without any other package. I will try i guess : )


Arch | AMD Ryzen 5 1500X | AMD Radeon RX550 4GB | 16GB RAM (3200Mhz) | KDE Plasma | Linux Zen / Custom Kernel

Offline

#4 2021-10-15 20:49:07

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,223

Re: Use a cellphone as a wifi adapter

The package is part of the live system. You should be able to follow it, you just have to not forget to install it into the actual system.

Offline

#5 2021-10-15 22:09:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Use a cellphone as a wifi adapter

AndroGR wrote:

i didn't have any internet connection in the live session

Did you explore why?  It might be easier to solve this problem directly rather than skirting the issue with tethering.  What is the wireless adapter hardware (output of lspci and / or lsusb)?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2021-10-15 22:55:45

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,641

Re: Use a cellphone as a wifi adapter

To answer the original question.  Connect the phone to your computer with a USB cable, set the phone to wireless tether mode.
From a shell, start dhcpcd as root.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#7 2021-10-16 09:35:16

AndroGR
Member
From: Athens, Greece.
Registered: 2021-10-15
Posts: 53

Re: Use a cellphone as a wifi adapter

Trilby wrote:
AndroGR wrote:

i didn't have any internet connection in the live session

Did you explore why?  It might be easier to solve this problem directly rather than skirting the issue with tethering.  What is the wireless adapter hardware (output of lspci and / or lsusb)?

The adapter works in Arch just like in every other system: The kernel finds it, but doesn't know what is it supposed to do. The chipset is RTL88x2BU, which isn't supported since long ago. There is nothing wrong with the kernel or the system, just the companies.


Arch | AMD Ryzen 5 1500X | AMD Radeon RX550 4GB | 16GB RAM (3200Mhz) | KDE Plasma | Linux Zen / Custom Kernel

Offline

#8 2021-10-16 09:36:07

AndroGR
Member
From: Athens, Greece.
Registered: 2021-10-15
Posts: 53

Re: Use a cellphone as a wifi adapter

ewaller wrote:

To answer the original question.  Connect the phone to your computer with a USB cable, set the phone to wireless tether mode.
From a shell, start dhcpcd as root.

Another quick question, i'm running out of USB ports, should I use the option Copy to RAM first?


Arch | AMD Ryzen 5 1500X | AMD Radeon RX550 4GB | 16GB RAM (3200Mhz) | KDE Plasma | Linux Zen / Custom Kernel

Offline

#9 2021-10-16 18:47:56

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,641

Re: Use a cellphone as a wifi adapter

AndroGR wrote:

Another quick question, i'm running out of USB ports, should I use the option Copy to RAM first?

Um, huh? hmm


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#10 2021-10-16 19:53:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,979

Re: Use a cellphone as a wifi adapter

He has one usb port (macbook failure, I guess) and cannot boot from there and attach his phone at the same time (and apple adapters cost apple amounts of money…)
So he wants to use

* copytoram=        If set to "y" or just "copytoram" without arguments,
                    all SquashFS are copied to "RAM". If you add the package
                    "pv" to the packages.x86_64 it is used to display the copy
                    progress.
                    Default: (unset)

https://gitlab.archlinux.org/mkinitcpio … bootparams to be able to remove the USB key after the boot process (and attach the phone) what sounds reasonable - but I've never tried.

In doubt it'll just fail and you learned something new ;-)

Online

#11 2021-10-16 21:16:49

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Use a cellphone as a wifi adapter

AndroGR wrote:

The adapter works in Arch just like in every other system: The kernel finds it, but doesn't know what is it supposed to do. The chipset is RTL88x2BU, which isn't supported since long ago. There is nothing wrong with the kernel or the system, just the companies.

There's a kernel module for that in the AUR - if you can download the source and have in stored somewhere accessible to the live system you should be able to get wireless up and running.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB