I'm hoping to use a digital ocean droplet to ssh into a raspberry pi, and by using X11 Forwarding run a Firefox GUI on the droplet.

When I use the command:

sudo ssh pi@ipAddress -t -X firefox

It asks for the password on the pi, then returns:

(process:3031): GLib-CRITICAL **: g_slice_set_config: assertion ‘sys_page_size == 0’ failed Error: no display specified Connection to ipAddress closed

Thank you so much for any help, I need it ASAP


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I attempted to duplicate this issue. While I do not have a Raspberry Pi handy I am running an Ubuntu 16.04 Desktop.

I created a new Ubuntu 16.04 droplet and ran just one command:

apt-get install firefox

I then connected to the droplet from my workstation with:

ssh root@droplet_ip -X firefox

and it worked. I would suggest making sure that you are running the ssh command from within an active X session on your raspberry pi and not as root if you are not in a root X session.