https://github.com/felipementel/my-environment
https://github.com/felipementel/my-environment
chocolatey deploy winget
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/felipementel/my-environment
- Owner: felipementel
- License: unlicense
- Created: 2020-11-13T16:30:06.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-05-28T10:27:50.000Z (5 months ago)
- Last Synced: 2025-05-28T10:52:45.325Z (5 months ago)
- Topics: chocolatey, deploy, winget
- Language: Shell
- Homepage:
- Size: 224 KB
- Stars: 16
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 1. Chocolatey :boom:
+ Abra o powershell como adminstrador;
+ Execute o comando abaixo;# Chocolatey
````
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/felipementel/my-environment/main/chocolatey.ps1'))
````
# Winget
````
Set-ExecutionPolicy Bypass -Scope Process -Force; $webClient = New-Object System.Net.WebClient; $webClient.CachePolicy = New-Object System.Net.Cache.RequestCachePolicy([System.Net.Cache.RequestCacheLevel]::NoCacheNoStore); iex ($webClient.DownloadString("https://raw.githubusercontent.com/felipementel/my-environment/main/winget.ps1"))
````# Linux
````
/bin/bash -c "$(curl -fsSL -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/felipementel/my-environment/main/setup-linux.sh)"
````
+ Faça um café.PS: Lembrar de trocar o path do PowerShell Core no Windows Terminal para C:\Program Files\PowerShell\7\pwsh.exe
# O que instalar e configurar no Windows? 🪟
## 2. Habilitar Windows + V :notes:> [!IMPORTANT]
> Configurar Fonte no terminal de forma manual !!!# O que instalar e configurar no WSL2 Ubuntu? 🐧
### Diversos
````
sudo apt-get install mc htop jq dotnet-interactive && curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
````
### .NET
````
curl -L https://dot.net/v1/dotnet-install.sh -o dotnet-install.sh
````
````
chmod +x ./dotnet-install.sh
````
````
./dotnet-install.sh --channel 9.0
````
### configure as variaveis de ambiente
````
export DOTNET_ROOT=$HOME/.dotnet
````
````
export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools
````
### Kubernetes
````
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
````
````
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
````
### yq
````
sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
````
````
sudo chmod a+x /usr/local/bin/yq
````
### Docker
````
https://get.docker.com/
````
Para testar:
````
docker container run hello-world
````> [!WARNING]
> Caso dê problema de permissão, execute os comandos abaixoAdd docker group
````
sudo groupadd docker
````
Add your current user to docker group
````
sudo usermod -aG docker $USER
````
Switch session to docker group
````
newgrp - docker
````
Run an example to test
````
docker run hello-world
````
---
## Oh My Posh
````
sudo wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh
````
````
sudo chmod +x /usr/local/bin/oh-my-posh
````
Agora precisamos criar os arquivos que ficam as configurações
````
touch ~/.bashrc
````
````
vi ~/.bashrc
````
Coloque esses valores dentro do arquivo
````
eval "$(oh-my-posh init bash --config /mnt/c/users/felipe.augusto/AppData/Local/Programs/oh-my-posh/themes/craver.omp.json)"
````
Saia do modo SU
````
exit
````
Recarregue o terminal
````
exec bash
````## GitHub CLI
````
sudo apt-add-repository https://cli.github.com/packages
````
````
sudo apt update
````
````
sudo apt install gh
````
> [!IMPORTANT]
> Configurar Fonte no terminal de forma manual !!!### Configuração do WSL NetworkMode Mirrored (espelhada)
````
@"
[wsl2]
networkingMode=mirrored
"@ | Out-File "$env:USERPROFILE\.wslconfig" -Encoding ASCII
````> Git
````
eval "$(oh-my-posh init bash --config $HOME/AppData/Local/Programs/oh-my-posh/themes/clean-detailed.omp.json)"
````# 6. O que instalar via npm? :telephone_receiver:
````node
npm -g i typescript ts-node postman newman-parallel spectral
````
List global installed packages:
````node
npm list -g --depth 0
````# 7. Plugins no Visual Studio :mushroom:
> Sonar Lint> Fine Code Coverage