Re: Sound on amd64

2008-07-06 Thread Kurt Buff
On Sat, Jul 5, 2008 at 8:48 PM, Conrad J. Sabatier <[EMAIL PROTECTED]> wrote:
> On Sat, 5 Jul 2008 19:02:09 -0700
> "Kurt Buff" <[EMAIL PROTECTED]> wrote:
>
>> I'm trying to update the kernel in 7.0-Stable (updated today) with
>> either snd_hda or snd_ich, and it's erroring out during buildkernel
>> with one or the other of these failure messages:
>>
>> For snd_ich, I get this:
>> In file included from /usr/src/sys/dev/sound/pcm/sound.h:94
>>  from /usr/src/sys/dev/sound/pci/ich.c:28:
>> /usr/src/sys/dev/sound/pcm/channel.h:216:24 error: channel_if.h: No
>> such file or directory
>> In file included from /usr/src/sys/dev/sound/pci/ich.c:29:
>> /usr/src/sys/dev/sound/pcm/ac97.h:91:21: error ac97_if.h: No such file
>> or directory
>> mkdep: compile failed
>>
>> For snd_hda, I get this:
>> In file included from /usr/src/sys/dev/sound/pcm/sound.h:94
>>  from /usr/src/sys/dev/sound/pci/hda/hdac.c:70:
>> /usr/src/sys/dev/sound/pcm/channel.h:216:24 error: channel_if.h: No
>> such file or directory
>> In file included from /usr/src/sys/dev/sound/pci/ich.c:29:
>> /usr/src/sys/dev/sound/pci/hda/hdac.c:82:22: mixer_if.h: No such file
>> or directory
>> mkdep: compile failed
>>
>>
>> Hardware is an Lenovo Thinkpad T61 7658 CTO, and I've confirmed that
>> it has an Intel hda controller - or at least that is what SLES thinks
>> when it boots on this machine.
>>
>> What next?
>>
>> Kurt
>
> Do you have both the generic sound support (sound) as well as the
> specific hardware driver enabled in your kernel config?

Sigh. Always something new to learn.

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


Re: Sound on amd64

2008-07-06 Thread Tore Lund
Kurt Buff wrote:
> On Sat, Jul 5, 2008 at 8:48 PM, Conrad J. Sabatier <[EMAIL PROTECTED]> wrote:
>> On Sat, 5 Jul 2008 19:02:09 -0700
>> "Kurt Buff" <[EMAIL PROTECTED]> wrote:
>> ...
>> Do you have both the generic sound support (sound) as well as the
>> specific hardware driver enabled in your kernel config?
> 
> Sigh. Always something new to learn.

Just wondering, why do people modify the kernel when kernel loadable
modules can handle the sound card?  Is it necessary on some types of
hardware?
-- 
Tore


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


Re: Why would it make such a difference to move mysqld to another machine?

2008-07-06 Thread Matthew Seaman

John Almberg wrote:

Luckily, I have a pretty powerful machine sitting right next to my main 
webserver that I mainly use for backup. The two servers are directly 
connected to each other with a twisted ethernet cable, using extra NIC 
cards in the machines, so they have a fast, dedicated 'LAN' to share.


Desperate, I moved mysqld to this other machine, so basically this 
second machine became a dedicated database server.


The improvement this change made seems out of proportion. Both machines 
are now cruising with extremely low load averages and the WCPU for the 
mysqld instance on the new machine is practically zero.


I'm not complaining. Problem solved. But I am scratching my head over 
how mysql could be getting crushed on the first, 8 core/8G machine, but 
running cool as a cucumber on the second, 2-core/2G machine???


Database performance is critically dependant on the underlying Disk IO sub-
systems.

There's two things to consider here:

 * What's the difference in disk hardware between the two machines?

 * How well does the database compete with apache for disk IO when
   they are sharing the same drives?

In the first case, you'll see very big improvements in MySQL performance
if you use disks with plenty of IO cache memory on them, plus disks that
work with controllers that support tagged queuing (SAS and higher end SATA
generally.)  DB disk IO consists primarily of a large number of small
transactions randomly distributed across the drive.  Reducing the latency
of each of those transactions gets you the best improvement in performance. 


RAID levels are important: single disks are not bad if dedicated to the DB.
RAID1 mirrors are fine.  RAID10 striped mirrors are excellent.  RAID5 not
so good.  If you're willing to spend money, hardware RAID controllers help.
Hardware RAID controllers with Battery Backup Units (so you can safely turn
on write caching) help a very great deal.

In the second case, it's really just about competition for resources. I
suspect that you could have achieved a pretty good speed-up simply by
adding another hard drive to your server and moving all of the database
onto it, separate from the web root and any other areas which apache
would be doing a lot of read/write operations on.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Disabling Super key?

2008-07-06 Thread Girish Kulkarni
Is there any way I could disable the Windows key on my keyboard?

I use FreeBSD 7.0-RELEASE on a Dell Inspiron 640m laptop. My Windows
key ("Super_L") has developed a problem for some unknown reason: it
gets pressed and remains so without my touching it. I could diagnose
this only using xev, which reported a constant Super_L KeyPress event.

This means that I cannot enter text in for example Firefox or Emacs
most of the time and this is terribly irritating. I could probably
solve the problem by disabling the Super key.

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


linux_base and SMP support ?

2008-07-06 Thread P.Moulin


Hi there.

I recently added linux_base-fc4 on a host, to run linux
setiathome enhanced versions (aka crunchers).

The problem is that on multicore engines (core 2 duo, pentium D, etc...)
where before there was 2 freebsd-crunchers on 2 differents core,
now, with linux-crunchers, the 2 crunchers are sharing only 1 core.

Can someone tell me what's wrong with this ?  Have I missed something ?
Is it an incompatibility from linux_base with smp hardware ?

This problem seems to affects only freebsd 6.x, not the 7 branch.
My kernels are all compiled with SMP support.

I'm working for years with freebsd, but consider I'm really a newbee
with linux.

T.I.A.  PM.


PS: if you want to join us:
http://boincstats.com/stats/team_graph.php?pr=sah&id=2119
(we have the 5th position in our country statistics; we are one of the
oldiest team in our country; we tend to use mostly freebsd powered
engines (56% freebsd today, 73% if you consider "Darwin" being a
"freebsd").

(thanks to read this, not so long, email till this line ;-)



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


Re: Konqueror UNICODE fonts

2008-07-06 Thread Ezequiel Aguerre
Hi,
1. Make sure you have the proper fonts :P
2. Choose a generic font name in konqueror config, something like "Sans" and
"Monospace" instead of (for example) "Bitstream Vera Sans" and "Bitstream
Vera Sans Mono".
3. Make sure you have configured "fontconfig" so that it makes the proper
replace from "Sans" -> "Your preferred font" and so on.

At least I had that problem until I did this.
The problem seems to be with font substitution. Say for example you are
using some of the "DejaVu" fonts and you want to see a page with some
strange character wich is not in that font; that character should be taken
from another font, however Konqueror doesn't get it quite right :P

Bye!!

2008/7/5 Ghirai <[EMAIL PROTECTED]>:

> Hello list.
>
> I'm running KDE 3.5.8 from ports.
>
> Konqueror doesn't seem to want to display unicode fonts properly; i get
> boxes
> instead, even though i set the encoding to UTF-8.
>
> The same seem to be with text editors and such.
>
> Any indeas?
>
> Thanks.
>
> --
> Regards,
> Ghirai.
> ___
> 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]"


minimum xorg install for clients side

2008-07-06 Thread Anton Shterenlikht
I've a headless machine on which I'd like to run
xorg clients, but no server. What ports do I need
to install? xorg-apps?

many thanks
anton


-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: linux_base and SMP support ?

2008-07-06 Thread Kris Kennaway

P.Moulin wrote:


Hi there.

I recently added linux_base-fc4 on a host, to run linux
setiathome enhanced versions (aka crunchers).

The problem is that on multicore engines (core 2 duo, pentium D, etc...)
where before there was 2 freebsd-crunchers on 2 differents core,
now, with linux-crunchers, the 2 crunchers are sharing only 1 core.

Can someone tell me what's wrong with this ?  Have I missed something ?
Is it an incompatibility from linux_base with smp hardware ?

This problem seems to affects only freebsd 6.x, not the 7 branch.
My kernels are all compiled with SMP support.

I'm working for years with freebsd, but consider I'm really a newbee
with linux.


How do you know they are sharing one core, and what do you mean by "2 
crunchers"?  Are they separate processes, or a single threaded process?


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


Re: Konqueror UNICODE fonts

2008-07-06 Thread Ghirai
On Sunday 06 July 2008 13:08:55 Ezequiel Aguerre wrote:
> Hi,
> 1. Make sure you have the proper fonts :P
> 2. Choose a generic font name in konqueror config, something like "Sans"
> and "Monospace" instead of (for example) "Bitstream Vera Sans" and
> "Bitstream Vera Sans Mono".
> 3. Make sure you have configured "fontconfig" so that it makes the proper
> replace from "Sans" -> "Your preferred font" and so on.
>
> At least I had that problem until I did this.
> The problem seems to be with font substitution. Say for example you are
> using some of the "DejaVu" fonts and you want to see a page with some
> strange character wich is not in that font; that character should be taken
> from another font, however Konqueror doesn't get it quite right :P
>
> Bye!!
>
> 2008/7/5 Ghirai <[EMAIL PROTECTED]>:
> > Hello list.
> >
> > I'm running KDE 3.5.8 from ports.
> >
> > Konqueror doesn't seem to want to display unicode fonts properly; i get
> > boxes
> > instead, even though i set the encoding to UTF-8.
> >
> > The same seem to be with text editors and such.
> >
> > Any indeas?
> >
> > Thanks.
> >
> > --
> > Regards,
> > Ghirai.

Alright, i installed dejavu fonts from ports, added the path to xorg.conf, and
told KDE and Konqueror to use the DejaVu fonts.

Everything works.

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


Re: minimum xorg install for clients side

2008-07-06 Thread Fraser Tweedale
On Sun, Jul 06, 2008 at 11:38:42AM +0100, Anton Shterenlikht wrote:
> I've a headless machine on which I'd like to run
> xorg clients, but no server. What ports do I need
> to install? xorg-apps?
> 
> many thanks
> anton
> 

xorg-libraries is the place to start. xorg-apps is a collection of 
small X utilities, applications and demos.

frase


pgp0olZHERHka.pgp
Description: PGP signature


Re: minimum xorg install for clients side

2008-07-06 Thread Anders Trobäck
On Sun, 6 Jul 2008 11:38:42 +0100
Anton Shterenlikht <[EMAIL PROTECTED]> wrote:

> I've a headless machine on which I'd like to run
> xorg clients, but no server. What ports do I need
> to install? xorg-apps?
> 
> many thanks
> anton
> 
> 

Not 100% sure what you are asking, but if you want to run, let's say
xterm, just install xterm!

If you want to have a remote GUI logon with XDMCP install XDM, GDM or
KDM then you can start X with the -query parameter!

If this wasn't what you where asking please ask again:-)


\\troback
-- 


Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"

Anders Trobäck
http://www.troback.com/
-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Development (Linux) and production (freeBSD) servers?

2008-07-06 Thread Gintautas Simkus
Hello, I have a freeBSD AMP web server running on an old desktop, while on
my laptop I am running Ubuntu and Windows OSes. My main concern is this:
is it possible backup my production server data with rsync for instance
and keep it on Ubuntu server? Are there any other consideration to take into
account?
Thanks for answers.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Development (Linux) and production (freeBSD) servers?

2008-07-06 Thread Roland Smith
On Sun, Jul 06, 2008 at 04:17:06PM +0300, Gintautas Simkus wrote:
> Hello, I have a freeBSD AMP web server running on an old desktop, while on
> my laptop I am running Ubuntu and Windows OSes. My main concern is this:
> is it possible backup my production server data with rsync for instance
> and keep it on Ubuntu server? 

Yes. 

> Are there any other consideration to take into account?

When using rsync, it might not be able to copy ACLs and flags to other
OS's that do not support them natively. So if you depend on ACLs or
flags, use dump instead. 

But is you just have regular data files, rsync is fine. For keeping
large volumes of data synchronized, rsync is probably the fastest
solution. I tend to use the following options for rsync backups: '-axq
--delete'.

You could also use a USB connected harddisk as a backup. It's easy to
store that off-site. If you consider your data valuable, encrypt your
backup disks, e.g. with geli(8).

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpBr5tHSFnVn.pgp
Description: PGP signature


Reconfiguring network interfaces

2008-07-06 Thread David Allen
I need to make several wholesale changes to a few different systems,
and I'd prefer to do it over SSH without losing connectivity where
possible.  I know I can use ifconfig, or edit /etc/rc.conf directly
and reboot, but is there a canonical way to make the changes in
/etc/rc.conf and "reload" those changes to ensure everything is in a
known state?  From what I can determine, running netif stop/start
would work, but would require I do that locally.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Portupgrade

2008-07-06 Thread dfeustel
I ran the command 'portupgrade -all' yesterday and now I have some
questions about the way the command works.

Building of numerous packages was preceeded by a graphical menu of
build options for the package to be built. In the case of clisp,
I changed the default to include building the pari math module.
A compile error with pari then broke the build of clisp.

I tried running the command 'portupgrade clisp' but no menu came
up for me to deselect pari and redo the build. The old clisp was
removed by portupgrade. 

How do I get clisp back?

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


Re: Portupgrade

2008-07-06 Thread Roland Smith
On Sun, Jul 06, 2008 at 02:07:45PM +, [EMAIL PROTECTED] wrote:
> I ran the command 'portupgrade -all' yesterday and now I have some
> questions about the way the command works.
> 
> Building of numerous packages was preceeded by a graphical menu of
> build options for the package to be built. In the case of clisp,
> I changed the default to include building the pari math module.
> A compile error with pari then broke the build of clisp.
> 
> I tried running the command 'portupgrade clisp' but no menu came
> up for me to deselect pari and redo the build. The old clisp was
> removed by portupgrade. 
> 
> How do I get clisp back?

Go to the clisp port directory. Run 'make config', then 'make install clean'.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpV1pBitMtFw.pgp
Description: PGP signature


Re: Reconfiguring network interfaces

2008-07-06 Thread Derek Ragona

At 09:06 AM 7/6/2008, David Allen wrote:

I need to make several wholesale changes to a few different systems,
and I'd prefer to do it over SSH without losing connectivity where
possible.  I know I can use ifconfig, or edit /etc/rc.conf directly
and reboot, but is there a canonical way to make the changes in
/etc/rc.conf and "reload" those changes to ensure everything is in a
known state?  From what I can determine, running netif stop/start
would work, but would require I do that locally.



You pretty much need to be on the console rather than ssh'd in to make 
those changes interactively.  You can do them remotely via a cron job or at 
job, but any mistake will require a trip  to  the console.


-Derek

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

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


Re: Why would it make such a difference to move mysqld to another machine?

2008-07-06 Thread Christopher Sean Hilton


On Jul 6, 2008, at 4:58 AM, Matthew Seaman wrote:


John Almberg wrote:




[snip]

In the second case, it's really just about competition for  
resources. I

suspect that you could have achieved a pretty good speed-up simply by
adding another hard drive to your server and moving all of the  
database

onto it, separate from the web root and any other areas which apache
would be doing a lot of read/write operations on.



When I go back and look at the original top output for the single  
machine I note that it's out of RAM. It looks to me like apache and  
mysqld were contending over memory.


-- Chris

--
Chris Hilton   chris-at-vindaloo-dot-com

   "All I was doing was trying to get home from work!"
-- Rosa Parks

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


Re: Reconfiguring network interfaces

2008-07-06 Thread Andrew D

David Allen wrote:

I need to make several wholesale changes to a few different systems,
and I'd prefer to do it over SSH without losing connectivity where
possible.  I know I can use ifconfig, or edit /etc/rc.conf directly
and reboot, but is there a canonical way to make the changes in
/etc/rc.conf and "reload" those changes to ensure everything is in a
known state?  From what I can determine, running netif stop/start
would work, but would require I do that locally.


You could also use the alias featue, adding the new ip, sshing into the 
new ip, and dump the old ip.


** Though I haven't tried this method personally. **

HTH
cya
Andrew


___
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: Reconfiguring network interfaces

2008-07-06 Thread Mel
On Sunday 06 July 2008 16:06:49 David Allen wrote:

> I need to make several wholesale changes to a few different systems,
> and I'd prefer to do it over SSH without losing connectivity where
> possible.  I know I can use ifconfig, or edit /etc/rc.conf directly
> and reboot, but is there a canonical way to make the changes in
> /etc/rc.conf and "reload" those changes to ensure everything is in a
> known state?  From what I can determine, running netif stop/start
> would work, but would require I do that locally.

So, you want to make changes to a machine and confirm they're correct, but 
when they're not, the old settings should be restored:

0) make sure sshd listens on all ip's ('INADDR_ANY'), not preconfigured set.

# cp -p /etc/rc.conf /etc/rc.conf.BEFORE_CHANGE
# ${EDITOR} /etc/rc.conf
# cp -p /etc/rc.conf /etc/rc.conf.CHANGES

Then this script, say /root/bin/testrc.sh:
=
#!/bin/sh

/etc/rc.d/netif stop
sleep 1
/etc/rc.d/netif start
# sleep for 5 minutes, should be ample time to re-establish the ssh
# connection.
sleep 300
# We were not killed, this means the connection is faulty
cp -p /etc/rc.conf.BEFORE_CHANGE /etc/rc.conf
/etc/rc.d/netif stop
sleep 1
/etc/rc.d/netif start
=

Then run as:
daemon -p /var/run/testrc.pid /root/bin/testrc.sh

When you can log back in, simply:
kill `cat /var/run/testrc.pid` ; rm /var/run/testrc.pid
And rm /etc/rc.conf.BEFORE_CHANGE if you feel comfy.

If you couldn't log back in, inspect /etc/rc.conf.CHANGES and adjust, rm the 
pid file, rince and repeat.
-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: minimum xorg install for clients side

2008-07-06 Thread Anton Shterenlikht
On Sun, Jul 06, 2008 at 02:16:36PM +0200, Anders Trob??ck wrote:
> On Sun, 6 Jul 2008 11:38:42 +0100
> Anton Shterenlikht <[EMAIL PROTECTED]> wrote:
> 
> > I've a headless machine on which I'd like to run
> > xorg clients, but no server. What ports do I need
> > to install? xorg-apps?
> > 
> > many thanks
> > anton
> > 
> > 
> 
> Not 100% sure what you are asking, but if you want to run, let's say
> xterm, just install xterm!
> 
> If you want to have a remote GUI logon with XDMCP install XDM, GDM or
> KDM then you can start X with the -query parameter!
> 
> If this wasn't what you where asking please ask again:-)

sorry, I wasn't clear.

I have 2 FBSD boxes: a server with no graphics card (S) and a laptop (L).
I want to run X applications on S and see the results on L.
The applications I run on S are typically xpdf, gs, xfig, display,
firefox, etc.

While I could install ports/xorg on both boxes, this is probably
excessive. Since I won't run any xorg applications on L, I probably
don't need xorg-apps on L. Likewise, since I'm not running xorg server
on S, I probably don't need xorg-server on S. This is my basic
understanding of xorg server-clients model. Is this logic correct?

However, I'm not sure on what box (S, L or both) I need:
xorg-libraries
xorg-fonts
xorg-drivers
xorg-protos

etc.

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


natd and ipfw external hangs

2008-07-06 Thread Alex Teslik
Hello,

I recently upgraded to 7.0-STABLE and have setup an ipfw+natd combo on
my dual homed host. I have two interfaces:

em0 - external interface to the net 24.205.x.x
sk0 - internal interface 192.168.x.x

When users connect on the 192.168.x.x internal network everything works
great. Packets get out to the net and back to the originating machine with
no delays. So, natd seems to be doing the right thing.

The server (24.205.x.x) can directly connect to the internet for all
services - no problems there.

The problem is external users. When they hit the webserver at 24.205.x.x the
text portion of the pages load quickly. A few images load, and then the rest
of the page hangs for quite some time. When I check the connection on my
side with netstat -a I see a lot of these:

tcp4   0  0  server.http 41.221.19.24.62422
FIN_WAIT_2
tcp4   0  0  server.http 41.221.19.24.62401
FIN_WAIT_2
tcp4   0  0  server.http 203.215.120.236.1686
FIN_WAIT_2


So it seems the connection is just hanging for some reason. I opened my
firewall up completely, taking natd out of the equation and the external
problem was solved. So, I'm suspecting a bad config in my firewall rules, or
a bad config in my natd.

So I created an open firewall that also uses natd to see if I could get
things working. Here are the rules (complete with comments from the fbsd
handbook):

#!/bin/sh
IPFW="ipfw -q add"
ipfw -q -f flush

# No restrictions on Inside LAN Interface for private network
$IPFW 10 allow all from any to any via sk0

# No restrictions on loopback interface
$IPFW 20 allow all from any to any via lo0

# check if packet is inbound and nat address if it is
$IPFW 30 divert natd ip from any to any in via em0

# Allow the packet through if it has previously been added to the
# the "dynamic" rules table by an allow keep-state statement.
$IPFW 50 check-state

# Interface facing Public Internet (Outbound Section)
# Interrogate session start requests originating from behind the
# firewall on the private network or from this gateway server
# destined for the public Internet.
# Basically, let everything out.
$IPFW 60 skipto 500 all from any to any out via em0 setup keep-state

# Interface facing Public Internet (Inbound Section)
# Interrogate packets originating from the public Internet
# destined for this gateway server or the private network.
# Basically, let everything in to me.
$IPFW 70 allow all from any to me in via em0 setup limit src-addr 2

# This is skipto location for outbound stateful rules
$IPFW 500 divert natd ip from any to any out via em0
$IPFW 600 allow ip from any to any

$IPFW 800 deny all from any to any


and my natd setup:

gateway_enable="YES"
firewall_enable="YES"
firewall_script="/etc/ipfw.rules"
natd_enable="YES"
natd_interface="em0"
natd_flags="-dynamic -m"


and in my kernel:

# For Network Address Translation (NAT)
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=5
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPDIVERT


How can I successfully eliminate the external hangs without loosing natd for
the internal users? Any ideas greatly appreciated!

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: Reconfiguring network interfaces

2008-07-06 Thread Wojciech Puchar

would work, but would require I do that locally.


You could also use the alias featue, adding the new ip, sshing into the new 
ip, and dump the old ip.


** Though I haven't tried this method personally. **


but i did.


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


Fwd: Why would it make such a difference to move mysqld to another machine?

2008-07-06 Thread John Almberg

On Jul 6, 2008, at 4:58 AM, Matthew Seaman wrote:


John Almberg wrote:
Luckily, I have a pretty powerful machine sitting right next to my  
main webserver that I mainly use for backup. The two servers are  
directly connected to each other with a twisted ethernet cable,  
using extra NIC cards in the machines, so they have a fast,  
dedicated 'LAN' to share.
Desperate, I moved mysqld to this other machine, so basically this  
second machine became a dedicated database server.
The improvement this change made seems out of proportion. Both  
machines are now cruising with extremely low load averages and the  
WCPU for the mysqld instance on the new machine is practically zero.
I'm not complaining. Problem solved. But I am scratching my head  
over how mysql could be getting crushed on the first, 8 core/8G  
machine, but running cool as a cucumber on the second, 2-core/2G  
machine???


Database performance is critically dependant on the underlying Disk  
IO sub-

systems.

There's two things to consider here:

 * What's the difference in disk hardware between the two machines?

 * How well does the database compete with apache for disk IO when
   they are sharing the same drives?

In the first case, you'll see very big improvements in MySQL  
performance
if you use disks with plenty of IO cache memory on them, plus disks  
that
work with controllers that support tagged queuing (SAS and higher  
end SATA

generally.)  DB disk IO consists primarily of a large number of small
transactions randomly distributed across the drive.  Reducing the  
latency
of each of those transactions gets you the best improvement in  
performance.
RAID levels are important: single disks are not bad if dedicated to  
the DB.
RAID1 mirrors are fine.  RAID10 striped mirrors are excellent.   
RAID5 not
so good.  If you're willing to spend money, hardware RAID  
controllers help.
Hardware RAID controllers with Battery Backup Units (so you can  
safely turn

on write caching) help a very great deal.


The first box has 2 independent raid arrays, with an Intel hardware  
raid controller with battery backup. But apache and mysql were  
probably on the same array. I have to confirm this.


The second box has 2 drives with raid 1, from an integrated  
controller (i.e, software raid).


So the second box is much less powerful, but running mysqld is all  
it's doing. I guess that is the primary difference.


My main worry about the second box is that it only has 1G of RAM (not  
2 as I mis-remembered before checking specs.) Easily expanded, but  
it's something to watch.


Bottom line, I might do better by moving mysqld back to the first  
machine, but putting the data on the second, raid 10 array (which is  
more or less empty at the moment.)


I appreciate your insight. This is starting to make sense to me.

Brgds: JOhn



Websites for On-line Collectible Dealers

Identry, LLC
John Almberg
(631) 546-5079
[EMAIL PROTECTED]
www.identry.com



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


Re: FreeBSD + ZFS on a production server?

2008-07-06 Thread Wojciech Puchar

point:

On Thursday 12 June 2008 07:37:06 am Wojciech Puchar wrote:

you must have disks dedicated for raidz, disks dedicated for mirrored
storage and disks dedicated for unprotected storage. it's inflexible
and not much usable.

actually - much less usable than "legacy"
gmirror/gstripe/gconcat+bsdlabel.


looks like my mistake - or simply a shortcut that made statement 
imprecise.


it should be added:


ZFS can be installed on partitions and share disks with other things, but 
the performance will be bad.


ZFS - contrary to every other filesystem that use FreeBSD disk I/O 
scheduler - does it's own I/O scheduling, so it assumes it's the only user 
of physical drive.


if both non-ZFS and ZFS filesystem will share the same disk AT THE SAME 
TIME - there will be a lots of thrashing.



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


Re: Why would it make such a difference to move mysqld to another machine?

2008-07-06 Thread Mel
On Sunday 06 July 2008 10:58:54 Matthew Seaman wrote:

> I suspect that you could have achieved a pretty good speed-up simply by
> adding another hard drive to your server and moving all of the database
> onto it, separate from the web root and any other areas which apache
> would be doing a lot of read/write operations on.

In fact, when you look at the two top(1) outputs from OP, you can see that 
apache is eating all the memory and hardly any memory is left for IO cache. 
On the second machine you can see that MySQL is caching 49MB I/O, guessing 
this is the (sum of) the most used indexes or in case of InnoDB the entire 
InnoDB file.
Since MySQL is clearly the bottleneck of the sites, I'd investigate why in the 
world apache2 needs >150M per process. If you're using the memcache module, 
it may actually speed things up considerably to *disable* it, since that 
would leave plenty IO cache for MySQL to work with.

On the other hand, if there's so much I/O to cache for the webserver, maybe 
it's a good idea to configure a lightweight image (or other static content) 
server. This apache would only need mod_mime, mod_header and mod_expires (to 
set the caching). Personally, I wouldn't enable the mem cache on there 
either, since 80% of the time you'll be sending 304's, instead of image data.
-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Why would it make such a difference to move mysqld to another machine?

2008-07-06 Thread John Almberg


When I go back and look at the original top output for the single  
machine I note that it's out of RAM. It looks to me like apache and  
mysqld were contending over memory.




Can you explain this idea in more detail, Chris? I thought this TOP  
display indicated that there was still 2G free. Am I interpreting it  
wrong?  How can you tell that it's out of RAM?


Thanks: John

last pid: 43730;  load averages:  1.93,  2.64,   
2.22   up 92+19:45:54  09:26:27

238 processes: 3 running, 235 sleeping
CPU states:  8.1% user,  0.0% nice, 17.3% system,  0.2% interrupt,  
74.4% idle
Mem: 1384M Active, 3753M Inact, 373M Wired, 884K Cache, 214M Buf,  
2150M Free

Swap: 16G Total, 88K Used, 16G Free

  PID USERNAME  THR PRI NICE   SIZERES STATE  C   TIME   WCPU  
COMMAND
 1393 mysql  63  200   400M   221M kserel 0 191.5H 157.13%  
mysqld

43698 www 1   40   169M 29888K sbwait 5   0:00  2.63% httpd
43697 www 1  200   169M 29804K lockf  1   0:00  1.18% httpd
23376 vpopmail1   40 81468K 55772K select 7   0:28  1.17%  
perl5.8.8
43729 root1  960  7228K  2676K select 5   0:00  1.00%  
couriertls

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


unable to fetch wmthemeinstall

2008-07-06 Thread luizbcampos
 Despite I have enabled port 21 on /etc/pf.conf, I dont get
fetching wmthemeinstall I get -operation not permitted, I use
Free-BSD-7.0-R amd64

 Regards

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


[OT] Why behaves my application different when run in gdb

2008-07-06 Thread Tobias Rehbein
Hi all.

Sorry for asking off-topic questions but I started to dive into C programming. I
know a couple of scripting languages quite well but wanted to learn something
more low level.

What me struck now is the fact that my code will crash (signal 11) while
processing a strcpy. When I run the same thing in gdb it won't crash and whats
even more important to me: It does what I wanted it to do...

Perhaps someone can tell me why a program which crashes repeatedly in console
runs fine in the debugger.

Thanks in advance

Tobias
-- 
Tobias Rehbein

PGP key: 4F2AE314
server:  keys.gnupg.net
fingerprint: ECDA F300 1B6E 9B87 8524  8663 E8B6 3138 4F2A E314


pgphUBdzQVEj0.pgp
Description: PGP signature


Recovering root password from a drive by mounting the cdrom

2008-07-06 Thread Mukarram Syed
Hi,
I am totally new to freebsd and as a Unix admin (not a freebsd unix admin 
though), I have to recover a lost root password from a freebsd drive.
I need your help!
I have booted up from a freebsd install cd 1.  I have connected my freebsd 
drive in the system.  Now I don't know how to mount the drive to edit the 
/etc/shadow file.
I am at the fixit prompt on the cd.  
Can anyone help.  I have tried googling this for the past hour with no luck.
Is there anyother way to do this?  I can't login using single user mode though.

thanks much

# mukarram

 Mukarram Syed
[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: Recovering root password from a drive by mounting the cdrom

2008-07-06 Thread David Alanis

Quoting Mukarram Syed <[EMAIL PROTECTED]>:


Hi,
I am totally new to freebsd and as a Unix admin (not a freebsd unix   
admin though), I have to recover a lost root password from a freebsd  
 drive.

I need your help!
I have booted up from a freebsd install cd 1.  I have connected my   
freebsd drive in the system.  Now I don't know how to mount the   
drive to edit the /etc/shadow file.

I am at the fixit prompt on the cd.
Can anyone help.  I have tried googling this for the past hour with no luck.
Is there anyother way to do this?  I can't login using single user   
mode though.


thanks much

# mukarram

 Mukarram Syed
[EMAIL PROTECTED]




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



Simple as typing a few words in google:

http://www.google.com/search?hl=en&q=how+to+recover+a+root+password+freebsd&btnG=Search

Try the first link.




This message was sent using IMP, the Internet Messaging Program.

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


Re: minimum xorg install for clients side

2008-07-06 Thread Anders Trobäck
On Sun, 6 Jul 2008 16:24:08 +0100
Anton Shterenlikht <[EMAIL PROTECTED]> wrote:

> On Sun, Jul 06, 2008 at 02:16:36PM +0200, Anders Trob??ck wrote:
> > On Sun, 6 Jul 2008 11:38:42 +0100
> > Anton Shterenlikht <[EMAIL PROTECTED]> wrote:
> > 
> > > I've a headless machine on which I'd like to run
> > > xorg clients, but no server. What ports do I need
> > > to install? xorg-apps?
> > > 
> > > many thanks
> > > anton
> > > 
> > > 
> > 
> > Not 100% sure what you are asking, but if you want to run, let's say
> > xterm, just install xterm!
> > 
> > If you want to have a remote GUI logon with XDMCP install XDM, GDM
> > or KDM then you can start X with the -query parameter!
> > 
> > If this wasn't what you where asking please ask again:-)
> 
> sorry, I wasn't clear.
> 
> I have 2 FBSD boxes: a server with no graphics card (S) and a laptop
> (L). I want to run X applications on S and see the results on L.
> The applications I run on S are typically xpdf, gs, xfig, display,
> firefox, etc.
> 
> While I could install ports/xorg on both boxes, this is probably
> excessive. Since I won't run any xorg applications on L, I probably
> don't need xorg-apps on L. Likewise, since I'm not running xorg server
> on S, I probably don't need xorg-server on S. This is my basic
> understanding of xorg server-clients model. Is this logic correct?
> 
> However, I'm not sure on what box (S, L or both) I need:
>   xorg-libraries
>   xorg-fonts
>   xorg-drivers
>   xorg-protos
> 
>   etc.
> 
> many thanks
> anton
> 

If you are after a real minimal installation with XDMCP you can do like
this:

On S:
x11/xdm

On L:
x11-servers/xorg-server
x11-drivers/xf86-input-keyboard
x11-drivers/xf86-input-mouse
x11-drivers/xf86-video-intel (or what ever card you have)
x11-fonts/font-alias
x11-fonts/font-cursor-misc
x11-fonts/font-misc-misc

Configure X on L:
X -configure
X -config xorg.conf.new
cp xorg.conf.new /etc/X11/xorg.conf

Configure XDM on S:
Read http://www.freebsd.org/doc/en/books/handbook/x-xdm.html

Start XDM on S:
xdm
(if you want it to start after reboot look for a line about xdm (ttyv8)
in /etc/ttys, change off to on)

Start X on L:
X -query S


Hope that helps:-)
-- 


Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"

Anders Trobäck
http://www.troback.com/
-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: [OT] Why behaves my application different when run in gdb

2008-07-06 Thread cpghost
On Sun, 6 Jul 2008 18:36:26 +0200
Tobias Rehbein <[EMAIL PROTECTED]> wrote:

> What me struck now is the fact that my code will crash (signal 11)
> while processing a strcpy. When I run the same thing in gdb it won't
> crash and whats even more important to me: It does what I wanted it
> to do...

If you showed the program, we could have a closer look
at this and tell the exact reason. So the following is just
a wild guess, out of the blue:

If it's strcpy(), you're probably corrupting the stack
(or the malloc arena) by writing past the end of a buffer.
When you run under gdb, the debugger dynamically inserts
special instructions into the program so you can single-step
through it. This tends to slightly modify the memory layout
of your program, and you'll be jumping back to some other
address.

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Can't run GNUstep apps. X-Windows error - RenderBadPicture

2008-07-06 Thread Pedro Alves
Hello

I am trying to run GNUStep applications on my machine.
After installing all the applications and libraries and configuring the
environment I get the following error when for instance I start any
GNUstep app ie. TextEdit, Gorm ...


2008-07-06 20:35:18.082 TextEdit[911] X-Windows error - RenderBadPicture
(invalid Picture parameter)
  on display: :0.0
type: 0
   serial number: 3000
request code: 153

The app opens, but the menus doesn't show any content.
Any clues?

Thanks

Pedro

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


Can't run WindowMaker. Fatal server error:

2008-07-06 Thread Pedro Alves
Hello

I have a serious problem with windowmaker.
Every time I configure .xinitrc to launch wmaker, the server aborts

here what I get:

Fatal server error:
Caught signal 11. Server aborting

xnit: connection to X server lost.
wmaker warning: got signal1-exiting...




So... What to do, as I don't find any information concerning this problem.

I am running FreeBSD 7.0
One week old cvs ports upgrade.

Pedro


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


Re: Can't run WindowMaker. Fatal server error:

2008-07-06 Thread Luke Dean



On Sun, 6 Jul 2008, Pedro Alves wrote:


Hello

I have a serious problem with windowmaker.
Every time I configure .xinitrc to launch wmaker, the server aborts

here what I get:

Fatal server error:
Caught signal 11. Server aborting

xnit: connection to X server lost.
wmaker warning: got signal1-exiting...




So... What to do, as I don't find any information concerning this problem.

I am running FreeBSD 7.0
One week old cvs ports upgrade.


You may find clues in the Xorg log.
/var/log/Xorg.0.log

When I have this problem, or just about any X-related problem, it means I 
need to go rebuild my video driver.

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


Re: Deny access from localhost to internet.....

2008-07-06 Thread Agus
2007/9/29 RW <[EMAIL PROTECTED]>:

> On Sun, 30 Sep 2007 02:22:42 +0200
> Sten Daniel Soersdal <[EMAIL PROTECTED]> wrote:
>
> > Agus wrote:
> > > Hi guys,
> > >
> > > How are you today?
> > > The question is this..I want to restrict external access, that is
> > > from my BSD to the internet, to some groups of users. Other groups
> > > i want to access internet normally. I dont want this group of users
> > > to be able to establish connections to the internet but yes to the
> > > internal systems on the LAN...
> > >
> > > Is this possible without hacking the kernel?
> > >
> > > Thanks and salutes for all
> > >
> >
> > You want to restrict internet, but not LAN, access for certain users
> > logged into your BSD box?
> >
> > man ipfw  ( look for "uid" and "gid" )
> > man pf( look for "user" and "group" )
> >
>
> Danger Will Robinson!
>
> Don't do that unless you've read the bugs sections of the ipfw
> and pf.conf man pages.
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> [EMAIL PROTECTED]"
>


OK...cool...i am using pf as firewall...arent any issues in using both? i
mean pf and ipfw?

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


Intel Pro/Wireless 2200 -- radio stubbornly remains down at Toshiba Satellite M30-951

2008-07-06 Thread Ariel Burbaickij
Hello dear mailing list participants,
following situation:
iwi device is configured as required in man iwi (4) in
/boot/loader.conf and it is recognized
during bootup. FreeBSD 7.0-Release is used. Under FreeBSD radio
remains turned off.
As I understood it from attempt to install iwicontrol it is considered
as not needed anymore.
Under Knoppix with exactly the same hardware configuration device is
recognized without
any problems. Any ideas what I should try else?

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


Re: Why would it make such a difference to move mysqld to another machine?

2008-07-06 Thread John Almberg
Since MySQL is clearly the bottleneck of the sites, I'd investigate  
why in the

world apache2 needs >150M per process.


Now that was a darn good question.

I ran httpd -M and got a list of 60 loaded modules... duh.

I said before I'm just a beginner Admin. I'm learning a lot, but some  
of these basic things, I just haven't run into, yet. Obviously,  
Apache 2 gets loaded with a whole bunch of default modules? I didn't  
realize that, before.


Okay... I need to figure out which ones I really need. Thanks for  
push in the right direction...


-- John


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


Re: Sed in FreeBSD

2008-07-06 Thread Glen Barber
On 7/5/08, James Bailie <[EMAIL PROTECTED]> wrote:
> Sebastian Tymków wrote:
>
>
> > I've tried with sed -e '/PATTERN/ a\ line' file but this did'n work. There
> > are many axamples in internet but none
> > of them work on FreeBSD.
> >
>
>  The inserted line needs to be on a separate physical line.
>
>  sed -e '/PATTERN/a\
>  line'
>
>  For /bin/csh, you need two backslashes because the shell recognizes
>  backslashes inside single-quotes, which it shouldn't.
>

IIRC, you also need the '-i' flag, even if you do not specify a backup
extension:

sed -i '' -e 's/foo/bar/' myfile

http://www.dev-urandom.com/unix/sed

Regards,


-- 
Glen Barber
http://www.dev-urandom.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Recovering root password from a drive by mounting the cdrom

2008-07-06 Thread Wojciech Puchar

I need your help!
I have booted up from a freebsd install cd 1.  I have connected my freebsd 
drive in the system.  Now I don't know how to mount the drive to edit the 
/etc/shadow file.
I am at the fixit prompt on the cd.


IMHO

mount  /mnt
mount  /mnt/usr

cd /mnt
chroot . usr/bin/passwd

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


Re: Sound on amd64

2008-07-06 Thread Conrad J. Sabatier
On Sun, 06 Jul 2008 10:25:58 +0200
Tore Lund <[EMAIL PROTECTED]> wrote:

> Kurt Buff wrote:
> > On Sat, Jul 5, 2008 at 8:48 PM, Conrad J. Sabatier <[EMAIL PROTECTED]>
> > wrote:
> >> On Sat, 5 Jul 2008 19:02:09 -0700
> >> "Kurt Buff" <[EMAIL PROTECTED]> wrote:
> >> ...
> >> Do you have both the generic sound support (sound) as well as the
> >> specific hardware driver enabled in your kernel config?
> > 
> > Sigh. Always something new to learn.
> 
> Just wondering, why do people modify the kernel when kernel loadable
> modules can handle the sound card?  Is it necessary on some types of
> hardware?

Well, probably the main reason most people do it is to strip away any
unneeded functionality.  The GENERIC kernel contains a whole slew of
drivers and options that most people don't need, but are intended to
support a wide range of hardware configurations "out of the box".  You
can greatly reduce the kernel's size by only including the features you
really need.

-- 
PROOF OF GOD #501. ARGUMENT FROM SPORTS VICTORY (I)
  (1) My team won.
  (2) They got their talent from God.
  (3) Therefore, God exists.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Konqueror UNICODE fonts

2008-07-06 Thread Mitja
On Sunday 06 July 2008 06:23:34 Ghirai wrote:
> On Sunday 06 July 2008 13:08:55 Ezequiel Aguerre wrote:
> > Hi,
> > 1. Make sure you have the proper fonts :P
> > 2. Choose a generic font name in konqueror config, something like "Sans"
> > and "Monospace" instead of (for example) "Bitstream Vera Sans" and
> > "Bitstream Vera Sans Mono".
> > 3. Make sure you have configured "fontconfig" so that it makes the proper
> > replace from "Sans" -> "Your preferred font" and so on.
> >
> > At least I had that problem until I did this.
> > The problem seems to be with font substitution. Say for example you are
> > using some of the "DejaVu" fonts and you want to see a page with some
> > strange character wich is not in that font; that character should be
> > taken from another font, however Konqueror doesn't get it quite right :P
> >
> > Bye!!
> >
> > 2008/7/5 Ghirai <[EMAIL PROTECTED]>:
> > > Hello list.
> > >
> > > I'm running KDE 3.5.8 from ports.
> > >
> > > Konqueror doesn't seem to want to display unicode fonts properly; i get
> > > boxes
> > > instead, even though i set the encoding to UTF-8.
> > >
> > > The same seem to be with text editors and such.
> > >
> > > Any indeas?
> > >
> > > Thanks.
> > >
> > > --
> > > Regards,
> > > Ghirai.
>
> Alright, i installed dejavu fonts from ports, added the path to xorg.conf,
> and told KDE and Konqueror to use the DejaVu fonts.
>
> Everything works.

If you are going, for example, to the:
http://en.wikipedia.org/wiki/Ecuador

Are there squares too, please?

I have to used DejaVu fonts and than changed to Liberation fonts and I had and 
I have a problem as you had still.

Thank you.
-- 
There comes a time in the affairs of a man when he
has to take the bull by the tail and face the situation.
-- W.C. Fields
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Konqueror UNICODE fonts

2008-07-06 Thread Ghirai
On Monday 07 July 2008 00:48:14 Mitja wrote:
> On Sunday 06 July 2008 06:23:34 Ghirai wrote:
> > On Sunday 06 July 2008 13:08:55 Ezequiel Aguerre wrote:
> > > Hi,
> > > 1. Make sure you have the proper fonts :P
> > > 2. Choose a generic font name in konqueror config, something like
> > > "Sans" and "Monospace" instead of (for example) "Bitstream Vera Sans"
> > > and "Bitstream Vera Sans Mono".
> > > 3. Make sure you have configured "fontconfig" so that it makes the
> > > proper replace from "Sans" -> "Your preferred font" and so on.
> > >
> > > At least I had that problem until I did this.
> > > The problem seems to be with font substitution. Say for example you are
> > > using some of the "DejaVu" fonts and you want to see a page with some
> > > strange character wich is not in that font; that character should be
> > > taken from another font, however Konqueror doesn't get it quite right
> > > :P
> > >
> > > Bye!!
> > >
> > > 2008/7/5 Ghirai <[EMAIL PROTECTED]>:
> > > > Hello list.
> > > >
> > > > I'm running KDE 3.5.8 from ports.
> > > >
> > > > Konqueror doesn't seem to want to display unicode fonts properly; i
> > > > get boxes
> > > > instead, even though i set the encoding to UTF-8.
> > > >
> > > > The same seem to be with text editors and such.
> > > >
> > > > Any indeas?
> > > >
> > > > Thanks.
> > > >
> > > > --
> > > > Regards,
> > > > Ghirai.
> >
> > Alright, i installed dejavu fonts from ports, added the path to
> > xorg.conf, and told KDE and Konqueror to use the DejaVu fonts.
> >
> > Everything works.
>
> If you are going, for example, to the:
> http://en.wikipedia.org/wiki/Ecuador
>
> Are there squares too, please?
>
> I have to used DejaVu fonts and than changed to Liberation fonts and I had
> and I have a problem as you had still.
>
> Thank you.

The article itself has no squares.

However, the "Languages" box on the right of the page shows squares for about 
10 entries; seems to be something more exotic :P

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


Re: anyone been crazy enough to mirror wikipedia?

2008-07-06 Thread Chad Perrin
On Fri, Jul 04, 2008 at 12:00:50PM +0200, Wojciech Puchar wrote:
> >This is not a silly idea.  For many many years people would spend
> >hundreds of dollars on a complete set of Encyclopedia Britannica
> >or World Book encyclopedia to have it sit on their shelf gathering
> 
> they bought it to HAVE it, not because they need it.

In my house, we had an encyclopedia because I was in school and it was
useful for research papers.

-- 
Chad Perrin [ content licensed PDL: http://pdl.apotheon.org ]
MacUser, Nov. 1990: "There comes a time in the history of any project
when it becomes necessary to shoot the engineers and begin production."


pgpqqSfJUKDDn.pgp
Description: PGP signature


Re: Konqueror UNICODE fonts

2008-07-06 Thread Mitja
On Sunday 06 July 2008 17:02:07 Ghirai wrote:

> > I have to used DejaVu fonts and than changed to Liberation fonts and I
> > had and I have a problem as you had still.
> >
> > Thank you.
>
> The article itself has no squares.
>
> However, the "Languages" box on the right of the page shows squares for
> about 10 entries; seems to be something more exotic :P

The "more exotic" fonts the Firefox shows correct IMO.

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


Re: anyone been crazy enough to mirror wikipedia?

2008-07-06 Thread perryh
> In my house, we had an encyclopedia because I was in school ...

> it was useful for research papers.

I suspect the usefulness would depend on what one's teachers meant
by "research", which tends to change with grade level.

In elementary and middle school, certainly.  In high school, maybe.
In college, probably not.  Postgraduate, almost certainly not; at
that level one should be using primary sources (and likely know
enough to be writing articles *for* an encyclopedia :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Trouble with Intel WIFI ipw2200

2008-07-06 Thread Diego F. Arias R.
Hi:

i have installed freebsd on my laptop but i have a weird problem. I
can assosiate with my AP(AccessPoint) using my WEp key but dont works.
If i try to use DHCP or set a IP address dont works but if i put
tcpdump i can see a few packets. If i try with a keyless network it
works.


yatusabes# uname -a
FreeBSD yatusabes 7.0-RELEASE-p2 FreeBSD 7.0-RELEASE-p2 #0: Wed Jun 18
07:33:20 UTC 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386

yatusabes# ifconfig iwi0
iwi0: flags=8843 metric 0 mtu 1500
ether 00:13:ce:e8:e8:f4
inet 192.168.122.1 netmask 0xff00 broadcast 192.168.122.255
media: IEEE 802.11 Wireless Ethernet autoselect
status: associated
ssid "Dark Princess" channel 1 (2412 Mhz 11g) bssid 00:1b:11:9b:19:7c
authmode OPEN privacy ON deftxkey 1 wepkey 1:104-bit bmiss 10
scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi11g 7
roam:rate11g 5 protmode CTS


yatusabes# ifconfig iwi0 ssid "Dark Princess" wepkey thekey weptxkey 1 up



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


Re: Intel Pro/Wireless 2200 -- radio stubbornly remains down at Toshiba Satellite M30-951

2008-07-06 Thread David Gurvich
  Have you accepted the license agreement?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Why would it make such a difference to move mysqld to another machine?

2008-07-06 Thread Christopher Sean Hilton


On Jul 6, 2008, at 5:10 PM, John Almberg wrote:

Since MySQL is clearly the bottleneck of the sites, I'd investigate  
why in the

world apache2 needs >150M per process.


Now that was a darn good question.

I ran httpd -M and got a list of 60 loaded modules... duh.

I said before I'm just a beginner Admin. I'm learning a lot, but  
some of these basic things, I just haven't run into, yet. Obviously,  
Apache 2 gets loaded with a whole bunch of default modules? I didn't  
realize that, before.


Okay... I need to figure out which ones I really need. Thanks for  
push in the right direction...




My apologies on that one. You're right. I read 2150M as 2 Megabytes.  
It's obviously 2G which should be plenty of RAM for mysqld.


-- Chris

--
Chris Hilton   chris-at-vindaloo-dot-com

   "All I was doing was trying to get home from work!"
-- Rosa Parks

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


Re: Recovering root password from a drive by mounting the cdrom

2008-07-06 Thread Mukarram Syed
Thanks for this response and others.
However, my problem does not look to be so simple.

I boot off the install cd and get into the fixit prompt.

I dmesg | less and get the device name that I think is my hard drive /dev/ad0.
I fdisk /dev/ad0 and get information about 3 slices.  I am think /dev/ad0 slice 
3 is the root file system because slice 3 has a greatest amount of disk space 
and that looks like my root partition
Then I ls -l /dev |grep ad0 and it spits out a number for /dev/ad0 like ad0s0 
ad0s1 ad0s3 etc.
I am assuming /dev/ad0s3 is slice 3 which I believe it to be my root partition.
So I mount it:
mount /dev/ad0s3 /mnt
I do a df -k and find that /mnt has 0 bytes available.  To check I cd /mnt and 
ls and don't find any data in it.
I check/dev/ad0s2 /dev/ad0s1 in the same way.  None of it has any data.

I guess there is something else that I am missing at this point.

Can anyone advise.

Thanks

# mukarram


 Mukarram Syed
[EMAIL PROTECTED]



- Original Message 
From: Wojciech Puchar <[EMAIL PROTECTED]>
To: Mukarram Syed <[EMAIL PROTECTED]>
Cc: freebsd-questions@freebsd.org
Sent: Sunday, July 6, 2008 2:18:56 PM
Subject: Re: Recovering root password from a drive by mounting the cdrom

> I need your help!
> I have booted up from a freebsd install cd 1.  I have connected my freebsd 
> drive in the system.  Now I don't know how to mount the drive to edit the 
> /etc/shadow file.
> I am at the fixit prompt on the cd.

IMHO

mount  /mnt
mount  /mnt/usr

cd /mnt
chroot . usr/bin/passwd

and change the password
___
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: OT: anyone been crazy enough to mirror wikipedia?

2008-07-06 Thread DAve

Ted Mittelstaedt wrote:



-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] Behalf Of Chad Perrin

Sent: Monday, June 30, 2008 10:05 PM
To: FreeBSD Mailing List
Subject: Re: OT: anyone been crazy enough to mirror wikipedia?


On Mon, Jun 30, 2008 at 05:15:39PM -0400, DAve wrote:

Steve Franks wrote:

So call me a sociopath, but times are a bit scary.  I'd like to do the
2000's equivalent of the 1960's bomb shelter, and have my very own
snapshot in case of major local/regional internet disruption, etc.

What would be the best way to go about this.  I see with <1T words, it
appears doable on current technology.  Maybe they should offer a
snapshot on DVDs or disk as a fundraiser?  I'd drop $300 for some sort
of officially licenced copy, I suspect there are other freaks that
would too...
When the world gets that bad, Wikipedia is the least of my concerns, 
slightly ahead of who is winning American Idol. If it comes to 
the point 
the internet goes down for a long period of time, that $300 is better 
spent on a garden.


Just my thoughts.

Actually . . . if things get that bad, you're going to need some
firepower to protect your garden (and everything else you don't want
taken from you by force).  To properly protect a garden, you'd need to
make it a community farm, with community members who have and will use
firearms to protect it (and your Wikipedia mirror).

Of course, I greatly admire the impulse to protect the collected
knowledge of Wikipedia from disaster.  It's also practical -- because it
contains a lot of information that might be of use (including good
subsistence gardening information, for those of us who don't have
naturally green thumbs).



If the crash comes and you don't have 4 - 5 years of experience
running a garden on your land, plus your own well, your gonna starve.

Veggies are very particular as to the kind of soil they like, and the
light and water they get.  And it takes several years of trying different
ones to figure out the ones that do best in your soil.  And most modern
veggies are hybrids  and the seed is genetically engineered, and patented.
Many varieties are, in fact, sterile.  Many others require irrigation to
produce sizable yields.

To put in a "heritage" garden that will produce given the normally
occurring rainfall in your area takes someone with many years of
experience in your area growing gardens.  By the time you would
be able to get one going from info in wikipedia, you would have
died of starvation.

Ted


Some of us will have veggies/skills/water for trade. But what he says is 
true. It ain't as easy as read a page, plant a row. If I have a question 
on FreeBSD, Wikipedia is my last resort, after phone calls. While it is 
useful I suppose to some, I would never base a decision on anything I 
read there. It is useful for key words and topics to expand a search 
through better sources, but not much else. If Wikipedia is killing 
Encyclopedia sales, it is because people are willing to accept 
mediocrity over accuracy if accuracy comes at a price and mediocrity is 
free.


It has been my experience, maybe things have changed, that a hardbound 
reference book is the equivalent of asking Bunny Watson for an answer, 
and Wikipedia is like asking Cliffy on Cheers.


DAve


--
Don't tell me I'm driving the cart!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Intel Pro/Wireless 2200 -- radio stubbornly remains down at Toshiba Satellite M30-951

2008-07-06 Thread Ariel Burbaickij
Yes, of course, I have accepted license agreement. Never mind, though. Problem
is solved. I found tiny hardware switch that indeed switches radio
off/on on the laptop.
It was in off position. Now it is in on and everything is fine.


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