Re: My unqualified host name

2008-09-24 Thread Dánielisz László
I can't check it right now but I'll asap.



- Original Message 
From: Jonathan Chen [EMAIL PROTECTED]
To: Dánielisz László [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Tuesday, September 23, 2008 9:02:08 PM
Subject: Re: My unqualified host name

On Tue, Sep 23, 2008 at 10:13:52AM -0700, Dánielisz László wrote:
 Hello!
 
 I got the following error message on boot:
 
 nyana sm-mta[803]: My unqualified host name (nyana) unknown; sleeping for 
 retry
 
 Do you have any idea?

Is the name nyana the DNS or in /etc/hosts?
-- 
Jonathan Chen [EMAIL PROTECTED]
--
  Opportunities are seldom labeled
___
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: My unqualified host name

2008-09-24 Thread Dánielisz László
This one is set in rc.conf but I'll check once again when I arrive home.



- Original Message 
From: Chuck Swiger [EMAIL PROTECTED]
To: Dánielisz László [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Tuesday, September 23, 2008 9:02:43 PM
Subject: Re: My unqualified host name

On Sep 23, 2008, at 10:13 AM, Dánielisz László wrote:
 I got the following error message on boot:

 nyana sm-mta[803]: My unqualified host name (nyana) unknown;  
 sleeping for retry

 Do you have any idea?

Yes, sendmail expects your machine to have working DNS and for the  
machine to have a valid FQDN.  Either set that up, or add  
sendmail_enable=NONE to /etc/rc.conf to disable sendmail if you  
won't be using it...

Regards,
-- 
-Chuck



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


Re: My unqualified host name

2008-09-24 Thread Dánielisz László
True, the system boots without any problem but its annoying to wait for that 
failure. 



- Original Message 
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Wednesday, September 24, 2008 7:05:16 AM
Subject: Re: My unqualified host name

  nyana sm-mta[803]: My unqualified host name (nyana) unknown;  
  sleeping for retry

 ... sendmail expects your machine to have working DNS and for
 the machine to have a valid FQDN.  Either set that up, or add  
 sendmail_enable=NONE to /etc/rc.conf to disable sendmail ...

There is another approach, which is to ignore the message.  After
something like 3 repetitions, at something like a minute apart,
it will give up on qualifying its name.  Everything seems to work
just fine thereafter until the next boot, when the entire sequence
repeats.

This leads to the question of how to get sendmail -- or whatever
-- into the state where it will eventually land after the 3-miunte
delay, without the delay and the messages.  It seems as if this
ought not be all that difficult.
___
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: My unqualified host name

2008-09-24 Thread FBSD1
Simple solution is to add
hostname=nyana.com
to rc.conf  then everything is happy

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Dánielisz László
Sent: Wednesday, September 24, 2008 2:40 PM
To: freebsd-questions@freebsd.org
Subject: Re: My unqualified host name

True, the system boots without any problem but its annoying to wait for that
failure.



- Original Message 
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Wednesday, September 24, 2008 7:05:16 AM
Subject: Re: My unqualified host name

  nyana sm-mta[803]: My unqualified host name (nyana) unknown;
  sleeping for retry

 ... sendmail expects your machine to have working DNS and for
 the machine to have a valid FQDN.  Either set that up, or add
 sendmail_enable=NONE to /etc/rc.conf to disable sendmail ...

There is another approach, which is to ignore the message.  After
something like 3 repetitions, at something like a minute apart,
it will give up on qualifying its name.  Everything seems to work
just fine thereafter until the next boot, when the entire sequence
repeats.

This leads to the question of how to get sendmail -- or whatever
-- into the state where it will eventually land after the 3-miunte
delay, without the delay and the messages.  It seems as if this
ought not be all that difficult.
___
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]

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


Re: dovecot, maildir, UFS 2 performance

2008-09-24 Thread Laszlo Nagy




#1 maildir stores each message in a separate file. I think I need to 
dedicate a separate disk slice for maildirs and decrease block size 
on it. How big should the blocksize be?


i have everything (/) on single partition on most of my servers, 
including those having lots of mail.
I don't think that is clever. sysinstall creates different partitions 
for / /usr /var and /tmp by default. There must be good reasons for this.
#2 searching in messages is a common operation. Possibly read speed 
is very most important. But since there will be thousands of files to 
open, seek operation is also important. On which RAID array should I 
put mail dirs?


dovecot do make indexes and scans all files only when rebuilding them.
Except when my users search for a text in the message body. 
Unfortunately, they often do this. :-(
assuming you configured your RAID1+0 properly it will give you MUCH 
more performance from 10 disks, than RAID1 on 2 - a bit faster - drives.


IMHO you wasted money for SAS drives, simply having SATA only system 
could be enough.
This is true for raw read/write speed. But some I/O operations are seek 
intensive. Seek time for a 15 000 rpm SAS disk is lower than it is for a 
10 disk SATA2 RAID. Seek intensive operations should go to SAS. But I'm 
not sure what they are. If you say that dovecot is not seek intensive 
then you answered my question. :-)


just keep your SAS drives for OS, ports, sources, logs, whatever, 
while /home on your big RAID1+0 volume.


Thank you

Laszlo

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


Re: Fix corrupted terminal output

2008-09-24 Thread Chris St Denis

Andreas Davour wrote:

On Tue, 23 Sep 2008, Chris St Denis wrote:

Occasionally, I accidentially cat a binary file or a directory casing 
the terminal output to be corrupted with text looking like (don't 
know if this will make it through the mail cleanly)


  E ??? ?? ?.
  2#


To fix this normally I just close the window and open a new ssh 
connection, but I am wondering if there is a more clean way to do 
this. I've tried reset(1), but it doesn't seem to help any.


What termnial emulator are you using? KDE Konsole have an Edit-Reset 
 Clear Terminal menu alternative that usually manages to clear such 
problems up for me.


/Andreas



I use putty ssh client (on windows). I had thought it was a console 
change rather than terminal editor specific.


I'll try the things people have suggested here next time it happens.


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


Re: semget: no space left on freebsd 6.2

2008-09-24 Thread Jordi Moles Blanco

hi,

that solved the problem. Thanks again.

En/na Artis Caune ha escrit:

On Tue, Sep 23, 2008 at 10:26 AM, Jordi Moles Blanco [EMAIL PROTECTED] wrote:
  

Also try adding this options on FreeBSD kernel config:
options SEMMNI=20
options SEMMNS=120

And set the kern.maxfiles sysctl option higher than 1000.

*

it didn't work either.



Hi,

you don't have to recompile the kernel to change those, just add them
in /boot/loader.conf:
kern.ipc.semmni=256
kern.ipc.semmns=512
kern.ipc.semmnu=256

You should also add these lines to /etc/sysctl.conf:
kern.ipc.shmmax=536870912
and/or also:
kern.ipc.semmap=256
kern.ipc.shm_use_phys=1
kern.ipc.shmall=131072
depending on how much memory you have and how mush shared memory modules need.





  


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


RE: nat and firewall

2008-09-24 Thread FBSD1


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of fire jotawski
Sent: Wednesday, September 24, 2008 12:13 PM
To: freebsd-questions@freebsd.org
Subject: nat and firewall

hi sirs,

i am confused now that what is the difference between nat and firewall_nat
in /etc/rc file

natd_enable=YES
firewall_nat_enable=YES

just one question per asking.  there will be another more questions about
this but for this moment only this one first.

thanks in advance for any helps and hints

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


natd_enable=YES  This statement in rc.conf enables ipfw nated function.
firewall_nat_enable=YES  This is an invalid statement. No such thing as
you have here.
FreeBSD has 3 different built in firewall for you to chose from. IPFW,
Ipfilter, and PF
Review /etc/defaults/rc.conf for their statements.
It would do you good to read the firewall section of the FreeBSD Handbook
for a complete explanation of the 3 firewalls and the differences between
them.
In my option the PF firewall has the easiest to use rule set and built in
table functions for automated black listing attacking IP address. Its major
weakness is it has very poorly designed logging function that results in
very cumbersome usage.
IPFilter comes next. It has easy logging and rules usage. It lacks the auto
black listing table building of PF. These two firewalls were ported to
FreeBSD from other Unix flavored operating systems. Both have teams
supporting and maintaining them.
The final firewall is IPFW that is the first firewall included in FreeBSD
many years ago and was developed by the FreeBSD team. IPFW also lacks the
auto black listing table building of PF, and its nated rules are much harder
to get working using all stateful rules. IPFW had a major coding overhaul a
few years back but the inhered design flaw of how nated rules are handled
was not touched. Grape vine says IPFW nated code is a messed up can of worms
and no one wants to touch it.
I have used all 3 firewalls at one time or another to learn about them. I
found IPFilter to be the easiest to use and get logging out put in standard
format like all the other FreeBSD logs are.  But you should ready the
handbook and decide for your self what best satisfies your firewall needs.



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


Re: dovecot, maildir, UFS 2 performance

2008-09-24 Thread Wojciech Puchar
i have everything (/) on single partition on most of my servers, including 
those having lots of mail.

I don't think that is clever. sysinstall creates different partitions for /


but i do. sysinstall and most people and manuals just copy traditions.
it's nonsense.

Except when my users search for a text in the message body. Unfortunately, 
they often do this. :-(


ok right :)

assuming you configured your RAID1+0 properly it will give you MUCH more 
performance from 10 disks, than RAID1 on 2 - a bit faster - drives.


IMHO you wasted money for SAS drives, simply having SATA only system could 
be enough.
This is true for raw read/write speed. But some I/O operations are seek 
intensive. Seek time for a 15 000 rpm SAS disk is lower than it is for a 10 
disk SATA2 RAID. Seek intensive operations should go to SAS. But I'm not sure 
what they are. If you say that dovecot is not seek intensive then you 
answered my question. :-)


with 5000 mails in one folder it will be seek intensive ;)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Machine locking up

2008-09-24 Thread Tuc at T-B-O-H.NET
Hi,

We had a power failure at the datacenter we colocate at, and all our
servers went down. 

One is acting up ever since. It rebooted but wasn't accessible. I
tried to log in via our KVM and got the login/pass, but when it did the
/etc/motd and rest it locked up. CTRL-C and CTRL-\ didn't do anything. 
The remote KVM could C-A-D and the machine rebooted.

Once it rebooted it seemed ok, but then locked up again while in use.
The odd thing was I remembered to try CTRL-T, and got :

load: 0.00 cmd: login 1188 [sysctl lock] 0.00u 0.00s 0% 176k

on the session I was trying to log in on, and on the session I was
doing a tail, I saw :

load: 0.00  cmd: tail 2013 [proctree] 0.00u 0.00s 0% 0k

I could tab between VTYs, but logins wouldn't accept input, and
I couldn't C-A-D this time around. I could telnet to a special port on it
for monitoring and get a reply, but SSH/sendmail didn't reply.

Its a FreeBSD 5.5 (I can't upgrade it, sorry)

Any clues what to look for?

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


Re: Any way to play www.last.fm on FreeBSD?

2008-09-24 Thread Pieter de Goeje
On Tuesday 23 September 2008, Gary Kline wrote:
  Amarok has built-in support for Last.fm.

   Hm. I can't seem to get it to work.  At least if I click on the
   last.fm drop-down menu,  ...Zip.

   I built last.fm; it lives in /usr/local/bin.  Now, in Konqueror,
   do I add this whole path to the Plug In section?  I didn't
   excpect the last.fm binary to be a stand-alone, and I'm not sure
   it is because sometimes in calls Konq.  Then things hang.

   Clues much appreciated!

Go to Settings - last.fm. Enter your login and check any boxes of your 
choice :-). You can then listen to last.fm radio using Playlist - Add 
last.fm stream.

Good luck!

-- 
Pieter de Goeje

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


Re: Machine locking up

2008-09-24 Thread Ivailo Tanusheff
I suggest you reboot in single user mode and fsck -fy the mount points you 
use.
If the problem persists - you might recompile the kernel and world.

Regards,
Ivailo Tanusheff





Tuc at T-B-O-H.NET [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED]
24.09.2008 10:56

To
freebsd-questions@freebsd.org
cc

Subject
Machine locking up






Hi,

 We had a power failure at the datacenter we colocate at, 
and all our
servers went down. 

 One is acting up ever since. It rebooted but wasn't 
accessible. I
tried to log in via our KVM and got the login/pass, but when it did the
/etc/motd and rest it locked up. CTRL-C and CTRL-\ didn't do anything. 
The remote KVM could C-A-D and the machine rebooted.

 Once it rebooted it seemed ok, but then locked up again 
while in use.
The odd thing was I remembered to try CTRL-T, and got :

load: 0.00 cmd: login 1188 [sysctl lock] 0.00u 0.00s 0% 176k

 on the session I was trying to log in on, and on the 
session I was
doing a tail, I saw :

load: 0.00  cmd: tail 2013 [proctree] 0.00u 0.00s 0% 0k

 I could tab between VTYs, but logins wouldn't accept 
input, and
I couldn't C-A-D this time around. I could telnet to a special port on it
for monitoring and get a reply, but SSH/sendmail didn't reply.

 Its a FreeBSD 5.5 (I can't upgrade it, sorry)

 Any clues what to look for?

 Thanks, Tuc
___
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: dovecot, maildir, UFS 2 performance

2008-09-24 Thread Ivan Voras

Laszlo Nagy wrote:

The secondary task for this server is to be an IMAP and mail server. We 
will be using dovecot, and shared maildir folders with ten thousands of 
messages. I'm not sure where to put the maildir folders, and what 
options to use for the filesystem. Dovecot wiki is not talking about 
UFS, only ext3, reiserfs and xfs:


http://wiki.dovecot.org/MailboxFormat/Maildir


You can treat UFS as ext2/3 with dir_index enabled by default (not
exactly but that's what dirhash translates to in practice). You will
probably want to increase vfs.ufs.dirhash_maxmem sysctl to several
megabytes if you have large directories.

Can you tell me some basic idea about how to configure this? I have some 
ideas but they may be competely wrong:


#1 maildir stores each message in a separate file. I think I need to 
dedicate a separate disk slice for maildirs and decrease block size on 
it. How big should the blocksize be?


UFS by default creates 2k fragments (sub-blocks), so in practice any
tuning in this direction won't do much.

#2 searching in messages is a common operation. Possibly read speed is 
very most important. But since there will be thousands of files to open, 
seek operation is also important. On which RAID array should I put mail 
dirs? Small SAS or bigger SATA array?


More drives=better in this case. Don't forget to tune dirhash_maxmem.

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


ScreenCapturing tool for FreeBSD-7.0 Release

2008-09-24 Thread dhaneshk k


HI all ;

Can anyone recommend a working screencapturing tool such as XvidCap  for 
FreeBSD-7.0 , 

I installed XvidCap but its not working any other tools OR  Solutions for doing 
screen Capturing ..

It will be useful for  demo presentations  alot..

Thanks in advance 
Dhanesh

_
Search for videos of Bollywood, Hollywood, Mollywood and every other wood, only 
on Live.com 
http://www.live.com/?scope=videoform=MICOAL___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ScreenCapturing tool for FreeBSD-7.0 Release

2008-09-24 Thread Matthias Apitz
El día Wednesday, September 24, 2008 a las 09:09:23AM +, dhaneshk k 
escribió:

 
 
 HI all ;
 
 Can anyone recommend a working screencapturing tool such as XvidCap  for 
 FreeBSD-7.0 , 
 
 I installed XvidCap but its not working any other tools OR  Solutions for 
 doing screen Capturing ..
 
 It will be useful for  demo presentations  alot..
 
 Thanks in advance 
 Dhanesh

check this:

http://groups.google.com/group/lucky.freebsd.questions/msg/51c4bec19542621f?dmode=source

hih

matthias

-- 
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e [EMAIL PROTECTED] - w http://www.oclc.org/ http://www.UnixArea.de/
b http://gurucubano.blogspot.com/
A computer is like an air conditioner, it stops working when you open Windows
Una computadora es como aire acondicionado, deja de funcionar si abres Windows
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: nat and firewall

2008-09-24 Thread fire jotawski
On Wed, Sep 24, 2008 at 2:52 PM, FBSD1 [EMAIL PROTECTED] wrote:



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of fire jotawski
 Sent: Wednesday, September 24, 2008 12:13 PM
 To: freebsd-questions@freebsd.org
 Subject: nat and firewall

 hi sirs,

 i am confused now that what is the difference between nat and firewall_nat
 in /etc/rc file

 natd_enable=YES
 firewall_nat_enable=YES

 just one question per asking.  there will be another more questions about
 this but for this moment only this one first.

 thanks in advance for any helps and hints

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


sorry for top posting
first of all thanks indeed for your answers



 natd_enable=YES  This statement in rc.conf enables ipfw nated function.
 firewall_nat_enable=YES  This is an invalid statement. No such thing as
 you have here.



i found firewall_nat_enable in /etc/rc.firewall
my machine is
%uname -a
FreeBSD makham.serveblog.net 7.0-RELEASE FreeBSD 7.0-RELEASE #5: Thu Sep  4
09:48:32 ICT 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SITING
i386
%



 FreeBSD has 3 different built in firewall for you to chose from. IPFW,
 Ipfilter, and PF
 Review /etc/defaults/rc.conf for their statements.
 It would do you good to read the firewall section of the FreeBSD Handbook
 for a complete explanation of the 3 firewalls and the differences between
 them.
 In my option the PF firewall has the easiest to use rule set and built in
 table functions for automated black listing attacking IP address. Its major
 weakness is it has very poorly designed logging function that results in
 very cumbersome usage.
 IPFilter comes next. It has easy logging and rules usage. It lacks the auto
 black listing table building of PF. These two firewalls were ported to
 FreeBSD from other Unix flavored operating systems. Both have teams
 supporting and maintaining them.
 The final firewall is IPFW that is the first firewall included in FreeBSD
 many years ago and was developed by the FreeBSD team. IPFW also lacks the
 auto black listing table building of PF, and its nated rules are much
 harder
 to get working using all stateful rules. IPFW had a major coding overhaul a
 few years back but the inhered design flaw of how nated rules are handled
 was not touched. Grape vine says IPFW nated code is a messed up can of
 worms
 and no one wants to touch it.
 I have used all 3 firewalls at one time or another to learn about them. I
 found IPFilter to be the easiest to use and get logging out put in standard
 format like all the other FreeBSD logs are.  But you should ready the
 handbook and decide for your self what best satisfies your firewall needs.


thanks indeed for your answers. i will ask more questions regarding to natd
and firewall again after reading handbook.

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


Re: Upgrade to rel 7.0 broke SSH

2008-09-24 Thread Ivan Voras
Olaf Courtney wrote:
 Hello and greetings from Newbyville,
 
 I recently upgraded from FreeBSD 6.3-RELEASE to 7.0-RELEASE-p4, and now SSH 
 is broken.  Other important services (chiefly SAMBA) are working properly.  
 From the FreeBSD server I can successfull SSH and SFTP to the localhost 
 (127.0.0.1).  I can also SSH and SFTP to other locations on the network.  
 However, I cannot SSH and SFTP into the FreeBSD server from the remote 
 locations.
 
 Attempting to connect from a remote host returns Connection closed by ip 
 address of server.  The bottom portion of the debug output is shown below.
 
 SSH_CONFIG and SSHD_CONFIG files show that everything is set to defaults. 
 Also, there is nothing that pertains to OPENSSH in /etc/src.conf and 
 /etc/make.conf.  I saw one post that recommended going into the Kernel 
 options.  On this system, there are no options in /boot/loader.conf and 
 /etc/sysctl.conf.  I wouldn't know what to do with them anyways.
 
 The misc/compat6x libraries are installed as a bandaid.
 
 Here is the tail end of the output from ssh -vvv server:


 Connection closed by 172.27.124.217
 
 Any ideas?

Abrupt connection closing might be a symptom of the server process
crashing. Is tehre anything in /var/log/messages on the server at the
time this happens?

(for what it's worth, I've successfully upgraded from 6.3-R to 7-STABLE
before).



signature.asc
Description: OpenPGP digital signature


Re: ScreenCapturing tool for FreeBSD-7.0 Release

2008-09-24 Thread Roland Smith
On Wed, Sep 24, 2008 at 09:09:23AM +, dhaneshk k wrote:
 
 
 HI all ;
 
 Can anyone recommend a working screencapturing tool such as XvidCap
 for FreeBSD-7.0 ,
 
 I installed XvidCap but its not working any other tools OR Solutions
 for doing screen Capturing ..
 
 It will be useful for  demo presentations  alot..

If you are using X11, try xwd(1) that comes with it. You'll need a tool
like netpbm or ImageMagick to convert dump files to other formats.

Or you can use the gimp to capture and process window images under X11.

I'm not aware of any screen dump apps on the console. You can of course
run console apps in an X terminal and capture that.

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)


pgp7vyUhfM7Zj.pgp
Description: PGP signature


Re: ccache on amd64

2008-09-24 Thread Mel
On Wednesday 24 September 2008 05:34:22 Brian wrote:

 /usr/local/libexec/ccache/world-cc -m32 -march=athlon64 -mfancy-math-387
 -DCOMPAT_32BIT -iprefix /usr/obj/usr/src/lib32/usr/
 -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/lib32
 -fpic -DPIC -O2 -fno-strict-aliasing -pipe -DTERMIOS -DANSI_SOURCE
 -I/usr/src/secure/lib/libcrypto/../../../crypto/openssl
 -I/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto
 -I/usr/obj/lib32/usr/src/secure/lib/libcrypto -DOPENSSL_THREADS
 -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_IDEA -DL_ENDIAN -DNO_IDEA
 -std=gnu89  -c
 /usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/x509v3/v3err.c
 -o v3err.So
 building shared library libcrypto.so.4
 Segmentation fault (core dumped)
 *** Error code 139

And this all just works if you set NOCCACHE? Or does the problem persist then?

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


Netprint perl script from Handbook doesn't work

2008-09-24 Thread Andy Kosela
The netprint perl script provided in the Handbook (9.4.3.2) is not
working.. or am I missing something:

plotinus:~ cat new.txt | lp.sh
Can't contact 10.10.21.12: Address family not supported by protocol
family at /usr/local/libexec/netprint line 21.

plotinus: cat /usr/local/libexec/netprint
#!/usr/bin/perl
#
#  netprint - Text filter for printer attached to network
#  Installed in /usr/local/libexec/netprint
#
$#ARGV eq 1 || die Usage: $0 printer-hostname port-number;

$printer_host = $ARGV[0];
$printer_port = $ARGV[1];

require 'sys/socket.ph';

($ignore, $ignore, $protocol) = getprotobyname('tcp');
($ignore, $ignore, $ignore, $ignore, $address)
   = gethostbyname($printer_host);

$sockaddr = pack('S n a4 x8', AF_INET, $printer_port, $address);

socket(PRINTER, PF_INET, SOCK_STREAM, $protocol)
   || die Can't create TCP/IP stream socket: $!;
connect(PRINTER, $sockaddr) || die Can't contact $printer_host: $!;
while (STDIN) { print PRINTER; }
exit 0;

System is 7.0-RELEASE, I got to say it was working on 6.2-RELEASE

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


Re: dovecot, maildir, UFS 2 performance

2008-09-24 Thread Daniel Gerzo

Dear Wojciech,

On Wed, 24 Sep 2008 09:53:26 +0200 (CEST), Wojciech Puchar
[EMAIL PROTECTED] wrote:
 i have everything (/) on single partition on most of my servers,
 including 
 those having lots of mail.
 I don't think that is clever. sysinstall creates different partitions
 for /
 
 but i do. sysinstall and most people and manuals just copy traditions.
 it's nonsense.
 

Don't forget that if you create your large / in sysinstall, it will not
enable softupdates by default, as far as I remember.

-- 
Best regards
  Daniel Geržo

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


Syslogd - Different Files

2008-09-24 Thread Laurence Mayer


Hi,

Over the last couple of days I have been trying to get syslogd to log 
messages received from remote hosts to different files.


I have read the man pages:

http://www.freebsd.org/cgi/man.cgi?query=syslog.confsektion=5manpath=FreeBSD+7.0-RELEASE

However it is very confusing what exactly to add to the syslog.conf 
file. I have tried numerous variations but still no success.


Could someone please tell me or
send an example of their syslog.conf file showing how this is done.


Thanks in advance

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


how to get linux debugging compatibility on freebsd 7.0-release

2008-09-24 Thread David Polak
FreeBSD xxx..com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24
10:35:36 UTC 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  amd64

I am a little bit (ok, way) over my head here,  but I have a 32bit linux
binary that crashes on my amd64 system. If that isn't convoluted enough, it
is also running in a jail. Specifically, if anyone cares, it seems to be the
source metamod 3rd party add-on to valve software's source dedicated server.
I have provided the developer(s) of the mod a jailed test environment to
debug in with linux_base-fc4, but they are asking how to enable linux
debugging compatibility, but I have no idea how to do so, and my googling
attempts have only turned up old references to /usr/ports/devel/linux_devel
which doesn't seem to exist any more.

Here is exactly what he asked me:

I haven't used FreeBSD since 4.4 or so.  I've installed gdb66 and
i386-rtems-gdb
(whatever that is) in vain attempts to get Linux debugging compatibility
but to
no avail.

Do you know how to get that working or should I start going googling? :)

If you really want, you can view all the gory details here:
https://bugs.alliedmods.net/show_bug.cgi?id=3264

but my basic question is, what is the answer to his question of how to get
linux debugging compatibility?


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


port math/libgmp4 depends on itself after ports tree upgrade

2008-09-24 Thread Anton Shterenlikht
Perhaps this is portmaster issue, but it seems libgmp4
depends on itself:

#portmaster -Btd libgmp

[skip]

=== Recursive 'make config' check complete for math/libgmp4

=== Starting build for math/libgmp4 ===

=== Starting check for all dependencies
=== Gathering dependency list for math/libgmp4 from ports
=== Starting dependency check
=== Launching child to update libgmp-4.2.3 to libgmp-4.2.4
libgmp-4.2.3  libgmp-4.2.3

=== Port directory: /usr/ports/math/libgmp4
=== Starting check for all dependencies
=== Gathering dependency list for math/libgmp4 from ports
=== Starting dependency check
=== Launching child to update libgmp-4.2.3 to libgmp-4.2.4
libgmp-4.2.3  libgmp-4.2.3  libgmp-4.2.3

=== Port directory: /usr/ports/math/libgmp4
=== Starting check for all dependencies
=== Gathering dependency list for math/libgmp4 from ports
^C
=== Build/Install for math/libgmp4 exiting due to signal

=== Build/Install for math/libgmp4 exiting due to signal

=== Build/Install for math/libgmp4 exiting due to signal
# 

If I don't abort upgrade the check for dependencies goes
in circles, each time increasing the number of self dependencies
by one.

Anybody else seeing this?

-- 
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

- End forwarded message -

-- 
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: Syslogd - Different Files

2008-09-24 Thread Steve Bertrand
Laurence Mayer wrote:
 
 Hi,
 
 Over the last couple of days I have been trying to get syslogd to log
 messages received from remote hosts to different files.
 
 I have read the man pages:
 
 http://www.freebsd.org/cgi/man.cgi?query=syslog.confsektion=5manpath=FreeBSD+7.0-RELEASE
 
 
 However it is very confusing what exactly to add to the syslog.conf
 file. I have tried numerous variations but still no success.
 
 Could someone please tell me or
 send an example of their syslog.conf file showing how this is done.

Granted that there is likely more than one way to do it, heres how I do
it (in the servers syslogd.conf):

local6.*/var/log/lanx.log
local7.*/var/log/fortigate.log
mail.debug  /var/log/barracuda.log

...each log file represents a different remote host delivering the log
data. So, on lanx.domain.com, I point the syslog service to the IP of
the server, and tell it to use local6 as the facility.

I then start syslogd on the server as such:

/usr/sbin/syslogd -a 208.70.104.202/32:514 -a 208.70.104.205/32:514 \
-a 208.70.104.1/32:514 -f /etc/syslogd.conf

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


Re: Syslogd - Different Files

2008-09-24 Thread Laurence Mayer

Ok so you dont use `+host' etc as per the man pages.

Can you please send the relevant parts of syslog.conf on a remote server
on lanx.domain.com. Do you mean remote server syslog.config:
local6.*@208.70.104.202


Steve Bertrand wrote:

Laurence Mayer wrote:

Hi,

Over the last couple of days I have been trying to get syslogd to log
messages received from remote hosts to different files.

I have read the man pages:

http://www.freebsd.org/cgi/man.cgi?query=syslog.confsektion=5manpath=FreeBSD+7.0-RELEASE


However it is very confusing what exactly to add to the syslog.conf
file. I have tried numerous variations but still no success.

Could someone please tell me or
send an example of their syslog.conf file showing how this is done.


Granted that there is likely more than one way to do it, heres how I do
it (in the servers syslogd.conf):

local6.*/var/log/lanx.log
local7.*/var/log/fortigate.log
mail.debug  /var/log/barracuda.log

...each log file represents a different remote host delivering the log
data. So, on lanx.domain.com, I point the syslog service to the IP of
the server, and tell it to use local6 as the facility.

I then start syslogd on the server as such:

/usr/sbin/syslogd -a 208.70.104.202/32:514 -a 208.70.104.205/32:514 \
-a 208.70.104.1/32:514 -f /etc/syslogd.conf

Steve

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


HSBC Internet Banking Security Upgrade Notification

2008-09-24 Thread HSBC Bank Plc

   * * * * *
   HSBC logo The world's local bank
   * *  * *   * *
   * United Kingdom * [1]Home *
   * * *
   *

   Dear HSBC Customer:

   As a bank we are used to thinking about security. At HSBC, we use
   industry standard security technology and practices, focusing on three
   key areas ? privacy, technology and identification to safeguard your
   account from any unauthorised access.
   Our Technical services Department are carrying out a planned software
   upgrade for the maximum convenience of the users of online-services of
   the HSBC Bank.Please click on LOG ONTO INTERNET BANKING below to
   restore your account access as soon as possible.

   [2]LOG ON TO INTERNET BANKING 

   Thank You,
   Customer Advisory
   HSBC Bank Plc
 _

   Legal information | Accessibility | About HSBC | Site map | Issued for
   UK use only | (c) HSBC Bank plc 2002 - 2008.

References

   1. http://www.bestsupreme.com/products/degreasers/ebank.php
   2. http://naturalcancertreatments.us/portal/logon/index.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Syslogd - Different Files

2008-09-24 Thread Steve Bertrand
Laurence Mayer wrote:
 Ok so you dont use `+host' etc as per the man pages.
 
 Can you please send the relevant parts of syslog.conf on a remote server
 on lanx.domain.com. Do you mean remote server syslog.config:
 local6.* @208.70.104.202

Looking further into this, I only send one facility to the remote server
from the clients. I can't configure it to send multiple facilities from
a client to server in a single file.

A quick Google apparently tells me that you need syslog-ng in order to
do more fancy trickwork like you want to do.

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


Re: A strange compiling issue [SOLVED]

2008-09-24 Thread Unga
--- On Wed, 9/24/08, Mel [EMAIL PROTECTED] wrote:

 From: Mel [EMAIL PROTECTED]
 Subject: Re: A strange compiling issue
 To: freebsd-questions@freebsd.org, [EMAIL PROTECTED]
 Date: Wednesday, September 24, 2008, 1:57 AM
 On Tuesday 23 September 2008 11:45:40 Unga wrote:
  Hi
 
  I'm trying to compile Perl on FreeBSD. It get
 cleanly compiled on FreeBSD
  7.0.
 
  But on another test system running RELENG_7 where I do
 weired things, it
  develops errors. There must be something wrong with my
 test system, I would
  like to understand what cause this error.
 
  cc -c -DPERL_CORE -DHAS_FPSETMASK
 -DHAS_FLOATINGPOINT_H
  -fno-strict-aliasing -pipe  -std=c89 -O -Wall -ansi  
 -W -Wextra
  -Wdeclaration-after-statement -Wendif-labels
 -Wc++-compat toke.c
 
  toke.c: In function 'Perl_yylex':
  toke.c:6633: error: lvalue required as unary
 '' operand
  toke.c:6633: error: lvalue required as unary
 '' operand
 
  Line 6633:
  if (memchr(tmpbuf, ':',
 len))
  sv_setpvn(PL_subname, tmpbuf,
 len);
  else {
 
 sv_setsv(PL_subname,PL_curstname);
 
 sv_catpvs(PL_subname,::);
 
 sv_catpvn(PL_subname,tmpbuf,len);
 
 These line numbers are off. There's no ''
 anywhere here. Any chance this file 
 wasn't passed through yacc/lex? Does an ''
 show up in raw cpp output (maybe 
 memchr was defined as some macro)? Try:
 cpp -DPERL_CORE -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H
 -fno-strict-aliasing -pipe  \
   -std=c89 -O -Wall -ansi   -W -Wextra
 -Wdeclaration-after-statement \
   -Wendif-labels -Wc++-compat -o toke.out
 
 Then inspect toke.out.


Mel, thanks for the help. Inspection of toke.out finally lead to the point. The 
GNU grep was missing in my test system :)

The Perl Configure shouldn't have proceeded without grep.

Best Regards
Unga



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


Why not GNU cmp?

2008-09-24 Thread Unga
Hi all

I have noted FreeBSD uses GNU diff, GNU diff3 and GNU sdiff. Why FreeBSD uses 
its own version of cmp? why not use GNU cmp? Is the GNU cmp not compatible with 
FreeBSD?

Kind regards
Unga



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


Re: ccache on amd64

2008-09-24 Thread Brian

Mel wrote:

On Wednesday 24 September 2008 05:34:22 Brian wrote:

  

/usr/local/libexec/ccache/world-cc -m32 -march=athlon64 -mfancy-math-387
-DCOMPAT_32BIT -iprefix /usr/obj/usr/src/lib32/usr/
-L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/lib32
-fpic -DPIC -O2 -fno-strict-aliasing -pipe -DTERMIOS -DANSI_SOURCE
-I/usr/src/secure/lib/libcrypto/../../../crypto/openssl
-I/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto
-I/usr/obj/lib32/usr/src/secure/lib/libcrypto -DOPENSSL_THREADS
-DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_IDEA -DL_ENDIAN -DNO_IDEA
-std=gnu89  -c
/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/x509v3/v3err.c
-o v3err.So
building shared library libcrypto.so.4
Segmentation fault (core dumped)
*** Error code 139



And this all just works if you set NOCCACHE? Or does the problem persist then?

  
I havebt specifically done the NOCCACHE, but commenting out all the 
ccache stuff out of make.conf and /etc/profile, doing a straight compile 
works.

Setting cputype=k8 fails as well.

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


Re: Why not GNU cmp?

2008-09-24 Thread Bill Moran
Unga [EMAIL PROTECTED] wrote:

 Hi all
 
 I have noted FreeBSD uses GNU diff, GNU diff3 and GNU sdiff. Why FreeBSD uses 
 its own version of cmp? why not use GNU cmp? Is the GNU cmp not compatible 
 with FreeBSD?

The GNU version of cmp is not licensed under the BSD license.

Given enough time/manpower, all the GNU tools in FreeBSD will eventually
be replaced with BSD-licensed versions.

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


Re: quick slice question..

2008-09-24 Thread B. Cook


On Sep 23, 2008, at 3:33 PM, B. Cook wrote:

I have slices a, d, e, f, g, and h.. I wouldn't be able to get one  
more would I?


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



So after reading many messages regarding sysinstall and gmirror not  
liking to work with each other..


what fdisk, dd, disklabel commands am I looking for to create a second  
slice in my gmirror raid?


fdisk
*** Working on device /dev/mirror/gm0 ***
parameters extracted from in-core disklabel are:
cylinders=30394 heads=255 sectors/track=63 (16065 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=30394 heads=255 sectors/track=63 (16065 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
   start 63, size 488279547 (238417 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
UNUSED
The data for partition 3 is:
UNUSED
The data for partition 4 is:
UNUSED


fdisk -p
# /dev/mirror/gm0
g c30394 h255 s63
p 1 0xa5 63 488279547
a 1

at the moment I have a /dev/mirror/gm0s1d that is /usr/local/www I  
need to make that into a slice so that I can mount /usr/local/www and / 
usr/local/dev.


So my current fstab looks like this for this entry:
/dev/mirror/gm0s1d  /usr/local/www  ufs rw  2   
2


what I think I am looking to end up with is this:
/dev/mirror/gm0s2a  /usr/local/www  ufs rw  2   
2
/dev/mirror/gm0s2b  /usr/local/dev  ufs rw  2   
2

Would it be easier to break the raid, add the slice then recreate the  
raid again?


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


Re: My unqualified host name

2008-09-24 Thread Robert Huff

[EMAIL PROTECTED] writes:

nyana sm-mta[803]: My unqualified host name (nyana) unknown;  
sleeping for retry
  
   ... sendmail expects your machine to have working DNS and for
   the machine to have a valid FQDN.  Either set that up, or add  
   sendmail_enable=NONE to /etc/rc.conf to disable sendmail ...
  
  There is another approach, which is to ignore the message.  After
  something like 3 repetitions, at something like a minute apart,
  it will give up on qualifying its name.  Everything seems to work
  just fine thereafter until the next boot, when the entire
  sequence repeats.

Respectfully, my gut reaction is this is, if not /bad/ practice,
at least not /good/ practice.  The requirements for geting sendmail
to behave (at least in this regard) are not particularly onerous;
why not just diagnose and fix the root problem?


Robert Huff


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


Re: ScreenCapturing tool for FreeBSD-7.0 Release

2008-09-24 Thread Vinny

dhaneshk k wrote:


HI all ;

Can anyone recommend a working screencapturing tool such as XvidCap  for FreeBSD-7.0 , 


I installed XvidCap but its not working any other tools OR  Solutions for doing 
screen Capturing ..

It will be useful for  demo presentations  alot..

Thanks in advance 


I've used Ksnapshot (part of KDE) very successfully in X.
On the console, vidcontrol is an option along with the
various scr2txt, scr2png utilities.

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


Re: Why not GNU cmp?

2008-09-24 Thread matt donovan
On Wed, Sep 24, 2008 at 10:31 AM, Bill Moran [EMAIL PROTECTED]wrote:

 Unga [EMAIL PROTECTED] wrote:
 
  Hi all
 
  I have noted FreeBSD uses GNU diff, GNU diff3 and GNU sdiff. Why FreeBSD
 uses its own version of cmp? why not use GNU cmp? Is the GNU cmp not
 compatible with FreeBSD?

 The GNU version of cmp is not licensed under the BSD license.

 Given enough time/manpower, all the GNU tools in FreeBSD will eventually
 be replaced with BSD-licensed versions.

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


and it's not GNU diff it's BSD diff
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Netprint perl script from Handbook doesn't work

2008-09-24 Thread Dan Nelson
In the last episode (Sep 24), Andy Kosela said:
 The netprint perl script provided in the Handbook (9.4.3.2) is not
 working.. or am I missing something:
 
 plotinus:~ cat new.txt | lp.sh
 Can't contact 10.10.21.12: Address family not supported by protocol family at 
 /usr/local/libexec/netprint line 21.

Can you telnet to that ip address (telnet 10.10.21.12 9100, or
whatever port you're using)?
 
 plotinus: cat /usr/local/libexec/netprint
 #!/usr/bin/perl
 #
 #  netprint - Text filter for printer attached to network
 #  Installed in /usr/local/libexec/netprint
 #
 $#ARGV eq 1 || die Usage: $0 printer-hostname port-number;
 
 $printer_host = $ARGV[0];
 $printer_port = $ARGV[1];
 
 require 'sys/socket.ph';
 
 ($ignore, $ignore, $protocol) = getprotobyname('tcp');
 ($ignore, $ignore, $ignore, $ignore, $address)
= gethostbyname($printer_host);
 
 $sockaddr = pack('S n a4 x8', AF_INET, $printer_port, $address);
 
 socket(PRINTER, PF_INET, SOCK_STREAM, $protocol)
|| die Can't create TCP/IP stream socket: $!;
 connect(PRINTER, $sockaddr) || die Can't contact $printer_host: $!;
 while (STDIN) { print PRINTER; }
 exit 0;

Wow.  That's a really complicated way to say 

  #! /bin/sh
  nc $1 $2


-- 
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: [freebsd-questions] Re: Machine locking up

2008-09-24 Thread Tuc at T-B-O-H.NET
Hi,

Might be on track there. The default background_fsck is on and
the first time I didn't see any of the fsck syslog messages. On the second
reboot, I see them all. Oddly, on the reboot I see the first one done in
12 minutes from the boot, yet the prior boot went over an hour before it
locked up.

I did run into some oddness though. I found it was doing the final
fsck on a 1.1TB filesystem, so I wandered into '/mountpoint/.snap' and did
an ls -lt. It hung. When I did a CTRL-T, it told me it was in a spinlock.
I ran top and found I had 1/2 a dozen processes also in spinlock. I was
patient this time (And had other multiple VTYs logged in) so I waited it
out. All of a sudden all the spinlocks stopped, the processes and ls
completed, but it still was in pass 5 at 95%. It sat there for a while
before finally sending the output to syslog and KNOCK KNOCK things are
doing fair.  I'm letting the system have it easy for a few days before
I put a load back onto it (4 SETI).

The 2nd part to recompile kernel/world... I don't worry too much
doing that. Its the install part that gives me the willies. I've done
that before on a system that was acting up and on reboot it just 
acted dead. I remember I had to hand copy some libraries over 
after remaking AGAIN and things started to pick up. But scary as heck.
The system finally died totally about a month later.

Thanks, Tuc

 
 I suggest you reboot in single user mode and fsck -fy the mount points you 
 use.
 If the problem persists - you might recompile the kernel and world.
 
 Regards,
 Ivailo Tanusheff
 
 
 
 
 
 Tuc at T-B-O-H.NET [EMAIL PROTECTED] 
 Sent by: [EMAIL PROTECTED]
 24.09.2008 10:56
 
 To
 freebsd-questions@freebsd.org
 cc
 
 Subject
 Machine locking up
 
 
 
 
 
 
 Hi,
 
  We had a power failure at the datacenter we colocate at, 
 and all our
 servers went down. 
 
  One is acting up ever since. It rebooted but wasn't 
 accessible. I
 tried to log in via our KVM and got the login/pass, but when it did the
 /etc/motd and rest it locked up. CTRL-C and CTRL-\ didn't do anything. 
 The remote KVM could C-A-D and the machine rebooted.
 
  Once it rebooted it seemed ok, but then locked up again 
 while in use.
 The odd thing was I remembered to try CTRL-T, and got :
 
 load: 0.00 cmd: login 1188 [sysctl lock] 0.00u 0.00s 0% 176k
 
  on the session I was trying to log in on, and on the 
 session I was
 doing a tail, I saw :
 
 load: 0.00  cmd: tail 2013 [proctree] 0.00u 0.00s 0% 0k
 
  I could tab between VTYs, but logins wouldn't accept 
 input, and
 I couldn't C-A-D this time around. I could telnet to a special port on it
 for monitoring and get a reply, but SSH/sendmail didn't reply.
 
  Its a FreeBSD 5.5 (I can't upgrade it, sorry)
 
  Any clues what to look for?
 
  Thanks, Tuc

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


Re: dovecot, maildir, UFS 2 performance

2008-09-24 Thread Laszlo Nagy



You can treat UFS as ext2/3 with dir_index enabled by default (not
exactly but that's what dirhash translates to in practice).



UFS by default creates 2k fragments (sub-blocks), so in practice any
tuning in this direction won't do much.



More drives=better in this case. Don't forget to tune dirhash_maxmem.


I think this is what I really wanted to know. Thank you!

  Laszlo

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


Re: Syslogd - Different Files

2008-09-24 Thread Wojciech Puchar

I have read the man pages:

http://www.freebsd.org/cgi/man.cgi?query=syslog.confsektion=5manpath=FreeBSD+7.0-RELEASE

However it is very confusing what exactly to add to the syslog.conf file. I 
have tried numerous variations but still no success.


example on serwer blah.AAA.com

+blah.AAA.com
*.* -/var/log/messages
*.* -/dev/ttyvb
*.* @blah2.BBB.com
-blah.AAA.com
*.* -/var/log/remote


this will log all OWN log to /var/log/messages, 12-th console and to 
server @blah2.BBB.com


and will log all incoming messages from other hosts to /var/log/remote

of course - in rc.conf don't forget to add

syslogd_flags=-a IP1/mask1 -a IP2/mask2 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: nat and firewall

2008-09-24 Thread Kevin Kinsey

FBSD1 wrote:


natd_enable=YES  This statement in rc.conf enables ipfw nated function.
firewall_nat_enable=YES  This is an invalid statement. No such thing as
you have here.


This is no longer true; he did indeed find firewall_nat_enable
in /etc/defaults/rc.conf.  The knob seems to have first appeared
in February in HEAD and I'm guessing it cues the system to use a
new kernel-based nat rather than natd(8), but I've not read anything
further about this, as my system isn't as up to date as the OP's.
I don't know when this change was MFC'ed, but apparently fairly
recently?

I suppose we need someone a tad more in the know to straighten
that out for us.

Kevin Kinsey
--
A wise man can see more from a mountain top
than a fool can from the bottom of a well.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ScreenCapturing tool for FreeBSD-7.0 Release

2008-09-24 Thread Frank Staals

Roland Smith wrote:

On Wed, Sep 24, 2008 at 09:09:23AM +, dhaneshk k wrote:
  

HI all ;

Can anyone recommend a working screencapturing tool such as XvidCap
for FreeBSD-7.0 ,

I installed XvidCap but its not working any other tools OR Solutions
for doing screen Capturing ..

It will be useful for  demo presentations  alot..



If you are using X11, try xwd(1) that comes with it. You'll need a tool
like netpbm or ImageMagick to convert dump files to other formats.

Or you can use the gimp to capture and process window images under X11.

I'm not aware of any screen dump apps on the console. You can of course
run console apps in an X terminal and capture that.

Roland
  
ImageMagick has the 'import' command which can directly capture screen 
to some sensible format such as jpg. You'll get a pointer from which you 
can drag a box on the screen which you want to capture. Alternively you 
can just click an application to take a screenshot of that application 
window. And probably you can make screenshots of the entire screen 
without having to drag a box too



--
-Frank Staals


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


Re: Netprint perl script from Handbook doesn't work

2008-09-24 Thread Andy Kosela
On Wed, Sep 24, 2008 at 5:12 PM, Dan Nelson [EMAIL PROTECTED] wrote:
 In the last episode (Sep 24), Andy Kosela said:
 The netprint perl script provided in the Handbook (9.4.3.2) is not
 working.. or am I missing something:

 plotinus:~ cat new.txt | lp.sh
 Can't contact 10.10.21.12: Address family not supported by protocol family 
 at /usr/local/libexec/netprint line 21.

 Can you telnet to that ip address (telnet 10.10.21.12 9100, or
 whatever port you're using)?


Yes, no problem with that (standard HP JetDirect 9100 port). The very
same script *IS* working on 6.2-RELEASE. Perl versions on 6.x and 7
seems to be the same: 5.8.8

perl -V on 6.2-RELEASE:
 config_args='-sde -Dprefix=/usr/local
-Darchlib=/usr/local/lib/perl5/5.8.8/mach
-Dprivlib=/usr/local/lib/perl5/5.8.8
-Dman3dir=/usr/local/lib/perl5/5.8.8/perl/man/man3
-Dman1dir=/usr/local/man/man1
-Dsitearch=/usr/local/lib/perl5/site_perl/5.8.8/mach
-Dsitelib=/usr/local/lib/perl5/site_perl/5.8.8
-Dscriptdir=/usr/local/bin
-Dsiteman3dir=/usr/local/lib/perl5/5.8.8/man/man3
-Dsiteman1dir=/usr/local/man/man1 -Ui_malloc -Ui_iconv
-Uinstallusrbinperl -Dcc=cc -Duseshrplib
-Dccflags=-DAPPLLIB_EXP=/usr/local/lib/perl5/5.8.8/BSDPAN
-Doptimize=-O2 -fno-strict-aliasing -pipe  -Ud_dosuid -Ui_gdbm
-Dusethreads=n -Dusemymalloc=y -Duse64bitint'

perl -V on 7.0-RELEASE:
 config_args='-sde -Dprefix=/usr/local
-Darchlib=/usr/local/lib/perl5/5.8.8/mach
-Dprivlib=/usr/local/lib/perl5/5.8.8
-Dman3dir=/usr/local/lib/perl5/5.8.8/perl/man/man3
-Dman1dir=/usr/local/man/man1
-Dsitearch=/usr/local/lib/perl5/site_perl/5.8.8/mach
-Dsitelib=/usr/local/lib/perl5/site_perl/5.8.8
-Dscriptdir=/usr/local/bin
-Dsiteman3dir=/usr/local/lib/perl5/5.8.8/man/man3
-Dsiteman1dir=/usr/local/man/man1 -Ui_malloc -Ui_iconv
-Uinstallusrbinperl -Dcc=cc -Duseshrplib
-Dccflags=-DAPPLLIB_EXP=/usr/local/lib/perl5/5.8.8/BSDPAN
-Doptimize=-O2 -fno-strict-aliasing -pipe  -Ud_dosuid -Ui_gdbm
-Dusethreads=n -Dusemymalloc=y -Duse64bitint'

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


Re: dovecot, maildir, UFS 2 performance

2008-09-24 Thread Lowell Gilbert
Laszlo Nagy [EMAIL PROTECTED] writes:

 Wojciech Puchar said:
 i have everything (/) on single partition on most of my servers,
 including those having lots of mail.

 I don't think that is clever. sysinstall creates different partitions
 for / /usr /var and /tmp by default. There must be good reasons for
 this.

There are a number of reasons, not all of which will apply to any
given situation.

1) [as Wojciech Puchar said] tradition.  Not an especially good reason
   on its own.

2) keeping problems on one partition from raising trouble on another
   partition.  e.g., filesystem corruption in a home directory keeping
   the root from being able to boot, or filling up a mail directory
   keeping people from logging in.

3) fsck: Background fsck can't be done on the root filesystem, so if
   you have a large root, that amounts to a substantial delay booting
   after a crash.

4) backups: dump(8) works on a filesystem basis, so organizing the
   data for backup (with dump) means organizing according to
   filesystem.  The same applies to snapshots.



-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: dovecot, maildir, UFS 2 performance

2008-09-24 Thread Wojciech Puchar

2) keeping problems on one partition from raising trouble on another
  partition.  e.g., filesystem corruption in a home directory keeping
  the root from being able to boot, or filling up a mail directory
  keeping people from logging in.


today we have live CDs.

and - UFS doesn't get totally corrupted, just few files lost etc.

files and directories that are not written for a long never get corrupted 
so you will always have kernel and /rescue anyway


i said tradition - because very old unix filesystems (25 years ago.. or 
more) was different and sometimes got totally corrupted.


Of course if hardware will fail, you can lose all filesystem.
or all filesystems with multiple partitions. end effect is the same.


3) fsck: Background fsck can't be done on the root filesystem, so if
  you have a large root, that amounts to a substantial delay booting
  after a crash.


i STRONGLY advise all to add

background_fsck=NO


to /etc/rc.conf

because background fsck DO make problems



4) backups: dump(8) works on a filesystem basis, so organizing the
  data for backup (with dump) means organizing according to
  filesystem.  The same applies to snapshots.


you have to dump all anyway, and you have chflags nodump to mark 
directories and files that should not be backed up.



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


Re: Recompile kernel or module for ipfw+nat?

2008-09-24 Thread Christer Hermansson

n j wrote:

Hello everyone,

I have a quick question regarding the setup of nat with ipfw.
According to the handbook:

The following options must be in the kernel configuration file:
options IPFIREWALL
options IPDIVERT

however, there is a kernel module called ipdivert.ko similar to
ipfw.ko for the firewall.

Is it still necessary to recompile the kernel in order to use nat with
ipfw? Or, to put it another way, is there a possibility to use nat and
keep the generic kernel?

Thanks for any input,
  

You can choose to use the modules or make it static by recompile the kernel.

IMHO the ipnat(8) is a more simple way to get nat.

--

Christer Hermansson

http://www.chdevelopment.se


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


Re: PAM_AUTHTOK_RECOVER_ERR

2008-09-24 Thread Berk Gulenler

   Hi Dan,
   Sorry my last mail was bounced back to me. That's what I wrote to you:
   No I'm not trying to build it from port tree because the ports says my
   openldap version is not compatible with pam_ldap (a new version is
   required). But I have to use an older version of openldap so, I'm
   trying to compile pam_ldap for my self. Thanks.
   Dan Nelson wrote:

In the last episode (Sep 19), Berk Gulenler said:
  

 Dan Nelson wrote:

In the last episode (Sep 19), Berk Gulenler said:


I'm trying to install pam_ldap 1.84 to FreeBSD version 6.3 AMD64. But
I'm getting this error message from gmake compiler. I think the
problem is an undeclared function. About this any help would be
appreciated.

Related log:

gcc -DHAVE_CONFIG_H   -I/usr/local/include -DLDAP_REFERRALS -DLDAP_DEPRECATED -
DPIC -D_REENTRANT  -g -O2 -Wall -fPIC -c pam_ldap.c
pam_ldap.c:3569: error: `PAM_AUTHTOK_RECOVER_ERR' undeclared (first use in this
 function)
pam_ldap.c:3569: error: (Each undeclared identifier is reported only once
pam_ldap.c:3569: error: for each function it appears in.)

Are you building the security/pam_ldap port?  That should build with no
errors.
  

   No I'm not trying to build it from port tree because the ports
   says my openldap version is not compatible with pam_ldap (a new
   version is required). But I have to use an older version of
   openldap so, I'm trying to compile pam_ldap for my self. Thanks.


Try editing /etc/make.conf and put

WANT_OPENLDAP_VER=23

and see if the port builds.

  

-- 
Berk Gulenler
System Administrator
Bogazici University Computer Center

Phone:  +90 212 359 47 20
Fax:+90 212 257 50 21
E-mail: [EMAIL PROTECTED]

References

   1. mailto:[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: FreeBSD Port of mrtg Not Happy when Trying to Start

2008-09-24 Thread Martin McCormick
It appears that the problem of getting mrtg to start may
have something to do with perl and libraries. I installed mrtg on another
FreeBSD6.3 system today. That system would have
worked so I began poking around on both systems and then it hit
me. It's terribly obvious after one realizes what is wrong.

The problem system complains:

Can't locate SNMP_util.pm in @INC (@INC contains: ---

and then a ls showing everything else that is there.

The working test system does have:
/usr/local/lib/perl5/site_perl/5.8.8/SNMP_util.pm

The problem system actually has an extremely similar file name:
/usr/local/lib/perl5/site_perl/5.8.8/Net_SNMP_util.pm

Easy to overlook but still a totally different file name.

Gee, what if I just link the missing name to the good
file as in ln -s Net_SNMP_util.pm SNMP_util.pm

That produced:

Subroutine version redefined at 
/usr/local/lib/perl5/site_perl/5.8.8/SNMP_util.pm line 394.

and so on for 22 lines of similar squawks. I did briefly have
net-snmp installed on that system but it has been deinstalled
unless it left a library or two lying around.

There is no need for net-snmp so if I could figure out what it
put on and make sure it is gone, that might fix the problem.

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


Re: Build error while upgrading 'kdesdk-3.5.9' to 'kdesdk-3.5.10' (devel/kdesdk3)

2008-09-24 Thread Michal Petrucha
First, thanks for your response.

 Did you previously have kde-4 on this machine? ldconfig -r |grep gettext 
 should show a /usr/local/kde4/../libgettext.so, but that isn't usuable, so 
 new port builds will see 'a libgettext', so wont install gettext, but kde's 
 configure finds it is not usuable, so will default to it's internal copy of 
 gettext, which doesn't compile cleanly.
 cd /usr/ports/devel/kdesdk
 ${EDITOR} `make -V WRKSRC`/config.log
 that should show hints why it does not find gettext usable.
 
 (Yep, been bitten by it).

Well, I didn't yet install kde4 and I don't intend to. (-:
Anyway, ldconfig -r | grep gettext shows only the following output:

~~
271:-lgettextpo.4 = /usr/local/lib/libgettextpo.so.4
~~

I don't understand why it doesn't list libgettextlib.so since it is
installed by the port devel/gettext (gettext-0.17_1 is installed here)

I uploaded the whole config.log to
http://johnny64.fixinko.sk/junk/config.log.kdesdk3
but I don't see any relevant messages concerning gettext...

But anyway, how did you solve the error you were getting? Do you think
just running ldconfig will help? Won't it spoil something important?

Michal Petrucha

-- 
(-K JohnNy alias Partial Derivative ∂
[home] http://johnny64.fixinko.sk/
[icq] 338328204 [abandoned]
[jabber] [EMAIL PROTECTED]
[skype] JohnNy64-konik [abandoned]


pgpxQlTpdHWrU.pgp
Description: PGP signature


Re: Any way to play www.last.fm on FreeBSD?

2008-09-24 Thread Gary Kline
On Wed, Sep 24, 2008 at 10:19:01AM +0200, Pieter de Goeje wrote:
 On Tuesday 23 September 2008, Gary Kline wrote:
   Amarok has built-in support for Last.fm.
 
  Hm. I can't seem to get it to work.  At least if I click on the
  last.fm drop-down menu,  ...Zip.
 
  I built last.fm; it lives in /usr/local/bin.  Now, in Konqueror,
  do I add this whole path to the Plug In section?  I didn't
  excpect the last.fm binary to be a stand-alone, and I'm not sure
  it is because sometimes in calls Konq.  Then things hang.
 
  Clues much appreciated!
 
 Go to Settings - last.fm. Enter your login and check any boxes of your 
 choice :-). You can then listen to last.fm radio using Playlist - Add 
 last.fm stream.
 
 Good luck!

Are you refering to KDE4?  I'm using KDE3, the lastest upgrades,
and my Konq settings has no - last.fm ``Configuration''.
I can login to www.last/fm and will look for Playlist.

gary

PS:  these guys have a *lot* of music, :-)

 
 -- 
 Pieter de Goeje
 
 ___
 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]  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org


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


Re: Any way to play www.last.fm on FreeBSD?

2008-09-24 Thread Pieter de Goeje
On Wednesday 24 September 2008, Gary Kline wrote:
 On Wed, Sep 24, 2008 at 10:19:01AM +0200, Pieter de Goeje wrote:
  On Tuesday 23 September 2008, Gary Kline wrote:
Amarok has built-in support for Last.fm.
  
 Hm. I can't seem to get it to work.  At least if I click on the
 last.fm drop-down menu,  ...Zip.
  
 I built last.fm; it lives in /usr/local/bin.  Now, in Konqueror,
 do I add this whole path to the Plug In section?  I didn't
 excpect the last.fm binary to be a stand-alone, and I'm not sure
 it is because sometimes in calls Konq.  Then things hang.
  
 Clues much appreciated!
 
  Go to Settings - last.fm. Enter your login and check any boxes of your
  choice :-). You can then listen to last.fm radio using Playlist - Add
  last.fm stream.
 
  Good luck!

   Are you refering to KDE4?  I'm using KDE3, the lastest upgrades,
   and my Konq settings has no - last.fm ``Configuration''.
   I can login to www.last/fm and will look for Playlist.

   gary

   PS:  these guys have a *lot* of music, :-)

Amarok is able to stream lastfm radio on it's own. The settings I referred to, 
are Amarok's settings, not Konqueror's.

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


Re: Any way to play www.last.fm on FreeBSD?

2008-09-24 Thread David Scheidt
On Wed, Sep 24, 2008 at 09:33:20PM +0200, Pieter de Goeje wrote:
 On Wednesday 24 September 2008, Gary Kline wrote:
  gary
 
  PS:  these guys have a *lot* of music, :-)
 
 Amarok is able to stream lastfm radio on it's own. The settings I referred 
 to, 
 are Amarok's settings, not Konqueror's.

It's also possible to use windows firefox under wine to play things.
(The windows version of Firefox works quite well under wine.  )
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: My unqualified host name

2008-09-24 Thread Dánielisz László
As I promised I came back with the answer, he simple thing to stop sendmail on 
boot works and now I have no longer that annoying message :) 



- Original Message 
From: Chuck Swiger [EMAIL PROTECTED]
To: Dánielisz László [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Tuesday, September 23, 2008 9:02:43 PM
Subject: Re: My unqualified host name

On Sep 23, 2008, at 10:13 AM, Dánielisz László wrote:
 I got the following error message on boot:

 nyana sm-mta[803]: My unqualified host name (nyana) unknown;  
 sleeping for retry

 Do you have any idea?

Yes, sendmail expects your machine to have working DNS and for the  
machine to have a valid FQDN.  Either set that up, or add  
sendmail_enable=NONE to /etc/rc.conf to disable sendmail if you  
won't be using it...

Regards,
-- 
-Chuck

___
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: Any way to play www.last.fm on FreeBSD?

2008-09-24 Thread Gary Kline
On Wed, Sep 24, 2008 at 03:45:54PM -0400, David Scheidt wrote:
 On Wed, Sep 24, 2008 at 09:33:20PM +0200, Pieter de Goeje wrote:
  On Wednesday 24 September 2008, Gary Kline wrote:
 gary
  
 PS:  these guys have a *lot* of music, :-)
  
  Amarok is able to stream lastfm radio on it's own. The settings I referred 
  to, 
  are Amarok's settings, not Konqueror's.
 
 It's also possible to use windows firefox under wine to play things.
 (The windows version of Firefox works quite well under wine.  )


got things working thru amarok.  thanks, guys.

-- 
 Gary Kline  [EMAIL PROTECTED]  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org


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


Re: mysql connection through ssl tunnel

2008-09-24 Thread John Almberg


On Sep 23, 2008, at 1:16 PM, Mel wrote:


On Tuesday 23 September 2008 15:54:10 John Almberg wrote:


I have two FreeBSD machines. One is a application server, the other a
database server running mysql. These machines are in two different
locations. I'd like to allow the application server to access mysql
through an SSH tunnel.



Any recommendations, much appreciated.


You can use Vince's suggestion, or simply use SSL connections to  
the mysql

server. Each have their own pros and cons.


Thanks Vince  Mel for your responses.

I guess I will try the simple SSL approach first and see if that does  
the trick.


I appreciate the advice!

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


Re: pc with 4G memory

2008-09-24 Thread Kris Kennaway

Ivan Voras wrote:

2008/9/18 Ivan Voras [EMAIL PROTECTED]:

2008/9/18 Kris Kennaway [EMAIL PROTECTED]:


# Don't build modules with this kernel config, since they are not built
with
# the correct options headers.
makeoptions NO_MODULES=yes


wrong?

Not as such, but if you use buildkernel then modules *are* built with the
correct options headers.  There's nothing fundamental preventing PAE modules
from working, and indeed they do.

It would have been really useful in one occasion if I knew it before :)
I'll test it.


Hi,

As described in the documentation and the config file, I cannot build
kernel modules with PAE configured - I get a compile error at type
mismatch of a VM item. Is there something special that needs to be
done to get them built?

What I did: removed NO_MODULES from PAE config file and used make
buildkernel KERNCONF=PAE .




Use MODULES_OVERRIDE.  Just as some drivers are disabled in the PAE 
kernel config, neither can they be built as modules.


Kris

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


any supported NTSC-output cards?

2008-09-24 Thread Steve Franks
I'm just curious.  My friend set up one of those TIVO clones with
ubuntu.  I'm really not into the fancy/pretty dressing, but hooking up
the 'ol freebsd server to the TV would be kind of nifty in the bling
department.  Also, if a card  drivers exist, experience getting
mplayer to stick the video out the TV out would be appreciated.

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


Re: any supported NTSC-output cards?

2008-09-24 Thread Wojciech Puchar

I'm just curious.  My friend set up one of those TIVO clones with
the 'ol freebsd server to the TV would be kind of nifty in the bling


add secondary PCI card (anything will suffice)+converter, and set up 
TV-compatible mode in your Xorg.conf


this will give you actual TV output with right resolution and refresh 
rate, not some crappy on-the-fly conversion of your VGA framebuffer done by cards with TV-out.




see this:

http://www.idiots.org.uk/vga_rgb_scart/


it's for windoze but with that data you should be able to make custom XOrg 
mode mathing your TV. it's for PAL, you will for sure find the right 
data for NTSC standard.


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


Re: Netprint perl script from Handbook doesn't work

2008-09-24 Thread Mel
On Wednesday 24 September 2008 12:33:29 Andy Kosela wrote:

 ($ignore, $ignore, $protocol) = getprotobyname('tcp');

$ perl -e 'print join(\n, getprotobyname(tcp));'
tcp
TCP
6

-- 
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: dovecot, maildir, UFS 2 performance

2008-09-24 Thread Mel
On Wednesday 24 September 2008 19:49:54 Wojciech Puchar wrote:

 i said tradition - because very old unix filesystems (25 years ago.. or
 more) was different and sometimes got totally corrupted.

10 years ago (not 25), news:// was hawt. And created tons on small files, by 
default on /var/news, which is/was one good reason to make /var have a 
smaller fragment size.
The use of /tmp as memdisk is obvious.
Having done several major version OS upgrades on different bootable slice, 
made me appreciate a /home partition.

-- 
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: ccache on amd64

2008-09-24 Thread Mel
On Wednesday 24 September 2008 16:28:44 Brian wrote:
 Mel wrote:
  On Wednesday 24 September 2008 05:34:22 Brian wrote:
  /usr/local/libexec/ccache/world-cc -m32 -march=athlon64 -mfancy-math-387
  -DCOMPAT_32BIT -iprefix /usr/obj/usr/src/lib32/usr/
  -L/usr/obj/usr/src/lib32/usr/lib32 -B/usr/obj/usr/src/lib32/usr/lib32
  -fpic -DPIC -O2 -fno-strict-aliasing -pipe -DTERMIOS -DANSI_SOURCE
  -I/usr/src/secure/lib/libcrypto/../../../crypto/openssl
  -I/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto
  -I/usr/obj/lib32/usr/src/secure/lib/libcrypto -DOPENSSL_THREADS
  -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_IDEA -DL_ENDIAN -DNO_IDEA
  -std=gnu89  -c
  /usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/x509v3/v3er
 r.c -o v3err.So
  building shared library libcrypto.so.4
  Segmentation fault (core dumped)
  *** Error code 139
 
  And this all just works if you set NOCCACHE? Or does the problem persist
  then?

 I havebt specifically done the NOCCACHE, but commenting out all the
 ccache stuff out of make.conf and /etc/profile, doing a straight compile
 works.
 Setting cputype=k8 fails as well.

Since it fails on the link, I wonder if the wrong linker is called by ccache. 
I'll see what I can find out when it quiets down, right now machine is under 
heavy load.

(It might just be the path you set in /etc/profile. I use only 
the /etc/make.conf version, not set the path additionally and 
make -f /usr/src/Makefile.inc1 -V LIB32WMAKE shows it's mangeling the path)

-- 
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: any supported NTSC-output cards?

2008-09-24 Thread Wojciech Puchar

you may find this useful too

http://www.mail-archive.com/[EMAIL PROTECTED]/msg20834.html

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


Re: Build error while upgrading 'kdesdk-3.5.9' to 'kdesdk-3.5.10' (devel/kdesdk3)

2008-09-24 Thread Mel
On Wednesday 24 September 2008 21:01:20 Michal Petrucha wrote:
 First, thanks for your response.

  Did you previously have kde-4 on this machine? ldconfig -r |grep gettext
  should show a /usr/local/kde4/../libgettext.so, but that isn't usuable,
  so new port builds will see 'a libgettext', so wont install gettext, but
  kde's configure finds it is not usuable, so will default to it's internal
  copy of gettext, which doesn't compile cleanly.
  cd /usr/ports/devel/kdesdk
  ${EDITOR} `make -V WRKSRC`/config.log
  that should show hints why it does not find gettext usable.
 
  (Yep, been bitten by it).

 Well, I didn't yet install kde4 and I don't intend to. (-:
 Anyway, ldconfig -r | grep gettext shows only the following output:

 ~~
 271:-lgettextpo.4 = /usr/local/lib/libgettextpo.so.4
 ~~

 I don't understand why it doesn't list libgettextlib.so since it is
 installed by the port devel/gettext (gettext-0.17_1 is installed here)


 I uploaded the whole config.log to
 http://johnny64.fixinko.sk/junk/config.log.kdesdk3
 but I don't see any relevant messages concerning gettext...

Me neither. I have no idea why it wants to use it's own internal gettext.

 But anyway, how did you solve the error you were getting? Do you think
 just running ldconfig will help? Won't it spoil something important?

I solved it by removing the duplicate library, but there are no dupes on your 
system.
-- 
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 not GNU cmp?

2008-09-24 Thread Chad Perrin
On Wed, Sep 24, 2008 at 11:05:19AM -0400, matt donovan wrote:
 On Wed, Sep 24, 2008 at 10:31 AM, Bill Moran [EMAIL PROTECTED]wrote:
  Unga [EMAIL PROTECTED] wrote:
  
   I have noted FreeBSD uses GNU diff, GNU diff3 and GNU sdiff. Why FreeBSD
  uses its own version of cmp? why not use GNU cmp? Is the GNU cmp not
  compatible with FreeBSD?
 
  The GNU version of cmp is not licensed under the BSD license.
 
  Given enough time/manpower, all the GNU tools in FreeBSD will eventually
  be replaced with BSD-licensed versions.
 
 and it's not GNU diff it's BSD diff

Are you sure about that?  I thought FreeBSD was using GNU diff as its
standard diff, and that a BSD diff was only available through ports
(thanks in part to the efforts of someone working on BSD-licensed text
tools during this year's Google SOC).

-- 
Chad Perrin [ content licensed PDL: http://pdl.apotheon.org ]
Larry Wall: You can never entirely stop being what you once were.
That's why it's important to be the right person today, and not put it
off till tomorrow.


pgpoP8anrRRaz.pgp
Description: PGP signature


Re: ccache on amd64

2008-09-24 Thread RW
On Thu, 25 Sep 2008 01:00:07 +0200
Mel [EMAIL PROTECTED] wrote:


 Since it fails on the link, I wonder if the wrong linker is called by
 ccache. I'll see what I can find out when it quiets down, right now
 machine is under heavy load.
 
 (It might just be the path you set in /etc/profile. I use only 
 the /etc/make.conf version, not set the path additionally and 
 make -f /usr/src/Makefile.inc1 -V LIB32WMAKE shows it's mangeling the
 path)


world-cc does this:

#!/bin/sh
unset CCACHE_PATH
export CCACHE_HASH_COMPILER
exec /usr/local/libexec/ccache/cc $@

So it unsets any ccache path variable set in /etc/profile.


For the benefit of anyone that didn't follow the previous thread, the
issue was that in building 32-bit libraries under amd64, extra
arguments get passed to the compiler inside the CC variable
definition, hence the problem with overriding CC/CXX. I doubt that those
updated make.conf settings have had much testing, they were just
something suggested in a thread.


BTW I would suggest CCACHE_HASH_COMPILER is set globally, otherwise
building world invalidates any cache object built with the default
compiler. Only having it on for world is the default, but it seems
perverse to me - I see most of the benefit of ccache on port building. 





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


periodic not working?

2008-09-24 Thread Kurt Buff
I've got a recently configured machine, running 7.0-RELEASE.

Somehow I've munged it, as I'm not getting the emails from periodic.

I've checked what I am aware of to check against a working machine,
and can't figure this out.

I've got postfix installed for the MTA, and the main.cf, master.cf,
alias db hash and transport.db hash all look fine

crontab looks just fine, too.

I've run 'periodic daily' by hand from a root prompt, and get nothing,
whereas on the working machine I do get my email.

Where might I start looking to fix this problem?

Thanks,

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


Incorrect physical memory when hw.physmem is set

2008-09-24 Thread Mohd Fahadullah
Hello,

There is a peculiar case when physical memory limit is set through
hw.physmem and Freebsd sets usable memory to much lesser value.
In cases with 8 GB of RAM where the physical memory address space is
remapped above 4 GB and if we set hw.physmem to 4 GB then Freebsd actually
skips the segments remapped above 4 GB. So we end up with much less memory
than 4 GB depending upon the memory hole in the top of 4 GB address space.

I would like to know if someone else came across the same issue.

Thank you,

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


Wrong Build Environment

2008-09-24 Thread Martin McCormick
After several days of attempting to build mrtg on a
FreeBSD6.3 system, I know what is wrong but am not sure what I
did to break things nor how to roll back the change.

On the broken system, I can deinstall both perl5.8 and
mrtg and then do a make install for mrtg which also builds
perl5.8 and installs it. When done, I have
/usr/local/lib/perl5/site_perl/5.8 but the libraries mrtg needs
are not there. Instead, there are very similar files which mrtg
is not looking for.

On another 6.3 system, I installed mrtg via the same
port and it also creates the exact same directory but it
contains the correct files. I have not set any environment
variables to anything other than the normal settings on either
system.

Is there a proper way to determine where the make
process is going wrong?

It is almost certainly some file in /usr/lib that got
built wrong that keeps steering the make attempt to populate
/usr/lib/perl5/site_perl/5.8.8 with the wrong files.

Other than that, there are no complaints during the
build process. You just can't run the executable because it
can't find any of the files it needs.

I can't think what bone-head thing I did to cause this,
but I've ruled out problems with the mrtg port or perl5.8. I
actually built perl5.8 from a slightly older port, once, and got
the same results. The port of mrtg is fairly old and was
installed successfully on the system that works and also
installed successfully on the broken system except it can't find
its libraries.

Any ideas?

Thank you.

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


Re: Why not GNU cmp?

2008-09-24 Thread Unga
--- On Thu, 9/25/08, Chad Perrin [EMAIL PROTECTED] wrote:

 From: Chad Perrin [EMAIL PROTECTED]
 Subject: Re: Why not GNU cmp?
 To: freebsd-questions@freebsd.org
 Date: Thursday, September 25, 2008, 7:07 AM
 On Wed, Sep 24, 2008 at 11:05:19AM -0400, matt donovan
 wrote:
  On Wed, Sep 24, 2008 at 10:31 AM, Bill Moran
 [EMAIL PROTECTED]wrote:
   Unga [EMAIL PROTECTED] wrote:
   
I have noted FreeBSD uses GNU diff, GNU
 diff3 and GNU sdiff. Why FreeBSD
   uses its own version of cmp? why not use GNU cmp?
 Is the GNU cmp not
   compatible with FreeBSD?
  
   The GNU version of cmp is not licensed under the
 BSD license.
  
   Given enough time/manpower, all the GNU tools in
 FreeBSD will eventually
   be replaced with BSD-licensed versions.
  
  and it's not GNU diff it's BSD diff
 
 Are you sure about that?  I thought FreeBSD was using GNU
 diff as its
 standard diff, and that a BSD diff was only available
 through ports
 (thanks in part to the efforts of someone working on
 BSD-licensed text
 tools during this year's Google SOC).
 

FreeBSD diff direcotry is /usr/src/gnu/usr.bin/diff . It refers to 
/usr/src/contrib/diff for diff sources. It seems FreeBSD apply a patch to GNU 
diff to get an option 'o' to get a old-style output. Applying a patch on a GNU 
app does not become BSD unless you write it from scratch.

In my past experience, the GNU ncurses and Flex (http://flex.sourceforge.net/) 
are simple not compatible with FreeBSD even though Flex is licensed under BSD. 
I wanted to know whether the GNU cmp is also the same fate other than the 
license because all these GNU tools comes in one package, Diffutils.

I was wondering why FreeBSD wrote their own version of cmp. If it just the 
license, then that's fine. I prefer the BSD versions of diff, etc. when 
available. 

Regards
Unga




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