Sunday, March 29, 2026

How to activate REISUB in Fedora 43

From:


Configure REISUB in FEDORA by doing:

$ grep -r -e kernel.sysrq /{etc,usr/lib}/sysctl.*

This command will output something like:

/usr/lib/sysctl.d/50-default.conf:# Use kernel.sysrq = 1 to allow all keys.

/usr/lib/sysctl.d/50-default.conf:kernel.sysrq = 16


According to the comments in the file /usr/lib/sysctl.d/50-default.conf we have to create a file /etc/sysctl.d/90-sysctl.conf with the line kernel.sysrq = 1

$ sudo echo "kernel.sysrq = 1" | sudo tee /etc/sysctl.d/90-sysrq.conf


Now, reboot the computer or apply the change with:

$ sudo systemctl restart systemd-sysctl.service


Verify with:

$ cat /proc/sys/kernel/sysrq

This should show 1


Now you can perform REISUB. To activate REISUB in Fedora, you can follow these steps:

1. Press and hold the Alt+PrtScn on your keyboard.

2. While holding the `Alt` key, press the following keys in sequence: `R`, `E`, `I`, `S`, `U`, `B`.

3. Release the `Alt` key after pressing the last key (`B`).

This key combination will trigger the REISUB sequence, which is a safe way to reboot your system without causing data loss. Each key in the sequence corresponds to a specific action:

  • R: Switch the keyboard from raw mode to XLATE mode. We do this because the Desktop has stopped responding to the keyboard and we want to ensure any applications (like XOrg or Wayland) are not intercepting the keystrokes.
  • E: Send the SIGTERM signal to all processes, allowing them to terminate gracefully.
  • I: Send the SIGKILL signal to all processes, forcing them to terminate immediately.
  • S: Sync all mounted filesystems, ensuring that all data is written to disk.
  • U: Remount all filesystems in read-only mode, preventing any further changes to the disk.
  • B: Reboot the system immediately without syncing or unmounting filesystems.

Make sure to use this key combination only when your system is unresponsive and you need to perform a forced reboot.

Thursday, May 1, 2025

NVIDIA GeForce 4070Ti in Fedora 42

 In order to install the drivers of the NVIDIA GeForce RTX 4070 Ti on Fedora 42, I followed the steps on the tutorial:

https://www.if-not-true-then-false.com/2015/fedora-nvidia-guide/

All worked flawlessly.


Thursday, June 27, 2024

VSCODE extensions

Extensions for VSCODE:

  • Bookmarks
  • Code Spell Checker + Spanish dictionary
  • LaTeX Workshop
  • LTeX+ grammar/spell checking
  • Jupyter
  • Python


Configuration JSON:

{
// General editor settings
// Disable warnings for non-basic ASCII characters
"editor.unicodeHighlight.nonBasicASCII": false,
// Enable smooth scrolling for a better user experience
"editor.mouseWheelZoom": true,
// Enable smooth scrolling for lists and the editor
"workbench.list.smoothScrolling": true,
// Enable smooth caret animation for a more fluid typing experience
"editor.cursorSmoothCaretAnimation": "on",
// Enable smooth scrolling in the terminal and editor for a more fluid experience
"terminal.integrated.smoothScrolling": true,
// Enable smooth scrolling in the editor for a more fluid experience
"editor.smoothScrolling": true,
// Set the default Python interpreter path
"python.defaultInterpreterPath": "/bin/python",
// Disable the minimap to reduce distractions and improve performance
"editor.minimap.enabled": false,
// Set the color theme to Monokai for a visually appealing coding environment
"workbench.colorTheme": "Monokai",
// Enable word wrap to prevent horizontal scrolling and improve readability
"editor.wordWrap": "on",
// Show dots for double spaces and trailing spaces
"editor.renderWhitespace": "boundary",
// Ask to save files before closing the editor
"files.hotExit": "off",
// Skip the "matlab.interrupt" command in the terminal to prevent conflicts with MATLAB's interrupt functionality
"terminal.integrated.commandsToSkipShell": [
"matlab.interrupt"
],
// Disable warnings for long lines
"terminal.integrated.inheritEnv": false,
// SPELL CHECKING CUSTOMIZATION:
// Enable spell checking for English and Spanish, and make it case sensitive to catch more errors
"cSpell.caseSensitive": true,
// Set the languages for spell checking to English and Spanish
"cSpell.language": "en,es",
// User defined words for spell checking
"cSpell.userWords": [
"Eulerian",
"Leonhard",
"turbomachinery"
],
// LATEX WORKSHOP CUSTOMIZATION:
// Enable SyncTeX after building the LaTeX document for better synchronization between source and PDF
"latex-workshop.synctex.afterBuild.enabled": true,
// Enable synchronization between the outline view and the PDF viewer for easier navigation
"latex-workshop.view.outline.sync.viewer": true,
// Trim the PDF viewer to remove unnecessary whitespace and improve readability
"latex-workshop.view.pdf.trim": 15,
// Customize the color and font style of section headings in LaTeX files to make them stand out
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
"entity.name.section.latex",
"entity.name.section.chapter.latex",
"entity.name.section.subsection.latex",
"entity.name.section.subsubsection.latex"
],
"settings": {
"foreground": "#FF0000",
"fontStyle": "bold"
}
}
]
},
}



Friday, May 24, 2024

Configurando Logitech Lift con SOLAAR

 El logitech lift tiene 6 botones y ellos se pueden personalizar usando solaar:

https://github.com/pwr-Solaar/Solaar


En particular me gusta activar con el boton central pequeño (DVI ) el comando para hacer el puntero más visible en KDE que es Ctrl+Shift+F12:

Eso se hace así:

En el menú principal:

  • Active Key/Button Diversion: DPI Switch - Diverted


Luego en Rule Editor configure la regla:

  • Key >> DVI Switch (Key Up)
  • Key Press >> Control_L Shift_L F12 (agregue teclas con Add key) y luego seleccione Click

Save changes y eso es todo.


Para entender esto me sirvió el video: https://www.youtube.com/watch?v=CHbFFvxldG4





Thursday, May 2, 2024

Instalando FEDORA 43 - KDE Edition

Al instalar:

  • Use modo UEFI. 
  • Cree las siguientes particiones:
    • Partición EFI (EFI) en sda1 de 600 Mb montada en /boot/efi
    • Partición BOOT (EXT4 filesystem) en sda2 de 2 Gb montada en /boot
    • Partición SWAP (SWAP) en sda3 de 16 Gb
    • Partición ROOT (BTRFS filesystem) en sda4 montada en /
    • Partición HOME (BTRFS filesystem) en sda5 montada en /home
    • Partición BODEGA (BTRFS filesystem) en sda6 montada en /bodega

  • Y haga: sudo chown daalvarez:daalvarez /bodega

Se instaló con sudo dnf install:

  • audacity
  • ImageMagick
  • inkscape
  • kate
  • qgis python3-qgis qgis-grass qgis-server
  • texlive-scheme-full
  • texstudio
  • workrave
  • xournalpp


Y adicionalmente:

  • dictd
  • dvipng
  • git
  • git-lfs (aunque yo hice unas cosas desde la página del programa -> revisar)
  • helix
  • htop
  • kompare
  • krename
  • kruler
  • krusader
  • hyphen-es
  • hunspell-es
  • hunspell-es-CO
  • mc
  • meld
  • ocrmypdf
  • octave
  • pdftk
  • perl-Image-ExifTool
  • subversion
  • tesseract-langpack-spa
  • vim
  • vlc
  • wxmaxima


Otros archivos

  • dbus-glib (si va a instalar Zotero)
  • gtksourceview3 (si va a instalar TexText en INKSCAPE, para el syntax highlighting)


Y desde la página web de cada programa (bajando el respectivo .RPM):

  • Anaconda
  • Antigravity
  • Visual Studio Code
  • Brave browser
  • Google Earth Pro
  • pdfstudioviewer
  • FSPViewer (para ver fotos 360°)


En comparación con Kubuntu, ya se encuentran instalados:

  • gwenview
  • kolourpaint


No instalé esta vez:

  • Google Chrome
  • kdiff3
  • matlab
  • Microsoft Edge
  • obstudio
  • tor browser
  • zoom


No existen en Fedora:

  • kubuntu-restricted-extras
  • matlab-support
  • synaptic
  • ttf-mscorefonts-installer


Active el SSH con:
 
Configure meld as the default tool in git:
git config --global diff.tool meld
git config --global merge.tool meld
 

Sunday, March 24, 2024

No WIFI on ASUS Vivobook 15


This device is not supported by Linux yet!

 

daalvarez@laptop:~/Downloads$ lspci | grep Network
0000:02:00.0 Network controller: MEDIATEK Corp. Device 7902
 

 

Check:

https://linux-hardware.org/?probe=97a323caf9



In order to circumvent this problem I bought a USB with the chipset RTL8188FU 802.11N from AliExpress:

daalvarez@laptop:~$ lsusb

Bus 001 Device 002: ID 0bda:f179 Realtek Semiconductor Corp. RTL8188FTV 802.11b/g/n 1T1R 2.4G WLAN Adapter

Linux does not recognize it out of the box. Therefore, I used the drivers and instructions in:

https://github.com/kelebek333/rtl8188fu

with the following modifications (given that they are for Debian-based distributions, and I am using Fedora):

Instead of

sudo apt-get install build-essential git dkms linux-headers-$(uname -r)


Do:

sudo dnf upgrade

sudo dnf install dkms git


Then reboot and continue with ...

sudo dkms install ./rtl8188fu

etc ...


Down below, use the instructions for DRACUT below instead of the ones for INITRAMFS.


Reboot again, and you now have WIFI in your laptop.

Tuesday, September 5, 2023

Ajustando las ventanas de LXQt

LXQt does not allow to easily resize.


I created some shortcuts that allow to resize a windows easily

$ kate .config/openbox/rc.xml

Then add under <keyboard> the following:


    <keybind key="C-S-KP_4">              # Left
      <action name="UnmaximizeFull"/>
      <action name="MoveResizeTo">
        <width>50%</width>
        <height>100%</height>
        <x>0%</x>
        <y>0%</y>
      </action>
    </keybind>
    <keybind key="C-S-KP_6">              # Right
      <action name="UnmaximizeFull"/>
      <action name="MoveResizeTo">
        <width>50%</width>
        <height>100%</height>
        <x>50%</x>
        <y>0%</y>
      </action>
    </keybind>
    <keybind key="C-S-KP_2">              # Up
      <action name="UnmaximizeFull"/>
      <action name="MoveResizeTo">
        <width>100%</width>
        <height>50%</height>
        <x>0%</x>
        <y>50%</y>
      </action>
    </keybind>
    <keybind key="C-S-KP_8">              # Down
      <action name="UnmaximizeFull"/>
      <action name="MoveResizeTo">
        <width>100%</width>
        <height>50%</height>
        <x>0%</x>
        <y>0%</y>
      </action>
    </keybind>

    <keybind key="C-S-KP_7">        # UpperQuarterLeft
      <action name="UnmaximizeFull"/>
      <action name="MoveResizeTo"><x>0</x><y>0</y><height>50%</height><width>50%</width></action>
    </keybind>

    <keybind key="C-S-KP_1">        # LowerQuarterLeft
      <action name="UnmaximizeFull"/>
      <action name="MoveResizeTo"><x>0</x><y>-0</y><height>50%</height><width>50%</width></action>
    </keybind>

    <keybind key="C-S-KP_3">        # LowerQuarterRight
      <action name="UnmaximizeFull"/>
      <action name="MoveResizeTo"><x>-0</x><y>-0</y><height>50%</height><width>50%</width></action>
    </keybind>

    <keybind key="C-S-KP_9">        # UpperQuarterRight
      <action name="UnmaximizeFull"/>
      <action name="MoveResizeTo"><x>-0</x><y>0</y><height>50%</height><width>50%</width></action>
    </keybind>

Finally run

$ openbox --reconfigure