update-alternatives --list python
sudo update-alternatives --install /usr/bin/python python /usr/local/bin/python3.8 3
Found at https://linuxconfig.org/how-to-change-from-default-to-alternative-python-version-on-debian-linux.
Make pip point to a python 3.x version: https://stackoverflow.com/questions/38938205/how-to-override-the-pip-command-to-python3-x-instead-of-python2-7.
usar o QEMU como VM
Seguir passo a passo do: https://github.com/foxlet/macOS-Simple-KVM Documentado aqui em video tb: https://www.youtube.com/watch?v=p-pJ3qCse20
Ao tentar rodar maquina virtual pelo Virt-Manager pode acontecer o erro de permissão negada (Permission denied) para acessar o disco. Para resolver:
sudo gedit /etc/libvirt/qemu.conf
descomente as linhas: user e group para ficarem como root. Then restart libvirtd:
service libvirtd restart
Based on this issue.
- Snap: https://snapcraft.io/sosumi
- Instructions: https://www.linuxuprising.com/2020/03/how-to-install-macos-in-virtual-machine.html
Installing some tools for programming, such as for React Native development.
-
- TOOLS TO INSTALL VIA TERMINAL
➜ ~ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
➜ ~ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
➜ ~ brew install git-lfs
➜ ~ brew install yarn && brew install node && brew install watchman
➜ ~ brew tap AdoptOpenJDK/openjdk
➜ ~ brew cask install adoptopenjdk8
➜ ~ sudo gem install cocoapods
➜ ~ sudo gem install fastlane
➜ ~ npm i -g react-native
➜ ~ brew install git-lfs
➜ ~ brew upgrade
➜ ~ sudo npm cache clean -f
➜ ~ sudo npm install -g n
➜ ~ sudo n stable
-
- SETTING UP SSH:
➜ ~ ssh-keygen -t rsa -b 4096 -C "[email protected]" Enter file in which to save the key (/Users/lab/.ssh/id_rsa): /Users/lab/.ssh/gitlab
➜ ~ ssh-keygen -t rsa -b 4096 -C "[email protected]" Enter file in which to save the key (/Users/lab/.ssh/id_rsa): /Users/lab/.ssh/github
➜ ~ eval "$(ssh-agent -s)"
➜ ~ ssh-add -K ~/.ssh/github
➜ ~ ssh-add -K ~/.ssh/gitlab
➜ ~ touch ~/.ssh/config Conteúdo: Host * AddKeysToAgent yes UseKeychain yes IdentityFile ~/.ssh/gitlab ou gitHub
➜ ~ git config --global user.name "John Doe"
➜ ~ git config --global user.email "[email protected]"
-
- CLONE AND SET UP REACT NATIVE PROJECT:
➜ ~ git clone [email protected]:project.git
➜ rmc git:(master) git checkout develop
➜ rmc git:(develop) git-lfs install
➜ rmc git:(develop) git-lfs pull
➜ rmc git:(develop) yarn
➜ rmc git:(develop) cd ios
➜ ios git:(develop) pod install
-
- TOOLS VIA INSTALLER:
Xcode (Mac) Android Studio Visual Studio Code Reactotron iTerm2 (Mac)
-
- OTHERS:
Display hidden files on Finder (Mac) defaults write com.apple.finder AppleShowAllFiles YES; killall Finder