juin

17

Posted by : admin | On : 17 juin 2010

Configuration Realized :

Carte mère : Gigabyte GA-785GMT-USB3 =80€

Compatible : CPU AM3  : AMD 785G + SB710 Chipset

RAM : 4Go DDR3  :KINGSTON DDR3 HyperX 2×2 Go PC3-12800 (1600MHz) = 108€
CPU :AMD Phenom II X4 965 Black Edition (Socket AM3) =169€
Disque Dur Hitachi 1 To = 70€

Carte Graphique : ATI HD RADEON 5450 1Gb DDR3  =50€

OS : UBUNTU 10.04 LTS

COOLER MASTER Elite 334 + Alimentation 460 W

^o^ Possible to realise Dual Screen :) 24″ + 19″ or more.

COOLER MASTER Elite 334 + Alimentation 460 W

TOTAL : 534€

I found around the same configuration at DEll store at around 749€ / 949€ .

  • Other Advantages:

-Gobally the configuration doesn’t make any noise, I’ve choose  the Fan Enermax.

-Quality of the component used in the motherborad & saving  energy consumption

-Price

-USB 3.0

-Scapability of hardware configuration

  • Disadvantage :

-Have some knowledge in Electronic  to assemble the different components of the motherboard.

I strongly recommend to view the CPU LIST compabilty of the motherboe

Processor Support for AM3 processors: AMD Phenom™ II processor/ AMD Athlon™ II processor
Hyper Transport Bus 5200 MT/s
Chipset North Bridge: AMD 785G
South Bridge: AMD SB710
Memory 4 x 1.5V DDR3 DIMM sockets supporting up to 16 GB of system memory (Note 1)
Dual channel memory architecture
Support for DDR3 1800 (OC)/1666/1333/1066 MHz memory modules
Onboard Graphics Integrated in the North Bridge:
1 x D-Sub port
1 x DVI-D port (Note 2) (Note 3)
1 x HDMI port (Note 3)
Audio Realtek ALC889 codec
High Definition Audio
2/4/5.1/7.1-channel
Support for Dolby Home Theater
Support for S/PDIF In/Out
Support for CD In
LAN Realtek 8111D chip (10/100/1000 Mbit)
Expansion Slots 1 x PCI Express x16 slot, running at x16 (PCIEX16)
(The PCI Express x16 slot conforms to PCI Express 2.0 standard.)
1 x PCI Express x1 slot
2 x PCI slots
Storage Interface South Bridge:
1 x IDE connector supporting ATA-133/100/66/33 and up to 2 IDE devices
5 x SATA 3Gb/s connectors supporting up to 5 SATA 3Gb/s devices
1 x eSATA 3Gb/s port on the back panel supporting up to 1 SATA 3Gb/s device
Support for SATA RAID 0, RAID 1, RAID 10 and JBOD
iTE IT8720 chip:
1 x floppy disk drive connector supporting up to 1 floppy disk drive
USB South Bridge:
Up to 12 USB 2.0/1.1 ports (Note 4) (6 on the back panel, 6 via the USB brackets connected to the internal USB headers)
NEC D720200F1 chip:
Up to 2 USB3.0 ports on the back panel
IEEE 1394 T.I. TSB43AB23 chip:
Up to 2 IEEE 1394a ports (1 on the back panel, 1 via the IEEE 1394a bracket connected to the internal IEEE 1394a header)
Internal I/O Connectors 1 x 24-pin ATX main power connector
1 x 8-pin ATX 12V power connector
1 x floppy disk drive connector
1 x IDE connector
5 x SATA 3Gb/s connectors
1 x CPU fan header
1 x system fan header
1 x front panel header
1 x front panel audio header
1 x CD In connector
1 x S/PDIF In/Out header
3 x USB 2.0/1.1 headers
1 x IEEE 1394a header
1 x serial port header
1 x clearing CMOS jumper
Rear Panel I/O 1 x PS/2 keyboard port or PS/2 mouse port
1 x D-Sub port
1 x DVI-D port (Note 2)(Note 3)
1 x HDMI port (Note 3)
1 x optical S/PDIF Out connector
1 x eSATA 3Gb/s port
1 x IEEE 1394a port
4 x USB 2.0/1.1 ports
2 x USB 3.0/2.0 ports
1 x RJ-45 port
6 x audio jacks (Center/Subwoofer Speaker Out/Rear Speaker Out/Side Speaker Out/Line In/Line Out/Microphone)
I/O ITE IT8720 chip
H/W Monitoring System voltage detection
CPU/System temperature detection
CPU/System fan speed detection
CPU overheating warning
CPU/System/Power fan fail warning
CPU/System fan speed control (Note 5)
BIOS 2 x 8 Mbit flash
Use of licensed AWARD BIOS
Support for DualBIOS™
PnP 1.0a, DMI 2.0, SM BIOS 2.4, ACPI 1.0b
Unique Features Support for @BIOS
Support for Q-Flash
Support for Xpress BIOS Rescue
Support for Download Center
Support for Xpress Install
Support for Xpress Recovery2
Support for EasyTune (Note 6)
Support for Easy Energy Saver
Support for Time Repare
Support for Q-Share
Bundle Software Norton Internet Security (OEM version)
Operating System Support for Microsoft Windows 7/Vista/ XP
Form Factor Micro ATX Form Factor; 24.3cm x 24.3cm
Note (Note 1) Due to Windows Vista/XP 32-bit operating system limitation, when more than 4 GB of physical memory is installed, the actual memory size displayed will be less than 4 GB.
(Note 2) The DVI-D port does not support D-Sub connection by adapter.
(Note 3) Simultaneous output for DVI-D and HDMI is not supported.
(Note 4) Two share the same port with USB3.0.
(Note 5) Whether the CPU/system fan speed control function is supported will depend on the CPU/system cooler you install.
(Note 6) Available functions in EasyTune may differ by motherboard model.

juin

02

Posted by : admin | On : 2 juin 2010

Extraire Mp3 du Flv

#!/bin/bash
find /home/$USER/Vidéos/youtube/*flv  -print | \
while read file
do
#Extract the mp3 file from flv
mplayer "$file" -dumpaudio -dumpfile "$file".mp3 2>/dev/null
echo "1 -> Extraction mp3 de $file "
user=`whoami`
echo "2 -> Changement des droits du fichiers extraits en $user"
sudo chown `whoami`:`whoami` "${file}".mp3
NomFichier=`echo ${file} | sed -e "s/^.*\/\([^\/]*\)$/\1/g"`
NomFichierTraite=`echo "${NomFichier}" | sed "s/_/ /g" | sed "s/.flv//g"`
CheminAbsolu=`pwd`
mv  "${file}.mp3" "${CheminAbsolu}/$NomFichierTraite.mp3"
echo "ø Fichier :" ${NomFichierTraite}.mp3
done

Iphone on ubuntu

Source http://fatbuttlarry.blogspot.com/2010/01/ipod-touch-iphone-3g-ubuntu-910-in-5.html

  1. If you’ve already tried using the iPhone with other tutorials, try reverting your changes. Andrew has outlined this for us very well here. Follow the first two steps. There is also an official French tutorial here that a 3.1.1 user alviju has had success with.
  2. Make sure you are connected to the internet.
  3. Open gnome-terminal through Applications –> Accessories –> Terminal
  4. Copy / paste the following in the console:

    sudo add-apt-repository ppa:pmcenery/ppa; sudo apt-get update; sudo apt-get install gvfs gvfs-backends gvfs-bin gvfs-fuse libgvfscommon0 ifuse libgpod-common libimobiledevice-utils libimobiledevice0 python-libimobiledevice libplist++1 libplist-utils python-plist libusb-1.0-0 libusbmuxd1 usbmuxd; sudo su -c « echo user_allow_other >> /etc/fuse.conf »

  5. You will be prompted to proceed. Type « Y » for yes and hit enter. This will take about 3 minutes on a broadband connection.*Note: This will 1. Automatically make the latest ifuse, aka « fusepod » application available for downlolad, 2. Download and install it, 3. Make it available for non-root users.
  6. Log out of the desktop by clicking the Ubuntu power button in the top Right corner of the desktop and clicking « Log out » (Optionally you may want to reboot).
    Note: Hugh only had success on an 8GB iPhone 3G running 3.1.2 after rebooting.
  7. Log back on to the desktop.
  8. Unlock and plug-in your iPod Touch / iPhone. You will be prompted several times to open the iPod. Click cancel.
  9. Open gnome-terminal through Applications –> Accessories –> Terminal
  10. Create the SysInfoExtended file on the iPod so that application such as RythmBox can use it by copy / paste the following into the console:

    sudo adduser « $USER » fuse; echo -e « \n\nPlease type the name of your ipod: »; read ipod_name; mkdir -p « $HOME/.gvfs/$ipod_name/iTunes_Control/Device/ »; ipod-read-sysinfo-extended `sudo lsusb -v | grep ‘iSerial’ | awk ‘length($0)>=68′ | awk ‘{print $3}’` « $HOME/.gvfs/$ipod_name/ »

  11. You will be prompted for the name of your iPod Touch / iPhone. This should match the name of the icon on your desktop.
    *Note: AJ suggests replacing all apostrophe’s in your iPod name with %27. Others suggest right click the desktop icon and copy the name from there. 

    Example:
    AJ’S IPOD
    replace with
    AJ%27S IPOD

    *Note: According to DFB, if you recieve error « can’t get debug descriptor: Connection timed out » check the iPod plugin in the RhythmBox plugins list.

  12. Log out and back into the desktop one last time.
  13. If MP3 support is desired, click this link to enable the « ubuntu-restricted-extras » packages (this can be done at any time).
  14. Launch RythmBox through Applications –> Sound and Video –> RythmBox. Your iPod should list on the left hand side. Drag files to and from as you would in iTunes.
    Note: Jon suggests using a Windows computer with iTunes to add at least one song to the iPhone via iTunes. This has helped some people create the necessary databases and files in the iPhone.
  15. If you have problems, try restarting your iPhone. If this does not help, please post a comment below.

Source : http://eric.cabrol.free.fr/unix.html#cut

Une petite compilation illustrée de
commandes Unix parfois utiles

uniq, tr, find, sort, csplit, cut, paste, join, patch

  • uniq : permet de supprimer des lignes identiques

Si l’on dispose d’un fichier fic qui ressemble à ceci :

AAAA
AAAA
BBBB
CCCC
CCCC
DDDD

la commande uniq fic renverra

AAAA
BBBB
CCCC
DDDD

Les lignes identiques doivent être adjacentes pour être supprimées.
L’option -u permet de n’afficher que les lignes présentes à l’origine en un seul exemplaire.
L’option -d permet de n’afficher que les lignes présentes initialement en plusieurs exemplaires.
Les options -f (resp. -s) permettent d’ignorer un certain nombre de champs (resp. de caractères) en début de chaque ligne avant d’entamer le processus de comparaison.

  • tr : transforme une liste de caractères en une autre.

Pour faire du Rot-13 sur un fichier in, par exemple :

tr [a-z] [n-za-m] < in > out

Pour convertir les majuscules en minuscules :

tr "[A-Z]" "[a-z]" < in > out

L’option  -d permet de supprimer la liste de caractères specifiée.

  • find

Permet de trouver des fichiers répondant à certains critères, et éventuellement d’effectuer certaines actions sur les fichiers répondant à la requête. Les critères peuvent se formuler en termes de nom (-name), de propriétaire (-user), de droits d’accès (-perm), de taille (-size), de nombre de liens (-links), de date d’accès/modification/changement (-atime, -mtime, -ctime

).

Par exemple, pour supprimer dans le répertoire courant les fichiers core ou ceux appartenant à l’utilisateur dilbert :

find . \( -name core -o -user dilbert \) -exec rm{}\;

Les parenthèses permettent de construire un critère « composé », l’option -o étant utilisée pour OR, le ! pour la négation, alors qu’une simple juxtaposition permet de traduire le AND.
D’autres exemples :
find . -mtime +3 # trouve les fichiers modifiés il y a plus de 3 jours
find . -newer fic # trouve les fichiers modifiés plus récemment que fic

  • sort

Permet d’effectuer un tri lexicographique (i.e selon l’ordre ASCII, ce qui signifie entre autres que la sequence « 12  » – notez l’espace – est considérée comme étant supérieure à 119), numérique (cf. option -n) ou chronologique (cf. option -M). Le séparateur de champs (l’espace, par défaut) peut etre modifié par l’option -t.
Si l’on veut trier un fichier fic sur la base du sixième champ, on tapera :

sort +5 fic

car les champs sont numérotés a partir de 0. Si l’on veut trier ce même fichier sur la base du huitième caractère du quatrième champ, la commande sera :

sort +3.7 fic

car les caractères à l’intérieur d’un champ sont également numérotés à partir de 0.

  • csplit

La commande csplit fic /regexp/+n permet d’éclater un fichier fic en plusieurs morceaux, la scission intervenant à la n-ième ligne après l’expression régulière passée en argument. Si l’argument n’est pas une regexp mais un numéro, csplit fonctionne comme split, et scinde le fichier en morceaux de n lignes.

  • cut

Permet d’extraire des parties de lignes d’un fichier. La commande cut -c1-5 fic extrait les 5 premiers caractères du fichier fic, alors que cut -f3,7 extrait les 3ème et 7ème champs (noter la différence entre la séparation par tiret et celle par virgule). Le séparateur par défaut est la tabulation, l’option -d permettant de le redéfinir.

  • paste

Cette commande permet de fusionner les lignes correspondantes de plusieurs fichiers. Ainsi, si le fichier fic1 contient
1
2
3
et que le fichier fic2 contient
4
5
6
la commande paste fic1 fic2 generera
1    4
2    5
3    6

L’entrée standard est passée en argument de paste par l’option tiret (-). Supposons que le répertoire courant ne contienne que trois fichiers fic1, fic2 et fic3. La commande ls fic? | paste - fic1 génèrera la sortie suivante :
fic1    1
fic2    2
fic3    3

    • join

Une fois encore, le plus simple est de prendre un exemple. Soit fic1 un fichier qui contient

Brésil 0
France 3

et fic2 un fichier qui contient

Brésil 1994
France 1998

La commande join -j1 1 fic1 fic2 genèrera

Brésil 0 1994
France 3 1998

L’option -j1 n permet de spécifier que c’est le n-ième champ de chacun des fichiers qui définit la relation.