Last active
October 19, 2023 06:54
-
-
Save Baneeishaque/294dacfd5495516f4ed0c4eb3a8f84e8 to your computer and use it in GitHub Desktop.
Ubuntu Live Initialize
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo add-apt-repository -y universe && sudo add-apt-repository -y ppa:hluk/copyq && sudo apt install -y copyq | |
sudo apt install -y curl && curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg && sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list && sudo apt update && sudo apt install -y gh && gh auth login && sudo add-apt-repository -y ppa:git-core/ppa && sudo apt install -y git && cd ~ && mkdir Lab_Data && cd Lab_Data/ && git clone https://github.com/Baneeishaque/configurations-private.git && cd ~ && sudo apt install -y python3-distutils && curl -OL https://bashhub.com/setup && bashHubConfigurationFolder=$HOME/.bashhub && mkdir $bashHubConfigurationFolder && bashHubConfigurationPath=$bashHubConfigurationFolder/config && ln -s ~/Lab_Data/configurations-private/bashhub_config $bashHubConfigurationPath && sed -z 's+\n if ! ../env/bin/bashhub util update_system_info; then\n # Run setup if we run into any issues updating our system info\n ../env/bin/bashhub setup\n fi++' -i setup && $SHELL setup && rm setup && cd ~/Lab_Data/ && gh repo clone Baneeishaque/PowerShell_Scripts && intelliJIdeaVersion=$(pwsh ~/Lab_Data/PowerShell_Scripts/ideaUltimateLatestCheckVersionScript.ps1 | awk '{print $1}') && wget --output-document=ideaIU.tar.gz --directory-prefix=$HOME --continue --read-timeout=5 --tries=0 https://download.jetbrains.com/idea/ideaIU-$(echo $intelliJIdeaVersion).tar.gz && INSTALL_DIR="/opt/ideaIU-$intelliJIdeaVersion" && sudo mkdir $INSTALL_DIR && sudo tar -xvf $HOME/ideaIU.tar.gz -C $INSTALL_DIR --strip-components=1 && sudo ln -s $INSTALL_DIR/bin/idea.sh /usr/local/bin/idea && rm $HOME/ideaIU.tar.gz | |
sudo apt install -y curl && powerShellVersion=$(jq -r 'map(select(.prerelease)) | first | .tag_name' <<< $(curl --silent https://api.github.com/repos/PowerShell/PowerShell/releases)) && curl -L -o /tmp/powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/$(echo $powerShellVersion)/powershell-$(echo $powerShellVersion | cut -c2-)-linux-x64.tar.gz && sudo mkdir -p /opt/microsoft/powershell/7 && sudo tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell/7 && sudo chmod +x /opt/microsoft/powershell/7/pwsh && sudo ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh | |
glink="https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb" && wget $glink && sudo apt install ./google-chrome-stable_current_amd64.deb && rm $(basename $glink) | |
sudo apt install curl && sudo -v ; curl https://rclone.org/install.sh | sudo bash -s beta | |
mkdir ~/.local/bin/ && sudo apt install libgtk-4-dev && curl --location https://github.com/qarmin/czkawka/releases/download/6.0.0/linux_czkawka_gui --output ~/.local/bin/linux_czkawka_gui && sudo chmod +x ~/.local/bin/linux_czkawka_gui | |
rclone --config Lab_Data/configurations-private/rclone.conf lsd Umar-PC-FTP: --ftp-user=anonymous --ftp-pass=$(rclone obscure dummy) && mkdir ~/umar_pc && rclone --config Lab_Data/configurations-private/rclone.conf mount Umar-PC-FTP: ~/umar_pc --ftp-user=anonymous --ftp-pass=$(rclone obscure dummy) | |
gitKrakenDownloadUrl="https://release.gitkraken.com/linux/gitkraken-amd64.deb" && wget $gitKrakenDownloadUrl && gitKrakenInstallationFile=$(basename $gitKrakenDownloadUrl) && sudo apt install -y ./$gitKrakenInstallationFile && rm $gitKrakenInstallationFile | |
telegramInstallationFile=tsetup.tar.xz && wget --output-document=$telegramInstallationFile "https://telegram.org/dl/desktop/linux" && mkdir ~/Programs && sudo tar -xvf $telegramInstallationFile -C ~/Programs/ && rm $telegramInstallationFile | |
sudo apt install scrcpy | |
androidCommandLineToolsLinuxDownloadUrl="https://dl.google.com/android/repository/commandlinetools-linux-9477386_latest.zip" && cd $HOME && wget $androidCommandLineToolsLinuxDownloadUrl && androidCommandLineToolsArchieve=$(basename $androidCommandLineToolsLinuxDownloadUrl) && unzip $androidCommandLineToolsArchieve && mkdir -p Android/Sdk/cmdline-tools/latest && mv cmdline-tools/* Android/Sdk/cmdline-tools/latest/ && rmdir cmdline-tools/ && rm $androidCommandLineToolsArchieve && export ANDROID_SDK_ROOT="$HOME/Android/Sdk" && export PATH=$ANDROID_SDK_ROOT/cmdline-tools/latest/bin:$ANDROID_SDK_ROOT/platform-tools:$PATH | |
androidPlatformToolsLinuxDownloadUrl="https://dl.google.com/android/repository/platform-tools-latest-linux.zip" && cd $HOME && wget $androidPlatformToolsLinuxDownloadUrl && androidPlatformToolsArchieve=$(basename $androidPlatformToolsLinuxDownloadUrl) && unzip $androidPlatformToolsArchieve && mkdir -p Android/Sdk/ && mv platform-tools Android/Sdk/ && rm $androidPlatformToolsArchieve && export ANDROID_SDK_ROOT="$HOME/Android/Sdk" && export PATH=$ANDROID_SDK_ROOT/cmdline-tools/latest/bin:$ANDROID_SDK_ROOT/platform-tools:$PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment