Skip to content

Instantly share code, notes, and snippets.

View debxp's full-sized avatar
🙂
I may be slow to respond.

debxp debxp

🙂
I may be slow to respond.
View GitHub Profile
@debxp
debxp / ediso.sh
Last active June 8, 2019 11:34
Append preseed.cfg to Debian installer iso and generates a new iso.
#!/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
@debxp
debxp / preseed.cfg
Last active June 10, 2019 20:33
preseed
# ------------------------------------------------------
# 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
@debxp
debxp / master-dev-01-list_kill_proc
Last active June 15, 2019 04:04
Só uma brincadeira com o desafio do 1º Master Dev Brasil
#!/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}')";
@debxp
debxp / wifi-cli-connection.txt
Last active September 4, 2024 13:25
Wifi connection from command line after a Debian minimal install
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"
}
@debxp
debxp / debian-gnome-install.txt
Last active June 9, 2019 02:14
Minha lista de pós instalação do Debian Sid para o ambiente Gnome.
# Meta-pacote do Gnome...
sudo apt install gnome
# Remover...
sudo apt remove firefox-esr
@debxp
debxp / nvidia-legacy-bumblebee-debian-sid.txt
Created June 9, 2019 04:23
Instalação do driver nvidia legacy com bumblebee no Debian Sid/Buster.
# 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...
@debxp
debxp / bash-aliases-apt
Last active June 9, 2019 15:37
Meus aliases - apt
# 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)"
@debxp
debxp / debian-iso-downloader.sh
Last active September 21, 2019 01:05
Downloader for Debian testing/sid daily or weekly cd images builds with firmware non-free (unofficial)
#!/usr/bin/env bash
# ----------------------------------------------------------
# Script : debian-iso-download.sh
# Author : Blau Araujo <[email protected]>
# Version: 1.0
# License: GNU/GPL-3.0
#
# Description:
#
@debxp
debxp / snd_hda_intel-fix.txt
Created July 13, 2019 04:55
fix pops/clicks on intel audio cards
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.
@debxp
debxp / hostname-change.txt
Created July 13, 2019 04:59
Change hostname
sudo hostnamectl set-hostname new_name
sudo nano /etc/hosts
...replace the old name with the new one.