- Lancez REGEDIT
- Développez 'HKEY_CURRENT_USER\Control Panel\Mouse'
- Modifiez la valeur ActiveWindowTracking avec la valeur’1’
Search this blog
lundi 29 novembre 2010
Activer/désactiver la fenêtre active avec le mouvement de la souris
Cette modification est intéressante, puisqu’elle vous permet de rendre des fenêtres actives avec un simple mouvement dessus :
mardi 2 novembre 2010
Thunderbird: change sidepane font size
In your profile directory, create or update chrome/userChrome.css (copy example file from Firefox profile dir) with the following content:
See http://kb.mozillazine.org/Pane_and_menu_fonts
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */Then restart Thunderbird!
#folderTree > treechildren {font-size: 14px; font-family: Arial;}
#threadTree > treechildren {font-size: 14px; font-family: Arial;}
#dirTree > treechildren {font-size: 12px; font-family: Arial;}
See http://kb.mozillazine.org/Pane_and_menu_fonts
mercredi 22 septembre 2010
How to Defragment the VMware Player Drive
From: http://www.vmware.com/support/ws55/doc/ws_disk_defrag.html
For best disk performance, follow these steps:
From: http://www.ehow.com/how_6888404_defragment-vmware-player-drive.html
For best disk performance, follow these steps:
- Run a disk defragmentation utility inside the virtual machine.
- Power off the virtual machine, then defragment its virtual disks from the virtual machine settings editor (VM > Settings). Select the virtual disk you want to defragment, then click Defragment.
- Note: This capability works only with virtual disks, not physical or plain disks.
- Run a disk defragmentation utility on the host computer
From: http://www.ehow.com/how_6888404_defragment-vmware-player-drive.html
- Load VMware Player, and bring up the list of virtual machines. Right-click the virtual machine that you want to defragment the virtual disk of, and then click "Virtual Machine Settings."
- Click "Hard Disk" under the "Device" column in the left pane of the window.
- Click the "Utilities" button on the right side of the window, and then click "Defragment." VMware will begin to defragment the virtual hard drive. While this process takes place, a status bar appears on the screen. When the status bar disappears, the defragmentation process is complete.
- Click "OK" to return to the main VMware Player window when the virtual hard drive is defragmented.
jeudi 19 août 2010
Multi user multitouch operating system and monitor
Now that multitouch technology is available in common operating systems (MAC OS, Windows 7, Ubuntu 10.10 beta), it would be great to allow two users simultaneously to use the same computer (same screen, different controls, same or different applications). An example, using one computer with one big screen, I would read my emails in a browser program and simultaneously my friend would write a letter in a word processor program. We would need in total 2 keyboards and 2 mouses, or we would use simultaneously a touch screen. Such a touch screen or system would have to recognise the different users. May be by measuring the body fat percentage, by observing user gestures with a camera, or by voice recognition.
jeudi 12 août 2010
Thunderbird and IMAP remote Trash folder
[Update 2011-07-05] Before reading this post below, you may read a more recent post that shows a simpler solution applicable for all folders: here.
To specify a different Trash folder for an IMAP account in Thunderbird:
1. Completely exit Thunderbird if it is running.
2. Make a temporary backup copy of your profile folder (or at least "prefs.js").
3. Open your "prefs.js" file with a text editor such as Notepad to find the server# used to represent your IMAP account. It could be "server2", "server5", "server7", or some other number depending on your own individual account setup. Look for a line similar to this, corresponding to your own IMAP acccount:
4. Insert a line like the following into "prefs.js", with the correct server# and correct name for the Trash folder:
For example:
If you want to use "Gelöscht" (German for Trash) you would have to write it in the user_pref as "Gel&APY-scht", since the German Umlaute has to be encoded differently.
5. Restart Thunderbird. You should now see the new Trash folder (e.g., "Deleted Items") showing the trash can icon. (If not, exit and restart Thunderbird.) If the old Trash folder is still showing, you should now be able to delete it. If you can't delete it through Thunderbird, then delete it through the account's webmail interface.
6. If you deleted the Trash folder in the web front end of your mail provider, you may need to cancel the IMAP folder subscriptions, too. It may take a while for the subscription changes to take effect.
From: http://kb.mozillazine.org/IMAP_Trash_folder
To specify a different Trash folder for an IMAP account in Thunderbird:
1. Completely exit Thunderbird if it is running.
2. Make a temporary backup copy of your profile folder (or at least "prefs.js").
3. Open your "prefs.js" file with a text editor such as Notepad to find the server# used to represent your IMAP account. It could be "server2", "server5", "server7", or some other number depending on your own individual account setup. Look for a line similar to this, corresponding to your own IMAP acccount:
user_pref("mail.server.server2.hostname", "mail.YourImapProvider.com");
4. Insert a line like the following into "prefs.js", with the correct server# and correct name for the Trash folder:
user_pref("mail.server.server#.trash_folder_name", "");
For example:
user_pref("mail.server.server2.trash_folder_name", "Deleted Items");
If you want to use "Gelöscht" (German for Trash) you would have to write it in the user_pref as "Gel&APY-scht", since the German Umlaute has to be encoded differently.
5. Restart Thunderbird. You should now see the new Trash folder (e.g., "Deleted Items") showing the trash can icon. (If not, exit and restart Thunderbird.) If the old Trash folder is still showing, you should now be able to delete it. If you can't delete it through Thunderbird, then delete it through the account's webmail interface.
6. If you deleted the Trash folder in the web front end of your mail provider, you may need to cancel the IMAP folder subscriptions, too. It may take a while for the subscription changes to take effect.
From: http://kb.mozillazine.org/IMAP_Trash_folder
dimanche 18 juillet 2010
Mplayer dump video stream
Save video stream to file (same video format):
Example for "C dans L'air" on 2010-07-14:
mplayer -dumpstream -dumpfile destination_video_file.wmv source_video_URL.wmv
Example for "C dans L'air" on 2010-07-14:
mplayer -dumpstream -dumpfile destination_video_file.wmv mms://a533.v55778.c5577.e.vm.akamaistream.net/7/533/5577/42c40fe4/lacinq.download.akamai.com/5577/internet/cdanslair/cdanslair_20100714.wmv
jeudi 10 juin 2010
Ubuntu: nforce2 smbus error at startup
sudo gedit /etc/default/grub
replace:
GRUB_CMDLINE_LINUX=""
by:
GRUB_CMDLINE_LINUX="acpi_enforce_resources=no"
mettre à jour GRUB:
sudo update-grub
mercredi 9 juin 2010
Ubuntu: I/O error, dev sr0, sector 12054896
The following message is logged when closing the DVD with a medium inside:
"I/O error, dev sr0, sector 12054896"To see the 20 latest log messages run this command in a terminal:
dmesg | tail -n 20To solve it, you may need to install regioset to set the DVD region code to its expected value.
Ubuntu: amd64_edac error message
message (grep edac /var/log/messages): amd64_edac: probe of 0000:00:18.2 failed with error -22
Solution: in BIOS enable ECC monitoring
Solution: in BIOS enable ECC monitoring
mardi 8 juin 2010
Ubuntu: convert several FLV videos to AVI/x264/mp3
for i in *.flv; do ffmpeg -ss 0 -t 5 -i "$i" -qmin 15 -qmax 25 -vcodec libx264 -acodec libmp3lame "${i%flv}avi"; done
Ubuntu <10.04: performance video
Video may freeze every few seconds due to Compiz and Graphics parameters:
From: http://www.econowics.com/linux/326/video-playback-freeze-every-few-seconds-minutes-on-ubuntu/
STEPS: Compiz Configuration
1. Download CompizConfig Settings Manager from Ubuntu repository.
2. Navigate to.. System –> Prefences –> CompizConfig Settings Manager
3. Navigate to.. General –> General Options
4. Click “General Options” to open window
5. Click “Display Settings” tab
6. Uncheck “Detect Refresh Rate”
7. Move “Refresh Rate” slider to 60, or set 60 in the box
8. Check “Sync to VBlank”
9. Click back button to move back to main CompizConfig window
10. Navigate to.. Utility –> Video Playback
11. Uncheck “Video Playback” then exit the CompizConfig Settings Manager.
STEPS: Nvidia Configuration
1. Pull up nvidia-settings
.. Navigate to.. Applications –> System Tools –> nvidia-settings
.. or open a terminal, type “nvidia-settings” , press enter
2. Click “X Server XVideo Settings”
3. Check “Sync to VBlank” _IF_ not checked
4. Click “OpenGL Settings”
5. Uncheck “Sync to VBlank” _IF_ checked
6. click quit button
7. click quit button
8. Reopen nvidia-settings to verify that config changes were saved.
.. IF they were saved, you are done with step 8.
.. IF they were not saved, ~/.nvidia-settings-rc in your home directory
.. may be under root permissions. You will need to chown chgrp for the file.
.. Then you will need to start back at Step 1 and repeat all steps.
IMPORTANT: Reboot your machine when finished. The driver changes won’t function correctly until you reboot
From: http://www.econowics.com/linux/326/video-playback-freeze-every-few-seconds-minutes-on-ubuntu/
vendredi 4 juin 2010
Ubuntu: convert many image files
From EPS to PNG:
for img in `ls *.eps`; do convert $img $img.png; done
samedi 29 mai 2010
Ubuntu: PDF to Images
Convert PDF pages to images:
gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=png16m -sOutputFile=picname%03d.png inputpdf.pdfExtract images (in JPG) from PDF using xpdf:
pdfimages -j example.pdf ./imagenames
dimanche 2 mai 2010
Ubuntu / Windows: repair hard drive NTFS file system
In Windows Command line:
chkdsk D: /f
Then, reboot windows twice if main windows hard drive.
chkdsk D: /f
Then, reboot windows twice if main windows hard drive.
Ubuntu (<10.04): post installation
Flash Player plugin with AMD64 bug fix
Remove useless services
voir http://doc.ubuntu-fr.org/optimisation
sudo update-rc.d -f bluetooth remove
sudo update-rc.d -f pcmciautils remove
sudo update-rc.d -f rsync remove
sudo update-rc.d -f dns-clean remove
sudo update-rc.d -f pppd-dns remove
Codecs video et dechiffrage DVD
#sudo wget http://www.medibuntu.org/sources.list.d/intrepid.list -O /etc/apt/sources.list.d/medibuntu.list
sudo wget http://www.medibuntu.org/sources.list.d/lucid.list -O /etc/apt/sources.list.d/medibuntu.list
sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update
sudo apt-get install w64codecs & libdvdcss2
sudo apt-get install mplayer
sudo apt-get install ubuntu- restricted- extras
sudo apt-get install gstreamer- plugins- bad
Compte invité
sudo /usr/share/gdm/guest-session/guest-session-setup.sh
Applet config ecran
Installation:
sudo apt-get install gnome-randr-applet
# Cliquez-droit sur le tableau de bord ;
# Ajouter au tableau de bord ;
# Sélectionner Display Geometry Switcher ;
# Cliquez sur l'icône de l'écran pour sélectionner le sens de la rotation.
Pour activer la rotation:
# Dans /etc/X11/xorg.conf, ajouter la ligne 'Option RandRRotation' comme ci-dessous
Section "Device"
Identifier "Configured Video Device"
Driver "nvidia"
Option "NoLogo" "True"
Option "RandRRotation" "on"
EndSection
NVidia fan controller
sudo apt-get nvclock nvclock-gtk
Système / Préférences / Applications au démarrage / Ajouter
_ nom: GPU Clock reduction
_ commande: nvclock -f -F 60
Moniteur temperature
sudo apt-get install sensors-applet hddtemp
#Puis ajouter applet au tableau de bord
NVidia (en option)
# Dans ~/.gnomerc
nvidia-settings -l
nvidia-settings -a InitialPixmapPlacement=2 -a GlyphCache=1
# Dans /etc/modprobe.d/options
options nvidia NVreg_EnableAGPSBA=1 NVreg_EnableAGPFW=1 NVreg_ReqAGPRate=3
# Dans /etc/X11/xorg.conf
Section "Device"
Identifier "Configured Video Device"
Driver "nvidia"
Option "NoLogo" "True"
Option "AllowSHMPixmaps" "0"
Option "PixmapCacheSize" "1000000"
Option "RandRRotation" "on"
Option "RenderAccel" "True"
EndSection
# Dans NVIDIA X Server Settings
cocher OpenGL Settings/Sunc to VBlank
cocher DFP-1.../Force Full GPU Scalling
Décocher nvidia-settings Configuration/Include X Display Names in the Config File
# Dans /usr/bin/compiz
commentez (#) les lignes suivantes:
if check_nvidia; then
if [ "x$INDIRECT" != "xyes" ]; then
COMPIZ_OPTIONS="$COMPIZ_OPTIONS --loose-binding"
fi
fi
sudo add-apt-repository ppa:zebioman && sudo apt-get update
sudo apt-get install flashplugin64-lahf-fix
Remove useless services
voir http://doc.ubuntu-fr.org/optimisation
sudo update-rc.d -f bluetooth remove
sudo update-rc.d -f pcmciautils remove
sudo update-rc.d -f rsync remove
sudo update-rc.d -f dns-clean remove
sudo update-rc.d -f pppd-dns remove
Codecs video et dechiffrage DVD
#sudo wget http://www.medibuntu.org/sources.list.d/intrepid.list -O /etc/apt/sources.list.d/medibuntu.list
sudo wget http://www.medibuntu.org/sources.list.d/lucid.list -O /etc/apt/sources.list.d/medibuntu.list
sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update
sudo apt-get install w64codecs & libdvdcss2
sudo apt-get install mplayer
sudo apt-get install ubuntu-
sudo apt-get install gstreamer-
Compte invité
sudo /usr/share/gdm/guest-session/guest-session-setup.sh
Applet config ecran
Installation:
sudo apt-get install gnome-randr-applet
# Cliquez-droit sur le tableau de bord ;
# Ajouter au tableau de bord ;
# Sélectionner Display Geometry Switcher ;
# Cliquez sur l'icône de l'écran pour sélectionner le sens de la rotation.
Pour activer la rotation:
# Dans /etc/X11/xorg.conf, ajouter la ligne 'Option RandRRotation' comme ci-dessous
Section "Device"
Identifier "Configured Video Device"
Driver "nvidia"
Option "NoLogo" "True"
Option "RandRRotation" "on"
EndSection
NVidia fan controller
sudo apt-get nvclock nvclock-gtk
Système / Préférences / Applications au démarrage / Ajouter
_ nom: GPU Clock reduction
_ commande: nvclock -f -F 60
Moniteur temperature
sudo apt-get install sensors-applet hddtemp
#Puis ajouter applet au tableau de bord
NVidia (en option)
# Dans ~/.gnomerc
nvidia-settings -l
nvidia-settings -a InitialPixmapPlacement=2 -a GlyphCache=1
# Dans /etc/modprobe.d/options
options nvidia NVreg_EnableAGPSBA=1 NVreg_EnableAGPFW=1 NVreg_ReqAGPRate=3
# Dans /etc/X11/xorg.conf
Section "Device"
Identifier "Configured Video Device"
Driver "nvidia"
Option "NoLogo" "True"
Option "AllowSHMPixmaps" "0"
Option "PixmapCacheSize" "1000000"
Option "RandRRotation" "on"
Option "RenderAccel" "True"
EndSection
# Dans NVIDIA X Server Settings
cocher OpenGL Settings/Sunc to VBlank
cocher DFP-1.../Force Full GPU Scalling
Décocher nvidia-settings Configuration/Include X Display Names in the Config File
# Dans /usr/bin/compiz
commentez (#) les lignes suivantes:
if check_nvidia; then
if [ "x$INDIRECT" != "xyes" ]; then
COMPIZ_OPTIONS="$COMPIZ_OPTIONS --loose-binding"
fi
fi
Ubuntu 10.10: configurer MP540 sur le réseau local
Même si l'imprimante Canon Pixma MP540 est USB, il est possible de la partager sur le réseau local. Une première solution serait de l'installer en USB sur un ordinateur hôte et d'utiliser les fonctions de partage du système d'exploitation. Pour se passer de cet ordinateur hôte, on peut utiliser un Modem Routeur offrant un serveur d'impression pour le réseau local à une imprimante USB. Vérifier si cette fonction est activée dans le Modem Routeur, et y brancher l'imprimante. La procédure ci-dessous montre l'installation des pilotes dans Ubuntu 10.10 puisqu'ils ne sont pas intégrés par défaut, et l'ajout de l'imprimante dans le système.
Pilotes et librairies:
Télécharger et installer libcupsys2 (libcupsys2_1.3.9-17ubuntu3.6_all.deb) à partir de http://packages.ubuntu.com/jaunty/all/libcupsys2/download
Télécharger pilote (MP540_debian_drivers.tar) à partir de http://fr.canon.ch et décompresser l'archive dans le dossier courant.
ATTENTION: Les modifications qui suivent ne sont peut être pas nécessaires, testez d'abord l'impression avec le fichier original.
sudo gedit /usr/share/cups/model/canonmp540.ppd
*DefaultResolution: 600dpi
*Resolution 300dpi/300 dpi: "«/HWResolution[300 300]»setpagedevice"
*Resolution 600dpi/600 dpi: "«/HWResolution[600 600]»setpagedevice"
*Resolution 1200dpi/1200 dpi: "«/HWResolution[1200 1200]»setpagedevice"
*Resolution 2400dpi/2400 dpi: "«/HWResolution[2400 2400]»setpagedevice"
*CloseUI: *Resolution
*DefaultCNQuality: 3
*CNQuality 2/High: "2"
*CNQuality 3/Normal: "3"
*CNQuality 4/Standard: "4"
*CNQuality 5/Economy: "5"
*CloseUI: *CNQuality
*DefaultCNGrayscale: false
*CNGrayscale false/Off: "false"
*CNGrayscale true/On: "true"
*CloseUI: *CNGrayscale
Ajouter imprimante:
Dans cet example, l'imprimante est branché en USB sur un modem-routeur ADSL (adresse IP: 192.168.220.1) qui peut jouer le rôle de serveur d'impression (sur le port: 9100).
Aller dans Système / Impression / Ajouter / Autre /
Imprimer un page de test ou un autre document pour tester.
Voir aussi les documentations suivantes:
Ancienne méthode qui pourrait fonctionner si le pilote est pré-installé:
Aller dans Ubuntu / Gnome / Système / Administration / Impression /
Utiliser les paramètre ci-dessous:
Pilotes et librairies:
Télécharger et installer libcupsys2 (libcupsys2_1.3.9-17ubuntu3.6_all.deb) à partir de http://packages.ubuntu.com/jaunty/all/libcupsys2/download
- sudo dpkg -i --force-architecture libcupsys2_1.3.9-17ubuntu3.6_all.deb
Télécharger pilote (MP540_debian_drivers.tar) à partir de http://fr.canon.ch et décompresser l'archive dans le dossier courant.
- sudo dpkg -i --force-architecture cnijfilter-common_3.00-1_i386.deb
- sudo dpkg -i --force-architecture cnijfilter-mp540series_3.00-1_i386.deb
ATTENTION: Les modifications qui suivent ne sont peut être pas nécessaires, testez d'abord l'impression avec le fichier original.
sudo gedit /usr/share/cups/model/canonmp540.ppd
- Modifier section Resolution/Output Resolution
*DefaultResolution: 600dpi
*Resolution 300dpi/300 dpi: "«/HWResolution[300 300]»setpagedevice"
*Resolution 600dpi/600 dpi: "«/HWResolution[600 600]»setpagedevice"
*Resolution 1200dpi/1200 dpi: "«/HWResolution[1200 1200]»setpagedevice"
*Resolution 2400dpi/2400 dpi: "«/HWResolution[2400 2400]»setpagedevice"
*CloseUI: *Resolution
- Ajouter section CNQuality/Quality à la fin du fichier
*DefaultCNQuality: 3
*CNQuality 2/High: "2"
*CNQuality 3/Normal: "3"
*CNQuality 4/Standard: "4"
*CNQuality 5/Economy: "5"
*CloseUI: *CNQuality
- Ajouter section CNGrayscale/Grayscale à la fin du fichier
*DefaultCNGrayscale: false
*CNGrayscale false/Off: "false"
*CNGrayscale true/On: "true"
*CloseUI: *CNGrayscale
Ajouter imprimante:
Dans cet example, l'imprimante est branché en USB sur un modem-routeur ADSL (adresse IP: 192.168.220.1) qui peut jouer le rôle de serveur d'impression (sur le port: 9100).
Aller dans Système / Impression / Ajouter / Autre /
- Enter Device URI = socket://192.168.220.1:9100
- Provide PPD file: /usr/share/cups/model/canonmp540.ppd
Imprimer un page de test ou un autre document pour tester.
Voir aussi les documentations suivantes:
- http://doc.ubuntu-fr.org/imprimante_canon_pixma_mp_540
- http://doc.ubuntu-fr.org/imprimante_installation_alternative
Ancienne méthode qui pourrait fonctionner si le pilote est pré-installé:
Aller dans Ubuntu / Gnome / Système / Administration / Impression /
Utiliser les paramètre ci-dessous:
- URL du périphérique (AppSocket / JetDirect): socket://192.168.220.1:9100
- Fabricant du modèle: Canon MP540 series Ver.3.00
mardi 27 avril 2010
3D camera for mobile electronic devices
A 3D camera on a mobile device (smart phone, video game console, ...) would allow, for example, to start a video chat, or to record a movie in 3D. To watch the video, one would have a 3D compatible screen (already existing).
lundi 12 avril 2010
Some interesting Firefox and Thunderbird plugins
Firefox
- Adblock Plus
- Dictionary Switcher
- British English Dictionary
- Firebug
- Xmarks
- German dictionary
- Find a module to save plugin configuration
- Weave to synchronize bookmarks, passwords, and plugins?
- Dictionary Switcher for Thunderbird
- British English Dictionary
- Wörterbuch Deutsch (de-DE), Hunspell-unterstützt
- Zindus: adress book to Google
dimanche 21 mars 2010
Windows XP update: demande de redémarrage automatique
Pour désactiver cette fonction il suffit de modifier un des paramètres du panel de Stratégie de groupe de Windows :
- cliquer sur Démarrer >Exécuter
- saisir gpedit.msc puis OK
- ouvrir Configuration ordinateur > Modèles d'administration > Composants Windows > Windows Update
- double cliquer sur "Pas de redémarrage automatique..."
- puis choisir l'option Activé, OK
- Pour seulement changer la fréquence d'apparition du message:
- double cliquer sur Re-prompt for restart with scheduled installations
- enable it and set a number of minutes, ex. 200mn
samedi 20 mars 2010
lundi 8 mars 2010
Ubuntu: convert video files
Install more codecs:
sudo apt-get install ubuntu-restricted-extras
Example:
ffmpeg -i file.flv file.mp4
Convert all FLV videos to AVi/x264/mp3:
for i in *.flv; do ffmpeg -i "$i" -qmin 3 -qmax 10 -vcodec libx264 -acodec libmp3lame "${i%flv}avi"; done
sudo apt-get install ubuntu-restricted-extras
Example:
ffmpeg -i file.flv file.mp4
Convert all FLV videos to AVi/x264/mp3:
for i in *.flv; do ffmpeg -i "$i" -qmin 3 -qmax 10 -vcodec libx264 -acodec libmp3lame "${i%flv}avi"; done
mercredi 17 février 2010
Perl: how to shuffle an array
If you either have Perl 5.8.0 or later installed, or if you have Scalar-List-Utils 1.03 or later installed, you can say:
use List::Util 'shuffle'; @shuffled = shuffle(@list);
mardi 16 février 2010
VMware Player : running Windows and Lunix simultaneously
Objective: using Windows XP and Lunix Ubuntu 9.10 simultaneously.
Requirements: you must be used to linux to apply some instructions below.
General idea:
Using your default OS (ex. Win XP), you will be able to run inside a window another OS with full capabilities (ex. linux). For instance, this will allow you to use Microsoft Office and Endnote, and simultaneously a terminal connected by ssh or emacs. For that, we need a virtual machines emulator (i.e. VMware Player) and a virtual appliance (i.e. a full OS prepared for VMware).
Definitions:
Details on installing VMTools:
Lucid Lynx Ubuntu 10.04:
Requirements: you must be used to linux to apply some instructions below.
General idea:
Using your default OS (ex. Win XP), you will be able to run inside a window another OS with full capabilities (ex. linux). For instance, this will allow you to use Microsoft Office and Endnote, and simultaneously a terminal connected by ssh or emacs. For that, we need a virtual machines emulator (i.e. VMware Player) and a virtual appliance (i.e. a full OS prepared for VMware).
Definitions:
- host system: your main operating system (OS) (here Windows XP).
- guest system: the secondary operating system installed inside and ran by the host system (here Ubuntu 9.10).
- VMware Player 3.0:
- go to www.vmware.com
- register and download VMware Player 3.0 for the host OS.
- Ubuntu 9.10 virtual appliance:
- go to www.vmware.com/appliances/
- search for ubuntu 9.10
- download from LINHOST: Ubuntu 9.10 Desktop installation with VMware Tools (other OS are available)
- don't forget to note the default user and password from the download page (may be 'vadmin' and 'sector7g' respectively).
- Install VMware Player in Windows XP.
- decompress the Ubuntu file in Mes Documents\My Virtual Machines directory.
- Run VMware Player and open Ubuntu 9.10.vmx from the Ubuntu directory.
- Ubuntu will boot inside VMware Player, then use default user name and password to log in. Be careful of the keyboard language on the bottom of the login screen.
- Configuration using the VM menu of VMware Player
- You can activate and configure available hardware for the guest (ex. Memory and hard disk).
- Check Network connection. using NAT may be the simplest.
- In Options tab you will be able to configure a shared folder (from Windows) between the host and the guest.
- Some options may be available only if the virtual machine is off.
- Linux configuration
- You should create a new Ubuntu user with administrative rights and delete the default one.
- Add this line to /etc/fstab as administrator to mount the shared folder automatically:
- .host:/ /mnt/hgfs vmhgfs defaults,ttl=5 0 0
- Installing VMTools (they help the communication between the host and the guest): see details below.
- When restarting enter the BIOS and enable Virtualization features of your CPU if available.
- To stop the virtual machine use the VM menu and select Power/Suspend. It will be very fast to stop and to restart next time.
- Drag and drop of files or text should work between the host and the guest.
- Check your Windows mouse drivers to be sure that buttons are properly configured (especially the middle click).
Details on installing VMTools:
Lucid Lynx Ubuntu 10.04:
- apt-get install --no-install-recommends linux-headers-virtual open-vm-dkms open-vm-tools
- restart
- sudo apt-get install open-vm-tools build-essential open-vm-toolbox
- sudo m-a
- Choose select and activate open-vm
- Click okay, then select build
- Once it completes it will ask if you want to install. Choose yes, then quit out of m-a and reboot.
- After a reboot check to see that the vm modules inserted into the kernel properly.
- lsmod | grep vm
- The 4 following modules should be listed: vmsync,vmmemctl, vmhgfs, vmci.
- sudo vmware-config-tools.pl
- /usr/bin/vmware-user
- then restart the virtual machine
vendredi 12 février 2010
Word 2007: Raccourci clavier pour coller sans mise en forme
Créer une nouvelle macro dans le modèle global normal.dotm
Bouton Office / Options Word / Personaliser / Raccourcis clavier Personaliser ...
Selectionner Catégorie Macro et Commande PasteNoFormat
Choisir nouvelle touche de raccourci, ex. Ctrl+Shift+V
Sub PasteNoFormat()Affecter un raccourci clavierà cette macro
Selection.PasteAndFormat (wdFormatPlainText)
End Sub
Bouton Office / Options Word / Personaliser / Raccourcis clavier Personaliser ...
Selectionner Catégorie Macro et Commande PasteNoFormat
Choisir nouvelle touche de raccourci, ex. Ctrl+Shift+V
Modifier la résolution d'une diapositive que vous exportez en tant qu'image dans PowerPoint
Cet article explique étape par étape comment modifier le nombre de points par pouce (paramètres ppp) de la résolution des diapositives exportées, par l'ajout d'une nouvelle valeur de Registre pour Microsoft Office PowerPoint 2003 ou pour Microsoft Office PowerPoint 2007. Cet article décrit également comment exporter une diapositive en tant qu'image.
Remarque: Le tableau ci-après répertorie les paramètres par défaut pour une diapositive que vous exportez en tant qu'image.
Pixels : 960 x 720
Points par pouce (ppp) : 96 ppp (horizontal et vertical)
Ajout de paramètres de Registre
Pour exporter une diapositive en tant qu'image avec une résolution supérieure à 96 ppp (par défaut), vous devez ajouter une valeur de Registre. Pour cela, procédez comme suit :
Remarque Le paramètre de résolution maximale pour l'exportation PowerPoint 2003 est de 307 ppp.
Valeur hexadécimale / Pixels (horizontal x vertical) / Points par pouce (horizontal et vertical)
50 / 500 x 375 / 50 ppp
96 (par défaut) / 960 x 720 / 96 ppp
100 / 1000 x 750 / 100 ppp
150 / 1 500 x 1 125 / 150 ppp
200 / 2 000 x 1 500 / 200 ppp
250 / 2 500 x 1 875 / 250 ppp
300 / 3 000 x 2 250 / 300 ppp
Exportation d'une diapositive PowerPoint en tant qu'image
Pour exporter une diapositive PowerPoint en tant qu'image, procédez comme suit :
Par exemple, dans la zone Type, sélectionnez l'une des valeurs suivantes :
Restrictions
Lorsque vous définissez la valeur de Registre ExportBitmapResolution afin de modifier la résolution d'exportation d'une image de Microsoft Office PowerPoint 2003, vous devez tenir compte d'une limitation. Le paramètre de résolution maximale utilisé par Office PowerPoint 2003 est de 3 072 pixels mesurés à partir du bord le plus long de la diapositive. Par exemple, la diapositive standard 10x7.5" aurait la valeur PPP maximale 307. (10x307) = 3070. La mesure de 3 070 pixels est dans la limite de 3 072. Tout paramètre PPP supérieur à 307 pour la diapositive standard reviendrait à la limite 3 072.
Réduire ce tableauAgrandir ce tableau
Valeur hexadécimale : 307
Pixels (horizontal x vertical) : 3 072 x 2 304
Points par pouce (horizontal et vertical) : 307 ppp
Remarque La limite de 3 072 pixels s'applique également à l'enregistrement par programmation d'une diapositive. Le code conçu pour l'exportation d'une diapositive selon une mesure en pixels donnée sera également limité à 3 072 pixels.
Par exemple, ActiveWindow.Selection.SlideRange(1).export "c:\filename.jpg","JPG",4000,3000 permettra l'exportation par programmation en une image à 3 072x2 304 pixels.
Remarque: Le tableau ci-après répertorie les paramètres par défaut pour une diapositive que vous exportez en tant qu'image.
Pixels : 960 x 720
Points par pouce (ppp) : 96 ppp (horizontal et vertical)
Ajout de paramètres de Registre
Pour exporter une diapositive en tant qu'image avec une résolution supérieure à 96 ppp (par défaut), vous devez ajouter une valeur de Registre. Pour cela, procédez comme suit :
- Fermez toutes les applications Microsoft Windows.
- Cliquez sur Démarrer, puis sur Exécuter.
- Dans la zone Ouvrir, tapez regedit, puis cliquez sur OK.
- Développez l'arborescence du Registre jusqu'à la clé concernant la version de PowerPoint que vous utilisez :
- PowerPoint 2003: HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\PowerPoint\Options
- PowerPoint 2007: HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\PowerPoint\Options
- La clé Options étant sélectionnée, pointez sur Nouveau dans le menu Edition, puis cliquez sur Valeur DWORD.
- Tapez ExportBitmapResolution, puis appuyez sur ENTRÉE.
- Avec la valeur ExportBitmapResolution sélectionnée, cliquez sur Modifier dans le menu Edition.
- Dans la zone Données de la valeur, tapez la valeur de résolution de votre choix, en vous aidant du tableau ci-dessous.
- Cliquez sur Décimal, puis sur OK.
- Dans le menu Fichier, cliquez sur Quitter pour quitter l'Éditeur du Registre.
Remarque Le paramètre de résolution maximale pour l'exportation PowerPoint 2003 est de 307 ppp.
Valeur hexadécimale / Pixels (horizontal x vertical) / Points par pouce (horizontal et vertical)
50 / 500 x 375 / 50 ppp
96 (par défaut) / 960 x 720 / 96 ppp
100 / 1000 x 750 / 100 ppp
150 / 1 500 x 1 125 / 150 ppp
200 / 2 000 x 1 500 / 200 ppp
250 / 2 500 x 1 875 / 250 ppp
300 / 3 000 x 2 250 / 300 ppp
Exportation d'une diapositive PowerPoint en tant qu'image
Pour exporter une diapositive PowerPoint en tant qu'image, procédez comme suit :
- Démarrez PowerPoint et ouvrez votre présentation de diapositives.
- Ouvrez la diapositive à exporter.
- Dans le menu Fichier, cliquez sur Enregistrer sous.
- Dans la zone Type, sélectionnez le type d'image dans lequel vous voulez exporter votre diapositive, puis cliquez sur Enregistrer.
Par exemple, dans la zone Type, sélectionnez l'une des valeurs suivantes :
- Format GIF Graphics Interchange (*.gif)
- Fichier d'échange JPEG (*.jpg)
- Format PNG Portable Network Graphics (*.png)
- Format TIFF (*.tif)
- Bitmap indépendante du périphérique (*.bmp)
- Métafichier Windows (*.wmf)
- Métafichier Windows amélioré (*.emf)
Restrictions
Lorsque vous définissez la valeur de Registre ExportBitmapResolution afin de modifier la résolution d'exportation d'une image de Microsoft Office PowerPoint 2003, vous devez tenir compte d'une limitation. Le paramètre de résolution maximale utilisé par Office PowerPoint 2003 est de 3 072 pixels mesurés à partir du bord le plus long de la diapositive. Par exemple, la diapositive standard 10x7.5" aurait la valeur PPP maximale 307. (10x307) = 3070. La mesure de 3 070 pixels est dans la limite de 3 072. Tout paramètre PPP supérieur à 307 pour la diapositive standard reviendrait à la limite 3 072.
Réduire ce tableauAgrandir ce tableau
Valeur hexadécimale : 307
Pixels (horizontal x vertical) : 3 072 x 2 304
Points par pouce (horizontal et vertical) : 307 ppp
Remarque La limite de 3 072 pixels s'applique également à l'enregistrement par programmation d'une diapositive. Le code conçu pour l'exportation d'une diapositive selon une mesure en pixels donnée sera également limité à 3 072 pixels.
Par exemple, ActiveWindow.Selection.SlideRange(1).export "c:\filename.jpg","JPG",4000,3000 permettra l'exportation par programmation en une image à 3 072x2 304 pixels.
Inscription à :
Articles (Atom)