<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>LinuxQuestions.org - Blogs - linux-related notes by the dsc</title>
		<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/</link>
		<description>LinuxQuestions.org offers a free Linux forum where Linux newbies can ask questions and Linux experts can offer advice. Topics include security, installation, networking and much more.</description>
		<language>en</language>
		<lastBuildDate>Sat, 25 May 2013 21:34:31 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>https://lqo-thequestionsnetw.netdna-ssl.com/questions/images/misc/rss.jpg</url>
			<title>LinuxQuestions.org - Blogs - linux-related notes by the dsc</title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/</link>
		</image>
		<item>
			<title>Getting out of a dependency hell without reinstalling</title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/getting-out-of-a-dependency-hell-without-reinstalling-35460/</link>
			<pubDate>Thu, 18 Apr 2013 05:07:19 GMT</pubDate>
			<description><![CDATA[I'm not suggesting it's really preferable in any situation or in any specific situation, I just found myself in a "what the hell" point and thought...]]></description>
			<content:encoded><![CDATA[<div>I'm not suggesting it's really preferable in any situation or in any specific situation, I just found myself in a &quot;what the hell&quot; point and thought it worth a try, and it worked.<br />
<br />
I was just thinking that it would be nice that for slideshow videos there was a variable frame rate, and turns out that it exist. I've found that the program handbrake can handle that easily, so I decided to install. Unfortunatelly it's only on Debians unnofficial multimedia repository, which can have some serious conflicts with official packages. That's what happened after I naively upgraded just one or another additional package that I thought that wouldn't cause the same sorts of bugs I already had once, but it did. These are packages somewhat indirectly related with (g)mplayer, like libavcodec53 and related packages.<br />
<br />
Once you install the multimedia repo versions, you can't mark to uninstall them on synaptic without marking to uninstall also something like 300 other packages, which would leave your system just with bare-bones x-server or something. Even though most of these packages haven't been upgraded, so they theoretically couldn't depend on those new packages &quot;for real&quot;.<br />
<br />
And they don't. With some guesswork it's possible to uninstall manually the newly upgraded packages and reinstall the official versions, all with &quot;dpkg -r &lt;package&gt; --ignore-depends &lt;package&gt;&quot; magic.<br />
<br />
<b>This is NOT a &quot;tutorial&quot;, this is reference for myself just in case I do something stupid again in the future, or in case I stumble in some collateral problem. Try anything at your own risk, don't blame me.</b> There's even lots of commands that just gave error outputs, as I haven't cleaned it up yet. Downloading of packages via web-browser usually precedes a &quot;dpkg -i&quot;, which requires a previously downloaded package.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 498px;
		text-align: left;
		overflow: auto">00:09:01 - root /home/d # dpkg -i libavcodec-extra-53_0.8.6-1_i386.deb 
Selecting previously unselected package libavcodec-extra-53:i386.
dpkg: regarding libavcodec-extra-53_0.8.6-1_i386.deb containing libavcodec-extra-53:i386:
 libavcodec-extra-53:i386 breaks libavcodec53
  libavcodec53:i386 (version 7:0.10.3-dmo1) is present and installed.

dpkg: error processing libavcodec-extra-53_0.8.6-1_i386.deb (--install):
 installing libavcodec-extra-53:i386 would break libavcodec53:i386, and
 deconfiguration is not permitted (--auto-deconfigure might help)
Errors were encountered while processing:
 libavcodec-extra-53_0.8.6-1_i386.deb
01:16:38 - root /home/d # dpkg -i libavcodec-extra-53_0.8.6-1_i386.deb --auto-deconfigure
dpkg: regarding libavcodec-extra-53_0.8.6-1_i386.deb containing libavcodec-extra-53:i386:
 libavcodec-extra-53:i386 breaks libavcodec53
  libavcodec53:i386 (version 7:0.10.3-dmo1) is present and installed.

dpkg: error processing libavcodec-extra-53_0.8.6-1_i386.deb (--install):
 installing libavcodec-extra-53:i386 would break libavcodec53:i386, and
 deconfiguration is not permitted (--auto-deconfigure might help)
dpkg: error processing --auto-deconfigure (--install):
 cannot access archive: No such file or directory
Errors were encountered while processing:
 libavcodec-extra-53_0.8.6-1_i386.deb
 --auto-deconfigure
01:18:38 - root /home/d # dpkg --auto-deconfigure -i libavcodec-extra-53_0.8.6-1_i386.deb
dpkg: considering deconfiguration of libavcodec53:i386, which would be broken by installation of libavcodec-extra-53:i386 ...
dpkg: yes, will deconfigure libavcodec53:i386 (broken by libavcodec-extra-53:i386)
dpkg: regarding libavcodec-extra-53_0.8.6-1_i386.deb containing libavcodec-extra-53:i386:
 libavcodec54:i386 conflicts with libavcodec-extra-53
  libavcodec-extra-53:i386 (version 6:0.8.6-1) is to be installed.

dpkg: error processing libavcodec-extra-53_0.8.6-1_i386.deb (--install):
 conflicting packages - not installing libavcodec-extra-53:i386
Errors were encountered while processing:
 libavcodec-extra-53_0.8.6-1_i386.deb
01:18:58 - root /home/d # dpkg -r libavcodex54:i386
dpkg: warning: ignoring request to remove libavcodex54 which isn't installed
01:19:38 - root /home/d # dpkg -r libavcodec54:i386
dpkg: dependency problems prevent removal of libavcodec54:i386:
 vlc depends on libavcodec54 (&gt;= 8:1.0.4).
 libavformat54:i386 depends on libavcodec54 (&gt;= 8:1.0.0).
 libavfilter2:i386 depends on libavcodec54 (&gt;= 7:0.11.2).
 libavfilter3:i386 depends on libavcodec54 (&gt;= 8:1.0.0).
 vlc-nox depends on libavcodec54 (&gt;= 8:1.0.4).
 libmlt5:i386 depends on libavcodec54 (&gt;= 8:1.0.2).
 libavdevice54:i386 depends on libavcodec54 (&gt;= 8:1.0.0).
 ffmpeg depends on libavcodec54 (&gt;= 8:1.0.0).

dpkg: error processing libavcodec54:i386 (--remove):
 dependency problems - not removing
Errors were encountered while processing:
 libavcodec54:i386
01:19:46 - root /home/d # dpkg -r --ignore-depends libavcodec54:i386
dpkg: error: --remove needs at least one package name argument

Type dpkg --help for help about installing and deinstalling packages[*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

Options marked[*] produce a lot of output - pipe it through `less' or `more' !
01:20:30 - root /home/d # dpkg --ignore-depends -r libavcodec54:i386
dpkg: error: --ignore-depends needs a valid package name but '-r' is not: illegal package name in specifier '-r': must start with an alphanumeric character
01:20:43 - root /home/d # dpkg --ignore-depends libavcodec54:i386 -r libavcodec54:i386
(Reading database ... 266993 files and directories currently installed.)
Removing libavcodec54:i386 ...
01:21:40 - root /home/d # dpkg -i libavcodec-extra-53_0.8.6-1_i386.deb 
dpkg: regarding libavcodec-extra-53_0.8.6-1_i386.deb containing libavcodec-extra-53:i386:
 libavcodec-extra-53:i386 breaks libavcodec53
  libavcodec53:i386 (version 7:0.10.3-dmo1) is present and installed.

dpkg: error processing libavcodec-extra-53_0.8.6-1_i386.deb (--install):
 installing libavcodec-extra-53:i386 would break libavcodec53:i386, and
 deconfiguration is not permitted (--auto-deconfigure might help)
Errors were encountered while processing:
 libavcodec-extra-53_0.8.6-1_i386.deb
01:21:52 - root /home/d # 
01:22:20 - root /home/d # 
01:22:20 - root /home/d # 
01:22:20 - root /home/d # dpkg --ignore-depends libavcodec53:i386 -r libavcodec53:i386
(Reading database ... 266985 files and directories currently installed.)
Removing libavcodec53:i386 ...
01:22:48 - root /home/d # 
01:22:48 - root /home/d # 
01:22:49 - root /home/d # dpkg -i libavcodec-extra-53_0.8.6-1_i386.deb (Reading database ... 266978 files and directories currently installed.)
Unpacking libavcodec-extra-53:i386 (from libavcodec-extra-53_0.8.6-1_i386.deb) ...
Setting up libavcodec-extra-53:i386 (6:0.8.6-1) ...
01:22:56 - root /home/d # apt-get download mplayer
Get:1 Downloading mplayer 2:1.0~rc4.dfsg1+svn34540-1+b2 [2,885 kB]
Fetched 2,885 kB in 24s (119 kB/s)                                             
01:29:00 - root /home/d # dpkg -i mplayer
dpkg: error processing mplayer (--install):
 cannot access archive: No such file or directory
Errors were encountered while processing:
 mplayer
01:29:07 - root /home/d # dpkg -i mplayer_1.0~rc4.dfsg1+svn34540-1+b2_i386.deb 
(Reading database ... 266988 files and directories currently installed.)
Preparing to replace mplayer 2:1.0~rc4.dfsg1+svn34540-1+b2 (using mplayer_1.0~rc4.dfsg1+svn34540-1+b2_i386.deb) ...
Unpacking replacement mplayer ...
Replaced by files in installed package mencoder ...
Setting up mplayer (2:1.0~rc4.dfsg1+svn34540-1+b2) ...
Processing triggers for mime-support ...
Processing triggers for man-db ...
01:29:41 - root /home/d # 
01:30:20 - root /home/d # 
01:30:20 - root /home/d # dpkg --reconfigure mplayer
dpkg: error: unknown option --reconfigure

Type dpkg --help for help about installing and deinstalling packages[*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

Options marked[*] produce a lot of output - pipe it through `less' or `more' !
01:30:35 - root /home/d # dpkg-reconfigure mplayer
01:30:48 - root /home/d # dpkg-reconfigure libavcodec-extra-53
01:31:02 - root /home/d # dpkg-reconfigure mplayer
01:31:05 - root /home/d # 
01:32:31 - root /home/d # 
01:32:31 - root /home/d # dpkg -i libavformat-extra-53_0.8.6-1_all.deb 
Selecting previously unselected package libavformat-extra-53.
dpkg: regarding libavformat-extra-53_0.8.6-1_all.deb containing libavformat-extra-53:
 libavformat54:i386 conflicts with libavformat-extra-53
  libavformat-extra-53 (version 6:0.8.6-1) is to be installed.

dpkg: error processing libavformat-extra-53_0.8.6-1_all.deb (--install):
 conflicting packages - not installing libavformat-extra-53
Errors were encountered while processing:
 libavformat-extra-53_0.8.6-1_all.deb
01:32:39 - root /home/d # dpkg --ignore-depends libavformat54:i386 -r libavformat54:i386
(Reading database ... 266987 files and directories currently installed.)
Removing libavformat54:i386 ...
01:34:13 - root /home/d # 
01:34:13 - root /home/d # 
01:34:13 - root /home/d # dpkg -i libavformat-extra-53_0.8.6-1_all.deb dpkg: regarding libavformat-extra-53_0.8.6-1_all.deb containing libavformat-extra-53:
 libavformat53:i386 conflicts with libavformat-extra-53
  libavformat-extra-53 (version 6:0.8.6-1) is to be installed.

dpkg: error processing libavformat-extra-53_0.8.6-1_all.deb (--install):
 conflicting packages - not installing libavformat-extra-53
Errors were encountered while processing:
 libavformat-extra-53_0.8.6-1_all.deb
01:34:20 - root /home/d # dpkg --ignore-depends libavformat53:i386 -r libavformat53:i386
(Reading database ... 266979 files and directories currently installed.)
Removing libavformat53:i386 ...
01:34:36 - root /home/d # dpkg -i libavformat-extra-53_0.8.6-1_all.deb (Reading database ... 266972 files and directories currently installed.)
Unpacking libavformat-extra-53 (from libavformat-extra-53_0.8.6-1_all.deb) ...
dpkg: dependency problems prevent configuration of libavformat-extra-53:
 libavformat-extra-53 depends on libavformat53; however:
  Package libavformat53:i386 is not installed.

dpkg: error processing libavformat-extra-53 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libavformat-extra-53
01:34:39 - root /home/d # dpkg -i libavformat53_0.8.6-1_i386.deb 
Selecting previously unselected package libavformat53:i386.
dpkg: considering removing libavformat-extra-53 in favour of libavformat53:i386 ...
dpkg: libavformat-extra-53 is not properly installed; ignoring any dependencies on it
dpkg: yes, will remove libavformat-extra-53 in favour of libavformat53:i386
(Reading database ... 266977 files and directories currently installed.)
Unpacking libavformat53:i386 (from libavformat53_0.8.6-1_i386.deb) ...
Setting up libavformat53:i386 (6:0.8.6-1) ...
01:36:05 - root /home/d # dpkg -i libavformat-extra-53_0.8.6-1_all.deb 
Selecting previously unselected package libavformat-extra-53.
(Reading database ... 266983 files and directories currently installed.)
Unpacking libavformat-extra-53 (from libavformat-extra-53_0.8.6-1_all.deb) ...
Setting up libavformat-extra-53 (6:0.8.6-1) ...
01:36:11 - root /home/d # dpkg-reconfigure mplayer</pre>
</div><br />
Mplayer and VLC were not playing .flv files before that, but I managed to make it work by repeating the same sort of process with one more package (libavutils50 or something). It doesn't do that alone though, I can't simply reinstall the official package normally, as there are still quite a few broken packages, something like 20. But these are more obviously only video/multimedia-related, and then I could mark to uninstall them all on synaptic, uninstall, then install only those again (mostly by virtue of simply being a dependency of something like VLC, no need to add them individually for the most part). For some reason sometimes I have to click on &quot;apply&quot; once, I'll receive some error message related with broken packages, but it will work when I click on apply for a second time, without changing anything.</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/getting-out-of-a-dependency-hell-without-reinstalling-35460/</guid>
		</item>
		<item>
			<title>A good $PS1 for displaying long paths in the bash prompt</title>
			<link>http://www.linuxquestions.org/questions/blog.php?b=35402</link>
			<pubDate>Thu, 14 Mar 2013 04:29:10 GMT</pubDate>
			<description><![CDATA[Code: 
--------- 
PS1='${debian_chroot:+($debian_chroot)}\t \u $(if [ ${#PWD} -gt 30 ] ; then myPWD="${PWD:0:12}…/\W" ; myPWD="${myPWD:0:25}…" ; else...]]></description>
			<content:encoded><![CDATA[<div><div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">PS1='${debian_chroot:+($debian_chroot)}\t \u $(if [ ${#PWD} -gt 30 ] ; then myPWD=&quot;${PWD:0:12}…/\W&quot; ; myPWD=&quot;${myPWD:0:25}…&quot; ; else myPWD=$PWD; fi ; echo $myPWD) $ '</pre>
</div>It will display full paths smaller than 30 characters entirely, but for longer paths it will get only the first characters of the whole path, and the fist characters of the last folder in the full path.<br />
<br />
The end result is something like:<br />
<br />
<b>HH:MM:SS tuxguy /home/tuxguy/mystuf.../xmas pics $</b><br />
<b>HH:MM:SS tuxguy /home/tuxguy/mystuf.../long folder nam... $</b><br />
<br />
It's a combination of what I already had (everything up to &quot;\u&quot;) and something I saw here, in the comment section:<br />
<br />
<a href="http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html" target="_blank" rel="nofollow">http://www.cyberciti.biz/tips/howto-...up-prompt.html</a><br />
<br />
It was using a somewhat different method that didn't work for me, perhaps because of different/wrong quote characters, environment variables, or whatever.. So I stuck it all into PS1, ditching the &quot;PROMPT_COMMAND&quot; part that I didn't get. And it worked.<br />
<br />
I like having the first characters of the current folder better, they're often more informative than the last ones I guess.</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog.php?b=35402</guid>
		</item>
		<item>
			<title>Ditch Deja Vu Sans Condensed, use Liberation Sans, and be happy</title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/ditch-deja-vu-sans-condensed-use-liberation-sans-and-be-happy-35388/</link>
			<pubDate>Sun, 10 Mar 2013 00:01:02 GMT</pubDate>
			<description><![CDATA[I used to like the condensed variant of Deja Vu, which is the default font (in the regular variation) for many linux distributions/DEs I guess. I've...]]></description>
			<content:encoded><![CDATA[<div>I used to like the condensed variant of Deja Vu, which is the default font (in the regular variation) for many linux distributions/DEs I guess. I've always disliked the regular variant, I find it too wide, while the condensed is very nice to look at. It's quite a hassle to actually use it everywhere though, either the font is buggy, or the apps that read it are buggy. I think it's the former as other fonts with two &quot;nested subtypes/variants&quot; work (such as liberation). The GUI settings editors won't be able to set it, picking either &quot;book&quot; or &quot;semi-condensed&quot; variants instead, if at all. <br />
<br />
In some cases (KDE, and perhaps GTK3 or GTK2 (not both)), you can edit the config files manually and have it working. Which is OK if you only use mostly KDE, but if you use a little bit of everything and wants to make it all look reasonably homogeneous, both in theming, fonts, and font antialiasing/hinting, it may be quite troublesome, as the GUI settings editors will tend to change things you didn't want to change, so you go on one by one fixing everything, but at each time it's breaking some other config you had previously set, sometimes not immediately obvious as running instances will remain running with the previous/correct settings sometimes, and sometimes (depending on the settings editor and/or widget set) it will immediately &quot;reset&quot; the theme/font settings even on running instances.<br />
<br />
Liberation sans is a very acceptable replacement. It's already narrow enough in its regular variant, the narrow variant is a bit too narrow. Every GUI settings editor will understand it, every widget set will accept it, and so then there's one thing less to manually fix on the config files.</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/ditch-deja-vu-sans-condensed-use-liberation-sans-and-be-happy-35388/</guid>
		</item>
		<item>
			<title>Make some apps (mainly KDE apps with text fields) start faster</title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/make-some-apps-mainly-kde-apps-with-text-fields-start-faster-35339/</link>
			<pubDate>Wed, 27 Feb 2013 01:37:18 GMT</pubDate>
			<description><![CDATA[Just create a folder "*~/.compose-cache*". 
 
Or better yet, at least in a semi-philosophical level, have your startup script to create...]]></description>
			<content:encoded><![CDATA[<div>Just create a folder &quot;<b>~/.compose-cache</b>&quot;.<br />
<br />
Or better yet, at least in a semi-philosophical level, have your startup script to create &quot;<b>/dev/shm/.compose-cache</b>&quot; every time, and just create it once, and a soft link to your home folder. No unnecessary access to your disk, writing to and reading from memory instead. Which is often assumed to be better for several cache-type usages, both for performance and (supposedly) for the lifespan of your hard disk*. Some people even make some scripts that will copy the entire profile folder of an application such as firefox or chrome to /dev/shm, where the browser will use it, and synchronize it back to the disk when it is closed.<br />
<br />
If the PC is shared by more people who may use it with simultaneous sessions, perhaps it's better to have it as &quot;<b>/dev/shm/$USER/.compose-cache</b>&quot; instead.<br />
<br />
<br />
<br />
* however, some studies surprisingly show no significant correlation between heavy disk usage and decreased lifespan, perhaps even somewhat of an inverse correlation when lower usage is accompanied by lower temperatures, which perhaps even more counter intuitively, correlate more with shorter lifespan than hotter temperatures. I'm not suggesting you should light a fire inside your cabinet though.</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/make-some-apps-mainly-kde-apps-with-text-fields-start-faster-35339/</guid>
		</item>
		<item>
			<title>Controlling VLC via openbox key bindings... and wget(!)</title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/controlling-vlc-via-openbox-key-bindings-and-wget-35287/</link>
			<pubDate>Mon, 28 Jan 2013 16:21:38 GMT</pubDate>
			<description><![CDATA[On openbox' rc.xml, in the corresponding section: 
 
 
Code: 
--------- 
    <keybind key="W-z"> 
      <action name="Execute"> 
<execute>wget...]]></description>
			<content:encoded><![CDATA[<div>On openbox' rc.xml, in the corresponding section:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 178px;
		text-align: left;
		overflow: auto">    &lt;keybind key=&quot;W-z&quot;&gt;
      &lt;action name=&quot;Execute&quot;&gt;
&lt;execute&gt;wget http://127.0.0.1:8080/requests/status.xml?command=pl_previous -O /dev/null&lt;/execute&gt; 
      &lt;/action&gt;
    &lt;/keybind&gt;
    &lt;keybind key=&quot;W-x&quot;&gt;
      &lt;action name=&quot;Execute&quot;&gt;
	&lt;execute&gt;wget http://127.0.0.1:8080/requests/status.xml?command=pl_next -O /dev/null&lt;/execute&gt; 
      &lt;/action&gt;
    &lt;/keybind&gt;</pre>
</div>With &quot;web&quot; interface enabled<br />
<br />
By far the weirdest workaround I've seen on this sort of thing. If that's really a workaround and not the &quot;proper&quot; way to do it.<br />
<br />
Command line has options such as:<br />
<br />
vlc --global-key-prev p &lt;playlist-name-I-guess.m3u&gt;<br />
<br />
which sort of works, except that in this case it won't be really the previous, but just a random element. I guess the playlist is being re-loaded, but it won't work if you don't give such mysterious &quot;string&quot;, which is supposed to be a file, according to the error console. VLC's instrunctions are as follow:<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="3" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="bbcodeblock" style="border:1px inset">
			
				    --global-key-prev=&lt;string&gt; Previous<br />
          Select the hotkey to use to skip to the previous item in the playlist.<br />
      --key-prev=&lt;string&gt;        Previous<br />
          Select the hotkey to use to skip to the previous item in the playlist.
			
		</td>
	</tr>
	</table>
</div>Which to be honest I can't really tell if that's a command line to navigate through the playlist, or just to set the hotkeys. It sounds more like the latter, but that's a rather odd command to have on command line begin with. Furthermore I didn't succeed in trying to re-set the hotkeys that way either, so I guess it's really a navigation control, as it's something more expected to have on command line, I guess.</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/controlling-vlc-via-openbox-key-bindings-and-wget-35287/</guid>
		</item>
		<item>
			<title><![CDATA[Wacom tablet and the "keepshape" option, on openbox]]></title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/wacom-tablet-and-the-keepshape-option-on-openbox-35150/</link>
			<pubDate>Thu, 22 Nov 2012 03:54:42 GMT</pubDate>
			<description><![CDATA[On KDE you can set "keepshape" on "systemsettings", but apparently there's no way to do it in any other DE. The proper way to have "keepshape"...]]></description>
			<content:encoded><![CDATA[<div>On KDE you can set &quot;keepshape&quot; on &quot;systemsettings&quot;, but apparently there's no way to do it in any other DE. The proper way to have &quot;keepshape&quot; working does not seem to work on Debian Wheezy (setting it on xorg.conf.d/50-wacom.conf). The &quot;standard&quot; alternatives are a static xorg.conf, and perhaps figuring hal/udev rules, which I don't know how to do.<br />
<br />
Another way to do it is via xsetwacom, explicitly setting the active area along the lines of:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 66px;
		text-align: left;
		overflow: auto">xsetwacom set &quot;Wacom Bamboo stylus&quot; Area 0 0 11531 9225
xsetwacom set &quot;Wacom Bamboo cursor&quot; Area 0 0 11531 9225
xsetwacom set &quot;Wacom Bamboo eraser&quot; Area 0 0 11531 9225</pre>
</div>These lines are to be placed in an autostart script appropriate for the DE you're using.<br />
<br />
Instead of &quot;Wacom Bamboo whatever&quot; yours might have some other name. In order to get the proper name, you should use the command &quot;xsetwacom --list devices&quot;, as a normal user (or at least that worked for me).<br />
<br />
I got these numbers, the coordinates (&quot;0 0 11531 9225&quot;) from KDE's wacom settings panel. Over there there is a section where you can set the tablet to be proportional to the display, and move the active area as you wish. &quot;0,0&quot; means that in my case it starts exactly at the top right. You get these numbers from the &quot;diagram&quot;/what-you-see-is-what-you-get thing.<br />
<br />
Setting it on KDE will work only for KDE as it require a KDE service to be running. If you have some KDE installed you don't need to log on a session to get these values, just starting the service on systemsettings (startup and shutdown &#8594; service manager &#8594; select &quot;wacom tablet&quot; and click on &quot;start&quot;) will suffice. Perhaps one could even manage to have the service working in some other DE via some of those dcop/dbus commands I guess, so the settings panel would be totally functional in any DE you can make the service run at startup.<br />
<br />
<br />
<br />
Perhaps there's a less newbie-ish way of getting these coordinates, but I don't know how to do it, and it just works this way, so that's enough for me. I saw somewhere even a script that would generate it every time I guess, but I didn't looked carefully at it yet:<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="3" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="bbcodeblock" style="border:1px inset">
			
				<div>
					Originally Posted by <strong>maxy</strong>
					
				</div>
				<div style="font-style:italic">As far as I know, at the moment, you have to configure this manually. I have the opposite problem: my screen is wide and the tablet &quot;normal&quot;. I also prefer to have a bit a smaller active area. I use the bash script below to map the bottom area of my tablet. Obviously you would have to change it for your needs.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 274px;
		text-align: left;
		overflow: auto">stylus=&quot;Wacom Intuos3 6x8&quot;

(( w = 40640 )) # intuos active area
(( h = 30480 )) # intuos active area
# 1920 1080 &lt;-- wide screen (16:9)
(( w2 = w*6/10 )) # use only 60% of the tablet width (free choice)
(( h2 = w2*9/16 )) # calculate the height to make the ratio correct
(( topx = 0 )) # active area starts at the bottom left of the tablet
(( topy = h - h2 ))
(( bottomx = topx + w2 ))
(( bottomy = topy + h2 ))

xsetwacom set &quot;$stylus&quot; topx $topx
xsetwacom set &quot;$stylus&quot; topy $topy
xsetwacom set &quot;$stylus&quot; bottomx $bottomx
xsetwacom set &quot;$stylus&quot; bottomy $bottomy</pre>
</div></div>
			
		</td>
	</tr>
	</table>
</div> Here's the link: <br />
<a href="http://forum.intilinux.com/mypaint-help-and-tips/wacom-tablet-and-monitor-aspect-ratio/msg7663/#msg7663" target="_blank" rel="nofollow">http://forum.intilinux.com/mypaint-h...g7663/#msg7663</a><br />
<br />
If the xsetwacom's syntax given above is outdated, I think you just need to use the same variables on a line like &quot;xsetwacom set '$stylus' Area $topx,$topy $bottomx, $bottomy&quot;, or perhaps vice-versa.</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/wacom-tablet-and-the-keepshape-option-on-openbox-35150/</guid>
		</item>
		<item>
			<title>Gmplayer/mplayer-gui standard package works perfectly on Debian testing (Wheezy)</title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/gmplayer-mplayer-gui-standard-package-works-perfectly-on-debian-testing-wheezy-35148/</link>
			<pubDate>Wed, 21 Nov 2012 18:48:07 GMT</pubDate>
			<description><![CDATA[If you like mplayer's native GUI, and you're about to install Debian testing (currently Wheezy), avoid using packages from deb-multimedia as much as...]]></description>
			<content:encoded><![CDATA[<div>If you like mplayer's native GUI, and you're about to install Debian testing (currently Wheezy), avoid using packages from deb-multimedia as much as possible. <br />
<br />
To me it seems that the problem is actually with ffmpeg (deb-multimedia's), but I'm not willing to test it. I think it somehow interferes with mplayer-gui/gmplayer.<br />
<br />
Just a few days ago I had an Wheezy install where I had gmplayer working, but very inconsistently, I would double click some video file and in five times out of fifteen it wouldn't work, showing dozens of error message windows instead. And it wasn't related with a particular type of file/container/codec, as it would work on the same file afterwards, sometimes immediately after. It happened despite of the fact that I was keeping outdated packages (the newest ones wouldn't work at all, I don't recall if mplayer and mplayer-gui were incompatible or what), after trying several ones until find the latest one that would work.<br />
<br />
To my surprise as I've reinstalled Wheezy, mplayer and gmplayer were both working with a default install. But it didn't last long as I've also added deb-multimedia's repository and updated everything but mplayer and gmplayer. The worst part is that even though I suspected that ffmpeg was the offending package, there was some dependency-hell sort of situation that made &quot;impossible&quot; to downgrade it. So I've reinstalled Wheezy twice in two days. Yeah, I'm turning back my badge and my pendrives with live linux distros, both the one I carry on the belt and the one I carry on the ankle.<br />
<br />
Apparently you can install avidemux (from deb-multimedia) and still have gmplayer working, or at least that's the situation before rebooting.</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/gmplayer-mplayer-gui-standard-package-works-perfectly-on-debian-testing-wheezy-35148/</guid>
		</item>
		<item>
			<title>Bash quickie: loop N times, without doing math</title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/bash-quickie-loop-n-times-without-doing-math-35098/</link>
			<pubDate>Tue, 23 Oct 2012 02:07:47 GMT</pubDate>
			<description><![CDATA[I thought that the only way to do such type of loop in Bash would require something like "*n=$(($n+1))*" within the loop, with the loop being...]]></description>
			<content:encoded><![CDATA[<div>I thought that the only way to do such type of loop in Bash would require something like &quot;<b>n=$(($n+1))</b>&quot; within the loop, with the loop being conditioned to &quot;n&quot; adding up to whatever you want, such as &quot;<b>until ((n==30)) ; do</b>&quot;. But you can actually do &quot;<b>for i in {1..20} ; do &lt;whatever&gt; ; done</b>&quot;. That's somewhat similar to Basic's &quot;for i=1 to 20 ; whatever ; next i&quot;.<br />
<br />
But it won't work with variables for the starting and ending numbers. If you want to use variables, you must use $(seq): &quot;<b>for n in $(seq $startnum $endnum) ; do &lt;uptoyou&gt; ; done</b>.</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/bash-quickie-loop-n-times-without-doing-math-35098/</guid>
		</item>
		<item>
			<title>Pure-text de-truncator script, a work in progress</title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/pure-text-de-truncator-script-a-work-in-progress-35058/</link>
			<pubDate>Sun, 30 Sep 2012 18:28:22 GMT</pubDate>
			<description><![CDATA[Sometimes I want to quote some PDF on pure text, luckily enough it would have actual text rather than being an non-OCRed image, but often there's...]]></description>
			<content:encoded><![CDATA[<div>Sometimes I want to quote some PDF on pure text, luckily enough it would have actual text rather than being an non-OCRed image, but often there's still the problem that the text on the PDF is truncated/formatted in a fake/dumb way, with actual &quot;new lines&quot; to break the page, which may not make the text completely unreadable when pasted in a text editor, but it's reasonably annoying, and may require quite some time to fix manually.<br />
<br />
I'm trying to create a script or one-liner with a few pipes that would try to fix those texts. I think it basically has to read the text line by line, check if it's an empty line (in which case it does nothing I guess), if it ends in a period (again, do nothing), or if it's too short (and does nothing, just in case it's a header). If none of these apply, it's likely that it ends in a unnecessary &quot;new line&quot;, which is then stripped. Not necessarily in this particular sequence of tests, perhaps there's some other sequence that's more logical for the flow.<br />
<br />
<br />
So far what I have is:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">xclip -o | while read a ; do lchr=&quot;${a#${a%?}})&quot; ; if [ ! $lchr = &quot;.&quot; ] ; then echo $a NODOT | tr -d '\n' ; else echo $a PERIOD ; fi ; done</pre>
</div>Very preliminary, the &quot;xclip&quot; means that the text is coming from the clipboard, eventually I'd change it for some &quot;cat $file/$*&quot; phrasing I guess. The all-caps echos are obviously just a &quot;debug mode&quot;, in order to make utterly clear what's going on. <br />
<br />
For while it only checks if the line ends in period or not, and strips the &quot;new line&quot; if it does not. I still got to find out how to test empty lines and some arbitrary but reasonably good number of characters for eventual headers.<br />
<br />
Any help is appreciated!<br />
<br />
<br />
<br />
References:<br />
<a href="http://www.unix.com/shell-programming-scripting/14462-testing-last-character-string.html" target="_blank" rel="nofollow">http://www.unix.com/shell-programmin...er-string.html</a><br />
<a href="http://www.linuxquestions.org/questions/programming-9/merge-lines-in-a-file-using-sed-191121/">http://www.linuxquestions.org/questi...ng-sed-191121/</a></div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/pure-text-de-truncator-script-a-work-in-progress-35058/</guid>
		</item>
		<item>
			<title><![CDATA[Rant: what was wrong/"bad" with mplayer-gui/gmplayer?]]></title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/rant-what-was-wrong-bad-with-mplayer-gui-gmplayer-35008/</link>
			<pubDate>Mon, 03 Sep 2012 15:41:32 GMT</pubDate>
			<description><![CDATA[I don't get it. It wasn't like it inspired someone to say that it's the GUI that one ever dreamed about, but was fully functional, and funnily enough...]]></description>
			<content:encoded><![CDATA[<div>I don't get it. It wasn't like it inspired someone to say that it's the GUI that one ever dreamed about, but was fully functional, and funnily enough more reliable than all the alternative GUIs that used mplayer as a back-end, as far as I've looked at. I guess the decision eventually resulted in a (current to me at least) problem with subtitles/fontconfig, as subtitles will work on mplayer and mplayer2, but not on gmplayer, even though it never used to be that way before.<br />
<br />
It's not with mplayer that this sort of thing happens though, I find very frustrating things like the &quot;instant filter&quot; on konqueror being removed with the reasoning that it's a &quot;plugin&quot; and it needed to be built-in, but they've done that <i>before</i> the built-in version was implemented, leaving the software less functional. I'm not a programmer but I think that it's not a requirement to remove the availability of such plugin in order to develop/adapt (from dolphin or from the &quot;plugin&quot;) the built-in version. Why cripple the software instead of making this end-user-invisible/technical improvement without crippling it? <i>If it isn't broken, don't remove it.</i><br />
<br />
That remembers me somewhat of the whole polemic against Gnome 3. I'm happy I never used Gnome*, by the way. I just hope openbox remains forever more or less like it is today. <br />
<br />
<br />
[/rant]<br />
<br />
<br />
* from a non-former-user perspective, it does not look that bad though. I still wonder if things like gnome 2 and kde 3 should really have been &quot;dead ends&quot;,  rather their successors being independent &quot;forks&quot;, and their predecessors being eventually phased out gradually as people moved to them, if they did. [rant again] Perhaps that's why. Perhaps developers want to see their new creations being widely adopted, and there's no better way than discontinuing or crippling alternatives/predecessors, with which perhaps they don't have the same sort of personal attachment that they may have with the new things they've created from scratch. [/rant]</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/rant-what-was-wrong-bad-with-mplayer-gui-gmplayer-35008/</guid>
		</item>
		<item>
			<title>Three convenient customizations to firefox / iceweasel</title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/three-convenient-customizations-to-firefox-iceweasel-34887/</link>
			<pubDate>Sat, 14 Jul 2012 21:40:21 GMT</pubDate>
			<description>*Restore an old/previous session, but do not load the tabs right away:* an end to the dilemma of empty session versus restoring tabs. Add to...</description>
			<content:encoded><![CDATA[<div><b>Restore an old/previous session, but do not load the tabs right away:</b> an end to the dilemma of empty session versus restoring tabs. Add to &quot;about<b></b>:config&quot;, if it's not already there:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">browser.sessionstore.restore_on_demand</pre>
</div>Set to &quot;true&quot;, and it doesn't hurt to add also:<br />
<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">browser.sessionstore.max_concurrent_tabs</pre>
</div>Set to 0. I guess it depends on the version or whatever, I don't care to find out. I wish I knew that long ago, apparently it exists ever since firefox 4. Which isn't that long ago anyway, with all the new-version-number-frenzy they got into.<br />
<br />
<br />
<br />
<b>Making mozilla look native:</b> I guess it may depend on which DE you're using; I'm on openbox and using qtcurve, which generates the same version of a custom theme for both QT/KDE and GTK (but not GTK3), and it worked quite well, it only lacks a highlight on tabs as we hover:<br />
<br />
<a href="http://userstyles.org/styles/49622/native-look-for-firefox-4-on-linux" target="_blank" rel="nofollow">http://userstyles.org/styles/49622/n...fox-4-on-linux</a><br />
<br />
It says &quot;4&quot; but works for firefox 10 or whatever it's now.<br />
<br />
<br />
<br />
And for those who prefer <b>compact interfaces:</b> &quot;replacing the Iceweasel/firefox button with an icon&quot;:<br />
<br />
<a href="http://glandium.org/blog/?p=1554" target="_blank" rel="nofollow">http://glandium.org/blog/?p=1554</a></div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/three-convenient-customizations-to-firefox-iceweasel-34887/</guid>
		</item>
		<item>
			<title>Mplayer configuration tips</title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/mplayer-configuration-tips-34865/</link>
			<pubDate>Sat, 07 Jul 2012 06:50:47 GMT</pubDate>
			<description><![CDATA[*Setting the default volume for mplayer and gmplayer* 
 
Despite of having different config files, "config" and "gui.conf", this is one configuration...]]></description>
			<content:encoded><![CDATA[<div><b>Setting the default volume for mplayer and gmplayer</b><br />
<br />
Despite of having different config files, &quot;config&quot; and &quot;gui.conf&quot;, this is one configuration that gmplayer inherits from &quot;config&quot;, and will be ignored if set on &quot;gui.conf&quot;, with the volume being reset to max and the line in the config file removed. That's one of those easter-eggs to give type As heart attacks. I think that's valid for Debian squeeze's gmplayer version, it may have changed afterward.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 50px;
		text-align: left;
		overflow: auto">softvol = &quot;yes&quot;
af=volume=-24</pre>
</div>&quot;Softvol&quot; stands for &quot;software volume&quot;, meaning that mplayer will have its own &quot;independent&quot; volume relative to the OS global volume settings such as PCM, Master, Front, etc. I don't know why exactly the volume setting is negative, perhaps it's relative to some absolute default that is not zero, that just happened to be the value that sounded OK for me.<br />
<br />
<br />
<br />
<b>Controls for brightness, contrast and saturation</b><br />
(The keyboard shortcuts are the numbers in the number row)<br />
<br />
Just use &quot;vo=gl&quot; instead of &quot;vo=xv&quot; (default I guess), no noticeable compromise in performance. I don't know the requirements for that, but right now I just have standard wheezy and/or squeezy packages from Debian's repositories, <u>not</u> debian-multimedia.<br />
<br />
<br />
<br />
<b>Changing subtitles colors</b><br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 82px;
		text-align: left;
		overflow: auto">ass=yes
#ass-color=FFFF00
ass-border-color=000000
subfont-text-scale = &quot;7&quot;</pre>
</div>I don't get exactly what's the deal with selecting the color, because if I recall when I tried to set yellow the subtitles would be cyan, and so on, I was probably using the wrong color &quot;codes&quot;, and I couldn't find reference for the proper one to use. The subtitles are somehow yellow with black contours with the configuration above, anyway. Gui.conf has no options on subtitles colors, and it will be yellow as well, perhaps that's the default for &quot;Advanced SubStation Alpha&quot;.<br />
<br />
<br />
<b>Fast or slower tempo, preserving pitch -- plus normalization</b><br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">af=scaletempo,volnorm=2:0.75,volume=2</pre>
</div>The  &quot;2&quot; on volnorm means that it will base its normalization on two samples or something like that, the default is one.<br />
<br />
<br />
<br />
<b>Default and alternative configs for gmplayer</b><br />
<br />
If you read an alternative gmplayer config file, it will overwrite the default one. The best way to circumvent that I've thought so far is simply to set whatever defaults and mark the gui.conf file as write-protected. So you can call alternative configs whenever you want (via &quot;-gui-include&quot;), and the default settings will be preserved. You just got to remember you've done that once you decide to change some default configuration, so you un-protect it for a while.</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/mplayer-configuration-tips-34865/</guid>
		</item>
		<item>
			<title><![CDATA[Improving/fixing font rendering on Debian's web browsers]]></title>
			<link>http://www.linuxquestions.org/questions/blog.php?b=34817</link>
			<pubDate>Fri, 08 Jun 2012 20:59:15 GMT</pubDate>
			<description><![CDATA[*Warning:* I don't know the whole story about this (no warranties, you're on your own if you decided to follow these instructions), but after some...]]></description>
			<content:encoded><![CDATA[<div><b>Warning:</b> I don't know the whole story about this (no warranties, you're on your own if you decided to follow these instructions), but after some recent upgrades my Debian install (testing/unstable) had awful font rendering on web browsers (everything nice everywhere else somehow). I like to &quot;force&quot; freesans (which is very somooth and anti-aliased) on almost everything on the web, and it was looking like some pixelated Times New Roman or Courier New.<br />
<br />
I went googling for solutions and stumbled on some stuff. First I tried upgrading/downgrading some packages, apparently* with no effect whatsoever. What did seem to solve it was to download some config files and use those instead of the ones I had:<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="3" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="bbcodeblock" style="border:1px inset">
			
				[...]<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto"> # wget http://www.osresources.com/files/centos-windows-fonts/fontconfig.tbz</pre>
</div>Backup old configuration files then extract new ones into /etc/fonts.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 50px;
		text-align: left;
		overflow: auto"># for i in `ls /etc/fonts/*.conf`; do cp $i $i.bak; done
# tar xvjpf fontconfig.tbz -C /etc/fonts/</pre>
</div>Clean up.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto"># rm fontconfig.tbz</pre>
</div>[...]
			
		</td>
	</tr>
	</table>
</div>Then log out of the session and log in again.<br />
<br />
<br />
I saw it in this blog post:<br />
<a href="http://briolidz.wordpress.com/2012/02/28/improving-debian-6-squeeze-fonts-rendering/" target="_blank" rel="nofollow">http://briolidz.wordpress.com/2012/0...nts-rendering/</a><br />
<br />
Now I have freesans nicely rendered everywhere on the web again, to the disgrace of the web-designers who want to impose different fonts on me.<br />
<br />
<br />
<br />
* Actually it may have worked, but I wouldn't know as I tried to restart just the web browser rather than the entire user session. So perhaps messing with packages was what really solved it for me, or was part of the solution. At very least it didn't seem to have created more trouble so far. If I recall I downgraded libcairo2, and upgraded libfontconfig, fontconfig and fontconfig-config. But after that I did what I saw on this blog, which may have undone one of these steps (like replacing fontconfig-config, I guess).</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog.php?b=34817</guid>
		</item>
		<item>
			<title>Pseudo-template noob hack that may apply for several situations</title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/pseudo-template-noob-hack-that-may-apply-for-several-situations-34658/</link>
			<pubDate>Thu, 12 Apr 2012 21:10:33 GMT</pubDate>
			<description><![CDATA[There's a painting software, "mypaint", which is very nice, but it does not support templates, at least not yet. 
 
I've created a template (just a...]]></description>
			<content:encoded><![CDATA[<div>There's a painting software, &quot;mypaint&quot;, which is very nice, but it does not support templates, at least not yet.<br />
<br />
I've created a template (just a &quot;blank&quot; file with the correct resolution and whatnot) on GIMP, saved it as &quot;ora&quot;, but instead of opening this file manually every time, and remembering to save it with a new name in order to not overwrite the template, I came up with a script that will create a new name automatically, with no risk of overwriting the template.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 226px;
		text-align: left;
		overflow: auto">
template=$1

export DISPLAY=:0 # I'm not really sure it's needed or why it's there anymore

filename=&quot;$(date '+%y%b%d-%H%M').ext&quot; # creates a filename based on the time and day you run the script

cp &quot;/path/to/your/$template&quot; &quot;/dev/shm/$filename&quot; &amp;&amp; # just in case you don't end up saving the new work from the template, it copies it first to the memory

whatever-program &quot;/dev/shm/$filename&quot; &amp;

while true ; do inotifywait /dev/shm/$filename &amp;&amp; cp /dev/shm/$filename /path/to/destination/folder/ # if the file on /dev/sh (memory) is changed (when you save it), it's copied to a given destination folder on the hard drive.
  done</pre>
</div><br />
Then you can add some application menu entry pointing to this script, or even a submenu with several template options, given as parameters to the script ($1).</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/pseudo-template-noob-hack-that-may-apply-for-several-situations-34658/</guid>
		</item>
		<item>
			<title>Got banned from the ubuntu forums</title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/got-banned-from-the-ubuntu-forums-34657/</link>
			<pubDate>Thu, 12 Apr 2012 20:24:41 GMT</pubDate>
			<description><![CDATA[First time I got banned from any forum, that's a historical moment! :) 
 
I started a thread questioning whether the common forum practice of closing...]]></description>
			<content:encoded><![CDATA[<div>First time I got banned from any forum, that's a historical moment! :)<br />
<br />
I started a thread questioning whether the common forum practice of closing old threads when they're bumped, soliciting the users to create new ones, is really a good idea. I think it's not, that by not doing it the threads will be richer, containing more information, instead of being scattered around many topics all over the years. <br />
<br />
Anyway, I referred to moderators who do that (not anyone in specific or even ubuntu's forum staff in particular) as &quot;anti-bump nazis&quot; with a strikeout line, followed by &quot;moderators&quot;... I guess this (rather than merely questioning the practice) was considered an insult to the staff, and for this reason the thread was blocked from further discussion, after two or three replies. <br />
<br />
Wanting clear things out, I opened another thread, saying, &quot;no insults intended&quot;, apologizing and expressing my surprise to the notion that such use of the term &quot;anti-bump nazi&quot; would really be offensive, and asking whether I could re-post the same point about bumping-or-not, with &quot;anti-bump nazi&quot; removed. The answer apparently is &quot;no, you can't&quot;, since this second topic got deleted and I got banned forever, with no prior advertence or further communication...<br />
<br />
<br />
<br />
My recommendation to anyone who may be reading it and posts over there every once in a while... write as formally as you can, with no jokes or anything, someone might get offended even if you never imagined it was even possible. :rolleyes:</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/got-banned-from-the-ubuntu-forums-34657/</guid>
		</item>
		<item>
			<title>Windows-like folder organization for binaries and libraries through symbolic links?</title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/windows-like-folder-organization-for-binaries-and-libraries-through-symbolic-links-30336/</link>
			<pubDate>Fri, 25 Nov 2011 21:28:35 GMT</pubDate>
			<description><![CDATA[Just another of those things I catch myself wondering sometimes, but I don't think that are important enough for the forums. 
 
What if linux had...]]></description>
			<content:encoded><![CDATA[<div>Just another of those things I catch myself wondering sometimes, but I don't think that are important enough for the forums.<br />
<br />
What if linux had folders for each program, more or less like on windows, but still had its &quot;grab-bag&quot; folders for libraries and whatever that may be used for more than one program, but instead of using it through a &quot;$path&quot;, it had a symlink within the program's own folder?<br />
<br />
Or perhaps it could use by default through something like &quot;$path&quot;, but just in case you want to tweak the program a little bit you could place different versions of whatever in that folder (those would be prioritary), instead of having something like /opt, which seems to me a bit more complicated to do and tweak.<br />
<br />
But I don't know really, perhaps that's just dumb, useless and gross. It would at least require a major re-planning of the whole folder structure standard, which is a good reason not to do it already I guess, it's not like not having it is hindering something very important. There's a linux distro that is attempting to do something more or less like it I guess, I don't know if it's &quot;exactly&quot; like I've described though.</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/windows-like-folder-organization-for-binaries-and-libraries-through-symbolic-links-30336/</guid>
		</item>
		<item>
			<title>High CPU usage + underclock vs. low CPU + normal/high clock</title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/high-cpu-usage-underclock-vs-low-cpu-normal-high-clock-25402/</link>
			<pubDate>Sun, 13 Nov 2011 20:02:53 GMT</pubDate>
			<description><![CDATA[This is just a question rather than a typical blog post. I know blogs aren't really supposed to be used for that, but I think it's justifiable since...]]></description>
			<content:encoded><![CDATA[<div>This is just a question rather than a typical blog post. I know blogs aren't really supposed to be used for that, but I think it's justifiable since it's not that important or urgent, even though it has some practical applications. So I'm not &quot;stealing&quot; attention from other users with more pressing matters over there.<br />
<br />
The question is basically &quot;what gets more work done&quot;:<br />
<br />
a) higher CPU usage per process (limiting less or not limiting the usage at all with tools such as cpulimit) but in the other hand &quot;underclocking&quot; a little bit (with things like cpufreqd or cpufreq-set) so that the CPU does not melt<br />
<br />
b) having the CPU frequency next to its maximum or a bit above average, but limiting more the load of some specific applications with cpulimit. <br />
<br />
I think that there may be advantages and disadvantages for each strategy, so perhaps it depends on what is that one is using the PC at the moment. For example, I imagine that the &quot;b&quot; strategy leaves the user and other processes with extra responsivity/resources, whereas &quot;a&quot; privileges the high-load CPU process somewhat, and everything else may be a bit sluggish, even though it's still useful for minimizing CPU temperature and maybe power consumption (even though that part is a bit complicated and sometimes a higher performance may result in less consumption in the long run, or something like that - see <a href="http://www.thinkwiki.org/wiki/How_to_reduce_power_consumption" target="_blank" rel="nofollow">here</a> and here some indirect statements with links to the original source (apparently offline momentarily) by the Intel's kernel developer, Arjan van de Ven, saying that the &quot;ondemand&quot; governor may be more efficient in terms of power-saving than &quot;conservative&quot; and even &quot;powersave&quot; governors)<br />
<br />
But perhaps &quot;a&quot; may be more inefficient even when for some reason you want to privilege one process in detriment of the others (such as running something like <a href="http://folding.stanford.edu/English/Main" target="_blank" rel="nofollow">folding@home</a> when you're not using the PC), perhaps this process could get more work done even if it were more limited by cpulimit, as long as it could work in a less underclocked environment. But of course could be the other way around, perhaps this extra Mhz don't mean much, what matters most is being less restricted even if the CPU is operating on lower frequencies. <br />
<br />
And, of course, could be that it does not make any difference any way or the other, or that it depends more on the fine tuning of &quot;a&quot; and &quot;b&quot; strategies than the strategies per se.<br />
<br />
So, if anyone has a more enlightened perspective on the subject, I'd be curious to hear it.</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/high-cpu-usage-underclock-vs-low-cpu-normal-high-clock-25402/</guid>
		</item>
		<item>
			<title>Commanding openbox through scripts or command line</title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/commanding-openbox-through-scripts-or-command-line-18782/</link>
			<pubDate>Thu, 20 Oct 2011 03:03:28 GMT</pubDate>
			<description><![CDATA[Is it possible? If it is, it's not obvious in any way, nor documented in the manual. 
 
I think that would be an interesting feature if it currently...]]></description>
			<content:encoded><![CDATA[<div>Is it possible? If it is, it's not obvious in any way, nor documented in the manual.<br />
<br />
I think that would be an interesting feature if it currently lacks it. I don't really know, but I think it wouldn't be so much of a huge thing to implement the possibility of running commands such as &quot;<b>openbox-command menu-id-whatever</b>&quot; to make a given menu pop-up; or &quot;openbox-command nexdesktop&quot; so a script could move the view to a different desktop (but perhaps it can be done with wmctrl or something else). Then openbox could be used also as something like gxmessage/zenity/kdialog, or interact with things such as &quot;brightside&quot;, among other possibilities that didn't occur to me yet.<br />
<br />
<br />
<br />
Originally thought as a question on the actual forum, but I'm pretty sure the answer is no, so I'll just post it here anyway. Someone may read and think it's a good idea and make a feature request*. Or just comment saying it is possible already, and explaining how to do it.<br />
<br />
<br />
* - if you would do it, request &quot;window grouping/tabbing&quot; too. Their rationale for not having it does not make sense -- because it's not just a matter of compensating for bad GUI design in one application, since as a DM/WM feature, it is not restricted to grouping windows of a single application in a single window. In fact, in a way it's not that different from &quot;cascading&quot; windows in a more convenient way. Also, by having that, it's halfway into eliminating the &quot;need&quot; for taskbars like tint2 or fb/spanel, as the title bar can be in effect turned into a taskbar. Perhaps even automatically if it wouldn't be to messy to have an option like &quot;group with next window&quot;, which could be set concurrently with &quot;lower&quot; for the minimize button. The only difference is that it would be so almost identical only when the window is maximized. When it's not, it's somewhat as if you had tiny virtual desktops, each one with its own taskbar.<br />
<br />
And &quot;keychains&quot; for mousebinds would be neat too.</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/commanding-openbox-through-scripts-or-command-line-18782/</guid>
		</item>
		<item>
			<title>A very tiny quick dictionary look up script</title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/a-very-tiny-quick-dictionary-look-up-script-14328/</link>
			<pubDate>Thu, 13 Oct 2011 03:05:47 GMT</pubDate>
			<description>For a long time I had fantasdic (http://projects.gnome.org/fantasdic/) set to respond to a desktop environment keybinding, it would then appear with...</description>
			<content:encoded><![CDATA[<div>For a long time I had <a href="http://projects.gnome.org/fantasdic/" target="_blank" rel="nofollow">fantasdic</a> set to respond to a desktop environment keybinding, it would then appear with the result for a query that was made through the clipboard. I don't recall how much of it was its own functionality and how much was some sort of wrap-around scriptery. I'm so used to use computer dictionaries in that way (instead of directly going to them and typing) that to me it's almost useless without this keybinding functionality. And indeed it has been quite some time since it does not work quite well for some reason. <br />
<br />
It works only for the first time the fantasdic is called, then in the second one (when it's already on the system tray), its window wouldn't show up, and there would be some X-related error in xsession-errors. I don't remember if I've ever made a bug report of some sort, I remember having mentioned it somewhere though. As a matter of fact, I'm not even sure it's still the case. <br />
<br />
Nevertheless, I've made this tiny script to make up a little bit for the virtual &quot;uselessness&quot; of fantasdic:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 82px;
		text-align: left;
		overflow: auto">#! /bin/bash
query=$(xclip -o)
dict -h localhost &quot;$query&quot; | sed 's#^\(.*From.*\)#&lt;b&gt; \1 &lt;/b&gt;#' &gt;/dev/shm/dict.tmp
kdialog --title &quot;$query&quot; --textbox /dev/shm/dict.tmp 400 550</pre>
</div>With an openbox keybinding, it will pop up a kdialog text box with even a little text formatting (just bold &quot;header&quot; lines for each dictionary). You need only to select the text, doesn't need to &quot;copy&quot; it, just do whatever is the keybinding you set to run the script. It hasn't all the functionality that fantasdic had (like double clicking any word on the text/definition box and then going to the definition of that word), but I think it will be a decent replacement.<br />
<br />
Besides <b>kdialog</b> and <b>xclip</b> (which gives the clipboard as input), I also have <b>dict</b> and <b>dictd</b> (the former is a client and the latter a server, if I'm not mistaken; I don't remember how much they're independent from each other), and dictionaries installed locally (hence &quot;localhost&quot;), but it could work with remote dictionaries as well, as long as someone fixes the dict query accordingly.</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/a-very-tiny-quick-dictionary-look-up-script-14328/</guid>
		</item>
		<item>
			<title><![CDATA["Wait until a process ends, a download ends, or a file conversion ends, then do X"]]></title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/wait-until-a-process-ends-a-download-ends-or-a-file-conversion-ends-then-do-x-4061/</link>
			<pubDate>Tue, 30 Aug 2011 20:06:41 GMT</pubDate>
			<description><![CDATA[Sometimes you want the computer to shut down after you've finished downloading something or converting some large file into some other format, but...]]></description>
			<content:encoded><![CDATA[<div>Sometimes you want the computer to shut down after you've finished downloading something or converting some large file into some other format, but you want to go out or go to sleep instead of waiting and checking for it yourself.<br />
<br />
For these situations I've come up with two tiny scripts. The first one waits until a file hasn't changed its size on three consecutive intervals of twenty seconds:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 98px;
		text-align: left;
		overflow: auto">a=0 ; file=&quot;$1&quot; ; if [ -f &quot;$file.part&quot; ] ; then file=&quot;$file.part&quot; ; fi ; until (
(a==3)) ; do if [ ! -f &quot;$file&quot; ] ; then exit 0 ; fi ; size1=$(stat -c%s &quot;$file&quot;)
 ; echo $size1 ; sleep 20s ; size2=$(stat -c%s &quot;$file&quot;) ; echo $size2 ; if [ $si
ze1 == $size2 ] ; then a=$((a+1)) ; echo $a ; else a=0 ; fi ; done
exit 0</pre>
</div>You'd use it like:<br />
<br />
<b>waitfile &lt;file you're downloading or the output of some conversion&gt; &amp;&amp; &lt;do whatever you want, like sudo shutdown -h now&gt;</b><br />
<br />
(without the less/more-than brackets)<br />
<br />
The point of the whole checking on the existence of a &quot;$file.part&quot; is to have it compatible with firefox' downloads without having to bother remembering to explicitly point it to the temporary file that firefox uses. If such file exists, it assumes it's dealing with a firefox' download, and thus checks the .part file, not the file with the actual name, which would have a &quot;zero&quot; size for a good while. But it's not specific to firefox' downloads at all.<br />
<br />
<br />
<br />
The next one waits until a process no longer exists:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">until [[ ! `ps -A | grep $1` ]] ; do echo &quot;$1 still running&quot; ; sleep 5 ; done</pre>
</div>The &quot;syntax&quot; is the same:<br />
<br />
<b>waitfor &lt;whatever program/process that is expected to exit by itself at some point&gt; &amp;&amp; &lt;whatever you intend to do after it finishes without having to personally wait for it&gt;</b><br />
<br />
I guess that this one can be a bit tricky sometimes depending on what you have running. Perhaps there will be more than one result for the same &quot;grep&quot; on &quot;ps -A&quot;, so it could theoretically wind up waiting for more than one process, not only the one you have in mind. And this other process could &quot;never&quot; finish for whatever reason. An example that comes to my mind is a paused instance of mplayer (which wouldn't ever exit) or gmplayer (which does not exit as it reaches the end of the file), running concurrently with an instance of mplayer (which exits when it reaches the end of whatever it was playing, when it's not on slave mode).</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/wait-until-a-process-ends-a-download-ends-or-a-file-conversion-ends-then-do-x-4061/</guid>
		</item>
		<item>
			<title><![CDATA[Fixing the annoying firefox' associations issue once and for all]]></title>
			<link>http://www.linuxquestions.org/questions/blog.php?b=4045</link>
			<pubDate>Fri, 19 Aug 2011 20:49:38 GMT</pubDate>
			<description>Probably affects all gecko-derived browsers, like iceape, kazehakase, epiphany, namoroka, whatever. May be exclusively a KDE-derived problem though,...</description>
			<content:encoded><![CDATA[<div>Probably affects all gecko-derived browsers, like iceape, kazehakase, epiphany, namoroka, whatever. May be exclusively a KDE-derived problem though, I don't know. <br />
<br />
Sometimes, for some reason, the system decides that you probably want to open downloaded PDFs, from iceweasel's/firefox' downloads window, with krita or gimp, programs that won't open PDFs at all. It's really confusing because you even have a correct, pdf-reader application set as default in other parts of the system (file managers, both KDE's and Gnome's), and you even get it from &quot;xdg-mime query default application/pdf&quot;. Then you conclude that it must be firefox' sole fault, and you go and find some preferences related with handling files. But these will affect only how it will handle files &quot;on the fly&quot;, files it's about to download/already cacheing, not which program will be used to open the file on the downloads window.<br />
<br />
As it happens, linux has some apparently redundant file-association settings, firefox seems to pick a &quot;unusual&quot; one, whose very reason to exist may be questionable.<br />
<br />
Here's the solution, though:<br />
<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="3" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="bbcodeblock" style="border:1px inset">
			
				<div>
					Originally Posted by <strong>the black cat</strong>
					
				</div>
				<div style="font-style:italic">Re: Gimp default for opening PDF's from Firefox<br />
<br />
    I got a solution that works from another forum (<a href="http://forum.kde.org/viewtopic.php?f=14&amp;t=17786&amp;start=10#pid43105" target="_blank" rel="nofollow">see here</a>). I have copied it below:<br />
<br />
    to make pdf open using a specific application when you double click it in the FF download manager, edit /usr/share/applications/mimeinfo.cache , search for: application/pdf= . Put the name of *application*.desktop of the desired application right after = .<br />
<br />
    So to use okular, it should look like this:<br />
    application/pdf=kde4-okularApplication_pdf.desktop<br />
<br />
    Notice the extra kde4- , this is necessary because okularApplication_pdf.desktop is in the subfolder kde4 in /usr/share/applications.<br />
<br />
    Replace okularApplication_pdf.desktop with whatever name of the .desktop file of the app you want. If it's in the same folder as mimeinfo.cache, i.e. /usr/share/applications then use the name of the .desktop folder, if it's in a subfolder then prefix it with kde4- , or kde- , whatever. See if this works.<br />
<br />
    mimeinfo.cache is a dynamic file and will be changed automatically when you install/uninstall a programme (this explains what happened when you uninstalled gimp). Of course you can keep a local copy of this file maintaining your own associations across reinstalls), you need to put this copy in ~/.local/share/applications , also a copy of /usr/share/applications/defaults.list <br />
<br />
<br /></div>
			
		</td>
	</tr>
	</table>
</div>Source: <a href="http://forums.opensuse.org/english/get-technical-help-here/applications/398397-gimp-default-opening-pdfs-firefox-3.html#post1945902" target="_blank" rel="nofollow">http://forums.opensuse.org/english/g...ml#post1945902</a><br />
<br />
<br />
I wonder how these people find out how to fix this sort of thing among all the mess that linux configuration files are.<br />
<br />
As a sidenote, I didn't have to copy this &quot;defaults.list&quot; file, which does not even exist on my system (debian wheezy/sid, testing). Otherwise it works, and you don't even need to restart firefox.</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog.php?b=4045</guid>
		</item>
		<item>
			<title>Emerge + yaourt + apt-build/checkinstall + debtorrent/apt-p2p</title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/emerge-yaourt-apt-build-checkinstall-debtorrent-apt-p2p-3728/</link>
			<pubDate>Sat, 16 Apr 2011 21:44:13 GMT</pubDate>
			<description>Just an idea I had sometime ago, perhaps some bored developer sees it and might want to make it a reality. 
 
It would be quite interesting if such a...</description>
			<content:encoded><![CDATA[<div>Just an idea I had sometime ago, perhaps some bored developer sees it and might want to make it a reality.<br />
<br />
It would be quite interesting if such a compiling/packaging system could be made. You compile with whatever flags you want and whatnot just like Gentoo's emerge, then it is converted into a package like apt-build or checkinstall (if emerge doesn't do that already), and then this package is seeded in a community-built meta-repository with many alternatives (somewhat like Arch's yaourt), but instead of (maybe concomitantly) being hosted in a conventional repository somewhere, it's seeded via some p2p protocol (like debtorrent and/or apt-p2p).<br />
<br />
If there were enough people using it, they would have the benefits of both packages and compiled software, at least inasmuch they share similar hardware and compilation preferences. Even if you don't find exactly the same configuration parameters that you'd like, this chimeric system could offer you a pool of available options that are compatible with your hardware at least (somewhat akin to yaourt here). If none pleases you, then you got to compile according to your picky tastes. And you start to share it automatically, perhaps influencing more people on your choices. <br />
<br />
Even those with more &quot;weird&quot; hardware would start to seed their packages, so as long as there's not only a single person with a given hardware, they could still share compiled packages even though they're more scant, as there are fewer people building them.<br />
<br />
<br />
It could be even further hybridized with the conventional repository systems. When there are no available options for a given package, as you finish compiling something, your program talks with the server counterpart somewhere, which then copies it from you and starts to seed it along with you. So everybody has an increased chance of actually downloading the compiled package, as it does not depend of some seeder being online at the moment.<br />
<br />
And there could be somewhat of a twist here: perhaps there could be a given disk space that people could offer to host packages that they don't even have chosen to install themselves, just for the sake of increasing the availability somewhat as if there was a central server, but instead it's &quot;just&quot; some swarm intelligence type of thing. The software decides what to host and what to delete based on the availability in the network.</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/emerge-yaourt-apt-build-checkinstall-debtorrent-apt-p2p-3728/</guid>
		</item>
		<item>
			<title><![CDATA[Single, "teleporting" instance of system monitor (or something else)]]></title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/single-teleporting-instance-of-system-monitor-or-something-else-3674/</link>
			<pubDate>Wed, 30 Mar 2011 06:20:45 GMT</pubDate>
			<description><![CDATA[Code: 
--------- 
[ -z $(ps -A | grep ksysguard) ] && ksysguard & disown && 
wmctrl -iR $(wmctrl -l | grep "System Monitor" | sed 's/\ .*//')...]]></description>
			<content:encoded><![CDATA[<div><div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 50px;
		text-align: left;
		overflow: auto">[ -z $(ps -A | grep ksysguard) ] &amp;&amp; ksysguard &amp; disown &amp;&amp;
wmctrl -iR $(wmctrl -l | grep &quot;System Monitor&quot; | sed 's/\ .*//')</pre>
</div>Depend on wmctrl.<br />
<br />
Are you tired of winding up with multiple instances of a program of which you don't really need multiple instances? Your problems are over! Now you can just press the hot-keys or whatever shortcuts you have, without ever worrying about earlier instances. No more sore joints for having to close THOUSANDS of instances that hog all your RAM! No more cluttered desktops filled with multiple instances of programs of which you don't really need so many instances!<br />
<br />
With a script like this set as an alias or just being the target of a hotkey/shortcut, these are all things of the past!<br />
<br />
<br />
<br />
You got to use wmctrl -l in order to check what could be a constant on the window name of a program (in this case, &quot;System Monitor&quot;), as it can only rarely rely on PIDs, using some obscure internal reference instead, which is &quot;grepped&quot; with grep and sed.<br />
<br />
<br />
WARNING: may cause some wmctrl error messages on .xsession-errors each time it runs the program &quot;for the first time&quot; (as opposed to bringing the extant instance to the current desktop).</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/single-teleporting-instance-of-system-monitor-or-something-else-3674/</guid>
		</item>
		<item>
			<title><![CDATA[Solved: "mount error: could not resolve address for <hostname>. No address associated with hostname"]]></title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/solved-mount-error-could-not-resolve-address-for-hostname-no-address-associated-with-hostname-3486/</link>
			<pubDate>Thu, 06 Jan 2011 00:19:50 GMT</pubDate>
			<description>This error may happen when trying to mount a cifs/smbfs share, be it either via fstab or command line. Most people seem to either not have the...</description>
			<content:encoded><![CDATA[<div>This error may happen when trying to mount a cifs/smbfs share, be it either via fstab or command line. Most people seem to either not have the problem or circumvent it by using static IPs instead of hostnames, which will work only as long as the IPs don't change. Funnily enough, it seems that for some people the problem is exactly the other way around, IPs won't work, only the hostname. Weird. This is also kind of funny/infuriating as the share will be readily accessible via konqueror, and perhaps some other file managers that can reach samba shares, and the name will be there.<br />
<br />
Anyway, the way I found to fix it for me was to add &quot;wins&quot; on the /etc/nsswitch.conf file. I had &quot;wins&quot; previously installed for some reason, probably due to some earlier attempt at doing the same thing, but as it seems, the installation process does not change the configuration files as needed to actually work.<br />
<br />
Here's the line I added &quot;wins&quot; to:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">hosts:          files mdns4_minimal [NOTFOUND=return] dns wins mdns4</pre>
</div><br />
And here's where I found it: <a href="http://ubuntu-virginia.ubuntuforums.org/showpost.php?p=10183736&amp;postcount=8" target="_blank" rel="nofollow">http://ubuntu-virginia.ubuntuforums....36&amp;postcount=8</a> (in Spanish)<br />
<br />
Nearly at the end of this lengthy post.</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/solved-mount-error-could-not-resolve-address-for-hostname-no-address-associated-with-hostname-3486/</guid>
		</item>
		<item>
			<title><![CDATA[Apparently "update-rc.d" does something essential]]></title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/apparently-update-rc-d-does-something-essential-3152/</link>
			<pubDate>Sat, 04 Sep 2010 15:20:06 GMT</pubDate>
			<description>I thought all it did was to create symlinks with the proper prefixes in a automated way for a given script, something that one could do manually......</description>
			<content:encoded><![CDATA[<div>I thought all it did was to create symlinks with the proper prefixes in a automated way for a given script, something that one could do manually... but apparently it does something more.<br />
<br />
But perhaps I just did something wrong when trying to do it manually, like using the wrong runlevel folders. Or perhaps it was just the difference from priority 20 to 19 that made the difference even though I thought the key was to be a higher priority (i.e., a lower number than) than 22.<br />
<br />
Anyway, update-rc.d is easier.</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/apparently-update-rc-d-does-something-essential-3152/</guid>
		</item>
		<item>
			<title><![CDATA[If condition "if condition ... if condition"]]></title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/if-condition-if-condition-if-condition-3129/</link>
			<pubDate>Sat, 28 Aug 2010 23:26:47 GMT</pubDate>
			<description>If you want to have a script that would do something if either one of two consequences is true, a simple way to do that would be: 
 
 
Code:...</description>
			<content:encoded><![CDATA[<div>If you want to have a script that would do something if either one of two consequences is true, a simple way to do that would be:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 178px;
		text-align: left;
		overflow: auto">if [ condition 1 ] || [ condition 2 ] ; then
if [ condition 1 ] ; then
consequences for condition 1
fi
if [ condition 2 ] ; then
consequences for condition 2
fi
consequences of either one, but happens only once, not twice
fi
...</pre>
</div>You check if either one is true, when &quot;||&quot; works as &quot;or&quot;, then go on checking each one independently again.<br />
<br />
But alternatively you can concatenate &quot;checks&quot; within &quot;checks&quot;:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 178px;
		text-align: left;
		overflow: auto">if [ `
if [ condition 1 ] ; then
consequences for condition 1
fi
if [ condition 2 ] ; then
consequences for condition 2
fi ` ] ; then
consequences of either one, but happens only once, not twice
fi
...</pre>
</div>I don't know if it would work in every circumstance, but it worked on a simple script I've made just to test that. It's possibly not absurdly superior for that use specifically, but perhaps the principle can be a key for an easier solution in a more complex scenario. Or maybe not. There it is, anyway.</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/if-condition-if-condition-if-condition-3129/</guid>
		</item>
		<item>
			<title>Batch-fixing symlink targets</title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/batch-fixing-symlink-targets-3128/</link>
			<pubDate>Sat, 28 Aug 2010 23:08:15 GMT</pubDate>
			<description><![CDATA[Sometimes you move the folder to which lots of symlinks were pointing, or something to that effect, and you want to simply "edit" these symlinks...]]></description>
			<content:encoded><![CDATA[<div>Sometimes you move the folder to which lots of symlinks were pointing, or something to that effect, and you want to simply &quot;edit&quot; these symlinks rather than recreating them pointing the correct new location. That's how it can be done with one line:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 82px;
		text-align: left;
		overflow: auto">find /place-where-the-null-symlinks are/ -type l | while read nullsymlink ; 
do wrongpath=$(readlink &quot;$nullsymlink&quot;) ; 
right=$(echo &quot;$wrongpath&quot; | sed s'|/whatever/is/the/old-wrong/path|/correct-new/path|') ;
ln -fs &quot;$right&quot; &quot;$nullsymlink&quot; ; done</pre>
</div>Of course, that will work only if the files the symlinks were pointing to were all moved together to some other location, preserving the folder structure after &quot;/whatever/is/the/old-wrong/path&quot; on the &quot;/correct-new/path&quot;.</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/batch-fixing-symlink-targets-3128/</guid>
		</item>
		<item>
			<title>Sound on flash and everywhere else at the same time, in Arch</title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/sound-on-flash-and-everywhere-else-at-the-same-time-in-arch-3085/</link>
			<pubDate>Fri, 13 Aug 2010 17:57:35 GMT</pubDate>
			<description>There had been a weird problem with sound on Arch. Whenever there was a flash item being displayed (or perhaps flash using sound, I suppose), there...</description>
			<content:encoded><![CDATA[<div>There had been a weird problem with sound on Arch. Whenever there was a flash item being displayed (or perhaps flash using sound, I suppose), there would be no sound elsewhere. And if there were sound elsewhere, whenever you play something on flash, it would conversely be mute.<br />
<br />
The fix is quite simple:<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="3" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="bbcodeblock" style="border:1px inset">
			
				<div>
					Originally Posted by <strong>Wilco</strong>
					
				</div>
				<div style="font-style:italic">After having some troubles with alsa I managed to fix this once and for all. The problem was I could not run flash+firefox and some other application that uses sound, like xmms or mplayer.<br />
After investigating this problem on my old laptop, searching this forum and the wiki I finally found the final solution which was not described in the other topics, so here it is:<br />
Add to /etc/rc.conf:<br />
MODULES=(... !snd-pcm-oss)<br />
(don't add the dots ofcourse)<br />
The problem with flash is that it defaults to oss if it can find oss. So no matter if you have alsa, flash will prefer oss and oss will block /dev/dsp and no other program can play any sound. If there is no oss device available, flash will use alsa and all problems are gone. No need for a dmix setup or configuring other programs, just disable the old oss system.<br />
Hope this helps someone!</div>
			
		</td>
	</tr>
	</table>
</div><a href="https://bbs.archlinux.org/viewtopic.php?pid=532805#p532805" target="_blank" rel="nofollow">https://bbs.archlinux.org/viewtopic....532805#p532805</a><br />
<br />
Helped me.</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/sound-on-flash-and-everywhere-else-at-the-same-time-in-arch-3085/</guid>
		</item>
		<item>
			<title>Notes on how I may have managed to get wacom tablet to work on Arch, before I completely forget it</title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/notes-on-how-i-may-have-managed-to-get-wacom-tablet-to-work-on-arch-before-i-completely-forget-it-3084/</link>
			<pubDate>Fri, 13 Aug 2010 14:35:38 GMT</pubDate>
			<description><![CDATA[By "work" I mean having "hovering" and "keepshape" mode, not just a worthless slow "pen-mouse". My thinking is that it wasn't working due to...]]></description>
			<content:encoded><![CDATA[<div>By &quot;work&quot; I mean having &quot;hovering&quot; and &quot;keepshape&quot; mode, not just a worthless slow &quot;pen-mouse&quot;. My thinking is that it wasn't working due to concurrent configuration files. There isn't only xorg.conf, but on /etc/X11 there is a xorg.conf.d folder, and there there was a ##-wacom.conf or something, with different settings than the ones I had set manually on xorg.conf.<br />
<br />
HAL is deprecated, or something like that, and I don't have any .fdi file for wacom in the &quot;policy&quot; folder. <br />
<br />
I have a tablet-related udev rule, however:<br />
<br />
KERNEL==&quot;event*&quot;, SYSFS{idVendor}==&quot;056a&quot;, NAME=&quot;input/%k&quot;, SYMLINK=&quot;input/wacom&quot;<br />
<br />
with the filename 10-local-rules. I don't know if it's doing anything though (I've searched for &quot;wacom&quot; on Debian's udev rules files, and found anything). Sometime I got to test this sort of thing carefully, so I know exactly what makes it work.</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/notes-on-how-i-may-have-managed-to-get-wacom-tablet-to-work-on-arch-before-i-completely-forget-it-3084/</guid>
		</item>
		<item>
			<title>Canon Canoscan Lide 25 on Arch Linux 2.6.34</title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/canon-canoscan-lide-25-on-arch-linux-2-6-34-3083/</link>
			<pubDate>Fri, 13 Aug 2010 14:25:55 GMT</pubDate>
			<description><![CDATA[Apparently I got it working. It did do a preview scan, with color, on xsane, as a normal user, so it's almost 100% sure it is OK. The only thing I...]]></description>
			<content:encoded><![CDATA[<div>Apparently I got it working. It did do a preview scan, with color, on xsane, as a normal user, so it's almost 100% sure it is OK. The only thing I think I may have had to do different from Debian was to set a udev rule and change user permissions/ownership on /var/lock/sane. Some people said that just udev or permissions alone would do it, but I had the impression I needed both, but that's possibly wrong. I don't see anything wrong in having both, so I'll just leave it as it is, as it is working.<br />
<br />
References:<br />
<br />
<a href="https://bbs.archlinux.org/viewtopic.php?pid=637941" target="_blank" rel="nofollow">https://bbs.archlinux.org/viewtopic.php?pid=637941</a><br />
<br />
<a href="http://wiki.archlinux.org/index.php/USB_Scanner_Support" target="_blank" rel="nofollow">http://wiki.archlinux.org/index.php/USB_Scanner_Support</a><br />
<br />
It didn't work so readily as I expected it would, though. For some reason sometimes it fails to be detected by the scanner program (running either as a normal user or root), even though it's listed by lsusb and even (I guess) sane-find-scanner. <br />
<br />
First it seemed to be working, but the lights lighted up, but just stood there. I tried to unplug and plug the USB cable again (probably there is something smarter and more correct than that to do, like restarting udev, I don't know). Then it wasn't detected anymore, even plugging on different slots (if that makes any difference... from past experiences I had the impression it does).<br />
<br />
I don't know what caused it. I booted on debian and it was working. Then I rebooted on arch, and it was working as well.</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/canon-canoscan-lide-25-on-arch-linux-2-6-34-3083/</guid>
		</item>
		<item>
			<title>Random song constrained by keyword on MPC</title>
			<link>http://www.linuxquestions.org/questions/blog/the-dsc-472367/random-song-constrained-by-keyword-on-mpc-3079/</link>
			<pubDate>Thu, 12 Aug 2010 05:17:43 GMT</pubDate>
			<description><![CDATA[Save it as a script, perhaps even as an alias: 
 
 
Code: 
--------- 
mpc play `shuf -e $(mpc playlist -f "[(%position%) %artist% %title% %file%]"...]]></description>
			<content:encoded><![CDATA[<div>Save it as a script, perhaps even as an alias:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">mpc play `shuf -e $(mpc playlist -f &quot;[(%position%) %artist% %title% %file%]&quot; |egrep $1 | grep -Eo &quot;\(.*\)&quot;| sed 's:).*::g' | sed 's:(::g') -n 1`</pre>
</div>Then type at some terminal:<br />
<br />
<b>mpcr[andom] &lt;artist/keyword&gt;</b><br />
<br />
(or however you chose to name/alias it)<br />
<br />
And mpc will play a random song from the pool resulting from the keyword filter.<br />
<br />
I guess the whole chain of pipes could probably be elegantly replaced by some awesome sed parameter, but that will do it as it is, anyway.</div>

]]></content:encoded>
			<dc:creator>the dsc</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/the-dsc-472367/random-song-constrained-by-keyword-on-mpc-3079/</guid>
		</item>
	</channel>
</rss>
