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

 

 

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
Click on the padlock icon in the URL bar while at https://www.strava.com/heatmap/ and take the values from Cookies.

You can use also this Chrome extension to fill the fields:
https://github.com/zekefarwell/josm-strava-heatmap

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