hackedmacbook111
Posts: 75
Joined: Sun Apr 19, 2020 11:27 pm
Contact: YouTube

I want to get internet to my pc from raspberry pi 4

Sun May 24, 2020 3:24 am

Does anyone have a tutorial of the coverting to wifi to run through ethernet to a pc
I need a tutorial compatible with raspberry pi 4 if you have one please post it below
There are some apps I need to use that require internet and are only for amd64 pc
this is why I need to get internet
please post tuttorial for raspberry pi 4

W. H. Heydt
Posts: 12129
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: I want to get internet to my pc from raspberry pi 4

Sun May 24, 2020 4:11 am

How are you connecting the the internet in the first place? For instance, do you have a router and a WAN connection to an ISP?

User avatar
thagrol
Posts: 2751
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: I want to get internet to my pc from raspberry pi 4

Sun May 24, 2020 12:49 pm

You don't need a tutorial specific to a 4B. The WiFi hardware is the same as the 3B(+), the ethernet hardware is not but that doesn't matter for this usage.

As you mention sharing the Pi's WiFi connection to its ethernet port, I'm going to assume that your internet connection is provided by a router with a buitl in WiFi AP. Most domestic routers also have ethernet ports.

The simplest solution is to connect your PC to your router either by WiFi (add a cheap USB WiFi adapter if it's not built in)or by ethernet (add a cheap USB ethernet adapter if it's not built in).

If you have a compelling reason for going via the Pi, you need to set it up to route traffic between the WiFi and ethernet interfaces.

Google (or your preferred search engine) will have plenty of tutorials. Raspian turotials fist, then debian ones, then more general linux ones.
Attempts to contact me outside of these forums will be ignored unless signed in triplicate, sent in, sent back, queried, lost, found, subjected to public enquiry, lost again, and finally buried in soft peat for three months and recycled as firelighters

hackedmacbook111
Posts: 75
Joined: Sun Apr 19, 2020 11:27 pm
Contact: YouTube

Re: I want to get internet to my pc from raspberry pi 4

Sun May 24, 2020 1:52 pm

The reason I want to use a pi is I recently bought a wifi usb adapter for my pc but it won't connect to my network because its 5G
Also my PC is in a different room thsn the router so an ethernet cable going from the router to the pc won't work.
This is why I want to use a raspberry pi 4 because I think I will get faster internet through it compared to my raspberry pi 3B+
If raspberry pi 3 B= would be better to use I could use a raspberry pi 3 B+ instead

drgeoff
Posts: 10538
Joined: Wed Jan 25, 2012 6:39 pm

Re: I want to get internet to my pc from raspberry pi 4

Sun May 24, 2020 2:10 pm

hackedmacbook111 wrote:
Sun May 24, 2020 1:52 pm
The reason I want to use a pi is I recently bought a wifi usb adapter for my pc but it won't connect to my network because its 5G
What is 5G? Your network or the USB Wi-Fi adaptor?

It is rare that Wi-Fi equipment which supports 5GHz does not also support 2.4GHz.

hackedmacbook111
Posts: 75
Joined: Sun Apr 19, 2020 11:27 pm
Contact: YouTube

Re: I want to get internet to my pc from raspberry pi 4

Sun May 24, 2020 2:18 pm

It is my network it only supports 5GHs not 2.4GHs this is why I need to use a raspberry pi to make the conversion
both the raspberry pi 3 and 4 allow me to connect to this 5G network

User avatar
thagrol
Posts: 2751
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: I want to get internet to my pc from raspberry pi 4

Sun May 24, 2020 5:05 pm

So the relevant thing is to do an internet search on using linux on a Pi as a router.

Incidentally, the 3B is only 2.5Ghz. You need a 3B+ for 5GHz. If you really haev a 3B and it connects to your WiFi, it'll be because your WiFi does support 2.4GHz.

You might want to consider ethernet over mains wiring (aka Powerline). I'd expect that to be fatser than WiFi. IT'll certainly be easier to setup.

I doubt that you'll see much difference in network performance between a 4B and a 3B(+). The limiting factor is likely to be the speed of the connection to the internet not the perofrmace of the Pi.

Incidentally, because you can't bridge a WiFi client interface and an ethernet interface, your PC will be behind two routers. Which means two layers of NAT, two firewalls, and two sets of port forwarding configurations to manage. It also means that other machines on your network won't be able initiate a connection to the PC without additional configugartion on the Pi.

There's a whole bunch of additional networking you'll need to consider, learn about and set up to do this.
Attempts to contact me outside of these forums will be ignored unless signed in triplicate, sent in, sent back, queried, lost, found, subjected to public enquiry, lost again, and finally buried in soft peat for three months and recycled as firelighters

W. H. Heydt
Posts: 12129
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: I want to get internet to my pc from raspberry pi 4

Sun May 24, 2020 5:32 pm

hackedmacbook111 wrote:
Sun May 24, 2020 1:52 pm
The reason I want to use a pi is I recently bought a wifi usb adapter for my pc but it won't connect to my network because its 5G...
I suggest getting into the habit of distinguishing between "5G" (a cellular phone network protocol) and "5Ghz" a frequency band used by a number of WiFi standards.

hackedmacbook111
Posts: 75
Joined: Sun Apr 19, 2020 11:27 pm
Contact: YouTube

Re: I want to get internet to my pc from raspberry pi 4

Sun May 24, 2020 5:52 pm

I have raspberry pi 3 B+

hackedmacbook111
Posts: 75
Joined: Sun Apr 19, 2020 11:27 pm
Contact: YouTube

Re: I want to get internet to my pc from raspberry pi 4

Sun May 24, 2020 5:53 pm

I found a tutorial on the internet and after I finished seting it up
I trid to start service and got error
Job for dnsmasq.service failed because the control process exited with error code.
See "systemctl status dnsmasq.service" and "journalctl -xe" for details.

User avatar
thagrol
Posts: 2751
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: I want to get internet to my pc from raspberry pi 4

Sun May 24, 2020 6:07 pm

hackedmacbook111 wrote:
Sun May 24, 2020 5:53 pm
I found a tutorial on the internet and after I finished seting it up
I trid to start service and got error
Job for dnsmasq.service failed because the control process exited with error code.
See "systemctl status dnsmasq.service" and "journalctl -xe" for details.
So run the suggested commands and examine their output:

Code: Select all

systemctl status dnsmasq.service
journalctl -xe
If you don't know what to do with the output, post it here along with any relevant configuration files you have modified and a link to the tutorial you're using.
Attempts to contact me outside of these forums will be ignored unless signed in triplicate, sent in, sent back, queried, lost, found, subjected to public enquiry, lost again, and finally buried in soft peat for three months and recycled as firelighters

hackedmacbook111
Posts: 75
Joined: Sun Apr 19, 2020 11:27 pm
Contact: YouTube

Re: I want to get internet to my pc from raspberry pi 4

Sun May 24, 2020 7:00 pm

Here is the Output

[email protected]:~ $ systemctl status dnsmasq.service
● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; vendor preset:
Active: failed (Result: exit-code) since Sun 2020-05-24 11:50:48 MDT; 1h 6min
Process: 452 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCC
Process: 474 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=2

May 24 11:50:47 raspberrypi systemd[1]: Starting dnsmasq - A lightweight DHCP an
May 24 11:50:47 raspberrypi dnsmasq[452]: dnsmasq: syntax check OK.
May 24 11:50:48 raspberrypi dnsmasq[474]: dnsmasq: failed to create listening so
May 24 11:50:48 raspberrypi dnsmasq[474]: failed to create listening socket for
May 24 11:50:48 raspberrypi dnsmasq[474]: FAILED to start up
May 24 11:50:48 raspberrypi systemd[1]: dnsmasq.service: Control process exited,
May 24 11:50:48 raspberrypi systemd[1]: dnsmasq.service: Failed with result 'exi
May 24 11:50:48 raspberrypi systemd[1]: Failed to start dnsmasq - A lightweight
...skipping...
● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; vendor preset:
Active: failed (Result: exit-code) since Sun 2020-05-24 11:50:48 MDT; 1h 6min
Process: 452 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCC
Process: 474 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=2

May 24 11:50:47 raspberrypi systemd[1]: Starting dnsmasq - A lightweight DHCP an
May 24 11:50:47 raspberrypi dnsmasq[452]: dnsmasq: syntax check OK.
May 24 11:50:48 raspberrypi dnsmasq[474]: dnsmasq: failed to create listening so
May 24 11:50:48 raspberrypi dnsmasq[474]: failed to create listening socket for
May 24 11:50:48 raspberrypi dnsmasq[474]: FAILED to start up
May 24 11:50:48 raspberrypi systemd[1]: dnsmasq.service: Control process exited,
May 24 11:50:48 raspberrypi systemd[1]: dnsmasq.service: Failed with result 'exi
May 24 11:50:48 raspberrypi systemd[1]: Failed to start dnsmasq - A lightweight
~
~
~
~
~
~
~
~
~
...skipping...
● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; vendor preset:
Active: failed (Result: exit-code) since Sun 2020-05-24 11:50:48 MDT; 1h 6min
Process: 452 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCC
Process: 474 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=2

May 24 11:50:47 raspberrypi systemd[1]: Starting dnsmasq - A lightweight DHCP an
May 24 11:50:47 raspberrypi dnsmasq[452]: dnsmasq: syntax check OK.
May 24 11:50:48 raspberrypi dnsmasq[474]: dnsmasq: failed to create listening so
May 24 11:50:48 raspberrypi dnsmasq[474]: failed to create listening socket for
May 24 11:50:48 raspberrypi dnsmasq[474]: FAILED to start up
May 24 11:50:48 raspberrypi systemd[1]: dnsmasq.service: Control process exited,
May 24 11:50:48 raspberrypi systemd[1]: dnsmasq.service: Failed with result 'exi
May 24 11:50:48 raspberrypi systemd[1]: Failed to start dnsmasq - A lightweight

User avatar
thagrol
Posts: 2751
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: I want to get internet to my pc from raspberry pi 4

Sun May 24, 2020 7:14 pm

Can you post that again but with all of each line. They look truncated and the usefull stuff is missing.

You might need to widen your terminal window or change the number of columns i your console.

Could you also make it more obvious which output has come from which command (perhaps wrap each block in code tags), post your dnsmasq.conf and provide a link to the guide you used.
Attempts to contact me outside of these forums will be ignored unless signed in triplicate, sent in, sent back, queried, lost, found, subjected to public enquiry, lost again, and finally buried in soft peat for three months and recycled as firelighters


hackedmacbook111
Posts: 75
Joined: Sun Apr 19, 2020 11:27 pm
Contact: YouTube

Re: I want to get internet to my pc from raspberry pi 4

Mon May 25, 2020 1:29 pm

My raspberry pi 4 says no wireless interfaces found
to fix it temporary i did command

Code: Select all

sudo dhcpcd -4
is there a way I can get the raspberry pi to do this command automatically on boot up
When I use raspbian X Nighthawk edition I still have wifi
I am getting errors from raspbian buster from last week

User avatar
thagrol
Posts: 2751
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: I want to get internet to my pc from raspberry pi 4

Mon May 25, 2020 2:49 pm

hackedmacbook111 wrote:
Mon May 25, 2020 1:29 pm
is there a way I can get the raspberry pi to do this command automatically on boot up
There are several. All have been covered many times on this forum and the wider internet. Try a search for how run a command at startup/
Attempts to contact me outside of these forums will be ignored unless signed in triplicate, sent in, sent back, queried, lost, found, subjected to public enquiry, lost again, and finally buried in soft peat for three months and recycled as firelighters

fruitoftheloom
Posts: 22708
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: I want to get internet to my pc from raspberry pi 4

Mon May 25, 2020 2:53 pm

hackedmacbook111 wrote:
Mon May 25, 2020 1:29 pm
My raspberry pi 4 says no wireless interfaces found
to fix it temporary i did command

Code: Select all

sudo dhcpcd -4
is there a way I can get the raspberry pi to do this command automatically on boot up
When I use raspbian X Nighthawk edition I still have wifi
I am getting errors from raspbian buster from last week

Raspbian-X is dead and buried, suggest you start with a fresh install of the Officially Supported Raspbian Buster with Desktop !

https://www.raspberrypi.org/documentati ... iguration/
Rather than negativity think outside the box !

Asus ChromeBox 3 Celeron is my other computer.

hackedmacbook111
Posts: 75
Joined: Sun Apr 19, 2020 11:27 pm
Contact: YouTube

Re: I want to get internet to my pc from raspberry pi 4

Tue May 26, 2020 3:50 pm

I am currently running raspbian buster

hackedmacbook111
Posts: 75
Joined: Sun Apr 19, 2020 11:27 pm
Contact: YouTube

Re: I want to get internet to my pc from raspberry pi 4

Thu May 28, 2020 3:43 am

Anyone know how to share wifi from raspberry pi to pc in raspbian or ubuntu

fruitoftheloom
Posts: 22708
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: I want to get internet to my pc from raspberry pi 4

Thu May 28, 2020 5:21 am

hackedmacbook111 wrote:
Thu May 28, 2020 3:43 am
Anyone know how to share wifi from raspberry pi to pc in raspbian or ubuntu

https://www.raspberrypi.org/documentati ... -routed.md of
Rather than negativity think outside the box !

Asus ChromeBox 3 Celeron is my other computer.

Return to “General discussion”