<?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>Failure is the Key to Success &#187; Software</title>
	<atom:link href="http://blog.ijhedges.com/category/software/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ijhedges.com</link>
	<description></description>
	<lastBuildDate>Sun, 29 Jan 2012 23:30:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Proxy server</title>
		<link>http://blog.ijhedges.com/2011/05/01/proxy-server/</link>
		<comments>http://blog.ijhedges.com/2011/05/01/proxy-server/#comments</comments>
		<pubDate>Sun, 01 May 2011 10:33:59 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Dansguardian]]></category>
		<category><![CDATA[dellfand]]></category>
		<category><![CDATA[proxy server]]></category>
		<category><![CDATA[spamassassin]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.ijhedges.com/?p=523</guid>
		<description><![CDATA[Better late than never, this post has sat in draft for a nearly three months. I had a laptop running Ubuntu acting as a proxy server to filter all the kids&#8217; internet traffic and decided back in February that it was getting a bit long in the tooth. It was a Compaq M700 laptop, with [...]]]></description>
			<content:encoded><![CDATA[<p>Better late than never, this post has sat in draft for a nearly three months. I had a laptop running Ubuntu acting as a proxy server to filter all the kids&#8217; internet traffic and decided back in February that it was getting a bit long in the tooth. It was a Compaq M700 laptop, with a 400MHz processor, 384MB RAM and an 8GB hard disc. A long time since it had been state of the art! The last straw came when I couldn&#8217;t upgrade the operating system to the latest version as I didn&#8217;t have enough disc space. The old laptop provided several functions for me, so these would have to migrated to the replacement machine.</p>
<p>A few days later, I bought a Dell D610 laptop (Celeron 2.0GHz, 40GB hard disc) off Ebay and some additional memory to take it to 2GB.</p>
<p>I had downloaded <a href="http://www.ubuntu.com/server">Ubuntu Server</a> 10.10 about the same time and burnt the ISO to CD, however when I came to use it I found the image was incomplete, so had to download it again. Second time lucky.</p>
<p>The notes below are for me as an aid for future rebuilds, but may help someone else with their configuration.</p>
<p><span id="more-523"></span>I installed the operating system using pretty much the default settings and after it had finished installing and restarted, I changed the network settings to use a static IP address instead of DHCP.</p>
<p style="padding-left: 30px;">sudo vi /etc/network/interfaces</p>
<p>I changed the primary interface from:</p>
<p style="padding-left: 30px;">auto eth0<br />
iface eth0 inet dhcp</p>
<p>to</p>
<p style="padding-left: 30px;">auto eth0<br />
iface eth0 inet static<br />
address 10.x.x.100<br />
netmask 255.255.255.0<br />
network 10.x.x.0<br />
broadcast 10.x.x.255<br />
gateway 10.x.x.x</p>
<p>Or at least my specific details instead of those above.</p>
<p>I was going to edit the the DNS settings</p>
<p style="padding-left: 30px;">sudo vi /etc/resolv.conf</p>
<p>but they had already correctly got my DNS settings, so I didn&#8217;t need to change the nameserver entry.</p>
<p>I then restarted the networking</p>
<p style="padding-left: 30px;">sudo /etc/init.d/networking restart</p>
<p>OK, now the fun begins!</p>
<p>The old laptop provides the following:</p>
<ul>
<li>Webserver &#8211; Apache, PHP</li>
<li>Filter proxy server &#8211; Squid, Dansguardian</li>
<li>Email spam filtering &#8211; SpamAssassin</li>
</ul>
<p>It was all managed using <a href="http://www.webmin.com/">Webmin</a>, and I also had VNC configured to give me a session onto the display, yes I know its a server, but I installed a GUI to make my life easier.</p>
<p>First I installed webmin to make my life easier:</p>
<p>sudo aptitude install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl apt-show-versions</p>
<p>wget http://prdownloads.sourceforge.net/webadmin/webmin_1.530_all.deb</p>
<p>sudo dpkg -i webmin_1.530_all.deb</p>
<p>Once Webmin was installed it simplified the installation of other requirements. NTP to ensure that the time was synchronised with the rest of my network.</p>
<p>install ntp<br />
cd /etc<br />
sudo vi ntp.conf<br />
remove server ntp.unbuntu.com replace with sarig.midkemia.local (my domain controller and time source).</p>
<p>Next to join it to my domain; install following packages:<br />
keyutils<br />
krb5-config<br />
libgssrpc4<br />
libkadm5clnt-mit7<br />
krb5-user<br />
smbclient<br />
smbfs<br />
winbind</p>
<p>sudo vi krb5.conf</p>
<p style="padding-left: 30px;">[libdefaults]<br />
default_realm = MIDKEMIA.LOCAL<br />
dns_lookup_realm = false<br />
dns_lookup_kdc = false<br />
ticket_lifetime = 24h<br />
# The following krb5.conf variables are only for MIT Kerberos.<br />
krb4_config = /etc/krb.conf<br />
krb4_realms = /etc/krb.realms<br />
kdc_timesync = 1<br />
ccache_type = 4<br />
forwardable = true<br />
proxiable = true</p>
<p style="padding-left: 30px;">[logging]<br />
default = FILE:/var/log/krb5libs.log<br />
kdc = FILE:/var/log/krb5kdc.log<br />
admin_server = FILE:/var/log/kadmind.log</p>
<p style="padding-left: 30px;"># The following encryption type specification will be used by MIT Kerberos<br />
# if uncommented.  In general, the defaults in the MIT Kerberos code are<br />
# correct and overriding these specifications only serves to disable new<br />
# encryption types as they are added, creating interoperability problems.</p>
<p style="padding-left: 30px;">#    default_tgs_enctypes = aes256-cts arcfour-hmac-md5 des3-hmac-sha1 des-cbc-crc des-cbc-md5<br />
#    default_tkt_enctypes = aes256-cts arcfour-hmac-md5 des3-hmac-sha1 des-cbc-crc des-cbc-md5<br />
#    permitted_enctypes = aes256-cts arcfour-hmac-md5 des3-hmac-sha1 des-cbc-crc des-cbc-md5</p>
<p style="padding-left: 30px;"># The following libdefaults parameters are only for Heimdal Kerberos.<br />
v4_instance_resolve = false<br />
v4_name_convert = {<br />
host = {<br />
rcmd = host<br />
ftp = ftp<br />
}<br />
plain = {<br />
something = something-else<br />
}<br />
}<br />
fcc-mit-ticketflags = true</p>
<p style="padding-left: 30px;">[realms]<br />
MIDKEMIA.LOCAL = {<br />
kdc = sarig<br />
admin_server = sarig.midkemia.local<br />
default_domain = midkemia.local<br />
}<br />
ATHENA.MIT.EDU = {<br />
kdc = kerberos.mit.edu:88<br />
kdc = kerberos-1.mit.edu:88<br />
kdc = kerberos-2.mit.edu:88<br />
admin_server = kerberos.mit.edu<br />
default_domain = mit.edu<br />
}<br />
MEDIA-LAB.MIT.EDU = {<br />
kdc = kerberos.media.mit.edu<br />
admin_server = kerberos.media.mit.edu<br />
}<br />
ZONE.MIT.EDU = {<br />
kdc = casio.mit.edu<br />
kdc = seiko.mit.edu<br />
admin_server = casio.mit.edu<br />
}<br />
MOOF.MIT.EDU = {<br />
kdc = three-headed-dogcow.mit.edu:88<br />
kdc = three-headed-dogcow-1.mit.edu:88<br />
admin_server = three-headed-dogcow.mit.edu<br />
}<br />
CSAIL.MIT.EDU = {<br />
kdc = kerberos-1.csail.mit.edu<br />
kdc = kerberos-2.csail.mit.edu<br />
admin_server = kerberos.csail.mit.edu<br />
default_domain = csail.mit.edu<br />
krb524_server = krb524.csail.mit.edu<br />
}<br />
IHTFP.ORG = {<br />
kdc = kerberos.ihtfp.org<br />
admin_server = kerberos.ihtfp.org<br />
}<br />
GNU.ORG = {<br />
kdc = kerberos.gnu.org<br />
kdc = kerberos-2.gnu.org<br />
kdc = kerberos-3.gnu.org<br />
admin_server = kerberos.gnu.org<br />
}<br />
1TS.ORG = {<br />
kdc = kerberos.1ts.org<br />
admin_server = kerberos.1ts.org<br />
}<br />
GRATUITOUS.ORG = {<br />
kdc = kerberos.gratuitous.org<br />
admin_server = kerberos.gratuitous.org<br />
}<br />
DOOMCOM.ORG = {<br />
kdc = kerberos.doomcom.org<br />
admin_server = kerberos.doomcom.org<br />
}<br />
ANDREW.CMU.EDU = {<br />
kdc = vice28.fs.andrew.cmu.edu<br />
kdc = vice2.fs.andrew.cmu.edu<br />
kdc = vice11.fs.andrew.cmu.edu<br />
kdc = vice12.fs.andrew.cmu.edu<br />
admin_server = vice28.fs.andrew.cmu.edu<br />
default_domain = andrew.cmu.edu<br />
}<br />
CS.CMU.EDU = {<br />
kdc = kerberos.cs.cmu.edu<br />
kdc = kerberos-2.srv.cs.cmu.edu<br />
admin_server = kerberos.cs.cmu.edu<br />
}<br />
DEMENTIA.ORG = {<br />
kdc = kerberos.dementia.org<br />
kdc = kerberos2.dementia.org<br />
admin_server = kerberos.dementia.org<br />
}<br />
stanford.edu = {<br />
kdc = krb5auth1.stanford.edu<br />
kdc = krb5auth2.stanford.edu<br />
kdc = krb5auth3.stanford.edu<br />
admin_server = krb5-admin.stanford.edu<br />
default_domain = stanford.edu<br />
}</p>
<p style="padding-left: 30px;">[domain_realm]<br />
.mit.edu = ATHENA.MIT.EDU<br />
mit.edu = ATHENA.MIT.EDU<br />
.media.mit.edu = MEDIA-LAB.MIT.EDU<br />
media.mit.edu = MEDIA-LAB.MIT.EDU<br />
.csail.mit.edu = CSAIL.MIT.EDU<br />
csail.mit.edu = CSAIL.MIT.EDU<br />
.whoi.edu = ATHENA.MIT.EDU<br />
whoi.edu = ATHENA.MIT.EDU<br />
.stanford.edu = stanford.edu<br />
.midkemia.local = MIDKEMIA.LOCAL<br />
midkemia.local = MIDKEMIA.LOCAL</p>
<p style="padding-left: 30px;">[login]<br />
krb4_convert = true<br />
krb4_get_tickets = false</p>
<p style="padding-left: 30px;">[appdefaults]<br />
pam = {<br />
debug = false<br />
ticket_lifetime = 36000<br />
renew_lifetime = 36000<br />
forwardable = true<br />
krb4_convert = false<br />
}</p>
<p>kinit administrator@MIDKEMIA.LOCAL</p>
<p>should prompt for password and not throw error</p>
<p>vi /etc/samba/smb.conf</p>
<p style="padding-left: 30px;">#<br />
# Sample configuration file for the Samba suite for Debian GNU/Linux.<br />
#<br />
#<br />
# This is the main Samba configuration file. You should read the<br />
# smb.conf(5) manual page in order to understand the options listed<br />
# here. Samba has a huge number of configurable options most of which<br />
# are not shown in this example<br />
#<br />
# Any line which starts with a ; (semi-colon) or a # (hash)<br />
# is a comment and is ignored. In this example we will use a #<br />
# for commentary and a ; for parts of the config file that you<br />
# may wish to enable<br />
#<br />
# NOTE: Whenever you modify this file you should run the command<br />
# &#8220;testparm&#8221; to check that you have not made any basic syntactic<br />
# errors.<br />
#</p>
<p style="padding-left: 30px;">#======================= Global Settings =======================</p>
<p style="padding-left: 30px;">[global]<br />
log level = 3<br />
log file = /var/log/samba/log.%m<br />
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .<br />
winbind enum users = Yes<br />
winbind enum groups = Yes<br />
winbind use default domain = Yes<br />
winbind nested groups = Yes<br />
winbind separator = +<br />
idmap uid = 600-20000<br />
idmap gid = 600-20000<br />
socket options = TCP_NODELAY<br />
obey pam restrictions = yes<br />
client ntlmv2 auth = yes<br />
wins server = 10.x.x.3<br />
client use spnego = yes<br />
map to guest = bad user<br />
winbind trusted domains only = yes<br />
encrypt passwords = true<br />
realm = MIDKEMIA.LOCAL<br />
passdb backend = tdbsam<br />
passwd program = /usr/bin/passwd %u<br />
template shell = /bin/bash<br />
dns proxy = no<br />
preferred master = no<br />
server string = %h server (Samba, Ubuntu)<br />
invalid users = root<br />
unix password sync = yes<br />
template homedir = /home/%D/%U<br />
workgroup = MIDKEMIA0<br />
syslog = 0<br />
security = ADS<br />
panic action = /usr/share/samba/panic-action %d<br />
usershare allow guests = yes<br />
max log size = 1000<br />
pam password change = yes<br />
smb ports = 139</p>
<p style="padding-left: 30px;">## Browsing/Identification ###</p>
<p style="padding-left: 30px;"># Change this to the workgroup/NT-domain name your Samba server will part of</p>
<p style="padding-left: 30px;"># server string is the equivalent of the NT Description field</p>
<p style="padding-left: 30px;"># Windows Internet Name Serving Support Section:<br />
# WINS Support &#8211; Tells the NMBD component of Samba to enable its WINS Server<br />
;   wins support = no</p>
<p style="padding-left: 30px;"># WINS Server &#8211; Tells the NMBD components of Samba to be a WINS Client<br />
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both</p>
<p style="padding-left: 30px;"># This will prevent nmbd to search for NetBIOS names through DNS.</p>
<p style="padding-left: 30px;"># What naming service and in what order should we use to resolve host names<br />
# to IP addresses<br />
;   name resolve order = lmhosts host wins bcast</p>
<p style="padding-left: 30px;">#### Networking ####</p>
<p style="padding-left: 30px;"># The specific set of interfaces / networks to bind to<br />
# This can be either the interface name or an IP address/netmask;<br />
# interface names are normally preferred<br />
;   interfaces = 127.0.0.0/8 eth0</p>
<p style="padding-left: 30px;"># Only bind to the named interfaces and/or networks; you must use the<br />
# &#8216;interfaces&#8217; option above to use this.<br />
# It is recommended that you enable this feature if your Samba machine is<br />
# not protected by a firewall or is a firewall itself.  However, this<br />
# option cannot handle dynamic or non-broadcast interfaces correctly.<br />
;   bind interfaces only = true</p>
<p style="padding-left: 30px;">#### Debugging/Accounting ####</p>
<p style="padding-left: 30px;"># This tells Samba to use a separate log file for each machine<br />
# that connects</p>
<p style="padding-left: 30px;"># Cap the size of the individual log files (in KiB).</p>
<p style="padding-left: 30px;"># If you want Samba to only log through syslog then set the following<br />
# parameter to &#8216;yes&#8217;.<br />
;   syslog only = no</p>
<p style="padding-left: 30px;"># We want Samba to log a minimum amount of information to syslog. Everything<br />
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log<br />
# through syslog you should set the following parameter to something higher.</p>
<p style="padding-left: 30px;"># Do something sensible when Samba crashes: mail the admin a backtrace</p>
<p style="padding-left: 30px;">####### Authentication #######</p>
<p style="padding-left: 30px;"># &#8220;security = user&#8221; is always a good idea. This will require a Unix account<br />
# in this server for every user accessing the server. See<br />
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html<br />
# in the samba-doc package for details.</p>
<p style="padding-left: 30px;"># You may wish to use password encryption.  See the section on<br />
# &#8216;encrypt passwords&#8217; in the smb.conf(5) manpage before enabling.</p>
<p style="padding-left: 30px;"># If you are using encrypted passwords, Samba will need to know what<br />
# password database type you are using.</p>
<p style="padding-left: 30px;">;   guest account = nobody</p>
<p style="padding-left: 30px;"># This boolean parameter controls whether Samba attempts to sync the Unix<br />
# password with the SMB password when the encrypted SMB password in the<br />
# passdb is changed.</p>
<p style="padding-left: 30px;"># For Unix password sync to work on a Debian GNU/Linux system, the following<br />
# parameters must be set (thanks to Ian Kahan &lt;&lt;kahan@informatik.tu-muenchen.de&gt; for<br />
# sending the correct chat script for the passwd program in Debian Sarge).</p>
<p style="padding-left: 30px;"># This boolean controls whether PAM will be used for password changes<br />
# when requested by an SMB client instead of the program listed in<br />
# &#8216;passwd program&#8217;. The default is &#8216;no&#8217;.</p>
<p style="padding-left: 30px;"># This option controls how nsuccessful authentication attempts are mapped<br />
# to anonymous connections</p>
<p style="padding-left: 30px;">########## Domains ###########</p>
<p style="padding-left: 30px;"># Is this machine able to authenticate users. Both PDC and BDC<br />
# must have this setting enabled. If you are the BDC you must<br />
# change the &#8216;domain master&#8217; setting to no<br />
#<br />
;   domain logons = yes<br />
#<br />
# The following setting only takes effect if &#8216;domain logons&#8217; is set<br />
# It specifies the location of the user&#8217;s profile directory<br />
# from the client point of view)<br />
# The following required a [profiles] share to be setup on the<br />
# samba server (see below)<br />
;   logon path = \\%N\profiles\%U<br />
# Another common choice is storing the profile in the user&#8217;s home directory<br />
;   logon path = \\%N\%U\profile</p>
<p style="padding-left: 30px;"># The following setting only takes effect if &#8216;domain logons&#8217; is set<br />
# It specifies the location of a user&#8217;s home directory (from the client<br />
# point of view)<br />
;   logon drive = H:<br />
;   logon home = \\%N\%U</p>
<p style="padding-left: 30px;"># The following setting only takes effect if &#8216;domain logons&#8217; is set<br />
# It specifies the script to run during logon. The script must be stored<br />
# in the [netlogon] share<br />
# NOTE: Must be store in &#8216;DOS&#8217; file format convention<br />
;   logon script = logon.cmd</p>
<p style="padding-left: 30px;"># This allows Unix users to be created on the domain controller via the SAMR<br />
# RPC pipe.  The example command creates a user account with a disabled Unix<br />
# password; please adapt to your needs<br />
; add user script = /usr/sbin/adduser &#8211;quiet &#8211;disabled-password &#8211;gecos &#8220;&#8221; %u</p>
<p style="padding-left: 30px;">########## Printing ##########</p>
<p style="padding-left: 30px;"># If you want to automatically load your printer list rather<br />
# than setting them up individually then you&#8217;ll need this<br />
;   load printers = yes</p>
<p style="padding-left: 30px;"># lpr(ng) printing. You may wish to override the location of the<br />
# printcap file<br />
;   printing = bsd<br />
;   printcap name = /etc/printcap</p>
<p style="padding-left: 30px;"># CUPS printing.  See also the cupsaddsmb(8) manpage in the<br />
# cupsys-client package.<br />
;   printing = cups<br />
;   printcap name = cups</p>
<p style="padding-left: 30px;">############ Misc ############</p>
<p style="padding-left: 30px;"># Using the following line enables you to customise your configuration<br />
# on a per machine basis. The %m gets replaced with the netbios name<br />
# of the machine that is connecting<br />
;   include = /home/samba/etc/smb.conf.%m</p>
<p style="padding-left: 30px;"># Most people will find that this option gives better performance.<br />
# See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/speed.html<br />
# for details<br />
# You may want to add the following on a Linux system:<br />
#         SO_RCVBUF=8192 SO_SNDBUF=8192</p>
<p style="padding-left: 30px;"># The following parameter is useful only if you have the linpopup package<br />
# installed. The samba maintainer and the linpopup maintainer are<br />
# working to ease installation and configuration of linpopup and samba.<br />
;   message command = /bin/sh -c &#8216;/usr/bin/linpopup &#8220;%f&#8221; &#8220;%m&#8221; %s; rm %s&#8217; &amp;</p>
<p style="padding-left: 30px;"># Domain Master specifies Samba to be the Domain Master Browser. If this<br />
# machine will be configured as a BDC (a secondary logon server), you<br />
# must set this to &#8216;no&#8217;; otherwise, the default behavior is recommended.<br />
;   domain master = auto</p>
<p style="padding-left: 30px;"># Some defaults for winbind (make sure you&#8217;re not using the ranges<br />
# for something else.)</p>
<p style="padding-left: 30px;"># The following was the default behaviour in sarge,<br />
# but samba upstream reverted the default because it might induce<br />
# performance issues in large organizations.<br />
# See Debian bug #368251 for some of the consequences of *not*<br />
# having this setting and smb.conf(5) for details.<br />
#  winbind seperator = +</p>
<p style="padding-left: 30px;">#Setup usershare options to enable non-root users to share folders<br />
# with the net usershare command.</p>
<p style="padding-left: 30px;"># Maximum number of usershare. 0 (default) means that usershare is disabled.<br />
;   usershare max shares = 100</p>
<p style="padding-left: 30px;"># Allow users who&#8217;ve been granted usershare privileges to create<br />
# public shares, not just authenticated ones</p>
<p style="padding-left: 30px;">#======================= Share Definitions =======================</p>
<p style="padding-left: 30px;"># Un-comment the following (and tweak the other settings below to suit)<br />
# to enable the default home directory shares.  This will share each<br />
# user&#8217;s home directory as \\server\username<br />
;[homes]<br />
;   comment = Home Directories<br />
;   browseable = no</p>
<p style="padding-left: 30px;"># By default, the home directories are exported read-only. Change the<br />
# next parameter to &#8216;no&#8217; if you want to be able to write to them.<br />
;   read only = yes</p>
<p style="padding-left: 30px;"># File creation mask is set to 0700 for security reasons. If you want to<br />
# create files with group=rw permissions, set next parameter to 0775.<br />
;   create mask = 0700</p>
<p style="padding-left: 30px;"># Directory creation mask is set to 0700 for security reasons. If you want to<br />
# create dirs. with group=rw permissions, set next parameter to 0775.<br />
;   directory mask = 0700</p>
<p style="padding-left: 30px;"># By default, \\server\username shares can be connected to by anyone<br />
# with access to the samba server.  Un-comment the following parameter<br />
# to make sure that only &#8220;username&#8221; can connect to \\server\username<br />
# This might need tweaking when using external authentication schemes<br />
;   valid users = %S</p>
<p style="padding-left: 30px;"># Un-comment the following and create the netlogon directory for Domain Logons<br />
# (you need to configure Samba to act as a domain controller too.)<br />
;[netlogon]<br />
;   comment = Network Logon Service<br />
;   path = /home/samba/netlogon<br />
;   guest ok = yes<br />
;   read only = yes<br />
;   share modes = no</p>
<p style="padding-left: 30px;"># Un-comment the following and create the profiles directory to store<br />
# users profiles (see the &#8220;logon path&#8221; option above)<br />
# (you need to configure Samba to act as a domain controller too.)<br />
# The path below should be writable by all users so that their<br />
# profile directory may be created the first time they log on<br />
;[profiles]<br />
;   comment = Users profiles<br />
;   path = /home/samba/profiles<br />
;   guest ok = no<br />
;   browseable = no<br />
;   create mask = 0600<br />
;   directory mask = 0700</p>
<p style="padding-left: 30px;">[printers]<br />
comment = All Printers<br />
browseable = no<br />
path = /var/spool/samba<br />
printable = yes<br />
guest ok = no<br />
read only = yes<br />
create mask = 0700</p>
<p style="padding-left: 30px;"># Windows clients look for this share name as a source of downloadable<br />
# printer drivers<br />
[print$]<br />
comment = Printer Drivers<br />
path = /var/lib/samba/printers<br />
browseable = yes<br />
read only = yes<br />
guest ok = no<br />
# Uncomment to allow remote administration of Windows print drivers.<br />
# Replace &#8216;ntadmin&#8217; with the name of the group your admin users are<br />
# members of.<br />
;   write list = root, @ntadmin</p>
<p style="padding-left: 30px;"># A sample share for sharing your CD-ROM with others.<br />
;[cdrom]<br />
;   comment = Samba server&#8217;s CD-ROM<br />
;   read only = yes<br />
;   locking = no<br />
;   path = /cdrom<br />
;   guest ok = yes</p>
<p style="padding-left: 30px;"># The next two parameters show how to auto-mount a CD-ROM when the<br />
#    cdrom share is accesed. For this to work /etc/fstab must contain<br />
#    an entry like this:<br />
#<br />
#       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0<br />
#<br />
# The CD-ROM gets unmounted automatically after the connection to the<br />
#<br />
# If you don&#8217;t want to use auto-mounting/unmounting make sure the CD<br />
#    is mounted on /cdrom<br />
#<br />
;   preexec = /bin/mount /cdrom<br />
;   postexec = /bin/umount /cdrom</p>
<p style="padding-left: 30px;">[shared]<br />
writeable = yes<br />
valid users = MIDKEMIA+ian,@MIDKEMIA+unixadm<br />
browsable = yes<br />
create mode = 777<br />
path = /shared</p>
<p style="padding-left: 30px;">[wwwroot]<br />
guest account = ian<br />
writeable = yes<br />
path = /var/www<br />
valid users = MIDKEMIA+administrator,@MIDKEMIA+unixadm<br />
create mode = 777<br />
browsable = yes</p>
<p style="padding-left: 30px;">[salearn]<br />
guest account = ian<br />
writeable = yes<br />
public = yes<br />
path = /etc/spamassassin/sa-learn</p>
<p>testparm</p>
<p>vi /etc/hosts<br />
add 10.x.x.3 sarig.midkemia.local sarig<br />
10.x.x.4 nakor.midkemia.local nakor</p>
<p>vi /etc/nsswitch.conf</p>
<p style="padding-left: 30px;"># /etc/nsswitch.conf<br />
#<br />
# Example configuration of GNU Name Service Switch functionality.<br />
# If you have the `glibc-doc-reference&#8217; and `info&#8217; packages installed, try:<br />
# `info libc &#8220;Name Service Switch&#8221;&#8216; for information about this file.</p>
<p style="padding-left: 30px;">passwd: files winbind<br />
shadow: files winbind<br />
group: files winbind</p>
<p style="padding-left: 30px;">#hosts: db files nisplus nis dns<br />
hosts: files dns wins</p>
<p style="padding-left: 30px;"># Example &#8211; obey only what nisplus tells us&#8230;<br />
#services: nisplus [NOTFOUND=return] files<br />
#networks: nisplus [NOTFOUND=return] files<br />
#protocols: nisplus [NOTFOUND=return] files<br />
#rpc: nisplus [NOTFOUND=return] files<br />
#ethers: nisplus [NOTFOUND=return] files<br />
#netmasks: nisplus [NOTFOUND=return] files</p>
<p style="padding-left: 30px;">bootparams: nisplus [NOTFOUND=return] files</p>
<p style="padding-left: 30px;">ethers: db files<br />
netmasks: files<br />
networks: files dns<br />
protocols: db files<br />
rpc: files<br />
services: files</p>
<p style="padding-left: 30px;">netgroup: files</p>
<p style="padding-left: 30px;">publickey: nisplus</p>
<p style="padding-left: 30px;">automount: files<br />
aliases: files nisplus</p>
<p>sudo net ads join -U administrator</p>
<p>install files for rlogin rsh-rod-server ssh</p>
<p>Next set up Apache webserver. Change www permissions and copy internal, external and squid-reports from old server to www<br />
Configure appropriate virtual servers</p>
<p>Next install Danguardian filtering.<br />
This requires squid proxy server installed.<br />
In webmin choose Squid Proxy Server in Un-Used Modules, it told me it was not installed and offered to download and install it for me. Sounds good and just worked.</p>
<p>Configuration, Access Control,<br />
Access Control Lists<br />
Create new ACL Client Address called lan, from IP 10.x.x.0 netmask 24<br />
Create new ACL Client Address called our_networks, from IP 10.x.x.0 netmask 24<br />
Proxy restrictions<br />
Add proxy restriction Allow our_networks and move above Allow localhost</p>
<p>Authentication Programs<br />
Number of authentication programs 5<br />
Authentication cache time 2 hours<br />
Authentication realm Squid proxy-caching web server</p>
<p>Install squid-cgi package</p>
<p>Download <a href="http://sourceforge.net/projects/dgwebminmodule/">Dansguardian Webmin</a> module<br />
Install Dansguardian package, this installs to a different location than the Webmin module expects, so edit module config:<br />
Full path to DG binary   /usr/sbin/dansguardian<br />
Command to restart DG (if allowed)  /usr/sbin/dansguardian -r<br />
Command to start DG (if allowed)  /usr/sbin/dansguardian<br />
Command to stop DG (if allowed)  pkill dansguardian</p>
<p>Hmm that&#8217;s it then. That was so much easier than when I first installed it.</p>
<p>Install sarg package<br />
Edit webmin module config for sarg<br />
Full path to SARG configuration file  /etc/sarg/sarg.conf</p>
<p>Install mailutils package</p>
<p>Finally install and configure SpamAssassin. I used the existing local.cf as a guideline.</p>
<p>The laptop ran fine for a few hours and then crashed. Hmm, that&#8217;s not a good start. On investigating it was very hot. After letting it all cool down, it worked again, so my thoughts were a ventilation problem. Then it re-occured, OK, there&#8217;s something else going on!<br />
It turns out the cooling fan isn&#8217;t running, so that was why it overheated. Google turned up <a href="http://dellfand.dinglisch.net/">dellfand</a>, which I downloaded and made following the site instructions. I set the fan low speed to 35C and fan high to 40C and set it to start on system start.</p>
<p>Update: This worked fine until the hot weather last week, when it overheated again. I have now changed the fan low to 30C and fan high to 35C and the system now is fairly stable at about 35C most of the time.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ijhedges.com/2011/05/01/proxy-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mythtv &#8211; Getting rid of the annoying blue line</title>
		<link>http://blog.ijhedges.com/2010/12/30/mythtv-getting-rid-of-the-annoying-blue-line/</link>
		<comments>http://blog.ijhedges.com/2010/12/30/mythtv-getting-rid-of-the-annoying-blue-line/#comments</comments>
		<pubDate>Thu, 30 Dec 2010 11:00:21 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Mythtv]]></category>

		<guid isPermaLink="false">http://blog.ijhedges.com/?p=510</guid>
		<description><![CDATA[When I first built the system, I had a problem with an annoying blue line above the picture during playback. I searched for the problem and found a command to change the colour of the line to black, xvattr -a XV_COLORKEY -v 0 I added this to one of the mythtv startup files, but during [...]]]></description>
			<content:encoded><![CDATA[<p>When I first built the system, I had a problem with an annoying blue line above the picture during playback.</p>
<p>I searched for the problem and found a command to change the colour of the line to black, <em>xvattr -a XV_COLORKEY -v 0</em></p>
<p>I added this to one of the mythtv startup files, but during one of the updates it got replaced. So we have been living with this annoying blue line for longer than we should have. I have been asked a few times to fix it and haven&#8217;t got around to it, oops sorry Jo.</p>
<p>Anyway, using the suggestion here <a href="http://www.mythtv.org/wiki/NVidiaProprietaryDriver">http://www.mythtv.org/wiki/NVidiaProprietaryDriver</a>, I have added it to the X11 configuration and now the problem has gone away again.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ijhedges.com/2010/12/30/mythtv-getting-rid-of-the-annoying-blue-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mythtv &#8211; Saving recordings to DVD</title>
		<link>http://blog.ijhedges.com/2010/12/30/mythtv-saving-recordings-to-dvd/</link>
		<comments>http://blog.ijhedges.com/2010/12/30/mythtv-saving-recordings-to-dvd/#comments</comments>
		<pubDate>Thu, 30 Dec 2010 09:42:52 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Mythtv]]></category>

		<guid isPermaLink="false">http://blog.ijhedges.com/?p=508</guid>
		<description><![CDATA[Mum was away over Christmas, so I recorded a couple of programs for her. This then provided the next challenge with Mythtv, how to get a recording onto a DVD in a playable format. Mythtv has an archive utility, so here&#8217;s what I did. On the main menu, select Optical Discs, Archive files. The first [...]]]></description>
			<content:encoded><![CDATA[<p>Mum was away over Christmas, so I recorded a couple of programs for her.</p>
<p>This then provided the next challenge with Mythtv, how to get a recording onto a DVD in a playable format. Mythtv has an archive utility, so here&#8217;s what I did.</p>
<p>On the main menu, select Optical Discs, Archive files. The first time I selected Create Archive &#8211; this isn&#8217;t the option I wanted, what this does is copy the recording to DVD, rather than create a playable DVD. Anyway, select Create DVD and then choose the type of media, I used DVD+/-RW and selected to burn to DVD and force overwrite DVD-RW.</p>
<p>Next you select the theme for the DVD menus, I used the first one, G.A.N.T. Animated.</p>
<p><span id="more-508"></span>Then you select the recording, file or videos that you want to burn to DVD. Select Add Rec and then when the list appears, go up to change from All Recordings to the individual groups, it makes it much easier to find the one you want. Highlight the one you want and press enter (space), then select OK, this takes you back to the screen showing the recording that you want to burn and how much space they will take. Press Next and the system will start to check the recording for any errors. This is where my first problem came:</p>
<p><em>Failed to run mythtranscode to fix any errors<br />
ERROR: Failed while running mytharchivehelper to get stream information from &#8220;/mnt/usb1/mythtv/2001_20101229195800.mpg&#8221;</em></p>
<p>After searching , I found the answer (<a href="http://ubuntuforums.org/showthread.php?t=610856">http://ubuntuforums.org/showthread.php?t=610856</a>) was to delete the .ICEauthority file in the user home directory. This allowed the software to progress past this stage. I need to find a better solution for this as the file is recreated every time you log on.</p>
<p>The next error I got was<span style="font-family: Verdana,Arial,Helvetica; color: black; font-size: x-small;"><span style="font-family: Verdana,Arial,Helvetica; color: black; font-size: x-small;"> &#8216;<em>IOError: Cannot open resource</em>&#8216;. Searching (</span></span><a href="http://www.gossamer-threads.com/lists/mythtv/users/463495">http://www.gossamer-threads.com/lists/mythtv/users/463495</a>) <span style="font-family: Verdana,Arial,Helvetica; color: black; font-size: x-small;"><span style="font-family: Verdana,Arial,Helvetica; color: black; font-size: x-small;">found that this was related to to location of a font file. I could have linked the file, but just copied it to the expected location.</span></span></p>
<p><span style="font-family: Verdana,Arial,Helvetica; color: black; font-size: x-small;"><span style="font-family: Verdana,Arial,Helvetica; color: black; font-size: x-small;">I thought I&#8217;d got there, as it proceeded for a long time, before giving me the next error, &#8216;</span></span><em>OSError: [Errno 1] Operation not permitted</em>&#8216;. This turned out to be case of removing the tick from the FIFO setting (<a href="http://mysettopbox.tv/phpBB2/viewtopic.php?t=17169&amp;sid=0dbdb1f878b278a481a2998c613cf107">http://mysettopbox.tv/phpBB2/viewtopic.php?t=17169&amp;sid=0dbdb1f878b278a481a2998c613cf107</a>)</p>
<p>It did fail to actually burn the DVD, <em>ERROR: Failed while running growisofs</em>, but it had created all the files, so I burnt them myself. The burning problem was either due to permissions or the disc not being blank ( I know, I selected to force overwrite), we&#8217;ll see what happens the next time.</p>
<p>Edit: OK, with a blank disc it was able to write the DVD, but then I got <img src='http://blog.ijhedges.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  unable to reload tray: No such file or directory. The DVD did burn and is playable. The error seems to be a bug (<a href="https://bugs.launchpad.net/ubuntu/+source/dvd+rw-tools/+bug/615382">https://bugs.launchpad.net/ubuntu/+source/dvd+rw-tools/+bug/615382</a>), but as it isn&#8217;t causing me a problem, I won&#8217;t worry about it for the moment.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ijhedges.com/2010/12/30/mythtv-saving-recordings-to-dvd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replacing my DVD recorder</title>
		<link>http://blog.ijhedges.com/2010/09/12/replacing-my-dvd-recorder/</link>
		<comments>http://blog.ijhedges.com/2010/09/12/replacing-my-dvd-recorder/#comments</comments>
		<pubDate>Sun, 12 Sep 2010 11:48:01 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Mythbuntu]]></category>
		<category><![CDATA[Mythtv]]></category>

		<guid isPermaLink="false">http://blog.ijhedges.com/?p=490</guid>
		<description><![CDATA[My DVD recorder that I have had for about 3 and a half years has been causing us a few problems when recording Freeview channels. We were getting breakthrough on the audio from the cable connection on the other Scart socket. This would get very distracting when watching a recording as there was this quiet, [...]]]></description>
			<content:encoded><![CDATA[<p>My DVD recorder that I have had for about 3 and a half years has been causing us a few problems when recording Freeview channels. We were getting breakthrough on the audio from the cable connection on the other Scart socket. This would get very distracting when watching a recording as there was this quiet, audible echo of another soundtrack.</p>
<p>A few months ago we picked up a usb TV tuner at Costco and that got me thinking about a PC based solution for the problem. About 9 years ago when we first attached a PC to our HiFi system, it was a very low specification and although we had a TV tuner card, the PC wasn&#8217;t powerful enough to record anything usable. As time went on, the PC has been replaced a few times and about 5 years ago we installed a piece of software called Meedio that we used to manage/play our video and audio files. There was also Meedio TV to record from TV, but we never explored it as the PC was still fairly low spec. At the time we chose Meedio, I had been aware of a Linux based program called <a href="http://www.mythtv.org/">Mythtv</a>, but due to the fact that the PC was low spec and I was more familiar with Windows, this was discounted.</p>
<p>Roll forward to this year and I explored the options again. This time Mythtv sounded worth investigating, so I downloaded a copy of <a href="http://mythbuntu.org/">Mythbuntu</a>, this is a Ubuntu Linux operating system bundled with Mythtv. I am currently using Ubuntu on a PC providing filtered internet access for the kids, so was more familiar with this than any other distribution. Using a 120GB disc in the old Dell desktop we replaced 18 months ago, I installed Mythbuntu and started trying it out. In the past few years Linux installations have become a breeze. My first installation was Slackware 2 back in 1995, and that was a command line experience that was challenging. Now, you just put the CD in and get lead through the install just like a Windows operating system installation. Anyway, after less than 30 minutes, I had the operating system installed, Mythtbuntu configured with my usb TV tuner and the first TV programs recording. I set the program guide to pick up from the cable guide and that gave me a few days available programming.</p>
<p><span id="more-490"></span>One of the first things I experimented with was changing the program guide to get its data from Radio Times using the xmltv program. I found <a href="http://www.mythtv.org/wiki/Uk_xmltv">configuration information for UK xmltv</a> on the Mythtv website to help with that. Once I got this working, I then had 14 days of program guide which gave a lot more flexibility in programming. At this point I was only able to record Freeview channels.</p>
<p>Having proved that the concept worked, I set about gathering the required parts. The existing PC attached to our HiFi was an old HP Evo small form factor which would enable me to install 2 PCI cards to provide the connections to cable and aerial. I selected a Hauppauge Nova-T 500 dual digital card to allow recording/viewing of 2 Freeview channels. To connect to the cable box, I needed an analogue tuner with composite input, so a Hauppauge PVR 150 card was selected. As usual, my thoughts turned to Ebay as the source for all of the parts and quickly acquired the needed cards. While contemplating the plan for how I would build the system while providing the minimum downtime for the existing functions for the HIFi PC, I concluded it was best to get a second Evo SFF PC and build the system in that and then swap once it was setup and working. I bought a used 160GB disc off ebay (not a good idea &#8211; more later) and started to assemble the new system. Needless to say this was only a week before we went on holiday, so it wasn&#8217;t going to be in full operation before we went.</p>
<p><span style="text-decoration: underline;">Hardware</span></p>
<ul>
<li>HP Evo SFF PC (2.53GB Processor, 1.2GB RAM, on-board sound and graphics)</li>
<li>Seagate 160GB IDE Hard drive</li>
<li>Hauppauge Nova-T 500 Dual DVB PCI tuner card</li>
<li>Hauppauge WinTv PVR-150 tuner card</li>
</ul>
<p>Initially, I installed the PVR 150 in the bottom PCI slot and the T 500 in the top PCI slot, however the system would only boot sometimes that way around, so I swapped them over.</p>
<p>I installed Mythbuntu from the CD using the <a href="http://mythbuntu.org/wiki/installation-guide">Mythbuntu installation guide</a> for help. The last step of Mythbuntu installation launches the Mythtv backup setup. This is where you configure the cards for recording and the locations for storing your files. Mythtv software is split into 2 halves; there is the backup that controls the cards and the recordings and the frontend that displays the recordings and is the user interface. As I intended to possibley attach multiple frontends to this backend, I set a static IP address for my network during the configuration. As I&#8217;m in the UK I selected PAL-I for TV format and left the channel frequency table at try-all. Local timezone was set to auto. All the other settings in the general section was left as default.</p>
<p>Next setting up the cards. The order that the cards are added to the system detirmines the priority of the card. It took me a few goes to get the cards working and then get them in the right order ( I have currently have cards 7,8 and 12). First add the first channel of the digital card:</p>
<ul>
<li>DVB DTV Capture card (v3.x)</li>
<li>/dev/dvb/adaptor0/frontend0</li>
</ul>
<p>finish. Then add the second channel</p>
<ul>
<li>DVB DTV Capture card (v3.x)</li>
<li>/dev/dvb/adaptor1/frontend0</li>
</ul>
<p>finish. Then add the analogue card:</p>
<ul>
<li>IVTV MPEG-2 encoder card</li>
<li>/dev/video0</li>
<li>Composite1</li>
</ul>
<p>finish. Once the cards are added, press Esc to return to the main menu.</p>
<p>Setting video sources. I created a source called Cable and another called Freeview. Both were initially set to use the transmitted guide only (EIT). Once the sources are added, press Esc to return to the main menu.</p>
<p>Setting input connections. This is where you connect the card to the source. For DVB adaptor0/frontend0 I selected Freeview as the source and selected scan for channels. This then scanned and populated the channel table with the Freeview channels. I set DVB adaptor1/frontend0 to Freeview as well, but didn&#8217;t re-scan for channels. MPEG /dev/video0 Composite1 was set to Cable source. I scanned for channels but shouldn&#8217;t have.</p>
<p>The storage directories can remain the defaults for the moment.</p>
<p>The backend is basically setup at the moment. Press Esc to exit the backend setup menu and allow mythfilldatabase to run.</p>
<p>Run the Mythtv Frontend and hopefully you will have some channels and be able to change between them.</p>
<p>The next thing I did was to configure the program guide to get its data from Radio Times. As mentioned above, I found the <a href="http://www.mythtv.org/wiki/Uk_xmltv">configuration information for UK xmltv</a> on the Mythtv website helped get this working. I went back into the Mytv backend setup and configured mythfilldatabase to run daily early in the morning. I found if I ran mythfilldatabase from the command line, it worked fine, however if Mythtv ran it then an error occured. It failed with error 512. I found the following on the unbuntu forums <a href="http://ubuntuforums.org/showthread.php?t=624517">http://ubuntuforums.org/showthread.php?t=624517</a> which gave the the answer. The configuration was setup in my account, but not for the mythtv account that was running the software. The solution that I chose was to link the configuration files in my account into the mythtv account</p>
<ul>
<li> cd /home/mythtv/.mythtv</li>
<li>sudo ln -s /home/ian/.mythtv/Cable.xmltv</li>
<li>sudo ln -s /home/ian/.mythtv/Freeview.xmltv</li>
</ul>
<p>Changing the permissions on my files so that mythtv could read and write to them resolved the mythfilldatabase error. There was another error when filling the database:<br />
XMLTV requires a Date::Manip timezone of +0000 to work properly.<br />
I found the answer to this bug here <a href="http://www.artificialworlds.net/freeguide/FAQ/DateManipError">http://www.artificialworlds.net/freeguide/FAQ/DateManipError</a> and following the instructions downloaded the Debian packages to resolve this problem. Finally to resolve a permissions problem with the cache file,  (~/.xmltv/cache) I changed permissions to write for other. At this point xmltv would download the guide information automatically from Radio Times every morning.</p>
<p>This was the state the system was left in when we went on holiday. It was scheduled to record all the Freeview programs we wanted while on holiday in parallel with the DVD recorder. When we came back it had performed perfectly, so it was time to swap it into full use.</p>
<p>That&#8217;s for another post.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ijhedges.com/2010/09/12/replacing-my-dvd-recorder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing the IP address of a HP Web JetAdmin installation</title>
		<link>http://blog.ijhedges.com/2009/06/29/changing-the-ip-address-of-a-hp-web-jetadmin-installation/</link>
		<comments>http://blog.ijhedges.com/2009/06/29/changing-the-ip-address-of-a-hp-web-jetadmin-installation/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 16:41:54 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[changing ip address]]></category>
		<category><![CDATA[web jetadmin]]></category>

		<guid isPermaLink="false">http://blog.ijhedges.com/?p=421</guid>
		<description><![CDATA[If you&#8217;re not an IT person supporting printers using HP Web JetAdmin software, tune out now. What, you&#8217;re still reading. I am surprised! OK, here is some background. HP Web JetAdmin is software that monitors network attached printers and provides alerts when certain conditions are met. For example, if the toner is low or there [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re not an IT person supporting printers using HP Web JetAdmin software, tune out now.</p>
<p>What, you&#8217;re still reading. I am surprised!</p>
<p>OK, here is some background. HP Web JetAdmin is software that monitors network attached printers and provides alerts when certain conditions are met. For example, if the toner is low or there is a paper jam, it can alert you, allowing you to be proactive with support. It means that you can purchase toners when alerted rather than holding a large stock or being caught on the hop when all the colour printers are out and no-one has mentioned it until 5 minutes before a critical print job.</p>
<p>Anyway, we had been using this software for some years at work without any problems. You would just get the alert email with a summary of the issue and a link allowing you to open the admin interface in a web browser. Recently, we had some major network changes which resulted in the IP addresses being changed for all our network devices (including computers and printers). After the changes, and rediscovering the new printers (some of their details changed as well), the Web JetAdmin software continued to work as before. Unfortunately, this also included the link to open the admin interface. It was still using the old IP address which was no longer valid.</p>
<p>After &#8216;googling&#8217; for the solution without luck, I tried several approaches, some of which got me into a bit of a mess with the database. In the end I got the software re-installed, only to find it was still hooked into the old database and the old information.</p>
<p><span id="more-421"></span>To cut to the chase, the solution is really simple. In the c:\Program Files\Hewlett-Packard\HP Web Jetadmin 10\WJABackupRestore folder run the backup script to produce a backup set. I had to modify the location of &#8216;set OSQL&#8217; in the script due to a non-standard installation.</p>
<p>Once you have the backup, open the file<span> &#8216;HP.Imaging.Wjp.Core.WebServer.config.xml</span>&#8216; in the Settings\WjaService\config folder and modify the IP address to the new address.</p>
<p>e.g.<br />
&lt;property name=&#8221;HostIPv4Address&#8221;&gt;<br />
&lt;type&gt;HP.Imaging.Wjp.Sdk.Core.Framework.ConfigurationItemString&lt;/type&gt;<br />
&lt;value&gt;<strong>192.168.50.125</strong>&lt;/value&gt;<br />
&lt;/property&gt;</p>
<p>Run the restore script and allow it to overwrite the existing database. I also had to modify the location of &#8216;set OSQL&#8217; in this script due to my non-standard installation.</p>
<p>Your emails will now contain the correct link to launch the admin interface.</p>
<p>Hopefully this will save someone a lot of time.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ijhedges.com/2009/06/29/changing-the-ip-address-of-a-hp-web-jetadmin-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Going Mobile</title>
		<link>http://blog.ijhedges.com/2008/11/22/going-mobile/</link>
		<comments>http://blog.ijhedges.com/2008/11/22/going-mobile/#comments</comments>
		<pubDate>Sat, 22 Nov 2008 16:37:02 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Blog-design]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[alex king]]></category>
		<category><![CDATA[FireStats]]></category>
		<category><![CDATA[twitter tools]]></category>
		<category><![CDATA[wordpress mobile edition]]></category>
		<category><![CDATA[wordpress plugins]]></category>

		<guid isPermaLink="false">http://blog.ijhedges.com/?p=384</guid>
		<description><![CDATA[A while back, when I got my new work mobile, I checked out my blog using the WAP browser. The blog was visible, but as it was faithfully reproduced, it meant that I had to scroll all over the place to see it. This was obviously not the best approach for mobile users. I&#8217;ve had [...]]]></description>
			<content:encoded><![CDATA[<p>A while back, when I got my new work mobile, I checked out my blog using the WAP browser. The blog was visible, but as it was faithfully reproduced, it meant that I had to scroll all over the place to see it. This was obviously not the best approach for mobile users.</p>
<p>I&#8217;ve had a look around at WordPress plugins and tried out two, <a href="http://alexking.org/projects/wordpress">WordPress Mobile Edition</a> by Alex King and <a href="http://wordpressmobile.mobi/">WordPress Mobile</a> by Andy Moore. I used the <a href="http://demo.opera-mini.net/">demo of Opera Mini</a> to assist me in my testing.</p>
<p><span id="more-384"></span><br />
<strong>WordPress Mobile</strong><br />
<img class="picture_float_left" title="Wordpress Mobile - Home page" src="http://gallery.ijhedges.com/gallery/d/4871-1/wp_mobile.jpg" border="0" alt="Wordpress Mobile - Home page" width="150" /><img class="picture_float_left" title="Wordpress Mobile - bottom of Home page" src="http://gallery.ijhedges.com/gallery/d/4873-1/wp_mobile1.jpg" border="0" alt="Wordpress Mobile - bottom of Home page" width="150" /><img title="Wordpress Mobile - post" src="http://gallery.ijhedges.com/gallery/d/4875-1/wp_mobile2.jpg" border="0" alt="Wordpress Mobile - post" width="150" /></p>
<p>The installation was a straight forward copy the file to the wordpress plugin folder and activate the plugin. Then under settings you can adjust some of the options including the predefined colour schemes. I chose blue to match with the general theme of my sites. The plugin has the functionality to add Admob Mobile Advertising and Google AdSense for Mobile adverts to the top and bottom of the pages, or at least it would have if the functions needed to make this work were enabled on my hosting.</p>
<p>It provided a clean rendering of the content of my site, by eliminating the sidebar contents and theme images. I did have problems with some errors at the top of the post pages:</p>
<p style="padding-left: 30px;"><strong>Warning</strong>: imagesx(): supplied argument is not a valid Image resource in <strong>/homepages/&#8230;./wp-content/plugins/wordpress-mobile.php</strong> on line <strong>1869</strong></p>
<p style="padding-left: 30px;"><strong>Warning</strong>: imagesy(): supplied argument is not a valid Image resource in <strong>/homepages/&#8230;./wp-content/plugins/wordpress-mobile.php</strong> on line <strong>1870</strong></p>
<p style="padding-left: 30px;"><strong>Warning</strong>: cannot modify header information &#8211; headers already sent by (output started at /homepages/&#8230;./wp-content/plugins/wordpress-mobile.php:1869) in <strong>/homepages/&#8230;./wp-content/plugins/wordpress-mobile.php</strong> on line <strong>606</strong></p>
<p>If you ignored the errors, the rest of the page loaded fine. Any comments on posts were shown on a separate link.</p>
<p><strong>WordPress Mobile Edition</strong><br />
<img class="picture_float_left" title="WordPress Mobile Edition - Home page" src="http://gallery.ijhedges.com/gallery/d/4877-1/wp_mobile_edition.jpg" border="0" alt="WordPress Mobile Edition - Home page" width="150" /><img class="picture_float_left" title="WordPress Mobile Edition - bottom of Home page" src="http://gallery.ijhedges.com/gallery/d/4879-1/wp_mobile_edition1.jpg" border="0" alt="WordPress Mobile Edition - bottom of Home page" width="150" /><img title="WordPress Mobile Edition - post" src="http://gallery.ijhedges.com/gallery/d/4881-1/wp_mobile_edition2.jpg" border="0" alt="WordPress Mobile Edition - post" width="150" /></p>
<p>The installation caught me out, I should have read the readme file. You have to copy the file to the wordpress plugin folder and the wp-mobile folder to the themes folder, then activate the plugin. There are no settings to adjust, it just works.</p>
<p>Again, it also produce a clean, uncluttered version of my site by eliminating the same things. One thing I did like was that it included the comments to post on the same page and also displayed the Firestats extras (country, operating system and browser images) with the comment.</p>
<p>While I&#8217;m sure the issue with the errors on the post pages could have been resolved in the WordPress Mobile plugin, I don&#8217;t think it offered anything to me over the WordPress Mobile Edition one from Alex King. While checking out <a href="http://alexking.org/">Alex King</a>&#8216;s site, I realised I was already using another of his plugins, <a href="http://alexking.org/projects/wordpress">Twitter Tools</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ijhedges.com/2008/11/22/going-mobile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 2.6 and Firestats</title>
		<link>http://blog.ijhedges.com/2008/07/20/wordpress-26-and-firestats/</link>
		<comments>http://blog.ijhedges.com/2008/07/20/wordpress-26-and-firestats/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 08:15:41 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[FireStats]]></category>
		<category><![CDATA[Wordpress 2.6]]></category>

		<guid isPermaLink="false">http://blog.ijhedges.com/?p=325</guid>
		<description><![CDATA[WordPress 2.6 was released late last week, so I updated my test blog to check that everything worked before updating my live blogs. The upgrade was straight forward and all my plugins activated without any apparent issue. However, when I checked my stats, the page wouldn&#8217;t load any details, just a blank page. I have [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress 2.6 was released late last week, so I updated my test blog to check that everything worked before updating my live blogs.</p>
<p>The upgrade was straight forward and all my plugins activated without any apparent issue. However, when I checked my stats, the page wouldn&#8217;t load any details, just a blank page. I have used <a href="http://firestats.cc/">FireStats</a> since migrating to WordPress and had got used to the results it gives, so I headed over to the FireStats site to see if there was an upgrade. I found version 1.5.12 and so downloaded and installed it. To be on the safe side, I installed to a new database so that I didn&#8217;t have to upgrade my existing stats database. This didn&#8217;t resolve my blank stats page issue and gave me some messages about features needing a higher version of MySQL than my host 1and1 provides, so I uninstalled it and reinstalled my previous version 1.4.4.</p>
<p><span id="more-325"></span>I then tried turning all my plugins off, and brilliant, Firestats worked! I then started turning plugins back on and came to the conclusion that it worked fine with all except if <a href="http://www.askapache.com/htaccess/htaccess-security-block-spam-hackers.html">AskApache Password Protect</a> or <a href="http://www.ilfilosofo.com/blog/wp-db-backup">WordPress Database Backup</a> plugins were activated. Not so good, these were important plugins to me.</p>
<p>I looked at some alternate stats packages, but they weren&#8217;t FireStats, so yesterday morning I raised a ticket with the bug I had found on the FireStats site. Within minutes I&#8217;d had a reply from the developer, Omry Yadan, who suggested that it sounded like a memory issue and pointed me to a wiki entry about this and how to resolve it. After some more testing when I confirmed that Firestats, AskApache Password Protect and WordPress Database Backup would work together, I just couldn&#8217;t have all my plugins working and get to the admin/stats pages of FireStats, I had to agree with Omry. I tried increasing the memory limit using .htaccess as described in the wiki, but this caused a server 500 internal error, so that wasn&#8217;t an option. I then created a php.ini file with the memory limit statement in it and uploaded to the root of my test domain. According to phpinfo() this did increase the memory limit setting, however it didn&#8217;t resolve it.</p>
<p>I was unable to get to the server error logs, as 1and1 don&#8217;t allow access on shared hosting. Firestats tools showed that I had a memory limit of 40MB set even though I thought I had set higher in testing, so it didn&#8217;t look as if my settings were having any impact. I used the 1and1 code for creating my own error log to try to gather the error message when I was having the problem, and although I did get some logging, it wasn&#8217;t occuring when I was having the problem. The logging I did get was the same whether or not FireStats was allowing me access to the admin/stats pages (turning off other plugins to get access).</p>
<p>This needed a different approach to work around the problem. Even though I was unable to access the admin/stats pages on my test blog, the page views and hits were being logged correctly into the database. I have all my blogs set to use the same database tables for FireStats with different ids for each source, this means that from any Firestats interface I can view all statistics anyway. So I have installed a standalone copy of FireStats pointing to the same database and am able to view my stats from there.</p>
<p>The way I had worked until that point was a full install of FireStats in each WordPress blog, which I then configured to use the same database tables. This meant that each time I upgraded FireStats, I had to upload it seperately to each blog. The one downside of Firestats is its size, 3MB, so that&#8217;s a lot of upload time for multiple blogs. In a follow up email conversation with Omry, he suggested I install in satellite mode. This involves an install of Firestats seperate from WordPress (just done that -check), then instead of a full install of FireStats for each blog, it just needs 1 file in the plugins folder. This is configured in options to point to the standalone install and it just works. Any updates in the future only have to performed on the standalone copy and the new file put in plugins for your blogs. Brilliant.</p>
<p>I was very impressed by the support that Omry gave and will be following his advice to upgrade to version 1.5, which will be much easier now there is only one upload to do.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ijhedges.com/2008/07/20/wordpress-26-and-firestats/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Firefox 3 Download Day</title>
		<link>http://blog.ijhedges.com/2008/06/13/firefox-3-download-day/</link>
		<comments>http://blog.ijhedges.com/2008/06/13/firefox-3-download-day/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 21:17:05 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[firefox 3]]></category>
		<category><![CDATA[world record attempt]]></category>

		<guid isPermaLink="false">http://blog.ijhedges.com/?p=317</guid>
		<description><![CDATA[I have been using Firefox as my browser of choice for about 2.5 years now, starting with Firefox 1.5. I liked the tabbed feature of Firefox, which wasn&#8217;t available in Internet Explorer at the time. Then I discovered the add-ons for Firefox and it just kept getting better. A couple of the add-ons I have [...]]]></description>
			<content:encoded><![CDATA[<p><img class="picture_float_left" title="firefox-logo" src="http://blog.ijhedges.com/wp-content/uploads/2008/06/firefox-logo.png" border="0" alt="firefox-logo" width="192" /><br />
I have been using Firefox as my browser of choice for about 2.5 years now, starting with Firefox 1.5. I liked the tabbed feature of Firefox, which wasn&#8217;t available in Internet Explorer at the time. Then I discovered the add-ons for Firefox and it just kept getting better.</p>
<p>A couple of the add-ons I have been using are NoScript and IE Tab. NoScript is great as it prevent scripts running on a site unless you choose to allow them, this means that in cases of an advert laden webpage, most of them will not work unless you want them to. IE Tab is ideal for those sites that just will not work properly unless you are using Internet Explorer.</p>
<p><span id="more-317"></span>I have got so used to using Firefox, that it&#8217;s frustrating at work, where we still use IE6, when I use the keyboard shortcut to open a new tab.</p>
<p>Anyway, this post is about the release on Tuesday 17th June of Firefox 3. There is an attempt to set a world record for most software downloads in 24 hours. I have tried a couple of the beta versions of Firefox 3 and found it to be stable and fast, so I will be downloading the release version on Tuesday.</p>
<p><a href="http://www.spreadfirefox.com/node&amp;id=0&amp;t=271"><img title="Download Day - English" src="http://www.spreadfirefox.com/files/images/affiliates_banners/180x150_02c_en.png" border="0" alt="Download Day - English" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ijhedges.com/2008/06/13/firefox-3-download-day/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Trillian reconnection problem</title>
		<link>http://blog.ijhedges.com/2007/09/10/trillian-reconnection-problem/</link>
		<comments>http://blog.ijhedges.com/2007/09/10/trillian-reconnection-problem/#comments</comments>
		<pubDate>Mon, 10 Sep 2007 21:30:37 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://newblog.ijhedges.com/?p=253</guid>
		<description><![CDATA[I use Trillian as my instant messaging client. It allows me to be signed in with both Yahoo and Microsoft messaging without having to have two clients running. A problem I had been having with it was after waking my laptop from hibernation, the Microsoft connection would fail to reconnect. Yahoo would reconnect without problem, [...]]]></description>
			<content:encoded><![CDATA[<p>I use Trillian as my instant messaging client. It allows me to be signed in with both Yahoo and Microsoft messaging without having to have two clients running.</p>
<p>A problem I had been having with it was after waking my laptop from hibernation, the Microsoft connection would fail to reconnect. Yahoo would reconnect without problem, but Microsoft would keep trying for about 10 minutes before finally failing. If I did a Global Disconnect before hibernating and then a Global Reconnect after waking it up, then everything worked fine.</p>
<p>Well it worked fine providing I remembered to reconnect after waking up. This didn&#8217;t always happen, as my post a few days ago about my <a href="http://blog.ijhedges.com/archives/2007/09/entry_419.php">unexpected Plugoo message</a> shows.</p>
<p><span id="more-253"></span>Looking at the logs for the MSN connection shows:</p>
<p>[20:46] *** Lost connection to network (Error Code: 10054).<br />
[20:46] *** Reconnecting to MSN as &#8220;*****@********.com&#8221;<br />
[20:46] *** Will attempt 10 connections with 60 second intervals.<br />
[20:46] *** Failure resolving &#8220;messenger.hotmail.com&#8221;! Attempting to connect to a known server&#8230;<br />
[20:46] *** Connecting to MSN as &#8220;*****@********.com&#8221;, attempt 1.<br />
[20:46] *** Error while connecting (Error Code: 0). Disconnecting.<br />
[20:48] *** Connecting to MSN as &#8220;*****@********.com&#8221;, attempt 2.<br />
[20:48] *** Error while connecting (Error Code: 0). Disconnecting.<br />
[20:49] *** Connecting to MSN as &#8220;*****@********.com&#8221;, attempt 3.<br />
[20:49] *** Error while connecting (Error Code: 0). Disconnecting.<br />
[20:50] *** Connecting to MSN as &#8220;*****@********.com&#8221;, attempt 4.<br />
[20:51] *** Error while connecting (Error Code: 0). Disconnecting.</p>
<p>It appears that as the system comes out of hibernation, Trillian attempts to do a DNS lookup for messenger.hotmail.com. As the network connection hasn&#8217;t been re-established, the lookup fails and then it tries to connect to MSN using a different address. It never tries the lookup again and fails to get a response on the address it uses.</p>
<p>Checking the ip address for messenger.hotmail.com</p>
<p>nslookup messenger.hotmail.com<br />
Server: xxxx.xxxxxxx.xxxxxx<br />
Address: 192.168.1.3<br />
Non-authoritative answer:<br />
Name: dp.msnmessenger.akadns.net<br />
Address: 65.54.239.20<br />
Aliases: messenger.hotmail.com</p>
<p>This gave me the IP address 65.54.239.20 for messenger.hotmail.com</p>
<p>I then changed the entry for the MSN host in Trillian. In Trillian preferences, select Identities and Connections, select your Microsoft connection and press Change.</p>
<p><img title="Trillian Identities and Connections" src="http://gallery.ijhedges.com/gallery/d/940-2/trillian.jpg" border="0" alt="Trillian Identities and Connections" width="100%" /></p>
<p>On the connection tab, I changed the host entry from messenger.hotmail.com to 65.54.239.20.</p>
<p><img title="Trillian MSN Connection" src="http://gallery.ijhedges.com/gallery/d/942-2/trillian1.jpg" border="0" alt="Trillian MSN Connection" /></p>
<p>Since making this change, Trillian reconnects the Microsoft connection within a minute automatically after waking from hibernation.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ijhedges.com/2007/09/10/trillian-reconnection-problem/feed/</wfw:commentRss>
		<slash:comments>36</slash:comments>
		</item>
		<item>
		<title>I must practice what I preach</title>
		<link>http://blog.ijhedges.com/2007/08/19/i-must-practice-what-i-preach/</link>
		<comments>http://blog.ijhedges.com/2007/08/19/i-must-practice-what-i-preach/#comments</comments>
		<pubDate>Sun, 19 Aug 2007 08:05:04 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[anti virus]]></category>
		<category><![CDATA[antivirus]]></category>
		<category><![CDATA[software updates]]></category>

		<guid isPermaLink="false">http://newblog.ijhedges.com/?p=233</guid>
		<description><![CDATA[Back in April I posted &#8216;How often do you update your software?&#8216; when I talked checking the versions of installed software other than just Windows and AntiVirus. Anyway, yesterday, being totally certain that I was up to date, I ran the Secunia website Software Inspector on our desktop and was surprised to find a few [...]]]></description>
			<content:encoded><![CDATA[<p>Back in April I posted &#8216;<a href="http://blog.ijhedges.com/archives/2007/04/entry_194.php">How often do you update your software?</a>&#8216; when I talked checking the versions of installed software other than just Windows and AntiVirus.</p>
<p>Anyway, yesterday, being totally certain that I was up to date, I ran the Secunia website <a href="http://secunia.com/software_inspector/">Software Inspector</a> on our desktop and was surprised to find a few software applications showing as out of date. Adobe Flash player was a version behind and the previous version of SunJava was still installed despite the current version being installed. I have had this before with SunJava, as it doesn&#8217;t uninstall the old version when upgrading, so I should have remembered. The software inspector explains this and details how to resolve it (remove old versions from Add or Remove Programs).</p>
<p>My AntiVirus software, <a href="http://www.avast.com/eng/download-avast-home.html">Avast</a>, checks for updates every 4 hours and is set to audibly announce the updates. After a while you get used to the &#8216;Virus database has been updated&#8217; message and I personally won&#8217;t turn it off. If you do not have current antivirus software or your existing software subscription is expiring, I would thoroughly recommend Avast, it is free for home use and the virus signatures are regularly updated, often a couple of times a day.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ijhedges.com/2007/08/19/i-must-practice-what-i-preach/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

