Skip to content

Instantly share code, notes, and snippets.

@dbellomo
Last active August 23, 2020 22:29
Show Gist options
  • Select an option

  • Save dbellomo/5c120b354c1769819831 to your computer and use it in GitHub Desktop.

Select an option

Save dbellomo/5c120b354c1769819831 to your computer and use it in GitHub Desktop.
custom setup de raspbian para poder usarlo como PC

Pulseaudio

Cuando se escucha mal en el browser.

$ rm -fr /home/pi/.config/pulse /tmp/pulse-*
$ pulseaudio --kill; pulseaudio --start

PiHole & DNSCrypt

https://itchy.nl/raspberry-pi-3-with-openvpn-pihole-dnscrypt

Swap

aumentar swap (en la instalación está configurado en 100 MB y el browser se cuelga)

  • modificar el valor de la variable CONF_SWAPSIZE en /etc/dphys-swapfile
$ grep SWAPSIZE /etc/dphys-swapfile
CONF_SWAPSIZE=1024
  • reiniciar el servicio
# etc/init.d/dphys-swapfile stop
# etc/init.d/dphys-swapfile start

Ref: http://raspberrypimaker.com/adding-swap-to-the-raspberrypi/

Static IP

Nota: ahora no se configura la dirección estática en el archivo /etc/network/interface. Se hace en el /etc/dhcpcd.conf, ya que está seteado para hacerlo via dhcp.

$ tail /etc/dhcpcd.conf
...
interface eth0
       static ip_address=192.168.1.254/24
       static routers=192.168.1.1
       static domain_name_servers=193.183.98.154 87.98.175.85 45.56.117.118

desabilitar actualizaciones del DHCP

# resolvconf --disable-updates

Desktop

  • lxqt
  • fluxbox

Network manager

  • wicd & network-manager-openvpn
  • apt-get install wicd network-manager-openvpn

Disable WiFi (wlan0) && Bluetooth

To completely disable the onboard WiFi && Bluetooth from the firmware on the RPi3, add

dtoverlay=pi3-disable-wifi
dtoverlay=pi3-disable-bt

in /boot/config.txt.

Name: pi3-disable-bt

Info: Disable Pi3 Bluetooth and restore UART0/ttyAMA0 over GPIOs 14 & 15 N.B. To disable the systemd service that initialises the modem so it doesn't use the UART, use 'sudo systemctl disable hciuart'.

Remove pi-bluetooth package:

# dpkg -P pi-bluetooth

disable hciuart:

$ sudo systemctl disable hciuart  
Removed /etc/systemd/system/multi-user.target.wants/hciuart.service.

ref: https://github.com/raspberrypi/firmware/blob/master/boot/overlays/README

Prepare for ssh without a screen

you just need to create a file in the boot partition called ssh. To check if you're in the right partition, it should have a file named start.elf.

ref: https://raspberrypi.stackexchange.com/questions/38/prepare-for-ssh-without-a-screen/61428#61428

Create a Lightweight Raspberry Pi System with Raspbian Lite

http://thisdavej.com/create-a-lightweight-raspberry-pi-system-with-raspbian-lite/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment