Catégorie : Linux

  • Couleurs et rayures dans l’affichage de Dolphin (ET KDE en général)

    Pas nécessairement une bonne pratique mais modifier ça a fait la job.

    On peut définir l’apparence en éditant le ~/.config/kdeglobals fichier.

    Changer la valeur de BackgroundNormal , fai tla job souvent.


    gedit .config/kdeg*

    [Colors:View]
    BackgroundAlternate=35,38,41
    BackgroundNormal=35,38,41

    Synthwave Color Palettes

  • Bon Blog et Ressource pour Rsync

    je dois maîtriser Rsync pour sauvegarder des trucs.

    https://vkc.sh/everyday-rsync/

    Le blog en général a une bonne vibe. À suivre.

  • Projet: WayDroid

    Je veux pouvoir essayer des appli que je truste un peu moins que d’habitude, sans les installer sur mes appareils habituels.
    Pour cet usage Waydroid sera théoriquement parfait.

    Challenge:

    * Rouler et acheter sur Temu
    (je sais, je sais , je veux voir à quel point c’est terrible.)
    Note: utiliser courriel jetable et carte prépayée

    * Installer l’appli pour Utiliser une mini imprimante thermique avec le logiciel douteux. Je sais pas si c’est possible via Bluetooth.

    Bonnes adresses;

    * https://www.zdnet.com/article/how-to-run-android-apps-on-linux/

    * https://bbs.archlinux.org/viewtopic.php?id=303937 + https://www.reddit.com/r/waydroid/comments/106mx3w/is_it_possible_to_passthrough_a_usb_device_to/

    * https://www.fosslicious.com/2025/01/how-to-connect-usb-gamepad-to-waydroid.html

    * https://github.com/cagla-su/Waydroid-Guide/

    * https://docs.waydro.id/usage/install-and-run-android-applications
    * https://docs.waydro.id/usage/waydroid-prop-options

    * https://www.maketecheasier.com/run-android-apps-linux-waydroid/

  • Digital Coup !

    TED Talk partagé en conformité avec la Licence Creative Commons ( CC BY–NC–ND 4.0 International), voir https://www.ted.com/about/our-organization/our-policies-terms/ted-talks-usage-policy

  • Donner une deuxième vie à une vieille tv box ARM

    Donner une deuxième vie à une vieille tv box ARM

    Faute de manette cette vieille tv box était 5$ , plutôt bien comme aubaine.

    Maintenant, je cherchait à en faire quelque chose d’utile.

    Les distributions Linux les plus couramment utilisées pour des boîtiers IPTV incluent OpenELEC, LibreELEC et CoreELEC.

    Pour se familiariser avec la manière de négocier avec ces bêtes  là:

    Instructions, à compléter, pour booter sur armbian: ,


    https://forum.armbian.com/topic/33676-installation-instructions-for-tv-boxes-with-amlogic-cpus

    Installer Armbian community 25 , Noble,  6.6.63 , desktop Gnome est un succès.
    Pas de wifi pour l’instant mais je n’ai testé qu’un seul .dtb , c’est prometteur.

    Edit, jai aussi testé la version Debian et c’est correct mais avec 1gb de ram, faut pas espérer naviguer sur le net, j’ai essayé différent Environnement, même kde et c’est pas
    concluant.

    Je vais essayer des LibreELEC-Generic_S905.arm mais ça foire avec balena…

     

    Linux sera moins facile à l’usage mais plus efficace, as usual et ça me plait pas mal plus d’installer Linux qu’un machin des gafam.

    J’ai tenté de suivre les instructions pour rouler un Android custom  » Universal ROM for S905X » ,  plus à jour, je crois qu’Aidan’s ROM ,
    mais il semble que l’image que je voulais utiliser n’était pas la bonne , ou que le bootloader est encrypté,whatever,  comme le risque de Brick l’appareil était trop grand, j’ai pas insisté.

    https://www.youtube.com/watch?v=Lc85ESo-PG0

    Bon, ça reste en fin de vie ce bidule, mais CoreElec semble bien supporter l’engin (s905x) : https://wiki.coreelec.org/coreelec:ce_dev_cycle#development_status
    direction : https://coreelec.org/#install , https://coreelec.org/#download => CoreELEC-Amlogic-ng.arm-21.1.1-Omega-Generic.img.gz

    Tout comme libreelec https://libreelec.tv/downloads/amlogic/

    Enfin, j’hésite à savoir avec quel projet je vais enchainer.

    • OpenPHT Plex Media Server INSTALL GUIDE – Amlogic S805, S905, S905W, S905X and S912 Android TV Boxes
    • Lakka   Retro Game System avec RetroArch Game System (peu probable)
    • Android TV Experience – Amlogic S905X (peu probable)
    • CoreELEC LibreELEC SD Card Install Guide KODI Matrix 19 https://www.youtube.com/watch?v=s1p1AxzkLM8
      peu probable mais comme il y a une video chouette pour donner une gueule a peu acceptable là,
      https://www.youtube.com/watch?v=PlzEruRBsZs disons peut-être..
    • Installer sur l’emmc, c’est risqué mais plus propre… https://www.youtube.com/watch?v=R22G1BkNptE mais les instructions pour le SSH suggère que… Pi-hole
    • Pihole serait plutôt facile à mettre en place une fois l’adresse ip fixée au Lan : https://www.mikekasberg.com/blog/2021/05/11/how-to-install-pi-hole-on-the-orange-pi-zero.html Intéressant.
    • batocera  donne une bonne idée des limites de consoles émulées: https://wiki.batocera.org/choose_a_single_board_computer#various_android_tv_boxes
      Peut-être mais l’émulation Retro je peux faire ça sur n’importe quelle machine quand l’envie m’en prend, alors peu probable
    • Un dérivé/Fork de CoreElec custom pour TVIP ? https://alexelec.tv/   https://github.com/AlexELEC/CoreELEC-21/releases/tag/21.0-Omega-ae-01
      Alex fournit TVLINK – 4.2.2 ,  je suis pas certain s’il s’agit de client… ou de serveur d’IPTV. https://forum.alexelec.tv/index.php?topic=355.msg4287#msg4287
      https://wiki.alexelec.tv/sources-config/Caractéristiques matérielles de la bête à 5$:TVIP S-Box V.605Chipset: Amlogic S905X quad core 1,5 GHz

      Video Resolution: 3840×2160 (HDR)

      3D Graphics: OpenGL ES 2.0 (Mali-450 penta core)

      Memory: RAM 1 Gb, Flash 8 Gb

      Interfaces: HDMI, AV, Ethernet, 2xUSB, MicroSD Card, ext.IR, WiFi 802.11 (b/g/n/ac) 2,4/5 GHz, Bluetooth

      Support HEVC

      Liens du « fabriquant »:

    • https://wiki.tvip.tv/en/tvipstb_changelog/s6xx/linux-qt
    • https://wiki.tvip.tv/en/tvipapp
    • https://wiki.tvip.tv/en/how_to_update
    • http://wiki.tvip.ru/en/
    • http://tvip.tv/support
    • https://wiki.tvip.tv/en/tvipstb
    • https://wiki.tvip.tv/en/provisioning
    • https://wiki.tvip.tv/en/middleware/prov/tvip_provision.xml4K
      Video resolution 3840×2160 (HDR)
      Specifications
      Operating system Linux or Android 8.0 (Oreo)
      Supported Middleware TVIP TMS, IPTVPORTAL, Open JSON API, Stalker, Microimpuls, Smotreshka, HTML5/JS portals
      Remote provisioning TR-069 or TVIP XML
      Containers MPEG-TS, MPEG-PS, MP4, MKV, AVI, MOV, FLV, OGG
      Protocols UDP, RTP, HTTP, HLS, MPEG-DASH, RTSP, SMB, NFS, DLNA
      CAS/DRM TVIP, IPTVPORTAL, BISS, Widevine L3, optional: PlayReady, Verimatrix 3.x, Widevine L1
      Video codecs H.265(10 bit), VP9, H.264, MPEG4 ASP, Xvid, MPEG2, MJPEG 2160p 60fps
      Audio codecs MPEG/MP3/MPA, AAC, WMA, OGG, WAV, FLAC, APE
      Subtitles DVBSUB, VOBSUB, Teletext, SSA/ASS, SubRip, MOV_TEXT, WebVTT
      Images JPEG, PNG
      Time Shifted TVepg
      TV Schedulemanaging client devices
      Customer Device Managementmultiscreen
      One Interface for All Devices

      vod
      Video on Demand

      tv archive
      TV Archive

      |One interface on all STB and Smart-TV Device Support: TVIP, Dune, Mag, Eltex, Android TV, Samsung Smart TV, LG Smart TV.

      |The ability to handle a single instance Middleware several independent groups of consumers or IPTV/OTT operators (convenient for content aggregators and operators providing agent scheme).

      |Quick interface client devices (a native application on the STB without the use of WEB-portal for TVIP devices).

      MANETTE:

      https://www.ebay.ca/itm/394228931245?itmmeta=01JGD4T0J81H8EMSYHTBCQNEPF&hash=item5bc9e01aad:g:3b4AAOSw8uxjFXZk

       

       

       

       

       

  • Achat impulsif

    Edit :Je pense que j.’ai peut-être fait une connerie si je me fie à ceci: https://www.reddit.com/r/pcmasterrace/comments/m6evvp/gaming_on_a_tesla_m40_gtx_titan_x_performance_for/Espérons quepasser par lINUX ME SAUVE LE CUL.

    aUTRES VIDÉOS:

    Tesla M40 on a consumer motherboard (also gaming?)
    byu/Giova010 inpcmasterrace


    https://www.overclock.net/threads/gaming-on-a-tesla-m40-gtx-titan-x-performance-for-a-third-the-price.1777611/


     

     

     

    je vais avoir besoin de ça ici:

    Ok im in a hurry and i will use more detail when i have the time.

    Have iommu or vt-d enabled with above 4g decoding.

    Install manjaro linux proprietary driver option

    No need to install drivers mhwd will install everything out of the box in my case my nvidia settings will have a titan Black part and the tesla m40.

    No need to change compute mode in linux teslas not locked for compute Mode but instead are unlocked.

    Install the package nvidia prime reboot

    If you change the steam shortcut or any app you want to use on the tesla or just write this on a terminal steam will run any game in the tesla m4
    prime-run steam | grep “OpenGL renderer”

    If you want to run with you normal gpu just use steam or the normal comand.

    Games run fine and you dont need to run them on a Window they run fine on full screen.

    For the cooling i removed the shroud exposed the sink forcing some fins open with a knife and placed 2 8 size fans blowing on the sink. Can manage 50 c on load.

    Ill put more detail here when i get more time.

    Cheers

    5 Likes

    can it support vulkan and run dxvk app ?

    I tested doom vk thru steam proton experimental and did perfect. Ill test some more games today

    1 Like

    Works on garuda os as well

    1 Like

    Would you be able to test it for Ubuntu 20.04? Since im getting my hands on an NVIDIA A2 in a few weeks and curious to see if id be able to do something similar.

    Nvidia prime exists in any distro so most probably it will work.

    Ok after much tinkering i have managed to sort this.

    I got a crappy old amd gpu for 15 dollars (ddr3) lol.

    Used it on my second pci slot.

    Manjaro linux automaticly installed the amd and nvidia optimus driver.

    The gpu will automaticly use the crappy amd for low tasks and use the tesla m40 for gaming.

    I installed optimus switcher and selected nvidia as the default gpu. Linux only uses the m40 « ignoring the amd card.

    Unlike the Windows version you dont need to regedit hack to use the card for gaming in linux both modes are available out of the box.

    Limitations? None

  • Un bridge mène au routeur

    Un bridge mène au routeur

    Après avoir attendu beaucoup trop longtemps,
    j’ai finalement passé un Asus N66 désuet sous un Firmware Tomato pour en faire un Wireless Bridge.
    La dead-zone dans le bureau de l’aimée n’était simplement plus endurable
    (les diffusions de contenus vidéos et de téléconférence était tout le temps perturbées),
    et à force de tests, j’ai bien vu que l’aménagement empêchait une transmission claire et stable.

    P’tête aussi que les FAIs nous fournissent de l’équipement réseau de marde. Who knows?

    Anyway, le projet semble être une réussite : ça fait 24h qu’une tablette, placée en plein dans la dead-zone,
    roule du contenu vidéo non-stop et aucun glitch ne m’a été signalé. La sainte paix d’esprit. Croisons les efflux.

    Bref, j’ai suivi à peu près les instructions là:  shocknetwork.com/2020/05/26/rebroadcast-your-neighbors-wifi

    Sauf que depuis, je n’avais plus de routeur de spare pour déconner et patenter des trucs que je comprends à moitié
    être prêt en cas de besoin. Donc , détour par le bazaar et Bingo !

    J’y score un Linksys EA6XXXX de ~ 7 ans pour moins de 10$…
    les antennes sont déconcrissées et il semble geler pendant le boot.
    Joie.
    Je suivrai les instructions de https://www.linksysinfo.org/index.php?threads/guide-flash-linksys-ea6300v1-ea6400-ea6500v2-ea6700-ea6900v1-0-1-1-with-tomato.73877/
    et j’en ferai probablement un point d’accès pour un VPN.
    Donc, c’est pas un défi, c’est mieux : c’est un projet !

  • Orienté WordPress ? Outil à creuser : VVV

    Note: C’est peut-être exagéré / désuet comme méthode de travail, je ne sais pas.

    VVV ,  varyingvagrantvagrants.org
    oubedon
    https://github.com/Varying-Vagrant-Vagrants on peut rouler

    MediaWiki fonctionne aussi  dessus.

    https://varyingvagrantvagrants.org/docs/en-US/installation/ (peut-être pas sur une machine de prod…)

    Tutos :

    • https://www.wpkube.com/how-to-use-varying-vagrant-vagrants-vvv-for-wordpress-development/
    • (variable VVV!) https://wpmudev.com/blog/vvv-wordpress-development/
    • Vieux mais simule TOUT un projet (si j,aipas de VPS, je pourrais faire face a des incomptibilitées, ce,t pour ça que VVV est utile.
      https://code.tutsplus.com/wordpress-development-with-vvv–cms-26322t
    • https://varyingvagrantvagrants.org/docs/en-US/references/wp-cli/#using-wp-cli-from-the-virtual-machine
    • https://coolestguidesontheplanet.com/install-wordpress-dev-sites-vagrant-variable-vv/ (ça date de 7 ans )

    Autres tutos et chaine a surveiller (English)

      • Varying Vagrant Vagrants VVV for WordPress Development https://www.youtube.com/watch?v=w4yQ_4Btu_g
      • How To Reverse Engineer WordPress Themes & Plugins https://www.youtube.com/watch?v=o7O7jR9y9l4
  • Gestion de disque sous Linux ; gros love à growpart -N

    growpart -N -v /dev/sda 3 (OUI, il y a un espace avant le 3 !!)

    Growpart fait partie de cloud-utils ;
    Il étend une partition pour remplir l’espace disponible.

    Contexte: J’ai un drive de plus de plus de 8tb,
    j’espère que je vais bientôt pouvoir Backup ma VM win 11 sous ProxMox
    sans erreur de manque d’espace.

    NFO: creating vzdump archive ‘/var/lib/vz/dump/vzdump-qemu-101-2024_07_22-00_05_33.vma.zst’
    […]
    INFO: 38% (121.7 GiB of 320.0 GiB) in 20m 8s, read: 44.8 MiB/s, write: 44.4 MiB/s
    zstd: error 70 : Write error : cannot write block : No space left on device
    IERROR: vma_queue_write: write error – Broken pipe
    INFO: aborting backup job
    INFO: resuming VM again

    J’ai aussi utilisé les commandes suivantes.

    (parted) print
    Model: ATA HAHA0101 (scsi)
    Disk /dev/sda: 12.0TB
    Sector size (logical/physical): 512B/4096B
    Partition Table: gpt
    Disk Flags:

    Number Start End Size File system Name Flags
    1 17.4kB 1049kB 1031kB bios_grub
    2 1049kB 1075MB 1074MB fat32 boot, esp
    3 1075MB 12.0TB 12.0TB lvm

    root@pr:~# df -h
    Filesystem Size Used Avail Use% Mounted on
    udev 23G 0 23G 0% /dev
    tmpfs 4.7G 1.2M 4.7G 1% /run
    /dev/mapper/pve-root 94G 14G 76G 16% /
    tmpfs 24G 46M 23G 1% /dev/shm
    tmpfs 5.0M 0 5.0M 0% /run/lock
    efivarfs 256K 58K 194K 23% /sys/firmware/efi/efivars
    /dev/fuse 128M 20K 128M 1% /etc/pve
    tmpfs 4.7G 0 4.7G 0% /run/user/0

    root@pr:~# lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
    sda 8:0 0 10.9T 0 disk
    ├─sda1 8:1 0 1007K 0 part
    ├─sda2 8:2 0 1G 0 part
    └─sda3 8:3 0 10.9T 0 part
    ├─pve-swap 252:0 0 8G 0 lvm [SWAP]
    ├─pve-root 252:1 0 96G 0 lvm /
    ├─pve-data_tmeta 252:2 0 15.9G 0 lvm
    │ └─pve-data-tpool 252:4 0 5.3T 0 lvm
    │ ├─pve-data 252:5 0 5.3T 1 lvm
    │ ├─pve-vm–100–disk–0 252:6 0 4M 0 lvm
    │ ├─pve-vm–100–disk–1 252:7 0 128G 0 lvm
    │ │ ├─pve-vm–100–disk–1p1 252:15 0 200M 0 part
    │ │ └─pve-vm–100–disk–1p2 252:16 0 127.8G 0 part
    │ ├─pve-vm–101–disk–0 252:8 0 4M 0 lvm
    │ ├─pve-vm–101–disk–2 252:9 0 4M 0 lvm
    │ └─pve-vm–101–disk–1 252:10 0 320G 0 lvm
    │ ├─pve-vm–101–disk–1p1 252:11 0 100M 0 part
    │ ├─pve-vm–101–disk–1p2 252:12 0 16M 0 part
    │ ├─pve-vm–101–disk–1p3 252:13 0 319.1G 0 part
    │ └─pve-vm–101–disk–1p4 252:14 0 773M 0 part
    └─pve-data_tdata 252:3 0 5.3T 0 lvm
    └─pve-data-tpool 252:4 0 5.3T 0 lvm
    ├─pve-data 252:5 0 5.3T 1 lvm
    ├─pve-vm–100–disk–0 252:6 0 4M 0 lvm
    ├─pve-vm–100–disk–1 252:7 0 128G 0 lvm
    │ ├─pve-vm–100–disk–1p1 252:15 0 200M 0 part
    │ └─pve-vm–100–disk–1p2 252:16 0 127.8G 0 part
    ├─pve-vm–101–disk–0 252:8 0 4M 0 lvm
    ├─pve-vm–101–disk–2 252:9 0 4M 0 lvm
    └─pve-vm–101–disk–1 252:10 0 320G 0 lvm
    ├─pve-vm–101–disk–1p1 252:11 0 100M 0 part
    ├─pve-vm–101–disk–1p2 252:12 0 16M 0 part
    ├─pve-vm–101–disk–1p3 252:13 0 319.1G 0 part
    └─pve-vm–101–disk–1p4 252:14 0 773M 0 part
    nvme0n1 259:0 0 476.9G 0 disk
    ├─nvme0n1p1 259:5 0 232.7G 0 part
    ├─nvme0n1p2 259:6 0 97.7G 0 part
    ├─nvme0n1p3 259:7 0 2G 0 part
    └─nvme0n1p4 259:8 0 1K 0 part

  • J’ai oublié (négligé) d’encrypter (chiffrer) Luks , DropBear

    Le Wiki de Arch c’est quand même quelque chose.

    https://wiki.archlinux.org/title/Dm-crypt/Device_encryption#Encrypt_an_unencrypted_filesystem

    https://hamy.io/post/0009/how-to-install-luks-encrypted-ubuntu-18.04.x-server-and-enable-remote-unlocking/#fixing-dorpbear-initramfs

    Dropbear permet le ssh pour unlock un disque chiffré par Luks au BOOT , c’est intéressant.

    https://www.cyberciti.biz/security/how-to-unlock-luks-using-dropbear-ssh-keys-remotely-in-linux/
    La section « A note about config file locations: » fait un douloureux rappel que les paths peuvent changer …

    Mais Dropbear peut faire chier; l’utilisateur de https://github.com/ceremcem/unlock-luks-partition fait remarqué que ça chie là:
    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1075907 (solution inside)

    Je pense que la solution (donnée ci-dessous) est aussi un bon exemple de ce qui fait râler les détracteur de ControlD comme Vinit:

     » […]NO_START=1 in /etc/default/dropbear in order to avoid automatically | starting dropbear(8) is no longer honored.
    Use your service manager  instead, for instance run `systemctl disable –now dropbear`. | Alternatively, you can […]