Bobson
Posts: 4
Joined: Wed Jul 27, 2016 11:07 am

Wired --> Wireless

Thu Jul 28, 2016 10:18 am

Problem
I'm trying to connect my Smart tv to my RaspberryPi by ethernet cable, then have my RaspberryPi connect to my router downstairs by Wifi.

Hardware
Edimax EW-7811Un (Realtek RTL8188CUS)

I'm starting with a clean install of Raspbian Jesse Lite, all i've done is put my wifi settings into wpa_supplicant.conf so my RaspberryPi can connect to router.

And i've updated my RaspberryPi.

Haven't touched anything else, starting from a clean slate.

What's the best and easiest way to setup my RaspberryPi as stated above.
Thanks for any help anyone can give me.

RAZERZ
Posts: 57
Joined: Mon Jun 13, 2016 4:56 pm

Re: Wired --> Wireless

Fri Jul 29, 2016 5:58 pm

You want to connect your smart TVs internet or display the Pi on the TV?
Raspberry pi 3 set up as desktop with raspbian.
I guess you can say I am not newbie with linux but I am not a master at it either.
I will always try to help you as much as I can because I know how hard it is to run into problems :D

Bobson
Posts: 4
Joined: Wed Jul 27, 2016 11:07 am

Re: Wired --> Wireless

Fri Jul 29, 2016 6:08 pm

Sorry if I wasn't clear in my post.

I'm trying to give my Smart tv internet access using the ethernet port on my raspberrypi, and then have my raspberrypi forward the connection by wifi to my main router.

RAZERZ
Posts: 57
Joined: Mon Jun 13, 2016 4:56 pm

Re: Wired --> Wireless

Fri Jul 29, 2016 6:57 pm

Bobson wrote:Sorry if I wasn't clear in my post.

I'm trying to give my Smart tv internet access using the ethernet port on my raspberrypi, and then have my raspberrypi forward the connection by wifi to my main router.
Sounds possible, I'll look into it and see if I can help you.
Raspberry pi 3 set up as desktop with raspbian.
I guess you can say I am not newbie with linux but I am not a master at it either.
I will always try to help you as much as I can because I know how hard it is to run into problems :D

Bobson
Posts: 4
Joined: Wed Jul 27, 2016 11:07 am

Re: Wired --> Wireless

Sat Jul 30, 2016 11:11 am

Good news!

I did it, and it was stupid simple too.

This great script from this site hackhappy.org, made it so straight forward.

http://hackhappy.org/uncategorized/how- ... rk-bridge/

You just run it and enter your network details such as Ip address and your wifi settings etc...

Then I gave my tv a static ip and it work first time.

And it does all the leg work for you.

Thanks anyway...

epoch1970
Posts: 6034
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: Wired --> Wireless

Sat Jul 30, 2016 12:24 pm

For the record,
that's not exactly "a great script". It blows about every standard config file it touches, so you'd better take backups before running it. Or go the manual way.

The setup is route+NAT, so the devices behind the ethernet link on the Pi belong to a network that is different from the main (wifi) network. That does the job.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

Bobson
Posts: 4
Joined: Wed Jul 27, 2016 11:07 am

Re: Wired --> Wireless

Sat Jul 30, 2016 12:38 pm

It's maybe not a "great script"...

But it's doing what I need it to do, and it was straight forward and simple to do.

I was going to do the manual way, as show on hackhappy.org but I got stuck on:

apt-get -y install isc-dhcp-server iptables >/dev/null 2>&1


For some reason it didn't like the iptables >/dev/null 2>&1 part no idea why?

User avatar
DougieLawson
Posts: 40781
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Wired --> Wireless

Sat Jul 30, 2016 4:04 pm

Bobson wrote:
For some reason it didn't like the iptables >/dev/null 2>&1 part no idea why?
That's because some stupid HTML formatting got in the way.

It should be iptables >/dev/null 2>&1
Any language using left-hand whitespace for syntax is ridiculous

Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.

Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

User avatar
rpdom
Posts: 18124
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Wired --> Wireless

Sat Jul 30, 2016 4:12 pm

Bobson wrote:II was going to do the manual way, as show on hackhappy.org but I got stuck on:

apt-get -y install isc-dhcp-server iptables >/dev/null 2>&1
Urgh... that's horrible (ignoring the fact the "&" should just be "&").

It throws away all of the output from the apt-get command, so if it encounters any errors you won't know about it. :shock:
I'd just leave the ">/dev/null 2>&1" off the end and make sure the command worked ok.

Return to “Troubleshooting”