#------------------------------------------------------------------------------------------------------------ # MEU DESKTOP UBUNTU 21.10 (Minimal) / GNOME #------------------------------------------------------------------------------------------------------------ Seleciona a opção Instalação minima Marque instalar drivers e baixar atualizações. #------------------------------------------------------------------------------------------------------------ # APÓS INSTALAÇÃO: Abra no menu de aplicatiso: PROGRAMAS E ATUALIZAÇÕES Aba Outros Programas: Selecione os 2 Parceiros da Canonical Aba Drivers Adicionais: Selecione o Drive proprietário referente sua placa de vídeo #------------------------------------------------------------------------------------------------------------ # ATUALIZE TUDO! sudo apt update; sudo apt upgrade; #------------------------------------------------------------------------------------------------------------ # VIRTUALBOX sudo apt install virtualbox virtualbox-ext-pack #------------------------------------------------------------------------------------------------------------ # MELHORIA NO GNOME sudo apt install chrome-gnome-shell gnome-session gnome-backgrounds gnome-tweaks mutter #------------------------------------------------------------------------------------------------------------ # PLAYONLINUX sudo dpkg --add-architecture i386 ; sudo apt update ; sudo apt upgrade sudo apt install playonlinux msttcorefonts # >> wget https://download.mikrotik.com/routeros/6.48.4/dude-install-6.48.4.exe >> wget https://download.mikrotik.com/winbox/3.32/winbox.exe cp /usr/share/fonts/truetype/msttcorefonts/* ~/PlayOnLinux\'s\ virtual\ drives/default/drive_c/windows/Fonts/ #------------------------------------------------------------------------------------------------------------ # TELEGRAM cd /tmp/ wget https://telegram.org/dl/desktop/linux -O tsetup.tar.xz tar xvf tsetup.tar.xz sudo mv Telegram/ /opt/ sudo chown $USER. /opt/Telegram/ -R sudo ln -sf /opt/Telegram/Telegram /usr/bin/telegram telegram & #------------------------------------------------------------------------------------------------------------ # CHROME cd /tmp/ wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo apt install ./google-chrome-stable_current_amd64.deb #------------------------------------------------------------------------------------------------------------ # SUBLIME-TEXT wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list sudo apt update ; sudo apt install sublime-text crtl + shift + p >> Install packages Guna Theme #------------------------------------------------------------------------------------------------------------ # DROPBOX cd /tmp/ sudo apt install python3-gpg wget https://www.dropbox.com/download?dl=packages/ubuntu/dropbox_2020.03.04_amd64.deb -O dropbox.deb sudo apt install ./dropbox.deb #------------------------------------------------------------------------------------------------------------ # TEAMVIEWER cd /tmp/ wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb sudo apt install ./teamviewer_amd64.deb #------------------------------------------------------------------------------------------------------------ # ANYDESK wget -qO - https://keys.anydesk.com/repos/DEB-GPG-KEY | sudo apt-key add - echo "deb http://deb.anydesk.com/ all main" |sudo tee /etc/apt/sources.list.d/anydesk-stable.list sudo apt update; sudo apt install anydesk libpangox-1.0-0 sudo systemctl disable anydesk #------------------------------------------------------------------------------------------------------------ # DIVERSOS sudo apt install filezilla vinagre rdesktop icedtea-netx default-jre qbittorrent rtorrent #------------------------------------------------------------------------------------------------------------ # SPOTIFY curl -sS https://download.spotify.com/debian/pubkey_5E3C45D7B312C643.gpg | sudo apt-key add - echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list sudo apt update ; sudo apt install spotify-client #------------------------------------------------------------------------------------------------------------ # SKYPE cd /tmp/ wget https://repo.skype.com/latest/skypeforlinux-64.deb sudo apt install ./skypeforlinux-64.deb #------------------------------------------------------------------------------------------------------------ # ONLYOFFICE cd /tmp wget https://download.onlyoffice.com/install/desktop/editors/linux/onlyoffice-desktopeditors_amd64.deb sudo apt install ./onlyoffice-desktopeditors_amd64.deb #------------------------------------------------------------------------------------------------------------ # VSCODE cd /tmp 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' sudo apt update; sudo apt install code #------------------------------------------------------------------------------------------------------------ # GOOGLE EARTH cd /tmp/ wget https://dl.google.com/dl/earth/client/current/google-earth-pro-stable_current_amd64.deb sudo apt install ./google-earth-pro-stable_current_amd64.deb #------------------------------------------------------------------------------------------------------------ # CALCULADORA IPV6 sudo apt install python3-ipaddr wget sudo wget https://blog.remontti.com.br/arquivos/ip6calc_py3 -O /bin/ip6calc sudo chmod a+x /bin/ip6calc ip6calc 2804:f123::/32 #------------------------------------------------------------------------------------------------------------ # FERRAMENTAS?UTILITARIOS DIA DIA sudo apt install htop iotop iftop hdparm locate traceroute tree ipcalc sipcalc \ mtr-tiny whois dnsutils net-tools ncdu apt-transport-https neofetch \ vim bash-completion fzf curl grc bgpq4 nmap lm-sensors\ links arping bmon tcpdump ethtool iptraf-ng -y #------------------------------------------------------------------------------------------------------------ AJUSTES INICIALIZACAO sudo apt install numlockx Abra o menu de aplicativos e procure por: Aplicativos de Inicialização Add: Name: Inicia NumLock Ativo Command: /usr/bin/numlockx on Comment: Inicia NumLock Ativo Name: Acerta Ponto Wine Command: /usr/bin/xmodmap -e 'keycode 129 = period' Comment: Teclado Num #------------------------------------------------------------------------------------------------------------ # PRINT MELHORADO sudo apt install flameshot gsettings set org.gnome.settings-daemon.plugins.media-keys screenshot '[]' gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/']" gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ name 'flameshot' gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ command '/usr/bin/flameshot gui' gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ binding 'Print' #------------------------------------------------------------------------------------------------------------ AJUSTES DIVERSOS cat <~/.vimrc set showmatch " Mostrar colchetes correspondentes set ts=4 " Ajuste tab set sts=4 " Ajuste tab set sw=4 " Ajuste tab set autoindent " Ajuste tab set smartindent " Ajuste tab set smarttab " Ajuste tab set expandtab " Ajuste tab "set number " Mostra numero da linhas EOF echo '# Para usar o fzf use: CTRL+R' >> ~/.bashrc echo 'source /usr/share/doc/fzf/examples/key-bindings.bash' >> ~/.bashrc echo "alias grep='grep --color'" >> ~/.bashrc echo "alias egrep='egrep --color'" >> ~/.bashrc echo "alias ip='ip -c'" >> ~/.bashrc echo "alias diff='diff --color'" >> ~/.bashrc echo "alias meuip='curl ifconfig.me; echo;'" >> ~/.bashrc echo "alias tail='grc tail'" >> ~/.bashrc echo "alias ping='grc ping'" >> ~/.bashrc echo "alias ps='grc ps'" >> ~/.bashrc echo "alias netstat='grc netstat'" >> ~/.bashrc echo "alias dig='grc dig'" >> ~/.bashrc echo "alias traceroute='grc traceroute'" >> ~/.bashrc echo "alias apt='sudo apt'" >> ~/.bashrc echo "alias l='ls -lh'" >> ~/.bashrc echo "alias la='ls -lha'" >> ~/.bashrc echo "PS1='\${debian_chroot:+(\$debian_chroot)}\[\033[01;32m\]\u\[\033[01;34m\]@\[\033[01;36m\]\h\[\033[01;34m\][\[\033[00m\]\[\033[01;37m\]\w\[\033[01;34m\]]\[\033[01;32m\]\\$\[\033[00m\] '" >> ~/.bashrc bash # ------------------------------------------------------------------------------------------------------------ # AJUSTES NO ROOT sudo su - sed -i 's/"syntax on/syntax on/' /etc/vim/vimrc sed -i 's/"set background=dark/set background=dark/' /etc/vim/vimrc echo '# Para usar o fzf use: CTRL+R' >> ~/.bashrc echo 'source /usr/share/doc/fzf/examples/key-bindings.bash' >> ~/.bashrc echo "alias grep='grep --color'" >> ~/.bashrc echo "alias egrep='egrep --color'" >> ~/.bashrc echo "alias ip='ip -c'" >> ~/.bashrc echo "alias diff='diff --color'" >> ~/.bashrc echo "alias meuip='curl ifconfig.me; echo;'" >> ~/.bashrc echo "alias tail='grc tail'" >> ~/.bashrc echo "alias ping='grc ping'" >> ~/.bashrc echo "alias ps='grc ps'" >> ~/.bashrc echo "alias netstat='grc netstat'" >> ~/.bashrc echo "alias dig='grc dig'" >> ~/.bashrc echo "alias traceroute='grc traceroute'" >> ~/.bashrc echo "PS1='\${debian_chroot:+(\$debian_chroot)}\[\033[01;31m\]\u\[\033[01;34m\]@\[\033[01;33m\]\h\[\033[01;34m\][\[\033[00m\]\[\033[01;37m\]\w\[\033[01;34m\]]\[\033[01;31m\]\\$\[\033[00m\] '" >> ~/.bashrc bash exit # ------------------------------------------------------------------------------------------------------------ # PERSONALIZAR GNOME :: Extensoes https://extensions.gnome.org/extension/19/user-themes/ https://extensions.gnome.org/extension/2890/tray-icons-reloaded/ https://extensions.gnome.org/extension/104/netspeed/ ou https://extensions.gnome.org/extension/3724/net-speed-simplified/ https://extensions.gnome.org/extension/1653/tweaks-in-system-menu/ https://extensions.gnome.org/extension/3396/color-picker/ https://extensions.gnome.org/extension/4703/dock-from-dash/ https://extensions.gnome.org/extension/4679/burn-my-windows/ https://extensions.gnome.org/extension/4648/desktop-cube/ https://extensions.gnome.org/extension/3193/blur-my-shell/ https://extensions.gnome.org/extension/4158/gnome-40-ui-improvements/ https://extensions.gnome.org/extension/4693/rounded-system-menu-buttons/ ; https://extensions.gnome.org/extension/750/openweather/ https://extensions.gnome.org/extension/307/dash-to-dock/ https://extensions.gnome.org/extension/1415/virtualbox-applet/ https://extensions.gnome.org/extension/1380/weather-in-the-clock/ # Busca direta no google https://extensions.gnome.org/extension/4132/google-search-provider/ https://extensions.gnome.org/extension/1275/prime-indicator/ https://extensions.gnome.org/extension/841/freon/ https://extensions.gnome.org/extension/2458/bubblemail/ http://bubblemail.free.fr/downloads # Prepara dir para Icons e Temas mkdir ~/.themes mkdir ~/.icons :: Cursores # https://www.gnome-look.org/p/999927/ >> Download tar -vxzf *Breeze.tar.gz mv Breeze ~/.icons/ rm *Breeze.tar.gz :: Icones sudo apt install papirus-icon-theme https://www.gnome-look.org/p/1477945 :: Temas Gnome Shell https://www.gnome-look.org/p/1201366 -- Black-Maia-40.tar.xz https://www.gnome-look.org/p/1357889 -- Orchis.tar.xz / Orchis-green.tar.xz https://www.gnome-look.org/p/1013030 -- 04-Flat-Remix-Green_20211224.tar.xz https://www.pling.com/p/1280977/ # ------------------------------------------------------------------------------------------------------------ GNOME TERMINAL THEMES bash -c "$(wget -qO- https://git.io/vQgMr)" >> 02 12 38 39 53 67 72 76 82 102 121 139 144 150 152 154 179 197 216 # ------------------------------------------------------------------------------------------------------------ KERNEL sudo vim /etc/default/grub #GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX_DEFAULT="quiet splash mitigations=off" sudo update-grub sudo su - echo "vm.swappiness=10" >> /etc/sysctl.conf echo "vm.vfs_cache_pressure=50" >> /etc/sysctl.conf echo "vm.dirty_background_ratio = 5" >> /etc/sysctl.conf sysctl -p sudo reboot # ------------------------------------------------------------------------------------------------------------ # ZSH - POWERLEVEL10K https://github.com/romkatv/powerlevel10k # Instale as fontes: https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf # Configure o terminal com a fonte MesloLGS NF sudo apt install git zsh zsh-autosuggestions zsh-syntax-highlighting fzf git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.powerlevel10k echo 'source ~/.powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc zsh # Para reconfigurar p10k configure vim ~/.zshrc # add bindkey "^[[1;5D" backward-word bindkey "^[[1;5C" forward-word source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source /usr/share/doc/fzf/examples/key-bindings.zsh export LS_OPTIONS='--color=auto' eval "`dircolors`" alias ls='ls $LS_OPTIONS' alias ll='ls $LS_OPTIONS -l' alias l='ls $LS_OPTIONS -lha' alias grep='grep --color' alias egrep='egrep --color' alias ip='ip -c' alias diff='diff --color' alias meuip='curl ifconfig.me; echo;' alias tail='grc tail' alias ping='grc ping' alias ps='grc ps' alias netstat='grc netstat' alias dig='grc dig' alias traceroute='grc traceroute' alias apt='sudo apt' alias l='ls -lh' alias la='ls -lha' alias vaiplaneta='/home/remontti/Dropbox/myLinux/vaiplaneta' alias ip6calc='/home/remontti/Dropbox/myLinux/ip6calc' HISTFILE=~/.zsh_history HISTSIZE=10000 SAVEHIST=10000 setopt appendhistory vim ~/.p10k.zsh # Cor do icon typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND=232 # Cor do fundo do icon typeset -g POWERLEVEL9K_OS_ICON_BACKGROUND=7 #typeset -g POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION='' #typeset -g POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION='' #typeset -g POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION='' Adicione compando persolanizado em preferencias -> profile zsh # ------------------------------------------------------------------------------------------------------------ # ALTERAR FUNDO DA TELA DE LOGIN https://github.com/PRATAP-KUMAR/ubuntu-gdm-set-background cd /tmp wget -qO - https://github.com/PRATAP-KUMAR/ubuntu-gdm-set-background/archive/main.tar.gz | tar zx --strip-components=1 ubuntu-gdm-set-background-main/ubuntu-gdm-set-background apt install libglib2.0-dev-bin Example Commands: sudo ./ubuntu-gdm-set-background --image /home/xxxxx/xxxxx/image.jpg sudo ./ubuntu-gdm-set-background --color \#222222 sudo ./ubuntu-gdm-set-background --gradient horizontal \#222222 \#333333 sudo ./ubuntu-gdm-set-background --gradient vertical \#aAbBcC \#dDeEfF sudo ./ubuntu-gdm-set-background --reset # ------------------------------------------------------------------------------------------------------------ # GRUB THEME cd /boot/grub/ sudo mkdir theme https://www.gnome-look.org/p/1482847 >> Dowload do tema >> extrair em /boot/grub/theme/ sudo vim /etc/default/grub GRUB_THEME=/boot/grub/theme/ubuntu/theme.txt sudo update-grub # ------------------------------------------------------------------------------------------------------------ # REMOVE SNAP sudo apt purge snapd sudo rm -rf ~/snap apt install firefox firefox-locale-br # ------------------------------------------------------------------------------------------------------------ # KOLOR PAINT sudo apt install breeze kolourpaint # ------------------------------------------------------------------------------------------------------------ # BAIXAR MP3 YOUTUBE sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7D19F1F3 sudo add-apt-repository https://www.mediahuman.com/packages/ubuntu sudo apt update sudo apt install youtube-to-mp3 sudo rm /etc/apt/sources.list.d/archive_uri-https_www_mediahuman_com_packages_ubuntu-impish.list sudo apt update