<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>tolaris.com &#187; kde</title>
	<atom:link href="http://www.tolaris.com/tag/kde/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tolaris.com</link>
	<description>When the going gets tough, the tough sniff packets.</description>
	<lastBuildDate>Tue, 24 Jan 2012 17:47:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Replacing gnome-screenshot with ksnapshot</title>
		<link>http://www.tolaris.com/2010/12/01/replacing-gnome-screenshot-with-ksnapshot/</link>
		<comments>http://www.tolaris.com/2010/12/01/replacing-gnome-screenshot-with-ksnapshot/#comments</comments>
		<pubDate>Wed, 01 Dec 2010 20:44:20 +0000</pubDate>
		<dc:creator>Tyler Wagner</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[kde]]></category>

		<guid isPermaLink="false">http://www.tolaris.com/?p=1235</guid>
		<description><![CDATA[Update 2010-12-06: Ray points out that you can do this with gconf-editor, which is a much better solution. It&#8217;s a handy feature of Gnome that pressing &#8220;PrntScrn&#8221; or &#8220;Alt+PrntScrn&#8221; will take a screen capture of the desktop or current window, respectively. However, in typical Gnome fashion, you can&#8217;t do anything more advanced. You can&#8217;t capture [...]]]></description>
			<content:encoded><![CDATA[<p><em>Update 2010-12-06:</em> <a href="http://www.tolaris.com/2010/12/01/replacing-gnome-screenshot-with-ksnapshot/comment-page-1/#comment-323">Ray</a> points out that you can do this with gconf-editor, which is a much better solution.</p>
<p>It&#8217;s a handy feature of Gnome that pressing &#8220;PrntScrn&#8221; or &#8220;Alt+PrntScrn&#8221; will take a screen capture of the desktop or current window, respectively. However, in typical Gnome fashion, you can&#8217;t do anything more advanced. You can&#8217;t capture a region, or a window area. You can&#8217;t delay the capture. You can&#8217;t save the captures with iterating, numbered filenames. However, the equivalent KDE tool can do all of those things, and you can make Gnome use it.</p>
<p><span id="more-1235"></span>When you press the PrntScrn key, Gnome calls <code>gnome-screenshot</code>. When you press Alt+PrntScrn, it calls <code>gnome-screenshot --window</code>. Again, typical Gnome design means you cannot configure what command is called. But you can make your own <code>gnome-screenshot</code> script which calls <code>ksnapshot</code>.</p>
<p>Create a script in /usr/local/bin or $HOME/bin (if you have that in your path), and edit it.</p>
<p><code>sudo touch /usr/local/bin/gnome-screenshot<br />
sudo chmod 755 /usr/local/bin/gnome-screenshot<br />
sudo vi  /usr/local/bin/gnome-screenshot</code></p>
<p>Now paste in the following:</p>
<pre>#!/bin/sh
if [ "$1" = "--window" ] ; then
   ksnapshot -c
else
   ksnapshot
fi</pre>
<p>Save and quit, and you&#8217;re done! Pressing PrntScrn now opens <code>ksnapshot</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tolaris.com/2010/12/01/replacing-gnome-screenshot-with-ksnapshot/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Upgrading from Kubuntu 9.10 to 10.04</title>
		<link>http://www.tolaris.com/2010/08/04/upgrading-from-kubuntu-9-10-to-10-04/</link>
		<comments>http://www.tolaris.com/2010/08/04/upgrading-from-kubuntu-9-10-to-10-04/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 20:39:36 +0000</pubDate>
		<dc:creator>Tyler Wagner</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[kde]]></category>
		<category><![CDATA[lucid]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.tolaris.com/?p=967</guid>
		<description><![CDATA[Last week I upgraded from Kubuntu 9.10 &#8220;Karmic Koala&#8221; to 10.04 &#8220;Lucid Lynx&#8221;. The word &#8220;upgrade&#8221; here is misleading, since I chose to reformat to take advantage of filesystem changes. However, I imported much of my customisations from backup. Here are my notes on Lucid, from the perspective of a long-time Kubuntu user. My opinion [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I upgraded from Kubuntu 9.10 &#8220;Karmic Koala&#8221; to 10.04 &#8220;Lucid Lynx&#8221;. The word &#8220;upgrade&#8221; here is misleading, since I chose to reformat to take advantage of filesystem changes. However, I imported much of my customisations from backup. Here are my notes on Lucid, from the perspective of a long-time Kubuntu user.</p>
<p><span id="more-967"></span>My opinion is that Lucid improves on <a href="/2009/11/01/upgrading-from-kubuntu-9-04-to-9-10/">Karmic</a> in almost every way. That&#8217;s not saying much, since the KDE 4 upgrade has been so painful. We&#8217;re finally back to KDE 3.5 functionality, and speed is improving with each release. On the other hand, there are a lot of new features in the OS since Hardy &#8211; grub2, ext4, ecryptfs, upstart, kernel mode setting, compositing window management, Strigi indexing and Nepomuk semantic desktop. Some of these have dramatically improved performance, while others have increased system requirements just to add eye candy. It&#8217;s hard to evaluate KDE on its own, so I&#8217;m not going to focus on that.</p>
<p>I backed up my entire drive to an external USB drive formatted for ext3 using <a href="/tag/rsync/">rsync</a>. I then booted from the Kubuntu 10.04 AMD64 Desktop CD, and followed the default install options until the disk partitioning step. I always install with separate /, /home, and swap partitions (this normally makes upgrades easier, unless you are reformatting as I did here). I used ext4 for / and /home, and chose to encrypt my home directory. I then followed the rest of the steps and rebooted at the end.</p>
<p>Following the reboot, I used rsync to restore my lost files and most of my dotfiles &#8211; .mozilla, .gnome, .gconf, .Virtualbox, and the like. However, I did not restore .kde. Instead I manually copied only some configs, for KGPG, Akregator, and Kopete. The rest of my KDE apps I reconfigured from scratch. I did this because we use Kolab at work, which integrates with Kontact but can be fussy with local contacts files. As of Lucid, Kontact uses Akonadi to manage contacts. I expected trouble, and found it. More on that later.</p>
<p>Finally, since I have an encrypted home directory, I also encrypted swap and created a tmpfs on /tmp. I followed the steps in <a href="/2009/11/14/securing-laptops-with-ecryptfs-cryptsetup-and-tmpfs/">my guide</a>, and rebooted with no problems.</p>
<p>What&#8217;s better:</p>
<p>The <strong>ext4</strong> filesystem is noticeably faster. This is the reason I reformatted instead of upgrading. I used ext3 under Karmic, and really wanted to see if what I&#8217;d been hearing about the speedy new filesystem is true. It is. It&#8217;s faster for booting and it&#8217;s faster for reading large data. My Virtualbox virtual machines load in almost half the time, even compared to the same Virtualbox 3.2.6 release on Karmic. I suppose there could be other differences contributing to this but it really stands out. I haven&#8217;t run an fsck yet but others report that it is much faster as well.</p>
<p>ext4 has definitely improved performance of copying data inside my encrypted home directory. I barely notice the performance hit from using ecryptfs now. The only time I do is when using rsync to compare large directories (like when my backup process examines my mail archive).</p>
<p>There is a new <strong>touchpad control</strong> in KDE Control Center. This enables gestures, including two-finger scrolling (but not pinch-to-zoom, which I hope is forthcoming), and different actions for tapping in corners, multi-finger tapping, and so on. Still missing is tap suppression (accidentally tapping while typing), so I still use syndaemon. Create ~/.kde/Autostart/syndaemon.sh, make it executable, and insert:</p>
<pre>#!/bin/sh
# Disable touchpad while typing to prevent accidental tapping.
/usr/bin/syndaemon -d -t -i 1</pre>
<p>The <strong>device notifier plasmoid</strong> now has multiple actions when opening attached storage devices, and can be configured to automatically mount drives. This is a vast improvement.</p>
<p>The <strong>system tray plasmoid</strong> now obeys my auto-hide preferences. Under Jaunty and Karmic, some applications had overriding preferences that caused them to always be hidden or visible. For instance, it was impossible to make KGPG always visible. I frequently use KGPG, so this caused me to almost always have the system tray expanded to show all applications.</p>
<p><strong>Firefox/KDE integration</strong> works very well. Open/save file dialogs use KDE, and menus and icons use KDE defaults. The printer dialog is still the native Firefox one.</p>
<p><strong>virt-manager</strong> is vastly improved. The GUI is more responsive when connecting, is prettier, and has graphs for CPU, disk, and network I/O.</p>
<p><strong>ClusterSSH</strong> works with KWin again. Since 8.10, <a href="http://sourceforge.net/projects/clusterssh/">ClustterSSH</a> has been nearly broken in KDE. First, simply starting it caused copy (to clipboard or selection) to stop working in most QT/KDE apps. Second, the ClusterSSH master window would grab focus and prevent you from giving focus to any of its children xterms. This made it very hard to run commands on just one host without running it on all. I gave up and used various other techniques for managing my servers. But nothing beats ClusterSSH for managing 2-20 servers at once, and I&#8217;ve sorely missed it. Welcome back, old friend!</p>
<p>What needed tweaking:</p>
<p>The <strong>Oxygen</strong> window decoration theme still doesn&#8217;t colourise the active window. Open System Settings, go to &#8220;Appearance&#8221;, then the &#8220;Windows&#8221; side bar.  Under the &#8220;Window Decoration&#8221; tab, choose &#8220;Oxygen&#8221;.  Under the &#8220;Decoration Options&#8221; area, choose the &#8220;Fine Tuning&#8221; sub-tab. Check &#8220;Outline active window title&#8221;.</p>
<p><strong>Hotkeys in Kmenu</strong> are ignored. I use a few quick-launch shortcuts, such as &#8220;Win+T&#8221; to start a terminal. You can set these when editing the K menu, but they are <a href="http://kubuntuforums.net/forums/index.php?topic=3110677.0">ignored by default</a>. Open System Settings, select &#8220;Input Actions&#8221;, and then check &#8220;KMenuEdit&#8221;.</p>
<p><strong>VirtualBox and virt-manager</strong> don&#8217;t play well together. I don&#8217;t use Xen or KVM on my desktop, but I do manage several KVM-based virtual machine servers. Thanks to the new &#8220;install recommends&#8221; preference in the package manager, simply installing virt-manager also installs libvirt-bin. This loads the kvm-intel or kvm-amd modules on boot, which then <a href="http://forums.virtualbox.org/viewtopic.php?p=52266&#038;sid=f2a1898a3036872a16717f7e52e8b4e3">prevents VirtualBox from starting virtual machines</a>, with the error &#8220;VirtualBox can&#8217;t operate in VMX root mode. Please disable the KVM kernel extension, recompile your kernel and reboot (VERR_VMX_IN_VMX_ROOT_MODE).&#8221;</p>
<p>I suppose this is really a problem with the &#8220;install recommends&#8221; behaviour. I&#8217;ve complained about that elsewhere, but I always repeat a good gripe when the opportunity presents.</p>
<p>The solution is to edit /etc/default/libvirt-bin and disable libvirtd:</p>
<pre>start_libvirtd="no"</pre>
<p>And for good measure, blacklist the modules. Create /etc/modprobe.d/local.conf and insert:</p>
<pre>blacklist kvm-intel
blacklist kvm-amd</pre>
<p>What still needs work:</p>
<p><strong>Akonadi</strong> doesn&#8217;t start before Kontact tries to access it. <a href="http://kubuntuforums.net/forums/index.php?topic=3112175.0">This solution</a> (autostarting &#8220;akonadictl start&#8221; at login) worked for me, although I (painfully) developed it independently. If only I had used Google.</p>
<p><strong>openvpn with knetworkmanager</strong> still doesn&#8217;t work. I still prefer Gnome&#8217;s network manager applet, which works just fine with Kubuntu. Kill knetworkmanager, and start nm-applet. Next time you login, KDE will tell you that another network manager is running, and ask you if you still want to use Knetworkmanager. Say no. Also, OpenVPN support is more reliable under Lucid. Using Gnome network manager with Kubuntu Karmic, the OpenVPN service would periodically fail to start. Editing VPN preferences and then hitting OK sometimes resolved it, but at other times it was an annoying and random dance to make it work. This seems to be resolved under Lucid.</p>
<p><strong>OpenOffice/KDE integration</strong> is improved since Karmic, but still has drawing bugs. In particular, the zoom slider in the lower right often disappears. It&#8217;s still there, and clicking in the area makes it reappear and zooms. I prefer the &#8220;100% / 75% / &#8230;&#8221; pull-down of the stock OpenOffice theme, however. This is a vast improvement over the Karmic integration, where simply dragging a spreadsheet tab in Calc crashed OpenOffice, but I&#8217;d like to see more development here.</p>
<p>Otherwise, <a href="/2009/11/01/upgrading-from-kubuntu-9-04-to-9-10/">my comments</a> regarding Karmic still hold. Google Earth and Kwin play nicely, qtcurve (KDE/GTK integration) is awesome and no longer has the font bug, and Plasma and Kwin are faster and more stable. Lucid is no great leap forward and Kubuntu is still not an innovator among KDE distributions like Ubuntu is to Gnome. But it is an incremental improvement worth using if you prefer KDE.</p>
<p>I have had a Lucid <a href="/apt-repository/">repository</a> since upgrading my media PC and servers. It now includes dfreer&#8217;s znes32 for AMD64 (still working on Lucid) and kregexpeditor (you can have it when you pry it from my cold, dead hands).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tolaris.com/2010/08/04/upgrading-from-kubuntu-9-10-to-10-04/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Firefox extension: Open With</title>
		<link>http://www.tolaris.com/2010/03/30/firefox-extension-open-with/</link>
		<comments>http://www.tolaris.com/2010/03/30/firefox-extension-open-with/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 06:12:43 +0000</pubDate>
		<dc:creator>Tyler Wagner</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[kde]]></category>

		<guid isPermaLink="false">http://www.tolaris.com/?p=761</guid>
		<description><![CDATA[Some time ago I released a simple Firefox extension, Open With Konqueror. In the time since I released it, a new version of KDE and the Crystal icon set have been released, as well as a slew of new &#8220;Open With X&#8221;-type extensions. Open With Konqueror is simply obsolete. I recommend you install Open With, [...]]]></description>
			<content:encoded><![CDATA[<p>Some time ago I released a simple Firefox extension, <a href="http://www.tolaris.com/2009/02/10/firefox-extension-open-with-konqueror/">Open With Konqueror</a>.  In the time since I released it, a new version of KDE and the Crystal icon set have been released, as well as a slew of new &#8220;Open With X&#8221;-type extensions.  Open With Konqueror is simply obsolete.</p>
<p>I recommend you install <a href="https://addons.mozilla.org/en-US/firefox/addon/11097">Open With</a>, a generic extension capable of opening the current page or selected link with any application.  KDE users can simply open the extension preferences, select the &#8220;Manual Entries&#8221; tab, select &#8220;Add&#8221;, and enter &#8220;/usr/bin/konqueror&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tolaris.com/2010/03/30/firefox-extension-open-with/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>kregexpeditor, grip now in repo for karmic</title>
		<link>http://www.tolaris.com/2009/11/23/kregexpeditor-grip-now-in-repo-for-karmic/</link>
		<comments>http://www.tolaris.com/2009/11/23/kregexpeditor-grip-now-in-repo-for-karmic/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 19:56:01 +0000</pubDate>
		<dc:creator>Tyler Wagner</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[kde]]></category>
		<category><![CDATA[repo]]></category>

		<guid isPermaLink="false">http://www.tolaris.com/?p=653</guid>
		<description><![CDATA[Both kregexpeditor (removed since the KDE 4 upgrade) and grip (unmaintained since 2005, relies on old libraries) are missing from Ubuntu karmic. I expect to find alternatives to grip, but for now I&#8217;d like to keep using it. And I&#8217;ll give up kregexpeditor when they pry it from my cold, dead hands. The hardy version [...]]]></description>
			<content:encoded><![CDATA[<p>Both kregexpeditor (removed since the KDE 4 upgrade) and grip (unmaintained since 2005, relies on old libraries) are missing from Ubuntu karmic.  I expect to find <a href="http://www.dwasifar.com/?p=836">alternatives</a> to grip, but for now I&#8217;d like to keep using it.  And I&#8217;ll give up kregexpeditor when they pry it from my cold, dead hands.</p>
<p>The hardy version of kregexpeditor still works on karmic, and I&#8217;ve used pbuilder to port the jaunty package of grip to karmic.  Both are now in the <a href="http://www.tolaris.com/apt-repository/">repo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tolaris.com/2009/11/23/kregexpeditor-grip-now-in-repo-for-karmic/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Upgrading from Kubuntu 9.04 to 9.10</title>
		<link>http://www.tolaris.com/2009/11/01/upgrading-from-kubuntu-9-04-to-9-10/</link>
		<comments>http://www.tolaris.com/2009/11/01/upgrading-from-kubuntu-9-04-to-9-10/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 14:40:36 +0000</pubDate>
		<dc:creator>Tyler Wagner</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[jaunty]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[kde]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.tolaris.com/?p=561</guid>
		<description><![CDATA[Friday I upgraded from Kubuntu 9.04 &#8220;Jaunty Jackalope&#8221; to Kubuntu 9.10 &#8220;Karmic Koala&#8221;. Here are my notes on the upgrade. Jaunty has been my Windows Vista. I wish I had never upgraded, and waited instead for Karmic. For anyone using Intel video (I use a Dell Vostro 1500 with an onboard Intel GM965/GL960), Jaunty and [...]]]></description>
			<content:encoded><![CDATA[<p>Friday I upgraded from Kubuntu 9.04 &#8220;Jaunty Jackalope&#8221; to Kubuntu 9.10 &#8220;Karmic Koala&#8221;.  Here are my notes on the upgrade.</p>
<p><span id="more-561"></span>Jaunty has been my Windows Vista.  I wish I had never upgraded, and waited instead for Karmic.  For anyone using Intel video (I use a Dell Vostro 1500 with an onboard Intel GM965/GL960), Jaunty and KDE4 was a terrible experience.  Compared to Hardy and KDE3, video performance was dramatically worse.  When playing videos frames would drop, 3D acceleration was slower, everything showed more tearing effects, and most KDE4 apps showed graphics corruption in various rarely-updated areas such as the icon toolbar in Kontact.</p>
<p>I had already discovered the video issues when I  wrote my <a href="/2009/08/18/upgrading-from-kubuntu-8-04-to-9-04/">last upgrade post</a>, but hadn&#8217;t yet realised the extend of the wireless issues.  I have two cards in my laptop:</p>
<pre>tyler@baal:~$ lspci | grep -i network
0c:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
0d:00.0 Ethernet controller: Atheros Communications Inc. AR5001 Wireless Network Adapter (rev 01)</pre>
<p>Under Jaunty, the Intel card caused kernel panics on shutdown.  So I blacklisted the driver and used the Atheros card, only to discover problems with both the ath_pci  and ath5k drivers.  The former doesn&#8217;t work with network manager, and with the latter the card would sometimes fail in a state requiring full hardware reset, meaning powering the laptop off and on again.  This would happen on bootup too, causing me to sometimes reboot several times to make wireless work.  It is not good to begin the workday filled with frustration and rage.</p>
<p>I did my best to mitigate the issues under Jaunty, including using the latest KDE backports from the <a href="https://launchpad.net/~kubuntu-ppa">Kubuntu PPA</a>.  But the only real solution to my video problems was to upgrade to the latest kernel, X, and intel video drivers.  I use Ubuntu because I want reasonably recent packages but without the headache of running true alpha / bleeding-edge releases.  Replacing all the critical parts of the distro seemed like the wrong way to go.  So I suffered and waited for the day Karmic came out.</p>
<p>The <a href="http://www.ubuntu.com/getubuntu/releasenotes/910">9.10 release notes</a> cover a number of known issues.  What strikes me about the known issues is how few of them affect me.  Many are related to the netbook remix, or specific to recent netbooks with proprietary hardware.  Support for the general case of mostly Intel hardware released 1-2 years ago is all there.</p>
<p>Upgrading from Jaunty to Karmic was just a matter of doing what the GUI prompted me to do.  This wasn&#8217;t like jumping from KDE 3 to 4, so I didn&#8217;t remove any dotfiles or reformat.  I just made my usual backup and then did the upgrade.  I had a problem and had to stop the upgrade during the post-download, configuration part, so I ran <code>dpkg --configure -a</code> in a terminal and everything finished just fine.</p>
<p>What went wrong:</p>
<p><strong>Synaptics touchpad tap suppression</strong> (syndaemon) stopped working.  This is an artifact of upgrading from Jaunty, where to use syndaemon you have to enable SHMConfig in xorg.conf and then run syndaemon as <code>syndaemon -S -d -t -i 1</code>.  On upgrading to karmic, set SHMConfig to false, restart X, and call syndaemon without -S (the switch doesn&#8217;t exist anymore anyway).  I just removed my xorg.conf altogether, since X doesn&#8217;t seem to need it.</p>
<p><strong>ath_pci</strong>, the madwifi Atheros wireless driver, is gone.  I use this for aircrack and kismet.  It is likely that I can either compile it or use the ath or ath5k drivers for the same thing, but I haven&#8217;t had time to test this.</p>
<p><strong>openvpn with knetworkmanager</strong> still doesn&#8217;t work, at least with certificates that don&#8217;t have a passphrase.  So far, openvpn doesn&#8217;t even start.  From syslog:</p>
<pre>Nov  1 13:51:32 baal NetworkManager: <WARN>  nm_vpn_connection_connect_cb(): VPN connection 'company vpn' failed to connect: 'No VPN secrets!'.</pre>
<p>Even if it did work, the dialog doesn&#8217;t even have a tab for manually setting up routes.  Since when is the equivalent Gnome app <em>more</em> configurable than its KDE counterpart?</p>
<p><strong>Ozone</strong>, the default KDE window theme, doesn&#8217;t use colour to denote the active window.  Instead it uses stripes to the right of the text in the title bar.  Some people say that compositing window managers and transparency are supposed to make this a non-issue, but they are wrong.  I expect my active window to have a blue window border, and the others to be grey.  To fix this, open the Control Centre.  Go to &#8220;Appearance&#8221;, then the &#8220;Windows&#8221; side bar.  Under the &#8220;Window Decoration&#8221; tab, choose &#8220;Ozone&#8221;.  Under the &#8220;Decoration Options&#8221; area, uncheck &#8220;Blend title bar colours with window contents&#8221;.</p>
<p>What went right:</p>
<p><strong>kernel mode setting</strong> is awesome!  This currently works only for those of us that use Intel video, which is perhaps a small reward for suffering through Jaunty.  Switching between X and virtual terminals is fast and seamless.  The console has a gorgeous high-res mode at boot-time.  I haven&#8217;t seen the screen flicker once since GRUB booted the kernel, from X startup to the KDM greeter to Plasma startup.</p>
<p><strong>Booting</strong> is very fast.  On my laptop I see KDM within 15 seconds of the kernel loading.  I have a usable desktop 15 seconds after that.  I&#8217;m sure more things are starting in the background, but they don&#8217;t seem to slow down my login process.</p>
<p><strong>Xorg</strong> just figures everything out.  I no longer have an xorg.conf and all my hardware works. Plus xrandr now has a <a href="/2009/04/14/enabling-1080p-video-on-the-shuttle-x27d-htpc">large virtual area</a> by default:</p>
<pre>tyler@baal:~$ xrandr
Screen 0: minimum 320 x 200, current 1680 x 1050, maximum 8192 x 8192</pre>
<p>This should work just fine with multi-monitor setups.</p>
<p><strong>Google Earth</strong> and <strong>Kwin</strong> with compositing work at the same time.  So far I&#8217;ve had no issue with any 3D apps running together, and they are all about 3 times as fast as they were under Jaunty.</p>
<p><strong>qtcurve</strong>, the new KDE/GTK appearance integration engine.  This replaced the deprecated gtk-qt engine which had all kinds of drawing errors especially with firefox.  Qtcurve uses your &#8220;general&#8221; font setting from KDE in GTK apps, and generally makes GTK apps look like KDE ones.  Unfortunately it is <a href="https://bugs.launchpad.net/ubuntu/+bug/414711">broken out of the box</a>.  The solution is to install the &#8220;kcm-gtk&#8221; package, and then use Control Centre to edit your &#8220;general&#8221; font setting.  Set it to something else and then back again, or put this in ~/.kde/share/config/kdeglobals:</p>
<pre>[General]
XftHintStyle=hintmedium
font=DejaVu Sans,8,-1,5,50,0,0,0,0,0</pre>
<p>Wireshark never looked so pretty.</p>
<p><strong>Firefox 3.5</strong>, which really is as fast as you&#8217;ve heard.  KDE users, give up and use the default theme.  All the &#8220;hack it to look like KDE&#8221; themes just don&#8217;t work as well as the one the developers themselves test against.</p>
<p><strong>Plasma</strong> is stable.  This isn&#8217;t a surprise as I&#8217;ve been running 4.3.2 from the PPA under Jaunty.  Since Karmic is stable I&#8217;m not going to use the PPA for bleeding edge KDE releases anymore (until another juicy feature gets released, no doubt).</p>
<p><strong>fish</strong>, the Kioslave for file transfer over SSH, is fast once again.  It no longer generates notifications for normal browsing activity, either, which was extremely irritating under Jaunty.</p>
<p><strong>knetworkmanager</strong> works once again.  It was more than a little annoying to use Gnome&#8217;s network manager.</p>
<p>They finally got it right with <strong>Amarok 2.2</strong>.  iPod support seems complete, the GUI is configurable (why does the playlist default to the right pane?), the collection scanner is much faster than Amarok 1.4, and it hasn&#8217;t crashed yet.</p>
<p>Karmic has been added to the <a href="/apt-repository/">repository</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tolaris.com/2009/11/01/upgrading-from-kubuntu-9-04-to-9-10/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>kregexpeditor now in repo</title>
		<link>http://www.tolaris.com/2009/08/22/kregexpeditor-now-in-repo/</link>
		<comments>http://www.tolaris.com/2009/08/22/kregexpeditor-now-in-repo/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 15:39:21 +0000</pubDate>
		<dc:creator>Tyler Wagner</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[jaunty]]></category>
		<category><![CDATA[kde]]></category>
		<category><![CDATA[repo]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.tolaris.com/?p=473</guid>
		<description><![CDATA[Cleaning up after the KDE 4 upgrade continues. Today I tried to port kregexpeditor from hardy, but pbuilder stopped with a library conflict: kdelibs5-dev: Conflicts: kdelibs4-dev but 4:3.5.10.dfsg.1-1ubuntu8 is to be installed I&#8217;m sure I could have resolved this, but I decided to test the hardy package before spending any more effort. The package installed [...]]]></description>
			<content:encoded><![CDATA[<p>Cleaning up after the <a href="http://www.tolaris.com/2009/08/18/upgrading-from-kubuntu-8-04-to-9-04/">KDE 4 upgrade</a> continues.  Today I tried to port kregexpeditor from hardy, but <a href="http://www.tolaris.com/2009/03/31/backporting-debian-packages-with-pbuilder/">pbuilder</a> stopped with a library conflict:</p>
<pre>kdelibs5-dev: Conflicts: kdelibs4-dev but 4:3.5.10.dfsg.1-1ubuntu8 is to be installed</pre>
<p>I&#8217;m sure I could have resolved this, but I decided to test the hardy package before spending any more effort.  The package installed without complaint, and the binary runs.  I&#8217;ve added the amd64 and i386 packages from hardy-backports to the <a href="http://www.tolaris.com/apt-repository/">repo</a> for jaunty.</p>
<p><span id="more-473"></span>I&#8217;m sad to see kregexpeditor go, as it is the only decent means of visualising complex regular expressions.  It is apparently orphaned upstream, with no plans to port it to KDE 4.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tolaris.com/2009/08/22/kregexpeditor-now-in-repo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Upgrading from Kubuntu 8.04 to 9.04</title>
		<link>http://www.tolaris.com/2009/08/18/upgrading-from-kubuntu-8-04-to-9-04/</link>
		<comments>http://www.tolaris.com/2009/08/18/upgrading-from-kubuntu-8-04-to-9-04/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 20:42:54 +0000</pubDate>
		<dc:creator>Tyler Wagner</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hardy]]></category>
		<category><![CDATA[jaunty]]></category>
		<category><![CDATA[kde]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.tolaris.com/?p=458</guid>
		<description><![CDATA[Until last week I still ran Kubuntu 8.04 (Ubuntu with KDE) on my personal desktop. We also use this on all our corporate desktops, and my wife&#8217;s PC at home. I wanted to wait for KDE 4 to mature a bit more before upgrading, so intrepid wasn&#8217;t an option. I waited 4 months after the [...]]]></description>
			<content:encoded><![CDATA[<p>Until last week I still ran Kubuntu 8.04 (Ubuntu with KDE) on my personal desktop.  We also use this on all our corporate desktops, and my wife&#8217;s PC at home.  I wanted to wait for KDE 4 to mature a bit more before upgrading, so intrepid wasn&#8217;t an option.</p>
<p>I waited 4 months after the release of jaunty, so the problems should be either documented or resolved, and the <a href="http://www.ubuntu.com/getubuntu/releasenotes/904">release</a> <a href="http://www.kubuntu.org/news/9.04-release">notes</a> didn&#8217;t mention anything that seemed too serious.  So I decided to give it a test.</p>
<p><span id="more-458"></span>First I made a complete backup with rsync to an external USB2 harddrive (partitioned ext3).  I partition my harddrive with separate root (/) and home (/home) partitions, so in the event of a reinstall I don&#8217;t have to restore my data from backup.  So the second thing I did was to copy /, excluding /home, to /home/root.old/.  I&#8217;ll keep this backup for a few months so I can compare config files and copy over whatever I&#8217;ve forgotten, like udev rules, apache configs, etc.  You&#8217;d be surprised what stuff you changed in /etc a year ago and then forgot about.  Finally, I cloned just the dotfiles in /home/tyler to /home/tyler.old.  I expected KDE 4 to mangle all my settings, so just to be safe I kept a backup.</p>
<p>Then I upgraded, following the <a href="http://help.ubuntu.com/community/JauntyUpgrades/Kubuntu/8.04">instructions</a>.  When the upgrade was done and I rebooted, everything was totally screwed up.  The icon for the KDE menu had become a left-arrow, various hotkeys were remapped, customised application toolbars were screwed up, and the KDE menu hierarchy was a mess.  To be fair, I tend to be hard on the menus and toolbars.</p>
<p>OK, log out, remove all the dotfiles in /home/tyler, and log in again.  This should give me a default KDE 4 desktop and application environment.  I can copy individual dotfiles back later.  Nope, icons still borked.  I expected this to happen (skipping a release, moving to KDE 4), so I reinstalled 9.04 directly as a fresh install.  As usual, I selected manual partitioning, reused and reformatted the root partition, and reused /home without formatting.  I also left /home/tyler with no dotfiles, again to make the transition easier.</p>
<p>After the install, things were much better.  KDE 4&#8242;s desktop (Plasma) was happy, icons were normal, and I didn&#8217;t have 16 months of installed cruft all over the /usr/local tree (sometimes I compile from source, typically network hacking tools).  I copied back dotfiles for firefox; wireshark; and the kde apps kontact, kmail, kabc, korganizer, kopete, and amarok; and a few others.  I avoided copying anything with &#8220;event&#8221; and &#8220;ui&#8221; in it, as I wanted to try the new default UI settings.</p>
<p>Since then I&#8217;ve enabled the PPA for KDE updates and am now <a href="http://www.kubuntu.org/news/kde-4.3">using KDE 4.3</a> (stock jaunty only offers 4.2.2).</p>
<p>What went wrong:</p>
<p><strong>Intel video</strong> is <a href="http://www.ubuntu.com/getubuntu/releasenotes/904#Performance%20regressions%20on%20Intel%20graphics%20cards">totally borked</a>.  Seriously, if you are using Intel video, stay on intrepid or wait for karmic.  The warning in the release notes is not worded strongly enough.  DO NOT USE JAUNTY AND INTEL VIDEO.  I&#8217;m using a GM965 chipset, which is partially functional.  Google Earth and Kwin compositing don&#8217;t get along at all, and all OpenGL and video operations perform significantly worse under jaunty.  There are random graphics corruption issues in KDE apps, but mousing over most of them causes them to redraw. Two months to go, and I&#8217;m seriously considering the karmic beta.  Some help <a href="http://ubuntuforums.org/showthread.php?t=1130582">is available</a>, but I&#8217;m not willing to add to my problems by running an unsupported kernel.</p>
<p><strong>Kontact/Korganizer</strong> pops up an annoying dialog whenever you select a contact with more than one email address.  This is a known issue in 4.2.2, and it prompted me to move to 4.3.</p>
<p><strong>Kopete</strong> has inexplicably renamed all instances of &#8220;MSN Messenger&#8221;, including the variables in its rc files, to &#8220;WLM Messenger&#8221;.  So after upgrading from Kopete for KDE 3, enable the &#8220;WLM Messenger&#8221; plugin, and then change a bunch of things:</p>
<ol>
<li>~/.kde/share/config/kopeterc, replace all instances of &#8220;MSNProtocol&#8221; with &#8220;WlmProtocol&#8221;.</li>
<li>~/.kde/share/apps/kopete/contactlist.xml, replace all instances of &#8220;MSNProtocol&#8221; with &#8220;WlmProtocol&#8221;.</li>
<li>~/.kde/share/apps/kopete/, rename directory &#8220;msnpictures&#8221; to &#8220;wlmpictures&#8221;</li>
<li>(If using the History plugin) ~/.kde/share/apps/kopete/logs/, rename directory &#8220;MSNProtocol&#8221; to &#8220;WlmProtocol&#8221;</li>
<li>(If using the OTR plugin) ~/.kde/share/apps/kopete_otr/privkeys, replace all instances of &#8220;MSN Messenger&#8221; with &#8220;WLM Messenger&#8221;</li>
<li>(If using the OTR plugin) ~/.kde/share/apps/kopete_otr/fingerprints, replace all instances of &#8220;MSN Messenger&#8221; with &#8220;WLM Messenger&#8221;</li>
</ol>
<p>I really appreciate all the hard work done by the KDE developers.  But I have a very special kick in the nuts for whoever did this.  Please, either enable backwards compatibility, or write an upgrade script!  If you must change the cosmetic name of an option, do so in the user interface.  But don&#8217;t arbitrarily change variable and directory names!  Some of us have existing configurations that we&#8217;d like to have continue working, thank you.</p>
<p><strong>Amarok 2</strong> still has poor iPod support, and crashes frequently.  I have joined the hordes that <a href="http://nomad.ca/blog/2009/apr/3/amarok-14-jaunty-ubuntu-904/">downgraded to Amarok 1.4</a>.  I am now much happier.  Configuring the iPod in Amarok 1.4 is easy:</p>
<ol>
<li><code>sudo apt-get install pmount</code></li>
<li>append your iPod devices to /etc/pmount.allow (first and second USB devices for me, just in case I plugin a drive or stick at the same time):
<pre>/dev/sdb1
/dev/sdb2
/dev/sdc1
/dev/sdc2</pre>
</li>
<li><code>sudo dpkg-statoverride --update --add root root 4755 /usr/bin/eject</code></li>
<li>In Amarok, set iPod pre-connect command to &#8220;pmount /dev/disk/by-label/IPODLABEL ipod&#8221; where &#8220;IPODLABEL&#8221; is the filesystem label of your device.  You could use /dev/sdb2 here, but that changes if you plug in anything else.</li>
<li>In Amarok, set iPod post-disconnect command to &#8220;pumount %m; eject /dev/disk/by-label/IPODLABEL&#8221;</li>
</ol>
<p>Step 3 means any normal user can eject devices, which isn&#8217;t an issue on desktops.  Anybody know what happened to the &#8220;kdeeject&#8221; command?</p>
<p><strong>apt-get/KPackageKit/Synaptic</strong> now install packages in the &#8220;Recommended&#8221; line by default.  This is a really dumb idea, at least until all the mainstream packages are updated.  Why do I get exim installed if I just want smartmontools?  I would like to be able to check my harddrive temperature without installing a mail server, thank you.  Create /etc/apt/apt.conf.d/99no-install-recommends with the contents:</p>
<pre>APT::Install-Recommends "false";</pre>
<p>Unfortunately, it seems some of the metapackages such as ubuntu-restricted-extras have switched from using &#8220;Depends&#8221; (the correct behaviour) to &#8220;Recommends&#8221;.  Thanks, guys!  Now we&#8217;re damned if we do, and damned if we don&#8217;t.</p>
<p><strong>kregexpeditor</strong> is gone, and no replacement exists.  I mourn.</p>
<p><strong>knetworkmanager</strong> has been replaced by the abundantly inferior &#8220;Network Management&#8221; plasmoid.  Although you can reinstall it, it doesn&#8217;t work with openvpn and its functionality has been reduced (it doesn&#8217;t display new connections automatically, for instance.  I&#8217;ve installed network-manager-gnome and network-manager-openvpn in the interim.  However, openvpn won&#8217;t work until you edit /etc/dbus-1/system.d/nm-openvpn-service.conf and add the following to the &#8220;busconfig&#8221; stanza:</p>
<pre>&lt;policy user="at_console"&gt;
        &lt;allow own="org.freedesktop.NetworkManager.openvpn"/&gt;
        &lt;allow send_destination="org.freedesktop.NetworkManager.openvpn"/&gt;
&lt;/policy&gt;</pre>
<p><strong>Intel 3945 wireless</strong> is unstable.  I guess it always was, but knetworkmanager had a habit of restarting the card.  Now it&#8217;s just screwed.  I&#8217;ve got a second wireless card, an Atheros AR242x chipset, which I&#8217;ve long used for injecting wireless packets to crack WEP networks.  That works just fine.  I imagine I&#8217;ll revisit this issue once I have to upgrade my wife&#8217;s laptop, which only has an Intel 3945.  Or I&#8217;ll buy a £10 Atheros and replace it.</p>
<p><strong>Plasma</strong> crashes sometimes.  But it restarts immediately, without losing anything.  It did this the first time I logged in after a fresh install, which is not a strong selling point for using KDE 4 or Jaunty.  If you have issues with this, delete ~/.kde/share/config/plasma-desktop-appletsrc and ~/.kde/share/config/plasma-appletsrc, or edit them and fix geometry lines that cannot fit on your screen or that use floating-point numbers.</p>
<p>What went right:</p>
<p><strong>Suspend and resume</strong> work flawlessly.  Perhaps this is because I no longer use the Intel wireless card, but I&#8217;ve had no problems at all and I&#8217;ve resumed at least 30 times since upgrading.  This is the first time it has ever been stable on any laptop I use (mostly Dells using Intel or ATI video, and Intel wireless).</p>
<p><strong>KDE 4</strong> is shiny, shiny, shiny.  Also a little slower, but that could be the Intel video issue.  I love Kwin compositing, especially the exposé-like zooming out by application or by desktop.  I hardly use the desktop pager now.  The plasmoids (desktop widgets) are great.  I see it is going to be hot tomorrow, and that it will rain on Thursday.</p>
<p>New <strong>KDE apps</strong> are no longer infested with an abundance of the letter K.  Rock on, Plasma! Rock on, Dolphin.  At last, sanity!</p>
<p><strong>khexedit</strong> has been replaced by Okteta.  It is better.  Install it.</p>
<p><strong>Webcam</strong> support on amd64 works better.  My webcam used to freeze after 5-10 seconds.  Now it works with Cheese and Skype.</p>
<p>The <strong>KDE games</strong> packages have shiny new Egyptian themes.  They look very good, and many have polished new features.</p>
<p>Overall, I&#8217;m happy with KDE 4, but I&#8217;m not sure the Intel video issues are worth it.  I&#8217;ll wait for Karmic, and then we&#8217;ll really have to evaluate if we are to move to that release internally.  Unlike the rest of hardy, the Kubuntu packages go unmaintained this October, so we have little choice if we want to stay with KDE.  Which is something we&#8217;re considering.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tolaris.com/2009/08/18/upgrading-from-kubuntu-8-04-to-9-04/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Firefox extension: Open With Konqueror</title>
		<link>http://www.tolaris.com/2009/02/10/firefox-extension-open-with-konqueror/</link>
		<comments>http://www.tolaris.com/2009/02/10/firefox-extension-open-with-konqueror/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 16:50:06 +0000</pubDate>
		<dc:creator>Tyler Wagner</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[kde]]></category>

		<guid isPermaLink="false">http://www.tolaris.com/?p=218</guid>
		<description><![CDATA[Update 2010-03-29: This plugin is deprecated. I&#8217;ll leave it here for download, but you should use Open With instead. I am fed up with the increasing obsolescence of Konqueror. It simply fails to deal with much of the Ajax bling and javascript doodads that are all over the web now. Facebook is nearly unusable, Slashdot [...]]]></description>
			<content:encoded><![CDATA[<p><em>Update 2010-03-29: This plugin is deprecated.  I&#8217;ll leave it here for download, but you should use <a href="https://addons.mozilla.org/en-US/firefox/addon/11097">Open With</a> instead.</em></p>
<p>I am fed up with the increasing obsolescence of Konqueror.  It simply fails to deal with much of the Ajax bling and javascript doodads that are all over the web now.  Facebook is nearly unusable, Slashdot has unusual formatting errors, and banking sites fail in odd ways.  Compatibility changes daily as web developers tweak their javascript and CSS.  Last month I switched back to Firefox.</p>
<p>Still there are times when I&#8217;m viewing a site in Firefox and want to switch to Konqueror.  Konqueror has an easy &#8220;Open With&#8221; submenu, but no such thing exists for Firefox.  Instead, everybody has written their own Firefox extension to support their personal choice of browser.  Often with platform-specific requirements.  And now I have too!</p>
<p>Behold, <a href="/firefox/openwithkonqueror.xpi">Open With Konqueror</a>!</p>
<p>You&#8217;ll have to approve installations from my site to proceed.  If you are the type of person that uses KDE, chances are you already know how to do that.  I have also submitted it to <a href="https://addons.mozilla.org/en-US/firefox/addon/10681">addons.mozilla.org</a>.</p>
<p>Credits: I copied this extension from <a href="https://addons.mozilla.org/en-US/firefox/addon/1429">IE View Lite</a> by Grayson Mixon.  I modified it in the following ways:</p>
<ul>
<li>Replace all references to IE with Konqueror in dialogs, variable, and extension names</li>
<li>Include Konqueror icons from the Crystal SVG set in resolutions of 16&#215;16 and 32&#215;32</li>
<li>Change the path of the browser to use to &#8220;/usr/bin/konqueror&#8221;, the default in Kubuntu</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.tolaris.com/2009/02/10/firefox-extension-open-with-konqueror/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Running root apps seamlessly on a normal user&#8217;s desktop</title>
		<link>http://www.tolaris.com/2008/10/02/running-root-apps-with-user-gui-preferences/</link>
		<comments>http://www.tolaris.com/2008/10/02/running-root-apps-with-user-gui-preferences/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 18:21:57 +0000</pubDate>
		<dc:creator>Tyler Wagner</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[gtk]]></category>
		<category><![CDATA[kde]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.tolaris.com/?p=75</guid>
		<description><![CDATA[I&#8217;m a network engineer, and I run Kubuntu on the desktop. Which means I often run applications as root: Wireshark, Ettercap, Zenmap, etc. I prefer a seamless desktop experience, meaning I like my GUI customisations to apply to root applications, not just those running as my own user. Secondly, I like to directly launch GUI [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a network engineer, and I run Kubuntu on the desktop.  Which means I often run applications as root: Wireshark, Ettercap, Zenmap, etc.  I prefer a seamless desktop experience, meaning I like my GUI customisations to apply to root applications, not just those running as my own user. Secondly, I like to directly launch GUI apps from a root terminal.</p>
<p><span id="more-75"></span></p>
<ol>
<li>Allow root to display applications on the user&#8217;s desktop</li>
<p>Normally only the logged-in user has the authority to run X applications.  This is a good thing, and a useful security feature.  Running commands as your user with sudo allows that application to use your X session, like so:</p>
<p><code>sudo wireshark</code></p>
<p>However, this doesn&#8217;t work:</p>
<p><code>sudo -i<br />
(now as root) wireshark</code></p>
<p>We can work around this by modifying root&#8217;s ~/.Xauthority file.  Either copy yours or link it into /root/, and you&#8217;re done:</p>
<p><code>cd /root/<br />
ln -f -s /home/username/.Xauthority</code></p>
<p>If you have multiple users on the same machine, you can achieve the same goal by merging several files using the <code>xauth</code> command.</p>
<li>Retain environment variables when you execute sudo</li>
<p>OK, now root can make X apps display on tyler&#8217;s display, but he still has to set the DISPLAY variable or pass a -display argument.  So let&#8217;s keep this variable when we login as root with &#8220;<code>sudo -i</code>&#8220;.</p>
<p>Add the following somewhere in /etc/sudoers:</p>
<pre>Defaults                 env_keep+="DISPLAY XAUTHORITY"</pre>
<p>Or just for one user:</p>
<pre>Defaults:username        env_keep+="DISPLAY XAUTHORITY"</pre>
<p>Now DISPLAY, and if you use it, XAUTHORITY, follow you if you use sudo.  You can add any others to this list if you like.</p>
<li>Keep the same GTK preferences as root</li>
<p>Now, your root GTK apps run and display, but they look like something from Windows 95.  This is because GTK has absolutely horrific default settings which are nearly always overridden by your window manager&#8217;s theme, and root doesn&#8217;t have your GTK preferences.  That&#8217;s easy to fix:</p>
<p><code>cd /root/<br />
ln -f -s /home/username/.gtkrc-2.0</code></p>
<p>And if you use KDE with the &#8220;Use my KDE style in GTK applications&#8221; (gtk-qt-engine) setting, you might also want:</p>
<p><code>cd /root/<br />
ln -f -s /home/username/.gtk_qt_engine_rc</code></ol>
<p>Finally, I just like a better sudo prompt.  So I set this at the botton of /etc/bash.bashrc on every machine I manage:</p>
<pre>export SUDO_PROMPT="[sudo] password for %u@%h: "</pre>
<p>This is better than the sudo default (the totally ambiguous &#8220;Password: &#8220;) or the Ubuntu default (&#8220;[sudo] password for username: &#8220;) because it also lists the host you are currently on.  If you login to as many machines as I do, confusing one sudo prompt for another is an easy way to ruin your day.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tolaris.com/2008/10/02/running-root-apps-with-user-gui-preferences/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

