Re: RELENG_8_1 Release build fails

2010-09-02 Thread egoitz
 Hi all,

 I'm trying to make a release from RELENG_8_1 branch because of mbuf bug
 and so... and wanted to make my own freebsd cds (updated)... I have
 downloaded the

Hi!,

Perhaps this is not the proper mailing list for asking this kind of
questions? perhaps should I write to freebsd-hackers or any other one?.

Thanks a lot for you're help.

Bye!!

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


What's the best way to upgrade 8.0 ?

2010-09-02 Thread zaxis

uname -a
FreeBSD mybsd.zsoft.com 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Wed Jul 14
15:35:26 CST 2010
r...@mybsd.zsoft.com:/media/G/usr/obj/media/G/usr/src/sys/MYKERNEL  i386

Now i want to upgrade it to 8.1 realease.

thanks!

-
e^(π⋅i) + 1 = 0
-- 
View this message in context: 
http://old.nabble.com/What%27s-the-best-way-to-upgrade-8.0---tp29601273p29601273.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

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


Multiple mount_smbfs commands fail in bash script

2010-09-02 Thread Bernard Scharp
Hi all,

I'm having some problems with a bash script.

It's a backup script that periodically checks if a list of systems is
online, and if so, uses samba to mount a specified list of shares,
rsyncs them to a local directory and unmounts again.

This used to run fine till a few months ago (I don't know what the
trigger was that caused them to first fail).

Now, when the script is run, it gives the following error when mounting
the shares:

mount_smbfs: can't get handle to requester (no /dev/nsmb* device)

Which is strange, as there are (by last count) 1170 /dev/nsmb* devices
in /dev/ (is that normal?)

Searching the internet, FreeBSD and Samba mailing lists gave me no
recent info, and the old info wasn't helpful.

I've narrowed it down to the point where I think it's caused by one
process trying to open two (or more) shares at the same time. (a simple
script mounting two shares gives the same error).

I can mount the shares from the command line without problems, it's only
in the bash script it gives me problems.

~/.nsmbrc and /etc/nsmb.conf are correct, smbd, nmbd and winbindd are
running. The system is FreeBSD 8.0 Stable.

Anyone got any suggestions?

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


Thank you all for FreeBSD

2010-09-02 Thread Anonymous
Thanks to all people who program, develop and h/-\ck for
FreeBSD - it is a great free system and best choice ...

Thanks!
 - anonymous

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


Re: RELENG_8_1 Release build fails

2010-09-02 Thread egoitz
 Hi all,

 I'm trying to make a release from RELENG_8_1 branch because of mbuf bug
 and so... and wanted to make my own freebsd cds (updated)... I have
 downloaded the

 Hi!,

 Perhaps this is not the proper mailing list for asking this kind of
 questions? perhaps should I write to freebsd-hackers or any other one?.


Hey mates,

Sorry for the noise I had forgotten the make buildworld before the make
release... I though buildworld was integrated inside make release...

as said... very sorry for the noise.

Bye!!

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


Re: What's the best way to upgrade 8.0 ?

2010-09-02 Thread Daniel Bye
On Thu, Sep 02, 2010 at 12:13:18AM -0700, zaxis wrote:
 
 uname -a
 FreeBSD mybsd.zsoft.com 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Wed Jul 14
 15:35:26 CST 2010
 r...@mybsd.zsoft.com:/media/G/usr/obj/media/G/usr/src/sys/MYKERNEL  i386
 
 Now i want to upgrade it to 8.1 realease.

Since you appear to be running a custom kernel, building from source is the
way to go. Chapter 24 of the handbook will be helpful.

Dan 

-- 
Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgpRkfB7WrIKt.pgp
Description: PGP signature


Re: Multiple mount_smbfs commands fail in bash script

2010-09-02 Thread Jerry
On Thu, 02 Sep 2010 10:24:05 +0200
Bernard Scharp freebsd-questi...@itsacon.net articulated:

 Hi all,
 
 I'm having some problems with a bash script.
 
 It's a backup script that periodically checks if a list of systems is
 online, and if so, uses samba to mount a specified list of shares,
 rsyncs them to a local directory and unmounts again.
 
 This used to run fine till a few months ago (I don't know what the
 trigger was that caused them to first fail).
 
 Now, when the script is run, it gives the following error when
 mounting the shares:
 
 mount_smbfs: can't get handle to requester (no /dev/nsmb* device)
 
 Which is strange, as there are (by last count) 1170 /dev/nsmb* devices
 in /dev/ (is that normal?)
 
 Searching the internet, FreeBSD and Samba mailing lists gave me no
 recent info, and the old info wasn't helpful.
 
 I've narrowed it down to the point where I think it's caused by one
 process trying to open two (or more) shares at the same time. (a
 simple script mounting two shares gives the same error).
 
 I can mount the shares from the command line without problems, it's
 only in the bash script it gives me problems.
 
 ~/.nsmbrc and /etc/nsmb.conf are correct, smbd, nmbd and winbindd are
 running. The system is FreeBSD 8.0 Stable.
 
 Anyone got any suggestions?

Could you post the script? Anything else would be pure guess work. You
also might consider posting this on the BASH mail forum:

bug-b...@gnu.org

although you might have to subscribe first:

http://lists.gnu.org/mailman/listinfo/bug-bash

-- 
Jerry ✌
freebsd.u...@seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__

Vital papers will demonstrate their vitality by spontaneously moving
from where you left them to where you can't find them.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Multiple mount_smbfs commands fail in bash script

2010-09-02 Thread Bernard Scharp

 
 Could you post the script? Anything else would be pure guess work. You

Well, I can recreate it with something as simple as:

#!/usr/local/bin/bash
mount_smbfs //u...@remotehost/share1/ /tmp/mnt/
mount_smbfs //u...@remotehost/share2/ /tmp/mnt2/


 also might consider posting this on the BASH mail forum:
 
   bug-b...@gnu.org
 
 although you might have to subscribe first:
 
   http://lists.gnu.org/mailman/listinfo/bug-bash
 

I'l look into that, (though I doubt this is a bash issue).

Thanks!
Bernard

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


Re: installing FreeBSD in VMWare-player

2010-09-02 Thread Matthias Apitz

I wrote a small howTo for such a migration for others in the same
situation. Comments/Impromvements are welcome;

Thanks

matthias


$Id: moveFreeBSDintoVM.txt,v 1.2 2010/09/02 10:55:29 guru Exp $



   How to move a complete FreeBSD installation into a VM
Matthias Apitz g...@unixarea.de


1. Preparations in the running FreeBSD system

Save the current FreeBSD partition layout to paper, i.e.  print:

- /etc/fstab
- output of 'df -kh'
- output of 'bsdlabel ad8s4' (or whatever your disk is)

so you later know the sizes you will need in the new VM.

Reboot the system to single user mode, run fsck(8) in all
file systems and mount them read only, while staying single user.

Do dump(8) of all the partitions to some external media you
later can use in the VM a) physically and b) could be mounted
in FreeBSD. I used an USB disk with an UFS file system on it as
/dev/da0s1a:

# mount -t ufs /dev/da0s1a /mnt

# dump -0au -f /mnt/usr.dump   /usr
# dump -0au -f /mnt/var.dump   /var
# dump -0au -f /mnt/root.dump  /

Finally shutdown the system.



2. Prepare the VM 

Attach resources big enough to reflect your real system to
the VM. I used:

RAM: 2 GByte
IDE: 164 GByte (as one file in the host)

Make sure that the VM's boot order is: 1st CD/DVD, 2nd disk, so you
later can easy decide from where to boot by just attaching or not
the CD/DVD to the VM, even if the disk has already a MBR. Copy an
ISO image of the so called FreeBSD livefs to the host and attach
this as CD/DVD to the VM




3. Partitioning of the disk

This part is a bit tricky because the FreeBSD livefs does not
really guide through it. Boot from FreeBSD livefs and

- define country and keyboard
- run standard installation from the menu
- fdisk(8) the disk, use entire disk for FreeBSD
- let it install FreeBSD's boot manager
- partition the slice to the layout of your old system, i.e. to
  the following result:

  /dev/ad0s1a1 GByte /
  /dev/ad0s1b4 GByte swap
  /dev/ad0s1d2 GByte /var
  /dev/ad0s1e6 GByte /tmp
  /dev/ad0s1f(rest 146 GByte)/usr

- commit the last chance before scribbling on disk

The installer will now do the real fdisk(8) and BSD-label of
the partitions. It will newfs(8) the above file system and try
to install FreeBSD in it, which is not on the CD/DVD and which
is not what we want. Answer all questions as NO to get finally
back to the main menu of sysinstall(8) tool.

Reboot again into the FreeBSD livefs and go to the fixit repair
mode menu, start a shell. The above mentioned file systems are
created fine and even the boot manager is fine in place (ofc it
would not find anything to boot). The file systems are already
polluted which things we don't want (because we later will restore
from dumps). Run newfs(8) in all file system devices again:

# newfs -m 0 -o space /dev/ad0s1a 
# newfs -m 0 -o space /dev/ad0s1b 
# newfs -m 0 -o space /dev/ad0s1d 
# newfs -m 0 -o space /dev/ad0s1e 
# newfs -m 0 -o space /dev/ad0s1f 

We now have clean file systems (and boot manager installed).


4. Restore the dumps

First restore the old root file system using the booted FreeBSD livefs,
mount the new root as /mnt and the USB disk containing the dumps as /usb:

# mount /dev/ad0s1a /mnt
# mkdir /usb
# mount -t usf -o ro /dev/da0s1a /usb
# cd /mnt
# restore rf /usb/root.dump
# cd /
# umount /mnt

One could as well restore the other dumps the same way, but it's
better to see if the new root file system already boot fine, because
restoring the /usr dump will take many hours (in my case 9 hours for
120 GByte), 

Reset the VM (no need to worry, nothing is mounted), detach the
CD/DVD and reboot the old/new root file system into single user
mode. Remount the /root writable and restore the /usr dump:

# mount -o rw /
# mount -t usf -o ro /dev/da0s1a /mnt
# mount /dev/ad0s1f /usr
# cd /usr
# restore rf /mnt/usr.dump

(after 9 hours)

# mount /dev/ad0s1d /var
# cd /var
# restore rf /mnt/var.dump

Check and edit the /etc/fstab to reflect the new device names
(in my original system the disk was /dev/ad0s8 and not /dev/ad0s1).

Make /tmp writable for all users

# mount /dev/ad0s1e /tmp
# chmod 1777 /tmp

The system is now installed and should be boot up fine to normal
multi user mode, just reboot normally.


5. Final changes

Edit some system files to reflect the new VM environment:

/etc/rc.conf:

   - network interface is now em0, and not wlan0

/boot/loader.conf

   - sound (still not working)

/etc/X11/xorg.conf

   - recreate the X11 config file the normal way

install the vmware-tools for FreeBSD (still pending)




6. Some notes about performance

The host is Dell Precision M4400 with Dual Core CPU of 3.09 GHz and
runs Windows 7 Professional.

It took 9h to restore a dump of /usr which was produced in ~2h.

The compared write 

Re: Multiple mount_smbfs commands fail in bash script

2010-09-02 Thread Polytropon
On Thu, 02 Sep 2010 14:02:35 +0200, Bernard Scharp 
freebsd-questi...@itsacon.net wrote:
 
  
  Could you post the script? Anything else would be pure guess work. You
 
 Well, I can recreate it with something as simple as:
 
 #!/usr/local/bin/bash
 mount_smbfs //u...@remotehost/share1/ /tmp/mnt/
 mount_smbfs //u...@remotehost/share2/ /tmp/mnt2/

Excuse me, it may just be a stupid question... but... why do
you use bash for this purpose? Do you require any special
bash feature that cannot be done using the standard shell,
sh? I often see the urge to use bash for scripting as a
typical Linuxism, which is usually non-portable (if that
was your goal). FreeBSD's standard scripting shell is sh,
so why not use it until you reach the ends of its functionality?



Just a guess, regarding your initial question, as I don't have
experience with Windows related things: Did you have the
chance to monitor correct operations of your script in the
past? Did the mound and umount (!) calls work properly? Have
you checked your commands running them in the standard dialog
shell (csh)? I assume you're running them as root (or at least
with sufficient permissions), so I don't think the problem
is there, as the error message

mount_smbfs: can't get handle to requester (no /dev/nsmb* device)

doesn't look like refering to that problem.

The error message originates from /usr/src/contrib/smbfs/lib/smb/ctx.c;
having a look around, and remembering that you said

 [...] there are (by last count) 1170 /dev/nsmb* devices
 in /dev/ (is that normal?)

I found smb_ctx_gethandle() near line 600 (version 7 OS here):

/*
 * well, no clone capabilities available - we have to scan
 * all devices in order to get free one
 */
 for (i = 0; i  1024; i++) {
 snprintf(buf, sizeof(buf), /dev/%s%d, NSMB_NAME, i);
 fd = open(buf, O_RDWR);
 if (fd = 0) {
ctx-ct_fd = fd;
return 0;
 }
 }

The limit seems to be 1024, if I read that correctly - allthough
I'm considered a C hacker, I'm no OS-level C hacker. :-)

Afterwards, smb_ctx_lookup() fails and gives the error message
mentioned earlier.

Remove the /dev/nsmb* devices and try again. Make sure no other
SMB stuff is currently mounted, just to be sure, as I don't have
any idea what could fail.




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


Re: error - ad2: FAILURE

2010-09-02 Thread Lowell Gilbert
Mike Jeays mike.je...@rogers.com writes:

 On September 1, 2010 10:29:42 pm Xihong Yin wrote:
 Hi,
 
 I received the following error when I try to access files in some of the
 directories in /usr and when the computer boots. ad2s1f is mounted on
 /usr.
 
 ad2: FAILURE - READ_DMA status=51READY,DSC,ERROR error=40UNCORRECTABLE
 LBA=37370159 g_vfs_done():ad2s1f[READ(offset=15415558144,
 length=16384)]error = 5
 
 Is this a sign of hard drive failure? Can I fix the error or do I have to
 replace the hard drive?

 I would think it is a hardware error, and the disk has run out of replacement 
 sectors. If possible, it should be replaced, and any valuable data copied to 
 somewhere safe, as soon as possible.

Not necessarily.  This is a read error, so replacement sectors wouldn't
help anyway.  The problematic files might get fixed by the disk if they
were rewritten.  A SMART report (e.g., from sysutils/smartmontools)
might give more information about the condition of the drive.

None of which is to say that it isn't worrying, or that backing up
valuable data isn't called for (even more so than usual).  Make sure you
have good backups before you do anything else.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Multiple mount_smbfs commands fail in bash script

2010-09-02 Thread Bernard Scharp
On 02/09/2010 15:29, Polytropon wrote:
 On Thu, 02 Sep 2010 14:02:35 +0200, Bernard Scharp 
 freebsd-questi...@itsacon.net wrote:


 Could you post the script? Anything else would be pure guess work. You

 Well, I can recreate it with something as simple as:

 #!/usr/local/bin/bash
 mount_smbfs //u...@remotehost/share1/ /tmp/mnt/
 mount_smbfs //u...@remotehost/share2/ /tmp/mnt2/
 
 Excuse me, it may just be a stupid question... but... why do
 you use bash for this purpose? Do you require any special
 bash feature that cannot be done using the standard shell,
 sh? I often see the urge to use bash for scripting as a
 typical Linuxism, which is usually non-portable (if that
 was your goal). FreeBSD's standard scripting shell is sh,
 so why not use it until you reach the ends of its functionality?

The script above is a (heavily) reduced version, used to isolate the
problem. The real script is much longer, and uses a bunch of logic to
walk through a list of different systems (each with their own lists of
shares, loaded from external files), taking snapshots of the previous
backup, logging which systems were backed up, rolling back operations if
a backup fails, etc.

 Just a guess, regarding your initial question, as I don't have
 experience with Windows related things: Did you have the
 chance to monitor correct operations of your script in the
 past? Did the mound and umount (!) calls work properly? Have
 you checked your commands running them in the standard dialog
 shell (csh)? I assume you're running them as root (or at least
 with sufficient permissions), so I don't think the problem
 is there, as the error message
 
 mount_smbfs: can't get handle to requester (no /dev/nsmb* device)
 
 doesn't look like refering to that problem.

I am running it as root, and I just tried running the (test)script
(without the bash reference) under a csh shell, and got the same error,
so it's not a bash problem.

As for monitoring the operations of the script, it has worked fine
before (for several years), so I'm pretty sure the code is correct.

 
 The error message originates from /usr/src/contrib/smbfs/lib/smb/ctx.c;
 having a look around, and remembering that you said
 
 [...] there are (by last count) 1170 /dev/nsmb* devices
 in /dev/ (is that normal?)
 
 I found smb_ctx_gethandle() near line 600 (version 7 OS here):
 
 /*
  * well, no clone capabilities available - we have to scan
  * all devices in order to get free one
  */
  for (i = 0; i  1024; i++) {
  snprintf(buf, sizeof(buf), /dev/%s%d, NSMB_NAME, i);
  fd = open(buf, O_RDWR);
  if (fd = 0) {
 ctx-ct_fd = fd;
 return 0;
  }
  }
 
 The limit seems to be 1024, if I read that correctly - allthough
 I'm considered a C hacker, I'm no OS-level C hacker. :-)

Neither am I. Hadn't even thought of grepping in /usr/src for the error
message :-)

 
 Afterwards, smb_ctx_lookup() fails and gives the error message
 mentioned earlier.
 
 Remove the /dev/nsmb* devices and try again. Make sure no other
 SMB stuff is currently mounted, just to be sure, as I don't have
 any idea what could fail.
 

Can I just `rm /dev/nsmbX` them? (messing in /dev/ is a level of FreeBSD
I'm not familiar with)

Thanks for all your help!

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


Re: Should a squid user have a shell?

2010-09-02 Thread Ed Flecko
Excellent! Thanks for the tips!

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


Re: killall -9 program-name does not work

2010-09-02 Thread Frank Shute
On Wed, Sep 01, 2010 at 08:32:56PM -0500, Antonio Olivares wrote:

 On 8/30/10, RW rwmailli...@googlemail.com wrote:
  On Mon, 30 Aug 2010 03:14:58 +
  Antonio Olivares olivares14...@gmail.com wrote:
 
  Dear fellow FreeBSD users,
 
  I have a cron script that plays music in the morning when I arrive at
  work.
 
  in ~/.xalarm I have two lines, one that calls xterm and one that calls
  mplayer and plays a series of music files in a playlist
 
  crontab -l
  has the following
  # min  hour day-of-month month day-of-week command
  # 0-59 0-23 1-31 1-12  0-6 0=sun 1=mon
  00 07 * * 1-5 ~/.xalarm /dev/null 21
  30 07 * * 1-5 killall -9 /usr/local/bin/mplayer /dev/null 21
 
  You don't need the path to mplayer.
 
 It makes no difference.  This does not stop mplayer from playing :(
 
 Thanks though for trying to help.
 
 Regards,
 
 Antonio

Use the command:

killall -d mplayer

 see what it's saying. ie. don't direct stout  sterr to /dev/null


Regards,

-- 

 Frank

 Contact info: http://www.shute.org.uk/misc/contact.html


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


Re: Multiple mount_smbfs commands fail in bash script

2010-09-02 Thread Polytropon
On Thu, 02 Sep 2010 15:52:25 +0200, Bernard Scharp 
freebsd-questi...@itsacon.net wrote:
 Neither am I. Hadn't even thought of grepping in /usr/src for the error
 message :-)

It's often a good starting point to see where problems might
be caused from.



 Can I just `rm /dev/nsmbX` them? (messing in /dev/ is a level of FreeBSD
 I'm not familiar with)

Yes, I would guess so. The content of /dev/ is dynamically generated
since FreeBSD 5, if I remember correctly. As the nsmb nodes don't
seem to be in use any longer, it would be no problem to remove
them. The mount_smbfs program will generate them if needed.

Just as an addition: After your script successfully performed the
operations needing the mounted SMB shares, it could remove the
corresponding device files.

Still, this looks like a bug to me, a can't image anybody needs more
than 1024 of them kind of bug. I would have imagined that IF a
program needs files in a temporary way, it removes them after use.

Just to be sure, unmount all SMB related things, as I can't predict
what would happen if a nsmb device disappears when in use.




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


What's up with cvsup.freebsd.org?

2010-09-02 Thread Dennis Glatting


This has been happening for several days. Is cvsup dead vs SVN? Cvsup is 
still listed in the handbook.



CVSup update begins at 2010-09-02 04:40:00
Updating from cvsup.freebsd.org
Connected to cvsup.freebsd.org
Premature EOF from server
CVSup update ends at 2010-09-02 04:40:00


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


Which specific version will be installed via pkg_add or via the port?

2010-09-02 Thread Ed Flecko
Hi folks,
When you're installing software via the pkg_add command or building
from source, how do you what specific version you'll be installing
BEFORE you actually install it?

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


Re: What's up with cvsup.freebsd.org?

2010-09-02 Thread Lowell Gilbert
Dennis Glatting free...@penx.com writes:

 This has been happening for several days. Is cvsup dead vs SVN? Cvsup
 is still listed in the handbook.

cvsup is still fine.  Please (as recommended in the handbook) use a
mirror closer to you.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Which specific version will be installed via pkg_add or via the port?

2010-09-02 Thread Lowell Gilbert
Ed Flecko edfle...@gmail.com writes:

 When you're installing software via the pkg_add command or building
 from source, how do you what specific version you'll be installing
 BEFORE you actually install it?

By reading the port's Makefile, in my case.
Other common options are 
 make packagename in the port's directory
 http://www.freebsd.org/ports
 http://www.freshports.org/

There are probably more ways in ports(7), as well.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Which specific version will be installed via pkg_add or via the port?

2010-09-02 Thread Glen Barber
On 9/2/10 10:43 AM, Lowell Gilbert wrote:
 Ed Flecko edfle...@gmail.com writes:
 
 When you're installing software via the pkg_add command or building
 from source, how do you what specific version you'll be installing
 BEFORE you actually install it?
 
 By reading the port's Makefile, in my case.
 Other common options are 
  make packagename in the port's directory
  http://www.freebsd.org/ports
  http://www.freshports.org/
 

Adding onto Lowell's response, you can see which version of the port was
packaged at release time by logging directly into the FTP server:

ftp://ftp.FreeBSD.org/pub/FreeBSD

and take a look at what is in the package directory.  For example:

ls ports/${ARCH}/packages-X.Y-release/${CATEGORY}/${PORT}

replacing ${ARCH}, ${CATEGORY}, and ${PORT} as appropriate, and
replacing X and Y with your current release version (for example, 8.1).

Regards,

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


Re: network deamons starting before network!

2010-09-02 Thread Peggy Wilkins
On Fri, Jun 18, 2010 at 2:32 AM, Mark Stapper st...@mapper.nl wrote:

 Since updating to 8.X I noticed that network services were started
 before the network was up!
 I use lagg failover configuration on both my FreeBSD boxes.
 First, boot fails on mounting my nfs-shares.
 After entering and exiting the rescue shell, the system boots as normal.

 uname -a
 FreeBSD mario 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #4: Fri Jun 18
 07:46:01 CEST 2010     *...@mario:/usr/obj/usr/src/sys/mario  amd64
 What could I do to fix this?

 Here's an exerpt from /var/log/messages:

 Jun 18 09:10:25  ntpd[1376]: ntpd 4.2.4p5-a (1)
 Jun 18 09:10:25  kernel: fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8
 Jun 18 09:10:27  ntpd_initres[1412]: host name not found: yoshi
 Jun 18 09:10:27  kernel: nfe0: link state changed to UP
 Jun 18 09:10:27  kernel: lagg0: link state changed to UP
 Jun 18 09:10:27  kernel: nfe1: link state changed to UP
 Jun 18 09:10:27  ntpd_initres[1412]: couldn't resolve `yoshi', giving up
 on it
 Jun 18 09:10:28  dhclient: New Hostname (lagg0): mario
 Jun 18 09:10:28  dhclient: New IP Address (lagg0): 10.58.235.6
 Jun 18 09:10:28  dhclient: New Subnet Mask (lagg0): 255.255.255.0
 Jun 18 09:10:28  dhclient: New Broadcast Address (lagg0): 10.58.235.255
 Jun 18 09:10:28  dhclient: New Routers (lagg0): 10.58.235.1

I upgraded my amd64 FreeBSD-8.0-RELEASE-p4 system to
FreeBSD-8.1-RELEASE earlier this week.  After completing the upgrade
and rebooting, I also am having the above reported problem.

I am not using dhcp, I have configured a static IP address.

My system also has nfe NIC.  I wonder if this problem is specific to
systems using nfe network driver.  The problem was not occuring on my
8.0 system, before the upgrade to 8.1.

Here are my boot messages that display this problem.  (I will note
that nfe0 shows no carrier.)

Setting hostname: capricorn.lib.uchicago.edu
nfe0: link state changed to DOWN
Starting Network: lo0 nfe0.
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
options=3RXCSUM,TXCSUM
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff00
nd6 options=3PERFORMNUD,ACCEPT_RTADV
nfe0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
options=80008VLAN_MTU,LINKSTATE
ether 00:1a:92:45:c5:25
inet 128.135.53.92 netmask 0xff00 broadcast 128.135.53.255
media: Ethernet autoselect (none)
status: no carrier
add net default: gateway 128.135.53.1
Starting devd.
Mounting NFS file systems:
mount_nfs:
quarto: hostname nor servname provided, or not known
[snip -- this is repeated for every NFS mount we have configured]
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib
/usr/local/lib/compat/pkg /usr/local/kde4/lib /usr/local/lib/qt4
/usr/local/lib/virtualbox /usr/local/lib/zsh
32-bit compatibility ldconfig path: /usr/lib32
Creating and/or trimming log files
.
Starting syslogd.
Starting rpcbind.
NFS access cache time=60
rpc.umntall:
quarto: MOUNTPROG: RPC: Unknown host
[snip -- repeated errors again]
Starting amd.
Sep  1 17:49:11 capricorn amd[1017]/info:
using configuration file /etc/amd.conf
Clearing /tmp (X related).
Starting mountd.
Sep  1 17:49:12 capricorn mountd[1091]: can't get address info for
host mozart.lib.uchicago.edu
Sep  1 17:49:12 capricorn mountd[1091]: bad host
mozart.lib.uchicago.edu, skipping
Sep  1 17:49:12 capricorn mountd[1091]: bad exports list line /disk/1
-alldirs mozart.lib.uchicago.edu
[snip -- repeated errors for each line in /etc/exports and /etc/zfs/exports]
Starting nfsd.
Starting statd.
Starting lockd.
NLM: failed to contact remote rpcbind, stat = 7, port = 28416
Sep  1 17:49:12 capricorn rpcbind: connect from ::1 to
getport/addr(status): request from unauthorized host
Sep  1 17:49:12 capricorn kernel: NLM: failed to contact remote
rpcbind, stat = 7, port = 28416
Starting local daemons:
.
Starting lpd.
Updating motd:
.
Mounting late file systems:
mount_nfs:
quarto: hostname nor servname provided, or not known
[snip repeated errors]
Mounting /etc/fstab filesystems failed,  startup aborted
ERROR: ABORTING BOOT (sending SIGTERM to parent)!
Sep  1 17:49:12 capricorn init: /bin/sh on /etc/rc terminated
abnormally, going to single user mode
Enter full pathname of shell or RETURN for
/bin/sh
:
#
nfe0: link state changed to UP


 = END boot messages excerpt

At this point I can fix all issues by killing mountd and syslogd and
then exiting single user.

The reason to kill mountd is that without doing this two mountd's will
be running.

The reason to kill syslogd is that if I don't kill it before exiting
single user:
Starting syslogd.
Sep  1 17:53:17  syslogd: bind: Address already in use
Sep  1 17:53:17  syslogd: bind: Address already in use
syslogd:
child pid 1910 exited with return code 1
/etc/rc: WARNING: failed to start syslogd

This also causes errors later because there is no /var/run/syslog.pid
written (it gets 

SOLVED: serious (for me) Xorg 7.5 mouse/kbd problem in 8.1-STABLE

2010-09-02 Thread William Bulley
See below for details of solution.

- Forwarded message from William Bulley w...@umich.edu -

To: FreeBSD Questions freebsd-questions@freebsd.org
From: William Bulley w...@umich.edu
Date: Wed, 25 Aug 2010 07:38:34 -0400
Subject: serious (for me) Xorg 7.5 mouse/kbd problem in 8.1-STABLE

For years I have run Open-Motif on FreeBSD without issue.

I use a USB keyboard and a USB three button mouse attached to a Dell
Optiplex 960.  This combination has worked fine for the past year.

This week I upgraded from 8.0-STABLE circa January 2010 to 8.1-STABLE.
I do this by doing a buildworld/installworld sequence after csup-ing
stable-supfile and rebooting.  In this case I also pkg_deleted all of
my ports and am rebuilding them from source.  Building Xorg is one of
the very first ports I attempt since I prefer to work in xterms not
virtual terminals.

This upgrade moved me from Xorg 7.3 to Xorg 7.5, but Open-Motif stayed
the same - open-motif-2.2.3_6 - it hasn't changed in years.

After building Xorg, as root, I ran the Xorg -configure command to
generate my xorg.conf.new file.  Since a working /etc/X11/xorg.conf
file was still around after the upgrade from 8.0-STABLE/Xorg 7.3, I
felt no need to change anything in that file (later file comparisons
confirmed that nothing had changed).

My only relevant additions to /etc/X11/xorg.conf are these:

   Section ServerFlags
Option  AutoAddDevices off
Option  DontZap false
   EndSection

In my /etc/rc.conf file I have dbus and hald enabled, and that has
not changed since the beginning of 2010 after the confusion abated.

As a normal user, I start Xorg using /usr/local/bin/xinit as always.
I have several xterms configured in my ~/.xinitrc file.  All those
came up in the correct location and state.  I was able to open those
that started in iconic mode.  In an open/raised xterm I could enter
carriage returns and see my shell prompt move down the window.  But
when I tried to close/minimize an open/raised xterm, things failed.

I use the following keyboard/mouse combination (configured in my
.mwmrc file) to close (minimize) an xterm (and other applications):

   Shift   Btn3Click window  f.minimize

This is also unchanged for some years.  This particular setting has
no bearing on the problem I came across yesterday.  I merely state
it for the record.  However, this configuration triggers the bug.

The problem is as soon as I use that Shift/Btn3Click combination,
my arrow cursor disappears, then I cannot move to or select other
xterms - I am frozen, or locked, into the xterm I was trying to
close/minimize.  All I can do at this point is to kill(1) the
/usr/local/bin/xinit command to return to the virtual terminal
where I launched my Xorg session.

I am now reluctantly using the good old /usr/local/bin/twm which
is always built when Xorg is built from source.  I am at a loss
as to what to look for next.  I suspect Xorg, or the keyboard and
mouse driver, not the video driver, that came with.  It might be
a problem with hald(8), but again, I don't know how to debug this.

Any help with this very odd bug would be greatly appreciated.

- End forwarded message -

This problem is known (and fixed) in newer versions of xorg-server.

See this URL for details of the problem.

   
http://cgit.freedesktop.org/xorg/xserver/commit/?id=1884db430a5680e37e94726dff46686e2218d525

I have also attached the changes I made to the dit/events.c file.

After rebuilding xorg-server with those patches, the Open Motif
(mwm) window manager now works with the above minimize keyboard
and mouse squence.  Thanks for all the help.

Regards,

web...

--
William Bulley Email: w...@umich.edu

72 characters width template -|

for (; grab; grab = grab-next)
{
DeviceIntPtrgdev;
XkbSrvInfoPtr   xkbi = NULL;
/* 3471 Maskmask = 0; */

gdev= grab-modifierDevice;


 =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=


}
xE = core;
count = 1;
/* 3586 mask = grab-eventMask; */
} else if (match  XI2_MATCH)
{


 =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=


count = 1;

/* 3599  * FIXME: EventToXI2 returns NULL for enter events, so
 * dereferencing the event is bad. Internal event types are
 * aligned with core events, so the else clause is valid.
 * long-term we should use internal events for enter/focus
 * as well *
if (xE)
mask = 
grab-xi2mask[device-id][((xGenericEvent*)xE)-evtype/8];
else if (event-type == XI_Enter || event-type == XI_FocusIn)
mask = grab-xi2mask[device-id][event-type/8]; */
} else
{
rc = EventToXI((InternalEvent*)event, xE, count);


 

Linux emu: ELF file OS ABI invalid

2010-09-02 Thread Mikle Krutov
Hello, list!
Got a strange problem with some linux binaries
(utilset for Dwarf Fortress game, DFHack):
file reports them all as
'ELF 32-bit LSB executable, Intel 80386,
version 1 (GNU/Linux), dynamically linked (uses
 shared libs), for GNU/Linux 2.6.15, not stripped'
All are brandelf'd as in handbook.
Utilset requires two libraries, libdfhack.so and
libdfconnect.so, that are reported as
 'ELF 32-bit LSB shared object, Intel 80386,
version 1 (GNU/Linux), dynamically linked, not
stripped'; both of them are brandelf'd, too.
So, i've put libs into /compat/linux/usr/lib/ and tried
 to run one of tools and got:
./dfprospector: error while loading shared libraries:
/usr/lib/libdfhack.so: ELF file OS ABI invalid


What could be the source of the problem?
I'm running 32-bit 8.1-STABLE FreeBSD right now.

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


Re: What's up with cvsup.freebsd.org?

2010-09-02 Thread Dennis Glatting



On Thu, 2 Sep 2010, Lowell Gilbert wrote:


Dennis Glatting free...@penx.com writes:


This has been happening for several days. Is cvsup dead vs SVN? Cvsup
is still listed in the handbook.


cvsup is still fine.  Please (as recommended in the handbook) use a 
mirror closer to you.




cvsup1, which has the same IP address as cvsup, /is/ listed as the server 
closest to me in the handbook. More specifically:


/usr/local/etc/cvsup/update.sh -L2
CVSup update begins at 2010-09-02 09:46:13
Updating from cvsup1.freebsd.org
Parsing supfile /usr/local/etc/cvsup/supfile
Connecting to cvsup1.freebsd.org
Connected to cvsup1.freebsd.org
Premature EOF from server
CVSup update ends at 2010-09-02 09:46:15

Something has changed in the past several days and I'm now getting 
Premature EOF. (I operate a mirror within our enterprise.) If the server 
/is fine/, then why have I been getting this message for the past several 
days? Nothing has changed on my end.



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


Re: What's up with cvsup.freebsd.org?

2010-09-02 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dennis Glatting wrote:
 
 
 On Thu, 2 Sep 2010, Lowell Gilbert wrote:
 
 Dennis Glatting free...@penx.com writes:

 This has been happening for several days. Is cvsup dead vs SVN? Cvsup
 is still listed in the handbook.

 cvsup is still fine.  Please (as recommended in the handbook) use a
 mirror closer to you.

 
 cvsup1, which has the same IP address as cvsup, /is/ listed as the
 server closest to me in the handbook. More specifically:
 
 /usr/local/etc/cvsup/update.sh -L2
 CVSup update begins at 2010-09-02 09:46:13
 Updating from cvsup1.freebsd.org
 Parsing supfile /usr/local/etc/cvsup/supfile
 Connecting to cvsup1.freebsd.org
 Connected to cvsup1.freebsd.org
 Premature EOF from server
 CVSup update ends at 2010-09-02 09:46:15
 
 Something has changed in the past several days and I'm now getting
 Premature EOF. (I operate a mirror within our enterprise.) If the server
 /is fine/, then why have I been getting this message for the past
 several days? Nothing has changed on my end.
 

Hi Dennis,

Instead of relying on a particular cvsup server, how about installing
fastest_cvsup (http://www.freshports.org/sysutils/fastest_cvsup)?

If you run it in your script and pass the resulting hostname to csup,
you'll get the server with the best response at that time.

Hope that helps,
Greg
- --
Greg Larkin

http://www.FreeBSD.org/   - The Power To Serve
http://www.sourcehosting.net/ - Ready. Set. Code.
http://twitter.com/sourcehosting/ - Follow me, follow you
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFMf+MP0sRouByUApARAlIwAJ0fAI9fPVzMbJnx9GUxQR+z5YBkuQCfVPcM
AJ12xqKEXwKs88l3hYlMNS8=
=xr6y
-END PGP SIGNATURE-

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


Re: how do i scp .dotfiles??

2010-09-02 Thread Gary Kline
On Tue, Aug 31, 2010 at 02:48:28PM +0100, krad wrote:
 On 30 August 2010 20:02, Chris Rees utis...@gmail.com wrote:
 
  On 30 August 2010 18:37, krad kra...@googlemail.com wrote:
   On 27 August 2010 20:13, Polytropon free...@edvax.de wrote:
  
   On Fri, 27 Aug 2010 12:21:12 -0500, Gary Gatten ggat...@waddell.com
   wrote:
Rename them, copy, then rename them back?
  
   Not good for a whole bunch of files; in this case: tar them together,
   transfer the archive, untar it; rename afterwards if needed. :-)
  
   or
  
   sudo tar cf - /somepath | ssh x...@y  sudo tar xvf - -C somepath 
  
   I agree with other posts though rsync is the easiest
 
 
  Why sudo with tar?
 
  Chris
 
 
 make sure all perms correct and can read all files


Just to make =sure= about this: can using tar/gtar as root [or
sudo] make sure that all the permissions are correct?  It =may=
save me keystrokes, :_)

gary


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

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


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


Re: What's up with cvsup.freebsd.org?

2010-09-02 Thread Lowell Gilbert
Dennis Glatting free...@penx.com writes:

 On Thu, 2 Sep 2010, Lowell Gilbert wrote:

 Dennis Glatting free...@penx.com writes:

 This has been happening for several days. Is cvsup dead vs SVN? Cvsup
 is still listed in the handbook.

 cvsup is still fine.  Please (as recommended in the handbook) use a
 mirror closer to you.


 cvsup1, which has the same IP address as cvsup, /is/ listed as the
 server closest to me in the handbook. More specifically:

 /usr/local/etc/cvsup/update.sh -L2
 CVSup update begins at 2010-09-02 09:46:13
 Updating from cvsup1.freebsd.org
 Parsing supfile /usr/local/etc/cvsup/supfile
 Connecting to cvsup1.freebsd.org
 Connected to cvsup1.freebsd.org
 Premature EOF from server
 CVSup update ends at 2010-09-02 09:46:15

 Something has changed in the past several days and I'm now getting
 Premature EOF. (I operate a mirror within our enterprise.) If the
 server /is fine/, then why have I been getting this message for the
 past several days? Nothing has changed on my end.

Sorry for being unclear; I wasn't saying the server was fine, I was
saying that the protocol was fine and still fully supported.

I'd say that you have two main options for now; track down the person
responsible for cvsup1.freebsd.org (hubs@ list might help), or use
another server for the time being.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Interactive Port

2010-09-02 Thread Hans Petter Selasky
On Wednesday 01 September 2010 09:57:15 per...@pluto.rain.com wrote:
 Rem P Roberti remeg...@comcast.net wrote:
  Brother!  Muttprint is now working fine.  The problem: the printer
  was offline!  Now, before you go accusing me of being a complete
  dufus, let me say that I had no way of knowing that that condition
  existed.  The printer itself indicated that it was online---no
  problem.  What happened is that somehow, and I'm not sure what
  caused this, the printer became disengaged from its usb port.
 
 I'd call it a bug in the printer that it continues to indicate
 online when it has lost its connection to its host (unless it
 also has a network connection, and in that case I imagine you'd
 be using the network instead of USB).
 
  ...  The only way that I could get it talking again to usb was by
  doing a reboot.
 
 Now _that_ sounds like a possible bug in the USB subsystem, since
 USB is supposed to be completely hot-pluggable and should not need
 a reboot to get itself straightened out after a mishap.  Cc-ing usb@
 list.
 
 One question which will surely arise is, which FreeBSD version are
 you using?  The USB stack was completely rewritten in 8.0.

If the USB application does not close the /dev/XXX handles, it will block the 
enumeration of new USB devices on that bus.

Also see usbconfig -d X.Y reset

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


Weird Linux - FreeBSD/ZFS NFSv4 interoperability problem

2010-09-02 Thread David Brodbeck
While doing some interoperability testing between Linux and FreeBSD, I
came up with this unusual issue.  I could use some help figuring out
if this is a bug, and if so, where to file it.  Here's the scenario:

- FreeBSD 8.1-RELEASE server, sharing a ZFS filesystem via NFSv4.
- Linux client (I've tested with RHEL 5.4 and Debian Lenny) mounting
said filesystem with NFSv4.
- A user on the Linux client does a Subversion checkout onto the
mounted filesystem.

At the end of the checkout, access to the filesystem hangs.  nfsd on
the FreeBSD server and rpciod on the Linux client seem to be in a
tight loop, and there's lots of network traffic between them.  I can
reproduce this every time.

The problem does not occur if the backing filesystem is UFS instead of
ZFS, if NFSv3 is used instead of NFSv4, or if the client is FreeBSD
instead of Linux.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: 8.1: Cron ignoring crontab updates

2010-09-02 Thread Chris Rees
You have to SIGHUP cron, not restart it.

# killall -HUP cron

Chris



Sorry for top-posting, Android won't let me quote, but K-9 can't yet do
threading.

On 2 Sep 2010 21:11, patrick gibblert...@gmail.com wrote:

I recently upgraded a FreeBSD 7.0 system to 8.1-RELEASE (via
freebsd-update) and am experiencing the strangest cron problem I have
ever seen.

My cron jobs run, but if I make any changes to my crontab, cron does
not pick them up; it continues to operate based on the snapshot of
crontabs it loaded when cron was started up. If I restart cron
(/etc/rc.d/cron restart), the changes are then picked up, but again,
any subsequent changes are ignored. I don't see any issues with the
permissions, and when I edit a crontab, it says crontab: installing
new crontab, and the /var/log/cron log shows BEGIN EDIT, REPLACE, and
END EDIT.

I'm somewhat at a loss to figure out where the disconnect is, and it's
impractical for me to have to restart cron any time any user updates
their crontab. Has anyone come across this?

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


Re: how do i scp .dotfiles??

2010-09-02 Thread Lowell Gilbert
Gary Kline kl...@thought.org writes:

   Just to make =sure= about this: can using tar/gtar as root [or
   sudo] make sure that all the permissions are correct?  It =may=
   save me keystrokes, :_)

Permissions, yes.  If you want flags, you'll need the base system tar.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Linux emu: ELF file OS ABI invalid

2010-09-02 Thread Boris Samorodov
On Thu, 2 Sep 2010 15:49:19 + Mikle Krutov wrote:

 Got a strange problem with some linux binaries
 (utilset for Dwarf Fortress game, DFHack):
 file reports them all as
 'ELF 32-bit LSB executable, Intel 80386,
 version 1 (GNU/Linux), dynamically linked (uses
  shared libs), for GNU/Linux 2.6.15, not stripped'
 All are brandelf'd as in handbook.

Good.

 Utilset requires two libraries, libdfhack.so and
 libdfconnect.so, that are reported as
  'ELF 32-bit LSB shared object, Intel 80386,
 version 1 (GNU/Linux), dynamically linked, not
 stripped'; both of them are brandelf'd, too.

Not good. The FreeBSD Handbook (section 10.2.3, Installing a Random
Linux RPM Based Application) forbids library branding.

 So, i've put libs into /compat/linux/usr/lib/ and tried
  to run one of tools and got:
 ./dfprospector: error while loading shared libraries:
 /usr/lib/libdfhack.so: ELF file OS ABI invalid

 What could be the source of the problem?
 I'm running 32-bit 8.1-STABLE FreeBSD right now.

Please try native linux libraries and report back if that helps.

-- 
WBR, Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone  Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org