Skip to content

Instantly share code, notes, and snippets.

@Baneeishaque
Last active November 24, 2022 18:50
Show Gist options
  • Save Baneeishaque/68eefa20b60dede8eedf7fcc8389fc1d to your computer and use it in GitHub Desktop.
Save Baneeishaque/68eefa20b60dede8eedf7fcc8389fc1d to your computer and use it in GitHub Desktop.
Ubuntu Initial Setup
sudo snap install gisto \
&& sudo snap install telegram-desktop --edge \
&& sudo snap install vlc --beta \
&& wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip && unzip platform-tools-latest-linux.zip -d ~ && echo "export PATH=$PATH:~/platform-tools" >> ~/.bashrc && source ~/.bashrc && rm platform-tools-latest-linux.zip && adb devices \
&& echo "export ADB=~/platform-tools/adb" >> ~/.bashrc && source ~/.bashrc && sudo snap install scrcpy --beta \
&& sudo apt update && 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 \
&& sudo add-apt-repository -y universe && sudo apt update && sudo apt -y install rclone-browser curl && curl https://rclone.org/install.sh | sudo bash -s beta \
&& sudo add-apt-repository -y universe && wget -qO - https://keys.anydesk.com/repos/DEB-GPG-KEY | sudo apt-key add - && echo "deb http://deb.anydesk.com/ all main" | sudo tee /etc/apt/sources.list.d/anydesk-stable.list && sudo apt update && sudo apt install -y anydesk \
&& sudo apt install -y php8.1 \
&& sudo snap install spotify \
&& sudo add-apt-repository -y universe && sudo add-apt-repository -y ppa:hluk/copyq && sudo apt install -y copyq \
&& sudo add-apt-repository -y universe && wget --output-document=temp.deb --directory-prefix=$HOME "https://zoom.us/client/5.12.0.4682/zoom_amd64.deb" && sudo apt -y install $HOME/temp.deb && rm $HOME/temp.deb \
&& sudo add-apt-repository -y universe && wget --output-document=temp.deb --directory-prefix=$HOME "https://download.teamviewer.com/download/linux/teamviewer_amd64.deb" && sudo apt -y install $HOME/temp.deb && rm $HOME/temp.deb \
&& sudo add-apt-repository -y universe && wget --output-document=temp.deb --directory-prefix=$HOME "https://dbeaver.com/files/ea/ultimate/dbeaver-ue_22.2.4_amd64.deb" && sudo apt -y install $HOME/temp.deb && rm $HOME/temp.deb \
&& sudo add-apt-repository -y universe && wget --output-document=temp.deb --directory-prefix=$HOME "https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64" && sudo apt -y install $HOME/temp.deb && rm $HOME/temp.deb \
&& sudo add-apt-repository -y universe && wget --output-document=temp.deb --directory-prefix=$HOME "https://code.visualstudio.com/sha/download?build=insider&os=linux-deb-x64" && sudo apt -y install $HOME/temp.deb && rm $HOME/temp.deb \
&& sudo snap install gitkraken --edge --classic
sudo snap refresh firefox
sudo apt update && sudo apt install -y curl python3-distutils && curl -OL https://bashhub.com/setup && bash setup && rm setup && source ~/.bashrc && 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 && git clone https://github.com/Baneeishaque/configurations-private.git
adb devices && scrcpy
sudo add-apt-repository -y universe && wget --output-document=temp.deb --directory-prefix=$HOME "https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb" && sudo apt -y install $HOME/temp.deb && rm $HOME/temp.deb
sudo add-apt-repository -y universe && wget --output-document=temp.deb --directory-prefix=$HOME "https://dl.google.com/linux/direct/google-chrome-unstable_current_amd64.deb" && sudo apt -y install $HOME/temp.deb && rm $HOME/temp.deb
cd ~ && downloadUrl=https://mirror.kakao.com/eclipse/technology/epp/downloads/release/2022-09/R/eclipse-jee-2022-09-R-linux-gtk-x86_64.tar.gz && wget --continue $downloadUrl && file=$(basename $downloadUrl) && tar -xvzf $file && folderName=$(tar --exclude='*/*' -tf $file | sed 's/.$//') && echo $folderName && filename="${file%%.*}" && echo $filename && mv $folderName $filename && rm $file
sudo dpkg --add-architecture i386 && sudo mkdir -pm755 /etc/apt/keyrings && sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key && sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/kinetic/winehq-kinetic.sources && sudo apt update && sudo apt install -y --install-recommends winehq-staging
cd ~ && rm -r .wine/ && rm .config/menus/applications-merged/wine* && rm -r .local/share/applications/wine && rm .local/share/desktop-directories/wine* && sudo apt remove -y --purge wine* && sudo apt update && sudo apt -y autoclean && sudo apt -y clean && sudo apt -y autoremove && sudo apt install -y --install-recommends winehq-stable && wineboot
sudo add-apt-repository -y universe && wget --output-document=temp.deb --directory-prefix=$HOME "https://download.virtualbox.org/virtualbox/7.0.4/virtualbox-7.0_7.0.4-154605~Ubuntu~jammy_amd64.deb" && sudo apt -y install $HOME/temp.deb && rm $HOME/temp.deb
automate bashhub
automate GitHub CLI
get latest deb file for DBeaver
remove unwanted snap versions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment