<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rishu Majumdar on Medium]]></title>
        <description><![CDATA[Stories by Rishu Majumdar on Medium]]></description>
        <link>https://medium.com/@rrishu.mp3?source=rss-7af784d61231------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*fxzkJTjakcp9UOD-</url>
            <title>Stories by Rishu Majumdar on Medium</title>
            <link>https://medium.com/@rrishu.mp3?source=rss-7af784d61231------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 16:51:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rrishu.mp3/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[I Tried Installing Ubuntu Touch on My Nothing Phone (1) Using an Apple Silicon MacBook.]]></title>
            <link>https://medium.com/@rrishu.mp3/i-tried-installing-ubuntu-touch-on-my-nothing-phone-1-using-an-apple-silicon-macbook-95ee77655391?source=rss-7af784d61231------2</link>
            <guid isPermaLink="false">https://medium.com/p/95ee77655391</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[phone]]></category>
            <category><![CDATA[ubuntu-server]]></category>
            <category><![CDATA[servers]]></category>
            <dc:creator><![CDATA[Rishu Majumdar]]></dc:creator>
            <pubDate>Sat, 21 Nov 2026 08:21:51 GMT</pubDate>
            <atom:updated>2026-11-21T08:21:51.361Z</atom:updated>
            <content:encoded><![CDATA[<h3>I Tried Installing Ubuntu Touch on My Nothing Phone (1) Using an Apple Silicon MacBook. It Wasn’t as Simple as I Expected.</h3><p><em>How a spare Android phone, a MacBook, and a few stubborn Fastboot processes turned into an unexpected Linux debugging adventure.</em></p><p>I have a Nothing Phone (1) lying around, and recently I started thinking about doing something interesting with it.</p><p>Instead of letting it sit in a drawer, why not turn it into a small, self-hosted Linux server?</p><p>The idea was pretty simple. I wanted to deploy a few backend applications, and experiment with Docker containers.</p><p>Nothing too crazy. Just a personal homelab running on hardware I already owned.</p><p>The Nothing Phone (1) has a Snapdragon 778G+ processor, decent RAM, and enough storage for a few lightweight services. On paper, it seemed like a fun project.</p><p>But I didn’t want to run Linux inside Android using Termux or some container-like environment.</p><p><strong>I wanted Linux itself.</strong></p><p>After searching around XDA Forums and GitHub, I discovered that Ubuntu Touch supports the Nothing Phone (1). That sounded like a good starting point.</p><p>What I didn’t anticipate was how much troubleshooting it would take to get the installer working on my Apple Silicon MacBook.</p><p>Here’s how it went.</p><p>I didn’t have access to a Linux PC or an Intel Mac.</p><p>Just my MacBook and the phone.</p><p>That detail became surprisingly important later.</p><h3>Step 1: Unlocking the bootloader</h3><p>The first thing I needed was an unlocked bootloader.</p><p>With the phone connected to my MacBook, I installed Android Platform Tools and checked whether ADB could recognize it.</p><pre>adb devices</pre><p>Thankfully, the phone showed up.</p><p>Next, I checked the device codename and the installed firmware:</p><pre>adb shell getprop ro.product.device<br>adb shell getprop ro.build.display.id</pre><p>The outputs were:</p><pre>Spacewar<br>V3.2-260416-1140</pre><p>That was a good sign. The Ubuntu Touch device instructions recommend Nothing OS 3.2 as the firmware baseline.</p><p>Then I rebooted into the bootloader:</p><pre>adb reboot bootloader</pre><p>After verifying that Fastboot could detect the phone, I unlocked it:</p><pre>fastboot flashing unlock</pre><p>The phone displayed a confirmation screen. I selected the unlock option using the volume buttons and confirmed it.</p><p>And just like that, all the data on my phone was wiped.</p><p>I had expected that part, so it wasn’t a problem.</p><p>What happened next was less convenient.</p><h3>Step 2: Android setup became an unexpected obstacle</h3><p>After unlocking, the phone restarted into the initial Android setup screen.</p><p>I thought I would quickly finish setup, re-enable USB debugging, and continue with the UBports Installer.</p><p>Unfortunately, the setup process kept looping.</p><p>Whenever I connected to Wi-Fi, Android reported a limited connection. The setup flow also kept taking me back to the Google account configuration.</p><p>I tried moving through the setup, but I wasn’t getting anywhere.</p><p>At that point, I wondered:</p><p><em>Why am I spending so much time setting up Android when I’m planning to replace Android entirely?</em></p><p>The bootloader was already unlocked. Fastboot should still be available without completing Android setup.</p><p>So I decided to continue from the bootloader.</p><h3>Step 3: Fastboot wasn’t detecting the phone</h3><p>I powered off the phone and entered bootloader mode using the hardware buttons.</p><p>The screen showed:</p><pre>START<br>Restart bootloader<br>Recovery mode<br>Power off<br>Boot to FFBM<br><br>Device State: UNLOCKED</pre><p>Everything looked correct on the phone.</p><p>But when I ran:</p><pre>fastboot devices</pre><p>I got nothing.</p><p>And:</p><pre>fastboot getvar unlocked</pre><p>just sat there displaying:</p><pre>&lt; waiting for any device &gt;</pre><p>This was confusing because Fastboot had worked earlier when I unlocked the bootloader.</p><p>After troubleshooting the USB connection and restarting the bootloader, the device finally appeared again:</p><pre>fe9653c0    fastboot</pre><p>And:</p><pre>unlocked: yes</pre><p>Finally, I was back in business.</p><p><strong>Lesson learned:</strong> A phone being in Fastboot mode doesn’t necessarily mean your computer is communicating with it. Always check fastboot devices before attempting any flashing operation.</p><h3>Step 4: The UBports Installer and Apple Silicon problems</h3><p>I downloaded the UBports Installer from its official GitHub releases page.</p><p>macOS initially blocked the application with a security warning. After verifying the source and opening it through macOS security settings, I could launch it.</p><p>The installer detected my Nothing Phone (1), and I selected the Ubuntu Touch 24.04 stable channel offered for the device.</p><p>I enabled the installation options for flashing the required partitions and wiping user data.</p><p>Everything seemed straightforward.</p><p>The installer started processing the installation, flashed the firmware images, and then reached:</p><p><strong>Rebooting — Rebooting to FastbootD</strong></p><p>And stopped progressing.</p><p>The phone appeared to be in FastbootD, but the installer kept showing the same message.</p><p>I checked what Fastboot processes were running on my Mac:</p><pre>ps -axo pid,command | grep &#39;[f]astboot&#39;</pre><p>I discovered several processes running from a path similar to:</p><pre>.../android-tools-bin/dist/darwin/x86/fastboot</pre><p>That caught my attention.</p><p>My MacBook runs on ARM64, but the installer was using a bundled x86 Fastboot executable.</p><p>Running an Intel binary through Rosetta isn’t inherently a problem. But it was an interesting clue, particularly because the command appeared to be hanging.</p><h3>Step 5: Understanding Fastboot vs. FastbootD</h3><p>This was probably the most useful thing I learned during the entire process.</p><p>Android devices can expose two different Fastboot environments.</p><p><strong>Regular Fastboot</strong> runs in the device’s bootloader and is commonly used for flashing boot-related partitions.</p><p><strong>FastbootD</strong> runs in userspace and is used for operations involving dynamic or logical partitions.</p><p>You can identify which mode you’re in by running:</p><pre>fastboot getvar is-userspace</pre><p>If it reports:</p><pre>is-userspace: no</pre><p>you’re in regular bootloader Fastboot.</p><p>If it reports:</p><pre>is-userspace: yes</pre><p>you’re in FastbootD.</p><p>I checked the installed version of Fastboot on my Mac:</p><pre>which fastboot<br>fastboot --version</pre><p>My system Fastboot was version 37.0.1.</p><p>Using that executable, I could transition into FastbootD and verify that the phone was detected successfully.</p><p>That suggested the phone itself could enter FastbootD, even though the installer was having trouble with the transition.</p><p>The problem seemed increasingly likely to involve the installer and its subprocess handling.</p><h3>Step 6: Trying to force the installer to use system Fastboot</h3><p>I found that UBports’ tooling supports environment variables for using system-installed Android tools.</p><p>So I tried launching the installer with:</p><pre>export PATH=&quot;/opt/homebrew/share/android-commandlinetools/platform-tools:$PATH&quot;<br>export USE_SYSTEM_FASTBOOT=1<br>export USE_SYSTEM_ADB=1</pre><p>The idea was to make the installer use my working Homebrew Fastboot binary instead of the bundled one.</p><p>Initially, this looked promising.</p><p>The installer detected the phone, checked the bootloader status, and selected the active slot.</p><p>Then it stopped at:</p><p><strong>Flashing firmware — Flashing firmware partition using Fastboot</strong></p><p>I checked the installer log:</p><pre>tail -n 40 \<br>  &quot;$HOME/Library/Caches/ubports/ubports-installer.log&quot;</pre><p>And found the important error:</p><pre>spawn:error<br>code: ENOENT<br>syscall: spawn fastboot</pre><p>That was interesting.</p><p>The installer could execute short Fastboot commands such as devices and getvar, but when it tried launching the firmware-flashing subprocess, it couldn&#39;t find the executable.</p><p>So the system Fastboot override wasn’t working correctly in this installer configuration.</p><p>I went back to the default bundled tools.</p><h3>Step 7: The workaround that got me past FastbootD</h3><p>After switching back to the bundled Fastboot, the installer again reached the firmware-flashing stage.</p><p>The log showed both firmware flashing subprocesses exiting:</p><pre>spawn:start: fastboot flash boot ...<br>spawn:exit: fastboot flash boot ...<br><br>spawn:start: fastboot flash vendor_boot ...<br>spawn:exit: fastboot flash vendor_boot ...</pre><p>The log didn’t print explicit exit codes, but the installer advanced to the next step.</p><p>Then it got stuck again at:</p><pre>fastboot reboot-fastboot</pre><p>This time I checked two things.</p><p>First, the Mac process list showed a stuck reboot command.</p><p>Second, my phone was already in FastbootD:</p><pre>is-userspace: yes</pre><p>So the phone had apparently completed the requested mode change, while the Mac-side subprocess remained stuck.</p><p>After verifying that the process was only executing fastboot reboot-fastboot and that there was no active flashing operation, I terminated that specific process:</p><pre>kill -TERM &lt;stuck-process-pid&gt;</pre><p><strong>Important:</strong> This was an experimental recovery step for a verified stuck reboot subprocess, not a general recommendation to kill Fastboot during installation. Interrupting an active flash can damage an installation.</p><p>And then something interesting happened.</p><p>The installer caught the terminated process as an error and moved to its manual FastbootD fallback.</p><p>Since the phone was already in FastbootD, I was able to continue.</p><p>For the first time, the installer progressed beyond the point where it had repeatedly stalled.</p><h3>Step 8: The logical partition operations worked</h3><p>The installer started restructuring the phone’s logical partitions.</p><p>Afterward, the installer successfully issued a reboot back to the regular bootloader.</p><p>At this point, I thought most of the difficult part was over.</p><p>Apparently, Fastboot had one more surprise for me.</p><h3>Step 9: Stuck again, this time while erasing userdata</h3><p>The installer reached:</p><p><strong>Cleaning up — Erasing userdata partition</strong></p><p>And stopped progressing.</p><p>I inspected the running processes again:</p><pre>ps -axo pid,etime,stat,%cpu,command | grep &#39;[f]astboot&#39;</pre><p>The output showed the bundled executable running:</p><pre>fastboot erase userdata</pre><p>It had been running for almost five minutes and was consuming nearly 100% CPU on one core.</p><p>Meanwhile, the installer log remained unchanged.</p><p>The phone was still detectable in regular Fastboot mode, and there was no completion message for the erase.</p><p>After checking the process and confirming the installer hadn’t advanced, I terminated the specific stuck Fastboot subprocess.</p><p>This was the riskiest workaround in the process.</p><p>Unlike rebooting to FastbootD, <strong>erasing userdata is a destructive storage operation</strong>. Interrupting it can leave the filesystem in an incomplete state.</p><p>I couldn’t independently confirm whether the erase had finished on the device before the process was terminated.</p><p>I would not recommend copying this step blindly. It needs to be evaluated based on the actual device and installer state.</p><h3>Step 10: Finally, the phone showed “Installing system update”</h3><p>After working through those failures, the installation progressed further.</p><p>The phone eventually displayed:</p><p><strong>Installing system update</strong></p><p>That was the first moment when the project started to feel real.</p><p>After dealing with USB detection problems, bootloader screens, FastbootD transitions, Apple Silicon compatibility questions, installer subprocess errors, and partition operations, I had finally reached the recovery installation stage.</p><p>Finally the installation finished. I was able to open Ubuntu Touch on my phone, Yipee!!</p><h3>The commands that helped me the most</h3><p>If you’re attempting a similar installation, these were the most useful diagnostic commands.</p><p><strong>Check the connected device:</strong></p><pre>adb devices<br>fastboot devices</pre><p><strong>Verify the unlocked bootloader:</strong></p><pre>fastboot getvar unlocked</pre><p><strong>Identify Fastboot versus FastbootD:</strong></p><pre>fastboot getvar is-userspace</pre><p><strong>Check the installed Fastboot version:</strong></p><pre>which fastboot<br>fastboot --version</pre><p><strong>Inspect running Fastboot processes on macOS:</strong></p><pre>ps -axo pid,etime,stat,%cpu,command | grep &#39;[f]astboot&#39;</pre><p><strong>Read the UBports Installer log:</strong></p><pre>tail -n 40 \<br>  &quot;$HOME/Library/Caches/ubports/ubports-installer.log&quot;</pre><p>That last command was especially valuable.</p><p>Without the log, all I had was a graphical installer stuck on messages like “Rebooting” or “Flashing firmware.”</p><p>With the log, I could see which command was running, which operations had completed, and where the installer was getting stuck.</p><h3>What’s next?</h3><p>My original goal was never just to install Ubuntu Touch.</p><p>I wanted to turn the Nothing Phone (1) into a tiny home server.</p><p>If I can get it booting reliably, the next things I want to explore are SSH access, a small backend API, and lightweight monitoring services.</p><p>Docker is also on my list, although Ubuntu Touch isn’t the same as Ubuntu Server. Its read-only system design and device-specific kernel may introduce additional limitations.</p><p>And that’s part of the fun.</p><p>There are plenty of tutorials for setting up a Linux server on a Raspberry Pi or a spare laptop.</p><p>I wanted to see how far I could go with a smartphone I already owned.</p><p>I’ll update this post once I can confirm Ubuntu Touch boots successfully and start working on the actual server setup.</p><p><strong>Because installing Linux is only the beginning. The interesting part is what I can build on top of it.</strong></p><h3>References</h3><ul><li><a href="https://devices.ubuntu-touch.io/device/spacewar/">Ubuntu Touch — Nothing Phone (1) device page</a></li><li><a href="https://github.com/ubports/ubports-installer">UBports Installer — GitHub</a></li><li><a href="https://github.com/ubports/installer-configs/blob/master/v2/devices/Spacewar.yml">UBports Spacewar installation configuration</a></li><li><a href="https://github.com/Nonta72/nothing-spacewar">Nothing Phone (1) Ubuntu Touch port by Nonta72</a></li><li><a href="https://developer.android.com/tools/releases/platform-tools">Android Platform Tools</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95ee77655391" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>