Re: Can someone tell me why...

2009-08-24 Thread Rex Johnston

Daniel Hill wrote:


http://alsa.opensrc.org/index.php/Jack_(plugin)


Ooh, i can has cheezburger?

Thanks Daniel, i'll give it a whorl.

Cheers, Rex


Re: Can someone tell me why...

2009-08-23 Thread Rex Johnston

On Mon, 24 Aug 2009, Kerry Mayes wrote:


As a gnome user, I just use exaile.  Probably doesn't meet Rex'
exacting demands but it plays all the formats I want and includes


My exacting standards are

1) doesn't crash, or if it only infrequently does, reloads its playlist 
near where it was.

2) Proper jack output (no new jack source at the end of each song).

That's it, qjackctl and jack-rack take care of the rest (they too are 
unreliable, qjackctl moreso).


Cheers, Rex


Re: Can someone tell me why...

2009-08-22 Thread Rex Johnston

Nick Rout wrote:


Thats been coming for a long long time.


Doesn't make it any better.  xmms was a great piece of software.


In what way does audacious suck?


It's unreliable (crashes and doesn't reload playlist) and when using a 
jack source as its output, it randomly decides to create another 
instance when the song changes, so i'm replumbing jack all the time.


Those are the main suck points.

No, i can't use alsa or pulse or any of the other outputs, my open 
baffle desktop speakers need shelving EQ, for which i'm using jack-rack.

Yeah, OK, i'm an unreformed ex-audio geek.

Rex



Re: Can someone tell me why...

2009-08-22 Thread Rex Johnston

Daniel Hill wrote:


Like how Amarok 2 sucks compared to Amarok 1.4?


If you say so.  I haven't liked amarok whenever i've fired it up.


have you tried all the xmms2 front ends?


Yes, all very underbaked.  Maybe there are more now, or the ones i've 
tried have had more work.


If i had time i'd volunteer to maintain xmms.  Oh well.

Cheers, Rex


Re: Resolving domain name to different IP based on port?

2009-08-21 Thread Rex Johnston

Phill Coxon wrote:


If I visit examplesite.com (standard port 80) I'll go to the live
interent site. 


But if I visit examplesite.com:81 I'll be redirected to the local
development virtual site running on my local computer. 


Probably can't be done but thought I'd ask and see what suggestions you
guys can come up with. 


Hey!  this is *nix you are talking about.  Of course it can be done.

You'll be wanting to read the '-R' section of the ssh man page.
Something along the lines of (as root)

ssh -R 81:127.0.0.1:80 examplesite.com

Oh and that other problem you were having with too many open 
conenctions..  sshfs.


Cheers Mate.

Rex


Can someone tell me why...

2009-08-21 Thread Rex Johnston
xmms went away and it's replacement, audacious, sux soo much it isn't 
funny.  xmms2 is a music server, and nothing like xmms.


Rex


Re: Kubuntu help please

2009-05-16 Thread Rex Johnston

Phill Coxon wrote:


The main reason I've been using KUbuntu is for sftp: access in konqueror
so I can copy and edit files on remote sites live.  


I'm guessing Nautalis must do the same thing these days - can anyone
confirm? 


Yep.

Cheers, Rex


Re: debugging gdm session errors

2009-05-06 Thread Rex Johnston

Kerry Mayes wrote:


Don't get me wrong, on the three machines that are working Jaunty is
great.  stepwise improvements on many small items. A good upgrade, in
the main, I would have said.


I've got an acer aspire one here running jaunty.  It's a vast 
improvement over the hacked up version of fedora that was there.


Anyway, what was the last thing in that error file?

You might also try logging in using failsafe and into a terminal, type
gnome-session.

Cheers, Rex


Re: debugging gdm session errors

2009-05-05 Thread Rex Johnston

Kerry Mayes wrote:


I can ctrl+alt+F1 to get a terminal screen and I can log in via ssh.


What's in ~/.xsession-errors ?

Cheers, Rex


Re: Jaunty won't run with new kernel

2009-05-05 Thread Rex Johnston

Gauland, Michael wrote:

I've upgraded from Ubuntu 'Intrepid' to 'Jaunty', and can't boot with 
the new (2.6.28-11) kernel, though the old one (2.6.27-13) still boots.  
With the new kernel, I can go to 'rescue mode', but not do a full boot. 
The last message is about starting 'wicd', though if I disable wicd the 
system still fails to boot.


Boot using the old kernel.

Compare the output from these 2 commands.

dpkg -l | fgrep 2.6.28
dpkg -l | fgrep 2.6.27

Still no joy?

what is the output of update-grub?

STILL no joy?

look in /etc/rc2.d for the script that runs *after* wicd (they are run 
in ascii string order), chuck an exit 0 at the top of it.


OK, that's enuf for now.

Cheers, Rex


Re: Gnome convert

2009-03-28 Thread Rex Johnston

yuri wrote:


Maybe one day I'll learn emacs


Heh, i tried once, years ago.  It drove me spare.  It always reminded me 
of HAL9000.  You really didn't want that buffer did you?  I'm sorry, i 
can't do that Dave.


If your speaking java, it's worthwhile using eclipse, otherwise stick 
with vim (apparently it's crunchy).


Rex


Re: USB turntables, anyone?

2009-02-01 Thread Rex Johnston

Christopher Sawtell wrote:

2009/2/2 Wesley Parish wes.par...@paradise.net.nz:

Yes, my turntable's part of a single-unit stereo outfit.


So, presumably it hasn't got a line output socket?


Or even a headphone socket.

Rex



Re: Something for .bashrc file

2008-12-03 Thread Rex Johnston

Derek Smithies wrote:

Hi,

On Thu, 4 Dec 2008, [EMAIL PROTECTED] wrote:


Here's a little something to slip into a friend's .bashrc file when
they're not looking ...

export PS1='C:${PWD//\//\\\}'


Hmmm, amusing. Note to self - never let this guy near my lappie ;-)


Question: if he does this to a friend - what happens to the people this
   guy does not like?


stty intr ^M

B^)

Rex


Re: *buntu images

2008-11-02 Thread Rex Johnston

Robert Fisher wrote:

Well I am on the opposite side of town to Dave so if I am closer and anyone 
would like any of:-


And i have mythbuntu 8.10 Alternate for AMD64 if anyone is up Murchison 
way (an hour south of Nelson).


Cheers, Rex


Re: CentOS noob

2008-10-09 Thread Rex Johnston

Steve Holdoway wrote:


Does it *really* make that much of a difference??? I mean practically. They all 
provide you with a linux platform for you to play on ( or, if you're that way 
inclined, to be paid to play on... I didn't say that out load did I? ). I see 
the use of a KDE or Gnome gui as being a far bigger difference.


See, i said it was flamebait.  :)

Does it make that much of a difference?  For a general purpose DB/web 
etc server, not really.  As long as the community/company keep updating 
or backporting fixes and the documentation is up to scratch, then no.


Desktops or embedded machines are a whole `nother ball of wax.  I've 
just picked up an Acer Aspire One.  It's running a flavour of Fedora. 
It's taken me hours of messing about to make the wireless connection 
reliable, the RJ45 ethernet connection fixed IP, install gnome, wine,
kernel modules for usb/serial converters, nfs, ... that should have been 
there but were missing and more.  I still haven't figured out what keeps 
clobbering /etc/hosts, it's probably that stupid network manager thing.


I wish _that_ came with ubuntu installed.

Rex


Re: CentOS noob

2008-10-08 Thread Rex Johnston

Jasper Bryant-Greene wrote:


On Friday 10 October 2008, Roy Britten wrote:

broken links and rather a lot of unnecessary cruft.


sounds like CentOS in a nutshell.

/flamebait


The amount of time before re-installing/swapping with debian is exactly 
proportional to the amount of frustration you will get from it.  yum is 
no substitute for apt*, package dependencies on files were always a bad 
idea and messing about with an old rpm based distro is more than merely 
annoying.


There, _THAT_ is flamebait.

Rex


Re: screensaver on my tosh...

2008-07-05 Thread Rex Johnston

Steve Holdoway wrote:

I've just upgraded my old Tosh lappie to Ubuntu HH. After leaving it to it's own devices for a while, it looks like the screensaver ( or some other kind of power management ) has kicked in, and the screen is blank. 


And is obstinately staying that way, no matter what I do. If I press the power 
button, I'm rewarded by a flash of disk activity, but that's as far as it goes! 
Any idea how to bring it back to life, other than holding the power button in 
for 5 seconds to crash it???


so acpid is probably still alive.

If you can't ssh in, you can try to raise some skinny elephants.  OK, 
i'll be explicit.


altSysReqRtake control of keyboard back from X
altSysReqS  Sync (flush data to disk)

I like to try an altsysk (sends a kill to the current virtual 
console), sometime it works.


altsyse  tErminate (send SIGTERM to all processes),

wait a bit now

altsysi kIll (send SIGKILL to all processes),

altsysu Unmount (remount all filesystems read-only)

altsysb reBoot


Cheers, Rex


Re: Happy Hardy Heron discovery of the Day - Alpine

2008-05-03 Thread Rex Johnston

Roger Searle wrote:

Do you also have the libflash-mozplugin package installed?
Roger


Derek Smithies wrote:

Hi,

On Sat, 3 May 2008, Rex Johnston wrote:


Derek Smithies wrote:

I have just updated two machines at home to HH. Now, some of the 
neopet pages and games don't work. You have to download the lastest 
shockwave player, and the links don't work. It is not clear where to 
go in synaptic to get the right package. The mozilla plugin 
installer don't know where to find the plugin... Oh, one machine is 
a 64 bit box with nvidia.



# apt-cache show flashplugin-nonfree
Package: flashplugin-nonfree


yes.
 Already installed.


Derek.




This is all i have...


$ dpkg -l | fgrep flash
ii  flashblock 1.3.9a-0ubuntu1 
  mozilla extension that replaces flash plugin
ii  flashplugin-nonfree9.0.124.0ubuntu2 
  Adobe Flash Player plugin installer


and about:plugins tells me

Shockwave Flash

File name: npwrapper.libflashplayer.so
Shockwave Flash 9.0 r124

MIME Type   Description SuffixesEnabled
application/x-shockwave-flash   Shockwave Flash swf Yes
application/futuresplashFutureSplash Player spl Yes

$ locate npwrapper.libflashplayer.so
/var/lib/flashplugin-nonfree/npwrapper.libflashplayer.so

Youtube works fine.

Cheers, Rex


Re: Happy Hardy Heron discovery of the Day - Alpine

2008-05-02 Thread Rex Johnston

Derek Smithies wrote:

I have just updated two machines at home to HH. Now, some of the neopet 
pages and games don't work. You have to download the lastest shockwave 
player, and the links don't work. It is not clear where to go in 
synaptic to get the right package. The mozilla plugin installer don't 
know where to find the plugin... Oh, one machine is a 64 bit box with 
nvidia.



# apt-cache show flashplugin-nonfree
Package: flashplugin-nonfree
Priority: optional
Section: multiverse/web
Installed-Size: 164
Maintainer: Ubuntu MOTU Developers [EMAIL PROTECTED]
Original-Maintainer: Bart Martens [EMAIL PROTECTED]
Architecture: amd64
Version: 9.0.124.0ubuntu2
Replaces: flashplugin ( 6)
Depends: debconf | debconf-2.0, fontconfig, libatk1.0-0, libc6, 
libcairo2, libexpat1, libfontconfig1, libfreetype6, libglib2.0-0, 
libgtk2.0-0, libice6, libpango1.0-0, libpng12-0, libsm6, libx11-6, 
libxau6, libxcursor1, libxdmcp6, libxext6, libxfixes3, libxi6, 
libxinerama1, libxrandr2, libxrender1, libxt6, nspluginwrapper (= 
0.9.91.4-2ubuntu1), wget, zlib1g
Suggests: firefox, firefox-3.0, konqueror-nsplugins, libflashsupport, 
msttcorefonts, ttf-bitstream-vera | ttf-dejavu, ttf-xfree86-nonfree, 
x-ttcidfont-conf, xfs (= 1:1.0.1-5), xulrunner-1.9

Conflicts: flashplayer-mozilla, flashplugin ( 6), xfs ( 1:1.0.1-5)
Filename: 
pool/multiverse/f/flashplugin-nonfree/flashplugin-nonfree_9.0.124.0ubuntu2_amd64.deb

Size: 18692
MD5sum: 9a7d3e9b9f0135d5274ccb3cd264b638
SHA1: 500c2ead62d9dac4618736da46bb69d66ee7d509
SHA256: bf12dfd85fefb2db1c86de40aeebd74d5a19d2a28e1cf1fe376036d4caa7c26c
Description: Adobe Flash Player plugin installer
 This package will download the Flash Player from Adobe.  It is a
 Netscape/Mozilla type plugin.  Any browser based on Netscape or 
Mozilla can
 use the Flash plugin.  This package currently supports the following 
browsers:

 Mozilla, Mozilla-Firefox, Firefox, Iceweasel, and Iceape.  Also Galeon and
 Epiphany can use the Flash plugin.  Konqueror can also use the Flash 
plugin if

 konqueror-nsplugins is installed.
 .
 WARNING: Installing this Ubuntu package causes the Adobe flash plugin 
to be
 downloaded from www.adobe.com.  The distribution license of the Adobe 
flash
 plugin is available at www.adobe.com.  Installing this Ubuntu package 
implies

 that you have accepted the terms of that license.
 .
  Homepage: http://wiki.ubuntu.com/FlashPlayer9
Npp-Applications: ec8030f7-c20a-464f-9b0e-13a3a9e97384, 
92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a, aa5ca914-c309-495d-91cf-3141bbb04115

Npp-Mimetype: application/x-shockwave-flash
Npp-Name: Adobe Flash Player (installer)
Bugs: mailto:[EMAIL PROTECTED]
Origin: Ubuntu

Cheers, Rex


Re: Happy Hardy Heron discovery of the Day - Alpine

2008-05-02 Thread Rex Johnston

Steve Holdoway wrote:


I would be interested to see if you find yourseld in the situation where you 
can still move the mouse, but have completerly lost the ability to interace 
with the computer. At this point, I've found the only recourse is the reset 
button on my system):


Yep.  Been there done that.  You'll have to raise some skinny elephants :)

Cheers, Rex


Re: Help with shell scripting

2008-04-16 Thread Rex Johnston

You are better off doing this...

ping -c 1 $SYNHOST
if [ $? -eq 0 ] ; then
...
fi

Cheers, Rex

Kerry Mayes wrote:

I'm having difficulty with the following script:

SYNHOST=caalt04

if echo `ping -c 1 $SYNHOST` | grep -q 1 received; then

   echo 'Synergy connected';

   ssh -2 -f -N -L 24800:$SYNHOST:24800 [EMAIL PROTECTED];

   synergyc localhost;

else

   echo 'Synergy NOT connected';

fi


I'm getting the error that then is not being found.

This script was working before I pulled caalt04 out as a variable.
But I tidied up things at the same time, so may have messed it up
somewhere else.

Background: I learn languages by pinching other people's code.  This
is based on some stuff I pinched from someone and I sometime leave
options in that don't need to be there.

Any help appreciated.





Re: Ubuntu Mirrors...

2008-04-14 Thread Rex Johnston

John Carter wrote:

The nz.archive.ubuntu.com mirror seems to be down


Not for me.

Cheers, Rex


Re: Burning a vcd

2008-04-12 Thread Rex Johnston

Barry wrote:

vcdimager -t vcd2 -l Muddleton-4 -c Muddleton.cue -b Muddleton.bin 
muddleton-4.mpg  cdrdao write --device 1.0.0 Muddleton.cue


Looks like you have 2 commands in there.  Try splitting off cdrdao ...
into a separate command.

Cheers, Rex


Re: Burning a vcd

2008-04-12 Thread Rex Johnston

Christopher Sawtell wrote:


vcdimager -t vcd2 -l Muddleton-4 -c Muddleton.cue -b Muddleton.bin

muddleton-4.mpg  cdrdao write --device 1.0.0 Muddleton.cue
 Looks like you have 2 commands in there.  Try splitting off cdrdao ...
 into a separate command.

He's not forgotten the pipe sign symbol '|' immediately to the left of
cdrao has he?


I could be wrong, but i don't think so.  It's been years since i used 
vcdimager.  I use devede these days.


Cheers, Rex


Re: Any guru near Governers Bay?

2008-03-26 Thread Rex Johnston

Steve Holdoway wrote:


This site does have a UPS - a small one, but it couldn't provide protection 
against this spike. As most can handle about 50,000V, that's a bit scary! We 
could do with someone (Volker?) to explain the physics of the problem...


I can have a stab at it.  50,000 volts isn't that scary, most MOVs will 
absorb that at long as the spike duration is short, as will the Class X2 
caps.  A simple isolation transformer will again absorb much of that 
spike too.  Even the simple inductance of a long line will blunt the 
spike, BUT, a switchmode supply can self destruct in such a way as to 
pass that spike right through.  The transformer has little core metal 
and is designed to operate at high frequencies, reacting to the fast 
rise time of the spike, passing it on.


Cheers, Rex



Any guru near Governers Bay?

2008-03-25 Thread Rex Johnston

Oh dear,

Yesterday a truck took out a powerpole in said area, out goes the power 
and down goes the server(s).  Unfortunately, on boot up, we now get just
L 99 99 99 etc.  According to lilo's man page, it's an invalid second 
stage index sector.


I'm not currently in Chch, so i'm asking if anyone who is comfortable 
booting off a CD drive, mounting the drive, chrooting into it and 
rewriting the MBR, is able to visit a children's home in the area.


It's their mail and file server, it runs Mandrake 10.

TIA, Rex


Re: Any guru near Governers Bay?

2008-03-25 Thread Rex Johnston

Steve Holdoway wrote:


lilo -M /dev/XXX mbr
you will need to confirm that XXX is hda1 from the person who
installed Linux on the machine.


Unfortunately, that's not me.  I inherited it.  It will likely be
/dev/sda, but it shouldn't be too hard to figure out.


That's what I'm going to do. As not that many distros use lilo any more, I'll 
be chrooting to the old system first. After fscking it all of course (:

Let's hope it's a quickie, and back to the GBI for dinner and a pint (:


Hope so.

Cheers, Rex

PS, what's up with the list?  My first message more than an hour to go 
through, your one just minutes.


Re: Sun Buys MySQL...

2008-01-16 Thread Rex Johnston

Steve Holdoway wrote:


wonder what's going to happen on the database front? Massive new interest in 
postgres I hope!


That would be nice.  Using postgresql after a bout of putting up with 
MySQL is like a breath of fresh air.


Rex


Re: Acer laptop pre-loaded with Ubuntu 7.10 in New Zealand

2008-01-15 Thread Rex Johnston

Josh James wrote:


  did any one see this the DSE website doesn't  say that it has
  ubuntu  it's kinda cheap whats the rest of you guys thoughts.


No stock in the South Island :(

Rex


Re: shell script error

2007-11-26 Thread Rex Johnston

Kerry Mayes wrote:


The following shell script is producing an error saying that
basename is not found:


try
which basename

in Ubuntu it is part of coreutils.

Cheers, Rex


Re: simulating a slow internet connection

2007-11-22 Thread Rex Johnston

Nick Rout wrote:

On Thu, November 22, 2007 6:30 pm, Vik Olliver wrote:

I use it to stop my wget's saturating slow links.

Vik :v)

On Thu, 2007-11-22 at 18:25 +1300, Rex Johnston wrote:

I've always meant to have a play with 'trickle'.





also its slightly concerning that trickle doesn't seem to have been
updated since 2003.


The system interface is fairly stable.  Why change something that is 
finished?


Cheers, Rex



Re: simulating a slow internet connection

2007-11-21 Thread Rex Johnston

Matthew Whiting wrote:


I'm trying to suss a way to simulate a slow internet connection.


I've always meant to have a play with 'trickle'.

Cheers, Rex


Re: simulating a slow internet connection

2007-11-21 Thread Rex Johnston

Christopher Sawtell wrote:


http://w3.linux-magazine.com/issue/62/Traffic_Shaping_With_Trickle.pdf


Hmm, LD_PRELOAD.  Very good.


I use it to stop my wget's saturating slow links.


wget has an option '--limit-rate='

scp has a '-l' option.

Cheers, Rex


Re: When the damn Yankee's attack. Tales of ssh

2007-10-30 Thread Rex Johnston

John Carter wrote:


So I wanted to take some work home...


This is, perhaps, the root of the problem.


So scp does well, let me set that up. Open up port 22 pinhole in the


Never use port 22.  Ever.


Note 1. The ip address changes surprisingly often! The telco is doing
way more work than it needs to.


Or you have a lousy line, or your modem is not flash, or, or ...


Note 2. Having kiddies in the house means some usernames have less
good passwords. So I dug and dug through the config to explicitly only
enable access to my own personal username.


Set up another user with the same homedir, UID and GID as yours (make 
sure it appears AFTER the real one).  Make the login name obscure, the 
password even more obscure and choose a random high numbered port.



Some swine is doing a brute force attack on my sshd


This has been going on for years.  It's definitely a `bot, as it can 
cause a significant jump in traffic (and your bill).


Cheers, Rex



Re: sandboxes

2007-10-09 Thread Rex Johnston

Aidan Gauland wrote:

 What should I use if I had a program (for Linux, not Winblows) that I 
wanted to run, but did not trust fully?  Such as a web browser plug-in 
installer, like the Flash installer, something did not come from my 
distribution's software repository.  I tried chroot, but it didn't run 
like I thought it would, and does not seem to be what it's intended for.


Like apparmor?

Cheers, Rex


Re: OT: so, you're a geek?

2007-10-02 Thread Rex Johnston

Roy Britten wrote:


I see that Telogis is using the geeky Google challenge method to
attract employees to its NZ subsidiary.

http://telogis.co.nz/

The page source isn't so encouraging, though.


I saw that too.  The code (once you fix it) produces an array of chars 
like 'geekjob'.  I'm sorry, but anyone who could produce such twisted

and broken code is probably best avoided.

Besides, it's all windoze AFAICT.

Rex


Re: OT - linux scanner USB cable plug causing sparks?

2007-09-18 Thread Rex Johnston

Phill Coxon wrote:


When plugging the usb cable in I bumped the end of the cable against the
metal plate on the back of my computer and noticed a small spark. 


Is the scanner double insulated?  You are probably seeing leakage 
current, the usb cable will ground the scanner.


Poor form, but it probably won't hurt anyone.

Cheers, Rex


Re: OT - linux scanner USB cable plug causing sparks?

2007-09-18 Thread Rex Johnston

Phill Coxon wrote:


When plugging the usb cable in I bumped the end of the cable against the
metal plate on the back of my computer and noticed a small spark. 


Is the scanner double insulated?  You are probably seeing leakage 
current, the usb cable will ground the scanner.


Poor form, but it probably won't hurt anyone.

Cheers, Rex


Re: Virus Software Advice

2007-09-18 Thread Rex Johnston

Steve Holdoway wrote:

Try clamav.net.

Build from source, and use clamscan to check the relevant directory. It'll take 
a bit of reading to get it working and up-to-date, but certainly not more than 
an hour...

(sudo) clamscan -r --bell -i /

will display all infected files, and ring the bell when it finds one, too!

Steve

On Wed, 19 Sep 2007 12:06:56 +1200
Kerry Nisbet [EMAIL PROTECTED] wrote:


Hi I'm doing some work for a company which runs a community sever running
Fedora Core 2.



Now one page of one site is getting injected with a virus which when viewed
one a windows box running up to date virus software gives us a warning about
a JS/Downloader_BC2 virus detected and then IE crashes. We are after some
advice on virus scanning software for FC2 to pick this problem.



Thanks,

Kerry




I don't think this is what he wants.  It reads like he wants some sort 
of javascript disinfecting web proxy.  Not sure.


Rex


Re: Replacement for MS Exchange

2007-09-13 Thread Rex Johnston

Cam Mckenzie wrote:


Scalix Is quite good, It has Native Outlook Usage built in (Hence Native)


Not quite native.  It uses a mapi connector, and you are only allow to 
define 25 premium users (free community edition), and you can't connect

the MAPI connector to a non premium user account.  Of course the rest
can connect as IMAP, but the contacts, tasks etc come through oddly.

The web client is pretty good.  An outlook user will find it familiar.

The documentation, whilst reasonably complete, is lets say, incohesive.

Backups are odd, you can't easily separate data out, so need to use 
something like imapsync, or fetchmail to back up mail.  Trying to back

up the rest is puzzling.

You'd better stick to the recommended distro, i installed it on a 64 bit
debian etch machine and i'd have to say, it was painful.

I'm left with an undebugable error in a 15Gb 'Bulletin Board'.  It says
Invalid Direct Reference via the MAPI interface (not IMAP, nor webmail).
The connector isn't open source, debug files are useless and no-one has
answered my query on their forum yet.  /gripe

So, yeah, OK but not great.  Not quite sure if it's really primetime yet.

Rex


Re: Parts to give away

2007-09-13 Thread Rex Johnston

Don Gould wrote:

Last year I need some, this year I've got them coming out my ears...  If 
anyones needing an extra one, then please yell.


Will you hear, with monitors in your ears?  :Q

Rex


Re: Debian 3.1 timezone update

2007-09-03 Thread Rex Johnston

Volker Kuhlmann wrote:

I can't find an update for the libc6 package (which contains the timezone
files) in my usual sources for Debian 3.1. Where do I need to be looking for
this? I find it hard to believe that there wouldn't be an update for this,
as it would turn that particular product effectively into a paperweight in
about 3 weeks (well in NZ and a few other places).


Package: tzdata
...
Description: Time Zone and Daylight Saving Time Data
 This package contains data that represent the history of local time 
for many

 representative locations around the globe. It is updated periodically to
 reflect changes made by political bodies to time zone boundaries, UTC 
offsets,

 and daylight-saving rules


Cheers, Rex


Re: How not to design any UI...

2007-07-27 Thread Rex Johnston
On Fri, 27 Jul 2007 17:29:36 +1200, John Carter [EMAIL PROTECTED]  
wrote:



Did the box say anything about automated toast spreading?


Dunno, i tried reading FTM, but the chenglish gave me a headache.  :)

Rex
--
Eschew Obfuscation.


Re: How not to design any UI...

2007-07-26 Thread Rex Johnston
On Fri, 27 Jul 2007 16:49:01 +1200, John Carter [EMAIL PROTECTED]  
wrote:



Sometimes saying RTFM isn't enough...

http://xkcd.com/293/


Spooky.  I just brought a new toaster.

Rex

--
Eschew Obfuscation.


Re: chroot to 64 bit...

2007-07-05 Thread Rex Johnston
On Fri, 06 Jul 2007 15:31:40 +1200, Steve Holdoway  
[EMAIL PROTECTED] wrote:


Anyone know how to chroot to a 64 bit boot partition from a 32 bit host?  
I've just upgraded the motherboard/cpu/memory on this machine and it  
crashes on boot. Pain... who needs it?


I'd think you are SOL unless you happen to have a 32 bit lib/bin etc and  
can

set $PATH, $LD_...

Good luck.

Rex

--
Eschew Obfuscation.


Re: Test your C knowledge here.

2007-07-01 Thread Rex Johnston
On Sun, 01 Jul 2007 21:28:35 +1200, Derek Smithies [EMAIL PROTECTED]  
wrote:



2[abcde]


=== abcde[2]

== 'c'

Rex

--
Eschew Obfuscation.


Re: Hardware graphics acceleration

2007-05-22 Thread Rex Johnston
On Tue, 22 May 2007 18:32:02 +1200, Roy Britten [EMAIL PROTECTED]  
wrote:



I'm not currently benefiting from hardware graphics acceleration, and
sadly have no idea what to do to enable it. The Q965 chipset seems to
be pretty new and my google-fu has failed me. Suggestions, including
you should have googled for  you idiot welcomed.


man i810

Cheers, Rex
--
Eschew Obfuscation.


Re: Hardware graphics acceleration

2007-05-22 Thread Rex Johnston
On Tue, 22 May 2007 20:17:23 +1200, Roy Britten [EMAIL PROTECTED]  
wrote:



On 22/05/07, Matthew Gregan [EMAIL PROTECTED] wrote:

 you should check the
kernel log to see if it has recognized your hardware and initialized
correctly.


lspci -v -v

does that correspond to what you have installed?

Then, look in the Xorg.log in /var/log to see if you're using the  
correct

driver for your video card (i.e. it hasn't fallen back to vesa or
something), and that DRI initialized correctly.


(II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so


Make sure you haven't got DRI disabled in xorg.conf.


Section Module
...
Loaddri
...
EndSection

Bios settings?  Have you got enough ram set aside as video ram?

Rex
--
Eschew Obfuscation.


Re: Hardware graphics acceleration

2007-05-22 Thread Rex Johnston

Hi Roy,

Using these drivers?
http://intellinuxgraphics.org/download.html

Rex

PS, i haven't.
--
Eschew Obfuscation.


Re: [Pythonesque Troll] Last word on name change

2007-04-26 Thread Rex Johnston
On Thu, 26 Apr 2007 16:46:41 +1200, Robert Fisher [EMAIL PROTECTED]  
wrote:



And that's THG.

:-)
A chocolate fish to first person who can guess the sound clip which  
plays when

I receive an email message.


t-twang, Message for you Sir.

Rex

--
Eschew Obfuscation.


Re: [Pythonesque Troll] Last word on name change

2007-04-26 Thread Rex Johnston
On Thu, 26 Apr 2007 18:20:42 +1200, Robert Fisher [EMAIL PROTECTED]  
wrote:



t-twang, Message for you Sir.

Bingo!


I've got an sound clip of Oh i see you've got the machine that goes PING
somewhere around here (see other thread).

Rex

--
Eschew Obfuscation.


Re: OT: IP controlled power switch?

2007-03-21 Thread Rex Johnston

Jim Cheetham wrote:


I'd like to be able to switch the power on and off remotely. So I'm
looking for a networked power management switch ...


Jaycar have one, CAT. NO. KV3595

Rex


Re: How much X to install for X11 forwarding?

2007-02-21 Thread Rex Johnston

Carl Cerecke wrote:


I wouldn't mind occasionally running X window programs on my headless
server via ssh with X11Forwarding.

How much of X do I need installed on the (Ubuntu 6.06) server in order
for sshd to get set up the dummy X server for port forwarding?


Umm, none.

Just ssh -X into your box and run your programs.  They'll talk to the X server
running on your workstation.  Any version of ssh that understands -X will set
up the proxy.

Cheers, Rex


Re: How much X to install for X11 forwarding?

2007-02-21 Thread Rex Johnston

[EMAIL PROTECTED] wrote:


The X clients will need to have certain elements of X (libraries) on the
same machine in order to run.


And unless he's totally broken his package manager, they'll be there
after he installs his X clients (unless they are statically linked,
in which case, they won't, but he won't need them).

Cheers, Rex


Re: Debian's md5sum

2006-12-06 Thread Rex Johnston

Volker Kuhlmann wrote:


That's the GNU one. What does
dpkg -S /usr/bin/md5sum
say on your system please? I would like to know the simplest and
official way to get that version.


here is mine

[EMAIL PROTECTED]:~$ date | md5sum
7435da3ab23db914519315e55b4e5cb7  -
[EMAIL PROTECTED]:~$ cat /etc/issue
Debian GNU/Linux 3.1 \n \l

[EMAIL PROTECTED]:~$ dpkg -S `which md5sum`
dpkg: /usr/bin/md5sum

[EMAIL PROTECTED]:~$ dpkg -p dpkg
Package: dpkg
Essential: yes
Priority: required
Section: base
Installed-Size: 5636
Origin: debian
Maintainer: Dpkg Development debian-dpkg@lists.debian.org
Bugs: debbugs://bugs.debian.org
Architecture: i386
Version: 1.10.28
Replaces: dpkg-doc-ja, dpkg-static, manpages-de (= 0.4-3)
Pre-Depends: dselect, libc6 (= 2.3.2.ds1-21)
Conflicts: sysvinit ( 2.82-1), dpkg-iasearch ( 0.11), dpkg-static, dpkg-dev 
( 1.10)
Size: 1892234
Description: Package maintenance system for Debian
 This package contains the programs which handle the installation and
 removal of packages on your system.
 .
 The primary interface for the dpkg suite is the `dselect' program;
 a more low-level and less user-friendly interface is available in
 the form of the `dpkg' command.
 .
 In order to unpack and build Debian source packages you will need to
 install the developers' package `dpkg-dev' as well as this one.


Cheers, Rex


Re: mouse pointer speed

2006-11-28 Thread Rex Johnston

Volker Kuhlmann wrote:


Any other avenue which can be persued?


'xset' is what you are after.  Both KDE  Gnome have interfaces
which control this.

Cheers, Rex


Re: mouse pointer speed

2006-11-28 Thread Rex Johnston

Volker Kuhlmann wrote:

'xset' is what you are after.  Both KDE  Gnome have interfaces
which control this.


man xset

   m   The m option controls the mouse parameters.  The parameters for
   the mouse are `acceleration' and `threshold'.

No, not what I'm after. I want to make the pointer cover less distance
when moved slowly, not cover more distance when moved fast.


One being the converse of the other...

What are the current settings?
Already at 1/1 ?

Cheers, Rex


Re: mouse pointer speed

2006-11-28 Thread Rex Johnston

Volker Kuhlmann wrote:


Was 20/10 6, setting it to 1/10 60 disables acceleration but doesn't
make it slower. There seems to be some base speed which is proving
difficult to reduce. This base speed has probably also to do with the
mouse itself (like outputting X pulses per distance).


It's hardly ideal, but how does
xset m 1/10 1
work?

What sort of mouse is this?

Cheers, Rex


Re: Evolution

2006-11-23 Thread Rex Johnston

Reg wrote:


When I recently reinstalled Open Suse I decided to give Gnome a try as
opposed to KDE. In doing so I ended up with Evolution as my mailer which I
quite like so at this stage I see no need to change from that. Only problem
is that more often than not when I close it, it won't restart unless I
reboot the computer. It is also the only program doing this, other programs
fire up fine. Is this a common problem? How might I fix this? 


I've tried and tried to like Evolution, but always there is a show stopper.

The last time i tried it wouldn't display mail in the root of an IMAP store.
It doesn't shut down properly, and requires a series of annoying kills to
get it going again.  It doesn't like having the internet connection broken
and gets very unresponsive.  It certainly has great promise, but unfortunately,
that's all.

Use Thunderbird (or like me SeaMonkey), an F or a down arrow will go to the
next message.

Cheers, Rex


Re: The perennial top vs bottom posting debate.

2006-10-18 Thread Rex Johnston

Eliot Blennerhassett wrote:


Volker promotes bottom posting while I contend that the benefit of TOP
postings is that for everyone who has read it at least once before, we
don't have to scroll through all that verbiage to see the new content.



Actually, quite a few (me included) *hadn't* read it before.  We may, in fact
not be all that interested in reading it, and you've given it to us anyway.
We may only be interested in what *you* have to say, and would like it to be
put in context.  If we want further input, we can read the prior messages,
this *is* a mailing list after all.


(As long as the top post is comprehensible standalone without the quote)
The quoted content below is provided for the few who didn't read the
last email in this thread.


You increase readability by splitting up your reply into relevant paragraphs.
Without this, your whole reply has been devalued by forcing me to read all
of which you are replying to, and trying to work out your point.

  It becomes a real pain to scan through a thread if one has to scroll to

the bottom to see the new content.  Did you get to this line?


Yes, but you need to work on trimming your replies.

Rex


Re: OT - the noise

2006-09-11 Thread Rex Johnston

Roger Searle wrote:

totally ot...

wtf?  everyone heard it? what was it?


I looked around, couldn't see any smoke plumes.
Nothing has appeared on geonet yet.

shrug

Rex



Re: Issue with journal corruption on ext3

2006-09-07 Thread Rex Johnston

Davidson, Brett (Managed Services) wrote:

Anyone confronted the issue where a machine lost power and both the 
journal and ext filesystem underneath have errors?


err, no.

To fix the ext3 filesystem, fsck normally applies the journal first but 
as that's also corrupt, things don't play.


what does
tune2fs -O^has_journal /dev/
do?

It appears that the journal starts at block 0 and debugfs won't let you 
touch block 0 so I can't just remove the inode and/or the journal file.


hmm.  could be fubar.

Cheers, Rex


Mini howto: Chain shutdown commands for OpenUPSmartd

2006-09-05 Thread Rex Johnston

Hi all,

Had a fun time yesterday afternoon trying to make one machine supervise the 
shutdown of another.

The situation is this...

UPS, serial connection to server A, has server A and server B connected to 
power outlets.

The UPS in question will only talk to OpenUPSmartd, which is a single machine 
daemon, and the
documentation suggests that it is compatible with pretty much everything, 
however, the site
suggested (www.ups-software-download.com) has a pretty woeful selection of 
software, and i
didn't like the look of the linux version.

Anyway, OpenUPSmartd is the software you want.  Missing is a startup script...

[EMAIL PROTECTED]:~$ cat /etc/init.d/openupsmartd
#!/bin/sh

PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin

set -e

case $1 in
  start)
test -x /usr/local/bin/openupsmartd || exit 0

nohup /usr/local/bin/openupsmartd  /var/log/openupsmartd.out 21 
;;
  stop)
killall openupsmartd
;;
esac


You'll know it's working fine when you see this in syslog

Sep  6 12:41:59 serverA openupsmartd: IN:234.40V, FAULT:233.90V, OUT:231.30V, 
LOAD:13.00% ^I^I^I INFREQ:50.00hz, BATT:27.70V, TEMP:25.
00C, FLAGS 1001 ^I^I^I ( FLAG_BEEPER FLAG_STANDBY  )

Now, this has to control 2 machines, not just this one...

link the configuration file from where it installs it to where it expects it
lrwxrwxrwx1 root root   31 Aug 15 13:44 /etc/openupsmart.conf 
- /usr/local/etc/openupsmart.conf

and edit thus...
use_syslog=y
shutdown_command=/root/scripts/start_shutdown
restore_command=/root/scripts/stop_shutdown

serverA:~/scripts# cat start_shutdown
#!/bin/bash

nohup /sbin/shutdown -h +4  /dev/null  /dev/null 21 
ssh [EMAIL PROTECTED]  /root/scripts/start_shutdown 
serverA:~/scripts# cat stop_shutdown
#!/bin/bash

nohup /sbin/shutdown -c  /dev/null  /dev/null 21 
ssh [EMAIL PROTECTED]  /root/scripts/stop_shutdown 

Now you need to set up an rsa key on serverB so that serverA can connect via 
ssh without a password.
There are numerous places this is described, i set up 2 accounts, shutdown and 
noshutdown,
the first to initiate the shutdown of serverB, the second to stop it when/if 
the power is restored.
It's easier to grep for events in the log file this way.

Once done, you need these on serverB
serverB:~/scripts# cat start_shutdown
#!/bin/bash

nohup /sbin/shutdown -h +3 
serverB:~/scripts# cat stop_shutdown
#!/bin/bash

nohup /sbin/shutdown -c 


Now create a shutdown group, make sure that shutdown (noshutdown) are by 
default that group,
[EMAIL PROTECTED]:~$ id
uid=1130(shutdown) gid=1044(shutdown) groups=1044(shutdown)

and alter the permissions on /sbin/shutdown so it looks like this...

[EMAIL PROTECTED]:~$ ls -l /sbin/shutdown
-rwsr-x---1 root shutdown17388 Sep  5 15:00 /sbin/shutdown

(that's 4750, NOT 4755)

make sure that only shutdown (noshutdown) are in this group.

Now comes the tricky bit.

When shutdown is called with a delay, it creates a file called /etc/nologin 
which contains
the text displayed before the ssh daemon kicks you off.  If you have a later 
version of sysvinit,
you can modify /etc/pam.d/ssh to stop this behaviour.  Earlier versions of sshd 
have this built in,
and non-defeatable.  The upshot of this nasty behaviour is that once shutdown 
is called on serverB,
serverA can't log back in to stop this shutdown when/if power is restored.
What to do?

I used apt-src to install sysvinit tools and edited

src/shutdown.c like this...

/* Give warnings on regular intervals and finally shutdown. */
if (wt  15  !needwarning(wt)) warn(wt);
while(wt) {
if (wt = 5  !didnolog) {
//  donologin(wt);
didnolog++;
}
if (needwarning(wt)) warn(wt);
hardsleep(60);
wt--;
}

before installing.


Cheers, Rex


Re: Mini howto: Chain shutdown commands for OpenUPSmartd

2006-09-05 Thread Rex Johnston

Andrew Errington wrote:


snip

I have to ask, why not use 'nut' (Network UPS Tools)?


`cos it doesn't talk the protocol...  :(

Rex


Re: naming computers

2006-08-20 Thread Rex Johnston

John Carter wrote:


Trouble is, most people (mistakenly) think I'm keen on cricket.


Sorry about that.  I never had that problem.


Computer names should be humourous and memorable, and with appropriate
alias in DNS for specific functionality. eg. mailhost, newshost,
cvshost, ...


Couldn't agree more.

Cheers, Rex


Re: Desktops through the ages

2006-08-14 Thread Rex Johnston

Nick Rout wrote:


Did anyone here besides me actually use KDE 1.x?


I tried, but next to GNUstep it was pretty ugly, and compared
with enlightenment, it was just a joke.

In fact, even next to CDE it was average looking.

Pretty snappy now tho`.

Cheers, Rex


Re: Tool to

2006-08-14 Thread Rex Johnston

Steve Holdoway wrote:


k9copy's pretty good ( having problems with either 16:9 or 4:3 atm, can't 
remember which ), but tbh I still use DVshrink, copy to linux and then k3b to 
rebuild and burn the iso (:


I use dvdbackup.  DVDshrink works under wine (apparently, i've not managed to 
get it to open up the disk structure).

Cheers, Rex


Re: Brushing up on vim skills

2006-08-10 Thread Rex Johnston

Glynn Foster wrote:


set matchpairs+=:


Awesome, didn't know that one.  The vim help files aren't organised in the most 
logical
manner.


Keep track of where you were

In normal mode, you can leave a mark at any cursor position. Just type mchar.
For example,
mh
Then to go back to that mark, you type a backtick: `same char
That is
`h
Or, to go to the start of the line containing the mark, type a single quote
'same char
'h
If you use a lowercase letter, the mark is per-buffer. If you use an uppercase
letter, the mark is global. You can see all marks you've set by typing
:marks

Copying delimited objects
=
To copy the entire {} block the cursor is in: yab or ya{
To copy the entire [] delimited text the cursor is in: ya[
To copy the entire () delimited text the cursor is in: ya(


You can combine these 2.

Set the cursor somewhere, drop a mark (i.e. ma), then shift cursor somewhere 
else yank it
(i.e. y`a, or more usefully, ay`a, yank into buffer a, all from current position to mark 
a).
This is very useful when editing multiple, similar files (when code re-use 
isn't perhaps as good
as it could be).  aP or ap to paste buffer a back.  I believe there are 27 
buffers, more than
enough.


My personal ~/.vimrc file contains -

set textwidth=80
set softtabstop=4
set expandtab
set shiftround


I like

set sm
set ts=4
set sw=4
set ai
map! {{ { ^M}^[O
set backupdir=~/tmp

and a bunch of other code formatting macros.

Cheers, Rex


[Fwd: Out of Office AutoReply: Brushing up on vim skills]

2006-08-10 Thread Rex Johnston

How long has this crap been going on?
Can anyone unsub this twit?

Grr, Rex

 Original Message 
Return-Path: [EMAIL PROTECTED]
Received: from smtp.commarc.co.nz (www.commarc.co.nz [203.167.249.253]) by 
smtp.sclnz.com (8.13.4/8.13.4/Debian-3sarge1) with SMTP id k7AL75Mk031727for 
[EMAIL PROTECTED]; Fri, 11 Aug 2006 09:07:05 +1200
Received: from saturn.internal.commarc.co.nz (Not Verified[192.168.0.6]) by 
smtp.commarc.co.nz with NetIQ MailMarshal 6.0 Service Pack 1a (v6,0,3,33)   id 
B44db9ff4; Fri, 11 Aug 2006 09:07:00 +1200
Received: from Deimos.internal.commarc.co.nz ([192.168.0.4]) by 
saturn.internal.commarc.co.nz with Microsoft SMTPSVC(5.0.2195.6713); Fri, 
11 Aug 2006 09:07:00 +1200
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;   charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Subject: Out of Office AutoReply: Brushing up on vim skills
X-MimeOLE: Produced By Microsoft Exchange V6.5
Date: Fri, 11 Aug 2006 09:07:00 +1200
Message-ID: [EMAIL PROTECTED]
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: Brushing up on vim skills
Thread-Index: Aca8wOuqDED0CuZcRLKwnNoHxQNC7QDM
From: Steve Brorens [EMAIL PROTECTED]
To: Rex Johnston [EMAIL PROTECTED]
X-OriginalArrivalTime: 10 Aug 2006 21:07:00.0620 (UTC) 
FILETIME=[EC060CC0:01C6BCC0]

Hi,

I'm on leave until the 16th of August, and will not be checking my email until 
then.

Please contact the office at (03) 377-0722 or [EMAIL PROTECTED] for anything 
urgent.

 - Steve
=


This e-mail has been scanned for Viruses and Content and cleared by CommArc 
Cube Server


Re: make all o's please...

2006-08-01 Thread Rex Johnston

Don Gould wrote:


Does anyone know how to force make to recompile all the .o files?


Without reviewing your makefile, i can only guess.

try
make clean  make

Cheers, Rex


Re: Addressbook etc import - Thunderbird from Mozilla

2006-08-01 Thread Rex Johnston

Rik Tindall wrote:

Wouldn't you know it, Mozilla suite retains a right to exist, now titled 
SeaMonkey.


I've used SeaMonkey (hah - it thinks i've spelt that wrong..)for a while now, 
and it's great.
Two things will keep me using it.

1) It's memory footprint is smaller than Firefox + Thunderbird, and my laptop 
can't cope
   with the latter.

2) Right click on URL in email - Open in new Tab.

Cheers, Rex


Re: Addressbook etc import - Thunderbird from Mozilla

2006-08-01 Thread Rex Johnston

Rik Tindall wrote:

But I shall review http://www.mozilla.org/projects/seamonkey/ once the 
Ubuntu package becomes available, thanks Rex.


Who knows? - It might just retain the ~/.mozilla/* filesystem layout.


It does.

Cheers, Rex


Re: Javascript strikes again.

2006-07-31 Thread Rex Johnston

Steve Holdoway wrote:

For all of you feeling safe behind your firewall, looks like we're all in for a 
hard time. I think the picture isn't as black as painted, but this is only the 
beginning. And you thought ActiveX was bad...

Steve
http://news.zdnet.com/2100-1009_22-6099891.html?tag=nl.e589


That's the flakiest script i've seen in a while.

In moz* removing javascript's ability to 'Change Images' completely stumps it.

Rex




Re: Isaac Writes (the hard stuff) - ONCS

2006-07-31 Thread Rex Johnston

Don Gould wrote:


In a script, how do I see the parameters that are being passed in?


in a shell, type
man bash

There, that should keep you quiet for a while

Rex


Re: CLUG web server changes

2006-07-17 Thread Rex Johnston

Nick Rout wrote:

On Tue, 18 Jul 2006 11:18:18 +1200
Don Gould wrote:

or just update the pip capacity until it's just not an issue anymore, 
remember it's also impacting on their systems.


Cheers Don



pardon my ignorance, what is the pip capacity


Don't you know anything Nick?  It's how big the inside of your fruit is

;^)

Rex


Re: CLUG web server changes [WOT]

2006-07-17 Thread Rex Johnston

Nick Rout wrote:


I have two clues - my TV has PIP capacity, = picture in picture.


Plastic Irrigation Pipe?

http://en.wikipedia.org/wiki/PIP
has a few interesting entries, none of which seem to to fit.


I have a dog called Pip, and as a result of the little white hairs that
appear on every item of furniture and clothing I own, I have almost
exhausted my capacity to put up with her...


Perhaps you need to go onto the next plan?

http://www.shoof.co.nz/catalogue/photos/669.jpg

Cheers, Rex



Re: GooglEarth4Linux

2006-06-29 Thread Rex Johnston

John Carter wrote:


Somehow missed the announcement for this.

http://earth.google.com/download-earth.html

Google Earth for Linux



Anyone else get this
http://www.sclnz.com/sc.jpg
sort of behaviour? (random chopped up images)

Cheers, Rex


Re: GooglEarth4Linux

2006-06-29 Thread Rex Johnston

John Carter wrote:


Then a crash screen

SNIP

/home/johnc/google-earth/libevll.so(_ZN5earth4evll17RenderContextImpl18requireDXOGLSwitchERK7QStringS4_+0x183d)

   ^^^
I knew it...  :)

Do no evil my a$$

Cheers, Rex


Re: N to N-1 NFS Mesh

2006-06-08 Thread Rex Johnston

John Carter wrote:


I actually have about 20 developers in this cluster, so has anyone ever
done 20x19 = 380 NFS cross mounts?


It's a *really* bad idea to cross mount volumes.

Why don't you have 20 exports on a file server, each client can have 19
mount points, and rsync the local home back to the server.

Or upgrade to Gigabit ethernet.


For various reasons, which are far far too long winded to go into here,
most of the developers _also_ have  Win2K boxes.


Political reasons no doubt.

Cheers, Rex


Re: any nfs gurus out there??

2006-05-24 Thread Rex Johnston

Neil Stockbridge wrote:


i'm shooting from the hip a bit here and i've not tried this out but
isn't NFS managed by portmap?  portmap has a -i option that binds
portmap only to the specified address.  is that option any good?


No.  If the portmapper isn't contactable on 127.0.0.1, nfs doesn't start.
If it is, it starts listening on all interfaces.

NFS is protected by tcpwrappers, and while you can't stop it binding to all
interfaces, you can configure it to reject all connections on a certain 
interface.

Have a look at man hosts.allow and scroll down to SERVER ENDPOINT PATTERNS

Either that or you could use iptables.

Cheers, Rex


Re: C For Loop

2006-05-16 Thread Rex Johnston

Dale DuRose wrote:

#include stdio.h
int main(){
   int i;
   for(i = 4; i; i--){
   printf(%d\n, i);
   }
}

output is:
4
3
2
1

So thats four loops the statement is false when i is 0.


C doesn't have a boolean type.  Have a look in a header file and you'll see
#define TRUE 1
#define FALSE 0

In reality, 0 is false, non-zero is true.

You'll see this all over the place, like

if( !strchr( haystack, needle ) )
...

Cheers, Rex


Re: C For Loop

2006-05-16 Thread Rex Johnston

Steve Holdoway wrote:


In reality, 0 is false, non-zero is true.


That's not strictly true. Or at least didn't used to be


Huh?

A quick google reveals
http://www.phim.unibe.ch/comp_doc/c_manual/C/CONCEPT/true_false.html


Those who indent as follows...

  for ( initial configuration,...; End conditon; iteration action,... ) {
do something...
  }

are adopting a method designed to save paper on a hardcopy teletype, so beware!


Ugh!  Makes for unreadable code.  Why do they teach this?


C bodger since 1984. KR rules!


Beat me by a year!

Cheers, Rex


Re: Command line WAS How to reset the dns cache?

2006-05-09 Thread Rex Johnston

Roy Britten wrote:


On Wed, 2006-05-10 at 10:00 +1200, Steve Holdoway wrote:

sudo find /etc -type f -print0 |  xargs -0 grep -l eth1


sudo find /etc -type f -exec grep -l eth1 \{\} \;

cuts down on typing :)


There shouldn't be any pipes in /etc (not true of /var), so in this case
sudo fgrep -rl eth1 /etc
would suffice.

:)

Cheers, Rex


Re: Suggessted Linux workgroup server

2006-03-14 Thread Rex Johnston

Jim Cheetham wrote:


On the other hand, I've yet to see any USB2 hotswap under Linux work
reliably - sooner or later the machine hangs, or the disks don't mount,
sometimes they don't release their previous hold over sda, and get
mounted as sdb, etc, etc.


I can backup (!) this assertion.  I've had nothing but trouble trying to
get a USB2 backup solution working nicely.  It's a great idea, but i 
ended up crashing a file server many times, and creating some 
interesting filename munging scripts to make the interesting filenames
people call things fit onto a FAT32 fs, which then proceeded to lunch 
itself anyway when i grew above a certain size.


I ended up grabbing an old machine, naming it 'backuphost', inserting a 
USB2 card, installing Ubuntu on it, nfs mounting the server and 
reformatting the USB drive with reiserfs.  The problem with mounting as 
sda, next as sdb, etc seems to have gone away.


Works OK now, cross fingers.

Cheers, Rex


Re: Wasted hard drive space on new format

2006-02-03 Thread Rex Johnston

Nick Rout wrote:


/home seems to have wasted quite a lot of space. There is about 60k of
real files in there (from setting up one user, nick, and having a
little bit of history etc). However df -h shows:

FilesystemSize  Used Avail Use% Mounted on
/dev/hda4 257G  129M  244G   1% /home


Have a play with tune2fs, Nick.

df is reporting what is available to a normal user, which doesn't 
include reserved blocks.


Cheers, Rex


Re: Eclipse, anyone?

2006-01-09 Thread Rex Johnston

Isaac Devine wrote:


I personally use eclipse for Java,Ruby,C++ and to a limited extent
shell-scripts (when they are part of a larger project). Eclipse beats
hands-down any other ide for Java and is one of the best for C++. 


Agreed.  You need a grunty machine tho`.


Your eclipse experience is mainly determined by the quality of the
plugins you choose. In my case the Ruby plugin is fairly mediocore and
the eclipse-darcs(a SCM) plugin is far from finished.

I haven't heard of either good or bad experiences for php however.


I have tried it.  Less than a year ago it sucked.
I just use (g)vim now.

Cheers, Rex


Re: apache 2 bandwidth control

2005-09-21 Thread Rex Johnston

Volker Kuhlmann wrote:


Is there some not too time-consuming way to restrict apache 2 total
bandwidth dependent on URL and user-agent? Total traffic is easy to
control with iptables, but that's not what I'm after.



Ok, is there *any* way?


Not really, did you find this?
http://www.topology.org/src/bwshare/README.html

or this

http://www.kefk.net/Linux/Administration/Networking/Traffic.Shaping/index.asp
noting the reference to libapache-mod-iptos
?

Cheers, Rex


Re: xmms not able to seek in mp3's

2005-08-03 Thread Rex Johnston

Nick Rout wrote:


I found the answer, disable the mad mp3 (libxmmsmad.so) decoder and make
sure you have the xmms-mpg123 (libmpg123.so) decoder plugin enabled.
worked fine after that change. The settings are in options|preferences
(ctrl-p).


Baby out with the bathwater methinks.

Disable the Parse XING headers in the plugin configuration.

Cheers, Rex


Re: lucent agere winmodem setup probs

2005-07-28 Thread Rex Johnston

Matthew Whiting wrote:

Struggling a little with getting my Lucent Agere winmodem up and running 
under Ubuntu 5.04 - maybe I should have purchased a different modem 
afterall. Ah well.


Always get a serial modem.  I say ALWAYS GET A SERIAL MODEM.  It doesn't 
make much messing around and frustration to equal the extra expense of a 
UART and some trivial DSP.


Looked for the appropriate binary for a driver on 
http://ltmodem.heby.de/ but couldn't see it. Yep, I guess I could 
compile from source.


However, saw ubuntu-ltmodem-2.6.10-5-386_8.31a13_i386.deb listed on 
http://linmodems.technion.ac.il/packages/ltmodem/kernel-2.6/ which seems 
a reasonable match with my kernel version, etc. However, I can't for the 
life of me find one of the package dependencies - kernel-kbuild-3.6


doesn't seem to be in the ubuntu repositories.  However over in debian 
land...


[rex]# apt-cache show kernel-kbuild-2.6-3
Package: kernel-kbuild-2.6-3
Priority: optional
Section: devel
Installed-Size: 1736
Maintainer: Debian kernel team debian-kernel@lists.debian.org
Architecture: i386
Version: 2.6.8-2
Depends: libc6 (= 2.3.2.ds1-4)
Filename: 
pool/main/k/kernel-kbuild-2.6-3/kernel-kbuild-2.6-3_2.6.8-2_i386.deb

Size: 362926
MD5sum: 322ddf6a4a43cb6515a8811f4e6a460d
Description: Linux kernel 2.6 kbuild tools
 This package provides kbuild tools for Linux kernel 2.6.  It is used 
together

 with the kernel-headers packages to build out-of-tree kernel modules.

[rex]# apt-cache showpkg kernel-kbuild-2.6-3
Package: kernel-kbuild-2.6-3
Versions:
2.6.8-2(/var/lib/apt/lists/ftp.jetstreamgames.co.nz_debian_dists_testing_main_binary-i386_Packages)(/var/lib/apt/lists/ftp.jetstreamgames.co.nz_debian_dists_unstable_main_binary-i386_Packages)

Reverse Depends:
  kernel-headers-2.6.8-2,kernel-kbuild-2.6-3
  kernel-headers-2.6.11-9,kernel-kbuild-2.6-3
  kernel-headers-2.6.11-1,kernel-kbuild-2.6-3
  kernel-headers-2.6.8-2,kernel-kbuild-2.6-3
  kernel-headers-2.6.8-11,kernel-kbuild-2.6-3
Dependencies:
2.6.8-2 - libc6 (2 2.3.2.ds1-4)
Provides:
2.6.8-2 -
Reverse Provides:

Cheers, Rex


Re: tvtuner problems

2005-07-27 Thread Rex Johnston

Nick Rout wrote:


[2] 3204
Running tvtime 0.9.12.
Reading configuration from /etc/tvtime/tvtime.xml
Reading configuration from /root/.tvtime/tvtime.xml



Is the next bit relevant? what has wine to do with it? whay are you
loading wine?


[EMAIL PROTECTED] barry]# wine: Win32 LoadLibrary failed to load: 
DI_TomsMoComp.dll.

wine: Looked in .:/usr/share/tvtime:/usr/lib/win32:../data:./data
wine: Win32 LoadLibrary failed to load: DI_GreedyH.dll.
wine: Looked in .:/usr/share/tvtime:/usr/lib/win32:../data:./data
videoinput: Can't read frame. Error was: Input/output error (0).
videoinput: Can't read frame. Error was: Input/output error (0).
videoinput: Can't read frame. Error was: Input/output error (0).



tvtime uses dscaler libs which are win32 only at this stage.  Looks like 
tvtime install is borked to me.


Cheers, Rex


Re: tvtuner problems

2005-07-27 Thread Rex Johnston

Nick Rout wrote:


Not on my system it doesn't. It seems to have been removed in 0.9.13 -


time flies like an arrow (1)


I believe that tvtime should still run, but anyway xawtv is the best way
to test one of these cards.


Sure is, or one of the other default install tv programs.

Cheers, Rex

1) fruit flies like a banana.


Re: Embedded Linux

2005-07-21 Thread Rex Johnston

Nick Rout wrote:


oh and of course the nslu2 i referred to earlier, $160NZ odd for a
capable little embedded linux box with a big hacker developer
userbase, sweet IMHO. Boots from flash.


Where would i get one from?
Looks bloody good to me.

Cheers, Rex


Re: Embedded Linux

2005-07-21 Thread Rex Johnston

Nick Rout wrote:


oh and of course the nslu2 i referred to earlier, $160NZ odd for a
capable little embedded linux box with a big hacker developer
userbase, sweet IMHO. Boots from flash.


Where would i get one from?
Looks bloody good to me.


http://www.justfuckinggoogleit.com/search.pl?query=nslu2+site%3A.nz

(nothing personal, I always wanted to send a link to that site.)


Yes, very helpful.  Thanks a bunch.

In order...

$744, Eeek, Oh the Super size me option, don't want that.
$189.35, by itself.
$191, that can't be the one.
$200, nope
$190, still $30 off.

I take it your guess of $160 was rough...

Anyway, i want one to control IR devices.  I have a heat pump that is 
singularly stupid and needs a helping hand.


Anyone done that before and have a recipie, or do i need to break out 
the soldering iron.  Yes Nick, i've seen www.nslu2-linux.org too.


This
http://linuxdevices.com/news/NS6152296875.html
piqued my interest.

Cheers, Rex


Re: Error trying to 'make' K3b

2005-06-15 Thread Rex Johnston

david merriman wrote:

/bin/sh ../../../libtool --silent --tag=CXX --mode=link g++  
-Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 
-D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W 
-Wpointer-arith -Wno-non-virtual-dtor -O2 -Wformat-security 
-Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common
-o libk3bmaddecoder.la -rpath /usr/lib/kde3 -avoid-version -module 
-no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -L/usr/lib 
-L/usr/lib/qt3//lib -L/usr/X11R6/libk3bmad.lo k3bmaddecoder.lo 
-lkdecore -lmad -L/usr/local/lib -ltag ../../../libk3b/libk3b.la -lm 
-L/usr/lib -L/usr/lib/qt3//lib -L/usr/X11R6/lib

g++: /usr/lib/libtag.so: No such file or directory



Have a closer look at it.  Is it a symbolic link to a file that is missing?

I have a /usr/lib/libtag.so.1, but no /usr/lib/libtag.so

[EMAIL PROTECTED]:~$ /sbin/ldconfig  -p | fgrep libtag
libtag.so.1 (libc6) = /usr/lib/libtag.so.1

Other than that, the command, while being unneccessarily repetitive, 
looks fine


Cheers, Rex


[WWOT] anyone familiar with Cold Fusion?

2005-05-26 Thread Rex Johnston

Feel like some work?

Initally fixing a few bits, but i'd like to migrate these sites to linux 
eventually, well, soon actually (there, some relevence).


Email me direct, Cheers, Rex


DLink 504G

2005-05-12 Thread Rex Johnston
If you have one of these ADSL modems, change your admin password now.
Don't delay, right now.
The web page admin interface is available externally.
Cheers, Rex


Re: OT Digital audio cables

2005-05-09 Thread Rex Johnston
Nick Rout wrote:
I want to connect my linux [1] media box to my amplifier via the coax
digital audio out, and a dvd player via the optical digital audio out
(the amp has two digital audio inputs, one coax the other optical).
The cables seem rather expensive. 

digital coax 0.9 m, DSE item C1394 $29.00
Digital coax is an RF signal.  You'll need a cable with constant 75Ohm 
impedance.  The standard RCA connector is NOT 75Ohm, but they are 
available.  Using a standard cable will smear the digital transitions,
lowering the effective bandwidth of the cable, causing jitter to appear
after the SPDIF input receiver.  This jitter, if within the audio band
will degrade the audio quality.  That said, $29 is far far too much for
a 75Ohm RCA cable (hint, a video cable is also a 75Ohm cable).

digital optical 0.9m DSE item C1392 $50.00
Again, far far too much for a plastic optical cable.
Anyone know of any more acceptably priced alternatives? (I have searched
a number of local electronics websites, but maybe my search techniques
are all wrong)
http://www1.jaycar.co.nz/productView.asp?ID=WQ7266CATID=keywords=opticalSPECIAL=form=KEYWORDProdCodeOnly=Keyword1=Keyword2=pageNumber=priceMin=priceMax=SUBCATID=
Cheers, Rex


Re: OT firefly (tv program)

2005-05-09 Thread Rex Johnston
Shane wrote:
And it only gets better .. they keep dropping little snippets in many of 
the episodes and the snippets keep adding up  pity it was such a 
limited run on TV

does someone have the videos / DVD's of it?
I do, but i would encourage you to purchase it yourself from amazon.
It's cheap, like $40 or something for the whole series.
The reason it was axed is that there was not enough visible support.
Cheers, Rex


Re: Using one X server on one machine for two distros

2005-05-05 Thread Rex Johnston
Robert Himmelmann wrote:
Now I tried emacs -d 127.0.0.1:0 on Gentoo and it gives about the same 
message as in SuSE. I think I have to enable TCP/IP support in  the 
server somewhere. How can I do that?
Can you see the -nolisten TCP flag in the process listing.
man Xserver will tell you all about it.
You need to modify the config file and remove that option.
Good luck.  On SuSE 9.2 i had to use a particularly nasty hack
to get rid of it (involving scripts  the shift statement).
Good luck.
Cheers, Rex


Re: cron UTC / local time

2005-04-21 Thread Rex Johnston
Roy Britten wrote:
After a recent fresh install of Debian stable, I find that crontab
entries are executed at the correct time, but in UTC, for both a normal
user and for root. I'm pretty confident that on all other systems I've
ever used crontab times are local.
The system clock is synced to an NTP server, and date returns the
correct NZST time. I couldn't see anything useful in man cron,
crontab(1) and crontab(5). /etc/adjtime indicates that UTC time is kept.
/etc/default/rcS contains UTC=yes.
I'm all googled out. Suggestions?
Both 'date' and 'cron' load the compiled timezone entry pointed to by
/etc/localtime.  This is a symbolic link, where does it point on your
system?
[EMAIL PROTECTED]:~$ ls -l /etc/localtime
lrwxrwxrwx1 root root   36 Jul 19  2004 /etc/localtime 
- /usr/share/zoneinfo/Pacific/Auckland

Cheers, Rex


  1   2   3   >