From 35e63ecc484a8f514095b1e047696e676da92bf4 Mon Sep 17 00:00:00 2001 From: miryarik <85996187+miryarik@users.noreply.github.com> Date: Wed, 16 Apr 2025 18:03:27 +0530 Subject: [PATCH 1/2] refactor: Roll Linux and ChromeOS instructions into one ChromOS now comes with Linux Development Environment which includes APT. Installation can be done using APT as on a regular Linux system. Instructions for Linux can now be used by ChromeOS users as well. Guide on turning on Linux in ChromeOS is linked as reference. Article on installation using source is linked as legacy approach for older Chromebooks. --- foundations/installations/setting_up_git.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/foundations/installations/setting_up_git.md b/foundations/installations/setting_up_git.md index cdaf9861627..1971f90390a 100644 --- a/foundations/installations/setting_up_git.md +++ b/foundations/installations/setting_up_git.md @@ -16,6 +16,11 @@ Click the Operating System you have chosen below: Linux +
+#### For ChromeOS users +These instructions also work for ChromeOS with Linux Development Environment enabled. See the [Installation on ChromeOS](#installation-on-chromeos) at the end of this section. +
+ #### Step 1.1: Update the system Run these commands in the terminal to update the Linux system: @@ -57,6 +62,20 @@ git --version If the version number is less than 2.28, follow the instructions again. +### Installation on ChromeOS + +#### Option 1: Using Linux Development Environment (Crostini) - Recommended + +Modern Chromebooks support Linux applications through the Linux Development Environment (Crostini): + +1. Enable Linux by following the Turn On Linux section from [Set up Linux on your Chromebook](https://support.google.com/chromebook/answer/9145439?hl=en) +2. Once the Linux terminal opens, follow the Linux installation instructions above + +#### Option 2: Installing Git from Source (Legacy option for older Chromebooks) + +If your Chromebook doesn't support the Linux Development Environment, you can install Git from source. Follow the instructions on [installing Git from Source](https://www.digitalocean.com/community/tutorials/how-to-install-git-on-debian-10#installing-git-from-source) from Digital Ocean. + +
From 06d52c33dad20b9119871133892b22bb8b6da854 Mon Sep 17 00:00:00 2001 From: miryarik <85996187+miryarik@users.noreply.github.com> Date: Wed, 16 Apr 2025 18:52:12 +0530 Subject: [PATCH 2/2] refactor: Remove separate ChromeOS instructions Instructions for installation on Linux cover the installation process for ChromeOS as well. Added a short note for ChromeOS users for clarity and ease. Guide to enable Linux on ChromeOS and legacy installation using source are linked for reference. --- foundations/installations/setting_up_git.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/foundations/installations/setting_up_git.md b/foundations/installations/setting_up_git.md index 1971f90390a..c327cfcd5b8 100644 --- a/foundations/installations/setting_up_git.md +++ b/foundations/installations/setting_up_git.md @@ -18,7 +18,8 @@ Click the Operating System you have chosen below:
#### For ChromeOS users -These instructions also work for ChromeOS with Linux Development Environment enabled. See the [Installation on ChromeOS](#installation-on-chromeos) at the end of this section. +Make sure Linux Development Environment is enabled on your Chromebook. You should skip the add-apt-repository command in Step 1.2: Install Git. +See the [Installation on ChromeOS](#installation-on-chromeos) at the end of this section for more information.
#### Step 1.1: Update the system @@ -69,7 +70,7 @@ If the version number is less than 2.28, follow the instructions again. Modern Chromebooks support Linux applications through the Linux Development Environment (Crostini): 1. Enable Linux by following the Turn On Linux section from [Set up Linux on your Chromebook](https://support.google.com/chromebook/answer/9145439?hl=en) -2. Once the Linux terminal opens, follow the Linux installation instructions above +2. Once the Linux terminal opens, follow the Linux installation instructions above. Skip the add-apt-repository command in Step 1.2. #### Option 2: Installing Git from Source (Legacy option for older Chromebooks) @@ -127,13 +128,6 @@ If the version number is less than 2.28, follow the instructions again. If you a
-
- -ChromeOS - -Follow the instructions on [installing Git from Source](https://www.digitalocean.com/community/tutorials/how-to-install-git-on-debian-10#installing-git-from-source) from Digital Ocean. - -
### Step 2: Configure Git and GitHub