sábado, 21 de junio de 2025

NextCloud fix acces problems whit new install

 

 

 

errors: 

 

 ,"message":"No such file or directory","userAgent"

 

at webpage: 

"Internal Server Error 

The server was unable to complete your request.If this happens again, please send the technical details below to the server administrator.More details can be found in the server log."

 

 

nextcloud Log: 

:3,"time":"2025-06-21T06:48:25+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"index","method":"GET","url":"/index.php/core/preview?fileId=5&x=32&y=32&mimeFallback=true&v=8478eb&a=0","message":"No such file or directory","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"31.0.2.1","exception":{"Exception":"RedisException","Message":"No such file or directory","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/private/RedisFactory.php","line":104,"function":"pconnect","class":"Redis","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/RedisFactory.php","line":148,"function":"create","class":"OC\\RedisFactory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/Memcache/Redis.php","line":53,"function":"getInstance","class":"OC\\RedisFactory","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Memcache/Redis.php","line":117,"function":"getCache","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Lock/MemcacheLockingProvider.php","line":73,"function":"add","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Common.php","line":640,"function":"acquireLock","class":"OC\\Lock\\MemcacheLockingProvider","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":298,"function":"acquireLock","class":"OC\\Files\\Storage\\Common","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Cache/Scanner.php","line":315,"function":"acquireLock","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Cache/LocalRootScanner.php","line":22,"function":"scan","class":"OC\\Files\\Cache\\Scanner","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/View.php","line":1386,"function":"scan","class":"OC\\Files\\Cache\\LocalRootScanner","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/View.php","line":1422,"function":"getCacheEntry","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Node/Root.php","line":178,"function":"getFileInfo","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Node/LazyFolder.php","line":138,"function":"get","class":"OC\\Files\\Node\\Root","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/AppData/AppData.php","line":114,"function":"get","class":"OC\\Files\\Node\\LazyFolder","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Preview/Storage/Root.php","line":30,"function":"getFolder","class":"OC\\Files\\AppData\\AppData","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Preview/Generator.php","line":582,"function":"getFolder","class":"OC\\Preview\\Storage\\Root","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Preview/Generator.php","line":110,"function":"getPreviewFolder","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Preview/Generator.php","line":87,"function":"generatePreviews","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/PreviewManager.php","line":167,"function":"getPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/html/nextcloud/core/Controller/PreviewController.php","line":168,"function":"getPreview","class":"OC\\PreviewManager","type":"->"},{"file":"/var/www/html/nextcloud/core/Controller/PreviewController.php","line":127,"function":"fetchPreview","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":200,"function":"getPreviewByFileId","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Route/Router.php","line":307,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/nextcloud/lib/base.php","line":1025,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/nextcloud/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/html/nextcloud/lib/private/RedisFactory.php","Line":104,"message":"No such file or directory","exception":{},"CustomMessage":"No such file or directory"}}
{"reqId":"rA6g9qGyqXSQMD2UuXCh","level":3,"time":"2025-06-21T06:48:25+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"index","method":"GET","url":"/index.php/core/preview?fileId=12&x=32&y=32&mimeFallback=true&v=66562d&a=0","message":"No such file or directory","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"31.0.2.1","exception":{"Exception":"RedisException","Message":"No such file or directory","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/private/RedisFactory.php","line":104,"function":"pconnect","class":"Redis","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/RedisFactory.php","line":148,"function":"create","class":"OC\\RedisFactory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/Memcache/Redis.php","line":53,"function":"getInstance","class":"OC\\RedisFactory","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Memcache/Redis.php","line":117,"function":"getCache","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Lock/MemcacheLockingProvider.php","line":73,"function":"add","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Common.php","line":640,"function":"acquireLock","class":"OC\\Lock\\MemcacheLockingProvider","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":298,"function":"acquireLock","class":"OC\\Files\\Storage\\Common","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Cache/Scanner.php","line":315,"function":"acquireLock","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Cache/LocalRootScanner.php","line":22,"function":"scan","class":"OC\\Files\\Cache\\Scanner","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/View.php","line":1386,"function":"scan","class":"OC\\Files\\Cache\\LocalRootScanner","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/View.php","line":1422,"function":"getCacheEntry","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Node/Root.php","line":178,"function":"getFileInfo","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Node/LazyFolder.php","line":138,"function":"get","class":"OC\\Files\\Node\\Root","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/AppData/AppData.php","line":114,"function":"get","class":"OC\\Files\\Node\\LazyFolder","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Preview/Storage/Root.php","line":30,"function":"getFolder","class":"OC\\Files\\AppData\\AppData","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Preview/Generator.php","line":582,"function":"getFolder","class":"OC\\Preview\\Storage\\Root","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Preview/Generator.php","line":110,"function":"getPreviewFolder","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Preview/Generator.php","line":87,"function":"generatePreviews","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/PreviewManager.php","line":167,"function":"getPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/html/nextcloud/core/Controller/PreviewController.php","line":168,"function":"getPreview","class":"OC\\PreviewManager","type":"->"},{"file":"/var/www/html/nextcloud/core/Controller/PreviewController.php","line":127,"function":"fetchPreview","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":200,"function":"getPreviewByFileId","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Route/Router.php","line":307,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/nextcloud/lib/base.php","line":1025,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/nextcloud/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/html/nextcloud/lib/private/RedisFactory.php","Line":104,"message":"No such file or directory","exception":{},"CustomMessage":"No such file or directory"}}
{"reqId":"brTtYUputj43wypteXW3","level":3,"time":"2025-06-21T06:49:32+00:00","remoteAddr":"::1","user":"alex","app":"index","method":"GET","url":"/index.php/apps/photos/","message":"No such file or directory","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36","version":"31.0.2.1","exception":{"Exception":"RedisException","Message":"No such file or directory","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/private/RedisFactory.php","line":104,"function":"pconnect","class":"Redis","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/RedisFactory.php","line":148,"function":"create","class":"OC\\RedisFactory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/Memcache/Redis.php","line":53,"function":"getInstance","class":"OC\\RedisFactory","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Memcache/Redis.php","line":117,"function":"getCache","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Lock/MemcacheLockingProvider.php","line":73,"function":"add","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Common.php","line":640,"function":"acquireLock","class":"OC\\Lock\\MemcacheLockingProvider","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":298,"function":"acquireLock","class":"OC\\Files\\Storage\\Common","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":298,"function":"acquireLock","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Cache/Scanner.php","line":315,"function":"acquireLock","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/SetupManager.php","line":252,"function":"scan","class":"OC\\Files\\Cache\\Scanner","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/SetupManager.php","line":308,"function":"oneTimeUserSetup","class":"OC\\Files\\SetupManager","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/SetupManager.php","line":203,"function":"setupForUserWith","class":"OC\\Files\\SetupManager","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/SetupManager.php","line":385,"function":"setupForUser","class":"OC\\Files\\SetupManager","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Mount/Manager.php","line":75,"function":"setupForPath","class":"OC\\Files\\SetupManager","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/View.php","line":1418,"function":"find","class":"OC\\Files\\Mount\\Manager","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Node/Root.php","line":178,"function":"getFileInfo","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Node/LazyUserFolder.php","line":32,"function":"get","class":"OC\\Files\\Node\\Root","type":"->"},{"function":"OC\\Files\\Node\\{closure}","class":"OC\\Files\\Node\\LazyUserFolder","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/Files/Node/LazyFolder.php","line":50,"function":"call_user_func"},{"file":"/var/www/html/nextcloud/lib/private/Files/Node/LazyFolder.php","line":64,"function":"getRealFolder","class":"OC\\Files\\Node\\LazyFolder","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Node/LazyFolder.php","line":237,"function":"__call","class":"OC\\Files\\Node\\LazyFolder","type":"->"},{"file":"/var/www/html/nextcloud/apps/photos/lib/Controller/PageController.php","line":109,"function":"getEtag","class":"OC\\Files\\Node\\LazyFolder","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":200,"function":"index","class":"OCA\\Photos\\Controller\\PageController","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Route/Router.php","line":307,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/nextcloud/lib/base.php","line":1025,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/nextcloud/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/html/nextcloud/lib/private/RedisFactory.php","Line":104,"message":"No such file or directory","exception":{},"CustomMessage":"No such file or

 

 solution: 

edit:

path:

/var/www/html/nextcloud/config

# nano config.php


  'memcache.local' => '\OC\Memcache\APCu',
'filelocking.enabled' => 'true',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => [
     'host'     => '/var/run/redis/redis.sock',
     'port'     => 0,
     'dbindex'  => 0,
     'password' => '',
     'timeout'  => 1.5,
],

);



change to add  comment to DISABLE "REDIS"

/*  .... foo .... */



  'memcache.local' => '\OC\Memcache\APCu',
/*


'filelocking.enabled' => 'true',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => [
     'host'     => '/var/run/redis/redis.sock',
     'port'     => 0,
     'dbindex'  => 0,
     'password' => '',
     'timeout'  => 1.5,
],


*/

);




thanks to "tex"  at     #nextcloud

 

 

miércoles, 2 de abril de 2025

instalar YUZU (Nintendo Switch) en DEBIAN



apt install yuzu


abrir yuzu

(muestra error ue le faltan cosas ) 

 

descargar juegos : 

  • NSP = juego digital <recomendado>
  • XCI = jego de cartucho    
  • NSZ = NO SOPORTADO **

descarguemos uno lijero ( pocos graficos y poco peso , para que la mas lenta de las compus , lo pueda abrir:

https://nswpedia.com/nintendo-switch-roms/arcade/sprout-valley  pesa 123 MB


  • https://switchrom.net  
  • https://nswpedia.com


doble click en el centro para indicar la ruta del folder de los juegos.

menu >> FILE >>  open yuzu folder



descargaremos las KEY 

https://theprodkeys.com/v12/

descargamos : 

All Prod Keys (V19.0.1)

Firmware (V19.0.1)

los introduciomos en  /home/alex/.local/share/yuzu

     

theprodkeys.com-v19.0.1.zip descomprimir  en  ---->  /home/alex/.local/share/yuzu/keys

(apartir de estos momentos , se podra visualizar la miniatura del juego en el centro del YUZU)

 

Firmware.19.0.1.zip descomprimir  en  ---> /home/alex/.local/share/yuzu/nand\system\Contents\registered

 

al abrir juego:
loading eterno....   : mala configuracion del emulador  : graficos , Cpu ,GPU , etc etc....

abre el juego : te motrara el rendimiento en FPS abajo  en el vale de estado. 

todo el mundo sabe que lo basico son 30 FPS , los juegos rapidos (peleas , carros, etc.) ocupan 60 FPS .

sin embargo mi PC apesar de tener i5 y 16 RAM apenas abre los juegos a 5 FPS ,
seguramente , la culpa la tiene la GPU :  GF108GLM [NVS 5200M] , es vieja ! 


ustedes pueden comparar su graficas aqui :
 https://www.videocardbenchmark.net/compare/3757vs2158/GeForce-GT-1030-vs-NVS-5200M 

requisito minimo parar yuzu : GeForce-GT-1030

mi grafica :   NVS-5200M 


me despido dejando una captura de pantalla!
HAPPY HACK ! 




---






 

 

fuente:

 

https://theprodkeys.com/yuzu-emulator-guide/

https://nswpedia.com/


**  https://gbatemp.net/threads/nszip-nsp-compressor-decompressor-to-reduce-storage.530313/

https://github.com/nicoboss/nsZip



martes, 26 de noviembre de 2024

set-date.sh

 #!/bin/bash  
echo "favor de meter la hora en el siguiente formato."
echo "2007-05-27 17:27"

#by AlexLikeRock
echo " "

#Take the input
read  


echo trabajando...
echo "$REPLY"
echo " "

hwclock --set --date="date +$REPLY"


# hwclock --set --date="date '+%D %H:%M:%S'"

Brillo-editar.sh

#!/bin/bash
#PLEASE RUN AS "ROOT" 

#se requiere correr como "root"


#editor de brillo por terminal
# Friday, October 04 2024
# 17:34
#by AlexLikeRock

#instructions
#search "brightness" inside of  /sys/class/backlight/
#examples:
#  /sys/class/backlight/acpi_video0/brightness
#  /sys/class/backlight/nv_backlight/brightness
#  /sys/class/backlight/XXXXXXXX/brightness

#2 options :
#1).- run this script as ROOT
#2).-  run this script as normal user, but you need change permissions  of the file  brightness:
#   # chmod 777 /sys/class/backlight/XXXXXXXX/brightness

#other different way :
# xrandr --output LVDS-1 --brightness 0  ## screen OFF ##
# xrandr --output LVDS-1 --brightness 0.1 # minimal #
# xrandr --output LVDS-1 --brightness 0.2
# xrandr --output LVDS-1 --brightness 0.5
# xrandr --output LVDS-1 --brightness 0.7
# xrandr --output LVDS-1 --brightness 1    #max brightness#
# xrandr --output LVDS-1 --brightness 2    # bad option #




echo "poner numero del 1 al 100"
read -r  option  

echo $option  >  /sys/class/backlight/nv_backlight/brightness
echo "se puso el brillo al "  $option  "%"
echo "listo"
exit 0

transmission.sh

#!/bin/bash

#ver : Sat 17 Oct 2015 07:03:55 PM PDT
#este es un puto script parra  transmission
#requisito opcional :   espeak  mbrola-mx1  mbrola-mx2

echo " sonido de transmission  "
beep
# mplayer /home/use/some-path/A1-Vibe.wav 

#/blabla/aplayer  /ruta/sonido.wav


espeak -s 130 -v mb-mx1 " Descarga, Finalizada " 

exit 0

miércoles, 20 de noviembre de 2024

Control PS3 en Debian

 Control PS3  en Debian

 

 

requisitos  :

# apt-get install bluetooth bluez bluez-tools rfkill rfcomm hardinfo
 
requisitos extraudinarios:
# apt install bluez-firmware firmware-atheros 
# apt install bluez-firmware firmware-realtek 
apt install etc.....
 

 

Preparativos:

  • ubicar nombre del modulo y compañia 

hardinfo ---> Dell Computer Corp. BCM20702A0 Bluetooth Module
$ lsusb   ----->   Bus 003 Device 003: ID 413c:8197 Dell Computer Corp. BCM20702A0 Bluetooth Module

  • verificar si esta corriendo

$  service bluetooth status
bluetooth is running. 

encenderlo: 

# service bluetooth start



 

 a) por USB 

 


b) por bluetooth 



 service bluetooth status
 
 
 
 
NOTAS PERSONALES:
 modprobe -c | grep bluetooth
 
 
FUENTES: 
https://www.dagorret.com.ar/como-configurar-el-bluetooth-en-linux-con-bluez-y-hcitool/
 https://wiki.archlinux.org/title/Kernel_module_(Espa%C3%B1ol)#Manejo_manual_de_m%C3%B3dulos
 https://wiki.debian.org/BluetoothUser#Preparation
 

http://iwilcox.me.uk/2012/sixaxis-ubuntu
https://web.archive.org/web/20150908135328/iwilcox.me.uk/2012/sixaxis-ubuntu

https://web.archive.org/web/20151001010852/https://iwilcox.me.uk/2012/bluez_4.98-2ubuntu7-sixaxis.1_amd64.deb



https://web.archive.org/web/20150920035102/http://www.pabr.org/sixlinux/sixpair.c

cp /usr/bin/ld /tmp/ld 

$  lsusb -v | grep 'Bus\|bEndpointAddress\|wMaxPacketSize\|idVendor\|idProduct' 

Bus 002 Device 003: ID 054c:0268 Sony Corp. Batoh Device / PlayStation 3 Controller
idVendor 0x054c Sony Corp.
idProduct 0x0268 Batoh Device / PlayStation 3 Controller
(Bus Powered)
bEndpointAddress 0x02 EP 2 OUT
wMaxPacketSize 0x0040 1x 64 bytes
bEndpointAddress 0x81 EP 1 IN
wMaxPacketSize 0x0040 1x 64 bytes
(Bus Powered)
 
 https://github.com/winterheart/broadcom-bt-firmware/tree/master/brcm
 
 
 


viernes, 4 de octubre de 2024

editor de brillo de la pantalla por terminal - script

#!/bin/bash

#editor de brillo por terminal
# Friday, October 04 2024
# 17:34
#by AlexLikeRock

#instructions
#search "brightness" inside of  /sys/class/backlight/
#examples:
#  /sys/class/backlight/acpi_video0/brightness
#  /sys/class/backlight/nv_backlight/brightness
#  /sys/class/backlight/XXXXXXXX/brightness

#2 options :
#1).- run this script as ROOT
#2).-  run this script as normal user, but you need change permissions  of the file  brightness: 

#1).- Ejecuta este script como ROOT
#2).- Ejecuta este script como usuario normal, pero necesitas cambiar los permisos del brillo del archivo:


#   # chmod 777 /sys/class/backlight/XXXXXXXX/brightness

#other different way :
# xrandr --output LVDS-1 --brightness 0  ## screen OFF ##
# xrandr --output LVDS-1 --brightness 0.1 # minimal #
# xrandr --output LVDS-1 --brightness 0.2
# xrandr --output LVDS-1 --brightness 0.5
# xrandr --output LVDS-1 --brightness 0.7
# xrandr --output LVDS-1 --brightness 1    #max brightness#
# xrandr --output LVDS-1 --brightness 2    # bad option #



echo "poner numero del 1 al 100"
read -r  option  

echo $option  >  /sys/class/backlight/nv_backlight/brightness
echo "se puso el brillo al "  $option  "%"
echo "listo"
exit 0

Donarme :->

Donar a AlexLikeRock
muchas gracias por tu ayuda :->

NextCloud fix acces problems whit new install

      errors:     ,"message":"No such file or directory","userAgent"   at webpage:  "Internal Server Erro...