This script automates the installation and configuration process of a series of useful programs and tools for Pop!_OS (or other distributions based on Ubuntu/Debian).
It performs the following operations:
- Updates the system.
- Installs essential software packages.
- Downloads and installs
.deb
packages. - Installs additional tools such as Oh My Bash, IntelliJ, Maven, among others.
- Configures the environment with environment variables like
JAVA_HOME
andMAVEN_HOME
.
The script performs the following operations:
-
System Update:
- Updates the system packages using
apt update
andapt upgrade
.
- Updates the system packages using
-
Installation of Essential Software:
- Installs tools such as
curl
,wget
,git
,neofetch
,vlc
,discord
,vim
,libreoffice
, among others.
- Installs tools such as
-
Download
.deb
Packages:- Downloads
.deb
files for Java 21 and Visual Studio Code.
- Downloads
-
Install
.deb
Packages:- Installs the downloaded
.deb
packages and removes the.deb
files after installation.
- Installs the downloaded
-
Install IntelliJ:
- Clones the IntelliJ installation repository and runs the installation script.
-
Install Fastfetch:
- Installs Fastfetch from a PPA repository.
-
Install Maven and Configure Environment:
- Downloads and installs Maven, setting the environment variables
MAVEN_HOME
andPATH
.
- Downloads and installs Maven, setting the environment variables
-
Set JAVA_HOME:
- Defines the Java path (
JAVA_HOME
) in the.bashrc
file to facilitate the use of Java in the terminal.
- Defines the Java path (
-
Set config global Git:
- Defines the your user.name and user.email for global git settings
-
Clean up and Remove Temporary Files:
- Removes downloaded
.deb
packages, cleans package cache, and removes unnecessary packages.
- Pop!_OS or another Ubuntu/Debian-based distribution.
- Superuser permissions (sudo) to install packages and make system changes.
- Internet connection to download packages and installation scripts.
-
Clone the repository or download the script:
If you don't have the script locally, run the following command to clone the repository:
git clone https://github.com/Ruanrodrigues20/post-install-pop-os.git cd post-install-pop-os
-
Grant execution permissions to the script: If the file is not executable, use the following command to grant permissions:
chmod +x script.sh
-
Run the script: To run the script, just execute the following command in the terminal:
./script.sh
Wait for the script to complete. It will perform several installations and configurations on your system. During execution, it will clean up temporary files and set environment variables.
- Restart the terminal or system To ensure all environment variables are loaded correctly, restart the terminal or your system.
The script is divided into several functions that can be called separately if needed:
- Function
up
: Updates the system and fixes broken packages. - Function
install
:Installs essential packages. - Function
downloadDeb
: Downloads .deb packages (Java 21, VSCode and Virtual Box). - Function
installDebs
: Installs packages.deb
and clean up the files. - Function
installIntellij
: Installs IntelliJ IDEA. - Function
installfastfetch
: Installs Fastfetch. - Function
installOhMyBash
: Installs Oh My Bash. - Function
installMaven
: Installs Maven and configures MAVEN_HOME and PATH. - Function
setarJavaHome
: Sets the JAVA_HOME environment variable. - Function
removerLixo
: Cleans temporary files, packages, and unnecessary directories.
- The script should run successfully on other Debian/Ubuntu-based distributions, but it has been primarily tested on Pop!_OS.
This project is licensed under the MIT License - see theLICENSE file for more details.