Re: virtualbox with FreeBSD as host

2012-11-16 Thread Derrick Ryalls
On Fri, Nov 16, 2012 at 1:18 PM, Fbsd8 fb...@a1poweruser.com wrote:


 Section 23.3 of the handbook speaks about FreeBSD as a host.
 No where in that section does it say anything about virtualbox
 running from the FreeBSD host command line or from A Desktop.

 Do I need a Desktop for virtualbox to run under?


 NOPE !!

 VBoxHeadless -startvm  vm name

  Issueing VirtualBox from host command line gets this msg.
 Failed to open the x11 display

 VBoxHeadless -startvm  vm name assumes that there a vb guest
 all ready configured which is not my case.


 Right! I assumed you already had the VM ready. Sorry.


  There is no man page for VBoxHeadless command.


 There are those:

 http://download.virtualbox.**org/virtualbox/UserManual.pdfhttp://download.virtualbox.org/virtualbox/UserManual.pdf

 and

 http://www.virtualbox.org/**manual/ http://www.virtualbox.org/manual/

 VBoxHeadless is covered on both.

  How do a configure a vb guest from the host command line?


 VBoxManage can do all that from command line. Check it out or follow my
 previous e-mail.


 I read the UserManual and think I am barking up the wrong tree.
 So lets start over again with what the wanted desired result is.
 I have 9.0 installed on my 200gb hard drive, it's configured to use the
 first 100gb leaving the second 100gb free. I was going to install XP in
 the second half and have a duel boot config. Then I find out XP has to
 be install first on the HD meaning I have to install 9.0 from scratch
 again. I read a post on this list where it was suggested to run
 Virtualbox on my 9.0 host and then run XP as a guest. I want to boot the
 9.0 host and login to the 9.0 host, start the Virtualbox XP guest and
 enter the XP guest [IE: be in the XP OS windows environment], can I do
 all that from the host command line? I do not run x11 or any desktop on
 my 9.0 host. I do not want to use an second PC to login to the VB XP
 guest over ssh.



I think I am misunderstanding your ask, so I will describe what I have
which sounds awfully similar.

I have a headless 9.0 box with plenty of CPU cycles and HDD/RAM to spare.
 I have installed virtualbox on it, as well as phpVirtualBox (might have
the wrong name there).

Using phpVirtualBox, I can start/stop/config virtual machines on the host.
 So I used my Win7 box to create a virtual Win7 (or in your case WinXP) and
got it all installed and setup using my laptop.  Once it was configured, I
copied the virtual hard drive to the fileserver, configured a new virtual
machine to use that hard drive and set the network to bridged.  After
starting the virtual machine on my FreeBSD box I was able to remote to the
virtual machine using terminal services (built into windows).

The installation of virtualbox on my fileserver did install x11 components,
but by using phpVirtualBox, it is all started headless.

Hope this helps.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: HDD READ/Timeout messages after 8.2 Upgrade

2010-12-31 Thread Derrick Ryalls
On Fri, Dec 31, 2010 at 1:52 PM, Vladislav V. Prodan univers...@ukr.netwrote:

 31.12.2010 4:10, Derrick Ryalls wrote:
  Any pointers?

 Upgrade to an old build FreeBSD 8.1
 Similar problems with working HDD in 9.0-CURRENT


Adding ahci_load=YES to loader.conf solved the problem.  Running a hdd
test now but the system seems stable now.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


HDD READ/Timeout messages after 8.2 Upgrade

2010-12-30 Thread Derrick Ryalls
Greetings,

I replaced mobo/cpu/ram today and found the onboard nic not fully
recognized.  Since the kernel is just over a year old I decided to try a
system upgrade to see if the new hardware would get recognized.

I did a csup this afternoon, then a build world/kernel (kernel is default
but without debugging enabled).  After the reboot step, the system has
started spewing hdd errors such as:

ad6: TIMEOUT - READ retrying (1 retry left) LBA=575
Trying to mount root from ufs:/dev/label/rootfs
ad6: TIMEOUT - READ retrying (1 retry left) LBA=3401887
ad6: TIMEOUT - READ retrying (1 retry left) LBA=3403135
ad6: TIMEOUT - READ retrying (1 retry left) LBA=3409375
ad6: TIMEOUT - READ retrying (1 retry left) LBA=3775391
ad6: TIMEOUT - READ retrying (1 retry left) LBA=388383
ad6: TIMEOUT - READ retrying (1 retry left) LBA=388427
ad6: TIMEOUT - READ retrying (1 retry left) LBA=388463
ad6: TIMEOUT - READ retrying (1 retry left) LBA=388495
ad6: TIMEOUT - READ retrying (1 retry left) LBA=388743
ad6: TIMEOUT - READ retrying (1 retry left) LBA=388795
ad6: TIMEOUT - READ retrying (1 retry left) LBA=389087
ad6: TIMEOUT - READ retrying (1 retry left) LBA=389015
ad6: TIMEOUT - READ retrying (1 retry left) LBA=389075
ad6: TIMEOUT - READ retrying (1 retry left) LBA=3407999
ad6: TIMEOUT - READ retrying (1 retry left) LBA=2660479
ad6: TIMEOUT - READ retrying (1 retry left) LBA=2760223
ad6: TIMEOUT - READ retrying (1 retry left) LBA=2742879
ZFS filesystem version 4
ZFS storage pool version 15
ad6: TIMEOUT - READ retrying (1 retry left) LBA=2652351
ad6: TIMEOUT - READ retrying (1 retry left) LBA=2633899
ad6: TIMEOUT - READ retrying (0 retries left) LBA=2633899
ad6: TIMEOUT - READ retrying (1 retry left) LBA=2652159
ad12: TIMEOUT - READ_MUL48 retrying (1 retry left) LBA=1704757232
ad14: TIMEOUT - READ_MUL48 retrying (1 retry left) LBA=637648115
ad14: TIMEOUT - READ_MUL48 retrying (0 retries left) LBA=637648115
ad8: TIMEOUT - READ_MUL48 retrying (1 retry left) LBA=637646968
ad12: TIMEOUT - READ_MUL48 retrying (1 retry left) LBA=637646967
ad14: TIMEOUT - READ_MUL48 retrying (1 retry left) LBA=1682297102
ad6: TIMEOUT - READ retrying (1 retry left) LBA=3400319

/copy

The hardware is a 30g SSD for the O/S and system, and a 4x 2TB RAIDZ array
for all else.  Reverting to the old kernel has gotten the system back to
normal operation, but I would like to move forward.  I found a message from
someone experiencing a similar issue, but it was geli related and had
hardware errors in the message.

Above ad6 is the UFS SSD, all other drives are SATA RAIDZ spinning disks
(ad16 is non-raid spinning disk ZFS).  I have attached the dmesg from the
8.2 PRE-RELEASE kernel.

The physical hardware seems fine, particularly since it works on the 8.0
system.  Not sure how to troubleshoot and isolate the issue.

Any pointers?

TIA
Copyright (c) 1992-2010 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.2-PRERELEASE #0: Thu Dec 30 17:05:48 PST 2010
u...@example.com:/spare/obj/spare/src/sys/FRODO amd64
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) II X4 640 Processor (3010.07-MHz K8-class CPU)
  Origin = AuthenticAMD  Id = 0x100f53  Family = 10  Model = 5  Stepping = 3
  
Features=0x178bfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT
  Features2=0x802009SSE3,MON,CX16,POPCNT
  AMD 
Features=0xee500800SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM,3DNow!+,3DNow!
  AMD 
Features2=0x37ffLAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,SKINIT,WDT
  TSC: P-state invariant
real memory  = 8589934592 (8192 MB)
avail memory = 8251383808 (7869 MB)
ACPI APIC Table: 082410 APIC1853
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 1 package(s) x 4 core(s)
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
 cpu2 (AP): APIC ID:  2
 cpu3 (AP): APIC ID:  3
ioapic0 Version 2.1 irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: 082410 XSDT1853 on motherboard
acpi0: [ITHREAD]
ACPI Error: [PCI0] Namespace lookup failure, AE_NOT_FOUND (20101013/dswload-772)
ACPI Exception: AE_NOT_FOUND, During name lookup/catalog (20101013/psloop-326)
ACPI Error: Method parse/execution failed [\\] (Node 0x80c2e460), 
AE_NOT_FOUND (20101013/psparse-633)
acpi0: Power Button (fixed)
acpi0: reservation of fee0, 1000 (3) failed
acpi0: reservation of ffb8, 8 (3) failed
acpi0: reservation of fec1, 20 (3) failed
acpi0: reservation of fed8, 1000 (3) failed
acpi0: reservation of 0, a (3) failed
acpi0: reservation of 10, dfe0 (3) failed
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 32-bit timer at 3.579545MHz port 0x808-0x80b on acpi0
cpu0: ACPI CPU on acpi0
cpu1: ACPI CPU on acpi0
cpu2: ACPI CPU on acpi0
cpu3: ACPI CPU on acpi0
acpi_ec0: Embedded Controller: GPE 

Re: freebsd-questions Digest, Vol 340, Issue 15

2010-12-12 Thread Derrick Ryalls
On Sun, Dec 12, 2010 at 9:45 AM, Mark Terribile materrib...@yahoo.comwrote:

 
  It's ok, that i can use this, when i want an incrementing
  sequence, in a given way:
 
  # {START..END..INCREMENT}
  $ for i in {0..10..2}; do echo Welcome $i times; done
  Welcome 0 times
  Welcome 2 times
  Welcome 4 times
  Welcome 6 times
  Welcome 8 times
  Welcome 10 times
  $
 
  but what's the magic for this? :
 
  $ MAGIC; do echo Welcome $i times; done
  Welcome 0 times
  Welcome 1 times
  Welcome 4 times
  Welcome 5 times
  Welcome 8 times
  Welcome 9 times
  $

 What's wrong with

 for i in 0 1 4 5 8 9 ; do echo Welcome $i times; done

  ?

 Or is there some rule that you want followed?  If there is, it's not
 obvious to me.  (Sorry.)

Mark Terribile


 +1, +3, +1, +3
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


[Solved, mostly]: zpool status hangs zfs command, possibly related to spindown

2010-01-08 Thread Derrick Ryalls
On Thu, Jan 7, 2010 at 8:01 AM, Derrick Ryalls ryal...@gmail.com wrote:
 Greetings,

 uname -a (64bit)

  8.0-RELEASE-p1 FreeBSD 8.0-RELEASE-p1 #0: Sun Dec  6 11:23:52 PST 2009

 I have a raidz setup with 4x 2TB drives, plus a UFS CF on the IDE
 channel I use to boot off of.  I have an 1TB ZFS (non-raid) drive in
 an attached docking station that I use for nightly backups.  Since the
 drive in the docking station has no fan on it, and is only used for
 about 2 minutes per day, I have a spindown script added to rc.d:

 #!/bin/sh

 DEV=ad12

 case $1 in
 start)
        echo Spindown SATA disk $DEV after idle for 15 minutes.
        atacontrol spindown $DEV 900  dd if=/dev/$DEV of=/dev/null
 count=1 2 /dev/null 
        ;;
 stop)
        echo Spindown of SATA disk $DEV disabled.
        atacontrol spindown $DEV 0  dd if=/dev/$DEV of=/dev/null
 count=1 2 /dev/null
        ;;
 status)
        atacontrol spindown $DEV
        ;;
 *)
        echo Usage: `basename $0` {start|stop|status} 2
        exit 64
        ;;
 esac


 However after running a spindown stop twice within a couple minutes, I
 see this in /var/log/messages:

 Jan  7 07:36:54 frodo kernel: ad12: request while spun down, starting.
 Jan  7 07:36:55 frodo kernel: ad12: timeout waiting to issue command
 Jan  7 07:36:55 frodo kernel: ad12: error issuing READ_DMA command

 Jan  7 07:38:40 frodo kernel: ad12: timeout waiting to issue command
 Jan  7 07:38:40 frodo kernel: ad12: error issuing READ_DMA command

 If I issue a 'zpool status storage' command (main raidz) it returns
 normally.  If I issue 'zpool status' or 'zpool status backup' (backup
 is the drive in the docking station), the command hangs.  'zfs list'
 also does not return nor do zfs mounting commands associated with the
 backup drive.

 When I was using 7.x (without ZFS), I was able to use spindown and the
 drive would spin up when being used, then shut down after the
 requisite inactivity time.  Is this no longer recommended, or have I
 hit a bug/regression in the ata controller?

 I am remote to the machine right now, so I am hesitant to reboot it to
 get the spundown drive back up and running.  Does anyone know of a way
 to kick start a spundown drive so it is mountable (as a short term
 fix) and the proper way to spin up/down the drive for 8.x (for a long
 term fix).

 TIA,

 Derrick


Replying to my own thread.  Turned out to be a hardware problem - the
eSATA plug had become slightly dislodged from the docking station
explaining why FreeBSD couldn't properly talk to the drive.  Wonder if
this uncovers a hotswap issue with either the hardware or the
software.  It seems like the device should have been removed from /dev
when the cable came out rather than the ZFS tools hanging when trying
to read...  In any case, my backups are running again and I am once
again getting daily report mails, so the need for me to investigate
this further has dropped.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


GEOM corrupt or invalid GPT detected on ZFS raid on Freebsd 8.0 x64

2010-01-08 Thread Derrick Ryalls
Greetings,

After not getting daily system mails for a while, then suddenly
getting them, I took a closer look and noticed this message appears
after a boot:

+GEOM: ad4: corrupt or invalid GPT detected.
+GEOM: ad4: GPT rejected -- may not be recoverable.
+GEOM: label/disk1: corrupt or invalid GPT detected.
+GEOM: label/disk1: GPT rejected -- may not be recoverable.

label/disk1 should be the same thing as ad4, and it is part of a 4
disk raidz.  When I check the status of my pools, all is reported
fine:


[r...@frodo ~]# zpool status
  pool: backup
 state: ONLINE
 scrub: none requested
config:

NAMESTATE READ WRITE CKSUM
backup  ONLINE   0 0 0
  label/backup  ONLINE   0 0 0

errors: No known data errors

  pool: storage
 state: ONLINE
 scrub: none requested
config:

NAME STATE READ WRITE CKSUM
storage  ONLINE   0 0 0
  raidz1 ONLINE   0 0 0
label/disk1  ONLINE   0 0 0
label/disk2  ONLINE   0 0 0
label/disk3  ONLINE   0 0 0
label/disk4  ONLINE   0 0 0


Checking the history of the logs, it looks like this started to occur
after I did a disk replacement test for ZFS.  Going from memory, I
performed the following steps:

* Took the disk offline
* Powered down the system
* Replaced the physical disk
* Powered up the system
* Used glabel to label the new disk with the same name as old disk
* Told ZFS to replace the disk

The operation appear to be a success in that the drive resilvered and
the pool is listed as online.  Copying advice in this thread
http://forums.freebsd.org/showthread.php?t=8920page=3 I tried:

[r...@frodo ~]# zdb -l /dev/ad4

LABEL 0

version=13
name='storage'
state=0
txg=509115
pool_guid=3832644769924830246
hostid=400837641
hostname='myhost'
top_guid=7378337929137643727
guid=8898281456854820018
vdev_tree
type='raidz'
id=0
guid=7378337929137643727
nparity=1
metaslab_array=23
metaslab_shift=36
ashift=9
asize=8001576501248
is_log=0
children[0]
type='disk'
id=0
guid=8898281456854820018
path='/dev/label/disk1'
whole_disk=0
DTL=122
children[1]
type='disk'
id=1
guid=1353516608832566
path='/dev/label/disk2'
whole_disk=0
DTL=126
children[2]
type='disk'
id=2
guid=2985688821708093695
path='/dev/label/disk3'
whole_disk=0
DTL=125
children[3]
type='disk'
id=3
guid=16498259053924061255
path='/dev/label/disk4'
whole_disk=0
DTL=124

LABEL 1

version=13
name='storage'
state=0
txg=509115
pool_guid=3832644769924830246
hostid=400837641
hostname='myhost'
top_guid=7378337929137643727
guid=8898281456854820018
vdev_tree
type='raidz'
id=0
guid=7378337929137643727
nparity=1
metaslab_array=23
metaslab_shift=36
ashift=9
asize=8001576501248
is_log=0
children[0]
type='disk'
id=0
guid=8898281456854820018
path='/dev/label/disk1'
whole_disk=0
DTL=122
children[1]
type='disk'
id=1
guid=1353516608832566
path='/dev/label/disk2'
whole_disk=0
DTL=126
children[2]
type='disk'
id=2
guid=2985688821708093695
path='/dev/label/disk3'
whole_disk=0
DTL=125
children[3]
type='disk'
id=3
guid=16498259053924061255
path='/dev/label/disk4'
whole_disk=0
DTL=124

LABEL 2

version=13
name='storage'
state=0
txg=509115
pool_guid=3832644769924830246
hostid=400837641
hostname='myhost'
top_guid=7378337929137643727
guid=8898281456854820018
vdev_tree
type='raidz'
id=0
guid=7378337929137643727
nparity=1
metaslab_array=23
metaslab_shift=36
ashift=9
asize=8001576501248
is_log=0
children[0]
 

zpool status hangs zfs command, possibly related to spindown

2010-01-07 Thread Derrick Ryalls
Greetings,

uname -a (64bit)

 8.0-RELEASE-p1 FreeBSD 8.0-RELEASE-p1 #0: Sun Dec  6 11:23:52 PST 2009

I have a raidz setup with 4x 2TB drives, plus a UFS CF on the IDE
channel I use to boot off of.  I have an 1TB ZFS (non-raid) drive in
an attached docking station that I use for nightly backups.  Since the
drive in the docking station has no fan on it, and is only used for
about 2 minutes per day, I have a spindown script added to rc.d:

#!/bin/sh

DEV=ad12

case $1 in
start)
echo Spindown SATA disk $DEV after idle for 15 minutes.
atacontrol spindown $DEV 900  dd if=/dev/$DEV of=/dev/null
count=1 2 /dev/null 
;;
stop)
echo Spindown of SATA disk $DEV disabled.
atacontrol spindown $DEV 0  dd if=/dev/$DEV of=/dev/null
count=1 2 /dev/null
;;
status)
atacontrol spindown $DEV
;;
*)
echo Usage: `basename $0` {start|stop|status} 2
exit 64
;;
esac


However after running a spindown stop twice within a couple minutes, I
see this in /var/log/messages:

Jan  7 07:36:54 frodo kernel: ad12: request while spun down, starting.
Jan  7 07:36:55 frodo kernel: ad12: timeout waiting to issue command
Jan  7 07:36:55 frodo kernel: ad12: error issuing READ_DMA command

Jan  7 07:38:40 frodo kernel: ad12: timeout waiting to issue command
Jan  7 07:38:40 frodo kernel: ad12: error issuing READ_DMA command

If I issue a 'zpool status storage' command (main raidz) it returns
normally.  If I issue 'zpool status' or 'zpool status backup' (backup
is the drive in the docking station), the command hangs.  'zfs list'
also does not return nor do zfs mounting commands associated with the
backup drive.

When I was using 7.x (without ZFS), I was able to use spindown and the
drive would spin up when being used, then shut down after the
requisite inactivity time.  Is this no longer recommended, or have I
hit a bug/regression in the ata controller?

I am remote to the machine right now, so I am hesitant to reboot it to
get the spundown drive back up and running.  Does anyone know of a way
to kick start a spundown drive so it is mountable (as a short term
fix) and the proper way to spin up/down the drive for 8.x (for a long
term fix).

TIA,

Derrick
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: named needs restart after a reboot

2009-12-09 Thread Derrick Ryalls
On Tue, Dec 8, 2009 at 12:24 PM, Warren Block wbl...@wonkity.com wrote:
 On Tue, 8 Dec 2009, Derrick Ryalls wrote:

 uname:

 FreeBSD example.com 8.0-RELEASE-p1 FreeBSD 8.0-RELEASE-p1 #0: Sun Dec
 6 11:23:52 PST 2009     ryal...@example.com:/usr/obj/usr/src/sys/FRODO
 amd64

 I have most things working, but I have noticed that every time I
 reboot the machine, I need to manually restart named to get it
 listening on the proper interfaces as by default it is listening on
 127.0.0.1 interfaces only.  A simple /etc/rc.d/named restart fixes it
 which seems like it would be configured correctly, but I have had to
 do this on a install before.

 Anyone have a guess as to what could be wrong?

 Only a guess: network interface comes up too late.  If you're using DHCP to
 configure that interface, you could try SYNCDHCP.  Or if it's an re(4)
 interface, there are patches in 8-STABLE that make it come up faster.

 -Warren Block * Rapid City, South Dakota USA


ifconfig_nfe0=SYNCDHCP

Was the fix, thanks!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: named needs restart after a reboot

2009-12-09 Thread Derrick Ryalls
On Wed, Dec 9, 2009 at 3:39 PM, Derrick Ryalls ryal...@gmail.com wrote:
 On Tue, Dec 8, 2009 at 12:24 PM, Warren Block wbl...@wonkity.com wrote:
 On Tue, 8 Dec 2009, Derrick Ryalls wrote:

 uname:

 FreeBSD example.com 8.0-RELEASE-p1 FreeBSD 8.0-RELEASE-p1 #0: Sun Dec
 6 11:23:52 PST 2009     ryal...@example.com:/usr/obj/usr/src/sys/FRODO
 amd64

 I have most things working, but I have noticed that every time I
 reboot the machine, I need to manually restart named to get it
 listening on the proper interfaces as by default it is listening on
 127.0.0.1 interfaces only.  A simple /etc/rc.d/named restart fixes it
 which seems like it would be configured correctly, but I have had to
 do this on a install before.

 Anyone have a guess as to what could be wrong?

 Only a guess: network interface comes up too late.  If you're using DHCP to
 configure that interface, you could try SYNCDHCP.  Or if it's an re(4)
 interface, there are patches in 8-STABLE that make it come up faster.

 -Warren Block * Rapid City, South Dakota USA


 ifconfig_nfe0=SYNCDHCP

 Was the fix, thanks!


Spoke too soon.  On one reboot, the interface couldn't talk to DHCP
until I set it down then back up.  I have gone to statically setting
the IP.  Not ideal, but seems to be working (based on one clean
reboot).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


named needs restart after a reboot

2009-12-08 Thread Derrick Ryalls
Greetings,

uname:

FreeBSD example.com 8.0-RELEASE-p1 FreeBSD 8.0-RELEASE-p1 #0: Sun Dec
6 11:23:52 PST 2009 ryal...@example.com:/usr/obj/usr/src/sys/FRODO
 amd64

I have most things working, but I have noticed that every time I
reboot the machine, I need to manually restart named to get it
listening on the proper interfaces as by default it is listening on
127.0.0.1 interfaces only.  A simple /etc/rc.d/named restart fixes it
which seems like it would be configured correctly, but I have had to
do this on a install before.

Anyone have a guess as to what could be wrong?

Thanks.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


FreeBSD 8.0 system setup with ZFS steps

2009-11-29 Thread Derrick Ryalls
Greetings,

I created the following guide when I was trying out ZFS in VirtualBox
on my windows machine.  I created 5 hard drives: 1 to represent a
flash drive to boot off of, 4 to represent the large hard drives I
would be using in raid.  It seemed to work to get a running system,
but wanted to make sure I wasn't doing anything stupid or missing a
good step.

FreeBSD 8.0 with ZFS


*Setup
   Use a 2gig Flash device.  1 gig is enough space though.  512M will be tight.
   Collect the 4 other SATA drives.
*Start FreeBSD normal install.
   Select the flash device as the device to install to.
   Use the entire device
   Install the bootMgr
   Create a single slice taking up the entire device, mount to /
   Select distribution minimal
   Run install
   Normal post install answers
   Reboot
*Activate ZFS 
(http://www.freebsd.org/doc/en/books/handbook/filesystems-zfs.html)
   Follow instructions for RaidZ
   Be sure to add the instructions for daily raid mails
*Create mount points in pool
   home
   local
   obj
   ports
   src
   var
   share
   tmp
*One at a time, copy existing data from / to new mount points.
Instructions are in the link above
*Reboot (make sure nothing is broken)
*Swap
   zfs create -V 4g storage/swap
   geli onetime -s 4096 /dev/zvol/storage/swap (encryption, might not be needed)
   swapon /dev/zvol/storage/swap.eli
*pkg_add -r bash
*Add users
*Normal setup at this point.

/copy

My goal is to not burn out the flash drive with a bunch of writes, so
it should primarily be read only, with the occasional edit to a config
file or installworld.  I tried putting /etc in a ZFS pool to take
advantage of snapshots and such, but the machine couldn't find the
boot drive as that information is stored in /etc and ZFS is not loaded
at that point.

Am I doing something stupid that may burn out the flash drive or cause
the system to be rather slow?

Thanks,

Derrick
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


ZFS disk replacement questions

2009-11-03 Thread Derrick Ryalls
Hello list,

I plan on rebuilding my home fileserver next month with FreeBSD 8.0
x64 and will be using 4x 2TB drives in an external eSATA hotswap
enclosure using RAIDZ.  I have played around with FreeBSD in
VirtualBox just to see how easy it is to deal with ZFS, but a few
questions have come up for this configuration.

1) In the event of a disk failure, how do I trace back the name such
as adX to a physical drive in the enclosure?  Is there a way to take
the drive offline then use atacontrol to spin it down or something so
it is easy to identify?

2) In the event that I do experience a failure and manage to replace a
working disk instead of the failed disk, am I now completely hosed or
can I put the working disk back in and try pulling another drive which
is hopefully the bad drive?

3) Finally, does the extra load of resilvering the replaced drive
'age' the good drives causing them to fail quicker?


Any tips would be greatly appreciated.

Thanks.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ZFS disk replacement questions

2009-11-03 Thread Derrick Ryalls
On Tue, Nov 3, 2009 at 10:21 AM, Steve Polyack kor...@comcast.net wrote:
 Derrick Ryalls wrote:

 1) In the event of a disk failure, how do I trace back the name such
 as adX to a physical drive in the enclosure?  Is there a way to take
 the drive offline then use atacontrol to spin it down or something so
 it is easy to identify?


 In my opinion you are best off using glabel(8) to give names to the disks.
  This way you can name them in a way that makes sense to you.  Additionally,
 when you create the ZFS pool you will use the glabel'd names.  This means
 that the pool will still come up properly if something causes your devices
 to be numbered differently (i.e. a drive dies and you happen to reboot the
 system).

I believe ZFS does this automatically.  Supposedly, if you take a
working set of RAIDZ drives from one machine and put it in another,
ZFS will figure out the drives since they get labelled by ZFS
internally.  My question concerns how to identify the physical disk in
question based on the adX or glabel name?  Different name in software
is fine, but if the drive fails I want to make sure I pull the correct
drive.


 Depending on your controller it is also probably worth it to use one of the
 SATA-specific drivers in FreeBSD 8 - these are ones like ahci(4) and
 siis(4).  While the generic ata(4) driver will work for pretty much
 everything, the updated AHCI drivers can take advantage of some more
 features.  Enable the modules at boot to use them.

I will look into it, thanks.  The machine in question is 2 year old
hardware currently with a 3ware raid card.  I will be going software
raid only, but FreeBSD already recognizes the eSATA drive I have
attached as a backup device so I know the O/S can at least talk to
sata drives attached to the mobo.


 Any tips would be greatly appreciated.





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


Re: FreeBSD as a router

2009-06-11 Thread Derrick Ryalls
You might also check out monowall.  It is a stripped down version of FreeBSD
that can run off a small flash card and has a web interface.

On Jun 11, 2009 6:05 AM, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl
wrote:

 powerful. Hmm, PF would be better (not IPF) but I hear ipfw ha
smore features .
basicly - if you think ipfw can't do something - read manual again ;)

exaggerated, but not very much...

___
freebsd-questions@freebsd.org mailing list http://l...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


sendmail not authenticating with smart host

2008-09-05 Thread Derrick Ryalls
Greetings,

Due to port 25 restrictions, I am trying to get my brother's email
server to authenticate out on port 587.  I have sendmail talking via
port 587, but it is not properly authenticating.  To help narrow
things down, I am having his machine route all mail to my machine with
authentication.  His machine is a running version 7:   7.0-RELEASE
FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008

Here are some relevant parts of the hostname.mc file:

define(`SMART_HOST', `myserver.com')
define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl
FEATURE(`authinfo',`hash /etc/mail/auth/client-info.db')dnl

auth/client-info has this:

AuthInfo:myserver.com U:hisuser I:hisuser P:password M:PLAIN

And I have created client-info.db hash.  I have copied the config file
workflow from my server which uses smtp auth to talk to my ISP on port
587.

On myserver.com, I do see that his machine connects to me, but I see
this error in maillog:

Relaying denied. Proper authentication required.

When I was trying to go through his ISP, I got this error message in
his error log:  stat=Service unavailable.  We share ISP (from
different states though) and I am still able to send via my ISP.  I
even tried to directly copying my auth info for the ISP from my box to
his (so he would be sending as me) and I got this same error.

Have I missed a configuration setting somewhere?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Supported External SATA to USB Hard Drive Enclosures

2008-08-25 Thread Derrick Ryalls
On Fri, Aug 22, 2008 at 6:32 AM, Doug Poland [EMAIL PROTECTED] wrote:
 Hello,

 Can anyone recommend a manufacturer and/or model of external SATA to
 USB external hard drive enclosures?  I've not had luck with the
 devices I pick up off-the-shelf at my local big-box consumer
 electronics stores.

 BTW, I'm running FreeBSD i386 7.x.


Perhaps I am tired and therefore misunderstanding...

I just recently bought a seagate TB SATA drive and Roswell enclosure
that has SATA internal and USB/eSATA as external interface.  USB
worked with no difficulty and so did the eSATA when I plugged the
bracked into an existing SATA port on my mobo.  I also had good luck
with Addonics being recognized, until the enclosure itself started
failing, that is.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


sendmail secondary server routing to alternate port

2008-08-19 Thread Derrick Ryalls
Greetings,

I recently had to rebuild my brother's all in one box to get a SATA
controller working.  It is now running 7.0 release and was previously
using courier and the mail system.  With this rebuild, I have switched
him over to sendmail and most things are working, but I discovered a
small issue with sendmail that I am having trouble working out.  As
well as being his own primary email server, he acts as secondary for a
couple of my domains, the tricky part is my ISP shut off port 25
access to me (no, I am not a spammer) so I use port 587 for handling
mail.  With courier, I was able to specify specific ports to
communicate with on a per domain basis.  For example, if I was
relaying for example.org on port 2345, I would specify
example.org:2345 and that is the port it would use to talk to
example.org.

Now that I have switched to sendmail, I don't see a way to set the
destination port on a per domain basis, only on an all or nothing
basis.  Am I missing some piece of the documentation or is this an
actual limitation of sendmail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sendmail secondary server routing to alternate port

2008-08-19 Thread Derrick Ryalls
On Tue, Aug 19, 2008 at 10:56 AM, Chuck Swiger [EMAIL PROTECTED] wrote:
 On Aug 19, 2008, at 10:16 AM, Derrick Ryalls wrote:

 For example, if I was relaying for example.org on port 2345, I would
 specify
 example.org:2345 and that is the port it would use to talk to
 example.org.

 Now that I have switched to sendmail, I don't see a way to set the
 destination port on a per domain basis, only on an all or nothing
 basis.  Am I missing some piece of the documentation or is this an
 actual limitation of sendmail?

 You can do this with /etc/mail/mailertable:

   example.org  relay:example.org

 ...and change to the relay mailer flags with this in your sendmail.mc

  define(`RELAY_MAILER_ARGS', `TCP $h 2345')

 Note that you might want to define a new mailer called relay2345 instead
 of changing the default relay mailer.

 Regards,
 --
 -Chuck


Thanks for the tip.  I have added this to .mc:

dnl alternate relay port
MAILER_DEFINITIONS
relay_port_587, P=[IPC], F=mDFMuXa, S=EnvFromSMTP/HdrFromSMTP,
R=EnvToSMTP, E=\r
\n, L=990,
T=DNS/RFC822/SMTP,
A=TCP $h 587


Created a mailer table:

example.com   relay_port_587:example.com

And when I send to this domain, I get this in the maillog:

NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 1718: unknown
configuration line relay_port_587, P=[IPC], F=mDFMuXa,
S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\\r
Aug 19 11:56:50 rncserver sm-mta[70987]: NOQUEUE: SYSERR(root):
/etc/mail/sendmail.cf: line 1721: unknown configuration line \\n,
L=990,\nT=DNS/RFC822/SMTP,\nA=TCP
\001h 587

Guess I have messed something up here, see anything obvious?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sendmail secondary server routing to alternate port

2008-08-19 Thread Derrick Ryalls
On Tue, Aug 19, 2008 at 12:21 PM, Chuck Swiger [EMAIL PROTECTED] wrote:
 On Aug 19, 2008, at 12:01 PM, Derrick Ryalls wrote:

 NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 1718: unknown
 configuration line relay_port_587, P=[IPC], F=mDFMuXa,
 S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\\r
 Aug 19 11:56:50 rncserver sm-mta[70987]: NOQUEUE: SYSERR(root):
 /etc/mail/sendmail.cf: line 1721: unknown configuration line \\n,
 L=990,\nT=DNS/RFC822/SMTP,\nA=TCP
 \001h 587

 Guess I have messed something up here, see anything obvious?

 A mailer definition needs to start with a capital M, as in:

 Mrelay, P=[IPC], F=mDFMuXa8, S=EnvFromSMTP/HdrFromSMTP, R=MasqSMTP,
 E=\r\n, L=2040,
T=DNS/RFC822/SMTP,
A=TCP $h

 ...from sendmail.cf.  You could just copy this and rename it to
 relay_port_587, and add the 587 after the $h


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


Re: Nut and RAID on FreeBSD 7.0

2008-01-11 Thread Derrick Ryalls
On Jan 11, 2008 7:19 AM, Derek Ragona [EMAIL PROTECTED] wrote:


  At 01:43 AM 1/11/2008, Derrick Ryalls wrote:

 On Jan 10, 2008 3:52 PM, Kurt Buff [EMAIL PROTECTED] wrote:
  
   On Jan 10, 2008 3:14 PM, Bob Johnson [EMAIL PROTECTED] wrote:
On 1/10/08, Derrick Ryalls [EMAIL PROTECTED] wrote:
   

 Perhaps I need to re-evaluate my line of thinking.  Light sometime
 flicker, but power almost never goes out.  When it does it is either
 back on in less than 1 minute, or out for hours.  If the UPS detects
 critical correctly and gives me at least a minute before death, then
 that should be plenty of time for the system to auto-shutdown.  Guess
 I will have to do some experimentation tonight.
   
While you experiment, keep in mind the following sequence of events:
   
-- Power fails
-- UPS signals low battery
-- System shuts down
-- Power returns before UPS shuts itself down
-- System never reboots, because it never lost power.
   
Getting around this is the tricky part. I haven't used NUT in about
seven years, but back then the recommendation was to shut down to
single user mode and run a script that delayed for some time longer
than the remaining battery life of the UPS, then rebooted the system.
There didn't seem to be an easy hook for running a script after
shutting down to single user mode (maybe there is now).
   
I haven't looked at NUT recently, but I expect the various flags that
you are supposed to test are another way around this problem.
  

  Trying to test out the scripts, I ran into a road block.  I see that
  upsmon is working and detecting the events I wanted to detect from
  these sorts of entries in /var/log/messages:

  Jan 10 23:28:57 frodo upsmon[80983]: UPS [EMAIL PROTECTED] on line power

  Plus a similar message for going to battery power.  However, the
  notify executable is having issues and is dumping dozens of lines like
  this in /var/log/messages:

  Jan 10 23:28:09 frodo kernel: pid 81029 (upssched), uid 1005: exited
  on signal 11
  Jan 10 23:28:09 frodo kernel: pid 81031 (upssched), uid 1005: exited
  on signal 11
  Jan 10 23:28:10 frodo kernel: pid 81032 (upssched), uid 1005: exited
  on signal 11
  Jan 10 23:28:10 frodo kernel: pid 81033 (upssched), uid 1005: exited
  on signal 11
  Jan 10 23:28:11 frodo kernel: pid 81034 (upssched), uid 1005: exited
  on signal 11
  Jan 10 23:28:11 frodo kernel: pid 81035 (upssched), uid 1005: exited
  on signal 11

  I tried giving the user the user in question (nutmon) a shell of
  /bin/sh instead of /sbin/nologin but that didn't help.  Any clues on
  how to fix this?  Executing upssched from the command line it tells me
  not to execute directly (similar to what the man page states), and
  manually executing the upsched-cmd shell script does work and the
  script itself uses full paths for commands.

  What is in your notify command?

  I set my NOTIFYCMD in upsmon.conf to a simple shell script I created to
 send the message via sendmail, here is my script if that helps:

  
  #!/usr/local/bin/ksh
  #set -x
  SENDMAIL=/usr/sbin/sendmail
  MAIL=/usr/bin/mail
  HOSTNAME=/bin/hostname

  MYHOSTNAME=`$HOSTNAME -s`

  echo $* | $MAIL -s UPS Alert from $MYHOSTNAME
 [EMAIL PROTECTED]

  

  -Derek


I was previously pointing it at the provided upssched process which is
supposed to handle timers and such and fire off upsshed-cmd which is a
provided shell script that I had modified.  This is the 'documented'
way of doing it and gives the extra benefit of being able to add
timers so if the power goes out for 3 seconds, I won't be notified.
Using your script directly did work for lost/gained power events so I
guess I can go that route.  I won't be able to do timers or anything,
but I will at least be notified when the power goes out.  I'll be
checking the safe power down this weekend.  Thanks.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Nut and RAID on FreeBSD 7.0

2008-01-10 Thread Derrick Ryalls

 Greetings,

  I have a RAID fileserver plugged into a UPS and nut is able to
  communicate with it successfully.  With the winds making the lights
  flicker, I started looking into having the computer shut down when
  power goes out for more than say 5 minutes or so.  Looking at the
  documentation, I found that the 'true' solution is more like the
  system goes into a safe state when the battery gets low, then the ups
  eventually dies.  When power is restored, the UPS and computer are
  supposed to both come back to life.  This would be a great system to
  have in place, but it does sound a bit risky and so may not be worth
  doing just to save my home fileserver.

  The instructions and the conf file have the shutdown command of
  'shutdown -h +0' which will halt the system.  The man page for halt
  says the the disk cache will be flushed, but doesn't mention anything
  about going to read-only or anything.  I suppose my first question is
  whether or not flushing the cache is sufficient to save the RAID (5)
  array, or if I need to find a way to get the file systems into read
  only mode?

  The second question has to do with a rc.d script that nut recommends
  creating.  The script does a 'upsdrvctl shutdown' and then a sleep
  120, basically waiting for the machine to die while in the script.
  Won't this block the other rc.d scripts?  Also, is this the magic part
  that enables the machine to auto power up when power is restored?

  Changing the shutdown command in nut to 'shutdown -p +0' looks like
  the sure fire way to get the system down clean before the power is
  lost, but if my concerns are not valid, then I could be missing out on
  some nice functionality for no reason.

  Does anyone have experience with this?
  I have my servers all using nut to safely shutdown.  My configuration is
 the servers are set up with one as master for nut, that master connected to
 the UPS.  The other servers are slaves and get their nut information from
 the master.

  My setup has the servers wait until the UPS is on low battery, then they
 all shutdown.

  As a separate part of the setup, the servers are set in their BIOS to power
 on, after a power failure.  This is in the BIOS power setup.

  So if there is a minor power problem, the servers run from battery.  In a
 larger power outage, they are shutdown cleanly once the battery level is
 low, and power up automatically once power is restored.

  In my upsmon.conf file I have this:
  SHUTDOWNCMD /sbin/shutdown -h +0

  If you want more specifics, I can look through the configuration files and
 email you relevant settings.


After doing more reading, I am confident that a shutdown -h would be
sufficient, but am a bit concern on the order of operations.  The nut
documentation has a recommendation to add a kill script as such:


#!/bin/sh

if [ $1 == stop ]
then

if [ -f /etc/killpower ]
then
echo Killing the power, bye!
   /usr/local/libexec/nut/upsdrvctl shutdown

sleep 120
fi
fi

/copy

Even if I name this zz_killpower.sh to make it run last, depending on
how long it takes FreeBSD to flush the cash after all rc.d scripts are
run, I could end up doing a dirty power down, right?  Without this, if
the power does come back while before the battery finally dies, the
system won't restart since the power was never fully interrupted at
the computer side?

  As far as my experiences using nut with RAID and different setups if the
 shutdown command works from a command line, it will work the same from nut.

  I would also suggest you test your setup.  Pull the plug on your UPS and
 watch what happens.

I absolutely will do a full test as such before I put full faith in
the setup, but I want to first minimize the chance of me destroying
the file system during the test.


  Also you should employ other monitoring systems and scripts, should a
 system not reboot correctly, you do want to know that quickly.

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


Re: Nut and RAID on FreeBSD 7.0

2008-01-10 Thread Derrick Ryalls
 
   Greetings,
  
I have a RAID fileserver plugged into a UPS and nut is able to
communicate with it successfully.  With the winds making the lights
flicker, I started looking into having the computer shut down when
power goes out for more than say 5 minutes or so.  Looking at the
documentation, I found that the 'true' solution is more like the
system goes into a safe state when the battery gets low, then the ups
eventually dies.  When power is restored, the UPS and computer are
supposed to both come back to life.  This would be a great system to
have in place, but it does sound a bit risky and so may not be worth
doing just to save my home fileserver.
  
The instructions and the conf file have the shutdown command of
'shutdown -h +0' which will halt the system.  The man page for halt
says the the disk cache will be flushed, but doesn't mention anything
about going to read-only or anything.  I suppose my first question is
whether or not flushing the cache is sufficient to save the RAID (5)
array, or if I need to find a way to get the file systems into read
only mode?
  
The second question has to do with a rc.d script that nut recommends
creating.  The script does a 'upsdrvctl shutdown' and then a sleep
120, basically waiting for the machine to die while in the script.
Won't this block the other rc.d scripts?  Also, is this the magic part
that enables the machine to auto power up when power is restored?
  
Changing the shutdown command in nut to 'shutdown -p +0' looks like
the sure fire way to get the system down clean before the power is
lost, but if my concerns are not valid, then I could be missing out on
some nice functionality for no reason.
  
Does anyone have experience with this?
I have my servers all using nut to safely shutdown.  My configuration is
   the servers are set up with one as master for nut, that master connected
 to
   the UPS.  The other servers are slaves and get their nut information from
   the master.
  
My setup has the servers wait until the UPS is on low battery, then they
   all shutdown.
  
As a separate part of the setup, the servers are set in their BIOS to
 power
   on, after a power failure.  This is in the BIOS power setup.
  
So if there is a minor power problem, the servers run from battery.  In
 a
   larger power outage, they are shutdown cleanly once the battery level is
   low, and power up automatically once power is restored.
  
In my upsmon.conf file I have this:
SHUTDOWNCMD /sbin/shutdown -h +0
  
If you want more specifics, I can look through the configuration files
 and
   email you relevant settings.
  

  After doing more reading, I am confident that a shutdown -h would be
  sufficient, but am a bit concern on the order of operations.  The nut
  documentation has a recommendation to add a kill script as such:


  #!/bin/sh

  if [ $1 == stop ]
  then

  if [ -f /etc/killpower ]
  then
  echo Killing the power, bye!
 /usr/local/libexec/nut/upsdrvctl shutdown

  sleep 120
  fi
  fi

  /copy

  Even if I name this zz_killpower.sh to make it run last, depending on
  how long it takes FreeBSD to flush the cash after all rc.d scripts are
  run, I could end up doing a dirty power down, right?  Without this, if
  the power does come back while before the battery finally dies, the
  system won't restart since the power was never fully interrupted at
  the computer side?
  You are reading the old documentation.  The current nut, 2.2, has complete
 rc scripts that are installed in /usr/local/etc/rc.d

  You need only define the flag file you want to use in upsmon.conf

  Also define what actions you want in that file as well.  You need to use
 the sample files installed in /usr/local/etc/nut and be sure to read the
 comments.


I have 2.2 installed and am using the existing scripts.  In the
comments in uspmon.conf, there is this part:

# --
# POWERDOWNFLAG - Flag file for forcing UPS shutdown on the master system
#
# upsmon will create a file with this name in master mode when it's time
# to shut down the load.  You should check for this file's existence in
# your shutdown scripts and run 'upsdrvctl shutdown' if it exists.
#
# See the shutdown.txt file in the docs subdirectory for more information.

POWERDOWNFLAG /etc/killpower

Which in the related documentation means I need the custom shutdown
script mentioned above which checks for the existence of the
/etc/killpower file before doing the upsdrvctl shutdown command to
kill the UPS before the battery is completely dead.  I suppose in your
situation you won't need this extra script as you run until the UPS is
critical whereas I am trying to kill the system a bit early, before it
is critical.

Perhaps I need to re-evaluate my line of 

Re: Nut and RAID on FreeBSD 7.0

2008-01-10 Thread Derrick Ryalls
On Jan 10, 2008 3:52 PM, Kurt Buff [EMAIL PROTECTED] wrote:

 On Jan 10, 2008 3:14 PM, Bob Johnson [EMAIL PROTECTED] wrote:
  On 1/10/08, Derrick Ryalls [EMAIL PROTECTED] wrote:
 
  
   Perhaps I need to re-evaluate my line of thinking.  Light sometime
   flicker, but power almost never goes out.  When it does it is either
   back on in less than 1 minute, or out for hours.  If the UPS detects
   critical correctly and gives me at least a minute before death, then
   that should be plenty of time for the system to auto-shutdown.  Guess
   I will have to do some experimentation tonight.
 
  While you experiment, keep in mind the following sequence of events:
 
  -- Power fails
  -- UPS signals low battery
  -- System shuts down
  -- Power returns before UPS shuts itself down
  -- System never reboots, because it never lost power.
 
  Getting around this is the tricky part. I haven't used NUT in about
  seven years, but back then the recommendation was to shut down to
  single user mode and run a script that delayed for some time longer
  than the remaining battery life of the UPS, then rebooted the system.
  There didn't seem to be an easy hook for running a script after
  shutting down to single user mode (maybe there is now).
 
  I haven't looked at NUT recently, but I expect the various flags that
  you are supposed to test are another way around this problem.


Trying to test out the scripts, I ran into a road block.  I see that
upsmon is working and detecting the events I wanted to detect from
these sorts of entries in /var/log/messages:

Jan 10 23:28:57 frodo upsmon[80983]: UPS [EMAIL PROTECTED] on line power

Plus a similar message for going to battery power.  However, the
notify executable is having issues and is dumping dozens of lines like
this in /var/log/messages:

Jan 10 23:28:09 frodo kernel: pid 81029 (upssched), uid 1005: exited
on signal 11
Jan 10 23:28:09 frodo kernel: pid 81031 (upssched), uid 1005: exited
on signal 11
Jan 10 23:28:10 frodo kernel: pid 81032 (upssched), uid 1005: exited
on signal 11
Jan 10 23:28:10 frodo kernel: pid 81033 (upssched), uid 1005: exited
on signal 11
Jan 10 23:28:11 frodo kernel: pid 81034 (upssched), uid 1005: exited
on signal 11
Jan 10 23:28:11 frodo kernel: pid 81035 (upssched), uid 1005: exited
on signal 11

I tried giving the user the user in question (nutmon) a shell of
/bin/sh instead of /sbin/nologin but that didn't help.  Any clues on
how to fix this?  Executing upssched from the command line it tells me
not to execute directly (similar to what the man page states), and
manually executing the upsched-cmd shell script does work and the
script itself uses full paths for commands.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Anyone know of complete hardware solution IDE Raid Controllers?

2008-01-09 Thread Derrick Ryalls
On Jan 9, 2008 2:42 PM, Brett Davidson [EMAIL PROTECTED] wrote:
 Years ago Accusys made IDE Raid Controllers that presented themselves as
 one drive in the BIOS, making themselves completely OS agnostic.
 Anything like that out there anymore?


3ware 9650SE-4LPML PCI Express Lanes, currently just over $300 at newegg

That is what I have in my fileserver and it works beautifully.  Even
has support for easy checking raid status periodically.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SATA DVD Drive Install Problem

2008-01-09 Thread Derrick Ryalls
On Jan 9, 2008 3:08 PM, Sean Murphy [EMAIL PROTECTED] wrote:
 Is anyone successful in installing FreeBSD from a SATA DVD Drive?


Did it last month with a machine that has only SATA (DVD and
SATA-RAID), so it is possible at least on 7.0.

 I am having trouble as it boots from the CD of 6.3 RC2 but at the
 beginning of the install it fails.  The CD I then tried in another
 computer and it installs fine.  I was wondering if it was the SATA DVD
 drive or the motherboard.

 Thanks
 ___
 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]


Nut and RAID on FreeBSD 7.0

2008-01-09 Thread Derrick Ryalls
Greetings,

I have a RAID fileserver plugged into a UPS and nut is able to
communicate with it successfully.  With the winds making the lights
flicker, I started looking into having the computer shut down when
power goes out for more than say 5 minutes or so.  Looking at the
documentation, I found that the 'true' solution is more like the
system goes into a safe state when the battery gets low, then the ups
eventually dies.  When power is restored, the UPS and computer are
supposed to both come back to life.  This would be a great system to
have in place, but it does sound a bit risky and so may not be worth
doing just to save my home fileserver.

The instructions and the conf file have the shutdown command of
'shutdown -h +0' which will halt the system.  The man page for halt
says the the disk cache will be flushed, but doesn't mention anything
about going to read-only or anything.  I suppose my first question is
whether or not flushing the cache is sufficient to save the RAID (5)
array, or if I need to find a way to get the file systems into read
only mode?

The second question has to do with a rc.d script that nut recommends
creating.  The script does a 'upsdrvctl shutdown' and then a sleep
120, basically waiting for the machine to die while in the script.
Won't this block the other rc.d scripts?  Also, is this the magic part
that enables the machine to auto power up when power is restored?

Changing the shutdown command in nut to 'shutdown -p +0' looks like
the sure fire way to get the system down clean before the power is
lost, but if my concerns are not valid, then I could be missing out on
some nice functionality for no reason.

Does anyone have experience with this?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: amd64 HP SA6i RAID5 no boot

2007-11-30 Thread Derrick Ryalls
 
  7-Beta3 vanilla install from CD, I let sysinstall do automatic
  partitions and slices, then stops at F1 FreeBSD prompt and beeps.
  Obviously it cannot find anything to boot from.
 
  System is a SA6i RAID5-array with 6x300GB disks. Possibly I need to
  enter drive geometry manually but have no idea where to get that
  info from, perhaps somebody knows where to look?
 
  i386 does not boot either - same
  A RAID1+0 array with 4x36GB disks boots fine both amd64 and i386.
 
  Right. If I create two slices, one 50G and one 1.3T and use the first
  for /, /var etc. then the system will boot.
 
  I would assume from the above that I could perhaps use some other
  utility to create a big single slice.

  Is the 2TB max implied here still true?
 
  http://lists.freebsd.org/pipermail/freebsd-questions/2005-August/095504.html

 Could be but I have *less* than 2TB...
 ___

I have a RAID-5 setup with 3 - 750GB drives.  I was able to install,
though I did get a couple of warnings in the setup screen about bad
geometry (that I did nothing about).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ls -l takes a forever to finish.

2007-11-29 Thread Derrick Ryalls

 it is for sure.

 the fix would be

 mv /usr/home /usr/oldhome;mkdir /usr/home;mv /usr/oldhome/* /usr/home

 and after successfull move - rm -rf /usr/home

I really hope you meant: rm -rf /usr/oldhome

Also, mv just moves pointers around, wouldn't a cp -Rp be needed instead?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cups web browser access...

2007-11-15 Thread Derrick Ryalls
On 11/15/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
   Dear Sirs


   I use FreeBSD-6.1-R amd64 and I installed cups. When I type in
 http://localhost:631; I got the message server not found.
 Suggestions...
 ___

Going from memory...

Check to see if cupsd is running:

#ps auxww| grep cupsd

if something other than 'grep cupsd' is listed, I don't know why you
can't access the site.  If nothing comes back:

Start the cupsd daemon:

#/usr/local/etc/rc.d/cupsd.sh start

(Might be a bit off, can't recall)

You might need to modify /etc/rc.conf first:

#echo cupsd_enable=YES  /etc/rc.conf

The above script to start cups should tell you want variable you need
in rc.conf to get cupsd working.

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


Re: QEMU and tap problems

2007-09-20 Thread Derrick Ryalls
On 9/20/07, Doug Poland [EMAIL PROTECTED] wrote:

 Hello,

 I've been following the various instructions I've found on the web in an
 attempt to get tap networking with qemu-devel-0.9.0s.20070802 and
 kqemu-kmod-1.3.0.p11_2 on 6.2-STABLE.

 qemu was compiled with:
_OPTIONS_READ=qemu-devel-0.9.0s.20070802
WITH_KQEMU=true
WITHOUT_HACKS_CIRRUS=true
WITHOUT_RTL8139_TIMER=true
WITHOUT_SAMBA=true
WITH_SDL=true
WITH_CDROM_DMA=true

 The kernel modules are loaded:
if_tap, bridge, aio, kqemu

 The sysctls are changed:
sysctl net.link.ether.bridge_cfg=ath0,tap0
sysctl net.link.ether.bridge.enable=1

 The tap device exists:
crw---  1 root  wheel0, 134 Sep 19 22:42 /dev/tap0

tap0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
 inet 0.0.0.0 netmask 0xff00 broadcast 0.255.255.255
 ether 00:bd:01:3c:01:00
 Opened by PID 1317

 The qemu-ifup script exists:
cat /etc/qemu-ifup
  #!/bin/sh
  ifconfig ${1} 0.0.0.0

 I launch qemu like this:
qemu -m 512 -localtime -hda VMs/w2k3.img -net nic -net tap


 Windows Server 2003 comes up.  If I attempt to use DHCP to configure the
 interface in W2K3, I get a several minute pause while it attempts to
 contact a DHCP server, finally it fails with the message:
This connection has limited or no connectivity
 and windows assigns itself the 169.254.244.101 address.

 If I try to manually configure the windows interface, i.e.,
IP: 172.16.1.15
NM: 255.255.255.0
DG: 172.16.1.1
NS: 172.16.1.17
NS: 172.16.1.21

 Windows thinks it has connectivity, but I cannot ping the default
 gateway from the guest and I cannot ping the IP of the guest from the
 host.

 So at this point, I have no networking from the guest OS.  About the
 only thing that I haven't seen on the web is people using wireless NICs
 in the host.  In my case, I have an atheros chipset connected via WPA2
 to my WAP.

 All help is appreciated...


I just got tap working with an earlier build of qemu using clues from this site:

http://forums.bsdnexus.com/viewtopic.php?id=1563

Also, I can only get it working when I run it with sudo at the moment
and I have only tried with a wired nic.  I have read in some places
that encryption causes problems with tap, but I don't have a link to
where I read it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Desktop rebuild

2007-04-30 Thread Derrick Ryalls

On 4/27/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

On 27/04/07, Derrick Ryalls [EMAIL PROTECTED] wrote:
 I have a laptop that I am currently updating world to the latest from
 the v6 branch, once that is done I want to completely start fresh with
 the GUI.  Right now I have gnome in a mostly working state, a mostly
 out of date KDE and a bunch of other random crud I have installed over
 the last 16 months or so.  Instead of trying to use portupgrade and
 have it fail out/fix/restart, I was thinking life would be easier if I
 just removed anything graphical and start that from scratch.  This way
 all my settings/data remain intact and I can just do a pkg install the
 new stuff.

 Is anyone aware of a quick/safe way of blowing away nearly all
 installed apps as such to start from near scratch.  I do use bash and
 probably a couple other non-GUI installs, so I didn't necessarily want
 to kill _all_ installed ports/pkgs but I might be willing to do that
 if needed.

 Any thought on the best way to approach this?

The best method I have come up with is to first
gather a list of leaf packages with ports-mgmt/portmaster:
$ portmaster -l

and then (assuming you have ports-mgmt/portupgrade
installed):
$ pkg_deinstall -r leaf pkg names
or
$ pkg_delete -r leaf pkg names

ports-mgmt/pkg_cutleaves is a bit overly thorough
(and underly[1] conservative) for my tastes, but may
be more your style.

This shouldn't delete anything required by the stuff
you want to keep and should clean out most of the
kipple.  Multiple runs are suggested and deleting
root packages (as listed under portmaster -l) most
likely won't harm anything (though some of them
may be reinstalled when you upgrade).

pkg_deinstall has the advantage of being able to issue
$ pkg_deinstall -Rr kde*
, which will delete anything requiring kde and required by
kde (at least that is not required by some other package),
and the disadvantage of requiring that both perl and ruby
be installed.



I ended up just creating a new user with a /bin/sh shell, doing a
pkg_delete -a and reinstalling the apps.  I was very impressed with
how quickly pkg_add -r xorg and such (from the handbook) ran and got
me back to a working desktop.  Just need to selectively add any app I
really want reinstalled now.  Though I did run into an issue with
portupgrade and needed to delete its database, per the entry in
UPDATING.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Desktop rebuild

2007-04-27 Thread Derrick Ryalls

I have a laptop that I am currently updating world to the latest from
the v6 branch, once that is done I want to completely start fresh with
the GUI.  Right now I have gnome in a mostly working state, a mostly
out of date KDE and a bunch of other random crud I have installed over
the last 16 months or so.  Instead of trying to use portupgrade and
have it fail out/fix/restart, I was thinking life would be easier if I
just removed anything graphical and start that from scratch.  This way
all my settings/data remain intact and I can just do a pkg install the
new stuff.

Is anyone aware of a quick/safe way of blowing away nearly all
installed apps as such to start from near scratch.  I do use bash and
probably a couple other non-GUI installs, so I didn't necessarily want
to kill _all_ installed ports/pkgs but I might be willing to do that
if needed.

Any thought on the best way to approach this?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Is there a solution for 550 User Unknown mails

2007-01-03 Thread Derrick Ryalls

This is perhaps off topic, but all machines in question are running FreeBSD  :)

Every day I get dozens of failed email notifications in the form of:

UNDELIVERABLE MAIL Your message to the following recipients cannot be
delivered: [EMAIL PROTECTED]: webmail.hansenet.de
[213.191.73.2]:

   RCPT TO:[EMAIL PROTECTED]

 550 RCPT TO:[EMAIL PROTECTED] User unknown

This user Unknown message is due to my server rejecting a mail to my
domain (my domain is not alicedsl.de) for an Unknown user.  Doing some
reading, it appears that in a perfect system where there is only 1
email server per domain, I won't recieve these messages since during
the whole email conversation I will tell the person talking to me that
I don't know of that account and no extra email is generated.

With secondary mail servers, I am accepting mail for other domains,
and then forwarding them on.  It is my belief that acting as a
secondary mail server is what is causing me to receive all these
errors.  What I believe is happening is that for whatever reason the
spammer is talking to my email server for a domain I am secondary on.
I accept the mail and finish the conversation.  I then talk to the
main email host to let them know of the email I got for them.  The
master host responds with 550 User Unknown as it should.  Being the
good little secondary email server I am, I try to respond to the
sender that they got the wrong address, which turns out to be fake.

Assuming that my guessing is correct, is there any way to stop this
flood of reject emails short of not being a secondary server for
anyone?

If my guesses are incorrect, then what is actually going on and how do
I stop the flow?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Fwd: DGE-530T nic not found on 5.5

2006-12-04 Thread Derrick Ryalls

[Resending with more info]

Greetings, I have a fileserver I installed this nic on but the device
fails to show in ifconfig

uname:
5.5-STABLE FreeBSD 5.5-STABLE #2: Sun Oct 29 14:12:46 PST 2006
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/FRODO

Except from FRODO kernel file (generic plus some):

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device  miibus  # MII bus support
device  bfe # Broadcom BCM440x 10/100 Ethernet
device  bge # Broadcom BCM570xx Gigabit Ethernet
device  dc  # DEC/Intel 21143 and various workalikes
device  fxp # Intel EtherExpress PRO/100B (82557, 82558)
device  lge # Level 1 LXT1001 gigabit ethernet
device  nge # NatSemi DP83820 gigabit ethernet
device  pcn # AMD Am79C97x PCI 10/100 (precedence
over 'lnc')
device  re  # RealTek 8139C+/8169/8169S/8110S
device  rl  # RealTek 8129/8139
device  sf  # Adaptec AIC-6915 (``Starfire'')
device  sis # Silicon Integrated Systems SiS 900/SiS 7016
device  sk  # SysKonnect SK-984x  SK-982x gigabit Ethernet
device  ste # Sundance ST201 (D-Link DFE-550TX)
device  ti  # Alteon Networks Tigon I/II gigabit Ethernet
device  tl  # Texas Instruments ThunderLAN
device  tx  # SMC EtherPower II (83c170 ``EPIC'')
device  vge # VIA VT612x gigabit ethernet
device  vr  # VIA Rhine, Rhine II
device  wb  # Winbond W89C840F
device  xl  # 3Com 3c90x (``Boomerang'', ``Cyclone'')


dmesg except:

pci0: network, ethernet at device 6.0 (no driver attached)
vr0: VIA VT6102 Rhine II 10/100BaseTX port 0xdc00-0xdcff mem
0xdfffbe00-0xdfffbeff
irq 23 at device 18.0 on pci0
miibus0: MII bus on vr0
ukphy0: Generic IEEE 802.3u media interface on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: xx:xx:xx:xx:xx:xx

The reference to vr0 are for the onboard nic that it is currently
running off of.

ifconfig lists vr0, plip0, lo0

===[frodo][root] ~ # pciconf -l
[EMAIL PROTECTED]:0:0:  class=0x06 card=0x1106 chip=0x30991106 rev=0x00 
hdr=0x00
[EMAIL PROTECTED]:1:0: class=0x060400 card=0x0080 chip=0xb0991106 rev=0x00 
hdr=0x01
[EMAIL PROTECTED]:6:0: class=0x02 card=0x4b011186 chip=0x4b011186 rev=0x11 
hdr=0x00
[EMAIL PROTECTED]:16:0:class=0x0c0300 card=0x76401462 chip=0x30381106
rev=0x80 hdr=0x00
[EMAIL PROTECTED]:16:1:class=0x0c0300 card=0x76401462 chip=0x30381106
rev=0x80 hdr=0x00
[EMAIL PROTECTED]:16:2:class=0x0c0300 card=0x76401462 chip=0x30381106
rev=0x80 hdr=0x00
[EMAIL PROTECTED]:16:3:class=0x0c0320 card=0x76401462 chip=0x31041106
rev=0x82 hdr=0x00
[EMAIL PROTECTED]:17:0:class=0x060100 card=0x1106 chip=0x31771106
rev=0x00 hdr=0x00
[EMAIL PROTECTED]:17:1:  class=0x01018a card=0x76401462 chip=0x05711106
rev=0x06 hdr=0x00
[EMAIL PROTECTED]:18:0:  class=0x02 card=0x01021106 chip=0x30651106 
rev=0x74 hdr=0x00
[EMAIL PROTECTED]:0:0: class=0x03 card=0x000da0a0 chip=0x002d10de rev=0x15 
hdr=0x00



Doing some searching, someone posted this part of dmesg on a 5.4
PRERELEASE system:

skc0: D-Link DGE-530T Gigabit Ethernet port 0x7400-0x74ff mem
0xfb80-0xfb803fff irq 18 at device 10.0 on pci2
skc0: (null) rev. (0x1)
sk0: Marvell Semiconductor, Inc. Yukon on skc0
sk0: Ethernet address: 00:0f:3d:f2:45:0c
miibus0: MII bus on sk0
e1000phy0: Marvell 88E1000 Gigabit PHY on miibus0
e1000phy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX,
auto

I did check the hardware notes before buying this nic, and according
to http://www.freebsd.org/releases/5.5R/hardware-i386.html it is
supported.  Have I missed a switch somewhere?

Thanks in advance.

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


Re: DGE-530T nic not found on 5.5 - Possibly solved

2006-12-04 Thread Derrick Ryalls

On 12/4/06, Derrick Ryalls [EMAIL PROTECTED] wrote:

[Resending with more info]

Greetings, I have a fileserver I installed this nic on but the device
fails to show in ifconfig

uname:
5.5-STABLE FreeBSD 5.5-STABLE #2: Sun Oct 29 14:12:46 PST 2006
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/FRODO

Except from FRODO kernel file (generic plus some):

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device  miibus  # MII bus support
device  bfe # Broadcom BCM440x 10/100 Ethernet
device  bge # Broadcom BCM570xx Gigabit Ethernet
device  dc  # DEC/Intel 21143 and various workalikes
device  fxp # Intel EtherExpress PRO/100B (82557, 82558)
device  lge # Level 1 LXT1001 gigabit ethernet
device  nge # NatSemi DP83820 gigabit ethernet
device  pcn # AMD Am79C97x PCI 10/100 (precedence
over 'lnc')
device  re  # RealTek 8139C+/8169/8169S/8110S
device  rl  # RealTek 8129/8139
device  sf  # Adaptec AIC-6915 (``Starfire'')
device  sis # Silicon Integrated Systems SiS 900/SiS 7016
device  sk  # SysKonnect SK-984x  SK-982x gigabit Ethernet
device  ste # Sundance ST201 (D-Link DFE-550TX)
device  ti  # Alteon Networks Tigon I/II gigabit Ethernet
device  tl  # Texas Instruments ThunderLAN
device  tx  # SMC EtherPower II (83c170 ``EPIC'')
device  vge # VIA VT612x gigabit ethernet
device  vr  # VIA Rhine, Rhine II
device  wb  # Winbond W89C840F
device  xl  # 3Com 3c90x (``Boomerang'', ``Cyclone'')


dmesg except:

pci0: network, ethernet at device 6.0 (no driver attached)
vr0: VIA VT6102 Rhine II 10/100BaseTX port 0xdc00-0xdcff mem
0xdfffbe00-0xdfffbeff
 irq 23 at device 18.0 on pci0
miibus0: MII bus on vr0
ukphy0: Generic IEEE 802.3u media interface on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: xx:xx:xx:xx:xx:xx

The reference to vr0 are for the onboard nic that it is currently
running off of.

ifconfig lists vr0, plip0, lo0

===[frodo][root] ~ # pciconf -l
[EMAIL PROTECTED]:0:0:  class=0x06 card=0x1106 chip=0x30991106 rev=0x00 
hdr=0x00
[EMAIL PROTECTED]:1:0: class=0x060400 card=0x0080 chip=0xb0991106 rev=0x00 
hdr=0x01
[EMAIL PROTECTED]:6:0: class=0x02 card=0x4b011186 chip=0x4b011186 rev=0x11 
hdr=0x00
[EMAIL PROTECTED]:16:0:class=0x0c0300 card=0x76401462 chip=0x30381106
rev=0x80 hdr=0x00
[EMAIL PROTECTED]:16:1:class=0x0c0300 card=0x76401462 chip=0x30381106
rev=0x80 hdr=0x00
[EMAIL PROTECTED]:16:2:class=0x0c0300 card=0x76401462 chip=0x30381106
rev=0x80 hdr=0x00
[EMAIL PROTECTED]:16:3:class=0x0c0320 card=0x76401462 chip=0x31041106
rev=0x82 hdr=0x00
[EMAIL PROTECTED]:17:0:class=0x060100 card=0x1106 chip=0x31771106
rev=0x00 hdr=0x00
[EMAIL PROTECTED]:17:1:  class=0x01018a card=0x76401462 chip=0x05711106
rev=0x06 hdr=0x00
[EMAIL PROTECTED]:18:0:  class=0x02 card=0x01021106 chip=0x30651106 
rev=0x74 hdr=0x00
[EMAIL PROTECTED]:0:0: class=0x03 card=0x000da0a0 chip=0x002d10de rev=0x15 
hdr=0x00



Doing some searching, someone posted this part of dmesg on a 5.4
PRERELEASE system:

skc0: D-Link DGE-530T Gigabit Ethernet port 0x7400-0x74ff mem
0xfb80-0xfb803fff irq 18 at device 10.0 on pci2
skc0: (null) rev. (0x1)
sk0: Marvell Semiconductor, Inc. Yukon on skc0
sk0: Ethernet address: 00:0f:3d:f2:45:0c
miibus0: MII bus on sk0
e1000phy0: Marvell 88E1000 Gigabit PHY on miibus0
e1000phy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX,
auto

I did check the hardware notes before buying this nic, and according
to http://www.freebsd.org/releases/5.5R/hardware-i386.html it is
supported.  Have I missed a switch somewhere?

Thanks in advance.

-Derrick



I found this in an archive:

http://www.freebsd.org/cgi/query-pr.cgi?pr=99903

I tried manually editing if_sk.c and if_skreg.h build/install kernel
(patch didn't work, possibly wrong version of file?), and then got
this in dmesg:

skc0: D-Link DGE-530T Gigabit Ethernet port 0xec00-0xecff mem 0xdfffc000-0xdff
f irq 17 at device 6.0 on pci0
skc0: unknown media type: 0x31
device_attach: skc0 attach returned 6

So then I did some searching for 0x31 and found this:

http://www.bsdforums.org/forums/archive/index.php/t-43153.html

I added the lines for 0x31 and now the nic shows up in ifconfig.  I am
not home so I can't plug in a patch cord to see if it is fully
functional.

If this does work, how would I create a patch file?  I saved the
original files before editing.  I definitely don't want to claim
ownership of the work that went into this, I was just hoping

DGE-530T nic not found on 5.5

2006-11-27 Thread Derrick Ryalls

Greetings, I have a fileserver I installed this nic on but the device
fails to show in ifconfig

uname:
5.5-STABLE FreeBSD 5.5-STABLE #2: Sun Oct 29 14:12:46 PST 2006
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/FRODO

Except from FRODO kernel file (generic plus some):

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device  miibus  # MII bus support
device  bfe # Broadcom BCM440x 10/100 Ethernet
device  bge # Broadcom BCM570xx Gigabit Ethernet
device  dc  # DEC/Intel 21143 and various workalikes
device  fxp # Intel EtherExpress PRO/100B (82557, 82558)
device  lge # Level 1 LXT1001 gigabit ethernet
device  nge # NatSemi DP83820 gigabit ethernet
device  pcn # AMD Am79C97x PCI 10/100 (precedence
over 'lnc')
device  re  # RealTek 8139C+/8169/8169S/8110S
device  rl  # RealTek 8129/8139
device  sf  # Adaptec AIC-6915 (``Starfire'')
device  sis # Silicon Integrated Systems SiS 900/SiS 7016
device  sk  # SysKonnect SK-984x  SK-982x gigabit Ethernet
device  ste # Sundance ST201 (D-Link DFE-550TX)
device  ti  # Alteon Networks Tigon I/II gigabit Ethernet
device  tl  # Texas Instruments ThunderLAN
device  tx  # SMC EtherPower II (83c170 ``EPIC'')
device  vge # VIA VT612x gigabit ethernet
device  vr  # VIA Rhine, Rhine II
device  wb  # Winbond W89C840F
device  xl  # 3Com 3c90x (``Boomerang'', ``Cyclone'')


dmesg except:

pci0: network, ethernet at device 6.0 (no driver attached)
vr0: VIA VT6102 Rhine II 10/100BaseTX port 0xdc00-0xdcff mem
0xdfffbe00-0xdfffbeff
irq 23 at device 18.0 on pci0
miibus0: MII bus on vr0
ukphy0: Generic IEEE 802.3u media interface on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: xx:xx:xx:xx:xx:xx

The reference to vr0 are for the onboard nic that it is currently
running off of.

ifconfig lists vr0, plip0, lo0

Doing some searching, someone posted this part of dmesg on a 5.4
PRERELEASE system:

skc0: D-Link DGE-530T Gigabit Ethernet port 0x7400-0x74ff mem
0xfb80-0xfb803fff irq 18 at device 10.0 on pci2
skc0: (null) rev. (0x1)
sk0: Marvell Semiconductor, Inc. Yukon on skc0
sk0: Ethernet address: 00:0f:3d:f2:45:0c
miibus0: MII bus on sk0
e1000phy0: Marvell 88E1000 Gigabit PHY on miibus0
e1000phy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX,
auto

I did check the hardware notes before buying this nic, and according
to http://www.freebsd.org/releases/5.5R/hardware-i386.html it is
supported.  Have I missed a switch somewhere?

Thanks in advance.

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


Re: minimum requirements

2006-10-10 Thread Derrick Ryalls

On 10/9/06, Eric Schuele [EMAIL PROTECTED] wrote:

On 10/09/06 12:00, free bsd wrote:
 Thank you everyone for responding to my initial question.

   In hindsight I realize I worded my original inquiry inaccurately.  What I 
am attempting to determine is how well or if ver 6.1 will work on a 4GB hard drive 
with a Pentium 4 - 3.06GHz cpu and 1GB ram?  The machine has a 232GB hard drive 
but I have another 4GB drive sitting around being unused that I was thinking of 
adding to the machine to configure in a dual boot setup with the 4GB drive being 
totally allocated to FreeBSD.

Well, as everyone has stated... It depends on what you are doing with
the machine.

I have a 512MB USB device running 5.3-RELEASE, Xorg, Fluxbox, nessus,
nmap, firefox, and a few other tidbits (no ports tree).  Its darn slow
off USB, but it works.  So yeah, 4GB is sufficient... for some amount of
functionality.

If *I* wanted to use a machine, say for a desktop, I'd want no less than
20GB.  I have a 20GB disk for a machine, yet I ran out of space while
trying to set it up the way I wanted.  I had most things setup, then
tried to compile OO.  I fell back to the package though.

Either way, everyones point is... It depends.  But I think most would
say to have a truly useful Desktop, 4GB is a bit slim.  My vote... 20GB+

HTH.


   However, before attempting that task I am trying to determine whether or 
not it would be even feasible to use a 4GB drive to install v 6.1 or should I use 
a larger drive to install the many of FreeBSD's features?  And if a larger drive 
how large of a drive would I need to utilize many or any of its features without 
limiting myself to a bare bones setup?  Additionally, if the 4GB drive will work 
how limited would the install/capabilities/features be?

   I am not at all opposed to using a larger drive but at the present time do 
not have a clue as to what size drive I should use for the most flexibility 
regarding type of installation options.

   -art




I didn't see it mentioned (may have missed it), I just wanted to point
out one thing.  There is a bit of a speed difference between a 4gig
drive and a 200gig drive.  If you are using a 3gig CPU, it would be a
shame to have such a huge bottleneck with the hard drive.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Mail server relaying spam, but how?

2006-09-19 Thread Derrick Ryalls

The problem is over and the machines in question have been rebuilt
from scratch, but I am still curious as to how it could have happened.

Many weeks ago I noticed that I my mail server was dealing with about
4x the amount of mail it normally does.  After much digging I was able
to trace it back to my brother's machine (different network, different
location) who happens to be my secondary DNS.  I mention the DNS part
since most of the spam being sent to my system was addressed to
domains I host.  In any case, the machine sending me all the spam was
not his mail server, but his router.

Since his actual mail server lives within his network, all port 25
traffic should have been diverted to his internal machine, so it
doesn't seem likely to have been a normal open relay issue.  His
router had qmail installed on it, and was running FreeBSD 4.5, but
aside from the huge amount of mail coming out of it I didn't see any
abnormal activity on the machine.

So the question becomes, how does a router with port 25/993 directed
to the internal network start relaying gobs of spam and why is all (?)
mail directed at my domains in particular?  I didn't see any new
accounts on the machine, nor any strange processes.  As soon as I shut
down all of qmail's processes the problem went away.

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


Re: Which version of Flash to use

2006-08-24 Thread Derrick Ryalls

On 8/24/06, Gerard Seibert [EMAIL PROTECTED] wrote:

FreeBSD 6.1 STABLE

Using 'Firefox 1.5.0.6,1' is there any version of flash that I can
install that will work with it. I cannot seem to get anyone  of them to
work with it when running from with KDE. It makes it rather difficult to
watch any video's on Google or the other streaming video services.





From an little while back:


http://tinyurl.com/gxzof

It worked for me on 6.1 on Gnome, hopefully it'll work for you too.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: any audio wizards know howto store *.smil files?

2006-07-26 Thread Derrick Ryalls

On 7/26/06, RW [EMAIL PROTECTED] wrote:

On Wednesday 26 July 2006 01:31, Gary Kline wrote:
   Rats. Here's what happened whn I added the two switches to mplayer.
   Anybody know why the streamm bmbed out??
...
 Connecting to server real.npr.org[63.236.6.227]:80 ...
 Cache size set to 8192 KBytes
 Connected to server: real.npr.org
 Cache fill:  7.03% (589824 bytes)Stream EOF detected
 Cache fill:  7.08% (593920 bytes)REAL file format detected.
 Stream description: Audio Stream
 Stream mimetype: audio/x-pn-realaudio
 Core dumped ;)

 Exiting... (End of file)


In my experience it always does that when a stream has an ending - it doesn't
mean it's failed.

I see it when recording from the BBC's listen again which streams individual
programs, but not on the continuous live-streams.


For streams the redirect before playing, mplayer's playlist option as
been rather helpful in the past.  Basically, use the original url as
the playlist, then provide the dumpstream parameters and it will
automatically read the redirect.  Doesn't always work, but sometimes
does.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: a good www/picture management port?

2006-07-24 Thread Derrick Ryalls

On 7/22/06, Jonathan Horne [EMAIL PROTECTED] wrote:

anyone know of good picture management application that can be found within
ports, to manage and organize pics that i upload?

right now, my management system is to:
1) open my folder on my local KDE workstation.  create image gallery using the
built in tool.
2) upload the entire folder under a master folder on my web host.

im not looking for sometnig that i can try to complete with imageshack or
anything, but if there is something out there that can help me out with the
thumbnailing and organization of the tons of pics im accumulating these days,
i would appreciate anyones input.

thanks a bunch,
jonathan
___


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


Re: Enabling sound?

2006-07-21 Thread Derrick Ryalls

On 7/21/06, Rich Demanowski [EMAIL PROTECTED] wrote:

I just dropped a SoundBlaster Live! card into my box, and have followed
the directions in the handbook and the man pages.

The following lines are in the compiled kernel:
device sound
device snd_emu10k1

I don't get the pcm0 lines that section 7.2.2 in the manual talks
about.  cat /dev/sndstat returns:
FreeBSD Audio Driver (newpcm)
Installed devices:
and nothing else.

kldload snd_emu10k1 yields no output whatsoever.  When followed by cat
/dev/sndstat it produces the same outputs as above.

kld_load snd_driver yields:
ppc0: parallel port not found.
sio1: configured irq 3 not in bitmap of probed irqs 0x20
sio1: port may not be enabled
ppc0: parallel port not found.
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
ppc0: parallel port not found.
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
ppc0: parallel port not found.
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
ppc0: parallel port not found.
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
ppc0: parallel port not found.
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
ppc0: parallel port not found.
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled

I recompiled with the sound and emu10k1 drivers commented out, and the
kldload and cat /dev/sndstat commands still yield the same.

I need to get sound enabled on this box, so I can do some online
training provided through streaming video.  Please, please, please tell
me I don't have to break down and install wankers on this thing ...



I would try this:

kldload snd_driver

then cat /dev/sndstat to see if perhaps a different driver is needed.
Also, you shouldn't need to recompile, just add the driver line to
/boot/loader.conf as described in the handbook.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Enabling sound?

2006-07-21 Thread Derrick Ryalls

On 7/21/06, Rich Demanowski [EMAIL PROTECTED] wrote:

Derrick Ryalls wrote:
 On 7/21/06, Rich Demanowski [EMAIL PROTECTED] wrote:
 I just dropped a SoundBlaster Live! card into my box, and have followed
 the directions in the handbook and the man pages.

 The following lines are in the compiled kernel:
 device sound
 device snd_emu10k1

 I don't get the pcm0 lines that section 7.2.2 in the manual talks
 about.  cat /dev/sndstat returns:
 FreeBSD Audio Driver (newpcm)
 Installed devices:
 and nothing else.

 kldload snd_emu10k1 yields no output whatsoever.  When followed by cat
 /dev/sndstat it produces the same outputs as above.

 kld_load snd_driver yields:
 ppc0: parallel port not found.
 sio1: configured irq 3 not in bitmap of probed irqs 0x20
 sio1: port may not be enabled
 ppc0: parallel port not found.
 sio1: configured irq 3 not in bitmap of probed irqs 0
 sio1: port may not be enabled
 ppc0: parallel port not found.
 sio1: configured irq 3 not in bitmap of probed irqs 0
 sio1: port may not be enabled
 ppc0: parallel port not found.
 sio1: configured irq 3 not in bitmap of probed irqs 0
 sio1: port may not be enabled
 ppc0: parallel port not found.
 sio1: configured irq 3 not in bitmap of probed irqs 0
 sio1: port may not be enabled
 ppc0: parallel port not found.
 sio1: configured irq 3 not in bitmap of probed irqs 0
 sio1: port may not be enabled
 ppc0: parallel port not found.
 sio1: configured irq 3 not in bitmap of probed irqs 0
 sio1: port may not be enabled

 I recompiled with the sound and emu10k1 drivers commented out, and the
 kldload and cat /dev/sndstat commands still yield the same.

 I need to get sound enabled on this box, so I can do some online
 training provided through streaming video.  Please, please, please tell
 me I don't have to break down and install wankers on this thing ...


 I would try this:

 kldload snd_driver

 then cat /dev/sndstat to see if perhaps a different driver is needed.
I tried that.  That's what got me all the ppc0 and sio1 errors.




Sorry, missed that.  Record heat around here.  My only other
suggestion would involve a different sound card or possibly try a live
O/S disk to see if the hardware is good.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Enabling sound?

2006-07-21 Thread Derrick Ryalls

On 7/21/06, Rich Demanowski [EMAIL PROTECTED] wrote:

Derrick Ryalls wrote:
 On 7/21/06, Rich Demanowski [EMAIL PROTECTED] wrote:
 Derrick Ryalls wrote:
  On 7/21/06, Rich Demanowski [EMAIL PROTECTED] wrote:
  I just dropped a SoundBlaster Live! card into my box, and have
 followed
  the directions in the handbook and the man pages.
 
  The following lines are in the compiled kernel:
  device sound
  device snd_emu10k1
 
  I don't get the pcm0 lines that section 7.2.2 in the manual talks
  about.  cat /dev/sndstat returns:
  FreeBSD Audio Driver (newpcm)
  Installed devices:
  and nothing else.
 
  kldload snd_emu10k1 yields no output whatsoever.  When followed by
 cat
  /dev/sndstat it produces the same outputs as above.
 
  kld_load snd_driver yields:
  ppc0: parallel port not found.
  sio1: configured irq 3 not in bitmap of probed irqs 0x20
  sio1: port may not be enabled
  ppc0: parallel port not found.
  sio1: configured irq 3 not in bitmap of probed irqs 0
  sio1: port may not be enabled
  ppc0: parallel port not found.
  sio1: configured irq 3 not in bitmap of probed irqs 0
  sio1: port may not be enabled
  ppc0: parallel port not found.
  sio1: configured irq 3 not in bitmap of probed irqs 0
  sio1: port may not be enabled
  ppc0: parallel port not found.
  sio1: configured irq 3 not in bitmap of probed irqs 0
  sio1: port may not be enabled
  ppc0: parallel port not found.
  sio1: configured irq 3 not in bitmap of probed irqs 0
  sio1: port may not be enabled
  ppc0: parallel port not found.
  sio1: configured irq 3 not in bitmap of probed irqs 0
  sio1: port may not be enabled
 
  I recompiled with the sound and emu10k1 drivers commented out, and
 the
  kldload and cat /dev/sndstat commands still yield the same.
 
  I need to get sound enabled on this box, so I can do some online
  training provided through streaming video.  Please, please, please
 tell
  me I don't have to break down and install wankers on this thing ...
 
 
  I would try this:
 
  kldload snd_driver
 
  then cat /dev/sndstat to see if perhaps a different driver is needed.
 I tried that.  That's what got me all the ppc0 and sio1 errors.



 Sorry, missed that.  Record heat around here.  My only other
 suggestion would involve a different sound card or possibly try a live
 O/S disk to see if the hardware is good.
Where/how do I obtain one of those?  All I have are the install discs 1
and 2 that I downloaded the iso images for, and all I can get from those
is an emergency holographic shell that can't even find the ls command,
let alone kldload ...



I was referring to something Knoppix like (Freesbie?) so you can see
if a different version of the O/S helps.  I wouldn't know how to
diagnose sound issues in anything linux based though.  Can you drop
the card in a Windows box temporarily to see if it works there?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


freevo on FreeBSD?

2006-07-18 Thread Derrick Ryalls

I am not sure if this is a FreeBSD specific question or a freevo
question, but here it goes.  I was wondering if anyone has been able
to get freevo working on FreeBSD 6.1 with a pvr-250 card?

I have the card working and can do 'mplayer /dev/cxm0' to watch tv
(including sound), but I can't seem to get freevo to play live tv let
alone record anything.

I did install freevo and the pvr250 driver, I can change channels on
the device and watch tv outside of freevo.  This might be a simple
configuration issue with freevo, but since their list didn't seem to
include much FreeBSD specific traffic, I thought I might ask if anyone
here has tried it out lately.

I can post my config file, but didn't want to spam the list with the
huge file if no one else has tried out the port lately.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: firefox with flash and java!

2006-07-03 Thread Derrick Ryalls

 -- Original message --
From: Gerard Seibert [EMAIL PROTECTED]
 Bob Middaugh wrote:

  fwiw, I've followed these instructions on a few boxes, all 6.1-RELEASE, and
 have had no problems:
 
  http://www.unixlike.com.br/?p=%2081


 Is that available in English?


 --
 Gerard Seibert
 [EMAIL PROTECTED]


I don't think so.  I can't read the language it's written in, but I just follow 
the commands and it works. :-)



As mentioned about, google does have a translation service, though the
link got chopped for me.  I believe it is portugese(sp), but here is
the tinyurl version:

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


Re: iwi-firmware

2006-06-29 Thread Derrick Ryalls

  Prior to updating to 6.1, my Intel 2200 BG worked fairly well using
  iwi-firmware and wpa_supplicant.  Now, the firmware fails to load so I
  cannot connect.  I did some searching and some people recommend
  installing iwi-firmware-kmod.  When I try to do so, it is marked as
  ignored and is uninstallable.  Another suggestion is to use code in
  /usr/src/sys/dev/iwi but I don't see a make file and I haven't a clue
  on what to do with that code anyway.
 
  Does anyone know what I need to do to get this nic working again?
 
  #uname -a
  6.1-STABLE FreeBSD 6.1-STABLE #1: Wed Jun  7 03:18:16 PDT 2006
 
  Can you be more precise about what goes wrong?
  
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-questions/index.html
 
  I also suspect that you would have better luck installing the ports if
  you updated your ports tree.  But that's just a guess.

 Are you using iwi-firmware from ports? there seems to be a perfectly
 working driver,

   # kldload if_iwi

 That's what people suggest you to compile from sys/dev/iwi, but it's
 also a loadable as kernel module. If it is not installed in
 /boot/kernel, then it will also be built with the normal kernel build
 proceedure.


Sorry for the lack of details.  Sleep deprivation and hardware
troubleshooting shouldn't be mixed.

Previously, I was using the iwi-firmware port rather successfully,
based on this webpage

http://damien.bergamini.free.fr/ipw/iwi-freebsd.html

At the moment, I do have the device listed under ifconfig iwi0 but I
cannot associate with my AP.  When I go to do a iwicontrol -i iwi0 -d
/boot/firmware/if_iwi -m bss I currently get an error message in the
/var/log/messages (sorry, can't access the machine to get the message)
but I think it was something about the device timing out.  Checking
the help files for the error messages states the the error message
should not happen.

When I did the searching, several posts mentioned that iwi-firmware
didn't work for them on 6.1 when it had on previous versions.  Later I
can update my ports to see if iwi-firmware-kmod now has the ignore
setting removed, but according to
http://www.freebsd.org/cgi/cvsweb.cgi/ports/net/iwi-firmware-kmod/ the
port hasn't been touched in about 2 months (unless I am reading
something wrong).

To sorta summarize, these are example steps that I used to take to get
on wireless:

iwicontrol -i iwi0 -d /boot/firmware/if_iwi -m bss
ifconfig iwi0 up
wpa_supplicant (args)
dhclient iwi0

But now, the first step fails.  The device is still present under
ifconfig though.

My world/kernel is only a couple weeks old, perhaps I cvsup'ed at
exactly the wrong time (during some commit)?



I cvsup'ed this morning, did a full builld world/kernel and
reinstalled iwi-firmware and the adapter can associate again.  I
haven't yet tried to acquire an ip since I am remote and don't want to
lose my connection, but I don't think there will be a problem there.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: iwi-firmware

2006-06-26 Thread Derrick Ryalls

Lowell Gilbert wrote:
 Derrick Ryalls [EMAIL PROTECTED] writes:

 Prior to updating to 6.1, my Intel 2200 BG worked fairly well using
 iwi-firmware and wpa_supplicant.  Now, the firmware fails to load so I
 cannot connect.  I did some searching and some people recommend
 installing iwi-firmware-kmod.  When I try to do so, it is marked as
 ignored and is uninstallable.  Another suggestion is to use code in
 /usr/src/sys/dev/iwi but I don't see a make file and I haven't a clue
 on what to do with that code anyway.

 Does anyone know what I need to do to get this nic working again?

 #uname -a
 6.1-STABLE FreeBSD 6.1-STABLE #1: Wed Jun  7 03:18:16 PDT 2006

 Can you be more precise about what goes wrong?
 
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-questions/index.html

 I also suspect that you would have better luck installing the ports if
 you updated your ports tree.  But that's just a guess.

Are you using iwi-firmware from ports? there seems to be a perfectly
working driver,

  # kldload if_iwi

That's what people suggest you to compile from sys/dev/iwi, but it's
also a loadable as kernel module. If it is not installed in
/boot/kernel, then it will also be built with the normal kernel build
proceedure.



Sorry for the lack of details.  Sleep deprivation and hardware
troubleshooting shouldn't be mixed.

Previously, I was using the iwi-firmware port rather successfully,
based on this webpage

http://damien.bergamini.free.fr/ipw/iwi-freebsd.html

At the moment, I do have the device listed under ifconfig iwi0 but I
cannot associate with my AP.  When I go to do a iwicontrol -i iwi0 -d
/boot/firmware/if_iwi -m bss I currently get an error message in the
/var/log/messages (sorry, can't access the machine to get the message)
but I think it was something about the device timing out.  Checking
the help files for the error messages states the the error message
should not happen.

When I did the searching, several posts mentioned that iwi-firmware
didn't work for them on 6.1 when it had on previous versions.  Later I
can update my ports to see if iwi-firmware-kmod now has the ignore
setting removed, but according to
http://www.freebsd.org/cgi/cvsweb.cgi/ports/net/iwi-firmware-kmod/ the
port hasn't been touched in about 2 months (unless I am reading
something wrong).

To sorta summarize, these are example steps that I used to take to get
on wireless:

iwicontrol -i iwi0 -d /boot/firmware/if_iwi -m bss
ifconfig iwi0 up
wpa_supplicant (args)
dhclient iwi0

But now, the first step fails.  The device is still present under
ifconfig though.

My world/kernel is only a couple weeks old, perhaps I cvsup'ed at
exactly the wrong time (during some commit)?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


iwi-firmware

2006-06-25 Thread Derrick Ryalls

Greetings,

Prior to updating to 6.1, my Intel 2200 BG worked fairly well using
iwi-firmware and wpa_supplicant.  Now, the firmware fails to load so I
cannot connect.  I did some searching and some people recommend
installing iwi-firmware-kmod.  When I try to do so, it is marked as
ignored and is uninstallable.  Another suggestion is to use code in
/usr/src/sys/dev/iwi but I don't see a make file and I haven't a clue
on what to do with that code anyway.

Does anyone know what I need to do to get this nic working again?

#uname -a
6.1-STABLE FreeBSD 6.1-STABLE #1: Wed Jun  7 03:18:16 PDT 2006

Thanks,

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


Creating DVD Movies

2006-06-20 Thread Derrick Ryalls

Greetings,

i was wondering if anyone had a good tool recommendation for creating
DVD movies with FreeBSD.  Since I have a child growing up, it is
appealing to me to make a copy of their favorite DVD and burn it so
they can handle the copy, not the original (legal to make backup
copies).  I also was thinking it could be handy to author my own dvds,
but that might not be for a while.

So far, I can use mplayer to get the DVD to an avi file, but I can't
find anything to get it back onto a dvd.  I have tried dvdauthor, but
the app kept crashing.  Does anyone have any suggestions for this?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Creating DVD Movies

2006-06-20 Thread Derrick Ryalls

On 6/20/06, Mark Kane [EMAIL PROTECTED] wrote:

On Tue, Jun 20, 2006, at 17:48:39 -0700, Derrick Ryalls wrote:
 Greetings,

 i was wondering if anyone had a good tool recommendation for creating
 DVD movies with FreeBSD.  Since I have a child growing up, it is
 appealing to me to make a copy of their favorite DVD and burn it so
 they can handle the copy, not the original (legal to make backup
 copies).  I also was thinking it could be handy to author my own dvds,
 but that might not be for a while.

 So far, I can use mplayer to get the DVD to an avi file, but I can't
 find anything to get it back onto a dvd.  I have tried dvdauthor, but
 the app kept crashing.  Does anyone have any suggestions for this?

Hi.

I don't normally back up DVDs so I'm not sure the best software to do
that. I did a quick ports search and multimedia/lxdvdrip looks nice,
and may do exactly what you want all in one program.

As for dvdauthor crashing, I would guess it's because you're not giving
it the right format for a DVD. AVI files can't go to DVD, you need to
convert it to MPEG-2 PS and the proper specifications. For this, I use
a GTK+ program called Avidemux2 (it's in multimedia/avidemux2), although
ffmpeg or mencoder should work also. Here are my steps for an AVI file
to DVD:

1) Avidemux to video DVD. Set aspect ratios in Configure and set
DVD Res in the Filters area. If the audio is not already AC3 (check
from the A/V information button on the toolbar), set audio to FFM
AC3. Set output format at bottom to MPEG PS A+V. Save the video
filename.mpg. This one is the longest step, the other two are quite a
bit shorter.

2) Take outputted mpeg file and run it through dvdauthor:

dvdauthor --video=ntsc+16:9+720xfull -t -f filename.mpg -o output

3) Burn the authored DVD with dvd+rw tools:

growisofs -dvd-video -Z /dev/cd0 output

For a simple backup though I'd check out lxdvdrip or search through
ports to see if there is a faster solution. I don't see much sense in
going from DVD to AVI then back to DVD when you can just rip directly
from the DVD and burn it back. I provided that info for when you
want to author your own videos though. :)

Hope that helps.

-Mark



You know, I did try dvdrip (forgot to mention it) but I found it to be
geared toward VCD and burning to a CD-R instead of DVDs.  I didn't
even see lxdvdrip.  The pkg-descr does look like it could be the exact
thing I am looking for and will try it out.

If I were to follow your steps about for a DVD copy, I assume VOB copy
or something similar to produce the mpeg would be substituted in step
1, correct?  Though this would not handle DVD9 to single DVD5
(compressed video), I might need to rethink that scenario...

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


Re: natd not starting on boot-up

2006-06-07 Thread Derrick Ryalls

On 6/7/06, Nick Withers [EMAIL PROTECTED] wrote:

On Wed, 07 Jun 2006 15:23:18 +0700
Roger Merritt [EMAIL PROTECTED] wrote:

 At 04:35 PM 6/7/2006 +1000, you wrote:
 On Wed, 07 Jun 2006 12:13:29 +0700
 Roger Merritt [EMAIL PROTECTED] wrote:
 
   I'm thoroughly puzzled. Over the weekend I transferred my FreeBSD
  system to
   a new hard drive. Through laziness I didn't follow the instructions and
  had
   to make a completely new install. Everything now seems to be working the
   way it should, Apache, MySQL, PHP, syslog, Samba -- except natd.
  Everything
   starts on boot-up as it should -- except natd. I can start it manually
  from
   the command line after booting up and logging in and it works fine, but I
   can't tell what's going on that it's failing to start.
  
   My /etc/rc.conf contains the following:
  
   # This file now contains just the overrides from /etc/defaults/rc.conf.
   defaultrouter=203.151.134.1
   gateway_enable=YES
   hostname=poppy.international.stjohn.ac.th
   ifconfig_ed0=inet 10.3.16.125 netmask 255.255.255.0
   ifconfig_ed1=inet 203.151.134.104  netmask 255.255.255.0
   router_enable=YES
   firewall_enable=YES
   firewall_type=OPEN
   firewall_quiet=YES
   natd_enable=YES
   natd_interface=ed1
   ipv6_enable=YES
   linux_enable=YES
   moused_enable=YES
   moused_port=/dev/sysmouse
   moused_type=auto
   screen=daemon
   nfs_client_enable=YES
   sshd_enable=YES
 
 That looks alright to me...
 
   What can I do to get some indication of where the problem is?
 
 Are there any error messages relating to IPFW / natd on boot?

 No, or at least none I could see. That's why I've asked for help.

 What version of FreeBSD are you running?

 6.1-STABLE

Perhaps there's something wrong in the branch at present...?
Doubtful, I guess.

 What's the command
 you're running that _does_ launch natd successfully?

 /sbin/natd -n ed1. I hadn't thought about /etc/rc.d/natd start until
 someone suggested it, but that works too and reads the interface from
 /etc/rc.conf.

   What's the
 output of ls -l /etc/rc.d/natd?

 [poppy] ~# ls -l /etc/rc.d/natd
 -r-xr-xr-x  1 root  wheel  978 May 31 09:52 /etc/rc.d/natd

Hmmm... Well that all seems OK, then.

The only other thing I can think of is that the
'router_enable'=YES' line's creating dramas.

As I understand it, this'll cause /etc/rc.d/routed to attempt to
launch the routing daemon specified by a 'router=...' line,
which you don't appear to have. I don't think this'd interfere
with natd anyway, but I don't really understand what the hell's
going on in /etc/rc.d/routed.

Sorry I can't be more helpful!
--


I don't run route(daemon) so I don't know about router_enable, but
here is what I have in my rc.conf to get natd working:

#router stuff
natd_program=/sbin/natd
natd_enable=YES
natd_interface=rl0
natd_flags=-dynamic -f /etc/natd.conf
gateway_enable=YES

So I use gateway_enable not router_enable.

I don't know if this applies to your problem completely, but might be
worth a shot.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: New folder permissions

2006-05-12 Thread Derrick Ryalls

On 5/12/06, Lowell Gilbert [EMAIL PROTECTED] wrote:

Derrick Ryalls [EMAIL PROTECTED] writes:

 I am having issues getting correct permissions set for files in a
 common area on a web/file server.  I have webroot shared out via samba
 and under there I have an auto-thumbnail generation script that
 creates thumbnails in somefolder/.cache where somefolder is a newly
 created folder.  Example:

 autothumbs\
  mypics1\
image.jpg
.cache
 image_thumb.jpg
  mypics2\
   .cache
 ...

 What needs to happen is when a new folder is created under this
 autothumb tree, the permissions need to be set correctly so that the
 .cache folder can be automatically generated by the thumbnail process.
 I have the main folder listed as root:wheel 777 but when new folders
 are created they have user:wheel 755 permissions and the thumbnail
 script fails as it cannot write to the location.

 Is there something I am missing to get this setup properly?  I know a
 workaround is the manually change the permissions of the folder when
 it is created, but since my wife will be wanting to add pictures, that
 isn't an option for her (very non-techy).  The machine in question a
 5.4-Stable box.

 Any suggestions on what I need to do?

There are a lot of ways to do this, but the one I would recommend is
to change the main folder to be owned by a group that you, your wife,
and the uid running the thumbnail script all are members of --
probably by creating a new group for the purpose.  Then if you set
your wife's umask to 002, directories she creates will be available to
you and any other members of the group.



Would I change the umask on the webserver or on her desktop?  If on
the desktop, then how does this work when she is booted into Windows?
I do like the idea of this solution, but she doesn't even like shell
access so .bashrc wouldn't be executed.  Is there a way to set umask
functionality somewhere else?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: New folder permissions

2006-05-12 Thread Derrick Ryalls

On 5/12/06, Lowell Gilbert [EMAIL PROTECTED] wrote:

Derrick Ryalls [EMAIL PROTECTED] writes:

 On 5/12/06, Lowell Gilbert [EMAIL PROTECTED] wrote:

 There are a lot of ways to do this, but the one I would recommend is
 to change the main folder to be owned by a group that you, your wife,
 and the uid running the thumbnail script all are members of --
 probably by creating a new group for the purpose.  Then if you set
 your wife's umask to 002, directories she creates will be available to
 you and any other members of the group.


 Would I change the umask on the webserver or on her desktop?  If on
 the desktop, then how does this work when she is booted into Windows?
 I do like the idea of this solution, but she doesn't even like shell
 access so .bashrc wouldn't be executed.  Is there a way to set umask
 functionality somewhere else?


I think you need to configure Samba directly for this.
I suspect create mask = 0775 would do it.




Thanks, I didn't even know about that option.  I will try that out
when I get home.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


New folder permissions

2006-05-11 Thread Derrick Ryalls

Greetings,

I am having issues getting correct permissions set for files in a
common area on a web/file server.  I have webroot shared out via samba
and under there I have an auto-thumbnail generation script that
creates thumbnails in somefolder/.cache where somefolder is a newly
created folder.  Example:

autothumbs\
 mypics1\
   image.jpg
   .cache
image_thumb.jpg
 mypics2\
  .cache
...

What needs to happen is when a new folder is created under this
autothumb tree, the permissions need to be set correctly so that the
.cache folder can be automatically generated by the thumbnail process.
I have the main folder listed as root:wheel 777 but when new folders
are created they have user:wheel 755 permissions and the thumbnail
script fails as it cannot write to the location.

Is there something I am missing to get this setup properly?  I know a
workaround is the manually change the permissions of the folder when
it is created, but since my wife will be wanting to add pictures, that
isn't an option for her (very non-techy).  The machine in question a
5.4-Stable box.

Any suggestions on what I need to do?

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


Re: Small Laser Printers

2006-03-29 Thread Derrick Ryalls
On 3/29/06, Robert Uzzi [EMAIL PROTECTED] wrote:

 Any one using a current small laser printer that cost's in the 100 to 200
 dollar range. I've been looking at several to print Invoices on but I keep
 running in circles trying to figure out if they will work. If you got
 something in that range to work which one?

 ___


I couple months ago I bought a Samsung ML-2251N from newegg:

http://www.newegg.com/Product/Product.asp?Item=N82E16828112024

Looks like right now you can get a free 1Gig USB flash drive as a bonus.

The printer works great as a network printer, I installed it as a PCL6
printer and use it via cups.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: k3b incorrectly identifies scsi r/w drive as read-only -- how to change?

2006-03-24 Thread Derrick Ryalls
On 3/24/06, Oliver Iberien [EMAIL PROTECTED] wrote:

 I've got my Plextor PX-W4012S SCSI R/W drive recognized by k3b by adding
 ALL ALL = NOPASSWD: /sbin/camcontrol devlist
 to sudoers and starting k3b with sudo. Unfortunately, k3b has the idea
 that
 this is read-only. In Setup Devices there is no way to remove a device
 from
 the readonly heading and place it under writer drives, and none of the
 options except for the cdrao editor are editable. Attempting to change the
 driver crashes the program.

 k3b must be reading this from somewhere, but where? The drive is r,w is
 fstab.

 Thanks,

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


I don't have access to my laptop (where I recently dealt with this), but
/etc/devfs.conf (i think) has places where you can set the permission to
devices.  I believe I did 0666 (read/write to all) for acd0, cdrom0, pass0,
and perhaps 1 other.  After that (and manually setting perms to /dev/list)
I was able to use k3b without being root.

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


Re: k3b incorrectly identifies scsi r/w drive as read-only -- how to change?

2006-03-24 Thread Derrick Ryalls
On 3/24/06, Oliver Iberien [EMAIL PROTECTED] wrote:

 On Friday 24 March 2006 12:12, you wrote:
  On 3/24/06, Oliver Iberien [EMAIL PROTECTED] wrote:
   I've got my Plextor PX-W4012S SCSI R/W drive recognized by k3b by
 adding
   ALL ALL = NOPASSWD: /sbin/camcontrol devlist
   to sudoers and starting k3b with sudo. Unfortunately, k3b has the idea
   that
   this is read-only. In Setup Devices there is no way to remove a
 device
   from
   the readonly heading and place it under writer drives, and none of
   the options except for the cdrao editor are editable. Attempting to
   change the driver crashes the program.
  
   k3b must be reading this from somewhere, but where? The drive is r,w
 is
   fstab.
 
  I don't have access to my laptop (where I recently dealt with this), but
  /etc/devfs.conf (i think) has places where you can set the permission to
  devices.  I believe I did 0666 (read/write to all) for acd0, cdrom0,
 pass0,
  and perhaps 1 other.  After that (and manually setting perms to
  /dev/list) I was able to use k3b without being root.

 I had done that. I can access the drive, but it is still not being
 correctly
 recognized as a writer.

 Oliver


What happens when you run k3b as root (just to test)

Also, what are the permissions on
(assuming the writer is the first cd device)
/dev/cd0
/dev/acd0
/dev/pass0
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Switching wired - wireless in a user-friendly manner, possible?

2006-03-22 Thread Derrick Ryalls
On 11/27/05, Hans Nieser [EMAIL PROTECTED] wrote:

 AT Matik wrote:

  may be you like what I do
 
  i have DHCP for my nic in rc.conf
 
  when my eth is up (sis0 in my case)  nothing happens as getting the
 config
  from the dhcp server
 
  else I call a script to configure my wireless connection
 (/etc/start-wif)
 
  so you may check running this in crontab as I understand you unplug the
 cable
  and run around ;)

 Thanks for the replies everyone. I think I am going to try and do
 something with devd.conf first. I'm going through the /etc/rc.d/netif,
 /etc/network.subr scripts at the moment so I can get a clear picture of
 how exactly FreeBSD (6.0 is what I'm using) sets up interfaces at boot, to
 prevent myself from screwing anything up ;)
 ___


I recently got wireless working on my laptop and am interested in a script
to readily/automatically switch between wired and wireless connections.  I
was wondering if anyone in this thread had made any progress on that.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


mount_smbfs and NETSMBCRYPTO

2006-03-17 Thread Derrick Ryalls
Greetings,

I have recently run into a problem mounting windows shares on my 6.1 Beta 2
laptop.  smbfs is loaded via loader.conf, but I get an error message stating
that encryption support is not available.  According to this thread:

http://unix.derkeiler.com/Mailing-Lists/FreeBSD/stable/2006-02/msg00556.html

I now need to add

options NETSMBCRYPTO

To my kernel config to get encryption support added for mount_smbfs?

I am currently running a generic kernel and I have never needed to do this
in the past just to mount a windows share.  Has something changed recently
and I will need to do a buildworld to fix this?

I tried kldload netsmbcrypto but I guess the file does not exist.  Is there
any way for me to mount a windows share without doing a buildworld?  I did
not pull sources when I built the machine as I intended to just run generic
and load anything extra via loader.conf.

Thanks for any pointers on this.


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


Re: virtual memory exhausted: Cannot allocate memory

2006-02-22 Thread Derrick Ryalls
On 2/22/06, Ken Williams [EMAIL PROTECTED] wrote:


 Hi FreeBSD folks,

I'm having trouble compiling the java/jdk15 package.  I've downloaded
 the
 files from Sun and eyesbeyond, as per usual. When I go to the jdk15
 directory and do 'make' the compilation starts and runs for an hour or two
 and then grinds to a halt with the following error message;

 --
 gmake[3]: Leaving directory

 `/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/jvmg'
 gmake[3]: Entering directory

 `/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/jvmg'
 Compiling ../generated/adfiles/ad_i486.cpp
 virtual memory exhausted: Cannot allocate memory
 gmake[3]: *** [ad_i486.o] Error 1
 gmake[3]: Leaving directory

 `/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/jvmg'
 gmake[2]: *** [the_vm] Error 2
 gmake[2]: Leaving directory

 `/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/jvmg'
 gmake[1]: *** [jvmg] Error 2
 gmake[1]: Leaving directory
 `/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/tmp'
 gmake: *** [jvmg] Error 2
 *** Error code 2

 Stop in /usr/ports/java/jdk15.

 --

The PC I'm using has a 2.3GHz Pentium, with 128MB memory and 70GB free
 disk space
 running FreeBSD-6.1PRERELEASE. Interestingly, when I run 'make' and do
 'top'
 the compilation process steadily grows to 128MB in size and then stays at
 that size until it grinds to a halt.

   I was under the impression that FreeBSD imposed a default maximum
 process
 size of 512MB, maybe that's changed or I was wrong (anyone ??). After
 Googling, I found that the way to increase the maximum process size was to
 add the following entries to /boot/loader.conf and reboot;

 root$ more /boot/loader.conf
 kern.maxdsiz=1073741824 # 1GB
 kern.dfldsiz=1073741824 # 1GB
 kern.maxssiz=134217728 # 128MB

   I did this and tried compiling jdk15 again but it made no difference.

   So I had the idea that another way to increase the amount of virtual
 memory available is to increase the amount of swap memory available
 (correct
 ??) which I did (to 1GB) as described in the Handbook here
 (
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/adding-swap-space.html
 ).
 This I did, and when I do 'top' it shows up as available swap memory but
 when I tried compiling jdk15 again it also made no difference.

   I've also checked my resource limits (ulimit) but they look reasonable
 to
 me;

 root$ ulimit -SHacdflmnpstuv
 core file size(blocks, -c) unlimited
 data seg size (kbytes, -d) 524288
 file size (blocks, -f) unlimited
 max locked memory (kbytes, -l) unlimited
 max memory size   (kbytes, -m) unlimited
 open files(-n) 1735
 pipe size  (512 bytes, -p) 1
 stack size(kbytes, -s) 65536
 cpu time (seconds, -t) unlimited
 max user processes(-u) 867
 virtual memory(kbytes, -v) unlimited


For info, I also have java/linux-sun-jdk14 installed with linprocfs
 mounted (to bootstrap the jdk15 installation) but I don't think this is
 related to my problem.

   I'm at a bit of a loss what to do next. Do I need to buy some more
 memory
 for my PC (just to compile jdk15) or is there anything else I can try or
 change in FreeBSD which may help me ?

  Any help is much appreciated.

 Ken


My video card has more memory than your system does.  Do you have any swap
space mounted/available?

/etc/fstab will tell you if you have a swap partition.  If you do (and it is
big) then I am not sure what the issue is, but is does sound like the system
is short on memory.  If you have no swap space partitioned, there is a way
to make a swapfile, but I have never done it myself.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Gnome's bottom panel doesn't display running programs

2006-01-31 Thread Derrick Ryalls
On 1/29/06, Eric Kjeldergaard [EMAIL PROTECTED] wrote:

 Sunday 29 January 2006 12:36、Derrick Ryalls さんは書きました:
  Greetings,
 
  I did some searching, but didn't find anything so I was hoping someone
  might have a clue on this.
 
  I just did the compile for gnome 2.12 on FreeBSD 6 and so far most
  everything seems to work except the lower panel does not display the
  current running programs or the other virtual desktops.  I can alt-tab
 to
  the other programs in the same virtual terminal, and can use cntrl-alt
  (left/right) to get to the other terminals, but none show the normal bar
 at
  the bottom.  The top bar looks normal (has normal menus, clock, etc).  I
  hope this is just dependancy that needs to be rebuilt, but am unsure of
  which one do try.
 
  My install was something like this:
 
  Install Freebsd 6 using 6.0 release disc burned last month.
  Install basic packages via sysinstall
  At this point I tried portupgrade -NPPR x11/gnome2
  After many weird issue on out of date dependancies, I used the
  gnome2.12update script to fix the issues.
  After update script was finished, I executed a normal install: cd
  x11/gnome2; make install clean
 
  The final install did complete successfully and gnome has been running,
 but
  the bottom panel isn't working.
 
  Thanks in advance for any clues.

 If I recall correctly (can't test at the moment due to hard disk failure)
 GNOME relies on DBUS working to get everything working proper.  I believe
 that the window list is part of that.  Try making sure that DBUS is in
 fact
 working.  You enable it by putting dbus_enable=YES or similar (from
 memory,
 that hard disk thing) in /etc/rc.conf.  Since that only affects at boot
 time,
 either reboot or find the script (/usr/local/etc/rc.d/ somewhere, I should
 think) and start it.  Hope this does it for you,

 Eric

 --
 Emails appear more personalised with signatures.



I tried enabling and rebooting but I still have the issue.  I have never
noticed/needed that switch in rc.conf before though.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Gnome's bottom panel doesn't display running programs

2006-01-28 Thread Derrick Ryalls
Greetings,

I did some searching, but didn't find anything so I was hoping someone might
have a clue on this.

I just did the compile for gnome 2.12 on FreeBSD 6 and so far most
everything seems to work except the lower panel does not display the current
running programs or the other virtual desktops.  I can alt-tab to the other
programs in the same virtual terminal, and can use cntrl-alt (left/right) to
get to the other terminals, but none show the normal bar at the bottom.  The
top bar looks normal (has normal menus, clock, etc).  I hope this is just
dependancy that needs to be rebuilt, but am unsure of which one do try.

My install was something like this:

Install Freebsd 6 using 6.0 release disc burned last month.
Install basic packages via sysinstall
At this point I tried portupgrade -NPPR x11/gnome2
After many weird issue on out of date dependancies, I used the
gnome2.12update script to fix the issues.
After update script was finished, I executed a normal install: cd
x11/gnome2; make install clean

The final install did complete successfully and gnome has been running, but
the bottom panel isn't working.

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


Re: memory requirement

2006-01-11 Thread Derrick Ryalls


  That's what I am thinking about. As a linux
  user for such a long time,
  its quite dissappointed to say that linux has
  become a monster.

 Ah, but mp3s are nice and smooth!!! :-)

 If you don't need any of the newer features, I'd
 suggest FreeBSD 4.x rather than a newer version.
 It was designed to run on lower end system and
 its much more efficient.

 DT


Agreed, I maintain a 4.x system on a P-75 with probably 16M ram.  I think it
took about 25 hours to do a buildworld for router functionality.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HP Pavillion laptop can't boot FreeBSD

2005-12-22 Thread Derrick Ryalls
On 12/22/05, Ted Mittelstaedt [EMAIL PROTECTED] wrote:



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Derrick Ryalls
 Sent: Wednesday, December 21, 2005 10:26 AM
 To: Ted Mittelstaedt
 Cc: FreeBSD Questions
 Subject: Re: HP Pavillion laptop can't boot FreeBSD
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Behalf Of
 Derrick Ryalls
  Sent: Tuesday, December 20, 2005 9:02 PM
  To: FreeBSD Questions
  Subject: HP Pavillion laptop can't boot FreeBSD
  
  
  Greetings,
  
  I recently purchased an HP Pavillion laptop (dv8000) that has
  an AMD-64 CPU,
  with the intent on running FreeBSD 6.0 (i386) as a dual boot
  option.  I have
  installed BSD numerous times on various desktops, but this
 is my first
  attempt on a laptop.
  
  When I boot off the CD, before the boot menu comes up, an
 error message
  comes up: elf32_lookup_symbol: corrupt symbol table.  Then the
  normal boot
  menu comes up, at which point selecting option 1 (normal) or option 2
  (without ACPI) causes the BTX loader to halt after
 displaying some hex
  errors.  I even tried hitting option 6, unsettng acpi_load,
  then booting,
  but the same error comes up.
  
  I tried 6.0 AMD-64 and didn't get as far.  Before the boot menu
  could come
  up, it continually spews what appears to be the same/similar
  hex errors and
  didn't even respond to Cntrl-Alt-Delete.  Trying 5.4, I don't
  get the elf32
  error before the boot menu, but if I select option 1 it has
  trouble loading
  ACPI and then shuts down.  Selecting option 2 (with the 5.4
 cd) does not
  bring up an error, the system just shuts down.  Out of
  curiousity, I tried a
  Knoppix 4.0 CD and was able to fully boot and get a functioning
  system up
  (albeit running off the CD).
  
  My bios has painfully few options, such as boot order and
 disabling the
  onboard wireless nic, nothing else.
  
  Is there something else I should try, or do I have to wait
 for the time
  being?
  
  TIA for any suggestions.
  
  -Derrick
  On 12/21/05, Ted Mittelstaedt [EMAIL PROTECTED] wrote:
  
   boot off floppies and try a ftp install.  Or, boot windows
   and burn the freebsd cd in the laptop (i assume the laptop has
   a cd burner) sounds like a media error.
  
   Ted
 
 
 I don't have a floppy drive to use, but in any case I used 3 different
 FreeBSD CDs, all failed.  One of the CDs I had previously used
 to install on
 a desktop, so I doubt it is a media issue.
 

 Try booting a 4.11 CD, I have systems which will boot 4.11 fine
 but will not boot 5.4 or later.  If an install works on that, I would
 send-pr the bug.

 Also, make sure to firmware/bios update the laptop.

 Ted


I tried 4.11 and got the hex errors even quicker, no chance to interrupt
boot sequence.  There isn't a bios update available for it either.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HP Pavillion laptop can't boot FreeBSD

2005-12-21 Thread Derrick Ryalls
On 21 Dec 2005 12:01:22 -0500, Lowell Gilbert 
[EMAIL PROTECTED] wrote:

 Derrick Ryalls [EMAIL PROTECTED] writes:

  I recently purchased an HP Pavillion laptop (dv8000) that has an AMD-64
 CPU,
  with the intent on running FreeBSD 6.0 (i386) as a dual boot option.  I
 have
  installed BSD numerous times on various desktops, but this is my first
  attempt on a laptop.
 
  When I boot off the CD, before the boot menu comes up, an error message
  comes up: elf32_lookup_symbol: corrupt symbol table.  Then the normal
 boot
  menu comes up, at which point selecting option 1 (normal) or option 2
  (without ACPI) causes the BTX loader to halt after displaying some hex
  errors.  I even tried hitting option 6, unsettng acpi_load, then
 booting,
  but the same error comes up.
 
  I tried 6.0 AMD-64 and didn't get as far.  Before the boot menu could
 come
  up, it continually spews what appears to be the same/similar hex errors
 and
  didn't even respond to Cntrl-Alt-Delete.  Trying 5.4, I don't get the
 elf32
  error before the boot menu, but if I select option 1 it has trouble
 loading
  ACPI and then shuts down.  Selecting option 2 (with the 5.4 cd) does not
  bring up an error, the system just shuts down.  Out of curiousity, I
 tried a
  Knoppix 4.0 CD and was able to fully boot and get a functioning system
 up
  (albeit running off the CD).
 
  My bios has painfully few options, such as boot order and disabling the
  onboard wireless nic, nothing else.
 
  Is there something else I should try, or do I have to wait for the time
  being?

 What happens when you boot in safe mode?


I think I got the same error, but I will double check in a couple hours when
I get home and can try again.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HP Pavillion laptop can't boot FreeBSD

2005-12-21 Thread Derrick Ryalls
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Derrick Ryalls
 Sent: Tuesday, December 20, 2005 9:02 PM
 To: FreeBSD Questions
 Subject: HP Pavillion laptop can't boot FreeBSD
 
 
 Greetings,
 
 I recently purchased an HP Pavillion laptop (dv8000) that has
 an AMD-64 CPU,
 with the intent on running FreeBSD 6.0 (i386) as a dual boot
 option.  I have
 installed BSD numerous times on various desktops, but this is my first
 attempt on a laptop.
 
 When I boot off the CD, before the boot menu comes up, an error message
 comes up: elf32_lookup_symbol: corrupt symbol table.  Then the
 normal boot
 menu comes up, at which point selecting option 1 (normal) or option 2
 (without ACPI) causes the BTX loader to halt after displaying some hex
 errors.  I even tried hitting option 6, unsettng acpi_load,
 then booting,
 but the same error comes up.
 
 I tried 6.0 AMD-64 and didn't get as far.  Before the boot menu
 could come
 up, it continually spews what appears to be the same/similar
 hex errors and
 didn't even respond to Cntrl-Alt-Delete.  Trying 5.4, I don't
 get the elf32
 error before the boot menu, but if I select option 1 it has
 trouble loading
 ACPI and then shuts down.  Selecting option 2 (with the 5.4 cd) does not
 bring up an error, the system just shuts down.  Out of
 curiousity, I tried a
 Knoppix 4.0 CD and was able to fully boot and get a functioning
 system up
 (albeit running off the CD).
 
 My bios has painfully few options, such as boot order and disabling the
 onboard wireless nic, nothing else.
 
 Is there something else I should try, or do I have to wait for the time
 being?
 
 TIA for any suggestions.
 
 -Derrick
 On 12/21/05, Ted Mittelstaedt [EMAIL PROTECTED] wrote:
 
  boot off floppies and try a ftp install.  Or, boot windows
  and burn the freebsd cd in the laptop (i assume the laptop has
  a cd burner) sounds like a media error.
 
  Ted


I don't have a floppy drive to use, but in any case I used 3 different
FreeBSD CDs, all failed.  One of the CDs I had previously used to install on
a desktop, so I doubt it is a media issue.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HP Pavillion laptop can't boot FreeBSD

2005-12-21 Thread Derrick Ryalls
On 12/21/05, Derrick Ryalls [EMAIL PROTECTED] wrote:
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] Behalf Of Derrick
 Ryalls
   Sent: Tuesday, December 20, 2005 9:02 PM
   To: FreeBSD Questions
   Subject: HP Pavillion laptop can't boot FreeBSD
   
   
   Greetings,
   
   I recently purchased an HP Pavillion laptop (dv8000) that has
   an AMD-64 CPU,
   with the intent on running FreeBSD 6.0 (i386) as a dual boot
   option.  I have
   installed BSD numerous times on various desktops, but this is my
 first
   attempt on a laptop.
   
   When I boot off the CD, before the boot menu comes up, an error
 message
   comes up: elf32_lookup_symbol: corrupt symbol table.  Then the
   normal boot
   menu comes up, at which point selecting option 1 (normal) or option 2
   (without ACPI) causes the BTX loader to halt after displaying some
 hex
   errors.  I even tried hitting option 6, unsettng acpi_load,
   then booting,
   but the same error comes up.
   
   I tried 6.0 AMD-64 and didn't get as far.  Before the boot menu
   could come
   up, it continually spews what appears to be the same/similar
   hex errors and
   didn't even respond to Cntrl-Alt-Delete.  Trying 5.4, I don't
   get the elf32
   error before the boot menu, but if I select option 1 it has
   trouble loading
   ACPI and then shuts down.  Selecting option 2 (with the 5.4 cd) does
 not
   bring up an error, the system just shuts down.  Out of
   curiousity, I tried a
   Knoppix 4.0 CD and was able to fully boot and get a functioning
   system up
   (albeit running off the CD).
   
   My bios has painfully few options, such as boot order and disabling
 the
   onboard wireless nic, nothing else.
   
   Is there something else I should try, or do I have to wait for the
 time
   being?
   
   TIA for any suggestions.
   
   -Derrick
   On 12/21/05, Ted Mittelstaedt [EMAIL PROTECTED] wrote:
   
boot off floppies and try a ftp install.  Or, boot windows
and burn the freebsd cd in the laptop (i assume the laptop has
a cd burner) sounds like a media error.
   
Ted
  
  
  I don't have a floppy drive to use, but in any case I used 3 different
  FreeBSD CDs, all failed.  One of the CDs I had previously used to
 install on
  a desktop, so I doubt it is a media issue.
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 

 What you are getting is a keyboard lock error; I've got a Compaq
 Presario M2000 with an AMD Sepron processor, and no matter what
 FreeBSD distro or version I use, after 4.9, my install would always
 lock up. I've posted a thread on this issue to the message board, and
 a few gentlemen replied and had a solution for this; you must get into
 single-user mode, and set a few sysctls to bypass the keyboard and
 serial port confusion.

 Interrupt the kernel loading process, then:

 set hint.sio.0.disabled=1
 set hint.sio.1.disabled=1
 set hint.atkbd.0.flags=0x9

 And continue booting...This was my help from Ariff Abdullah and Nathan
 Vidican


I tried the above set of commands (after hitting option 6 on the boot menu -
escape to loader prompt) including unsetting acpi, then typing boot and the
same error came up.

I am unable to boot to single user mode directly as the above post suggest,
not does safe mode work.

I did notice one difference though.  If I cold boot the laptop, in place of
the elf32 error message, the system hangs.  If I first boot into windows
then reboot to install CD, I get the elf32 error and the option to choose my
boot.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


HP Pavillion laptop can't boot FreeBSD

2005-12-20 Thread Derrick Ryalls
Greetings,

I recently purchased an HP Pavillion laptop (dv8000) that has an AMD-64 CPU,
with the intent on running FreeBSD 6.0 (i386) as a dual boot option.  I have
installed BSD numerous times on various desktops, but this is my first
attempt on a laptop.

When I boot off the CD, before the boot menu comes up, an error message
comes up: elf32_lookup_symbol: corrupt symbol table.  Then the normal boot
menu comes up, at which point selecting option 1 (normal) or option 2
(without ACPI) causes the BTX loader to halt after displaying some hex
errors.  I even tried hitting option 6, unsettng acpi_load, then booting,
but the same error comes up.

I tried 6.0 AMD-64 and didn't get as far.  Before the boot menu could come
up, it continually spews what appears to be the same/similar hex errors and
didn't even respond to Cntrl-Alt-Delete.  Trying 5.4, I don't get the elf32
error before the boot menu, but if I select option 1 it has trouble loading
ACPI and then shuts down.  Selecting option 2 (with the 5.4 cd) does not
bring up an error, the system just shuts down.  Out of curiousity, I tried a
Knoppix 4.0 CD and was able to fully boot and get a functioning system up
(albeit running off the CD).

My bios has painfully few options, such as boot order and disabling the
onboard wireless nic, nothing else.

Is there something else I should try, or do I have to wait for the time
being?

TIA for any suggestions.

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


Re: Battlefield 2 Server won't start - Solved?

2005-06-21 Thread Derrick Ryalls
 On 6/20/05, Freek Nossin [EMAIL PROTECTED] wrote:
  Hello,
 
  I was happy when I saw that the Battlefield 2 Linux Server was released. Now
  I finally had the chance to run this server (a freebsd machine ofcourse ;))
  I thought. After a smooth install (the most annoying parts was accepting the
  agreements) I tried to run the server.
 
  I entered the following command in my BF2 directory:
 
  ./start.sh
 
  And then I got this very nice error message:
 
  /usr/home/dennis/BF2/bf2/bin/ia-32/bf2_f: /usr/lib/libstdc++.so.5: version
  `GLIBCPP_3.2.2' not found (required by
  /usr/home/dennis/BF2/bf2/bin/ia-32/bf2_f)
 
  The library the program was looking for wasn't in the location it expected,
  as it is a linux library. I made a symbolic link to the correct file:
 
  $ls -al /usr/lib/libstdc++.*
  -r--r--r--  1 root  wheel  1709842 Jun 15 22:29 /usr/lib/libstdc++.a
  lrwxr-xr-x  1 root  wheel   14 Jun 15 22:29 /usr/lib/libstdc++.so -
  libstdc++.so.4
  -r--r--r--  1 root  wheel   834196 Jun 15 22:29 /usr/lib/libstdc++.so.4
  lrwxr-xr-x  1 root  wheel   40 Jun 15 15:02 /usr/lib/libstdc++.so.5 -
  /usr/compat/linux/usr/lib/libstdc++.so.5
  -r--r--r--  1 root  wheel  1705326 Jun 15 22:29 /usr/lib/libstdc++_p.a
 
  and
 
  $ls -al /usr/compat/linux/usr/lib/libstdc++.so.5*
  lrwxrwxrwx  1 root  wheel   18 Mar 21 21:42
  /usr/compat/linux/usr/lib/libstdc++.so.5 - libstdc++.so.5.0.1
  -rwxr-xr-x  1 root  wheel  4181584 Sep  4  2002
  /usr/compat/linux/usr/lib/libstdc++.so.5.0.1
 
  but I still get the same error message. Perhaps it has something to do with
  the note about GLIBCPP_3.2.2. I checked my GCC version, which is 3.2.1. Can
  this be the cause? Or what can else cause this kind of error?
 
  I am currently running FreeBSD 5.3
 
  You could make my day I one of you know how to solve this!
 
 
 I don't have a solution for this, but here is what someone send me,
 and they claim it worked:
 
 installed linux_base-8-8
 installed the server distro
 copied the libsc++.so.5 and so.1 to the game servers /ia_32 folder
 
 /copy
 
 I haven't yet been able to try this out, so no promises and sounds
 like what you already did.  If you do figure this out before the rest
 of us, please update the archives (send a mail telling what to do).
 

Here is what is working for me:

linux_base-8 installed.
copy libstdc++.so.5 from an install of linux_base-rh-9 (I can email
binaries if needed) to bin/ia-32
execute start script.

I believe one caveat is that the processor has to be failrly modern. 
Works on 1.2gig, 2500XP, and 1800XP.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Battlefield 2 Server won't start

2005-06-20 Thread Derrick Ryalls
On 6/20/05, Freek Nossin [EMAIL PROTECTED] wrote:
 Hello,
 
 I was happy when I saw that the Battlefield 2 Linux Server was released. Now
 I finally had the chance to run this server (a freebsd machine ofcourse ;))
 I thought. After a smooth install (the most annoying parts was accepting the
 agreements) I tried to run the server.
 
 I entered the following command in my BF2 directory:
 
 ./start.sh
 
 And then I got this very nice error message:
 
 /usr/home/dennis/BF2/bf2/bin/ia-32/bf2_f: /usr/lib/libstdc++.so.5: version
 `GLIBCPP_3.2.2' not found (required by
 /usr/home/dennis/BF2/bf2/bin/ia-32/bf2_f)
 
 The library the program was looking for wasn't in the location it expected,
 as it is a linux library. I made a symbolic link to the correct file:
 
 $ls -al /usr/lib/libstdc++.*
 -r--r--r--  1 root  wheel  1709842 Jun 15 22:29 /usr/lib/libstdc++.a
 lrwxr-xr-x  1 root  wheel   14 Jun 15 22:29 /usr/lib/libstdc++.so -
 libstdc++.so.4
 -r--r--r--  1 root  wheel   834196 Jun 15 22:29 /usr/lib/libstdc++.so.4
 lrwxr-xr-x  1 root  wheel   40 Jun 15 15:02 /usr/lib/libstdc++.so.5 -
 /usr/compat/linux/usr/lib/libstdc++.so.5
 -r--r--r--  1 root  wheel  1705326 Jun 15 22:29 /usr/lib/libstdc++_p.a
 
 and
 
 $ls -al /usr/compat/linux/usr/lib/libstdc++.so.5*
 lrwxrwxrwx  1 root  wheel   18 Mar 21 21:42
 /usr/compat/linux/usr/lib/libstdc++.so.5 - libstdc++.so.5.0.1
 -rwxr-xr-x  1 root  wheel  4181584 Sep  4  2002
 /usr/compat/linux/usr/lib/libstdc++.so.5.0.1
 
 but I still get the same error message. Perhaps it has something to do with
 the note about GLIBCPP_3.2.2. I checked my GCC version, which is 3.2.1. Can
 this be the cause? Or what can else cause this kind of error?
 
 I am currently running FreeBSD 5.3
 
 You could make my day I one of you know how to solve this!
 

I don't have a solution for this, but here is what someone send me,
and they claim it worked:

installed linux_base-8-8
installed the server distro
copied the libsc++.so.5 and so.1 to the game servers /ia_32 folder

/copy

I haven't yet been able to try this out, so no promises and sounds
like what you already did.  If you do figure this out before the rest
of us, please update the archives (send a mail telling what to do).

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


MySQL auto login problem

2005-06-06 Thread Derrick Ryalls
Greetings,

I installed mysql on my friend's laptop (remotely) via ports, and now
he has a strange issue when he boots into freebsd.  As the screen is
going through its normal checks it mentions it is starting mysql, then
it goes to a bash prompt.  When I have him type 'whoami' it responds
with mysql.  When he types exit, GDM kicks in and he gets his normal
login window.  Is there anything I should check for that could explain
why mysql is getting logged in?

System is 5.3 release, the script for mysql:

#!/bin/sh
#
# $FreeBSD: ports/databases/mysql41-server/files/mysql-server.sh.in,v
1.3 2005/04/11 08:47:36 ale Exp $
#

# PROVIDE: mysql
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: shutdown

#
# Add the following line to /etc/rc.conf to enable mysql:
# mysql_enable (bool):  Set to NO by default.
#   Set it to YES to enable MySQL.
# mysql_limits (bool):  Set to NO by default.
#   Set it to yes to run `limits -e -U mysql`
#   just before mysql starts.
# mysql_dbdir (str):Default to /var/db/mysql
#   Base database directory.
# mysql_args (str): Custom additional arguments to be passed
#   to mysqld_safe (default empty).
#

. /etc/rc.subr

name=mysql
rcvar=`set_rcvar`

load_rc_config $name

: ${mysql_enable=NO}
: ${mysql_limits=NO}
: ${mysql_dbdir=/var/db/mysql}
: ${mysql_args=}

mysql_user=mysql
mysql_limits_args=-e -U ${mysql_user}
pidfile=${mysql_dbdir}/`/bin/hostname`.pid
command=/usr/local/bin/mysqld_safe
command_args=--defaults-extra-file=${mysql_dbdir}/my.cnf
--user=${mysql_user} --datadir=${mysql_dbdir} --pid
-file=${pidfile} ${mysql_args}  /dev/null 
procname=/usr/local/libexec/mysqld
start_precmd=${name}_prestart
mysql_install_db=/usr/local/bin/mysql_install_db
mysql_install_db_args=--ldata=${mysql_dbdir}

mysql_create_auth_tables()
{
eval $mysql_install_db $mysql_install_db_args /dev/null
[ $? -eq 0 ]  chown -R ${mysql_user}:${mysql_user} ${mysql_dbdir}
}

mysql_prestart()
{
if [ ! -d ${mysql_dbdir}/mysql/. ]; then
mysql_create_auth_tables || return 1
fi
if checkyesno mysql_limits; then
eval `/usr/bin/limits ${mysql_limits_args}` 2/dev/null
else
return 0
fi
}

run_rc_command $1

### /etc/rc.conf entries:
mysql_enable=YES

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


Re: linux_base compatibility issue? Counter-Strike

2005-03-14 Thread Derrick Ryalls
On Mon, 14 Mar 2005 11:27:14 +0300, roma [EMAIL PROTECTED] wrote:
 Hi,
 
 At me the same problem as at you, whether was possible to you to solve it?
 

[Paste from other thread]


 I came across a post you made regarding the following erros on the CS source
 with freebsd 4.9

 Illegal instruction (core dumped)

 cat: hlds.12893.pid: No such file or directory

 Deprecated bfd_read called at
 /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dwarf2read.c
 line 3049 in dwarf2_read_section

 Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader.

 /lib/libm.so.6: No such file or directory.

 debug.cmds:1: Error in sourced command file:

 email debug.log to [EMAIL PROTECTED]

 Did you ever figure out a resolu8tion to the problem or is the only fix to
 upgrade to 5.3 ?

 Any help would be appreciated!


First, make sure you are using linux_compat8 not 7.  If that alone
works, then wonderful.  If not, then the next part depends on what
processor you have.  If you can support MMX/SSE, the enable SSE in
your kernel (off by default in 4.x I believe) and try again.

When CS:S first came out, I had to do the SSE/compat8 thing to get it
working on an Athlon XP box under 4.x, my Athlon XP box that was
running 5.x had no problem once I install compat.  For a long time, I
couldn't run it on my test server (K6-2 350, no SSE possible), but
sometime recently Valve must have fixed it to use old CPUs as well as
it did work the last time I tried.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: linux_base compatibility issue? Counter-Strike

2005-02-28 Thread Derrick Ryalls
 
 I came across a post you made regarding the following erros on the CS source
 with freebsd 4.9
 
 Illegal instruction (core dumped)
 
 cat: hlds.12893.pid: No such file or directory
 
 Deprecated bfd_read called at
 /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dwarf2read.c
 line 3049 in dwarf2_read_section
 
 Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader.
 
 /lib/libm.so.6: No such file or directory.
 
 debug.cmds:1: Error in sourced command file:
 
 email debug.log to [EMAIL PROTECTED]
 
 Did you ever figure out a resolu8tion to the problem or is the only fix to
 upgrade to 5.3 ?
 
 Any help would be appreciated!
 

First, make sure you are using linux_compat8 not 7.  If that alone
works, then wonderful.  If not, then the next part depends on what
processor you have.  If you can support MMX/SSE, the enable SSE in
your kernel (off by default in 4.x I believe) and try again.

When CS:S first came out, I had to do the SSE/compat8 thing to get it
working on an Athlon XP box under 4.x, my Athlon XP box that was
running 5.x had no problem once I install compat.  For a long time, I
couldn't run it on my test server (K6-2 350, no SSE possible), but
sometime recently Valve must have fixed it to use old CPUs as well as
it did work the last time I tried.

Hope this helps, let me know if it doesn't.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Boot problem with SATA

2005-02-09 Thread Derrick Ryalls
 I've problem with booting my PC. The hardward is (something like)
 
 AMD FX 55
 Two SATA disk with Nvidia NForce 3 for raid
 One disk IDE.
 
 The Two SATA disk is for WinXP
 
 I want install some real OS in the IDE disk, but the problem is I don't
 know how I can choose boot device. When I proceed normaly (like the 100
 times I've to do) I boot on IDE disk (via the BIOS) I've F1..F5 and when I
 press F1 everthing work fine I boot my FreeBSD, but when I press F5i
 boot my FreeBSD too.
 
 Anyone have some solution ?
 

I recommend using the GAG boot loader.   It knows about BSDs/Windows.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Enemy-Territory for Linux run Problem on FreeBSD 5.3 Release

2005-01-25 Thread Derrick Ryalls
  I am running FreeBSD 5.3 Release on a AMD Athlon 2800+ with Linux
  compatibility installed. I have just installed Linux-EnemyTerritory
  from ports and I tried to run it: ./et in
  /usr/compat/linux/usr/games/et .
  I then get this error message:
 
  ...loading libGL.so.1: QGL_Init: dlopen libGL.so.1 failed:
  libGL.so.1: cannot open shared object file: No such file or
  directory failed
  - CL_Shutdown -
  RE_Shutdown( 1 )
  ---
  - CL_Shutdown -
  ---
  Sys_Error: GLimp_Init() - could not load OpenGL subsystem
 
  I have located libGL.so.1 in my /usr/X11R6/lib/ .
  I read the handbook page on Linux Compatibilty, however that didn't
  seem to help.
 
  Any assistance would be greatly appreciated.
 
 I'm not sure where it searches for its required libs. You can try making an
 symbolic link to /usr/compat/linux/usr/lib if it's not there. Or
 perhaps /usr/compat/linux/usr/local/lib.
 
 Jorn 
 
 

Can you run an OpenGL screen saver?  I am guessing that OpenGL is not
enabled for your video for whatever reason.  You might check your
config file.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


READ_DMA interrupt was seen but timeout fired

2005-01-01 Thread Derrick Ryalls
Greetings list.


Today, I found this entry in my daily security mailings:

 ad4: WARNING - READ_DMA interrupt was seen but timeout fired LBA=169679214
 ad4: WARNING - READ_DMA interrupt was seen but timeout fired LBA=192145262
 ad4: WARNING - READ_DMA interrupt was seen but timeout fired LBA=207110586
 ad4: WARNING - READ_DMA interrupt was seen but timeout fired LBA=207488666
 ad4: WARNING - READ_DMA interrupt was seen but timeout fired LBA=236563382
 ad4: WARNING - READ_DMA interrupt was seen but timeout fired LBA=221053142
 ad4: WARNING - READ_DMA interrupt was seen but timeout fired LBA=222542714
 ad4: WARNING - READ_DMA interrupt was seen but timeout fired LBA=224089322

Doing a google search mentioned people seeing this with laptops coming
back from suspend mode.  The machine in question is my desktop running
5.3-STABLE FreeBSD 5.3-STABLE #0 and the hard drive is a 120gig SATA. 
My kernel is GENERIC + sound.

I haven't seen any other issues, no system slowdowns or anything, and
thus far I haven't seen anything on my Windows partition either.

The drive is just over 1 year old, could it be dying already?

Any suggestions would be appreciated.

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


Re: php4 install has conflicts

2004-12-14 Thread Derrick Ryalls
 what is the cleanest way to get PHP4 installed here?  There are a lot of
 programs that have dependancies on mod_php4.  how do I update all those
 dependancies to the latest version of mod_php4?  and then how do I cleanly
 remove all those older versions of mod_php4?
 
 --- snip ---
 
 # make install clean
 ===  Installing for php4-4.3.9_1
 
 ===  php4-4.3.9_1 conflicts with installed package(s):
  mod_php4-4.3.5_7,1
  mod_php4-4.3.6_1,1
  mod_php4-4.3.8_2,1
  mod_php4-4.3.9_1,1
 
  They install files into the same place.
  Please remove them first with pkg_delete(1).
 *** Error code 1
 
 Stop in /usr/ports/lang/php4.
 

I recommend trying portupgrade (with the -N flag I believe)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: AMD Athlon XP 3200+ and reboots under load...

2004-12-13 Thread Derrick Ryalls
 On Mon, 13 Dec 2004 19:19:25 -0600 (CST), draconius
 [EMAIL PROTECTED] wrote:
  what are your temperatures inside the case? what kind of cooling / airflow
  do you have in the case? I have had heat problems before due to bad
  airflow in the case where all the hot air concentraded around the
  processor(s)
 
  -drac
 
 
 
 
   I tested with FreeBSD 4.10 and 5.3. The same problem ocurs, when the
   the machine not reboot, varios coredumps in as/gcc hapens during make
   buildworld.
  
   Hardware:
  
   Asus A7V600-X
   AMD Sempron 2400+
   512MB DDR 400
  
   any ideas ??
  

I think I am running AV7600 (no X), and when I was thinking about
upgrading the ram, I saw a note saying to check Asus' website to make
sure they have tested the ram first.  With lower speed ram, you can
probably run anything, but for the highest speed stuff, you should
check to make sure they work well with it.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FBSD 5.3 + Nvidia drivers

2004-11-08 Thread Derrick Ryalls
On Mon, 8 Nov 2004 07:45:20 -0200, Luís Vitório Cargnini
[EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 
 OOKKK i'll trty so, thanks god for this wonderful OS.
 (no more Nvidia Patchs YES).
 Thanks Velox.
 
 On Sun, 7 Nov 2004 21:24:20 -0600
 
 
 Vulpes Velox [EMAIL PROTECTED] wrote:
 
  On Mon, 8 Nov 2004 00:56:07 -0200
  Luís Vitório Cargnini [EMAIL PROTECTED] wrote:
 
   -BEGIN PGP SIGNED MESSAGE-
   Hash: SHA1
  
   Someone knows if the driver is working on 5.3 release ?
   I must apply all the patchs like in 5.2.1, in 5.3 ??
   Or it is not more necessary ???
 
  Not applied here and am not having any problems.
 
 
 

Just updated to 5.3 this weekend.  Didn't try the port, just went to
nvidia and downloaded their driver.  Installed and is running fine,
though I have DRI and GLX disabled as it wasn't working before my
upgrade and haven't yet checked it on this version.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: portupgrade broken?

2004-09-08 Thread Derrick Ryalls
 [Updating the portsdb format:bdb1_btree in /usr/ports ... - 11733 port
 entries found
 .1000.2000.3000.4000.5000...
 ..6000.7000.8000/usr/local/lib/ruby/site_ruby/1.8/po
 rtsdb.rb:587: [BUG] Bus Error
 

I could be wrong, but it could be a hardware issue.  How long since
you backed up last?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Moving MySQL database

2004-09-03 Thread Derrick Ryalls
  I'd do it this way:
 
  i) Stop mysql

I would actually perform a full mysqldump first and save that off. 
SQL dump file is more flexible concerning version changes than is
saving the actual db files.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


linux_base compatibility issue?

2004-08-13 Thread Derrick Ryalls
Greetings list,

Recently, Valve released a dedicated server for Counter-Strike Source,
coming in windows and linux varieties.  Since my clan has been playing the
older CS dedicated server on a FreeBSD 4.9 box for a while, I wanted to see
if the new one would work.  I installed it on my test machine, and got this
error when in debug mode:

][ryallsd] ~/cssource # ./srcds_run -game cstrike +map de_dust -console
-debug
Enabling debug mode
Auto-restarting the server on crash
Illegal instruction (core dumped)
cat: hlds.58456.pid: No such file or directory
Deprecated bfd_read called at
/usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dwarf2read.c
line 3049 in dwarf2_read_section


Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader.
/lib/libm.so.6: No such file or directory.
email debug.log to [EMAIL PROTECTED]
Fri Aug 13 08:46:28 PDT 2004: Server restart in 10 seconds
^CFri Aug 13 08:46:29 PDT 2004: Server Quit

I copied the directory tree over to a 5.x box, and the dedicated server was
able to run just fine.  Double checking the linux_base, both machines are
running linux_base-8-8.0_4

So, is there some sort of compatibility issue with linux_base and 4.x?

Thanks for any advice.

Derrick

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


Need to delete partition

2004-06-16 Thread Derrick Ryalls

I have an XP/FreeBSD 5.x dual boot machine that has been running fine for
6mos which I had to power down last week.  It had been booted to XP and I
did a normal clean shutdown, but now my XP system is hosed.  After using BSD
to backup data, I tried a normal install to redo the partition, but found
that for whatever reason, XP cannot write to the partition table (if that is
the term) and the install bails.  I tried using /stand/sysinstall to delete
the partition, but it too gives an error: 

Unable to write data to disk ad4!
Disk Partition write returned an error status!

I have also noticed that when booting into FreeBSD now, it takes a couple
minutes to get past the detection of my mouse, hanging after the 5 buttons
line below (from dmesg):

ums0: Microsoft Microsoft 5-Button Mouse with IntelliEye(TM), rev 1.10/3.00,
add
r 2, iclass 3/1
ums0: 5 buttons and Z dir.
uhub0: device problem, disabling port 2


When initially setting up the partitions, I believe I made 4 primary
partitions though I wouldn't think this is causing any issue here.

Any ideas on how to fix this?  Is there some BSD tool that I am not thinking
of?

Hardware:

ASUS A7V600 VIA KT600
VIA 8237 SATA150 controller
Maxtor 6Y120M0 SATA drive.


TIA

Derrick

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


RE: recommends on the best webstats suite?

2004-06-03 Thread Derrick Ryalls
   I'm finished the config section; but now am pointing lynx
   at the html docs.  This is probably a case where I need to
   be patient and RTFM.  --Or really, print out the docs and
   go in a quiet corner since reading online gives me problems.
 
   One thing you can help me with is: what cmd to I type to
   get awstats going?  (I've configured to have the output 
   be placed in /var/log rather than in .  but now what?)

Gary, if you still need assistance with this, let me know and I can help
you offline.

 
   gary
 
 

I got AWStats working for web logs and it is nice, but I would like to
use it for my maillogs as well.  Does anyone know of a wrapper script
that will transform maillogs into a format that awstats can understand?
The built in script doesn't work with my mail server (courier-mta).

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


RE: which kinds of AMD work withh FBSD?

2004-05-25 Thread Derrick Ryalls
snip
 
 FWIW, none of my new systems have floppies and the smallest 
 has 3 x 40GB HDs. The new HDs all run ATA-133 and have 8MB of 
 cache. I have about 40GB of mp3 and wma that I have created 
 from CDs that I own and backup on one of the 2400's. It isn't 
 the one with the 3-40's :). None of the on-board audio 
 connect to the CD-Rom with a digital connection. Digital 
 extraction turns out to be very important when converting audio cds.
 
 An ATA-133 controller is also important because you will find 
 it difficult to buy HDs under 120GB and the older mobo may 
 not recognize the newer, large ones. A 2400+ with ATA-133 HDs 
 will do a buildworld in
 18 minutes. 

That makes me wonder what I am doing wrong.  I have an 2500XP, gig of ram,
and a SATA drive, and buildworld take about 45min, buildkernel about
5-10min.  Yes, timing measured from pure console, not X.


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


RE: Apache 2 / PHP Installation

2004-05-14 Thread Derrick Ryalls
 
 Hi all,
 I installed Apache 2 from the ports collection. Does apache2 
 come with php support? Probably not, but not sure. I want to 
 install php on the system. I'm not sure what port I need to 
 install?? All the pre recks.. 
 are for 1.* versions of Apache. What's the deal?
 

I recommend lang/php4

When you install it should come up with a menu allowing you to choose your
options (GD support, CLI, etc).  After it is done, it will tell you what to
add to your httpd.conf file to get .php files working (apache restart
required).  To test, make a file like:

?php
phpinfo()
?

And call it test.php or something, then browse to it.  If you see that text,
php isn't yet loaded.

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


RE: Gnome 2.6 broke OO and Evo

2004-05-10 Thread Derrick Ryalls
 I was finally able to upgrade to gnome 2.6 on my 5.2 system. 
 
 When finished, I fired up Evolution and it came up, but with 
 no fonts.  I tried a basic portupgrade of evo to accomodate 
 the changes, but afterwards, evo wouldn't even load.  Trying 
 the old fashioned method, I did a make deinstall then make 
 install, but still it doesn't load.  A task bar item comes up 
 but no splash screen or anything, and after about 10 seconds 
 it all disappears. 
 
 Similar with OpenOffice, it just hangs when I try to fire 
 anything up, including setup.  I did try pkg_deleting it and 
 reinstalling the precompiled package, but setup still won't run. 
 
 So, I am figuring the gnome upgrade broke something, but I 
 have no idea on where to start on figuring this out.  Do I 
 need to wait for new evo/OO source/packages? 
 

Hate to reply to my own message like this, but I did solve one of the two
problems.  I created /etc/libmap.conf based off the manpage for it and that
fixed evolution, but I am still having issues with OOo.  No matter what I
try, it refuses to launch any app and I need to kill -9 it from another
terminal.  I would hate to have to resort to a full OO port compile to get
this working as I don't care to deal with the Java dependancy issue, but
besides that, I am out of guesses.

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


Gnome 2.6 broke OO and Evo

2004-05-09 Thread Derrick Ryalls
I was finally able to upgrade to gnome 2.6 on my 5.2 system. 

When finished, I fired up Evolution and it came up, but with no fonts.  I 
tried a basic portupgrade of evo to accomodate the changes, but afterwards, 
evo wouldn't even load.  Trying the old fashioned method, I did a make 
deinstall then make install, but still it doesn't load.  A task bar item 
comes up but no splash screen or anything, and after about 10 seconds it all 
disappears. 

Similar with OpenOffice, it just hangs when I try to fire anything up, 
including setup.  I did try pkg_deleting it and reinstalling the precompiled 
package, but setup still won't run. 

So, I am figuring the gnome upgrade broke something, but I have no idea on 
where to start on figuring this out.  Do I need to wait for new evo/OO 
source/packages? 

TIA 

-Derrick 

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


RE: OpenOffice run problem - Solved

2004-05-05 Thread Derrick Ryalls
 
  /usr/libexec/ld-elf.so.1: Shared object libc_r.so.4 not found
  /usr/libexec/ld-elf.so.1: Shared object libc_r.so.4 not found
 
 this sounds like your openoffice package was built on freebsd 4.x. 
 on freebsd 5.2 libc_r version is 5 (libc_r.so.5). you might 
 try to install the compat4x package. it's a version 4 
 compatibility package, which allows you to run 4.x binaries 
 on 5.x systems. however, i would prefer to fetch an 
 up-to-date package of openoffice or build it from soure. 

We have a winner!  Thank you!  Posting this for the archives.

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


RE: OpenOffice run problem

2004-05-03 Thread Derrick Ryalls
 
  /usr/libexec/ld-elf.so.1: Shared object libc_r.so.4 not found
  /usr/libexec/ld-elf.so.1: Shared object libc_r.so.4 not found
 
  which leads me to believe I am missing a dependant install. 
  I looked 
  at the dependancies and I thought I saw them all listed under 
  pkg_info, so I would like to verify what produces the above 
 so.4 file.
 
 
 This is the base threads C library replacing libc in pthread 
 applications. From man page pthread(3): INSTALLATION
  The current FreeBSD POSIX thread implementation is built 
 in the library
  libc_r which contains both thread-safe libc functions 
 and the thread
  functions.  This library replaces libc for threaded applications.
 
  By default, libc_r is built as part of a 'make world'.  
 To disable the
  build of libc_r you must supply the '-DNOLIBC_R' option 
 to make(1).
 

When I did a buildworld, I didn't have a /etc/make.conf file, so unless that
is the default option, I should have gotten libc_r, right?  Right now the
machine is booted to windows and in another city so I can't check
/etc/defaults/make.conf to see the contents, so I will have to check later
to see what it is set for.  Thanks for the lead atleast.

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


Courier-MTA/maildrop

2004-04-23 Thread Derrick Ryalls
Pardon if this is a bit off topic, but here it goes...

I have a couier-mta system that is running nicely on my 4.9 box, and I
wanted to add some server side mailfilter for some of my email (like put
mail from this list into a specific folder automatically).

I enabled maildrop in courierd, but I am unconvinced it is working.  As a
test, I put just this in my $HOME/.mailfilter file:

to ./Maildir/.test

And the file is owned by me, and rw only by me as required for maildrop.
Even so, mail is not being redirected at all.  I have tried various thing
(sorry didn't keep track) and searched around google to no avail.

Does anyone know how to get maildrop working, and as a bonus have aliased
acct names working as well?

TIA

-Derrick

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


Accessing MySQL from C

2004-04-20 Thread Derrick Ryalls
I am trying to write a little program that will talk to my existing mysql db
server (4.1.1), but am having compile issues.

The code is:

#include stdio.h
#include mysql.h

#define HOST localhost
#define USERNAME test
#define PASSWORD test
#define DB pollphp

MYSQL *conn;

int main()
{
conn = mysql_init(NULL);
}

And here are various compile attempts:

# gcc -o sqltest sqltest.c
sqltest.c:2: mysql.h: No such file or directory
# gcc -L/usr/local/include/mysql -o sqltest sqltest.c
sqltest.c:2: mysql.h: No such file or directory

If I change the above include to:
#include /usr/local/include/mysql/mysql.h

I get this on compile:

# gcc -o sqltest sqltest.c
/tmp/ccrC5KFf.o: In function `main':
/tmp/ccrC5KFf.o(.text+0xc): undefined reference to `mysql_init'

And if I and the -l flag:
# gcc -o sqltest -l/usr/local/lib/mysql/libmysqlclient.so sqltest.c
/usr/libexec/elf/ld: cannot find -l/usr/local/lib/mysql/libmysqlclient.so
(I also tried libmysqlclient.a and libmysqlclient)

I have gotten as far as I can with the man pages for gcc, and google isn't
helping much.  Does anyone know how I can compile a program that talks to
mysql?

TIA

-Derrick

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


RE: Accessing MySQL from C

2004-04-20 Thread Derrick Ryalls
 
 
 In the last episode (Apr 20), Derrick Ryalls said:
  I am trying to write a little program that will talk to my existing 
  mysql db server (4.1.1), but am having compile issues.
 
 You need -I/usr/local/include/mysql on your compile line, and 
 -L/usr/local/lib/mysql on your link line. 
 
 gcc -I/usr/local/include/mysql -c sqltest.c
 gcc -L/usr/local/lib/mysql -o sqltest sqltest.o -lmysqlclient
 
 If you are compiling and linking in one step, you need both.
 
 gcc -I/usr/local/include/mysql -L/usr/local/lib/mysql -o 
 sqltest sqltest.c -lmysqlclient
 
 -- 

Thank you very much, missed the -I option in the man completely, and I don't
think I tried -lmysqlclient.  I knew it was something simple!

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


RE: CUPS

2004-04-15 Thread Derrick Ryalls
 
 
 Robert Storey wrote:
 
 Dear all,
 
 Having looked at the mind-boggling amount of configuration 
 information 
 that is in the Handbook, I decided to just install CUPS. I'm very 
 familiar with CUPS, having configured it many times in Linux.
 
 So I installed the CUPS daemon, and started it by going to 
 /usr/local/etc/rc.d/ and renaming the sample file to cups.sh. I even 
 did a ./cups.sh start and that worked - that is, my 
 printer reacted 
 by moving the print head, and I could fire up Mozilla and type 
 http://localhost:631; and then reach the CUPS configuration 
 page. My 
 printer is an Epson 24-pin dot-matrix onf /dev/lpt0 - there 
 is a driver 
 for that, so no problem. So that should be enough to make it 
 work - at 
 least that would do the job under Linux. But attempting to 
 print a test 
 page gives me nothing.
 
 The Handbook says almost zilch about CUPS other than suggesting that 
 one should look at cups.org for advice. Of course, cups.org 
 has little 
 to say about BSD.
 
 So I'm wondering what I did wrong? Any help is appreciated.
 
 best regards,
 Robert
   
 
 
 I'm a definite newbie when it comes to printing; but I'll
 take a shot (hopefully you're taking that first sentence
 under advisement) in the hopes that keeping the thread
 alive will get you what you need before too many days
 pass.  Probably these questions are more to satisfy my 
 curiosity than to give help ... but let's go:
 
 First, what command are you using to attempt to print
 the test page?
 
 Secondly, what does your entry for the printer look like
 in /etc/printcap?
 
 Anything in your logs?  /var/log/messages, perhaps...
 
 Lastly, did you restart the daemon? 
 
 $lpc restart all
 
 Like I said; I may be off base here, but maybe there's
 food for thought; at the very least maybe somebody
 else can grab the ball and run with it
 

http://www.freebsddiary.org/cups.php

I no longer use CUPS myself, but when I had it setup, I had to make sure the
system lp* files where chmod'ed to -x so that the CUPS version would be used
instead.  The above link suggests moving /usr/local/bin before /usr/bin in
your path, but that just doesn't give me warm fuzzy feelings.

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


RE: Want complete list of freebsd commands in freebsd 5.2

2004-03-17 Thread Derrick Ryalls
 
 On Tue, 16 Mar 2004 13:59:24 +
 Matthew Seaman [EMAIL PROTECTED] wrote:
 
  On Tue, Mar 16, 2004 at 09:39:07AM +0500, Asghar Ali wrote:
  
   Anyone have the complete list of freebsd 5.2 commands. I 
 need it so 
   please send to me on my mail address [EMAIL PROTECTED]
  
  What you ask for is not feasible to provide in an e-mail.
 
 While this is not exactly a complete list of FreeBSD 5.2 
 commands, not even exhaustive, it is remarkably comprehensive:
 
  http://www.freebsd.org/cgi/man.cgi


If you run bash shell, you can also hit tab twice on an empty line and
answer yes to displaying the many possibilites.  :)

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


RE: deleting directories with ??? in name

2004-03-15 Thread Derrick Ryalls
 
 I've tried lynx, but it did not display the files.
 I tried emacs, but I was only able to rename two of the 
 directories to other names I could delete; the other two gave 
 me an error of illegal character. I tried 'rm -i -- ?*' but 
 it didn't find the files. I tried 'find . -inum 146 -delete' 
 but while it gave no error message, the files/directories remain.
 
 Help!  How do I delete these odd directories?
 Please CC me in your response as I'm not currently
 subscribed to the List.
 

#mkdir dir?me
#rmdir dir\?me

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


RE: FreeBSD filesystem performance in Enterprise

2004-03-01 Thread Derrick Ryalls
 Curious how FreeBSD ffs performs in Enterprise-level 
 environments (ie: 
 email stores that send 100's of thousands of messages per  
 day) versus 
 other filesystems like XFS (I heard thre's a port going on for 
 FreeBSD..?), ReiserFS, et al.   Is there a FAQ that covers 
 some of this 
 and the various tuning issues one might consider (filesystem and 
 kernel).   This applies either disk-alone or across a raid array, 
 etc.I'm interested in hearing others experiences (good and bad).
 
 

You are almost starting a holy war  :)

I believe hotmail used to be hosted on FreeBSD until it was bought out by
MS, that should be a decent volume indicator.

I run a very small email list server and it works fine on a p200.  I did see
a noticable jump in speed when I switched the mail service from sendmail to
qmail, so it is also dependant on what you will run.

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


RE: qmail patches...

2004-03-01 Thread Derrick Ryalls
 
 Hi,
   I have followed the install from freebsd.qmailrocks.org, 
 and everything appears to be going OK, I'm almost done with 
 the guy's walk-thru...but I found something of interest on 
 the qmail.org website - patches to do smtp-auth so I can have 
 my clients be able to 'roam' while being able to send email 
 through my SMTP gateway out.  There are a bunch of links 
 there to patches, for SMTP-AUTH...but I have very little 
 idea about how to implement them?
   Can someone who's done it before throw me a clue?
 
 Here's what I'd like to get working: 
 http://students.imsa.edu/~ngroot/qmail-1.03-starttls-smtp-auth
.patch
Is there something better?

I was thinking about using that very patch, just haven't gotten around to
trying it out.  So, if you are gunna try this out, do not use a live system
for testing.


As per the instructions included within the patch:

+How to install it:
+
+Simply patch your qmail-1.03 distribution with the included patch
+file and recompile  install like usual.
+
+The steps to do this are as follows (assuming your virgin
+qmail-1.03 install is in ../qmail-1.03):
+
+  cp README.auth base64.c base64.h ../qmail-1.03
+  patch -d ../qmail-1.03  auth.patch
+
+Install qmail normally, with the exception of the new arguments
+to qmail-smtpd described elsewhere in this file.
+
+Also obtain, unpack, compile and install the cmd5checkpw utility
+(or some other checkpassword utility) and add a sample account to
+/etc/poppasswd file.  This file must be readable by the qmail-smtpd
+user, usually qmaild.

So, I am guessing that means you do this:

#cd /usr/ports/mail/qmail
#make patch
#cd work/qmail-1.03
#fetch http://students.imsa.edu/~ngroot/qmail-1.03-starttls-smtp-auth.patch
#patch -d ../qmail-1.03  qmail-1.03-starttls-smtp-auth.patch
#cd /usr/ports/mail/qmail
(make sure qmail is not running)
#make install

After that you will need to modify /var/qmail/rc to accommodate the
qmail-smtpd startup changes.  Please let us (or atleast me) know how it
works.  I am interested in doing this as well as soon as I have some free
time.

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


Firewall blocking natd redirect

2004-02-27 Thread Derrick Ryalls
I have a port redirect, public port 5001 to an internal machine port 3389,
for Remote Desktop that works well in natd as long as I don't fire up my
custom firewall:

0005023427286 divert 8668 ip from any to any via sis0
00100 24 6080 allow ip from any to any via lo0
00200  00 deny ip from any to 127.0.0.0/8
00300  00 deny ip from 127.0.0.0/8 to any
00400  00 check-state
00500  2  186 allow ip from 192.168.1.1 to 192.168.1.0/24
00600  4  266 allow ip from 192.168.1.0/24 to 192.168.1.1
00700 34 3399 allow ip from any to any keep-state in recv dc0
00800 18 2093 allow ip from any to any keep-state out xmit sis0
00900  00 allow ip from any to any keep-state out xmit dc0
01000  00 allow ip from any to 0.0.0.255:0.0.0.255 in recv dc0
01100  00 allow ip from 192.168.1.1 to any keep-state
01200  00 allow udp from any to any 53 keep-state
01300  00 allow tcp from any to any 53 keep-state
01400  00 allow udp from any to any 25 keep-state
01500  00 allow tcp from any to any 25 keep-state
01600  00 allow tcp from any to any 993 keep-state
0170018818936 allow tcp from any to any 22 keep-state
01800  00 allow tcp from any to any 80 keep-state
01900  00 allow tcp from any to any 5001 keep-state
65535 173082 56255563 deny ip from any to any


sis0 is the public interface and dc0 is the internal.

Right now I don't might so much having reduntant rules, but I would like my
functionality back without doing an allow from any to any.  Any ideas on
what I am missing?

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


  1   2   >