vendredi 22 septembre 2023

mercredi 8 mars 2023

ssh / scp

 to tranfer a file from your local host to a remote vm with ssh use scp:

scp -P 12345 ./some.zip username@123.123.321.321:/home/username/somefolder

dimanche 19 décembre 2021

how to add enable automatic printer install on manjaro?

When I installed Manjaro I choose "minimal installation" so only the most basic packages are installed on my system by default. But to automatically find the correct driver for the printer (if there is one) you not only need to install the package manjaro-printer for general printer support, but also the optional dependency package "system-config-printer". After I followed the instructions to install printing support I installed the optional dependency "system-config-printer" in the "Add/Remove Software" program and I was able to just hit the "add printer" button and everything worked like a charm.

 

sources:

https://archived.forum.manjaro.org/t/error-failed-to-add-a-new-printer/134620

https://wiki.manjaro.org/index.php?title=Printing

 

samedi 11 décembre 2021

[manjaro] [laptop] [hybrid graphics] after some update hdmi port is not used anymore

Last time this happened, I freaked out, after a couple of hours I was able to get it back to normal by following those steps:

  • install a newer kernel
    • go to Manjaro settings/Kernels
    •  
    • install the most recent one (not experimental if possible)
    •  
    •  enable grub at startup
    • sudo vim /etc/default/grub
    • replace grub_timeout_style=hidden by grub_timeout_style=menu
    • save
    • sudo update-grub
    • restart
    • select the new kernel installed
    • go back to the kernel settings and remove the current one
    • restart
    • go in Manjaro Settings/hardware
    • click the button "install proprietary drivers"
    • restart
    • go back in Manjaro settings/hardware
    • right click on each free drivers you have an select "reinstall"
    •  
    •  
    • once this is done remove the proprietary drivers you've previously install and restart, this will switch with the free drivers and hopefully things will be back to normal.
    • I think something weird happen with some updates of the graphics drivers, from time to time it just wipe some part of the configuration, that is the only process I know to make it back to normal.
    • I just hate messing with this...

bash script to convert all mp4 in a folder to mkv files with ffmpeg

 #!/bin/bash for i in *.mp4; do   echo "$i" "${i%%.*}.mkv"   ffmpeg -i "$i" -vcodec copy -acodec copy "${...