Meu ambiente Linux
0
0

Meu ambiente Linux

# setup

Jhonathan Paulo Banczek
1 min
0
0

setup

basic installs

```shell

sudo apt install apt-transport-https curl wget llvm git tilix coreutils dirmngr gpg gawk fonts-powerline zsh libncurses-dev libgdbm-dev libz-dev tk-dev libsqlite3-dev libreadline-dev liblzma-dev libffi-dev libssl-dev make build-essential zlib1g-dev libbz2-dev libncursesw5-dev xz-utils libxml2-dev libxmlsec1-dev

```

## terminal > tilix (escolha a opcao tilix, ex.: 2)

`sudo update-alternatives --config x-terminal-emulator`

## bash > zsh (reiniciar terminal, após)

`chsh -s $(which zsh)`

## ohmyzsh

`sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"`

## sublime, micro, vscode

```shell

sudo snap install sublime-text --classic

sudo snap install micro --classic

sudo snap install code --classic

sudo snap install vlc

```

## brave browser

```shell

sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg

echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-release.list

sudo apt update

sudo apt install brave-browser

```

## asdf

`git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.8.0`

## set config (reiniciar terminal, após)

### bash

`echo '. $HOME/.asdf/asdf.sh' >> .bashrc`

### zsh

`echo '. $HOME/.asdf/asdf.sh' >> .zshrc`

## asdf plugins install:

(após instalar o plugin, rodar `asdf list all <nome do plugin>` pra listar as versões)

### golang (`asdf list all golang`)

```shell

asdf plugin-add golang https://github.com/kennyp/asdf-golang.git

asdf install golang 1.16.4

asdf local golang 1.16.4

asdf global golang 1.16.4

asdf reshim

```

### python

```shell

asdf plugin-add python

asdf install python 3.9.5

asdf local python 3.9.5

asdf global python 3.9.5

asdf reshim

```

### nodejs

```shell

asdf plugin-add nodejs

asdf install nodejs 16.1.0

asdf local nodejs 16.1.0

asdf global nodejs 16.1.0

asdf reshim

```

### sqlite

```shell

asdf plugin-add sqlite https://github.com/cLupus/asdf-sqlite.git

asdf install sqlite 3.35.5

asdf local sqlite 3.35.5

asdf global sqlite 3.35.5

asdf reshim

```