Table des matières
- 2026:
- 2025:
4 billet(s) pour juillet 2026
| Procédure simple augmentation de la SWAP | 2026/07/17 15:49 | Jean-Baptiste |
| Exemple git clone avec Ansible | 2026/07/16 14:47 | Jean-Baptiste |
| Windows exe - Comparaison de fichiers binaires | 2026/07/16 10:25 | Jean-Baptiste |
| Pb git | 2026/07/01 17:36 | Jean-Baptiste |
Notes Xorg
Voir aussi https://fr.wikipedia.org/wiki/Wayland
PID de gnome-session /tmp/.X0-lock
Générer /root/xorg.conf.new
#Xorg :1 -configure Xorg -configure
Pour désactiver une carte GPU
lspci echo 1 > /sys/bus/pci/devices/[card device id]/remove
Voir https://github.com/dglt1/optimus-switch/issues/17
X -config /root/xorg.conf.new -retro sudo Xorg -verbose -config /root/Xorg.conf
nvidia-xconfig --mode nvidia-auto-select
Pb
X: user not authorized to run the X server, aborting.
Solution
/etc/X11/Xwrapper.config
#allowed_users=console allowed_users=anybody
Valeurs possibles pour allowed_users :
- root
- anybody
- console
# dpkg-reconfigure x11-common
startx
Trouver le VendorName
Xorg.conf
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection
lspci -vmm
systemd-logind returned paused fd for drm node
Xorg fail at boot But start if : “ctrl+alt+f3” and “ctrl+alt+f1”
Solution 1 - nolapic
# lspci 00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:3e98]
/etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet nolapic"
update-grub
Mais le nolapic crée des problèmes sur une des cartes réseaux
Solution 2 - décaler d'une second le démarrage de GDM
/etc/systemd/system/gdm3.service.d/gdm.conf
[Service] ExecStartPre=/usr/bin/bash -c 'sleep 1'
Notes Wine
Voir aussi :
- winetricks
- PlayOnLinux
- ./play.it
Voir :
Voir également la version commerciale : https://www.codeweavers.com/products/crossover-linux Ce n'est pas libre, mais ca aide Wine qui lui est libre.
Debug
#export WINEDEBUG=+relay export WINEDEBUG=all
Notes
dpkg --add-architecture i386 apt-get update apt-get install wine32:i386
~/.PlayOnLinux/
apt-get install mono-runtime wine playonlinux winetricks apt-get install mono-complete apt-get install cabextract
Notes
mkdir -p ~/myapp/prefix export WINEPREFIX=$HOME/myapp/prefix export WINEARCH=win32 export WINEPATH=$HOME/myapp wineboot --init cd $HOME/Downloads wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks chmod +x winetricks sh winetricks corefonts vcrun6 winecfg
Old
WINEARCH=win32 WINEPREFIX=/$HOME/.win32 winecfg # ln -s /usr/bin/wine32 /usr/bin/wine export WINEPREFIX=$HOME/.win32 export WINEARCH=win32 # export WINEDEBUG=warn+all # export WINEDEBUG=fixme-all ## Perf # export WINEDEBUG=-all
Voir https://doc.ubuntu-fr.org/wine_profils
winetricks --gui env WINEARCH=win32 WINEPREFIX=/$HOME/.win32 winetricks list-installed
Installer un paquet MSI
wine msiexec /i wine-mono-4.7.3.msi
Install de Wine Mono
export WINEPREFIX=$HOME/.win32 export WINEARCH=win32 wine msiexec /i wine-mono-4.7.3.msi
Pb
Exemple de cas tordu
http://www.silaexpert07.fr/silae/_deploy/http/www.silaexpert07.fr/80/SilaeClient_1_1138_0_4/SilaeClient.exe.manifest http://www.silaexpert07.fr/silae/_deploy/http/www.silaexpert07.fr/80/SilaeClient_1_1138_0_4/SilaeClient.exe
$ file SilaeClient.exe SilaeClient.exe: PE32 executable (GUI) Intel 80386 Mono/.Net assembly, for MS Windows
Donc 32 bits
$ strings SilaeClient.exe |grep -i \.net |head Paint.NET v3.5.100 Paint.NET v3.5.100
Il faut le .NET v3.5
Avec Wine Mono
$ wine SilaeClient.exe Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'DevComponents.DotNetBar, Version=8.0.0.4, Culture=neutral, PublicKeyToken=null' or one of its dependencies. File name: 'DevComponents.DotNetBar, Version=8.0.0.4, Culture=neutral, PublicKeyToken=null' [ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'DevComponents.DotNetBar, Version=8.0.0.4, Culture=neutral, PublicKeyToken=null' or one of its dependencies. File name: 'DevComponents.DotNetBar, Version=8.0.0.4, Culture=neutral, PublicKeyToken=null' $ mono SilaeClient.exe WARNING: The runtime version supported by this application is unavailable. Using default runtime: v4.0.30319 Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly or one of its dependencies. File name: 'DevComponents.DotNetBar, Version=8.0.0.4, Culture=neutral, PublicKeyToken=null'
Il manquait les dépendances suivantes :
- DevComponents.DotNetBar.dll
- ExcelLibrary.dll
http://www.silaexpert07.fr/silae/_deploy/http/www.silaexpert07.fr/80/SilaeClient_1_1138_0_4/DevComponents.DotNetBar.dll http://www.silaexpert07.fr/silae/_deploy/http/www.silaexpert07.fr/80/SilaeClient_1_1138_0_4/ExcelLibrary.dll
Autres
Voir depends.exe http://www.dependencywalker.com/
Mono
mono --runtime=v4.0 application.exe
https://bugs.winehq.org/show_bug.cgi?id=30410
echo 0 |sudo tee /proc/sys/kernel/yama/ptrace_scope
DLL
#!/bin/sh # # Lanceur NetMeeting /usr/bin/wine Rundll32.exe msconf.dll,OpenConfLink $1
Notes windows
Charset lang
Source https://superuser.com/questions/482018/how-to-set-default-charset-in-windows-cmd
Get default charset in Windows cmd
chcp
How to set default charset in Windows cmd ?
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Command Processor] "AutoRun"="chcp 1251"
Cmd - Get the System-locale setting for the current computer
systeminfo | findstr /B /C:"System Locale"
PowerShell - Get the System-locale setting for the current computer
Get-WinSystemLocale
Recourci clavier changement layout keyboard
[shift] + [ctrl]
ou selon la version :
[ctrl] + [alt]
wmic
Voir : dell_service_tag
OS Architecture 32 64 bits
wmic os get osarchitecture
wmic computersystem get model
If a folder called C:\Program Files (x86)\ exists it also confirms it’s 64Bit
Pb réseau entreprise
ipconfig /flushdns timeout 30 ipconfig /release timeout 30 ipconfig /renew timeout 30 gpupdate /force
Notes batch .bat cmd.exe
Le code de retour est renvoyé par la variable ERRORLEVEL (équivalent à RC)
Désactiver Menu Démarrer Arrêter HideShutDown
Eviter d'arrêter un hôte distant
HideShutDown
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\default\Start\HideShutDown] "value"=dword:00000001
Registre windows GNU+Linux
Voir : virt-win-reg
Shutdown
shutdown.exe /f /s /t 0
restart-computer -force
Client XMPP Poezio
Poezio de prend pas (à ce jour) BOSH (XMPP over HTTPS), à la place il convient d'utiliser SSH et Corkscrew par exemple. Tunnel SSH over HTTPS Merci à l’équipe https://jappix.com/?r=poezio@muc.poez.io
Installation
git clone git://git.poez.io/poezio cd poezio/ python3 setup.py install --user
Install OTR http://doc.poez.io/0.9/plugins/otr.html
git clone https://github.com/afflux/pure-python-otr.git cd pure-python-otr python3 setup.py install --user
Lancement automatique du plugin
~/.config/poezio/poezio.cfg
# Colon-separated list of plugins to load on startup plugins_autoload = otr:tell
Lancement
~/.local/bin/poezio
~/.config/poezio/poezio.cfg
jid = jean@acme.fr # Adresse du serveur. Normalement pas nécessaire, car résolut par le DNS custom_host = 192.168.2.100
Fichier d'erreur : ~/.local/share/poezio/logs/errors.log
