diff options
author | Jesús <heckyel@hyperbola.info> | 2021-09-20 20:59:37 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-09-20 20:59:37 -0500 |
commit | 8597539c453d7bfb1319553a8444e4f9a4e1fc0a (patch) | |
tree | 8819e9d571332deb3eec559431640257ecf289ad | |
parent | 4e9acc189236591a80cb0e914baa1a58df7bbd28 (diff) | |
download | cl-8597539c453d7bfb1319553a8444e4f9a4e1fc0a.tar.lz cl-8597539c453d7bfb1319553a8444e4f9a4e1fc0a.tar.xz cl-8597539c453d7bfb1319553a8444e4f9a4e1fc0a.zip |
update to pelican v4.6.0
10 files changed, 287 insertions, 33 deletions
diff --git a/content/articles/conectar-xmpp-con-whatsapp-usando-yowsup-y-transwhat.en.md b/content/articles/conectar-xmpp-con-whatsapp-usando-yowsup-y-transwhat.en.md index 5a6d955..4ea785a 100644 --- a/content/articles/conectar-xmpp-con-whatsapp-usando-yowsup-y-transwhat.en.md +++ b/content/articles/conectar-xmpp-con-whatsapp-usando-yowsup-y-transwhat.en.md @@ -47,6 +47,7 @@ The basic requirements are: From a terminal, install the yowsup2 package with pip as root. + :::console # pip install yowsup2 After you have installed it, make sure that in the file diff --git a/content/articles/conectar-xmpp-con-whatsapp-usando-yowsup-y-transwhat.md b/content/articles/conectar-xmpp-con-whatsapp-usando-yowsup-y-transwhat.md index 9158b0e..fb3de86 100644 --- a/content/articles/conectar-xmpp-con-whatsapp-usando-yowsup-y-transwhat.md +++ b/content/articles/conectar-xmpp-con-whatsapp-usando-yowsup-y-transwhat.md @@ -41,6 +41,7 @@ Los requisitos básicos son: Desde un terminal, instala el paquete yowsup2 con pip como root. + :::console # pip install yowsup2 Después de haberlo instalado, asegúrate que en el archivo diff --git a/content/articles/crear-parches-con-git.en.md b/content/articles/crear-parches-con-git.en.md index daf6d40..4243def 100644 --- a/content/articles/crear-parches-con-git.en.md +++ b/content/articles/crear-parches-con-git.en.md @@ -107,13 +107,13 @@ In the first one, I will create the files that I put as an example **script.sh:** - #!bash + :::bash #!/bin/bash echo "Hello world" **script.sh.new:** - #!sh + :::sh #!/bin/sh echo "Hello world" echo "This is a patched file :D" @@ -125,7 +125,7 @@ Now we will do what most internet tutorials tell you to do: And it looks like this: - #!diff + :::diff --- script.sh 2018-03-16 15:52:49.887087539 -0300 +++ script.sh.new 2018-03-16 15:53:02.490420209 -0300 @@ -1,2 +1,3 @@ @@ -140,7 +140,7 @@ Everything apparently fine, but now let's apply that patch $ diff -u script.sh script.sh.new | patch -p1 -i /dev/stdin ``` - #!diff + :::diff can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: @@ -168,7 +168,7 @@ Okay, now let's make the patch with diff: $ diff -ur a b ``` - #!diff + :::diff Only in b: binary_file.bin diff -ur a/script.sh b/script.sh --- a/script.sh 2018-03-16 15:37:27.513802777 -0300 @@ -193,7 +193,7 @@ See what happens if I use `git` instead of `diff`: $ git diff --no-prefix --no-index --no-renames --binary a b ``` - #!diff + :::diff diff --git b/binary_file.bin b/binary_file.bin new file mode 100644 index 0000000000000000000000000000000000000000..1ce3c1c596d7a7f400b0cc89bda5a41eed2780c5 diff --git a/content/articles/crear-parches-con-git.md b/content/articles/crear-parches-con-git.md index c86da73..1c482fc 100644 --- a/content/articles/crear-parches-con-git.md +++ b/content/articles/crear-parches-con-git.md @@ -98,13 +98,13 @@ En el primero, crearé los archivos que puse de ejemplo (valga la redundancia) y **script.sh:** - #!sh + :::bash #!/bin/bash echo "Hello world" **script.sh.new:** - #!sh + :::sh #!/bin/sh echo "Hello world" echo "This is a patched file :D" @@ -116,7 +116,7 @@ Ahora haremos lo que la mayoría de tutoriales de internet te dicen que hagas: Y me queda así: - #!diff + :::diff --- script.sh 2018-03-16 15:52:49.887087539 -0300 +++ script.sh.new 2018-03-16 15:53:02.490420209 -0300 @@ -1,2 +1,3 @@ @@ -131,7 +131,7 @@ Todo aparentemente bien, pero ahora apliquemos dicho parche $ diff -u script.sh script.sh.new | patch -p1 -i /dev/stdin ``` - #!diff + :::diff can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: @@ -159,7 +159,7 @@ Bien, ahora hagamos el parche con diff: $ diff -ur a b ``` - #!diff + :::diff Sólo en b: archivo_binario.bin diff -ur a/script.sh b/script.sh --- a/script.sh 2018-03-16 15:37:27.513802777 -0300 @@ -184,7 +184,7 @@ Mira lo que pasa si uso `git` en vez de `diff`: $ git diff --no-prefix --no-index --no-renames --binary a b ``` - #!diff + :::diff diff --git b/archivo_binario.bin b/archivo_binario.bin new file mode 100644 index 0000000000000000000000000000000000000000..1ce3c1c596d7a7f400b0cc89bda5a41eed2780c5 diff --git a/content/articles/guia-de-instalacion-de-hyperbola.en.md b/content/articles/guia-de-instalacion-de-hyperbola.en.md index ab710c9..babfd40 100644 --- a/content/articles/guia-de-instalacion-de-hyperbola.en.md +++ b/content/articles/guia-de-instalacion-de-hyperbola.en.md @@ -22,10 +22,12 @@ that will be updated. We check if there is an Internet connection + :::console # ping -c 3 gnu.org Partition disk + :::console # cfdisk - In case of the partition chosen as **swap** go to "Type" option and select **82 (Linux swap)** from list. @@ -49,76 +51,92 @@ example: `wifi` detect + :::console # iw dev Enable device of network + :::console # ip link set <device-name> up Enable Internet with `wpa_supplicant` + :::console # wpa_supplicant -B -i <device-name> -c <(wpa_passphrase "ssid" "psk") Renew IPv4 with `dhcpcd` + :::console # dhcpcd <device-name> ### Partition Formatting - `/boot`, **ext4** will be used + :::console # mkfs -t ext4 /dev/sda1 - `/`, **ext4** will be used + :::console # mkfs -t ext4 /dev/sda2 - `/home`, **ext4** will be used + :::console # mkfs -t ext4 /dev/sda3 - `swap`, **mkswap** will be used + :::console # mkswap /dev/sda4 - Enable swap partition + :::console # swapon /dev/sda4 ### Organization of Partitions - Mount root in /mnt + :::console # mount /dev/sda2 /mnt - Make directories of other partitions - boot + :::console # mkdir /mnt/boot - home + :::console # mkdir /mnt/home - Mount other partitions - Mount boot + :::console # mount /dev/sda1 /mnt/boot - Mount home + :::console # mount /dev/sda3 /mnt/home ### Base System Installation Update keys of hyperiso: + :::console # pacman -Sy hyperbola-keyring Install base packages: + :::console # pacstrap /mnt base base-devel grub-bios wpa_supplicant iw kernel-firmware ldns xenocara-input-synaptics > Install `xenocara-input-synaptics` only on laptops @@ -127,70 +145,86 @@ Install base packages: - Generate fstab file + :::console # genfstab -U -p /mnt >> /mnt/etc/fstab - Inside chroot and configure base system + :::console # arch-chroot /mnt - Set hostname, to edit `/etc/hostname` file: Example: + :::console # echo hyperpc > /etc/hostname - Set localtime + :::console # ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime - Update system time to UTC (Optional) + :::console # hwclock --systohc --utc - Enable our location, uncomment - # sed -e 's/^#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' -i /etc/locale.gen + :::console + # sed -e 's|^#en_US.UTF-8 UTF-8|en_US.UTF-8 UTF-8|g' -i /etc/locale.gen - Set location preferences + :::console # echo LANG=en_US.UTF-8 > /etc/locale.conf - Generate location + :::console # locale-gen - If you need to change keymap, configure in `/etc/conf.d/keymaps` file + :::console # sed -e 's/^keymap="us"/keymap="uk"/g' -i /etc/conf.d/keymaps - Install Grub + :::console # grub-install --target=i386-pc --recheck /dev/sda - Create grub.cfg file + :::console # grub-mkconfig -o /boot/grub/grub.cfg - Edit ramdisk + :::console # nano -w /etc/mkinitcpio.conf ----------------------------- HOOKS="base udev autodetect modconf block filesystems keyboard fsck" - Generate ramdisk + :::console # mkinitcpio -p linux-libre-lts - Set root user password + :::console # passwd - Configure [wpa_supplicant][wpa_link]{:target='_blank' rel='noopener noreferrer'} + :::console # nano -w /etc/wpa_supplicant/wpa_supplicant.conf and inside: + :::bash #!bash ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=wheel @@ -203,50 +237,61 @@ Install base packages: Add to service by default + :::console # rc-update add wpa_supplicant default - [DHCPCD][dhcpcd_link]{:target='_blank' rel='noopener noreferrer'} Add to service by default + :::console # rc-update add dhcpcd default - Close chroot + :::console # exit - Unmount partitions + :::console # umount '/mnt/{boot,home,}' - Reboot + :::console # reboot ### Adding a user - Create user group, for example: `libre` + :::console # groupadd libre - Create user `freedom` and add it to basic groups + :::console # useradd -m -G audio,disk,games,http,input,lp,network,optical,power,scanner,storage,sys,video,wheel -g libre -s /bin/bash freedom - Assign password + :::console # passwd freedom - Edit `/etc/sudoers` file - # sed -i /etc/sudoers -e 's/^# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/g' + :::console + # sed -i /etc/sudoers -e 's|^# %wheel ALL=(ALL) ALL|%wheel ALL=(ALL) ALL|g' - Reboot pc + :::console # reboot - Upgrade system + :::console $ sudo pacman -Syu ### BASE graphical interface @@ -255,36 +300,44 @@ Install base packages: Check video trademark: + :::console # lspci | grep -e VGA Install one, depending of trademark: AMD: + :::console # pacman -S xorg-video-amdgpu Ati: + :::console # pacman -S xenocara-video-ati Intel: + :::console # pacman -S xorg-video-intel Nvidia: + :::console # pacman -S xorg-video-nouveau Vesa (generic): + :::console # pacman -S xenocara-video-vesa #### Xenocara components + :::console # pacman -S xenocara-server xenocara-xinit xenocara #### Mesa demos + :::console # pacman -S mesa mesa-demos #### Setting in keyboard language for Xenocara @@ -296,10 +349,12 @@ maintained after reboot. Here's an example: + :::console # nano -w /etc/X11/xorg.conf.d/00-keyboard.conf and inside write: + :::bash #!bash Section "InputClass" Identifier "system-keyboard" @@ -320,10 +375,12 @@ key combination. - Check keyboard settings: + :::console # setxkbmap -print -verbose 10 - Typefaces + :::console # pacman -S ttf-liberation ttf-bitstream-vera ttf-dejavu ttf-droid Next, we will proceed to create the personal folders. @@ -334,24 +391,29 @@ generates this directories. - Directory generator installation: + :::console # pacman -S xdg-user-dirs - Automatic directory creation: + :::console # xdg-user-dirs-update #### Audio support Install `pulseadio` + :::console # pacman -S pulseaudio pulseaudio-alsa alsa-utils pavucontrol Add audio service to default + :::console # rc-update add alsasound default #### Configure pulseaudio + :::console # sed -e 's/^; autospawn = yes/autospawn = yes/g' -i /etc/pulse/client.conf ### Officially supported desktop environments @@ -365,6 +427,7 @@ traditional desktop experience. - Installation + :::console # pacman -S mate mate-extra Where: @@ -381,6 +444,7 @@ remaining visually attractive and easy to use. - Installation + :::console # pacman -S xfce4 xfce4-goodies Where: @@ -396,6 +460,7 @@ LXDE is a free desktop environment. Abbreviation means - Installation + :::console # pacman -S lxde #### Install KDE Plasma @@ -411,6 +476,7 @@ released on July 15, 2014. - Installation + :::console # pacman -S plasma kde-applications plasma-wayland-session Where: @@ -425,6 +491,7 @@ Where: Uncomment your desktop installed, example file `~/.xinitrc`: + :::bash #!bash #!/bin/sh # @@ -443,7 +510,7 @@ Where: # exec gnome-session # exec gnome-session --session=gnome-classic # exec startkde - # exec startxfce4 + exec startxfce4 # exec startfluxbox # exec openbox-session # exec cinnamon-session @@ -463,14 +530,17 @@ Where: Example: `lightdm` + :::console # pacman -S lightdm lightdm-gtk-greeter Add to service by default + :::console # rc-update add lightdm default - Reboot + :::console # reboot ### Tools @@ -479,34 +549,40 @@ Where: - gvfs to mount disks + :::console # pacman -S gamin gvfs #### Net - dhcpcd-ui for IP management + :::console # pacman -S dhcpcd-ui #### Key manager - gnome-kering + :::console # pacman -S gnome-keyring #### Volume applet - Volume icon + :::console # pacman -S volumeicon #### Synchronize Local Time Install NTP + :::console # pacman -S ntp Synchronize Time + :::console # ntpdate -u hora.roa.es #### File compressors @@ -519,40 +595,49 @@ of these file compressors, we will add support for 7Z, RAR, ZIP and others. - GZip (known with extension ".tar.gz"): + :::console # pacman -S zlib haskell-zlib - BZip2: + :::console # pacman -S bzip2 - RAR: + :::console # pacman -S unar - 7Zip: + :::console # pacman -S p7zip lrzip - ZIP: + :::console # pacman -S zip libzip unzip #### Partition detector - Udisk utility: + :::console # pacman -S udevil autofs - Reading and writing NTFS file systems: + :::console # pacman -S ntfs-3g - FAT32 file system read and write: + :::console # pacman -S fatsort exfat-utils dosfstools - Reading and writing XFS file systems: + :::console # pacman -S xfsprogs #### Multimedia support @@ -563,30 +648,37 @@ Here I suggest some players that you may find useful. - Codecs: + :::console # pacman -S ffmpeg gstreamer gst-libav gst-plugins-bad gst-plugins-good gst-plugins-ugly gst-plugins-base gstreamer-vaapi gst-transcoder ffms2 x264 libvorbis libvpx libtheora opus vorbis-tools - Audacious player: + :::console # pacman -S audacious - SMPlayer: + :::console # pacman -S smplayer smplayer-themes smplayer-skins - VLC player: + :::console # pacman -S vlc - MPV player: + :::console # pacman -S mpv - Lightweight image viewer + :::console # pacman -S viewnior - PDF viewer + :::console # pacman -S epdfview #### Aplicaciones UXP @@ -599,14 +691,17 @@ internet suite and a email-manager called - Iceweasel-UXP: + :::console # pacman -S iceweasel-uxp - Iceape-UXP: + :::console # pacman -S iceape-uxp - Icedove-UXP: + :::console # pacman -S icedove-uxp #### LibreOffice @@ -614,21 +709,25 @@ In general, when using an Operating System, at least you have an office suite. In GNU/Linux, it's customary to have one. Fortunately in Hyperbola, Libreoffice is presented in its stable version. For install, run: + :::console # pacman -S libreoffice-still ##### Spell check To check spelling you will need hunspell and a hunspell dictionary (such as hunspell-en_US, hunspell-es, etc) + :::console # pacman -S hunspell hunspell-en_US ##### Hyphenation and justification To have provide rules you also need `hyphen` + a set of rules (hyphen-en, hyphen-de, etc) + :::console # pacman -S hyphen hyphen-en ##### Synonyms For Synonyms option you will need `mythes` + a mythes synonym library (`mythes-en` `mythes-es`) + :::console # pacman -S mythes mythes-en #### Security @@ -637,6 +736,7 @@ a tool called **[firejail][firejail]{:target='_blank' rel='noopener noreferrer'} in combination with a graphical interface **[firetools][firetools]{:target='_blank' rel='noopener noreferrer'}**. + :::console # pacman -S firejail firetools #### Social @@ -644,15 +744,18 @@ Hyperbola have programs for communication: - Gajim + :::console # pacman -S gajim python2-axolotl - Tox - qtox: + :::console # pacman -S qtox - toxic: + :::console # pacman -S toxic #### Identifying keycodes @@ -662,6 +765,7 @@ for a key to be pressed and, if there is none for 10 seconds, closes. To run showkey you need to be in a virtual console, not in a graphical environment: + :::console # showkey --keycodes [video-guide]: https://lablibre.tuxfamily.org/hyperbola-gnu-linux-libre-base/ diff --git a/content/articles/guia-de-instalacion-de-hyperbola.md b/content/articles/guia-de-instalacion-de-hyperbola.md index c437975..1599a7e 100644 --- a/content/articles/guia-de-instalacion-de-hyperbola.md +++ b/content/articles/guia-de-instalacion-de-hyperbola.md @@ -20,14 +20,17 @@ que se irá actualizando. Configuración teclado temporal + :::console # loadkeys es Comprobamos si hay conexión a Internet + :::console # ping -c 3 gnu.org Particionar disco + :::console # cfdisk - En el caso de la partición elegida como **swap** ir a la opción "Type" y seleccionar **82 (Linux swap)** de la lista. @@ -51,76 +54,92 @@ ejemplo: Detectar `wifi` + :::console # iw dev Activar dispositivo de Red + :::console # ip link set <nombre-del-dispositivo> up Activar Internet con `wpa_supplicant` + :::console # wpa_supplicant -B -i <nombre-de-dispositivo> -c <(wpa_passphrase "ssid" "psk") Renovar IPv4 con `dhcpcd` + :::console # dhcpcd <nombre-de-dispositivo> ### Formateo de Particiones - En `/boot` se utilizará **ext4** + :::console # mkfs -t ext4 /dev/sda1 - En `/` se utilizará **ext4** + :::console # mkfs -t ext4 /dev/sda2 - En `/home`, se utilizará **ext4** + :::console # mkfs -t ext4 /dev/sda3 - En `swap`, se utilizará **mkswap** + :::console # mkswap /dev/sda4 - Activamos la partición swap + :::console # swapon /dev/sda4 ### Organización de Particiones - Montamos root en /mnt + :::console # mount /dev/sda2 /mnt - Creamos los directorios de las otras particiones - boot + :::console # mkdir /mnt/boot - home + :::console # mkdir /mnt/home - Montamos las particiones correspondientes - Montar boot + :::console # mount /dev/sda1 /mnt/boot - Montar home + :::console # mount /dev/sda3 /mnt/home ### Instalación del Sistema Base Actualizamos las llaves de la iso: + :::console # pacman -Sy hyperbola-keyring Instalamos los paquetes base: + :::console # pacstrap /mnt base base-devel grub-bios wpa_supplicant iw kernel-firmware ldns xenocara-input-synaptics > Instalar `xenocara-input-synaptics` Solo en laptops (ordenadores portátiles) @@ -129,71 +148,87 @@ Instalamos los paquetes base: - Generar el archivo fstab + :::console # genfstab -U -p /mnt >> /mnt/etc/fstab - Efectuar chroot y configurar el sistema base + :::console # arch-chroot /mnt - Establecer nombre del equipo para esto tenemos que editar el archivo `/etc/hostname`: Ejemplo: + :::console # echo hyperpc > /etc/hostname - Configurar lugar + :::console # ln -s /usr/share/zoneinfo/America/Lima /etc/localtime - Actualizar hora del sistema (Opcional) + :::console # hwclock --systohc --utc - Activar nuestra localización, descomentar + :::console # sed -e 's/^#es_ES.UTF-8 UTF-8/es_ES.UTF-8 UTF-8/g' -i /etc/locale.gen - Establecer las preferencias de localización + :::console # echo LANG=es_ES.UTF-8 > /etc/locale.conf - Generamos la localización + :::console # locale-gen - Como la configuración regional, debe configurar el mapa de teclas en el archivo `/etc/conf.d/keymaps`. Ver lista completa con `cat /usr/share/X11/xkb/rules/evdev.lst` + :::console # sed -e 's/^keymap="us"/keymap="es"/g' -i /etc/conf.d/keymaps - Instalación del Grub + :::console # grub-install --target=i386-pc --recheck /dev/sda - Creamos el archivo grub.cfg + :::console # grub-mkconfig -o /boot/grub/grub.cfg - Editar ramdisk + :::console # nano -w /etc/mkinitcpio.conf ----------------------------- HOOKS="base udev autodetect modconf block filesystems keyboard fsck" - Generar ramdisk + :::console # mkinitcpio -p linux-libre-lts - Establecer contraseña del usuario root + :::console # passwd - Configurar [wpa_supplicant][wpa_link]{:target='_blank' rel='noopener noreferrer'} + :::console # nano -w /etc/wpa_supplicant/wpa_supplicant.conf y dentro: + :::bash #!bash ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=wheel @@ -206,50 +241,61 @@ Instalamos los paquetes base: Agregar a servicio por defecto + :::console # rc-update add wpa_supplicant default - [DHCPCD][dhcpcd_link]{:target='_blank' rel='noopener noreferrer'} Agregar a servicio por defecto + :::console # rc-update add dhcpcd default - Cerrar chroot + :::console # exit - Desmontar particiones + :::console # umount '/mnt/{boot,home,}' - Reiniciar + :::console # reboot ### Creación de usuario Crear el grupo de usuario, por ejemplo: `libre` + :::console # groupadd libre Creamos el usuario `freedom` y lo agregamos a los grupos básicos + :::console # useradd -m -G audio,disk,games,http,input,lp,network,optical,power,scanner,storage,sys,video,wheel -g libre -s /bin/bash freedom - Asignamos contraseña + :::console # passwd freedom - Editamos el archivo `/etc/sudoers` + :::console # sed -i /etc/sudoers -e 's/^# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/g' - Reiniciamos el equipo + :::console # reboot - Actualización del sistema + :::console $ sudo pacman -Syu ### Interfaz gráfica BASE @@ -258,36 +304,44 @@ Creamos el usuario `freedom` y lo agregamos a los grupos básicos Comprobar marca: + :::console # lspci | grep -e VGA Instalar una de ellas dependiendo de la marca: AMD: + :::console # pacman -S xorg-video-amdgpu Ati: + :::console # pacman -S xenocara-video-ati Intel: + :::console # pacman -S xorg-video-intel Nvidia: + :::console # pacman -S xorg-video-nouveau Vesa (genérico): + :::console # pacman -S xenocara-video-vesa #### Componentes Xenocara + :::console # pacman -S xenocara-server xenocara-xinit xenocara #### Mesa demos + :::console # pacman -S mesa mesa-demos #### Ajuste en el idioma de teclado para Xenocara @@ -298,11 +352,12 @@ Este método crea la configuración para todo el sistema, que se mantiene despu He aquí un ejemplo: + :::console # nano -w /etc/X11/xorg.conf.d/00-keyboard.conf y dentro colocar: - #!bash + :::bash Section "InputClass" Identifier "system-keyboard" MatchIsKeyboard "on" @@ -321,10 +376,12 @@ al otro solo basta usar la combinación de teclas `ALT+SHIFT` - Comprobar la configuración del teclado: + :::console # setxkbmap -print -verbose 10 - Tipografías + :::console # pacman -S ttf-liberation ttf-bitstream-vera ttf-dejavu ttf-droid A continuación, procederemos a crear las carpetas personales. @@ -334,24 +391,29 @@ automática los directorios. - Instalación del generador de directorios: + :::console # pacman -S xdg-user-dirs - Creación automática de directorios: + :::console # xdg-user-dirs-update #### Soporte de audio Instalar `pulseadio` + :::console # pacman -S pulseaudio pulseaudio-alsa alsa-utils pavucontrol Agregar el servicio de audio a por defecto + :::console # rc-update add alsasound default #### Configurar pulseaudio + :::console # sed -e 's/^; autospawn = yes/autospawn = yes/g' -i /etc/pulse/client.conf ### Entornos de escritorio soportados oficialmente @@ -365,6 +427,7 @@ tradicional de un escritorio. - Instalación: + :::console # pacman -S mate mate-extra Donde: @@ -381,6 +444,7 @@ sin dejar de ser visualmente atractivo y fácil de usar. - Instalación + :::console # pacman -S xfce4 xfce4-goodies Donde: @@ -396,6 +460,7 @@ que en español significa: Entorno de escritorio X11 ligero. - Instalación + :::console # pacman -S lxde #### Instalar KDE Plasma @@ -411,6 +476,7 @@ inicialmente el 15 de julio de 2014. - Instalación + :::console # pacman -S plasma kde-applications plasma-wayland-session Donde: @@ -425,6 +491,7 @@ Donde: Descomentar el escritorio que usted instaló, ejemplo de archivo `~/.xinitrc`: + :::bash #!bash #!/bin/sh # @@ -443,7 +510,7 @@ Donde: # exec gnome-session # exec gnome-session --session=gnome-classic # exec startkde - # exec startxfce4 + exec startxfce4 # exec startfluxbox # exec openbox-session # exec cinnamon-session @@ -463,14 +530,17 @@ Donde: Ejemplo: `lightdm` + :::console # pacman -S lightdm lightdm-gtk-greeter Agregar servicio lightdm + :::console # rc-update add lightdm default - Reiniciar + :::console # reboot ### UTILIDADES @@ -479,34 +549,40 @@ Donde: - gvfs para montar discos + :::console # pacman -S gamin gvfs #### Red - dhcpcd-ui para gestión de IP's + :::console # pacman -S dhcpcd-ui #### Gestor de claves - gnome-kering + :::console # pacman -S gnome-keyring #### Applet de volumen - Ícono de volumen + :::console # pacman -S volumeicon #### Sincronizar el Horario Local Instalar NTP + :::console # pacman -S ntp Sincronizar Hora + :::console # ntpdate -u hora.roa.es #### Compresores de archivos @@ -519,40 +595,49 @@ le añadiremos el soporte para 7Z, RAR, ZIP y otros. - GZip (conocidos por la extensión ".tar.gz"): + :::console # pacman -S zlib haskell-zlib - BZip2: + :::console # pacman -S bzip2 - RAR: + :::console # pacman -S unar - 7Zip: + :::console # pacman -S p7zip lrzip - ZIP: + :::console # pacman -S zip libzip unzip #### Detector de particiones - Utilitario Udisk: + :::console # pacman -S udevil autofs - Lectura y escritura de sistemas de archivos NTFS: + :::console # pacman -S ntfs-3g - Lectura y escritura de sistema de archivos FAT32: + :::console # pacman -S fatsort exfat-utils dosfstools - Lectura y escritura de sistemas de archivos XFS: + :::console # pacman -S xfsprogs #### Soporte multimedia @@ -563,30 +648,37 @@ Aquí les sugiero algunos reproductores que les puede resultar útiles. - Códecs: + :::console # pacman -S ffmpeg gstreamer gst-libav gst-plugins-bad gst-plugins-good gst-plugins-ugly gst-plugins-base gstreamer-vaapi gst-transcoder ffms2 x264 libvorbis libvpx libtheora opus vorbis-tools - Reproductor Audacious: + :::console # pacman -S audacious - Reproductor SMPlayer: + :::console # pacman -S smplayer smplayer-themes smplayer-skins - Reproductor VLC: + :::console # pacman -S vlc - Reproductor MPV: + :::console # pacman -S mpv - Visor de imagenes ligero + :::console # pacman -S viewnior - Visor PDF + :::console # pacman -S epdfview #### Aplicaciones UXP @@ -599,14 +691,17 @@ y un gestor de correos llamado **[Icedove-UXP][icedove-uxp]{:target='_blank' re - Iceweasel-UXP: + :::console # pacman -S iceweasel-uxp iceweasel-uxp-l10n-es-es - Iceape-UXP: + :::console # pacman -S iceape-uxp iceape-uxp-l10n-es-es - Icedove-UXP: + :::console # pacman -S icedove-uxp icedove-uxp-l10n-es-es #### LibreOffice @@ -614,21 +709,25 @@ Por lo general, a la hora de usar un Sistema Operativo, por lo menos se tiene un En GNU/Linux, se acostumbra a tener una. Felizmente en Hyperbola, Libreoffice se presenta es su versión estable. Lo único que necesitaríamos es efectuar el siguiente comando: + :::console # pacman -S libreoffice-still libreoffice-still-l10n-es ##### Corrección de ortografía Para revisar la ortografía necesitará hunspell y un diccionario de hunspell (como hunspell-es, hunspell-en, etc.) + :::console # pacman -S hunspell hunspell-es ##### Reglas de división de palabras Para disponer de las reglas de división también necesitará hyphen + un conjunto de reglas (hyphen-en, hyphen-de) + :::console # pacman -S hyphen hyphen-es ##### Sinónimos Para la opción Sinónimos necesitará `mythes` + un libro de sinónimos de mythes (`mythes-en mythes-es`) + :::console # pacman -S mythes mythes-es #### Seguridad @@ -637,6 +736,7 @@ llamada **[firejail][firejail]{:target='_blank' rel='noopener noreferrer'}** en combinación con una interfaz gráfica **[firetools][firetools]{:target='_blank' rel='noopener noreferrer'}**. + :::console # pacman -S firejail firetools #### Comunicación @@ -644,15 +744,18 @@ La comunicación a través de Internet es requerida a día de hoy. En Hyperbola - Gajim + :::console # pacman -S gajim python2-axolotl - Tox - qtox: + :::console # pacman -S qtox - toxic: + :::console # pacman -S toxic #### Identificando keycodes @@ -662,6 +765,7 @@ showkey espera a que se presione una tecla y, si no hay ninguna durante 10 segun se cierra. Para ejecutar showkey necesita estar en una consola virtual, no en un entorno gráfico. Ejecute el siguiente comando: + :::console # showkey --keycodes [video-guide]: https://lablibre.tuxfamily.org/hyperbola-gnu-linux-libre-base/ diff --git a/content/articles/instalar-un-gestor-de-maquinas-virtuales-en-hyperbola-gnulinux-libre.en.md b/content/articles/instalar-un-gestor-de-maquinas-virtuales-en-hyperbola-gnulinux-libre.en.md index 518828a..a67f70f 100644 --- a/content/articles/instalar-un-gestor-de-maquinas-virtuales-en-hyperbola-gnulinux-libre.en.md +++ b/content/articles/instalar-un-gestor-de-maquinas-virtuales-en-hyperbola-gnulinux-libre.en.md @@ -39,10 +39,12 @@ which is very complete when virtualizing operating systems. ### Check if your PC supports virtualization + :::console $ LC_ALL=C lscpu | grep Virtualization or run the command: + :::console $ lsmod | grep kvm If your computer supports virtualization, you should see the @@ -51,6 +53,7 @@ otherwise your computer is not capable of virtualizing. ### Virtual Machine Manager Installing + :::console # pacman -Sy # pacman -S virt-manager qemu vde2 dnsmasq bridge-utils openbsd-netcat libvirt firewalld @@ -61,6 +64,7 @@ otherwise your computer is not capable of virtualizing. ### Check kvm group + :::console # grep -E 'group="kvm"|group="78"' /etc/libvirt/qemu.conf Check if there is `group="kvm"` or `group="78"` @@ -69,14 +73,17 @@ Check if there is `group="kvm"` or `group="78"` - kvm_intel module (Intel processors) + :::console # modprobe kvm_intel - kvm_amd module (AMD processors) + :::console # modprobe kvm_amd ### Verify that the virtual machine is configured correctly + :::console $ virt-host-validate ### Services @@ -88,18 +95,22 @@ Here we explain how to start these services: #### Start libvirtd + :::console # rc-service libvirtd start #### Add libvirtd for default + :::console # rc-update add libvirtd default #### Start firewalld + :::console # rc-service firewalld start #### Add firewalld for default + :::console # rc-update add firewalld default #### Remove Services @@ -107,6 +118,7 @@ Here we explain how to start these services: If you want to remove the services and start only when you want, run: + :::console # rc-update del libvirtd default # rc-update del firewalld default @@ -127,6 +139,7 @@ if you see `0` or `N`, nested virtualization is not supported. For example: + :::console $ cat /sys/module/kvm_intel/parameters/nested Y @@ -134,16 +147,19 @@ For example: 1. Turn off all running virtual machines and reload `kvm_intel` module: + :::console # modprobe -r kvm_intel 2. Activate the nesting function + :::console # modprobe kvm_intel nested=1 3. Nested virtualization is enabled until the host is restarted. To enable it permanently, add the following line to `/etc/modprobe.d/kvm.conf` file: + :::console # nano -w /etc/modprobe.d/kvm.conf ---------------------------------- options kvm_intel nested=1 @@ -152,16 +168,19 @@ For example: 1. Turn off all running virtual machines and reload `kvm_amd` module: + :::console # modprobe -r kvm_amd 2. Activate the nesting function + :::console # modprobe kvm_amd nested=1 3. Nested virtualization is enabled until the host is restarted. To enable it permanently, add the following line to `/etc/modprobe.d/kvm.conf` file: + :::console # nano -w /etc/modprobe.d/kvm.conf ---------------------------------- options kvm_intel nested=1 @@ -190,6 +209,7 @@ security issues which is L1TF and SMT CPU error with possible data leak. It's recommended to disable it as follows: + :::console # modprobe -r vhost_net If you are in Hyperbola GNU/Linux-libre diff --git a/content/articles/instalar-un-gestor-de-maquinas-virtuales-en-hyperbola-gnulinux-libre.md b/content/articles/instalar-un-gestor-de-maquinas-virtuales-en-hyperbola-gnulinux-libre.md index 40630e3..42d4297 100644 --- a/content/articles/instalar-un-gestor-de-maquinas-virtuales-en-hyperbola-gnulinux-libre.md +++ b/content/articles/instalar-un-gestor-de-maquinas-virtuales-en-hyperbola-gnulinux-libre.md @@ -39,10 +39,12 @@ el cual es muy completo al momento de virtualizar sistemas operativos. ### Revisar si su PC soporta virtualización + :::console $ LC_ALL=C lscpu | grep Virtualization o ejecutar el comando: + :::console $ lsmod | grep kvm Si su computadora admite virtualización, debería ver @@ -51,6 +53,7 @@ caso contrario su ordenador no es capaz de virtualizar. ### Instalando Virtual Machine Manager + :::console # pacman -Sy # pacman -S virt-manager qemu vde2 dnsmasq bridge-utils openbsd-netcat libvirt firewalld @@ -61,6 +64,7 @@ caso contrario su ordenador no es capaz de virtualizar. ### Revisar el grupo kvm + :::console # grep -E 'group="kvm"|group="78"' /etc/libvirt/qemu.conf Comprobar si existe `group="kvm"` o `group="78"` @@ -69,14 +73,17 @@ Comprobar si existe `group="kvm"` o `group="78"` - Módulo kvm_intel (procesadores Intel) + :::console # modprobe kvm_intel - Módulo kvm_amd (procesadores AMD) + :::console # modprobe kvm_amd ### Verifique que la máquina virtual este configurada correctamente + :::console $ virt-host-validate ### Servicios @@ -88,18 +95,22 @@ A continuación le explicamos cómo inciar esos servicios: #### Iniciar libvirtd + :::console # rc-service libvirtd start #### Agregar libvirtd por defecto + :::console # rc-update add libvirtd default #### Iniciar firewalld + :::console # rc-service firewalld start #### Agregar firewalld por defecto + :::console # rc-update add firewalld default #### Quitar Servicios @@ -107,6 +118,7 @@ A continuación le explicamos cómo inciar esos servicios: Si desea quitar los servicios e iniciar solo cuando usted desee, ejecute: + :::console # rc-update del libvirtd default # rc-update del firewalld default @@ -128,6 +140,7 @@ si ve `0` o `N`, la virtualización anidada no es compatible. Por ejemplo: + :::console $ cat /sys/module/kvm_intel/parameters/nested Y @@ -135,16 +148,19 @@ Por ejemplo: 1. Apague todas las máquinas virtuales en ejecución y recargue el módulo `kvm_intel`: + :::console # modprobe -r kvm_intel 2. Activa la función de anidamiento + :::console # modprobe kvm_intel nested=1 3. La virtualización anidada se habilita hasta que se reinicia el host. Para habilitarlo permanentemente, agregue la siguiente línea al archivo `/etc/modprobe.d/kvm.conf`: + :::console # nano -w /etc/modprobe.d/kvm.conf ---------------------------------- options kvm_intel nested=1 @@ -153,16 +169,19 @@ Por ejemplo: 1. Apague todas las máquinas virtuales en ejecución y recargue el módulo `kvm_amd`: + :::console # modprobe -r kvm_amd 2. Activa la función de anidamiento + :::console # modprobe kvm_amd nested=1 3. La virtualización anidada se habilita hasta que se reinicia el host. Para habilitarlo permanentemente, agregue la siguiente línea al archivo `/etc/modprobe.d/kvm.conf`: + :::console # nano -w /etc/modprobe.d/kvm.conf ---------------------------------- options kvm_amd nested=1 @@ -191,6 +210,7 @@ que es un error de CPU L1TF y SMT con posible fuga de datos. Lo recomendable es desactivarlo de la siguiente manera: + :::console # modprobe -r vhost_net Si estás en Hyperbola GNU/Linux-libre este módulo diff --git a/pelicanconf.py b/pelicanconf.py index f641ecf..888fd93 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -77,6 +77,7 @@ AUTHORS_URL = 'pages/créditos/' AUTHORS_SAVE_AS = 'pages/créditos/index.html' ARCHIVES_URL = 'archives/' ARCHIVES_SAVE_AS = 'archives/index.html' +STATIC_CREATE_LINKS = True STATIC_PATHS = [ '.htaccess', 'heckyel_pub.asc', diff --git a/requirements.txt b/requirements.txt index 9b84422..1ad6836 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,18 +1,21 @@ -Babel==2.8.0 -beautifulsoup4==4.8.2 +Babel==2.9.1 +beautifulsoup4==4.10.0 blinker==1.4 -docutils==0.16 -feedgenerator==1.9 -html5validator==0.3.3 -Jinja2==2.10.3 -Markdown==3.1.1 +docutils==0.17.1 +feedgenerator==1.9.2 +html5validator==0.4.0 +importlib-metadata==4.8.1 +Jinja2==3.0.1 +Markdown==3.3.4 markdown-extra==1.0.1 -MarkupSafe==1.1.1 -pelican==4.2.0 -Pygments==2.4.2 -python-dateutil==2.8.1 -pytz==2019.3 -PyYAML==5.3 -six==1.13.0 -soupsieve==1.9.5 -Unidecode==1.1.1 +MarkupSafe==2.0.1 +pelican==4.6.0 +Pygments==2.10.0 +python-dateutil==2.8.2 +pytz==2021.1 +PyYAML==5.4.1 +six==1.16.0 +soupsieve==2.2.1 +typing-extensions==3.10.0.2 +Unidecode==1.3.2 +zipp==3.5.0 |