SSH tunneling to FreeBSD 6.x using entunnel ...

2006-06-22 Thread Marc G. Fournier


I have a client that has been using entunnel for the longest time to do an 
SSH tunnel into their vServer ... we've recently begun upgrading to 
FreeBSD 6.x, and entunnel is no longer working (upgraded from FreeBSD 4.x) 
...


Apparenty, bitvise.com's tunnelier has the same problem ...

The way the client describes how entunnel used to work for them:

entunnel was great - i never had to think about it. it just worked, all 
the time, automatically - came up at startup as a service and just sat in 
the system tray.


Without having to downgrade their OpenSSH to the same version as was on 
FreeBSD 4.x (bad option!), is there something that I can look at on the 
FreeBSD 6.x OpenSSH to fix the problem?  Maybe some backwards 
compatibility mode?


Thanks ...


Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: pkg_add is driving me NUTS!

2006-06-22 Thread Björn König

Remington L schrieb:

I have two servers, exact same hardware, exact same version of FreeBSD, in
this case 4.10. When I run pkg_add blah.tbz on one machine, it takes 
between

2-8 hours, on the other 8-10 minutes. These machines are quad-Intel
2.8Xeons, with 4GB of memory.

Ive done everything from running make world, to md5ing pkg_add, bzip2, and
tar, there identical.

I noticed on the one thing, on the machine that takes forever, bzip2 is 
only

using 1-3% load, while the other, which does work, takes 100%. I have SMP
compiled into the kernel, well actually, there both using the exact same
kernconf.

Anyone have ideas??


I would try to encircle the problem. Try to compress and decompress 
idendical random data with bzip2 on both machines. Try also the GENERIC 
kernel without SMP. At a glance I would assume that there is a hardware 
fault.


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


Re: make buildkernel ERROR ?Why?

2006-06-22 Thread Jordi Pavon


  Right John,

  I follow your instructions and it's OK.

  Thank you very much!!

  You have the umass device enabled which, as it says, requires scbus
  and da.  Either remark the umass line or unremark the scbus and da
  lines in the SCSI peripherals section.
  
  Also, as you have the INET6 option remarked out, you probably won't
  need the faith device (in Pseudo devices).
  
  --
  HTH, John.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: pkg_add is driving me NUTS!

2006-06-22 Thread Nikos Vassiliadis
On Thursday 22 June 2006 10:22, Björn König wrote:
 Remington L schrieb:
  I have two servers, exact same hardware, exact same version of FreeBSD,
  in this case 4.10. When I run pkg_add blah.tbz on one machine, it takes
  between
  2-8 hours, on the other 8-10 minutes. These machines are quad-Intel
  2.8Xeons, with 4GB of memory.
 
  Ive done everything from running make world, to md5ing pkg_add, bzip2,
  and tar, there identical.
 
  I noticed on the one thing, on the machine that takes forever, bzip2 is
  only
  using 1-3% load, while the other, which does work, takes 100%. I have SMP
  compiled into the kernel, well actually, there both using the exact same
  kernconf.
 
  Anyone have ideas??

 I would try to encircle the problem. Try to compress and decompress
 idendical random data with bzip2 on both machines. Try also the GENERIC
 kernel without SMP. At a glance I would assume that there is a hardware
 fault.

Yes that, or perhaps medium problems? anything interesting from dmesg(8)?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to raise the limit for sockets

2006-06-22 Thread Nikos Vassiliadis
On Thursday 22 June 2006 06:12, [EMAIL PROTECTED] wrote:
 Hi all,

   How can I raise the file descriptors limits for each socket in
 FBSD 5.4?

Each socket is a descriptor. I guess you need something like:

from limits(1):

 -n [val]  Select or set the openfiles resource limit.  The system-wide
   limit on the maximum number of open files per process can be
   viewed by examining the kern.maxfilesperproc sysctl(8) vari-
   able.  The total number of simultaneously open files in the
   entire system is limited to the value displayed by the
   kern.maxfiles sysctl(8) variable.

--[snip]--

SEE ALSO
 csh(1), env(1), limit(1), sh(1), getrlimit(2), setrlimit(2),
 login_cap(3), login.conf(5), sysctl(8)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: pkg_add is driving me NUTS!

2006-06-22 Thread Jahilliya

On 6/22/06, Nikos Vassiliadis [EMAIL PROTECTED] wrote:


On Thursday 22 June 2006 10:22, Björn König wrote:
 Remington L schrieb:
  I have two servers, exact same hardware, exact same version of
FreeBSD,
  in this case 4.10. When I run pkg_add blah.tbz on one machine, it
takes
  between
  2-8 hours, on the other 8-10 minutes. These machines are quad-Intel
  2.8Xeons, with 4GB of memory.
 
  Ive done everything from running make world, to md5ing pkg_add, bzip2,
  and tar, there identical.
 
  I noticed on the one thing, on the machine that takes forever, bzip2
is
  only
  using 1-3% load, while the other, which does work, takes 100%. I have
SMP
  compiled into the kernel, well actually, there both using the exact
same
  kernconf.



What about the default nice levels, what is top reporting the nice levels
are on both the servers?

Are other processes hogging the CPU?

Have profiles been modified at all on either machine? (/etc/login.conf)

Try doing nice -n -19 pkg_add ..

Monitor iostat -c9 diskdev to see what speed they're reading from the
disk at
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Does anyone run VNC with 64-bit FreeBSD (amd64)?

2006-06-22 Thread Greg Lane
G'day everyone,

I recently had to replace a disk and took the opportunity to 
upgrade from 5-stable to 6-stable.  I also changed from the 
32-bit to the 64-bit version.  I have a dual Opteron server. 

VNC installed from ports (4.2.1) doesn't work on the 64-bit machine.
The same version installed on my home machine (32-bit) with the .vnc 
directory copied over exactly from my work 64-bit machine runs fine. 
So in what sense does it fail

If I create a blank .vnc/xstartup, then I get the usual grey screen.
Then if I try and run X commands on that display, some work, like 
xsetroot -solid blue, but others, xterm, icewm, twm, etc don't.

130~/.vnc$ icewm -display :9
IceWM: using /home/xx/.icewm for private configuration files
X Error of failed request:  BadValue (integer parameter out of range for 
operation)
  Major opcode of failed request:  2 (X_ChangeWindowAttributes)
  Value in failed request:  0x0
  Serial number of failed request:  9
  Current serial number in output stream:  10

131~/.vnc$ xterm -display :9
X Error of failed request:  BadValue (integer parameter out of range for 
operation)
  Major opcode of failed request:  1 (X_CreateWindow)
  Value in failed request:  0x21
  Serial number of failed request:  41
  Current serial number in output stream:  49

If they are in the xstartup file they give the exact same errors in 
the vnc log file.  I was only running them interactively above 
to troubleshoot it.  Google has failed me for once, so I seek 
your experience and advice...

Greg

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


Change detection order for firewire vs SCSI?

2006-06-22 Thread Howard Jones
I have an old dual-P3 server with an internal SCSI backplane. I also 
have an external firewire drive attached to it as cheap, 'disposable' 
storage. It all works swimmingly apart from one thing: When the system 
boots, it loads the kernel from the SCSI drive OK, then at some stage it 
changes it's idea of what da0 is from the first SCSI drive to the 
firewire one, and then fails to boot since there's no da0s1a on the 
firewire drive. Unplugging the firewire drive and rebooting works, but 
means it can't be done unattended, obviously.


Is there any way to stop or change this behaviour? I couldn't see 
anything in the sbp(4) manpage...


I'm running FreeBSD 6.1-RELEASE, in case it's relevant.

Thanks for any pointers.

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


Re: Google Earth... Anyone?

2006-06-22 Thread Martin Tournoy
On Wed, 21 Jun 2006 21:41:16 -, Jeff Molofee [EMAIL PROTECTED]  
wrote:


does anyone know how to resolve the following error in googleearth  
(astro/google-earth)


=== Vulnerability check disabled, database not found
=== Extracting for google-earth-4
= MD5 Checksum OK for GoogleEarthLinux.bin.
= SHA256 Checksum OK for GoogleEarthLinux.bin.
=== Patching for google-earth-4
=== google-earth-4 depends on executable: unmakeself - found
=== Configuring for google-earth-4
=== Building for google-earth-4
=== Installing for google-earth-4
=== google-earth-4 depends on executable: update-mime-database - found
=== google-earth-4 depends on file:  
/compat/linux/usr/X11R6/lib/libGL.so.1 - found
=== google-earth-4 depends on file: /compat/linux/etc/fedora-release -  
found

=== Generating temporary packing list
=== Checking if astro/google-earth already installed
/bin/mkdir -p /usr/local/share/google-earth
install -o root -g wheel -m 444  
/usr/ports/astro/google-earth/work/google-earth-4/googleearth-mimetypes.xml  
/usr/local/share/mime/application/
install:  
/usr/ports/astro/google-earth/work/google-earth-4/googleearth-mimetypes.xml:  
No such file or directory

*** Error code 71



Create an empty file with the same name, program will probably still work.  
(not pretty solution though)


Try doing manual install, just extract and follow whatever instructions  
google provides you.



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


Re: Mounting an old drive/filesystem?

2006-06-22 Thread Martin Tournoy
On Wed, 21 Jun 2006 17:03:09 -, Reuben A. Popp  
[EMAIL PROTECTED] wrote:



Hello all,

We have an old dusty DECstation (last bootup circa 1993) that is finally  
being
removed from our server room after we do one final dump of the data.  If  
I

were to remove its drives to attatch to a modern scsi card, could I still
mount them under FreeBSD?  I'm pretty sure Ultrix was UFS, but I'm not  
100%

positive.  Anyone have any suggestions or ideas?

Thanks in advance
Reuben A. Popp



Ultrix is based on 4.2BSD and uses UFS.

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


Re: Any generic (non-wm-specific) audio players?

2006-06-22 Thread Gary Kline
On Wed, Jun 21, 2006 at 05:51:32PM -0500, Nikolas Britton wrote:
 On 6/21/06, Gary Kline [EMAIL PROTECTED] wrote:
 
 I would probably save weeks trying to turn FBSD into the kind of
 Desktop or window-manager platform I want by just using my
 Ubuntu platform.
 
 I'm still stickng
 with CTWM.  On my Ubuntu servers there is amarak(sp?) which is
 my favorite audio-only apps so far.  Is there anything like this
 that doesn't require desktop-specific libraries?
 
 
 cplay!!! http://mask.tf.hut.fi/~flu/hacks/cplay/ It's in ports under
 audio/cplay. cplay is just a, python based, curses front-end so you
 will also need to install a back-end (ogg123, splay, mpg123, mpg321,
 madplay, mikmod, xmp, or sox), I recommend splay.
 
 I've attached the default .cplayrc config file, copy it to your home
 directory if the port doesn't automatically install it (I don't think
 it does)... and read the man page for cplay.
 
 

Does cplay play streaming audio?  The KDE app does and I am
really getting into some one the new drums and ambient(?)
stuff.  Wow.  Anyway, curses is fine.  Thanks for the config
file.

gary

 
 -- 
 BSD Podcasts @:
 http://bsdtalk.blogspot.com/
 http://freebsdforall.blogspot.com/


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

-- 
   Gary Kline [EMAIL PROTECTED]   www.thought.org Public service Unix

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


Re: Any generic (non-wm-specific) audio players?

2006-06-22 Thread Gary Kline
On Wed, Jun 21, 2006 at 07:10:43PM -0400, Chris Hill wrote:
 On Wed, 21 Jun 2006, Gary Kline wrote:
 
  ...On my Ubuntu servers there is amarak(sp?) which is
  my favorite audio-only apps so far.  Is there anything like this
  that doesn't require desktop-specific libraries?
 
 I've been using xmms for ages. It works, supports many formats, and 
 seems to be pretty lightweight.
 

I use xmms to play the few mp3 files I have; I see many variants
of this in ports, but zero idea how the interface.  Does xmms
play streams?  Be nice is there were a Howto for this.

gary


-- 
   Gary Kline [EMAIL PROTECTED]   www.thought.org Public service Unix

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


Re: HELP! Filesystem EMPTY after upgrade from 4.11 to 6.1

2006-06-22 Thread Martin Tournoy
On Wed, 21 Jun 2006 20:06:38 -, Sven Hazejager  
[EMAIL PROTECTED] wrote:



Hi all!

I have quite a big problem here

I've upgraded my FreeBSD 4.11 to 6.1. Basically, I did a newfs of / and  
/usr

and reinstalled from scratch. That worked.

Rebooted in 6.1 single user mode, mounted /, /usr and /usr/home. The  
latter

I did not touch and I need to save that partition. /usr/home had all the
files it needed to have. PROBLEM: mount said soft-updates were not set on
/usr/home. So I did umount /usr/home, tunefs -n enable /usr/home, mount
/usr/home again... EMPTY

What has gone wrong? I did fsck (in read-only), no problems, rebooted the
system, did tunefs -n disable, still no luck. I really need those files
guys...

Please help urgently.

Many thanks,

Sven Hazejager


4.11 uses UFS1, 6.1 UFS2, there might be some conflict there...

Try using stellar phoenix BSD, it can recover data, before you start  
messing around and destroy stuff...

It's not free, but there's a free trial...
http://www.stellarinfo.com/download/download_form.php?sid=35
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Any generic (non-wm-specific) audio players?

2006-06-22 Thread Gary Kline
On Wed, Jun 21, 2006 at 11:53:23PM -0500, Dennis Olvany wrote:
 vlc

Sounds familiar;  any docs?  I'll check the orts tree...



-- 
   Gary Kline [EMAIL PROTECTED]   www.thought.org Public service Unix

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


Re: NFS Server and MS Windows

2006-06-22 Thread Alex Zbyslaw

DSA - JCR wrote:



I have read it and downloaded, but it seems to be something obsolete (v.
3.5 is from 2004) and I suspect they hasn't made nothing new.
 

It supports NFSv3 and TCP mounts which (right now) is all you want.  
We'll see if MS start to support NFSv4, but right now, IIRC, even BSD 
may not support that fully. 

The thing about software, is that if it works, it doesn't need 
updating.  NFS does not get 38 new features a fortnight so doesn't need 
patching all the time.  If the software worked in 2004, and the standard 
didn't change, MS would have no need to update anything.


I cannot say that MS NFS works fine, because I am still evaluating it 
myself.  I can say that googling *didn't* turn up millions of problems.  
So it's probably the case that since this is a relatively 
straightforward protocol with a well defined standard (RFC), even MS 
could find competent programmers to implement it.


--Alex


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


Re: AMD64 Desktop Support

2006-06-22 Thread Alex Zbyslaw

Michael Collette wrote:



I don't have any bias towards either company.  My focus is spending my 
money on what will actually work.  Starting to feel like I'll be 
looking at the Pentium-D processors.  I've got a laptop with a dual 
core Pentium and it works pretty sweet.


AMD 64bit processors work just fine in i386 mode and dollar for dollar 
will outperform Intel and run cooler and use less power.


There is no need to discount AMD just because you don't want to run 64 
bit version. 

No, I don't work for AMD, I just recognise a better product.  ducks for 
cover


--Alex, my 2 pence





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


Re: Any generic (non-wm-specific) audio players?

2006-06-22 Thread Nikolas Britton

On 6/22/06, Gary Kline [EMAIL PROTECTED] wrote:

On Wed, Jun 21, 2006 at 05:51:32PM -0500, Nikolas Britton wrote:
 On 6/21/06, Gary Kline [EMAIL PROTECTED] wrote:
 
 I would probably save weeks trying to turn FBSD into the kind of
 Desktop or window-manager platform I want by just using my
 Ubuntu platform.
 
 I'm still stickng
 with CTWM.  On my Ubuntu servers there is amarak(sp?) which is
 my favorite audio-only apps so far.  Is there anything like this
 that doesn't require desktop-specific libraries?
 

 cplay!!! http://mask.tf.hut.fi/~flu/hacks/cplay/ It's in ports under
 audio/cplay. cplay is just a, python based, curses front-end so you
 will also need to install a back-end (ogg123, splay, mpg123, mpg321,
 madplay, mikmod, xmp, or sox), I recommend splay.

 I've attached the default .cplayrc config file, copy it to your home
 directory if the port doesn't automatically install it (I don't think
 it does)... and read the man page for cplay.



Does cplay play streaming audio?  The KDE app does and I am
really getting into some one the new drums and ambient(?)
stuff.  Wow.  Anyway, curses is fine.  Thanks for the config
file.



Download the streams playlist file (.pls, .m3u, etc.) and then add it
to cplays playlist like you would with a normal mp3... That's how I do
it, I have not looked for a better way to do it because it's good
enough for me... It also depends on the back-end your using and what's
in your cplayrc file...

You could also launch the stream at the command line, you'll still
need to manually download the playlist file first:
$ cplay radio_paradise.m3u

If you do this:
$ cplay http://www.radioparadise.com/musiclinks/rp_128.m3u
It won't automatically fetch the playlist file, I think it's simply an
issue with the back-end player... maybe mpg123 (or another back-end)
can automatically fetch them... I don't know... have not tried.



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


Re: AC97 sound driver

2006-06-22 Thread Ionut Vancea

helo,

On 6/17/06, DSA - JCR [EMAIL PROTECTED] wrote:

Hi all at this marvellous list of this marvellous OS !!  ;D

I am installing a new FreeBSD box and all is ok less the sound car.
This is an MSI 945P Neo Platinum mainboarda with the sound chipset in it:

I have installed FreeBSD 6.1 amd64 (is EM64T chip)

In BIOS say:

- Azalia/AC97 sound

in Manual:

- High definition link controller in INtel ICH7R chip
- 7.1+2 channel audio codec Realtek ALC882
- complaint with Azalia 1.0 spec.
- Supports DTS effect.

Well, I only want that the computer has sound for CD, DVD, movies, etc.
better things are wellcome of course but it is not the purpose of this
computer.

I have do the following:

get the generic sund driver
# kldload snd_driver

and
# cat /dev/sndstat

but no sound !!!, also the cat command says that there is no sound devices
installed.

Is there a device driver for this, or someone I can get to put sound at
work at a minimum?



maybe, you can try www.opensound.com

[skip]

OSS 3.99.4a announced for FreeBSD (x86 and AMD64)

Fixed up problems with mmap() (games like Quake/Doom) and Non-blocking
mode (like VLC).
Support for FreeBSD 6.0-RELEASE (x86 and amd64) now available
Intel Azalia High Definition Audio now functional

http://www.opensound.com/osshw.html

have a nice day,

--

Ioan Vancea
http://www.vioan.ro
http://www.vioan-solutions.com

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


dhcp resolv.conf and loading priority of network cards

2006-06-22 Thread dick hoogendijk
I have tow nics: a re0 (cabled) and an ath0 (wifi) card. I want the
latter to use dhcp like this:

defaultrouter=192.168.11.1
hostname=arwen.nagual.st
ifconfig_re0=192.168.11.29 netmask 255.255.255.0
ifconfig_ath0=dhcp ssid air01 nwkey 0xc1e1639b753021ab6d64be2575
hidessid authmode shared

What happens is that the ath0 card gets loaded first (not wanted!) plus
the dhcp setting changes my resolv.conf (not wanted either).

How do I get this changed? re0 first, than my ath0 and NO changes to
resolv.conf?

System: freebsd-6.1R

-- 
dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 6.1 ++ The Power to Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: dhcp resolv.conf and loading priority of network cards

2006-06-22 Thread Mikhail Goriachev
dick hoogendijk wrote:
 I have tow nics: a re0 (cabled) and an ath0 (wifi) card. I want the
 latter to use dhcp like this:
 
 defaultrouter=192.168.11.1
 hostname=arwen.nagual.st
 ifconfig_re0=192.168.11.29 netmask 255.255.255.0
 ifconfig_ath0=dhcp ssid air01 nwkey 0xc1e1639b753021ab6d64be2575
 hidessid authmode shared
 
 What happens is that the ath0 card gets loaded first (not wanted!) plus
 the dhcp setting changes my resolv.conf (not wanted either).
 
 How do I get this changed? re0 first, than my ath0 and NO changes to
 resolv.conf?
 
 System: freebsd-6.1R
 


Not sure about initialising interfaces in specific order but if you
don't want to accept changes from a DHCP then:

man dhclient.conf (look at supersede)


Cheers,
Mikhail.


-- 
Mikhail Goriachev
Webanoide

Telephone: +61 (0)3 62252501
Mobile Phone: +61 (0)4 38255158
E-Mail: [EMAIL PROTECTED]
Web: http://www.webanoide.org

PGP Key ID: 0x4E148A3B
PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Using IPFW to redirect all outgoing SMTP traffic to localhost

2006-06-22 Thread Kieran Simkin



Hi Guys,
I have an IPFW question that I'm a bit stuck on and
could do with some help. Basically what I'm trying to do is count and
limit the number of e-mails each user on the system is allowed to send.
I've got this working fine within the e-mail server and everything's
dandy, except for the fact that it's easy to bypass the mail server by
making direct SMTP connections to the target hosts. 
What I need to
be able to do is force all connections to any host on port 25 to be
redirected to localhost. Ideally I'd just be able to forward all outgoing
connections with dst port 25 to localhost. If this is not possible, I
would be happy to simply firewall all outbound traffic with dst port
25.
 There is a caveat:
I need port 25 redirection/blocking to
occur for all users except those which I name (ie, the mailserver and
certain admin users). Of course, the mail server must be able to send
e-mail to external hosts, and I'd like certain other users on the system
to be able to do this as well.
To be honest I'm not really sure
where to start writing an IPFW rule to do this - and pointers would be
greatly appreciated.
Best regards,

~Kieran Simkin
Digital Crocus
___
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 sysctl monitor tool ?

2006-06-22 Thread Maslak Yavuz
Hello 

I have 2 server . I use FreeBSD6.1 and Freebsd6.0 on them.
1 - Is there any program or command about how much the server use the 
parameters sysctl values and whether the server exceed the sysctl limits or not 
? 
can you say a command or tool except  top, ps, netstat -m  ?

2 - While I am looking at system performance with systat command, I sometimes 
see values in usage of disk over %100 as below,
Disks amrd0 pass0  54 ofodintrn  2002 cpu1: time
KB/t  16.00  0.00  88 %slo-z   114464 buf2002 cpu3: time
tps 251 0 531 tfree   274 dirtybuf
MB/s   3.93  0.00  10 desiredvnodes
% busy  102 0   83032 numvnodes
25001 freevnodes

What cause does this condition ?

3 - On FreeBSD6.1  when I typed netstat -m  I saw below values;
173/2827/3000 mbufs in use (current/cache/total)
164/1910/2074/17088 mbuf clusters in use (current/cache/total/max)
164/479 mbuf+clusters out of packet secondary zone in use (current/cache)
0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max)
0/0/0/0 9k jumbo clusters in use (current/cache/total/max)
0/0/0/0 16k jumbo clusters in use (current/cache/total/max)
371K/4526K/4898K bytes allocated to network (current/cache/total)
105906/27714/27042 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
0/9/4528 sfbufs in use (current/peak/max)
0 requests for sfbufs denied
0 requests for sfbufs delayed
4 requests for I/O initiated by sendfile
109 calls to protocol drain routines

What does  105906/27714/27042 requests for mbufs denied 
(mbufs/clusters/mbuf+clusters)  mean ?

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


Re: dhcp resolv.conf and loading priority of network cards

2006-06-22 Thread dick hoogendijk
On Thu, 22 Jun 2006 21:51:15 +1000
Mikhail Goriachev [EMAIL PROTECTED] wrote:

 dick hoogendijk wrote:
  I have tow nics: a re0 (cabled) and an ath0 (wifi) card. I want the
  latter to use dhcp like this:
  
  defaultrouter=192.168.11.1
  hostname=arwen.nagual.st
  ifconfig_re0=192.168.11.29 netmask 255.255.255.0
  ifconfig_ath0=dhcp ssid air01 nwkey 0xc1e1639b753021ab6d64be2575
  hidessid authmode shared
  
  What happens is that the ath0 card gets loaded first (not wanted!)
  plus the dhcp setting changes my resolv.conf (not wanted either).
  
  How do I get this changed? re0 first, than my ath0 and NO changes to
  resolv.conf?
  
  System: freebsd-6.1R
  
 
 
 Not sure about initialising interfaces in specific order but if you
 don't want to accept changes from a DHCP then:
 
   man dhclient.conf (look at supersede)

Yes, I know. I foudn something like that on google. Also a file named
dhclient-enter-hooks seems to do the trick, but I miss the option to
just say don't use my existing resolv.conf badly. On linux it's
easier as I remember (but that's years ago, so things might have
changed there too.

The initialising in a specific order is more important to me at the
moment. Anybody?

-- 
dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 6.1 ++ The Power to Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Does anyone run VNC with 64-bit FreeBSD (amd64)?

2006-06-22 Thread Alex Savovski

I have the same ,problem,But I have never run on other version,I use
RELENG_6_1, AMD64

On 6/22/06, Greg Lane [EMAIL PROTECTED] wrote:


G'day everyone,

I recently had to replace a disk and took the opportunity to
upgrade from 5-stable to 6-stable.  I also changed from the
32-bit to the 64-bit version.  I have a dual Opteron server.

VNC installed from ports (4.2.1) doesn't work on the 64-bit machine.
The same version installed on my home machine (32-bit) with the .vnc
directory copied over exactly from my work 64-bit machine runs fine.
So in what sense does it fail

If I create a blank .vnc/xstartup, then I get the usual grey screen.
Then if I try and run X commands on that display, some work, like
xsetroot -solid blue, but others, xterm, icewm, twm, etc don't.

130~/.vnc$ icewm -display :9
IceWM: using /home/xx/.icewm for private configuration files
X Error of failed request:  BadValue (integer parameter out of range for
operation)
Major opcode of failed request:  2 (X_ChangeWindowAttributes)
Value in failed request:  0x0
Serial number of failed request:  9
Current serial number in output stream:  10

131~/.vnc$ xterm -display :9
X Error of failed request:  BadValue (integer parameter out of range for
operation)
Major opcode of failed request:  1 (X_CreateWindow)
Value in failed request:  0x21
Serial number of failed request:  41
Current serial number in output stream:  49

If they are in the xstartup file they give the exact same errors in
the vnc log file.  I was only running them interactively above
to troubleshoot it.  Google has failed me for once, so I seek
your experience and advice...

Greg

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


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


Re: Using IPFW to redirect all outgoing SMTP traffic to localhost

2006-06-22 Thread Chuck Swiger

Kieran Simkin wrote:

I have an IPFW question that I'm a bit stuck on and
could do with some help. Basically what I'm trying to do is count and
limit the number of e-mails each user on the system is allowed to send.
I've got this working fine within the e-mail server and everything's
dandy, except for the fact that it's easy to bypass the mail server by
making direct SMTP connections to the target hosts. 


Yes.  Use the firewall to do something like:

ipfw add pass tcp from any to MAILSERVER 25 keep-state
ipfw add pass tcp from MAILSERVER to any 25 keep-state
ipfw add unreach filter-prohib log tcp from any to any 25

(I suppose you could use a deny instead, but getting an actual ICMP error is 
probably more useful in this situation)


--
-Chuck

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


Error in man page of sendmsg?

2006-06-22 Thread Valerio daelli

Hi

working with InterMapper (a network tool) on FreeBSD 5.4 I got a

sendmsg -1 errno 22 Invalid argument

I looked in man sendmsg in the errors but I found no EINVAL in the errors.
So I looked at the kernel sources and I found

--

static int
sendit(td, s, mp, flags)
   register struct thread *td;
   int s;
   register struct msghdr *mp;
   int flags;
{
   struct mbuf *control;
   struct sockaddr *to;
   int error;

   if (mp-msg_name != NULL) {
   error = getsockaddr(to, mp-msg_name, mp-msg_namelen);
   if (error) {
   to = NULL;
   goto bad;
   }
   mp-msg_name = to;
   } else {
   to = NULL;
   }

   if (mp-msg_control) {
   if (mp-msg_controllen  sizeof(struct cmsghdr)
#ifdef COMPAT_OLDSOCK
mp-msg_flags != MSG_COMPAT
#endif
   ) {
   error = EINVAL;

--

that error is set to EINVAL so the man page should report EINVAL as possible
error in this funcion.
Bye

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


Re: Error in man page of sendmsg?

2006-06-22 Thread Kevin Kinsey

Valerio daelli wrote:


working with InterMapper (a network tool) on FreeBSD 5.4 I got a

sendmsg -1 errno 22 Invalid argument

I looked in man sendmsg in the errors but I found no EINVAL in the errors.
So I looked at the kernel sources and I found

--- 



static int
sendit(td, s, mp, flags)
   register struct thread *td;
   int s;
   register struct msghdr *mp;
   int flags;
{
   struct mbuf *control;
   struct sockaddr *to;
   int error;

   if (mp-msg_name != NULL) {
   error = getsockaddr(to, mp-msg_name, mp-msg_namelen);
   if (error) {
   to = NULL;
   goto bad;
   }
   mp-msg_name = to;
   } else {
   to = NULL;
   }

   if (mp-msg_control) {
   if (mp-msg_controllen  sizeof(struct cmsghdr)
#ifdef COMPAT_OLDSOCK
mp-msg_flags != MSG_COMPAT
#endif
   ) {
   error = EINVAL;

 



that error is set to EINVAL so the man page should report EINVAL as 
possible

error in this funcion.



Looks like a good catch.  Could you use send-pr(1) to get this into
the GNATS (problem report) database?  It's a doc bug, apparently.

Kevin Kinsey

--
In war it is not men, but the man who counts.
-- Napoleon

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


Serial programming on FreeBSD 6.0 RELEASE

2006-06-22 Thread Andrew Falanga

Hello,

I've got a case where I'm writing a simply serial program to send bytes from
one system to another over a serial cable.  The program works in Linux, but
when I use it in FreeBSD nothing happens.  The program starts and, in the
case of receiving, waits for data to appear on the /dev/cuad1 port and times
out in select.  If I'm sending in FreeBSD, the send program believes it has
written all the data but nothing is received in Linux (either with running
my code on Linux or using kermit).  On FreeBSD, however, if I use kermit to
monitor the /dev/cuad1 port and send, using my code, from Linux, all 2500
packets are transmitted ok.  Also, when sending from Linux and receiving in
FreeBSD, the FreeBSD machine show silo and tty-level interrupt errors.  The
man page for sio describes that as problems in the interrupt handler, for
silo overflows, and that data arrived faster than the application could
process (for the tty-level overflows).

What am I doing wrong?  What is it that Kermit does to allow data being read
from the /dev/cuad1 device that I'm not?  I've been looking over the kermit
sources but to be honest, before Thursday of last week, I'd never programmed
for serial ports before let alone having any knowledge of termios.
Therefore, I'm looking at a very steep learning curve.  Please look over my
ctor for the serial line class that is in my code.  After much debugging,
I'm convinced that my problem is in how I'm configuring my port.

sline::sline( std::string d, int opm ) : dev( d ), opMode( opm )
{
  memset( oldSettings, 0, sizeof( oldSettings ) );
  memset( ioPort, 0, sizeof( ioPort ) );
  memset( recvBuf, 0, PACKETSIZE );
  memset( timeout, 0, sizeof( timeout ) );

  FD_ZERO( incoming );

  timeout.tv_sec = TIMEOUT_SEC;
  timeout.tv_usec = TIMEOUT_USEC;

  // create the packet
  char asciiPrtChars = 32; // first printable ascii character in decimal
  for( int i = 0; i  PACKETSIZE; i++ ) {
 packet[i] = asciiPrtChars++;
 if( asciiPrtChars == 127 ) // 127 is the delete character
asciiPrtChars = 32;
  }

  // on the systems this code was meant to compile, LINUX and FreeBSD
  // O_NDELAY and O_NONBLOCK are the same, however, this is not always
  // true
  fd = open( dev.c_str(), O_RDWR | O_NOCTTY | O_NDELAY );
  if( fd  0 )
 throw init();

  tcgetattr( fd, oldSettings );
  tcgetattr( fd, ioPort );

#ifdef DEBUG
  COUT  Current input speed is   cfgetispeed( ioPort )  ENDL;
  COUT  Current output speed is   cfgetospeed( ioPort )  ENDL;
#endif

#if 0
  if( opMode == OPMODE_WRITE ) {
 if( fcntl( fd, F_SETFL, 0 )  0 ) {
perror( fcntl );
throw init();
 }
  } else {
 if( fcntl( fd, F_SETFL, FNDELAY )  0 ) {
perror( fcntl );
throw init();
 }
 FD_SET( fd, incoming );
  }
#endif

#if 0
  // configure control field, this should configure for 8N1
  // first, disable flow control (may have to put it back in)
  // ioPort.c_cflag = ~CRTSCTS;
  ioPort.c_cflag |= CRTSCTS | CLOCAL | CREAD;
  ioPort.c_cflag = ~PARENB;
  ioPort.c_cflag = ~CSTOPB;
  ioPort.c_cflag = ~CSIZE;
  ioPort.c_cflag |= CS8;

  // configure local field, setting to RAW mode
  ioPort.c_lflag |= ~( ICANON | ECHO | ECHOE | ISIG );

  // configure the input field, setting to ignore parity errors
  // and disable software flow control
  ioPort.c_iflag |= IGNPAR;
  ioPort.c_iflag = ~( IXON | IXOFF | IXANY );

  // configure output field, setting to RAW
  ioPort.c_iflag = ~OPOST;
#endif /* end of if 0 */

  // configure for raw data transfer
  cfmakeraw( ioPort );

  // set VMIN and VTIME parameters in c_cc array
  ioPort.c_cc[VMIN] = PACKETSIZE;
  ioPort.c_cc[VTIME] = 0;

  if( cfsetispeed( ioPort, BAUDRATE )  0 ) {
 perror( cfsetispeed );
 throw init();
  }

  if( cfsetospeed( ioPort, BAUDRATE )  0 ) {
 perror( cfsetospeed );
 throw init();
  }

  COUT  flushing dev:   dev  ENDL;
  if( tcflush( fd, TCIOFLUSH )  0 ) {
 perror( tcflush );
 throw init();
  }

  COUT  Setting new parameters to:   dev  ENDL;
  if( tcsetattr( fd, TCSANOW, ioPort )  0 ) {
 perror( tcsetattr );
 throw init();
  }

#if 0
  if( ioctl( fd, TIOCMGET, portStatus )  0 ) {
 perror( ioctl - get );
 throw init();
  }

  // I believe we want to clearn the DCD bit
  portStatus = ~TIOCM_DTR;

  if( ioctl( fd, TIOCMSET, portStatus )  0 ) {
 perror( ioctl - set );
 throw init();
  }
#endif /* removed for debugging, still not sure I need it */

  if( fcntl( fd, F_SETFL, FNDELAY | O_NONBLOCK )  0 ) {
 perror( fcntl );
 throw init();
  }

#ifdef DEBUG
  COUT  New input speed is   cfgetispeed( ioPort )  ENDL;
  COUT  New output speed is   cfgetospeed( ioPort )  ENDL;
#endif
} // end of sline ctor

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


Re: Are hardware vendors starting to bail on FreeBSD ... ?

2006-06-22 Thread Atom Powers

On 6/21/06, Marc G. Fournier [EMAIL PROTECTED] wrote:

b. are ppl actually using/promoting SATA drives in a server environment?
Or are we just talking about situations where you have a large number
of spindles to work with?  My one experience with an SATA configuration
is that the server doesn't *feel* like its performing as well as my
SCSI servers do ... under load ...


Yes. All the servers I'm installing this year will have SATA drives
(and 3ware RAID controllers). The Western Digital Raptor drives are
every bit as good as the SCSI drives I used to get.

Although it can be difficult to explain to the finance people why a
74GB drive is better than a 500GB drive at the same price.

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


Why have I get kern.ipc.maxpipekva exceeded; see tuning(7) message ?

2006-06-22 Thread KHalid Faith
I use FreeBSD6.0

My server  give me an error as below

kern.ipc.maxpipekva exceeded; see tuning(7)

When I looked at its value as below

sysctl -a |grep kern.ipc.maxpipekva 
kern.ipc.maxpipekva: 16777216

How can I do about that ?

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


Re: Why have I get kern.ipc.maxpipekva exceeded; see tuning(7) message ?

2006-06-22 Thread Marc G. Fournier

On Thu, 22 Jun 2006, KHalid Faith wrote:


I use FreeBSD6.0

My server  give me an error as below

kern.ipc.maxpipekva exceeded; see tuning(7)

When I looked at its value as below

sysctl -a |grep kern.ipc.maxpipekva
kern.ipc.maxpipekva: 16777216

How can I do about that ?


Add an entry to /boot/loader.conf, similar to:

# cat /boot/loader.conf
kern.ipc.maxpipekva=67108864

I'm up to 64M, with current usage being closer to 40M:

==
kern.ipc.maxpipekva: 67108864 - kern.ipc.pipekva: 39112704
running processes: 1528


Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Serial programming on FreeBSD 6.0 RELEASE

2006-06-22 Thread Derek Ragona

Andy,

Did you kill the getty running on the port?

Are you getting any errors?

-Derek

At 10:28 AM 6/22/2006, Andrew Falanga wrote:

Hello,

I've got a case where I'm writing a simply serial program to send bytes from
one system to another over a serial cable.  The program works in Linux, but
when I use it in FreeBSD nothing happens.  The program starts and, in the
case of receiving, waits for data to appear on the /dev/cuad1 port and times
out in select.  If I'm sending in FreeBSD, the send program believes it has
written all the data but nothing is received in Linux (either with running
my code on Linux or using kermit).  On FreeBSD, however, if I use kermit to
monitor the /dev/cuad1 port and send, using my code, from Linux, all 2500
packets are transmitted ok.  Also, when sending from Linux and receiving in
FreeBSD, the FreeBSD machine show silo and tty-level interrupt errors.  The
man page for sio describes that as problems in the interrupt handler, for
silo overflows, and that data arrived faster than the application could
process (for the tty-level overflows).

What am I doing wrong?  What is it that Kermit does to allow data being read
from the /dev/cuad1 device that I'm not?  I've been looking over the kermit
sources but to be honest, before Thursday of last week, I'd never programmed
for serial ports before let alone having any knowledge of termios.
Therefore, I'm looking at a very steep learning curve.  Please look over my
ctor for the serial line class that is in my code.  After much debugging,
I'm convinced that my problem is in how I'm configuring my port.

sline::sline( std::string d, int opm ) : dev( d ), opMode( opm )
{
  memset( oldSettings, 0, sizeof( oldSettings ) );
  memset( ioPort, 0, sizeof( ioPort ) );
  memset( recvBuf, 0, PACKETSIZE );
  memset( timeout, 0, sizeof( timeout ) );

  FD_ZERO( incoming );

  timeout.tv_sec = TIMEOUT_SEC;
  timeout.tv_usec = TIMEOUT_USEC;

  // create the packet
  char asciiPrtChars = 32; // first printable ascii character in decimal
  for( int i = 0; i  PACKETSIZE; i++ ) {
 packet[i] = asciiPrtChars++;
 if( asciiPrtChars == 127 ) // 127 is the delete character
asciiPrtChars = 32;
  }

  // on the systems this code was meant to compile, LINUX and FreeBSD
  // O_NDELAY and O_NONBLOCK are the same, however, this is not always
  // true
  fd = open( dev.c_str(), O_RDWR | O_NOCTTY | O_NDELAY );
  if( fd  0 )
 throw init();

  tcgetattr( fd, oldSettings );
  tcgetattr( fd, ioPort );

#ifdef DEBUG
  COUT  Current input speed is   cfgetispeed( ioPort )  ENDL;
  COUT  Current output speed is   cfgetospeed( ioPort )  ENDL;
#endif

#if 0
  if( opMode == OPMODE_WRITE ) {
 if( fcntl( fd, F_SETFL, 0 )  0 ) {
perror( fcntl );
throw init();
 }
  } else {
 if( fcntl( fd, F_SETFL, FNDELAY )  0 ) {
perror( fcntl );
throw init();
 }
 FD_SET( fd, incoming );
  }
#endif

#if 0
  // configure control field, this should configure for 8N1
  // first, disable flow control (may have to put it back in)
  // ioPort.c_cflag = ~CRTSCTS;
  ioPort.c_cflag |= CRTSCTS | CLOCAL | CREAD;
  ioPort.c_cflag = ~PARENB;
  ioPort.c_cflag = ~CSTOPB;
  ioPort.c_cflag = ~CSIZE;
  ioPort.c_cflag |= CS8;

  // configure local field, setting to RAW mode
  ioPort.c_lflag |= ~( ICANON | ECHO | ECHOE | ISIG );

  // configure the input field, setting to ignore parity errors
  // and disable software flow control
  ioPort.c_iflag |= IGNPAR;
  ioPort.c_iflag = ~( IXON | IXOFF | IXANY );

  // configure output field, setting to RAW
  ioPort.c_iflag = ~OPOST;
#endif /* end of if 0 */

  // configure for raw data transfer
  cfmakeraw( ioPort );

  // set VMIN and VTIME parameters in c_cc array
  ioPort.c_cc[VMIN] = PACKETSIZE;
  ioPort.c_cc[VTIME] = 0;

  if( cfsetispeed( ioPort, BAUDRATE )  0 ) {
 perror( cfsetispeed );
 throw init();
  }

  if( cfsetospeed( ioPort, BAUDRATE )  0 ) {
 perror( cfsetospeed );
 throw init();
  }

  COUT  flushing dev:   dev  ENDL;
  if( tcflush( fd, TCIOFLUSH )  0 ) {
 perror( tcflush );
 throw init();
  }

  COUT  Setting new parameters to:   dev  ENDL;
  if( tcsetattr( fd, TCSANOW, ioPort )  0 ) {
 perror( tcsetattr );
 throw init();
  }

#if 0
  if( ioctl( fd, TIOCMGET, portStatus )  0 ) {
 perror( ioctl - get );
 throw init();
  }

  // I believe we want to clearn the DCD bit
  portStatus = ~TIOCM_DTR;

  if( ioctl( fd, TIOCMSET, portStatus )  0 ) {
 perror( ioctl - set );
 throw init();
  }
#endif /* removed for debugging, still not sure I need it */

  if( fcntl( fd, F_SETFL, FNDELAY | O_NONBLOCK )  0 ) {
 perror( fcntl );
 throw init();
  }

#ifdef DEBUG
  COUT  New input speed is   cfgetispeed( ioPort )  ENDL;
  COUT  New output speed is   cfgetospeed( ioPort )  ENDL;
#endif
} // end of sline ctor

Thanks for you help,
Andy
___
freebsd-questions@freebsd.org mailing list

Re: Any generic (non-wm-specific) audio players?

2006-06-22 Thread Simon Olofsson
Hi,

audio/cmus is very nice.
HTH

On Wed, Jun 21, 2006 at 03:17:20PM -0700, Gary Kline wrote:
 
   I would probably save weeks trying to turn FBSD into the kind of
   Desktop or window-manager platform I want by just using my
   Ubuntu platform.
 
   I'm still stickng
   with CTWM.  On my Ubuntu servers there is amarak(sp?) which is 
   my favorite audio-only apps so far.  Is there anything like this
   that doesn't require desktop-specific libraries?

-- 
Mit freundlichem Gruß,
With best regards,

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


RE: Are hardware vendors starting to bail on FreeBSD ... ?

2006-06-22 Thread Tamouh H.
 
ware vendors starting to bail on FreeBSD ... ?
 
 On 6/21/06, Marc G. Fournier [EMAIL PROTECTED] wrote:
  b. are ppl actually using/promoting SATA drives in a server 
 environment?
  Or are we just talking about situations where you have 
 a large number
  of spindles to work with?  My one experience with an 
 SATA configuration
  is that the server doesn't *feel* like its performing 
 as well as my
  SCSI servers do ... under load ...
 
 Yes. All the servers I'm installing this year will have SATA 
 drives (and 3ware RAID controllers). The Western Digital 
 Raptor drives are every bit as good as the SCSI drives I used to get.
 
 Although it can be difficult to explain to the finance people 
 why a 74GB drive is better than a 500GB drive at the same price.
 

I know there have been a lot of mentioning of 3Ware and SCSI. But I went on 
3WARE website and there is not a single SCSI Adapter RAID or else!

In that case, the only real players left for SCSI are Adaptec and LSI (aside 
from HP controllers). Adaptec is out of question for FreeBSD due to its 
performance, so really only LSI left!

It seems SATA is the way to go on small to medium sized servers.

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


Learn more about ld-elf and FreeBSD

2006-06-22 Thread swygue

Once in a while I get some error, looking like this:

 /usr/libexec/ld-elf.so.1: Shared object libpq.so.3 not found

This specific error was a result of trying to connect to a
postgresql-7.4.2 database running on FreeBSD, 4.6.2. And yes the
server is in the process of being decommissioned.

I was wondering how have others resolve problems related to ld-elf and
shared objects ? And where can I find more information about ld-elf
and FreeBSD ?

Thanks

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


Re: Why have I get kern.ipc.maxpipekva exceeded; see tuning(7) message ?

2006-06-22 Thread KHalid Faith
Ok
How can  I do active the loader.conf ?
is there any command for it ?

Thanks

- Original Message - 
From: Marc G. Fournier [EMAIL PROTECTED]
To: KHalid Faith [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Thursday, June 22, 2006 7:59 PM
Subject: Re: Why have I get kern.ipc.maxpipekva exceeded; see tuning(7)
message ?


 On Thu, 22 Jun 2006, KHalid Faith wrote:

  I use FreeBSD6.0
 
  My server  give me an error as below
 
  kern.ipc.maxpipekva exceeded; see tuning(7)
 
  When I looked at its value as below
 
  sysctl -a |grep kern.ipc.maxpipekva
  kern.ipc.maxpipekva: 16777216
 
  How can I do about that ?

 Add an entry to /boot/loader.conf, similar to:

 # cat /boot/loader.conf
 kern.ipc.maxpipekva=67108864

 I'm up to 64M, with current usage being closer to 40M:

 ==
 kern.ipc.maxpipekva: 67108864 - kern.ipc.pipekva: 39112704
 running processes: 1528

 
 Marc G. Fournier   Hub.Org Networking Services
(http://www.hub.org)
 Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
 Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
[EMAIL PROTECTED]


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


RE: Are hardware vendors starting to bail on FreeBSD ... ?

2006-06-22 Thread Marc G. Fournier

On Thu, 22 Jun 2006, Tamouh H. wrote:

I know there have been a lot of mentioning of 3Ware and SCSI. But I went 
on 3WARE website and there is not a single SCSI Adapter RAID or else!


In that case, the only real players left for SCSI are Adaptec and LSI 
(aside from HP controllers). Adaptec is out of question for FreeBSD due 
to its performance, so really only LSI left!


In our case, where we are dealing with co-located servers, we've finally 
settled on HP Proliant servers ... not only do I like the SAS drives (4 in 
a 1U rack so that I can use RAID1+0), but iLO is name your diety here's 
gift to remote administration, and the HP RAID controllers actually 
provide FreeBSD with usual status information without requiring some 
external utility ...


Cost is a bit more, but when your servers are several countries south of 
you, and you hate disturbing the techs down there if you don't have to, 
the ability to see the BIOS (motherboard and RAID controller), as well as 
everything happening on the console ... and being able to reboot ... I'll 
pay the extra ...



Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Why have I get kern.ipc.maxpipekva exceeded; see tuning(7) message ?

2006-06-22 Thread Marc G. Fournier

On Thu, 22 Jun 2006, KHalid Faith wrote:


Ok
How can  I do active the loader.conf ?
is there any command for it ?


You have to reboot, unfortunately ...



Thanks

- Original Message -
From: Marc G. Fournier [EMAIL PROTECTED]
To: KHalid Faith [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Thursday, June 22, 2006 7:59 PM
Subject: Re: Why have I get kern.ipc.maxpipekva exceeded; see tuning(7)
message ?



On Thu, 22 Jun 2006, KHalid Faith wrote:


I use FreeBSD6.0

My server  give me an error as below

kern.ipc.maxpipekva exceeded; see tuning(7)

When I looked at its value as below

sysctl -a |grep kern.ipc.maxpipekva
kern.ipc.maxpipekva: 16777216

How can I do about that ?


Add an entry to /boot/loader.conf, similar to:

# cat /boot/loader.conf
kern.ipc.maxpipekva=67108864

I'm up to 64M, with current usage being closer to 40M:

==
kern.ipc.maxpipekva: 67108864 - kern.ipc.pipekva: 39112704
running processes: 1528


Marc G. Fournier   Hub.Org Networking Services

(http://www.hub.org)

Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
___
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]




Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SSH tunneling to FreeBSD 6.x using entunnel ...

2006-06-22 Thread Lowell Gilbert
Marc G. Fournier [EMAIL PROTECTED] writes:

 I have a client that has been using entunnel for the longest time to
 do an SSH tunnel into their vServer ... we've recently begun upgrading
 to FreeBSD 6.x, and entunnel is no longer working (upgraded from
 FreeBSD 4.x) ...

 Apparenty, bitvise.com's tunnelier has the same problem ...

 The way the client describes how entunnel used to work for them:

 entunnel was great - i never had to think about it. it just worked,
 all the time, automatically - came up at startup as a service and just
 sat in the system tray.

 Without having to downgrade their OpenSSH to the same version as was
 on FreeBSD 4.x (bad option!), is there something that I can look at on
 the FreeBSD 6.x OpenSSH to fix the problem?  Maybe some backwards
 compatibility mode?

I don't know those particular Windows clients, but maybe they want
your sshd_config to enable PasswordAuthentication?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


problem creating filesystem snapshot

2006-06-22 Thread Jon Falconer
Greetings,

I needed to dump the partitions on a running FreeBSD 6.1R system so I
could duplicate them on a test server. The server is a Dell 2850 with the
PERC 4e/Di RAID controller with 5 x 73GB disk array. So I thought I would
try using the snapshot feature. I used the mksnap_ffs to create a snapshot
of a 20GB partition. The command completed in about 15 - 20 seconds. I was
then able to run dump against the new snap file and all seemed ok. I then
tried the same thing on a 225GB partition. The mksnap_ffs command took
over 30 minutes to complete. But every access to that partition after that
just hung. I wanted to see the size of the snap file so I typed ls -l
/home/.snap (where I had told mksnap_ffs to put the snap file) and it
hung. Same thing from several logins. I figured I would have to reset the
box so I typed sync, and that hung. All the time, access to other
partitions was just fine (/, /usr, /var).

All partitions (except /) were created with soft update enables (default
when installing.) 

The questions. Is there anything magic about the /xxx/.snap directory in
each partition? When I created the snap file for the 20GB partition, I did
not put it inside the /xxx/.snap directory, and it worked fine. Is there
some partition size restrictions?

Thank you for your thoughts,

Jon

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


Re: Are hardware vendors starting to bail on FreeBSD ... ?

2006-06-22 Thread Chad Leigh -- Shire.Net LLC


On Jun 22, 2006, at 11:55 AM, Marc G. Fournier wrote:

 not only do I like the SAS drives (4 in a 1U rack so that I can  
use RAID1+0)


What drives are they?  There is nothing in the SAS spec about drive  
dimensions so it seems you like your particular models of SAS drives


Chad

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



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


Hot-Swapping hard drives on Dell PowerEdge 2850 running FBSD 5.5-PRE

2006-06-22 Thread Alex Franks

Hello all,

I'm getting ready to install 2 identical drives into the available
drive bays in my 2850. However, it would be highly preferable that
this machine NOT be shut down in order to install these drives. I know
from looking at the docs that these drive bays are hot-swappable, but
I'd like to know before I attempt this that someone else out there has
successfully performed a hot-swap or hot-install of drives on a 2850
or comparable Dell PowerEdge running FreeBSD.

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


Re: Serial programming on FreeBSD 6.0 RELEASE

2006-06-22 Thread Andrew Falanga

Derek,

No I didn't disable the getty on the port.  To be honest, I didn't know one
was running.

Second, the errors I'm receiving are:

sio1: 2 more silo overflows (total 9)
sio1: 280221 more tty-level buffer overflows (total 576898)


One question I have is, why would kermit able to receive/send data across
the port?  I don't know if said this in my first message, but I started
kermit on both the FreeBSD and Linux machines and was able to send/receive
data in either direction.  I didn't disable getty before doing that.

Second question is, does my code look ok?  Am I initializing everythin
accordingly?

Andy

On 6/22/06, Derek Ragona [EMAIL PROTECTED] wrote:


 Andy,

Did you kill the getty running on the port?

Are you getting any errors?

-Derek


At 10:28 AM 6/22/2006, Andrew Falanga wrote:

Hello,

I've got a case where I'm writing a simply serial program to send bytes
from
one system to another over a serial cable.  The program works in Linux,
but
when I use it in FreeBSD nothing happens.  The program starts and, in the
case of receiving, waits for data to appear on the /dev/cuad1 port and
times
out in select.  If I'm sending in FreeBSD, the send program believes it
has
written all the data but nothing is received in Linux (either with running
my code on Linux or using kermit).  On FreeBSD, however, if I use kermit
to
monitor the /dev/cuad1 port and send, using my code, from Linux, all 2500
packets are transmitted ok.  Also, when sending from Linux and receiving
in
FreeBSD, the FreeBSD machine show silo and tty-level interrupt errors.
The
man page for sio describes that as problems in the interrupt handler, for
silo overflows, and that data arrived faster than the application could
process (for the tty-level overflows).

What am I doing wrong?  What is it that Kermit does to allow data being
read
from the /dev/cuad1 device that I'm not?  I've been looking over the
kermit
sources but to be honest, before Thursday of last week, I'd never
programmed
for serial ports before let alone having any knowledge of termios.
Therefore, I'm looking at a very steep learning curve.  Please look over
my
ctor for the serial line class that is in my code.  After much debugging,
I'm convinced that my problem is in how I'm configuring my port.

sline::sline( std::string d, int opm ) : dev( d ), opMode( opm )
{
  memset( oldSettings, 0, sizeof( oldSettings ) );
  memset( ioPort, 0, sizeof( ioPort ) );
  memset( recvBuf, 0, PACKETSIZE );
  memset( timeout, 0, sizeof( timeout ) );

  FD_ZERO( incoming );

  timeout.tv_sec = TIMEOUT_SEC;
  timeout.tv_usec = TIMEOUT_USEC;

  // create the packet
  char asciiPrtChars = 32; // first printable ascii character in decimal
  for( int i = 0; i  PACKETSIZE; i++ ) {
 packet[i] = asciiPrtChars++;
 if( asciiPrtChars == 127 ) // 127 is the delete character
asciiPrtChars = 32;
  }

  // on the systems this code was meant to compile, LINUX and FreeBSD
  // O_NDELAY and O_NONBLOCK are the same, however, this is not always
  // true
  fd = open( dev.c_str(), O_RDWR | O_NOCTTY | O_NDELAY );
  if( fd  0 )
 throw init();

  tcgetattr( fd, oldSettings );
  tcgetattr( fd, ioPort );

#ifdef DEBUG
  COUT  Current input speed is   cfgetispeed( ioPort )  ENDL;
  COUT  Current output speed is   cfgetospeed( ioPort )  ENDL;
#endif

#if 0
  if( opMode == OPMODE_WRITE ) {
 if( fcntl( fd, F_SETFL, 0 )  0 ) {
perror( fcntl );
throw init();
 }
  } else {
 if( fcntl( fd, F_SETFL, FNDELAY )  0 ) {
perror( fcntl );
throw init();
 }
 FD_SET( fd, incoming );
  }
#endif

#if 0
  // configure control field, this should configure for 8N1
  // first, disable flow control (may have to put it back in)
  // ioPort.c_cflag = ~CRTSCTS;
  ioPort.c_cflag |= CRTSCTS | CLOCAL | CREAD;
  ioPort.c_cflag = ~PARENB;
  ioPort.c_cflag = ~CSTOPB;
  ioPort.c_cflag = ~CSIZE;
  ioPort.c_cflag |= CS8;

  // configure local field, setting to RAW mode
  ioPort.c_lflag |= ~( ICANON | ECHO | ECHOE | ISIG );

  // configure the input field, setting to ignore parity errors
  // and disable software flow control
  ioPort.c_iflag |= IGNPAR;
  ioPort.c_iflag = ~( IXON | IXOFF | IXANY );

  // configure output field, setting to RAW
  ioPort.c_iflag = ~OPOST;
#endif /* end of if 0 */

  // configure for raw data transfer
  cfmakeraw( ioPort );

  // set VMIN and VTIME parameters in c_cc array
  ioPort.c_cc[VMIN] = PACKETSIZE;
  ioPort.c_cc[VTIME] = 0;

  if( cfsetispeed( ioPort, BAUDRATE )  0 ) {
 perror( cfsetispeed );
 throw init();
  }

  if( cfsetospeed( ioPort, BAUDRATE )  0 ) {
 perror( cfsetospeed );
 throw init();
  }

  COUT  flushing dev:   dev  ENDL;
  if( tcflush( fd, TCIOFLUSH )  0 ) {
 perror( tcflush );
 throw init();
  }

  COUT  Setting new parameters to:   dev  ENDL;
  if( tcsetattr( fd, TCSANOW, ioPort )  0 ) {
 perror( tcsetattr );
 throw init();
  }

#if 0
  if( ioctl( fd, TIOCMGET, portStatus )  0 ) {
 

Re: Are hardware vendors starting to bail on FreeBSD ... ?

2006-06-22 Thread Marc G. Fournier

On Thu, 22 Jun 2006, Chad Leigh -- Shire.Net LLC wrote:



On Jun 22, 2006, at 11:55 AM, Marc G. Fournier wrote:

not only do I like the SAS drives (4 in a 1U rack so that I can use 
RAID1+0)


What drives are they?  There is nothing in the SAS spec about drive 
dimensions so it seems you like your particular models of SAS drives


Ack, I thought it was a standard size thing, never even thought about it 
... I ordered the drives from HP, with the server ...


From:

http://h18004.www1.hp.com/products/servers/proliantstorage/drives-enclosures/index.html?jumpid=ex_hphqglobal_wwentsem/Proliant

I'm guessing what I got were the 2.5 form factor, vs the 3.5 ... and 
based on that same page, looks like I can get 2.5 SATA also ... i thought 
the 'small size' was a SAS feature :(



Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Serial programming on FreeBSD 6.0 RELEASE

2006-06-22 Thread Derek Ragona

Your code looked OK, but I would add some debugging print statements.

silo overflow is a stack overflow, so you should figure where this is 
happening.


The getty may be managing the port IO, which is why I would disable 
it.  Getty is listening to the port for traffic.


Depending on the OS, some don't run getty on all physical ports, some do by 
default.  Some are more exclusive in the perms as well, or should be.


-Derek

At 01:19 PM 6/22/2006, Andrew Falanga wrote:

Derek,

No I didn't disable the getty on the port.  To be honest, I didn't know 
one was running.


Second, the errors I'm receiving are:

sio1: 2 more silo overflows (total 9)
sio1: 280221 more tty-level buffer overflows (total 576898)


One question I have is, why would kermit able to receive/send data across 
the port?  I don't know if said this in my first message, but I started 
kermit on both the FreeBSD and Linux machines and was able to send/receive 
data in either direction.  I didn't disable getty before doing that.


Second question is, does my code look ok?  Am I initializing everythin 
accordingly?


Andy

On 6/22/06, Derek Ragona mailto:[EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:

Andy,

Did you kill the getty running on the port?

Are you getting any errors?

-Derek


At 10:28 AM 6/22/2006, Andrew Falanga wrote:
Hello,

I've got a case where I'm writing a simply serial program to send bytes from
one system to another over a serial cable.  The program works in Linux, but
when I use it in FreeBSD nothing happens.  The program starts and, in the
case of receiving, waits for data to appear on the /dev/cuad1 port and times
out in select.  If I'm sending in FreeBSD, the send program believes it has
written all the data but nothing is received in Linux (either with running
my code on Linux or using kermit).  On FreeBSD, however, if I use kermit to
monitor the /dev/cuad1 port and send, using my code, from Linux, all 2500
packets are transmitted ok.  Also, when sending from Linux and receiving in
FreeBSD, the FreeBSD machine show silo and tty-level interrupt errors.  The
man page for sio describes that as problems in the interrupt handler, for
silo overflows, and that data arrived faster than the application could
process (for the tty-level overflows).

What am I doing wrong?  What is it that Kermit does to allow data being read
from the /dev/cuad1 device that I'm not?  I've been looking over the kermit
sources but to be honest, before Thursday of last week, I'd never programmed
for serial ports before let alone having any knowledge of termios.
Therefore, I'm looking at a very steep learning curve.  Please look over my
ctor for the serial line class that is in my code.  After much debugging,
I'm convinced that my problem is in how I'm configuring my port.

sline::sline( std::string d, int opm ) : dev( d ), opMode( opm )
{
  memset( oldSettings, 0, sizeof( oldSettings ) );
  memset( ioPort, 0, sizeof( ioPort ) );
  memset( recvBuf, 0, PACKETSIZE );
  memset( timeout, 0, sizeof( timeout ) );

  FD_ZERO( incoming );

  timeout.tv_sec = TIMEOUT_SEC;
  timeout.tv_usec = TIMEOUT_USEC;

  // create the packet
  char asciiPrtChars = 32; // first printable ascii character in decimal
  for( int i = 0; i  PACKETSIZE; i++ ) {
 packet[i] = asciiPrtChars++;
 if( asciiPrtChars == 127 ) // 127 is the delete character
asciiPrtChars = 32;
  }

  // on the systems this code was meant to compile, LINUX and FreeBSD
  // O_NDELAY and O_NONBLOCK are the same, however, this is not always
  // true
  fd = open( dev.c_str(), O_RDWR | O_NOCTTY | O_NDELAY );
  if( fd  0 )
 throw init();

  tcgetattr( fd, oldSettings );
  tcgetattr( fd, ioPort );

#ifdef DEBUG
  COUT  Current input speed is   cfgetispeed( ioPort )  ENDL;
  COUT  Current output speed is   cfgetospeed( ioPort )  ENDL;
#endif

#if 0
  if( opMode == OPMODE_WRITE ) {
 if( fcntl( fd, F_SETFL, 0 )  0 ) {
perror( fcntl );
throw init();
 }
  } else {
 if( fcntl( fd, F_SETFL, FNDELAY )  0 ) {
perror( fcntl );
throw init();
 }
 FD_SET( fd, incoming );
  }
#endif

#if 0
  // configure control field, this should configure for 8N1
  // first, disable flow control (may have to put it back in)
  // ioPort.c_cflag = ~CRTSCTS;
  ioPort.c_cflag |= CRTSCTS | CLOCAL | CREAD;
  ioPort.c_cflag = ~PARENB;
  ioPort.c_cflag = ~CSTOPB;
  ioPort.c_cflag = ~CSIZE;
  ioPort.c_cflag |= CS8;

  // configure local field, setting to RAW mode
  ioPort.c_lflag |= ~( ICANON | ECHO | ECHOE | ISIG );

  // configure the input field, setting to ignore parity errors
  // and disable software flow control
  ioPort.c_iflag |= IGNPAR;
  ioPort.c_iflag = ~( IXON | IXOFF | IXANY );

  // configure output field, setting to RAW
  ioPort.c_iflag = ~OPOST;
#endif /* end of if 0 */

  // configure for raw data transfer
  cfmakeraw( ioPort );

  // set VMIN and VTIME parameters in c_cc array
  ioPort.c_cc[VMIN] = PACKETSIZE;
  ioPort.c_cc[VTIME] = 0;

  

Re: Serial programming on FreeBSD 6.0 RELEASE

2006-06-22 Thread David Kelly
On Thu, Jun 22, 2006 at 12:19:41PM -0600, Andrew Falanga wrote:
 Derek,
 
 No I didn't disable the getty on the port.  To be honest, I didn't know one
 was running.

Its not going to be running by default. Even if it was then it would be
on /dev/ttyd1 not /dev/cuad1. What is supposed to happen is that getty
can listen for incoming on /dev/ttyd1 but if it doesn't have an active
connection it would be set aside while another comes along on the
call-out device to use the port. If ttyd1 is busy attempts to open cuad1
should fail.

 Second, the errors I'm receiving are:
 
 sio1: 2 more silo overflows (total 9)
 sio1: 280221 more tty-level buffer overflows (total 576898)

Believe this is saying the data arrived and nobody picked it up.

 One question I have is, why would kermit able to receive/send data
 across the port?  I don't know if said this in my first message, but I
 started kermit on both the FreeBSD and Linux machines and was able to
 send/receive data in either direction.  I didn't disable getty before
 doing that.

/dev/cuad1 is rw for uucp:dialer and nothing for anyone else. What ID is
running your code? Generally one places users who are permitted to use
the serial ports into group dialer. Furthermore kermit needs the user's
uucp group permissions in order to create the UUCP lock in the hopes
that other programs will honor kermit's word that the device is busy.

-- 
David Kelly N4HHE, [EMAIL PROTECTED]

Whom computers would destroy, they must first drive mad.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Learn more about ld-elf and FreeBSD

2006-06-22 Thread Corey Brune

Have you tried setting LD_LIBRARY_PATH to include the directory where libpq
is? Are you getting this error after psql or something like it? If you
haven't, then set LD_LIBRARY_PATH, then type 'ldd command'. This will tell
you which libs are found and which are not.

Hope this helps.
Corey


On 6/22/06, swygue [EMAIL PROTECTED] wrote:


Once in a while I get some error, looking like this:

  /usr/libexec/ld-elf.so.1: Shared object libpq.so.3 not found

This specific error was a result of trying to connect to a
postgresql-7.4.2 database running on FreeBSD, 4.6.2. And yes the
server is in the process of being decommissioned.

I was wondering how have others resolve problems related to ld-elf and
shared objects ? And where can I find more information about ld-elf
and FreeBSD ?

Thanks

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


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


Re: Serial programming on FreeBSD 6.0 RELEASE

2006-06-22 Thread Andrew Falanga

Unfortunately, it looks like getty isn't running on /dev/cuad1.  I did the
ps command you suggest below and it apears that getty is only running on the
virtual terminals (ttyvx).

Would you have any idea what it is that kermit is doing differently that I?

Andy

On 6/22/06, Derek Ragona [EMAIL PROTECTED] wrote:


 I would do a
ps -ax|more
to see what is running.

Depending on your version FreeBSD may not have enabled the getty in
/etc/ttys

-Derek





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


Re: Serial programming on FreeBSD 6.0 RELEASE

2006-06-22 Thread Andrew Falanga

I'm not sure I understand what you mean.

Andy

On 6/22/06, Derek Ragona [EMAIL PROTECTED] wrote:


 Kermit may be manipulating the uart directly.

Unless you are not getting the uart to flush the characters.  I have only
had that problem with doing low-level direct programing.  Typically not a
problem with high-level coding where you just open the device and set it for
non-buffered output.

Your problem though may be in the stack overflows.  You may need to
explicitly compile and link it with a larger stack.  It may be these
overflows causing the output to never get there.

-Derek



At 01:57 PM 6/22/2006, Andrew Falanga wrote:

Unfortunately, it looks like getty isn't running on /dev/cuad1.  I did the
ps command you suggest below and it apears that getty is only running on the
virtual terminals (ttyvx).

Would you have any idea what it is that kermit is doing differently that
I?

Andy

On 6/22/06, *Derek Ragona* [EMAIL PROTECTED] wrote:

I would do a
ps -ax|more
to see what is running.

Depending on your version FreeBSD may not have enabled the getty in
/etc/ttys

-Derek




--
This message has been scanned for viruses and
dangerous content by *MailScanner* http://www.mailscanner.info/, and is
believed to be clean.
MailScanner thanks transtec Computers http://www.transtec.co.uk/ for
their support.

--
This message has been scanned for viruses and
dangerous content by *MailScanner* http://www.mailscanner.info/, and is
believed to be clean.
MailScanner thanks transtec Computers http://www.transtec.co.uk/ for
their support.


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


Re: Are hardware vendors starting to bail on FreeBSD ... ?

2006-06-22 Thread Nikolas Britton

On 6/22/06, Marc G. Fournier [EMAIL PROTECTED] wrote:

On Thu, 22 Jun 2006, Chad Leigh -- Shire.Net LLC wrote:


 On Jun 22, 2006, at 11:55 AM, Marc G. Fournier wrote:

 not only do I like the SAS drives (4 in a 1U rack so that I can use
 RAID1+0)

 What drives are they?  There is nothing in the SAS spec about drive
 dimensions so it seems you like your particular models of SAS drives

Ack, I thought it was a standard size thing, never even thought about it
... I ordered the drives from HP, with the server ...

From:

http://h18004.www1.hp.com/products/servers/proliantstorage/drives-enclosures/index.html?jumpid=ex_hphqglobal_wwentsem/Proliant

I'm guessing what I got were the 2.5 form factor, vs the 3.5 ... and
based on that same page, looks like I can get 2.5 SATA also ... i thought
the 'small size' was a SAS feature :(



The 74GB 2.5 SAS drives are $700 each, $9.50 per gigabyte! The array
I just finished building was 2400GB, If I'd used your drives the
drives alone would have cost $23,000... holy shit man.

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



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


Re: Serial programming on FreeBSD 6.0 RELEASE

2006-06-22 Thread Andrew Falanga

On 6/22/06, David Kelly [EMAIL PROTECTED] wrote:


On Thu, Jun 22, 2006 at 12:19:41PM -0600, Andrew Falanga wrote:
 Derek,

 No I didn't disable the getty on the port.  To be honest, I didn't know
one
 was running.

Its not going to be running by default. Even if it was then it would be
on /dev/ttyd1 not /dev/cuad1. What is supposed to happen is that getty
can listen for incoming on /dev/ttyd1 but if it doesn't have an active
connection it would be set aside while another comes along on the
call-out device to use the port. If ttyd1 is busy attempts to open cuad1
should fail.

 Second, the errors I'm receiving are:

 sio1: 2 more silo overflows (total 9)
 sio1: 280221 more tty-level buffer overflows (total 576898)

Believe this is saying the data arrived and nobody picked it up.



Yes, I'm sure of this as well.  In fact, this is my problem.  If I run the
receive program that I build, it starts, apparrently configures the port as
I want since the ctor doesn't throw the init error and just sits there until
select times out waiting for data on the file descriptor opened in the same
ctor.



One question I have is, why would kermit able to receive/send data
 across the port?  I don't know if said this in my first message, but I
 started kermit on both the FreeBSD and Linux machines and was able to
 send/receive data in either direction.  I didn't disable getty before
 doing that.

/dev/cuad1 is rw for uucp:dialer and nothing for anyone else. What ID is
running your code? Generally one places users who are permitted to use
the serial ports into group dialer. Furthermore kermit needs the user's
uucp group permissions in order to create the UUCP lock in the hopes
that other programs will honor kermit's word that the device is busy.




I did put my user in the dialer group.  I'm not familiar with what you mean
by the uucp group and the UUCP lock.

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


Re: Serial programming on FreeBSD 6.0 RELEASE

2006-06-22 Thread Giorgos Keramidas
On 2006-06-22 13:55, Andrew Falanga [EMAIL PROTECTED] wrote:
 On 6/22/06, Derek Ragona [EMAIL PROTECTED] wrote:
 
  Kermit may be manipulating the uart directly.
 
 Unless you are not getting the uart to flush the characters.  I have only
 had that problem with doing low-level direct programing.  Typically not a
 problem with high-level coding where you just open the device and set it
 for
 non-buffered output.
 
 Your problem though may be in the stack overflows.  You may need to
 explicitly compile and link it with a larger stack.  It may be these
 overflows causing the output to never get there.

 I'm not sure I understand what you mean.
 Andy

AFAIK, 'silo overflow' messages are *NOT* about stack overflows.

Andy,

can you please post a complete, compilable but minimal program that
exhibits the behavior you find strange?

- Giorgos

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


Re: Crashing with HP/Compaq DL360 G3 [paging kernel developer]

2006-06-22 Thread Jeremy Kister

On 6/21/2006 6:01 AM, Ted Mittelstaedt wrote:

Did you install the Broadcom patch?


Still no takers.  Is there a better place to get the attention of a 
willing kernel developer than freebsd-questions ?


--

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


Re: Learn more about ld-elf and FreeBSD

2006-06-22 Thread swygue

Corey,

Thanks for your response, I did set the LD_LIBRARY_PATH but ldd still can't
find it.

[EMAIL PROTECTED]ldd /usr/local/postgresql-7.4.2/bin/psql
/usr/local/pgsql/bin/psql:
   libpq.so.3 = not found (0x0)
   libpam.so.1 = /usr/lib/libpam.so.1 (0x28086000)
   libz.so.2 = /usr/lib/libz.so.2 (0x2809)
   libreadline.so.4 = /usr/lib/libreadline.so.4 (0x2809d000)
   libcrypt.so.2 = /usr/lib/libcrypt.so.2 (0x280c2000)
   libm.so.2 = /usr/lib/libm.so.2 (0x280db000)
   libutil.so.3 = /usr/lib/libutil.so.3 (0x280f7000)
   libc.so.4 = /usr/lib/libc.so.4 (0x2810)
   libncurses.so.5 = /usr/lib/libncurses.so.5 (0x2819a000)


-Rod

On 6/22/06, Corey Brune [EMAIL PROTECTED] wrote:


Have you tried setting LD_LIBRARY_PATH to include the directory where
libpq is? Are you getting this error after psql or something like it? If you
haven't, then set LD_LIBRARY_PATH, then type 'ldd command'. This will tell
you which libs are found and which are not.

Hope this helps.
Corey


On 6/22/06, swygue [EMAIL PROTECTED] wrote:

 Once in a while I get some error, looking like this:

  /usr/libexec/ld-elf.so.1: Shared object libpq.so.3 not found

This specific error was a result of trying to connect to a
postgresql-7.4.2 database running on FreeBSD, 4.6.2. And yes the
server is in the process of being decommissioned.

I was wondering how have others resolve problems related to ld-elf and
shared objects ? And where can I find more information about ld-elf
and FreeBSD ?

Thanks

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





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


Re: Serial programming on FreeBSD 6.0 RELEASE

2006-06-22 Thread Derek Ragona
Let me try this again.  Programing the uart directly means directly 
manipulating the serial port chip.  Programing in c or c++ does not usually 
do this, as you normally would open the device/file and simply read or 
write to it.  In opening the device you need to set it to unbuffered in the 
flags when you do the open call.


-Derek


At 02:55 PM 6/22/2006, Andrew Falanga wrote:

I'm not sure I understand what you mean.

Andy

On 6/22/06, Derek Ragona 
mailto:[EMAIL PROTECTED][EMAIL PROTECTED]  wrote:

Kermit may be manipulating the uart directly.

Unless you are not getting the uart to flush the characters.  I have only 
had that problem with doing low-level direct programing.  Typically not a 
problem with high-level coding where you just open the device and set it 
for non-buffered output.


Your problem though may be in the stack overflows.  You may need to 
explicitly compile and link it with a larger stack.  It may be these 
overflows causing the output to never get there.


-Derek



At 01:57 PM 6/22/2006, Andrew Falanga wrote:
Unfortunately, it looks like getty isn't running on /dev/cuad1.  I did 
the ps command you suggest below and it apears that getty is only running 
on the virtual terminals (ttyvx).


Would you have any idea what it is that kermit is doing differently that I?

Andy

On 6/22/06, Derek Ragona 
mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote:

I would do a
ps -ax|more
to see what is running.

Depending on your version FreeBSD may not have enabled the getty in 
/etc/ttys


-Derek




--
This message has been scanned for viruses and
dangerous content by http://www.mailscanner.info/MailScanner, and is
believed to be clean.
MailScanner thanks http://www.transtec.co.uk/transtec Computers for 
their support.


--
This message has been scanned for viruses and
dangerous content by http://www.mailscanner.info/MailScanner, and is
believed to be clean.
MailScanner thanks http://www.transtec.co.uk/transtec Computers for 
their support.



--
This message has been scanned for viruses and
dangerous content by http://www.mailscanner.info/MailScanner, and is
believed to be clean.
MailScanner thanks http://www.transtec.co.uk/transtec Computers for 
their support.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


Re: HELP! Filesystem EMPTY after upgrade from 4.11 to 6.1

2006-06-22 Thread Martin Hepworth

Sven

ok so no backup beforehand then...

Have you tried moving the drive to a  4.11 system and mounting the partition
from there, and then backing-up the data!

Might be some way of forcing UFS1 over UFS2 on the mount command, but I
don't see any mention of this in the man page (which still says 4.11 on the
online version!)

--
Martin

On 6/21/06, Sven Hazejager [EMAIL PROTECTED] wrote:


Hi all!

I have quite a big problem here

I've upgraded my FreeBSD 4.11 to 6.1. Basically, I did a newfs of / and
/usr
and reinstalled from scratch. That worked.

Rebooted in 6.1 single user mode, mounted /, /usr and /usr/home. The
latter
I did not touch and I need to save that partition. /usr/home had all the
files it needed to have. PROBLEM: mount said soft-updates were not set on
/usr/home. So I did umount /usr/home, tunefs -n enable /usr/home, mount
/usr/home again... EMPTY

What has gone wrong? I did fsck (in read-only), no problems, rebooted the
system, did tunefs -n disable, still no luck. I really need those files
guys...

Please help urgently.

Many thanks,

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


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


Re: RAID online capacity expansion

2006-06-22 Thread Martin Hepworth

Josh

You'll need to use vinum as a volume manager first. Wouldn't recommend it at
all on a mounted filesystem, this can give you alsorts of worries.

I'd think about why you need to grow the volume, esp as any expansion of a
RAID set will normally result in poor performance, unless you backup the
data, rebuild the RAID set/filesystem and then restore the data.

IE plan for any changes first.

--
Martin

On 6/21/06, Josh Endries [EMAIL PROTECTED] wrote:


Hello,

Has anyone out there successfully done an online expansion of a RAID
array in FreeBSD? How is it done and with what hardware did it work?
From what I can gather, it's not possible. Aside from the fact that
fdisk(8) says Editing an existing slice will most likely result in the
loss of all data in that slice, growfs(8) says it cannot enlarge a
mounted filesystem. disklabel seems to be okay with making live changes,
but I haven't tested it.

Is there any way to do this in FreeBSD or is Linux+LVM the way to go?

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


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


Re: Does anyone run VNC with 64-bit FreeBSD (amd64)?

2006-06-22 Thread Greg Lane
On Thu, Jun 22, 2006 at 04:04:34PM +0300, Alex Savovski [EMAIL PROTECTED] wro
 I have the same ,problem,But I have never run on other version,I use
 RELENG_6_1, AMD64

On Thu, Jun 22, 2006 at 11:29:15AM -0500, Jonathan Fosburgh [EMAIL PROTECTED] 
wrote:
 VNC (tightvnc included) as well as NXWindows (IMHO, much better than VNC) are 
 based on old versions of XFree86 that don't support AMD64.  I have had some 
 success running the i386 package of tightvnc and starting only twm from the 
 xstartup script.  Some applications (just about anything using gtk) crash the 
 VNC server, and some (KDE) work all right. YMMV.
 
 I have tried to make NXWindows work on amd64 but there is just too much 
 patching that needs to be done for my meager skills.

Thanks for the info. I had figured something like this.  I installed 
the 64-bit system anticipating a future memory upgrade from the current 
4GB to 8GB.  However, VNC is essential for various members of my group, 
as is ports/devel/root (which doesn't compile on amd64) and there is 
some of our own (also essential) custom software which is not 64-bit 
clean.  Since this holds up a number of people from their work 
and my patching skills are VERY meager, I will have to roll back to 
the 32-bit OS.

Thanks again!

Greg

P.S. Yes, I should have tested more before the upgrade. I did some 
tests, but obviously not enough!  In my defence, I was hastened by 
the disk dying and the need to get the machine back up and running.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Tracking if disk is busy

2006-06-22 Thread Matt Ruzicka
We've got a couple servers that appear to have particularly busy disks and 
I was trying to determine if there is a way to more easily poll this data 
for tracking.


I'm not sure if this is one of those can't see the forest for the trees 
issues or not, but the only means that I am familiar with to see the 
percentage of time the disk is busy is to run 'systat -vmstat'.  I was 
hoping for something more concise that I could run periodically and maybe 
even graph (realizing that watching this might well distort the results).


It appears that iostat on Solaris gives this information, but I can't seem 
to mimic this functionality with FreeBSD.


Are there other ways in FreeBSD to pull the percentage of time the disk is 
busy?


Thanks.

Matt Ruzicka - Systems Administrator
Front Range Internet, Inc.
[EMAIL PROTECTED] - (970) 212-0728
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Tracking if disk is busy

2006-06-22 Thread Bill Moran
Matt Ruzicka [EMAIL PROTECTED] wrote:

 We've got a couple servers that appear to have particularly busy disks and 
 I was trying to determine if there is a way to more easily poll this data 
 for tracking.
 
 I'm not sure if this is one of those can't see the forest for the trees 
 issues or not, but the only means that I am familiar with to see the 
 percentage of time the disk is busy is to run 'systat -vmstat'.  I was 
 hoping for something more concise that I could run periodically and maybe 
 even graph (realizing that watching this might well distort the results).
 
 It appears that iostat on Solaris gives this information, but I can't seem 
 to mimic this functionality with FreeBSD.
 
 Are there other ways in FreeBSD to pull the percentage of time the disk is 
 busy?

If you instal net-snmp you can get various statistics via snmp.  We use
mrtg to graph them.  Disk activity is but one.

I haven't messed with the builtin snmp stuff that comes with 6.x, but I've
got in on my list to investigate and see if it's ready to replace the
net-snmp port.

-- 
Bill Moran

You will give me the Ring freely?  In place of the Dark Lord you will set
up a Queen.  And I shall not be dark, but beautiful and terrible as the
Morning and the Night!  Fair as the Sea and the Sun and the Snow upon the
Mountain!  Dreadful as the Storm and the Lightning!  Stronger than the
foundations of the earth.  All shall love me and despair!

Galadriel

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


Re: Does anyone run VNC with 64-bit FreeBSD (amd64)?

2006-06-22 Thread pete wright

On 6/22/06, Greg Lane [EMAIL PROTECTED] wrote:

On Thu, Jun 22, 2006 at 03:06:46PM -0700, pete wright [EMAIL PROTECTED] wrote:
 Did you try to build/install a 32bit version of VNC?

Thanks for the suggestion.

I thought about doing that, but there is still other essential
software that is not 64-bit clean and our entire group needs this
machine back up ASAP since currently we are sitting on our hands
doing nothing till I get it back up.  If I had a spare machine
I could potentially spend some time getting this sorted. But
we don't have a spare machine, we don't have any money to buy
one, there is only me to fix it, and I have to get some real
work done the usual story.



hmm, so there is no way to run the app's which are not 64bit clean in
32bit mode in your environment?


 Also, if you are
 running a Unix like OS why use VNC?  You can achive %90 of the same
 features (with less of a memory/cpu impact) by running X apps
 remotely.

What about the other 10%?  We use VNC because it saves state
for those of my users who work from multiple locations, at home,
at work and some are even based overseas. They don't want to
restart up to 20 windows every time they logon. Remote access
in this form is essential for their productivity.



screen?
/usr/port/sysutils/screen


I hope this is taken as friendly advice to save you work

-pete


--
~~o0OO0o~~
Pete Wright
www.nycbug.org
NYC's *BSD User Group
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Hot-Swapping hard drives on Dell PowerEdge 2850 running FBSD 5.5-PRE

2006-06-22 Thread Scott Mitchell
On Thu, Jun 22, 2006 at 11:06:17AM -0700, Alex Franks wrote:
 Hello all,
 
 I'm getting ready to install 2 identical drives into the available
 drive bays in my 2850. However, it would be highly preferable that
 this machine NOT be shut down in order to install these drives. I know
 from looking at the docs that these drive bays are hot-swappable, but
 I'd like to know before I attempt this that someone else out there has
 successfully performed a hot-swap or hot-install of drives on a 2850
 or comparable Dell PowerEdge running FreeBSD.

I've swapped drives on an 1850 with no problems - the drives were in a
RAID-1 configuration and the OS didn't even notice that anything had
happened.  If you're not using hardware RAID I guess a camcontrol rescan
or something similar might be needed for the new drives to be recognised?

Cheers,

Scott

-- 
===
Scott Mitchell   | PGP Key ID | Eagles may soar, but weasels
Cambridge, England   | 0x54B171B9 |  don't get sucked into jet engines
scott at fishballoon.org | 0xAA775B8B |  -- Anon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Does anyone run VNC with 64-bit FreeBSD (amd64)?

2006-06-22 Thread Greg Lane
On Thu, Jun 22, 2006 at 03:06:46PM -0700, pete wright [EMAIL PROTECTED] wrote:
 Did you try to build/install a 32bit version of VNC?  

Thanks for the suggestion.

I thought about doing that, but there is still other essential 
software that is not 64-bit clean and our entire group needs this 
machine back up ASAP since currently we are sitting on our hands 
doing nothing till I get it back up.  If I had a spare machine 
I could potentially spend some time getting this sorted. But 
we don't have a spare machine, we don't have any money to buy 
one, there is only me to fix it, and I have to get some real 
work done the usual story.

 Also, if you are
 running a Unix like OS why use VNC?  You can achive %90 of the same
 features (with less of a memory/cpu impact) by running X apps
 remotely.

What about the other 10%?  We use VNC because it saves state 
for those of my users who work from multiple locations, at home, 
at work and some are even based overseas. They don't want to 
restart up to 20 windows every time they logon. Remote access 
in this form is essential for their productivity. 

Greg

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


Re: Tracking if disk is busy

2006-06-22 Thread Dan Nelson
In the last episode (Jun 22), Matt Ruzicka said:
 We've got a couple servers that appear to have particularly busy
 disks and I was trying to determine if there is a way to more easily
 poll this data for tracking.
 
 I'm not sure if this is one of those can't see the forest for the
 trees issues or not, but the only means that I am familiar with to
 see the percentage of time the disk is busy is to run 'systat
 -vmstat'.  I was hoping for something more concise that I could run
 periodically and maybe even graph (realizing that watching this might
 well distort the results).
 
 It appears that iostat on Solaris gives this information, but I can't
 seem to mimic this functionality with FreeBSD.

iostat on -current and 6-stable has a Solaris-style -x mode with a
percent-busy column.

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


Upload a binary of Open Office 2

2006-06-22 Thread Rico

Hi,

Would someone, with access, mind compiling Open Office 2 for FreeBSD 6 
stable, and uploading it to the FreeBSD server?


Best and kind regards,
Rico

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


Cloning Drives from a RAID Array?

2006-06-22 Thread Nikolas Britton

If I clone a drive and then put the new cloned drive into the array
will the array continue working without a rebuild?

1. Shutdown server/array.
2. Pull drive to be cloned from array.
3. Clone drive using another computer with: 'dd if=/dev/disk1
of=/dev/disk2 bs=8m'.
4. Insert new cloned drive into array.
5. Power Up server/array.
5. ???
6. Profit!

Will this work?
---
Controller = HighPoint 2220
Disk1 = Maxtor MaxLine III 7L250SO
DISK2 = Maxtor MaxLine III 7L300SO

HighPoint CLI query arrays 1
ID  Capacity(GB) MaxFree  TotalFree   Type Model Number
1/1 250.920  0.0000.000   RAID5 Maxtor 7L250S0
1/2 299.977  49.057   49.057  RAID5 Maxtor 7L300S0
1/3 250.920  0.0000.000   RAID5 Maxtor 7L250S0
1/4 250.920  0.0000.000   RAID5 Maxtor 7L250S0
1/5 299.977  49.057   49.057  RAID5 Maxtor 7L300S0
1/6 299.977  49.057   49.057  RAID5 Maxtor 7L300S0
1/7 299.977  49.057   49.057  RAID5 Maxtor 7L300S0
1/8 299.977  49.057   49.057  RAID5 Maxtor 7L300S0


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


snd_via8233 module do not work with Asus A7V8X-X motherboard

2006-06-22 Thread Sander Devrieze
Hi,

According to the supported hardware list the VIA VT8235 chipset is supported 
by snd_via8233. But this information seems to be not always right (like in my 
case). The first problem is that I do not get errors, but also no sound. 
Thus, I searched on the Internet and I discovered that I was not the first 
with exactly the same problem:
http://www.bsdforums.org/forums/archive/index.php/t-15072.html
http://groups.google.be/group/fa.freebsd.hackers/browse_thread/thread/ef6b040e3242e478/14323b0a79fca308?lnk=stq=vt8235+%22no+sound%22+freebsdrnum=5hl=nl#14323b0a79fca308

Unfortunately there are no solutions in these posts.

So I went to #freebsd on eu.undernet.org 
(xmpp:[EMAIL PROTECTED] for people with XMPP uri 
support ;-) ). After a some chatting, Predius said it was probably because my 
codec/chipset combination isn't supported by the module.

My hardware and software:

1) dmesg:
pcm0: VIA VT8235 port 0xe000-0xe0ff irq 5 at device 17.5 on pci0
pcm0: Analog Devices AD1980 AC97 Codec
pcm0: VIA DXS Enabled: DXS 4 / SGD 1 / REC 1
2) motherboard: A7V8X-X
3) chipset: VIA VT8235
4) tools to make sound: esound, mplayer, mpg123
5) via8233 module loaded with kldload without error messages:
# ls /dev/dsp*
/dev/dsp0.0 /dev/dsp0.2 /dev/dsp0.4 /dev/dspW0.0/dev/dspW0.2
/dev/dspW0.4/dev/dspr0.5
/dev/dsp0.1 /dev/dsp0.3 /dev/dsp0.5 /dev/dspW0.1/dev/dspW0.3
/dev/dspW0.5

Is there any way to fix this? (opensound is no solution for me)

The second problem is that the supported hardware list do not indicate the 
supported codecs for each supported chipset. Maybe there can be subpages for 
every chipset on that page with all codecs that are supported on that 
chipset. It is a very bad end-user experience to discover after *many* hours 
that the supported hardware list is not complete.

-- 
Mvg, Sander Devrieze.
xmpp:[EMAIL PROTECTED]

ejabberd, the expandable Jabber daemon. --
http://ejabberd.jabber.ru/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: RAID online capacity expansion

2006-06-22 Thread Nikolas Britton

On 6/20/06, Josh Endries [EMAIL PROTECTED] wrote:

Hello,

Has anyone out there successfully done an online expansion of a
RAID array in FreeBSD?


I've done it twice, both times successfully, and I'm about to do it again.


How is it done and with what hardware did it work?
From what I can gather, it's not possible.


HighPoint RocketRAID 2220. It is possible.
-
I don't have time tonight to document the all the steps... I will
reply mañana... This should get you started though:
http://ezine.daemonnews.org/200111/growfs.html



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


RE: Tracking if disk is busy

2006-06-22 Thread Tamouh H.
 
 
 In the last episode (Jun 22), Matt Ruzicka said:
  We've got a couple servers that appear to have particularly 
 busy disks 
  and I was trying to determine if there is a way to more easily poll 
  this data for tracking.
  
  I'm not sure if this is one of those can't see the forest for the 
  trees issues or not, but the only means that I am familiar 
 with to see 
  the percentage of time the disk is busy is to run 'systat 
 -vmstat'.  I 
  was hoping for something more concise that I could run periodically 
  and maybe even graph (realizing that watching this might 
 well distort 
  the results).
  
  It appears that iostat on Solaris gives this information, 
 but I can't 
  seem to mimic this functionality with FreeBSD.
 
 iostat on -current and 6-stable has a Solaris-style -x mode 
 with a percent-busy column.
 
 -- 

Use : 

systat -vm 1

that will give you all the info u need, you can also try:

systat -io 1 '%busy'

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


Re: Does anyone run VNC with 64-bit FreeBSD (amd64)?

2006-06-22 Thread Greg Lane
On Thu, Jun 22, 2006 at 04:15:47PM -0700, pete wright [EMAIL PROTECTED] wrote:
 hmm, so there is no way to run the app's which are not 64bit clean in
 32bit mode in your environment?

I did test one of them. It works, but I don't have time to 
mess with all of them, and finding the 32-bit libraries and 
putting them in the right place took me forever. I am afraid I am 
not a great programmer...

However, I can quickly do a reinstall safely since I have a recent 
backup and all my /data and /home file systems are on 
separate disks I can just unplug.  It comes down to a how much time 
do I have to spare issue and in the end the machine has to be back
up today.  I already have my own instant-server meta-port that 
installs all my standard ports. It only takes a couple of hours
and I can do some other work while I wait. 

  Also, if you are
  running a Unix like OS why use VNC?  You can achive %90 of the same
  features (with less of a memory/cpu impact) by running X apps
  remotely.
 
 What about the other 10%?  We use VNC because it saves state
 for those of my users who work from multiple locations, at home,
 at work and some are even based overseas. They don't want to
 restart up to 20 windows every time they logon. Remote access
 in this form is essential for their productivity.
 
 
 screen?
 /usr/port/sysutils/screen

My users need up to 20 instances of a graphical analysis package 
which has a text-based control window that spawns two graphical 
windows.  They run a window manager with 24 virtual desktops, 
each running an instance of this program. As much as I love 
screen (I use it constantly for sysadmin-type work and I have 
mutt running constantly on one of my screens), it doesn't quite 
fulfill our needs for this task.
  
 I hope this is taken as friendly advice to save you work

No drama! Friendly advice is always gratefully received. Especially 
if it is aimed at saving me work!  Unfortunately I think rolling 
back the OS is the least work for me at this point in time. 

Thanks again, I do appreciate the advice. 

Greg

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


Re: Any generic (non-wm-specific) audio players?

2006-06-22 Thread Chris Hill

On Thu, 22 Jun 2006, Gary Kline wrote:


... Does xmms   play streams?


I'm not sure about xmms and streams, never having tried it. So I've just 
been playing with this, and it seems to work like Nikolas' description 
of cplay: download the playlist manually, then you can load it from 
within xmms. I'm listening to radioparadise.com as I type this (thanks 
for the link, Nikolas!)


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


Re: Upload a binary of Open Office 2

2006-06-22 Thread Zeng Nan
On Fri, Jun 23, 2006 at 01:34:16AM +0200, Rico wrote:
 Hi,
 
 Would someone, with access, mind compiling Open Office 2 for FreeBSD 6 
 stable, and uploading it to the FreeBSD server?
 
 Best and kind regards,
 Rico
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 

You can download it directly from openoffice's website:
http://www.openoffice.org/index.html

-- 
Zeng Nan   

MY BLOG: http://zengnan.blogspot.com
Public Key: http://pgp.mit.edu/ | www.keyserver.net

~~~
To any truly impartial person, it would
be obvious that I am always right.

~~~


pgpEjiR06Qg9P.pgp
Description: PGP signature


Re: Any generic (non-wm-specific) audio players?

2006-06-22 Thread Jim Stapleton

I know xmms does a few stream formats (like MP3), and can probably
handle most as it is plugin based. I use it as my main audio player in
BSD/Linux as I like the interface most. It's a faitful winamp clone,
which as my first music player that stuck.

Anyway, the sterio looking controls do what they would on a remote
control, there is a playlist (PL in the main window) that is drag and
drop,  with some labled buttons that should be relatively navigatable
(add files/directories/etc). For a lot of configuration, right click
on a couple of non interface areas until you see a menu with
options-preferences come out.

http://www.xmms.org/
http://www.xmms.org/docs/readme.php


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


Re: HELP! Filesystem EMPTY after upgrade from 4.11 to 6.1

2006-06-22 Thread Chad Leigh -- Shire.Net LLC


On Jun 22, 2006, at 3:12 PM, Martin Hepworth wrote:


Sven

ok so no backup beforehand then...

Have you tried moving the drive to a  4.11 system and mounting the  
partition

from there, and then backing-up the data!

Might be some way of forcing UFS1 over UFS2 on the mount command,  
but I
don't see any mention of this in the man page (which still says  
4.11 on the

online version!)


I would guess that mount can tell the difference between ufs1 and  
ufs2.  The man page for mount on my 6.0 system just shows mount -t  
ufs with no discrimination between the two.


Chad


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



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


Re: Does anyone run VNC with 64-bit FreeBSD (amd64)?

2006-06-22 Thread pete wright

On 6/22/06, Greg Lane [EMAIL PROTECTED] wrote:

On Thu, Jun 22, 2006 at 04:04:34PM +0300, Alex Savovski [EMAIL PROTECTED] wro
 I have the same ,problem,But I have never run on other version,I use
 RELENG_6_1, AMD64

On Thu, Jun 22, 2006 at 11:29:15AM -0500, Jonathan Fosburgh [EMAIL PROTECTED] 
wrote:
 VNC (tightvnc included) as well as NXWindows (IMHO, much better than VNC) are
 based on old versions of XFree86 that don't support AMD64.  I have had some
 success running the i386 package of tightvnc and starting only twm from the
 xstartup script.  Some applications (just about anything using gtk) crash the
 VNC server, and some (KDE) work all right. YMMV.

 I have tried to make NXWindows work on amd64 but there is just too much
 patching that needs to be done for my meager skills.

Thanks for the info. I had figured something like this.  I installed
the 64-bit system anticipating a future memory upgrade from the current
4GB to 8GB.  However, VNC is essential for various members of my group,
as is ports/devel/root (which doesn't compile on amd64) and there is
some of our own (also essential) custom software which is not 64-bit
clean.  Since this holds up a number of people from their work
and my patching skills are VERY meager, I will have to roll back to
the 32-bit OS.



Did you try to build/install a 32bit version of VNC?  Also, if you are
running a Unix like OS why use VNC?  You can achive %90 of the same
features (with less of a memory/cpu impact) by running X apps
remotely.

-pete

--
~~o0OO0o~~
Pete Wright
www.nycbug.org
NYC's *BSD User Group
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Problems with both firefox and mozilla from ports

2006-06-22 Thread excalibur
Hello,

I installed firefox and mozilla from ports on my FreeBSD 6.0 RELEASE machine at
home.  I installed mozilla which was working, then I did a portupgrade to all my
installed ports (took 3 days on my friends high speed line, well higher than
mine which is dial-up).  Then I decided to installed firefox from ports too
(over my modem, took ~3 hours just to download).

Well, anyway, the long story much shorter is, now neither work.  Every time I
launch either I get the following errors:



(20:51:37 ~) 0 $
- firefox

(Gecko:702): GLib-GObject-WARNING **: cannot register existing type
`GConfClient'

(Gecko:702): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT
(object_type)' failed

(Gecko:702): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT
(object)' failed
Segmentation fault (core dumped)


When I launch mozilla the errors are identical with the exception that the
Gecko:XXX number are different, but the text is the same.  Thinking that is
was, perhaps, not a good thing to have them together on the same system, I did a
make deinstall to mozilla and firefox, and then rebuilt firefox and reinstalled
it.  I'm still getting the same issue.  Does anyone know how to fix this?

I'm stuck using Konquerer and for some reason, it dies every time it tries to do
something with ssl.  I'm thinking I'm probably going to have to update the
OpenSSL libraries I have installed.  Whether I attempt to enter an encrypted
site, or attempt to configure the crypto stuff in Konquerer, it's the same
story, segfault and a core dump.  Oh well, I'm not as interested in Konquerer. 
I really want to get firefox or mozilla working.

Please respond to the list and/or my google mail account, af300wsm at gmail.com.
 That account is subscribed to freebsd-questions as this account can't handle
storying the large volume of traffic (and because I'm using Konquerer I couldn't
log in to google mail).

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


Re: Learn more about ld-elf and FreeBSD

2006-06-22 Thread Corey Brune

That's interesting. Would you email me the output of these commands?

echo $LD_LIBRARY_PATH
ls path to libpq.so.3
file libpq.so.3

Thanks,
Corey

On 6/22/06, swygue [EMAIL PROTECTED] wrote:


Corey,

Thanks for your response, I did set the LD_LIBRARY_PATH but ldd still
can't find it.

[EMAIL PROTECTED]ldd /usr/local/postgresql-7.4.2/bin/psql
/usr/local/pgsql/bin/psql:
libpq.so.3 = not found (0x0)
libpam.so.1 = /usr/lib/libpam.so.1 (0x28086000)
libz.so.2 = /usr/lib/libz.so.2 (0x2809)
libreadline.so.4 = /usr/lib/libreadline.so.4 (0x2809d000)
libcrypt.so.2 = /usr/lib/libcrypt.so.2 (0x280c2000)
libm.so.2 = /usr/lib/libm.so.2 (0x280db000)
libutil.so.3 = /usr/lib/libutil.so.3 (0x280f7000)
libc.so.4 = /usr/lib/libc.so.4 (0x2810)
libncurses.so.5 = /usr/lib/libncurses.so.5 (0x2819a000)


-Rod


On 6/22/06, Corey Brune [EMAIL PROTECTED] wrote:

 Have you tried setting LD_LIBRARY_PATH to include the directory where
 libpq is? Are you getting this error after psql or something like it? If you
 haven't, then set LD_LIBRARY_PATH, then type 'ldd command'. This will tell
 you which libs are found and which are not.

 Hope this helps.
 Corey


 On 6/22/06, swygue  [EMAIL PROTECTED] wrote:

  Once in a while I get some error, looking like this:

   /usr/libexec/ld-elf.so.1: Shared object libpq.so.3 not found

 This specific error was a result of trying to connect to a
 postgresql-7.4.2 database running on FreeBSD, 4.6.2. And yes the
 server is in the process of being decommissioned.

 I was wondering how have others resolve problems related to ld-elf and
 shared objects ? And where can I find more information about ld-elf
 and FreeBSD ?

 Thanks

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




--
swygue neron ---


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


MySQL RC script failing

2006-06-22 Thread Joe Auty

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm basically having the same problem described in this thread:

http://lists.freebsd.org/pipermail/freebsd-questions/2004-December/ 
067213.html



A solution was never posted... Has anybody come up with something?  
This same RC script is working fine on my other FreeBSD machine.



My other FreeBSD machine also has a working Mailman install I can't  
get working on this machine, despite carefully and thoroughly  
reinstalling the software from scratch. I'm starting to wonder if my  
production machine I'm having these problems on isn't somehow cursed =)




- ---
Joe Auty
NetMusician: web publishing software for musicians
http://www.netmusician.org
[EMAIL PROTECTED]


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFEm2jjCgdfeCwsL5ERAomAAJ9tDWZ7FQ/J+soEgtImWum70SqdgACeNyOP
I89bRp/TzinQc376blvk7nM=
=eZHK
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


from STABLE to RELENG?

2006-06-22 Thread Jonathan Horne
generally, how risky of an operation is it to change the branch im following 
(assuming i have a server in good working order)? 

i think i would now prefer to start following RELENG on my production servers 
instead of STABLE (not that im having any issues), so that i can keep up with 
patchlevels of specific servers a little easier.

im sure this is a common thing, but i want to ask since google didnt bring 
anything up to me on this topic.

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


Re: from STABLE to RELENG?

2006-06-22 Thread Chad Leigh -- Shire.Net LLC


On Jun 22, 2006, at 10:09 PM, Jonathan Horne wrote:

generally, how risky of an operation is it to change the branch im  
following

(assuming i have a server in good working order)?

i think i would now prefer to start following RELENG on my  
production servers
instead of STABLE (not that im having any issues), so that i can  
keep up with

patchlevels of specific servers a little easier.


That easiest if you do it at a version change.  Say, for example, 6.0- 
STABLE to 6.1-RELEASE or similar.



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



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


problems with strace

2006-06-22 Thread Joe Auty

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

No matter what command I run with strace, I have the same problem:

# strace ls
strace: open(/proc/..., ...): No such file or directory
trouble opening proc file


Any ideas why this is?






- ---
Joe Auty
NetMusician: web publishing software for musicians
http://www.netmusician.org
[EMAIL PROTECTED]


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFEm2t6CgdfeCwsL5ERAnBEAKCBFCnGeJbxPBbCrhDQcdCoKX/BVQCbBASW
BWlfS8Q2ChQWqjpcn7k6epY=
=GCd0
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Any generic (non-wm-specific) audio players?

2006-06-22 Thread Nikolas Britton

On 6/22/06, Chris Hill [EMAIL PROTECTED] wrote:

On Thu, 22 Jun 2006, Gary Kline wrote:

 ... Does xmms play streams?

I'm not sure about xmms and streams, never having tried it. So I've just
been playing with this, and it seems to work like Nikolas' description
of cplay: download the playlist manually, then you can load it from
within xmms. I'm listening to radioparadise.com as I type this (thanks
for the link, Nikolas!)



Your welcome, here's more:

http://www.somafm.com/ (multiple genres)
http://www.bassdrive.com/ (Drum  Bass / Junge)
http://www.friskyradio.com/ (EDM etc.)
http://www.di.fm/ (multiple genres, mostly electronic)
http://www.xtcradio.com/ (DJ Mix Sets)
http://www.staticbeats.com/ (IDM)
http://www.m1live.com/ (Club/Dance)

Also, Ishkur's Guide to Electronic Music (Flash Player Required):
http://www.di.fm/edmguide/edmguide.html

Does anyone know of streams that sound like XRT or Q101?... two radio
stations in Chicago


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


Re: MySQL RC script failing

2006-06-22 Thread Dennis Olvany
I recall having to tinker with the rc script. Let's have a look at the 
script and also the log residing in the db root, probably /var/db/mysql.

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


Re: problems with strace

2006-06-22 Thread Dan Nelson
In the last episode (Jun 23), Joe Auty said:
 No matter what command I run with strace, I have the same problem:
 
 # strace ls
 strace: open(/proc/..., ...): No such file or directory
 trouble opening proc file
 
 Any ideas why this is?

Is /proc mounted?

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


Re: MySQL RC script failing

2006-06-22 Thread Joe Auty

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Jun 23, 2006, at 12:19 AM, Dennis Olvany wrote:

I recall having to tinker with the rc script. Let's have a look at  
the script and also the log residing in the db root, probably /var/ 
db/mysql.

___



Sure!

Here is the RC script:


#!/bin/sh
#
# $FreeBSD: ports/databases/mysql50-server/files/mysql- 
server.sh.in,v 1.3 2006/03/07 16:25:00 ale Exp $

#

# PROVIDE: mysql
# REQUIRE: LOGIN
# 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



Here is the relevant snippet from my error log:

060622 23:54:39  mysqld started
060622 23:54:39 [ERROR] Can't find messagefile '/usr/local/share/ 
mysql/english/errmsg.sys'

060622 23:54:39 [ERROR] Aborting

060622 23:54:39  mysqld ended


This file does exist, and has the same permissions assigned to it  
that my working FreeBSD machine has, so I don't think this error  
message should be taken at face value.







- ---
Joe Auty
NetMusician: web publishing software for musicians
http://www.netmusician.org
[EMAIL PROTECTED]


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFEm26VCgdfeCwsL5ERAuXfAJwOPilCeI2b2CFDTzRjLyEF7ai8/gCfVgsz
ZKel2JXXdF0BcFJpnam+Q+w=
=Do5b
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: from STABLE to RELENG?

2006-06-22 Thread Jonathan Horne
On Thursday 22 June 2006 23:16, Chad Leigh -- Shire.Net LLC wrote:
 On Jun 22, 2006, at 10:09 PM, Jonathan Horne wrote:
  generally, how risky of an operation is it to change the branch im
  following
  (assuming i have a server in good working order)?
 
  i think i would now prefer to start following RELENG on my
  production servers
  instead of STABLE (not that im having any issues), so that i can
  keep up with
  patchlevels of specific servers a little easier.

 That easiest if you do it at a version change.  Say, for example, 6.0-
 STABLE to 6.1-RELEASE or similar.


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


well i would be attempting a 6.1-STABLE to 6.1-RELENG.  i have a dev box i 
think im going to give it a go on, and see what happens.  if this one doesnt 
go well, ill just wait until the next RELEASE increments to the next.

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


Re: FreeBSD smp

2006-06-22 Thread Joerg Pernfuss
On Tue, 20 Jun 2006 22:51:46 -0500 (CDT)
Denny White [EMAIL PROTECTED] wrote:

 Okay, might be off base here, so someone correct me if
 I'm wrong. Don't you also have to remove the following
 
 #ifdef SMP
 #ifndef COMPILING_LINT
 #error DEVICE_POLLING is not compatible with SMP
 #endif
 #endif
 
 from /usr/src/sys/kern/kern_poll.c ?
 
 You'll get an error part of the way through building
 the kernel otherwise, right? Like I said, that's the
 way I remember it. Just trying to save someone some
 unnecessary work.

Obviously only if you have enabled device polling in your custom kernel
and know what you're doing. Defaulting to refuse to build polling on
SMP has its reason. While it is generally not a problem, the kernel /
userland ratio and statistics code might get messed up if I recall
an old posting from Luigi correctly.

Joerg
-- 
| /\   ASCII ribbon   |  GnuPG Key ID | e86d b753 3deb e749 6c3a |
| \ / campaign against |0xbbcaad24 | 5706 1f7d 6cfd bbca ad24 |
|  XHTML in email  |.the next sentence is true.   |
| / \ and news | .the previous sentence was a lie.|


signature.asc
Description: PGP signature


Re: from STABLE to RELENG?

2006-06-22 Thread snacktime

Maybe I've been lucky, but I've never had problems upgrading from one
version to another, as long as it's a supported jump.  Most of those
have also been remote upgrades without going to single user mode.  I
just upgraded a couple 5.4-STABLE boxes to 6.1-RELEASE, and it went
without a hitch.I think the last time I messed something up with a
remote upgrade was when it involved going from a.out to elf.  Can't
remember the specifics, but I do remember messing that one up.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]