Re: Filesystem, RAID Question

2008-10-31 Thread Matthew Seaman

Jeremy Chadwick wrote:


The RAID card itself may have a BBU, so during loss of power any cached
data *on the card* will be attempt to be flushed to disk... except the
PC (including hard disks -- unless they're powered from some other
source) is already down/offline by this point.  And let's not forget
that the OS/kernel is also gone, which means any writes which were
sitting in cached memory in the kernel are lost as well.



For some reason people think that a H/W RAID card with a BBU guarantees
data integrity (keyword: guarantees).  I'm still trying to understand
why people think that.


Pending writes in the BBU-backed RAM will be completed when the machine
reboots.  The assumption is that the machine will be rebooted within a
few hours, before the battery runs down. Given that limitation, data
in BBU-backed cache can be regarded as committed to permanent (or more
accurately: /persistent/) storage.

Data in OS-level caches will be lost, yes.  But this is the point of
softupdates.  It reorders the instructions for writing data/metadata
to disk so that the data on disk remains consistent -- you may loose
some data in transit, but your disk contents will still be consistent.
Journalling achieves a similar effect in a different way -- recording
a changelog onto non-volatile storage which can later be played out to
bring the stored data into the correct state,

However, given that any access to rotating magnetic media is going to
take about 1000x longer than access to main RAM, there's always going
to be uncommitted filesystem changes in RAM that will be lost if the
machine suddenly looses power or otherwise fails.  Until there is a
persistent storage medium with something like the timing characteristics
of RAM, that effect is simply unavoidable. The only strategy you can 
employ is to provide uninterruptible power supplies, and choose hardware 
and OS wisely, so that unexpected system failures are minimized.  
Sometimes you can benefit from having multiple machines and multiple 
copies of your data, but this is not always possible.


Cheers,

Matthew

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



signature.asc
Description: OpenPGP digital signature


Re: fail with wireless network configuration with SIOCS80211: Invalid argument

2008-10-31 Thread Glyn Millington
Zhang Weiwu [EMAIL PROTECTED] writes:

 Paul B. Mahol wrote:
 On 10/30/08, Zhang Weiwu [EMAIL PROTECTED] wrote:
   
 Zhang Weiwu wrote:
 
 Hello. I am trying to get an AboveCable (model: ACPC 2000-01) wireless
 card connected to my home network with 40-bit Hex WEP Encryption on
 FreeBSD 6.1.

 # ifconfig wi0 inet 192.168.1.90 ssid ZWW wepmode on wepkey 0xea82552825
 ifconfig: SIOCS80211: Invalid argument

   

 Why is deftxkey 1 missing ?

 from ifconfig(8)

  Note that you must set a default transmit key with deftxkey for
^
  the system to know which key to use in encrypting outbound traf-
  fic

   
 That quoted line of text is not appearing in my version (6.4) FreeBSD's
 manual.

 I tried to add deftxkey 1, same result. a.k.a. the interface is
 configured, but DHCP couldn't obtain IP address, manually assigned IP
 address couldn't communicate with other hosts.

What do you have in /etc/rc.conf and in /boot/loader.conf?

atb


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


Re: Large discrepancy in reported disk usage on USR partition

2008-10-31 Thread Mel
On Friday 31 October 2008 02:20:39 Brendan Hart wrote:

  Is it possible that nfs directory got written to /usr at some point in

 time?

  You would only notice this with du if the nfs directory is unmounted.
  Unmount it and ls -al /usr/mountpoint should only give you an empty dir

 Bingo!! That is exactly the problem. An NFS mount was hiding a 17G local
 dir which had an old copy of the entire NFS mounted dir. I guess it must
 have been written incorrectly to this standby server by RSYNC before the
 NFS mount was put in place. I will add an exclusion to rsync to make sure
 it does not happen again even if the NFS dir is not mounted.

I used to nfs mount /usr/ports and run a cron job on the local machine. I made 
a file on the local machine:
echo 'This is a mountpoint'  /usr/ports/KEEP_ME_EMPTY

The script would:
if [ -e /usr/ports/KEEP_ME_EMPTY ]; then
do_nfs_mount();
if [ -e /usr/ports/KEEP_ME_EMPTY ]; then
give_up_or_wait();
fi
fi

Of course it's fragile, but it works for not so critical issues.


-- 
Mel

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


Re: Marvell 88E8052 PCI-E LAN on FreeBSD 7.0 (PYUN Yong-Hyeon)

2008-10-31 Thread Graham Bentley

I'm not sure you suffers from the same problem but there was a
Tx checksum offload related bug in msk(4) driver and it was fixed
in HEAD. How about applying the diff in CVS rev 1.33 of if_msk?
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/msk/if_msk.c.diff?r1=1.32;r2=1.33;f=h


Would love to have a crack at this but have never 'applied diffs' before?!

I am guessing I look in to the source for the msk module, find line 2601,
add the code in the green box, then remake the module and copy over the
existing one?

If theres a step by step to the correct procedure I'd appreciate pointers.

As an aside I went back and added -txcsum -rxcsum whlist using the
msk module and that also worked.

Thanks! 


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


fastest raw device copy?

2008-10-31 Thread Christoph Kukulies

Hi list,

I'm considering using a bootable USB stick with FreeBSD to perform a 
backup of my notebooks'
500 GB hard disk to a physically identical (same make, same type, same 
size) hard disk attached to  USB.


What would be the fastest way to do that sector by sector copy? I'm 
using dd right now,


dd if=/dev/ad0 of=/dev/da0 bs=1000

but maybe there is a utility which does this faster or a larger buffer 
size? Probably the limit will be

the USB 2.0 bus speed anyway?

--
Christoph

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


Re: fail with wireless network configuration with SIOCS80211: Invalid argument

2008-10-31 Thread Paul B. Mahol
On 10/31/08, Zhang Weiwu [EMAIL PROTECTED] wrote:
 Paul B. Mahol wrote:
 On 10/30/08, Zhang Weiwu [EMAIL PROTECTED] wrote:

 Zhang Weiwu wrote:

 Hello. I am trying to get an AboveCable (model: ACPC 2000-01) wireless
 card connected to my home network with 40-bit Hex WEP Encryption on
 FreeBSD 6.1.

 # ifconfig wi0 inet 192.168.1.90 ssid ZWW wepmode on wepkey 0xea82552825
 ifconfig: SIOCS80211: Invalid argument



 Why is deftxkey 1 missing ?

 from ifconfig(8)

  Note that you must set a default transmit key with deftxkey
 for
^
  the system to know which key to use in encrypting outbound
 traf-
  fic


 That quoted line of text is not appearing in my version (6.4) FreeBSD's
 manual.

 I tried to add deftxkey 1, same result. a.k.a. the interface is
 configured, but DHCP couldn't obtain IP address, manually assigned IP
 address couldn't communicate with other hosts.

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


Re: Funny slogans to put on tshirts

2008-10-31 Thread Redd Vinylene
On Fri, Oct 31, 2008 at 10:51 AM, Mel
[EMAIL PROTECTED] wrote:
 On Friday 31 October 2008 10:29:35 you wrote:

 It's my friend's birthday tomorrow. I was thinking I'd make him a
 tshirt with some funny slogan on it or something. Preferably something
 UNIX related. But I'm all outta ideas. Perhaps y'all can help?
 Alright, much obliged, thanks.

 http://shop.cafepress.com/design/6684711

 --
 Mel

Hahaha

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


Re: upgrading 5.4 - 7.0

2008-10-31 Thread Olivier Nicole
 We are running 5.4 on www/ircshell server now and we need to upgrade it. Is
 it ok (or is it possible) to upgrade straight to 7.0 or are there some known
 problems in this upgrade? Would it be better to do 5.4 - 6 - 7 instead?

Like every upgrade, it will certainly work better if you go through
version 6 first.

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


Re: Funny slogans to put on tshirts

2008-10-31 Thread Fernando Apesteguía
On 10/31/08, Redd Vinylene [EMAIL PROTECTED] wrote:
 Hello guys,

 It's my friend's birthday tomorrow. I was thinking I'd make him a
 tshirt with some funny slogan on it or something. Preferably something
 UNIX related. But I'm all outta ideas. Perhaps y'all can help?
 Alright, much obliged, thanks.

thinkgeek.com has some fun designs.


PS: I'm not related to thinkgeek in any commercial sense :)


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

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


Re: Funny slogans to put on tshirts

2008-10-31 Thread en0f
Redd Vinylene wrote:
 Hello guys,
 
 It's my friend's birthday tomorrow. I was thinking I'd make him a
 tshirt with some funny slogan on it or something. Preferably something
 UNIX related. But I'm all outta ideas. Perhaps y'all can help?
 Alright, much obliged, thanks.
 

* hold it right there buddy.
+ silent

* that scruffy beard... those suspenders... that smug expression...
+ silent

* you're one of those condescending unix computer users!
+ here's a nickel, kid. get yourself a better computer.

:P)

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


upgrading 5.4 - 7.0

2008-10-31 Thread pepe
We are running 5.4 on www/ircshell server now and we need to upgrade it. Is
it ok (or is it possible) to upgrade straight to 7.0 or are there some known
problems in this upgrade? Would it be better to do 5.4 - 6 - 7 instead?

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


Re: fastest raw device copy?

2008-10-31 Thread Jeremy Chadwick
On Fri, Oct 31, 2008 at 09:48:16AM +0100, Christoph Kukulies wrote:
 Hi list,

 I'm considering using a bootable USB stick with FreeBSD to perform a  
 backup of my notebooks'
 500 GB hard disk to a physically identical (same make, same type, same  
 size) hard disk attached to  USB.

 What would be the fastest way to do that sector by sector copy? I'm  
 using dd right now,

 dd if=/dev/ad0 of=/dev/da0 bs=1000

 but maybe there is a utility which does this faster or a larger buffer  
 size? Probably the limit will be
 the USB 2.0 bus speed anyway?

In general, what you're doing is correct for a block copy.  There is
nothing (that I know of) which is faster; you're copying 500GB of data
(including the unused portion -- you *did* ask for a block copy),
and this takes a long time.  Be patient.

On the flip side, your blocksize (bs) there is quite high for no good
reason.  I'd pick something more like bs=64k or bs=128k.  The default
(512) is too small for what you want, but 10MBytes is silly.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

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


disable use of opencrypto for ssh login

2008-10-31 Thread Brendan Kennedy
Hi All,

I am using FreeBSD 6.2. What are the steps I would need to perform in
order to for opencrypto not to be used during SSH session setup (even
if there is a working crypto module available underneath it)?

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


Funny slogans to put on tshirts

2008-10-31 Thread Redd Vinylene
Hello guys,

It's my friend's birthday tomorrow. I was thinking I'd make him a
tshirt with some funny slogan on it or something. Preferably something
UNIX related. But I'm all outta ideas. Perhaps y'all can help?
Alright, much obliged, thanks.

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


Re: fastest raw device copy?

2008-10-31 Thread Wojciech Puchar

In general, what you're doing is correct for a block copy.  There is
nothing (that I know of) which is faster; you're copying 500GB of data
(including the unused portion -- you *did* ask for a block copy),
and this takes a long time.  Be patient.

On the flip side, your blocksize (bs) there is quite high for no good
reason.  I'd pick something more like bs=64k or bs=128k.  The default
(512) is too small for what you want, but 10MBytes is silly.


should be big but less than drive's buffer, and be multiply of sector 
size.



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


Re: fastest raw device copy?

2008-10-31 Thread Ivan Voras
Jeremy Chadwick wrote:
 On Fri, Oct 31, 2008 at 09:48:16AM +0100, Christoph Kukulies wrote:

 What would be the fastest way to do that sector by sector copy? I'm  
 using dd right now,

 dd if=/dev/ad0 of=/dev/da0 bs=1000

 On the flip side, your blocksize (bs) there is quite high for no good
 reason.  I'd pick something more like bs=64k or bs=128k.  The default
 (512) is too small for what you want, but 10MBytes is silly.

Not only that, but 1000 isn't even correct - it needs to be a
multiple of sector size. Generally, using suffixes will do the right thing:

dd if=/dev/ad0 of=/dev/da0 bs=1m



signature.asc
Description: OpenPGP digital signature


Cannot login to root account on FreeBSD 7.0

2008-10-31 Thread Pramod Dematagoda
Hey there, I am a user of FreeBSD-7.0 and I must say that I am really
impressed with it, I must admit though that I used to be(still am) a
Linux user, so the switch wasn't that easy but I managed to do it with
help from the FreeBSD handbook(My thanks go to the authors of that
excellent guide).

But now I've faced a big problem, I can no longer seem to login to the
root account where whenever I supply the proper credentials to the login
screen, I always get thrown back to the login screen. This started
happening after I installed D-bus and HAL through the FreeBSD ports
which were built upon Xorg 1.5.1 which I had built myself previously, so
I am wondering if something I did may have caused the problem.

Thanks in advance for any help on this problem.

Regards,
Pramod Dematagoda

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


Re: Cannot login to root account on FreeBSD 7.0

2008-10-31 Thread Jeremy Chadwick
On Fri, Oct 31, 2008 at 06:59:04PM +0530, Pramod Dematagoda wrote:
 But now I've faced a big problem, I can no longer seem to login to the
 root account where whenever I supply the proper credentials to the login
 screen, I always get thrown back to the login screen. This started
 happening after I installed D-bus and HAL through the FreeBSD ports
 which were built upon Xorg 1.5.1 which I had built myself previously, so
 I am wondering if something I did may have caused the problem.

Reboot the machine and at the FreeBSD beastie/loader menu, hit 4 to
boot into single-user mode.  Once there, do:

# mount -a
# mount -o rw -u /
# passwd root

And change the password.  reboot and you should be good to go.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

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


Re: fastest raw device copy?

2008-10-31 Thread Christoph Kukulies

Ivan Voras schrieb:

Jeremy Chadwick wrote:
  

On Fri, Oct 31, 2008 at 09:48:16AM +0100, Christoph Kukulies wrote:



  
What would be the fastest way to do that sector by sector copy? I'm  
using dd right now,


dd if=/dev/ad0 of=/dev/da0 bs=1000
  


  

On the flip side, your blocksize (bs) there is quite high for no good
reason.  I'd pick something more like bs=64k or bs=128k.  The default
(512) is too small for what you want, but 10MBytes is silly.



Not only that, but 1000 isn't even correct - it needs to be a
multiple of sector size. Generally, using suffixes will do the right thing:

dd if=/dev/ad0 of=/dev/da0 bs=1m

  
OK, I understand that 1000 isn't good, I just thought it wouldn't 
harm. But if it is a transfer rate killer then I'd better think of 
typing ^C now. The command is running for 6 hours now.


An idea how I can check the current amount of transfered byed alongside 
the running dd command? Or watch the current i/o rate?



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


Re: fastest raw device copy?

2008-10-31 Thread Christoph Kukulies

Christoph Kukulies schrieb:

Ivan Voras schrieb:

Jeremy Chadwick wrote:
 

On Fri, Oct 31, 2008 at 09:48:16AM +0100, Christoph Kukulies wrote:



 
What would be the fastest way to do that sector by sector copy? 
I'm  using dd right now,


dd if=/dev/ad0 of=/dev/da0 bs=1000
  


 

On the flip side, your blocksize (bs) there is quite high for no good
reason.  I'd pick something more like bs=64k or bs=128k.  The default
(512) is too small for what you want, but 10MBytes is silly.



Not only that, but 1000 isn't even correct - it needs to be a
multiple of sector size. Generally, using suffixes will do the right 
thing:


dd if=/dev/ad0 of=/dev/da0 bs=1m

  
OK, I understand that 1000 isn't good, I just thought it wouldn't 
harm. But if it is a transfer rate killer then I'd better think of 
typing ^C now. The command is running for 6 hours now.


An idea how I can check the current amount of transfered byed 
alongside the running dd command? Or watch the current i/o rate?

Ack, I mean bytes :)

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


Re: fastest raw device copy?

2008-10-31 Thread Wojciech Puchar
OK, I understand that 1000 isn't good, I just thought it wouldn't harm. 
But if it is a transfer rate killer then I'd better think of typing ^C now. 
The command is running for 6 hours now.


An idea how I can check the current amount of transfered byed alongside the 
running dd command? Or watch the current i/o rate?




systat
:vmstat

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


Re: Cannot login to root account on FreeBSD 7.0

2008-10-31 Thread Pramod Dematagoda
On Fri, 2008-10-31 at 07:09 -0700, Jeremy Chadwick wrote:
 On Fri, Oct 31, 2008 at 06:59:04PM +0530, Pramod Dematagoda wrote:
  But now I've faced a big problem, I can no longer seem to login to the
  root account where whenever I supply the proper credentials to the login
  screen, I always get thrown back to the login screen. This started
  happening after I installed D-bus and HAL through the FreeBSD ports
  which were built upon Xorg 1.5.1 which I had built myself previously, so
  I am wondering if something I did may have caused the problem.
 
 Reboot the machine and at the FreeBSD beastie/loader menu, hit 4 to
 boot into single-user mode.  Once there, do:
 
 # mount -a
 # mount -o rw -u /
 # passwd root
 
 And change the password.  reboot and you should be good to go.
 
Hey Jeremy, 

Thanks for looking into the problem, but unfortunately your solution did
not work, I changed the root password to something else, however I still
cannot login to root once I boot FreeBSD normally.

Regards,
Pramod Dematagoda

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


Re: Cannot login to root account on FreeBSD 7.0

2008-10-31 Thread Mel
On Friday 31 October 2008 15:53:23 Pramod Dematagoda wrote:
 On Fri, 2008-10-31 at 07:09 -0700, Jeremy Chadwick wrote:
  On Fri, Oct 31, 2008 at 06:59:04PM +0530, Pramod Dematagoda wrote:
   But now I've faced a big problem, I can no longer seem to login to the
   root account where whenever I supply the proper credentials to the
   login screen, I always get thrown back to the login screen. This
   started happening after I installed D-bus and HAL through the FreeBSD
   ports which were built upon Xorg 1.5.1 which I had built myself
   previously, so I am wondering if something I did may have caused the
   problem.
 
  Reboot the machine and at the FreeBSD beastie/loader menu, hit 4 to
  boot into single-user mode.  Once there, do:
 
  # mount -a
  # mount -o rw -u /
  # passwd root
 
  And change the password.  reboot and you should be good to go.

 Hey Jeremy,

 Thanks for looking into the problem, but unfortunately your solution did
 not work, I changed the root password to something else, however I still
 cannot login to root once I boot FreeBSD normally.

There should be in indication in /var/log/messages or /var/log/auth.log.

-- 
Mel

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


Re: Cannot login to root account on FreeBSD 7.0

2008-10-31 Thread mdh
--- On Fri, 10/31/08, Pramod Dematagoda [EMAIL PROTECTED] wrote:
 From: Pramod Dematagoda [EMAIL PROTECTED]
 Subject: Re: Cannot login to root account on FreeBSD 7.0
 To: Jeremy Chadwick [EMAIL PROTECTED]
 Cc: freebsd-questions@freebsd.org
 Date: Friday, October 31, 2008, 10:53 AM
 On Fri, 2008-10-31 at 07:09 -0700, Jeremy Chadwick wrote:
  On Fri, Oct 31, 2008 at 06:59:04PM +0530, Pramod
 Dematagoda wrote:
   But now I've faced a big problem, I can no
 longer seem to login to the
   root account where whenever I supply the proper
 credentials to the login
   screen, I always get thrown back to the login
 screen. This started
   happening after I installed D-bus and HAL through
 the FreeBSD ports
   which were built upon Xorg 1.5.1 which I had
 built myself previously, so
   I am wondering if something I did may have caused
 the problem.
  
  Reboot the machine and at the FreeBSD beastie/loader
 menu, hit 4 to
  boot into single-user mode.  Once there, do:
  
  # mount -a
  # mount -o rw -u /
  # passwd root
  
  And change the password.  reboot and you
 should be good to go.
  
 Hey Jeremy, 
 
 Thanks for looking into the problem, but unfortunately your
 solution did
 not work, I changed the root password to something else,
 however I still
 cannot login to root once I boot FreeBSD normally.
 
 Regards,
 Pramod Dematagoda

Try going through those steps again (single user mode, the mount commands) and 
then looking at your system logs in /var/log.  The logs should have failed 
authentication messages that explain what's going wrong.  

- mdh



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


Re: fastest raw device copy?

2008-10-31 Thread Erik Trulsson
On Fri, Oct 31, 2008 at 03:36:02PM +0100, Christoph Kukulies wrote:
 Ivan Voras schrieb:
  Jeremy Chadwick wrote:

  On Fri, Oct 31, 2008 at 09:48:16AM +0100, Christoph Kukulies wrote:
  
 

  What would be the fastest way to do that sector by sector copy? I'm  
  using dd right now,
 
  dd if=/dev/ad0 of=/dev/da0 bs=1000

 

  On the flip side, your blocksize (bs) there is quite high for no good
  reason.  I'd pick something more like bs=64k or bs=128k.  The default
  (512) is too small for what you want, but 10MBytes is silly.
  
 
  Not only that, but 1000 isn't even correct - it needs to be a
  multiple of sector size. Generally, using suffixes will do the right thing:
 
  dd if=/dev/ad0 of=/dev/da0 bs=1m
 

 OK, I understand that 1000 isn't good, I just thought it wouldn't 
 harm. But if it is a transfer rate killer then I'd better think of 
 typing ^C now. The command is running for 6 hours now.
 
 An idea how I can check the current amount of transfered byed alongside 
 the running dd command? Or watch the current i/o rate?

Just type a ^T on the terminal dd is running on. This will send a SIGINFO to
dd which will cause it to print out that information to the terminal.




-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cannot login to root account on FreeBSD 7.0

2008-10-31 Thread Pramod Dematagoda
On Fri, 2008-10-31 at 16:00 +0100, Mel wrote:
 On Friday 31 October 2008 15:53:23 Pramod Dematagoda wrote:
  On Fri, 2008-10-31 at 07:09 -0700, Jeremy Chadwick wrote:
   On Fri, Oct 31, 2008 at 06:59:04PM +0530, Pramod Dematagoda wrote:
But now I've faced a big problem, I can no longer seem to login to the
root account where whenever I supply the proper credentials to the
login screen, I always get thrown back to the login screen. This
started happening after I installed D-bus and HAL through the FreeBSD
ports which were built upon Xorg 1.5.1 which I had built myself
previously, so I am wondering if something I did may have caused the
problem.
  
   Reboot the machine and at the FreeBSD beastie/loader menu, hit 4 to
   boot into single-user mode.  Once there, do:
  
   # mount -a
   # mount -o rw -u /
   # passwd root
  
   And change the password.  reboot and you should be good to go.
 
  Hey Jeremy,
 
  Thanks for looking into the problem, but unfortunately your solution did
  not work, I changed the root password to something else, however I still
  cannot login to root once I boot FreeBSD normally.
 
 There should be in indication in /var/log/messages or /var/log/auth.log.
 
I checked /var/log/messages, and I found something interesting, it seems
that csh exits with signal 11(core dumped) right after a root login,
there is nothing out of the ordinary in auth.log. But now what do I do
to fix the problem, change the shell?

Regards,
Pramod Dematagoda 

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


Re: fastest raw device copy?

2008-10-31 Thread Jeremy Chadwick
On Fri, Oct 31, 2008 at 03:36:02PM +0100, Christoph Kukulies wrote:
 Ivan Voras schrieb:
 Jeremy Chadwick wrote:
   
 On Fri, Oct 31, 2008 at 09:48:16AM +0100, Christoph Kukulies wrote:
 

   
 What would be the fastest way to do that sector by sector copy? I'm 
  using dd right now,

 dd if=/dev/ad0 of=/dev/da0 bs=1000
   

   
 On the flip side, your blocksize (bs) there is quite high for no good
 reason.  I'd pick something more like bs=64k or bs=128k.  The default
 (512) is too small for what you want, but 10MBytes is silly.
 

 Not only that, but 1000 isn't even correct - it needs to be a
 multiple of sector size. Generally, using suffixes will do the right thing:

 dd if=/dev/ad0 of=/dev/da0 bs=1m

   
 OK, I understand that 1000 isn't good, I just thought it wouldn't  
 harm. But if it is a transfer rate killer then I'd better think of  
 typing ^C now. The command is running for 6 hours now.

Six hours?  Hmm...  That seems too long, but of course the FreeBSD USB
stack is involved, and a USB device in general.  I would have assumed
that copy should have finished after 2-3 hours tops.

 An idea how I can check the current amount of transfered byed alongside  
 the running dd command? Or watch the current i/o rate?

iostat or gstat (I'm willing to bet you prefer the latter) will get you
what you want, more or less.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

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


Re: Cannot login to root account on FreeBSD 7.0

2008-10-31 Thread Jeremy Chadwick
On Fri, Oct 31, 2008 at 08:39:46PM +0530, Pramod Dematagoda wrote:
 On Fri, 2008-10-31 at 16:00 +0100, Mel wrote:
  On Friday 31 October 2008 15:53:23 Pramod Dematagoda wrote:
   On Fri, 2008-10-31 at 07:09 -0700, Jeremy Chadwick wrote:
On Fri, Oct 31, 2008 at 06:59:04PM +0530, Pramod Dematagoda wrote:
 But now I've faced a big problem, I can no longer seem to login to the
 root account where whenever I supply the proper credentials to the
 login screen, I always get thrown back to the login screen. This
 started happening after I installed D-bus and HAL through the FreeBSD
 ports which were built upon Xorg 1.5.1 which I had built myself
 previously, so I am wondering if something I did may have caused the
 problem.
   
Reboot the machine and at the FreeBSD beastie/loader menu, hit 4 to
boot into single-user mode.  Once there, do:
   
# mount -a
# mount -o rw -u /
# passwd root
   
And change the password.  reboot and you should be good to go.
  
   Hey Jeremy,
  
   Thanks for looking into the problem, but unfortunately your solution did
   not work, I changed the root password to something else, however I still
   cannot login to root once I boot FreeBSD normally.
  
  There should be in indication in /var/log/messages or /var/log/auth.log.
  
 I checked /var/log/messages, and I found something interesting, it seems
 that csh exits with signal 11(core dumped) right after a root login,
 there is nothing out of the ordinary in auth.log. But now what do I do
 to fix the problem, change the shell?

csh should not sig11.

Are you sure this machine does not have hardware problems?  Please
download and run memtest86++ from a CD.  You shouldn't have to run this
very long (15-20 minutes at tops in this case); errors will be quite
obvious.

You can try changing the shell to /bin/sh, but this is not recommended
(meaning, if/when you get the system working again, please change it
back to /bin/csh -- I can't stress this enough).

You can change the shell by following the above steps I gave you, but
using chsh instead of passwd root.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

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


Re: fastest raw device copy?

2008-10-31 Thread Pieter de Goeje
On Friday 31 October 2008, Christoph Kukulies wrote:
 Ivan Voras schrieb:
  Jeremy Chadwick wrote:
  On Fri, Oct 31, 2008 at 09:48:16AM +0100, Christoph Kukulies wrote:
  What would be the fastest way to do that sector by sector copy? I'm
  using dd right now,
 
  dd if=/dev/ad0 of=/dev/da0 bs=1000
 
  On the flip side, your blocksize (bs) there is quite high for no good
  reason.  I'd pick something more like bs=64k or bs=128k.  The default
  (512) is too small for what you want, but 10MBytes is silly.
 
  Not only that, but 1000 isn't even correct - it needs to be a
  multiple of sector size. Generally, using suffixes will do the right
  thing:
 
  dd if=/dev/ad0 of=/dev/da0 bs=1m

 OK, I understand that 1000 isn't good, I just thought it wouldn't
 harm. But if it is a transfer rate killer then I'd better think of
 typing ^C now. The command is running for 6 hours now.

 An idea how I can check the current amount of transfered byed alongside
 the running dd command? Or watch the current i/o rate?

Press ^T. It will show you progress and I/O speed.

-- 
Pieter de Goeje

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


Re: Cannot login to root account on FreeBSD 7.0

2008-10-31 Thread mdh
--- On Fri, 10/31/08, Pramod Dematagoda [EMAIL PROTECTED] wrote:
 From: Pramod Dematagoda [EMAIL PROTECTED]
 Subject: Re: Cannot login to root account on FreeBSD 7.0
 To: Mel [EMAIL PROTECTED]
 Cc: FreeBSD ML freebsd-questions@freebsd.org
 Date: Friday, October 31, 2008, 11:09 AM
 On Fri, 2008-10-31 at 16:00 +0100, Mel wrote:
  On Friday 31 October 2008 15:53:23 Pramod Dematagoda
 wrote:
   On Fri, 2008-10-31 at 07:09 -0700, Jeremy
 Chadwick wrote:
On Fri, Oct 31, 2008 at 06:59:04PM +0530,
 Pramod Dematagoda wrote:
 But now I've faced a big problem, I
 can no longer seem to login to the
 root account where whenever I supply
 the proper credentials to the
 login screen, I always get thrown back
 to the login screen. This
 started happening after I installed
 D-bus and HAL through the FreeBSD
 ports which were built upon Xorg 1.5.1
 which I had built myself
 previously, so I am wondering if
 something I did may have caused the
 problem.
   
Reboot the machine and at the FreeBSD
 beastie/loader menu, hit 4 to
boot into single-user mode.  Once there, do:
   
# mount -a
# mount -o rw -u /
# passwd root
   
And change the password.  reboot
 and you should be good to go.
  
   Hey Jeremy,
  
   Thanks for looking into the problem, but
 unfortunately your solution did
   not work, I changed the root password to
 something else, however I still
   cannot login to root once I boot FreeBSD
 normally.
  
  There should be in indication in /var/log/messages or
 /var/log/auth.log.
  
 I checked /var/log/messages, and I found something
 interesting, it seems
 that csh exits with signal 11(core dumped) right after a
 root login,
 there is nothing out of the ordinary in auth.log. But now
 what do I do
 to fix the problem, change the shell?

Yeowzers.  
Change it to /bin/sh for now.  Once you're back up, it'd be interesting to 
debug this.  Would you like to?  
- mdh



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


Re: Cannot login to root account on FreeBSD 7.0

2008-10-31 Thread Jeremy Chadwick
On Fri, Oct 31, 2008 at 08:15:25AM -0700, Jeremy Chadwick wrote:
 Are you sure this machine does not have hardware problems?  Please
 download and run memtest86++ from a CD.  You shouldn't have to run this
 very long (15-20 minutes at tops in this case); errors will be quite
 obvious.

Oops, this should have been memtest86+.  :-)

http://www.memtest.org/

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

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


CUPS wont print inside GNOME

2008-10-31 Thread Sean Cavanaugh
I have the latest GNOME installed from ports and have the odd issue of CUPS not 
wanting to work with it right.

If i access the CUPS web configuration page, i can print test pages just fine 
and not a single issue, but if i try and print a test page from inside GNOME, 
including trying with the gnome-cups-manager port, it will stop and present the 
following error
/usr/local/libexec/cups/filter/pstoraster failedthis error will carry over to 
the web interface and those jobs are pretty much hosed, yet i can create a test 
print from web interface even when this error is present.

I do notice that test pages from web interface come from user anonymous 
whereas test pages from gnome-cups-manager are from the respected user that ran 
it.
even root is unable to print from inside gnome.

-Sean

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


Re: fastest raw device copy?

2008-10-31 Thread Ivan Voras
Christoph Kukulies wrote:

 OK, I understand that 1000 isn't good, I just thought it wouldn't
 harm. But if it is a transfer rate killer then I'd better think of
 typing ^C now. The command is running for 6 hours now.

No, with a size that isn't a multiple of sector sizes your transferred
data will be corrupted. Actually, it's surprising that your number even
works - the system should have complained when you requested that size
for bs.

 An idea how I can check the current amount of transfered byed alongside
 the running dd command? Or watch the current i/o rate?

hit Ctrl-T while running dd.



signature.asc
Description: OpenPGP digital signature


Re: fastest raw device copy?

2008-10-31 Thread Jerry McAllister
On Fri, Oct 31, 2008 at 09:48:16AM +0100, Christoph Kukulies wrote:

 Hi list,
 
 I'm considering using a bootable USB stick with FreeBSD to perform a 
 backup of my notebooks'
 500 GB hard disk to a physically identical (same make, same type, same 
 size) hard disk attached to  USB.
 
 What would be the fastest way to do that sector by sector copy? I'm 
 using dd right now,
 
 dd if=/dev/ad0 of=/dev/da0 bs=1000
 
 but maybe there is a utility which does this faster or a larger buffer 
 size? Probably the limit will be
 the USB 2.0 bus speed anyway?

Are you sure you want to do a sector-by-sector copy?
That won't get you much that is useful in terms of a backup.

Can't you use dump/restore instead?

Dump each file system on /dev/ad0 to a file on /dev/da0.

Create a file system on /dev/da0 using newfs first.   You may or
may not want to create a FreeBSD slice and partition there before
doing the newfs.  
Make a mount point and mount it.

mkdir /bkmnt
mount /dev/da0 /bkmntOr if you created slice and partition in /dev/da0
 mount /dev/da0s1a /bkmnt

Then do the dumps

  dump 0af /bkmnt/rootbackup /
  dump 0af /bkmnt/usrbackup /usr
  dump 0af /bkmnt/homehackup /home

etc for whatever file systems you want to back up.

You will be much better off than with a sector by sector copy.

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


Re: fastest raw device copy?

2008-10-31 Thread Christoph Kukulies

Jeremy Chadwick schrieb:

On Fri, Oct 31, 2008 at 03:36:02PM +0100, Christoph Kukulies wrote:
  

Ivan Voras schrieb:


Jeremy Chadwick wrote:
  
  

On Fri, Oct 31, 2008 at 09:48:16AM +0100, Christoph Kukulies wrote:


  
  
What would be the fastest way to do that sector by sector copy? I'm 
 using dd right now,


dd if=/dev/ad0 of=/dev/da0 bs=1000
  
  
  
  

On the flip side, your blocksize (bs) there is quite high for no good
reason.  I'd pick something more like bs=64k or bs=128k.  The default
(512) is too small for what you want, but 10MBytes is silly.



Not only that, but 1000 isn't even correct - it needs to be a
multiple of sector size. Generally, using suffixes will do the right thing:

dd if=/dev/ad0 of=/dev/da0 bs=1m

  
  
OK, I understand that 1000 isn't good, I just thought it wouldn't  
harm. But if it is a transfer rate killer then I'd better think of  
typing ^C now. The command is running for 6 hours now.



Six hours?  Hmm...  That seems too long, but of course the FreeBSD USB
stack is involved, and a USB device in general.  I would have assumed
that copy should have finished after 2-3 hours tops.

  
An idea how I can check the current amount of transfered byed alongside  
the running dd command? Or watch the current i/o rate?



iostat or gstat (I'm willing to bet you prefer the latter) will get you
what you want, more or less.

  



The job just finished and I have a figure of the Ubuntu performance, 
with the unfortunate blocksize parameter though, so I think it isn't 
much worth. Anyway here is the figure of the

above dd command copying 500GB to a WDC disk in an Icy box.

50010+1 Datensätze ein
50010+1 Datensätze aus
500107862016 Bytes (500GB) kopiert, 25787,9 s, 19,4 MB/s

Will do that using FreeBSD next time.

Thanks a lot so far.

--
Christoph

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


Re: fastest raw device copy?

2008-10-31 Thread Christoph Kukulies

Jerry McAllister schrieb:

On Fri, Oct 31, 2008 at 09:48:16AM +0100, Christoph Kukulies wrote:

  

Hi list,

I'm considering using a bootable USB stick with FreeBSD to perform a 
backup of my notebooks'
500 GB hard disk to a physically identical (same make, same type, same 
size) hard disk attached to  USB.


What would be the fastest way to do that sector by sector copy? I'm 
using dd right now,


dd if=/dev/ad0 of=/dev/da0 bs=1000

but maybe there is a utility which does this faster or a larger buffer 
size? Probably the limit will be

the USB 2.0 bus speed anyway?



Are you sure you want to do a sector-by-sector copy?
That won't get you much that is useful in terms of a backup.

Can't you use dump/restore instead?

Dump each file system on /dev/ad0 to a file on /dev/da0.

Create a file system on /dev/da0 using newfs first.   You may or
may not want to create a FreeBSD slice and partition there before
doing the newfs.  
Make a mount point and mount it.


mkdir /bkmnt
mount /dev/da0 /bkmntOr if you created slice and partition in /dev/da0
 mount /dev/da0s1a /bkmnt

Then do the dumps

  dump 0af /bkmnt/rootbackup /
  dump 0af /bkmnt/usrbackup /usr
  dump 0af /bkmnt/homehackup /home

etc for whatever file systems you want to back up.

You will be much better off than with a sector by sector copy.

jerry
  


The idea was  to have a drop in backup for my notebook that allows me to 
continue working with a minimum of delay. (requires a philips 
screwdriver though :-)


Of course a failure of the source disk while doing the image copy as the 
worst case scenario

would leave me with empty hands :-)

There are a couple of partitions with different OSs on that hard drive.

--
Christoph



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


Re: Cannot login to root account on FreeBSD 7.0

2008-10-31 Thread Pramod Dematagoda
On Fri, 2008-10-31 at 08:26 -0700, Jeremy Chadwick wrote:
 On Fri, Oct 31, 2008 at 08:15:25AM -0700, Jeremy Chadwick wrote:
  Are you sure this machine does not have hardware problems?  Please
  download and run memtest86++ from a CD.  You shouldn't have to run this
  very long (15-20 minutes at tops in this case); errors will be quite
  obvious.
 
 Oops, this should have been memtest86+.  :-)
 
 http://www.memtest.org/
 
I did the memtest and it passed. I changed the shell to /bin/sh and it
now seems to work fine, but really saying, sh seems to be crippled
compared to csh, so I would like to get back to csh. I can help you guys
debug the problem, but I am not a debug wizard, so please forgive me if
I am slow on the uptake of some of your instructions:).

Regards,
Pramod Dematagoda

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


Re: Cannot login to root account on FreeBSD 7.0

2008-10-31 Thread Pramod Dematagoda
On Fri, 2008-10-31 at 08:19 -0700, mdh wrote:
 --- On Fri, 10/31/08, Pramod Dematagoda [EMAIL PROTECTED] wrote:
  From: Pramod Dematagoda [EMAIL PROTECTED]
  Subject: Re: Cannot login to root account on FreeBSD 7.0
  To: Mel [EMAIL PROTECTED]
  Cc: FreeBSD ML freebsd-questions@freebsd.org
  Date: Friday, October 31, 2008, 11:09 AM
  On Fri, 2008-10-31 at 16:00 +0100, Mel wrote:
   On Friday 31 October 2008 15:53:23 Pramod Dematagoda
  wrote:
On Fri, 2008-10-31 at 07:09 -0700, Jeremy
  Chadwick wrote:
 On Fri, Oct 31, 2008 at 06:59:04PM +0530,
  Pramod Dematagoda wrote:
  But now I've faced a big problem, I
  can no longer seem to login to the
  root account where whenever I supply
  the proper credentials to the
  login screen, I always get thrown back
  to the login screen. This
  started happening after I installed
  D-bus and HAL through the FreeBSD
  ports which were built upon Xorg 1.5.1
  which I had built myself
  previously, so I am wondering if
  something I did may have caused the
  problem.

 Reboot the machine and at the FreeBSD
  beastie/loader menu, hit 4 to
 boot into single-user mode.  Once there, do:

 # mount -a
 # mount -o rw -u /
 # passwd root

 And change the password.  reboot
  and you should be good to go.
   
Hey Jeremy,
   
Thanks for looking into the problem, but
  unfortunately your solution did
not work, I changed the root password to
  something else, however I still
cannot login to root once I boot FreeBSD
  normally.
   
   There should be in indication in /var/log/messages or
  /var/log/auth.log.
   
  I checked /var/log/messages, and I found something
  interesting, it seems
  that csh exits with signal 11(core dumped) right after a
  root login,
  there is nothing out of the ordinary in auth.log. But now
  what do I do
  to fix the problem, change the shell?
 
 Yeowzers.  
 Change it to /bin/sh for now.  Once you're back up, it'd be interesting to 
 debug this.  Would you like to?  
 - mdh

I found something a bit more interesting, csh crashes regardless of the
user account to which it is used for, so something is wrong with csh
itself and not the root account.

Regards,
Pramod Dematagoda

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


Re: libexpat is missing

2008-10-31 Thread Lowell Gilbert
freebsd777 [EMAIL PROTECTED] writes:

 Hi there,

 Under FreeBsd 6.2 version,
 while I was trying to install Krang software this is an error message below.

 I set up compat5 and expat2 in /usr/ports to get libexpat. But it is still
 not working.

 Does anyone know how to get libexpat? 

Just a wild guess: the build script for Krang isn't setting up the
library path properly for FreeBSD.  Maybe it's looking for an X11R6
tree that you don't have?

 -- Error -
 SeaAd# bin/krang_build

 ATTEMPTING: Mandrake9_2
 ATTEMPTING: Fedora9
 ATTEMPTING: Debian
 ATTEMPTING: MacOSX
 ATTEMPTING: FreeBSD
 Building for platform 'FreeBSD'.

 libexpat is missing from your system, Krang could not find it or we couldn't
 include it.
 This library is required by Krang.





 -- 
 View this message in context: 
 http://www.nabble.com/libexpat-is-missing-tp20218788p20218788.html
 Sent from the freebsd-questions mailing list archive at Nabble.com.

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


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


Re: Firewalls in FreeBSD?

2008-10-31 Thread Lowell Gilbert
Jeremy Chadwick [EMAIL PROTECTED] writes:

 On Thu, Oct 30, 2008 at 06:34:31PM -0500, Jack Barnett wrote:

 Ok, I had some progress with this last night. Basically what I do is:

 in natd - redirect_port 1000 to 1 to the internal windows box.
 set ipfw to open file wall.

 Obviously this isn't prefect - but gives some idea of what's going on.

 What I'd like to do, is a) keep the nat redirects since that works  
 pretty well.
 b) in ipfw, ONLY allow data back on these ports IF the windows box has  
 established the connection out first then deny everything else.

 This is called port triggering in the residential router world.  I
 don't know how to do this on FreeBSD.

Stateful rules are the only way to do it.
In fact, this is the main purpose of stateful rules.

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


Re: Firewalls in FreeBSD?

2008-10-31 Thread Jeremy Chadwick
On Fri, Oct 31, 2008 at 12:05:28PM -0400, Lowell Gilbert wrote:
 Jeremy Chadwick [EMAIL PROTECTED] writes:
 
  On Thu, Oct 30, 2008 at 06:34:31PM -0500, Jack Barnett wrote:
 
  Ok, I had some progress with this last night. Basically what I do is:
 
  in natd - redirect_port 1000 to 1 to the internal windows box.
  set ipfw to open file wall.
 
  Obviously this isn't prefect - but gives some idea of what's going on.
 
  What I'd like to do, is a) keep the nat redirects since that works  
  pretty well.
  b) in ipfw, ONLY allow data back on these ports IF the windows box has  
  established the connection out first then deny everything else.
 
  This is called port triggering in the residential router world.  I
  don't know how to do this on FreeBSD.
 
 Stateful rules are the only way to do it.
 In fact, this is the main purpose of stateful rules.

Read this part of the thread, where I outline protocol flow (based on
what the OP has stated about the protocol, which so far appears to be
accurate):

http://lists.freebsd.org/pipermail/freebsd-questions/2008-October/thread.html

Stateful rules will not solve this problem.

The OP wants a feature that tells ipfw or pf after the TCP handshake
has completed, dynamically add a port forward for port X on interface Y
to machine A on port Z; when the TCP session is FIN'd cleanly, or
extinguishes, dynamically remove that port forward.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

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


Re: fastest raw device copy?

2008-10-31 Thread Jerry McAllister
On Fri, Oct 31, 2008 at 04:48:32PM +0100, Christoph Kukulies wrote:

 Jerry McAllister schrieb:
 On Fri, Oct 31, 2008 at 09:48:16AM +0100, Christoph Kukulies wrote:
 
   
 Hi list,
 
 I'm considering using a bootable USB stick with FreeBSD to perform a 
 backup of my notebooks'
 500 GB hard disk to a physically identical (same make, same type, same 
 size) hard disk attached to  USB.
 
 What would be the fastest way to do that sector by sector copy? I'm 
 using dd right now,
 
 dd if=/dev/ad0 of=/dev/da0 bs=1000
 
 but maybe there is a utility which does this faster or a larger buffer 
 size? Probably the limit will be
 the USB 2.0 bus speed anyway?
 
 
 Are you sure you want to do a sector-by-sector copy?
 That won't get you much that is useful in terms of a backup.
 
 Can't you use dump/restore instead?
 
 Dump each file system on /dev/ad0 to a file on /dev/da0.
 
 Create a file system on /dev/da0 using newfs first.   You may or
 may not want to create a FreeBSD slice and partition there before
 doing the newfs.  
 Make a mount point and mount it.
 
 mkdir /bkmnt
 mount /dev/da0 /bkmntOr if you created slice and partition in /dev/da0
  mount /dev/da0s1a /bkmnt
 
 Then do the dumps
 
   dump 0af /bkmnt/rootbackup /
   dump 0af /bkmnt/usrbackup /usr
   dump 0af /bkmnt/homehackup /home
 
 etc for whatever file systems you want to back up.
 
 You will be much better off than with a sector by sector copy.
 
 jerry
   
 
 The idea was  to have a drop in backup for my notebook that allows me to 
 continue working with a minimum of delay. (requires a philips 
 screwdriver though :-)
 
 Of course a failure of the source disk while doing the image copy as the 
 worst case scenario
 would leave me with empty hands :-)
 
 There are a couple of partitions with different OSs on that hard drive.

Still, that is not really the best way to do backups.

For the FreeBSD, you can build the slice and partitions in it
and back up each appropriately.

Make mount points as needed
  mkdir /bkroot
  mkdir /bkusr
  mkdir /bkhome
etc
Do the mounts
  mount /dev/da0s1a /bkroot
  mount /dev/da0s1d /bkusr
  mount /dev/da0s1g /bkhome
etc  as appropriate
Make sure those filesystems on the USB are empty.
Then use dump/retore to make the copies

  cd /bkroot
  dump 0af - / | restore -rf -
  cd /bkusr
  dump 0af - /usr | restore -rf -
  cd /bkhome
  dump 0af - /home | restore -rf -
etc   as appropriate

This makes a much more reliable backup that the sector by sector thing.
If you make the slice bootable and have an MBR, it can be bootable.
It takes care of any difference in device size/block counts and dealing
with back blocks transparently.
  
If you have more than one slice and each has a different OS, then you 
need to make an equivalent backup for each OS to the appropriate slice 
on the USB.  

jerry

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


Re: Cannot login to root account on FreeBSD 7.0

2008-10-31 Thread mdh
--- On Fri, 10/31/08, Pramod Dematagoda [EMAIL PROTECTED] wrote:
 From: Pramod Dematagoda [EMAIL PROTECTED]
 Subject: Re: Cannot login to root account on FreeBSD 7.0
 To: [EMAIL PROTECTED]
 Cc: FreeBSD ML freebsd-questions@freebsd.org
 Date: Friday, October 31, 2008, 12:00 PM
 On Fri, 2008-10-31 at 08:19 -0700, mdh wrote:
  --- On Fri, 10/31/08, Pramod Dematagoda
 [EMAIL PROTECTED] wrote:
   From: Pramod Dematagoda
 [EMAIL PROTECTED]
   Subject: Re: Cannot login to root account on
 FreeBSD 7.0
   To: Mel
 [EMAIL PROTECTED]
   Cc: FreeBSD ML
 freebsd-questions@freebsd.org
   Date: Friday, October 31, 2008, 11:09 AM
   On Fri, 2008-10-31 at 16:00 +0100, Mel wrote:
On Friday 31 October 2008 15:53:23 Pramod
 Dematagoda
   wrote:
 On Fri, 2008-10-31 at 07:09 -0700,
 Jeremy
   Chadwick wrote:
  On Fri, Oct 31, 2008 at 06:59:04PM
 +0530,
   Pramod Dematagoda wrote:
   But now I've faced a big
 problem, I
   can no longer seem to login to the
   root account where whenever I
 supply
   the proper credentials to the
   login screen, I always get
 thrown back
   to the login screen. This
   started happening after I
 installed
   D-bus and HAL through the FreeBSD
   ports which were built upon
 Xorg 1.5.1
   which I had built myself
   previously, so I am wondering
 if
   something I did may have caused the
   problem.
 
  Reboot the machine and at the
 FreeBSD
   beastie/loader menu, hit 4 to
  boot into single-user mode.  Once
 there, do:
 
  # mount -a
  # mount -o rw -u /
  # passwd root
 
  And change the password. 
 reboot
   and you should be good to go.

 Hey Jeremy,

 Thanks for looking into the problem,
 but
   unfortunately your solution did
 not work, I changed the root password
 to
   something else, however I still
 cannot login to root once I boot
 FreeBSD
   normally.

There should be in indication in
 /var/log/messages or
   /var/log/auth.log.

   I checked /var/log/messages, and I found
 something
   interesting, it seems
   that csh exits with signal 11(core dumped) right
 after a
   root login,
   there is nothing out of the ordinary in auth.log.
 But now
   what do I do
   to fix the problem, change the shell?
  
  Yeowzers.  
  Change it to /bin/sh for now.  Once you're back
 up, it'd be interesting to debug this.  Would you like
 to?  
  - mdh
 
 I found something a bit more interesting, csh crashes
 regardless of the
 user account to which it is used for, so something is wrong
 with csh
 itself and not the root account.
 
 Regards,
 Pramod Dematagoda

First, please post the output of `uname -a`.  It'd be useful to know when you 
grabbed sources last, if you've built your own world at all, as well.  This 
information is necessary before we continue.  Also please post the output from 
the commands `ls -l /bin/csh` and `md5 /bin/csh`.  

While in sh, if you type /bin/csh to run csh, does it crash, or does it seem 
proper?  If it seems proper, try and few commands and see if it still does.  
If it crashes, let's try some debugging.  You should have a csh.core file, 
probably in /root.  Run the command `gdb /bin/csh /root/csh.core` (replacing 
/root/csh.core to whatever path csh.core is in, if it's not in /root), and post 
the output to this list along with everything else I've asked for.  

Do that now.  If that still doesn't work, I'm going to tell you to... 

Build it for debugging.  cd to the directory /usr/src/bin/csh, and run the 
following commands: `CFLAGS='-ggdb' make`, then run `make install`.  Once 
that's done, try /bin/csh again and if it crashes again, run `gdb /bin/csh` - 
when it crashes this time

If you do not have a directory called /usr/src/bin/csh, you'll need to cvsup 
your src.  Check through /usr/share/examples/cvsup/stable-supfile and the 
handbook section on updating sources via cvsup.  Once that's done, go back and 
run the commands in the following paragraph.  

Clearly, something is very wrong here.  

Note to others:
-rw-r--r--  1 root  wheel   4895 Mar 19  2006 /usr/src/bin/csh/Makefile
-rw-r--r--  1 root  wheel   6882 May 16  2007 /usr/src/bin/csh/config.h
-rw-r--r--  1 root  wheel   2964 May 16  2007 /usr/src/bin/csh/config_p.h
-rw-r--r--  1 root  wheel  28287 Apr  6  2004 /usr/src/bin/csh/host.defs
-rw-r--r--  1 root  wheel   1873 Feb 19  2006 /usr/src/bin/csh/iconv.h
-rw-r--r--  1 root  wheel   2391 Feb 19  2006 /usr/src/bin/csh/iconv_stub.c

Those are the file modification times for the csh sources, so even if he's 
running an older -RELEASE there shouldn't be any incompatibility issues with 
the latest source tree.  

- mdh



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


Re: fastest raw device copy?

2008-10-31 Thread Erik Trulsson
On Fri, Oct 31, 2008 at 08:13:07AM -0700, Jeremy Chadwick wrote:
 On Fri, Oct 31, 2008 at 03:36:02PM +0100, Christoph Kukulies wrote:
  Ivan Voras schrieb:
  Jeremy Chadwick wrote:

  On Fri, Oct 31, 2008 at 09:48:16AM +0100, Christoph Kukulies wrote:
  
 

  What would be the fastest way to do that sector by sector copy? I'm 
   using dd right now,
 
  dd if=/dev/ad0 of=/dev/da0 bs=1000

 

  On the flip side, your blocksize (bs) there is quite high for no good
  reason.  I'd pick something more like bs=64k or bs=128k.  The default
  (512) is too small for what you want, but 10MBytes is silly.
  
 
  Not only that, but 1000 isn't even correct - it needs to be a
  multiple of sector size. Generally, using suffixes will do the right thing:
 
  dd if=/dev/ad0 of=/dev/da0 bs=1m
 

  OK, I understand that 1000 isn't good, I just thought it wouldn't  
  harm. But if it is a transfer rate killer then I'd better think of  
  typing ^C now. The command is running for 6 hours now.
 
 Six hours?  Hmm...  That seems too long, but of course the FreeBSD USB
 stack is involved, and a USB device in general.  I would have assumed
 that copy should have finished after 2-3 hours tops.

2-3 hours is about the *minimum* amount of time needed to read all of a
large modern disk - and that is when you do the transfer over SATA/IDE.
Over USB it will be significantly slower.

A modern, fairly fast disk has an average sequential transfer rate of around
60MB/s (higher on the outer tracks, and lower on the innermost track, but
the average will come out to about that.)

Assume a 500GB disk. Then we get 500GB/(60MB/s) = 500*1000/60 s = 8333s =
2h18min to read all of it.

Over USB you probably will not get much more than 20-25MB/s.  20MB/s is
exactly a third of the 60MB/s we used earlier gives a total time of
3*(2h18min) ~= 7h.  Those 6 hours do not sound unreasonable at all.

(All of this assumes just reading the disk from start to end. If you need to
seek back and forth it will take even longer.)






-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cannot login to root account on FreeBSD 7.0

2008-10-31 Thread Mel
On Friday 31 October 2008 17:13:14 mdh wrote:
 --- On Fri, 10/31/08, Pramod Dematagoda [EMAIL PROTECTED] wrote:
  From: Pramod Dematagoda [EMAIL PROTECTED]
  Subject: Re: Cannot login to root account on FreeBSD 7.0
  To: [EMAIL PROTECTED]
  Cc: FreeBSD ML freebsd-questions@freebsd.org
  Date: Friday, October 31, 2008, 12:00 PM
 
  On Fri, 2008-10-31 at 08:19 -0700, mdh wrote:
   --- On Fri, 10/31/08, Pramod Dematagoda
 
  [EMAIL PROTECTED] wrote:
From: Pramod Dematagoda
 
  [EMAIL PROTECTED]
 
Subject: Re: Cannot login to root account on
 
  FreeBSD 7.0
 
To: Mel
 
  [EMAIL PROTECTED]
 
Cc: FreeBSD ML
 
  freebsd-questions@freebsd.org
 
Date: Friday, October 31, 2008, 11:09 AM
   
On Fri, 2008-10-31 at 16:00 +0100, Mel wrote:
 On Friday 31 October 2008 15:53:23 Pramod
 
  Dematagoda
 
wrote:
  On Fri, 2008-10-31 at 07:09 -0700,
 
  Jeremy
 
Chadwick wrote:
   On Fri, Oct 31, 2008 at 06:59:04PM
 
  +0530,
 
Pramod Dematagoda wrote:
But now I've faced a big
 
  problem, I
 
can no longer seem to login to the
   
root account where whenever I
 
  supply
 
the proper credentials to the
   
login screen, I always get
 
  thrown back
 
to the login screen. This
   
started happening after I
 
  installed
 
D-bus and HAL through the FreeBSD
   
ports which were built upon
 
  Xorg 1.5.1
 
which I had built myself
   
previously, so I am wondering
 
  if
 
something I did may have caused the
   
problem.
  
   Reboot the machine and at the
 
  FreeBSD
 
beastie/loader menu, hit 4 to
   
   boot into single-user mode.  Once
 
  there, do:
   # mount -a
   # mount -o rw -u /
   # passwd root
  
   And change the password.
 
  reboot
 
and you should be good to go.
   
  Hey Jeremy,
 
  Thanks for looking into the problem,
 
  but
 
unfortunately your solution did
   
  not work, I changed the root password
 
  to
 
something else, however I still
   
  cannot login to root once I boot
 
  FreeBSD
 
normally.
   
 There should be in indication in
 
  /var/log/messages or
 
/var/log/auth.log.
   
I checked /var/log/messages, and I found
 
  something
 
interesting, it seems
that csh exits with signal 11(core dumped) right
 
  after a
 
root login,
there is nothing out of the ordinary in auth.log.
 
  But now
 
what do I do
to fix the problem, change the shell?
  
   Yeowzers.
   Change it to /bin/sh for now.  Once you're back
 
  up, it'd be interesting to debug this.  Would you like
  to?
 
   - mdh
 
  I found something a bit more interesting, csh crashes
  regardless of the
  user account to which it is used for, so something is wrong
  with csh
  itself and not the root account.
 
  Regards,
  Pramod Dematagoda

 First, please post the output of `uname -a`.  It'd be useful to know when
 you grabbed sources last, if you've built your own world at all, as well. 
 This information is necessary before we continue.  Also please post the
 output from the commands `ls -l /bin/csh` and `md5 /bin/csh`.

 While in sh, if you type /bin/csh to run csh, does it crash, or does it
 seem proper?  If it seems proper, try and few commands and see if it still
 does. If it crashes, let's try some debugging.  You should have a csh.core
 file, probably in /root.  Run the command `gdb /bin/csh /root/csh.core`
 (replacing /root/csh.core to whatever path csh.core is in, if it's not in
 /root), and post the output to this list along with everything else I've
 asked for.

 Do that now.  If that still doesn't work, I'm going to tell you to...

 Build it for debugging.  cd to the directory /usr/src/bin/csh, and run the
 following commands: `CFLAGS='-ggdb' make`, then run `make install`.


No, we don't do that. We run:
make DEBUG_FLAGS=-g clean all install

because:
a) setting CFLAGS omits CFLAGS from the bsd build system and that's not 
advised
b) setting DEBUG_FLAGS disables strip on install (strip strips the debug 
symbols)

-- 
Mel

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


Re: Cannot login to root account on FreeBSD 7.0

2008-10-31 Thread Polytropon
On Fri, 31 Oct 2008 21:24:52 +0530, Pramod Dematagoda [EMAIL PROTECTED] wrote:
 I changed the shell to /bin/sh and it
 now seems to work fine, but really saying, sh seems to be crippled
 compared to csh, so I would like to get back to csh.

Please don't get confused: The Bourne Shell sh is to be considered
a batch shell primarily, it's not a dialog shell in the first place.
This is what the Bourne Again Shell bash would be mentioned as.
You can install it via pkg_add -r bash and then use it (note that
it's /usr/local/bin/bash then, not /bin/bash as in Linux). You can
use the chsh command to do this.

What does happen if you start a C Shell session from within the
working sh? Like this:

$ csh
[EMAIL PROTECTED]:~% _

Does this work?

Personally, the C shell is my favourite dialog shell, allthough
zsh and ksh, both available for FreeBSD, are powerful tools, too.



-- 
Polytropon
From 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 [EMAIL PROTECTED]


Re: Firewalls in FreeBSD?

2008-10-31 Thread Lowell Gilbert
Jeremy Chadwick [EMAIL PROTECTED] writes:

 On Fri, Oct 31, 2008 at 12:05:28PM -0400, Lowell Gilbert wrote:
 Jeremy Chadwick [EMAIL PROTECTED] writes:
 
  On Thu, Oct 30, 2008 at 06:34:31PM -0500, Jack Barnett wrote:
 
  Ok, I had some progress with this last night. Basically what I do is:
 
  in natd - redirect_port 1000 to 1 to the internal windows box.
  set ipfw to open file wall.
 
  Obviously this isn't prefect - but gives some idea of what's going on.
 
  What I'd like to do, is a) keep the nat redirects since that works  
  pretty well.
  b) in ipfw, ONLY allow data back on these ports IF the windows box has  
  established the connection out first then deny everything else.
 
  This is called port triggering in the residential router world.  I
  don't know how to do this on FreeBSD.
 
 Stateful rules are the only way to do it.
 In fact, this is the main purpose of stateful rules.

 Read this part of the thread, where I outline protocol flow (based on
 what the OP has stated about the protocol, which so far appears to be
 accurate):

 http://lists.freebsd.org/pipermail/freebsd-questions/2008-October/thread.html

 Stateful rules will not solve this problem.

 The OP wants a feature that tells ipfw or pf after the TCP handshake
 has completed, dynamically add a port forward for port X on interface Y
 to machine A on port Z; when the TCP session is FIN'd cleanly, or
 extinguishes, dynamically remove that port forward.

Okay, I guess I'm a little confused by the line about ONLY allow data
back on these ports IF the windows box has established the connection
out first then deny everything else.  I read that as saying that the
Windows box had sent a packet on the same connection (4-tuple, at
least) that should be later accepted heading *to* the Windows box.
That's just a stateful rule, and it seems to be at odds with what you
wrote in your first message in the thread.  The apparent disagreement
was why I said anything in the first place; it sounds like there's
more than one model of how the game works.

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


Re: Cannot login to root account on FreeBSD 7.0

2008-10-31 Thread mdh
Right - sorry, my bad on that one.  But do substitute -ggdb for your -g, as 
that'll give us GDB-specific debugging symbols.  

- mdh

--- On Fri, 10/31/08, Mel [EMAIL PROTECTED] wrote:
  Build it for debugging.  cd to the directory
 /usr/src/bin/csh, and run the
  following commands: `CFLAGS='-ggdb' make`,
 then run `make install`.
 
 
 No, we don't do that. We run:
 make DEBUG_FLAGS=-g clean all install
 
 because:
 a) setting CFLAGS omits CFLAGS from the bsd build system
 and that's not 
 advised
 b) setting DEBUG_FLAGS disables strip on install (strip
 strips the debug 
 symbols)
 
 -- 
 Mel
 
 Problem with today's modular software: they start with
 the modules
 and never get to the software part.



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


Re: Firewalls in FreeBSD?

2008-10-31 Thread Jeremy Chadwick
On Fri, Oct 31, 2008 at 12:35:30PM -0400, Lowell Gilbert wrote:
 Jeremy Chadwick [EMAIL PROTECTED] writes:
 
  On Fri, Oct 31, 2008 at 12:05:28PM -0400, Lowell Gilbert wrote:
  Jeremy Chadwick [EMAIL PROTECTED] writes:
  
   On Thu, Oct 30, 2008 at 06:34:31PM -0500, Jack Barnett wrote:
  
   Ok, I had some progress with this last night. Basically what I do is:
  
   in natd - redirect_port 1000 to 1 to the internal windows box.
   set ipfw to open file wall.
  
   Obviously this isn't prefect - but gives some idea of what's going on.
  
   What I'd like to do, is a) keep the nat redirects since that works  
   pretty well.
   b) in ipfw, ONLY allow data back on these ports IF the windows box has  
   established the connection out first then deny everything else.
  
   This is called port triggering in the residential router world.  I
   don't know how to do this on FreeBSD.
  
  Stateful rules are the only way to do it.
  In fact, this is the main purpose of stateful rules.
 
  Read this part of the thread, where I outline protocol flow (based on
  what the OP has stated about the protocol, which so far appears to be
  accurate):
 
  http://lists.freebsd.org/pipermail/freebsd-questions/2008-October/thread.html
 
  Stateful rules will not solve this problem.
 
  The OP wants a feature that tells ipfw or pf after the TCP handshake
  has completed, dynamically add a port forward for port X on interface Y
  to machine A on port Z; when the TCP session is FIN'd cleanly, or
  extinguishes, dynamically remove that port forward.
 
 Okay, I guess I'm a little confused by the line about ONLY allow data
 back on these ports IF the windows box has established the connection
 out first then deny everything else.  I read that as saying that the
 Windows box had sent a packet on the same connection (4-tuple, at
 least) that should be later accepted heading *to* the Windows box.
 That's just a stateful rule, and it seems to be at odds with what you
 wrote in your first message in the thread.  The apparent disagreement
 was why I said anything in the first place; it sounds like there's
 more than one model of how the game works.

I understand the confusion.  Here's the actual protocol that the game
appears to be using (since the OP has stated forwarding a port range to
his LAN PC solves the problem -- meaning, his original description of
how the game protocol worked is accurate):

windows= 192.168.x.x machine on the LAN
natgwlan   = private LAN-facing IP of FreeBSD box (e.g. gateway IP)
natgwwan   = public Internet-facing IP of FreeBSD box
gameserver = game server (public Internet IP)

* = randomly-allocated port number
gameport  = some static port # for the game (OP hasn't disclosed this)
range = some specific range of port numbers (OP says 1000-1)

This is what would happen if the windows machine was on the Internet
directly (no NAT, no firewall):

Step 1)  windows:* --  gameserver:gameport
Step 2)  gameserver:*  --  windows:range

Note that the randomly-allocated port number is *not* identical
between all of the above steps; literally each is a new port and
unrelated to the previous -- hence why state tracking won't work.

Now with NAT in the way, this is what happens for Step 1:

windows:*  --  natgwlan
 natgwwan:*  -- gameserver:gameport

Once the TCP handshake is completed for Step 1, the following happens
as a result of Step 2 -- again, note this is a *brand new connection*
being initiated from the gameserver:

gameserver:*  --  natgwwan:range

The problem is that these are all brand new connections being initiated,
and there's no way to cross-reference them, which is why state tracking
won't work to solve the OPs problem.

The port triggering method I described above, commonly available
on residential routers, is configured so that once the TCP handshake
is completed in Step 1, the router/natgw *immediately* adds a port
forward and firewall allow/pass rule (you have to configure it to
say what port range to forward, and what LAN IP to forward the packets
to).

Thus, the following would happen immediately after the TCP handshake was
completed in Step 1:

- natgw adds a firewall pass rule for natgwwan:range
- natgw adds a forwarding rule for natgwwan:1000 -- windows, where
  the port number matches (e.g. natgwwan:1000 -- windows:1000)

This pass/allow rule and the forward remains intact until the port
triggered connection is severed (FIN or expired).  It does not
expire/close based upon the connection made in Step 1.

This would allow Step to work, and would look like this with NAT
in the way:

gameserver:*  --  natgwwan:range
natgwlan   -- windows:range

This is as verbose as I can get, and based upon the forwarding and the
firewall rules the OP added, this does appear to be the protocol the
game uses.  And yes, this is a *horrible* protocol, completely NAT-
unfriendly.

The only part that confuses me is how the gameserver knows what port
number 

Re: Cannot login to root account on FreeBSD 7.0

2008-10-31 Thread Jeremy Chadwick
On Fri, Oct 31, 2008 at 09:36:17AM -0700, mdh wrote:
 Right - sorry, my bad on that one.  But do substitute -ggdb for your -g, as 
 that'll give us GDB-specific debugging symbols.  

Best not to take any chances.  Use both: -g3 -ggdb   :-)

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

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


about vi editor and turkish char

2008-10-31 Thread Yavuz Maslak
Hello 


I use Freebsd7.0.
I am not able to use turkish char while I edit a file with vi editor.

How can I correct that ? 
___

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


Re: Firewalls in FreeBSD?

2008-10-31 Thread Lowell Gilbert
Jeremy Chadwick [EMAIL PROTECTED] writes:

 On Fri, Oct 31, 2008 at 12:35:30PM -0400, Lowell Gilbert wrote:

 Okay, I guess I'm a little confused by the line about ONLY allow data
 back on these ports IF the windows box has established the connection
 out first then deny everything else.  I read that as saying that the
 Windows box had sent a packet on the same connection (4-tuple, at
 least) that should be later accepted heading *to* the Windows box.
 That's just a stateful rule, and it seems to be at odds with what you
 wrote in your first message in the thread.  The apparent disagreement
 was why I said anything in the first place; it sounds like there's
 more than one model of how the game works.

 I understand the confusion.  Here's the actual protocol that the game
 appears to be using (since the OP has stated forwarding a port range to
 his LAN PC solves the problem -- meaning, his original description of
 how the game protocol worked is accurate):

I see.  If that is the case, then the word connection in the line I
quoted from Jack Barnett does *not* mean a TCP session, but something
a little more nebulous.  Game session might cover it.  

[I *was* aware of that possible confusion, which was why I specified
an address/port tuple as the definition of connection.]

Sorry for the distraction; I see that (short of a deep-inspection
snooping of the protocol), what has already been done is as good as
you can get.

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


Re: CUPS wont print inside GNOME

2008-10-31 Thread Roger Olofsson



Sean Cavanaugh skrev:

I have the latest GNOME installed from ports and have the odd issue of CUPS not 
wanting to work with it right.

If i access the CUPS web configuration page, i can print test pages just fine 
and not a single issue, but if i try and print a test page from inside GNOME, 
including trying with the gnome-cups-manager port, it will stop and present the 
following error
/usr/local/libexec/cups/filter/pstoraster failedthis error will carry over to 
the web interface and those jobs are pretty much hosed, yet i can create a test print 
from web interface even when this error is present.

I do notice that test pages from web interface come from user anonymous 
whereas test pages from gnome-cups-manager are from the respected user that ran it.
even root is unable to print from inside gnome.

-Sean

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





No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.175 / Virus Database: 270.8.5/1757 - Release Date: 2008-10-30 14:35




Hi Sean,

I assume you have cups-pstoraster installed? It should be installed when 
installing CUPS itself.


If you built Gnome from source you should have this in /etc/make.conf

CUPS_OVERWRITE_BASE=yes
NO_LPR=yes
WITH_CUPS=yes

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


Re: about vi editor and turkish char

2008-10-31 Thread Matthias Apitz
El día Friday, October 31, 2008 a las 06:31:02PM +0200, Yavuz Maslak escribió:

 Hello 
 
 I use Freebsd7.0.
 I am not able to use turkish char while I edit a file with vi editor.
 
 How can I correct that ? 

Hello,

You could use a 'xterm' with UTF-8 support, a correct LANG environment,
for example LANG=es_ES.UTF-8, and the editor 'vim' (from the
ports); to enter UTF-8 chars which are not on your keyboard you could
use, for example, KDE's application KCharSelect

HIH

matthias

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


Re: Firewalls in FreeBSD?

2008-10-31 Thread Jeremy Chadwick
On Fri, Oct 31, 2008 at 01:27:40PM -0400, Lowell Gilbert wrote:
 Jeremy Chadwick [EMAIL PROTECTED] writes:
 
  On Fri, Oct 31, 2008 at 12:35:30PM -0400, Lowell Gilbert wrote:
 
  Okay, I guess I'm a little confused by the line about ONLY allow data
  back on these ports IF the windows box has established the connection
  out first then deny everything else.  I read that as saying that the
  Windows box had sent a packet on the same connection (4-tuple, at
  least) that should be later accepted heading *to* the Windows box.
  That's just a stateful rule, and it seems to be at odds with what you
  wrote in your first message in the thread.  The apparent disagreement
  was why I said anything in the first place; it sounds like there's
  more than one model of how the game works.
 
  I understand the confusion.  Here's the actual protocol that the game
  appears to be using (since the OP has stated forwarding a port range to
  his LAN PC solves the problem -- meaning, his original description of
  how the game protocol worked is accurate):
 
 I see.  If that is the case, then the word connection in the line I
 quoted from Jack Barnett does *not* mean a TCP session, but something
 a little more nebulous.  Game session might cover it.  
 
 [I *was* aware of that possible confusion, which was why I specified
 an address/port tuple as the definition of connection.]
 
 Sorry for the distraction; I see that (short of a deep-inspection
 snooping of the protocol), what has already been done is as good as
 you can get.

Nah, it's cool -- the misunderstanding is... understandable.  :-)

I've never seen a game behave this way (specifically, the gameserver
initiating a *brand new connection* rather than utilising an existing
one, or having the client initiate a connection to the server -- in
which case, a stateful firewall will work perfectly and no firewall
rules are needed).

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

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


RE: CUPS wont print inside GNOME

2008-10-31 Thread Sean Cavanaugh
 Date: Fri, 31 Oct 2008 17:58:06 +0100
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 CC: freebsd-questions@freebsd.org
 Subject: Re: CUPS wont print inside GNOME
 
 
 
 Sean Cavanaugh skrev:
  I have the latest GNOME installed from ports and have the odd issue of CUPS 
  not wanting to work with it right.
  
  If i access the CUPS web configuration page, i can print test pages just 
  fine and not a single issue, but if i try and print a test page from inside 
  GNOME, including trying with the gnome-cups-manager port, it will stop and 
  present the following error
  /usr/local/libexec/cups/filter/pstoraster failedthis error will carry 
  over to the web interface and those jobs are pretty much hosed, yet i can 
  create a test print from web interface even when this error is present.
  
  I do notice that test pages from web interface come from user anonymous 
  whereas test pages from gnome-cups-manager are from the respected user that 
  ran it.
  even root is unable to print from inside gnome.
  
  -Sean
  
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to [EMAIL PROTECTED]
  
  
  
  
  
  No virus found in this incoming message.
  Checked by AVG - http://www.avg.com 
  Version: 8.0.175 / Virus Database: 270.8.5/1757 - Release Date: 2008-10-30 
  14:35
  
 
 Hi Sean,
 
 I assume you have cups-pstoraster installed? It should be installed when 
 installing CUPS itself.
 
 If you built Gnome from source you should have this in /etc/make.conf
 
 CUPS_OVERWRITE_BASE=yes
 NO_LPR=yes
 WITH_CUPS=yes
 
 /Roger


i have cups-pstoraster installed. like i said, i can get a test page to print 
fine from the CUPS web page, just not if it was initialized inside gnome even 
though i do see the print jobs sitting in the queue for the printer with status 
Stopped. Restarting the jobs doesnt help them any either.

i installed everything from ports but my make.conf file is a little bare

UnKnown# less /etc/make.conf 
# added by use.perl 2008-10-23 14:57:35
PERL_VER=5.8.8
PERL_VERSION=5.8.8


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


Re: gmirror slice insertion, FAILURE - READ_DMA status=51READY, DSC, ERROR

2008-10-31 Thread Thomas Sparrevohn
On Wednesday 29 October 2008 10:04:39 Jeremy Chadwick wrote:
 On Wed, Oct 29, 2008 at 02:00:21AM -0700, Carl wrote:
  Jeremy Chadwick wrote:
  Seagate chooses to encode some raw data for some SMART attributes in a
  custom format.  The format is not publicly documented.  This is why you
  have to go off of the adjusted values shown in VALUE/WORST/THRESH.
  How am I supposed to know all of this?!  You aren't -- it comes with
  experience.
 
  And yet my failing drive's VALUE numbers are still all above their  
  THRESH values, despite it being bad enough to cripple the system. One  
  might argue those threshold values leave something to be desired.
 
 I'd urge you to file complaint(s) with drive manufacturers, as they're
 the ones who decide the values.  Thresholds are not defined per the
 ATA-ATAPI specification, so technically they can pick whatever value
 they want.  This is exactly why you'll encounter people screaming SMART
 is worthless, the drive is already dead by the time the overall SMART
 health check fails!
 
 If you go this route, please CC me, as I'd be quite to see what
 manufacturers have to say.
 

Just a saw note - I saw the same problem with a hitachi disk - I ran a vendor 
diagnostics tool
that I found on their home page and it rebuild the bad sector map and the 
problem went away 

The error occured after I had the disk for a couple of days - WHat puzzled me 
was that the drive
did not do it automatically 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cannot login to root account on FreeBSD 7.0

2008-10-31 Thread Jos Chrispijn



Uit een eerder bericht (31-10-2008 14:29):

But now I've faced a big problem, I can no longer seem to login to the
root account where whenever I supply the proper credentials to the login
screen, I always get thrown back to the login screen.
Stupid question perhaps: do you try to login locally of thru 
SSH/Terminal session?

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


Behaviour of su(1)

2008-10-31 Thread Frédéric Perrin
Hello,

When I « su - » to root (after being logged in as my normal user), the
LOGNAME env variable is still set to my previous user, as in :

,
| [EMAIL PROTECTED]:~% /usr/bin/su -l
| Password:
| [EMAIL PROTECTED]:~# echo $USER - $LOGNAME
| root - fred
`

As far as I can tell, this contradicts the fine manual that says :

,
| -l  Simulate a full login.  The environment is discarded except for
| HOME, SHELL, PATH, TERM, and USER.
`

So I would have expected LOGNAME to be either empty or set by some shell
startup script to be root. So, why is LOGNAME still equal to my previous
user ? (and where is it set ? « grep -r LOGNAME /etc » doesn't turn up
anything...)

This is an issue because emacs, for instance, uses $LOGNAME to load the
init-file. I could always add « export LOGNAME=root » to my shell
startup file, but this doesn't quite feel right...

GNU su (as it is ocnfigured in Debian at least) resets LOGNAME to root
in the same situation. (and by the way, GNU su seems broken : if I « gsu
-l root », I always get a 'Password incorrect' answer).

As a side question, is it considered bad practice to set root's shell
and locales to something else then the default ?

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


Re: CUPS wont print inside GNOME

2008-10-31 Thread Roger Olofsson



Sean Cavanaugh skrev:

Date: Fri, 31 Oct 2008 17:58:06 +0100
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: freebsd-questions@freebsd.org
Subject: Re: CUPS wont print inside GNOME



Sean Cavanaugh skrev:

I have the latest GNOME installed from ports and have the odd issue of CUPS not 
wanting to work with it right.

If i access the CUPS web configuration page, i can print test pages just fine 
and not a single issue, but if i try and print a test page from inside GNOME, 
including trying with the gnome-cups-manager port, it will stop and present the 
following error
/usr/local/libexec/cups/filter/pstoraster failedthis error will carry over to 
the web interface and those jobs are pretty much hosed, yet i can create a test print 
from web interface even when this error is present.

I do notice that test pages from web interface come from user anonymous 
whereas test pages from gnome-cups-manager are from the respected user that ran it.
even root is unable to print from inside gnome.

-Sean

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





No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.175 / Virus Database: 270.8.5/1757 - Release Date: 2008-10-30 14:35



Hi Sean,

I assume you have cups-pstoraster installed? It should be installed when 
installing CUPS itself.


If you built Gnome from source you should have this in /etc/make.conf

CUPS_OVERWRITE_BASE=yes
NO_LPR=yes
WITH_CUPS=yes

/Roger



i have cups-pstoraster installed. like i said, i can get a test page to print fine from 
the CUPS web page, just not if it was initialized inside gnome even though i do see the 
print jobs sitting in the queue for the printer with status Stopped. 
Restarting the jobs doesnt help them any either.

i installed everything from ports but my make.conf file is a little bare

UnKnown# less /etc/make.conf 
# added by use.perl 2008-10-23 14:57:35

PERL_VER=5.8.8
PERL_VERSION=5.8.8


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





No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.175 / Virus Database: 270.8.5/1757 - Release Date: 2008-10-30 14:35




Hi again Sean,

Add the lines, make reinstall and see if Gnome picks it up..

There's an excellent site at 
http://www.math.colostate.edu/~reinholz/freebsd/ that has CUPS related 
information.


Please let the list know if it helps!

/Roger


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


Re: Behaviour of su(1)

2008-10-31 Thread Chuck Swiger

Hi--

On Oct 31, 2008, at 11:33 AM, Frédéric Perrin wrote:

When I « su - » to root (after being logged in as my normal user), the
LOGNAME env variable is still set to my previous user, as in :

,
| [EMAIL PROTECTED]:~% /usr/bin/su -l
| Password:
| [EMAIL PROTECTED]:~# echo $USER - $LOGNAME
| root - fred
`

As far as I can tell, this contradicts the fine manual that says :

,
| -l  Simulate a full login.  The environment is discarded  
except for

| HOME, SHELL, PATH, TERM, and USER.
`

So I would have expected LOGNAME to be either empty or set by some  
shell
startup script to be root. So, why is LOGNAME still equal to my  
previous

user ? (and where is it set ? « grep -r LOGNAME /etc » doesn't turn up
anything...)


When you su -l it invokes /usr/bin/login, which per man login sets  
up up $LOGNAME:


 The login utility enters information into the environment (see
 environ(7)) specifying the user's home directory (HOME), command  
inter-
 preter (SHELL), search path (PATH), terminal type (TERM) and  
user name

 (both LOGNAME and USER).

I believe it looks up the actual username from the wtmp record  
associated with your open tty, so $USER corresponds to the effective  
userid, but $LOGNAME corresponds to the actual username used to login,  
aka your real userid...?


Regards,
--
-Chuck

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


Re: Behaviour of su(1)

2008-10-31 Thread Fred Condo

Use this syntax (both equivalent):
su - root
su -l root

You do have to specify the user with -l. Perhaps the man page could  
clarify that.


On Oct 31, 2008, at 11:33 AM, Frédéric Perrin wrote:


Hello,

When I « su - » to root (after being logged in as my normal user), the
LOGNAME env variable is still set to my previous user, as in :

,
| [EMAIL PROTECTED]:~% /usr/bin/su -l
| Password:
| [EMAIL PROTECTED]:~# echo $USER - $LOGNAME
| root - fred
`

As far as I can tell, this contradicts the fine manual that says :

,
| -l  Simulate a full login.  The environment is discarded  
except for

| HOME, SHELL, PATH, TERM, and USER.
`

So I would have expected LOGNAME to be either empty or set by some  
shell
startup script to be root. So, why is LOGNAME still equal to my  
previous

user ? (and where is it set ? « grep -r LOGNAME /etc » doesn't turn up
anything...)

This is an issue because emacs, for instance, uses $LOGNAME to load  
the

init-file. I could always add « export LOGNAME=root » to my shell
startup file, but this doesn't quite feel right...

GNU su (as it is ocnfigured in Debian at least) resets LOGNAME to root
in the same situation. (and by the way, GNU su seems broken : if I «  
gsu

-l root », I always get a 'Password incorrect' answer).

As a side question, is it considered bad practice to set root's shell
and locales to something else then the default ?

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





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


why does firefox not display icons?

2008-10-31 Thread Gary Kline
Hey guys,

in trying to get firefox to work with flash-9, i must have done Something
so that now, ff no longer displays, say, the google icons.  there is just
a red dot, or the string [IMAGE] where a jpg should be.

thanks for any clues,

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


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


pyhton apache

2008-10-31 Thread tethys ocean
Hi all

I have a problem, a freebsd box that is apache22 and python25-2.5.2_3,
mod_python-3.3.1_2   after upgrading phyton web site has stoped with this
error Internal Server Error
in http-errorlog[Thu Oct 30 22:26:46 2008] [error] [client 65.54.112.34]
File does not exist: /home/aleni/www-home/static/robots.txt
[Thu Oct 30 23:03:28 2008] [error] [client 38.87.44.102] File does not
exist: /home/aleni/www.tmp/static/robots.txt
[Thu Oct 30 23:08:57 2008] [error] [client 85.75.231.172] File does not
exist: /home/aleni/www-home/static/robots.txt
[Fri Oct 31 01:26:52 2008] [error] [client 212.36.146.10] File does not
exist: /home/aleni/www-home/static/robots.txt
[Fri Oct 31 05:05:15 2008] [warn] RSA server certificate CommonName (CN) `
aleni.net' does NOT match server name!?
[Fri Oct 31 05:05:15 2008] [warn] Init: SSL server IP/port conflict:
www.aleni.net:443 (/usr/local/etc/apache22/extra/httpd-vhosts.conf:105) vs.
static.aleni.net:443 (/usr/local/etc/apache22/extra/httpd-vhosts.conf:154)
[Fri Oct 31 05:05:15 2008] [warn] Init: You should not use name-based
virtual hosts in conjunction with SSL!!
*[Fri Oct 31 05:05:15 2008] [notice] mod_python: Creating 0 session mutexes
based on 256 max processes and 0 max threads.*
*[Fri Oct 31 05:05:15 2008] [notice] mod_python: using mutex_directory /tmp
*
[Fri Oct 31 05:05:15 2008] [notice] Digest: generating secret for digest
authentication ...
[Fri Oct 31 05:05:15 2008] [notice] Digest: done
[Fri Oct 31 05:05:16 2008] [notice] Apache/2.2.6 (FreeBSD) mod_ssl/2.2.6
OpenSSL/0.9.7e-p1 mod_python/3.3.1 Python/2.4.4 PHP/5.2.4 with Suhosin-Patch
configured -- resuming normal operations
[Fri Oct 31 10:06:21 2008] [error] [client 195.217.151.57] client sent
HTTP/1.1 request without hostname (see RFC2616 section 14.23):
/w00tw00t.at.ISC.SANS.DFind:)

when check apache config file

* LoadModule python_module libexec/apache22/mod_python.so
 LoadModule php5_module libexec/apache22/libphp5.so

 PythonOption mod_python.mutex_directory /tmp
 PythonOption mod_python.mutex_locks 0
*
and also in http_vhost.conf


Location /
  SetHandler mod_python
  PythonInterpreter main_interpreter
  PythonHandler trac.web.modpython_frontend
  PythonOption TracEnv /home/aleni/www/
  PythonOption TracUriRoot /
   /Location




i cant normalize server and open to web page  if any help (solution)
appreciate



-- 
Share now a pigeon's flight
Bluebound along the ancient skies,
Its women forever hair and mammal,
A Mediterranean town may arise
If you rip apart a pigeon's heart.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: about vi editor and turkish char

2008-10-31 Thread Chad Perrin
On Fri, Oct 31, 2008 at 06:33:10PM +0100, Matthias Apitz wrote:
 El día Friday, October 31, 2008 a las 06:31:02PM +0200, Yavuz Maslak escribió:
  
  I use Freebsd7.0.
  I am not able to use turkish char while I edit a file with vi editor.
  
  How can I correct that ? 
 
 You could use a 'xterm' with UTF-8 support, a correct LANG environment,
 for example LANG=es_ES.UTF-8, and the editor 'vim' (from the
 ports); to enter UTF-8 chars which are not on your keyboard you could
 use, for example, KDE's application KCharSelect

. . . or you could use another terminal emulator that supports Unicode,
such as rxvt-unicode.

-- 
Chad Perrin [ content licensed PDL: http://pdl.apotheon.org ]
McCloctnick the Lucid: The first rule of magic is simple. Don't waste
your time waving your hands and hopping when a rock or a club will do.


pgploo7Hjzf1H.pgp
Description: PGP signature


Re: Funny slogans to put on tshirts

2008-10-31 Thread Chad Perrin
On Fri, Oct 31, 2008 at 08:44:57PM +1030, en0f wrote:
 Redd Vinylene wrote:
  Hello guys,
  
  It's my friend's birthday tomorrow. I was thinking I'd make him a
  tshirt with some funny slogan on it or something. Preferably something
  UNIX related. But I'm all outta ideas. Perhaps y'all can help?
  Alright, much obliged, thanks.
  
 
 * hold it right there buddy.
 + silent
 
 * that scruffy beard... those suspenders... that smug expression...
 + silent
 
 * you're one of those condescending unix computer users!
 + here's a nickel, kid. get yourself a better computer.

Isn't that the script of a Dilbert strip?

Maybe, for shirt purposes, just distill that down to its essence:

Here's a nickel, kid.  Get yourself a better computer.

It could also be modified a bit:

Here's a nickel, kid.  Blank CDs are cheap.  Get yourself a better
operating system.

. . . maybe with a Windows logo crossed out, or with a FreeBSD logo, or
something like that.

Of course, one of my favorite one-liners is one I made up:

Power corrupts.  The command line corrupts absolutely.

. . . or, altneratively:

Power corrupts.  Unix corrupts absolutely.

-- 
Chad Perrin [ content licensed PDL: http://pdl.apotheon.org ]
Quoth Larry Wall: What is the sound of Perl?  Is it not the sound of a
wall that people have stopped banging their heads against?


pgp6Rf1MgTrU6.pgp
Description: PGP signature


Re: CUPS wont print inside GNOME

2008-10-31 Thread Sean Cavanaugh

--TRUNCATED--





No virus found in this incoming message.
Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database: 
270.8.5/1757 - Release Date: 2008-10-30 14:35




Hi again Sean,

Add the lines, make reinstall and see if Gnome picks it up..

There's an excellent site at 
http://www.math.colostate.edu/~reinholz/freebsd/ that has CUPS related 
information.


Please let the list know if it helps!

/Roger

I got it fixed, I ran make rmconfig-recursive on gutenprint and CUPS and 
rebuilt them making sure gutenprint was set to use CUPS. this forced some 
other stuff to work and now it actually has the postscript driver listed for 
my printer and it fully works in gnome now. never had to touch 
/etc/make.conf.


I find it kind of self defeating for the ports if you HAVE to add stuff to 
the /etc/make.conf file for it to work without any documentation telling you 
to do so or not doing it automatically (Like PERL did) 


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


Re: CUPS wont print inside GNOME

2008-10-31 Thread (-K JohnNy
 I find it kind of self defeating for the ports if you HAVE to add stuff to 
 the /etc/make.conf file for it to work without any documentation telling you 
 to do so or not doing it automatically (Like PERL did) 
On the other hand, some of us, like myself, find it a bit...
Arrogant? ...if some port touches your system config files without
asking. And simply printing it on the output at the end of
installation isn't enough since it might get lost if an other port is
built right after the one printing out the message. I don't know if
there is an optimal way...

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


pgp40l2d6cF60.pgp
Description: PGP signature


Re: why does firefox not display icons?

2008-10-31 Thread Polytropon
On Fri, 31 Oct 2008 13:23:57 -0700, Gary Kline [EMAIL PROTECTED] wrote:
 Hey guys,
 
 in trying to get firefox to work with flash-9, i must have done Something
 so that now, ff no longer displays, say, the google icons.  there is just
 a red dot, or the string [IMAGE] where a jpg should be.

One possibility could be that you accidently switched off
show images in some preference dialog. Maybe you could
check this?

Allthough Firefox is not my primary browser (which is Opera),
I think there is some setting that prevents images from bein
loaded. Instead, the alt or longdesc attribute of the img
tag is shown, or, in case that an image has been referenced
that does not exist, a red dot or X is shown.

At least, that how your situation looks to me...



-- 
Polytropon
From 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 [EMAIL PROTECTED]


Re: pyhton apache

2008-10-31 Thread Michael Powell
tethys ocean wrote:

 Hi all
 
 I have a problem, a freebsd box that is apache22 and python25-2.5.2_3,
 mod_python-3.3.1_2   after upgrading phyton web site has stoped with this
 error Internal Server Error
[snip]
 [Fri Oct 31 05:05:15 2008] [notice] Digest: done
 [Fri Oct 31 05:05:16 2008] [notice] Apache/2.2.6 (FreeBSD) mod_ssl/2.2.6
 OpenSSL/0.9.7e-p1 mod_python/3.3.1 Python/2.4.4 PHP/5.2.4 with
 
Well Apache seems to think it is still using Python 2.4.4. 

 Suhosin-Patch configured -- resuming normal operations
 [Fri Oct 31 10:06:21 2008] [error] [client 195.217.151.57] client sent
 HTTP/1.1 request without hostname (see RFC2616 section 14.23):
 /w00tw00t.at.ISC.SANS.DFind:)
 
[snip] 

I can't be of much help with this as I am not a Python expert by any means,
but the first thing that occurs to me is to ask: did you rebuild/reinstall
mod_python after you upgraded to python25? If not you might want to try
that first. Restart Apache and see if it no longer shows the Python 2.4.4.

As far as the Python environment(s), you may want to ensure that all
vestiges of the old python24 are truly gone (especially prior to rebuilding
mod_python).

You may also try and find confirmation somehow whether or not the code that
is failing on the web server is even compatible with python25. In such a
case either update the failing code or downgrade back to python24. 

If the server is production and you just need it back up fast you may
consider returning it to its pre-python25 upgrade condition. Then conduct
your python25 experimentation on a non-production test box.

Before any major change of this sort I _always_ do backup dumps of my
server. So if something goes south I can immediately restore the server to
the state it was in prior to mucking it up.

-Mike


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


Re: Funny slogans to put on tshirts

2008-10-31 Thread Gonzalo Nemmi
On 10/31/08, Redd Vinylene [EMAIL PROTECTED] wrote:
 Hello guys,

 It's my friend's birthday tomorrow. I was thinking I'd make him a
 tshirt with some funny slogan on it or something. Preferably something
 UNIX related. But I'm all outta ideas. Perhaps y'all can help?
 Alright, much obliged, thanks.

Here's one from /usr/src/sys/kern/kern_malloc.c

It goes like this:

/*
 * Small malloc(9) memory allocations are allocated from a set of UMA buckets
 * of various sizes.
 *
 * XXX: The comment here used to read These won't be powers of two for
 * long.  It's possible that a significant amount of wasted memory could be
 * recovered by tuning the sizes of these buckets.
 */
struct {
int kz_size;
char *kz_name;
uma_zone_t kz_zone;
} kmemzones[] = {
{16, 16, NULL},
{32, 32, NULL},
{64, 64, NULL},
{128, 128, NULL},
{256, 256, NULL},
{512, 512, NULL},
{1024, 1024, NULL},
{2048, 2048, NULL},
{4096, 4096, NULL},

Black tshirt, green letters ...

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


Re: Marvell 88E8052 PCI-E LAN on FreeBSD 7.0 (PYUN Yong-Hyeon)

2008-10-31 Thread RW
On Fri, 31 Oct 2008 08:18:20 -
Graham Bentley [EMAIL PROTECTED] wrote:

  I'm not sure you suffers from the same problem but there was a
  Tx checksum offload related bug in msk(4) driver and it was fixed
  in HEAD. How about applying the diff in CVS rev 1.33 of if_msk?
  http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/msk/if_msk.c.diff?r1=1.32;r2=1.33;f=h
 
 Would love to have a crack at this but have never 'applied diffs'
 before?!
 
 I am guessing I look in to the source for the msk module, find line
 2601, add the code in the green box, then remake the module and copy
 over the existing one?


Assuming you already have the source,

select unified diff  on the above and save it to a file, then

cd /usr
patch  patchfile 

where patchfile is the saved file, then build as normal.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


openacs-5.4.3 on freebsd 6.3 AMD configuration problem

2008-10-31 Thread Dino Vliet
Hi I'm a new user of openacs-5.4.3 and want to try it out on my amd64 system 
running Freebsd 6.3 and having postgresql-server-8.2.9 installed. The port 
installs fine and I have set openacs_enable=YES in /etc/rc.conf to have it 
start at boot time.

The first time configuration does not give the expected results as my browser 
indicates this:

OpenACS Installation


Installing the OpenACS kernel data model...

But nothing happens anymore. 

The last part of the file  /usr/local/openacs/log/error.log:

[31/Oct/2008:22:33:14][1073.5292032][-main-] Notice: nsmain: AOLserver/4.5.0 
starting
[31/Oct/2008:22:33:14][1073.5292032][-main-] Notice: nsmain: security info: 
uid=1005, euid=1005, gid=80, egid=80
[31/Oct/2008:22:33:14][1073.5292032][-main-] Notice: nsmain: max files: 
FD_SETSIZE = 1024, rl_cur = 11095, rl_max = 11095
[31/Oct/2008:22:33:14][1073.5292032][-main-] Warning: nsmain: rl_max  
FD_SETSIZE
[31/Oct/2008:22:33:14][1073.5292032][-main-] Error: pidfile: failed to open pid 
file '/usr/local/aolserver/log/nspid.openacs': 'Permission denied'
[31/Oct/2008:22:33:14][1073.5292032][-main-] Notice: encoding: loaded: utf-8
[31/Oct/2008:22:33:14][1073.5292032][-main-] Notice: fastpath[openacs]: mapped 
GET /
[31/Oct/2008:22:33:14][1073.5292032][-main-] Notice: fastpath[openacs]: mapped 
HEAD /
[31/Oct/2008:22:33:14][1073.5292032][-main-] Notice: fastpath[openacs]: mapped 
POST /
[31/Oct/2008:22:33:14][1073.5292032][-main-] Notice: adp[openacs]: mapped GET 
/*.adp
[31/Oct/2008:22:33:14][1073.5292032][-main-] Notice: adp[openacs]: mapped HEAD 
/*.adp
[31/Oct/2008:22:33:14][1073.5292032][-main-] Notice: adp[openacs]: mapped POST 
/*.adp
[31/Oct/2008:22:33:14][1073.5292032][-main-] Notice: modload: loading 
'/usr/local/aolserver/bin/nssock.so'
[31/Oct/2008:22:33:14][1073.5292032][-main-] Notice: modload: loading 
'/usr/local/aolserver/bin/nslog.so'
[31/Oct/2008:22:33:14][1073.5292032][-main-] Notice: nslog: opened 
'/usr/local/openacs/log/openacs.log'
[31/Oct/2008:22:33:14][1073.5292032][-main-] Notice: modload: loading 
'/usr/local/aolserver/bin/nssha1.so'
[31/Oct/2008:22:33:14][1073.5292032][-main-] Notice: modload: loading 
'/usr/local/aolserver/bin/nscache.so'
[31/Oct/2008:22:33:14][1073.5292032][-main-] Notice: nscache module version 1.5 
server: openacs
[31/Oct/2008:22:33:14][1073.5292032][-main-] Notice: modload: loading 
'/usr/local/aolserver/bin/nsdb.so'
[31/Oct/2008:22:33:14][1073.5292032][-main-] Notice: modload: loading 
'/usr/local/aolserver/bin/nspostgres.so'
[31/Oct/2008:22:33:14][1073.5292032][-main-] Notice: PostgreSQL loaded.
[31/Oct/2008:22:33:14][1073.5292032][-main-] Notice: conf: 
[ns/server/openacs]enabletclpages = 0
[31/Oct/2008:22:33:20][1073.5292032][-main-] Notice: XOTcl version 1.6.1 loaded
[31/Oct/2008:22:33:20][1073.5292032][-main-] Notice: Loading OpenACS, rooted at 
/usr/local/openacs
[31/Oct/2008:22:33:20][1073.5292032][-main-] Notice: Sourcing 
/usr/local/openacs/packages/acs-bootstrap-installer/bootstrap.tcl
[31/Oct/2008:22:33:20][1073.5292032][-main-] Notice: Bootstrap: sourcing 
/usr/local/openacs/packages/acs-bootstrap-installer/tcl/00-proc-procs.tcl
[31/Oct/2008:22:33:20][1073.5292032][-main-] Notice: Bootstrap: sourcing 
/usr/local/openacs/packages/acs-bootstrap-installer/tcl/10-utilities-procs.tcl
[31/Oct/2008:22:33:20][1073.5292032][-main-] Notice: Bootstrap: sourcing 
/usr/local/openacs/packages/acs-bootstrap-installer/tcl/20-db-bootstrap-procs.tcl
[31/Oct/2008:22:33:20][1073.5292032][-main-] Notice: Bootstrap: sourcing 
/usr/local/openacs/packages/acs-bootstrap-installer/tcl/30-apm-load-procs.tcl
[31/Oct/2008:22:33:20][1073.5292032][-main-] Notice: Bootstrap: sourcing 
/usr/local/openacs/packages/acs-bootstrap-installer/tcl/40-db-query-dispatcher-procs.tcl
[31/Oct/2008:22:33:20][1073.5292032][-main-] Notice: Database API: Default 
database (dbn) is: 'default'
[31/Oct/2008:22:33:20][1073.5292032][-main-] Notice: Database API: Using ALL 
database pools for OpenACS.
[31/Oct/2008:22:33:20][1073.5292032][-main-] Notice: Database API: The 
following pools are available for OpenACS: pool2 pool3 pool1
[31/Oct/2008:22:33:20][1073.5292032][-main-] Notice: dbdrv: opening database 
'postgres:localhost::openacs'
[31/Oct/2008:22:33:20][1073.5292032][-main-] Notice: Opening openacs on 
localhost
[31/Oct/2008:22:33:20][1073.5292032][-main-] Notice: Ns_PgOpenDb(postgres):  
Openned connection to localhost::openacs.
[31/Oct/2008:22:33:20][1073.5292032][-main-] Notice: dbdrv: opening database 
'postgres:localhost::openacs'
[31/Oct/2008:22:33:20][1073.5292032][-main-] Notice: Opening openacs on 
localhost
[31/Oct/2008:22:33:20][1073.5292032][-main-] Notice: Ns_PgOpenDb(postgres):  
Openned connection to localhost::openacs.
[31/Oct/2008:22:33:20][1073.5292032][-main-] Notice: dbdrv: opening database 
'postgres:localhost::openacs'
[31/Oct/2008:22:33:20][1073.5292032][-main-] Notice: Opening openacs on 
localhost
[31/Oct/2008:22:33:20][1073.5292032][-main-] Notice: 

Authentication with SSH using public keys

2008-10-31 Thread Andrew Falanga
Hi,

My father recently setup a new 7.0-Release system for some web development.  I 
use ssh to login remotely.  I've normally not had any trouble configuring 
authentication through public key encryption using ssh-keygen and such.  I 
have for myself a id_rsa.pub and an id_rsa key pair that I use for this 
purpose.

Normally, I just copy, via scp, the file id_rsa.pub to my 
~/.ssh/authorized_keys file on the remote host and the next time I attempt a 
login all is well.  That is, I don't have to enter my password.  However, on 
my Dad's new machine, this isn't the case.  I still have to enter the 
password.

Now, I've looked through his /etc/ssh/sshd_config file and nothing in there 
looks odd, or different, from other remote hosts I do this on.  So, I'm 
embedding a copy/paste of an ssh login session on my father's host 
using -v -v to ssh:

[/usr/home/andy/MCH]
- ssh -v -v malumgat
OpenSSH_4.5p1 FreeBSD-20061110, OpenSSL 0.9.7e-p1 25 Oct 2004
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to malumgat [24.59.91.121] port 22.
debug1: Connection established.
debug1: identity file /home/andy/.ssh/identity type -1
debug2: key_type_from_name: unknown key type '-BEGIN'
debug2: key_type_from_name: unknown key type '-END'
debug1: identity file /home/andy/.ssh/id_rsa type 1
debug1: identity file /home/andy/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.5p1 
FreeBSD-20061110
debug1: match: OpenSSH_4.5p1 FreeBSD-20061110 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.5p1 FreeBSD-20061110
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: 
diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-dss,ssh-rsa
debug2: kex_parse_kexinit: 
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,[EMAIL
 PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: 
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,[EMAIL
 PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: 
hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: 
hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,[EMAIL PROTECTED],zlib
debug2: kex_parse_kexinit: none,[EMAIL PROTECTED],zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: 
diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-dss
debug2: kex_parse_kexinit: 
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,[EMAIL
 PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: 
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,[EMAIL
 PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: 
hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: 
hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,[EMAIL PROTECTED]
debug2: kex_parse_kexinit: none,[EMAIL PROTECTED]
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_init: found hmac-md5
debug1: kex: server-client aes128-cbc hmac-md5 none
debug2: mac_init: found hmac-md5
debug1: kex: client-server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(102410248192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 132/256
debug2: bits set: 526/1024
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'malumgat' is known and matches the DSA host key.
debug1: Found key in /home/andy/.ssh/known_hosts:9
debug2: bits set: 494/1024
debug1: ssh_dss_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/andy/.ssh/identity (0x0)
debug2: key: /home/andy/.ssh/id_rsa (0x5308a0)
debug2: key: /home/andy/.ssh/id_dsa (0x0)
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/andy/.ssh/identity
debug1: 

Re: Marvell 88E8052 PCI-E LAN on FreeBSD 7.0

2008-10-31 Thread Graham Bentley

select unified diff  on the above and save it to a file, then
cd /usr
patch  patchfilewhere patchfile is the saved file, then build as  
normal.


3bsd# patch  if_msk.c.diff
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--
|--- src/sys/dev/msk/if_msk.c   2008/09/25 07:31:45 1.32
|+++ src/sys/dev/msk/if_msk.c   2008/09/30 04:47:49 1.33
--
Patching file src/sys/dev/msk/if_msk.c using Plan A...
Hunk #1 failed at 99.
Hunk #2 succeeded at 2708 (offset 107 lines).
1 out of 2 hunks failed--saving rejects to src/sys/dev/msk/if_msk.c.rej
done

Don't like the look of first result?


src/sys/dev/msk/if_msk.c.rej -

***
*** 99,105 
   */

  #include sys/cdefs.h
- __FBSDID($FreeBSD:  
/usr/local/www/cvsroot/FreeBSD/src/sys/dev/msk/if_msk.c,v 1.32 2008/09/25  
07:31:45 yongari Exp $);


  #include sys/param.h
  #include sys/systm.h
--- 99,105 
   */

  #include sys/cdefs.h
+ __FBSDID($FreeBSD:  
/usr/local/www/cvsroot/FreeBSD/src/sys/dev/msk/if_msk.c,v 1.33 2008/09/30  
04:47:49 yongari Exp $);


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


Re: almost OT os x

2008-10-31 Thread kalin m




Kalin,

Did you add a specific route for the alternative network? I know 
this may sound crazy but for whatever reason Macs don't override the 
default route automatically. You would think that any attached 
ethernet device would be considered a best route to that LAN however I 
have had experience otherwise.



i did. with the interface. but that apparently doesn't matter.
a few tests with route get were enough to realize that the B network is 
not really having it's own default route.
so i just switched the cards around. now en0 is the external ip and en1 
is the 192.168.x.x.  and the default route is the one for the B network... 
it works a desired now


thanks for the idea




Cheers,
Mikel King
CEO, Olivent Technologies
Senior Editor, Daemon News
Columnist, BSD Magazine
6 Alpine Court
Medford, NY 11763
http://www.olivent.com
http://www.daemonnews.org
http://www.bsdmag.org
skype: mikel.king
+--+
How do you spell cooperation? Pessimists use
each other, but optimists help each other.
Collaboration feeds your spirit, while
competition only stokes your ego. You'll
find the best way to get along.
+--+



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


port versions query

2008-10-31 Thread Jim Pazarena

I tried the 5.1 mysql port, and found that it was a 5.1.26-rc ... RC

so I rolled back to 5.0.67

Is there a way to tell in general what version is 'current' for FreeBSD 7?
How could I query any given port in general and see which version it would 
install?
--
Jim Pazarena  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: port versions query

2008-10-31 Thread RW
On Fri, 31 Oct 2008 16:50:25 -0700
Jim Pazarena [EMAIL PROTECTED] wrote:

 I tried the 5.1 mysql port, and found that it was a 5.1.26-rc ... RC
 
 so I rolled back to 5.0.67
 
 Is there a way to tell in general what version is 'current' for
 FreeBSD 7? 

There's only one port tree, so it doesn't matter that it's  FreeBSD 7

 How could I query any given port in general and see which
 version it would install?

 'make -V PKGNAME'  will do it.

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


crons and syslogd not running

2008-10-31 Thread Michael P. Soulier
Hi,

I upgraded from 5.5 to 6.3, and I've noticed that many of my cronjobs defined
in /etc/crontab don't seem to be running anymore. I have nightly jobs that
obviously aren't running, and /var/log/cron makes no mention of them.

Looking for logs, I found syslogd down, although cron was up.

Any idea of where I should look? Stability problems in syslogd?

Thanks,
Mike
-- 
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
--Albert Einstein
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Authentication with SSH using public keys

2008-10-31 Thread आशीष शुक्ल Ashish Shukla

In [EMAIL PROTECTED], Andrew Falanga wrote:

Hi,

My father recently setup a new 7.0-Release system for some web development.  I 
use ssh to login remotely.  I've normally not had any trouble configuring 
authentication through public key encryption using ssh-keygen and such.  I 
have for myself a id_rsa.pub and an id_rsa key pair that I use for this 
purpose.


Normally, I just copy, via scp, the file id_rsa.pub to my 
~/.ssh/authorized_keys file on the remote host and the next time I attempt a 
login all is well.  That is, I don't have to enter my password.  However, on 
my Dad's new machine, this isn't the case.  I still have to enter the 
password.


Now, I've looked through his /etc/ssh/sshd_config file and nothing in there 
looks odd, or different, from other remote hosts I do this on.  So, I'm 
embedding a copy/paste of an ssh login session on my father's host 
using -v -v to ssh:


[/usr/home/andy/MCH]
- ssh -v -v malumgat


[...]


debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/andy/.ssh/identity
debug1: Offering public key: /home/andy/.ssh/id_rsa
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,keyboard-interactive


It seems OpenSSH (on your dad's box) hasn't recognized your private key, so how 
about checking permissions of ~/.ssh/authorized_keys and ~/.ssh on his box. Or 
how about enabling verbose logging on his box, using 'LogLevel' parameter in 
sshd_config.


HTH
Ashish Shukla
--
·-- ·-  ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
()  ascii ribbon campaign - against HTML e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgp8PJhFoQuVv.pgp
Description: PGP signature


Re: crons and syslogd not running

2008-10-31 Thread Jeremy Chadwick
On Fri, Oct 31, 2008 at 08:56:33PM -0400, Michael P. Soulier wrote:
 I upgraded from 5.5 to 6.3, and I've noticed that many of my cronjobs defined
 in /etc/crontab don't seem to be running anymore. I have nightly jobs that
 obviously aren't running, and /var/log/cron makes no mention of them.
 
 Looking for logs, I found syslogd down, although cron was up.
 
 Any idea of where I should look? Stability problems in syslogd?

dmesg might show something like syslogd crashing or segfaulting for
some reason.

And no, I've never experienced any stability problems with syslogd on
FreeBSD (any version; 2.2.8 through 7.1).

Otherwise, I'd say the upgrade may have gone awry at one particular
stage of your upgrade.  If the problem doesn't recur, I wouldn't worry
too much about it.  Upgrading between major versions always seems to
have quirks/risks.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

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


Virtual Memory Improvement Algorithm

2008-10-31 Thread Kamlesh Patel
Hi Friends,

My name is Kamlesh and i am new to this group. 

Could any one help me in Virtual Memory free space management: Splay tree to 
Radix tree?


Thanks
Kamlesh


  

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