How to use GitHub in Chrome OS


Need to connect with GitHub from your chromebook? Thanks to Termux, you can.

chromebookhero.jpg

Image: Jack Wallen

If you’re a developer, the idea of working with a cloud-centric Chromebook is probably not at the top of your list. However, with just a bit of work, you can actually get Chrome OS to be a bit more developer friendly. One place to start is to add Git

Of course, you’re not going to be adding Git directly from the Chrome OS Web Store. In order to make this work, you have to go about it in a roundabout way. Yes, it can be done, and I’ll be there with you to make sure it happens.

SEE: Serverless computing: A guide for IT leaders (TechRepublic Premium)

What you’ll need

All you will need to make this work is a Chromebook that includes support for Android apps. If your Chromebook doesn’t include support for Android apps, you’re out of luck. Fortunately, most modern Chromebooks do support the installation of apps from the Google Play Store.

How to install Termux

In order to get your Git on in Chrome OS, you must first install Termux. To do this, open the Google Play Store app from your Chrome OS desktop and search for Termux. Install the app from the Play Store by clicking Install. Once the installation completes, you’re ready to continue.

How to install Git

With Termux installed, you should find the application launcher (Figure A) by clicking the Chrome OS desktop menu.

Figure A

gitchromea.jpg

The Termux launcher in the desktop menu.

The Termux application looks pretty much like a Linux terminal window (Figure B). Everything you do within Termux, must be done inside Termux. In other words, you don’t install applications that can then run directly from the Chrome OS desktop.

Figure B

gitchromeb.jpg

The Termux window running in ChromeOS.

In order to install Git, issue the command:

apt install git

The application will pick up the necessary dependencies. When prompted (Figure C), type y to OK the…



www.techrepublic.com