Skip to content

Instantly share code, notes, and snippets.

@viniciusgati
Last active September 25, 2021 01:22
Show Gist options
  • Save viniciusgati/718130ace28f77a4b7e5f2a1f50d4082 to your computer and use it in GitHub Desktop.
Save viniciusgati/718130ace28f77a4b7e5f2a1f50d4082 to your computer and use it in GitHub Desktop.
Post intallation personal computter deb
sudo dnf -y install \
gmp-devel \
libbsd-devel \
libedit-devel \
libevent-devel \
libxml2-devel \
libyaml-devel \
llvm-static \
openssl-devel \
libcanberra-gtk-module \
readline-devel
sudo dnf -y install patch autoconf gcc-c++ patch libffi-devel automake libtool bison sqlite-devel ImageMagick-devel nodejs git gitg
sudo dnf -y install gcc-c++ patch readline readline-devel zlib zlib-devel \
libyaml-devel libffi-devel openssl-devel make \
bzip2 autoconf automake libtool bison sqlite-devel
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.4.0
echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.bashrc
echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc
echo -e 'gem: --no-document' >> ~/.gemrc
source ~/.bashrc
asdf plugin-add clojure https://github.com/vic/asdf-clojure.git
asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
asdf plugin-add erlang https://github.com/asdf-vm/asdf-erlang.git
asdf plugin-add golang https://github.com/kennyp/asdf-golang.git
asdf plugin-add python https://github.com/tuvistavie/asdf-python.git
asdf plugin-add ruby https://github.com/asdf-vm/asdf-ruby.git
asdf plugin-add nodejs https://github.com/asdf-vm/asdf-nodejs.git
# Imports Node.js release team's OpenPGP keys to main keyring
bash ~/.asdf/plugins/nodejs/bin/import-release-team-keyring
# asdf install ruby 2.4.3
asdf install ruby 2.7.1
asdf global ruby 2.7.1
asdf install nodejs 12.18.2
asdf global nodejs 12.18.2
gem install rails
gem install sinatra
gem install hanami
npm install -g @foal/cli
npm install -g @ionic/cli
git config --global user.name Vinicius Gati
git config --global user.email viniciusgati@gmail.com
git config --global alias.c commit
git config --global alias.st status
git config --global alias.ck checkout
git config --global alias.l log
sudo dnf install https://download.postgresql.org/pub/repos/yum/reporpms/F-34-x86_64/pgdg-fedora-repo-latest.noarch.rpm -y
sudo dnf install postgresql12-server postgresql12 -y
sudo /usr/pgsql-12/bin/postgresql-12-setup initdb
sudo systemctl enable --now postgresql-12
# sudo vim /var/lib/pgsql/12/data/postgresql.conf
# listen_addresses = '*'
# sudo systemctl restart postgresql-12
# sudo su - postgres
# psql -c "alter user postgres with password '12341234'"
# sudo yum install libpqxx-devel postgresql-devel -y
# sudo dnf install /usr/include/libpq-fe.h
# gem install pg -- --with-pg-config=/usr/pgsql-12/bin/pg_config
#!/usr/bin/env bash
# ----------------------------- VARIÁVEIS ----------------------------- #
DIRETORIO_DOWNLOADS="$HOME/Downloads/programas"
PROGRAMAS_PARA_INSTALAR=( \
curl \
git \
gcc \
make \
g++ \
zlib1g-dev \
)
# ---------------------------------------------------------------------- #
# ----------------------------- REQUISITOS ----------------------------- #
## Removendo travas eventuais do apt ##
sudo rm /var/lib/dpkg/lock-frontend
sudo rm /var/cache/apt/archives/lock
## Adicionando/Confirmando arquitetura de 32 bits ##
# sudo dpkg --add-architecture i386
## Atualizando o repositório ##
sudo apt update -y
# Instalar programas no apt
for nome_do_programa in ${PROGRAMAS_PARA_INSTALAR[@]}; do
if ! dpkg -l | grep -q $nome_do_programa; then # Só instala se já não estiver instalado
apt install "$nome_do_programa" -y
else
echo "[INSTALADO] - $nome_do_programa"
fi
done
# ruby 2.3 Ruby < 2.4 is not compatible with openssl 1.1, so, you need libssl1.0-dev, hence the solution
sudo echo deb http://security.ubuntu.com/ubuntu bionic-security main >> /etc/apt/sources.list
sudo apt update && apt-cache policy libssl1.0-dev
sudo apt-get install libssl1.0-dev
sudo apt-get update
sudo apt-get install libssl-dev libreadline-dev
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.4.0
echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.bashrc
echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc
source ~/.bashrc
asdf plugin-add clojure https://github.com/vic/asdf-clojure.git
asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
asdf plugin-add erlang https://github.com/asdf-vm/asdf-erlang.git
asdf plugin-add golang https://github.com/kennyp/asdf-golang.git
asdf plugin-add python https://github.com/tuvistavie/asdf-python.git
asdf plugin-add ruby https://github.com/asdf-vm/asdf-ruby.git
asdf plugin-add nodejs https://github.com/asdf-vm/asdf-nodejs.git
# Imports Node.js release team's OpenPGP keys to main keyring
bash ~/.asdf/plugins/nodejs/bin/import-release-team-keyring
asdf install ruby 2.3.3
asdf install ruby 2.7.1
asdf global ruby 2.7.1
asdf install nodejs 12.18.2
asdf global nodejs 12.18.2
sudo apt install mongodb -y
npm install -g @foal/cli
npm install -g @ionic/cli
git config --global user.name Vinicius Gati
git config --global user.email viniciusgati@gmail.com
git config --global alias.c commit
git config --global alias.st status
git config --global alias.ck checkout
git config --global alias.l log
# ----------------------------- PÓS-INSTALAÇÃO ----------------------------- #
## Finalização, atualização e limpeza##
sudo apt update && sudo apt dist-upgrade -y
sudo apt autoclean
sudo apt autoremove -y
# ---------------------------------------------------------------------- #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment