<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>xquartz &#8211; My Shitty Code</title>
	<atom:link href="https://myshittycode.com/tag/xquartz/feed/" rel="self" type="application/rss+xml" />
	<link>https://myshittycode.com</link>
	<description>Embracing the Messiness in Search of Epic Solutions</description>
	<lastBuildDate>Fri, 06 Jan 2023 04:04:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://myshittycode.com/wp-content/uploads/2022/04/cropped-icon-32x32.png</url>
	<title>xquartz &#8211; My Shitty Code</title>
	<link>https://myshittycode.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">205304208</site>	<item>
		<title>GCP: Accessing GUI-Based App in GCE from Mac using X11</title>
		<link>https://myshittycode.com/2022/02/23/gcp-accessing-gui-based-software-in-gce-from-mac-using-x11/</link>
					<comments>https://myshittycode.com/2022/02/23/gcp-accessing-gui-based-software-in-gce-from-mac-using-x11/#respond</comments>
		
		<dc:creator><![CDATA[Shitty Author]]></dc:creator>
		<pubDate>Thu, 24 Feb 2022 00:59:49 +0000</pubDate>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Google Cloud Platform]]></category>
		<category><![CDATA[Google Compute Engine]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[x11]]></category>
		<category><![CDATA[xquartz]]></category>
		<guid isPermaLink="false">https://myshittycode.com/?p=1330</guid>

					<description><![CDATA[<p>PROBLEM You want to access a GUI-based software that is installed in a GCE instance without using NoMachine. SOLUTION GCE Instance (One Time Configuration) Ensure X11Forwarding is enabled and set to yes. If not, change it. If a change is made to this file, restart the service. Mac (One Time Configuration) Apple no longer include [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://myshittycode.com/2022/02/23/gcp-accessing-gui-based-software-in-gce-from-mac-using-x11/">GCP: Accessing GUI-Based App in GCE from Mac using X11</a> appeared first on <a rel="nofollow" href="https://myshittycode.com">My Shitty Code</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading" id="problem">PROBLEM</h2>



<p>You want to access a GUI-based software that is installed in a GCE instance without using NoMachine.</p>



<h2 class="wp-block-heading" id="solution">SOLUTION</h2>



<h3 class="wp-block-heading" id="gce-instance-one-time-configuration">GCE Instance (One Time Configuration)</h3>



<p>Ensure <strong>X11Forwarding</strong> is enabled and set to <strong>yes</strong>. If not, change it.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
grep X11Forwarding /etc/ssh/sshd_config
</pre></div>


<p>If a change is made to this file, restart the service.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
sudo systemctl restart sshd
</pre></div>


<h3 class="wp-block-heading" id="mac-one-time-configuration">Mac (One Time Configuration)</h3>



<p>Apple no longer include X11 since OS X 10.8 Mountain Lion. So, you need to install XQuartz, which is an open source version of X.</p>



<p>Using <a href="https://brew.sh/" target="_blank" rel="noopener">Homebrew</a>, install XQuartz.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
brew install xquartz
</pre></div>


<p>Reboot the machine. If you don&#8217;t reboot, it will not work.</p>



<p>Once rebooted, add the following line to <strong>~/.ssh/config</strong>. If this file does not exist, create it.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
ForwardX11 yes
</pre></div>


<p>This configuration prevents us from explicitly passing the <strong>-X</strong> option to the SSH command.</p>



<h3 class="wp-block-heading" id="accessing-gui-based-software-from-mac">Accessing GUI-based software from Mac </h3>



<p>Log into GCP.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
gcloud auth login
</pre></div>


<p>SSH into the GCE instance.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
gcloud compute ssh &#x5B;INSTANCE] --project &#x5B;PROJECT] --zone &#x5B;ZONE]
</pre></div>


<p>Once you are in the GCE instance, run any GUI-based software from the command line. </p>



<figure class="wp-block-image size-large"><a href="https://myshittycode.com/wp-content/uploads/2022/02/screen_shot_2022-02-23_at_6_39_50_pm-2.png?x45560"><img fetchpriority="high" decoding="async" width="1974" height="2300" src="https://myshittycode.com/wp-content/uploads/2022/02/screen_shot_2022-02-23_at_6_39_50_pm-2.png?x45560" alt="" class="wp-image-1342" srcset="https://myshittycode.com/wp-content/uploads/2022/02/screen_shot_2022-02-23_at_6_39_50_pm-2.png 1974w, https://myshittycode.com/wp-content/uploads/2022/02/screen_shot_2022-02-23_at_6_39_50_pm-2-257x300.png 257w, https://myshittycode.com/wp-content/uploads/2022/02/screen_shot_2022-02-23_at_6_39_50_pm-2-879x1024.png 879w, https://myshittycode.com/wp-content/uploads/2022/02/screen_shot_2022-02-23_at_6_39_50_pm-2-768x895.png 768w, https://myshittycode.com/wp-content/uploads/2022/02/screen_shot_2022-02-23_at_6_39_50_pm-2-1318x1536.png 1318w, https://myshittycode.com/wp-content/uploads/2022/02/screen_shot_2022-02-23_at_6_39_50_pm-2-1758x2048.png 1758w" sizes="(max-width: 1974px) 100vw, 1974px" /></a></figure>
<p>The post <a rel="nofollow" href="https://myshittycode.com/2022/02/23/gcp-accessing-gui-based-software-in-gce-from-mac-using-x11/">GCP: Accessing GUI-Based App in GCE from Mac using X11</a> appeared first on <a rel="nofollow" href="https://myshittycode.com">My Shitty Code</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://myshittycode.com/2022/02/23/gcp-accessing-gui-based-software-in-gce-from-mac-using-x11/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1330</post-id>	</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Database Caching 56/70 queries in 0.016 seconds using Disk

Served from: myshittycode.com @ 2026-02-18 01:22:27 by W3 Total Cache
-->