0

Problem

I want to use raspberryPi's Chrome from my Mac in order to watch some videos.
In order to do that, I am trying to make VNC connection.

Condition

  • raspberry pi and my Mac uses different network.
  • I prefer to control raspberry pi by command, totally.
  • The router of raspberryPi Port 5901 for VNC has been already opened.
  • Public key authentication is the way to access.
  • Password auth is restricted.
2
  • "I want to use raspberryPi's Chrome from my Mac" doesn't sound like a problem to me, more like a wish. Jan 15, 2019 at 8:14
  • 1
    This may help.
    – jake
    Jan 15, 2019 at 17:46

1 Answer 1

1

using ssh -XY 192.168.3.14 where 192.168.3.14 is the ip address of your raspberry pi to ssh into your raspberry pi and then run:

pi@pimoroni:~ $ echo $DISPLAY

you should the see:

localhost:10.0

If you see the localhost:10.0 or similar line then you can just run chromium-browser and the browser will open on the computer you used to ssh into the pi.

Depending on how ssh is configured you can use either -X or -Y flag.

-X Enables X11 forwarding.

-Y Enables trusted X11 forwarding

If it does not work ssh -vvv will give verbose output which will hopefully help you solve any issues.

6
  • Thanks for kind answer, but it seems very slow, is there any way to help that? Jan 15, 2019 at 3:26
  • 1
    @IsseiMorita Try ssh -XYC to enable compression.
    – jake
    Jan 15, 2019 at 12:56
  • @jake Thank you, it became pretty faster, but could you tell me whatever I can do to make faster? Jan 15, 2019 at 16:51
  • I want to watch video through raspberry pi. Jan 15, 2019 at 16:57
  • 1
    @IsseiMorita Why do you to do want that? Maybe you should consider using VPN or sshuttle instead.
    – jake
    Jan 15, 2019 at 17:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.