- Crea tabla de partición GPT
- Particiones:
- /boot/efi de 500 Mb formateado en fat32 y label boot
- /boot de ext4 de 2 Gb formateado en ext4
- swap de 18000 Mb formateado con linuxswap
- / ext4 o btrfs con label root
- /home ext4 o btrfs con label home
- /bodega ext4 o btrfs con label bodega
Saturday, November 7, 2026
Particiones para instalar LINUX
Friday, November 6, 2026
Things to do after installing DEBIAN 13
## Add your username to the sudo group
su -
usermod -aG sudo daalvarez
Check if you were added:
cat /etc/group | grep sudo
groups
## Update your system
sudo apt update
sudo apt upgrade -y
# Add "contrib non-free" and backport repositories
sudo vi /etc/apt/sources.list
Add to the end of line of /etc/apt/sources.list "contrib non-free". For example:
"contrib non-free"
deb http://deb.debian.org/debian trixie main non-free-firmware
changes to:
deb http://deb.debian.org/debian trixie main non-free-firmware contrib non-free
sudo sed -i.bak 's/main$/main contrib non-free/' /etc/apt/sources.list
And then:
sudo apt update
sudo apt upgrade -y
## Install missing programs
* audacity: An open-source, multi-track digital audio editor and recorder.
* btop: Monitors system resources (CPU, memory, disks, network, and processes) through a modern, interactive terminal interface.
* command-not-found: Suggests the correct package to install when you type a command that is missing from your system.
* curl: Transfers data to or from a network server using a wide variety of protocols (like HTTP, HTTPS, FTP) via the command line.
* dictd: A database server that allows looking up word definitions using the DICT protocol.
* fastfetch: Displays system information layout alongside an ASCII logo cleanly and rapidly inside the terminal.
* ffmpeg: Decodes, encodes, transcodes, muxes, demuxes, streams, filters, and plays almost any multimedia file format.
sudo apt install audacity btop command-not-found curl dictd fastfetch ffmpeg
* fonts-croscore: Bundles Google's ChromeOS core fonts designed to replace common proprietary Windows typefaces.
* fonts-crosextra-caladea: Supplies a serif typeface metrically compatible with Microsoft's Cambria font.
* fonts-crosextra-carlito: Supplies a sans-serif typeface metrically compatible with Microsoft's Calibri font.
* fonts-firacode: Installs a monospaced font with programming ligatures designed for better code readability.
* fonts-jetbrains-mono: Delivers a highly legible monospaced font tailored specifically for developers and code editors.
* gimp-data-extras: Adds a collection of extra brushes, patterns, and gradients to expand GIMP's creative toolkit.
* git-lfs: A Git extension that efficiently manages and stores large files (like videos or images) outside the main repository.
* gnupg: Implements the OpenPGP standard to allow you to securely encrypt and sign data and communications.
* hunspell-es: The Spanish dictionary used for spell-checking in applications like LibreOffice and Firefox.
* hyphen-es: Spanish syllabification and hyphenation rules used for automatic text layout in word processors.
* htop: Displays an interactive, real-time list of running processes and system resource usage.
* ImageMagick: A command-line software suite used to create, edit, compose, or convert bitmap images.
sudo apt install fonts-croscore fonts-crosextra-caladea fonts-crosextra-carlito fonts-firacode fonts-jetbrains-mono gimp-data-extras git-lfs gnupg hunspell-es hyphen-es htop imagemagick
* inkscape: A professional, open-source vector graphics editor similar to Adobe Illustrator or CorelDraw.
* kompare: A graphical KDE tool used to compare text files and view differences (diffs) between them.
* krename: A powerful KDE batch file renamer that allows renaming multiple files simultaneously.
* kruler: An on-screen pixel ruler for the KDE desktop to measure screen distances and visual dimensions.
* krusader: An advanced, twin-panel (commander-style) file manager for the KDE desktop environment.
* libimage-exiftool-perl: A Perl library and command-line application for reading, writing, and editing metadata (EXIF, IPTC, XMP) in files.
* libreoffice: Bundles a full-featured, open-source office suite including word processing, spreadsheets, and presentations. Even though it is already installed in Debian, you should do it again, since it installs additional files.
* libreoffice-gtk3: Integrates LibreOffice smoothly into modern desktop environments by enabling the GTK3 user interface plugin (improves fonts in libreoffice).
* lsb-release: Prints specific information about your current Linux distribution's release details.
* mc (Midnight Commander): A classic, text-based visual file manager with a dual-panel layout for the terminal.
* meld: A graphical diff viewer and merge tool that helps compare code, files, and directories visually.
* ncdu: Analyzes and visualizes disk usage interactively inside the terminal using an ncurses interface.
* nload: Monitors network traffic and bandwidth usage in real time using simple text-based graphs.
sudo apt install inkscape kompare krename kruler krusader libimage-exiftool-perl libreoffice libreoffice-gtk3 lsb-release mc meld ncdu nload
* ocrmypdf: A tool that adds a searchable text layer to image-only PDF files using Optical Character Recognition (OCR).
* octave (GNU Octave): A high-level language and numerical computation environment that is mostly compatible with MATLAB.
* pdftk: A command-line toolkit used to manipulate, split, merge, encrypt, and fill forms in PDF documents.
* plocate: it contains updatedb.
* pydf: Displays your system's free disk space in a color-coded, easier-to-read format than the traditional df command.
* p7zip-full: Packs and unpacks advanced 7z high-compression archives along with standard zip and tar files.
* python3-pip: Installs and manages software packages and external libraries written for the Python 3 runtime environment.
* subversion (SVN): A centralized version control system used to manage and track changes in source code and files.
* synaptic: Governs advanced package installations, updates, and removals through a graphical APT package manager interface.
* tesseract-langpack-spa: The Spanish language data pack for the Tesseract open-source OCR engine.
* texlive-full: A complete installation of the TeX/LaTeX typesetting system, including all packages, fonts, and languages.
* texstudio: A fully-featured Integrated Development Environment (IDE) specifically tailored for writing LaTeX documents.
* tree: Lists the contents of directories in a visual, tree-like structure.
sudo apt install ocrmypdf octave plocate pdftk pydf p7zip-full python3-pip subversion synaptic tesseract-ocr-spa texlive-full texstudio tree
* ttf-mscorefonts-installer: An installer script that downloads and configures Microsoft's core TrueType fonts (like Arial and Times New Roman) on Linux.
* unrar: Extracts files from proprietary RAR archive formats that standard compression tools cannot open.
* vim: Edits text efficiently as a highly configurable, powerful terminal-based text editor.
* vlc: A free, open-source, cross-platform multimedia player that runs almost all video and audio formats.
* workrave: A health management program that assists in preventing Carpal Tunnel Syndrome by prompting the user for regular breaks.
* wxmaxima: A graphical user interface based on menus and dialogs for the Maxima Computer Algebra System (symbolic math).
* xournalpp: A hand-written note-taking and PDF annotation application designed for drawing tablets and digital pens.
* wget: Downloads files and web content from internet servers non-interactively via the command line.
sudo apt install ttf-mscorefonts-installer unrar vim vlc workrave wxmaxima xournalpp wget
Now download, from their webpages, the corresponding .DEB file:
Anaconda
Antigravity
Visual Studio Code: https://code.visualstudio.com/docs/setup/linux
Brave browser https://brave.com/linux/
Google Earth Pro
XodoPDFReader (pdfstudioviewer)
qgis
FSPViewer (see 360° photos)
## Configure git-lfs
See webpage of this program
## Configure command-not-found bash-completion
sudo apt update
sudo update-command-not-found
## Install flatpak
sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
## Optimize Power and Performance (Especially on Laptops)
This increases battery life:
sudo apt install tlp tlp-rdw
sudo systemctl enable tlp
## Append to the end of .bashrc:
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
export EDITOR=vim
alias ll='ls -alF'
## Disable GPU for VSCODE (in my older computer)
cp /usr/share/applications/code.desktop ~/.local/share/applications/
Edit ~/.local/share/applications/code.desktop and modify the Exec= line:
Exec=/usr/share/code/code --disable-gpu %F
Append to the end of .bashrc:
alias code='code --disable-gpu'
## Disable GPU for BRAVE BROWSER (in my older computer)
Edit /usr/share/applications/brave-browser.desktop and modify the Exec= line
Exec=/usr/bin/brave-browser-stable --disable-gpu --disable-software-rasterizer %U
## Fix VIM pasting issue
https://blog.programster.org/fix-vim-pasting-issue
echo "set mouse=r" >> ~/.vimrc
echo "set mouse=r" | sudo tee -a /root/.vimrc
## Enable syntax highlighting on VIM
echo "syntax on" >> ~/.vimrc
## Timeshift and rsync
https://www.linuxtechi.com/top-things-to-do-after-installing-debian/
## Solving some errors:
This error appears after starting DEBIAN 13:
IBus should be called from the desktop session in Wayland. For KDE, you can launch 'systemsettings5' utility and go to "Input Devices" -> "Virtual Keyboard" section and select "IBus Wayland" icon and click "Apply" button to configure IBus in Wayland. For other desktop sessions, you can copy the 'Exec=' line in org.freedesktop.IBus.Panel.Wayland.Gtk3.desktop file to a configuration file of the session. Please refer each document about the "Wayland input method" configuration. Before you configure the "Wayland input method", you should make sure that QT_IM_MODULE and GTK_IM_MODULE environment variables are unset in the desktop session.
HOW TO SOLVE IT
Open System Settings from your application launcher.
In the left-hand sidebar, navigate to Keyboard (or Input Devices depending on your sub-version).
Click on Virtual Keyboard.
Select the IBus Wayland icon from the options.
Click Apply in the bottom-right corner.
NOW IT APPEARS:
Please unset QT_IM_MODULE and GTK_IM_MODULE environment variables and 'ibus-daemon --panel disable' should be executed as a child process of ibus-ui-gtk3 component.
HOW TO SOLVE IT
Open your terminal and execute the configuration helper to explicitly tell Debian not to use legacy frameworks for your desktop inputs:
im-config -n none
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
- Bookmarks
- Code Spell Checker + Spanish dictionary
- LaTeX Workshop
- LTeX+ grammar/spell checking
- Jupyter
- Python
Configuration JSON:
{
// GENERAL EDITOR CUSTOMIZATION:
// Disable GPU acceleration in the integrated terminal
"terminal.integrated.gpuAcceleration": "off",
// Disable copying with syntax highlighting to avoid issues when pasting into other applications
"editor.copyWithSyntaxHighlighting": false,
// Makes the text cursor slightly wider so it is easier to spot in dense text
"editor.cursorWidth": 3,
// Enable bracket pair guides only for the active pair to reduce visual clutter and improve focus on the current code block
"editor.guides.bracketPairs": "active",
// 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",
// Disable warnings for long lines
"terminal.integrated.inheritEnv": false,
// Skip the "matlab.interrupt" command in the terminal to prevent conflicts with MATLAB's interrupt functionality
"terminal.integrated.commandsToSkipShell": [
"matlab.interrupt"
],
// 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"
],
"cSpell.ignoreRegExpList": [
// Prevents the spell checker from flagging LaTeX commands (anything starting with \)
"\\\\[a-zA-Z]+",
// Prevents the spell checker from flagging citation and reference keys
"\\\\(cite|ref|eqref|label)\\{[^}]+\\}"
],
// 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,
// Trims the PDF preview to remove white margins
"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
Siga los pasos de:
- https://fosspost.org/things-to-do-after-installing-fedora
- https://github.com/devangshekhawat/Fedora-43-Post-Install-Guide
-------------------
- 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
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
Wednesday, May 10, 2023
Ajustando las resoluciones de las pantallas de los computadores de la U
Con
$ xrand
conozco las resoluciones
PILLARBOX
ESTE ES EL COMANDO PARA AJUSTAR LA PANTALLA IZQUIERDA A LA PANTALLA DERECHA (Pantalla de baja resolución se ajusta a pantalla de alta resolución)
xrandr --output VGA-1 --mode 1680x1050
xrandr --output DP-1 --mode 1600x900 --same-as VGA-1 --scale 1.15x1.167
El 1.15 sale de El 1.167 sale de 1050/900
434
-------------- = 1.15
236*473
---------
296
xrandr --output DP-1 --mode 1600x900
xrandr --output VGA-1 --mode 1680x1050 --same-as DP-1 --scale 0.95x1
0.95 = 1600/1680x1050
1 -> ya que no hay que escalar
C401:
Televisor:
xrandr --output HDMI-1 --mode 1920x1080
xrandr --output HDMI-2 --mode 1440x900 --same-as HDMI-1 --scale 1.33x1.2
1920/1440 = 1.33
1080/900 = 1.2
Proyector:
xrandr --output HDMI-1 --mode 1920x1200
xrandr --output HDMI-2 --mode 1440x900 --same-as HDMI-1 --scale 1.33x1.33
Sunday, December 18, 2022
Load Strava Heatmap on qgis
Use the URL:
https://heatmap-external-a.strava.com/tiles-auth/ACTIVITY/COLOR/{zoom}/{x}/{y}.png?Key-Pair-Id=MYVALUE&Policy=MYVALUE&Signature=MYVALUE
After logging in to https://www.strava.com/heatmap/ using a browser, you then have to retrieve and replace the MYVALUE items with appropriate cookie values for the following:
- CloudFront-Key-Pair-Id
- CloudFront-Policy
- CloudFront-Signature
Monday, October 31, 2022
Jabra: cannot set freq 48000 to ep 0x3
To fix this problem, I followed the steps in:
https://cloudalbania.com/posts/2022-04-fix-pulseaudio-usb-device/
Edit /etc/pulse/daemon.conf
$ grep sample-rate /etc/pulse/daemon.conf
; default-sample-rate = 44100
; alternate-sample-rate = 48000
$ pulseaudio --dump-conf | grep sample-rate
default-sample-rate = 44100
alternate-sample-rate = 48000
and change default-sample-rate to 48000:
$ pulseaudio --dump-conf | grep sample-rate
default-sample-rate = 48000
alternate-sample-rate = 48000
Finally, restarted PulseAudio with pulseaudio -k
Monday, January 10, 2022
Install MAXIMA 5.30
Unzip all *.rpm that are found in
https://sourceforge.net/projects/maxima/files/Maxima-Linux/5.30.0-Linux/
(Files maxima-lang-*.rpm are optional)
Download:
wget http://mirrors.kernel.org/ubuntu/pool/universe/n/ncurses/libncurses5_6.2-0ubuntu2_i386.deb
wget http://ftp.de.debian.org/debian/pool/main/n/ncurses/libtinfo5_6.2+20201114-2_i386.deb
Crear soft link a info/
drwxrwxr-x 6 daam daam 4096 Dec 15 21:18 ./
drwxrwxr-x 4 daam daam 4096 Dec 15 22:03 ../
drwxrwxr-x 2 daam daam 4096 Dec 15 21:22 bin/
lrwxrwxrwx 1 daam daam 41 Dec 15 21:18 info -> /home/daam/bin/maxima-5.30/usr/share/info/
drwxrwxr-x 3 daam daam 4096 Dec 15 20:38 lib/
drwxrwxr-x 3 daam daam 4096 Dec 15 20:38 libexec/
drwxrwxr-x 13 daam daam 4096 Dec 15 21:11 share/
(base) daam@almarhall:~/bin/maxima-5.30/usr$
Para instalar WXMAXIMA:
sudo apt-get install autotools-dev automake
sudo apt-get install libwxgtk-media3.0-gtk3-dev
Download wxmaxima from: https://github.com/wxMaxima-developers/wxmaxima/releases/tag/Version-16.04.2
./configure --prefix=/home/daam/Downloads/wx
Execute:
export LD_LIBRARY_PATH=/home/daam/bin/maxima-5.30/lib/i386-linux-gnu:/usr/lib/x86_64-linux-gnu
Now you can make
./wxmaxima
Saturday, November 27, 2021
Installing KUBUNTU 20.04
I opt for installing using the PPAs/DEBs the following programs (this is because the UBUNTU repositories tend to store older software):
- anaconda (python distribution)
- audacity
- brave browser
- google earth
- google chrome
- gwenview
- inkscape
- matlab
- microsoft edge
- obstudio
- pdfstudioviewer
- qgis
- texstudio
- tor browser
- vscode
- workrave
- xournal++
- zoom
I install from the official repositories the huion driver
digimend-kernel-drivers (en caso de que lo de arriba no funcione)
I install using "apt install"
- dict
- dvipng
- git
- git lfs
- htop
- hunspell-es
- helix
- imagemagick
- kdiff3 (no se si valga la pena instalarlo)
- kolourpaint
- kompare
- krename
- kruler
- krusader
- kubuntu-restricted-extras
- matlab-support
- mc
- meld
- octave
- rar
- subversion
- synaptic
- texlive-full
- ttf-mscorefonts-installer
- vim
- wxmaxima
Programas necesarios preinstalados
- LibreOffice
- VLC
After installing I had a problem with the resolution 640x480 was the only one available. I fixed it using:
Search Nvidia packages:
$ dpkg -l | grep -i nvidia
Remove all the Nvidia drivers
$ sudo apt-get remove --purge '^nvidia-.*'
Go to: System settings >> Driver manager >> Additional Drivers >> select first one (NVIDIA driver 390 propietary, tested) >> Apply Changes
Reboot
Taken from: https://askubuntu.com/questions/1138975/stuck-at-640x480-resolution/1351606
Install the HELVETICA FONT:
https://getfontfree.com/helvetica-font/
So that inkscape does not complain when opening EPS files generated in MATLAB
Finally, disable the boot screen and show only kernel and boot text:
https://askubuntu.com/questions/33416/how-do-i-disable-the-boot-splash-screen-and-only-show-kernel-and-boot-text-inst
Install MATLAB 2021b in Linux Kubuntu 20.04
In order to install MATLAB 2021b, run the following commands:
$ sudo unzip -X -K matlab_R2021b_glnxa64.zip
$ xhost +SI:localuser:root
$ sudo ./install
(adapted from: https://www.mathworks.com/matlabcentral/answers/1459909-installer-hang-when-installing-matlab-r2021b-as-root-on-ubuntu-20-04/)
Wednesday, November 24, 2021
Configurando OBS para las clases por ZOOM
* Instale Websockets server plug in.
* Instale StreamFX plug in - 3D transform filter.
* Configure el audio Input/Output con PulseAudio
* Cámara (3D transform filter):
- Alinear la cámara con el borde superior del tablero, y las dos esquinas superiores con la pantalla.
- 3D transform:
OPCION 1:
- Camera mode: Corner pin
- Enable Mipmapping: OFF (due to computational overhead)
OPCION 2:
- Camera mode: Perspective
- Field of view: 86
- Rotation (pitch): 2.59 grados
- Shear X: 1.95%
* Video Capture Device (V4L2):
- Video format: BGR3 (emulated)
- Resolution 1280x720
- Sharpness: 180
- Focus, Auto: OFF
* Para las diapositivas de fondo use Window Capture (Xcomposite):
- Color key: CUSTOM -> #ffffff
- Contrast: -1.5
* Configure el directorio de los videos:
Settings -> Output -> Recording -> Recording Path -> /home/daalvarez/Videos
* Cuando intente grabar aparecerá el error "Failed to open NVENC Codec: Function not implemented". Se soluciona con:
Settings -> Output -> Recording -> Encoder -> Software (x264 low CPU usage preset)
* Para evitar una titilación si no estoy mal lo que hice fue:
- EN NVIDIA X Server Settings -> OpenGL settings -> Allow Flipping -> OFF (ensaye primero)
Saturday, November 13, 2021
How to crop PDFs
Something that I have is to read papers with a very small font, specially when there are large margins around.
In order to crop this margin, I do not use linux at all, but this page: Crop PDF Online. Automatically trim white margins in one click. Then, I download the PDF and I print it using FIREFOX. I like it better than OKULAR,since it does have an accurate preview.
When cropping a PDF, simply concentrate on the upper and lower margins. Left and right margins are not that important, since when you print the PDF, it will scale properly.
Monday, August 30, 2021
How to install Huion 1060 Plus on Ubuntu 20.04
- Download the drivers for linux from https://www.huion.com/download/ (great app)
- Just follow the instructions on: https://github.com/DIGImend/digimend-kernel-drivers
That is:
$ sudo apt-get install -y "linux-headers-$(uname -r)"
$ sudo apt-get install -y dkms
$ git clone https://github.com/DIGImend/digimend-kernel-drivers.git
$ cd digimend-kernel-drivers
$ make
$ sudo make install
$ sudo modprobe -r hid-kye hid-uclogic hid-polostar hid-viewsonic
- Reconnect the tablet.
- Run the "Tablet Wacom Finder" in KDE and configure the table.
- Restart the computer.
- Edit > Preferences > Input System > Options > Merge button events with stylus tip events > [checked]
Wednesday, July 29, 2020
One screen/Dual screen
In order to create an icon that tells linux to use one or two monitors I did the following:
In the System Settings I adjusted the configuration that I wanted for one monitor. Then in the console I wrote:
Saturday, February 1, 2020
USB WIFI Antenna RTL8812AU 802.11n WLAN Adapter
Just do the following:
Check if it is recognized:
(base) daalvarez@heimdall:~ > lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0458:0186 KYE Systems Corp. (Mouse Systems)
Bus 001 Device 003: ID 045e:00db Microsoft Corp. Natural Ergonomic Keyboard 4000 V1.0
Bus 001 Device 002: ID 0bda:8812 Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac WLAN Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Then download the source code of the driver and compile it:
git clone https://github.com/gnab/rtl8812au.git
Follow the steps in the README.md including the DKMS commands, so that it automatically adapts when there is a linux kernel update.
Finally, reboot the computer.