This repository contains scripts to automatically set up a development environment on both Linux and Windows machines. The scripts install tools such as Node.js, npm, React, Flutter, Dart SDK, Android Studio, Visual Studio Code, and Laravel.
- A Linux machine with
sudoprivileges. - An internet connection.
- A Windows machine with administrative privileges.
- An internet connection.
- Node.js and npm
- create-react-app (globally)
- Flutter
- Dart SDK
- Android Studio (optional)
- Visual Studio Code
- Laravel
-
Clone the repository:
git clone https://github.com/Cherrystone123/LinuxToolsAutoSetup.git cd LinuxToolsAutoSetup -
Make the script executable:
chmod +x setup_dev_env.sh
-
Run the script:
./setup_dev_env.sh
-
Follow the on-screen instructions and wait for the setup to complete.
-
Clone the repository:
git clone https://github.com/Cherrystone123/LinuxToolsAutoSetup.git cd LinuxToolsAutoSetup
-
Run the script in PowerShell:
./setup_dev_env.ps1 -
Follow the on-screen instructions and wait for the setup to complete.
The scripts perform the following tasks:
-
System Update and Upgrade:
- Updates the package list and upgrades existing packages.
-
Install Dependencies:
- Installs essential tools such as
curl,git,unzip, andxz-utils(Linux) orcurl,git,unzip, and7zip(Windows).
- Installs essential tools such as
-
Install Node.js and npm:
- Uses the NodeSource repository to install Node.js and npm (Linux).
- Downloads and installs Node.js and npm using the official MSI installer (Windows).
- Installs
create-react-appglobally.
-
Install Flutter:
- Downloads the latest stable release of Flutter.
- Extracts and moves Flutter to the
/optdirectory (Linux) or installs via Chocolatey (Windows). - Adds Flutter to the system
PATH. - Runs
flutter precacheandflutter doctorto verify the installation.
-
Install Android Studio (Optional):
- Installs Android Studio using
snap(Linux) or Chocolatey (Windows).
- Installs Android Studio using
-
Install Visual Studio Code:
- Installs Visual Studio Code using
snap(Linux) or Chocolatey (Windows).
- Installs Visual Studio Code using
-
Install Dart SDK:
- Adds the Dart SDK repository and installs Dart (Linux).
- Installs Dart SDK via Chocolatey (Windows).
- Adds Dart SDK to the system
PATH.
-
Install Laravel:
- Installs PHP, Composer, and Laravel installer.
- Adds Composer's global bin directory to the system
PATH.
-
Verify Installations:
- Checks and displays the versions of the installed tools to confirm successful installation.
This project is licensed under the MIT License. See the LICENSE file for more details.