Re: outgoing mail STOPPED.

2008-01-08 Thread Gary Kline
On Mon, Jan 07, 2008 at 11:13:45AM +, Matthew Seaman wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256
 
 Gary Kline wrote:
 
 Then I checked my /etc/namedb/s/db.thought.org to see id anything there 
 could conceivably be hanging port 25.  Zip.  (I still updated the
 date and re-exed. I checked with ps and grep to find something new:
 
 The best way to check for any processes listening on port 25 is:
 
 % sockstat | grep :25 
 root sendmail   1193  3  tcp4   81.187.76.162:25  *:*
 root sendmail   1193  5  tcp4   127.0.0.1:25  *:*
 root sendmail   1193  6  tcp6   ::1:25*:*
 root sendmail   1193  7  tcp6   2001:8b0:151:1:240:5ff:fea5:8db7:25*:*
 

matthew, i did sockstat|gr 3, 4 da aago; couldn't make sense-of.  here's what i 
get for sendmail and the above.   i can't make sense ofthis::

p1 23:52 sage [5001] pss~
1380  ??  Is 0:00.20 sendmail: Queue [EMAIL PROTECTED]:30:00 for 
/var/spool/client
1382  ??  Ss 0:16.25 sendmail: accepting connections (sendmail)
14646  ??  I  0:00.02 sendmail: server 131.sub-75-212-161.myvzw.com [75.212
p1 23:53 sage [5002] sockstat | grep :25~
root sendmail   14646 1  tcp4   216.231.43.140:25 75.212.161.131:1416
root sendmail   14646 4  tcp4   216.231.43.140:25 75.212.161.131:1416
root sendmail   14646 7  tcp4   216.231.43.140:25 75.212.161.131:1416
root sendmail   1382  4  tcp4   *:25  *:*


you'll prob'ly be up in a few hours, but it's time for me to cop a few z's 
8 tz's west of you. thus, t'mmrw.

gary



 ~
  624  ??  Ss 0:01.16 /usr/sbin/syslogd -l /var/run/log -l 
  /var/named/var/r
  p0 0:27 sage [5005]
  
 In theory I know pretty much what bind9does, c; but why this
 change?  (Part of my gnome (2.20) is missing so I cannot max
 enlarge the konsole; ps -alx does not wrap so I cant see the 
 entire string.)  I can pimg ns1.thought.org--obviously.  But if you
 see anything here,  Matthew, would you please let me know?
 
 To get ps output without truncation, simply add 'ww' to the flags --
 one 'w' gives you a 132 column output (shades of those old fan-fold line
 printer TTYs there) and two (or more) 'w's gives you unlimited width:
 
 # ps -alx | grep /usr/sbin/s
 0   689 1   0  44  0  3188  1240 select Ss??0:07.28 
 /usr/sbin/s
 0  1188 1   0  44  0  5640  3356 select Is??0:00.02 
 /usr/sbin/s
 # ps -alxww | grep /usr/sbin/s
 0   689 1   0  44  0  3188  1240 -  Rs??0:07.29 
 /usr/sbin/syslogd -l /var/run/log -l /var/named/var/run/log -a 
 81.187.76.161/32:4096 -l /var/named/var/run/log
 0  1188 1   0  44  0  5640  3356 select Is??0:00.02 
 /usr/sbin/sshd
  1001 16014  1376   0  44  0   380   260 -  R+p00:00.00 grep 
 /usr/sbin/s
 
 As for the presence of '-l /var/named/var/run/log' -- that's added
 to the syslogd flags automatically by the /etc/rc.d/syslogd startup
 script[*] if you're running named chrooted (which is the default). This
 means that syslogd can log the items outside the chroot that are generated
 by named within it.  You should see output from named in /var/log/all.log
 - -- precisely what you see depends entirely on the logging configuration
 in named.conf.
 
   Cheers,
 
   Matthew
 
 [*] The reason I have it twice is that a long time ago I'd also added
 it to syslogd_flags manually, something I shall correct imminently.
 
 - -- 
 Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
   Flat 3
 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
   Kent, CT11 9PW
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2.0.4 (FreeBSD)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iD8DBQFHgglp8Mjk52CukIwRCMTeAJ9U/iicerUyzugUEucgZ1fFvavB7ACeNLkM
 /Go2XMJctLl+Ci9w3RrjxeM=
 =LbnH
 -END PGP SIGNATURE-

-- 
Gary Kline  Seattle BSD Users' Group (seabug)  | [EMAIL PROTECTED]
Thought Unlimited Org's Alternate Email Site
http://www.magnesium.net/~kline
   To live is not a necessity; but to live honorably...is a necessity. -Kant

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


Re: is there a /bin/sh method to tell the ending of a file

2008-01-08 Thread Paul Procacci
On Mon, Jan 07, 2008 at 11:41:35PM -0800, Gary Kline wrote:
 On Mon, Jan 07, 2008 at 11:34:08PM -0600, Paul Procacci wrote:
  Is this what you mean?
  
  -
  #!/bin/sh
  
  STRING=mystring.gz
  
  if [ .gz = `echo \$STRING\ | sed -n 's/.*\(\.gz\)$/\1/p'` ]; then
   echo test;
  fi
  
  ---
  
  ~Paul
  
 
   Sorry.  You get the credit for the predicate expression; Jon had the 
   simpler 
   (and more readable:) one.But yours is warm+fuzzy in it's cleverness
   :-)
 
   gary
 
 
 
 -- 
 Gary Kline  Seattle BSD Users' Group (seabug)  | [EMAIL PROTECTED]
 Thought Unlimited Org's Alternate Email Site
   http://www.magnesium.net/~kline
To live is not a necessity; but to live honorably...is a necessity. -Kant
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

Quite truthfully, I forget a lot about case/esac most of the time.  It always
seems to elude me.  I guess it doesn't help that I'm a sed mongrel.

And for what it's worth, I agree that what I provided wasn't pretty, but at
least it gives everyone something to stare at for a while.  ;P

Have a good night all!

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


Re: Updating 7.0-BETA2 to RC1...

2008-01-08 Thread Jonathan Chen
On Tue, Jan 08, 2008 at 07:19:00AM +, [EMAIL PROTECTED] wrote:
 I'm shortly going to update my laptop from 7.0-BETA2 (a fresh install) to 
 7.0-RC1. I'll do this with a buildworld/installworld cycle. However, reading 
 the site for freebsd-update I noticed that if I were to do a binary upgrade 
 then it recommends rebuilding all ports as well.
 
 Is rebuilding all ports something I should consider if I'm doing a 
 source-based upgrade too? Even though I'm not crossing a major version 
 boundary?

Yes. There was an API change in the system-base, which requires a
ports-rebuild just to be safe.

Cheers.
-- 
Jonathan Chen [EMAIL PROTECTED]
--
  Jesus saves.
   Allah forgives.
 Cthulu thinks you'd make a nice sandwich.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: port collection RELEASE6.2 lost after reinstall with CVSUP

2008-01-08 Thread Erik Trulsson
On Mon, Jan 07, 2008 at 03:58:41AM +, Frank Shute wrote:
 On Sun, Jan 06, 2008 at 09:24:15PM +0100, Erik Trulsson wrote:
 
  On Sun, Jan 06, 2008 at 08:05:17PM +, Frank Shute wrote:
   On Sun, Jan 06, 2008 at 02:10:59PM +0100, Walter Jansen wrote:
   
Hi

Upon reading chapters of the Handbook about the Ports collection
and CVSup, I wanted to CVSup the ports collection for the
RELEASE  6.2. Stupidly using the wrong tag (tag=.), I
erroneously but successfully installed the CURRENT version. I
could have used SYSINSTALL for the RELEASE 6.2 ports, but for
the sake of learning and training myself I did not. 
   
   You used the right tag. There is only a current tag as you only have a
   current ports tree to be used for all releases ie 6.2,6.3  7.0 (The
   ports might work with older releases too).
  
  Wrong.  The ports tree is not branched, but it is tagged and it does have
  tags corresponding to each FreeBSD release.
 
 So if it's not branched but tagged, what's the difference between the
 ports tree I get if I use RELENG_4_8  compared to RELENG_7_0 as tags
 in my ports supfile?

None whatsoever.  Neither tag is a valid tag for the ports tree, so you will
end up with an empty ports tree in either case.

If you were instead to use the valid tags RELEASE_4_8_0 or RELEASE_7_0_0 you
would get the ports tree that shipped with 4.8-RELEASE or the ports tree
that will (barring last minute changes) ship with 7.0-RELEASE respectively.




Problem: 

  - I ran CVSup again with the correct tag but though everything
  in the process looked normal, the map usr/ports remains empty
  and nor with whereis nor with pkg_xxx any information about
  ports can be found.  
   
   You ran cvsup again with the wrong tag.
   

Questions: 

  - What did I do wrong in the process?.  
   
   Used the wrong tag second time around.
   

  - Is cvsup for installation of RELEASE 6.2 ports collection a bad idea
anyway (technically) ?  
   
   No. Although there is no 6.2 ports collection, just CURRENT.
  
  Of course there is a 6.2 ports collection.  What else would you call the
  ports tree shipped with FreeBSD 6.2?
 
 A snapshot of the ports tree when the release was made.
 
  
  
   

 

Proces:

- I use the recently installed cvsup-without-gui, installed from ports 
   
   Use csup(1) it's identical to cvsup but no dependencies as it's in
   base  written in C.
  
  Not quite identical.  There are a couple of features that cvsup(1) has, but
  which csup(1) does not yet have.
  To just check out a copy of the ports tree either should work fine though.
 
 Features that a newbie wouldn't use. It's also difficult to build
 cvsup when you don't necessarily have a ports tree.

But you do not need a ports tree to install cvsup as a package.
In either case csup(1) is not identical to cvsup(1) in functionality even if
it can often be used as a drop-in replacement.


-- 
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: Updating 7.0-BETA2 to RC1...

2008-01-08 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

[EMAIL PROTECTED] wrote:
 I'm shortly going to update my laptop from 7.0-BETA2 (a fresh
 install) to 7.0-RC1. I'll do this with a buildworld/installworld
 cycle. However, reading the site for freebsd-update I noticed that if
 I were to do a binary upgrade then it recommends rebuilding all ports
 as well.
 
 Is rebuilding all ports something I should consider if I'm doing a
 source-based upgrade too? Even though I'm not crossing a major
 version boundary?

Once 7.0 is released, then there is a promise of binary compatibility
for any software compiled under some 7.x version to work certainly with
any later 7.x version, and possibly with any earlier 7.x version as
well[*].

However, 7.0-RELEASE isn't actually out there yet, and the Release
Engineers may well be making last minute incompatible changes.  If
freebsd-update recommends wholesale updating of ports, then there's
a good reason for that.  I will state though that I've been tracking
7.x since fairly shortly after the RELENG_7 branch was created and apart
from the big 6 - 7 update I've not seen any compatibility problems with
ported software.

Cheers,

Matthew

[*] I can't remember if the backwards compatibility with the major
version is guaranteed or not.  Forward certainly is.  Also there's
the new symbol versioning thing within shlibs that changes the way
this sort of thing works.

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

iD8DBQFHgy0o8Mjk52CukIwRCA4yAKCJxClkrwrFe9fKeXGTSUXc3xQxZgCffpfT
lJcn7/Ihsl+kvdgF1tME7Qo=
=cMsz
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FreeBSD 6.2, bge devices not coming up (hanging at link state changed to DOWN)

2008-01-08 Thread Matthias Kellermann

Hi list,

I'm using FreeBSD 6.2 on a IBM x236 dual Xeon server. This device has 
two network interfaces working with the bge driver.


pciconf -v -l output:

[EMAIL PROTECTED]:1:0:  class=0x02 card=0x026f1014 chip=0x16a714e4 rev=0x02 
hdr=0x00

vendor   = 'Broadcom Corporation'
device   = 'BCM5703X NetXtreme Gigabit Ethernet'
class= network
subclass = ethernet
[EMAIL PROTECTED]:2:0:  class=0x02 card=0x026f1014 chip=0x16a714e4 rev=0x02 
hdr=0x00

vendor   = 'Broadcom Corporation'
device   = 'BCM5703X NetXtreme Gigabit Ethernet'
class= network
subclass = ethernet

My problem is using both interfaces at the same time. If I will give 
them both an ip address in the rc.conf with:


ifconfig_bge0=192.168.0.210/24
ifconfig_bge0_alias0=10.0.2.1/32
ifconfig_bge0_alias1=10.0.2.2/32
ifconfig_bge0_alias2=10.0.2.10/32
ifconfig_bge1=192.168.1.10/24

the system won't come up properly. I can see the messages:

bge0: link state changed to DOWN
bge1: link state changed to DOWN

The system is hanging at this state forever. I have to do a hard reset.

If I don't assign bge1 an ip address the system is coming up.
If I boot in safe mode the system is coming up, too.

Plugging out all the cables or booting with ACPI disabled won't work.

If I change the rc.conf to:

ifconfig_bge0=192.168.0.210/24 media 100baseTX mediaopt full-duplex
[...]
ifconfig_bge1=192.168.1.10/24 media 100baseTX mediaopt full-duplex

interface bge0 will come up (and is ping-able) but system will hang at bge1:

bge0: link state changed to DOWN
bge0: link state changed to UP
bge1: link state changed to DOWN

Any ideas whats wrong here? How can I investigate further? Why does it 
work in safe mode?


Thanks,
Matthias


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


Hi - followed FAQ but can't mount USB key as user

2008-01-08 Thread Andy Elvey

Hi all -

I've recently installed FreeBSD 6.2-release - very impressed! 

Just a small problem. I'm unable to mount my USB key as a user.  ( I can 
mount it as root,  using the
command  mount -t msdos /dev/da0s1 /mnt   ) 


This is what I get when I try to mount it as a user -
$ mount -t msdos /dev/da0s1 /home/andy
mount_msdosfs: /dev/da0s1: Permission denied

$ mount -t msdos /dev/da0s1 /mnt
mount_msdosfs: /dev/da0s1: Operation not permitted

I followed the instructions in the FAQ ( section 9.23 ) to the letter ( 
the only change being that that doesn't mention
USB devices, so I've substituted the USB device name  da0 for the device 
names there.  )


Here are the relevant bits of information -
Release - FreeBSD 6.2-release running on a Dell OptiPlex P3 system. 


Soon after I inserted the USB key, I ran tail - here's the output -
$ tail -f /var/log/messages
Jan  8 21:37:51 localhost kernel: ad0: 8223MB Seagate ST38410A 3.03 at 
ata0-master UDMA33
Jan  8 21:37:51 localhost kernel: acd0: CDROM SAMSUNG SC-140B/d005 at 
ata1-master PIO4

Jan  8 21:37:51 localhost kernel: Trying to mount root from ufs:/dev/ad0s1a
Jan  8 21:40:02 localhost kernel: uhub1: Prolific Technology Inc. USB 
Embedded Hub, class 9/0, rev 2.00/1.00, addr 2
Jan  8 21:40:02 localhost kernel: uhub1: 1 port with 0 removable, self 
powered
Jan  8 21:40:03 localhost kernel: umass0: Prolific Technology Inc. USB 
Mass Storage Device, rev 2.00/1.00, addr 3

Jan  8 21:40:03 localhost kernel: da0 at umass-sim0 bus 0 target 0 lun 0
Jan  8 21:40:03 localhost kernel: da0: USB 2.0 Flash Disk 1.00 
Removable Direct Access SCSI-0 device

Jan  8 21:40:03 localhost kernel: da0: 1.000MB/s transfers
Jan  8 21:40:03 localhost kernel: da0: 992MB (2031616 512 byte sectors: 
64H 32S/T 992C)



$ usbdevs
addr 1: UHCI root hub, Intel
addr 2: USB Embedded Hub, Prolific Technology Inc.
 addr 3: USB Mass Storage Device, Prolific Technology Inc.

$ cat /etc/fstab
# DeviceMountpoint  FStype  Options Dump
Pass#
/dev/ad0s1b noneswap  
sw   0   0
/dev/ad0s1a / ufs
rw   1   1
/dev/ad0s1d /home  ufs
rw   2   2
/dev/acd0/cdrom  cd9660  ro,noauto
0   0 

(  Just before posting here, I was about to add a usb entry to the 
fstab, but then I thought No -
it wasn't needed for root to mount the device, and adding that to the 
fstab wasn't mentioned in

the FAQ  that I was carefully following..)

$ groups andy
andy wheel operator

$ cat /etc/rc.conf 
(  removed my IP address details for the purposes of posting here )

linux_enable=YES
moused_enable=YES
usbd_enable=YES

So, I'm a bit puzzled as to what I might have missed.   I've now even 
rebooted a couple of times, but
nothing has changed. I can mount the device as root but not as a user.  
So, any suggestions are very
welcome...  Thanks very much for your time  :-) 
-  Andy



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


Re: jail on ZFS - Unable to mount devfs

2008-01-08 Thread Gelsema, P (Patrick)
On Tue, January 8, 2008 02:43, snowcrash+freebsd wrote:
 i've moved from a fbsd 62r + jails system, to fbsd 70rc1.

 i've set up ZFS,

   zfs list
   NAME  USED  AVAIL  REFER  MOUNTPOINT
   z6.49G   212G   247M  /z
   z/home   28.5K   212G  28.5K  /home
   z/j   988M   212G   988M  /j
   z/tmp 408K   212G   408K  /tmp
   z/usr5.17G   212G  5.17G  /usr
   z/var 103M   212G   102M  /var

 now trying to setup jails. following threads,

   
 http://groups.google.com/group/lucky.freebsd.current/browse_thread/thread/d6499483a264f3b9
   http://lists.freebsd.org/pipermail/freebsd-current/2007-December/080920.html

 i have,


   grep jail /etc/rc.conf
   ifconfig_nfe0_alias0=inet 10.0.0.200 netmask 255.255.255.255 
 # jTEST
   jail_enable=YES
   jail_set_hostname_allow=NO
   jail_list=TEST
   jail_TEST_hostname=jTEST.internal.net
   jail_TEST_ip=10.0.0.200
   jail_TEST_rootdir=/j/jTEST
   jail_TEST_devfs_enable=YES
   jail_TEST_devfs_ruleset=zfsenable

 and,

   cat /etc/devfs.rules
   [zfsenable=10]
   add path 'zfs' unhide

 i've populated my jail ROOT from previously created ServiceTemplates,
 exactly as I'd done on 62R, per instructions at,

   
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-application.html

 when i 1st try,

   /etc/rc.d/jail start
   Configuring jails: set_hostname_allow=NO.
   Starting jails:df: /j/jTEST/dev: No such file or directory
   mount: /j/jTEST/dev: No such file or directory
   /etc/rc.d/jail: WARNING: devfs_domount(): Unable to mount devfs 
 on
 /j/jTEST/dev
   /etc/rc.d/jail: WARNING: devfs_mount_jail: devfs was not 
 mounted on
 /j/jTEST/dev
   cd: can't cd to /j/jTEST/dev
cannot start jail TEST:
   jail: getpwnam: root: No such file or directory

 there's a missing dir.

 not surprising, as step (4) @ .../handbook/jails-application.html had me

rm -R bin boot lib libexec mnt proc rescue sbin sys usr dev  -


 forcing it here (i do't think this is really what needs to be done) with,

   mkdir -p /j/jTEST/dev

 just to test, then,

   /etc/rc.d/jail start
   Configuring jails:.
   Starting jails: cannot start jail TEST:
   jail: getpwnam: root: No such file or directory

If I remember correctly there was no password file for in the jail. I
think you have to rerun a certain command. Of course I do not remember the
command :( The command should create the master password database.

Also you have to run within in the jail newaliases to create the aliases
file, do a touch /etc/fstab to stop complaints about unable to read
mountpoints.

No more information in the /var/log/messages when starting the jails?

Furthermore I am not sure that you can run a jail on a zfs file system.
The setup I have is that I run my jails on ufs and have a zfs filesystem
available within the jail.

Rgds,

Patrick


 clearly gets farther, but still no luck starting the jails.

 apparently, something's changed in the process of devfs creation/mount
 now that i'm using ZFS?  or, have i missed an obvious step?

 do i perhaps need to set /j/jTEST as a separate ZFS mountpoint? e.g.,

  zfs create z/j/jTEST
  zfs set mountpoint=/j/jTEST z/j/jTEST

 ?

 any suggestions ?

 thanks!
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 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]


mail from: field question

2008-01-08 Thread Jim Bow

Hi all,

I have a small shell script that does a backup to a usb drive and emails 
the results to a set of people. The script is triggered from devd (upon 
drive attachment) and runs as root.


The problem is that the mail report is sent from an active system user 
and not user root. The user the mail is sent from is not referenced in 
the script. The mail line looks like this:


   cat $LOGFILE | mail -s backuptousb report [EMAIL PROTECTED]

I find this rather confusing since I was expecting the email to be sent 
by the user running the script. How can this be?


A little research told me that this may be because of something called 
envelope-from, but I found little explanation of what that actually 
means. Anyone have any suggestions?


Thanks,



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


Re: gnupg annoyances (fixed)

2008-01-08 Thread Zane C.B.
For any one who was wondering, no-grab needed set in
~/.gnupg/gpg-agent.conf

On Tue, 8 Jan 2008 04:43:00 -0600
Zane C.B. [EMAIL PROTECTED] wrote:

 Any one know what it takes to get security/gnupg to work? I have
 pinentry-gtk2, but having that installed does not help. Any
 suggestions?
 
 
 
  cat randomfile | gpg2 -s
 
 You need a passphrase to unlock the secret key for
 user: Zane C. Bowers [EMAIL PROTECTED]
 1024-bit DSA key, ID C18989DE, created 2006-06-16
 
 Warning: using insecure memory!
 
 ** ERROR **: could not grab keyboard
 aborting...
 gpg-agent[96284]: command get_passphrase failed: End of file
 gpg: problem with the agent: IPC write error
 gpg: Invalid passphrase; please try again ...
 
 You need a passphrase to unlock the secret key for
 user: Zane C. Bowers [EMAIL PROTECTED]
 1024-bit DSA key, ID C18989DE, created 2006-06-16
 
 gpg: problem with the agent: IPC write error
 gpg: no default secret key: General error
 gpg: signing failed: General error
 Exit 2
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


gnupg annoyances

2008-01-08 Thread Zane C.B.
Any one know what it takes to get security/gnupg to work? I have
pinentry-gtk2, but having that installed does not help. Any
suggestions?



 cat randomfile | gpg2 -s

You need a passphrase to unlock the secret key for
user: Zane C. Bowers [EMAIL PROTECTED]
1024-bit DSA key, ID C18989DE, created 2006-06-16

Warning: using insecure memory!

** ERROR **: could not grab keyboard
aborting...
gpg-agent[96284]: command get_passphrase failed: End of file
gpg: problem with the agent: IPC write error
gpg: Invalid passphrase; please try again ...

You need a passphrase to unlock the secret key for
user: Zane C. Bowers [EMAIL PROTECTED]
1024-bit DSA key, ID C18989DE, created 2006-06-16

gpg: problem with the agent: IPC write error
gpg: no default secret key: General error
gpg: signing failed: General error
Exit 2
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: is there a /bin/sh method to tell the ending of a file

2008-01-08 Thread Christian Baer
On Tue, 8 Jan 2008 02:27:29 -0600 Paul Procacci wrote:

 And for what it's worth, I agree that what I provided wasn't pretty, but at
 least it gives everyone something to stare at for a while.  ;P

Great, just like a bad accident on a major road. It isn't pretty, but you
just have to look. :-

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


Re: testing from sage|ns1.thought.org

2008-01-08 Thread Andrew Pantyukhin
On Thu, Jan 03, 2008 at 02:27:53PM -0800, Gary Kline wrote:
 Let's see ifthis gets out..

Let's see if you can use [EMAIL PROTECTED] in the future.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Hi - followed FAQ but can't mount USB key as user

2008-01-08 Thread usleepless
Andy,

On Jan 8, 2008 9:48 AM, Andy Elvey [EMAIL PROTECTED] wrote:
 Hi all -

  I've recently installed FreeBSD 6.2-release - very impressed!

 Just a small problem. I'm unable to mount my USB key as a user.  ( I can
 mount it as root,  using the
 command  mount -t msdos /dev/da0s1 /mnt   )

 This is what I get when I try to mount it as a user -
 $ mount -t msdos /dev/da0s1 /home/andy
 mount_msdosfs: /dev/da0s1: Permission denied

 $ mount -t msdos /dev/da0s1 /mnt
 mount_msdosfs: /dev/da0s1: Operation not permitted

 I followed the instructions in the FAQ ( section 9.23 ) to the letter (
 the only change being that that doesn't mention
 USB devices, so I've substituted the USB device name  da0 for the device
 names there.  )

hmmm, freebsd.org seems to be broken for me

- man devfs.rules

- create /etc/devfs.rules: ( substitute wheel for the group you want )

[localrules=10]
add path 'da*s*' mode 0660 group wheel

- append to /etc/rc.conf:

devfs_system_ruleset=localrules

- make sure the dir you are mounting on is owned by the user who
issues the mount command.

- make sure vfs.usermount=1

- reboot after changing devfs.rules  rc.conf

worked for me, let us know if it worked for you.

regards,

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


Sendmail: exposed root, why?

2008-01-08 Thread Jerahmy Pocott

Hello,

From the sendmail documentation:

There are always users that need to be exposed -- that is,
their  internal site name should be displayed instead of the
masquerade name. Root is an example (which has been
exposed by default prior to 8.10).

Is there actually any reason why root needs to be exposed?

Root is set to an external address in aliases and it really
needs to be masqueraded in order to for it to get delivered,
but would that cause problems with anything?

How do you stop sendmail from doing this, I don't see any
directive to NOT expose root, only options to expose other
addresses as well.. Perhaps there is a better way to send
system mailed logs to an external address that doesn't send
them from root?

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


Re: changing the postion of a partion in fdisk

2008-01-08 Thread John Nielsen

Quoting Aryeh M. Friedman [EMAIL PROTECTED]:


I have my FreeBSD partition as partition 1 and my ntfs as partition 2
but Vista insists that there is no suitable partion to install to
(even though the ntfs partition is big enough)... after some research
I found that vista absolutely insists that the ntfs partition be
partition 1... how do I swap them and/or delete the ntfs one and
renumber it so freebsd is in partion slot 2 (with nothing in 1 and
then I can use fdisk to make a new slot 1)


You can probably just use FreeBSD's fdisk to swap them. Something along 
the lines of:


1) Verify your backups
2) Boot from a FreeBSD Rescue CD and enter the fixit shell
3) Type fdisk /dev/yourdisk. I'll assume ad0 from this point.
4) Write down the output. All of it. Keep a copy in a safe place (this 
is actually good practice even if you're _not_ intentionally messing 
with your partitions). If you're feeling clever and/or lazy you could 
of course bring up a line printer or a network interface and print the 
output or copy it to another machine (from which you should then print 
it), but a file on the local disk will not serve (and a file on the 
mfsroot will go away as soon as you reboot or if anything unexpected 
happens, which it usually does).
5) Type fdisk -u /dev/ad0 (or whatever your disk is). Manually enter 
the numbers (including explicitly setting the start/end sector, etc) 
for partition 2 as partition 1 and vice versa. Think about which 
partition you want to mark as active (probably 2, see step 10) and do 
so. Verify your changes against your printout, then commit them.
6) Type ls /dev/ad0* and verify that you see the devices you expect 
(including your FreeBSD partitions, probably something like ad0s2[a-d]).
7) Mount your root partition, e.g. mount /dev/ad0s2a /mnt. If it 
doesn't mount then abort. Run fdisk again and change the values back to 
what they were initially.
8) Edit your fstab to update the slice numbers. e.g. vi 
/mnt/etc/fstab or sed -e s/ad0s1/ad0s2/g  /mnt/etc/fstab  
/mnt/etc/fstab.new followed by a sanity check and a couple mv commands.

9) Unmount your root partition, e.g. umount /mnt.
10) Reboot and verify that your FreeBSD installation is still alive.
11) Carry on...

This information comes with no warranty. :)

JN

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


Re: jail on ZFS - Unable to mount devfs

2008-01-08 Thread snowcrash+freebsd
hi patrick,

 If I remember correctly there was no password file for in the jail. I
 think you have to rerun a certain command. Of course I do not remember the
 command :( The command should create the master password database.

using the ServiceJail model, after populating the jail skeleton and
running mergemaster, the two commands i run are,

 /usr/bin/cap_mkdb /j/jSKEL/etc/login.conf
 /usr/sbin/pwd_mkdb -d /j/jSKEL/etc -p /j/j/etc/master.passwd

which should take care of that.

 Also you have to run within in the jail newaliases to create the aliases
 file, do a touch /etc/fstab to stop complaints about unable to read
 mountpoints.

hm.  i did not do that this time around.  i'd built my jail-world with
*both* NO_MAILWRAPPER=true  NO_SENDMAIL=true, so i mayhave caused
myself a problem.

rather than cp'ing bins, tobe safe, i'll just rebuild world ... and
see in a bit if that helps.

thanks.

 Furthermore I am not sure that you can run a jail on a zfs file system.
 The setup I have is that I run my jails on ufs and have a zfs filesystem
 available within the jail.

??

if that's true, then that renders the rest moot -- and i have a problem.

atm, i have

cat /etc/fstab
  /dev/mirror/gm0s1a /bootdirufs rw1 1
  /dev/mirror/gm0s1b noneswapsw0 0
  /dev/acd0  /cdrom  cd9660  ro,noauto 0 0
  /j/jMROOT  /j/jTESTnullfs  ro0 0
  /j/s/jTEST /j/jTEST/s  nullfs  rw0 0

zfs list
  NAME  USED  AVAIL  REFER  MOUNTPOINT
  z5.23G   213G   250M  /z
  z/data 20K   213G20K  /data
  z/home   28.5K   213G  28.5K  /home
  z/j23K   213G23K  /j
  z/tmp 406K   213G   406K  /tmp
  z/usr4.88G   213G  4.88G  /usr
  z/var 105M   213G   105M  /var

where z/j is a zfs mount.

i *can* access the jail, and do just about 'all' i need to in the jail
(builds, exec, etc).

but do *not* yet know if, by running the jail on zfs space whehter
i've compromised anything.

do you have a reference for your comment?  or, perhaps, someone else
can comment, as well?

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


Re: changing the postion of a partion in fdisk

2008-01-08 Thread Jerry McAllister
On Mon, Jan 07, 2008 at 10:33:04PM -0500, Aryeh M. Friedman wrote:

 
 I have my FreeBSD partition as partition 1 and my ntfs as partition 2
 but Vista insists that there is no suitable partion to install to
 (even though the ntfs partition is big enough)... after some research
 I found that vista absolutely insists that the ntfs partition be
 partition 1... how do I swap them and/or delete the ntfs one and
 renumber it so freebsd is in partion slot 2 (with nothing in 1 and
 then I can use fdisk to make a new slot 1)

Well, you can use fdisk from the fixit shell to make your slice 2 (note 
the primary divisions are called 'slices' in FreeBSD) in to a FreeBSD 
type and then create your FreeBSD partitions in it and build FreeBSD 
filesystems there.

Then, still using the fixit, use dump/restore to copy the contents of
the FreeBSD filesystems over.
  Assuming the major slices are ad0s1 and ad0s2, then something like:
  mkdir /oldroot
  mount /ad0s1a /oldroot
  mkdir /newroot
  mount /ad0s2a /newroot
  cd /newroot
  dump 0af - / | restore -rf -

That will get the root partition/filesystem.
Do appropriately similar for the rest of the FreeBSD filesystems.

Note that while in fixit, the running root (/) is in a memory
filesystem which will go away after you reboot.  So, those
mount points you create (oldroot, newroot, etc) are temporary.

Then use a utility such as gparted (freely downloadable as ISO)
to convert the #1 slice into NTFS and install Vista there.
You might be able to get FreeBSD's fdisk to do the convesion to
NTFS, but I have never tried that.  You would have to know the
code number for it.

jerry

 
 - --
 Aryeh M. Friedman
 FloSoft Systems, Java Developer Tools
 http://www.flosoft-systems.com
 Developer, not business, friendly.
 
 ___
 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: jail on ZFS - Unable to mount devfs

2008-01-08 Thread Wesley Shields
On Tue, Jan 08, 2008 at 07:08:04AM -0800, snowcrash+freebsd wrote:
 hi patrick,
 
  If I remember correctly there was no password file for in the jail. I
  think you have to rerun a certain command. Of course I do not remember the
  command :( The command should create the master password database.
 
 using the ServiceJail model, after populating the jail skeleton and
 running mergemaster, the two commands i run are,
 
  /usr/bin/cap_mkdb /j/jSKEL/etc/login.conf
  /usr/sbin/pwd_mkdb -d /j/jSKEL/etc -p /j/j/etc/master.passwd
 
 which should take care of that.
 
  Also you have to run within in the jail newaliases to create the aliases
  file, do a touch /etc/fstab to stop complaints about unable to read
  mountpoints.
 
 hm.  i did not do that this time around.  i'd built my jail-world with
 *both* NO_MAILWRAPPER=true  NO_SENDMAIL=true, so i mayhave caused
 myself a problem.
 
 rather than cp'ing bins, tobe safe, i'll just rebuild world ... and
 see in a bit if that helps.
 
 thanks.
 
  Furthermore I am not sure that you can run a jail on a zfs file system.
  The setup I have is that I run my jails on ufs and have a zfs filesystem
  available within the jail.
 
 ??
 
 if that's true, then that renders the rest moot -- and i have a problem.
 
 atm, i have
 
 cat /etc/fstab
   /dev/mirror/gm0s1a /bootdirufs rw1 1
   /dev/mirror/gm0s1b noneswapsw0 0
   /dev/acd0  /cdrom  cd9660  ro,noauto 0 0
   /j/jMROOT  /j/jTESTnullfs  ro0 0
   /j/s/jTEST /j/jTEST/s  nullfs  rw0 0
 
 zfs list
   NAME  USED  AVAIL  REFER  MOUNTPOINT
   z5.23G   213G   250M  /z
   z/data 20K   213G20K  /data
   z/home   28.5K   213G  28.5K  /home
   z/j23K   213G23K  /j
   z/tmp 406K   213G   406K  /tmp
   z/usr4.88G   213G  4.88G  /usr
   z/var 105M   213G   105M  /var
 
 where z/j is a zfs mount.
 
 i *can* access the jail, and do just about 'all' i need to in the jail
 (builds, exec, etc).
 
 but do *not* yet know if, by running the jail on zfs space whehter
 i've compromised anything.
 
 do you have a reference for your comment?  or, perhaps, someone else
 can comment, as well?

I have a jail running in a ZFS environment.

[EMAIL PROTECTED] ~ % jls
   JID  IP Address  Hostname  Path
 3  192.168.1.100   asterisk  /u/jails/asterisk
[EMAIL PROTECTED] ~ % mount | grep data
data on /u (zfs, NFS exported, local, noatime)
[EMAIL PROTECTED] ~ % mount | grep devfs
devfs on /dev (devfs, local)
devfs on /u/jails/asterisk/dev (devfs, local)
[EMAIL PROTECTED] ~ % 

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


Re: jail on ZFS - Unable to mount devfs

2008-01-08 Thread snowcrash+freebsd
hi wesley,

 I have a jail running in a ZFS environment.

 [EMAIL PROTECTED] ~ % jls
JID  IP Address  Hostname  Path
  3  192.168.1.100   asterisk  /u/jails/asterisk
 [EMAIL PROTECTED] ~ % mount | grep data
 data on /u (zfs, NFS exported, local, noatime)
 [EMAIL PROTECTED] ~ % mount | grep devfs
 devfs on /dev (devfs, local)
 devfs on /u/jails/asterisk/dev (devfs, local)
 [EMAIL PROTECTED] ~ %

here's what i have

jls
   JID  IP Address   Hostname Path
 1  10.0.0.200   jTEST.internal.net   /j/jTEST

mount
z on / (zfs, local)
devfs on /dev (devfs, local)
/dev/mirror/gm0s1a on /bootdir (ufs, local, soft-updates)
z/data on /data (zfs, local)
z/home on /home (zfs, local)
z/j on /j (zfs, local)
z/tmp on /tmp (zfs, local)
z/usr on /usr (zfs, local)
z/var on /var (zfs, local)
/j/jMROOT on /j/jTEST (nullfs, local, read-only)
/j/s/jTEST on /j/jTEST/s (nullfs, local)
devfs on /j/jTEST/dev (devfs, local)

which, i think?, says the same.

argh. confused. following too many threads with partial solutions ...

can you share your setup-a-jail-on-a-zfs'd-host steps?

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


Re: Fortune

2008-01-08 Thread John Nielsen

Quoting Jon Dowd [EMAIL PROTECTED]:

On Jan 8, 2008 9:09 AM, Jonathan Horne [EMAIL PROTECTED] wrote:


Jon Dowd wrote:
 Is there a port for the game fortune? I recently installed 6.2 AMD64
 and I can't find it when I do a 'pkg_add -rv fortune' or 'pkg_add -rv
 fortune-mod'

 The ones I find I am not interested in; such as:
 zh-fortunetw-1.3
 wmfortune-0.241_2
 fortune-mod-bible-1.0_1
 fortune-mod-bofh-2.0_3
 fortune-mod-culmea-culmilor-2005.12.15
 fortune-mod-ferengi_rules_of_acquisition-2006.01.26
 fortune-mod-futurama-0.2_3
 fortune-mod-the-godfather-2.0
 fortuneit-1.99
 pl-fortunepl-0.0.20051022
 ru-fortune-bashorgru-20070808
 ru-fortuneru-0.9
 fortunelock-0.1.2
 e17-splash-fortune-1.1_1

 Am I missing something?

 Thanks for your help.


its a part of the base system afaik.

$ which fortune
/usr/games/fortune


Somehow there is nothing in my /usr/games directiory.

[EMAIL PROTECTED]
~ $ ls -l /usr/games/
total 0

[EMAIL PROTECTED]

How do I fix that?


You probably did a minimal install and have not yet updated, correct? 
Install the games distribution from sysinstall or just do a 
buildworld/installworld.


JN

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


Re: OSX NFS-Server FreeBSD NFS Client

2008-01-08 Thread Chuck Swiger

On Jan 7, 2008, at 11:01 PM, Konrad Heuer wrote:
You really don't want to export a filesystem which itself is being  
mounted remotely.  If you want to provide SMB filesharing for these  
files, run Samba on the OS X machine(s) directly.


Knowing all the drawbacks including reduced bandwith, there are some  
important organizational reasons, thus I want to do so. Moreover,  
Samba ist just one application on the NFS clients, although an  
important one.



While I certainly wish you the best of luck, previous experience  
suggests that the drawbacks to this approach include not functioning  
properly.


NFS is a stateless protocol, except insofar as rpc.lockd in theory  
provides lockf/flock style locking over the network-- yet Samba/CIFS  
wants to allow extensive use of client side opportunistic locking,  
which means that Samba really, really wants to run off of a local  
filesystem.


--
-Chuck

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


Fortune

2008-01-08 Thread Jon Dowd
Is there a port for the game fortune? I recently installed 6.2 AMD64
and I can't find it when I do a 'pkg_add -rv fortune' or 'pkg_add -rv
fortune-mod'

The ones I find I am not interested in; such as:
zh-fortunetw-1.3
wmfortune-0.241_2
fortune-mod-bible-1.0_1
fortune-mod-bofh-2.0_3
fortune-mod-culmea-culmilor-2005.12.15
fortune-mod-ferengi_rules_of_acquisition-2006.01.26
fortune-mod-futurama-0.2_3
fortune-mod-the-godfather-2.0
fortuneit-1.99
pl-fortunepl-0.0.20051022
ru-fortune-bashorgru-20070808
ru-fortuneru-0.9
fortunelock-0.1.2
e17-splash-fortune-1.1_1

Am I missing something?

Thanks for your help.

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


Re: Fortune

2008-01-08 Thread Jon Dowd
That was my original thought after failing to install fortune via
pkg_add, however here's what shows in my ports collection:

 [EMAIL PROTECTED]
~ $ ls -l /usr/ports/games |grep for
drwxr-xr-x  3 root  wheel512 Jan  3 11:03 formido/
drwxr-xr-x  2 root  wheel512 Jan  3 11:03 hlserver-opfor/
drwxr-xr-x  3 root  wheel512 Jan  3 11:03 inform/
drwxr-xr-x  2 root  wheel512 Jan  3 11:03 linux-enemyterritory-fortress/
drwxr-xr-x  3 root  wheel512 Jan  3 11:03 quake2forge/
drwxr-xr-x  3 root  wheel512 Jan  3 11:03 quakeforge/
drwxr-xr-x  3 root  wheel512 Jan  3 11:03 wmfortune/

 [EMAIL PROTECTED]
~ $

Later when I'm at that computer's console I will try to install the
games distribution from sysinstall (unless someone demonstrates a
simple way for me to proceed remotely).

Thanks to you all for helping an 'all thumbs' newb.

On Jan 8, 2008 9:21 AM, Arthur Barlow [EMAIL PROTECTED] wrote:

 Jon Dowd wrote:
  Somehow there is nothing in my /usr/games directiory.
 
   [EMAIL PROTECTED]
  ~ $ ls -l /usr/games/
  total 0
 
   [EMAIL PROTECTED]
 
 
  How do I fix that?
 
  Thank you.
 
  On Jan 8, 2008 9:09 AM, Jonathan Horne [EMAIL PROTECTED] wrote:
 
  Jon Dowd wrote:
 
  Is there a port for the game fortune? I recently installed 6.2 AMD64
  and I can't find it when I do a 'pkg_add -rv fortune' or 'pkg_add -rv
  fortune-mod'
 
  The ones I find I am not interested in; such as:
  zh-fortunetw-1.3
  wmfortune-0.241_2
  fortune-mod-bible-1.0_1
  fortune-mod-bofh-2.0_3
  fortune-mod-culmea-culmilor-2005.12.15
  fortune-mod-ferengi_rules_of_acquisition-2006.01.26
  fortune-mod-futurama-0.2_3
  fortune-mod-the-godfather-2.0
  fortuneit-1.99
  pl-fortunepl-0.0.20051022
  ru-fortune-bashorgru-20070808
  ru-fortuneru-0.9
  fortunelock-0.1.2
  e17-splash-fortune-1.1_1
 
  Am I missing something?
 
  Thanks for your help.
 
 
  its a part of the base system afaik.
 
  $ which fortune
  /usr/games/fortune
 
  --
  Jonathan Horne
  http://dfwlpiki.dfwlp.org
  freebsd08 [EMAIL PROTECTED] dfwlp.com
 
 
 
 
 
 
 Check in /usr/ports/games, assuming you have the ports collection.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]




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


courier mail server webadmin interface problem installed from ports

2008-01-08 Thread Thodoris

Hello list,
   I am facing a problem for quite a while now and it has to do with 
the courier mail server webadmin interface. I have installed a mail 
server using courier mail server and courier-authlib  using authmysql to 
authenticate users. Although the service is configured working fine so 
far the webadmin web interface cannot detect the authentication modules. 
I have installed both packages using the ports system so please if 
anyone has a clue or needs any additional info let me know. The system 
has a  6.2-RELEASE.


--
Thodoris

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


Re: Sendmail: exposed root, why?

2008-01-08 Thread Philip M. Gollucci

Jerahmy Pocott wrote:

Hello,

 From the sendmail documentation:

There are always users that need to be exposed -- that is,
their  internal site name should be displayed instead of the
masquerade name. Root is an example (which has been
exposed by default prior to 8.10).

Is there actually any reason why root needs to be exposed?

Root is set to an external address in aliases and it really
needs to be masqueraded in order to for it to get delivered,
but would that cause problems with anything?

How do you stop sendmail from doing this, I don't see any
directive to NOT expose root, only options to expose other
addresses as well.. Perhaps there is a better way to send
system mailed logs to an external address that doesn't send
them from root?

Thanks for any info!

There is no directive, but you can edit the resultant .cf file
and remove the line
C{E}root
or root from that line if more than one user.

Be warned, you _will_ break /etc/crontab and periodic scripts mail delivery.

The reason it needs to be exposed is probably these scripts because 
other wise the from address for daily security scripts will be
root@masquerade rather than [EMAIL PROTECTED]  Now, it so happens 
that most of these e-mails have the machine name in the subject or what not.




--

Philip M. Gollucci ([EMAIL PROTECTED])
o:703.549.2050x206
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

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


Re: is there a /bin/sh method to tell the ending of a file

2008-01-08 Thread Christopher Cowart
On Tue, Jan 08, 2008 at 12:01:18AM -0600, Jon Hamilton wrote:
 } On Mon, Jan 07, 2008 at 09:10:58PM -0800, Gary Kline wrote:
 } Paul Procacci [EMAIL PROTECTED], said on Mon Jan 07, 2008 [11:34:08 PM]:
 }  Hi All,
 }  
 }  Is there an easy way of determing whether a string//filename ends in
 }  *.gz? using /bin/sh?  
 
 } Is this what you mean?
 } 
 } -
 } #!/bin/sh
 } 
 } STRING=mystring.gz
 } 
 } if [ .gz = `echo \$STRING\ | sed -n 's/.*\(\.gz\)$/\1/p'` ]; then
 }  echo test;
 } fi
 } 
 } ---
 
 Works (I assume) but perhaps easier to read and more native might be:
 
 case $STRING in
 *\.gz)
   echo Found .gz suffix
   ;;
 *)
   echo Not a .gz suffix
   ;;
 esac
 
 Sh is a pretty versatile creature; I'm sure there are a thousand more ways
 all of which work, and some of which will cause religious arguments for 
 decades :)

Right. Here's another way using parameter expansion:

| if [ ${STRING##*.} = gz ] ; then
| echo true
| else
| echo false
| fi

The syntax is terse, but pretty popular in the /etc/rc family of scripts. 

-- 
Chris Cowart
Lead Systems Administrator
Network  Infrastructure Services, RSSP-IT
UC Berkeley


pgpWUJi3EfOiH.pgp
Description: PGP signature


Re: Fortune

2008-01-08 Thread Rob

John Nielsen wrote:

Jon Dowd wrote:
 Is there a port for the game fortune? I recently installed 6.2 AMD64
 and I can't find it when I do a 'pkg_add -rv fortune' or 'pkg_add -rv


You probably did a minimal install and have not yet updated, correct? 


Agreed on the minimal install.  There is also a NO_GAMES options that may be 
defined in make.conf that would affect build/installworld.

 -RW

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


Re: Hi - followed FAQ but can't mount USB key as user

2008-01-08 Thread Andy Elvey

[EMAIL PROTECTED] wrote:

Andy,

On Jan 8, 2008 9:48 AM, Andy Elvey [EMAIL PROTECTED] wrote:
  

Hi all -

 I've recently installed FreeBSD 6.2-release - very impressed!

Just a small problem. I'm unable to mount my USB key as a user.  ( I can
mount it as root,  using the
command  mount -t msdos /dev/da0s1 /mnt   )

This is what I get when I try to mount it as a user -
$ mount -t msdos /dev/da0s1 /home/andy
mount_msdosfs: /dev/da0s1: Permission denied

$ mount -t msdos /dev/da0s1 /mnt
mount_msdosfs: /dev/da0s1: Operation not permitted

I followed the instructions in the FAQ ( section 9.23 ) to the letter (
the only change being that that doesn't mention
USB devices, so I've substituted the USB device name  da0 for the device
names there.  )



hmmm, freebsd.org seems to be broken for me

- man devfs.rules

- create /etc/devfs.rules: ( substitute wheel for the group you want )

[localrules=10]
add path 'da*s*' mode 0660 group wheel

- append to /etc/rc.conf:

devfs_system_ruleset=localrules

- make sure the dir you are mounting on is owned by the user who
issues the mount command.

- make sure vfs.usermount=1

- reboot after changing devfs.rules  rc.conf

worked for me, let us know if it worked for you.

regards,

usleep
  

 Hi usleep - many thanks for this!   I'll let you know soon :-)
 Bye for now -
- Andy




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


how to start one daemon twice from the rc.conf?

2008-01-08 Thread ivan dimitrov
hello list,

How to start two sshd with different configs from the rc.conf?

Do i have to write a secondary /etc/rc.d/sshd, 
for eg. /etc/rc.d/sshd2 and put sshd2_enable=yes in the rc.conf
or there is another way to do this?

Regards
Ivan


   
-
Never miss a thing.   Make Yahoo your homepage.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to start one daemon twice from the rc.conf?

2008-01-08 Thread Philip M. Gollucci

ivan dimitrov wrote:

hello list,

How to start two sshd with different configs from the rc.conf?

Do i have to write a secondary /etc/rc.d/sshd,
for eg. /etc/rc.d/sshd2 and put sshd2_enable=yes in the rc.conf
or there is another way to do this?

Or you could write a script /usr/local/etc/sshd-mine
thats starts both, or add /usr/local/etc/sshd2 that just starts the 
second one.


-f configuration_file
 Specifies the name of the configuration file.  The default is
 /etc/ssh/sshd_config.  sshd refuses to start if there is no con-
 figuration file.

Its generally good to not muck with things in /etc/rc.d unless you 
really have too,





--

Philip M. Gollucci ([EMAIL PROTECTED])
o:703.549.2050x206
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

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


RE: jail on ZFS - Unable to mount devfs

2008-01-08 Thread Karsten W. Schmidt / DLX ApS
 not surprising, as step (4) @ .../handbook/jails-application.html had
 me
 
rm -R bin boot lib libexec mnt proc rescue sbin sys usr dev
--

From jails-application.html
--
cd /home/j/skel
# rm -R bin boot lib libexec mnt proc rescue sbin sys usr dev
--

The root is in /home/j/mroot and nullfs mounted read only to the jail
root
So if you ran the rm in /j/jTest you did not follow the directions

 any suggestions ?

Dont do jail-appliations ... use a full world onside the jail
Here's a short draft from my playing around with ZFS and 7.0-RC1
http://gugge.dlx.dk/bsd/zfs-jail

Notice that I don't use the normal way of buildworld/installworld 
to populate the jail. I just unpack the distfiles from the CD.

But a make installworld DESTDIR=/jailpath would do just fine too

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


Re: how to start one daemon twice from the rc.conf?

2008-01-08 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

ivan dimitrov wrote:

 How to start two sshd with different configs from the rc.conf?
 
 Do i have to write a secondary /etc/rc.d/sshd, 
 for eg. /etc/rc.d/sshd2 and put sshd2_enable=yes in the rc.conf
 or there is another way to do this?

No -- that's pretty much the way of it unless the rc file
specifically has support for multiple sessions (eg. /etc/rc.d/jail)

You need to do more than just rename the file though -- you will
need to change the line:

name=sshd

to read

name=sshd2

plus you'll need to change the line

command=/usr/sbin/${name}

to say 

command=/usr/sbin/sshd

and add

sshd2_enable=YES
sshd2_flags=-f /etc/ssh/sshd2_config

to /etc/rc.conf -- assuming you're happy to use the same keys as
for the other sshd instance that's pretty much all that's necessary.

In the general case though you'ld have to do a sweep through the
file and change any variables from sshd_foo to sshd2_foo -- usually
there are a number of references like that, and /etc/rc.d/sshd is
quite unusual in not having them.

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
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHg+VC8Mjk52CukIwRCC7AAJ9Q4ckg6xfyB1Sv2gGqnMpPiAIKIwCdHo4Z
HLoVnrPpraFIDFW8jGA9ilw=
=Hwqd
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Fortune

2008-01-08 Thread Jerry McAllister
On Tue, Jan 08, 2008 at 09:44:40PM +0100, Willem Hendriks wrote:

  Is there a port for the game fortune? I recently installed 6.2 AMD64
  and I can't find it when I do a 'pkg_add -rv fortune' or 'pkg_add -rv
  fortune-mod'
  
  The ones I find I am not interested in; such as:
  zh-fortunetw-1.3
  wmfortune-0.241_2
  fortune-mod-bible-1.0_1
  fortune-mod-bofh-2.0_3
  fortune-mod-culmea-culmilor-2005.12.15
  fortune-mod-ferengi_rules_of_acquisition-2006.01.26
  fortune-mod-futurama-0.2_3
  fortune-mod-the-godfather-2.0
  fortuneit-1.99
  pl-fortunepl-0.0.20051022
  ru-fortune-bashorgru-20070808
  ru-fortuneru-0.9
  fortunelock-0.1.2
  e17-splash-fortune-1.1_1
  
  Am I missing something?
  
  Thanks for your help.
 
 You could get the latest sources with svcup, and do a make, make install in
^
 /usr/src/games/fortune

Is that a new one on me or do you mean 'cvsup'  -- which has been
replaced with  'csup'?

That would be the recommended way to update your ports tree.

You want to use the directive:
  ports-all tag=.
in your supfile to pull in the latest ports tree - which is the only one
since it is not branched like the main OS.

Actually, you should to a full update of the OS and ports tree
at the same time and then build and install all the system before
installing the ports.It doesn't actually take very long any
more on recently built 1,000+ MHz hardware which is so much faster 
than in the good old days of 80 MHz CPUs.

jerry  

 
 Willem Hendriks
 ___
 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: changing the postion of a partion in fdisk

2008-01-08 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jerry McAllister wrote:
 On Mon, Jan 07, 2008 at 10:33:04PM -0500, Aryeh M. Friedman wrote:

 I have my FreeBSD partition as partition 1 and my ntfs as
 partition 2 but Vista insists that there is no suitable partion
 to install to (even though the ntfs partition is big enough)...
 after some research I found that vista absolutely insists that
 the ntfs partition be partition 1... how do I swap them and/or
 delete the ntfs one and renumber it so freebsd is in partion slot
 2 (with nothing in 1 and then I can use fdisk to make a new slot
 1)

 Well, you can use fdisk from the fixit shell to make your slice 2
 (note the primary divisions are called 'slices' in FreeBSD) in to a
 FreeBSD type and then create your FreeBSD partitions in it and
 build FreeBSD filesystems there.

I think I should of been a little more specific the physical layout is
completely correct (i.e. the sizes, start/end tracks, etc.) the only
problem is the logical numbering of the partitions/slices in the mbr
idea of the table... namely I just need to relabel them not modify
them in any way.

 Then, still using the fixit, use dump/restore to copy the contents
 of the FreeBSD filesystems over. Assuming the major slices are
 ad0s1 and ad0s2, then something like: mkdir /oldroot mount /ad0s1a
 /oldroot mkdir /newroot mount /ad0s2a /newroot cd /newroot dump 0af
 - / | restore -rf -

 That will get the root partition/filesystem. Do appropriately
 similar for the rest of the FreeBSD filesystems.

 Note that while in fixit, the running root (/) is in a memory
 filesystem which will go away after you reboot.  So, those mount
 points you create (oldroot, newroot, etc) are temporary.

 Then use a utility such as gparted (freely downloadable as ISO) to
 convert the #1 slice into NTFS and install Vista there. You might
 be able to get FreeBSD's fdisk to do the convesion to NTFS, but I
 have never tried that.  You would have to know the code number for
 it.

 jerry

 - -- Aryeh M. Friedman FloSoft Systems, Java Developer Tools
 http://www.flosoft-systems.com Developer, not business, friendly.


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



- --
Aryeh M. Friedman
FloSoft Systems, Java Developer Tools
http://www.flosoft-systems.com
Developer, not business, friendly.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHg/RPjRvRjGmHRgQRAmAIAJ9ez7kulB5P94ZeVUsY7rrnDo3hLwCgjNCW
m54xx08yDK3m7lXN5/xsQ84=
=+9FU
-END PGP SIGNATURE-

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


Re: Updating 7.0-BETA2 to RC1...

2008-01-08 Thread peter.piggybox

Jonathan Chen [EMAIL PROTECTED] wrote:
__
On Tue, Jan 08, 2008 at 07:19:00AM +, [EMAIL PROTECTED] wrote:
 I'm shortly going to update my laptop from 7.0-BETA2 (a fresh install) to 
 7.0-RC1. I'll do this with a buildworld/installworld cycle. However, reading 
 the site for freebsd-update I noticed that if I were to do a binary upgrade 
 then it recommends rebuilding all ports as well.
 
 Is rebuilding all ports something I should consider if I'm doing a 
 source-based upgrade too? Even though I'm not crossing a major version 
 boundary?

Yes. There was an API change in the system-base, which requires a
ports-rebuild just to be safe.

Thanks for this. I guess I need to budget a bit more time for that upgrade 
then...

Peter Harrison.


Cheers.
-- 
Jonathan Chen [EMAIL PROTECTED]
--
  Jesus saves.
   Allah forgives.
 Cthulu thinks you'd make a nice sandwich.


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


Re: Updating 7.0-BETA2 to RC1...

2008-01-08 Thread peter.piggybox
Matthew Seaman [EMAIL PROTECTED] wrote:
__
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

[EMAIL PROTECTED] wrote:
 I'm shortly going to update my laptop from 7.0-BETA2 (a fresh
 install) to 7.0-RC1. I'll do this with a buildworld/installworld
 cycle. However, reading the site for freebsd-update I noticed that if
 I were to do a binary upgrade then it recommends rebuilding all ports
 as well.
 
 Is rebuilding all ports something I should consider if I'm doing a
 source-based upgrade too? Even though I'm not crossing a major
 version boundary?

Once 7.0 is released, then there is a promise of binary compatibility
for any software compiled under some 7.x version to work certainly with
any later 7.x version, and possibly with any earlier 7.x version as
well[*].

However, 7.0-RELEASE isn't actually out there yet, and the Release
Engineers may well be making last minute incompatible changes.  If
freebsd-update recommends wholesale updating of ports, then there's
a good reason for that.  I will state though that I've been tracking
7.x since fairly shortly after the RELENG_7 branch was created and apart
from the big 6 - 7 update I've not seen any compatibility problems with
ported software.

   Cheers,

   Matthew

[*] I can't remember if the backwards compatibility with the major
version is guaranteed or not.  Forward certainly is.  Also there's
the new symbol versioning thing within shlibs that changes the way
this sort of thing works.

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

iD8DBQFHgy0o8Mjk52CukIwRCA4yAKCJxClkrwrFe9fKeXGTSUXc3xQxZgCffpfT
lJcn7/Ihsl+kvdgF1tME7Qo=
=cMsz
-END PGP SIGNATURE-

Thanks for the info Matthew.

Peter Harrison.


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


Re: changing the postion of a partion in fdisk

2008-01-08 Thread Jerry McAllister
On Tue, Jan 08, 2008 at 05:08:15PM -0500, Aryeh M. Friedman wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Jerry McAllister wrote:
  On Mon, Jan 07, 2008 at 10:33:04PM -0500, Aryeh M. Friedman wrote:
 
  I have my FreeBSD partition as partition 1 and my ntfs as
  partition 2 but Vista insists that there is no suitable partion
  to install to (even though the ntfs partition is big enough)...
  after some research I found that vista absolutely insists that
  the ntfs partition be partition 1... how do I swap them and/or
  delete the ntfs one and renumber it so freebsd is in partion slot
  2 (with nothing in 1 and then I can use fdisk to make a new slot
  1)
 
  Well, you can use fdisk from the fixit shell to make your slice 2
  (note the primary divisions are called 'slices' in FreeBSD) in to a
  FreeBSD type and then create your FreeBSD partitions in it and
  build FreeBSD filesystems there.
 
 I think I should of been a little more specific the physical layout is
 completely correct (i.e. the sizes, start/end tracks, etc.) the only
 problem is the logical numbering of the partitions/slices in the mbr
 idea of the table... namely I just need to relabel them not modify
 them in any way.

I don't think you can make slice 2 become slice 1.  The system numbers 
them in order of appearance.  This comes from BIOS standard usage.

jerry

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


Re: how to compile and install a new driver [for CP2101]

2008-01-08 Thread Steve Franks
I thought a number of people would be interested in my experience with
the CP2101 driver on FreeBSD, so here it is:

-- Forwarded message --
From: Steve Franks [EMAIL PROTECTED]
Date: Dec 25, 2007 4:41 PM
Subject: Re: usb/119002: add ucp driver support
To: [EMAIL PROTECTED], [EMAIL PROTECTED]


Sucess!  I have built and proven that the ucp.ko driver works with all
my various work and hobby projects using the Silicon Laboratories
CP2101, CP2102, and CP2103 devices.  There are alot of other
off-the-shelf OEM devices using this chipset, which allow for
different VID's  PID's (see the patch file) - I was obviously unable
to test them as I only have the manufacturer's reference design style
hardware, but there is no way to modify the operation of the chipset
except for the VID  PID, so I assume they will work fine if FreeBSD
recognizes the VID  PID - not a usb expert.  Test was performed with
Minicom talking to /dev/cuaU0; after kldload ucp, plugging in a CP210x
yields ucom0 in dmesg, and cuaU0 in /dev.

I think my earlier problem was due to the patch mucking the system -
if run from /usr/src/sys, it doesn't create the modules/ucp folder
like it should, don't know why.  Here's what I did that worked:

1. /usr/src/sys/dev/usb# patch  ~/ucp-0.01.diff
2. /usr/src/sys/dev/usb# mkdir /usr/src/sys/modules/ucp
3. /usr/src/sys/dev/usb# mv Makefile /usr/src/sys/modules/ucp
3a. Once you have proven it works, you might want to remove the -DEBUG
line from this makefile (I did up front, never tested with debug
symbols/code on my system)
4. manually edit /usr/src/sys/dev/usb/usbdevs to fix the patch
collision and add all the new lines (specifically vendor SILABS 0x10c4
Silicon labs)
5. manually edit /usr/src/sys/modules/Makefile to add the line:
ucp \
after the line
ucom \
6. build  install kernel

Incidentally, since I cvsup'd to clean up my previous mess, I am now
on 6.3-xxx, but I don't think that was a factor in making it work.

Also, note that step 5 is not in the diff file at all for some reason,
as opposed to step 4 which simply didn't patch in automatically.

Best,

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


Re: Xorg 7.2 and FreeBSD 6.2-p5 VMWARE vmmouse problem

2008-01-08 Thread Bob Finch
On 10/10/2007, at 17:00:22, Sam Lawrance wrote:
On 10/07/2007, at 11:53 AM, Webster, Andrew wrote:

 Howdy,



 I was successfully able to get Xorg upgraded to 7.2 by just  
 installing them from scratch as opposed to trying to upgrading an  
 existing system, BUT I’ve run into a problem…



 While running VMWare Server 1.0.3 with FreeBSD 6.2-p5 and Xorg 7.2,  
 the mouse pointer behaves very oddly.

 The pointer appears in the wrong place on the screen for where the  
 system actually thinks that it is.

 I’m using the vmmouse driver part of the Xorg system, as the  
 regular mouse driver doesn’t appear to work at all, unless some  
 settings are amiss.

 I really like the vmmouse drive because you can move the pointer in/ 
 out of the window as you do with regular windows guest OSes.



 Has anyone experienced similar problems and/ or know of a fix for  
 this?


Andrew,

I just set up VMWare Fusion with FreeBSD and have a problem that  
might be related.  Ascii art time:
_
|_| |
|   |
|   |
|___|

The pointer appears normally on the screen.  However, clicking around  
the screen does not work except in a small area in the top left  
corner.  Moving the mouse within this tiny corner seems to scale up  
and operate on the entire screen.  Eg. if I click and drag across the  
tiny corner, I can see the selection appear across the entire desktop.

Is this similar to your issue?  Did you find a resolution?

Sam,

I ran into this problem on FreeBSD 7.0 RC1 with Xorg 7.3 using the
VMWare mouse driver (vmmouse).

Apparently, X server 1.4.0 in Xorg 7.3 no longer calls the conversion_proc
function in the mouse driver.  The VMWare mouse driver depends on that
call to scale the mouse coordiates to the screen size.

As a workaround, I fetched the x11-drivers/xf86-input-vmmouse port and
patched src/vmmouse.c by hand before installing it:

bob polaris[9]: diff -u orig/xf86-input-vmmouse-12.4.3/src/vmmouse.c 
xf86-input-vmmouse-12.4.3/src/vmmouse.c
--- orig/xf86-input-vmmouse-12.4.3/src/vmmouse.c2007-09-25 
16:11:47.0 -0700
+++ xf86-input-vmmouse-12.4.3/src/vmmouse.c 2008-01-08 14:58:59.0 
-0800
@@ -964,8 +964,11 @@
VMMOUSE_INPUT_DATA  vmmouseInput;
int ps2Buttons = 0;
int numPackets;
+   VMMousePrivPtr mPriv;
+   double factorX, factorY;
 
pMse = pInfo-private;  
+   mPriv = pMse-mousePriv;
while((numPackets = VMMouseClient_GetInput(vmmouseInput))){
   if (numPackets == VMMOUSE_ERROR) {
  VMMouseClient_Disable();
@@ -990,6 +993,13 @@
   dy = vmmouseInput.Y; 
   dz = (char)vmmouseInput.Z;
   dw = 0;
+
+  /* X server 1.4.0 does not call VMMouseConvertProc() so we scale 
coordinates here */
+  factorX = ((double) screenInfo.screens[mPriv-screenNum]-width) / 
(double) 65535;
+  factorY = ((double) screenInfo.screens[mPriv-screenNum]-height) / 
(double) 65535;
+  dx = dx * factorX + 0.5;
+  dy = dy * factorY + 0.5;
+
   /* post an event */
   pMse-PostEvent(pInfo, buttons, dx, dy, dz, dw);
}

-- Bob


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


Upgrade to 7.0; Shared Object Not Found

2008-01-08 Thread Schiz0
Hey,

I recently upgraded from 6.3-PRERELEASE to 7.0-PRERELEASE

# uname -a
FreeBSD Mercury 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Tue Jan  8
15:07:49 EST 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SCHIZ0NET_MERCURY  i38


Now, whenever I run any various commands, I get various errors:

# vim
/libexec/ld-elf.so.1: Shared object libncurses.so.6 not found,
required by vim
# portupgrade
/libexec/ld-elf.so.1: Shared object libcrypt.so.3 not found,
required by ruby18
# bash
/libexec/ld-elf.so.1: Shared object libncurses.so.6 not found,
required by bash
And so on...

It had me locked out at first because my default shell is bash. But I
got it working with /bin/csh now.

So. Apparently I'm missing some shared objects. Can anyone shed any
light on the issue? Or guide me on how to fix it?

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


Re: Upgrade to 7.0; Shared Object Not Found

2008-01-08 Thread Kris Kennaway

Schiz0 wrote:

Hey,

I recently upgraded from 6.3-PRERELEASE to 7.0-PRERELEASE

# uname -a
FreeBSD Mercury 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Tue Jan  8
15:07:49 EST 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SCHIZ0NET_MERCURY  i38


Now, whenever I run any various commands, I get various errors:

# vim
/libexec/ld-elf.so.1: Shared object libncurses.so.6 not found,
required by vim
# portupgrade
/libexec/ld-elf.so.1: Shared object libcrypt.so.3 not found,
required by ruby18
# bash
/libexec/ld-elf.so.1: Shared object libncurses.so.6 not found,
required by bash
And so on...

It had me locked out at first because my default shell is bash. But I
got it working with /bin/csh now.

So. Apparently I'm missing some shared objects. Can anyone shed any
light on the issue? Or guide me on how to fix it?


Part of the upgrade that you omitted was to install new 7.0 versions of 
your installed ports.  portupgrade -fa or -faP.


Kris

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


Re: Upgrade to 7.0; Shared Object Not Found

2008-01-08 Thread Schiz0
On Jan 8, 2008 7:33 PM, Kris Kennaway [EMAIL PROTECTED] wrote:

 Schiz0 wrote:
  Hey,
 
  I recently upgraded from 6.3-PRERELEASE to 7.0-PRERELEASE
 
  # uname -a
  FreeBSD Mercury 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Tue Jan  8
  15:07:49 EST 2008
  [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SCHIZ0NET_MERCURY  i38
 
 
  Now, whenever I run any various commands, I get various errors:
 
  # vim
  /libexec/ld-elf.so.1: Shared object libncurses.so.6 not found,
  required by vim
  # portupgrade
  /libexec/ld-elf.so.1: Shared object libcrypt.so.3 not found,
  required by ruby18
  # bash
  /libexec/ld-elf.so.1: Shared object libncurses.so.6 not found,
  required by bash
  And so on...
 
  It had me locked out at first because my default shell is bash. But I
  got it working with /bin/csh now.
 
  So. Apparently I'm missing some shared objects. Can anyone shed any
  light on the issue? Or guide me on how to fix it?

 Part of the upgrade that you omitted was to install new 7.0 versions of
 your installed ports.  portupgrade -fa or -faP.

 Kris



The only problem with that is I'm unable to run portupgrade :-\

# portupgrade -fa
/libexec/ld-elf.so.1: Shared object libcrypt.so.3 not found,
required by ruby18

So do I have to deinstall and reinstall portupgrade (and the ports
that it depends on)?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Upgrade to 7.0; Shared Object Not Found

2008-01-08 Thread [EMAIL PROTECTED]
On 08/01/2008, Schiz0 [EMAIL PROTECTED] wrote:
 Hey,

 I recently upgraded from 6.3-PRERELEASE to 7.0-PRERELEASE

 # uname -a
 FreeBSD Mercury 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Tue Jan  8
 15:07:49 EST 2008
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SCHIZ0NET_MERCURY  i38


 Now, whenever I run any various commands, I get various errors:

 # vim
 /libexec/ld-elf.so.1: Shared object libncurses.so.6 not found,
 required by vim
 # portupgrade
 /libexec/ld-elf.so.1: Shared object libcrypt.so.3 not found,
 required by ruby18
 # bash
 /libexec/ld-elf.so.1: Shared object libncurses.so.6 not found,
 required by bash
 And so on...

 It had me locked out at first because my default shell is bash. But I
 got it working with /bin/csh now.

 So. Apparently I'm missing some shared objects. Can anyone shed any
 light on the issue? Or guide me on how to fix it?


You might be able to get by with using the
misc/compat6x port for some things.  But
eventually:

Rebuild ALL of your ports, probably starting
with perl and ruby (manually) so you can use
portupgrade for the rest.

# cd /usr/ports/lang/perl5.8
# make deinstall reinstall clean
and so on.

You may have to rebuild ruby-bdb and
portupgrade manually as well.

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


Re: Upgrade to 7.0; Shared Object Not Found

2008-01-08 Thread Schiz0
On Jan 8, 2008 7:39 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 On 08/01/2008, Schiz0 [EMAIL PROTECTED] wrote:
  Hey,
 
  I recently upgraded from 6.3-PRERELEASE to 7.0-PRERELEASE
 
  # uname -a
  FreeBSD Mercury 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Tue Jan  8
  15:07:49 EST 2008
  [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SCHIZ0NET_MERCURY  i38
 
 
  Now, whenever I run any various commands, I get various errors:
 
  # vim
  /libexec/ld-elf.so.1: Shared object libncurses.so.6 not found,
  required by vim
  # portupgrade
  /libexec/ld-elf.so.1: Shared object libcrypt.so.3 not found,
  required by ruby18
  # bash
  /libexec/ld-elf.so.1: Shared object libncurses.so.6 not found,
  required by bash
  And so on...
 
  It had me locked out at first because my default shell is bash. But I
  got it working with /bin/csh now.
 
  So. Apparently I'm missing some shared objects. Can anyone shed any
  light on the issue? Or guide me on how to fix it?
 

 You might be able to get by with using the
 misc/compat6x port for some things.  But
 eventually:

 Rebuild ALL of your ports, probably starting
 with perl and ruby (manually) so you can use
 portupgrade for the rest.

 # cd /usr/ports/lang/perl5.8
 # make deinstall reinstall clean
 and so on.

 You may have to rebuild ruby-bdb and
 portupgrade manually as well.

 --
 --


So in conclusion, I'll be pulling an all-nighter tonight.

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


Re: Upgrade to 7.0; Shared Object Not Found

2008-01-08 Thread Schiz0
On Jan 8, 2008 7:51 PM, Kris Kennaway [EMAIL PROTECTED] wrote:

 Schiz0 wrote:
  On Jan 8, 2008 7:33 PM, Kris Kennaway [EMAIL PROTECTED] wrote:
  Schiz0 wrote:
  Hey,
 
  I recently upgraded from 6.3-PRERELEASE to 7.0-PRERELEASE
 
  # uname -a
  FreeBSD Mercury 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Tue Jan  8
  15:07:49 EST 2008
  [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SCHIZ0NET_MERCURY  i38
 
 
  Now, whenever I run any various commands, I get various errors:
 
  # vim
  /libexec/ld-elf.so.1: Shared object libncurses.so.6 not found,
  required by vim
  # portupgrade
  /libexec/ld-elf.so.1: Shared object libcrypt.so.3 not found,
  required by ruby18
  # bash
  /libexec/ld-elf.so.1: Shared object libncurses.so.6 not found,
  required by bash
  And so on...
 
  It had me locked out at first because my default shell is bash. But I
  got it working with /bin/csh now.
 
  So. Apparently I'm missing some shared objects. Can anyone shed any
  light on the issue? Or guide me on how to fix it?
  Part of the upgrade that you omitted was to install new 7.0 versions of
  your installed ports.  portupgrade -fa or -faP.
 
  Kris
 
 
 
  The only problem with that is I'm unable to run portupgrade :-\
 
  # portupgrade -fa
  /libexec/ld-elf.so.1: Shared object libcrypt.so.3 not found,
  required by ruby18
 
  So do I have to deinstall and reinstall portupgrade (and the ports
  that it depends on)?

 Well if you just did the upgrade then you should still have the old
 libraries to use as an interim measure while you rebuild.  How did you
 go about upgrading, and can you think of anything you did that may have
 deleted them?

 Kris


I think I know exactly what I did..

Would make delete-old-libs cause it?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: outgoing mail STOPPED.

2008-01-08 Thread Gary Kline
On Tue, Jan 08, 2008 at 12:02:04AM -0800, Gary Kline wrote:
 On Mon, Jan 07, 2008 at 11:13:45AM +, Matthew Seaman wrote:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA256
  
  Gary Kline wrote:
  
Then I checked my /etc/namedb/s/db.thought.org to see id anything there 
could conceivably be hanging port 25.  Zip.  (I still updated the
date and re-exed. I checked with ps and grep to find something new:
  
  The best way to check for any processes listening on port 25 is:
  
  % sockstat | grep :25 
  root sendmail   1193  3  tcp4   81.187.76.162:25  *:*
  root sendmail   1193  5  tcp4   127.0.0.1:25  *:*
  root sendmail   1193  6  tcp6   ::1:25*:*
  root sendmail   1193  7  tcp6   2001:8b0:151:1:240:5ff:fea5:8db7:25*:*
  
 
 matthew, i did sockstat|gr 3, 4 da aago; couldn't make sense-of.  here's what 
 i get for sendmail and the above.   i can't make sense ofthis::
 
 p1 23:52 sage [5001] pss
 ~
 1380  ??  Is 0:00.20 sendmail: Queue [EMAIL PROTECTED]:30:00 for 
 /var/spool/client
 1382  ??  Ss 0:16.25 sendmail: accepting connections (sendmail)
 14646  ??  I  0:00.02 sendmail: server 131.sub-75-212-161.myvzw.com 
 [75.212
 p1 23:53 sage [5002] sockstat | grep :25
 ~
 root sendmail   14646 1  tcp4   216.231.43.140:25 75.212.161.131:1416
 root sendmail   14646 4  tcp4   216.231.43.140:25 75.212.161.131:1416
 root sendmail   14646 7  tcp4   216.231.43.140:25 75.212.161.131:1416
 root sendmail   1382  4  tcp4   *:25  *:*
 
 
 you'll prob'ly be up in a few hours, but it's time for me to cop a few z's 
 8 tz's west of you. thus, t'mmrw.
 
 gary
 
 
 
  ~
   624  ??  Ss 0:01.16 /usr/sbin/syslogd -l /var/run/log -l 
   /var/named/var/r
   p0 0:27 sage [5005]
   
In theory I know pretty much what bind9does, c; but why this
change?  (Part of my gnome (2.20) is missing so I cannot max
enlarge the konsole; ps -alx does not wrap so I cant see the 
entire string.)  I can pimg ns1.thought.org--obviously.  But if you
see anything here,  Matthew, would you please let me know?
  
  To get ps output without truncation, simply add 'ww' to the flags --
  one 'w' gives you a 132 column output (shades of those old fan-fold line
  printer TTYs there) and two (or more) 'w's gives you unlimited width:
  
  # ps -alx | grep /usr/sbin/s
  0   689 1   0  44  0  3188  1240 select Ss??0:07.28 
  /usr/sbin/s
  0  1188 1   0  44  0  5640  3356 select Is??0:00.02 
  /usr/sbin/s
  # ps -alxww | grep /usr/sbin/s
  0   689 1   0  44  0  3188  1240 -  Rs??0:07.29 
  /usr/sbin/syslogd -l /var/run/log -l /var/named/var/run/log -a 
  81.187.76.161/32:4096 -l /var/named/var/run/log
  0  1188 1   0  44  0  5640  3356 select Is??0:00.02 
  /usr/sbin/sshd
   1001 16014  1376   0  44  0   380   260 -  R+p00:00.00 grep 
  /usr/sbin/s
  
  As for the presence of '-l /var/named/var/run/log' -- that's added
  to the syslogd flags automatically by the /etc/rc.d/syslogd startup
  script[*] if you're running named chrooted (which is the default). This
  means that syslogd can log the items outside the chroot that are generated
  by named within it.  You should see output from named in /var/log/all.log
  - -- precisely what you see depends entirely on the logging configuration
  in named.conf.
  
  Cheers,
  
  Matthew
  
  [*] The reason I have it twice is that a long time ago I'd also added
  it to syslogd_flags manually, something I shall correct imminently.
  


I have a script here that sends test mail to various servers on 
thought.org.  I just caught this returned mail from qmail here.  

From this, it loooks as though though.org has disappeared entirely::


[EMAIL PROTECTED]: host ns1.thought.org[216.231.43.140] said: 553 5.1.2
[EMAIL PROTECTED]... Unrecognized host name magnesium.net. (in reply to
MAIL FROM command)

Or is this thought.org that is not seeing magnesium.net?!  Either
way, and whatever else is going on, could my /etc/namedb/*/*
files be involved in this mess?  bind9 is one thing I simply
do not touch. Or if/when (abs) necessary, I treat this stuff
like nitroglycerine:)

gary



Gary Kline  Seattle BSD Users' Group (seabug)  | [EMAIL PROTECTED]
Thought Unlimited Org's Alternate Email Site
http://www.magnesium.net/~kline
   To live is not a necessity; but to live honorably...is a necessity. -Kant

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


Re: Upgrade to 7.0; Shared Object Not Found

2008-01-08 Thread Kris Kennaway

Schiz0 wrote:

On Jan 8, 2008 7:33 PM, Kris Kennaway [EMAIL PROTECTED] wrote:

Schiz0 wrote:

Hey,

I recently upgraded from 6.3-PRERELEASE to 7.0-PRERELEASE

# uname -a
FreeBSD Mercury 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Tue Jan  8
15:07:49 EST 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SCHIZ0NET_MERCURY  i38


Now, whenever I run any various commands, I get various errors:

# vim
/libexec/ld-elf.so.1: Shared object libncurses.so.6 not found,
required by vim
# portupgrade
/libexec/ld-elf.so.1: Shared object libcrypt.so.3 not found,
required by ruby18
# bash
/libexec/ld-elf.so.1: Shared object libncurses.so.6 not found,
required by bash
And so on...

It had me locked out at first because my default shell is bash. But I
got it working with /bin/csh now.

So. Apparently I'm missing some shared objects. Can anyone shed any
light on the issue? Or guide me on how to fix it?

Part of the upgrade that you omitted was to install new 7.0 versions of
your installed ports.  portupgrade -fa or -faP.

Kris




The only problem with that is I'm unable to run portupgrade :-\

# portupgrade -fa
/libexec/ld-elf.so.1: Shared object libcrypt.so.3 not found,
required by ruby18

So do I have to deinstall and reinstall portupgrade (and the ports
that it depends on)?


Well if you just did the upgrade then you should still have the old 
libraries to use as an interim measure while you rebuild.  How did you 
go about upgrading, and can you think of anything you did that may have 
deleted them?


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


Re: Updating was fortune

2008-01-08 Thread Jerry McAllister
On Tue, Jan 08, 2008 at 04:07:32PM -0800, Jon Dowd wrote:

 Hi Jerry,
 
 Could you point me to documentation pertaining to full update of the
 OS and ports tree at the same time and then build and install all the
 system before installing the ports.
 
 I'd like to learn the correct procedures, but I'm concerned I'll miss
 steps or take steps out of order.

Try the FreeBSD handbook.   It is online at:

 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/

You should always look through that and the FAQs and search for 
other online publications before posting basic questions.  It
is all documented copiously.


For this, the section:
   23.4.1 The Canonical Way to Update Your System

Will cover it simply.

Unfortunately, the Handbook has not been updated to replace
the old CVsup with the current csup.   But, csup functions the
same and you can just follow the old directions.

This is a process for updating from one release to another, but you 
should do all of this with a new install if you are doing the install 
some amount of time after the release.   That is needed to get the
latest security fixes and to make sure the latest ports are in line
with the OS.

The basic process is to first make a backup unless this is a new
install - when you have nothing to lose.   

Do the csup.I will include a typical supfile to use at the end.
The csup command is as follows assuming supfile is in /etc/supfile_62

   csup -g -L 2 /etc/supfile_62 

Then reboot to single user.

You might want to run this all underscript(1)
to get a file full of all the messages and commands in case
something fails.  You can never follow it on the screen.

Then, do:
   # make buildworld
   # make buildkernel
   # make installkernel
   exit script
   # reboot to single user


Then:

Start another script

   # mergemaster -p
   # make installworld
   # mergemaster
   # reboot

exit script


A useful supfile to use with csup  -- assuming Version 6.2 RELEASE
This will get just the RELEASE and not current or stable which is
better if you are just learning.   Current and stable are for those
wanting the far edge.  I put my supfile in /etc/supfile_version.
You can put it anywhere you want that is accessible when doing the csup.

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  

*default host=cvsup.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default tag=RELENG_6_2
*default release=cvs 
*default delete use-rel-suffix

*default compress

## Main Source Tree.
# The easiest way to get the main source tree is to use the src-all
# mega-collection.  It includes all of the individual src-* collections.
src-all

ports-all tag=.

doc-all tag=.

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  


jerry



 
 Thanks for you assistance.
 
 Jon.
 
 On Jan 8, 2008 1:27 PM, Jerry McAllister [EMAIL PROTECTED] wrote:
 
  On Tue, Jan 08, 2008 at 09:44:40PM +0100, Willem Hendriks wrote:
 
Is there a port for the game fortune? I recently installed 6.2 AMD64
and I can't find it when I do a 'pkg_add -rv fortune' or 'pkg_add -rv
fortune-mod'
   
The ones I find I am not interested in; such as:
zh-fortunetw-1.3
wmfortune-0.241_2
fortune-mod-bible-1.0_1
fortune-mod-bofh-2.0_3
fortune-mod-culmea-culmilor-2005.12.15
fortune-mod-ferengi_rules_of_acquisition-2006.01.26
fortune-mod-futurama-0.2_3
fortune-mod-the-godfather-2.0
fortuneit-1.99
pl-fortunepl-0.0.20051022
ru-fortune-bashorgru-20070808
ru-fortuneru-0.9
fortunelock-0.1.2
e17-splash-fortune-1.1_1
   
Am I missing something?
   
Thanks for your help.
  
   You could get the latest sources with svcup, and do a make, make install 
   in
  ^
   /usr/src/games/fortune
 
  Is that a new one on me or do you mean 'cvsup'  -- which has been
  replaced with  'csup'?
 
  That would be the recommended way to update your ports tree.
 
  You want to use the directive:
ports-all tag=.
  in your supfile to pull in the latest ports tree - which is the only one
  since it is not branched like the main OS.
 
  Actually, you should to a full update of the OS and ports tree
  at the same time and then build and install all the system before
  installing the ports.It doesn't actually take very long any
  more on recently built 1,000+ MHz hardware which is so much faster
  than in the good old days of 80 MHz CPUs.
 
  jerry
 
  
   Willem Hendriks
 
   ___
   freebsd-questions@freebsd.org mailing list
   http://lists.freebsd.org/mailman/listinfo/freebsd-questions
   To unsubscribe, send any mail to [EMAIL PROTECTED]
 
 
 
 
 -- 
 [EMAIL PROTECTED]
 http://www.serveronthewall.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Upgrade to 7.0; Shared Object Not Found

2008-01-08 Thread Kris Kennaway

Schiz0 wrote:

On Jan 8, 2008 7:51 PM, Kris Kennaway [EMAIL PROTECTED] wrote:

Schiz0 wrote:

On Jan 8, 2008 7:33 PM, Kris Kennaway [EMAIL PROTECTED] wrote:

Schiz0 wrote:

Hey,

I recently upgraded from 6.3-PRERELEASE to 7.0-PRERELEASE

# uname -a
FreeBSD Mercury 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Tue Jan  8
15:07:49 EST 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SCHIZ0NET_MERCURY  i38


Now, whenever I run any various commands, I get various errors:

# vim
/libexec/ld-elf.so.1: Shared object libncurses.so.6 not found,
required by vim
# portupgrade
/libexec/ld-elf.so.1: Shared object libcrypt.so.3 not found,
required by ruby18
# bash
/libexec/ld-elf.so.1: Shared object libncurses.so.6 not found,
required by bash
And so on...

It had me locked out at first because my default shell is bash. But I
got it working with /bin/csh now.

So. Apparently I'm missing some shared objects. Can anyone shed any
light on the issue? Or guide me on how to fix it?

Part of the upgrade that you omitted was to install new 7.0 versions of
your installed ports.  portupgrade -fa or -faP.

Kris



The only problem with that is I'm unable to run portupgrade :-\

# portupgrade -fa
/libexec/ld-elf.so.1: Shared object libcrypt.so.3 not found,
required by ruby18

So do I have to deinstall and reinstall portupgrade (and the ports
that it depends on)?

Well if you just did the upgrade then you should still have the old
libraries to use as an interim measure while you rebuild.  How did you
go about upgrading, and can you think of anything you did that may have
deleted them?

Kris



I think I know exactly what I did..

Would make delete-old-libs cause it?




Yes, exactly so.  You can install the compat6x port to reinstall the old 
libraries.


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


lsof: can't determine device random seed

2008-01-08 Thread Jeffrey Lehman
I'm running 7.0-RC1 amd64 and having an issue with lsof.

# lsof
lsof: can't determine user device random seed.

Anyone seen this problem and have a fix?

-- 
Jeffrey Lehman
http://digitalguy.net
GPG Key fingerprint = 3087 CED0 57F7 3BD3 14E7  969B EE14 BADA D619 8CF5


pgps3qb4jc986.pgp
Description: PGP signature


Re: changing the postion of a partion in fdisk

2008-01-08 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jerry McAllister wrote:
 On Tue, Jan 08, 2008 at 05:08:15PM -0500, Aryeh M. Friedman wrote:

 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

 Jerry McAllister wrote:
 On Mon, Jan 07, 2008 at 10:33:04PM -0500, Aryeh M. Friedman
 wrote:

 I have my FreeBSD partition as partition 1 and my ntfs as
 partition 2 but Vista insists that there is no suitable
 partion to install to (even though the ntfs partition is big
 enough)... after some research I found that vista absolutely
 insists that the ntfs partition be partition 1... how do I
 swap them and/or delete the ntfs one and renumber it so
 freebsd is in partion slot 2 (with nothing in 1 and then I
 can use fdisk to make a new slot 1)
 Well, you can use fdisk from the fixit shell to make your slice
 2 (note the primary divisions are called 'slices' in FreeBSD)
 in to a FreeBSD type and then create your FreeBSD partitions in
 it and build FreeBSD filesystems there.
 I think I should of been a little more specific the physical
 layout is completely correct (i.e. the sizes, start/end tracks,
 etc.) the only problem is the logical numbering of the
 partitions/slices in the mbr idea of the table... namely I just
 need to relabel them not modify them in any way.

 I don't think you can make slice 2 become slice 1.  The system
 numbers them in order of appearance.  This comes from BIOS standard
 usage.
2 starts before 1 in my case?!??!

% fdisk
*** Working on device /dev/ad8 ***
parameters extracted from in-core disklabel are:
cylinders=969021 heads=16 sectors/track=63 (1008 blks/cyl)

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

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 62910540, size 913857525 (446219 Meg), flag 80 (active)
beg: cyl 1023/ head 255/ sector 63;
end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
sysid 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX)
start 63, size 62910477 (30718 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1023/ head 254/ sector 63
The data for partition 3 is:
UNUSED
The data for partition 4 is:
UNUSED

2

- --
Aryeh M. Friedman
FloSoft Systems, Java Developer Tools
http://www.flosoft-systems.com
Developer, not business, friendly.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHhDkOjRvRjGmHRgQRAr09AJ0TCHS+emo0rp0/UBNtHKE8CxxlBQCfTz3g
AFWyXr9pArXzfBsGvfRFgUQ=
=HZJJ
-END PGP SIGNATURE-

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


Re: Sendmail: exposed root, why?

2008-01-08 Thread Giorgos Keramidas
On 2008-01-08 13:26, Philip M. Gollucci [EMAIL PROTECTED] wrote:
 Jerahmy Pocott wrote:
 Hello,
  From the sendmail documentation:
 There are always users that need to be exposed -- that is, their
 internal site name should be displayed instead of the masquerade
 name. Root is an example (which has been exposed by default prior
 to 8.10).

The `root' user is no longer exposed, so the really *imporant* question
is ``why are you still running Sendmail 8.10?''

 There is no directive, but you can edit the resultant .cf file
 and remove the line
 C{E}root
 or root from that line if more than one user.

The expose directives were part of the default OSTYPE and DOMAIN macros:

OSTYPE(freebsd6)
DOMAIN(generic)

 Be warned, you _will_ break /etc/crontab and periodic scripts mail
 delivery.

That's a possibility, yes :)

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


yelp 2.20.0 consistently crashing in FreeBSD 6.2, amd64

2008-01-08 Thread Mark Tague

   System: FreeBSD 6.2 amd64, release #13
   Xorg X Server 1.4.0 Release date Sept. 5, 2007
   X Protocol ver. 11, Rev 0
   gnucash-2.2.0_1
   gnucash-docs-2.2.0_2
   yelp-2.20.0
   FreeBSD GNOME Project: GNOME 2.20 Upgrading FAQ / GNOME 2.20 problems
   and their solutions
   Some users have reported problems with Yelp displaying an error trying
   to view help files on FreeBSD 6.X. The problem does not appear to
   exist on 7.X or 8.X, nor is it reliably reproducible. If you are
   encountering this problem, please notify
   [EMAIL PROTECTED]
   Generally, when I first updated to the above gnucash version the help
   function (which apparently calls yelp) worked ok. However, after
   updating several of the ports the help function stopped showing any
   help and just creating a yelp.crash file.  The only error messages was
   from kdm - and just said that yelp crashed. This happens each time the
   help button is selected. I have tried recompiling gnucash as well as
   all the installed ports and yelp continues to crash, consistently and
   every time.
   Mark Tague

References

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


Re: minimum valid block size on DVD-RAM

2008-01-08 Thread Kimi
On 07/01/2008, Martin Laabs [EMAIL PROTECTED] wrote:
 Hi,

 [...]

  it
  works for me perfectly for over a year on a firewall  file server,
  only thing I changed was the default block/frag size for UFS2 to
  8096/1024. Only time I hear them spin-up is when periodic runs
  daily/weekly/monthly.

 Are you sure you have the frag size set to 1024? This should not
 work if the drive only supports blocks with a multiple of 2k in size.


it seems to work fine. have you tried different DVD-RAM Drive  Media?
My DVD-RAM is by pioneer something 109 with panasonic branded media

 How did you create the UFS image for the DVD-RAM? With an image
 via the md device? This seems actually the only way to gener-
 ate an ufs filesystem on a dvd-ram for me now.

I just treated each disc like a hard disc drive:

$ sudo fdisk -BI /dev/acd0

$ sudo bsdlabel -Bw /dev/acd0s1

$ sudo glabel label sys_root /dev/acd0s1a
$ sudo glabel label sys_vardb /dev/acd0s1d
$ sudo glabel label sys_ulocal /dev/acd0s1e

$ sudo newfs -O2 -f 1024 -b 8192 /dev/label/sys_root
$ sudo newfs -O2 -f 1024 -b 8192 /dev/label/sys_vardb
$ sudo newfs -O2 -f 1024 -b 8192 /dev/label/sys_ulocal

$ sudo tunefs -a enable /dev/label/sys_root
$ sudo tunefs -a enable /dev/label/sys_vardb
$ sudo tunefs -a enable /dev/label/sys_ulocal

$ sudo mount -t ufs /dev/label/sys_root /mnt
$ sudo mkdir -p /mnt/var/db
$ sudo mount -t ufs /dev/label/sys_vardb /mnt/var/db
$ sudo mkdir -p /mnt/usr/local
$ sudo mount -t ufs /dev/label/sys_ulocal /mnt/usr/local

$ cd /usr/src
$ su nobody
$ env -i make installworld installkernel DESTDIR=/mnt
$ exit

$ su

# echo / /usr/label/sys_root ufs ro 1 1  /mnt/etc/fstab
# echo /var/db /usr/label/sys_vardb ufs rw 1 1  /mnt/etc/fstab
# echo /usr/local /usr/label/sys_ulocal ufs rw 1 1  /mnt/etc/fstab

# echo dumpdev=NO  /mnt/etc/rc.conf.local
# echo 'entropy_file=/var/db/entropy.db'  /mnt/etc/rc.conf.local
# echo tmpmfs=YES  /mnt/etc/rc.conf.local
# echo varmfs=YES  /mnt/etc/rc.conf.local
# echo background_fsck=NO  /mnt/etc/rc.conf.local
# echo update_motd=NO  /mnt/etc/rc.conf.local
# echo clear_tmp_enable=YES  /mnt/etc/rc.conf.local
# echo ifconfig_em0=DHCP  /mnt/etc/rc.conf.local
# echo ifconfig_em1=DHCP  /mnt/etc/rc.conf.local
# sort -o /mnt/etc/rc.conf.local /mnt/etc/rc.conf.local

# exit
$ shutdown -r now  exit

boot the disc  make other changes as needed, install ports.

I am not at home which is where me notes are, so take it with a pinch
of salt as it's been months since I did this (on CURRENT, now
RELNENG_7).


 Best regards,
 Martin Laabs



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


Re: lsof: can't determine device random seed

2008-01-08 Thread Dan Nelson
In the last episode (Jan 08), Jeffrey Lehman said:
 I'm running 7.0-RC1 amd64 and having an issue with lsof.
 
 # lsof
 lsof: can't determine user device random seed.
 
 Anyone seen this problem and have a fix?

Do you also have a zfs root?  That's what triggers it for me.  There's
no mention of a device random seed anywhere in the kernel source, so
I just patched lsof to always return OK and a seed of zero from
dev2udev, and everything seems to work okay.  Try putting the attached
patch in the files subdirectory of the lsof port and rebuild.

-- 
Dan Nelson
[EMAIL PROTECTED]

--- dialects/freebsd/dmnt.c 2007-11-17 23:02:29.748574401 -0600
+++ dialects/freebsd/dmnt.c 2007-11-17 23:02:29.750579975 -0600
@@ -180,6 +180,8 @@ dev2udev_no_space:
}
break;
}
+
+   ss = 1;
 /*
  * Free string copies, as required.
  */
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: lsof: can't determine device random seed

2008-01-08 Thread Jeffrey Lehman
On Tue, Jan 08, 2008 at 11:25:44PM -0600, Dan Nelson wrote:
 In the last episode (Jan 08), Jeffrey Lehman said:
  I'm running 7.0-RC1 amd64 and having an issue with lsof.
  
  # lsof
  lsof: can't determine user device random seed.
  
  Anyone seen this problem and have a fix?
 
 Do you also have a zfs root?  That's what triggers it for me.  There's
 no mention of a device random seed anywhere in the kernel source, so
 I just patched lsof to always return OK and a seed of zero from
 dev2udev, and everything seems to work okay.  Try putting the attached
 patch in the files subdirectory of the lsof port and rebuild.
 
 -- 
   Dan Nelson
   [EMAIL PROTECTED]

 
 --- dialects/freebsd/dmnt.c   2007-11-17 23:02:29.748574401 -0600
 +++ dialects/freebsd/dmnt.c   2007-11-17 23:02:29.750579975 -0600
 @@ -180,6 +180,8 @@ dev2udev_no_space:
   }
   break;
   }
 +
 + ss = 1;
  /*
   * Free string copies, as required.
   */

Yep, I'm running a zfs root.  The patch worked perfectly. Thanks much!

-- 
Jeffrey Lehman
http://digitalguy.net
GPG Key fingerprint = 3087 CED0 57F7 3BD3 14E7  969B EE14 BADA D619 8CF5


pgp0w4HWJZcKy.pgp
Description: PGP signature


Success! ( was - can't mount USB key as user )

2008-01-08 Thread Andy Elvey

[EMAIL PROTECTED] wrote:

hmmm, freebsd.org seems to be broken for me

- man devfs.rules

- create /etc/devfs.rules: ( substitute wheel for the group you want )

[localrules=10]
add path 'da*s*' mode 0660 group wheel

- append to /etc/rc.conf:

devfs_system_ruleset=localrules

- make sure the dir you are mounting on is owned by the user who
issues the mount command.

- make sure vfs.usermount=1

- reboot after changing devfs.rules  rc.conf

worked for me, let us know if it worked for you.

regards,

usleep
  
 Hi again - 
 Success!   I can now mount USB devices as a user - thanks very much 
for your help usleep! 

One of the things that helped (as it usually does ;)   )  was having a 
careful re-read of the docs for USB devices.  When I did that, I found 
that for some silly reason, instead of having
'da*'   in my /etc/devfs.rules file, I had 'da*s*'  .( Argh. 
applies face firmly to keyboard. ).   Anyway, that now works perfectly.


I have more good news.  The above stuff was for my USB key.  I also have 
an external USB hard-drive (with the Linux ext2 filesystem on it).  When 
I tried that, at first it didn't work (not surprisingly).  A quick 
search on the net gave me a page that mentioned kldload'  (which I've 
never heard of - anyway, as I thought, it loads modules into the kernel). 

The example given was for reiserfs, but I tried (as su)  kldload 
ext2fs  and then (as normal user)  mount -t ext2fs /dev/da0s1  
/mnt/andy  and it worked!  

Ahh... now I can get into the thing I've really been looking forward to 
-  pf  :-)  .   That should probably have me being nervous, but it 
doesn't.   I've already done a lot of reading-up on it -
it sounds great, and you've got to have a heap of respect for the guy 
who wrote it.I've already found out about pftop and so on, so that 
should come in handy

Bye for now -
- Andy



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


Re: OSX NFS-Server FreeBSD NFS Client

2008-01-08 Thread Konrad Heuer


On Tue, 8 Jan 2008, Chuck Swiger wrote:

You really don't want to export a filesystem which itself is being mounted 
remotely.  If you want to provide SMB filesharing for these files, run 
Samba on the OS X machine(s) directly.


Knowing all the drawbacks including reduced bandwith, there are some 
important organizational reasons, thus I want to do so. Moreover, Samba ist 
just one application on the NFS clients, although an important one.


While I certainly wish you the best of luck, previous experience suggests 
that the drawbacks to this approach include not functioning properly.


NFS is a stateless protocol, except insofar as rpc.lockd in theory provides 
lockf/flock style locking over the network-- yet Samba/CIFS wants to allow 
extensive use of client side opportunistic locking, which means that Samba 
really, really wants to run off of a local filesystem.


Yes, I agree, locking is a serious problem. The whole thing runs with 
Linux NFS servers for a couple of month now (though I want to migrate to 
OSX NFS servers), and I introduced fake oplocks = yes in smb.conf some 
month ago (which obviously improved stability) and did also some 
experimenting with the -L-option of mount_nfs.


Thank you very much for reply!

Best regards

Konrad Heuer
GWDG, Am Fassberg, 37077 Goettingen, Germany, [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: Sendmail: exposed root, why?

2008-01-08 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Giorgos Keramidas wrote:
 On 2008-01-08 13:26, Philip M. Gollucci [EMAIL PROTECTED] wrote:
 Jerahmy Pocott wrote:

  From the sendmail documentation:
 There are always users that need to be exposed -- that is, their
 internal site name should be displayed instead of the masquerade
 name. Root is an example (which has been exposed by default prior
 to 8.10).

 The `root' user is no longer exposed, so the really *imporant* question
 is ``why are you still running Sendmail 8.10?''

He isn't.  That's a direct quote from /usr/share/sendmail/cf/README
as supplied with RELENG_7 -- ie. sendmail 8.14.2. It says that root
being a member of Class E has been the default ever since at least
sendmail 8.10.  That is still the case:

/etc/mail:% grep 'C{E}' freebsd.cf
C{E}root
/etc/mail:% uname -r
7.0-PRERELEASE

and in fact, the OP's point was that the sendmail.mc macros which
exist for manipulating Class E don't let you *remove* the entry for
root.  It seems the official way to do that is to define your own
DOMAIN() configuration -- starting by copying and editing
/usr/share/sendmail/cf/domain/generic.m4 looks like the way to go.

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
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHhHRq8Mjk52CukIwRCIOfAKCF4OS/riIfhmCW/5LC6rWhvrxjAwCeMooh
g8x4dszd6kVRHw7Aculezck=
=Zmha
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Fortune

2008-01-08 Thread Willem Hendriks
On Tue, Jan 08, 2008 at 04:27:10PM -0500, Jerry McAllister wrote:
 On Tue, Jan 08, 2008 at 09:44:40PM +0100, Willem Hendriks wrote:
 
   Is there a port for the game fortune? I recently installed 6.2 AMD64
   and I can't find it when I do a 'pkg_add -rv fortune' or 'pkg_add -rv
   fortune-mod'
   
   The ones I find I am not interested in; such as:
   zh-fortunetw-1.3
   wmfortune-0.241_2
   fortune-mod-bible-1.0_1
   fortune-mod-bofh-2.0_3
   fortune-mod-culmea-culmilor-2005.12.15
   fortune-mod-ferengi_rules_of_acquisition-2006.01.26
   fortune-mod-futurama-0.2_3
   fortune-mod-the-godfather-2.0
   fortuneit-1.99
   pl-fortunepl-0.0.20051022
   ru-fortune-bashorgru-20070808
   ru-fortuneru-0.9
   fortunelock-0.1.2
   e17-splash-fortune-1.1_1
   
   Am I missing something?
   
   Thanks for your help.
  
  You could get the latest sources with svcup, and do a make, make install in
 ^
  /usr/src/games/fortune
 
 Is that a new one on me or do you mean 'cvsup'  -- which has been
 replaced with  'csup'?
 
 That would be the recommended way to update your ports tree.
 
 You want to use the directive:
   ports-all tag=.
 in your supfile to pull in the latest ports tree - which is the only one
 since it is not branched like the main OS.
 
 Actually, you should to a full update of the OS and ports tree
 at the same time and then build and install all the system before
 installing the ports.It doesn't actually take very long any
 more on recently built 1,000+ MHz hardware which is so much faster 
 than in the good old days of 80 MHz CPUs.
 
 jerry  


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


need package name for setfacl command

2008-01-08 Thread Saravana Subramanian
Hi,

 

I am saravana, I am using FreeBSD 4.9 Release, in that setfacl command
was not found. So I need found source package for that command to
compile and use it. Can you send the name  link to download the
package.

 

Thanks and regards

 

Saravanakkumar.S.R

RMS Administrator

FIRST Advantage Offshore Services Pvt Ltd 

Bengalooru 

India

 

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