Change product key on Windows

Windows 7 Windows 7 has a specific command to change the serial number without having to format or reinstall Windows 7. It’s more practical if you were still in demo version but you just bought your final version, or you already have your version, but your boss just gave you a license for work. Here […]

Run a script when the VPN connection is connected

When pppd establish the connection, the process will call /etc/ppp/ip-up with the following arguments: ip-up interface-name tty-device speed local-IP-address remote-IP-address ipparam So you can for example add route: /etc/ppp/if-up #!/bin/bash IFNAME= »${1} » /sbin/route add 192.168.1.0/24 -interface ${IFNAME}

Change resolution with Xrandr

XRandR est un outil en ligne de commande qui utilise l’extension RandR de Xorg afin de gérer les paramètres d’affichage de vos écrans comme la taille, le redimensionnement, la rotation ou le multi-écran. Le point fort de l’extension RandR est que cette dernière est directement implémentée dans Xorg et ne nécessite pas le redémarrage de […]

Find informations for create udev rules

=== Obtenir le path du devices === root@test# udevadm info -q path -n /dev/bus/usb/001/037 Cela renvoie: /devices/ocp.3/47400000.usb/musb-hdrc.1.auto/usb1/1-1/1-1.1 === Obtenir les valeurs Udev === root@test# udevadm info -a -p /devices/ocp.3/47400000.usb/musb-hdrc.1.auto/usb1/1-1/1-1.1 Cela renvoie: Udevadm info starts with the device specified by the devpath and then walks up the chain of parent devices. It prints for every device […]