Skip to content

Instantly share code, notes, and snippets.

@rwmotivation
Created September 8, 2020 13:35
Show Gist options
  • Save rwmotivation/c7838d2066da8d7e100496af8332bd32 to your computer and use it in GitHub Desktop.
Save rwmotivation/c7838d2066da8d7e100496af8332bd32 to your computer and use it in GitHub Desktop.

Revisions

  1. @randall-vx randall-vx revised this gist Jun 10, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -38,7 +38,7 @@ git config --global user.name "Randall Castro"

    # Install apps
    sudo apt-get update
    sudo apt install -y transmission flameshot git git-cola balena-etcher-electron spotify-client insync postgresql-12 postgresql-client-12
    sudo apt install -y transmission flameshot git git-cola balena-etcher-electron spotify-client insync postgresql-12 postgresql-client-12 postgresql-server-dev-12

    # Create postgres user
    sudo su - postgres bash -c "psql -c \"CREATE USER randall WITH CREATEDB PASSWORD 'Cc201403b.4A';\""
  2. @randall-vx randall-vx revised this gist Jun 10, 2020. 1 changed file with 11 additions and 2 deletions.
    13 changes: 11 additions & 2 deletions ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -32,10 +32,21 @@ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys ACCAF35C
    wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
    echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" |sudo tee /etc/apt/sources.list.d/pgdg.list

    # GIT config
    git config --global user.email "[email protected]"
    git config --global user.name "Randall Castro"

    # Install apps
    sudo apt-get update
    sudo apt install -y transmission flameshot git git-cola balena-etcher-electron spotify-client insync postgresql-12 postgresql-client-12

    # Create postgres user
    sudo su - postgres bash -c "psql -c \"CREATE USER randall WITH CREATEDB PASSWORD 'Cc201403b.4A';\""

    # Install VIM and SPF13
    sudo apt install vim -y
    curl http://j.mp/spf13-vim3 -L -o - | sh

    # Remove old docker apps
    sudo apt-get remove docker docker-engine docker.io containerd runc

    @@ -89,8 +100,6 @@ gsettings set org.gnome.shell.extensions.dash-to-dock unity-backlit-items true
    # Remove unused apps
    sudo apt purge firefox gnome-screenshot gedit -y



    # Wkhtmltopdf
    wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb
    sudo apt install ./wkhtmltox_0.12.5-1.bionic_amd64.deb
  3. @randall-vx randall-vx revised this gist Jun 10, 2020. 1 changed file with 11 additions and 1 deletion.
    12 changes: 11 additions & 1 deletion ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -28,9 +28,13 @@ echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sou
    echo "deb http://apt.insync.io/ubuntu focal non-free contrib" | sudo tee /etc/apt/sources.list.d/insync.list
    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys ACCAF35C

    # Install Postgres v12
    wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
    echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" |sudo tee /etc/apt/sources.list.d/pgdg.list

    # Install apps
    sudo apt-get update
    sudo apt install -y transmission flameshot git git-cola balena-etcher-electron spotify-client insync
    sudo apt install -y transmission flameshot git git-cola balena-etcher-electron spotify-client insync postgresql-12 postgresql-client-12

    # Remove old docker apps
    sudo apt-get remove docker docker-engine docker.io containerd runc
    @@ -84,3 +88,9 @@ gsettings set org.gnome.shell.extensions.dash-to-dock unity-backlit-items true

    # Remove unused apps
    sudo apt purge firefox gnome-screenshot gedit -y



    # Wkhtmltopdf
    wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb
    sudo apt install ./wkhtmltox_0.12.5-1.bionic_amd64.deb
  4. @randall-vx randall-vx revised this gist Jun 10, 2020. 1 changed file with 18 additions and 3 deletions.
    21 changes: 18 additions & 3 deletions ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    cd Downloads/
    cd ~/Downloads
    # Install curl to get GPG keys
    sudo apt install -y curl

    @@ -19,13 +19,18 @@ sudo snap install vlc
    # Etcher
    echo "deb https://deb.etcher.io stable etcher" | sudo tee /etc/apt/sources.list.d/balena-etcher.list
    sudo apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys 379CE192D401AB61

    # Spotify
    curl -sS https://download.spotify.com/debian/pubkey.gpg | sudo apt-key add -
    echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list

    # Insync
    echo "deb http://apt.insync.io/ubuntu focal non-free contrib" | sudo tee /etc/apt/sources.list.d/insync.list
    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys ACCAF35C

    # Install apps
    sudo apt-get update
    sudo apt install -y transmission flameshot git git-cola balena-etcher-electron spotify-client
    sudo apt install -y transmission flameshot git git-cola balena-etcher-electron spotify-client insync

    # Remove old docker apps
    sudo apt-get remove docker docker-engine docker.io containerd runc
    @@ -68,4 +73,14 @@ sudo chmod 666 /var/run/docker.sock

    # Check installed docker and docker-compose version
    docker --version
    docker-compose --version
    docker-compose --version

    # Move dock - dash to dock
    gsettings set org.gnome.shell.extensions.dash-to-dock extend-height false
    gsettings set org.gnome.shell.extensions.dash-to-dock dock-position BOTTOM
    gsettings set org.gnome.shell.extensions.dash-to-dock transparency-mode FIXED
    gsettings set org.gnome.shell.extensions.dash-to-dock dash-max-icon-size 16
    gsettings set org.gnome.shell.extensions.dash-to-dock unity-backlit-items true

    # Remove unused apps
    sudo apt purge firefox gnome-screenshot gedit -y
  5. @randall-vx randall-vx revised this gist May 26, 2020. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -60,6 +60,12 @@ sudo curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-
    # Apply executable permissions to the binary:
    sudo chmod +x /usr/local/bin/docker-compose

    # Change all permissions
    sudo usermod -aG docker ${USER}
    sudo chown "$USER":"$USER" /home/"$USER"/.docker -R
    sudo chmod g+rwx "$HOME/.docker" -R
    sudo chmod 666 /var/run/docker.sock

    # Check installed docker and docker-compose version
    docker --version
    docker-compose --version
  6. @randall-vx randall-vx revised this gist May 26, 2020. 1 changed file with 48 additions and 3 deletions.
    51 changes: 48 additions & 3 deletions ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -1,20 +1,65 @@
    cd Downloads/
    # Install curl to get GPG keys
    sudo apt install -y curl

    # Install deb apps
    wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
    wget https://zoom.us/client/latest/zoom_amd64.deb
    sudo apt install -y ./*.deb

    # Install snap apps
    sudo snap install libreoffice
    sudo snap install code --classic
    sudo snap install pycharm-community --classic
    sudo snap install telegram-desktop
    sudo snap install poedit
    sudo snap install vlc

    # Get GPK keys
    # Etcher
    echo "deb https://deb.etcher.io stable etcher" | sudo tee /etc/apt/sources.list.d/balena-etcher.list
    sudo apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys 379CE192D401AB61
    # Spotify
    curl -sS https://download.spotify.com/debian/pubkey.gpg | sudo apt-key add -
    echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list

    # Install apps
    sudo apt-get update
    sudo apt install -y transmission flameshot git git-cola balena-etcher-electron spotify-client
    wget https://gist.github.com/randall-vx/131adc89bbb5737e7119043d35354009/raw/4c9e075dbd225448ce37289ea283edd989f663cb/install-docker.sh
    sudo chmod +x install-docker.sh
    sudo ./install-docker.sh

    # Remove old docker apps
    sudo apt-get remove docker docker-engine docker.io containerd runc

    # Update the apt package index and install packages to allow apt to use a repository over HTTPS:
    sudo apt-get update
    sudo apt-get install apt-transport-https ca-certificates gnupg-agent software-properties-common -y

    # Add Docker’s official GPG key:
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

    # Verify that you now have the key with the fingerprint 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88
    # pub rsa4096 2017-02-22 [SCEA]
    # 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88
    # uid [ unknown] Docker Release (CE deb) <[email protected]>
    # sub rsa4096 2017-02-22 [S]
    sudo apt-key fingerprint 0EBFCD88

    # Install and set up the stable repository
    sudo add-apt-repository \
    "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
    $(lsb_release -cs) \
    stable"

    # Update or install the latest version of Docker Engine and containerd
    sudo apt-get update
    sudo apt-get install docker-ce docker-ce-cli containerd.io -y

    # Download the current stable release of Docker Compose:
    sudo curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

    # Apply executable permissions to the binary:
    sudo chmod +x /usr/local/bin/docker-compose

    # Check installed docker and docker-compose version
    docker --version
    docker-compose --version
  7. @randall-vx randall-vx revised this gist May 26, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    cd Downloads/
    sudo apt install -y curl
    wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
    wget https://zoom.us/client/latest/zoom_amd64.deb
    sudo apt install -y ./*.deb
  8. @randall-vx randall-vx revised this gist May 22, 2020. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -3,16 +3,17 @@ wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
    wget https://zoom.us/client/latest/zoom_amd64.deb
    sudo apt install -y ./*.deb
    sudo snap install libreoffice
    sudo snap install spotify
    sudo snap install code --classic
    sudo snap install pycharm-community --classic
    sudo snap install telegram-desktop
    sudo snap install poedit
    sudo snap install vlc
    echo "deb https://deb.etcher.io stable etcher" | sudo tee /etc/apt/sources.list.d/balena-etcher.list
    sudo apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys 379CE192D401AB61
    curl -sS https://download.spotify.com/debian/pubkey.gpg | sudo apt-key add -
    echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
    sudo apt-get update
    sudo apt install -y transmission flameshot git git-cola balena-etcher-electron
    sudo apt install -y transmission flameshot git git-cola balena-etcher-electron spotify-client
    wget https://gist.github.com/randall-vx/131adc89bbb5737e7119043d35354009/raw/4c9e075dbd225448ce37289ea283edd989f663cb/install-docker.sh
    sudo chmod +x install-docker.sh
    sudo ./install-docker.sh
  9. @randall-vx randall-vx revised this gist May 21, 2020. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,6 @@ cd Downloads/
    wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
    wget https://zoom.us/client/latest/zoom_amd64.deb
    sudo apt install -y ./*.deb
    sudo apt purge firefox gnome-screenshot gedit -y
    sudo snap install libreoffice
    sudo snap install spotify
    sudo snap install code --classic
  10. @randall-vx randall-vx revised this gist May 19, 2020. 1 changed file with 6 additions and 4 deletions.
    10 changes: 6 additions & 4 deletions ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -10,8 +10,10 @@ sudo snap install pycharm-community --classic
    sudo snap install telegram-desktop
    sudo snap install poedit
    sudo snap install vlc
    sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
    echo "deb https://deb.etcher.io stable etcher" | sudo tee /etc/apt/sources.list.d/balena-etcher.list
    sudo apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys 379CE192D401AB61
    sudo apt-get update
    sudo apt install -y transmission flameshot git git-cola docker-ce docker-ce-cli containerd.io
    sudo curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    sudo chmod +x /usr/local/bin/docker-compose
    sudo apt install -y transmission flameshot git git-cola balena-etcher-electron
    wget https://gist.github.com/randall-vx/131adc89bbb5737e7119043d35354009/raw/4c9e075dbd225448ce37289ea283edd989f663cb/install-docker.sh
    sudo chmod +x install-docker.sh
    sudo ./install-docker.sh
  11. @randall-vx randall-vx revised this gist May 12, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -12,6 +12,6 @@ sudo snap install poedit
    sudo snap install vlc
    sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
    sudo apt-get update
    sudo apt install -y transmission flameshoot git git-cola docker-ce docker-ce-cli containerd.io
    sudo apt install -y transmission flameshot git git-cola docker-ce docker-ce-cli containerd.io
    sudo curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    sudo chmod +x /usr/local/bin/docker-compose
  12. @randall-vx randall-vx created this gist May 12, 2020.
    17 changes: 17 additions & 0 deletions ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    cd Downloads/
    wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
    wget https://zoom.us/client/latest/zoom_amd64.deb
    sudo apt install -y ./*.deb
    sudo apt purge firefox gnome-screenshot gedit -y
    sudo snap install libreoffice
    sudo snap install spotify
    sudo snap install code --classic
    sudo snap install pycharm-community --classic
    sudo snap install telegram-desktop
    sudo snap install poedit
    sudo snap install vlc
    sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
    sudo apt-get update
    sudo apt install -y transmission flameshoot git git-cola docker-ce docker-ce-cli containerd.io
    sudo curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    sudo chmod +x /usr/local/bin/docker-compose