-
Change keyboard layout:
loadkeys no
-
Verify boot mode:
ls /sys/firmware/efi/efivars
(If the directory exist your computer supports EFI)
-
Ping some site on the Internet to verify connection:
ping archlinux.org
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
version: '3' | |
services: | |
portainer: | |
image: portainer/portainer-ce:latest | |
container_name: my_portainer | |
volumes: | |
- data:/data | |
- /var/run/docker.sock:/var/run/docker.sock | |
restart: always | |
networks: |
I used this command to quickly enable all available languages (nano-syntax-highlighting) | |
find /usr/share/nano/ -iname "*.nanorc" -exec echo include {} \; >> ~/.nanorc |
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --recheck | |
pacman -S os-prober | |
nano /etc/default/grub | |
# Poner GRUB_DISABLE_OS_PROBER=false para que reconozca Windows | |
sudo grub-mkconfig -o /boot/grub/grub.cfg |
{ | |
email [email protected] | |
} | |
bolt.washopilot.duckdns.org { | |
reverse_proxy bolt-cms-site:80 | |
} | |
wp1.washopilot.duckdns.org { | |
reverse_proxy wordpress-1:80 |
FROM php:7.2-fpm | |
# Replace shell with bash so we can source files | |
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |
# make sure apt is up to date | |
RUN apt-get update --fix-missing | |
RUN apt-get install -y curl | |
RUN apt-get install -y build-essential libssl-dev zlib1g-dev libpng-dev libjpeg-dev libfreetype6-dev |
# Instalar en archlinux qemu para x86_64 (suficiente) | |
sudo pacman -S qemu-desktop | |
# Crear un archivo imagen vacío con formato qcow2 (dinámico) | |
qemu-img create -f qcow2 arch_image.cow 10G | |
# Comando para lanzar la imagen con un arhivo iso asociado (sirve para instalar la iso) | |
qemu-system-x86_64 -cdrom archlinux-x86_64.iso -boot order=d -drive file=arch_image.cow,format=qcow2 -m 4G \ | |
-enable-kvm -cpu host -smp sockets=1,cores=2,threads=2 -device virtio-vga-gl -display gtk,gl=on,grab-on-hover=on | |
[wsl2] | |
memory=6GB | |
processors=8 | |
swap=3GB | |
guiApplications=false | |
localhostforwarding=true | |
nestedVirtualization=false | |
debugConsole=false | |
networkingMode=NAT |
curl -fsSL https://get.pnpm.io/install.sh | sh - | |
pnpm env use --global lts | |
pnpm completion zsh > ~/completion-for-pnpm.zsh | |
echo 'source ~/completion-for-pnpm.zsh' >> ~/.zshrc |