<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: zman-1x1</title>
    <description>The latest articles on DEV Community by zman-1x1 (@saicharankandukuri).</description>
    <link>https://dev.to/saicharankandukuri</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F677903%2F7c01b1f9-40bc-4457-ae6e-7a4f511c5837.png</url>
      <title>DEV Community: zman-1x1</title>
      <link>https://dev.to/saicharankandukuri</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/saicharankandukuri"/>
    <language>en</language>
    <item>
      <title>XWayland in termux</title>
      <dc:creator>zman-1x1</dc:creator>
      <pubDate>Tue, 30 Nov 2021 03:36:50 +0000</pubDate>
      <link>https://dev.to/saicharankandukuri/xwayland-in-proot-3ho</link>
      <guid>https://dev.to/saicharankandukuri/xwayland-in-proot-3ho</guid>
      <description>&lt;h2&gt;
  
  
  INTRO
&lt;/h2&gt;

&lt;p&gt;Termux started working back on their archived project termux-wayland. and its working fast enough even with Desktop Environments like KDE plasma&lt;br&gt;
here is my guide for setting up fastest linux GUI environment for termux ( faster that VNC ). &lt;/p&gt;
&lt;h2&gt;
  
  
  Setting up termux
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Official f-droid termux may not work for this so get termux from &lt;a href="https://github.com/termux/termux-app/actions"&gt;https://github.com/termux/termux-app/actions&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;code&gt;xwayland&lt;/code&gt; ( binaries for wayland ) &amp;amp; &lt;code&gt;termux-x11&lt;/code&gt; ( scripts to start termux-x11 app from termux ) are in &lt;code&gt;x11-repo&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pkg &lt;span class="nb"&gt;install &lt;/span&gt;x11-repo &lt;span class="nt"&gt;-y&lt;/span&gt;
pkg &lt;span class="nb"&gt;install &lt;/span&gt;xwayland termux-x11
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;Setting termux is done ✌️&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Installing Termux:Xwayalnd app
&lt;/h3&gt;

&lt;p&gt;for now, this app is available &lt;a href="https://github.com/termux/termux-x11/actions"&gt;here&lt;/a&gt;  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;or get my &lt;a href="https://mega.nz/file/04gUzBzT#nNS9ViMck8lXICZSCnzSMpvynf3QD28ovjZ5LWt0pGQ"&gt;old snapshot of termux-x11&lt;/a&gt;
so download and install it&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Using Termux:Xwayland to run &lt;code&gt;proot-distro&lt;/code&gt; Linux
&lt;/h2&gt;

&lt;p&gt;assuming you installed ubuntu with proot-distro with xfce4 installed&lt;/p&gt;

&lt;p&gt;in your termux execute&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;termux-x11
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;this starts termux-x11 with all the required ENV variables&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;now back to termux and login to distro you like ( for this tutorial let's say it is &lt;code&gt;udroid&lt;/code&gt; &lt;code&gt;proot-distro&lt;/code&gt; ) with &lt;code&gt;--shared-tmp&lt;/code&gt; option. by default Wayland socket in stored in termux &lt;code&gt;$TMPDIR&lt;/code&gt; so using &lt;code&gt;--shared-tmp&lt;/code&gt; bind &lt;code&gt;/tmp&lt;/code&gt; in proot linux to &lt;code&gt;$TMPDIR&lt;/code&gt; of termux app
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;proot-distro login udroid &lt;span class="nt"&gt;--shared-tmp&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Now export &lt;code&gt;DISPLAY&lt;/code&gt; environment variable with value &lt;code&gt;:0&lt;/code&gt;, &lt;code&gt;termux-x11&lt;/code&gt; starts display at &lt;code&gt;:0&lt;/code&gt; ( default )
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;DISPLAY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;:0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;finally start your Desktop Environment ( xfce4 works better )
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dbus-launch &lt;span class="nt"&gt;--exit-with-session&lt;/span&gt; startxfce4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's all now if you open minimized Termux:x11 app you see xfce4 running&lt;/p&gt;

&lt;h2&gt;
  
  
  Further sources
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://github.com/RandomCoderOrg/ubuntu-on-android"&gt;https://github.com/RandomCoderOrg/ubuntu-on-android&lt;/a&gt;&lt;br&gt;
ubuntu-on-android ( udroid )&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/termux/termux-x11"&gt;https://github.com/termux/termux-x11&lt;/a&gt;&lt;br&gt;
Official termux-x11 repo&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/wayland-project/wayland"&gt;https://github.com/wayland-project/wayland&lt;/a&gt;&lt;br&gt;
Official wayland sources&lt;/p&gt;

&lt;p&gt;&lt;a href="https://at.projects.genivi.org/wiki/display/DIRO/Wayland+Application+on+Android"&gt;https://at.projects.genivi.org/wiki/display/DIRO/Wayland+Application+on+Android&lt;/a&gt;&lt;br&gt;
Docs Wayland implementation in android &lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>termux</category>
      <category>linux</category>
      <category>android</category>
      <category>linuxonandroid</category>
    </item>
  </channel>
</rss>
