tag:blogger.com,1999:blog-74261433349675241372024-03-13T22:19:27.023+01:00Linux NotesUnknownnoreply@blogger.comBlogger141125tag:blogger.com,1999:blog-7426143334967524137.post-15002242797364672642012-01-14T22:38:00.002+01:002012-01-14T22:38:47.699+01:00Unscaled (constrained) 3D point plots using gnuplot<code>set size square</code> only works for 2D, for 3D plots use <code>set view equal</code>:
<pre>
set view equal
splot "points.dat" with points pt 7 ps 0.5
</pre>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7426143334967524137.post-24859560049407070332011-10-22T14:23:00.000+02:002011-10-22T14:23:39.399+02:00This is a small script to visualize Medtronic / Minimed CareLink blood glucose measurement data that has been exported to a CSV file to produce a nice PDF graph with gnuplot, like this:
<a title="View Plot on Scribd" href="http://www.scribd.com/doc/69854647/Plot" style="margin: 12px auto 6px auto; font-family: Helvetica,Arial,Sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; display: block; text-decoration: underline;">Plot</a><iframe class="scribd_iframe_embed" src="http://www.scribd.com/embeds/69854647/content?start_page=1&view_mode=list&access_key=key-1w9104zz101xw284iju" data-auto-height="true" data-aspect-ratio="1.42990654205607" scrolling="no" id="doc_38617" width="100%" height="600" frameborder="0"></iframe><script type="text/javascript">(function() { var scribd = document.createElement("script"); scribd.type = "text/javascript"; scribd.async = true; scribd.src = "http://www.scribd.com/javascripts/embed_code/inject.js"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(scribd, s); })();</script>
<pre>
#!/usr/bin/env python
import sys
import csv
import datetime
import subprocess
# number of days to plot, going back from today
num_days = 7
if len(sys.argv) != 2:
print 'syntax: %s input.csv' % sys.argv[0]
sys.exit(1)
start_date = datetime.date.today() - datetime.timedelta(num_days)
out_files = {}
averages = {}
def filename(y, m, d):
return '%02d-%02d-%02d.dat' % (y, m, d)
with open(sys.argv[1]) as f:
# skip 11 header lines
for i in range(11):
f.next()
for row in csv.DictReader(f):
(d, m, y) = (int(x) for x in row['Date'].split('/'))
date = datetime.date(y + 2000, m, d)
if date >= start_date:
# Taking the raw value is more precise
#sg = row['Sensor Glucose (mmol/L)']
if row['Raw-Type'] == 'GlucoseSensorData':
raw = row['Raw-Values']
assert raw.startswith('AMOUNT=')
sg = int(raw[raw.find('=') + 1:raw.find(',')]) / 18.
if (y, m, d) in out_files:
out = out_files[(y, m, d)]
else:
out = out_files[(y, m, d)] = open(filename(y, m, d), 'wt')
time = row['Time']
(hours, minutes) = int(time[:2]), int(time[3:5])
minutes -= minutes % 5 # to make windows overlap
if (hours, minutes) in averages:
averages[(hours, minutes)][0] += sg
averages[(hours, minutes)][1] += 1
else:
averages[(hours, minutes)] = [sg, 1]
print >> out, row['Time'], sg
# close output files
for f in out_files.values():
f.close()
# write averages
average_file = 'average.dat'
avg, avg_n = 0., 0
with open(average_file, 'wt') as f:
for ((hours, minutes), (sigma, n)) in sorted(averages.items()):
val = float(sigma) / n
avg += val
avg_n += 1
print >> f, "%02d:%02d:00 %f" % (hours, minutes, val)
avg /= avg_n
# create gnuplot script
plot_file = 'plot.gnuplot'
eps_file = 'plot.eps'
with open(plot_file, 'wt') as f:
plots = ', '.join('"%s" using 1:2 linewidth 2 title "%02d/%02d/%02d"' % (filename(y, m, d), d, m, y) for (y, m, d) in sorted(out_files.keys()))
print >> f, '''
set terminal postscript eps color solid
set output "%s"
set style data lines
set title "Sensor glucose (mmol/L)"
set xdata time
set timefmt "%%H:%%M:%%S"
set format x "%%H:%%M"
set yrange [2:12]
set ytics 1
plot 4 notitle linewidth 3 linecolor rgb "black", 9 notitle linewidth 3 linecolor rgb "black", %f notitle linewidth 5 linecolor rgb "red", "%s" using 1:2 title "average" linewidth 5 linecolor rgb "red",''' % (eps_file, avg, average_file), plots
# Run gnuplot, and convert eps to pdf
subprocess.check_call('gnuplot ' + plot_file, shell=True)
subprocess.call('epstopdf ' + eps_file, shell=True)
</pre>Unknownnoreply@blogger.com3tag:blogger.com,1999:blog-7426143334967524137.post-41561054950352407192011-09-25T01:53:00.001+02:002011-09-30T11:20:02.528+02:00rtorrent torrent scheduling for non-peak period downloadingIn order to schedule <code>rtorrent</code> to download only during certain time intervals, e.g. non-peak periods of some ISP, you don't need a cron job. Instead you can use the <a href="http://libtorrent.rakshasa.no/ticket/2172">built-in scheduling functionality</a>. To only download between 2 am and 8 am every night, add to your <code>.rtorrent.rc</code> file:<br><code>schedule = throttle_start,02:00:00,24:00:00,"d.multicall=,d.start="
schedule = throttle_stop,08:00:00,24:00:00,"d.multicall=,d.stop="</code>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7426143334967524137.post-68760687657355816782011-05-29T13:52:00.004+02:002011-05-29T13:56:41.941+02:00Convert ogv to mkv for WDTVIn order to view videos on the WDTV, it's sometimes necessary to convert the format first.<br /><br />Get an <code>ffmpeg</code> version that supports <code>x264</code>: <a href="http://ubuntuforums.org/showthread.php?t=786095">HowTo</a>.<br /><br />Then run something like this:<br /><code>for i in *.ogv; do ffmpeg -i $i -y -vcodec libx264 -profile baseline -preset slow -crf 20 -threads 0 -acodec libfaac `basename $i .ogv`.mkv; done</code>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7426143334967524137.post-88218829933996285822011-05-29T08:08:00.003+02:002011-05-29T08:12:55.262+02:00Xfce4 (Xubuntu) and color profilesSimilar to <code>gnome-color-manager</color> for Gnome, for Xfce one can use something almost as simple to load a custom ICC color profile: <code>xcalib</color>. Just place an appropriate entry in the "Session and Startup" preferences and everything's fine.Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-7426143334967524137.post-78722609046815636732011-05-25T13:36:00.002+02:002011-05-25T13:40:15.598+02:00Connection problems with Intel Centrino Advanced-N 6230 and Linksys WRT54G routerUsing my new Dell XPS 15 (LX502) with an Intel Centrino Advanced-N 6230 wireless card I couldn't connect to my WRT54G router running the Tomato firmware anymore. Neither WPA nor WPA2 worked, not even WEP. Turns out that I had "Afterburner" mode enabled, which seems to cause problems, as also described <a href="http://communities.intel.com/thread/21134">here</a>. After disabling this feature in the Tomato interface, everything worked nicely again.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7426143334967524137.post-55909461354220782882011-03-15T13:04:00.004+01:002011-03-15T13:55:53.030+01:00Disable search indexing service in Ubuntu<code>sudo apt-get autoremove --purge tracker</code>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7426143334967524137.post-64386306536461026102010-12-14T18:20:00.003+01:002010-12-31T09:34:36.050+01:00Compiling CinePaint on Ubuntu MaverickUnfortunately there's no pre-compiled package for CinePaint available for Ubuntu anymore. Compiling the tar source ball out-of the box doesn't work either. Using the current version on SourceForge (cinepaint-0.22-1.tar.gz) I was able to patch the source a bit such that it compiles. Maybe these issues are already fixed in the CVS version, though.<br /><br />Here's the patch: <a href="http://gruenschloss.org/cinepaint/cinepaint-0.22-1-ubuntu-maverick.patch">http://gruenschloss.org/cinepaint/cinepaint-0.22-1-ubuntu-maverick.patch</a><br /><br />You can apply the patch in the extracted source directory as follows:<br /><code>patch -p1 < ../cinepaint-0.22-1-ubuntu-maverick.patch</code><br /><br />Then you need to make sure to get over the configure hurdle. By default, the configure script of CinePaint tries to use the old GTK, using the deprecated gtk-config tool. Use a command similar to the following to enable the new version. And of course you also need to make sure you have all the other required dev-version libraries installed:<br /><code>./configure --prefix=`pwd`/install --enable-gtk2 --disable-print</code><br /><br />Afterwards, it will hopefully compile and install without errors. When running, don't forget to set the <code>LD_LIBRARY_PATH</code> accordingly if you didn't install it to the system globally.<br /><br />Here are some related links:<br /><a href="http://cinepaint.bigasterisk.com/SourceTarball/">http://cinepaint.bigasterisk.com/SourceTarball/</a><br /><a href="http://ubuntuforums.org/showthread.php?t=806010">http://ubuntuforums.org/showthread.php?t=806010</a><br /><a href="http://ohioloco.ubuntuforums.org/showthread.php?t=1470662">http://ohioloco.ubuntuforums.org/showthread.php?t=1470662</a><br /><a href="http://forum.ubuntu-fr.org/viewtopic.php?id=430656">http://forum.ubuntu-fr.org/viewtopic.php?id=430656</a>Unknownnoreply@blogger.com6tag:blogger.com,1999:blog-7426143334967524137.post-75999637051564263712010-12-07T22:52:00.002+01:002010-12-07T23:02:40.692+01:00Block ads in Chrome in XfceOf course by now there are a lot of extensions for blocking ads in Chrome (similar to the popular Adblock Plus for Firefox), but a very convenient solution also is to install an HTTP proxy, like privoxy:<br /><code>sudo apt-get install privoxy</code><br /><br />If you're not running GNOME with a nice system-wide proxy configuration utility, you can set the proxy in <code>/etc/environment</code>. This also works in Xfce. Add the following to the file:<br /><code>http_proxy="http://localhost:8118"</code><br /><br />Restart your system and Chrome should be using the proxy. You can also check privoxy's settings by visiting <a href="http://config.privoxy.org/">http://config.privoxy.org/</a>.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7426143334967524137.post-82772600785191622762010-11-21T21:27:00.002+01:002010-11-21T21:30:13.912+01:00No sound in mplayerSuddenly mplayer stopped to play audio on my Ubuntu Maverick installation. I have no idea why, but switching from Pulse Audio (seems to be the default) to ALSA fixes the issue on my system:<br /><code>mplayer -ao alsa ...</code><br /><br />To make this permanent, add the following to your <code>~/.mplayer/config</code> file:<br /><code>ao=alsa</code>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7426143334967524137.post-5262609562801975972010-10-16T20:59:00.004+02:002010-10-17T16:24:39.590+02:00How to copy Accu-Chek Smart Pix dataThe Accu-Chek Smart Pix device can be used to read data from a number of blood glucose meters (e.g. Accu-Chek Aviva, Nano, etc.). Since the device simply acts as a USB drive, it's also possible to copy the generated content.<div><br /></div><div>However, there's a major problem for Linux users: the file system on the USB partition is not case-sensitive. That means opening the HTML files directly on the drive works, but after copying to a case-sensitive file system (such as EXT3/4 on Linux), the links inside the files won't work anymore.<div><br /></div><div>The following script copies the drive contents to a directory according to the current date. Afterwards, a small Python script is invoked to fix both the file names themselves and the links. It also reduces the file size a bit by converting some images to more space-efficient formats.</div><div><br /></div><div><i>copy.sh:</i></div><pre><br />#!/bin/bash<br /><br />folder=`date +%y-%m-%d`<br /><br />cp -r /media/SMART_PIX/REPORT ${folder}<br />chmod -R +w ${folder}<br />cd ${folder}<br /><br /># Rename file names and contents to lower case.<br />../lowercase.py<br /><br /># Remove some superfluous stuff.<br />rm -r img/rd*.gif img/scanning.gif img/*.png<br /><br /># Don't use bitmaps.<br />for f in `find -name "*.bmp"`; do g=${f/.bmp/.gif}; convert $f $g; rm $f; ln -s `basename $g` $f; done<br /><br /># Add index file.<br />ln -s _review.htm index.html<br /></pre><br /><div><i>lowercase.py:</i></div><pre><br />#!/usr/bin/env python<br /><br />import os<br />import re<br /><br />def rename_lower(dirpath, name):<br /> upper_path = os.path.join(dirpath, name)<br /> lower_path = os.path.join(dirpath, name.lower())<br /> os.rename(upper_path, lower_path)<br /> return lower_path<br /><br />pattern = re.compile('"([\w/.]+?)\.([\w/.]+?)"')<br /><br />for dirpath, dirnames, filenames in os.walk('.', topdown=False):<br /> # rename directories<br /> for name in dirnames:<br /> rename_lower(dirpath, name)<br /><br /> # rename files and change contents<br /> for name in filenames:<br /> filename = rename_lower(dirpath, name)<br /> text = open(filename).read()<br /> replaced = pattern.sub(lambda m: m.group(0).lower(), text)<br /> open(filename, 'w').write(replaced)<br /></pre><br />Don't forget to make both files executable:</div><div><br /><code>chmod +x copy.sh lowercase.py</code><br /><br />Afterwards, simply run <code>copy.sh</code> inside the directory where you want the copy to be stored.</div><div><br /></div><div>Also note that there's a simple way to read the blood glucose values if you want to write some scripts that process them: all the data is stored in XML format inside the "xml" subdirectory.</div>Unknownnoreply@blogger.com9tag:blogger.com,1999:blog-7426143334967524137.post-86078334106795718332010-03-22T23:19:00.002+01:002010-03-22T23:21:36.200+01:00Download multiple numbered files with wget<code>wget http://some/numbered/image_00{01..63}.jpg</code><br /><br />This will download <code>image_0001.jpg</code> up to <code>image_0063.jpg</code>.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7426143334967524137.post-23187219775471900772010-03-12T04:14:00.002+01:002010-03-12T04:22:04.532+01:00Enabling overlay for Intel graphics on UbuntuFor Ubuntu Karmic and Lucid one needs to install a new kernel (e.g. 2.6.33) and current xorg packages, see <a href="https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/478822/comments/3">here</a>.<div><br /></div><div>To enable the overlay in mplayer, the correct xv port must be selected (see the related post <a href="http://www.emmolution.org/?p=49">here</a>). Check available ports: <code>xvinfo | grep -B 2 "port base"</code></div><div>Run mplayer accordingly, e.g. <code>mplayer -vo xv:port=87</code><br />This can drastically reduce video tearing effects.</div>Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-7426143334967524137.post-34455587013956428002010-03-12T03:58:00.004+01:002010-03-13T01:18:33.950+01:00Multi-threaded mplayer for faster 720p (HD) decoding / playbackUnfortunately, the related thread <a href="http://ubuntuforums.org/showthread.php?t=1104967">here</a> is outdated. The following should work:<div><br /></div><code>sudo apt-get build-dep mplayer<br />sudo apt-get install build-essential git-core autoconf libtool<br />cd<br />git clone git://repo.or.cz/mplayer-build.git<br />cd mplayer-build<br />./enable-mt<br />./init --shallow<br />make -j 6<br /></code><br />Afterwards you can set an alias for the new mplayer executable (possibly in <code>~/.bash_aliases</code>):<br /><code>alias mplayer=~/mplayer-build/mplayer/mplayer<br /><br /></code>Start mplayer using the option <code>-lavdopts threads=4</code> or similar, depending on the number of CPU cores. You can also add the following to your <code>~/.mplayer/config</code> file:<br /><code>lavdopts=fast=1:threads=4<br /><br /></code>If that's still not fast enough, you can try disable deblocking filtering:<br /><code>lavdopts=fast=1:threads=4:skiploopfilter=nonref</code><br />or even<br /><code>lavdopts=fast=1:threads=4:skiploopfilter=all</code><br /><br />Also make sure to select a decent <code>vo</code> option, e.g. try <code>-vo xv</code> or <code>-vo gl</code>.Unknownnoreply@blogger.com12tag:blogger.com,1999:blog-7426143334967524137.post-69037286003741310392010-02-17T01:13:00.003+01:002010-02-20T22:28:12.527+01:00Ubuntu 9.10 and Dell Mini 10 (1012) wirelessSee <a href="https://wiki.ubuntu.com/HardwareSupport/Machines/Netbooks#Dell%20Mini%2010%20%28Inspiron%201012%29">here</a>.<br /><br /><code>sudo apt-get install b43-clutter</code><br />In the "Hardware Drivers" settings dialog, activate the Broadcom STA wireless driver. Reboot afterwards.<div><br />Alternatively, the following drivers also work, but they led to some freezes for my system.<br /><code>sudo apt-get install bcmwl-kernel-source</code></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7426143334967524137.post-63571632019892668422009-12-28T23:29:00.001+01:002009-12-28T23:31:27.109+01:00Don't open Gnome window when mounting disksOpen the File Browser, go to Edit -> Preferences, select the Media tab, untick "Browse media when inserted".Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7426143334967524137.post-47408689577286827682009-11-09T15:38:00.001+01:002009-11-09T15:41:29.273+01:00Reload executables found in PATH environment variable directoriesTo clear the corresponding cache, simply set the PATH variable again.<br /><br />bash: <code>PATH=$PATH</code><br /><br />tcsh: <code> setenv PATH $PATH</code>Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-7426143334967524137.post-63304273194110301382009-09-26T05:05:00.007+02:002009-09-26T20:22:54.386+02:00Recovering bad sheevaplug kernel flashAfter having flashed a "bad" kernel onto the sheevaplug that doesn't boot anymore, not all is lost. The following is extracted from various entries in the <a href="http://plugcomputer.org/plugwiki/index.php/Category:HowTo">PlugComputer Wiki</a> (also see an entry based on this blog entry <a href="http://www.openplug.org/plugwiki/index.php/Recovering_from_bad_kernel_flash">here</a>). It assumes that the U-Boot boot loader is still working.<br /><br />On another Linux machine, set up a TFTP server:<br /><code>sudo mkdir /tftpboot<br />sudo chmod 777 /tftpboot<br />sudo apt-get install tftpd</code><br /><br />Edit <code>/etc/inetd.conf</code>:<br /><span style="font-style:italic;">tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftpboot</span><br /><br />Restart the TFTP server:<br /><code>sudo /etc/init.d/openbsd-inetd restart</code><br /><br />Put a "good" (i.e. usually older) kernel uImage file into <code>/tftpboot</code>. You can get such an image e.g. from <a href="http://sheeva.with-linux.com/sheeva/">here</a>.<br /><br />Connect to the sheevaplug using the serial console:<br /><code>sudo modprobe ftdi_sio vendor=0x9e88 product=0x9e8f<br />screen /dev/ttyUSB1 115200</code><br />(Or use <code>/dev/ttyUSB0</code>, this depends.)<br /><br />Reset the sheevaplug by pushing a needle or paper-clip into the small hole near the serial port connector. Stop the boot sequence by pressing a key.<br /><br />Connect the sheevaplug to the ethernet network. Set own and the TFTP server IP address:<br /><code>setenv ipaddr 192.168.1.77<br />setenv serverip 192.168.1.2</code><br /><br />Load the kernel image:<br /><code>tftpboot 0x2000000 sheeva-2.6.31-uImage</code><br /><br />Set needed bootargs, e.g.<br /><code>setenv arcNumber 2097<br />setenv mainlineLinux yes<br />setenv bootargs rootfstype=jffs2 console=ttyS0,115200 mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/mtdblock1 rw ip=192.168.1.77:192.168.1.2:192.168.1.1:255.255.255.0:sheevaplug:eth0:none</code><br /><br />Finally, start the system using the kernel loaded over the network:<br /><code>bootm 0x2000000</code><br /><br />After booting your system you can try again and flash any kernel you like.Unknownnoreply@blogger.com6tag:blogger.com,1999:blog-7426143334967524137.post-75612952081133867152009-08-26T10:19:00.002+02:002009-08-26T10:22:58.095+02:00vim: keep or delete lines matching a patternThis is similar to a grep on the local buffer. To delete all lines matching a certain regular expression pattern, use<br /><code>:g/pattern/d</code><br />To do the opposite, i.e. only keep those lines matching the pattern, use<br /><code>:v/pattern/d</code><br />And to only temporarily print matching lines, use<br /><code>:g/pattern</code>Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-7426143334967524137.post-61519455439891188052009-07-25T15:06:00.002+02:002009-07-25T15:08:30.377+02:00Disable PDF display in FirefoxFor Ubuntu Jaunty, the Adobe Acrobat (<code>acroread</code>) browser plug-in is not separate in the package <code>mozilla-acroread</code> anymore. Instead it is part of <code>acroread</code> unfortunately. One can simply remove the plug-in though using<br /><code>sudo rm `locate nppdf.so`</code><br />and restarting the browser.<br />Usually the plug-in is located here:<br /><code>/opt/Adobe/Reader9/Browser/intellinux/nppdf.so<br />/usr/lib/firefox/plugins/nppdf.so<br />/usr/lib/iceape/plugins/nppdf.so<br />/usr/lib/iceweasel/plugins/nppdf.so<br />/usr/lib/midbrowser/plugins/nppdf.so<br />/usr/lib/mozilla/plugins/nppdf.so<br />/usr/lib/xulrunner/plugins/nppdf.so<br />/usr/lib/xulrunner-addons/plugins/nppdf.so<br />/var/lib/acroplugin/nppdf.so</code>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7426143334967524137.post-85239123975639961302009-05-03T19:36:00.006+02:002009-12-05T13:05:29.517+01:00Add newline at the end of filesA simple Python script to automatically append newlines at the end of files, to make some compilers (especially some gcc versions) happy. It recursively looks for all files with extensions <code>.cpp</code> or <code>.h</code> and appends a newline if necessary.<br /><br /><code>#!/usr/bin/env python<br /><br />import os, glob<br /><br /># file extensions to search for<br />extensions = ('.cpp', '.h')<br /><br />def process_file(filename):<br /> f = open(filename, 'r')<br /> last_line = f.readlines()[-1]<br /> f.close()<br /> # check if we need to append a newline<br /> if len(last_line.strip()) > 0:<br /> f = open(filename, 'a')<br /> print >> f, '\n'<br /> f.close()<br /><br />def process_dir(dirname):<br /> for f in glob.glob('%s/*' % dirname):<br /> if os.path.isdir(f): # recurse<br /> process_dir(f)<br /> elif f.endswith(extensions):<br /> process_file(f)<br /><br />if __name__ == '__main__':<br /> process_dir('.')</code>Unknownnoreply@blogger.comtag:blogger.com,1999:blog-7426143334967524137.post-41392444103353155252009-04-26T18:05:00.001+02:002009-04-26T18:06:14.840+02:00xxdiff and svn<code>sudo apt-get install xxdiff-scripts</code><br />Then use <code>xx-svn-diff</code> instead of <code>svn diff</code>.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7426143334967524137.post-66498222018926813702009-02-20T19:16:00.001+01:002009-02-20T19:16:45.853+01:00abcde configuration<span style="font-style: italic;">~/.abcde.conf:</span><br /><code>OUTPUTTYPE="mp3"<br />LAMEOPTS="--preset standard"</code>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7426143334967524137.post-42572962177559770292009-02-15T12:37:00.002+01:002009-02-15T12:40:00.064+01:00jerky green video output with mplayer and xvAfter an upgrade to Ubuntu Jaunty, my mplayer video output (using <code>-vo xv</code>) was completely green and jerky. It turned out that during the upgrade apparently the proprietary nvidia driver was disabled. You simply need to reenable it at <span style="font-style: italic;">System -> Administration -> Hardware Drivers</span> and reboot to fix the problem.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7426143334967524137.post-92110890174232582942009-02-15T00:55:00.005+01:002009-02-17T20:38:43.426+01:00ssh connect errorerror:<br /><code>buffer_get_ret: trying to get more bytes 4 than in buffer 0<br />buffer_get_int: buffer error</code><br /><br />Seems to have something to do with the public key.<br />It helps to remove <span style="font-style: italic;">~/.ssh/id_dsa*</span> (or the whole <span style="font-style: italic;">~/.ssh</span> directory if you want to be sure).<br /><br />This appeared to me only after the upgrade to Ubuntu Jaunty, I don't know if it's related or what the correct fix is.<br /><br />There seems to be a matching bug report <a href="https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/328277">here</a>.<br /><br /><span style="font-style: italic;">Update:</span> Apparently it's fixed by now.Unknownnoreply@blogger.com3