Re: [SLUG] Cron and shutdown command

2006-08-13 Thread Simon Bowden
No, it must be crontab. cron.daily is for generic make sure it runs at least once a day, with no specific time. crontab is where the crontab(8) format entries with specific times and users etc live. Cheers, - Simon On Mon, 14 Aug 2006, Dean Hamstead wrote: cron.daily is run from

Re: [SLUG] .dmrc problem at login

2006-06-06 Thread Simon Bowden
On Wed, 7 Jun 2006, linley wrote: I get a message saying that $HOME/.dmrc will be ignored. That the file $HOME/.dmrc should be owned by the user and have permissions set to 644 and that the $HOME directory should only be read a writable by the user. Not much of a pain except that I cannot re

Re: [SLUG] NOW Re MythTV

2006-05-11 Thread Simon Bowden
On Fri, 12 May 2006, O Plameras wrote: I have two issues: 1. I cannot recieve SBS signal cleanly; and We have this in our strata block. The SBS signal is the only digital tv signal in the UHF range, all the rest are VHF. I believe our antannae don't do UHF. 2. I cannot recieve HDTV (only

Re: [SLUG] A Sys Admin's worst nightmare

2006-04-20 Thread Simon Bowden
On Fri, 21 Apr 2006, Simon Wong wrote: * They have to open a file only readable by root and report back the contents plus the root password plus the method of attack Getting the root password itself is quite separate from getting root access (unless you've not cleaned up after

Re: [SLUG] sed question

2006-03-30 Thread Simon Bowden
On Fri, 31 Mar 2006, Steven Heimann wrote: **1. Scope** I wrote the following sed -i.bak s/^\(\*\*[0-9][. ]\)\*\*\(.*\)$/\1\2**/ *.txt Unfortunately sed seems to be putting the 2 trailing ** at the beginning of the replacement line rather than the end of the line and after much stuffing

Re: [SLUG] Netgear Wireless card under ndiswrapper

2006-02-13 Thread Simon Bowden
. If so you should try using another wifi channel. Cheers l1th10n On Mon, 13 Feb 2006 05:41 pm, Simon Bowden wrote: Hi, I'm just going to chirp in with my bad experience with this card. While I could get it working, I think with the acx100 drivers: http://acx100.sourceforge.net/ I found that under

Re: [SLUG] Netgear Wireless card under ndiswrapper

2006-02-12 Thread Simon Bowden
Hi, I'm just going to chirp in with my bad experience with this card. While I could get it working, I think with the acx100 drivers: http://acx100.sourceforge.net/ I found that under both linux and windows (especially the latter), I could not get a very consistent connection. I've mainly

Re: [SLUG] C Gurus

2005-11-22 Thread Simon Bowden
On Tue, 22 Nov 2005, Benno wrote: snip But if you are at the point of trying to get things in a few cache lines, or with a small memory footprintf there is still snip ^^ evidence that someone has been coding too much lately ;-) Cheers, - Simon

Re: [SLUG] xmms config volume problem

2005-10-25 Thread Simon Bowden
Henry, xmms doesn't usually set the volume. Nor is the volume set in a config file - its essentially a state in the driver. Just use a tool like aumix (or amixer for alsa) to change volume levels: aumix -v50,0 play_sound aumix -v0,50 play_sound The -w option is also handy, depending on your

Re: [SLUG] Dual Booting Query - *Not* about layout...

2005-10-17 Thread Simon Bowden
Hi Anthony, In situations like this, I tell lilo before rebooting to boot to Windows (lilo image label) for the next boot only. # lilo -R Windows As opposed to -D Windows (or editing lilo.conf), which sets the default boot option to that label. Cheers, - Simon On Mon, 17 Oct 2005,

Re: [SLUG] BASH oddity

2005-09-19 Thread Simon Bowden
Hi Howard, I had this once, and similarly needed to retain leading 0's (rather than ${var%%0}). The leading zero implies octal numbers. You can force a base with a leading base#, i.e. 10#09 = 09, base 10, rather than 09 base-8 which is invalid. I'm not currently aware of a way of saying

Re: [SLUG] BASH oddity

2005-09-19 Thread Simon Bowden
On Tue, 20 Sep 2005, Simon Bowden wrote: Hi Howard, I had this once, and similarly needed to retain leading 0's (rather than ${var%%0}). This should have been ${foo#0}, and I don't know a good way of removing an arbitrary number of leading zeros without resorting to external tools

Re: [SLUG] linux box as router

2005-08-28 Thread Simon Bowden
Hi, I wrote up some stuff I did a fair while ago for at home. I've got a different ISP and hardware now, but same applies, plus there's probably useful general notes: http://www.cse.unsw.edu.au/~simonb/swiftel/ Cheers, - Simon On Mon, 29 Aug 2005 [EMAIL PROTECTED] wrote: Hi. I would

Re: [SLUG] Procmail question

2005-07-10 Thread Simon Bowden
On Mon, 11 Jul 2005, James Polley wrote: I have a bunch of procmail recipes that pick up mail for various mailing lists I'm on and dump it to specific folders: :0: * [EMAIL PROTECTED] lists/security/linux-secnews :0: * [EMAIL PROTECTED] lists/SLUG I'd like for any mail that matches one of

Re: [SLUG] Scheduling a X GUI Application to start

2005-06-09 Thread Simon Bowden
Adam, You can use cron(tab), but you'd need to set the DISPLAY variable appropriately: DISPLAY=:0 xprogram /dev/null 2/dev/null That's assuming the cron job is running as the same user and same host as the X display. It gets a little complicated otherwise. Your question does seem a bit

Re: [SLUG] Novice: Mouse problem

2005-06-08 Thread Simon Bowden
Mark, At a guess, your XF86Config-4 file specifies a basic PS/2 mouse, rather than the scrolly wheel one I expect yours is. You'll find a line like this in /etc/X11/XF86Config-4: Option Protocol PS/2 Change the PS/2 to ImPS/2, restart X and see how you go.

Re: [SLUG] Help with apt-get pinning

2005-06-08 Thread Simon Bowden
Michael, Do a dist-upgrade, not an upgrade. An upgrade doesn't try hard enough - it won't remove packages. dist-upgrade does, thus can resolve conflicts. Of course, if you're running a production system, you'd want to watch closely what gets upgraded and removed. I always run apt-get -V

Re: [SLUG] recursive tree log grep ?

2005-05-23 Thread Simon Bowden
Hi Howard, Run help for a list of shell internals to get help on... $ help history history: history [-c] [-d offset] [n] or history -awrn [filename] or history -ps arg [arg...] Display the history list with line numbers. Lines listed with with a `*' have been modified. Argument of N

Re: [SLUG] Ubuntu - changing global keyboard type

2005-05-23 Thread Simon Bowden
Hi Terry, I did this on a Debian box the other day with: # install-keymap us Cheers, - Simon On Tue, 24 May 2005, Terry Collins wrote: Can anyone tell me how to change the global default keyboard for Ubuntu (Warty?) I think this one was installed with the UK keyboard and it is missing

Re: [SLUG] finding a file

2005-04-16 Thread Simon Bowden
On Fri, 15 Apr 2005, Voytek wrote: using Tony's method, my largest file is: find / -ls -type f 2/dev/null | awk '{print $7 $11 }' | sort -nr | head -10 # cd /proc Hi, A handy way to avoid find going into other filesystems (useful when network mounts are around), is to use the -mount option.

Re: [SLUG] Second Serial ATA disk

2005-02-21 Thread Simon Bowden
Hi Peter, I've not had a machine with 2 sata disks yet, so I'm not sure what the magic numbers would be... BUT, for normal scsi hotplug disks, you use the following to tell the kernel about new ones: echo 'scsi add-single-device 0 0 0 0' /proc/scsi/scsi The magic numbers are the host, channel,

Re: [SLUG] Hostile LANs

2005-01-31 Thread Simon Bowden
Hi Howard, On Tue, 1 Feb 2005, Howard Lowndes wrote: I have been asked to set up multiple LANs with Internet access in what I consider to be a hostile environment - a private uni student dorm complex. 1. BIOS password has very limited effect. 2. GRUB password to prevent editing the GRUB boot

RE: FW: [SLUG] Netcomm 1400-TPG ISP

2004-12-12 Thread Simon Bowden
Hi, I once wrote a rough How I did it for my Swiftel connection with a NB1300. If TPG is PPPoE too, and if the NB1400 is similar (bridge mode can't be any different) then it should only be a username+password change... http://www.cse.unsw.edu.au/~simonb/swiftel/ Cheers, - Simon On Sun, 12 Dec

Re: [SLUG] Maybe trying out gentoo again

2004-11-03 Thread Simon Bowden
On Wed, 3 Nov 2004, Grant Byers wrote: Distribution maintainers generally go to great lengths to ensure code is compiled properly for a particular package and the package is usually well tested before mainstream release. Distributions such as Debian take this one step further, breaking this down

Re: [SLUG] Maybe trying out gentoo again

2004-11-03 Thread Simon Bowden
On Wed, 3 Nov 2004, Grant Byers wrote: snip 2. Do I have the knowledge and skills to do a better job than these distribution/package maintainers? Gentoo uses the same strategy - it works by the package maintainer providing a build script (ebuild). The main advantage of gentoo over other distros

Re: [SLUG] FSCK Help Badly Needed!

2004-09-23 Thread Simon Bowden
On Fri, 24 Sep 2004, James Ponza wrote: 1. The BIOS reports the HDD name as: GDC GD!6 0JB-0 DEA# wheras it SHOULD be something like WDC WD1600JB-00. (it is a WD 160Gb drive). Hi, I've seen this sort of thing before when both hard drives on the IDE channel were set to Master. I also may have

Re: [SLUG] escaping variables in bash

2004-09-13 Thread Simon Bowden
On Mon, 13 Sep 2004, Alexander Samad wrote: I am trying to do something like this #!/bin/bash SOMEVARIABLE VAR2=$( awk -F, /$SOMEVARIABLE/ /some/pathtoafile/) Now I have problems with my I can't use ' because I want SOMEVARIABLE to be subsituted I have tried VAR2=$( awk -F, \/$SOMEVARIABLE/

Re: [SLUG] Linux,Laptops and Suspension

2004-09-07 Thread Simon Bowden
On Wed, 8 Sep 2004, Harald Richard Ashburner wrote: Jason Rennie said: Hi all, I was wondering what people would recommend in terms of having suspend functionality on a laptop under linux ? I've got ACPI running so the battery meter works, but suspend does not work according to the ACPI doc's. I'm

Re: [SLUG] lowercasing file names, directory names, how ?

2004-08-10 Thread Simon Bowden
On Wed, 11 Aug 2004, Voytek Eymont wrote: how can I lowercase: all file names ? all directory names ? recursively ? Just plug stuff together? find /path/to/start | tac | while read file; do newname=$(echo $file | tr A-Z a-z) # could use towlower here i guess mv $file $newname done The main

Re: [SLUG] lowercasing file names, directory names, how ?

2004-08-10 Thread Simon Bowden
On Wed, 11 Aug 2004, Simon Bowden wrote: Possibly only lowercase relative links: if [ -L $file -a ${file:0:1} != / ]; then ... Oops, I'm going to be pedantic. This should be: mv $file $newname if [ -L $file ]; then target=$(ls -l $file | sed 's/^.* - //' if [ ${target:0:1

Re: [SLUG] usb flash drives

2004-07-20 Thread Simon Bowden
On Tue, 20 Jul 2004, Shaun Oliver wrote: hi, I've just bought an emation usb flash drive 256 mb when one plugs it into the system, where is it usually mounted? or rather where abouts would I expect to mount it, I have it listed at /dev/sda but I ain't sure if it's 1 2 3 or 4 any help would

Re: [SLUG] usb flash drives

2004-07-20 Thread Simon Bowden
Hi Shaun, You should be mounting /dev/sda. Notice the sizes - you have a 256M stick, /dev/sda is 256M, the others are all ridiculously large (which would upset it). Cheers, - Simon On Tue, 20 Jul 2004, Shaun Oliver wrote: it looks like this. major minor #blocks name 8 0

Re: [SLUG] usb flash drives

2004-07-20 Thread Simon Bowden
Hi Shaun, It's usually left as a registered scsi device. If you cat /proc/scsi/usb-storage-0/0 (numbers might be different), then you should see something that says whether it is attached or not. If it does think it's still attached, then you're right that something is messed up. If a second,

Re: [SLUG] Bad magic number in super-block

2004-04-15 Thread Simon Bowden
Hi, Seems your mail server is not working right... I replied and it bounced. Hope you're on the list... reply included below the bounce detail: - - The following addresses had permanent fatal errors - [EMAIL PROTECTED] (reason: 550 5.7.1 [EMAIL PROTECTED]... Relaying denied)

Re: [SLUG] Pine: Non-hexadecimal character in QP encoding

2004-03-13 Thread Simon Bowden
On Mon, 17 Nov 2003, David wrote: I've been exchanging email with a guy and have twice got the following message half way through a sentence in his email: snip .. This way I know exactly where the [Error: Formatting error: Non-hexadecimal character in QP encoding] after which pine

Re: [SLUG] Security Breach

2001-02-27 Thread Simon Bowden
rized host This is the only portmap log I've ever had. Has anyone come across something similar? I've no idea whether this is the result of a trojan, or whether someone managed to gain access to my machine (although if they did gain root access, why mail out a passwd file?). Any thoughts?Sean. -- Simon B