Passion : logiciel
April 19th, 2011

To boot DOS on USB key or flash drive…

Windows:

1.Extract USBFREEDOS.zip
2.Open a command line under usbfreedos folder
3.Run the following command:
#Make sure you have only one USB drive connected (the target usb key)
makebootfat -o usb -E 255 -1 fat12.bss -2 fat16.bss -3 fat32lba.bss -m mbr.bin root

Linux:
1. Download, compile and install 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.Extract USBFREEDOS.zip
3.Open a command line under the usbfreedos folder
4.Run the following command:
#Attention /dev/sdXXX must be changed to point on your usb flash device...
sudo makebootfat -o /dev/sdXXX -E 255 -1 fat12.bss -2 fat16.bss -3 fat32lba.bss -m mbr.bin root

Based on:
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

July 17th, 2010

Install virtio drivers in windows 7

I tried a lot a version of virtio drivers but all doc I found only talk about old drivers that are not signed…. I was a real nightmare :)

Hopefully, Red Hat provides a signed version of the drivers that works perfectly with windows 7! YÉ! :D

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

July 9th, 2010

Connect to pidgin behind a firewall..

Same thing as here but WITHOUT plain text authentication…

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

Required SSL… yes
Force old SSL… yes
Allow plaintext auth… no

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

Et voilà!

June 24th, 2010

LVM stripping over 2 RAID5 stack?

Am I crazy, again?

I want to have performance but also need redundancy. Is it a good strategy???

Given this setup:
- 3 disk in RAID5 on md0 (2Tera total)
- 3 disk in RAID5 on md1 (2Tera total)
–> one LVM stripping over md0 and md1 to get 4Tera

Without RAID, if one drive crashes, all data from the LVM group are lost.

But given the previous setup, if a disk crashes, will the LVM crashes as well? I don’t think so but I need your thought on it.

I think that the LVM will continue to work with one RAID in degraded mode. I just need to change the faulty disk and then the RAID is rebuilt without any down time… I need to be sure that this is how it will work!

May 29th, 2010

Python to change your MAC address and get a new IP from your ISP

A friend of mine ask me how to do to change his IP in order to surf more anonymously.

The idea is to change the MAC address or your router. This forces the server to generate a new IP for your modem.

Here a script that just do that for a WRT54G router: http://pastebin.com/Vh6uGRU9

There is still an issue with that method… the resultant IP after that script is invalid (0.0.0.0). You will need to do a hard reset of your modem in order to get the valid IP…

The Hard reset of the modem is really annoying. This is the next issue to solve to get fully automatic IP regeneration script.

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