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
#!/usr/bin/env bash | |
IDESKTOP=$(xdotool get_desktop) # índice do desktop atual | |
NDESKTOP=$(xdotool get_num_desktops) # número de desktops | |
desk_next() { | |
xdotool set_desktop --relative 1 | |
xfce4-panel --plugin-event=genmon-1:refresh:bool:true | |
} |
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
#!/bin/env bash | |
# O caminho para a minha pasta local | |
# de executáveis... | |
script_path="$HOME/.local/bin" | |
# O editor da minha preferência... | |
script_editor="geany" |
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
1. Usar o 'lsblk' para identificar o dispositivo da partição | |
* Exemplo: sda1 | |
2. Executar 'sudo blkid' para descobrir o UUID do dispositivo identificado | |
* Exemplo: 2d602b27-8eef-46e7-90d1-fed447dcef2d | |
3. Criar o ponto de montagem da partição, por exemplo... |
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
1. Remover partição swap duplicada | |
* Identificar a partição com 'lsblk'; | |
* Executar os comandos... | |
$ sudo swapoff -a | |
$ sudo swapon /dev/xxxx <--- xxxx=nome do dispositivo a ser utilizado | |
* Editar '/etc/fstab' para comentar/remover a entrada da swap duplicada | |
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 hostnamectl set-hostname new_name | |
sudo nano /etc/hosts | |
...replace the old name with the new one. |
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
1. Create 'snd_hda_intel.conf'... | |
sudo nano /etc/modprobe.d/snd_hda_intel.conf | |
2. Insert this into the file... | |
options snd_hda_intel power_save=0 | |
3. Save it and reboot. |
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
#!/usr/bin/env bash | |
# ---------------------------------------------------------- | |
# Script : debian-iso-download.sh | |
# Author : Blau Araujo <[email protected]> | |
# Version: 1.0 | |
# License: GNU/GPL-3.0 | |
# | |
# Description: | |
# |
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
# ações cotidianas | |
alias up='sudo apt update' | |
alias upl='echo -e "$(apt list --upgradable 2>/dev/null)" | less' | |
alias upg='sudo apt upgrade' | |
alias apti='sudo apt install' | |
# busca pacotes instalados (sem argumentos=todos) | |
aptinstalled() { | |
echo "" | |
list="$(apt list --installed 2>/dev/null)" |
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
# Instalação nvidia do Dell Vostro no Debian Sid | |
Segundo o artigo em: | |
https://linuxdicasesuporte.blogspot.com/2017/09/nvidia-legacy-com-bumblebee-no-debian.html | |
## Procedimento (no terminal, em modo gráfico): | |
### Descobrir o modelo... |