<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xml:base="https://bjorn.now/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Linux on bjorn.now</title><link>https://bjorn.now/tags/linux/</link><description>Recent content in Linux on bjorn.now</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 01 Oct 2025 13:24:05 +0200</lastBuildDate><atom:link href="https://bjorn.now/tags/linux/feed.xml" rel="self" type="application/rss+xml"/><item><title>Use usermod to rename users on Linux</title><link>https://bjorn.now/til/2025-10-01-use-usermod-to-rename-users-on-linux/?utm_medium=feed</link><pubDate>Wed, 01 Oct 2025 13:24:05 +0200</pubDate><guid>https://bjorn.now/til/2025-10-01-use-usermod-to-rename-users-on-linux/</guid><description>Use usermod -l newuser -d /home/newuser -m olduser when renaming a user account, because it’ll update all relevant system files and move the home folder in one go.
Then groupmod -n newgroup oldgroup if you need to rename the group.</description><content:encoded><![CDATA[<p>Use <code>usermod -l newuser -d /home/newuser -m olduser</code> when renaming a user account, because it&rsquo;ll update all relevant system files and move the home folder in one go.</p>
<p>Then <code>groupmod -n newgroup oldgroup</code> if you need to rename the group.</p>
<p>I had a vague memory of being able to change settings (shell etc.) by updating using <code>vipw</code> so I renamed there and then edited <code>/etc/groups</code> but I then got an error when trying to become that user:</p>
<div class="no-copy-button">
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl"># su bjornnow
</span></span><span class="line"><span class="cl">su: Authentication failure</span></span></code></pre></div>
</div>
<p>To fix it, I had to update all these files (and rename the home folder):</p>
<ul>
<li><code>vipw</code>: updates <code>/etc/passwd</code></li>
<li><code>vipw -s</code>: updates <code>/etc/shadow</code> which contains the password hashes and are only readable by root</li>
<li><code>vigr</code>: updates <code>/etc/group</code></li>
<li><code>vigr -s</code>: updates <code>/etc/gshadow</code> the same as passwd (also TIL, groups can have passwords)</li>
</ul>
<p>This is what you get when you think you remember how things work, and didn&rsquo;t want to look up how usermod worked, a little bit of knowledge is dangerous and all… 😅</p>]]></content:encoded></item><item><title>Use --resolve with curl when testing Caddy on localhost</title><link>https://bjorn.now/til/2025-10-01-use-resolve-with-curl-when-testing-caddy-on-localhost/?utm_medium=feed</link><pubDate>Wed, 01 Oct 2025 12:44:45 +0200</pubDate><guid>https://bjorn.now/til/2025-10-01-use-resolve-with-curl-when-testing-caddy-on-localhost/</guid><description>Use curl -k --resolve bjorn.now:443:127.0.0.1 https://bjorn.now when testing an HTTPS site locally using Caddy, instead of curl -k -H "Host: bjorn.now" https://localhost, because Caddy relies on SNI and refuses the connection if it doesn’t know which host you’re trying to connect to.</description><content:encoded><![CDATA[<p>Use <code>curl -k --resolve bjorn.now:443:127.0.0.1 https://bjorn.now</code> when testing an HTTPS site locally using <a href="https://caddyserver.com/">Caddy</a>, instead of <code>curl -k -H &quot;Host: bjorn.now&quot; https://localhost</code>, because Caddy relies on <a href="https://en.wikipedia.org/wiki/Server_Name_Indication">SNI</a> and refuses the connection if it doesn&rsquo;t know which host you&rsquo;re trying to connect to.</p>
<p>This seems to be a security decision to avoid leaking which certificates (and therefore sites) it hosts by not providing a default (can&rsquo;t find a source and it&rsquo;s what the search previews give me). Which my old nginx setup did.</p>
<p>The cryptic error message from cURL, which I didn&rsquo;t find anything obvious online about:</p>
<div class="no-copy-button">
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">curl: (35) OpenSSL/3.0.13: error:0A000438:SSL routines::tlsv1 alert internal error</span></span></code></pre></div>
</div>
<p>And I debugged this together with Claude by enabling debug logging in Caddy (<code>{ debug }</code> at the top level in the <code>Caddyfile</code>) which gave me this output when I called it using cURL:</p>
<div class="no-copy-button">
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">2025/10/01 10:04:56.330 DEBUG   events  event   {&#34;name&#34;: &#34;tls_get_certificate&#34;, &#34;id&#34;: &#34;7353980b-a85e-4f10-9704-89da7358ef89&#34;, &#34;origin&#34;: &#34;tls&#34;, &#34;data&#34;: {&#34;client_hello&#34;:{&#34;CipherSuites&#34;:[4866,4867,4865,49196,49200,159,52393,52392,52394,49195,49199,158,49188,49192,107,49187,49191,103,49162,49172,57,49161,49171,51,157,156,61,60,53,47,255],&#34;ServerName&#34;:&#34;&#34;,&#34;SupportedCurves&#34;:[29,23,30,25,24,256,257,258,259,260],&#34;SupportedPoints&#34;:&#34;AAEC&#34;,&#34;SignatureSchemes&#34;:[1027,1283,1539,2055,2056,2057,2058,2059,2052,2053,2054,1025,1281,1537,771,769,770,1026,1282,1538],&#34;SupportedProtos&#34;:null,&#34;SupportedVersions&#34;:[772,771],&#34;Conn&#34;:{}}}}
</span></span><span class="line"><span class="cl">2025/10/01 10:04:56.330 DEBUG   tls.handshake   no matching certificates and no custom selection logic  {&#34;identifier&#34;: &#34;127.0.0.1&#34;}
</span></span><span class="line"><span class="cl">2025/10/01 10:04:56.331 DEBUG   tls.handshake   all external certificate managers yielded no certificates and no errors {&#34;remote_ip&#34;: &#34;127.0.0.1&#34;, &#34;remote_port&#34;: &#34;42516&#34;, &#34;sni&#34;: &#34;&#34;}
</span></span><span class="line"><span class="cl">2025/10/01 10:04:56.331 DEBUG   tls.handshake   no certificate matching TLS ClientHello {&#34;remote_ip&#34;: &#34;127.0.0.1&#34;, &#34;remote_port&#34;: &#34;42516&#34;, &#34;server_name&#34;: &#34;&#34;, &#34;remote&#34;: &#34;127.0.0.1:42516&#34;, &#34;identifier&#34;: &#34;127.0.0.1&#34;, &#34;cipher_suites&#34;: [4866, 4867, 4865, 49196, 49200, 159, 52393, 52392, 52394, 49195, 49199, 158, 49188, 49192, 107, 49187, 49191, 103, 49162, 49172, 57, 49161, 49171, 51, 157, 156, 61, 60, 53, 47, 255], &#34;cert_cache_fill&#34;: 0.0002, &#34;load_if_necessary&#34;: true, &#34;obtain_if_necessary&#34;: true, &#34;on_demand&#34;: false}
</span></span><span class="line"><span class="cl">2025/10/01 10:04:56.332 DEBUG   http.stdlib     http: TLS handshake error from 127.0.0.1:42516: no certificate available for &#39;127.0.0.1&#39;</span></span></code></pre></div>
</div>
<p>The culprit was the <code>&quot;ServerName&quot;:&quot;&quot;</code>, and I&rsquo;m guessing also <code>&quot;sni&quot;: &quot;&quot;</code>, so if you need to validate and see that as well then that&rsquo;s likely the problem. 🙂</p>
<hr>
<p>This jogs my memory, back in the olden times, we would need a unique IP address for each HTTPS site because we couldn&rsquo;t multi-host, and SNI solved that problem.</p>
<p>Importantly, SNI <em>doesn&rsquo;t</em> encrypt the host name and it&rsquo;s still sent in plaintext to the server.</p>]]></content:encoded></item><item><title>Keeping your Varnish farms configuration in sync</title><link>https://bjorn.now/blog/2011/01/07/keeping-your-varnish-farm-in-sync/?utm_medium=feed</link><pubDate>Fri, 07 Jan 2011 01:21:46 +0000</pubDate><guid>https://bjorn.now/blog/2011/01/07/keeping-your-varnish-farm-in-sync/</guid><description>I spend some of my free time helping out with server administration and programming for the Swedish Pirate Party, Piratpartiet (look ma, X-Varnish), and we use Varnish for our caches. At the moment it’s just used on some of our projects, but we’re going to migrate most of our projects to be behind our Varnish caches.
The thing is though that we got two hosts running the exact same configuration, and we’d like to keep those hosts in sync. A quick search on Google gave me nothing for syncing varnish configuration over several hosts, or a farm as it were. So I took matters into my own hands and wrote varnishsync, a little bash script that uses rsync and ssh to sync the configuration folder and then to load and use the new configuration.</description><content:encoded><![CDATA[<p>I spend some of my free time helping out with server administration and
programming for the <a href="https://secure.wikimedia.org/wikipedia/en/wiki/Piratpartiet">Swedish Pirate Party</a>, <a href="http://www.piratpartiet.se/">Piratpartiet</a> (<em>look ma</em>,
X-Varnish), and we use <a href="http://www.varnish-cache.org/">Varnish</a> for our caches. At the moment it&rsquo;s just used on
some of our projects, but we&rsquo;re going to migrate most of our projects to be
behind our Varnish caches.</p>
<p>The thing is though that we got two hosts running the exact same configuration,
and we&rsquo;d like to keep those hosts in sync. A quick search on Google gave me
nothing for syncing varnish configuration over several hosts, or a farm as it
were. So I took matters into my own hands and wrote <a href="https://github.com/gaqzi/varnishsync">varnishsync</a>, a little bash
script that uses rsync and ssh to sync the configuration folder and then to load
and use the new configuration.</p>
<p>Please have a look at the <a href="https://github.com/gaqzi/varnishsync">Github project</a> for the latest version
and usage, and if you&rsquo;ve any questions or suggestions drop a line here or on
Github.</p>
]]></content:encoded></item><item><title>How to: Setting up a Wikileaks mirror</title><link>https://bjorn.now/blog/2010/12/05/howto-setting-up-a-wikileaks-mirror/?utm_medium=feed</link><pubDate>Sun, 05 Dec 2010 21:11:18 +0000</pubDate><guid>https://bjorn.now/blog/2010/12/05/howto-setting-up-a-wikileaks-mirror/</guid><description>Yesterday I wrote a quick step-by-step guide for installing apache and setting your system up for Wikileaks mass-mirror project in Swedish and I’ve had requests for it to be translated into English.
This guide assumes you’re running Ubuntu or a Debian based system.
I’ve made a script that does all the steps below, feel free to use it!
The script: http://sanitarium.se/files/wikileaks-mirror.sh
Usage: wget http://sanitarium.se/files/wikileaks-mirror.sh &amp;&amp; chmod +x wikileaks-mirror.sh &amp;&amp; ./wikileaks-mirror.sh
Installing Apache and adding the wikileaks user # # is the prompt as root:</description><content:encoded><![CDATA[<p>Yesterday I wrote a quick step-by-step guide for installing apache and setting
your system up for <a href="http://213.251.145.96/Mass-mirroring-Wikileaks.html">Wikileaks mass-mirror project</a> in Swedish and
I&rsquo;ve had requests for it to be translated into English.</p>
<p>This guide assumes you&rsquo;re running Ubuntu or a Debian based system.</p>
<p>I&rsquo;ve made a script that does all the steps below, feel free to use it!<br>
The script: <a href="http://sanitarium.se/files/wikileaks-mirror.sh">http://sanitarium.se/files/wikileaks-mirror.sh</a><br>
Usage: <code>wget http://sanitarium.se/files/wikileaks-mirror.sh &amp;&amp; chmod +x wikileaks-mirror.sh &amp;&amp; ./wikileaks-mirror.sh</code></p>
<h1 id="installing-apache-and-adding-the-wikileaks-user">
  Installing Apache and adding the wikileaks user
  <a href="#installing-apache-and-adding-the-wikileaks-user" class="heading-anchor" aria-label="Direct link to Installing Apache and adding the wikileaks user"><span aria-hidden="true">#</span></a>
</h1>
<p><code>#</code> is the prompt as root:</p>
<div class=" copy-enabled">
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">youruser$ sudo -s  </span></span></code></pre></div>
</div>
<p>Install apache if it&rsquo;s not installed</p>
<div class=" copy-enabled">
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl"><span class="c1"># apt-get install apache2  </span></span></span></code></pre></div>
</div>
<p>Add a wikileaks user, write down where the home folder is created.</p>
<div class=" copy-enabled">
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl"><span class="c1"># adduser --disabled-password wikileaks  </span>
</span></span><span class="line"><span class="cl"><span class="c1"># su wikileaks  </span>
</span></span><span class="line"><span class="cl">wikileaks$ mkdir ~/.ssh ~/www  
</span></span><span class="line"><span class="cl">wikileaks$ chmod <span class="m">0700</span> ~/.ssh  
</span></span><span class="line"><span class="cl">wikileaks$ wget http://213.251.145.96/IMG/id_rsa.pub -O ~/.ssh/authorized_keys  
</span></span><span class="line"><span class="cl">wikileaks$ <span class="nb">exit</span>  </span></span></code></pre></div>
</div>
<p>Time to add the apache site for wikileaks</p>
<div class=" copy-enabled">
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl"><span class="c1"># cd /etc/apache2/sites-available/   </span>
</span></span><span class="line"><span class="cl"><span class="c1"># wget http://sanitarium.se/files/wikileaks   </span></span></span></code></pre></div>
</div>
<p>Open the file <code>wikileaks</code> with an editor and change the path to the wikileaks users home folder if it&rsquo;s not <code>/home/wikileaks</code>.<br>
This file assumes you want to host wikileaks.org, if you want to host wikileaks.yourdomain.com you&rsquo;ll need to set <code>ServerName</code> accordingly and if necessary <code>ServerAlias</code>, ServerAlias is optional and you can remove that row if you don&rsquo;t use it.<br>
When that is done you just need to activate the site in apache:</p>
<div class=" copy-enabled">
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl"><span class="c1"># a2ensite wikileaks  </span></span></span></code></pre></div>
</div>
<p>And reload apache so it knows that the new site has been added:</p>
<div class=" copy-enabled">
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl"><span class="c1"># /etc/init.d/apache2 reload  </span></span></span></code></pre></div>
</div>
<p>The <code>wikileaks</code> file downloaded from this server looks like this:</p>
<div class=" copy-enabled">
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">&lt;VirtualHost *:80&gt;
</span></span><span class="line"><span class="cl">    DocumentRoot /home/wikileaks/www
</span></span><span class="line"><span class="cl">    ServerName wikileaks.org
</span></span><span class="line"><span class="cl">    ServerAlias www.wikileaks.org
</span></span><span class="line"><span class="cl">    ErrorLog /dev/null
</span></span><span class="line"><span class="cl">    CustomLog /dev/null common
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    &lt;Directory /home/wikileaks/www&gt;
</span></span><span class="line"><span class="cl">        AllowOverride None
</span></span><span class="line"><span class="cl">    &lt;/Directory&gt;
</span></span><span class="line"><span class="cl">&lt;/VirtualHost&gt;</span></span></code></pre></div>
</div>
<h1 id="now-tell-wikileaks-about-your-mirror">
  Now tell Wikileaks about your mirror
  <a href="#now-tell-wikileaks-about-your-mirror" class="heading-anchor" aria-label="Direct link to Now tell Wikileaks about your mirror"><span aria-hidden="true">#</span></a>
</h1>
<p>Go to the <a href="http://213.251.145.96/Mass-mirroring-Wikileaks.html">form</a> and fill it as the picture, set the IP-address of your server in the IP-field:<br>
<figure><img src="/img/2010/installning-hos-wikileaks.png"
    alt="Wikileaks mirror settings">
</figure>
</p>
<p>If you&rsquo;re having any troubles don&rsquo;t hesitate to ask in the comments!</p>
]]></content:encoded></item><item><title>How to: Sätta upp en Wikileaksspegling</title><link>https://bjorn.now/blog/2010/12/04/howto-satta-upp-en-wikileaksspegling/?utm_medium=feed</link><pubDate>Sat, 04 Dec 2010 21:27:26 +0000</pubDate><guid>https://bjorn.now/blog/2010/12/04/howto-satta-upp-en-wikileaksspegling/</guid><description>A translation of this post is available in English.
En kommentar i Rick Falkvinges inlägg Fullt krig om informationen så efterfrågades en snabbguide för att dra igång en Wikileaksspegling i ett vanligt Linuxssystem.
Jag utgår från Ubuntu eftersom det är vanligt och vad jag själv använder.
Uppdatering 2010-12-05: Jag har gjort ett script som utför alla stegen nedan, använd gärna det!
Filen: http://sanitarium.se/files/wikileaks-mirror.sh
Användning: wget http://sanitarium.se/files/wikileaks-mirror.sh &amp;&amp; chmod +x wikileaks-mirror.sh &amp;&amp; ./wikileaks-mirror.sh
Installera Apache # # är prompten som root:</description><content:encoded><![CDATA[<p><a href="/blog/2010/12/05/howto-setting-up-a-wikileaks-mirror/">A translation of this post is available in English.</a></p>
<p>En <a href="http://rickfalkvinge.se/2010/12/04/fullt-krig-om-informationen/#comment-57303">kommentar</a> i Rick Falkvinges inlägg <a href="http://rickfalkvinge.se/2010/12/04/fullt-krig-om-informationen/">Fullt krig om informationen</a>
så efterfrågades en snabbguide för att dra igång en Wikileaksspegling i ett
vanligt Linuxssystem.</p>
<p>Jag utgår från Ubuntu eftersom det är vanligt och vad jag själv använder.</p>
<p><strong>Uppdatering 2010-12-05:</strong> Jag har gjort ett script som utför alla stegen nedan, använd gärna det!<br>
Filen: <a href="http://sanitarium.se/files/wikileaks-mirror.sh">http://sanitarium.se/files/wikileaks-mirror.sh</a><br>
Användning: <code>wget http://sanitarium.se/files/wikileaks-mirror.sh &amp;&amp; chmod +x wikileaks-mirror.sh &amp;&amp; ./wikileaks-mirror.sh</code></p>
<h1 id="installera-apache">
  Installera Apache
  <a href="#installera-apache" class="heading-anchor" aria-label="Direct link to Installera Apache"><span aria-hidden="true">#</span></a>
</h1>
<p><code>#</code> är prompten som root:</p>
<div class=" copy-enabled">
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">dinanvändare$ sudo -s  </span></span></code></pre></div>
</div>
<p>Installera apache om det inte är installerat</p>
<div class=" copy-enabled">
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># apt-get install apache2  </span></span></span></code></pre></div>
</div>
<p>Lägg till en användare för Wikileak och anteckna var wikileaks hemmap skapas!</p>
<div class=" copy-enabled">
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># adduser --disabled-password wikileaks  </span>
</span></span><span class="line"><span class="cl"><span class="c1"># su wikileaks  </span>
</span></span><span class="line"><span class="cl">wikileaks$ mkdir ~/.ssh ~/www  
</span></span><span class="line"><span class="cl">wikileaks$ chmod <span class="m">0700</span> ~/.ssh  
</span></span><span class="line"><span class="cl">wikileaks$ wget http://213.251.145.96/IMG/id_rsa.pub -O ~/.ssh/authorized_keys  
</span></span><span class="line"><span class="cl">wikileaks$ <span class="nb">exit</span>  </span></span></code></pre></div>
</div>
<p>Nu är det dags att lägga till siten för wikileaks</p>
<div class=" copy-enabled">
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># cd /etc/apache2/sites-available/   </span>
</span></span><span class="line"><span class="cl"><span class="c1"># wget http://sanitarium.se/files/wikileaks   </span></span></span></code></pre></div>
</div>
<p>Öppna filen <code>wikileaks</code> med en editor och ändra sökvägen till användaren wikileaks hemmapp om det är något annat än <code>/home/wikileaks</code>.<br>
Den här filen förutsätter att du vill hosta wikileaks.org, om du vill hosta wikileaks.dindomän.se eller något sådant så får du ändra ServerName och eventuellt ServerAlias.<br>
När det är klart är det bara att aktivera siten för apache:</p>
<div class=" copy-enabled">
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># a2ensite wikileaks  </span></span></span></code></pre></div>
</div>
<p>Och till sist ladda om apache så det är redo att ta emot information:</p>
<div class=" copy-enabled">
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># /etc/init.d/apache2 reload  </span></span></span></code></pre></div>
</div>
<p>Innehållet i filen <code>wikileaks</code> som du tankar från den här servern är:</p>
<div class=" copy-enabled">
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">&lt;VirtualHost *:80&gt;
</span></span><span class="line"><span class="cl">    DocumentRoot /home/wikileaks/www
</span></span><span class="line"><span class="cl">    ServerName wikileaks.org
</span></span><span class="line"><span class="cl">    ServerAlias www.wikileaks.org
</span></span><span class="line"><span class="cl">    ErrorLog /dev/null
</span></span><span class="line"><span class="cl">    CustomLog /dev/null common
</span></span><span class="line"><span class="cl">    
</span></span><span class="line"><span class="cl">    &lt;Directory /home/wikileaks/www&gt;
</span></span><span class="line"><span class="cl">        AllowOverride None
</span></span><span class="line"><span class="cl">    &lt;/Directory&gt;
</span></span><span class="line"><span class="cl">&lt;/VirtualHost&gt;</span></span></code></pre></div>
</div>
<h1 id="hur-du-säger-till-wikileaks-att-allt-är-klart">
  Hur du säger till Wikileaks att allt är klart
  <a href="#hur-du-s%c3%a4ger-till-wikileaks-att-allt-%c3%a4r-klart" class="heading-anchor" aria-label="Direct link to Hur du säger till Wikileaks att allt är klart"><span aria-hidden="true">#</span></a>
</h1>
<p>Surfa in på <a href="http://213.251.145.96/Mass-mirroring-Wikileaks.html">formuläret</a> och fyll i det enligt nedan, byt ut ip-adress mot IP:t för din server:<br>
<figure><img src="/img/2010/installning-hos-wikileaks.png"
    alt="Wikileaks mirror settings">
</figure>
</p>
<p>Om det är några oklarheter eller funderingar så fråga på i kommentarsfältet
nedan så ska jag försöka hjälpa till att reda ut!</p>
<p><strong>Uppdatering:</strong> <a href="http://twitter.com/rouhivuori">Henrik Rouhivuori</a>
upplyste om att <code>aptitude</code> inte finns i Ubuntu 10.10 så jag ändrade till <code>apt-get</code>
istället. Övertydligt att jag fortfarande hänger på 10.04. :)</p>
<p><strong>Uppdatering 2:</strong>
Henrik Holst
berättade att du kan välja att inaktivera lösenordsinloggning när du skapar
nya användare, så nu görs det istället för att rekommendera ett slumpmässigt
långt lösenord!</p>
<p><strong>Uppdatering 3:</strong>
David Vrensk
påminner om att <code>sshd</code> är lite petig på att det bara är användaren som ska ha
rättigheter till <code>.ssh</code>-mappen.</p>
<p><strong>Uppdatering 4:</strong> Av bara farten så hade jag missat att lägga till att man
måste skapa mappen <code>www</code> som wikileaks-filen pekar på, samt <code>common</code> efter
loggraden. Tack till <a href="http://harfagre.wordpress.com/">Gustav Wetter</a> som jobbet igenom hela guiden!</p>
]]></content:encoded></item><item><title>How to disable bold fonts in xterm — Why sometimes repeating yourself really does get the message through</title><link>https://bjorn.now/blog/2010/02/21/how-to-disable-bold-fonts-in-xterm/?utm_medium=feed</link><pubDate>Sun, 21 Feb 2010 22:36:19 +0000</pubDate><guid>https://bjorn.now/blog/2010/02/21/how-to-disable-bold-fonts-in-xterm/</guid><description>I’ve so far in all my travels never found a terminal I like better than xterm, maybe urxvt, but I’ve had a problem disabling bold fonts for a very long time. Update: Seems this is a known bug for xterm.
There are a lot of X resource configuration options that makes you think you can disable bold fonts, but alas, I’ve had no luck with any of them. But if you set the same font for both normal and bold fonts it’ll work! This little gem of knowledge I found as an off-hand remark on a configuration page by Emil Mikulic, thank you!</description><content:encoded><![CDATA[<p>I&rsquo;ve so far in all my travels never found a terminal I like better than <a href="http://en.wikipedia.org/wiki/Xterm">xterm</a>, maybe <a href="http://en.wikipedia.org/wiki/Rxvt-unicode">urxvt</a>, but I&rsquo;ve had a problem disabling bold fonts for a very long time. <strong>Update:</strong> Seems this is a <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=347790">known bug for xterm</a>.</p>
<p>There are a lot of X resource configuration options that makes you think you can disable bold fonts, but alas, I&rsquo;ve had no luck with any of them. But if you set <strong>the same font</strong> for both normal and bold fonts it&rsquo;ll work! This little gem of knowledge I found as an off-hand remark on a <a href="http://dmr.ath.cx/notes/xterm.html">configuration page</a> by <a href="http://dmr.ath.cx/">Emil Mikulic</a>, thank you!</p>
<p>I like the normal <code>fixed</code> font, I&rsquo;ve tried many terminal fonts but I&rsquo;ve always gotten back to it. So I simply tucked:</p>
<pre><code>xterm*font: fixed
xterm*boldFont: fixed
</code></pre>
<p>Into my <code>~/.Xresources</code> and afterwards ran <code>xrdb -load ~/.Xresources</code> and started up a new xterm loaded with awesomeness!</p>
<figure><img src="/img/2010/xterms.png"
    alt="xterm with bold font and xterm without bold font">
</figure>

<p>The before and after shot.</p>
]]></content:encoded></item></channel></rss>