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

<channel>
	<title>Nozell, rhymes with Oh Hell &#187; screen</title>
	<atom:link href="http://nozell.com/blog/tag/screen/feed/" rel="self" type="application/rss+xml" />
	<link>http://nozell.com/blog</link>
	<description>Marc Nozell's random stuff -- mostly GNU/Linux, technology, genealogy, family</description>
	<lastBuildDate>Mon, 09 Jan 2012 17:56:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>SheevaPlug customizing pre-installed Ubuntu/Jaunty</title>
		<link>http://nozell.com/blog/2009/05/17/sheevaplug-customizing-pre-installed-ubuntujaunty/</link>
		<comments>http://nozell.com/blog/2009/05/17/sheevaplug-customizing-pre-installed-ubuntujaunty/#comments</comments>
		<pubDate>Sun, 17 May 2009 18:39:02 +0000</pubDate>
		<dc:creator>Marc Nozell</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[elinks]]></category>
		<category><![CDATA[hplip]]></category>
		<category><![CDATA[jaunty]]></category>
		<category><![CDATA[kernel modules]]></category>
		<category><![CDATA[lanmap]]></category>
		<category><![CDATA[links2]]></category>
		<category><![CDATA[mediawiki]]></category>
		<category><![CDATA[munin]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[sheevaplug]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://nozell.com/blog/?p=762</guid>
		<description><![CDATA[Show-n-Tell day &#8212; brining LordShiva to the MA offices. mediawiki / mysql / apache2 root@LordShiva:~# sudo apt-get install mediawiki Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient15off libnet-daemon-perl libplrpc-perl libpq5 libterm-readkey-perl mysql-client-5.0 mysql-common mysql-server [...]]]></description>
			<content:encoded><![CDATA[<p>Show-n-Tell day &#8212; brining LordShiva to the MA offices.</p>
<p><strong>mediawiki / mysql / apache2</strong></p>
<p><code><br />
root@LordShiva:~# sudo apt-get install mediawiki<br />
Reading package lists... Done<br />
Building dependency tree<br />
Reading state information... Done<br />
The following extra packages will be installed:<br />
  apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libhtml-template-perl<br />
  libmysqlclient15off libnet-daemon-perl libplrpc-perl libpq5 libterm-readkey-perl mysql-client-5.0 mysql-common mysql-server mysql-server-5.0<br />
  mysql-server-core-5.0 php5 php5-cli php5-common php5-mysql psmisc ssl-cert<br />
Suggested packages:<br />
  www-browser apache2-doc apache2-suexec apache2-suexec-custom ufw php-pear dbishell libipc-sharedcache-perl libcompress-zlib-perl php5-gd imagemagick<br />
  mediawiki-math memcached clamav mysql-doc-5.0 tinyca mailx<br />
The following NEW packages will be installed:<br />
  apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libhtml-template-perl<br />
  libmysqlclient15off libnet-daemon-perl libplrpc-perl libpq5 libterm-readkey-perl mediawiki mysql-client-5.0 mysql-common mysql-server mysql-server-5.0<br />
  mysql-server-core-5.0 php5 php5-cli php5-common php5-mysql psmisc ssl-cert<br />
0 upgraded, 27 newly installed, 0 to remove and 0 not upgraded.<br />
Need to get 53.6MB/53.6MB of archives.<br />
After this operation, 166MB of additional disk space will be used.<br />
Do you want to continue [Y/n]? </code></p>
<p><strong>text mode web browsers (elinks / links2)</strong></p>
<p><code><br />
root@LordShiva:~# apt-get install elinks links2<br />
The following extra packages will be installed:<br />
  elinks-data libdirectfb-1.0-0 liblua50 liblualib50 libperl5.10 libpng12-0<br />
  libruby1.8 libsysfs2 libtiff4 libts-0.0-0<br />
Suggested packages:<br />
  elinks-doc<br />
The following NEW packages will be installed:<br />
  elinks elinks-data libdirectfb-1.0-0 liblua50 liblualib50 libperl5.10<br />
  libpng12-0 libruby1.8 libsysfs2 libtiff4 libts-0.0-0 links2<br />
0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.<br />
Need to get 5104kB of archives.<br />
After this operation, 15.4MB of additional disk space will be used.<br />
Do you want to continue [Y/n]?<br />
</code></p>
<p><strong>lanmap </strong></p>
<p><code>root@LordShiva:~# apt-get install lanmap<br />
Reading package lists... Done<br />
Building dependency tree<br />
Reading state information... Done<br />
The following extra packages will be installed:<br />
  defoma fontconfig fontconfig-config graphviz libcairo2 libdatrie0<br />
  libfontconfig1 libfontenc1 libfreetype6 libgd2-noxpm libgraphviz4 libice6<br />
  libltdl7 libpango1.0-0 libpango1.0-common libpcap0.8 libpixman-1-0 libsm6<br />
  libthai-data libthai0 libxaw7 libxcb-render-util0 libxcb-render0 libxext6<br />
  libxfont1 libxft2 libxmu6 libxpm4 libxrender1 libxt6 ttf-dejavu<br />
  ttf-dejavu-core ttf-dejavu-extra ttf-liberation x-ttcidfont-conf x11-common<br />
  xfonts-encodings xfonts-utils<br />
Suggested packages:<br />
  defoma-doc psfontmgr dfontmgr libft-perl gsfonts graphviz-doc libgd-tools<br />
  ttf-japanese-gothic ttf-japanese-mincho ttf-thryomanes ttf-baekmuk<br />
  ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp ttf-arphic-gkai00mp<br />
  ttf-arphic-bkai00mp<br />
The following NEW packages will be installed:<br />
  defoma fontconfig fontconfig-config graphviz lanmap libcairo2 libdatrie0<br />
  libfontconfig1 libfontenc1 libfreetype6 libgd2-noxpm libgraphviz4 libice6<br />
  libltdl7 libpango1.0-0 libpango1.0-common libpcap0.8 libpixman-1-0 libsm6<br />
  libthai-data libthai0 libxaw7 libxcb-render-util0 libxcb-render0 libxext6<br />
  libxfont1 libxft2 libxmu6 libxpm4 libxrender1 libxt6 ttf-dejavu<br />
  ttf-dejavu-core ttf-dejavu-extra ttf-liberation x-ttcidfont-conf x11-common<br />
  xfonts-encodings xfonts-utils<br />
0 upgraded, 39 newly installed, 0 to remove and 0 not upgraded.<br />
Need to get 11.4MB of archives.<br />
After this operation, 24.6MB of additional disk space will be used.<br />
</code></p>
<p><strong>screen</strong></p>
<p><code>marc@LordShiva:~$ sudo apt-get install screen<br />
Reading package lists... Done<br />
Building dependency tree<br />
Reading state information... Done</p>
<p>The following extra packages will be installed:<br />
  gettext-base iso-codes python-apt python-central python-newt screen-profiles update-motd update-notifier-common<br />
Suggested packages:<br />
  isoquery python-apt-dbg python-gtk2 python-vte python-newt-dbg screen-profiles-extras<br />
The following NEW packages will be installed:<br />
  gettext-base iso-codes python-apt python-central python-newt screen screen-profiles update-motd update-notifier-common<br />
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.<br />
Need to get 2947kB of archives.<br />
After this operation, 14.6MB of additional disk space will be used.</code></p>
<p>Seems like a bunch of extra stuff&#8230; update-motd?</p>
<p><strong>nfs </strong></p>
<p>Installing NFS to hack around.  Eventually storage on lordshiva will be via usb disks.</p>
<p><code><br />
sudo root@LordShiva:~# sudo apt-get install nfs-kernel-server<br />
Reading package lists... Done<br />
Building dependency tree<br />
Reading state information... Done<br />
The following extra packages will be installed:<br />
  libevent1 libgssglue1 libnfsidmap2 librpcsecgss3 nfs-common portmap<br />
The following NEW packages will be installed:<br />
  libevent1 libgssglue1 libnfsidmap2 librpcsecgss3 nfs-common<br />
  nfs-kernel-server portmap<br />
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.<br />
Need to get 503kB of archives.<br />
After this operation, 1548kB of additional disk space will be used.<br />
Do you want to continue [Y/n]?<br />
</code></p>
<p>I made sure the nfs-kernel-server was also installed on where the disks were and added to <code>/etc/exports</code> something like:</p>
<p><code>/home/Music		lordshiva(ro,sync,no_subtree_check)</code></p>
<p>and ran <code>sudo exportfs -av</code></p>
<p>The on the SheevaPlug:</p>
<p><code>sudo mkdir -p /nfs/Music<br />
sudo mount homeserver:/home/Music /nfs/Music</code></p>
<p>And updated <code>/etc/gnump3/gnump3.conf</code> to point to <code>/nfs/Music</code></p>
<p><strong>updating what munin monitors</strong></p>
<p>Running the following commands will make some recommendations on additional things munin can monitor.</p>
<p><code># munin-node-configure --shell --families auto<br />
# munin-node-configure --shell --families contrib<br />
# munin-node-configure --shell --families manual</code></p>
<p>Just cut-n-paste the ones you want to enable into a root shell.  Remember to restart the daemon too.</p>
<p><code>root@LordShiva:~# ln -s /usr/share/munin/plugins/ntp_offset /etc/munin/plugins/ntp_offset<br />
root@LordShiva:~# ln -s /usr/share/munin/plugins/ntp_ /etc/munin/plugins/ntp_europium_canonical_com<br />
root@LordShiva:~# ln -s /usr/share/munin/plugins/ntp_states /etc/munin/plugins/ntp_states<br />
root@LordShiva:~# ln -s /usr/share/munin/plugins/port_ /etc/munin/plugins/port_ssh<br />
root@LordShiva:~# ln -s /usr/share/munin/plugins/port_ /etc/munin/plugins/port_www<br />
root@LordShiva:~# /etc/init.d/munin-node restart<br />
</code></p>
<p><strong>SheevaPlug as a mini-printserver</strong></p>
<p>The pre-installed Ubuntu doesn&#8217;t include any kernel modules, but thought I&#8217;d try using the SheevaPlug as a mini-print/scan server for my hp PSC 1510 All-in-One printer/scanner.</p>
<p>Install <code>cups</code> which pulls in a ton of other packages as well as the open source print management tools from Hewlett-Packard, <code>hplip</code></p>
<p><code>root@LordShiva:~# apt-get install cups hplip<br />
Reading package lists... Done<br />
Building dependency tree<br />
Reading state information... Done<br />
The following extra packages will be installed:<br />
  acl avahi-utils bc cups-client cups-common cupsddk cupsddk-drivers foomatic-db foomatic-db-engine foomatic-filters ghostscript gsfonts hal hal-info hdparm hpijs<br />
  hplip-data libavahi-client3 libavahi-compat-libdnssd1 libcupsimage2 libexif12 libffi5 libgphoto2-2 libgphoto2-port0 libgs8 libhal-storage1 libhal1 libieee1284-3<br />
  libijs-0.35 libpaper-utils libpaper1 libpci3 libpciaccess0 libpolkit-dbus2 libpolkit-grant2 libpoppler4 libsane libsensors3 libslp1 libsnmp-base libsnmp15<br />
  pciutils pm-utils policykit poppler-utils powermgmt-base psfontmgr python-dbus python-gobject python-imaging python-support radeontool sane-utils smartdimmer<br />
  smbclient ttf-freefont wget<br />
Suggested packages:<br />
  cups-bsd cups-driver-gutenprint xpdf-korean xpdf-japanese xpdf-chinese-traditional xpdf-chinese-simplified cups-pdf kdeprint gtklp cups-pt xpp foomatic-db-hpijs<br />
  foomatic-db-gutenprint foo2zjs openprinting-ppds foomatic-gui ghostscript-x gnome-device-manager apmd hpijs-ppds hplip-doc hplip-gui gphoto2 gtkam hpoj<br />
  libsane-extras lm-sensors slpd openslp-doc cpufrequtils policykit-gnome python-dbus-doc python-dbus-dbg python-gobject-dbg python-imaging-doc python-imaging-dbg<br />
  unpaper smbfs<br />
Recommended packages:<br />
  vbetool<br />
The following NEW packages will be installed:<br />
  acl avahi-utils bc cups cups-client cups-common cupsddk cupsddk-drivers foomatic-db foomatic-db-engine foomatic-filters ghostscript gsfonts hal hal-info hdparm<br />
  hpijs hplip hplip-data libavahi-client3 libavahi-compat-libdnssd1 libcupsimage2 libexif12 libffi5 libgphoto2-2 libgphoto2-port0 libgs8 libhal-storage1 libhal1<br />
  libieee1284-3 libijs-0.35 libpaper-utils libpaper1 libpci3 libpciaccess0 libpolkit-dbus2 libpolkit-grant2 libpoppler4 libsane libsensors3 libslp1 libsnmp-base<br />
  libsnmp15 pciutils pm-utils policykit poppler-utils powermgmt-base psfontmgr python-dbus python-gobject python-imaging python-support radeontool sane-utils<br />
  smartdimmer smbclient ttf-freefont wget<br />
0 upgraded, 59 newly installed, 0 to remove and 0 not upgraded.<br />
Need to get 38.4MB of archives.<br />
After this operation, 127MB of additional disk space will be used.<br />
Do you want to continue [Y/n]?</code></p>
<p>Hmm, during the install I plugged in the printer and checked dmesg to see if it was recognized.  The lanmap process appears to have had a problem allocating memory:</p>
<p><code><br />
lanmap: page allocation failure. order:5, mode:0xc0d0<br />
[<c00ef438>] (dump_stack+0x0/0x14) from [<c0147514>] (__alloc_pages+0x28c/0x2a0)<br />
[<c0147288>] (__alloc_pages+0x0/0x2a0) from [<c0147550>] (__get_free_pages+0x28/0x5c)<br />
[<c0147528>] (__get_free_pages+0x0/0x5c) from [<c03bb3d0>] (packet_set_ring+0xc4/0x30c)<br />
[<c03bb30c>] (packet_set_ring+0x0/0x30c) from [<c03bd414>] (packet_setsockopt+0x34c/0x4b4)<br />
[<c03bd0c8>] (packet_setsockopt+0x0/0x4b4) from [<c03675bc>] (sys_setsockopt+0x84/0xa8)<br />
[<c0367538>] (sys_setsockopt+0x0/0xa8) from [<c0027480>] (ret_fast_syscall+0x0/0x2c)<br />
 r8:c0027628 r7:00000126 r6:0004f978 r5:0000005c r4:00000010<br />
Mem-info:<br />
DMA per-cpu:<br />
CPU    0: Hot: hi:  186, btch:  31 usd: 180   Cold: hi:   62, btch:  15 usd:  58<br />
Active:54514 inactive:39796 dirty:0 writeback:0 unstable:0<br />
 free:26150 slab:6191 mapped:4044 pagetables:328 bounce:0<br />
DMA free:104600kB min:2884kB low:3604kB high:4324kB active:218056kB inactive:159184kB present:520192kB pages_scanned:0 all_unreclaimable? no<br />
lowmem_reserve[]: 0 0<br />
DMA: 8554*4kB 4492*8kB 1155*16kB 399*32kB 48*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 104600kB<br />
Swap cache: add 0, delete 0, find 0/0, race 0+0<br />
Free swap  = 0kB<br />
Total swap = 0kB<br />
Free swap:            0kB<br />
131072 pages of RAM<br />
26907 free pages<br />
2296 reserved pages<br />
6165 slab pages<br />
20272 pages shared<br />
0 pages swap cached<br />
device eth0 left promiscuous mode<br />
</c0027480></c0367538></c03675bc></c03bd0c8></c03bd414></c03bb30c></c03bb3d0></c0147528></c0147550></c0147288></c0147514></c00ef438></code></p>
<p>When I tried to killall lanmap, ssh sessions hung.  I could get in via console still.  The network seemed to be a bit wonky, so rebooted.</p>
<p><strong>Hmm, scary kernel messsages</strong></p>
<p>This is after the reboot and seems to be when <code>hal</code> is starting up on install.  Install is slowing continuing.</p>
<p><code><br />
Unable to handle kernel paging request at virtual address 1a364e25<br />
pgd = c9e2c000<br />
[1a364e25] *pgd=00000000<br />
Internal error: Oops: 5 [#1]<br />
Modules linked in:<br />
CPU: 0    Not tainted  (2.6.22.18 #1)<br />
PC is at strnlen+0x20/0x34<br />
LR is at vsnprintf+0x314/0x5b4<br />
pc : [<c0240228>]    lr : [<c02414f8>]    psr: a0000013<br />
sp : ca99bdc0  ip : ca99bdd0  fp : ca99bdcc<br />
r10: ffffffff  r9 : ffffffff  r8 : 00000000<br />
r7 : ffffffff  r6 : caa68041  r5 : 1a364e25  r4 : ca99be40<br />
r3 : c00c8994  r2 : 1a364e25  r1 : fffffffe  r0 : 1a364e25<br />
Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  Segment user<br />
Control: 0005317f  Table: 09e2c000  DAC: 00000015<br />
Process udevadm (pid: 4301, stack limit = 0xca99a268)<br />
Stack: (0xca99bdc0 to 0xca99c000)<br />
bdc0: ca99be1c ca99bdd0 c02414f8 c0240218 c023db48 ca99bdec ca99bdfc ca99bdf0<br />
bde0: c027369c 35597fbe caa68041 c00d321a ca99be44 00000014 00000041 d4502000<br />
be00: caa68000 c03ed298 00000000 c03fc7a4 ca99be38 ca99be20 c0241864 c02411f4<br />
be20: c03ed240 ca99be40 caa68000 ca99beec ca99be48 c026ef10 c024184c c00d3219<br />
be40: 1a364e25 1a364e25 d4502000 00001000 d4502000 d450200c d4502020 d4502033<br />
be60: 1a364e25 00000044 000280d0 c03f1574 00000000 00000000 ffffff9c c03f1574<br />
be80: c08927e8 000080d0 c03f1570 ce818ac0 00000000 00000000 ca99beec ca99bea8<br />
bea0: c01472ec c0146724 000280d0 00000010 c0581d00 ca99a000 40020000 4001f000<br />
bec0: 00100073 ca9e82a0 c08927e8 c03ed240 ca9e82a0 c08927e8 c03ed240 ca9e82c0<br />
bee0: ca99befc ca99bef0 c026e810 c026ee28 ca99bf44 ca99bf00 c019ca14 c026e7fc<br />
bf00: ca99bf74 ca99bf10 c0153c60 ca99bf70 00001000 4001f000 00000000 d48a7700<br />
bf20: 4001f000 ca99bf70 00001000 4001f000 ca99a000 00000000 ca99bf6c ca99bf48<br />
bf40: c01625e8 c019c964 00000000 00000000 00000000 00000000 d48a7700 00001000<br />
bf60: ca99bfa4 ca99bf70 c01629fc c0162540 00000000 00000000 00000022 00000000<br />
bf80: ffffffff 2a024d18 2a024d18 000007ff 00000003 c0027628 00000000 ca99bfa8<br />
bfa0: c0027480 c01629c8 2a024d18 2a024d18 00000007 4001f000 00001000 00000000<br />
bfc0: 2a024d18 2a024d18 000007ff 00000003 bece6f0c 0000000a 4017f000 bece6f0c<br />
bfe0: 40170000 bece6e68 400aab04 400fe3fc 60000010 00000007 00002031 00002431<br />
Backtrace:<br />
[<c0240208>] (strnlen+0x0/0x34) from [<c02414f8>] (vsnprintf+0x314/0x5b4)<br />
[<c02411e4>] (vsnprintf+0x0/0x5b4) from [<c0241864>] (sprintf+0x2c/0x34)<br />
[<c0241838>] (sprintf+0x0/0x34) from [<c026ef10>] (show_uevent+0xf8/0x140)<br />
 r3:1a364e25 r2:1a364e25 r1:c00d3219<br />
[<c026ee18>] (show_uevent+0x0/0x140) from [<c026e810>] (dev_attr_show+0x24/0x28)<br />
 r7:ca9e82c0 r6:c03ed240 r5:c08927e8 r4:ca9e82a0<br />
[<c026e7ec>] (dev_attr_show+0x0/0x28) from [<c019ca14>] (sysfs_read_file+0xc0/0x130)<br />
[<c019c954>] (sysfs_read_file+0x0/0x130) from [<c01625e8>] (vfs_read+0xb8/0x148)<br />
[<c0162530>] (vfs_read+0x0/0x148) from [<c01629fc>] (sys_read+0x44/0x70)<br />
 r7:00001000 r6:d48a7700 r5:00000000 r4:00000000<br />
[<c01629b8>] (sys_read+0x0/0x70) from [<c0027480>] (ret_fast_syscall+0x0/0x2c)<br />
 r8:c0027628 r7:00000003 r6:000007ff r5:2a024d18 r4:2a024d18<br />
Code: ea000000 e2800001 e2511001 3a000002 (e5d03000) </c0027480></c01629b8></c01629fc></c0162530></c01625e8></c019c954></c019ca14></c026e7ec></c026e810></c026ee18></c026ef10></c0241838></c0241864></c02411e4></c02414f8></c0240208></c02414f8></c0240228></code></p>
<p>I&#8217;ve removed just hal, <code>apt-get --purge remove hal</code></p>
<p>Hmm, now it appears that the pre-install Ubuntu/Jaunty doesn&#8217;t include any kernel loadablel modules for things like USB printers.  Time to install stock Debian on this beastie.</p>
]]></content:encoded>
			<wfw:commentRss>http://nozell.com/blog/2009/05/17/sheevaplug-customizing-pre-installed-ubuntujaunty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

