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


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.