Re: Sendmail - One Trick Pony

2010-07-02 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/07/2010 16:12:36, J wrote:

 I'd like to set up Sendmail to facilitate e-mail (with attached jpeg)
 delivery to an internet account from my wireless IP camera.  That's
 all I want it to do, nothing more.  I've been a very satisfied
 FreeBSD user for a few years and am reasonably comfortable with OS
 and software configuration, but I have literally no knowledge of mail
 servers or configuring Sendmail.  Some people suggest using other
 programs such as Postfix, but I'd rather get this work with Sendmail.
 I did install the cyrus-sasl2 port as well as saslauthd, since I
 thought I might have an authentication problem.  Beyond that the only
 other things I've done are:

Right: by enabling sendmail to accept e-mail from one remote client, you
open the possibility of any client being able to e-mail via your server,
so you should put some thought into how you're going to secure that.
Personally, I'd be writing firewall rules to block incoming traffic to
ports 25 and 587 from anywhere other than your camera.

 1. sendmail_enable=YES
 in rc.conf
 2. (camera's ip address)  RELAY
 in /etc/mail/access
 
 I'm seeing my webmail account information (address and relay server)
 in maillog and when I use sendmail verbose, I see what looks like a
 successful transaction but the mail never gets delivered.  So it
 would seem that the camera is communication fine with my FreeBSD
 server, but the mail isn't getting transmitted out to the internet.
 
 Any suggestions are appreciated.

You want your sendmail instance to act as a mail client and authenticate
to your webmail provider?  That's certainly possible, but usually you
can avoid it.

If you need client-side auth, see the section Using sendmail as a
client with AUTH in:

   http://www.sendmail.org/~ca/email/auth.html

You will need to recompile sendmail with appropriate AUTH capabilities,
as you would for providing server-side authentication.

In any case, if you need client-side auth or not, start by making sure
that you can send e-mail from your FreeBSD box to your webmail account
manually --- use the mail(1) command like so:

% mail -v -s test message your-n...@webmail.provider
Test message
.

(Ie. type in the text of a message and finish with a dot on it's own on
a separate line)

Once that part works, look at relaying the e-mail from your camera.

The '-v' flag should show you a verbose transcript of the SMTP dialogue
involved when sending the message.  Unfortunately nowadays that's just
the interaction with the MSP instance of sendmail, and not the delivery
to the webmail server.

Anyhow, follow the progress of the message through to delivery by
following the logging in /var/log/maillog.  You can also examine the
mail queues by:

# mailq -v  (Shows the main sendmail mail queue)
# mailq -Ac -v  (Shows the MSP sendmail mail queue)

Usually you would have to be exceptionally fast and lucky to catch a
message actually in the MSP mail queue.  Messages getting stuck there
indicates a problem with your local sendmail setup.

One thing to check is that your ISP does not block outgoing traffic to
port 25 -- this is frequently done as an anti-spam measure.  In that
case, you will need to relay all mail via your ISPs servers by using the
smarthost setting described in another answer.

Beyond that, you should now see one of three results:

* Mail accepted by your webmail provider and shows up in your
  mailbox.  Job done.

* Mail rejected by your webmail provider.  Hopefully with some sort
  of error message that will tell you why the message was rejected.
  In this case, you're looking at making sure the messages
  generated from your camera don't look like spam.  Generally this
  boils down to making sure that the addresses in the message
  headers can be looked up in the DNS both forwards and backwards,
  and that your FreeBSD server also identifies itself (in the EHLO
  part of the SMTP dialogue) with a similarly verifiable name.

* Mail accepted by your webmail provider, but then disappears
  without trace.  In principle this shouldn't happen, but in
  practice as a SMTP service provider it's hard to avoid completely
  and still provide a competent anti-spam and anti-virus filter.
  In this case, you need to talk to the webmail provider and get
  them to examine the mail logs and tell you what the problem was
  with your message.  It could be the same sort of DNS address
  verification stuff as above, or it could be something to do with
  the actual content you're sending.

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 

Re: i386 wine on amd64 - DRI a lost cause?

2010-07-02 Thread David Naylor
On Friday 02 July 2010 01:35:05 xorquew...@googlemail.com wrote:
 On 2010-07-01 22:16:26, David Naylor wrote:
  Have you tried the packages from http://people.freebsd.org/~ivoras/wine/
  
  They worked for me with nvidia and intel.
 
 Thanks, but as I mentioned in the hackers@ thread (and possibly this one),
 it's actually DRI that's the problem. I can't even run 32-bit glxinfo
 reliably in the chroot. libGL often receives EFAULT when doing various
 ioctls on /dev/dri/card0 and sometimes crashes outright.

That is interesting as I am able to play Warcraft 3 on an intel laptop.  I 
don't think it is using software rendering.  Wine runs without crashing and 
does require libGL to launch the game.

I have also played Command and Conquer 3 on nvidia (but the proprietry nvidia 
driver does not use dri).  

Good luck


signature.asc
Description: This is a digitally signed message part.


Re: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/07/2010 22:29:54, Ed Flecko wrote:
 Henrik,
 When I FIRST installed 8.0, I did create a separate /home partition.
 When I installed the kernel and starting running out of space in / , I
 thought O.K...I'll let FreeBSD make the partition sizes IT wants to
 and see if I have the same problem, and I did.
 
 Apparently, 512M is just, not, quite big enough so I think I'll try 1G
 to give me plenty of room.

Is it time for me to start advocating one big partition again?

This may not be the consensus view, but I have found that for a quiet
life and general lack of botheration it helps to create *only two*
partitions on your hard drive:

 b: Swap -- usually 2x RAM
 a: Everything else

Now, I've run this setup on literally hundreds of servers without
problems.  The usual argument against doing this is but a run-away
process might log so much that is fills your hard drive.  This is true.
 You might also be killed by a lightning strike the next time you leave
your house.  Run-away logfiles are actually pretty rare, and given that
80GB would be considered a pretty small hard drive nowadays, and you can
fit a standard FreeBSD install with quite a lot of extra software inside
10GB, you're likely to have sufficient empty space that you'ld get days
of warning before it caused real trouble.  In which case, newsyslog(8)
is your friend.  Cycling logs based on size and checking that every hour
will avoid almost all trouble.  You do monitor disk space usage on your
servers don't you?  Cacti is in ports and its pretty easy to set up, as
are several other alternatives.

Watch this list: you'll see people having trouble with too small root
partitions with great regularity.  I don't think I've /ever/ seen anyone
ask about dealing with a process generating huge amounts of log data.

Even if you do fill up the hard drive, it's not actually guaranteed
disaster.  FreeBSD itself will keep running just fine.  So will most web
applications -- although you won't get any logging.  Simply delete some
of the excess files, and the system will spring back to normal function.
 Filling the partition certainly will crash a database, but for serious
RDBMS setups, I generally make an exception and put the database working
files onto their own partition[*].

Nowadays too, I much prefer using ZFS -- so I have *one* zpool from
which is allocated all of the space for the zdevs on the system.  This
is much the best of both worlds -- you get as many filesystems as you
can eat, but each of them can use as much of the total available space
as it needs to.

Cheers,

Matthew

[*] As this usually involves hardware RAID10 with plenty of cache and a
BBU on at least 4 x 15k RPM SAS2 drives, it would generally be on a
separate partition in any case.

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwtllkACgkQ8Mjk52CukIyTOwCeJYhR6kY6wxmP+WlNyGF/eJte
I0wAnRuULVWsjqxFAHaL1SFFTJd2sMMW
=T9JF
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Svein Skogen (Listmail Account)
On 02.07.2010 09:33, Matthew Seaman wrote:
 On 01/07/2010 22:29:54, Ed Flecko wrote:
 Henrik,
 When I FIRST installed 8.0, I did create a separate /home partition.
 When I installed the kernel and starting running out of space in / , I
 thought O.K...I'll let FreeBSD make the partition sizes IT wants to
 and see if I have the same problem, and I did.
 
 Apparently, 512M is just, not, quite big enough so I think I'll try 1G
 to give me plenty of room.
 
 Is it time for me to start advocating one big partition again?
 
 This may not be the consensus view, but I have found that for a quiet
 life and general lack of botheration it helps to create *only two*
 partitions on your hard drive:
 
  b: Swap -- usually 2x RAM
  a: Everything else
 

I usually (today) set up something similar. I sysinstall FreeBSD onto a
CF card with the one-big-root method, then create a zpool (on
spinning-metal-storage) where I create the usr, tmp, var fs'es, tar|tar
the originals over and fix the mountpoint info on the zfs'es. Then I add
swap on a zvol (since I don't know how to properly use a kernel dump, I
don't need swap to store it).

I use this method everywhere except on VMs inside VMWare ESXi. It's been
my painful experience that zfs inside vmware machines is a bad idea.

//Svein

-- 
+---+---
  /\   |Svein Skogen   | sv...@d80.iso100.no
  \ /   |Solberg Østli 9| PGP Key:  0xE5E76831
   X|2020 Skedsmokorset | sv...@jernhuset.no
  / \   |Norway | PGP Key:  0xCE96CE13
|   | sv...@stillbilde.net
 ascii  |   | PGP Key:  0x58CD33B6
 ribbon |System Admin   | svein-listm...@stillbilde.net
Campaign|stillbilde.net | PGP Key:  0x22D494A4
+---+---
|msn messenger: | Mobile Phone: +47 907 03 575
|sv...@jernhuset.no | RIPE handle:SS16503-RIPE
+---+---
 If you really are in a hurry, mail me at
   svein-mob...@stillbilde.net
 This mailbox goes directly to my cellphone and is checked
even when I'm not in front of my computer.

 Picture Gallery:
  https://gallery.stillbilde.net/v/svein/




signature.asc
Description: OpenPGP digital signature


Re: Convert all packages to ports

2010-07-02 Thread Mike Clarke
On Friday 02 July 2010, Chris Stankevitz wrote:

 --- On Thu, 7/1/10, Chris Stankevitz chrisstankev...@yahoo.com 
wrote:
  Q: Is there a simple way to replace each package with the
  locally compiled port?

 portmaster -f -a

  Ideally the procedure will not ask me any questions

 Be prepared to answer hundreds of options questions.  To take the
 default option you must press TAB, ENTER to each query.  Have fun!

Would portmaster -Gfa help ?

From the man page:

-G  prevents the recursive 'make config' (overrides --force-config)

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


Re: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread krad
On 2 July 2010 08:33, Matthew Seaman m.sea...@infracaninophile.co.ukwrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 01/07/2010 22:29:54, Ed Flecko wrote:
  Henrik,
  When I FIRST installed 8.0, I did create a separate /home partition.
  When I installed the kernel and starting running out of space in / , I
  thought O.K...I'll let FreeBSD make the partition sizes IT wants to
  and see if I have the same problem, and I did.
 
  Apparently, 512M is just, not, quite big enough so I think I'll try 1G
  to give me plenty of room.

 Is it time for me to start advocating one big partition again?

 This may not be the consensus view, but I have found that for a quiet
 life and general lack of botheration it helps to create *only two*
 partitions on your hard drive:

 b: Swap -- usually 2x RAM
 a: Everything else

 Now, I've run this setup on literally hundreds of servers without
 problems.  The usual argument against doing this is but a run-away
 process might log so much that is fills your hard drive.  This is true.
  You might also be killed by a lightning strike the next time you leave
 your house.  Run-away logfiles are actually pretty rare, and given that
 80GB would be considered a pretty small hard drive nowadays, and you can
 fit a standard FreeBSD install with quite a lot of extra software inside
 10GB, you're likely to have sufficient empty space that you'ld get days
 of warning before it caused real trouble.  In which case, newsyslog(8)
 is your friend.  Cycling logs based on size and checking that every hour
 will avoid almost all trouble.  You do monitor disk space usage on your
 servers don't you?  Cacti is in ports and its pretty easy to set up, as
 are several other alternatives.

 Watch this list: you'll see people having trouble with too small root
 partitions with great regularity.  I don't think I've /ever/ seen anyone
 ask about dealing with a process generating huge amounts of log data.

 Even if you do fill up the hard drive, it's not actually guaranteed
 disaster.  FreeBSD itself will keep running just fine.  So will most web
 applications -- although you won't get any logging.  Simply delete some
 of the excess files, and the system will spring back to normal function.
  Filling the partition certainly will crash a database, but for serious
 RDBMS setups, I generally make an exception and put the database working
 files onto their own partition[*].

 Nowadays too, I much prefer using ZFS -- so I have *one* zpool from
 which is allocated all of the space for the zdevs on the system.  This
 is much the best of both worlds -- you get as many filesystems as you
 can eat, but each of them can use as much of the total available space
 as it needs to.

Cheers,

Matthew

 [*] As this usually involves hardware RAID10 with plenty of cache and a
 BBU on at least 4 x 15k RPM SAS2 drives, it would generally be on a
 separate partition in any case.

 - --
 Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkwtllkACgkQ8Mjk52CukIyTOwCeJYhR6kY6wxmP+WlNyGF/eJte
 I0wAnRuULVWsjqxFAHaL1SFFTJd2sMMW
 =T9JF
 -END PGP SIGNATURE-
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org




all i can say is your a brave boy 8) A 1 TB+ / slice would take ages to
fsck.

Of course all these issues go away with zfs
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


ssh_exchange_identification: Connection closed by remote host

2010-07-02 Thread John Almberg

Hi guys,

Woke up this morning and discovered that one of my FreeBSD 7.2 servers 
was down. When I try to SSH into the box, I get this:


~ 510 $ ssh m...@my.example.com
ssh_exchange_identification: Connection closed by remote host

FTP doesn't work, either, but the DNS server on the machine responds to 
queries, and I can ping the box.


Any ideas on what might be the problem?

Thanks: John

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


Re: ssh_exchange_identification: Connection closed by remote host

2010-07-02 Thread Christer Solskogen
On Fri, Jul 2, 2010 at 12:52 PM, John Almberg jalmb...@identry.com wrote:

 ~ 510 $ ssh m...@my.example.com
 ssh_exchange_identification: Connection closed by remote host


Locked account, maybe?

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


/var/log/messages empty since June 26 :-/

2010-07-02 Thread Gilles
Hello

On a FreeBSD 6.3 server sitting in a corner of the office not doing
much work,  I noticed that /var/log/messages was turned over and has
been empty since 26 June:

# tail /var/log/messages
Jun 26 16:00:00 freebsd newsyslog[5320]: logfile turned over due to
size100K

# ll /var/log/
-rw-r--r--   1 root  wheel  78 26 jui 16:00 messages
-rw-r--r--   1 root  wheel8396 26 jui 16:00 messages.0.bz2
-rw-r--r--   1 root  wheel8329 30 mar 11:00 messages.1.bz2
-rw-r--r--   1 root  wheel8663  2 mar  2009 messages.2.bz2
-rw-r--r--   1 root  wheel9640 20 déc  2008 messages.3.bz2
-rw-r--r--   1 root  wheel6554 17 oct  2008 messages.4.bz2
-rw-r--r--   1 root  wheel5825 17 oct  2008 messages.5.bz2
(jui = June, jul = July)

I don't have enough experience with FreeBSD to understand the cause
for this, and how to solve it, so would appreciate any suggestion.

Thank you.

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


Re: /var/log/messages empty since June 26 :-/

2010-07-02 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/07/2010 12:11:16, Gilles wrote:
 Hello
 
   On a FreeBSD 6.3 server sitting in a corner of the office not doing
 much work,  I noticed that /var/log/messages was turned over and has
 been empty since 26 June:
 
 # tail /var/log/messages
 Jun 26 16:00:00 freebsd newsyslog[5320]: logfile turned over due to
 size100K
 
 # ll /var/log/
 -rw-r--r--   1 root  wheel  78 26 jui 16:00 messages
 -rw-r--r--   1 root  wheel8396 26 jui 16:00 messages.0.bz2
 -rw-r--r--   1 root  wheel8329 30 mar 11:00 messages.1.bz2
 -rw-r--r--   1 root  wheel8663  2 mar  2009 messages.2.bz2
 -rw-r--r--   1 root  wheel9640 20 déc  2008 messages.3.bz2
 -rw-r--r--   1 root  wheel6554 17 oct  2008 messages.4.bz2
 -rw-r--r--   1 root  wheel5825 17 oct  2008 messages.5.bz2
 (jui = June, jul = July)
 
 I don't have enough experience with FreeBSD to understand the cause
 for this, and how to solve it, so would appreciate any suggestion.

Is syslogd running?  Restarting syslogd would be a good thing to try in
any case:

   # /etc/rc.d/syslogd restart

This should result in some output to the system logs -- if you don't see
that, then your syslog.conf may be broken: syslogd can die silently in
those circumstances.  You'll need to run syslogd with the '-d' debugging
flag in addition to what flags you usually use in order to see what the
problem is.

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwtyzgACgkQ8Mjk52CukIzuCQCfS+eyBa/KJQnSrFUKLstmlLnA
9cQAn22j9hqDFuKTOlzydMUp71tNVFMS
=9Suy
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ssh_exchange_identification: Connection closed by remote host

2010-07-02 Thread John Almberg

Christer Solskogen wrote:

On Fri, Jul 2, 2010 at 12:52 PM, John Almbergjalmb...@identry.com  wrote:

   

~ 510 $ ssh m...@my.example.com
ssh_exchange_identification: Connection closed by remote host

 


Locked account, maybe?
   
I've tried several accounts and they all give the same result. There's 
also the fact that FTP and Apache seem to be broken, as well.




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


Re: /var/log/messages empty since June 26 :-/

2010-07-02 Thread Gilles
On Fri, 02 Jul 2010 12:19:20 +0100, Matthew Seaman
m.sea...@infracaninophile.co.uk wrote:
Is syslogd running?

Yes it is:

# ps aux | grep -i syslog | grep -v grep
root518  0,0  0,3  1404  1072  ??  Ss   Ven19 0:02,07
/usr/sbin/syslogd -s

 Restarting syslogd would be a good thing to try in
any case:

   # /etc/rc.d/syslogd restart

Looks like it did the trick:

# tail -f /var/log/messages
Jun 26 16:00:00 freebsd newsyslog[5320]: logfile turned over due to
size100K
Jul  2 13:26:45 freebsd syslogd: exiting on signal 15
Jul  2 13:26:45 freebsd syslogd: kernel boot file is
/boot/kernel/kernel

This should result in some output to the system logs -- if you don't see
that, then your syslog.conf may be broken: syslogd can die silently in
those circumstances.  You'll need to run syslogd with the '-d' debugging
flag in addition to what flags you usually use in order to see what the
problem is.

If the same issue pops up again, I'll try the -d option.

Thank you.

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


Re: ssh_exchange_identification: Connection closed by remote host

2010-07-02 Thread Bas Smeelen
On 07/02/2010 01:28 PM, John Almberg wrote:
 Christer Solskogen wrote:
 On Fri, Jul 2, 2010 at 12:52 PM, John Almbergjalmb...@identry.com 
 wrote:

   
 ~ 510 $ ssh m...@my.example.com
 ssh_exchange_identification: Connection closed by remote host

  

 Locked account, maybe?

 I've tried several accounts and they all give the same result. There's
 also the fact that FTP and Apache seem to be broken, as well.
It could be that your /var filesystem filled up




DISCLAIMER:
This e-mail is for the intended recipient(s) only.
Access, disclosure, copying, distribution or reliance on any of it by anyone 
else is prohibited.
If you have received it by mistake please let us know by reply and then delete 
it from your system.

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


Re: ssh_exchange_identification: Connection closed by remote host

2010-07-02 Thread John Almberg

Bas Smeelen wrote:

On 07/02/2010 01:28 PM, John Almberg wrote:
   

Christer Solskogen wrote:
 

On Fri, Jul 2, 2010 at 12:52 PM, John Almbergjalmb...@identry.com
wrote:


   

~ 510 $ ssh m...@my.example.com
ssh_exchange_identification: Connection closed by remote host


 

Locked account, maybe?

   

I've tried several accounts and they all give the same result. There's
also the fact that FTP and Apache seem to be broken, as well.
 

It could be that your /var filesystem filled up
   

I'm on the console, now. Looks like a swapspace problem...

The first terminal is scrolling by the swapspace messages really fast (it kills 
httpd, but then starts again).
I tried logging in on the 2nd and 3rd virtual console, but hangs after I type 
root - never prompts for password.

Is there anything I can do besides rebooting?

On that subject... does Ctrl-Alt-Del initiate an orderly shutdown?

-- John

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


/usr/sbin/periodic security check changing date format

2010-07-02 Thread Mike Clarke
The daily security check run by /usr/sbin/periodic has started to change 
the date format when checking suid files with the result that all the 
files are flagged as changed.

On Wednesday I had the following ...

curlew.lan setuid diffs:
--- /var/log/setuid.today   2010-06-06 09:01:14.0 +0100
+++ /tmp/security.6Np9Q7Bn  2010-06-30 11:30:48.0 +0100
@@ -1,70 +1,70 @@
- 164937 -r-sr-xr-x  1 rootwheel 18560 Jun  1 18:34:35 
2010 /bin/rcp

[snip]

+ 164937 -r-sr-xr-x  1 rootwheel 18560  1 Jun 18:34:35 
2010 /bin/rcp

Anacron wasn't running yesterday so the next report was today when it 
switched back from day month to month day...

curlew.lan setuid diffs:
--- /var/log/setuid.today   2010-06-30 11:30:48.0 +0100
+++ /tmp/security.Y7M72oUL  2010-07-02 00:08:44.0 +0100
@@ -1,70 +1,70 @@
- 164937 -r-sr-xr-x  1 rootwheel 18560  1 Jun 18:34:35 
2010 /bin/rcp

[snip]

+ 164937 -r-sr-xr-x  1 rootwheel 18560 Jun  1 18:34:35 
2010 /bin/rcp

And I'm sure I haven't made any changes to the system in the last few 
days which might cause this format change.

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


Re: ssh_exchange_identification: Connection closed by remote host

2010-07-02 Thread Bas Smeelen

 
 Locked account, maybe?


 I've tried several accounts and they all give the same result. There's
 also the fact that FTP and Apache seem to be broken, as well.
  
 It could be that your /var filesystem filled up

 I'm on the console, now. Looks like a swapspace problem...

 The first terminal is scrolling by the swapspace messages really fast
 (it kills httpd, but then starts again).
 I tried logging in on the 2nd and 3rd virtual console, but hangs after
 I type root - never prompts for password.

 Is there anything I can do besides rebooting?

 On that subject... does Ctrl-Alt-Del initiate an orderly shutdown?

You can type shutdown -r now on the console, you probably won't see it
because of the messages but it will reboot your machine or you can use
ctrl+alt+del
Check your messages log when it's up again to see what has gone wrong
Good luck
bas


DISCLAIMER: This e-mail is for the intended recipient(s) only. Access, 
disclosure, copying,
distribution or reliance on any of it by anyone else is prohibited. If you have 
received it by
mistake please let us know by reply and then delete it from your system.

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


Re: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Robert Huff
krad writes:

  all i can say is your a brave boy 8) A 1 TB+ / slice would take
  ages to fsck.

For ages being less than ten (fifteen ?) minutes on a modern
system with reasonable memory ...
... which should be necessary very rarely.  Even on my test
system, time between involuntary reboots is measured in weeks.


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


Re: ssh_exchange_identification: Connection closed by remote host

2010-07-02 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/07/2010 12:44:48, John Almberg wrote:
 I'm on the console, now. Looks like a swapspace problem...
 
 The first terminal is scrolling by the swapspace messages really fast
 (it kills httpd, but then starts again).
 I tried logging in on the 2nd and 3rd virtual console, but hangs after I
 type root - never prompts for password.
 
 Is there anything I can do besides rebooting?
 
 On that subject... does Ctrl-Alt-Del initiate an orderly shutdown?

If you can't log in -- even on the console -- then rebooting is really
your only option.  Ctrl-Alt-Del should bring the system down cleanly if
you haven't disabled that functionality.  Otherwise, just toggle the power.

The symptoms you're seeing could well be due to filesystem problems or
to some filesystem filling up (/tmp is a prime suspect) or due to
running out of memory+swap.  Some sort of memory leak sounds pretty
likely actually.

Probably best to bring the system up in single user mode and run fsck on
all the filesystems manually -- that will show if you've got h/w
problems with drives and possibly with disk controllers or cabling too.
 Then check for overfull filesystems.  You may not find any -- rebooting
can clear a number of conditions where disk space is not released back
to the OS properly after use.  You may or may not find any clues as to
what went wrong in the system logs.  In the absence of any other clues,
the only option is to monitor the server closely and wait for something
similar to happen again.  Hopefully if there is a next time, you'll be
able to catch it and fix the underlying problem before it takes the
machine out a second time.

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwt1ZkACgkQ8Mjk52CukIwRVgCfXTHymgNMOwMN69H5NxwdTUsV
OjwAn2TPAgiHgW94+4swodm4mQbKhYIg
=iWlM
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ssh_exchange_identification: Connection closed by remote host

2010-07-02 Thread John Almberg



On that subject... does Ctrl-Alt-Del initiate an orderly shutdown?
 


If you can't log in -- even on the console -- then rebooting is really
your only option.  Ctrl-Alt-Del should bring the system down cleanly if
you haven't disabled that functionality.  Otherwise, just toggle the power.

The symptoms you're seeing could well be due to filesystem problems or
to some filesystem filling up (/tmp is a prime suspect) or due to
running out of memory+swap.  Some sort of memory leak sounds pretty
likely actually.

Probably best to bring the system up in single user mode and run fsck on
all the filesystems manually -- that will show if you've got h/w
problems with drives and possibly with disk controllers or cabling too.
  Then check for overfull filesystems.  You may not find any -- rebooting
can clear a number of conditions where disk space is not released back
to the OS properly after use.  You may or may not find any clues as to
what went wrong in the system logs.  In the absence of any other clues,
the only option is to monitor the server closely and wait for something
similar to happen again.  Hopefully if there is a next time, you'll be
able to catch it and fix the underlying problem before it takes the
machine out a second time.

   
Yes, I can't log in. I get a login prompt, but no password prompt. I'm 
going to try ctrl-alt-del and see what happens.


Crossing fingers...

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


Re: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Bruce Cran
On Fri, 02 Jul 2010 08:33:45 +0100
Matthew Seaman m.sea...@infracaninophile.co.uk wrote:

 Is it time for me to start advocating one big partition again?
 
 This may not be the consensus view, but I have found that for a quiet
 life and general lack of botheration it helps to create *only two*
 partitions on your hard drive:
 
  b: Swap -- usually 2x RAM
  a: Everything else

This is perfect bikeshed material: people believe FreeBSD's
partitioning scheme is superior to (for example) Linux, and that by
dumping everything in a single partition we'd be dumbing it down. I
still create separate partitions through paranoia, to avoid corrupting
the entire disk if for example /usr/obj is being written to when the
power goes out. I don't know if that would happen but I've had too many
problem over the years with various filesystems that I don't trust it.
With ZFS I've gone even further and created separate filesystems
for /usr/src, /usr/ports etc. The output of 'mount' looks somewhat like
a Solaris machine now :)

I have a task on my TODO list to increase the sizes of the partitions in
sysinstall: for example / goes to 1GB, /var to 4GB. I hope to commit
the code in the next couple of weeks.

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


Re: ssh_exchange_identification: Connection closed by remote host

2010-07-02 Thread Bas Smeelen
On 07/02/2010 02:09 PM, John Almberg wrote:

 On that subject... does Ctrl-Alt-Del initiate an orderly shutdown?
  

 If you can't log in -- even on the console -- then rebooting is really
 your only option.  Ctrl-Alt-Del should bring the system down cleanly if
 you haven't disabled that functionality.  Otherwise, just toggle the
 power.

 The symptoms you're seeing could well be due to filesystem problems or
 to some filesystem filling up (/tmp is a prime suspect) or due to
 running out of memory+swap.  Some sort of memory leak sounds pretty
 likely actually.

 Probably best to bring the system up in single user mode and run fsck on
 all the filesystems manually -- that will show if you've got h/w
 problems with drives and possibly with disk controllers or cabling too.
   Then check for overfull filesystems.  You may not find any --
 rebooting
 can clear a number of conditions where disk space is not released back
 to the OS properly after use.  You may or may not find any clues as to
 what went wrong in the system logs.  In the absence of any other clues,
 the only option is to monitor the server closely and wait for something
 similar to happen again.  Hopefully if there is a next time, you'll be
 able to catch it and fix the underlying problem before it takes the
 machine out a second time.


 Yes, I can't log in. I get a login prompt, but no password prompt. I'm
 going to try ctrl-alt-del and see what happens.

 Crossing fingers...
Sorry  I missed that you can't login.
Good luck



DISCLAIMER: This e-mail is for the intended recipient(s) only. Access, 
disclosure, copying,
distribution or reliance on any of it by anyone else is prohibited. If you have 
received it
by mistake please let us know by reply and then delete it from your system.

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


Re: ssh_exchange_identification: Connection closed by remote host

2010-07-02 Thread John Almberg



If you can't log in -- even on the console -- then rebooting is really
your only option.  Ctrl-Alt-Del should bring the system down cleanly if
you haven't disabled that functionality.  Otherwise, just toggle the
power.

The symptoms you're seeing could well be due to filesystem problems or
to some filesystem filling up (/tmp is a prime suspect) or due to
running out of memory+swap.  Some sort of memory leak sounds pretty
likely actually.

Probably best to bring the system up in single user mode and run fsck on
all the filesystems manually -- that will show if you've got h/w
problems with drives and possibly with disk controllers or cabling too.
   Then check for overfull filesystems.  You may not find any --
rebooting
can clear a number of conditions where disk space is not released back
to the OS properly after use.  You may or may not find any clues as to
what went wrong in the system logs.  In the absence of any other clues,
the only option is to monitor the server closely and wait for something
similar to happen again.  Hopefully if there is a next time, you'll be
able to catch it and fix the underlying problem before it takes the
machine out a second time.


   

Yes, I can't log in. I get a login prompt, but no password prompt. I'm
going to try ctrl-alt-del and see what happens.

Crossing fingers...
 

Sorry  I missed that you can't login.
Good luck
   
So, ctrl-alt-del did the trick. I was able to log in and actually, the 
whole box came up and everything seems to be working.


I thought for sure I'd find that my /var directory was full up, but it's 
only at 77% (that's the weak spot on this box... I wish I'd made the 
/var partition bigger.)


The message log is full of these messages:

38054 Jul  2 08:13:02 qu kernel: swap_pager_getswapspace(16): failed

If I run swapinfo, I get this:

[mas...@qu:log] swapinfo
Device  1K-blocks UsedAvail Capacity
/dev/ar0s1b   2055952  208  2055744 0%

I looked back in the log file to see if there were any clues when the 
problem began and found this:


Jul  2 03:19:25 qu kernel: swap_pager: out of swap space
Jul  2 03:19:26 qu kernel: swap_pager_getswapspace(7): failed
Jul  2 03:19:26 qu kernel: pid 93543 (mysqld), uid 88, was killed: out 
of swap space
Jul  2 03:19:26 qu kernel: pid 85077 (ruby18), uid 1023, was killed: out 
of swap space

Jul  2 03:19:25 qu root: Check for bad ssh behavior
Jul  2 03:20:05 qu root: Check for bad ssh behavior
Jul  2 03:20:49 qu kernel: swap_pager_getswapspace(16): failed
Jul  2 03:20:49 qu kernel: swap_pager_getswapspace(15): failed
Jul  2 03:20:49 qu kernel: swap_pager_getswapspace(14): failed
Jul  2 03:20:49 qu kernel: swap_pager_getswapspace(16): failed
Jul  2 03:20:49 qu last message repeated 2 times

It pretty much goes on forever from there.

Is there any other place I can look for clues as to why I ran out of 
swap space? This machine is basically a webserver, running apache/mysql 
and ruby on rails. It's been running for over a year with no problems. 
No new software introduced on the box, recently.


-- John

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


Re: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Jerry McAllister
On Thu, Jul 01, 2010 at 02:29:54PM -0700, Ed Flecko wrote:

 Henrik,
 When I FIRST installed 8.0, I did create a separate /home partition.
 When I installed the kernel and starting running out of space in / , I
 thought O.K...I'll let FreeBSD make the partition sizes IT wants to
 and see if I have the same problem, and I did.
 
 Apparently, 512M is just, not, quite big enough so I think I'll try 1G
 to give me plenty of room.

Apparently also 64 bit systems take more room.   I didn't notice
it was a 64 bit system when I responded yesterday.
You might want to jump to 768 MB for root.

jerry

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


Re: /var/log/messages empty since June 26 :-/

2010-07-02 Thread Fbsd8

Gilles wrote:

Hello

On a FreeBSD 6.3 server sitting in a corner of the office not doing
much work,  I noticed that /var/log/messages was turned over and has
been empty since 26 June:

# tail /var/log/messages
Jun 26 16:00:00 freebsd newsyslog[5320]: logfile turned over due to
size100K

# ll /var/log/
-rw-r--r--   1 root  wheel  78 26 jui 16:00 messages

-rw-r--r--   1 root  wheel8396 26 jui 16:00 messages.0.bz2
-rw-r--r--   1 root  wheel8329 30 mar 11:00 messages.1.bz2
-rw-r--r--   1 root  wheel8663  2 mar  2009 messages.2.bz2
-rw-r--r--   1 root  wheel9640 20 déc  2008 messages.3.bz2
-rw-r--r--   1 root  wheel6554 17 oct  2008 messages.4.bz2
-rw-r--r--   1 root  wheel5825 17 oct  2008 messages.5.bz2
(jui = June, jul = July)

I don't have enough experience with FreeBSD to understand the cause
for this, and how to solve it, so would appreciate any suggestion.

Thank you.


Based on the dates of the messages logs looks like not much is being
logged for a whole year at a time. So what you are seeing is normal.


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


'file' Command Giving False Positives

2010-07-02 Thread Tim Daneliuk

I have a data file with the content:

   LZasdadqjwjqwjqwjeqwe


'file' (incorrectly) reports this as an MS-DOS executable.

Does anyone happen to know the proper changes to 'magic' that would
fix this?

Thanks,
--

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


Re: Bourne .sh ?

2010-07-02 Thread Randal L. Schwartz
 Aiza == Aiza  aiz...@comclark.com writes:

Aiza Wow do I feel stupid. You saw through my question to the underlying 
problem
Aiza causing the need to strip off that stuff. I just changed the command from 
ls
Aiza -l to ls -1 and got what I wanted in the first place.

I'm surprised how often -1 is used when not needed.  ls is smart, and
automatically defaults to -1 if the output isn't a terminal.  Consider
the difference between:

$ ls

and

$ ls | cat

Back in the day, before the boys at Berkeley added multicolumn output,
there was a concern that changing the format of `ls` would break a lot
of scripts, so they were careful to do it in a backward-compatible
mechanism.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Arthur Chance

On 07/02/10 13:13, Bruce Cran wrote:

I have a task on my TODO list to increase the sizes of the partitions in
sysinstall: for example / goes to 1GB, /var to 4GB. I hope to commit
the code in the next couple of weeks.


As a matter of idle curiosity with a bit of education thrown in, why 4GB 
for /var? The last time I installed a new machine I made / 1GB as I'd 
found out from a previous install that 512MB wasn't really enough, and 
then decided to make /var bigger than the Handbook said as well and made 
it 3GB. This has turned out to be total overkill:


art...@fileserver df -h /var
Filesystem  SizeUsed   Avail Capacity  Mounted on
/dev/ad10s1d2.9G205M2.5G 8%/var

I'm sure my use of this machine is very simple and nowhere near as large 
as other people's but a leap of 4-16 times what it currently suggests in 
the Handbook seems a bit excessive, especially if people are installing 
onto older kit. OTOH, playing devil's advocate with myself, disks are 
huge these days so why not?


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


Running a script after a device's been plugged

2010-07-02 Thread Samuel Martín Moro
Hi,

In order to simplify our managing scripts, my project manager would like to
manage all devices (USB and serial) with the same name pattern (cuaa*,
cuad*, ... whatever).
He explained me he wants to keep cuaa0 and cuaa1, and then link each
/dev/da`n` to /dev/cuaa`n + 2`, ...


But, there is some things I'm not sure to understand:

1) I though that cuaa was used until FreeBSD7, then we had cuad, and since
FreeBSD8, it would be cuaU.
But one of our 7.2-RELEASE have both /dev/cuaU0 and dev/cuad0.
Did I miss something? What is cuaU doing here?
btw. it's my dev server, someone may have touched it. On the servers
installed from my generated CDs, no /dev/cuaU* at all...

2) We also provide serial DCF77 modules, and use them with ntpd, linking
them /dev/ttyd`n` to /dev/refclock-`n`
What is ttyd used for?
Can I assume I would use ttyd`n` only with my DCF modules, and so link them
to /dev/refclock-`n`, excluding them from my cuaa`n + x` mess?
Also, we would have to manage USB DCF77 modules soon; does anybody tried
them? How would them be named in /dev?

3) Last but not least, how to link a device once it's plugged in, and unlink
it once it's unplugged?
We're still providing 5.4 and 6.2 releases based versions. And I do not like
hal.
So I thought I could use /etc/devd.conf, with attach/detach directives, and
their actions calling a script that would create/delete the links.
Is there a cleaner way to do it? Would it be still usable in 8.x? (9.x?)


Thanks for your time and advices!



Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S
 (+033) 1 41 38 37 60
 1 Allée de la Venelle
 92150 Suresnes
 FRANCE
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


sysinstall fails when adding distributions

2010-07-02 Thread Kristaps Kūlis
Hi,
 On FreeBSD 8.1-RELEASE (i386) on IBM T43, sysinstall fails when trying to
add src distribution to already installed system (when starting to download
them from FTP). No network activity is observed.
coredump: http://www.ltn.lv/~kristapskulis/sysinstall.core
dmesg: http://www.ltn.lv/~kristapskulis/dmesg

 What I`m doing wrong and how to fix it ?

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


Re: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Robert Huff
Arthur Chance writes:

  As a matter of idle curiosity with a bit of education thrown in,
  why 4GB for /var? The last time I installed a new machine I made
  / 1GB as I'd found out from a previous install that 512MB wasn't
  really enough, and then decided to make /var bigger than the
  Handbook said as well and made it 3GB. This has turned out to be
  total overkill:

It is my understanding space used on /var is, well, variable.
While a generic system might only use, say, 300 mbytes 99.99 per
cent of the time, the other .01 might use 5 or 10 or 20 gbytes if
available. 


Robert Huff



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


Re: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Bruce Cran
On Fri, 02 Jul 2010 15:04:10 +0100
Arthur Chance free...@qeng-ho.org wrote:

 As a matter of idle curiosity with a bit of education thrown in, why
 4GB for /var? The last time I installed a new machine I made / 1GB as
 I'd found out from a previous install that 512MB wasn't really
 enough, and then decided to make /var bigger than the Handbook said
 as well and made it 3GB. This has turned out to be total overkill:
 
 art...@fileserver df -h /var
 Filesystem  SizeUsed   Avail Capacity  Mounted on
 /dev/ad10s1d2.9G205M2.5G 8%/var
 
 I'm sure my use of this machine is very simple and nowhere near as
 large as other people's but a leap of 4-16 times what it currently
 suggests in the Handbook seems a bit excessive, especially if people
 are installing onto older kit. OTOH, playing devil's advocate with
 myself, disks are huge these days so why not?
 

I came up with that value based on discussion on IRC. I also thought
that portsnap might take up quite a bit more than it actually does. It
perhaps doesn't need updated from its current value.

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


Re: Automated sysinstall install.cfg

2010-07-02 Thread Ross
TT is there a person who can help me to solve some problems with
TT sysinstall and its install.cfg.

TT How can i manage that my mfsroot executes custom commands ?

Before the installCommit command you generally only have access to
statically compiled commands (generally in the /stand directory) from
the mfsroot image used.

-= example lines in install.cfg
# Sleep for 15 seconds to stabilize things.
command=/stand/sleep 15
system
-=

After the installCommit command, a chroot will have occurred to the
installation mount point, and you must then use your installed binaries
to do work. Specify full paths for everything and note that there are
other oddities since not all things are online/configured, so try and
keep it as simple as possible.

-- 

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


Re: 'file' Command Giving False Positives

2010-07-02 Thread Dan Nelson
In the last episode (Jul 02), Tim Daneliuk said:
 I have a data file with the content:
 
 LZasdadqjwjqwjqwjeqwe
 
 'file' (incorrectly) reports this as an MS-DOS executable.

I dunno; if I create a file a.exe on my XP system with those contents, I
can run it from a cmd prompt, and it doesn't print any errors, so
technically it is an MS-DOS executable :)
 
 Does anyone happen to know the proper changes to 'magic' that would
 fix this?

Easiest fix would be to remove line 377 from
/usr/src/contrib/file/Magdir/msdos and rebuild  reinstall
/usr/src/lib/libmagic/ .  

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


Re: Bourne .sh ?

2010-07-02 Thread Chip Camden
On Jul 02 11:39, Aiza wrote:
 Chip Camden wrote:
 On Jul 02 07:43, Aiza wrote:
 I have a file containing this
 
 drwxrwxr-x  14 89987  546  512 Jun  6  2009 7.2-RELEASE
 drwxrwxr-x  14 89987  546  512 Mar 23 04:59 7.3-RELEASE
 drwxrwxr-x  13 89987  546  512 Nov 23  2009 8.0-RELEASE
 drwxrwxr-x  13 89987  546  512 Jul  1 04:56 8.1-RC2
 
 I want to strip off everything to the left of the release
 version so I end up with this.
 
 7.2-RELEASE
 7.3-RELEASE
 8.0-RELEASE
 8.1-RC2
 
 How would I code to do this?
 
 sed -e 's/.* //'  file
 
 assuming there are no trailing spaces on each line.
 
 Another alternative would be to create the list without all that detail:
 
 ls -1
 
 
 Wow do I feel stupid. You saw through my question to the underlying 
 problem causing the need to strip off that stuff. I just changed the 
 command from ls -l to ls -1 and got what I wanted in the first place.
 
 Thanks

You're welcome.  We're all learners here, but the man pages are an
excellent resource.

-- 
Sterling (Chip) Camden
http://camdensoftware.com | http://chipstips.com | http://chipsquips.com


pgpcdn7z4uN4s.pgp
Description: PGP signature


Re: 'file' Command Giving False Positives

2010-07-02 Thread Lowell Gilbert
Tim Daneliuk tun...@tundraware.com writes:

 I have a data file with the content:

LZasdadqjwjqwjqwjeqwe


 'file' (incorrectly) reports this as an MS-DOS executable.

Why is it incorrect?  LZ as the first two bytes in a file is (unless
my memory is badly mistaken) exactly what the old command.com looked for
as the flag of an executable.

 Does anyone happen to know the proper changes to 'magic' that would
 fix this?

That would be tricky, given that MS-DOS *would*, in fact, think this
file was a valid executable.  I don't think the syntax of magic is
powerful enough to distinguish this from a real executable.  You might
be able to do it by adding file(1) support for looking for invalid
opcodes, but that would get hairy very quickly...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Arthur Chance

On 07/02/10 15:38, Bruce Cran wrote:

On Fri, 02 Jul 2010 15:04:10 +0100
Arthur Chancefree...@qeng-ho.org  wrote:


As a matter of idle curiosity with a bit of education thrown in, why
4GB for /var? The last time I installed a new machine I made / 1GB as
I'd found out from a previous install that 512MB wasn't really
enough, and then decided to make /var bigger than the Handbook said
as well and made it 3GB. This has turned out to be total overkill:

art...@fileserver  df -h /var
Filesystem  SizeUsed   Avail Capacity  Mounted on
/dev/ad10s1d2.9G205M2.5G 8%/var

I'm sure my use of this machine is very simple and nowhere near as
large as other people's but a leap of 4-16 times what it currently
suggests in the Handbook seems a bit excessive, especially if people
are installing onto older kit. OTOH, playing devil's advocate with
myself, disks are huge these days so why not?



I came up with that value based on discussion on IRC. I also thought
that portsnap might take up quite a bit more than it actually does. It
perhaps doesn't need updated from its current value.


I suspect whoever you were talking to probably has more of a clue than I 
do. As a quick data point, I just ran portsnap fetch update while 
another process did a df /var; sleep 1 loop and /var increased by 
about 30MB at its peak. That was a week after the last port update. I've 
no idea how much space a portsnap fetch extract would take and would 
rather not do one right now. Similarly I've no idea how much 
freebsd-update might take.

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


Re: Automated sysinstall install.cfg

2010-07-02 Thread krad
On 2 July 2010 15:48, Ross we...@connection.ca wrote:

 TT is there a person who can help me to solve some problems with
 TT sysinstall and its install.cfg.

 TT How can i manage that my mfsroot executes custom commands ?

 Before the installCommit command you generally only have access to
 statically compiled commands (generally in the /stand directory) from
 the mfsroot image used.

 -= example lines in install.cfg
 # Sleep for 15 seconds to stabilize things.
 command=/stand/sleep 15
 system
 -=

 After the installCommit command, a chroot will have occurred to the
 installation mount point, and you must then use your installed binaries
 to do work. Specify full paths for everything and note that there are
 other oddities since not all things are online/configured, so try and
 keep it as simple as possible.

 --

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



Alternatively you could look at the pc-bsd installer. It will do advanced
setups  very easily, most of which are not possible with sysinstall (geom
stuff, zfs etc).

It will install standard freebsd, from a variety of formats. With a little
tinkering you should be able to detach the installer program from the
standard pcbsd image and use your own custom live os on a usb stick. You
would then have a lot of power.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: 'file' Command Giving False Positives

2010-07-02 Thread Polytropon
On Fri, 02 Jul 2010 11:25:20 -0400, Lowell Gilbert 
freebsd-questions-lo...@be-well.ilk.org wrote:
 Why is it incorrect?  LZ as the first two bytes in a file is (unless
 my memory is badly mistaken) exactly what the old command.com looked for
 as the flag of an executable.

If I ask *my* memory, it tells me that what you mean is MZ. As
far as I remember, those are the initials of a programmer involved
with the creation of the DOS binary executable format. :-)




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: 'file' Command Giving False Positives

2010-07-02 Thread Tim Daneliuk

On 7/2/2010 10:35 AM, Polytropon wrote:

On Fri, 02 Jul 2010 11:25:20 -0400, Lowell 
Gilbertfreebsd-questions-lo...@be-well.ilk.org  wrote:

Why is it incorrect?  LZ as the first two bytes in a file is (unless
my memory is badly mistaken) exactly what the old command.com looked for
as the flag of an executable.


If I ask *my* memory, it tells me that what you mean is MZ. As
far as I remember, those are the initials of a programmer involved
with the creation of the DOS binary executable format. :-)






Some OSs report both LZ and MZ as being DOS .exe, some only
report LZ.  Either way, when processing data files, there
needs to be a deeper check to avoid the false positive.
It may be that 'file' just isn't powerful enough to do this.

--

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


Re: 'file' Command Giving False Positives

2010-07-02 Thread Erik Trulsson
On Fri, Jul 02, 2010 at 05:35:04PM +0200, Polytropon wrote:
 On Fri, 02 Jul 2010 11:25:20 -0400, Lowell Gilbert 
 freebsd-questions-lo...@be-well.ilk.org wrote:
  Why is it incorrect?  LZ as the first two bytes in a file is (unless
  my memory is badly mistaken) exactly what the old command.com looked for
  as the flag of an executable.
 
 If I ask *my* memory, it tells me that what you mean is MZ. As
 far as I remember, those are the initials of a programmer involved
 with the creation of the DOS binary executable format. :-)

MZ is indeed what an MS-DOS style .EXE file should start with.
For an MS-DOS .COM file there is no header or other metadata in the
file so there is no good way of distinguishing it from any other binary
file.



-- 
Insert your favourite quote here.
Erik Trulsson
ertr1...@student.uu.se
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Bourne .sh ?

2010-07-02 Thread Anonymous
Aiza aiz...@comclark.com writes:

 I have a file containing this

 drwxrwxr-x  14 89987  546  512 Jun  6  2009 7.2-RELEASE
 drwxrwxr-x  14 89987  546  512 Mar 23 04:59 7.3-RELEASE
 drwxrwxr-x  13 89987  546  512 Nov 23  2009 8.0-RELEASE
 drwxrwxr-x  13 89987  546  512 Jul  1 04:56 8.1-RC2

 I want to strip off everything to the left of the release
 version so I end up with this.

 7.2-RELEASE
 7.3-RELEASE
 8.0-RELEASE
 8.1-RC2

 How would I code to do this?

Use...

- glob expansion + echo builtin, e.g.

$ cd /path/to/blah  echo *
or
$ cd /path/to/blah  for f in *; do echo $f; done

- field splitting, e.g.

$ ls -l | while read $(while [ $((i+=1)) -le 9 ]; do echo p$i; done); do 
echo $p9; done

- stat(1) if you need not only filename but e.g. date

Of course you can use smth like cut/sed/awk/whatever but they'll only
make your script slower if you use them often.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: sysinstall fails when adding distributions

2010-07-02 Thread Randi Harper
This has been fixed. Get a newer RC.

-- randi



On Fri, Jul 2, 2010 at 6:49 AM, Kristaps Kūlis kristaps.ku...@gmail.com wrote:
 Hi,
  On FreeBSD 8.1-RELEASE (i386) on IBM T43, sysinstall fails when trying to
 add src distribution to already installed system (when starting to download
 them from FTP). No network activity is observed.
 coredump: http://www.ltn.lv/~kristapskulis/sysinstall.core
 dmesg: http://www.ltn.lv/~kristapskulis/dmesg

  What I`m doing wrong and how to fix it ?

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

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


Re: Convert all packages to ports

2010-07-02 Thread Ian Smith
In freebsd-questions Digest, Vol 317, Issue 9, Message: 26
On Thu, 01 Jul 2010 18:52:54 -0400 Glen Barber glen.j.bar...@gmail.com wrote:
  On 7/1/10 5:58 PM, Chris Stankevitz wrote:
   --- On Thu, 7/1/10, Glen Barberglen.j.bar...@gmail.com  wrote:
   Once ports or packages are installed,
   there is no
   differentiation to the system.
  
   Interesting.  If this is true, then I can just start upgrading my 
   'pkg_add' installed packages using ports and eventually they will 
   all be converted over to 'make'.

The only difference is that a package is a port built with its default 
options.  Sometimes that might not be suitable and you'll want to make 
it with other options.  One way to tell if something was installed by 
making a port is that /var/db/ports will contain a directory for that 
port with the file 'options', created or updated by 'make config'.

   However, your comment seems to be in disagreement with online 
   warnings of do not mix 'pkg_add' packages with 'make' ports.
  
  portmaster will deinstall and reinstall (and I believe rollback if 
  something blows up).  You are correct - don't mix ports and packages.

I don't know where these 'do not mix ports and packages' warnings come 
from, but I suspect it's from people who think that they're different :)

If you like to run portsnap followed by portupgrade or portmaster every 
morning before breakfast, then yes, you might have to wait a day or two
now and again, for the package build systems to catch up with a freshly 
upgraded port.  Except when building a new set of release packages for 
all architectures - like soon with 8.1-RELEASE a'coming - there's not
usually much delay in package building these days.

And it's not true that packages are only built for releases; any port 
that doesn't have (eg) distribution restrictions on binary packages will 
find its way into the queue on the package build systems, and update the 
Latest/ package, after every update.

   My original question's intention was to prevent me from having a 
   system where some packages were installed with 'pkg_add' while 
   others were installed with 'make'.
  
  portmaster is probably the easiest road to get you there.

Sure, or portupgrade.  I think both have -P switches to use packages 
rather than make from source where the matching package is available, 
which is pretty handy on less than awesome boxes for Big Things like 
Xorg, KDE and the like .. not to mention Java ..

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


SMT AI SPARE PARTS Manufacturing and sales...

2010-07-02 Thread smtsky
Hellow Dear:
We company was manufacturing ans sales SMT/AI's spare parts:
More information please seewww.smtsky.com. 
Business email:s...@smtsky.com.
 
1.SMT splice tape: double/single splice tape:8mm-24mm.
2.SMT printer squeegee holder blade/rubber:DEK MPM MINIMI KME...
3.SMT stencil wiper clera wiper:so DEK MPM KME SANYO JUKI MINAMI
4.SMT copy nozzle serial: all smt machine nozzle.
5.YAMAHA copy feeder: CL8mm 12mm 16mm 24mm 32mm 44mm 56mm 72mm
6.JUKI copy feeder:AF/CF8*2/8*4mm;FF12/16/24/32/44/56/72mm.
7.JUKI LASER/MOTOR/DRIVER repair:so KE750 KE2010-2080 FX-1...

follow was our warehouse store goods in hotsale...
follow quotation indate in 1 week
NAMEDISCRIPTIONQUANTITYU/price USDREMARK
CM602/402 FEEDER8MM150800original new
CM602/402 FEEDER12/16MM200600original new
CM602/402 FEEDER24/32MM200750original new
CM602/402 FEEDER44/56MM201200original new
Philips/assembleon double feeder8mm TTF8mm PA2657/00150500original used
Philips/assembleon feeder16mm ITF2 16K7 13-PA2654/255600original new
Philips/assembleon feeder32mm ITF2 32K7 13-PA2654/453950original new
fuji cp7/cp6 feeder8*2mm 0802C200250copy new
fuji cp7/cp6 feeder8*2mm 0802R200250copy new
fuji cp7/cp6 feeder8*4mm 0802C200220copy new
fuji cp7/cp6 feeder8*4mm 0802R200220copy new
fuji CP7 NOZZLE0.7mm50015original new
fuji CP7 NOZZLE1.0mm50015original new
fuji CP7 NOZZLE1.3mm50015original new
fuji cp7 nozzleall size80002copy new
fuji cp6 nozzleall size80002copy new
fuji nxt nozzleH08/12 head all size600030copy new
fuji nxt nozzleH04 head all size500045copy new
fuji nxt nozzleH01 head all size500060copy new
fuji cp7 nozzle shaftAPGPH1300152000original new
fuji qp3 power feeder12mm power15300original used
fuji qp3 power feeder16mm20450original used
fuji qp3 power feeder24mm20600original used
fuji qp3 power feeder32mm15850original used
CM202 FEEDER8*2MM20350original NEW
CM202 FEEDER8*4MM20300original NEW
CM202 FEEDER12*4MM5350original used
CM202 FEEDER12*8MM5350original used
CM202 FEEDER16*8MM5450original used
CM202 FEEDER16*4MM5450original used
CM202 FEEDER16*12MM3450original used
CM202 FEEDER24*12MM3650original used
CM202 FEEDER24*16MM3650original used
CM202 FEEDER24*8MM2650original used
YAMAHA FEEDER CL8*2 0201chip200150copy new
YAMAHA FEEDER CL8*4 0402chip200130copy new
YAMAHA FEEDER CL8*4MM200130copy new
YAMAHA FEEDER CL12MM50250copy new
YAMAHA FEEDER CL16MM50300copy new
YAMAHA FEEDER CL24MM50400copy new
YAMAHA FEEDER CL32MM50600copy new
YAMAHA FEEDER CL44MM50800copy new
YAMAHA FEEDER CL56MM30950copy new
YAMAHA FEEDER CL72MM101600copy new
JUKI FEEDERCF8*2 0201chip200200copy new
JUKI FEEDERCF8*2 0402chip200190copy new
JUKI FEEDERCF8*4MM250180copy new
JUKI FEEDERFF12MM50250copy new
JUKI FEEDERFF16MM50300copy new
JUKI FEEDERFF24MM30450copy new
JUKI FEEDERFF32MM30600copy new
JUKI FEEDERFF44MM25800copy new
JUKI FEEDERFF56MM20950copy new
JUKI FEEDERFF72MM101600copy new
JUKI FEEDERAF8*4MM150180copy new
fuji cp6/cp7 valvePCD2413-NB-D24SP50130original new
fuji cp6/cp7 valvePCD245-NB-D2450130original new
fuji cp6/cp7 valveCYLINDER SPCHA7-25-12-Z3-B1000130copy new
fji cp6 filtercp681copy new
fuji cp7 filtercp781copy new
yamaha filteryv100/yg20080.3copy new
juki filterke750/ke2010-206080.3copy new
juki filterke750/ke2070/ke208082copy new
panasonic filtercm20280.6copy new
panasonic filtermv2/msh80.3copy new
panasonic filtercm602/cm21280.6copy new
cm402/cm602 nozzle110s 115s 120s 205s50080/40original/copy
kme cm202 nozzle115 110 120 130 20550080/40original/copy
kme cm20 cm301 nozzle1001 1002 1003 1006500150/65original/copy
yamaha yv100 nozzle31 32 33 71a/f 72 73 350030copy new
yamaha yg200 nozzle201 202 203…350040copy new
juki ke750 nozzle101 102 103 105 105350035copy new
juki ke2010-5280 nozzle500 501 503-508350040copy new
sanyo tcm-3000/x200 nozzle81 62 71 51…350020copy new
hitachi nozzleAV01 RV01 VC12 ZA04350050copy new
FUJI CP6 NOZZLE0.1 0.7 1.0 1.3…35002copy new
FUJI CP7/8 NOZZLE0.7 1.0 1.3 1.8…35002copy new
MV2C MV2F MV2VB NOZZLE1.0*0.8 1.0*1.8…350020copy new
MSH2/MSH3 NOZZLE1.0*0.8 1.2*1.8…350030copy new
TEL:+86-756-3899556/3899557; Business Email:s...@smtsky.com, Romeo.Han
all business email:  s...@smtsky.com,TKS!
 
Best Wishes 
 
We manufactures SMT AI spare parts  consuming material
 
Company:SMTSKY ASIA LIMITED 
Add:202-4-2,Huanping road 323#,Nanping,Zhuhai China.
Contact:Romeo.Han;Moblie:+86-013326671139 
TEL:+86-756-3899556/3899557;FAX:+86-756-3899006 ext:0 
Email: s...@smtsky.com;  smt...@vip.163.com
Website:www.smtsky.com
MSN:romeohan...@hotmail.com Skype:romeo.han
FEDEX express account:271686838.  PC:519060 ___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

Re: Convert all packages to ports

2010-07-02 Thread Polytropon
Please let me add this:

On Sat, 3 Jul 2010 03:37:14 +1000 (EST), Ian Smith smi...@nimnet.asn.au wrote:
 The only difference is that a package is a port built with its default 
 options.  Sometimes that might not be suitable and you'll want to make 
 it with other options.  One way to tell if something was installed by 
 making a port is that /var/db/ports will contain a directory for that 
 port with the file 'options', created or updated by 'make config'.

A package is a precompiled port - as you said correctly, using
the default options for that port. Nothing more or less. It *is*
that simple. :-)



 I don't know where these 'do not mix ports and packages' warnings come 
 from, but I suspect it's from people who think that they're different :)

I think it may have come from PC-BSD, taking into mind their PBI
system, like do not mix PBI with ports or packages. :-)



 And it's not true that packages are only built for releases; any port 
 that doesn't have (eg) distribution restrictions on binary packages will 
 find its way into the queue on the package build systems, and update the 
 Latest/ package, after every update.

Correct again. Packages are updated regularly (with the corresponding
port's default options), but it may (!) be interesting to incorporate
daily changes of the ports tree and keep the own installed software
up-to-date, in an absolutely bleeding-edge state.

Personally, there are only few ports that I really want or need to
install via ports. Specific optimization, e. g. due to limited
hardware resources, as well as for example codecs to include (I'm
talking about mencoder / mplayer here), or the pure absence of
precompiled packages (like OpenOffice) requires this.



My original question's intention was to prevent me from having a 
system where some packages were installed with 'pkg_add' while 
others were installed with 'make'.
   
   portmaster is probably the easiest road to get you there.
 
 Sure, or portupgrade. 

The portupgrade set of tools also included pkgdb. If you plan to
mix several methods of installing (e. g. portinstall, make install,
pkg_add -r), use

# pkgdb -aF

before and after you installed (or removed) something. This will
keep portupgrade's database up to date, so it takes into mind when
you *didn't* use it to install (or remove) something.



 I think both have -P switches to use packages 
 rather than make from source where the matching package is available, 
 which is pretty handy on less than awesome boxes for Big Things like 
 Xorg, KDE and the like .. not to mention Java ..

Or OpenOffice, where this won't work. :-)

But you're correct: For portinstall / portupgrade, -P (use package)
and -PP (use packages only) can be used, and will also affect how to
deal with dependencies.

Finally, portinstall / portupgrade allow you to create a package from
a port you've just installed, see -p in the manual.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Convert all packages to ports

2010-07-02 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/07/2010 18:57:11, Polytropon wrote:
 I don't know where these 'do not mix ports and packages' warnings come 
  from, but I suspect it's from people who think that they're different :)

 I think it may have come from PC-BSD, taking into mind their PBI
 system, like do not mix PBI with ports or packages. :-)

Mostly, I believe, this comes from what tends to happen if you try and
install downloaded packages onto a machine that has previously been
maintained by building ports.  Especially when the downloaded package is
a big lump (hence very attractive to download something precompiled)
with lots of dependencies (Danger, Will Robinson!).

Chances are one or more of the packages already installed are
dependencies of the big lump.  Not only that: they are quite likely to
be more recent versions than what the big lump was compiled against.
This will result in alarm and despondency amongst those less well versed
in the subtle art of beating the ports system into submission.

The really unlucky people will find that they have dependency shlibs
with a more recent ABI version than what the big lump was compiled
against.  In this case, there's nothing for it but to grit the teeth;
gird up the loins; make plenty of hot, strong, black coffee and start
compiling.

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwuLYUACgkQ8Mjk52CukIxMBgCfWTmcMv9/f4th5C2rFY18KKDk
oNQAnApdwysxmPO8SYgePN2+POJd+Zz/
=cvqU
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: 'file' Command Giving False Positives

2010-07-02 Thread Lowell Gilbert
Polytropon free...@edvax.de writes:

 On Fri, 02 Jul 2010 11:25:20 -0400, Lowell Gilbert 
 freebsd-questions-lo...@be-well.ilk.org wrote:
 Why is it incorrect?  LZ as the first two bytes in a file is (unless
 my memory is badly mistaken) exactly what the old command.com looked for
 as the flag of an executable.

 If I ask *my* memory, it tells me that what you mean is MZ. As
 far as I remember, those are the initials of a programmer involved
 with the creation of the DOS binary executable format. :-)

Apparently, your memory is better than mine, because that was indeed
what I was thinking of.  Which leads to the question of why magic(5)
lists LZ as representing MS-DOS executable (built-in).  I'd be
hesitant to change that unless we knew for sure it was wrong.

Even if it _is_ wrong, the problem still remains for MZ at least:
Any file starting with those letters is going to be identified as an
MS-DOS executable, and there's no clear way to distinguish it from a
text file that happens to start with those letters.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: 'file' Command Giving False Positives

2010-07-02 Thread Polytropon
On Fri, 02 Jul 2010 14:23:24 -0400, Lowell Gilbert 
freebsd-questions-lo...@be-well.ilk.org wrote:
 Apparently, your memory is better than mine, because that was indeed
 what I was thinking of.  Which leads to the question of why magic(5)
 lists LZ as representing MS-DOS executable (built-in).  I'd be
 hesitant to change that unless we knew for sure it was wrong.

As it has been mentioned before, .EXE is *one* of the formats
executable in DOS. .COM executables do not have specific headers
(as they are loaded directly). Also, .BAT are executable, allthough
they are text files, and finally .BTM are also text file executables,
specific to NDOS. As far as I also remember, there's .EXE on OS/2,
too. One could argue if Windows .PIF are also executables. Of
course, VMS also has .COM... but I see I'm making a digression... :-)



 Even if it _is_ wrong, the problem still remains for MZ at least:
 Any file starting with those letters is going to be identified as an
 MS-DOS executable, and there's no clear way to distinguish it from a
 text file that happens to start with those letters.

Well, there's a solution that is not *that* complicated: If the
file contains characters that don't match isprint(), i. e. those
outside the ASCII set used in real text files, it's likely to be
an executable.

A scriptable solution might be to diff filename vs. `strings
filename`. If they differ, it's not a text, so it might be an
executable.

I'm not sure if the magic identification string starting with MZ
could be enlarged with other specific characters immediately
following MZ that are *only* present in executables...

The problem is that MZ itself is completely sufficient:

% echo MZ  foo
% file foo
foo: MS-DOS executable

Of course, that's not correct.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


CFP for Surge Scalability Conference 2010

2010-07-02 Thread Jason Dixon
A quick reminder that there's one week left to submit your abstract for
this year's Surge Scalability Conference.  The event is taking place on
Sept 30 and Oct 1, 2010 in Baltimore, MD.  Surge focuses on case studies
that address production failures and the re-engineering efforts that led
to victory in Web Applications or Internet Architectures.

Our Keynote speakers include John Allspaw and Theo Schlossnagle.  We are
currently accepting submissions for the Call For Papers through July
9th.  You can find more information, including suggested topics and our
current list of speakers, online:

http://omniti.com/surge/2010

I'd also like to urge folks who are planning to attend, to get your
session passes sooner rather than later.  We have limited seating and we
are on track to sell out early.  For more information, including the
CFP, sponsorship of the event, or participating as an exhibitor, please
visit the Surge website or contact us at su...@omniti.com.

Thanks,

-- 
Jason Dixon
OmniTI Computer Consulting, Inc.
jdi...@omniti.com
443.325.1357 x.241
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: 'file' Command Giving False Positives

2010-07-02 Thread Tim Daneliuk

On 7/2/2010 1:42 PM, Polytropon wrote:

On Fri, 02 Jul 2010 14:23:24 -0400, Lowell 
Gilbertfreebsd-questions-lo...@be-well.ilk.org  wrote:

Apparently, your memory is better than mine, because that was indeed
what I was thinking of.  Which leads to the question of why magic(5)
lists LZ as representing MS-DOS executable (built-in).  I'd be
hesitant to change that unless we knew for sure it was wrong.


As it has been mentioned before, .EXE is *one* of the formats
executable in DOS. .COM executables do not have specific headers
(as they are loaded directly). Also, .BAT are executable, allthough
they are text files, and finally .BTM are also text file executables,
specific to NDOS. As far as I also remember, there's .EXE on OS/2,
too. One could argue if Windows .PIF are also executables. Of
course, VMS also has .COM... but I see I'm making a digression... :-)




Even if it _is_ wrong, the problem still remains for MZ at least:
Any file starting with those letters is going to be identified as an
MS-DOS executable, and there's no clear way to distinguish it from a
text file that happens to start with those letters.


Well, there's a solution that is not *that* complicated: If the
file contains characters that don't match isprint(), i. e. those
outside the ASCII set used in real text files, it's likely to be
an executable.

A scriptable solution might be to difffilename  vs. `strings
filename`. If they differ, it's not a text, so it might be an
executable.

I'm not sure if the magic identification string starting with MZ
could be enlarged with other specific characters immediately
following MZ that are *only* present in executables...

The problem is that MZ itself is completely sufficient:

% echo MZ  foo
% file foo
foo: MS-DOS executable

Of course, that's not correct.




All noted (and appreciated).  In this case, the client has
a situation where none of the above will work:  They can
take in encrypted files that happen to have an MZ/LZ at the
beginning but have binary data thereafter but are NOT
executables.  They want to properly flag executables but
not get false positives.

At this point, I'm inclined to believe that 'file' alone is
insufficient to do this and, at best - even with more tools -
it's going to be a probabilities game - i.e. What percentage
of false positives is acceptable?


--

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


Staying up to date with security patches

2010-07-02 Thread Ed Flecko
Hi folks,
I've carefully read many different sources about keeping FreeBSD up to
date, and I'm not quite crystal-clear.

I'm building a server with 8.0, and because it's a server, it will
have very little software installed on it (probably Apache, maybe
BIND, etc.), and my primary concern is that it's stable and secure
from a patching perspective (I'll work on hardening the OS later).

Since I will be doing a custom kernel at some point, I won't use
freebsd-update, I'm using cvsup instead.

If I understand the docs correctly, I want my supfile (in my case,
I'm simply modifying stable-supfile) file to have an entry like:
*default release=cvs tag=RELENG_8_0

1.) The _0 will keep me up to date with the security patches, which is
what I'm after, right?

2.) How often should one synchronize your server (PC, etc.)? You
don't need to do it daily with cron, do you? I've subscribed to the
FreeBSD security update list, so that's probably the only time one
really needs to synchronize, rebuild, etc., isn't it?

3.) What's the smartest way to keep your installed applications
updated (i.e., Apache, BIND, etc.)?

4.) Finally, where's the best URL to scour past FreeBSD posts/answers?

Thank you!

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


Re: Staying up to date with security patches

2010-07-02 Thread Bill Moran
In response to Ed Flecko edfle...@gmail.com:

 Hi folks,
 I've carefully read many different sources about keeping FreeBSD up to
 date, and I'm not quite crystal-clear.
 
 I'm building a server with 8.0, and because it's a server, it will
 have very little software installed on it (probably Apache, maybe
 BIND, etc.), and my primary concern is that it's stable and secure
 from a patching perspective (I'll work on hardening the OS later).
 
 Since I will be doing a custom kernel at some point, I won't use
 freebsd-update, I'm using cvsup instead.
 
 If I understand the docs correctly, I want my supfile (in my case,
 I'm simply modifying stable-supfile) file to have an entry like:
 *default release=cvs tag=RELENG_8_0
 
 1.) The _0 will keep me up to date with the security patches, which is
 what I'm after, right?

Yes

 2.) How often should one synchronize your server (PC, etc.)? You
 don't need to do it daily with cron, do you? I've subscribed to the
 FreeBSD security update list, so that's probably the only time one
 really needs to synchronize, rebuild, etc., isn't it?

You only need to sync and rebuild when a security problem is announced
via that mailing list.

 3.) What's the smartest way to keep your installed applications
 updated (i.e., Apache, BIND, etc.)?

Install ports-mgmt/portaudit and run it daily (I believe it installs
so that it will email you daily results as part of periodic) and when
it tells you that one of your installed ports is out of date, take
care of it.

There's no schedule.  Because, despite what MS would have PHB's believe,
security problems are not found on any schedule, they're found whenever
they're found.

Thus, your best approach is to monitor and be proactive.

-- 
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Fwd: Staying up to date with security patches

2010-07-02 Thread Ed Flecko
Thanks Bill!

:-)

How will I know if there have been security updates that have been
released (which means I need to sync  rebuild) since I've installed
the O.S.? For example, I'm running 8.0, and I'll bet there's been
security releases since I first installed. Or...should you just get in
the habit of syncing / updating after you install any particular
release?

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


Re: Fwd: Staying up to date with security patches

2010-07-02 Thread Bill Moran
In response to Ed Flecko edfle...@gmail.com:

 How will I know if there have been security updates that have been
 released (which means I need to sync  rebuild) since I've installed
 the O.S.? For example, I'm running 8.0, and I'll bet there's been
 security releases since I first installed. Or...should you just get in
 the habit of syncing / updating after you install any particular
 release?

http://www.freebsd.org/security/advisories.html

-- 
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Fwd: Staying up to date with security patches

2010-07-02 Thread Jerry McAllister
On Fri, Jul 02, 2010 at 01:13:24PM -0700, Ed Flecko wrote:

 Thanks Bill!
 
 :-)
 
 How will I know if there have been security updates that have been
 released (which means I need to sync  rebuild) since I've installed
 the O.S.? For example, I'm running 8.0, and I'll bet there's been
 security releases since I first installed. Or...should you just get in
 the habit of syncing / updating after you install any particular
 release?

Sign up on the freebsd-announce list.
There may be a couple of other lists of interest to such as bugs and
 freebsd-security-notifications 

See the handbook at:   
 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/eresources.html#ERESOURCES-MAIL

jerry

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


Re: Fwd: Staying up to date with security patches

2010-07-02 Thread Ed Flecko
Thank you again.

After doing a sync/rebuild, does FreeBSD keep a log (somewhere) that
actually shows which security patches have been applied?

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


Re: 'file' Command Giving False Positives

2010-07-02 Thread Lowell Gilbert
Tim Daneliuk tun...@tundraware.com writes:

 At this point, I'm inclined to believe that 'file' alone is
 insufficient to do this and, at best - even with more tools -
 it's going to be a probabilities game - i.e. What percentage
 of false positives is acceptable?

file(1) is only intended to be a set of heuristics.  It has a remarkably
good set of heuristics at this point, but you're right that this cannot
be solved simply by analyzing the contents of the files.  For use in a
system that you expect to scale, you will always be better off keeping
meta-data in some other form (if you can, which is frequently not
possible).  If the whole data path is under your (customer's) control,
it's not so hard; you can use file names, or put every file into a tar
file along with a text file that indicates the data type, and on and on
through as many approaches as you have the time to dream up.  [If my
examples are unclear, I can expand on them to make the point better.]

This is made considerably worse by the fact that you've said that your
files are encrypted.  Some forms of encryption store some meta-data at a
known place (like first) in the file, but generally this won't be the
case.  Now consider that there is a finite chance of running into a
combination of cleartext, encryption, and password that you end up with
an encrypted file that happens to have exactly the same contents as
/bin/ls (it's vanishingly unlikely that this exact scenario would
happen, but it's a good illustration of the problem).  

All of which is just agreeing with your suggestion that it's a
probabilities game of reducing the error rate to acceptability; UNLESS
you can control some other source of information.  For an example of the
latter, I have a backup file from this morning, named
be-well.100702._usr.l2.dump.gz.idea.  If the files are coming in from
the outside (untrustworthy input), you can't do this.  One thing you
*could* do in that case is use a custom magic(5) file for this
application.  You may well not care about input that really is an MS-DOS
executable, so you can remove the patterns for all of them.  Or AmigaOS,
or laser printer firmware, or...

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


Re: Staying up to date with security patches

2010-07-02 Thread Jason

On Fri, Jul 02, 2010 at 04:03:01PM -0400, Bill Moran thus spake:

In response to Ed Flecko edfle...@gmail.com:


Hi folks,
I've carefully read many different sources about keeping FreeBSD up to
date, and I'm not quite crystal-clear.

I'm building a server with 8.0, and because it's a server, it will
have very little software installed on it (probably Apache, maybe
BIND, etc.), and my primary concern is that it's stable and secure
from a patching perspective (I'll work on hardening the OS later).

Since I will be doing a custom kernel at some point, I won't use
freebsd-update, I'm using cvsup instead.


You can build your own update server based off of your custom kernel. I've
been running one for awhile now, and it works great.

As long as your ISO contains your kernel, it will work.

http://www.freebsdgr.org/all/en_US.ISO8859-1/articles/freebsd-update-server/



If I understand the docs correctly, I want my supfile (in my case,
I'm simply modifying stable-supfile) file to have an entry like:
*default release=cvs tag=RELENG_8_0

1.) The _0 will keep me up to date with the security patches, which is
what I'm after, right?


Yes


2.) How often should one synchronize your server (PC, etc.)? You
don't need to do it daily with cron, do you? I've subscribed to the
FreeBSD security update list, so that's probably the only time one
really needs to synchronize, rebuild, etc., isn't it?


You only need to sync and rebuild when a security problem is announced
via that mailing list.


3.) What's the smartest way to keep your installed applications
updated (i.e., Apache, BIND, etc.)?


Install ports-mgmt/portaudit and run it daily (I believe it installs
so that it will email you daily results as part of periodic) and when
it tells you that one of your installed ports is out of date, take
care of it.

There's no schedule.  Because, despite what MS would have PHB's believe,
security problems are not found on any schedule, they're found whenever
they're found.

Thus, your best approach is to monitor and be proactive.

--
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org



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


Subject: pf: pass in quick to port 25 still getting some blocks

2010-07-02 Thread Len Conrad
setting up pf on fbsd 7.2 for host security on a mail gateway.

the only rule for port 25 is:

pass in quick on em0 inet proto tcp from any to $ext_if port = smtp flags S/SA 
keep state

and then last rule:

block drop in log on em0 inet from any to $ext_if

while 1000s of connections to port 25 are getting through with the pass rule, 
several 100 connections are getting blocked with the default block rule, 
bypassing the pass rule.

I can't see how pf is selecting these connections to be blocked.

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


Re: Staying up to date with security patches

2010-07-02 Thread Mike Clarke
On Friday 02 July 2010, Ed Flecko wrote:

 Since I will be doing a custom kernel at some point, I won't use
 freebsd-update, I'm using cvsup instead.

The alternative would be to just use the source code patches from the 
security-advisories mailing list. That way you don't have to rebuild 
the whole base system each time, though some of the patches will 
require the kernel to be rebuilt.

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


KDE post-install steps

2010-07-02 Thread Chris Stankevitz

Installation instructions for GNOME and KDE:
 http://www.freebsd.org/gnome/docs/faq2.html#q1
 http://freebsd.kde.org/instructions.php

GNOME:
 1. cd /usr/ports/x11/gnome2, make install clean
 2. Add 'gnome_enable=YES' to rc.conf

KDE:
 1. cd /usr/ports/x11/kde4, make install clean
 2. [none listed]

Q: Does KDE installation have a Step 2?

Thank you,

Chris




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


Re: KDE post-install steps

2010-07-02 Thread Polytropon
On Fri, 2 Jul 2010 15:21:31 -0700 (PDT), Chris Stankevitz 
chrisstankev...@yahoo.com wrote:
 Q: Does KDE installation have a Step 2?

I think KDE also relies on DBUS and HAL (which need to be installed
and enabled via /etc/rc.conf), and activating the KDE login manager
for X (kdm) requires an entry in /etc/ttys similar to the one that
is suggested for Gnome; if it's not desired, use startkde (I think
it is the correct name, or startkde4 maybe) in ~/.xinitrc or in
~/.xsession respectively.

And a general note: The Step 2 does not belong to the installation,
it already belongs to configuration (i. e. enabling the just installed
piece of software).



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Same priority pf/altq queues not supported?

2010-07-02 Thread Maxim Khitrov
Hello all,

I'm configuring pf on FreeBSD 7.3 and would like to use the following
altq settings:

altq on $ext priq bandwidth 9240Kb queue {low, red, med, top}
altq on {$int1, $int2, $srv} priq bandwidth 100Mb queue {low, red, med, top}

queue low priority 1 priq(default)  # Default priority queue
queue red priority 1 priq(red)  # Default priority TCP queue with RED
queue med priority 2# DNS, DHCP, ACKs, and TOS == lowdelay
queue top priority 3# ICMP, NTP

When I try to load these settings, I get the following errors:

pfctl: low and red have the same priority
pfctl: low and red have the same priority
pfctl: low and red have the same priority
pfctl: low and red have the same priority
/etc/pf.conf:79: errors in queue definition

OpenBSD 4.1 documentation states that if two or more queues are
assigned the same priority then those queues are processed in a
round-robin fashion. Is there any specific reason why this behavior
was altered in the FreeBSD port?

I'm not really sure of what to do, because I don't want to prioritize
or deprioritize TCP traffic, and I can't have RED enabled for any
other protocol. If you have any other general-purpose queuing
suggestions, please let me know.

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


Getting kernel trap 12 During Boot Of 8.1-PRERELEASE

2010-07-02 Thread Tim Daneliuk
I've seen this twice now - once last Sunday, and once again today
when I tried to do a build/installworld/kernel with daily sources
from the master tree:

  http://www.mediafire.com/imageview.php?quickkey=qmhizdtnhyothumb=4

The system boots fine single-user, so I don't suspect the base
kernel functionality.

Falling back to my 6-18-2010 system image makes everything right again.

MOBO is an Intel D946GZIS with a single SATA drive and one additional
3Com 3c905 NIC in addition to the onboard Intel NIC.

Anyone else seeing this.  Ideas?
-- 

Tim Daneliuk tun...@tundraware.com
PGP Key: http://www.tundraware.com/PGP/

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


Re: KDE post-install steps

2010-07-02 Thread Chris Stankevitz
--- On Fri, 7/2/10, Polytropon free...@edvax.de wrote:
 I think KDE also relies on DBUS and HAL

Ok

 and activating the KDE login manager
 for X (kdm) requires an entry in /etc/ttys similar to the
 one that is suggested for Gnome;

GNOME installation docs suggest adding gnome_enable=YES to rc.conf.  There is 
no suggestion regarding /etc/ttys.

 (I think it is the correct name, or startkde4 maybe)

Ok


With respect from someone who wants to get it right and not be dependent on 
the mailing list, I have a question:

The KDE installation page make does not describe:
- rc.conf entries, if any
- tty settings, if any
- KDM start procedures, if any
- the name of the .xinitrc command to start KDE, if any

Does this mean:
a) KDE setup is obvious and I am dumb for not knowing
b) I didn't read the man page well enough
c) KDE is meant for power users, I should stick with GNOME.
d) [your idea here]

 And a general note: The Step 2 does not belong to the
 installation,
 it already belongs to configuration (i. e. enabling the
 just installed
 piece of software).

I see.  Maybe

e) I'm looking in the wrong place.  Read the docs on KDE configuration not 
KDE installation.

Thank you all for helping me these last few days,

Chris


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


Re: Subject: pf: pass in quick to port 25 still getting some blocks

2010-07-02 Thread Jon Radel

On 7/2/10 5:25 PM, Len Conrad wrote:

setting up pf on fbsd 7.2 for host security on a mail gateway.

the only rule for port 25 is:

pass in quick on em0 inet proto tcp from any to $ext_if port = smtp flags S/SA 
keep state

and then last rule:

block drop in log on em0 inet from any to $ext_if

while 1000s of connections to port 25 are getting through with the pass rule, 
several 100 connections are getting blocked with the default block rule, 
bypassing the pass rule.

I can't see how pf is selecting these connections to be blocked.

   
In what sense are the packets that are getting blocked part of a 
connection?  Are you sure the blocked packets are actually a legitimate 
first packet, with the appropriate flags set, or is the flags S/SA 
portion of your rule not matching?


--

--Jon Radel
j...@radel.com




Re: Same priority pf/altq queues not supported?

2010-07-02 Thread krad
On 3 July 2010 00:05, Maxim Khitrov mkhit...@gmail.com wrote:

 Hello all,

 I'm configuring pf on FreeBSD 7.3 and would like to use the following
 altq settings:

 altq on $ext priq bandwidth 9240Kb queue {low, red, med, top}
 altq on {$int1, $int2, $srv} priq bandwidth 100Mb queue {low, red, med,
 top}

 queue low priority 1 priq(default)  # Default priority queue
 queue red priority 1 priq(red)  # Default priority TCP queue with RED
 queue med priority 2# DNS, DHCP, ACKs, and TOS == lowdelay
 queue top priority 3# ICMP, NTP

 When I try to load these settings, I get the following errors:

 pfctl: low and red have the same priority
 pfctl: low and red have the same priority
 pfctl: low and red have the same priority
 pfctl: low and red have the same priority
 /etc/pf.conf:79: errors in queue definition

 OpenBSD 4.1 documentation states that if two or more queues are
 assigned the same priority then those queues are processed in a
 round-robin fashion. Is there any specific reason why this behavior
 was altered in the FreeBSD port?

 I'm not really sure of what to do, because I don't want to prioritize
 or deprioritize TCP traffic, and I can't have RED enabled for any
 other protocol. If you have any other general-purpose queuing
 suggestions, please let me know.

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


check the version of pf in freebsd compared to openbsd, as they are not
always in sync
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Same priority pf/altq queues not supported?

2010-07-02 Thread Maxim Khitrov
On Fri, Jul 2, 2010 at 8:17 PM, krad kra...@googlemail.com wrote:


 On 3 July 2010 00:05, Maxim Khitrov mkhit...@gmail.com wrote:

 Hello all,

 I'm configuring pf on FreeBSD 7.3 and would like to use the following
 altq settings:

 altq on $ext priq bandwidth 9240Kb queue {low, red, med, top}
 altq on {$int1, $int2, $srv} priq bandwidth 100Mb queue {low, red, med,
 top}

 queue low priority 1 priq(default)  # Default priority queue
 queue red priority 1 priq(red)      # Default priority TCP queue with RED
 queue med priority 2                # DNS, DHCP, ACKs, and TOS == lowdelay
 queue top priority 3                # ICMP, NTP

 When I try to load these settings, I get the following errors:

 pfctl: low and red have the same priority
 pfctl: low and red have the same priority
 pfctl: low and red have the same priority
 pfctl: low and red have the same priority
 /etc/pf.conf:79: errors in queue definition

 OpenBSD 4.1 documentation states that if two or more queues are
 assigned the same priority then those queues are processed in a
 round-robin fashion. Is there any specific reason why this behavior
 was altered in the FreeBSD port?

 I'm not really sure of what to do, because I don't want to prioritize
 or deprioritize TCP traffic, and I can't have RED enabled for any
 other protocol. If you have any other general-purpose queuing
 suggestions, please let me know.

 - Max

 check the version of pf in freebsd compared to openbsd, as they are not
 always in sync


I'm aware of this. FreeBSD 7.3 should be using pf from OpenBSD 4.1:

http://www.freebsd.org/doc/en/books/handbook/firewalls-pf.html#AEN39617

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


Re: Problem using Portmaster to upgrade installed ports via packages only

2010-07-02 Thread Doug Barton
Apologies for not answering sooner ...

On 06/29/10 13:37, Alexandre L. wrote:
 I have done tests last days, and now I can set PACKAGESITE correctly
 in user's .cshrc (I have unset the parameter in root's .cshrc). Else,
 I have set /usr/local/etc/portmaster.rc, as described in the
 portmaster's manpage.
 
 Here my /usr/local/etc/portmaster.rc
 
 PM_SU_VERBOSE=

It's not necessary in shell scripting to set empty variables like this.
That's particularly true for the flag variables in portmaster rc
files. If the variable isn't actually set to something then what you
have here is exactly the same (to portmaster) as if you had not included
it at all.

 PM_SU_CMD=/usr/local/bin/sudo

This is fine, assuming that you want to be able to type 'portmaster ...'
as a non-root user and have it be able to do things that usually require
root privileges. However, there are a lot of other things that need to
be done to set that up. They are not difficult, but the details matter.
Please look closely at the section about this in the portmaster man page
for more details.

 I don't know (or understand) if I have to set a value to
 PM_SU_VERBOSE

That depends on your goal. Why are you setting this?

 I have tried to set PM_SU_VERBOSE=/usr/local/bin/sudo
 without success If you can help me here, I have read the manpage
 hundred times, but haven't found where I am wrong.

Please copy and paste the parts of the man page that are confusing. That
will help me improve it.

 Then I have tried without the line PM_SU_VERBOSE, just with
 PM_SU_CMD=/usr/local/bin/sudo I can install without problem packages
 with $ portmaster -P -a -x openoffice
 
 But if there is no package available for the port, I got the message
 (it is an example) :
 
 = libpng-1.4.3.tar.xz doesn't seem to exist in
 /usr/ports/distfiles//. = /usr/ports/distfiles/ is not writable by
 you; cannot fetch. 

That tells me that you haven't followed the instructions in the man page
for setting up your environment for sudo. So once again, if there are
specific parts of the man page that you find confusing, let me know what
they are so that I can improve it.

Meanwhile, you might also consider simply running portmaster as root.
There is nothing preferable about running it with sudo, it is a feature
that I added because users so often requested it.


hope this helps,

Doug

-- 

... and that's just a little bit of history repeating.
-- Propellerheads

Improve the effectiveness of your Internet presence with
a domain name makeover!http://SupersetSolutions.com/

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


Re: KDE post-install steps

2010-07-02 Thread Chris Stankevitz
--- On Fri, 7/2/10, Chris Stankevitz chrisstankev...@yahoo.com wrote:
 KDE:
  1. cd /usr/ports/x11/kde4, make install clean
  2. [none listed]
 
 Q: Does KDE installation have a Step 2?

2. Add these lines to ~/.xinitrc:
PATH=/usr/local/kde4/bin:$PATH
export PATH
startkde4

3. Use 'startx' to launch KDE.

Chris


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


Re: KDE post-install steps

2010-07-02 Thread Adam Vande More
On Fri, Jul 2, 2010 at 6:13 PM, Chris Stankevitz
chrisstankev...@yahoo.comwrote:

 --- On Fri, 7/2/10, Polytropon free...@edvax.de wrote:
  I think KDE also relies on DBUS and HAL

 Ok

  and activating the KDE login manager
  for X (kdm) requires an entry in /etc/ttys similar to the
  one that is suggested for Gnome;

 GNOME installation docs suggest adding gnome_enable=YES to rc.conf.
  There is no suggestion regarding /etc/ttys.

  (I think it is the correct name, or startkde4 maybe)

 Ok


 With respect from someone who wants to get it right and not be dependent
 on the mailing list, I have a question:

 The KDE installation page make does not describe:
 - rc.conf entries, if any
 - tty settings, if any
 - KDM start procedures, if any
 - the name of the .xinitrc command to start KDE, if any

 Does this mean:
 a) KDE setup is obvious and I am dumb for not knowing
 b) I didn't read the man page well enough
 c) KDE is meant for power users, I should stick with GNOME.
 d) [your idea here]

  And a general note: The Step 2 does not belong to the
  installation,
  it already belongs to configuration (i. e. enabling the
  just installed
  piece of software).

 I see.  Maybe

 e) I'm looking in the wrong place.  Read the docs on KDE configuration
 not KDE installation.

 Thank you all for helping me these last few days,


What you should be doing is following the freebsd handbook, it's
specifically written for these types of issues.

 http://www.freebsd.org/doc/en/books/handbook/x11-wm.html

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


help me port php to C?

2010-07-02 Thread Gary Kline
guys, i have a php function, over  40 lines with comments that i'd
like help porting to C.  i intend to integrate a C++ function that
i've already ported to C.  this stuff involved with determining
what a sentence is ... or making a best-guess; i think it's worth
it.

there are a few php calls i'm not clear on.  offline, please.

gary



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.83a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org  99 44/100% Guaranteed Novel

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


Re: KDE post-install steps

2010-07-02 Thread Carl Johnson
Chris Stankevitz chrisstankev...@yahoo.com writes:

 Installation instructions for GNOME and KDE:
  http://www.freebsd.org/gnome/docs/faq2.html#q1
  http://freebsd.kde.org/instructions.php

 GNOME:
  1. cd /usr/ports/x11/gnome2, make install clean
  2. Add 'gnome_enable=YES' to rc.conf

 KDE:
  1. cd /usr/ports/x11/kde4, make install clean
  2. [none listed]

 Q: Does KDE installation have a Step 2?

Others have mentioned ways of enabling KDE4, but I just added the
following two lines to /etc/rc.conf:
  local_startup=/usr/local/etc/rc.d /usr/local/kde4/etc/rc.d
  kdm4_enable=YES

Or you can omit the local_startup line if you do a:
  ln -s /usr/local/kde4/etc/rc.d/kde4 /usr/local/etc/rc.d/

The local_startup wouldn't be necessary if the startup script were put
in /usr/local/etc/rc.d where it should be.
-- 
Carl Johnsonca...@peak.org

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


Re: KDE post-install steps

2010-07-02 Thread Chris Stankevitz
--- On Fri, 7/2/10, Adam Vande More amvandem...@gmail.com wrote:
 What you should be doing is following the freebsd handbook,
 it's specifically written for these types of issues.
 
  http://www.freebsd.org/doc/en/books/handbook/x11-wm.html

Adam,

Thank you.  I started out with the handbook but before I reached section 
5.7.2.2, wandered to the FreeBSD Projects: GNOME page, then to FreeBSD 
Projects: KDE.  I should have headed back to the handbook.

Thank you,

Chris


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


freebsd-update and jails

2010-07-02 Thread Aiza
If I run freebsd-update on the host updating to 8.0-RELEASE-p3 and then 
run it again with the -b option pointing to the directory tree of the 
jail, I get message saying no update needed to update system to 
8.0-RELEASE-p3. I know the directory tree jail is at 8.0-RELEASE.


If I start a jail and login to its console, I can run freebsd-update 
fetch and it downloads stuff. So it knows the system is not at p3 level. 
But when I run the freebsd-update install, I get error saying all the 
files it wants to touch are read only permission. Just like the jail is 
suppose to do.


Looks like freebsd is inspecting the host to determine what RELEASE it's 
at and NOT the system at the -b option.


Am I doing some thing wrong?

Is this maybe a bug?

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