<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Linux on Lorenzo Bolla</title><link>https://lbolla-info.netlify.app/tags/linux/</link><description>Recent content in Linux on Lorenzo Bolla</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 13 Sep 2012 00:00:00 +0000</lastBuildDate><atom:link href="https://lbolla-info.netlify.app/tags/linux/index.xml" rel="self" type="application/rss+xml"/><item><title>Errors printing PDFs with CUPS</title><link>https://lbolla-info.netlify.app/blog/errors-printing-pdfs-with-cups/</link><pubDate>Thu, 13 Sep 2012 00:00:00 +0000</pubDate><guid>https://lbolla-info.netlify.app/blog/errors-printing-pdfs-with-cups/</guid><description>&lt;p&gt;This is another of those posts &lt;em&gt;to not forget&lt;/em&gt;. If printing a PDF file with &lt;code&gt;lp&lt;/code&gt; prints a blank page with error messages like:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;ERROR: configurationerror OFFENDING COMMAND: setpagedevice STACK: --nostringval-- ...
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;the problem is probably that your PDF has a certain page size (let's say &lt;em&gt;letter&lt;/em&gt;) but your printer expects another (let's say &lt;em&gt;A4&lt;/em&gt;).&lt;/p&gt;
&lt;p&gt;Check your printer settings and your PDf (with &lt;code&gt;lpinfo pdffile&lt;/code&gt;) to verify. If this is the case, print with this command instead:&lt;/p&gt;</description></item><item><title>Broadcom 43xx driver install in Arch Linux</title><link>https://lbolla-info.netlify.app/blog/broadcom-43xx-driver-install-in-arch-linux/</link><pubDate>Tue, 31 Jul 2012 00:00:00 +0000</pubDate><guid>https://lbolla-info.netlify.app/blog/broadcom-43xx-driver-install-in-arch-linux/</guid><description>&lt;p&gt;This is a vintage post to remind me how to install &lt;code&gt;b43&lt;/code&gt; drivers on Arch Linux for my &amp;quot;shiny&amp;quot; Belkin PCMCIA card (dated 2002&amp;hellip;).&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;First install the firmware extractor: &lt;code&gt;$&amp;gt; pacman -S b43-fwcutter&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Then install the firmware itself: &lt;code&gt;$&amp;gt; yaourt -S b43-firmware&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Check &lt;code&gt;dmesg&lt;/code&gt;. You should see something like:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Broadcom 43xx driver loaded [ Features: PMNLS ]&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;and &lt;code&gt;lsmod | grep b43&lt;/code&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;b43 330774 0 bcma 19281 1 b43 mac80211 341044 1 b43 cfg80211 147429 2 b43,mac80211 ssb 42167 2 b43,b44 pcmcia 31182 2 b43,ssb mmc\&lt;del&gt;core&lt;/del&gt; 72742 2 b43,ssb&lt;/p&gt;</description></item><item><title>dwm restart</title><link>https://lbolla-info.netlify.app/blog/dwm-restart/</link><pubDate>Fri, 08 Jan 2010 00:00:00 +0000</pubDate><guid>https://lbolla-info.netlify.app/blog/dwm-restart/</guid><description>&lt;p&gt;&lt;a href="http://dwm.suckless.org/"&gt;&lt;code&gt;dwm&lt;/code&gt;&lt;/a&gt; is a wonderful window manager for X: it's small, fast and stable.&lt;/p&gt;
&lt;p&gt;The only thing I missed, until today, was the possibility to restart it without losing my X session (i.e. all the open windows, etc.). Restarting &lt;code&gt;dwm&lt;/code&gt; is something you might need to do often, as it does not have config files: changes are done by recompiling the sources.&lt;/p&gt;
&lt;p&gt;The trick is to execute &lt;code&gt;dwm&lt;/code&gt; in background and sleep forever! Take a look at the last two lines of my &lt;code&gt;.xinitrc&lt;/code&gt;:&lt;/p&gt;</description></item><item><title>Escape sequences for rxvt</title><link>https://lbolla-info.netlify.app/blog/escape-sequences-for-rxvt/</link><pubDate>Fri, 01 May 2009 00:00:00 +0000</pubDate><guid>https://lbolla-info.netlify.app/blog/escape-sequences-for-rxvt/</guid><description>&lt;p&gt;I'm posting this info because I had a hard time searching for it on the internet.&lt;/p&gt;
&lt;p&gt;If you are using &lt;code&gt;rxvt&lt;/code&gt; (or &lt;code&gt;urxvt&lt;/code&gt;), and you want escape sequences to work as in &lt;code&gt;xterm&lt;/code&gt;, you need to specify them in your &lt;code&gt;.Xdefaults&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Here are the codes I had to add to have &lt;code&gt;vim&lt;/code&gt; working properly on &lt;code&gt;rxvt&lt;/code&gt; (I use &lt;code&gt;alt-left_arrow&lt;/code&gt; and &lt;code&gt;alt-right_arrow&lt;/code&gt; to navigate through tabs):&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;\*Rxvt\*meta8: false \*Rxvt.keysym.C-Left: 033\[1;5D \*Rxvt.keysym.C-Right: 033\[1;5C \*Rxvt.keysym.M-Left: 033\[1;3D \*Rxvt.keysym.M-Right: 033\[1;3C
&lt;/code&gt;&lt;/pre&gt;</description></item></channel></rss>