This file contains 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 | |
# | |
# Usage: | |
# sudo ediso.sh patho_to/isofile.iso path_to/new_isofile.iso path_to/preseed_file | |
# | |
# Requires: | |
# - bsdtar | |
# - genisoimage | |
# - syslinux-utils |
This file contains 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
# ------------------------------------------------------ | |
# Important: these settings doesn't change | |
# the graphic installer! | |
# ------------------------------------------------------ | |
# What it changes? | |
# | |
# - no domain asking (deafult to 'localhome') | |
# - no root password asking | |
# - default to sid main contrib non-free | |
# - no 2nd CD asking |
This file contains 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 | |
# Vídeo da live: | |
# https://www.youtube.com/watch?v=HM1aBrhcj9c | |
# Requer: dmenu | |
selected="$(ps -a -u $USER | \ | |
dmenu -i -l 20 -p "Select process to kill" | \ | |
awk '{print $1" "$4}')"; |
This file contains 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
Create the file 'wpa_supplicant.conf'... | |
$ sudo nano /etc/wpa_supplicant.conf | |
Put the following in ti: | |
network={ | |
ssid="your_wifi_name" | |
psk="your_wifi_password" | |
} |
This file contains 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
# Meta-pacote do Gnome... | |
sudo apt install gnome | |
# Remover... | |
sudo apt remove firefox-esr | |
This file contains 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... |
This file contains 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 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 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 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. |
OlderNewer