<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Peter's Blog - Nodes for dselect</title>
    <link>http://www.petersblog.org/</link>
    <description>Nodes containing the tag dselect</description>
    <item>
      <title>Midnight Commander</title>
      <link>http://www.petersblog.org/node/view/945</link>
      <description>&lt;p&gt;
I was missing &lt;a href="http://www.ibiblio.org/mc"&gt;Midnight Commander&lt;/a&gt; in my &lt;a href="/tag/debian"&gt;debian&lt;/a&gt; server setup. Using &lt;a href="/tag/dselect"&gt;dselect&lt;/a&gt; to try to install it and searching for 'midnight' or 'commander' did not find it. Woe. Tried downloading the source but running ./configure complained about missing glibc. Googling revealed some religious wars about gnome bloat and glibc dependancies. 
&lt;/p&gt;
&lt;p&gt;
Out of desperation went back to dselect and searched for 'mc'. This matched umpteen things but eventually I found midnight commander! Installed instantly! The description clearly called it 'midnight commander', no weird spellings, k's in odd places, l33t speak etc. 
&lt;/p&gt;
&lt;p&gt;
Searches for 'midnight' and 'commander' still fail, even after installing it, so what &lt;i&gt;does&lt;/i&gt; the search option in dselect search through? There are 17,000 packages to choose from, a decent search facility is pretty much essential. 
&lt;/p&gt;&lt;p&gt;Related Posts: &lt;a href="/tag/debian"&gt;debian&lt;/a&gt; &lt;a href="/tag/dselect"&gt;dselect&lt;/a&gt; &lt;a href="/tag/lunix"&gt;lunix&lt;/a&gt;&lt;/p&gt;</description>
      <guid>http://www.petersblog.org/node/view/945</guid>
      <category domain="http://www.technorati.com/tag">debian</category>
      <category domain="http://www.technorati.com/tag">dselect</category>
      <category domain="http://www.technorati.com/tag">lunix</category>
    </item>
    <item>
      <title>Postfix package installation hastles</title>
      <link>http://www.petersblog.org/node/view/867</link>
      <description>&lt;p&gt;
For a while now I have had many dependancy errors when trying to install packages on my &lt;a href="tags/ubuntu"&gt;ubuntu&lt;/a&gt; server at work. These all boiled down to the postfix package failing to configure. I decided to look into it. 
&lt;/p&gt;
&lt;p&gt;
Explicitly trying to configure the postfix package didn't work: 
&lt;/p&gt;
&lt;pre class="lazy"&gt;&lt;span class="line-numbers"&gt;   1 &lt;/span&gt; pcw@rd-pcw2:&lt;span class="Keyword"&gt;~&lt;/span&gt; $ sudo dpkg --configure postfix
&lt;span class="line-numbers"&gt;   2 &lt;/span&gt; Password:
&lt;span class="line-numbers"&gt;   3 &lt;/span&gt; Setting up postfix (2.1.5-9ubuntu3) ...
&lt;span class="line-numbers"&gt;   4 &lt;/span&gt; 
&lt;span class="line-numbers"&gt;   5 &lt;/span&gt; Postfix configuration was untouched.  If you need to make changes, edit
&lt;span class="line-numbers"&gt;   6 &lt;/span&gt; /etc/postfix/main.cf (and others) as needed.  To view Postfix configuration
&lt;span class="line-numbers"&gt;   7 &lt;/span&gt; values, see postconf(1).
&lt;span class="line-numbers"&gt;   8 &lt;/span&gt; 
&lt;span class="line-numbers"&gt;   9 &lt;/span&gt; After modifying main.cf, be sure to run &lt;span class="String"&gt;&lt;span class="String"&gt;'&lt;/span&gt;/etc/init.d/postfix reload&lt;span class="String"&gt;'&lt;/span&gt;&lt;/span&gt;.
&lt;span class="line-numbers"&gt;  10 &lt;/span&gt; 
&lt;span class="line-numbers"&gt;  11 &lt;/span&gt; Running newaliases
&lt;span class="line-numbers"&gt;  12 &lt;/span&gt;  * Starting Postfix Mail Transport Agent...
&lt;span class="line-numbers"&gt;  13 &lt;/span&gt;  *stfix/postfix-script: fatal: the Postfix mail system is already running[fail]
&lt;span class="line-numbers"&gt;  14 &lt;/span&gt; invoke-rc.d: initscript postfix, action &lt;span class="String"&gt;&lt;span class="String"&gt;&amp;quot;&lt;/span&gt;start&lt;span class="String"&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt; failed.
&lt;span class="line-numbers"&gt;  15 &lt;/span&gt; dpkg: error processing postfix (--configure):
&lt;span class="line-numbers"&gt;  16 &lt;/span&gt;  subprocess post-installation script returned error exit status 1
&lt;span class="line-numbers"&gt;  17 &lt;/span&gt; Errors were encountered &lt;span class="Keyword"&gt;while&lt;/span&gt; processing:
&lt;span class="line-numbers"&gt;  18 &lt;/span&gt;  postfix
&lt;/pre&gt;
&lt;p&gt;
The problem looks like it tried to start the postfix server but it was already running. Stupid thing. I stopped the postfix server explicitly: 
&lt;/p&gt;
&lt;pre class="lazy"&gt;sudo /etc/init.d/postfix stop
&lt;/pre&gt;
&lt;p&gt;
and tried again and this time it was successful. 
&lt;/p&gt;
&lt;p&gt;
Back into dselect, configure all pending packages and everything is happy. 
&lt;/p&gt;&lt;p&gt;Related Posts: &lt;a href="/tag/dselect"&gt;dselect&lt;/a&gt; &lt;a href="/tag/linux"&gt;linux&lt;/a&gt; &lt;a href="/tag/postfix"&gt;postfix&lt;/a&gt; &lt;a href="/tag/ubuntu"&gt;ubuntu&lt;/a&gt;&lt;/p&gt;</description>
      <guid>http://www.petersblog.org/node/view/867</guid>
      <category domain="http://www.technorati.com/tag">dselect</category>
      <category domain="http://www.technorati.com/tag">linux</category>
      <category domain="http://www.technorati.com/tag">postfix</category>
      <category domain="http://www.technorati.com/tag">ubuntu</category>
    </item>
    <item>
      <title>dselect</title>
      <link>http://www.petersblog.org/node/view/794</link>
      <description>&lt;p&gt;
dselect is a package management system for &lt;a href="http://www.debian.org"&gt;debian&lt;/a&gt; based &lt;a href="tags/linux"&gt;linux&lt;/a&gt; systems. It presents a very long list of applications for you to pick and install on your linux box. 
&lt;/p&gt;&lt;p&gt;Related Posts: &lt;a href="/tag/dselect"&gt;dselect&lt;/a&gt;&lt;/p&gt;</description>
      <guid>http://www.petersblog.org/node/view/794</guid>
      <category domain="http://www.technorati.com/tag">dselect</category>
    </item>
    <item>
      <title>Dselect locked me out</title>
      <link>http://www.petersblog.org/node/view/706</link>
      <description>&lt;p&gt;
Was using dselect under &lt;a href="http://www.ubuntulinux.org"&gt;Ubuntu linux&lt;/a&gt; to install some stuff over an ssh connection. While the install was underway the network connection died. When the network came up again I could not continue using dselect without getting the following error: 
&lt;/p&gt;
&lt;div class="verbatim-block"&gt;&lt;pre&gt;dselect: the access method area is already locked
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;
After much fiddling, I found the lock file and deleting it fixed the problem: 
&lt;/p&gt;
&lt;div class="verbatim-block"&gt;&lt;pre&gt;sudo rm /var/lib/dpkg/methlock
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;
While I was messing around I found out how to disable the annoying help messages that dselect keeps popping up. Just edit the file /etc/dpkg/dselect.cfg and add the line: 
&lt;/p&gt;
&lt;div class="verbatim-block"&gt;&lt;pre&gt;expert
&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Related Posts: &lt;a href="/tag/dselect"&gt;dselect&lt;/a&gt; &lt;a href="/tag/linux"&gt;linux&lt;/a&gt; &lt;a href="/tag/ssh"&gt;ssh&lt;/a&gt; &lt;a href="/tag/ubuntu"&gt;ubuntu&lt;/a&gt;&lt;/p&gt;</description>
      <guid>http://www.petersblog.org/node/view/706</guid>
      <category domain="http://www.technorati.com/tag">dselect</category>
      <category domain="http://www.technorati.com/tag">linux</category>
      <category domain="http://www.technorati.com/tag">ssh</category>
      <category domain="http://www.technorati.com/tag">ubuntu</category>
    </item>
    <item>
      <title>Ubuntu Headless X</title>
      <link>http://www.petersblog.org/node/view/661</link>
      <description>&lt;p&gt;
UPDATE: &lt;a href="/node/1656"&gt;this post&lt;/a&gt; which describes a more modern approach using &lt;a href="http://sourceforge.net/projects/xming"&gt;xming&lt;/a&gt; which is a far better X server than cygwin. 
&lt;/p&gt;
&lt;p&gt;
Retracing &lt;a href="/node/385"&gt;earlier steps&lt;/a&gt; I find &lt;a href="http://www.ubuntulinux.org"&gt;Ubunto&lt;/a&gt; works as a headless X box, running programs while displaying remotely on a windows 2000 pc (X windows has the definitions of 'client' and 'server' randomised). 
&lt;/p&gt;
&lt;p&gt;
Here are the steps it takes to do this, rationalised from what I wrote before: 
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;
Install &lt;a href="http://www.cygwin.org"&gt;Cygwin&lt;/a&gt; on the windows box. In particular, install the openssh and X11 base packages. 
&lt;/li&gt;
&lt;li&gt;
Edit the sshd_config file on the remote server and make sure this is set: 
&lt;div class="verbatim-block"&gt;&lt;pre&gt;X11Forwarding yes
&lt;/pre&gt;&lt;/div&gt;
and restart sshd. On my Ubuntu this was how it was already set up. 
&lt;/li&gt;
&lt;li&gt;
on the local pc run the cygwin command startxwin.bat. It is buried in: 
&lt;div class="verbatim-block"&gt;&lt;pre&gt;&amp;lt;cygwin base dir&amp;gt;\usr\X11R6\bin\startxwin.bat
&lt;/pre&gt;&lt;/div&gt;
where &amp;lt;cygwin base dir&amp;gt; is wherever you installed cygwin. This should bring up a window with an X desktop in it. 
&lt;/li&gt;
&lt;li&gt;
from a terminal window on the X desktop, run an ssh command of the form: 
&lt;div class="verbatim-block"&gt;&lt;pre&gt;ssh -X -l &amp;lt;username&amp;gt; &amp;lt;host address&amp;gt;
&lt;/pre&gt;&lt;/div&gt;
the -X tells ssh to do magic X port forwarding. 
&lt;/li&gt;
&lt;li&gt;
in the new ssh session run an X program, e.g.: 
&lt;div class="verbatim-block"&gt;&lt;pre&gt;xterm &amp;amp;
&lt;/pre&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
and away you go 
&lt;/li&gt;&lt;/ul&gt;

&lt;p&gt;
I tried running Synaptic Package Manager from this, i.e. 
&lt;/p&gt;
&lt;div class="verbatim-block"&gt;&lt;pre&gt;sudo synaptic &amp;amp;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;
and it worked, a bit sluggishly, until it got to the point where I tried to accept changes and install packages, where it died with an X error. It did this twice so it is probably a deep X problem. I will have to stick with dselect &lt;img alt="sad" src="/images/smileys/sad.png" /&gt; 
&lt;/p&gt;&lt;p&gt;Related Posts: &lt;a href="/tag/cygwin"&gt;cygwin&lt;/a&gt; &lt;a href="/tag/dselect"&gt;dselect&lt;/a&gt; &lt;a href="/tag/ssh"&gt;ssh&lt;/a&gt; &lt;a href="/tag/ubuntu"&gt;ubuntu&lt;/a&gt; &lt;a href="/tag/windows"&gt;windows&lt;/a&gt;&lt;/p&gt;</description>
      <guid>http://www.petersblog.org/node/view/661</guid>
      <category domain="http://www.technorati.com/tag">cygwin</category>
      <category domain="http://www.technorati.com/tag">dselect</category>
      <category domain="http://www.technorati.com/tag">ssh</category>
      <category domain="http://www.technorati.com/tag">ubuntu</category>
      <category domain="http://www.technorati.com/tag">windows</category>
    </item>
    <item>
      <title>Ubuntu Fluxbox</title>
      <link>http://www.petersblog.org/node/view/659</link>
      <description>&lt;p&gt;
Got Ubuntu running fluxbox desktop manager instead of gnome: 
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;
install fluxbox via dselect or apt: 
&lt;div class="verbatim-block"&gt;&lt;pre&gt;sudo apt-get install fluxbox
&lt;/pre&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
edit ~/.xsession and add the following: 
&lt;div class="verbatim-block"&gt;&lt;pre&gt;exec /usr/bin/fluxbox
&lt;/pre&gt;&lt;/div&gt;
&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Related Posts: &lt;a href="/tag/dselect"&gt;dselect&lt;/a&gt; &lt;a href="/tag/fluxbox"&gt;fluxbox&lt;/a&gt; &lt;a href="/tag/ubuntu"&gt;ubuntu&lt;/a&gt;&lt;/p&gt;</description>
      <guid>http://www.petersblog.org/node/view/659</guid>
      <category domain="http://www.technorati.com/tag">dselect</category>
      <category domain="http://www.technorati.com/tag">fluxbox</category>
      <category domain="http://www.technorati.com/tag">ubuntu</category>
    </item>
    <item>
      <title>Hello from Ubuntu</title>
      <link>http://www.petersblog.org/node/view/657</link>
      <description>&lt;p&gt;
Installed &lt;a href="http://www.ubuntulinux.org"&gt;Ubuntu linux&lt;/a&gt;. Posting this from Firefox running on Ubuntu. 
&lt;/p&gt;
&lt;p&gt;
The installer created a version that worked pretty much automatically. The only tweeks I had to do are: 
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;
the installer hardware detection could not find my old dlink de220 ne2000 compatible ISA network card. I had to switch terminals and run: 
&lt;div class="verbatim-block"&gt;&lt;pre&gt;modprobe ne io=0x300 irq=9
&lt;/pre&gt;&lt;/div&gt;
switching back to the installer, it found the network and was happy. It downloaded a load of updated modules from somewhere via the nerwork. It configured everything via DHCP, even found the name servers. 
&lt;/li&gt;
&lt;li&gt;
Once Ubuntu was installed it ran ok but network was dead again. I had to edit /etc/modules to add the line 
&lt;div class="verbatim-block"&gt;&lt;pre&gt;ne io=0x300 irq=9
&lt;/pre&gt;&lt;/div&gt;
and restart (although a modprobe would probably have done the trick). 
&lt;/li&gt;
&lt;li&gt;
I used the network manager to change from the DHCP setup to a manual one so server has a static IP address. 
&lt;/li&gt;
&lt;li&gt;
I edited /etc/apt/sources.list to add a 'universe' repository so I could use the Synaptic package manager to install packages unapproved by Ubuntu. This allowed me to install xawtv. I also installed 83 module updates. 
&lt;/li&gt;
&lt;li&gt;
Ran xawtv from the command line and it Just Worked: the hardware detection had found my Pinnacle PCTV Rave and loaded all the bttv modules. Ubuntu seems to use a 2.6 kernel, hence my &lt;a href="/node/605"&gt;old problems&lt;/a&gt; were resolved. 
&lt;/li&gt;&lt;/ul&gt;

&lt;p&gt;
Ubuntu observations: 
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;
Don't like the brown colour scheme. 
&lt;/li&gt;
&lt;li&gt;
root account is disabled! Everything has to be done via sudo. Apparently Max OS/X works this way. I was able to edit the config files above using 'sudo vim &lt;filename&gt;'. Sudo keeps prompting for passwords. 
&lt;/li&gt;
&lt;li&gt;
Synaptic package manager looks nice, nicer than dselect (old text based apt tool I used to use on debian with weird key assignments). 
&lt;/li&gt;
&lt;li&gt;
Samba network client Just Worked: was able to find Windows XP pc and poke around. 
&lt;/li&gt;
&lt;li&gt;
Not bowled over by the documentation on the Ubunto web site. Mostly Wiki notes, often directing me to &lt;a href="http://www.ubuntulinux.org/wiki/Room101"&gt;Room 101&lt;/a&gt;, a catchall. 
&lt;/li&gt;
&lt;li&gt;
Modern X has much nicer fonts than Suse 6.4 vintage. 
&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Related Posts: &lt;a href="/tag/dselect"&gt;dselect&lt;/a&gt; &lt;a href="/tag/firefox"&gt;firefox&lt;/a&gt; &lt;a href="/tag/isa"&gt;isa&lt;/a&gt; &lt;a href="/tag/linux"&gt;linux&lt;/a&gt; &lt;a href="/tag/samba"&gt;samba&lt;/a&gt; &lt;a href="/tag/ubuntu"&gt;ubuntu&lt;/a&gt; &lt;a href="/tag/vim"&gt;vim&lt;/a&gt; &lt;a href="/tag/windows"&gt;windows&lt;/a&gt;&lt;/p&gt;</description>
      <guid>http://www.petersblog.org/node/view/657</guid>
      <category domain="http://www.technorati.com/tag">dselect</category>
      <category domain="http://www.technorati.com/tag">firefox</category>
      <category domain="http://www.technorati.com/tag">isa</category>
      <category domain="http://www.technorati.com/tag">linux</category>
      <category domain="http://www.technorati.com/tag">samba</category>
      <category domain="http://www.technorati.com/tag">ubuntu</category>
      <category domain="http://www.technorati.com/tag">vim</category>
      <category domain="http://www.technorati.com/tag">windows</category>
    </item>
    <item>
      <title>Did background update of home server using..</title>
      <link>http://www.petersblog.org/node/view/312</link>
      <description>&lt;p&gt;
&lt;p&gt;Did background update of home server using &lt;strong&gt;dselect&lt;/strong&gt; via &lt;strong&gt;ssh&lt;/strong&gt;. Something like 63 packages were upgraded, things like &lt;strong&gt;nfs&lt;/strong&gt; and &lt;strong&gt;openoffice&lt;/strong&gt; dictionary that I don't need. SSL update said a restart was advised so I rebooted the box. It hasn't rebooted, it's offline. What can be wrong?&lt;/p&gt; 
&lt;/p&gt;&lt;p&gt;Related Posts: &lt;a href="/tag/dselect"&gt;dselect&lt;/a&gt; &lt;a href="/tag/ssh"&gt;ssh&lt;/a&gt;&lt;/p&gt;</description>
      <guid>http://www.petersblog.org/node/view/312</guid>
      <category domain="http://www.technorati.com/tag">dselect</category>
      <category domain="http://www.technorati.com/tag">ssh</category>
    </item>
    <item>
      <title>Played some more with dselect.</title>
      <link>http://www.petersblog.org/node/view/295</link>
      <description>&lt;p&gt;
&lt;p&gt;Played some more with &lt;strong&gt;dselect&lt;/strong&gt;. It upgraded a load more stuff for me, including font stuff which should be useless on a console system.&lt;/p&gt; &lt;p&gt;Installed &lt;strong&gt;vim-python&lt;/strong&gt; which is &lt;strong&gt;vim&lt;/strong&gt; with integrated &lt;strong&gt;python&lt;/strong&gt;. It Just Worked.&lt;/p&gt; &lt;p&gt;Installed &lt;strong&gt;qpopper&lt;/strong&gt; which appears to be THE pop server. It Just Worked. I could use it to receive email on the laptop. I managed to send email via the server as well, although I had to enable relaying for the laptop's ip address. Looking at the headers, the isp has added a warning about the message originating from a dialup. Cheek.&lt;/p&gt; &lt;p&gt;Anyway, the pop gives me limitless email accounts.&lt;/p&gt; 
&lt;/p&gt;&lt;p&gt;Related Posts: &lt;a href="/tag/dselect"&gt;dselect&lt;/a&gt; &lt;a href="/tag/python"&gt;python&lt;/a&gt; &lt;a href="/tag/vim"&gt;vim&lt;/a&gt;&lt;/p&gt;</description>
      <guid>http://www.petersblog.org/node/view/295</guid>
      <category domain="http://www.technorati.com/tag">dselect</category>
      <category domain="http://www.technorati.com/tag">python</category>
      <category domain="http://www.technorati.com/tag">vim</category>
    </item>
    <item>
      <title>Dselect finished it's update after waiting all..</title>
      <link>http://www.petersblog.org/node/view/283</link>
      <description>&lt;p&gt;
&lt;p&gt;&lt;strong&gt;Dselect&lt;/strong&gt; finished it's update after waiting all night to the answer to a question. It asks lots of questions at odd intervals so needs supervision. The questions are things like whether I want to reboot the pcmcia card manager: not totally obvious stuff. I think it has upgraded everything to the latest unstable versions: gee thanks.&lt;/p&gt; &lt;p&gt;I rebooted it and everything is still alive so I am happy and still glad I went for Debian.&lt;/p&gt; 
&lt;/p&gt;&lt;p&gt;Related Posts: &lt;a href="/tag/dselect"&gt;dselect&lt;/a&gt;&lt;/p&gt;</description>
      <guid>http://www.petersblog.org/node/view/283</guid>
      <category domain="http://www.technorati.com/tag">dselect</category>
    </item>
  </channel>
</rss>
