Facebook Twitter Instagram
    • About
    • Privacy Policy
    • Write For Us
    • Newsletter
    • Contact
    Instagram
    About ChromebooksAbout Chromebooks
    • News
      • Reviews
    • Business
    • How to
      • IP Address
    • Apps
    • Q&A
      • Opinion
    • Podcast
    • Gaming
    • Blog
    • Contact
    • Acer Chromebook Spin 514_CP514-1H keyboard backlit
    About ChromebooksAbout Chromebooks
    Home»How to»How I code on a Chromebook using Python and a Raspberry Pi
    How to

    How I code on a Chromebook using Python and a Raspberry Pi

    Kevin TofelBy Kevin TofelApril 13, 2018Updated:February 12, 20199 Comments4 Mins Read
    Linux on your Chromebook coding
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Update: While the below method still works perfectly fine, I’m now coding using Linux apps on my Pixel Slate. Support for Linux apps is fairly standard on all new Chromebooks, and many older ones, as of Chrome OS 69.

    One of the reasons I held back on going “all in” on a Chromebook was because coding on the devices has been challenge. But after doing some more research and trying out different methods, I found a way that works for me, which helped prompt me to buy a Pixelbook last month.

    I should note that there are several ways to do this. I wanted a method that didn’t require using Developer Mode and Crouton scripts — which does slightly water down Chrome OS security — nor the cloud since most of those solutions can add up as you might pay for processing time. So for me the best option was something more localized, didn’t require any Chrome OS modifications and would have a set, low cost.

    The answer was to use a Raspberry Pi, which you can get for around $35 or so. The added benefit here to me is that you can learn a lot by setting up, configuring and managing a Raspberry Pi.

    Using the base Raspian build that’s optimized for these low-cost computers, I was able to set up my Raspberry Pi on in about an hour. It’s connected to my home network on a wired Ethernet connection for maximum throughput. And Python, my preferred coding language for now, is pre-installed.

    I can use the VNC Viewer app from the Chrome Web Store to remotely access the Pi from my Pixelbook as if I were sitting down at the Pi, but I generally don’t do that. Instead, I installed the SSH, or Secure Shell, app from the Web Store. I’ll explain why I prefer this method in a minute.

    Using SSH, I can create a secure network connection from my Pixelbook to the Raspberry Pi via a terminal window. I don’t really need any graphical interface, so this works for me. If I do, VNC works for that. But one of the nice features of the SSH app is the ability to also create an SFTP mount, meaning I can connect the Chrome OS Files app directly to the Raspberry Pi.

    SMTP mount from Pixelbook to Raspberry Pi

    Above you can see the results of the mounted Pi in my Pixelbook Files app. This isn’t just a visual benefit; it helps because now I can use a text editor on the Pixelbook to open, modify and save files as if they were on my Pixelbook. When I double-click one of the .py files, for example, they appear in my Pixelbook’s text editor; I use Text but Carat is also a great choice. Both support offline use and syntax highlighting for a range of programming languages.

    When coding, I simply make my changes and save as needed; the files are actually saved on the Raspberry Pi even though I’m modifying them directly on my Pixelbook. From there, I can jump into the SSH app and run my code to see the output or errors.

    Again, there are many ways to do this and I’ve experimented with most of them, having tested AWS Cloud9 and Google Cloud Services for remote coding. But this method meets my cost and security requirements while also appearing native on my laptop.

    So far it’s worked well as I’ve learned more about coding and even have a few useful projects working, such as ambient notifications telling me how cryptocurrency prices are moving: When they’re in the plus, I have a smart bulb light up green and the brightness of the bulb indicates how much the value has increased. It turns red when prices are down.

    Eventually, I suspect a native solution will be available for Chromebooks: Project Crostini is expected to bring container technology to run full Linux apps. If that happens — and I expect we’ll know by next month at Google I/O — that could be the better way to do this. Until then, I’ll use this hybrid solution to get my programming done on the Pixelbook.

    Chromebook Coding Crostini Pixelbook Productivity Programming Python Raspberry Pi SSH VNC
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Kevin Tofel
    • Website

    After spending 15 years in IT at Fortune 100 companies, Kevin turned a hobby into a career and began covering mobile technology in 2003. He writes daily on the industry and has co-hosted the weekly MobileTechRoundup podcast since 2006. His writing has appeared in print (The New York Times, PC Magazine and PC World) and he has been featured on NBC News in Philadelphia.

    9 Comments

    1. unextro on April 13, 2018 1:14 pm

      “Crostini” container vms are already just behind a flag, FYI, no dev mode necessary.

      • Kevin C. Tofel on April 13, 2018 1:17 pm

        True, but not yet in Stable; or if it is, I can’t find yet. I’ll wait until then and revisit. 😉

        • unextro on April 13, 2018 1:21 pm

          chrome://flags/#enable-cros-container 😉 In stable, at least on a Pixelboook. How to: https://twitter.com/kennethrohde/status/983390599201030144

          • Kevin C. Tofel on April 13, 2018 1:23 pm

            Ah, I was searching flags for Crostini, not Cros. Thanks! ??

    2. Mark Stosberg on April 17, 2018 1:22 pm

      I picture the Raspberry PI taped to the back of your Chromebook, sucking power from a USB port.

      • Kevin C. Tofel on April 17, 2018 1:22 pm

        ?

    3. Robert on May 19, 2018 3:47 pm

      Have you considered using a Raspberry Pi Zero in OTG Ethernet mode?
      I would be interested in finding out if it works and if Chome OS has something like the Avahi Daemon to make it work.

      • Jon on June 17, 2020 12:27 am

        It took me a little bit to figure out, but I got the OTG approach to work. I have a little detail on it, and links to the way I set it up here https://www.brambleblue.com/?p=251

    4. sam on September 21, 2018 1:33 pm

      any updates on your coding setup now that linux apps are in stable?

    Top Posts

    How To Participate In Online Surveys For Cash?

    May 10, 2025

    How To Use chrome://flags/#allow-insecure-localhost 

    May 9, 2025

    Are Web Browsers Available for Apple TV Users?

    May 9, 2025

    Using Typography Psychology to Strengthen Branding with CapCut PC

    May 9, 2025

    How Privacy Tools Are Changing the Way We Play Online

    May 9, 2025
    • About
    • Privacy Policy
    • Write For Us
    • Newsletter
    • Contact
    © 2025 About Chrome Books. All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.