Re: Changes to CLUG internet domains.

2009-08-10 Thread Robert Fisher
On Tue, 11 Aug 2009 12:05:25 Ross Drummond wrote:

> An approach was made to Discount Domains asking them if they were prepared
> to sponsor this registration. I am pleased to inform you that they have
> generously agreed to this sponsorship.

Well done.


Re: Bash prompt

2009-08-10 Thread Craig Falconer

Douglas Royds wrote, On 11/08/09 14:18:

Jim Cheetham wrote:
On Tue, Aug 11, 2009 at 11:44 AM, Douglas 
Royds wrote:
 

Limit the length of the displayed path in the Bash prompt.
...
 1. Trim the path to the last 30 characters, and cut off a partial
leading directory name
 2. Just display the last three directory names in the path



3. export PS1='$ '



Purist.


Nah - he's just saving the ribbon in his teletype.
Up down over up down anyone?


--
Craig Falconer



Re: Bash prompt

2009-08-10 Thread Douglas Royds

Jim Cheetham wrote:

On Tue, Aug 11, 2009 at 11:44 AM, Douglas Royds wrote:
  

Limit the length of the displayed path in the Bash prompt.
...
 1. Trim the path to the last 30 characters, and cut off a partial
leading directory name
 2. Just display the last three directory names in the path



3. export PS1='$ '
  


Purist.




===
This email, including any attachments, is only for the intended
addressee.  It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
===



Re: ubuntu 9.04 on notebook: display not quite right?

2009-08-10 Thread Craig Falconer

Bryce Stenberg wrote, On 11/08/09 12:54:

-Original Message-
From: Craig Falconer [mailto:cfalco...@totalteam.co.nz]
My suspicion is maybe your video ram is going slowly sour, or perhaps
the display is dying.

There is nothing wrong with the display when booted to windows xp, only
issues are under Ubuntu.

Does the problem exist if you use an external monitor?   I think this
needs a silly wee VGA dongle - hope you still have it!

Finally found dongle - the problem is exhibited on external monitor as
well.



Well that says its not display hardware (the physical screen)
Since its not happening in windows it must be software and software config.

It sounds like its powersaving which is causing the problem.
Is there a difference in the video between screen blanking and suspend?
What graphics card/chipset is in the machine?

A final test - can you get knoppix or puppy linux onto a pen drive and 
boot that?  Will have a completely different X config.


Easy answer is you give me your toughbook 

Nice try :)

It'd look awesome in the landy :)))  (they are waterproof right?)
eee PCs are damn nice - specially the 10" version which doesn't have 
quite such a small keyboard as the 7" and 9".




I was trying various things today to see if it was overheating related
(running it at 100%cpu for a couple of hours) and I noticed the problem
appears if the screen gets blanked from inactivity - when reactivated
the icons seem to have problems. I tried to turn off blanking of display
in power management but it still blanks after some time - but that is
not a solution anyway, as the screen being able to be blanked is good on
a notebook.
Any other suggestions welcome.


Biff this into /etc/rc.local - it will disable console blanking completely.

setterm -powersave off
setterm -blank 0 -powerdown 0

You'll also need to do the same for X somehow.  This is really only a 
patch answer.



--
Craig Falconer



RE: ubuntu 9.04 on notebook: display not quite right?

2009-08-10 Thread Bryce Stenberg
>-Original Message-
>From: Craig Falconer [mailto:cfalco...@totalteam.co.nz]
>Sent: Friday, 7 August 2009 6:10 p.m.
>
>My suspicion is maybe your video ram is going slowly sour, or perhaps
>the display is dying.
>
There is nothing wrong with the display when booted to windows xp, only
issues are under Ubuntu.

>Does the problem exist if you use an external monitor?   I think this
>needs a silly wee VGA dongle - hope you still have it!
>
Finally found dongle - the problem is exhibited on external monitor as
well.

>
>Easy answer is you give me your toughbook 
>
Nice try :)  - even though it's a bit gutless it just keeps on going,
and it has been dropped from table height a number of times (thanks to
small humans and dogs and dangling cables). Besides which it belongs to
my employer, not me...


I was trying various things today to see if it was overheating related
(running it at 100%cpu for a couple of hours) and I noticed the problem
appears if the screen gets blanked from inactivity - when reactivated
the icons seem to have problems. I tried to turn off blanking of display
in power management but it still blanks after some time - but that is
not a solution anyway, as the screen being able to be blanked is good on
a notebook.

Any other suggestions welcome.

Regards,
 Bryce Stenberg.



DISCLAIMER: If you have received this email in error, please notify us 
immediately by reply email, facsimile or collect telephone call to +64 3 
9641200 and destroy the original.  Please refer to full DISCLAIMER at 
http://www.hrnz.co.nz/eDisclaimer.htm







RE: ubuntu 9.04 on notebook: display not quite right?

2009-08-10 Thread Bryce Stenberg
>-Original Message-
>From: Phill Coxon [mailto:phi...@xtra.co.nz]
>Sent: Sunday, 9 August 2009 7:23 p.m.
>
>If the display starts off ok and gets worse over time getting
>increasingly "blobby" it might possibly be an over-heating problem.
>
>If it's an older notebook check the fan vents on the side / back of the
>notebook and make sure they're not clogged up with dust.  It might be
>worth opening up the case and cleaning out any clogged up fans and dust
>bunnies etc.
>

Thanks Phill, unfortunately this notebook's cooling is entirely passive
and none of the vent holes in the bottom have any blockage (no fans
sucking the dust in probably helps), it feels like a lot of heat is
dissipated directly through the casing which is a magnesium alloy of
some sort.

Regards, Bryce.




DISCLAIMER: If you have received this email in error, please notify us 
immediately by reply email, facsimile or collect telephone call to +64 3 
9641200 and destroy the original.  Please refer to full DISCLAIMER at 
http://www.hrnz.co.nz/eDisclaimer.htm







Re: Bash prompt

2009-08-10 Thread Jim Cheetham
On Tue, Aug 11, 2009 at 11:44 AM, Douglas Royds wrote:
> Limit the length of the displayed path in the Bash prompt.
> ...
>  1. Trim the path to the last 30 characters, and cut off a partial
>     leading directory name
>  2. Just display the last three directory names in the path

3. export PS1='$ '


Changes to CLUG internet domains.

2009-08-10 Thread Ross Drummond
The current domains registered to CLUG are to expire shortly

In consultation with Nick Rout I have made the following changes;

The registration for the domain clug.net.nz will be allowed to expire.

The registration for the domain clug.org.nz has been renewed.

The Domain Name Registrar for clug.org.nz has been transferred to Discount 
Domains.

The contact persons published for this domain has been changed to include
myself.

An approach was made to Discount Domains asking them if they were prepared to 
sponsor this registration. I am pleased to inform you that they have 
generously agreed to this sponsorship.

Discount Domains[1] are a domain name registrar located in Christchurch who 
provide an easy to use on line interface for the registration of domains. 
Domains offered are sub-domains of the dot nz domain and com org net info top 
level domains.

An associated company Digiweb[2] provides web hosting and email management 
solutions from premises located in Christchurch.

I am indebted to Brenden McNeill of Discount Domains for his personal 
assistance in this matter.

Subscribers to this list contemplating using the services provided by Discount 
Domains or Digiweb are requested to give them their favourable consideration.

Cheers Ross Drummond

[1] http://www.discountdomains.co.nz

[2] http://www.digiweb.co.nz



Bash prompt

2009-08-10 Thread Douglas Royds
Limit the length of the displayed path in the Bash prompt. Loosely based 
on the ideas at:


   http://www.faqs.org/docs/Linux-HOWTO/Bash-Prompt-HOWTO.html#AEN768

Two mechanisms are presented (one of them is commented out):

  1. Trim the path to the last 30 characters, and cut off a partial
 leading directory name
  2. Just display the last three directory names in the path

Put the following in your .bashrc:


# Replace the \w in the default Ubuntu prompt with $newPWD
if [ "$color_prompt" = yes ]; then
   
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\...@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ 
'
   
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\...@\h\[\033[00m\]:\[\033[01;34m\]$newPWD\[\033[00m\]\$ 
'

else
   #PS1='${debian_chroot:+($debian_chroot)}...@\h:\w\$ '
   PS1='${debian_chroot:+($debian_chroot)}...@\h:$newPWD\$ '
fi

function prompt_command {
  local trunc_string="..."
  newPWD="${PWD/$HOME/~}"

  # Remove leading directories beyond a certain length
  # Strip any partial directory names
  local pwdmaxlen=30
  if [ ${#newPWD} -gt $pwdmaxlen ]; then
 local pwdoffset=$(( ${#newPWD} - $pwdmaxlen ))
 newPWD="${newPWD:$pwdoffset:$pwdmaxlen}"
 newPWD="${trunc_string}/${newPWD#*/}"
  fi

  ## Remove leading directories, leaving a maximum of three
  #remove_dirs="${newPWD%/*/*/*}"
  #if [[ ${remove_dirs} != $newPWD ]]; then
  #   newPWD=${trunc_string}${newPWD/$remove_dirs\//}
  #fi

  # If this is an xterm set the title to u...@host:dir
  case "$TERM" in
  xterm*|rxvt*)
 echo -ne "\033]0;${us...@${hostname}: ${PWD/$HOME/~}\007"
 ;;
  *)
 ;;
  esac
}
export PROMPT_COMMAND=prompt_command


Douglas.






===
This email, including any attachments, is only for the intended
addressee.  It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
===