Xavier Robin – Tag – Ubuntutag:xavier.robin.name,2010-05-28:/fr/feed/tag/ubuntu2013-01-23T12:26:50.833773000+01:00weekly2https://xavier.robin.name/fr/img/favicon.icoXavier Robinhttps://xavier.robin.name/fr/contactUnifying a new Logitech mouse on Ubuntu 12.10tag:xavier.robin.name,2012-12-28:/blog/2012/12/28/unifying-a-new-logitech-mouse-on-ubuntu-12.102012-12-28T14:06:16+01:002012-12-28T18:36:42+01:00<p>I just received my new Logitech Performance MX mouse. It is a wonderful mouse, one of the rare being big enough to fit comfortably in my hand. Unfortunately, it comes with a <em>Unifying</em> receiver that is not well supported on Linux. Because I already have an other Unifying Logitech mouse (a small portable M325), I wanted both to be associated with the same receiver (don't want to switch the receiver each time I change my mouse).</p>
<p>Rather than booting on Windows to pair both mouses, I followed <a href="http://tycho.ws/blog/2011/12/logitech-unifying-receiver">Tycho Andersen's instructions to pair new devices in Linux</a>. I saved the code in a file, compiled it, found that the receiver was on hidraw0 (I have a Logitech Unifying Device. Wireless PID:400a on hidraw1, but it is really the device named <i>Logitech USB Receiver</i> that you must select), turned off the MX mouse, ran the program, quickly turned the mouse on… and it works!</p>
<p>The next step is to <a href="http://forums.logitech.com/t5/Mice-and-Pointing-Devices/Guide-for-setup-Performance-MX-mouse-on-Linux-with-KDE/td-p/517167">setup the additional buttons</a> (and there are quite a few of them).</p>Convert Pentax K-5 AVI video to OGG for wikipedia in Ubuntu Precise Pangolin… with no clickstag:xavier.robin.name,2012-08-01:/blog/2012/08/01/convert-pentax-k-5-avi-video-to-ogg-for-wikipedia-in-ubuntu-precise-pangolin-with-no-clicks2012-08-01T16:34:22+02:002012-08-01T16:34:22+02:00<p>I captured a video with my Pentax K-5, and I wanted to send it to Wikipedia (in fact, to Wikimedia Commons) where OGG files are required. The conversion can be done very easily under Linux with avconv (previously known as ffmpeg):</p>
<pre>avconv -i IMGP7212.AVI -acodec libvorbis -ab 256k -ac 2 -vcodec libtheora -qscale 10 IMGP7212.ogg</pre>
<p>However, the sound is poor because there are <em>clicks</em> (or thumps or cracks or whatever you want) every second or so. Apparently it is <a href="http://www.pentaxforums.com/forums/pentax-k-5/131842-thump-sound-video.html">frequent issue</a> that is hardware or software dependent. I get a good sound if I play the video in VLC, apparently the PCM audio is correctly handled. As VLC can convert media files, I used it to get a video with a decent audio.</p>
<p>Let's go through.</p>
<ol>
<li>The first step is to open VLC and select the Media > “Convert / Save” menu. Select your file and click on the “Convert / Save” button.</li>
<li>Select the destination file.</li>
<li>In the Profile setting, choose “Video – Theora + Flac (OGG)”. You need vorbis audio encoding if you want the sound track to play in Firefox (and probably others), but on my computers the vorbis encoder is broken. We'll care about that later.</li>
<li>Click on the “Edit selected profile” button just on the right of the profile.</li>
<li>In the Video codec tab, make sure the Video checkbox is checked, “Keep original video track” is unchecked and Theora is selected as codec. Select a good bitrate (you can go up to 5000 or 10000 kb/s if you want a good quality and your video isn't too long. It'll generate a big video file, but not at all as big as the original AVI anyway, and Mediawiki will resize the video itself when it sends it to the web browsers.).</li>
<li>Select Frame Rate and Width according to the video options you have set in your K-5. Leave the Scale and Height fields blank (or 0)</li>
<li>In the Audio codec tab, make sure the Audio checkbox is checked, “Keep original audio track” is unchecked and the Flac codec is selected. I believe Bitrate is ignored. Channels is 1 but we will switch to 2 later anyway, so put what you want here. Sample Rate is 44100.</li>
<li>Click Save.</li>
<li>Click Start.</li>
<li>Wait.</li>
</ol>
<p>When the conversion is done in VLC, we switch to a command line to re-encode the audio track in vorbis. We set the vorbis codec (<code>-acodec libvorbis</code>), with a good bit rate (<code>-acodec libvorbis</code>) and 2 channels (<code>-ac 2</code>, apparently avconv cannot deal with only 1). We keep the video track intact (<code>-vcodec copy</code>).</p>
<pre>avconv -i IMGP2712.ogg -acodec libvorbis -ab 256k -ac 2 -vcodec copy IMGP2712_vorbis.ogg</pre>
<p>And that's it! You can now upload your video that doesn't click.</p>Gnome vs. Unitytag:xavier.robin.name,2012-07-31:/blog/2012/07/31/gnome-vs.-unity2012-07-31T20:59:59+02:002012-07-31T20:59:59+02:00<p>Until now I was using to the old, stable Lucid and Gnome 2 on all my computers. But I recently <a href="/fr/blog/2012/07/28/installation-of-ubuntu-linux-12.04-precise-pangolin-on-a-dell-latitude-e6530">installed Precise on my new Dell Latitude E6530 laptop</a>. What a shock! How could so much things change in just two years?</p>
<p>My first impressions with Unity are quite mixed. It is unsettling: no task bar, this dock <em>à la</em> Mac, these ugly dark colors…</p>
<p>Clearly it is a good move, I'm already getting used to it. I like the optimization of the vertical space (that gets so scarce and precious with wide screens) with the dock to the side (I had already done so several years ago with Gnome 2's tasks bar on my laptop, only on the right). I love the dash, even though some programs are still missing and <a href="http://askubuntu.com/questions/67753/how-do-i-add-an-application-to-the-dash">it is not obvious how to add a command there</a>. It is wonderful to launch applications without the mouse.</p>
<p>On the dark side, I don't like the lack of customization (well, in fact it is possible but you have to do a lot of research over the Internet and edit a lot of text files), and I still really miss the task bar (it is tedious to switch between a lot of windows with the launcher). More virtual desktops won't solve the problem, and in addition they are less accessible than they used to be (you need two clicks rather than one, and I couldn't find how to drag and drop windows easily to another desktop, you need to right-click on the title bar and select an action… awfully tedious). The merge of the panel with menu and title bars makes is a bit clumsy and the reaction is quite unpredictable, at least in the beginning. But I think Unity's way is globally more efficient, once you are used to it (and it doesn't get that long).</p>
<p>Out of pure curiosity, I installed and tested <a href="http://www.filiwiese.com/installing-gnome-on-ubuntu-12-04-precise-pangolin/">Gnome 3</a>. Maybe it could be even better? Its development went quite the same way than Unity: the dash, the launcher (hidden by default), the panel. The activities is a wonderful thing, I wish it would be the same in Unity. But I won't stay with it, next login will be with Unity. Here is why.<p>
<ol>
<li>Maybe the most striking difference is the use of vertical space. In Unity the title and menu bars are merged with the panel. In Gnome 3 all this stuff takes 55 more pixels, that is 5% of my screen!It could be OK with a large desktop screen, but on a laptop it is definitely an unacceptable waste.</li>
<li>Shell extensions sound good, but the website is so slow! Why do we need a remote control over the desktop? I'm suspecting that there are potential security issues too.</li>
<li>I don't like the lack of a task bar. I already said that. But the hidden dock makes it even worse. To switch between windows you either need to open the activities and select your window, or to use <kbd>Alt</kbd> + <kbd>Tab</kbd>. It is terminally impossible to quickly switch from one window to another when you have more than two windows open on your desktop.</li>
</ol>
<p>It's a pity, because the activities window is absolutely amazing!</p>Installation of Ubuntu Linux (12.04 Precise Pangolin) on a Dell Latitude E6530tag:xavier.robin.name,2012-07-28:/blog/2012/07/28/installation-of-ubuntu-linux-12.04-precise-pangolin-on-a-dell-latitude-e65302012-07-28T21:16:06+02:002012-12-01T13:48:11+01:00<p>I received a Dell Latitude E6530. It is a beautiful and powerful 15.6' laptop. I took 8GB of RAM, 750GB hard drive, the Intel Core i7-3720QM CPU @ 2.60GHz and an nVidia NVS 5200M. The matte (anti-glare) screen (I took the full HD version (1920x1080)) is really nice and well contrasted with vivid colors and deep blacks for a laptop. Pixels are small, but not that small (140dpi), and you can fit a lot in such a big screen.</p>
<p class="illustration"><a href="/files/blog/2012/07/28/laptop_merged.jpg" title="Voir la photo du portable en gros plan"><img src="/files/blog/2012/07/28/laptop_merged_small.jpg" alt="Photo du routeur" /></a></p>
<p>The keyboard has a numeric pad. Not sure it will be really useful (I rarely use it). The effect is to shift the useful keys a bit to the left. Not so comfortable, but it is not too bad and I am already getting used to it.</p>
<p>As expected from Dell, the laptop is well built and looks robust. It is fast and rather silent, though a bit expensive. It tends to heat a bit, especially on the left side with the fan. It may not be optimal for those who intend to work with it on their lap…</p>
<p>The laptop comes with Windows 7 pre-installed. I installed Ubuntu Precise Pangolin in dual boot, from a USB stick. The process was globally successful, even though a few things still doesn't work. Let's go through what I discovered during this process.</p>
<h2>Disclaimer</h2>
<p>This post is not a tutorial. It is only a set of notes, aimed at people who know how to use and install Linux.</p>
<p>You perform the following operations at your own risk. I decline any responsibility for all damage, loss of data or anything else (including, but not limited to, the burning of your computer, house or town, the death of a cat, yourself or any one else, the destruction of the Earth or the universe, etc.) that could result directly, indirectly, or in any other way, from performing the following operations. You are warned!</p>
<h2>Disabling Optimus</h2>
<p>Optimus is a wonderful idea… on the paper! Very shortly: some Intel Cores come with an integrated graphic chip (in this case it is an Intel HD Graphics 4000). The additional nVidia card comes with a system called <em>Optimus</em> which will enable the nVidia card only when the most demanding applications are running. The rest of the time, the nVidia card is disabled to save power. The Intel chip is sufficient for most applications, and certainly for all compiz effects.</p>
<p>But unfortunately nVidia does not provide a Linux driver for Optimus. <del datetime="2012-12-01">It isn't clear what actually happens. Is it the Intel or the nVidia card that is enabled? I guess the former is true, but I am quite unsure</del>. To make use of optimus, you need to install <a href="http://bumblebee-project.org/">Bumblebee</a> to enable/disable it on demand. Basically it will run on the Intel chip and start the nVidia card only when you run the <code>optirun</code> command.</p>
<p>Until now it all looks fine. The only problem is that this setup (with or without bumblebee) causes random kernel freezes. It even happened me once during the install process (luckily not during partitioning, but I guess that could happen and wipe your hard drive). Apparently it is a <a href="https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/993187">known bug</a> of the video driver. Until a fix is available, the solution I found is dramatic: disable optimus altogether and use only the <ins datetime="2012-12-01">nVidia card</ins> <del datetime="2012-12-01">Ivybrirdge graphics</del>. To avoid potentially destructive crashes during the install process (what if it occurs during the partitionning?) I recommend disabling optimus as the very first step. You can always enable it later and run your own tests with a later kernel that may have fixed this issue.</p>
<p class="step">So before you start the install, during the boot, press F12 to get the boot menu. Choose BIOS Setup, then Video > Optimus, uncheck the box and exit. Plug the USB stick and power on. It is probably a safe idea to install the proprietary drivers (<em>nvidia-current</em> package), unless you want to remain absolutely free.</p>
<p><ins datetime="2012-12-01">There was some confusion previously regarding the effect of disabling Optimus. In some older BIOS revisions (probably until A04 or A05) it would disable the Nvidia card and let only the Intel Graphics run. Now (BIOS A07), the Nvidia card is enabled when Optimus is disabled. <em>Nvidia-current</em> drivers are working. This behavior may change with a future BIOS revision, I have no idea.</ins></p>
<h2>Booting on the USB stick</h2>
<p>The E6530 won't boot from a plugged USB stick automatically. I selected the boot device manually.</p>
<p class="step">Plug the USB stick. Power on. Press F12 to get the boot menu. The USB Storage Device was not working so I selected the UEFI Generic Flash Disk.</p>
<h2>Partitionning</h2>
<p>The E6530 comes with 3 partitions on the hard drive: </p>
<ol>
<li>39MiB of FAT16 labelled "DellUtility"</li>
<li>752MiB of NTFS labelled "RECOVERY"</li>
<li>The remaining is formatted in NTFS and contains Windows 7 (labelled "OS")</li>
</ol>
<p class="step">First step: to shrink the Windows partition (I kept 50GiB). It is normally recommended to perform that operation from Windows directly. However I found that I could free only a few GiB, so I did it from gparted in the live Linux.</p>
<p>Then I secured a small partition for the Linux system, a bit of swap (as much as the RAM plus a bit for safety), and all the rest as a shared partition so the data is available both in Linux and Windows.</p>
<p class="step">The next step was to create an extended partition (you cannot have that many partitions without an extended partition). I then created the following 3 partitions:</p>
<ol class="step">
<li>I secured 25GiB ext4 for the system (sda5, mounted on "/"). In practice it is more than enough for the system and some files in your home directory (we will put the big data files elsewhere).</li>
<li>I created 12GiB of swap on sda6. I have 8GiB of RAM, and as much swap is required if you want to hibernate. There are 4 additional GiB to hibernate under high memory load. Probably useless, but also harmless with a 750GB disk.</li>
<li>All the rest (610GiB, sda7) is formatted as NTFS and mounted on /mnt/data.</li>
<li>I put the bootloader on the partition mounted on / (here sda5). Anyway it will still boot through the Windows bootloader (we will configure that later).</li>
</ol>
<p>Do not try to use your big data partition directly for /home. I tried it, and it was a complete failure! The problem is that NTFS doesn't have file permissions. So either all or none of the files are executable. They all have the same owner/group. We will change the default permissions later, but it is not enough and some applications (for instance PulseAudio and Dropbox) won't work correctly.
<h2>First boot</h2>
<p>I expected to get a Grub menu where I could choose my system. But for some unknown reason I booted in Windows. After some time, I figured out I had to forget about Grub and configure Windows' bootloader instead.</p>
<p class="step">
I downloaded and installed <a href="http://neosmart.net/EasyBCD/">EasyBCD</a> (non-commercial) and set it up <a href="http://neosmart.net/wiki/display/EBCD/Windows+7">as instructed</a> (see also <a href="http://www.linuxbsdos.com/2012/05/17/how-to-dual-boot-ubuntu-12-04-and-windows-7/2/" title="More detailed procedure to setup EasyBCD">this more detailed procedure</a>).</p>
<h2>boot-restore</h2>
<p>At this point, I can boot on linux, but grub was broken and showed a (rather unfriendly) command line.</p>
<p class="step">After a good old Ctrl+Alt+Del, I read <a href="https://help.ubuntu.com/community/Boot-Repair">boot-restore</a>, rebooted from the USB stick, did as instructed, checked a few thinks that made sense on the moment (sorry, didn't note what exactly, all I remember is I didn't restore MBR).</p>
<p>Reboot and select Linux.</p>
<p>Welcome in Precise Pangolin!</p>
<h2>Hide GRUB</h2>
<p>As we make our choice of OS with Windows bootloader, it is useless to make it again with grub.</p>
<p class="step"> So I edited /etc/default/grub and added the following line:</p>
<pre class="step">GRUB_DISABLE_OS_PROBER=true</pre>
<p class="step">To apply: <code>sudo update-grub</code>.</p>
<h2>Change the default permissions for /mnt/data</h2>
<p>By default the NTFS drives are mounted with files owned by root:plugdev (user:group) with write permissions to the group. As the first user is a member of the plugdev group he can write on it. For some reason (that turned out totally useless) I wanted to tweak that to own the files. You can probably disregard the next step.</p>
<p class="step">Open /etc/fstab with root permissions. Find the line containing /mnt/data. Locate the "defaults,umask=007,gid=46" block.I replaced it with "defaults,fmask=133,dmask=022,gid=1000,uid=1000". Make sure not to include any space.</p>
<p>What it means:</p>
<ul>
<li>fmask=133 is the permission for all files. The syntax is quirk and the number meaning is reversed. Basically you have rw for user, and r for group and others. You can't change individual files.</li>
<li>dmask=022 is for directories. They are executable by everyone.</li>
<li>gid=1000,uid=1000 is your group and user ids. You can find them in /etc/passwd, just after your user name.</li>
</ul>
<h2>Create symbolic links</h2>
<p>Now I have a big partition where I can write all my data. But I don't want to go to /mnt/data each time. So I created symbolic links that pointed the most important directories in my home to /mnt/data.</p>
<pre class="step">mv Desktop /mnt/data && ln -s /mnt/data/Desktop .
mv Desktop /mnt/data && ln -s /mnt/data/Desktop .
mv Documents /mnt/data && ln -s /mnt/data/Documents .
mv Images /mnt/data && ln -s /mnt/data/Images .
mv Music /mnt/data && ln -s /mnt/data/Music .
mv Downloads /mnt/data && ln -s /mnt/data/Downloads .
mv Videos /mnt/data && ln -s /mnt/data/Videos .</pre>
<p>… and so on. Just repeat this procedure each time a folder grows a bit. You can do the same kind of things in Windows, as explained by <a href="http://lifehacker.com/5403100/dual+boot-windows-7-and-ubuntu-in-perfect-harmony" title="Lifehacker: Dual-Boot Windows 7 and Ubuntu in Perfect Harmony">Lifehacker</a>.</p>
<h2>Enabling hibernate mode</h2>
<p>I followed <a href="http://askubuntu.com/questions/94754/how-to-enable-hibernation-in-12-04">Community♦'s instructions on Ask Ubuntu</a>.</p>
<h2>Conclusion</h2>
<p>Overall this laptop works really fine. Dell clearly made a laptop that is compatible with Linux. Most issues I described here are in fact dual-boot issues, not Linux issues.</p>
<p>What works out of the box:</p>
<ul>
<li>The webcam</li>
<li>The sound (both in and out, built-in or through the combo jack)</li>
<li>The sound buttons (mute, sound up and down… but surprisingly they do not operate from the login screen)</li>
<li>The external display with VGA plug (either duplicate or extended screen modes).</li>
<li>The WiFi and bluetooth</li>
<li>The SD slot</li>
<li>USB 3.0 (100MB/s large files write to a WD My Book Essential, reaching 120MB/s on sequential writes (whole volume with <code>dd</code> command), probably limited by the disks themselves).</li>
<li>Pretty much everything else…</li>
</ul>
<p>What can be fixed:</p>
<ul>
<li>Hibernation mode (see above)</li>
<li>Kernel freezes (disable Optimus, see above)</li>
<li>The touchpad is detected as a generic mouse by default. It works in degraded mode, you can move the cursor and click, but there is no scrolling (some other features are probably missing too). It is a <a href="https://bugzilla.kernel.org/show_bug.cgi?id=45201">known bug</a> which should be fixed in a future kernel. Meanwhile, you can follow <a href="http://resalxh.wordpress.com/2012/09/18/ubuntu-12-04-lts-x64-the-next-step-getting-touchpad-working/">resalxh's instructions</a> to apply a patch and have it work (thanks <a href="#comment544">Flix</a> for the pointer).</li>
<li>The backlight is enabled for only 5 seconds, which makes it mostly useless. You can change its intensity with the <kbd>Fn</kbd> key, but not its duration. It can't be changed in the BIOS either. You have to start in Windows, go to the control panel and change the backlight settings there. I selected 1 minute illumination, which is enough this time (thanks <a href="#comment544">Flix</a> for the pointer). I don't know how this could be done from Linux, but it will do well enough like this.</li>
<li>HDMI external display requires X to run the non-free nvidia driver, so Optimus must be disabled. Install and run nvidia-settings to setup the monitor.</li>
</ul>
<p>What I couldn't fix yet (by order of importance):</p>
<ul>
<li>Intel video driver freezes the kernel.</li>
<li><del datetime="2012-09-08">External monitors (plugged on the VGA slot) get the desktop shifted (by the width of the launcher, so no launcher and a small black band at the right).</del> <ins datetime="2012-09-08">In fact this was a monitor configuration issue, which must be adjusted (possibly with an auto-adjust setting).</ins datetime="2012-09-08"></li>
<li><del datetime="2012-09-08">Suspend by closing the lid. Works but doesn't wake up properly, I have a black screen with the cursor, I need to switch to a console to restart the X server.</del> <ins datetime="2012-09-08">Well, somehow this seems to work now, I have no idea why.</ins></li>
<li>The battery charge indicator significantly underestimates the time remaining to complete the recharge. Discharge times are rather correct. Please note that I didn't check if it was better in Windows.</li>
<li>Alt+SysRq keys work only from external (USB) keyboards.</li>
</ul>
<p>What wasn't tested:</p>
<ul>
<li>eSATA port</li>
<li>Docking stations</li>
</ul>
<p><strong>Edit on 2012-08-02</strong>: apparently once optimus is disabled only the Intel Ivybridge graphics is active, not the nVidia. At least I failed having the nvidia driver operating properly.</p>
<p><strong>Edit on 2012-10-13</strong>: added the <a href="http://resalxh.wordpress.com/2012/09/18/ubuntu-12-04-lts-x64-the-next-step-getting-touchpad-working/">patch</a> for the touchpad, and it is possible to change the backlight time. Thanks <a href="#comment544">Flix</a> for the pointers.</p>
<p><strong>Edit on 2012-12-01</strong>: HDMI + USB 3.0 were tested. HDMI requires Optimus disabled + Nvidia non-free drivers. Install and start nvidia-settings to configure. Also Nvidia card is active when Optimus is disabled in the latest BIOS revision.</p>Scanner Epson perfection 2580 Photo sous Ubuntu 8.10 (Intrepid Ibex) 64 bits (amd64)tag:xavier.robin.name,2008-12-23:/blog/2008/12/23/scanner-epson-perfection-2580-photo-sous-ubuntu-8.10-intrepid-ibex-64-bits-amd642008-12-23T21:01:00+01:002009-05-16T14:42:00+02:00<!-- publié sur http://xavablog.romandie.com/post/14066/140467 -->
<p> Voici la marche à suivre pour faire fonctionner un scanner Epson perfection 2580 Photo sous Ubuntu 8.10 en amd64 (via l'excellent Xsane, un peu austère mais terriblement efficace). Elle est passablement basée sur <a href="http://forum.ubuntu-fr.org/viewtopic.php?pid=2298281#p2298281">le message de ZavezPasVu sur le forum Ubuntu-fr</a>, même si au final il n'y a plus grand chose de l'original (en particulier, utilisation de snapscan au lieu d'epkowa), c'est lui qui m'a permis d'arriver au résultat ci-dessous.</p><p>Tout d'abord, vérifiez que votre scanner est bien connecté : </p><pre>> lsusb<br />(...)<br />Bus 002 Device 007: ID 04b8:0121 Seiko Epson Corp. Perfection 2480 Photo</pre>Ne vous inquiétez pas si le numéro de scanner n'est pas le bon : le 2480 et le 2580 ont le même identifiant et ne sont pas distinguables par lsusb. <p>Il va falloir télécharger le firmware pour le driver snapscan. Rendez-vous sur <a href="http://www.avasys.jp/lx-bin2/linux_e/scan/DL1.do">la page de téléchargement d'Avasys</a>. Choisissez le modèle de scanner (2580), la distribution (Ubuntu) et la version (8.10), et entrez des infos de localisation bidons. Téléchargez le fichier <a href="http://lx1.avasys.jp/iscan/v1180/iscan-plugin-gt-f500-1.0.0-1.c2.i386.rpm"><code>iscan-plugin-gt-f500-1.0.0-1.c2.i386.rpm</code></a> et enregistrez-le, par exemple, dans un dossier <code>scanner</code> sur votre bureau.</p><p>Vous aurez besoin du paquet <a href="http://blogadmin.romandie.com/rpm">rpm</a> pour pouvoir lire le rpm.Installez-le en cliquant sur le lien précédent ou avec la commande suivante :</p><pre>sudo apt-get install rpm</pre><p>Double-cliquez sur ce fichier pour l'ouvrir dans File Roller. Déplacez-vous dans le dossier <code>./usr/share/iscan/</code>. Vous y trouverez un fichier nommé <code>esfw41.bin</code>. Il s'agit du fammeux "firmware" de votre scanner. Décompressez-le dans le dossier <code>scanner</code>.</p><p>Ouvrez une console (Application -> Accessoires -> Terminal) et déplacez-vous dans le dossier <code>scanner</code> : </p><pre>cd ~/Desktop/scanner</pre> On va maintenant copier ce fichier : <pre>sudo mkdir /usr/share/sane/snapscan<br />sudo cp esfw41.bin /usr/share/sane/snapscan/</pre> Entrez votre mot de passe et vérifiez qu'il n'y a pas de message d'erreur. Il faudra encore rendre ce fichier lisible (par défaut, seul root le peux, ce qui ne nous arrange pas car vous voudrez probablement utiliser votre scanner en mode non privilégié). Pour cela : <pre>cd /usr/share/sane/snapscan/<br />sudo chmod +r esfw41.bin</pre>Vérifiez que l'opération s'est bien passée. Il va maintenant falloir dire à snapscan où trouver ce fichier. <pre>gksudo gedit /etc/sane.d/snapscan.conf</pre> En haut du fichier, trouvez la ligne <pre>firmware /usr/share/sane/snapscan/your-firmwarefile.bin</pre> et remplacez-là par <pre>firmware /usr/share/sane/snapscan/esfw41.bin</pre> À ce stade là, un scanimage pourrait échouer en mode non privilégié, mais devrait fonctionner à coup sûr en mode superutilisateur <pre>$ scanimage -L<br />No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages).<br />$ sudo scanimage -L<br />device `snapscan:libusb:002:007' is a EPSON EPSON Scanner flatbed scanner</pre><p>Si vous n'avez pas besoin de faire un <code>sudo</code> pour que le scanner soit reconnu, alors vous avez gagné et votre scanner est maintenant pleinement fonctionnel ! Si ce n'est pas le cas et que vous devez faire <code>sudo</code> pour que votre scanner soit reconnu, pas de panique : voici la marche à suivre.</p><pre>gksudo gedit /etc/udev/rules.d/50-libsane-extras.rules</pre>Trouvez la ligne concernant votre scanner :<pre># EPSON Perfection 2580 PHOTO <br />SYSFS{idVendor}=="04b8", SYSFS{idProduct}=="0121", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"</pre>et remplacez-la par <pre># EPSON Perfection 2580 PHOTO<br />SYSFS{idVendor}=="04b8", SYSFS{idProduct}=="0121", MODE="0666", GROUP="scanner", ENV{libsane_matched}="yes"</pre><p>(changez <code>0664</code> en <code>0666</code>)</p><p>Redémarrez udev :</p><pre>$ sudo /etc/init.d/udev restart<br />* Loading additional hardware drivers... [ OK ] </pre>et re-testez scanimage :<pre>$ scanimage -L<br />device `snapscan:libusb:002:007' is a EPSON EPSON Scanner flatbed scanner</pre><p>Et voilà ! Vous n'avez plus qu'à démarrer xsane (menu Application -> Graphisme), ou en entrant simplement <code>xsane</code> dans la console pour voir d'éventuels messages d'erreur résiduels.</p><p>Bon scan !</p><p>PS : je ne suis pas arrivé à ce résultat directement et j'ai fait pas mal d'autres manipulations auparavant pour y arriver finalement. N'hésitez pas à utiliser les commentaires si quelque chose ne fonctionne pas correctement.</p> <p>PPS : ce tutoriel devrait également fonctionner pour l'Epson Perfection 2480 Photo, l'Epson GT-F500 et l'Epson GT-F550.</p><p>Édition du 16 mai 2009. Quelques petites erreurs s'étaient glissées dans le tutorial :</p><ul><li>il manquait la précision de l'installation du paquet <code>rpm</code>, indispensable pour ouvrir un rpm dans File Roller ; </li><li>il manquait le nom du fichier à copier dans la commande <code>cp</code> pour placer le firmware dans <code>/usr/share/sane/snapscan/</code></li></ul>De plus, en effectuant à nouveau cette installation aujourd'hui, je n'ai pas besoin de la dernière partie car <code>scanimage</code> fonctionne directement après la modification de <code>snapscan.conf</code>.Renommer des fichiers en masse dans Nautilustag:xavier.robin.name,2008-08-23:/blog/2008/08/23/renommer-des-fichiers-en-masse-dans-nautilus2008-08-23T16:40:00+02:002008-08-23T16:40:00+02:00<!-- publié sur http://xavablog.romandie.com/post/14066/126585 -->
<p>Pour renommer plusieurs fichiers d'un coup dans Nautilus, il existe existe une excellente solution : l'action pour Nautilus <a href="http://www.grumz.net/?q=node/285">thunar-bulk-rename</a>.</p><p>Pour cela, il suffit d'installer les paquets <code>thunar</code> et <code>nautilus-actions</code>, puis d'enregistrer le schéma <a href="http://www.grumz.net/?q=system/files&file=thunar-bulk-rename.schemas">thunar-bulk-rename.schemas</a> dans <code>~/.nautilus/</code>. On redémarre Nautilus (<code>killall nautilus</code>, il redémarre ensuite automatiquement), et voici le résultat :</p><p><img src="/files/nautilus-action.png" alt="Renommage en masse dans Nautilus grâce à nautilus-actions."> </p><p><img src="/files/thunar-bulk-rename.png" alt="Renommer en masse dans Thunar"> </p>Retourtag:xavier.robin.name,2006-09-04:/blog/2006/09/04/retour2006-09-04T19:48:00+02:002006-09-04T19:48:00+02:00<!-- publié sur http://home.etu.unige.ch/~robin0/blog/archives/2006/09/entry_143.xhtml -->
<p>Après plus de six mois sans poster, je pense m'y remettre. J'ai réussi me connecter au serveur WebDav de l'uni grâce à Konqueror (visiblement, ce n'est pas possible par nautilus).</p>
<p>Tout n'est pas parfait, je n'ai pas réussi à monter le dossier réseau pour y accéder directement dans l'arborescence des fichiers, mais je me satisferai du résultat actuel.</p>
<p>Vous l'aurez deviné, dans l'intervalle, je suis passé à Linux. La migration s'est bien déroulée, je suis sous Ubuntu, et le nouveau thème Human pour Gnome est vraiment beau. Le réseau s'est configuré sans soucis. Tout baigne !</p>