Table des matières
- 2026:
- 2025:
4 billet(s) pour septembre 2026
| Notes HTTP Strict Transport Security - HSTS | 2026/09/18 11:04 | Jean-Baptiste |
| Notes GNU Linux GPU carte graphiques | 2026/09/08 15:49 | Jean-Baptiste |
| Notes GNU Linux graphique | 2026/09/08 15:42 | Jean-Baptiste |
| Notes urlencoding - passer des mots de passe en HTTPS | 2026/09/03 17:58 | Jean-Baptiste |
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
Notes Windows Manager
wmctrl
Lancer une application dans un workspace spécifique
apt-get install wmctrl
Off-Screen Window Restore
Source : https://github.com/mezga0153/offscreen-window-restore
A simple shell script that moves off-screen windows back.
This script was made to fix a bug in unity where if you have multiple monitors, when they wake up after being off some windows move off-screen.
sudo apt-get install wmctrl x11-xserver-utils
offscreen-window-restore.sh
#!/bin/bash # # This script moves back windows that have been moved off screen # # Author: Tine Mezgec tine.mezgec@gmail.com # width=`xrandr | grep current | awk {'print $8'}` wmctrl -l -G | awk -v w=$width '{ if ($8 != "unity-dash" && $8 != "Hud") { if ($3 >= w || $3 < 0) { system("wmctrl -i -r " $1 " -e 0," sqrt($3*$3) % w ",-1,-1,-1"); } } }' height=`xrandr | grep current | awk {'print $10'} | cut -d ',' -f1` wmctrl -l -G | awk -v h=$height '{ if ($8 != "unity-dash" && $8 != "Hud") { if ($4 >= h || $4 < 0) { system("wmctrl -i -r " $1 " -e 0,-1," sqrt($4*$4) % h ",-1,-1"); } } }' # restart unity to avoid problems with restored windows (unclickable areas) unity
