Re: Urgent: Downgrading from 6.X to 5.X?

2006-07-02 Thread Francisco Reyes

Paul Chvostek writes:


Apache logs daily).  NFS seems to go away for a few seconds (the filer
is unpingable), then return.


I see this in 6.X too.


 Despite the 5.x branch's known problems, I
had attributed this to the fact that I'm using cough bge NICs.


Our problems seem to occur with other cards too including intel cards (em 
if I recall)



moved most of this log processing to a 6.1-RELEASE box last week (on
identical hardware), and I've seen none of the timeouts.


Do you do mostly reading? Any writing?



I'm using HP DL380-G4 servers (onboard bge, ciss RAID), with a BlueArc
Titan for NFS.


How much storage? How much?
Looking at their site.. don't see pricing..
Did you buy from them or had to use a re-seller?


 Of course, I'm not running nfsd on the FreeBSD boxes,
they're just clients.


If you can do this test in a 6.X box.
Disconnect the 6.X client from the NFS (ie plug the cable off the 
switch/card).. try umount -f path to nfs mount 
___

freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Urgent: Downgrading from 6.X to 5.X?

2006-07-02 Thread Chad Leigh -- Shire.Net LLC


On Jul 1, 2006, at 11:10 PM, Francisco Reyes wrote:


Chad Leigh -- Shire.Net LLC writes:

I don't remember general complaints about nfs in the 6.x series  
here  in the list.


Checkt he stable list. :-)
Locking issues on server during heavy load.
Background fsck + NFSD locking issues
Clients freeze if server goes away.. soft mount option doesn help.


stable is not release.  If they are confined to the stable list then  
it is probably a stable issue.


Chad





---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


The FreeBSD Diary: 2006-06-11 - 2006-07-01

2006-07-02 Thread Dan Langille
The FreeBSD Diary contains a large number of practical 
examples and how-to guides.  This message is posted weekly
to freebsd-questions@freebsd.org with the aim of letting people
know what's available on the website.  Before you post a question
here it might be a good idea to first search the mailing list 
archives http://www.freebsd.org/search/search.html#mailinglists 
and/or The FreeBSD Diary http://www.freebsddiary.org/. 

These are the articles posted during this period:

26-Jun : IBM ThinkPad T41 - a second battery
 This isn't about a spare battery, it's about two batteries in the one 
laptop. 
 http://freebsddiary.org/ibm-thinkpad-t41-second-battery.php?2

22-Jun : Dual Opteron Server - the drives
 Details of the drive bays, 3Ware RAID controller, and battery backup unit 
 http://freebsddiary.org/dual-opteron-drives.php?2

16-Jun : apcupsd - Configuring a UPS daemon
 APC is a pretty common UPS.  apcupsd can gracefully shutdown your 
computers before the batteries run out of juice. 
 http://freebsddiary.org/apcupsd.php?2

15-Jun : Dual Opteron server
 Setting up the server 
 http://freebsddiary.org/dual-opteron.php?2


-- 
Dan Langille
BSDCan - http://www.BSDCan.org/ - BSD Conference

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Help fixing sendmail crassh

2006-07-02 Thread Andreas Widerøe Andersen

Hi,
Sendmail exits about every 30 minutes. I suspect it has to do with some
mailqueues running, but I don't know how to stop or fix it.

Running FreeBSD 4.11 p19
Sendmail 8.13.1

from /var/log/messages

Jul  1 20:41:02 malibu /kernel: pid 50923 (sendmail), uid 0: exited on
signal 11
Jul  1 21:08:59 malibu /kernel: pid 51058 (sendmail), uid 0: exited on
signal 11
Jul  1 21:39:00 malibu /kernel: pid 51252 (sendmail), uid 0: exited on
signal 11
Jul  1 22:07:39 malibu /kernel: pid 51374 (sendmail), uid 0: exited on
signal 11

from dmesg

pid 55105 (sendmail), uid 0: exited on signal 11
pid 55241 (sendmail), uid 0: exited on signal 11
pid 55371 (sendmail), uid 0: exited on signal 11

#] ps -aux | grep sendmail
root   55434  0.0  0.5  3924 2408  ??  I11:27AM   0:00.02 sendmail:
k629RrSW055434 [219.82.19
smmsp 92  0.0  0.2  3296  960  ??  Is   Wed03PM   0:00.30 sendmail:
Queue [EMAIL PROTECTED]:30:00 for
root  89  0.0  0.3  3776 1420  ??  Ss   Wed03PM   0:25.13 sendmail:
accepting connections (se
root   55441  0.0  0.1  1020  500  p0  DL+  11:28AM   0:00.00 grep sendmail

I was hoping someone could give me a hand here so I can get this issue
resolved.

Thanks!

Best regards,
Andreas W. Andersen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: batching port builds

2006-07-02 Thread Nikolas Britton

On 6/30/06, Kevin Kinsey [EMAIL PROTECTED] wrote:

Michael P. Soulier wrote:
 On 30/06/06 David J Brooks said:

 If you  do 'make -DBATCH' instead of 'make' -  you will use the preset
 defaults for each port with options. Or you can do
 'make config-recursive' - which will offer you all the option screens for
 the port in whose directory you're currently in and all its dependencies.

 See 'man ports' for more information.

 To use those with 'portupgrade -a' will probably take some custom scripting.

 Ah, so there's no make.conf option for this?


??  You can even set BATCH=yes in your environment.  I'm
pretty sure you can in make.conf, also, but IIRC you might
not want to do that . . .



Why??? What I do is set BATCH=yes in make.conf and If I need to change
the default options I use a if block in make.conf:

.if ${.CURDIR:M*/databases/mysql*}
BROKEN=yes
.endif

.if ${.CURDIR:M*/www/horde*}
WITHOUT_MYSQL=yes WITH_POSTGRESQL=yes
.endif

.if ${.CURDIR:M*/foo/bar}
baz
.endif

Et Cetera, etc.

The first one halts any port that wants MySQL as a dependence. The
rest is self explanatory. You can also put any make option in them
because it works like a Makefile, here is an imaginary example:

.if ${.CURDIR:M*/www/firefox*}
PORTNAME=opera
DISTVERSION=18
CPUTYPE=athlon512
MASTER_SITE_OVERRIDE=http://foobar
PERL_VER=8.6.5
PERL_VERSION=8.6.5
WANT_GNOME=no-way
WANT_QT=hell-yes
CFLAGS+= -O3
USE_GCC=10
OSVERSION=120
.include ${.CURDIR}/../../x11/kde3/Makefile
.endif




--
BSD Podcasts @:
http://bsdtalk.blogspot.com/
http://freebsdforall.blogspot.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Snapshot problems

2006-07-02 Thread Andrea Venturoli

Hello.
I run an amd64 6.1 IMAP server.
I do nightly backups by stopping cyrus imapd, taking a snapshot,
restarting the server and then backup from the snapshot.

However, I get two kind of problems:

a) when I mount the snapshot I get:

Jun 30 01:04:56 golia kernel: WARNING: /var was not properly dismounted
Jun 30 01:04:56 golia kernel: /var: mount pending error: blocks -320 files 0

b) during backup I sometimes get some messages like the following:

Could not stat /var/local/snapmnt/spool/imap/user/xxx/cyrus.index:
ERR=Bad file descriptor


I believe the first one is a known problem, any more info?

Any hint on the second?

 bye  Thanks
av.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: permission denied on /dev/ttyd0

2006-07-02 Thread Yousef Raffah
On Sat, 2006-07-01 at 20:55 +0300, Yousef Raffah wrote:
 Hello..
 
 It's kinda strange though but I am getting a permission denied when I
 try to read from the /dev/ttyd0 device although I have:
 
 crw---  1 root  wheel0,  75 Jul  1 20:49 /dev/ttyd0
 crw---  1 root  wheel0,  76 Jul  1 20:45 /dev/ttyd0.init
 crw---  1 root  wheel0,  77 Jul  1 20:45 /dev/ttyd0.lock
 
I really can't understand what is causing this, anyone?
I just thought of adding my dmesg output in case it makes a difference:

Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights
reserved.
FreeBSD 6.1-RELEASE-p1 #0: Sat Jul  1 19:30:56 AST 2006
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/LAPTOP
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) M processor 1.86GHz (1862.01-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x6d8  Stepping = 8

Features=0xafe9f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,
  
MMX,FXSR,SSE,SSE2,SS,TM,PBE
  Features2=0x180EST,TM2
real memory  = 536735744 (511 MB)
avail memory = 515883008 (491 MB)
kbd1 at kbdmux0
cpu0 on motherboard
pcib0: Host to PCI bridge pcibus 0 on motherboard
pir0: PCI Interrupt Routing Table: 12 Entries on motherboard
pci0: PCI bus on pcib0
pcib1: PCIBIOS PCI-PCI bridge irq 11 at device 1.0 on pci0
pci1: PCI bus on pcib1
pci1: display, VGA at device 0.0 (no driver attached)
pcib2: PCIBIOS PCI-PCI bridge irq 10 at device 28.0 on pci0
pci2: PCI bus on pcib2
pci2: network, ethernet at device 0.0 (no driver attached)
pcib3: PCIBIOS PCI-PCI bridge irq 11 at device 28.1 on pci0
pci3: PCI bus on pcib3
uhci0: Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-A port
0x1200-0x121f irq 11 at device 29.  
0 on pci0
uhci0: [GIANT-LOCKED]
usb0: Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-A on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-B port
0x1220-0x123f irq 11 at device 29.  
1 on pci0
uhci1: [GIANT-LOCKED]
usb1: Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-B on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-C port
0x1240-0x125f irq 11 at device 29.  
2 on pci0
uhci2: [GIANT-LOCKED]
usb2: Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-C on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3: Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-D port
0x1260-0x127f irq 11 at device 29.  
3 on pci0
uhci3: [GIANT-LOCKED]
usb3: Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-D on uhci3
usb3: USB revision 1.0
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0: Intel 82801FB (ICH6) USB 2.0 controller mem
0xf400-0xf40003ff irq 11 at device 29.7 on   
pci0
ehci0: [GIANT-LOCKED]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: Intel 82801FB (ICH6) USB 2.0 controller on ehci0
usb4: USB revision 2.0
uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
pcib4: PCIBIOS PCI-PCI bridge at device 30.0 on pci0
pci6: PCI bus on pcib4
iwi0: Intel(R) PRO/Wireless 2200BG mem 0xb000b000-0xb000bfff irq 11 at
device 4.0 on pci6
iwi0: Ethernet address: 00:12:f0:63:ae:ca
cbb0: PCI-CardBus Bridge mem 0x1300-0x13000fff at device 6.0 on
pci6
cardbus0: CardBus bus on cbb0
pccard0: 16-bit PCCard bus on cbb0
fwohci0: 1394 Open Host Controller Interface mem
0xb000-0xb7ff,0xb0004000-0xb0007fff irq 1  
1 at device 6.2 on pci6
fwohci0: OHCI version 1.10 (ROM=0)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:08:0d:a0:d1:bf:aa:e1
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: IEEE1394(FireWire) bus on fwohci0
sbp0: SBP-2/SCSI over FireWire on firewire0
fwohci0: Initiate bus reset
fwohci0: node_id=0xc000ffc0, gen=2, CYCLEMASTER mode
firewire0: 1 nodes, maxhop = 0, cable IRM = 0 (me)
firewire0: bus manager 0 (me)
fwohci0: phy int
pci6: mass storage at device 6.3 (no driver attached)
pci6: base peripheral at device 6.4 (no driver attached)
pcm0: Intel ICH6 (82801FB) port 0xe000-0xe0ff,0xe100-0xe13f mem
0xd000-0xd1ff,0xd200-0  
xd2ff irq 10 at device 30.2 on pci0
pcm0: Analog Devices AD1981B AC97 Codec
pci0: simple comms, generic modem at device 30.3 (no driver attached)
isab0: PCI-ISA bridge at device 31.0 on pci0
isa0: ISA bus on isab0
atapci0: Intel ICH6 SATA150 controller port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1100-0x110f at d  
evice 31.2 on pci0
atapci0: failed to enable memory mapping!

Kill an stopped process

2006-07-02 Thread O. Hartmann
Sometimes it happens on my FreeBSD 6.1-STABLE/AMD box, that a process, 
in most cases xine, firefox oder thunderbird, show status 'STOP' in top 
and are unkillable!
Trying to kill them as root (sending signal 9 throught 'kill' or 
'killall') doesn't have any effect.


Can anyone help and tell how to kill such a job? The only way  getting 
rid of those processes is reboot the box and this can not be the right way.


Thanks,
oh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Can't print to CUPS from Macintosh

2006-07-02 Thread Charles Howse

Hi,
I need some help getting a FreeBSD print server to print jobs from my  
Mac.
Previous versions of CUPS worked perfect on the same computer(s),  
same version of FreeBSD.


FreeBSD 6.1-RELEASE-p2, cups-1.2.0, Mac OS X 10.4.7

Printing a test page from the web interface works fine, and the  
printer is on my browse list on the Mac, but printing from the Mac  
doesn't work.


I've tried printing plain text, pdf, and MS Word for Mac files.
All fail with /usr/local/libexec/cups/filter/foomatic-rip failed  
displayed on the printer page of the web interface,


A single sheet of paper is ejected from the printer, with this:
Error: /undefined in Produced
 Operand stack:
   Execution stack:
  % 
interp_exit .ru

(Note the stair-step effect)

The error log is here: http://bubbabbq.homeunix.net/error_log

[EMAIL PROTECTED] /root# cat /usr/local/etc/cups/cupsd.conf
# Log general information in error_log - change info to debug for
# troubleshooting...
LogLevel debug


# Administrator user group...
SystemGroup wheel


# Only listen for connections from the local machine.
Listen 127.0.0.1:631
Listen 192.168.254.4:631
Listen /var/run/cups.sock


# Show shared printers on the local network.
Browsing On
BrowseAddress 192.168.254.255:631
BrowseOrder allow,deny
BrowseAllow from all


# Authenticate against system accounts by default...
DefaultAuthType Basic

# Restrict access to the server...
Location /
  Order allow,deny
  Allow localhost
  Allow 192.168.254.3
/Location

# Restrict access to the admin pages...
Location /admin
  Encryption Required
  Order allow,deny
  Allow localhost
  Allow 192.168.254.3
/Location

# Restrict access to configuration files...
Location /admin/conf
  AuthType Basic
  Require user @SYSTEM
  Order allow,deny
  Allow localhost
  Allow 192.168.254.3
/Location

# Set the default printer/job policies...
Policy default
  # Job-related operations must be done by the owner or an  
adminstrator...
  Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job  
Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew- 
Subscription Cancel-Subscription Get-Notifications Reprocess-Job  
Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job

Require user @OWNER @SYSTEM
Order deny,allow
  /Limit

  # All administration operations require an adminstrator to  
authenticate...
  Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable- 
Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs  
Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart- 
Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job- 
After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete- 
Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default

AuthType Basic
Require user @SYSTEM
Order deny,allow
  /Limit

  # Only the owner or an administrator can cancel or authenticate a  
job...

  Limit Cancel-Job CUPS-Authenticate-Job
Require user @OWNER @SYSTEM
Order deny,allow
  /Limit

  Limit All
Order deny,allow
  /Limit
/Policy


[EMAIL PROTECTED] /root# cat /usr/local/etc/cups/printers.conf
# Printer configuration file for CUPS v1.2.0
# Written by cupsd on 2006-07-01 17:16
DefaultPrinter HP1100
Info HP1100 LaserJet
Location Desktop
DeviceURI parallel:/dev/lpt0
State Idle
StateTime 1151788202
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
/Printer

--
How I make Great Barbecue -
http://bubbabbq.homeunix.net/bbq.html


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


cups 1.2 - no output

2006-07-02 Thread Rainer Heesen
Dear all

after upgrading to cups 1.2, my printer doesn't print anymore. There is no 
output. I  read the thread concerning cups  permission denied and added the 
file /etc.devfs.rules. 

My printer is a Konica Minolta Pagepro 1300 W, that has an usb as well as a 
parallel interface. First, I tried to use the parallel port. The cups log 
file says that the job is ok, but the printer doen't print (see attachted 
logfile parallel.txt). Then I called parallel directly and I received an 
error:

/usr/local/libexec/cups/backend/parallel 21 guest test 1 /etc/hosts
STATE: +connecting-to-device
INFO: Printer not connected; will retry in 30 seconds...
^C

My second approach was to use the usb interface. I installed cups with the 
backend patch from Jan-Espen Pettersen. Here I get these error messages:

system default destination: Minolta
printer Minolta now printing Minolta-53.  enabled since Sun Jul  2 16:27:24 
2006
USB port busy; will retry in 30 seconds...
scheduler is running
system default destination: Minolta
device for Minolta: usb:/dev/ulpt0
Minolta accepting requests since Sun Jul  2 16:27:24 2006
printer Minolta now printing Minolta-53.  enabled since Sun Jul  2 16:27:24 
2006
USB port busy; will retry in 30 seconds...
Minolta-53  rainer  346112   Sun Jul  2 16:27:24 2006

The printer works fine under windows. So, I think it's a software problem. Do 
you have any hint for me?

Kind regards

 Rainer


 
D [29/Jun/2006:22:40:52 +0200] [Job 40] Sending job to queue tagged as raw...
D [29/Jun/2006:22:40:52 +0200] Discarding unused printer-state-changed event...
D [29/Jun/2006:22:40:52 +0200] job-sheets=none,none
D [29/Jun/2006:22:40:52 +0200] banner_page = 0
D [29/Jun/2006:22:40:52 +0200] [Job 40] argv[0]=Minolta
D [29/Jun/2006:22:40:52 +0200] [Job 40] argv[1]=40
D [29/Jun/2006:22:40:52 +0200] [Job 40] argv[2]=rainer
D [29/Jun/2006:22:40:52 +0200] [Job 40] argv[3]=Firefox Central | Mozilla 
Corporation
D [29/Jun/2006:22:40:52 +0200] [Job 40] argv[4]=1
D [29/Jun/2006:22:40:52 +0200] [Job 40] 
argv[5]=job-uuid=urn:uuid:b33b3ad1-0131-3c40-78a7-f0e8d7e3c253
D [29/Jun/2006:22:40:52 +0200] [Job 40] argv[6]=/var/spool/cups/d00040-001
D [29/Jun/2006:22:40:52 +0200] [Job 40] envp[0]=CUPS_CACHEDIR=/var/cache/cups
D [29/Jun/2006:22:40:52 +0200] [Job 40] 
envp[1]=CUPS_DATADIR=/usr/local/share/cups
D [29/Jun/2006:22:40:52 +0200] [Job 40] 
envp[2]=CUPS_DOCROOT=/usr/local/share/doc/cups
D [29/Jun/2006:22:40:52 +0200] [Job 40] 
envp[3]=CUPS_FONTPATH=/usr/local/share/cups/fonts
D [29/Jun/2006:22:40:52 +0200] [Job 40] 
envp[4]=CUPS_REQUESTROOT=/var/spool/cups
D [29/Jun/2006:22:40:52 +0200] [Job 40] 
envp[5]=CUPS_SERVERBIN=/usr/local/libexec/cups
D [29/Jun/2006:22:40:52 +0200] [Job 40] 
envp[6]=CUPS_SERVERROOT=/usr/local/etc/cups
D [29/Jun/2006:22:40:52 +0200] [Job 40] envp[7]=CUPS_STATEDIR=/var/run/cups
D [29/Jun/2006:22:40:52 +0200] [Job 40] 
envp[8]=PATH=/usr/local/libexec/cups/filter:/usr/local/bin:/usr/local/sbin:/bin:/usr/bin
D [29/Jun/2006:22:40:52 +0200] [Job 40] envp[9]=[EMAIL PROTECTED]
D [29/Jun/2006:22:40:52 +0200] [Job 40] envp[10]=SOFTWARE=CUPS/1.2.0
D [29/Jun/2006:22:40:52 +0200] [Job 40] envp[11]=TMPDIR=/var/spool/cups/tmp
D [29/Jun/2006:22:40:52 +0200] [Job 40] envp[12]=USER=root
D [29/Jun/2006:22:40:52 +0200] [Job 40] 
envp[13]=CUPS_SERVER=/var/run/cups.sock
D [29/Jun/2006:22:40:52 +0200] [Job 40] envp[14]=CUPS_ENCRYPTION=IfRequested
D [29/Jun/2006:22:40:52 +0200] [Job 40] envp[15]=IPP_PORT=631
D [29/Jun/2006:22:40:52 +0200] [Job 40] envp[16]=CHARSET=utf-8
D [29/Jun/2006:22:40:52 +0200] [Job 40] envp[17]=LANG=en_US
D [29/Jun/2006:22:40:52 +0200] [Job 40] 
envp[18]=PPD=/usr/local/etc/cups/ppd/Minolta.ppd
D [29/Jun/2006:22:40:52 +0200] [Job 40] envp[19]=RIP_MAX_CACHE=8m
D [29/Jun/2006:22:40:52 +0200] [Job 40] 
envp[20]=CONTENT_TYPE=application/postscript
D [29/Jun/2006:22:40:52 +0200] [Job 40] envp[21]=DEVICE_URI=parallel:/dev/lpt0
D [29/Jun/2006:22:40:52 +0200] [Job 40] envp[22]=PRINTER=Minolta
d [29/Jun/2006:22:40:52 +0200] start_job: status_pipes = [ 11 12 ]
d [29/Jun/2006:22:40:52 +0200] start_job: filterfds[1] = [ 13 -1 ]
d [29/Jun/2006:22:40:52 +0200] start_job: 
backend=/usr/local/libexec/cups/backend/parallel
d [29/Jun/2006:22:40:52 +0200] start_job: filterfds[0] = [ -1 14 ]
d [29/Jun/2006:22:40:52 +0200] 
cupsdStartProcess(/usr/local/libexec/cups/backend/parallel, 0x80dc1c0, 
0xbfbeb4b0, 13, 14, 12)
I [29/Jun/2006:22:40:52 +0200] Started backend 
/usr/local/libexec/cups/backend/parallel (PID 1327) for job 40.
d [29/Jun/2006:22:40:52 +0200] start_job: Closing print pipes [ -1 -1 ]...
d [29/Jun/2006:22:40:52 +0200] start_job: Closing back pipes [ 9 10 ]...
d [29/Jun/2006:22:40:52 +0200] start_job: Closing status output pipe 12...
d [29/Jun/2006:22:40:52 +0200] start_job: Closing filter pipes for slot 0 [ -1 
14 ]...
d [29/Jun/2006:22:40:52 +0200] start_job: Adding fd 11 to InputSet...
D [29/Jun/2006:22:40:52 +0200] Discarding unused job-state event...
D 

How to disconnect ADSL

2006-07-02 Thread Benny Au

Hello,
I'm a novice of FreeBSD. I just can use ppp -ddial adsl to connect
to my ISP, but can't disconnect it. Could u tell me the command?
Additionally, where can I get a GUI tool for PPPoE?
Thanks!

Best regards,

Benny Au
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


portversion and sudo

2006-07-02 Thread Tankko

I have two machines running the same version of 5.3, and all ports are
current on both, but, on one of the machines, if I run portversion I
get this:

undefined method `each' for nil:NilClass
/usr/local/sbin/portversion:239: [BUG] Bus Error
ruby 1.8.4 (2005-12-24) [i386-freebsd5]

Abort trap

If I run sudo portversion, it works.

Does anyone know why I can run portversion on one of the machines
and have to run sudo portversion on the other?

I can run pkg_version of either machine without sudo.

Tankko
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


another newbie

2006-07-02 Thread Isaac Friedman
I am new to UNIX but know the basics of getting
around, writing simple shell scripts, etc. Is there
any way to use a short perl program as a shell script?



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


SIS 965L ATA support

2006-07-02 Thread Scott Lipcon

Hi all,

I just got an Asus A8S-X motherboard, and probably should have done more
research.   I've managed to get it all working except for the ATA support
(PATA - I haven't tried SATA yet)I'm running FreeBSD 5-STABLE (Was
5.4-STABLE, I just upgraded to 5.5-STABLE in hopes it would help) I'm
running i386, not amd64, if that makes any difference as well.

This board has a SIS 965L southbridge, but its recognizing it as a generic
5513.  the Linux driver seems to be able to identify it based on a trueid
field, but I don't know enough about the ata code to see how to detect that.

The disks aren't being detected properly - if I boot with a disk plugged in,
it prints a DMA TIMEOUT error and hangs hard as soon as it probes the disk.
 If no disks are connected, it boots fine.  I'm hoping a small patch to
ata-chipset.c will allow this to work.

# pciconf -l | grep atapci
[EMAIL PROTECTED]:2:5:   class=0x010180 card=0x55131039 chip=0x55131039
rev=0x01 hdr=0x00
[EMAIL PROTECTED]:5:0:   class=0x010185 card=0x01801039 chip=0x01821039
rev=0x01 hdr=0x00


# dmesg | grep atacpi
atapci0: SiS 5513 WDMA2 controller port
0xffa0-0xffaf,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 2.5 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
atapci1: SiS 5513 WDMA2 controller port
0x9400-0x940f,0x9800-0x9803,0xa000-0xa007,0xa400-0xa403,0xa800-0xa807 irq 17
at device 5.0 on pci0
ata2: channel #0 on atapci1
ata3: channel #1 on atapci1


The board also had the same problem described in
http://people.fruitsalad.org/adridg/development.a8nvm.php, but I was able to
get past that using his technique.

I see that FreeBSD 6-STABLE has support for the SIS965 - is that the same as
the 965L? Ideally I'd rather not upgrade to 6.x right now if possible.
Should I return the board?

Please cc me on any responses.

Thanks,
Scott
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to disconnect ADSL

2006-07-02 Thread Shantanoo Mahajan
+++ Benny Au [freebsd] [02-07-06 23:18 +0800]:
| Hello,
| I'm a novice of FreeBSD. I just can use ppp -ddial adsl to connect
| to my ISP, but can't disconnect it. Could u tell me the command?
| Additionally, where can I get a GUI tool for PPPoE?
| Thanks!

try
# killall ppp

Shantanoo
-- 
Ignore everybody.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


My DNS servers! They won't reload!

2006-07-02 Thread João Michigan
Hay!

Greetings from tropical Singapore!

(though my surroundings are pretty much concrete)

I'm experiencing difficulties reloading named on both my servers.

named.conf and zone files on both servers have been tested elsewhere
and works fine. If the problem should appear to be in one or more of
those files let me know and I will include them to this list.

So, here we go:

*shrug*

-- Server 1 FreeBSD 6.1-STABLE: Fri May 12 05:26:00 CEST 2006

# rndc reload
rndc: connection to remote host closed
This may indicate that the remote server is using an older version of
the command protocol, this host is not authorized to connect,
or the key is invalid.

# netstat -Sa | grep rndc
tcp6   0  0  ::1.rndc*.*LISTEN
tcp4   0  0  127.0.0.1.rndc  *.*LISTEN

# rndc
Version: 9.3.2

# named  -v
BIND 9.3.2

I've tried using rndc-confgen to create a new rndc.key, as well as

 rndc.conf and references in named.conf, but the problem won't go away.


-- Server 2 FreeBSD 6.1-STABLE: Wed Jun 28 18:15:20 UTC 2006

# rndc reload
rndc: decode base64 secret: bad base64 encoding

# netstat -Sa | grep rndc
nothing

# rndc
Version: 9.3.2

# named -v
BIND 9.3.2

I have no idea what to do in either case.
I've asked Google, but I haven't found any answers of relevance.

That's it I guess. I hope someone out there can help me.

Thank you,
João Michigan
 From: http://www.flickr.com/photos/tags/singapore/interesting/show



-

 The World Cup Is Now On Your Favorite Front Page - check out www.yahoo.com.sg
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem after update to 6.1

2006-07-02 Thread Martin Schweizer
Hello Lowell

I find out the problem. In /etc/rc.d was one file which was not a rc.d script. 


Am Mon, Jun 26, 2006 at 08:25:34AM -0400 Lowell Gilbert schrieb:
 Martin Schweizer [EMAIL PROTECTED] writes:
 
  Since I updated 5.4R to 6.1R I get the following messages after reboot:
 
  [snip]
  Starting sshd.
  Starting cyrus_imapd.
  Starting sendmail.
  Starting cron.
  Local package initialization: apcupsd.
  Additional TCP options:.
  Starting default moused:.
  Starting inetd.
  Starting background file system checks in 60 seconds.
  /etc/rc: Cannot determine the PREFIX
  Enter full pathname of shell or RETURN for /bin/sh:
  #
 
  ... and I get no login prompt here. What is going wrong?
 
  I did the update like described in /usr/src/UPDATING:
  [snip]
 To upgrade in-place from 5.x-stable or higher to 6.x-stable
  ---
  make sure you have good level 0 dumps
  make buildworld [9]
  make kernel KERNCONF=YOUR_KERNEL_HERE   [8]
  [1]
  reboot in single user [3]
  mergemaster -p  [5]
  make installworld
  make delete-old
  mergemaster -i  [4]
  reboot
  [snip]
 
 My best guess would be a mistake in the mergemaster portion, because I
 can't even find the message you're getting.  The system is going into
 single-user mode; use that to find the Cannot determine the PREFIX
 in the rc files, and install the latest version of whatever rc file
 that's in.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

-- 

Regards
Gruss
Mit freundlichen Grüssen

Martin Schweizer
[EMAIL PROTECTED]

PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon
Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch;
public key : http://www.pc-service.ch/pgp/public_key.asc; 
fingerprint: EC21 CA4D 5C78 BC2D 73B7  10F9 C1AE 1691 D30F D239;



pgpGLF7q0qcI7.pgp
Description: PGP signature


RE: How to disconnect ADSL

2006-07-02 Thread fbsd
kill -1 $(cat /var/run/tun0.pid)

Or

You stop user PPP by killing the task; there is no hang up command.

killall ppp


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Benny Au
Sent: Sunday, July 02, 2006 11:18 AM
To: [EMAIL PROTECTED]
Subject: How to disconnect ADSL


Hello,
I'm a novice of FreeBSD. I just can use ppp -ddial adsl to connect
to my ISP, but can't disconnect it. Could u tell me the command?
Additionally, where can I get a GUI tool for PPPoE?
Thanks!

Best regards,

Benny Au
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: another newbie

2006-07-02 Thread Andrew Pantyukhin

On 7/2/06, Isaac Friedman [EMAIL PROTECTED] wrote:

I am new to UNIX but know the basics of getting
around, writing simple shell scripts, etc. Is there
any way to use a short perl program as a shell script?


sat64% cat  __END__  ./script.pl
#!/usr/local/bin/perl -w
print Hello world!\n;
__END__
sat64% chmod a+x ./script.pl
sat64% ./script.pl
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: My DNS servers! They won't reload!

2006-07-02 Thread Atom Powers

On 7/2/06, João Michigan [EMAIL PROTECTED] wrote:

Hay!

Greetings from tropical Singapore!
(though my surroundings are pretty much concrete)
I'm experiencing difficulties reloading named on both my servers.

named.conf and zone files on both servers have been tested elsewhere
and works fine. If the problem should appear to be in one or more of
those files let me know and I will include them to this list.


Test the zone files. ( read 'man named-checkzone' ) Particularly if
you are importing from an older version of BIND.


So, here we go:

*shrug*

-- Server 1 FreeBSD 6.1-STABLE: Fri May 12 05:26:00 CEST 2006
# rndc reload
rndc: connection to remote host closed
This may indicate that the remote server is using an older version of
the command protocol, this host is not authorized to connect,
or the key is invalid.


Did you set up your rndc configs? Because rndc uses a password in the
conf files to communicate it will not work with a default
configuration. Read 'man rndc'.

You can also reload your configs by restarting named: `/etc/rc.d/named restart'

Also. named is configured to run chrooted by default, make sure you
run the above restart command to set the correct permissions on the
chrooted directory.

--
--
Perfection is just a word I use occasionally with mustard.
--Atom Powers--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


cannot upgrade

2006-07-02 Thread Michael P. Soulier
Um, what does this mean?

** Detected a package name change: apr-db42 (devel/apr-svn) - 'apr-gdbm-db42'
(devel/apr-svn)
** No need to upgrade 'apr-db42-1.2.7_1' (= apr-gdbm-db42-1.2.7_1). (specify
-f to force)
[Updating the pkgdb format:bdb_btree in /var/db/pkg ...
/var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument;
rebuild needed] [Rebuilding the pkgdb format:bdb_btree in /var/db/pkg ...
/var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument:
Cannot update the pkgdb!]: Cannot update the pkgdb!]
/usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:444:in `__system': Command
failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ (CommandFailedError)
from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:467:in `__sudo'
from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:473:in `xsystem!'
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:960:in `autofix!'
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:956:in `autofix'
from /usr/local/sbin/portupgrade:475:in `main'
from /usr/local/sbin/portupgrade:714:in `main'
from /usr/local/lib/ruby/1.8/optparse.rb:815:in `initialize'
from /usr/local/sbin/portupgrade:209:in `main'
from /usr/local/sbin/portupgrade:1951

Thanks,
Mike

-- 
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction. --Albert Einstein


pgpw6HPq5dcx4.pgp
Description: PGP signature


Re: cannot upgrade

2006-07-02 Thread Michael P. Soulier
On 02/07/06 Michael P. Soulier said:

 Cannot update the pkgdb!]: Cannot update the pkgdb!]
 /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:444:in `__system': Command
 failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ (CommandFailedError)
 from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:467:in `__sudo'
 from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:473:in `xsystem!'
 from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:960:in `autofix!'
 from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:956:in `autofix'
 from /usr/local/sbin/portupgrade:475:in `main'
 from /usr/local/sbin/portupgrade:714:in `main'
 from /usr/local/lib/ruby/1.8/optparse.rb:815:in `initialize'
 from /usr/local/sbin/portupgrade:209:in `main'
 from /usr/local/sbin/portupgrade:1951

[EMAIL PROTECTED] ~]# pkgdb -F
---  Checking the package registry database
[Updating the pkgdb format:bdb_btree in /var/db/pkg ...
/var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument;
rebuild needed] [Rebuilding the pkgdb format:bdb_btree in /var/db/pkg ...
/var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument:
Cannot update the pkgdb!]: Cannot update the pkgdb!]

This doesn't look good.

Mike

-- 
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction. --Albert Einstein


pgpBBoVa8wZA6.pgp
Description: PGP signature


FreeBSD add user script syntax

2006-07-02 Thread Steve A
I've got Samba set up as a domain controller successfully, and am now 
wanting to user usrmgr.exe and svrmgr.exe to make basic user admin changes 
from a Windows workstation.

Some stuff works, and some stuff doesn't, and I was looking for some help 
with the script sections listed here...

What works:

add user script = pw user add -n %u -g users -c Windows User -s
/usr/bin/nologin
delete user script = pw user del -n %u -r
add group script = pw group add -n %g
add machine script = pw user add -n %u -g winstations -c Windows_Machine -s 
/usr/sbin/nologin

What doesn't work:

delete group script = pw group del -n %g
add user to group script = pw group mod -n %g -M %u
set primary group script = pw user mod -n %u -g %g

What I can't figure out:

rename user script =
delete user from group script =


Does anyone have examples that work that could pinch please?

Many thanks,
Steve :)



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Help fixing sendmail crassh

2006-07-02 Thread Giorgos Keramidas
On 2006-07-02 11:32, Andreas Wider?e Andersen [EMAIL PROTECTED] wrote:
 Hi,
 Sendmail exits about every 30 minutes. I suspect it has to do with some
 mailqueues running, but I don't know how to stop or fix it.

 Running FreeBSD 4.11 p19
 Sendmail 8.13.1

 from /var/log/messages

 Jul  1 20:41:02 malibu /kernel: pid 50923 (sendmail), uid 0: exited on signal 
 11
 Jul  1 21:08:59 malibu /kernel: pid 51058 (sendmail), uid 0: exited on signal 
 11
 Jul  1 21:39:00 malibu /kernel: pid 51252 (sendmail), uid 0: exited on signal 
 11
 Jul  1 22:07:39 malibu /kernel: pid 51374 (sendmail), uid 0: exited on signal 
 11

Are other programs crashing with signal 11 too?  This may be a hardware
problem.  I've been running Sendmail on FreeBSD for ages without any
sign of signal 11:

# cd /var/log
# ( bzcat $( ls -d1 messages*bz2 | sort -r) ; cat messages ) | grep 
'sendmail.*signal'
#

 I was hoping someone could give me a hand here so I can get this issue
 resolved.

* What local configuration changes have you made to the standard
  freebsd.mc and freebsd.submit.mc files?

* Have you checked your memory for errors (see the sysutils/memtest and
  the sysutils/memtest86 ports).

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Etk compilation problem

2006-07-02 Thread Luchezar Petkov
Hi list,
I'm trying to compile Etk (Enlightenment ToolKit, e17 library) from source 
(cvs).
Everything is fine, just that:

../../src/lib/.libs/libetk.so: undefined reference to `libintl_bindtextdomain'
../../src/lib/.libs/libetk.so: undefined reference to `libintl_gettext'
../../src/lib/.libs/libetk.so: undefined reference to `libintl_textdomain'
gmake[3]: *** [etk_test] Error 1


Some information about my system:
---
$uname -a
FreeBSD lilly.evo.bg 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May  7 04:32:43 
UTC 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386
---
$export | grep CFLAGS
CFLAGS= -g -L/usr/X11R6/lib -L/usr/local/lib -I/usr/local/include 
-I/usr/X11R6/include
---
$locate libintl
/usr/local/include/libintl.h
/usr/local/lib/libintl.a
/usr/local/lib/libintl.la
/usr/local/lib/libintl.so
/usr/local/lib/libintl.so.6

Using Bash (it failed with Zsh..).

Thank you.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD add user script syntax

2006-07-02 Thread bsd
 I've got Samba set up as a domain controller successfully, and am now
 wanting to user usrmgr.exe and svrmgr.exe to make basic user admin changes
 from a Windows workstation.

 Some stuff works, and some stuff doesn't, and I was looking for some help
 with the script sections listed here...

 What works:

 add user script = pw user add -n %u -g users -c Windows User -s
 /usr/bin/nologin
 delete user script = pw user del -n %u -r
 add group script = pw group add -n %g
 add machine script = pw user add -n %u -g winstations -c Windows_Machine
 -s
 /usr/sbin/nologin

 What doesn't work:

 delete group script = pw group del -n %g
 add user to group script = pw group mod -n %g -M %u
 set primary group script = pw user mod -n %u -g %g

 What I can't figure out:

 rename user script =
 delete user from group script =


 Does anyone have examples that work that could pinch please?

 Many thanks,
 Steve :)

Steve,

How did you setup samba? There are several ways to do this. There are very
useful guides on the samba site. There are also variuos scripts for adding
users etc on the IDEALX site:
http://www.idealx.com/content/view/141/146/lang,fr/index.en.html

Rob

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD add user script syntax

2006-07-02 Thread Steve A
[EMAIL PROTECTED] wrote:
 How did you setup samba? There are several ways to do this. There are very
 useful guides on the samba site. There are also variuos scripts for adding
 users etc on the IDEALX site:
 http://www.idealx.com/content/view/141/146/lang,fr/index.en.html

Many thanks Rob.

I've set up Samba as a PDC using tdbsam for the backend.  The difficulty I'm 
having is figuring out the script syntax for the add user stuff as listed in 
my previous post.  I've since read another reply that hints toward writing 
my own shell scripts to do the job.  If that's the right way to go - I'll do 
it :)

Cheers,
Steve :) 



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


setting ntp-servers for ntpdate via dhcp

2006-07-02 Thread Erik Nørgaard
Hi:

There is a dhcp-option, ntp-servers, to set which ntp-server to use. It
would be quite useful with ntpdate. Does anyone have a patch to ntpdate
startup script or other hack that use this option? - just before I start
hacking myself...

Thanks, Erik
-- 
Ph: +34.666334818  web: http://www.locolomo.org
X.509 Certificate: http://www.locolomo.org/crt/8D03551FFCE04F0C.crt
Key ID: 69:79:B8:2C:E3:8F:E7:BE:5D:C3:C3:B1:74:62:B8:3F:9F:1F:69:B9


smime.p7s
Description: S/MIME Cryptographic Signature


Re: cups 1.2 - no output

2006-07-02 Thread Jan-Espen Pettersen
Rainer Heesen wrote:
 USB port busy; will retry in 30 seconds...
   
fstat | grep ulpt0

.. will reveal which process is eventually having ulpt0 open, and
causing 'device busy'.
The usb backend seems to get this error while trying to open /dev/ulpt0.

Please also make sure that either the cups user or cups group has read
and write access to /dev/ulpt0.
I think most people use permissions like: root:cups 0660 (-rw-rw).

Jan-Espen Pettersen




signature.asc
Description: OpenPGP digital signature


Re: cannot upgrade

2006-07-02 Thread Jim Stapleton

I would guess that means the file was corrupted somehow, though I
don't know how.

At any rate, I don't know how to fix that, and not loose the stored information.

On 7/2/06, Michael P. Soulier [EMAIL PROTECTED] wrote:

On 02/07/06 Michael P. Soulier said:

 Cannot update the pkgdb!]: Cannot update the pkgdb!]
 /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:444:in `__system': Command
 failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ (CommandFailedError)
 from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:467:in `__sudo'
 from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:473:in `xsystem!'
 from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:960:in `autofix!'
 from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:956:in `autofix'
 from /usr/local/sbin/portupgrade:475:in `main'
 from /usr/local/sbin/portupgrade:714:in `main'
 from /usr/local/lib/ruby/1.8/optparse.rb:815:in `initialize'
 from /usr/local/sbin/portupgrade:209:in `main'
 from /usr/local/sbin/portupgrade:1951

[EMAIL PROTECTED] ~]# pkgdb -F
---  Checking the package registry database
[Updating the pkgdb format:bdb_btree in /var/db/pkg ...
/var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument;
rebuild needed] [Rebuilding the pkgdb format:bdb_btree in /var/db/pkg ...
/var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument:
Cannot update the pkgdb!]: Cannot update the pkgdb!]

This doesn't look good.

Mike

--
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction. --Albert Einstein




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: setting ntp-servers for ntpdate via dhcp

2006-07-02 Thread Jonathan Horne
On Sunday 02 July 2006 15:49, Erik Nørgaard wrote:
 Hi:

 There is a dhcp-option, ntp-servers, to set which ntp-server to use. It
 would be quite useful with ntpdate. Does anyone have a patch to ntpdate
 startup script or other hack that use this option? - just before I start
 hacking myself...

 Thanks, Erik

my ntp options in /etc/rc.conf look like this:


ntpdate_enable=YES
ntpdate_hosts=us.pool.ntp.org
ntpd_enable=YES

when my system boots, ntpdate forces the time to syncronize (no matter how far 
off it is), and then ntp takes over from there.

hth,
jonathan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Portupgrade

2006-07-02 Thread E. J. Cerejo
I'm running FreeBSD 6.1 release and after upgrading portupgrade using 
portupgrade itself I'm getting this message (message bellow) or similar one 
everytime I run one of the portupgrade commands like pkgdb -u or -F, 
portversion -L = or portupgrade itself.  Tells me that the database needs to be 
rebuild, I run portsdb -uU and I get this same error message (message bellow) 
it rebuilds with portsdb -fuU but still get this same message.

Error Message:

[Updating the pkgdb format:bdb_btree in /var/db/pkg ... /var/db/pkg/pkgdb.db: 
unexpected file type or format -- Invalid argument; rebuild needed] [Rebuilding 
the pkgdb format:bdb_btree in /var/db/pkg ... [Updating the pkgdb 
format:bdb_btree in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file 
type or format -- Invalid argument; rebuild needed] [Rebuilding the pkgdb 
format:bdb_btree in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file 
type or format -- Invalid argument: Cannot update the pkgdb!]: Cannot update 
the pkgdb!]
Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ

any clues on how to solve this?

Thanks.


EJC
www.only7bucks.com

-
 Você quer respostas para suas perguntas? Ou você sabe muito e quer 
compartilhar seu conhecimento? Experimente o Yahoo! Respostas!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cups 1.2 - no output

2006-07-02 Thread Nicolas Blais
On Sunday 02 July 2006 16:50, Jan-Espen Pettersen wrote:
 Rainer Heesen wrote:
  USB port busy; will retry in 30 seconds...

 fstat | grep ulpt0

 .. will reveal which process is eventually having ulpt0 open, and
 causing 'device busy'.
 The usb backend seems to get this error while trying to open /dev/ulpt0.

 Please also make sure that either the cups user or cups group has read
 and write access to /dev/ulpt0.
 I think most people use permissions like: root:cups 0660 (-rw-rw).

 Jan-Espen Pettersen

Also make sure that /vad/cache/cups is writeable by group cups. 

-- 
FreeBSD 7.0-CURRENT #6: Sat Jul  1 12:22:48 EDT 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpxT5SXx7ptc.pgp
Description: PGP signature


Re: cannot upgrade

2006-07-02 Thread Kent Stewart
On Sunday 02 July 2006 14:23, Jim Stapleton wrote:
 I would guess that means the file was corrupted somehow, though I
 don't know how.

 At any rate, I don't know how to fix that, and not loose the stored
 information.

You pkgdb -fu and it recreates the database. You will also probably 
find that you need to recreate your INDEX[-*].db. After that, 
everything works just fine. All I did is run pkg-version and it rebuilt 
the INDEX.db.

Kent


 On 7/2/06, Michael P. Soulier [EMAIL PROTECTED] wrote:
  On 02/07/06 Michael P. Soulier said:
   Cannot update the pkgdb!]: Cannot update the pkgdb!]
   /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:444:in `__system':
   Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ
   (CommandFailedError) from
   /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:467:in `__sudo'
   from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:473:in
   `xsystem!' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:960:in
   `autofix!' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:956:in
   `autofix' from /usr/local/sbin/portupgrade:475:in `main'
   from /usr/local/sbin/portupgrade:714:in `main'
   from /usr/local/lib/ruby/1.8/optparse.rb:815:in
   `initialize' from /usr/local/sbin/portupgrade:209:in `main'
   from /usr/local/sbin/portupgrade:1951
 
  [EMAIL PROTECTED] ~]# pkgdb -F
  ---  Checking the package registry database
  [Updating the pkgdb format:bdb_btree in /var/db/pkg ...
  /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid
  argument; rebuild needed] [Rebuilding the pkgdb format:bdb_btree
  in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or
  format -- Invalid argument: Cannot update the pkgdb!]: Cannot
  update the pkgdb!]
 
  This doesn't look good.
 
  Mike
 
  --
  Michael P. Soulier [EMAIL PROTECTED]
  Any intelligent fool can make things bigger and more complex... It
  takes a touch of genius - and a lot of courage to move in the
  opposite direction. --Albert Einstein

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

-- 
Kent Stewart
Richland, WA

http://www.soyandina.com/ I am Andean project.
http://users.owt.com/kstewart/index.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to disconnect ADSL

2006-07-02 Thread Malcolm Fitzgerald


On 03/07/2006, at 1:18 AM, Benny Au wrote:


Hello,
I'm a novice of FreeBSD. I just can use ppp -ddial adsl to connect
to my ISP, but can't disconnect it.


Your modem probably has an admin control panel which will include a 
connect/disconnect switch. Check your manual for the modem url, 
192.168.1.1 and 10.0.0.138 are the ones I meet most often.



malcolm

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Getting NTP (ntpd, ntpdate) to work

2006-07-02 Thread Charles Bacon

Thanks for the return!  I've discovered my ISP has apparently shut off
port 123 (NTP), and if I dontpdate -u ntp.cape.comI get my
time set!  But ntpq lacks ntpdate's option to use an unprivileged port.
I guess time is come to ask my ISP.  (Shouldn't I have done tha before :-]

Again thanks!
Chuck Bacon -- [EMAIL PROTECTED]
ABHOR SECRECY -- DEFEND PRIVACY
PS: Yes, I use netmask 255.255.255.240 (0xfff0); a vain hope that
there's a tiny increment of security in it, and a belief in the definitions
of net classes.

On Sun, 18 Jun 2006, Nick Withers wrote:

On Sat, 17 Jun 2006 21:30:55 -0400 (EDT)
Charles Bacon [EMAIL PROTECTED] wrote:


Since FreeBSD 4.5-Release, I have been unable to get NTP working on
my two FreeBSD computers, one running 5.3Release and the other on
6.1Release.  I have done nothing with the GENERIC kernel on either
machine.  I talk SSH between them, and have been running ntpd on
both, each naming the other as well as two external servers.

My network is a typical home net, using 192.168.1/28,


You mean /24 (i.e.: 255.255.255.0, Class C), yeah?


served by a DSL router which does NAT for my external traffic.
Internal comms. is through switches, plus one hub.  Each computer
(plus some others running Windows) has easy access out, and is
invisible from the Internet exceptt for responses.

Here's my ntp.conf, identical on my two computers:

server ntp.cape.com
server ntp.ourconcord.net
driftfile /var/db/ntp.drift
logfile /var/log/ntplog
pidfile /var/run/ntpd.pid
logconfig =all
peer 192.168.1.3
peer 192.168.1.2(much comments removed)

With mediocre diagnostic skill, I have finally discovered tcpdump.
It told me after much experiment, that the relevant port (NTP, 123) was
unreachable.  This sounds significant, but I can't find a list of the
reachability of ports.


Try netstat(1). netstat -anp udp might be of help in
particular, here.


I've looked at ng*, mac_* and pf* and finally bpf*, and only the last seems
to exist in /dev.

I had expected that GENERIC would impose only slight filtering somehow,
and certainly not shut off NTP!  I guess I need help.


If you've loaded a firewall such as IPFW in /etc/rc.conf a
kernel module will be loaded for it, if it's not compiled
statically into hte kernel already (which it isn't on GENERIC
for either 5.3-RELEASE or 6.1-RELEASE). kldstat will list
loaded modules (and the IPFW module is ipfw.ko).


Thanks for any help you can give, and I accept any opprobrium for trying
to be a sysadmin, even for my home boxen.

Chuck Bacon -- [EMAIL PROTECTED]
ABHOR SECRECY -- DEFEND PRIVACY

--
Nick Withers
email: [EMAIL PROTECTED]
Web: http://www.nickwithers.com
Mobile: +61 414 397 446

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


can't link against net/Sockets

2006-07-02 Thread Xian
I've just installed /usr/ports/net/Sockets and cant link against libSockets 
that it produced.

Having fetched a some of the demo files from 
http://www.alhem.net/Sockets/tutorial/ I then try to compile:

c++ -O2 -fno-strict-aliasing -pipe -march=athlon-xp -g 
-I/usr/local/include/Sockets -c 
DisplaySocket.cpp
c++ -O2 -fno-strict-aliasing -pipe -march=athlon-xp -g 
-I/usr/local/include/Sockets -c 
displayserver.cpp
c++ -O2 -fno-strict-aliasing -pipe -march=athlon-xp -g 
-I/usr/local/include/Sockets -L/usr/local/lib -lpthread -lSockets -lSocketsEx 
-pthread -o 
displayserver DisplaySocket.o displayserver.o
DisplaySocket.o(.text+0x15): In function 
`DisplaySocket::DisplaySocket(SocketHandler)':
/home/ian/devel/snake/server/test/DisplaySocket.cpp:8: undefined reference to 
`TcpSocket::TcpSocket(SocketHandler)'
DisplaySocket.o(.text+0x45): In function 
`DisplaySocket::DisplaySocket(SocketHandler)':
/home/ian/devel/snake/server/test/DisplaySocket.cpp:8: undefined reference to 
`TcpSocket::TcpSocket(SocketHandler)

And a lot more similar errors. It looks like it can't find libSockets, is this 
right? Why not?
How do I make it work.

ll /usr/local/lib/libSockets*
-r--r--r--  1 root  wheel   2.8M Jul  1 11:04 /usr/local/lib/libSockets.a
-r--r--r--  1 root  wheel   514K Jul  1 11:04 /usr/local/lib/libSocketsEx.a

Any help much appreciated.
-- 
/Xian

We the willing, led by the unknowing, are doing the impossible for the 
ungrateful. We have done so much for so long with so little, we can do 
anything with nothing.
Unknown author
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Portupgrade

2006-07-02 Thread Bill Moran
E. J. Cerejo [EMAIL PROTECTED] wrote:

 I'm running FreeBSD 6.1 release and after upgrading portupgrade using 
 portupgrade itself I'm getting this message (message bellow) or similar one 
 everytime I run one of the portupgrade commands like pkgdb -u or -F, 
 portversion -L = or portupgrade itself.  Tells me that the database needs to 
 be rebuild, I run portsdb -uU and I get this same error message (message 
 bellow) it rebuilds with portsdb -fuU but still get this same message.
 
 Error Message:
 
 [Updating the pkgdb format:bdb_btree in /var/db/pkg ... 
 /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument; 
 rebuild needed] [Rebuilding the pkgdb format:bdb_btree in /var/db/pkg ... 
 [Updating the pkgdb format:bdb_btree in /var/db/pkg ... 
 /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument; 
 rebuild needed] [Rebuilding the pkgdb format:bdb_btree in /var/db/pkg ... 
 /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument: 
 Cannot update the pkgdb!]: Cannot update the pkgdb!]
 Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ
 
 any clues on how to solve this?

When was the last time you did a cvsup?

Portupgrade was hosed for a few days there, if your ports tree previously
installed the hosted version, portupgrade won't work.

If this is the case, the solution is:
1) cvsup ports
2) pkg_delete portupgrade
3) cd /usr/ports/sysutils/portupgrade  make install clean

Portupgrade will then start working again.

-- 
Bill Moran

Sometimes I think I'm stupid.  The rest of the time I'm sure of it.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: another newbie

2006-07-02 Thread jdow

From: Andrew Pantyukhin [EMAIL PROTECTED]


On 7/2/06, Isaac Friedman [EMAIL PROTECTED] wrote:

I am new to UNIX but know the basics of getting
around, writing simple shell scripts, etc. Is there
any way to use a short perl program as a shell script?


sat64% cat  __END__  ./script.pl
#!/usr/local/bin/perl -w
print Hello world!\n;
__END__
sat64% chmod a+x ./script.pl
sat64% ./script.pl


Gee, Andrew, you didn't need to obfuscate it that way. At least
edit out your command prompts before posting it.

Isaac, what he meant is to create a file named script.pl containing
the two lines:
===8--- snip
#!/usr/local/bin/perl -w
print Hello world!\n;
===8--- snip

Then change its file mode to allow it to execute with the command:
chmod a+x ./script.pl

Finally execute the command by typing:
./script.pl

The ./ part of the chmod command is not strictly needed. But it
is needed when executing the command from your home directory or
most other directories. Your current directory is not implicitly on
the search path for executable files on most well setup 'ix systems.

{^_^}   Joanne
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


pfsync broadcasts without explicitly enabling it

2006-07-02 Thread Peter Schuller
Alright,

I have seen this on two machines now. At first I ignored it, but now I am 
wondering. Suddently I will spot an extraordinary amount of network traffic 
and on tcpdump:ing discover my machine is spewing out pfsync broadcasts.

On both machines pfsync was NOT enabled, nor had it ever been. pf_enable=YES 
and pf_log=YES was in rc.conf, but nothing about pfsync.

I can squish the broadcasts easily enough with 'ifconfig pfsync0 -syncdev 
down', but I am somewhat concerned over it being mysteriously enabled.

One of these machines is a 6.1, the other a 6.0 (though it may have been a 5.x 
at the time it happened, not sure). pf is being used actively without 
any 'no-sync' options present; but it is my understanding that no pfsync 
traffic should be generated until pfsync is explicitly turned on with 
ifconfig.

Does anyone have an explanation for this? I am quite sure I have never enabled 
pfsync in rc.conf, nor have I ever ran any ifconfig commands that might 
enable it. I am not running any kind of meta-firewall scripts or anything 
like that; there should be nothing but the standard FreeBSD rc scripts 
modifying network interfaces with ifconfig.

The second machine I saw this on has only been running for a few days, so I am 
even more sure I haven't done so on this one than on the other one.

-- 
/ Peter Schuller, InfiDyne Technologies HB

PGP userID: 0xE9758B7D or 'Peter Schuller [EMAIL PROTECTED]'
Key retrieval: Send an E-Mail to [EMAIL PROTECTED]
E-Mail: [EMAIL PROTECTED] Web: http://www.scode.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cannot upgrade

2006-07-02 Thread Michael P. Soulier
On 02/07/06 Kent Stewart said:

 You pkgdb -fu and it recreates the database. You will also probably 
 find that you need to recreate your INDEX[-*].db. After that, 
 everything works just fine. All I did is run pkg-version and it rebuilt 
 the INDEX.db.

[EMAIL PROTECTED] ~]# pkgdb -fu
---  Updating the pkgdb
[Rebuilding the pkgdb format:bdb_btree in /var/db/pkg ...
/var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument:
Cannot update the pkgdb!]

I guess I'll have to delete the existing one.

Mike

-- 
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction. --Albert Einstein


pgp05vt373Ig4.pgp
Description: PGP signature


Re: cannot upgrade

2006-07-02 Thread Michael P. Soulier
On 02/07/06 Michael P. Soulier said:

 [EMAIL PROTECTED] ~]# pkgdb -fu
 ---  Updating the pkgdb
 [Rebuilding the pkgdb format:bdb_btree in /var/db/pkg ...
 /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument:
 Cannot update the pkgdb!]
 
 I guess I'll have to delete the existing one.

Ok, I moved the existing one to .corrupt, and ran pkgdb -fu. Seems to have
worked. 

Mike

-- 
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction. --Albert Einstein


pgpRfKCJKxy8h.pgp
Description: PGP signature


Re: cannot upgrade

2006-07-02 Thread Michael P. Soulier
On 02/07/06 Michael P. Soulier said:

 Ok, I moved the existing one to .corrupt, and ran pkgdb -fu. Seems to have
 worked. 

[Updating the portsdb format:bdb_btree in /usr/ports ... - 15088 port
entries found /usr/ports/INDEX-6.db: unexpected file type or format -- Invalid
argument: Cannot update the portsdb! (/usr/ports/INDEX-6.db)]
database file error
^C
Interrupted.

I ran 

cd /usr/ports  make fetchindex

and now I get that.

I'll try a make index instead, but this is looking like portupgrade is broken.

Mike

-- 
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction. --Albert Einstein


pgpgv9Vvit3of.pgp
Description: PGP signature


Re: Root crontab for backup

2006-07-02 Thread Greg 'groggy' Lehey
On Saturday,  1 July 2006 at 15:55:32 +0300, Kostas Blekos wrote:

  Is it a bad idea to use root's crontab for backup scripts?

I can't see why.

 Is it better to put those scripts in periodic/... ?

It's a good idea to leave /etc/periodic as it is; it makes updating
easier.  I personally put this sort of thing in /etc/crontab, though
arguably (also because of upgrades) root's crontab is a better place.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers.


pgpG5uk9O23TU.pgp
Description: PGP signature


Re: cannot upgrade

2006-07-02 Thread Michael P. Soulier
On 02/07/06 Michael P. Soulier said:

 [Updating the portsdb format:bdb_btree in /usr/ports ... - 15088 port
 entries found /usr/ports/INDEX-6.db: unexpected file type or format -- Invalid
 argument: Cannot update the portsdb! (/usr/ports/INDEX-6.db)]
 database file error
 ^C
 Interrupted.
 
 I ran 
 
 cd /usr/ports  make fetchindex
 
 and now I get that.
 
 I'll try a make index instead, but this is looking like portupgrade is broken.

The make index seems to have worked. Does this mean that I should no longer
fetch the index instead?

Mike

-- 
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction. --Albert Einstein


pgpKKTGsVGhb2.pgp
Description: PGP signature


Re: Kill an stopped process

2006-07-02 Thread Corey Brune

On 7/2/06, O. Hartmann [EMAIL PROTECTED] wrote:


Sometimes it happens on my FreeBSD 6.1-STABLE/AMD box, that a process,
in most cases xine, firefox oder thunderbird, show status 'STOP' in top
and are unkillable!
Trying to kill them as root (sending signal 9 throught 'kill' or
'killall') doesn't have any effect.

Can anyone help and tell how to kill such a job? The only way  getting
rid of those processes is reboot the box and this can not be the right
way.

Thanks,
oh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]



A process cannot be killed in certain situations. For instance, if the
process is waiting on a IO request, it will block all signals until the
request is completed or fails. Could you mount /proc, and do a truss on the
process? Also, which version of FreeBSD are you running?

Thanks,
Corey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


make which ports for maximal printer drivers?

2006-07-02 Thread Travis H.

Hiya,

I'm trying to follow the instructions here:
http://www.mit.edu/~jik/3000cn/

And I don't have some of the drivers that Linux cups does.  What cups
or ghostscript ports should I build to get the maximum number of
driver options?  There are many of each.

Thanks!
--
Resolve is what distinguishes a person who has failed from a failure.
Unix guru for sale or rent - http://www.lightconsulting.com/~travis/ --
GPG fingerprint: 9D3F 395A DAC5 5CCC 9066  151D 0A6B 4098 0C55 1484
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD 6.0 compat with DL320 G4

2006-07-02 Thread Antony Mawer

On 29/06/2006 9:27 PM, Erik Trulsson wrote:

On Fri, Jun 30, 2006 at 07:56:00AM +0100, William wrote:

Antony,

I've got an Intel card in production already on a homebrew box, the
code is INTEL-PWLA8492MT and description is Intel Dual Port Server
Adapter 10/100/1000. Any idea if that will do?


That is a PRO/1000 MT card, which is a PCI-X adapter and is supported
by the standard em(4) driver in FreeBSD 6.x,

The PRO/1000 PT mentioned below is a PCI-Express adapter and is not
supported by the standard driver in 6.x, but (as mentioned) should
be supported by the driver available from Intel.


If you wish to utilise the PCI Express expansion slots by using a 
Pro/1000 PT network adapter, the procedure to follow might be something 
like be this:


1. Install 6.1-RELEASE from CD, being sure to install the kernel source
2. Obtain the latest Intel driver for FreeBSD 6.x (if it is still not 
available on the website, email me and I will send it to you)

3. Burn the driver onto a CD or other media and copy it onto the server
4. Extract the driver source, and copy the if_em* files across into 
/usr/src/sys/dev/em/
5. Build a new kernel (GENERIC will suffice) which will utilise the new 
driver source (cd /usr/src  make buildkernel)

6. Install the kernel and reboot (make installkernel)

You should now have a working network with your Pro/1000 PT...

Regards
Antony

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: another newbie

2006-07-02 Thread Nikolas Britton

On 7/2/06, jdow [EMAIL PROTECTED] wrote:

From: Andrew Pantyukhin [EMAIL PROTECTED]

 On 7/2/06, Isaac Friedman [EMAIL PROTECTED] wrote:
 I am new to UNIX but know the basics of getting
 around, writing simple shell scripts, etc. Is there
 any way to use a short perl program as a shell script?

 sat64% cat  __END__  ./script.pl
 #!/usr/local/bin/perl -w
 print Hello world!\n;
 __END__
 sat64% chmod a+x ./script.pl
 sat64% ./script.pl

Gee, Andrew, you didn't need to obfuscate it that way.


I can read his code just fine... Here's obfuscated perl:

`$=`;$_=\%!;($_)=/(.)/;$==++$|;($.,$/,$,,$\,$,$;,$^,$#,$~,$*,$:,@%)=(
$!=~/(.)(.).(.)(.)(.)(.)..(.)(.)(.)..(.)..(.)/,$),$=++;$.++;$.++;
$_++;$_++;($_,$\,$,)=($~.$.$;$/$%[$?]$_$\$,$:$%[$?],$$~,$#,);$,++
;$,++;$^|=$;`$_$\$,$/$:$;$~$*$%[$?]$.$~$*${#}$%[$?]$;$\$$^$~$*.$=`


--
BSD Podcasts @:
http://bsdtalk.blogspot.com/
http://freebsdforall.blogspot.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


gdb in realloc(): error: junk pointer, too high to make sense on FreeBSD 5.2+

2006-07-02 Thread Philip M. Gollucci

Hi,

2 years ago, PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/68727
was filed about gdb itself segfaulting when trying to debug httpd.
This PR hasn't seen any action AFAIK.

This has been slowly driving me mad as you can not debug any httpd startup code.
Which coincidentally also prevents you from debugging mod_perl startup code and 
most likely
mod_* (php,ruby,tcl,java,python)

I did some painstakingly slow stepping through httpd code today:

Basically after apr_dso_load() calls dlopen()  (OS level Freebsd version) the
SECOND time through (httpd parses the config twice)
The first LoadModule line (doesn't matter which) crashes gdb.

I can reliably reproduce this on _ALL_ versions of FreeBSD from 5.2 through 
6.1-STABLE and on -CURRENT.
and ALL versions of httpd 2.0.48+ or 2.2.x

Attached is the information I was able to collect, but at this point, I'm in 
WAY over my head.

[Apologies for the cross post, feel free to spam me in return]

gdb -v
GNU gdb 6.1.1 [FreeBSD]

gcc -v
gcc version 3.4.4 [FreeBSD] 20050518

I've also seen it on EVERY version of gdb in the ports tree combined with any 
version of gcc in the ports tree.
/usr/local/bin/gcc32
/usr/local/bin/gcc33
/usr/local/bin/gcc34
/usr/local/bin/gcc40
/usr/local/bin/gcc41
/usr/local/bin/gcc42


Philip M. Gollucci ([EMAIL PROTECTED]) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F  6A47 D55A 7172 A799 97F

In all that I've done wrong I know I must have done something right to
deserve a hug every morning and butterfly kisses at night.
(gdb) bt
#0  apr_dso_load (res_handle=0xbfbfe15c, path=0x80f8760 
/usr/local/software/frebsd-6.1-stable/3.4.4/httpd/2.2.2/prefork/modules/mod_authn_file.so,
 pool=0x80bd018)
at /usr/home/pgollucci/dev/src/httpd-2.2.2/srclib/apr/dso/unix/dso.c:126
#1  0x08089b73 in load_module (cmd=0xbfbfe4d0, dummy=0xbfbfe348, 
modname=0x80f8728 authn_file_module, filename=0x80f8740 
modules/mod_authn_file.so) at mod_so.c:238
#2  0x0807824d in invoke_cmd (cmd=0x809da80, parms=0xbfbfe4d0, 
mconfig=0xbfbfe348, args=0x80f104e ) at config.c:778
#3  0x0807969b in execute_now (cmd_line=0x80f86b8 LoadModule, args=0x80f1023 
authn_file_module modules/mod_authn_file.so, parms=0xbfbfe4d0, p=0x80bd018, 
ptemp=0x80ef018, 
sub_tree=0xbfbfe348, parent=0x0) at config.c:1419
#4  0x08078c6c in ap_build_config_sub (p=0x80bd018, temp_pool=0x80ef018, 
l=0x80f1018 LoadModule authn_file_module modules/mod_authn_file.so, 
parms=0xbfbfe4d0, current=0xbfbfe3a4, 
curr_parent=0xbfbfe3a0, conftree=0x80a4674) at config.c:990
#5  0x080791ad in ap_build_config (parms=0xbfbfe4d0, p=0x80bd018, 
temp_pool=0x80ef018, conftree=0x80a4674) at config.c:1202
#6  0x08079b2a in process_resource_config_nofnmatch (s=0x80beeb8, 
fname=0x80f7408 
/usr/local/software/frebsd-6.1-stable/3.4.4/httpd/2.2.2/prefork/conf/httpd.conf,
 
conftree=0x80a4674, p=0x80bd018, ptemp=0x80ef018, depth=0) at config.c:1612
#7  0x08079c25 in ap_process_resource_config (s=0x80beeb8, fname=0x80f7408 
/usr/local/software/frebsd-6.1-stable/3.4.4/httpd/2.2.2/prefork/conf/httpd.conf,
 conftree=0x80a4674, 
p=0x80bd018, ptemp=0x80ef018) at config.c:1644
#8  0x0807a730 in ap_read_config (process=0x80bb098, ptemp=0x80ef018, 
filename=0x8095a01 conf/httpd.conf, conftree=0x80a4674) at config.c:2002
#9  0x08062083 in main (argc=2, argv=0xbfbfe778) at main.c:681


apr_dso_load (res_handle=0xbfbfe15c, path=0x80f8760 
/usr/local/software/frebsd-6.1-stable/3.4.4/httpd/2.2.2/prefork/modules/mod_authn_file.so,
 pool=0x80bd018)
at /usr/home/pgollucci/dev/src/httpd-2.2.2/srclib/apr/dso/unix/dso.c:126
126 int flags = RTLD_NOW | RTLD_GLOBAL;
(gdb) s
139 os_handle = dlopen(path, flags);
(gdb) s
0x28173e24 in pthread_rwlock_timedwrlock () from /usr/lib/libpthread.so.2
(gdb) s
Single stepping until exit from function pthread_rwlock_timedwrlock, 
which has no line number information.
0x28179a44 in pthread_mutexattr_init () from /usr/lib/libpthread.so.2
(gdb) s
Single stepping until exit from function pthread_mutexattr_init, 
which has no line number information.
0x28173cc5 in pthread_rwlock_timedwrlock () from /usr/lib/libpthread.so.2
(gdb) s
Single stepping until exit from function pthread_rwlock_timedwrlock, 
which has no line number information.
0x281833c0 in __error () from /usr/lib/libpthread.so.2
(gdb) s
Single stepping until exit from function __error, 
which has no line number information.
0x28173d34 in pthread_rwlock_timedwrlock () from /usr/lib/libpthread.so.2
(gdb) s
Single stepping until exit from function pthread_rwlock_timedwrlock, 
which has no line number information.
s
gdb in realloc(): error: junk pointer, too high to make sense
Abort (core dumped)


#0  apr_dso_load (res_handle=0xbfbfe15c, path=0x80f8760 

Re: DNS discovery / FreeBSD Firewall

2006-07-02 Thread Olivier Nicole
   The questions is; How do I have the internal network machines
 get the DNS server settings from the Firewall?  The two scenarios I
 can think of are: that the Firewall also acts as a DHCP server and
 somehow set the DNS of the internal net machines to the Firewalls
 resolv.conf entries; or I can have the Firewall act as a DNS
 server/relay and forward the DNS requests.

If your ISP keep changing their DNS server I'd suggest another
solution: set your own DNS server, but on a machine different from the
firewall.

Just make sure that the filrewall let domain traffic (udp/53 and
tcp/53) go through. And configure the firewall to use your own DNS
server.

DNS server needs NO resources, an old PIII 500 will do the trick.

It is always a good choice to have the firewall be only a firewall and
nothing else. If you add DNS on your firewall and DNS has somore
vulnerabilities, your firewall would be comprimised...

Bests,

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


speed of PPPoE

2006-07-02 Thread Benny Au

Hello,

The speed of PPPoE in FreeBSD is slower than in Windows XP. and
sometimes I have to wait for a moment to visit the same web site
again. It won't disconnect but it works not stably. Could you tell me
how to configure the ppp and let it run fast?
Thanks!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: speed of PPPoE

2006-07-02 Thread Greg 'groggy' Lehey
On Monday,  3 July 2006 at 11:11:58 +0800, Benny Au wrote:
 Hello,

 The speed of PPPoE in FreeBSD is slower than in Windows XP. and
 sometimes I have to wait for a moment to visit the same web site
 again. It won't disconnect but it works not stably. Could you tell me
 how to configure the ppp and let it run fast?
 Thanks!

I'd be very surprised if this were a FreeBSD issue.  You might like to
trace the conenction and see if there are any link-level retries;
anything beyond that has nothing to do with the driver.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers.


pgp0eRfyVhLOv.pgp
Description: PGP signature


sudo and LDAP

2006-07-02 Thread ACM Staff

Ok, so I am running a box with 6.0-STABLE

Problem is I can't get sudo working for my LDAP based users. I
compiled sudo from the ports tree with LDAP support.  Here is some
output

as a user:

[EMAIL PROTECTED]:~$ id notroot
uid=2018(notroot) gid=200(acm) groups=200(acm), 203(officers),
201(staff), 204(staffers)
[EMAIL PROTECTED]:~$ sudo ls
Password:
Sorry, try again.
Password:
Sorry, try again.
Password:
Sorry, try again.
sudo: 3 incorrect password attempts
[EMAIL PROTECTED]:~$

as root obviously:

risk# cat /usr/local/etc/sudoers
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults specification

# Runas alias specification

# User privilege specification
rootALL=(ALL) ALL
notroot ALL=(ALL) NOPASSWD: ALL


# Uncomment to allow people in group wheel to run all commands
%staff  ALL=(ALL)   ALL

# Same thing without a password
# %wheelALL=(ALL)   NOPASSWD: ALL

# Samples
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users  localhost=/sbin/shutdown -h now


Anyhelp? Thanks.

Jim
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]