Passion : logiciel
mai 4th, 2011

Lien intéressant! 25 ssh commands ticks

http://blog.urfix.com/25-ssh-commands-tricks/

mai 3rd, 2011

Faire un graph avec la sortie de bonnie

Cool!

http://www.technologyquestions.com/technology/linux/501403-shell-script-graphing-bonnie-output.html

http://pastebin.com/fAzN0Ahc

 

avril 19th, 2011

Booter DOS sur clé USB!

Pour ceux que ça intéresse de booter une clé USB en DOS…

Windows:
1.Décompresser le fichier USBFREEDOS.zip
2.Ouvrez le dossier en ligne de commande
3.Lancer la commande suivante:
#Attention assurez vous de n'avoir qu'un seul disque USB de connecté à votre ordi, c'est à dire la clé USB cible…
makebootfat -o usb -E 255 -1 fat12.bss -2 fat16.bss -3 fat32lba.bss -m mbr.bin root

Linux:
1. Télécharger, compiler et installer makebootfat

wget -O makebootfat-1.4.tar.gz http://downloads.sourceforge.net/project/advancemame/advanceboot/1.4/makebootfat-1.4.tar.gz?r=http%3A%2F%2Fadvancemame.sourceforge.net%2Fboot-download.html&ts=1303229744&use_mirror=voxel
tar -xvzf makebootfat-1.4.tar.gz
cd makebootfat-1.4
./configure
./make
sudo make install

2.Décompresser le fichier USBFREEDOS.zip
3.Ouvrez le dossier en ligne de commande
4.Lancer la commande suivante:
#Attention /dev/sdXXX doit être remplacé par votre device de clé USB non monté…
sudo makebootfat -o /dev/sdXXX -E 255 -1 fat12.bss -2 fat16.bss -3 fat32lba.bss -m mbr.bin root

Basé sur:
Ben’s Bits
:
http://bensbits.com/blog/2007/08/21/booting_dos_from_a_usb_flash_drive
Freedos:
http://www.freedos.org/freedos/files/
syslinux:
http://syslinux.zytor.com/wiki/index.php/The_Syslinux_Project
makebootfat:
http://advancemame.sourceforge.net/boot-download.html

avril 18th, 2011

Windows 7 gobe 30gb d’espace!

Bon je me suis installé windows 7 dans une VM pour faire mes tests de compatibilité. Je me suis dit qu’une partition de 30Gb pour windows et les logiciels, ça devrait être suffisant! ERREUR!

Windows prends maintenant 20Gb! J’ai essayé d’installer le SP1 de windows 7 et j’ai obtenu l’erreur 800f0828: Vous n’avez pas assez d’espace libre: réservez 11Gb d’espace pour les mises à jour!!!!
http://windows.microsoft.com/en-CA/windows-vista/Windows-Update-error-800f0828

Donc 20Gb + 11Gb = je suis baisé avec mon 30Gb de disque. J’ai essayé de faire du ménage mais tous les dossiers sous windows sont « importants » et nécessaire au bon fonctionnement de la bête!

Certains diront que l’espace disque ne coûte plus rien aujourd’hui. Moi je dis que l’eau ça coûte rien mais c’est pas une raison pour la gaspiller! Pis ça coûte rien si tu utilises la vieille techno. S’il te prend l’envie d’avoir un disque Solid State, ça va te coûter cher en OS!

mars 24th, 2011

How to capture sound with recordmydesktop

sudo apt-get install pavucontrol
sudo apt-get install recordmydesktop gtk-recordmydesktop
advanced/audio/device = pulse

To add the loopback for microphone:
pactl load-module module-loopback

From:
http://ubuntuforums.org/showthread.php?p=9265486
and

mars 22nd, 2011

Compare 2 folders with python and linux

#!/bin/python

import subprocess as sp
import os

def call(arg):
  proc = sp.Popen([arg],shell=True, stdout=sp.PIPE)
  ret = proc.stdout.readlines()
  return ret

dir1 = "recup_dir.1"
dir2 = "recup_dir.2"

rc1 = call("ls "+dir1)
rc2 = call("ls "+dir2)

existList = list()
dontexistList = list()

print dir1 + " against " + dir2
for file in rc1:
  path = "./"+dir2+"/"+file.strip()
  if os.path.isfile(path):
    existList.append(file.strip())
  else:
    dontexistList.append(file.strip())

for exist in existList:
  sumdir1 = call("md5sum ./"+dir1+"/"+exist+"| cut -d\" \" -f1")
  sumdir2 = call("md5sum ./"+dir2+"/"+exist+"| cut -d\" \" -f1")
  if sumdir1 != sumdir2:
    print "different", exist, sumdir1[0].strip(), sumdir2[0].strip()

for dontexist in dontexistList:
  print "dontexist in ./"+dir2+"/"+dontexist

print dir2 + " against " + dir1
for file in rc2:
  path = "./"+dir1+"/"+file.strip()
  if os.path.isfile(path):
    existList.append(file.strip())
  else:
    dontexistList.append(file.strip())

for exist in existList:
  sumdir1 = call("md5sum ./"+dir1+"/"+exist+"| cut -d\" \" -f1")
  sumdir2 = call("md5sum ./"+dir2+"/"+exist+"| cut -d\" \" -f1")
  if sumdir1 != sumdir2:
    print "different", exist, sumdir1[0].strip(), sumdir2[0].strip()

for dontexist in dontexistList:
  print "dontexist in ./"+dir1+"/"+dontexist
octobre 5th, 2010

Visite de l’Université Laval

juillet 27th, 2010

How to restart the same applications when closed for kiosk PC


import thread, subprocess, time,os

def process_waiter(name,value):
while True:
p = subprocess.Popen(name)
p.wait()
subprocess.Popen('C:\Program Files\Common Files\Microsoft Shared\Ink\TabTip.exe')
#thread.start_new_thread(process_waiter, ('C:\Program Files\Common Files\Microsoft Shared\Ink\TabTip.exe',""))
thread.start_new_thread(process_waiter, ('C:\Program Files\LSaDrv\LSDRVA.EXE',""))
thread.start_new_thread(process_waiter, ('C:/ProgramData/Mozilla Firefox/firefox.exe',""))

while True:
time.sleep(1)

juillet 19th, 2010

Virtio drivers for windows 7 signed and OK!

http://alt.fedoraproject.org/pub/alt/virtio-win/13/images/bin/

juillet 9th, 2010

Se connecter à Pidgin derrière un firewall….

Identique à ce poste mais sans l’authentification en clair, évidemment!

http://www.nuneworld.net/?p=1261

Required SSL… oui
Force old SSL… oui
Allow plaintext auth… non

connect port: 443
connect server: talk.google.com
file transfert proxies: proxy.eu.jabber.org

Et voilà!

This work is licensed under GPL - 2009 | Powered by Wordpress using the theme aav1