/rescue is huge!!

2004-07-05 Thread Richard Bradley
Hi everyone, I recently tried to add a user to my FreeBSD box, but was amazed to find that the / partition was full! I had a look, and the culprit is the "/rescue" folder, holding 135 statically linked binaries of nearly 4Mb each, giving a folder size of 491Mb! The Handbook says that "100 MB

user account woes

2004-07-05 Thread Richard Bradley
Hi, I have a phantom user stuck in my system that I can neither use nor delete. I have been playing with "Virtual Users" in "pure-ftpd" and it seems to have messed things around. Substituting `bob` for the user name, here is some of my command line: # grep bob /etc/passwd /etc/pwd.db # pw add

Re: /rescue is huge!!

2004-07-05 Thread Richard Bradley
On Tuesday 06 July 2004 2:36 am, you wrote: > In the last episode (Jul 06), Richard Bradley said: > > I recently tried to add a user to my FreeBSD box, but was amazed to > > find that the / partition was full! I had a look, and the culprit is > > the "/rescue" folder

Re: /rescue [may or may not have actually been] huge!!

2004-07-05 Thread Richard Bradley
On Tuesday 06 July 2004 3:11 am, you wrote: > On Tuesday, 6 July 2004 at 2:59:08 +0100, Richard Bradley wrote: > > On Tuesday 06 July 2004 2:36 am, Dan Nelson wrote: > >> Check the inode number of each file in /rescue (ls -li /rescue). > >> You'll notice they'

Re: "Designed for FreeBSD" stickers

2004-12-07 Thread Richard Bradley
> Chris Hill wrote: > > On Wed, 8 Dec 2004, Matthias Buelow wrote: > > > Rod Person wrote: > > > >> Powered By FreeBSD badge... > >> http://www.freebsdmall.com/cgi-bin/fm/bsdplate?id=RQKmKeZu&mv_pc=88 > > > > I got a batch years ago from ScotGold, which might be nearer for European > > buyers th

Re: "Designed for FreeBSD" stickers

2004-12-08 Thread Richard Bradley
On Wednesday 08 December 2004 3:41 am, Matthias Buelow wrote: > Richard Bradley wrote: > > ScotGold seems reasonably priced, but once you've bought their minimum > > order of 10, you're again paying almost £5. > > > > Is there a gap in the market? > >

Updating the ports index is slow, but system load is nil

2005-03-01 Thread Richard Bradley
Hi, Sometimes (not always) when I do a 'portupgrade', it takes _ages_ to "update the ports index", without actually placing any noticeable load on the system. In ports/UPDATING, it says (of make index) "This may take an undesirably long time.". That would be fine, *if it were doing any work*.

reconfigure php4-extensions

2005-02-02 Thread Richard Bradley
Hi, When I installed php4 from a port, I also installed php4-extensions. It gave me an ncurses menu to choose from possible extensions. Now I want to install some extensions that I didn't choose the first time round, but I can't get the menu to reappear. I have tried: make clean && make make

Re: reconfigure php4-extensions

2005-02-03 Thread Richard Bradley
On Thursday 03 February 2005 01:45, albi wrote: > Richard Bradley wrote: > > Now I want to install some extensions that I didn't choose the first time > > round, but I can't get the menu to reappear. > > > > I have tried: > > > > make clean &

Keeping Ports synchronised with Packages

2004-04-22 Thread Richard Bradley
Hi all, I am getting the impression that I am using the ports and packages system the wrong way, but can't find a good tutorial on how to use them to their best. I would be quite happy to write one up, but I need to understand it first! My problem is that my ports tree is always a couple of min

Re: Keeping Ports synchronised with Packages

2004-04-22 Thread Richard Bradley
On Thursday 22 April 2004 2:29 pm, Andrew L. Gould wrote: > On Thursday 22 April 2004 07:41 am, Richard Bradley wrote: [...] > > My problem is that my ports tree is always a couple of minor versions > > ahead of the available packages. [...] > > This means I have a load

Re: Keeping Ports synchronised with Packages

2004-04-22 Thread Richard Bradley
On Thursday 22 April 2004 3:25 pm, Andrew L. Gould wrote: > On Thursday 22 April 2004 08:57 am, Richard Bradley wrote: > > ... > > I want to keep my programs up to date, and I want to use precompiled > > versions as much as possible because it can take hours to compil

IMPS/2 for mouse-wheel not supported

2004-05-18 Thread Richard Bradley
Hi, I have a brand new Microsoft optical wheel mouse with a 'tilt wheel'. It works as a 3-button mouse under X with: Option "Protocol" "PS/2" Option "Device""/dev/psm0" but the wheel doesn't work (i.e. doesn't even show up in `xev`) The X documentation: [ http://

Re: IMPS/2 for mouse-wheel not supported

2004-05-18 Thread Richard Bradley
> On Tue 2004-05-18 (16:23), Richard Bradley wrote: > > Hi, > > > > I have a brand new Microsoft optical wheel mouse with a 'tilt wheel'. > > > > It works as a 3-button mouse under X > > but the wheel doesn't work (i.e. doesn't eve

how to make an executable run as another user

2004-09-17 Thread Richard Bradley
Um. I feel silly asking this. But I can't work it out. I want a shell script to run as another user. I always thought this was easy to do with the setuid bit, but never tried it before. I read "man chmod" and found this: . 4000(the setuid bit). Executable files with this bit set will

Re: how to make an executable run as another user

2004-09-18 Thread Richard Bradley
I understand now. Thanks very much for all your help. Rich On Saturday 18 September 2004 11:31 am, Matthew Seaman wrote: > On Fri, Sep 17, 2004 at 04:53:31PM -0400, mailing lists at MacTutor wrote: > > QUOTE: "In most UNIX kernels there exists what is called a 'race > > condition' when executin

How to run a stream based command in place on a file

2004-10-18 Thread Richard Bradley
Hi, I want to run stream based commands like `sed` and `tr` on the contents of a file, and save the results to the same file. Obviously I can do this with a temporary file: $sed s/dog/cat/ myanimals.txt > tmp.txt $mv tmp.txt myanimals.txt But is there any way I can do this with a single comman