Last active
December 29, 2021 00:58
-
-
Save takitani/b7ed57958fcf65c1b103c072ef6292d3 to your computer and use it in GitHub Desktop.
Os Setup - MX Linux
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
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= | |
# Keychron 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 | |
# Insynq | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ACCAF35C | |
sudo sh -c "echo 'deb [trusted=yes] http://apt.insync.io/debian $(lsb_release -sc) non-free contrib' >> /etc/apt/sources.list.d/insync.list" \ | |
&& sudo apt update \ | |
&& sudo apt install insync | |
# Dotnet | |
wget https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -O packages-microsoft-prod.deb | |
sudo dpkg -i packages-microsoft-prod.deb | |
rm packages-microsoft-prod.deb | |
Copiar | |
sudo apt-get update; \ | |
sudo apt-get install -y apt-transport-https && \ | |
sudo apt-get update && \ | |
sudo apt-get install -y dotnet-sdk-5.0 dotnet-sdk-6.0 | |
# Vmware | |
wget https://www.vmware.com/go/getworkstation-linux -O vmware.bundle --user-agent="Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" | |
sudo chmod a+x vmware.bundle | |
sudo ./vmware.bundle --console --required --eulas-agreed --set-setting vmware-workstation | |
#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 | |
sudo rm -rf vmware.bundle | |
# se der zica de video 3d nao habilitado: | |
sudo nano ~/.vmware/preferences mks.gl.allowBlacklistedDrivers = "TRUE" | |
# Se após boot der erro de vmmon e similares, forçar start na munheca | |
sudo nano /etc/rc.local | |
/etc/init.d/vmware start || exit 0 | |
# PostgreSql | |
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-get update && sudo apt install postgresql postgresql-contrib libpq-dev -y | |
#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 borgbackup | |
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' | |
# Postman | |
\password | |
\q | |
https://terminalroot.com.br/2021/02/como-instalar-o-postman-no-ubuntu-e-em-qualquer-distro-linux.html | |
sudo -u postgres psql | |
\password | |
\q | |
# Wkhtml com qt | |
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_amd64.deb | |
sudo dpkg -i Downloads/wkhtmltox_0.12.6-1.buster_amd64.deb | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment