Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Wednesday, December 10, 2025

Nemo thumbnail

For solve mp4 preview

sudo apt install ffmpegthumbnailer ffmpegthumbs
 
 

 

Monday, December 01, 2025

Ubuntu 20 Remote Mouse

remote-touchpad  available on snap

sudo apt install snap
sudo apt install snapd
 

sudo snap install remote-touchpad
 


Sunday, November 30, 2025

Ubuntu 20 GLIBC 2.31 to 2.35

Error: version `GLIBC_2.34' not found 

 

You should be able to use any of the listed mirrors by adding a line to your /etc/apt/sources.list like this:

deb http://security.ubuntu.com/ubuntu jammy-security main 

 

sudo apt update
sudo apt install libc6 

References:
[1] https://packages.ubuntu.com/jammy/amd64/libc6/download
[2] https://stackoverflow.com/questions/71940179/error-lib-x86-64-linux-gnu-libc-so-6-version-glibc-2-34-not-found 
 

 

Saturday, November 29, 2025

Ubuntu Desktop Info

 

systemctl status display-manager.service
echo $XDG_CURRENT_DESKTOP
XFCE
echo $DESKTOP_SESSION
xfce
 

Ubuntu 20 and Nautilus thumbnails problem

Linux Lite 5.8 with Ubuntu 20 does not show all thumbnails after settings

sudo apt-get install ubuntu-restricted-extras

 

Thursday, August 28, 2025

gedit mutiple windows problem

gsettings set org.gnome.gedit.preferences.ui show-tabs-mode 'always'
 

gsettings get org.gnome.gedit.preferences.ui show-tabs-mode

 

gsettings list-recursively org.gnome.gedit.preferences.ui         
org.gnome.gedit.preferences.ui bottom-panel-visible false
org.gnome.gedit.preferences.ui max-recents uint32 5
org.gnome.gedit.preferences.ui statusbar-visible true
org.gnome.gedit.preferences.ui show-tabs-mode 'always'
org.gnome.gedit.preferences.ui side-panel-visible false
org.gnome.gedit.preferences.ui toolbar-visible true

 

Thursday, July 04, 2024

Ubuntu18 Upgrade Postgres10 to Postgres12

 

sudo apt-get install curl ca-certificates gnupg
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
sudo apt-get update
 
 
#pgdg.list #update
deb https://apt-archive.postgresql.org/pub/repos/apt bionic-pgdg main 

 

$ sudo apt update
$ sudo apt install postgresql-12

 

Error that force us to update

psycopg2.errors.UndefinedFunction: function jsonb_path_query_array(jsonb, unknown) does not exist
LINE 1: ...ate_name_index" ON "product_template" USING gin ((jsonb_path...

 
 

Thursday, June 20, 2024

Ubuntu 20 VMWare Player

 

sudo apt update
sudo apt install build-essential linux-headers-generic

Next, download and install from the following resources

VMware-Player-Full-17.5.0-22583795.x86_64.bundle

Download from drive

[1] https://drive.google.com/file/d/1X0MifVmJ_gr5UgShUKGrt8V49YA2wI6O/view?usp=drive_web

[2] Linux Lite 5.2 based on Ubuntu 20 https://osdn.net/dl/linuxlite/linux-lite-5.2-64bit.iso

References:

[1] original link https://salvatorenoschese.it/vmware-17-5-2-download-url/

[2] Linux Lite mirror https://osdn.net/projects/linuxlite/storage/

Monday, June 10, 2024

Set default Python3

 

 

fincahuanaco@RolumaraT01:~$ sudo unlink /usr/bin/python3              
fincahuanaco@RolumaraT01:~$ sudo ln -s /usr/bin/python3.10 /usr/bin/python3


 fincahuanaco@RolumaraT01:~$ python3
Python 3.10.14 (main, Apr  6 2024, 18:45:05) [GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()


Python3.10 on Ubuntu18

Manual Installation

sudo apt install software-properties-common
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev

wget https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz
tar -zxvf Python-3.10.0.tgz  
ls
cd Python-3.10.0/
ls
 
./configure --enable-optimizations
make -j $(nproc)
sudo make altinstall
python3.10

 

References:

[1] https://computingforgeeks.com/how-to-install-python-on-ubuntu-linux-system/

Monday, December 11, 2023

Add audio track to mp4

 

 

ffmpeg -i badges-of-fury-2013-watch-hd-freedownloadvideo.net.mp4 -i badges-of-fury-2013-watch-hd-freedownloadvideo.net
.mp3 -map 0 -map 1 -codec copy output_video.mp4   

ffmpeg -i badges-of-fury-2013-watch-hd-freedownloadvideo.net.mp4 -itsoffset 00:00:24 -i badges-of-fury-2013-watch-hd-f
reedownloadvideo.net.mp3 -map 0 -map 1 -codec copy badges_output_video.mp4


References:

[1] https://stackoverflow.com/questions/11779490/how-to-add-a-new-audio-not-mixing-into-a-video-using-ffmpeg

[2] https://superuser.com/questions/708125/add-audio-at-specific-time-in-video-using-ffmpeg

[3] Extract mp3 from youtube https://tuberipper.com

[4] Download mp4 from dailymotion https://freedownloadvideo.net

Sunday, November 12, 2023

Arcade Games Linux

 

Snes9x

sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub com.snes9x.Snes9x 

ZSNES is a Super Nintendo Emulator that can run on Windows, Linux, FreeBSD, and DOS. It runs as a GUI interface where you can load ROM of NES games.

sudo apt install zsnes
higan is an emulator for Nintendos SNES, NES, Gameboy, Gameboy Color, and Gameboy Advance. It was formerly called bsnes and the SNES emulation is especially complete and polished.
sudo apt install higan 

 

References:

https://www.debugpoint.com/3-nes-emulators-to-play-old-nes-games-in-linux/

 

Saturday, September 23, 2023

Update Gimp

From 2.8 to 2.10 using apt-get

$ sudo add-apt-repository ppa:otto-kesselgulasch/gimp

$ sudo apt-get update

$ sudo apt-get install gimp

 

References:

https://linuxhint.com/install_gimp_210_ubuntu_1804/

Friday, June 02, 2023

Tuesday, February 28, 2023

ffmpeg: Extract audio and reinsert a new for use in whatsapp

 

#Extract audio

ffmpeg -i mad-pi.mp4 -map 0:a:0 mad-pi_audio.wav 

 

#Extract reinsert new audio

ffmpeg -i mad-pi.mp4 -i mad-pi_audiohd.mp3 -c:v copy -map 0:v:0 -map 1:a:0 new.mp4
 

#reencode for whatsapp

ffmpeg -i new.mp4 -c:v libx264 -profile:v baseline -level 3.0 -pix_fmt yuv420p working.mp4

 

Monday, December 12, 2022

Ubuntu NFS Installation

On Server (10.10.7.229):

$ sudo apt install nfs-kernel-server  #install server

$ sudo mkdir -p /mnt/nfs_drive  #create share point

$ sudo chown -R nobody:nogroup /mnt/nfs_drive  #no owner

$ sudo chmod 777 /mnt/nfs_drive  #set r/w permission

$ sudo vi /etc/exports  #define clients grants
 

/mnt/nfs_drive 10.10.7.218(rw,sync,no_subtree_check) #mine
/mnt/nfs_drive 10.10.7.235(rw,sync,no_subtree_check) #houdini

$ sudo exportfs -a

$ sudo systemctl restart nfs-kernel-server
 

On Client: 

$ sudo apt install nfs-common 

$ sudo mkdir -p /mnt/nfs_drive_client   #mirror

$ sudo mount 10.10.7.229:/mnt/nfs_drive /mnt/nfs_drive_client

Notes: 

$ sudo ufw status  #verify the firewall, more details in reference[0]


References: 

[0] Working https://linuxhint.com/install-and-configure-nfs-server-ubuntu-22-04/

[1] https://www.tecmint.com/install-nfs-server-on-ubuntu/

Monday, March 14, 2022

Convert webp to png

 

Any file to PNG

$ sudo apt install webp
$ for i in *.webp; do name=`echo "$i" | cut -d'.' -f1`; echo "$name"; dwebp "$i"
-o "${name}.png"; done

Add to Nautilus Script
fincahuanaco@pisces:~/.local/share/nautilus/scripts$ cat toPNG   
dwebp $1 -o "$1.png"
rm $1

$chmod +x toPNG 
 
Updated to Selection to PNG (2023)
#!/bin/bash
count=0
success=0

# Transform command line arguments (if provided)
[[ -z "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" ]] &&
NAUTILUS_SCRIPT_SELECTED_FILE_PATHS=$(printf "%s\n" "$@")

# Process each file in turn
while IFS= read -r src
do
if [[ -f "$src" ]]
then
# Target
dst="${src}.png"

# Primary conversion to PNG
step=0

dwebp $src -o $dst && ((step++))

# Remove src
if [[ step -eq 1 ]]
then
rm $src && ((step++))
fi

# Update
if [[ step -eq 2 ]]
then
((success++))
fi

# Count it
((count++))
fi

done <<<"$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS"

[[ count -gt 1 ]] &&
notify-send "Conversion finished ($success files of $count)"

exit $((count - success)) 
 
AVIF format support
[1] libavif https://github.com/AOMediaCodec/libavif/ 
 
References:

[1] https://unix.stackexchange.com/questions/710013/making-a-bash-script-apply-to-only-selected-files-nautilus 








Saturday, March 12, 2022

Linux Libraries path

#Cuda 8.0 Settings
export CUDA_HOME=/usr/local/cuda-8.0
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64  
PATH=${CUDA_HOME}/bin:${PATH}


#Cuda 9.1 Settings
export CUDA_HOME=/usr/local/cuda-9.1
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64  
PATH=${CUDA_HOME}/bin:${PATH}


#Cuda 9.2 Settings
export CUDA_HOME=/usr/local/cuda-9.2
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64  
PATH=${CUDA_HOME}/bin:${PATH}

 

$ LD_LIBRARY_PATH=. ./programtest  #direct execution
 

$ echo $LD_LIBRARY_PATH  
/usr/local/cuda-8.0/lib64
 

$ ls /etc/ld.so.conf.d
cuda-8-0.conf                   opencv.conf
fakeroot-x86_64-linux-gnu.conf  x86_64-linux-gnu.conf
glew.conf                       x86_64-linux-gnu_EGL.conf
i386-linux-gnu.conf             x86_64-linux-gnu_GL.conf
libc.conf                       zz_i386-biarch-compat.conf

$ldconfig -p  #list libraries

$sudo ldconfig #update paths

 

 


 

Nemo thumbnail

For solve mp4 preview sudo apt install ffmpegthumbnailer ffmpegthumbs