Saturday, November 27, 2021

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/)


Finally run:

$ sudo apt install matlab-support

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

METHOD 1:


METHOD 2:

            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.
In Xournal++, configure the buttons of the pen. Then check in the configuration:
  • Edit > Preferences > Input System > Options > Merge button events with stylus tip events > [checked]

Wednesday, July 29, 2020

One screen/Dual screen

I bought a second monitor

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:

$ autorandr --save solo-pantalla-lg

then I created an icon with the command:

$ autorandr --load solo-pantalla-lg

Repeat in order to activate both monitors:

$ autorandr --save doble-pantalla
$ autorandr --load doble-pantalla


Saturday, February 1, 2020

USB WIFI Antenna RTL8812AU 802.11n WLAN Adapter

In order to make my "USB WIFI Antenna RTL8812AU 802.11n WLAN Adapter" work under Linux Mint 17.3, and Kubuntu 19.10 I had to install its drivers.

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.

Friday, April 6, 2018

Meld in Linux Mint 18.2 shows text in Chinese

I solved it writing in .bashrc:

# estas dos lineas son para que el meld funcione bien
export GIO_EXTRA_MODULES=/usr/lib/x86_64-linux-gnu/gio/modules/
gsettings set org.gnome.meld detect-encodings "['iso8859-15','utf8']"