Skip to content

The-R4V3N/ubuntu_software_installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Hey 👋, I'm The-R4V3N!


Connect with me

Welcome! Glad to see you here

Ubuntu Software Installer Script

This script automates the installation of several essential software packages on an Ubuntu system. It installs wget, curl, Brave browser, VS Code, Warp-Terminal, nRF Connect, SEGGER J-Link Software, NVM, Node.js, Git, and build-essential. Additionally, it sets up Git with the provided user email and username.

Prerequisites

  • This script is designed to run on a Debian-based Linux distribution (like Ubuntu).
  • Ensure you have sudo privileges to install software packages and make system changes.

Installation

  1. Download the script: Save the script to your local machine and name it ubuntu_software_installer.sh.

  2. Make the script executable:

    chmod +x ubuntu_software_installer.sh
  3. Run the script:

    sudo yes | sh ubuntu_software_installer.sh

Script Details

What the Script Does

  1. Updates the package list to ensure you have the latest information on the newest versions of packages and their dependencies.
  2. Installs wget if it is not already installed.
  3. Installs curl for data transfer.
  4. Installs build-essential for compiling software.
  5. Installs Brave browser:
    • Downloads and adds the Brave browser's GPG key.
    • Adds the Brave browser repository to your system.
    • Installs the Brave browser.
  6. Installs Visual Studio Code (VS Code):
    • Downloads and adds Microsoft's GPG key.
    • Adds the VS Code repository to your system.
    • Installs VS Code.
  7. Installs Warp Terminal:
    • Downloads and adds Warp's GPG key.
    • Adds the Warp repository to your system.
    • Installs Warp.
  8. Installs nRF Connect:
    • Downloads the latest nRF Connect AppImage.
    • Makes the AppImage executable.
    • Moves the AppImage to /usr/local/bin for global access.
  9. Installs SEGGER J-Link Software:
    • Downloads the J-Link Software.
    • Installs the downloaded .deb file.
    • Fixes any dependency issues.
  10. Installs NVM (Node Version Manager) and Node.js:
    • Downloads and runs the NVM installation script.
    • Sources the NVM script to make nvm command available.
    • Installs the latest stable version of Node.js using NVM.
  11. Installs Git and configures Git with your provided user email and username.

Variables

  • URL: URL for downloading the SEGGER J-Link Software.
  • DEB_FILE: The name for the downloaded J-Link .deb file.
  • INSTALL_DIR: The directory where the SEGGER J-Link Software will be installed.
  • NRF_URL: URL for downloading the latest nRF Connect AppImage.
  • NRF_APPIMAGE: The name for the downloaded nRF Connect AppImage.

Script Execution Flow

  1. Updates package list.
  2. Installs wget if not already present.
  3. Installs curl.
  4. Installs build-essential.
  5. Installs Brave browser.
  6. Installs VS Code.
  7. Installs Warp Terminal.
  8. Installs nRF Connect.
  9. Installs SEGGER J-Link Software.
  10. Installs NVM and Node.js.
  11. Installs Git and configures Git.

Example Output

When running the script, you will see output similar to the following:

sudo apt update
sudo apt install -y wget
sudo apt-get install -y curl
sudo apt-get install -y build-essential
sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list
sudo apt update
sudo apt install -y brave-browser
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" | sudo tee /etc/apt/sources.list.d/vscode.list
sudo apt update
sudo apt install -y code
wget "https://developer.nordicsemi.com/.pc-tools/nrfconnect-appimage/linux/latest/nrfconnect-3.9.2-x86_64.AppImage" -O "nrfconnect-3.9.2-x86_64.AppImage"
chmod +x "nrfconnect-3.9.2-x86_64.AppImage"
sudo mv "nrfconnect-3.9.2-x86_64.AppImage" /usr/local/bin/nrfconnect
wget --post-data "accept_license_agreement=accepted&non_emb_ctr=confirmed" "https://www.segger.com/downloads/jlink/JLink_Linux_x86_64.deb" -O "JLink_Linux_x86_64.deb"
sudo dpkg -i "JLink_Linux_x86_64.deb"
sudo apt-get install -f
rm "JLink_Linux_x86_64.deb"
if [ -d "/opt/SEGGER/JLink" ]; then
    echo "SEGGER J-Link Software installed successfully in /opt/SEGGER/JLink"
else
    echo "Installation failed"
fi
curl https://raw.githubusercontent.com/creationix/nvm/v0.33.4/install.sh | bash
[ -s "$HOME/.nvm/nvm.sh" ] && . "$HOME/.nvm/nvm.sh"
nvm install stable
sudo apt update
sudo apt install -y git
git config --global user.email "[email protected]"
git config --global user.name "username"
Finished Installing Programs!

Troubleshooting

Ensure all URLs for downloading resources are up-to-date and accessible. Run the script with sudo privileges to avoid permission issues. If any part of the script fails, the set -e command will cause the script to exit immediately. Check the error message to troubleshoot the specific issue.

License

This script is provided as-is without any warranty. Use it at your own risk.

Feel free to use and modify the code as you like.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages