This repository contains a script named devInstall.sh designed to simplify the installation of development tools, libraries, and applications on an Ubuntu 22.04 system. The script is crafted to provide flexibility, allowing users to choose between full automation or manual selection of components for their development environment.
-
Streamlined Development Setup: Automate the process of setting up a robust development environment, saving time and reducing errors that can occur during manual installation.
-
Versatile Installation Options: Provide options for both automatic and manual installations, allowing users to tailor the setup based on their specific needs or preferences.
-
Efficiency and Productivity: By handling repetitive tasks, this script ensures that developers have a ready-to-go environment with minimal configuration required, enhancing productivity.
-
Customization: Users can choose which components to install, whether it's basic tools, AI/ML libraries, or specific IDEs, making the setup highly customizable.
-
Simplicity in Maintenance: Regular updates and maintenance of development environments can be streamlined using this script, ensuring that all necessary packages are kept up-to-date.
-
Ensure Your System is Up-to-Date: Before running the script, make sure your system packages are up-to-date.
sudo apt update && sudo apt upgrade -y -
Run Directly from GitHub (Recommended): You can run the script directly from GitHub without cloning the repository using the following command:
- Full installation
curl -o- https://labknowledge.github.io/depEnvScript/devInstall.sh | bash -s full- Minimal Installation
curl -o- https://labknowledge.github.io/depEnvScript/devInstall.sh | bash -s minimal- Manual Installation
curl -o- https://labknowledge.github.io/depEnvScript/devInstall.sh | bash -s manual This method simplifies the process and is ideal for those who just need a quick setup.
-
Clone the Repository: Alternatively, you can clone the repository to your local machine using
git.git clone https://github.com/labKnowledge/depEnvScript.git cd depEnvScript
-
Make the Script Executable: Before running, make sure the script has execute permissions.
chmod +x devInstall.sh
-
Run the Installation Menu: Execute the script to start the installation process.
./devInstall.sh
Upon running devInstall.sh, you will be presented with a menu:
Ubuntu 22.04 Development Environment Setup
----------------------------------------
1) Automatic Installation (All components)
2) Minimal Installation (Basic tools, Git, Docker)
3) Manual Installation (Choose components)
4) Exit-
Automatic Installation (All Components): Select this option to automatically install all available components. This is ideal if you want a fully configured development environment with minimal manual intervention.
Please select an option [1-4]: 1
-
Minimal Installation (Basic tools, Git, Docker): Choose this option for a basic setup consisting of essential development tools like
build-essential,git, andDocker.Please select an option [1-4]: 2
-
Manual Installation (Choose Components): This allows you to selectively install components based on your needs. You will be prompted for each component individually.
Please select an option [1-4]: 3 Select components to install (y/n for each): Install basic development tools? [y/n]: y Install Docker? [y/n]: y Install Node.js and related tools? [y/n]: n Install Python development environment? [y/n]: n Install AI/ML tools? [y/n]: n Install Visual Studio Code? [y/n]: n Install browsers? [y/n]: n
-
Exit: Exit the script without performing any installations.
Please select an option [1-4]: 4
After making your selection, the script will begin installing the chosen components. Once the installation is complete, you may need to log out and log back in for some changes to take effect (e.g., environment variables for tools like nvm).
print_warning "Please log out and log back in for some changes to take effect."If anything goes wrong during the installation, check the terminal output for error messages. The script includes functions like print_error, print_message, and check_status to help you identify issues.
For more detailed troubleshooting or additional customization options, refer to the README file in the repository.
-
Quick Setup: If you need a quick development environment with everything installed automatically:
./devInstall.sh 1
-
Basic Setup: For a basic setup without AI/ML tools:
./devInstall.sh 2
-
Custom Setup: If you want to pick and choose specific components:
./devInstall.sh 3
By following these steps, you can easily set up a robust development environment tailored to your needs on Ubuntu 22.04 using the devInstall.sh script from the specified repository.