Last active
November 26, 2022 21:32
-
-
Save takitani/1dc45f0ec6983f9eb7e46d4aa2818426 to your computer and use it in GitHub Desktop.
Os Setup - PopOs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Current Version: 2110 - Cosmic | |
Date: 2021-12-18 | |
# Troca shortcut: | |
Contrl + alt + T = Terminal | |
Contrl + E = File Manager | |
# Muda navegacao de janelas para padrao win | |
Settings -> Shortcuts -> Navigation -> Move Window One Monitor to Right / Left = Super+Shift+Right / Super+Shift+Left | |
# Instala o basico | |
sudo apt update && sudo apt upgrade -y | |
sudo apt install -y curl zsh git terminator vim cmake neofetch htop iotop flameshot qalculate-gtk autokey-gtk | |
sudo locale-gen pt_BR.UTF-8 | |
# copyq | |
sudo add-apt-repository ppa:hluk/copyq \ | |
&& sudo apt-get update \ | |
&& sudo apt-get install copyq | |
# Zsh | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
# Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting) | |
# Download zsh-autosuggestions by | |
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions | |
# Download zsh-syntax-highlighting by | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting | |
# nano ~/.zshrc find plugins=(git) | |
# Append zsh-autosuggestions & zsh-syntax-highlighting to plugins() like this | |
# plugins=(git zsh-autosuggestions zsh-syntax-highlighting z) | |
# Neofetch | |
sudo apt install neofetch | |
# Adicionar no bashrc ou zshrc neofetch | |
# Chrome | |
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' | |
sudo apt-get update | |
sudo apt install google-chrome-stable | |
sudo apt install imwheel | |
Rodar o script mousewhell.sh | |
No startup, colocar ou na munheca: | |
imwheel --kill --buttons "4 5" | |
criar o arquivo em ~/.config/autostart/imwheel.desktop | |
[Desktop Entry] | |
Type=Application | |
Exec=imwheel --kill --buttons "4 5" | |
Hidden=false | |
NoDisplay=false | |
X-GNOME-Autostart-enabled=true | |
Name[en_US]=mousewhell | |
Name=mousewhell | |
Comment[en_US]= | |
Comment= | |
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg | |
sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/ | |
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list' | |
rm -f packages.microsoft.gpg | |
Then update the package cache and install the package using: | |
sudo apt install apt-transport-https | |
sudo apt update | |
sudo apt install code # or code-insiders | |
# https://openrazer.github.io/#ubuntu | |
# https://polychromatic.app/ | |
# Keyshron Fn keys | |
https://gist.github.com/andrebrait/961cefe730f4a2c41f57911e6195e444 | |
# replace <value> below with the one that worked for you in the previous step (0, 1 or 2) | |
# example: echo "options hid_apple fnmode=2 | sudo tee /etc/modprobe.d/hid_apple.conf" | |
# this will erase any pre-existing contents from /etc/modprobe.d/hid_apple.conf | |
echo "options hid_apple fnmode=0" | sudo tee /etc/modprobe.d/hid_apple.conf | |
#sudo update-initramfs -u | |
sudo systemctl reboot | |
# Vmware | |
wget https://www.vmware.com/go/getworkstation-linux -O vmware.bundle | |
sudo chmod a+x vmware.bundle | |
sudo ./vmware.bundle --console --required --eulas-agreed --set-setting vmware-workstation | |
sudo rm -rf vmware.bundle | |
# ajuste no nautilus para mostrar location entry no topo | |
gsettings set org.gnome.nautilus.preferences always-use-location-entry true | |
# Remmina | |
sudo apt-add-repository ppa:remmina-ppa-team/remmina-next \ | |
&& sudo apt update \ | |
&& sudo apt install remmina remmina-plugin-rdp remmina-plugin-secret | |
# Franz | |
wget https://github.com/meetfranz/franz/releases/download/v5.7.0/franz_5.7.0_amd64.deb -O franz.deb \ | |
&& sudo dpkg -i franz.deb \ | |
sudo apt-get install -f | |
# Insynq | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ACCAF35C | |
# Postgre | |
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
sudo apt update | |
sudo apt install postgresql postgresql-contrib libpq-dev | |
# Nvm | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | zsh | |
zsh: source ~/.zshrc | |
nvm install node # "node" is an alias for the latest version | |
nvm use node | |
#Rvm | |
gpg --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB | |
\curl -sSL https://get.rvm.io | bash -s stable | |
rvm install ruby-2.7.3 | |
# Se sair do shell e voltar e nao tiver rvm, provavelmente é: | |
# https://stackoverflow.com/questions/19595974/rvm-command-not-found | |
echo "source $HOME/.rvm/scripts/rvm" >> ~/.zshrc | |
# Backup | |
sudo apt install vorta | |
# Cedilha (teclado us-intl) | |
# https://www.vivaolinux.com.br/dica/Cedilha-c-nao-funciona-no-Debian-10-Buster | |
sudo nano /etc/environment | |
GTK_IM_MODULE=cedilla | |
QT_IM_MODULE=cedilla | |
sudo nano /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache | |
sudo nano /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules.cache | |
sudo sed -i /usr/share/X11/locale/en_US.UTF-8/Compose -e 's/ć/ç/g' -e 's/Ć/Ç/g' | |
# Insynq | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ACCAF35C | |
# ou sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys ACCAF35C | |
sudo sh -c "echo 'deb http://apt.insync.io/ubuntu $(lsb_release -sc) non-free contrib' >> /etc/apt/sources.list.d/insync.list" \ | |
&& sudo apt update \ | |
&& sudo apt install insync | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment