Posts Tagged "shell-tricks"

Avoir deux claviers dans deux langues différentes

Avoir deux claviers dans deux langues différentes

Comment avoir deux claviers dans deux langues différentes ?   Vous avez deux claviers dans des langues différentes ? Par exemple un querty et un azerty sans avoir à spécifier à chaque fois. 1. Il vous suffit d’utiliser xinput pour lister vos clavier : Shell xinput -list | grep key 1 xinput -list | grep key Exemple :   Shell $ xinput -list | grep key ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Power Button id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Power Button id=8 [slave keyboard (3)] ↳ Sleep Button id=9 [slave keyboard (3)] ↳ 2.4GHz 2way RF Receiver id=10 [slave keyboard (3)] ↳ HP Webcam id=12 [slave keyboard (3)] ↳ AT Translated Set 2 keyboard id=13 [slave keyboard (3)] ↳ HP WMI hotkeys id=15 [slave keyboard (3)] ↳ USB Keyboard id=16 [slave keyboard (3)] ↳ USB Keyboard id=17 [slave keyboard (3)] 12345678910111213 $ xinput -list | grep key⎣ Virtual core keyboard                         id=3    [master keyboard (2)]    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]    ↳ Power Button                              id=6    [slave  keyboard (3)]    ↳ Video Bus                                 id=7    [slave  keyboard (3)]    ↳ Power Button                              id=8    [slave  keyboard (3)]    ↳ Sleep Button                              id=9    [slave  keyboard (3)]    ↳ 2.4GHz 2way RF Receiver                   id=10   [slave  keyboard (3)]    ↳ HP Webcam                                 id=12   [slave  keyboard (3)]    ↳ AT Translated Set 2 keyboard              id=13   [slave  keyboard (3)]    ↳ HP WMI hotkeys                            id=15   [slave  keyboard (3)]    ↳   USB Keyboard                            id=16   [slave  keyboard (3)]    ↳   USB Keyboard                            id=17   [slave  keyboard (3)]   Puis utilisez setxkbmap pour setter une langue par defaut à ce clavier Shell setxkbmap -device <key_ID> -layout <layout_name> 1 setxkbmap -device <key_ID> -layout <layout_name> Exemple : setxkbmap -device 3 -layout fr #clavier principal en françaist setxkbmap -device 10 -layout us #Le clavier avec id=10 en anglais (US) setxkbmap -device 16 -layout ru #Le clavier avec id=16 en russe 123 setxkbmap -device 3 -layout fr    #clavier principal en françaistsetxkbmap -device 10 -layout us   #Le clavier avec id=10  en anglais (US)setxkbmap -device 16 -layout ru   #Le clavier avec id=16  en russe  ...

Read More

Comment savoir quel type de ram est utilisé

Comment savoir quel type de ram est utilisé

Imaginez que vous venez d’ajouter une barrette de RAM sur votre carte mère et que vous voulez vous assuré qu’elle a les même caractéristiques que l’ancienne, et bien pour ça aussi il existe une commande: il vous suffit d’utiliser lshw (en précissant la class mémoire) Exemple d’utilisation (Attention, il faut l’utiliser avec les droits administrateurs) : Shell sudo lshw -C memory 1 sudo lshw -C memory   Shell morgan@morgan-pc:~$ sudo lshw -C memory *-firmware description: BIOS fabriquant: Dell Inc. identifiant matériel: 0 version: 2.3.0 date: 11/11/2010 taille: 64KiB capacité: 1984KiB fonctionnalités: isa pci pnp apm upgrade shadowing escd cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video acpi usb ls120boot zipboot biosbootspecification *-cache:0 description: L1 cache identifiant matériel: 5 emplacement: L1-Cache taille: 256KiB capacité: 256KiB fonctionnalités: internal write-through instruction *-cache:1 description: L2 cache identifiant matériel: 6 emplacement: L2-Cache taille: 1MiB capacité: 1MiB fonctionnalités: internal write-through unified *-cache:2 description: L3 cache identifiant matériel: 7 emplacement: L3-Cache taille: 8MiB capacité: 8MiB fonctionnalités: internal write-back unified *-memory description: Mémoire Système identifiant matériel: e emplacement: Carte mère taille: 8GiB *-bank:0 description: DIMMProject-Id-Version: @(#) $Id$Report-Msgid-Bugs-To: POT-Creation-Date: 2009-10-08 14:02+0200PO-Revision-Date: 2014-03-11 13:12+0000Last-Translator: Lyonel Vincent <Unknown>Language-Team: MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2014-07-07 12:12+0000X-Generator: Launchpad (build 17086) Synchrone 1333 MHz (0,8 ns) produit: CMV4GX3M1A1333C9 fabriquant: Manufacturer00 identifiant matériel: 0 numéro de série: 00000000 emplacement: DIMM0 taille: 4GiB bits: 64 bits horloge: 1333MHz (0.8ns) *-bank:1 description: DIMMProject-Id-Version: @(#) $Id$Report-Msgid-Bugs-To: POT-Creation-Date: 2009-10-08 14:02+0200PO-Revision-Date: 2014-03-11 13:12+0000Last-Translator: Lyonel Vincent <Unknown>Language-Team: MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2014-07-07 12:12+0000X-Generator: Launchpad (build 17086) [vide] produit: ModulePartNumber01 fabriquant: Manufacturer01 identifiant matériel: 1 numéro de série: SerNum01 emplacement: DIMM1 *-bank:2 description: DIMMProject-Id-Version: @(#) $Id$Report-Msgid-Bugs-To: POT-Creation-Date: 2009-10-08 14:02+0200PO-Revision-Date: 2014-03-11 13:12+0000Last-Translator: Lyonel Vincent <Unknown>Language-Team: MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2014-07-07 12:12+0000X-Generator: Launchpad (build 17086) Synchrone 1333 MHz (0,8 ns) produit: CMV4GX3M1A1333C9 fabriquant: Manufacturer02 identifiant matériel: 2 numéro de série: 00000000 emplacement: DIMM2 taille: 4GiB bits: 64 bits horloge: 1333MHz (0.8ns) *-bank:3 description: DIMMProject-Id-Version: @(#) $Id$Report-Msgid-Bugs-To: POT-Creation-Date: 2009-10-08 14:02+0200PO-Revision-Date: 2014-03-11 13:12+0000Last-Translator: Lyonel Vincent <Unknown>Language-Team: MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2014-07-07 12:12+0000X-Generator: Launchpad (build 17086) [vide] produit: ModulePartNumber03 fabriquant: Manufacturer03 identifiant matériel: 3 numéro de série: SerNum03 emplacement: DIMM3 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 morgan@morgan-pc:~$ sudo lshw -C memory  *-firmware                     description: BIOS       fabriquant: Dell Inc.       identifiant matériel: 0       version: 2.3.0       date: 11/11/2010       taille: 64KiB       capacité: 1984KiB       fonctionnalités: isa pci pnp apm upgrade shadowing escd cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video acpi usb ls120boot zipboot biosbootspecification  *-cache:0       description: L1...

Read More