Re: WARNING: FreeBSD 9.0-RELEASE is approaching its End-of-Life date.

2012-11-16 Thread Bas Smeelen
On 11/16/2012 08:52 AM, Matthias Petermann wrote:
 Hi Andreas,
 do I understand it right - the default behaviour of freebsd-update will
 be to update a 9.0 system to 9.1 when it becomes available? So this is
 a rolling procedure?

Hi

No it only updates the release you have.
To upgrade you wil have to use -r and specify the release
In other words to upgrade use
freebsd-update -r 9.1-RELEASE upgrade

 I ask this because I could not find a parameter etc. in the man page
 which may influent this, e.g. to limit updates to stay in a main
 release (9.0, 9.0-p1, 9.0-p., 9.0-p12) but don't upgrade to 9.1.
 Kind regards,
 Matthias
 Am Freitag, 16. November 2012 00:25 CET, Andreas Rudisch
 cyb.@gmx.net schrieb:

   On Thu, 15 Nov 2012 23:46:53 +0100
   Matthias Petermann wrote:
Thanks for the clearification. One technical thing: is it
   possible, to upgrade
from FreeBSD 9.0 to 9.1 with the freebsd-update utility?
   Yes, it is.



This e-mail message, including any attachment(s), is intended solely for the 
addressee or addressees. Any views or opinions presented herein are solely 
those of the author and do not necessarily represent those of OSE.

If you are not the intended recipient of this communication please return this 
e-mail message and the attachment(s) to the sender and delete and destroy all 
copies.

___
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: WARNING: FreeBSD 9.0-RELEASE is approaching its End-of-Life date.

2012-11-16 Thread Andreas Rudisch
On Thu, 15 Nov 2012 17:04:17 -0800
mer...@stonehenge.com (Randal L. Schwartz) wrote:

  Thanks for the clearification. One technical thing: is it possible, to 
  upgrade
  from FreeBSD 9.0 to 9.1 with the freebsd-update utility? 
 
 Andreas Yes, it is.
 
 Can I go from 8.3 directly to 9.1, or should I stop over at 9.0 first?

Once 9.1 will be release soon, you will see something like that:
  http://www.freebsd.org/releases/9.0R/installation.html

You should of course backup your data. I did an upgrade from 8.3 to 9.1-RC3
recently without problems. But keep in mind that you will have to recompile/
reinstall all installed ports. I usually delete all installed ports before
the upgrade to a new major version.

Andreas
--
GnuPG key  : 0x2A573565|http://www.gnupg.org/howtos/de/
Fingerprint: 925D 2089 0BF9 8DE5 9166  33BB F0FD CD37 2A57 3565
___
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: WARNING: FreeBSD 9.0-RELEASE is approaching its End-of-Life date.

2012-11-16 Thread Andreas Rudisch
On Fri, 16 Nov 2012 08:52:02 +0100
Matthias Petermann matth...@d2ux.net wrote:

do I understand it right - the default behaviour of freebsd-update will
be to update a 9.0 system to 9.1 when it becomes available? So this is
a rolling procedure?
I ask this because I could not find a parameter etc. in the man page
which may influent this, e.g. to limit updates to stay in a main
release (9.0, 9.0-p1, 9.0-p., 9.0-p12) but don't upgrade to 9.1.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html

Andreas
--
GnuPG key  : 0x2A573565|http://www.gnupg.org/howtos/de/
Fingerprint: 925D 2089 0BF9 8DE5 9166  33BB F0FD CD37 2A57 3565
___
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: WARNING: FreeBSD 9.0-RELEASE is approaching its End-of-Life date.

2012-11-16 Thread Polytropon
On Fri, 16 Nov 2012 09:38:43 +0100, Andreas Rudisch wrote:
 But keep in mind that you will have to recompile/
 reinstall all installed ports.

This is not required as long as you install the compatn-1x
port. But as soon as you update some port, or maybe want to
install something new, things tend to break unexpectedly
(especially in library land).



 I usually delete all installed ports before
 the upgrade to a new major version.

The EXAMPLES section of man portmaster has a nice instruction
of how to do this. It's definitely the preferred way for a clean
installation.


-- 
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: 9.0 crash, ssd or filesystem problem?

2012-11-16 Thread Gary Aitken
On 11/15/12 15:56, Warren Block wrote:
 On Thu, 15 Nov 2012, Gary Aitken wrote:
 
 Trying to rebuild ports, I'm consistently getting the following:

  ahcich1 Timeout on slot 13 port 0
  ^ slot varies
  g_vfs_done() ada0p6 [WRITE(offset=38838571008 length=4096)]error=6
 
 That seems familiar, maybe others have reported it.  Is this a motherboard
 controller, or add-in?

mobo.  Asus M4A89TD PRO/USB3
specs say AMD SB850 controller

 After a backup, I'd make sure the motherboard and controller BIOS are up to 
 date.  And also the SSD firmware.

Thanks for the reminder, I see there is a new one.

 ~$ gpart show ada0
 =   34  250069613  ada0  GPT  (119G)
 34128 1  freebsd-boot  (64k)
162   41943040 2  freebsd-ufs  (20G)  /
   419432021048576 3  freebsd-swap  (512M)swap
   429917788388608 4  freebsd-ufs  (4.0G) /var
   513803864194304 5  freebsd-ufs  (2.0G) /tmp
   55574690  192216088 6  freebsd-ufs  (91G)  /usr
  2477907782278869- free -  (1.1G)
 
 It would not cause this problem, but those partitions are not aligned.
 That would only affect speed, not reliability.

geezes, it's not even on a 4K boundary from the get-go; 
not sure how that happened.
let-alone the 1M boundary I just learned about.

Thanks
___
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: Advanced Format Drive ?

2012-11-16 Thread dweimer

On 2012-11-15 17:31, Ronald F. Guilmette wrote:
(This stuff would probably be a lot less confiusing if I actually 
knew

what I was doing, but...)

OK, Warren, I've just done the following steps.  The first two I drew
from the manpage examples, and then followed those up with two 
commands

from your tutorial.

  /sbin/gpart create -s GPT ada0# manpage example is wrong, ad0 
- ada0
  /sbin/gpart bootcode -b /boot/mbr ad0  # manpage wrong again, pmbr 
- mbr

  gpart add -t freebsd-boot -l gpboot -b 40 -s 512K ada0
  gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0

That last one, done at the suggestion of your tutorial page, has me
completely perplexed, because of what is said, very explicitly, in 
the

gpart(8) manpage:

 bootcode  Embed bootstrap code into the partitioning scheme's 
metadata on
   the geom (using -b bootcode) or write bootstrap code 
into a

   partition (using -p partcode and -i index).

Please note the use of the word or.

The man page is telling me to _either_ use the -p option _or else_ 
use
the -p and -i options together.  But you are telling me to use all 
three

in one go!

Forgive me, but I'm confused.  (As you can tell by now, I am often 
easily

confused.  Sorry.)
___
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


I saw this, and well started wondering myself, as I have been using 
this while doing work on booting FreeBSD via ZFS (of course using -p 
/boot/gptzfsboot), I got the line from a tutorial on booting from ZFS.  
Never thought much of it, until now, but I believe I see now why, the 
secret is the pmbr, notice the p.  Its the protective mbr, it lets 
formatting tools that understand mbr, but not gpart know that there is 
something there, the actual boot code is in the partition.


--
Thanks,
   Dean E. Weimer
   http://www.dweimer.net/
___
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: WARNING: FreeBSD 9.0-RELEASE is approaching its End-of-Life date.

2012-11-16 Thread dweimer

On 2012-11-15 15:57, Matthias Petermann wrote:

Hello,

from a freshly installed FreeBSD 9.0-RELEASE I did a freebsd-update 
to bring

it to the latest patch level.

After:

# freebsd-update fetch

I got this message:

WARNING: FreeBSD 9.0-RELEASE is approaching its End-of-Life date.
It is strongly recommended that you upgrade to a newer
release within the next 2 months.

What does this exactly mean? Is the whole 9.0 Series approaching EOL, 
or

does this only apply to the initial 9.0-RELEASE _AND NOT_ to e.g.
9.0-RELEASE-p3 ?

Where can I find more information on the planned lifecycles of the 
current

and upcoming releases? Are there any?

Thanks  kind regards

Matthias


Its all on the website,

Current Release Information:
http://www.freebsd.org/releases/

Release engineering Information:
http://www.freebsd.org/releng/

Next release information:
http://www.freebsd.org/releases/9.1R/schedule.html

Its running a touch behind (11-12-2012 was target release 
announcement), but I am glad they prefer to do it right rather than on 
time.
FreeBSD 9.0-RElEASE-p4 is actually current, but I believe the p4 
doesn't show up unless you do a build world.


--
Thanks,
   Dean E. Weimer
   http://www.dweimer.net/
___
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


odd phantom directory

2012-11-16 Thread Brian Gold
Hi all,

 

I ran into a rather odd issue this morning with my FreeBSD 9.0-Release
system running ZFS v28. This system serves as an RSYNC host which all of our
other systems back up to each night. Last night, I started getting the
following error:

 

file has vanished: /backup/ldap1/etc/pki

Now, usually when I get a file has vanished error during an RSYNC run, it
indicates that the source file/directory on the system that is sending the
rsync backup has been deleted or moved before rsync got a chance to actually
send it. That doesn't appear to be the case here. /backup/ldap1/etc/pki is
the destination directory on my Freebsd/ZFS server. I take a look in
/backup/ldap1/etc on my Freebsd server and the pki subdirectory is no
longer listed.

 

Ok, so I run mkdir /backup/ldap1/etc/pki and get the following error:
mkdir: /backup/ldap1/etc/pki: File exists. Odd

Just to double check, I run ls -la /backup/ldap1/etc/pki and get the
following: ls: /backup/ldap1/etc/pki: No such file or directory

Alright, how about a simple touch? touch: /backup/ldap1/etc/pki: No such
file or directory

Fine. Maybe there is something funky about the /backup/ldap1/etc directory
that is preventing me from doing any of this. mkdir
/backup/ldap1/etc/pki2. That works just fine.

What the heck?

 

 

Looking at the output of my daily security run, I see the following:

Checking setuid files and devices:

find: /backup/ldap1/etc/fonts/conf.avail: No such file or directory

find: /backup/ldap1/etc/fonts/conf.d/30-metric-aliases.conf: No such file or
directory

find: /backup/ldap1/etc/pki: No such file or directory

 

So, it looks like there are a few files/directories in /backup/ldap1/etc
that were affected.

 

Looking through dmesg and /var/log/messages, I don't see anything out of the
ordinary. 

 

I'm running a zpool scrub now just to be on the safe side, but I haven't
seen any checksum or other errors so far.

 

Any thoughts as to what might be causing this?

___
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: Advanced Format Drive ?

2012-11-16 Thread Arthur Chance

On 11/16/12 14:07, dweimer wrote:

On 2012-11-15 17:31, Ronald F. Guilmette wrote:

(This stuff would probably be a lot less confiusing if I actually knew
what I was doing, but...)

OK, Warren, I've just done the following steps.  The first two I drew
from the manpage examples, and then followed those up with two commands
from your tutorial.

  /sbin/gpart create -s GPT ada0# manpage example is wrong, ad0 -
ada0
  /sbin/gpart bootcode -b /boot/mbr ad0  # manpage wrong again, pmbr
- mbr
  gpart add -t freebsd-boot -l gpboot -b 40 -s 512K ada0
  gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0

That last one, done at the suggestion of your tutorial page, has me
completely perplexed, because of what is said, very explicitly, in the
gpart(8) manpage:

 bootcode  Embed bootstrap code into the partitioning scheme's
metadata on
   the geom (using -b bootcode) or write bootstrap code
into a
   partition (using -p partcode and -i index).

Please note the use of the word or.

The man page is telling me to _either_ use the -p option _or else_ use
the -p and -i options together.  But you are telling me to use all three
in one go!

Forgive me, but I'm confused.  (As you can tell by now, I am often easily
confused.  Sorry.)
___
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


I saw this, and well started wondering myself, as I have been using this
while doing work on booting FreeBSD via ZFS (of course using -p
/boot/gptzfsboot), I got the line from a tutorial on booting from ZFS.
Never thought much of it, until now, but I believe I see now why, the
secret is the pmbr, notice the p.  Its the protective mbr, it lets
formatting tools that understand mbr, but not gpart know that there is
something there, the actual boot code is in the partition.


pmbr serves two purposes. It's both the first stage boot code, as a 
traditional BIOS always loads the first block of the disk into memory 
and runs it to boot the machine regardless of whether you've got an MBR 
or GPT disk, and it contains a traditional MBR that shows the entire 
disk is occupied by the first DOS partition (slice in BSD terminology) 
and that is of type 0xee. The latter means that GPT ignorant utilities 
see the disk as fully occupied by a partition of unknown type, which 
should mean they won't touch anything.


The pmbr boot code understands the GPT table and runs through the 
partition entries looking for one of type freebsd-boot. When it finds 
one, it then loads the contents of the partition (or the first 545k if 
it's larger) into memory and jumps to the second stage boot loader.

___
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: 9.0 crash, ssd or filesystem problem?

2012-11-16 Thread Warren Block

On Fri, 16 Nov 2012, Gary Aitken wrote:


~$ gpart show ada0
=   34  250069613  ada0  GPT  (119G)
34128 1  freebsd-boot  (64k)
   162   41943040 2  freebsd-ufs  (20G)  /
  419432021048576 3  freebsd-swap  (512M)swap
  429917788388608 4  freebsd-ufs  (4.0G) /var
  513803864194304 5  freebsd-ufs  (2.0G) /tmp
  55574690  192216088 6  freebsd-ufs  (91G)  /usr
 2477907782278869- free -  (1.1G)


It would not cause this problem, but those partitions are not aligned.
That would only affect speed, not reliability.


geezes, it's not even on a 4K boundary from the get-go;
not sure how that happened.
let-alone the 1M boundary I just learned about.


That's a normal install.  It's fine for 512-byte devices.  I have other 
suggestions too, but let's save that until the problem is fixed.

___
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


virtualbox with FreeBSD as host

2012-11-16 Thread Fbsd8

Section 23.3 of the handbook speaks about FreeBSD as a host.
No where in that section does it say anything about virtualbox
running from the FreeBSD host command line or from A Desktop.

Do I need a Desktop for virtualbox to run under?
___
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: virtualbox with FreeBSD as host

2012-11-16 Thread Mario Lobo
On Fri, 16 Nov 2012 09:57:53 -0500
Fbsd8 fb...@a1poweruser.com wrote:

 Section 23.3 of the handbook speaks about FreeBSD as a host.
 No where in that section does it say anything about virtualbox
 running from the FreeBSD host command line or from A Desktop.
 
 Do I need a Desktop for virtualbox to run under?
 ___
 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

NOPE !!

VBoxHeadless -startvm  vm name

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
 
___
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: virtualbox with FreeBSD as host

2012-11-16 Thread Fbsd8

Mario Lobo wrote:

On Fri, 16 Nov 2012 09:57:53 -0500
Fbsd8 fb...@a1poweruser.com wrote:


Section 23.3 of the handbook speaks about FreeBSD as a host.
No where in that section does it say anything about virtualbox
running from the FreeBSD host command line or from A Desktop.

Do I need a Desktop for virtualbox to run under?
___
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


NOPE !!

VBoxHeadless -startvm  vm name



Issueing VirtualBox from host command line gets this msg.
Failed to open the x11 display

VBoxHeadless -startvm  vm name assumes that there a vb guest
all ready configured which is not my case.

There is no man page for VBoxHeadless command.

How do a configure a vb guest from the host command line?


___
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: virtualbox with FreeBSD as host

2012-11-16 Thread Mario Lobo
On Fri, 16 Nov 2012 10:44:54 -0500
Fbsd8 fb...@a1poweruser.com wrote:

 Mario Lobo wrote:
  On Fri, 16 Nov 2012 09:57:53 -0500
  Fbsd8 fb...@a1poweruser.com wrote:
  
  Section 23.3 of the handbook speaks about FreeBSD as a host.
  No where in that section does it say anything about virtualbox
  running from the FreeBSD host command line or from A Desktop.
 
  Do I need a Desktop for virtualbox to run under?
  ___
  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
  
  NOPE !!
  
  VBoxHeadless -startvm  vm name
  
 
 Issueing VirtualBox from host command line gets this msg.
 Failed to open the x11 display
 
 VBoxHeadless -startvm  vm name assumes that there a vb guest
 all ready configured which is not my case.
 
 There is no man page for VBoxHeadless command.
 
 How do a configure a vb guest from the host command line?
 
 

You can start VirtualBox from an ssh session (with X-forwarding
enabled) from you desktop to your desktopless host. Ssh will forward
the VBox window to your screen.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
 
___
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: virtualbox with FreeBSD as host

2012-11-16 Thread Mario Lobo
On Fri, 16 Nov 2012 10:44:54 -0500
Fbsd8 fb...@a1poweruser.com wrote:

 Mario Lobo wrote:
  On Fri, 16 Nov 2012 09:57:53 -0500
  Fbsd8 fb...@a1poweruser.com wrote:
  
  Section 23.3 of the handbook speaks about FreeBSD as a host.
  No where in that section does it say anything about virtualbox
  running from the FreeBSD host command line or from A Desktop.
 
  Do I need a Desktop for virtualbox to run under?
  ___
  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
  
  NOPE !!
  
  VBoxHeadless -startvm  vm name
  
 
 Issueing VirtualBox from host command line gets this msg.
 Failed to open the x11 display
 
 VBoxHeadless -startvm  vm name assumes that there a vb guest
 all ready configured which is not my case.
 

Right! I assumed you already had the VM ready. Sorry.


 There is no man page for VBoxHeadless command.

There are those:

http://download.virtualbox.org/virtualbox/UserManual.pdf

and

http://www.virtualbox.org/manual/

VBoxHeadless is covered on both.

 How do a configure a vb guest from the host command line?
 
 

VBoxManage can do all that from command line. Check it out or follow my
previous e-mail.

Sorry for not being more thorough on my last post.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
 
___
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: 9.0 crash, ssd or filesystem problem?

2012-11-16 Thread Gary Aitken

 ~$ gpart show ada0
 =   34  250069613  ada0  GPT  (119G)
 34128 1  freebsd-boot  (64k)
162   41943040 2  freebsd-ufs  (20G)  /
   419432021048576 3  freebsd-swap  (512M)swap
   429917788388608 4  freebsd-ufs  (4.0G) /var
   513803864194304 5  freebsd-ufs  (2.0G) /tmp
   55574690  192216088 6  freebsd-ufs  (91G)  /usr
  2477907782278869- free -  (1.1G)

 It would not cause this problem, but those partitions are not aligned.
 That would only affect speed, not reliability.

 geezes, it's not even on a 4K boundary from the get-go;
 not sure how that happened.
 let-alone the 1M boundary I just learned about.
 
 That's a normal install.  It's fine for 512-byte devices. 
 I have other suggestions too, but let's save that until the problem is fixed.

aaahhh.  Vague recollections of getting this to boot up first time around.

How about suggestions anyway, as I'm going to build an sata disk and move
things to that as part of the process to see what's wrong.  May as well get
it right-ish the first time; then repartition the SSD.

Thanks.
___
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: odd phantom directory

2012-11-16 Thread Brian Gold
It looks like this may be the same issue as reported here:
http://lists.freebsd.org/pipermail/freebsd-current/2011-October/027902.html
but that thread seems to have just died off about a year ago.
Zfs scrub is still running, but not reported errors so far. I'm going to run
a zdb -ccv backup once that is done.

From looking over this other thread, I tried just a simple ls
/backup/ldap1/etc and /backup/ldap1/etc/pki does show up if I do ls
without any arguments. If I do an ls -l then it doesn't show up.

-Original Message-
From: owner-freebsd-questi...@freebsd.org
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Brian Gold
Sent: Friday, November 16, 2012 9:37 AM
To: freebsd-questions@freebsd.org
Subject: odd phantom directory

Hi all,

 

I ran into a rather odd issue this morning with my FreeBSD 9.0-Release
system running ZFS v28. This system serves as an RSYNC host which all of our
other systems back up to each night. Last night, I started getting the
following error:

 

file has vanished: /backup/ldap1/etc/pki

Now, usually when I get a file has vanished error during an RSYNC run, it
indicates that the source file/directory on the system that is sending the
rsync backup has been deleted or moved before rsync got a chance to actually
send it. That doesn't appear to be the case here. /backup/ldap1/etc/pki is
the destination directory on my Freebsd/ZFS server. I take a look in
/backup/ldap1/etc on my Freebsd server and the pki subdirectory is no
longer listed.

 

Ok, so I run mkdir /backup/ldap1/etc/pki and get the following error:
mkdir: /backup/ldap1/etc/pki: File exists. Odd

Just to double check, I run ls -la /backup/ldap1/etc/pki and get the
following: ls: /backup/ldap1/etc/pki: No such file or directory

Alright, how about a simple touch? touch: /backup/ldap1/etc/pki: No such
file or directory

Fine. Maybe there is something funky about the /backup/ldap1/etc directory
that is preventing me from doing any of this. mkdir
/backup/ldap1/etc/pki2. That works just fine.

What the heck?

 

 

Looking at the output of my daily security run, I see the following:

Checking setuid files and devices:

find: /backup/ldap1/etc/fonts/conf.avail: No such file or directory

find: /backup/ldap1/etc/fonts/conf.d/30-metric-aliases.conf: No such file or
directory

find: /backup/ldap1/etc/pki: No such file or directory

 

So, it looks like there are a few files/directories in /backup/ldap1/etc
that were affected.

 

Looking through dmesg and /var/log/messages, I don't see anything out of the
ordinary. 

 

I'm running a zpool scrub now just to be on the safe side, but I haven't
seen any checksum or other errors so far.

 

Any thoughts as to what might be causing this?

___
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: odd phantom directory

2012-11-16 Thread Brian Gold
Ok, really confused now. I just ran an rm -rf /backup/ldap1, which errored
out when trying to rm /backup/ldap1/etc/pki,
/backup/ldap1/etc/fonts/conf.d/30-metric-aliases.conf, and
/backup/ldap1/etc/fonts/conf.avail. Everything else got purged correctly,
except for those phantom files.

I then reran my rsync script, which DIDN'T error this time, shipped all the
files over, and I can now read those phantom files/folders just fine. 

-Original Message-
From: owner-freebsd-questi...@freebsd.org
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Brian Gold
Sent: Friday, November 16, 2012 11:23 AM
To: freebsd-questions@freebsd.org
Subject: RE: odd phantom directory

It looks like this may be the same issue as reported here:
http://lists.freebsd.org/pipermail/freebsd-current/2011-October/027902.html
but that thread seems to have just died off about a year ago.
Zfs scrub is still running, but not reported errors so far. I'm going to run
a zdb -ccv backup once that is done.

From looking over this other thread, I tried just a simple ls
/backup/ldap1/etc and /backup/ldap1/etc/pki does show up if I do ls
without any arguments. If I do an ls -l then it doesn't show up.

-Original Message-
From: owner-freebsd-questi...@freebsd.org
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Brian Gold
Sent: Friday, November 16, 2012 9:37 AM
To: freebsd-questions@freebsd.org
Subject: odd phantom directory

Hi all,

 

I ran into a rather odd issue this morning with my FreeBSD 9.0-Release
system running ZFS v28. This system serves as an RSYNC host which all of our
other systems back up to each night. Last night, I started getting the
following error:

 

file has vanished: /backup/ldap1/etc/pki

Now, usually when I get a file has vanished error during an RSYNC run, it
indicates that the source file/directory on the system that is sending the
rsync backup has been deleted or moved before rsync got a chance to actually
send it. That doesn't appear to be the case here. /backup/ldap1/etc/pki is
the destination directory on my Freebsd/ZFS server. I take a look in
/backup/ldap1/etc on my Freebsd server and the pki subdirectory is no
longer listed.

 

Ok, so I run mkdir /backup/ldap1/etc/pki and get the following error:
mkdir: /backup/ldap1/etc/pki: File exists. Odd

Just to double check, I run ls -la /backup/ldap1/etc/pki and get the
following: ls: /backup/ldap1/etc/pki: No such file or directory

Alright, how about a simple touch? touch: /backup/ldap1/etc/pki: No such
file or directory

Fine. Maybe there is something funky about the /backup/ldap1/etc directory
that is preventing me from doing any of this. mkdir
/backup/ldap1/etc/pki2. That works just fine.

What the heck?

 

 

Looking at the output of my daily security run, I see the following:

Checking setuid files and devices:

find: /backup/ldap1/etc/fonts/conf.avail: No such file or directory

find: /backup/ldap1/etc/fonts/conf.d/30-metric-aliases.conf: No such file or
directory

find: /backup/ldap1/etc/pki: No such file or directory

 

So, it looks like there are a few files/directories in /backup/ldap1/etc
that were affected.

 

Looking through dmesg and /var/log/messages, I don't see anything out of the
ordinary. 

 

I'm running a zpool scrub now just to be on the safe side, but I haven't
seen any checksum or other errors so far.

 

Any thoughts as to what might be causing this?

___
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

___
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


If you are using paper bills, this is for you

2012-11-16 Thread GreenPost


 Now view all your bills and pay them at 1-click. Anytime, Anywhere.
 
 *Malaysia* - Maxis, DiGi, TNB, Astro, Celcom, U Mobile, TM, Yes, P1,
Indah Water, SYABAS, KGPA, KRPM, Starhill Gοlf Resοrt.
 *Singapore* - Star Hub, M1, SingTel, Singapore Power, NUSS, Keppel
Clυb, SunPage, Sg Swimming Clυb, Phoenix Comms, ZONE Telecom,
Temasek Clυb, American Clυb, MyRepublic, NSRCC.
 
 We are also in *Australia, Philippines, Indonesia, Sri Lanka, UAE.*

 Introducing a hassle-f­ree bill management service!

 We are GreenPost, a fast, easy and eco-friendly bill management
system that enables you to manage all your bills online and on the
go!

 1.
 ONE single login- telephone, electricity, internet and clυb bills

 2.
 1-Click Bill Payments for all Malaysia bills

 3.
 Awarded iOS and Android apps. Now acc­ess bills anytime, anywhere

 4.
 Contribute towards greener tomorrow. S­ave trees everyday,
GreenPost way

 Signing up just takes 5 mins. https://www.gogreenpost.com/#signup

 * check out more details at http://www.gogreenpost.com

 GreenPost · 401 Macpherson road · #02-08 · Singapore 350131 



--
You’re receiving this email because you requested to be notified about
GreenPost. 
If you do not want to receive any more newsletters,  unsubscribe from
http://greenasia.dns1.us/lists/?p=unsubscribeuid=001cd795edf03434d57fe44b3d8e7528


___
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: odd phantom directory

2012-11-16 Thread jb
Brian Gold bgold at simons-rock.edu writes:

 
 Hi all,
 
 I ran into a rather odd issue this morning with my FreeBSD 9.0-Release
 system running ZFS v28. This system serves as an RSYNC host which all of our
 other systems back up to each night. Last night, I started getting the
 following error:
 
 file has vanished: /backup/ldap1/etc/pki
 
 Now, usually when I get a file has vanished error during an RSYNC run, it
 indicates that the source file/directory on the system that is sending the
 rsync backup has been deleted or moved before rsync got a chance to actually
 send it. That doesn't appear to be the case here. /backup/ldap1/etc/pki is
 the destination directory on my Freebsd/ZFS server. I take a look in
 /backup/ldap1/etc on my Freebsd server and the pki subdirectory is no
 longer listed.
 
 Ok, so I run mkdir /backup/ldap1/etc/pki and get the following error:
 mkdir: /backup/ldap1/etc/pki: File exists. Odd
 
 Just to double check, I run ls -la /backup/ldap1/etc/pki and get the
 following: ls: /backup/ldap1/etc/pki: No such file or directory
 ...

There have been cases like that reported in the past.

One was dated 2006:
http://lists.freebsd.org/pipermail/freebsd-bugs/2006-April/018069.html
I assume the backup host was on UFS.
This comment seems to be interesting:
Such behavior usually caused by lost vnode reference and/or bugs in the 
 vnode traversal code. ...

Next dated 2011:
http://freebsd.1045724.n5.nabble.com/carsten-c-otto-de-ftpsync-freebsd-ftp-ftp-1013-rsync-ERROR-on-2011-03-04-09-23-00-td4073512.html
I assume the backup host was on UFS2.
There was a fix commited:
...John Baldwin commited very promising MFC yesterday, see
http://svn.freebsd.org/changeset/base/219744 .

Next dated 2011:
http://lists.freebsd.org/pipermail/freebsd-current/2011-October/027902.html
The backup host was on ZFS.

Yours is similar to the last one.

Perhaps looking for the solution to this problem should start at top VFS
layer ?
The description in /usr/src/sys/sys/vnode.h is a good reference.

I would suggest you file a PR# to get VFS and fs devs have a look at it.
jb






 




___
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: eGalax USB touch panel on ExoPC Slate vs. FreeBSD and X11

2012-11-16 Thread Bill Paul

Well... apparently I was able to get this to work on my own. To recap, I
have an ExoPC Slate running FreeBSD 9.0 and xorg 1.7 with an eGalax
USB HID touch screen. Out of the box, ums(4) claims it but doesn't
like it.

After investigating a bit more, I found that the screen has multiple HID
collections associated with it:

Collection type=Application page=Digitizer usage=Touch_Screen
Collection type=Physical page=Digitizer usage=Finger

Collection type=Application page=Generic_Desktop usage=Pointer
Collection type=Physical page=Generic_Desktop usage=Pointer

Collection type=Application page=Microsoft usage=0x0001

Collection type=Application page=Digitizer usage=Touch_Screen
Collection type=Physical page=Digitizer usage=Stylus

Collection type=Application page=Digitizer usage=Device_Configuration
Collection type=Physical page=Digitizer usage=Finger

The ums(4) driver is trying to use the 'Pointer' collection, but I think
it may be getting confused by the X/Y ranges:

Collection type=Application page=Generic_Desktop usage=Pointer
Collection type=Physical page=Generic_Desktop usage=Pointer
Input   rid=1 size=1 count=1 page=Button usage=Button_1, logical range 0..1, 
physical range 1..2047
Input   rid=1 size=1 count=1 page=Button usage=Button_2, logical range 0..1, 
physical range 1..2047
Input   rid=1 size=16 count=1 page=Generic_Desktop usage=X, logical range 
0..4095, physical range 0..4095
Input   rid=1 size=16 count=1 page=Generic_Desktop usage=Y, logical range 
0..4095, physical range 0..4095
End collection
End collection

There are two problems. First, the ranges are a little unusual. I think
other mouse devices only have ranges from -127 to +127. Second, the input
flags for the X and Y axis entries are 0x2 (HI_VARIABLE) and not HI_RELATIVE,
which is what the usm(4) driver expects. This causes it to ignore the X and Y
axis entries and only handle the button entries. I tried changing the code to
accept just the HI_VARIABLE flag, but that still didn't make the cursor move.
In any case, I was wrong that the problem is that the FreeBSD ums(4) driver
doesn't handle gestures: it's just not flexible enough to handle this
 oddball pointer design.

Anyway, go get it to work with X as a standard pointer device, I finally
ended up doing the following:

1) Edited the uhid_probe() function in sys/dev/usb/input/uhid.c to comment
   out the code that excludes UIPROTO_MOUSE devices:
 
/*
 * Don't attach to mouse and keyboard devices, hence then no
 * nomatch event is generated and then ums and ukbd won't
 * attach properly when loaded.
 */
if ((uaa-info.bInterfaceClass == UICLASS_HID) 
(uaa-info.bInterfaceSubClass == UISUBCLASS_BOOT) 
((uaa-info.bInterfaceProtocol == UIPROTO_BOOT_KEYBOARD)/* ||
 (uaa-info.bInterfaceProtocol == UIPROTO_MOUSE) */)) {
return (ENXIO);
}

   Note: this will make it match all mice. I could have fixed it to
   be more selective, but for now I just wanted things to work.

2) Recompiled the kernel with the ums(4) and uhid(4) drivers removed.
3) Edited /boot/loader.conf to load the uhid(4) module:

uhid_load=YES

4) Renamed /boot/kernel/ums.ko to something else so that the system would
   stop trying to automatically load it all the time. (Grrr...)

5) Installed the ports collection.
6) Downloaded the following file:

http://people.freebsd.org/~mav/patch-zz-input-mouse9

6) Copied it to /usr/ports/x11-drivers/xf86-input-mouse/files
7) Recompiled and re-installed the xf86-input-mouse driver:

# cd /usr/ports/x11-drivers/xf86-input-mouse
# make
# make deinstall
# make install

8) Edited my xorg.conf to include the following:

Section InputDevice
Identifier  Mouse0
Driver  mouse
Option  Collection 2
Option  Protocol usb
Option  Device /dev/uhid0
Option  Emulate3Timeout 10
EndSection

The touch panel is now detected as uhid0 instead of ums0 and the mouse
input driver now handles it directly instead of going through /dev/sysmouse.

Note that the 'Collection 2' option line is critical here. The driver
defaults to using collection 1, which is the touch screen. However this
doesn't provide a working pointer. Collection 2 is for the mouse emulation
mode, which is not ideal, but at least it allows me to move the cursor with
my finger now.

Button presses are a little tricky. There are 3 possible results:

1) Quick press -- button 1
2) Press and hold for a few seconds - button 2
3) Tap, release for a second, then press and hold -- button 3

I put the complete output of usbuhidctl -r and my xorg.conf file here:

http://people.freebsd.org/~wpaul/expoc

Note that I'm using the VESA driver for now as the Intel driver seems to
lock up when used with the Intel Pineview graphics controller in this
tablet.

Also note that it looks like you can use pretty much any other USB mouse
this way too, just remember to remove 

Re: 9.0 crash, ssd or filesystem problem?

2012-11-16 Thread Warren Block

On Fri, 16 Nov 2012, Gary Aitken wrote:




~$ gpart show ada0
=   34  250069613  ada0  GPT  (119G)
34128 1  freebsd-boot  (64k)
   162   41943040 2  freebsd-ufs  (20G)  /
  419432021048576 3  freebsd-swap  (512M)swap
  429917788388608 4  freebsd-ufs  (4.0G) /var
  513803864194304 5  freebsd-ufs  (2.0G) /tmp
  55574690  192216088 6  freebsd-ufs  (91G)  /usr
 2477907782278869- free -  (1.1G)


It would not cause this problem, but those partitions are not aligned.
That would only affect speed, not reliability.


geezes, it's not even on a 4K boundary from the get-go;
not sure how that happened.
let-alone the 1M boundary I just learned about.


That's a normal install.  It's fine for 512-byte devices.
I have other suggestions too, but let's save that until the problem is fixed.


aaahhh.  Vague recollections of getting this to boot up first time around.

How about suggestions anyway, as I'm going to build an sata disk and move
things to that as part of the process to see what's wrong.  May as well get
it right-ish the first time; then repartition the SSD.


Okay.  The disk setup article shows alignment and using GPT labels, so 
I'll skip those.


Additional SSD suggestions: when creating partitions, leave out the swap 
partition.  If you have lots of memory, leave out the /tmp partition. 
Add that extra space to the /usr partition.


Format the UFS filesystems with -Ut, for soft updates and TRIM support. 
(Make sure your SSD supports TRIM, almost all do.)  (I don't use soft 
updates journaling.)


Use dd(1) to make a zero-filled file on /usr somewhere, say /usr/swap. 
Make it the size you want swap to be, and do not make it a sparse file. 
Tell the system to use the swapfile in /etc/rc.conf:


  swapfile=/usr/swap

Use tmpfs for /tmp in /etc/fstab:

  tmpfs /tmptmpfs   rw,mode=01777   0   0

It's possible to limit the size, but not necessary.  This /tmp will be 
cleared on reboot.



Now: why?

Using a swapfile through the filesystem gives three advantages:

1. Disk space is not tied up in an unused swap partition.
2. Swap can be resized without repartitioning.
3. Swap goes through the filesystem, using TRIM, helping the SSD
   maintain performance.

/tmp as tmpfs is auto-sizing, efficient, and self-clearing on reboot. 
It doesn't tie up disk space in a mostly-unused partition.


I use tmpfs for /usr/obj also.  It doesn't improve speed, but reduces 
writes to SSD and is also self-clearing.

___
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: Advanced Format Drive ? GPT ?

2012-11-16 Thread Al Plant

Warren Block wrote:

On Thu, 15 Nov 2012, Al Plant wrote:


I looked over the GPT sample and have a question.

In the fstab entries, something that uses msdosfs, (thumb drive maybe).



%%%

Can you enter it directly in the fstab after the basic partitions and 
other /dev have been entered in the initial setup?


Short answer: yes, but...

Longer answer: most flash drives have an MBR partition setup with one 
partition filling the whole device.  Since it's not GPT, it won't/can't 
have GPT labels on the partitions.  But the GEOM system will create a 
label for the MSDOS filesystem if it has been given a volume name.  That 
label will appear in /dev/msdosfs/ and can be used in an /etc/fstab entry.

___



Thanks,, For the sage advice.

%

~Al Plant - Honolulu, Hawaii -  Phone:  808-284-2740
  + http://hawaiidakine.com + http://freebsdinfo.org +
  + http://aloha50.net   - Supporting - FreeBSD  7.2 - 8.0 - 9* +
   email: n...@hdk5.net 
All that's really worth doing is what we do for others.- Lewis Carrol

___
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: virtualbox with FreeBSD as host

2012-11-16 Thread Fbsd8


Section 23.3 of the handbook speaks about FreeBSD as a host.
No where in that section does it say anything about virtualbox
running from the FreeBSD host command line or from A Desktop.

Do I need a Desktop for virtualbox to run under?


NOPE !!

VBoxHeadless -startvm  vm name


Issueing VirtualBox from host command line gets this msg.
Failed to open the x11 display

VBoxHeadless -startvm  vm name assumes that there a vb guest
all ready configured which is not my case.



Right! I assumed you already had the VM ready. Sorry.



There is no man page for VBoxHeadless command.


There are those:

http://download.virtualbox.org/virtualbox/UserManual.pdf

and

http://www.virtualbox.org/manual/

VBoxHeadless is covered on both.


How do a configure a vb guest from the host command line?



VBoxManage can do all that from command line. Check it out or follow my
previous e-mail.



I read the UserManual and think I am barking up the wrong tree.
So lets start over again with what the wanted desired result is.
I have 9.0 installed on my 200gb hard drive, it's configured to use the
first 100gb leaving the second 100gb free. I was going to install XP in
the second half and have a duel boot config. Then I find out XP has to
be install first on the HD meaning I have to install 9.0 from scratch
again. I read a post on this list where it was suggested to run
Virtualbox on my 9.0 host and then run XP as a guest. I want to boot the
9.0 host and login to the 9.0 host, start the Virtualbox XP guest and
enter the XP guest [IE: be in the XP OS windows environment], can I do
all that from the host command line? I do not run x11 or any desktop on
my 9.0 host. I do not want to use an second PC to login to the VB XP
guest over ssh.






___
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: virtualbox with FreeBSD as host

2012-11-16 Thread Derrick Ryalls
On Fri, Nov 16, 2012 at 1:18 PM, Fbsd8 fb...@a1poweruser.com wrote:


 Section 23.3 of the handbook speaks about FreeBSD as a host.
 No where in that section does it say anything about virtualbox
 running from the FreeBSD host command line or from A Desktop.

 Do I need a Desktop for virtualbox to run under?


 NOPE !!

 VBoxHeadless -startvm  vm name

  Issueing VirtualBox from host command line gets this msg.
 Failed to open the x11 display

 VBoxHeadless -startvm  vm name assumes that there a vb guest
 all ready configured which is not my case.


 Right! I assumed you already had the VM ready. Sorry.


  There is no man page for VBoxHeadless command.


 There are those:

 http://download.virtualbox.**org/virtualbox/UserManual.pdfhttp://download.virtualbox.org/virtualbox/UserManual.pdf

 and

 http://www.virtualbox.org/**manual/ http://www.virtualbox.org/manual/

 VBoxHeadless is covered on both.

  How do a configure a vb guest from the host command line?


 VBoxManage can do all that from command line. Check it out or follow my
 previous e-mail.


 I read the UserManual and think I am barking up the wrong tree.
 So lets start over again with what the wanted desired result is.
 I have 9.0 installed on my 200gb hard drive, it's configured to use the
 first 100gb leaving the second 100gb free. I was going to install XP in
 the second half and have a duel boot config. Then I find out XP has to
 be install first on the HD meaning I have to install 9.0 from scratch
 again. I read a post on this list where it was suggested to run
 Virtualbox on my 9.0 host and then run XP as a guest. I want to boot the
 9.0 host and login to the 9.0 host, start the Virtualbox XP guest and
 enter the XP guest [IE: be in the XP OS windows environment], can I do
 all that from the host command line? I do not run x11 or any desktop on
 my 9.0 host. I do not want to use an second PC to login to the VB XP
 guest over ssh.



I think I am misunderstanding your ask, so I will describe what I have
which sounds awfully similar.

I have a headless 9.0 box with plenty of CPU cycles and HDD/RAM to spare.
 I have installed virtualbox on it, as well as phpVirtualBox (might have
the wrong name there).

Using phpVirtualBox, I can start/stop/config virtual machines on the host.
 So I used my Win7 box to create a virtual Win7 (or in your case WinXP) and
got it all installed and setup using my laptop.  Once it was configured, I
copied the virtual hard drive to the fileserver, configured a new virtual
machine to use that hard drive and set the network to bridged.  After
starting the virtual machine on my FreeBSD box I was able to remote to the
virtual machine using terminal services (built into windows).

The installation of virtualbox on my fileserver did install x11 components,
but by using phpVirtualBox, it is all started headless.

Hope this helps.
___
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: virtualbox with FreeBSD as host

2012-11-16 Thread Adam Vande More
On Fri, Nov 16, 2012 at 3:18 PM, Fbsd8 fb...@a1poweruser.com wrote:


 I read the UserManual and think I am barking up the wrong tree.


It's called the XY problem, and it's resolved by asking better questions.


 So lets start over again with what the wanted desired result is.
 I have 9.0 installed on my 200gb hard drive, it's configured to use the
 first 100gb leaving the second 100gb free. I was going to install XP in
 the second half and have a duel boot config. Then I find out XP has to
 be install first on the HD meaning I have to install 9.0 from scratch
 again. I read a post on this list where it was suggested to run
 Virtualbox on my 9.0 host and then run XP as a guest. I want to boot the
 9.0 host and login to the 9.0 host, start the Virtualbox XP guest and
 enter the XP guest [IE: be in the XP OS windows environment], can I do
 all that from the host command line?


Yes.  Although you certainly wouldn't use the headless mode since you want
a head.


 I do not run x11 or any desktop on
 my 9.0 host.


This would be your problem.

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


Re: virtualbox with FreeBSD as host

2012-11-16 Thread Mario Lobo
On Fri, 16 Nov 2012 16:18:10 -0500
Fbsd8 fb...@a1poweruser.com wrote:

 
  Section 23.3 of the handbook speaks about FreeBSD as a host.
  No where in that section does it say anything about virtualbox
  running from the FreeBSD host command line or from A Desktop.
 
  Do I need a Desktop for virtualbox to run under?
 
  NOPE !!
 
  VBoxHeadless -startvm  vm name
 
  Issueing VirtualBox from host command line gets this msg.
  Failed to open the x11 display
 
  VBoxHeadless -startvm  vm name assumes that there a vb guest
  all ready configured which is not my case.
 
  
  Right! I assumed you already had the VM ready. Sorry.
  
  
  There is no man page for VBoxHeadless command.
  
  There are those:
  
  http://download.virtualbox.org/virtualbox/UserManual.pdf
  
  and
  
  http://www.virtualbox.org/manual/
  
  VBoxHeadless is covered on both.
  
  How do a configure a vb guest from the host command line?
 
  
  VBoxManage can do all that from command line. Check it out or
  follow my previous e-mail.
  
 
 I read the UserManual and think I am barking up the wrong tree.
 So lets start over again with what the wanted desired result is.
 I have 9.0 installed on my 200gb hard drive, it's configured to use
 the first 100gb leaving the second 100gb free. I was going to install
 XP in the second half and have a duel boot config. Then I find out XP
 has to be install first on the HD meaning I have to install 9.0 from
 scratch again. I read a post on this list where it was suggested to
 run Virtualbox on my 9.0 host and then run XP as a guest. I want to
 boot the 9.0 host and login to the 9.0 host, start the Virtualbox XP
 guest and enter the XP guest [IE: be in the XP OS windows
 environment], can I do all that from the host command line? I do not
 run x11 or any desktop on my 9.0 host. I do not want to use an second
 PC to login to the VB XP guest over ssh.
 

To access the XP graphics interface, you NEED a graphics environment!

I, at least, don't know of a way to access a graphics interface from a
text console and you're not willing to do an RDP/VNC session from
another machine.

I'm sorry but you're stuck ! I can't help you any further.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
 
___
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: Light word processor plus the occasional spreadsheet

2012-11-16 Thread ill...@gmail.com
On 15 November 2012 04:06, Leslie Jensen les...@eskk.nu wrote:

 Hello

 I mainly use LibreOffice and it works for me.

 My problem now is that the build time for LibreOffice on a little older
 hardware is very long.

 Is there an alternative to writer that does not take that long to build?

 If I can get an alternative to Calc also it's a plus but not a big problem.

 The main work I do will still be done on machines that can build
 LibreOffice. Now and then I need to open an attached file, maybe edit it and
 send it back. It's for that purpose I need the light version.


Maybe because 20+ years ago I learnt wordstar, so if
you grew up on pointin'  clickin' you'll be sorely dis-
appointed, but I enjoy the jstar mode of editors/joe
(or actually editors/jupp, some dif'rence, mostly).

Pathetic writer, from siag isn't half bad, but you'll have
to build from sources all by your lonesome,  it ain't
gonna work at first.

The downside is the general inability to simply open
/certain proprietary formats/ which libre-  open-office
have.

But then I'm a fan of editing  writing with a simple
editing  writing program  saving all the font  other
extraneous formatting nonsense to a proper layout
program (the old Aldus PageMaker was nice back
in the 1990s, haha):  print/scribus might be an option,
except that it pulls in every accursed KDE/qt4 thing
on Earth.

-- 
--
___
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: virtualbox with FreeBSD as host

2012-11-16 Thread perryh
Adam Vande More amvandem...@gmail.com wrote:
 On Fri, Nov 16, 2012 at 3:18 PM, Fbsd8 fb...@a1poweruser.com wrote:
  I do not run x11 or any desktop on my 9.0 host.

 This would be your problem.

How so?  Surely virtualbox _should_ be able to hand off a VT to the
XP guest, for it to use as a keyboard, mouse, and display.  (This
supposes that the FreeBSD box in question _has_ a keyboard, mouse,
and display, and thus has a VT that it can hand off.)

Fbsd8 fbsd8 at a1poweruser.com wrote:
 I have 9.0 installed on my 200gb hard drive, it's configured to use
 the first 100gb leaving the second 100gb free. I was going to install
 XP in the second half and have a duel boot config. Then I find out XP
 has to be install first on the HD ...

The easiest solution might be to dd the first 100gb (containing
the FreeBSD installation) to the second 100gb, mark the first 100gb
as unused, and install XP there if it needs to be in the lowest-
addressed part of the disk.  Back up the FreeBSD installation first!

Mario Lobo l...@bsd.com.br wrote:
 To access the XP graphics interface, you NEED a graphics environment!

XP itself, when running directly on the hardware, provides its own
graphics environment.  It should be able to do the same running on
a VM with a virtualized keyboard, mouse, and display.
___
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: virtualbox with FreeBSD as host

2012-11-16 Thread Adam Vande More
On Sat, Nov 17, 2012 at 3:10 AM, per...@pluto.rain.com wrote:

 Adam Vande More amvandem...@gmail.com wrote:
  On Fri, Nov 16, 2012 at 3:18 PM, Fbsd8 fb...@a1poweruser.com wrote:
   I do not run x11 or any desktop on my 9.0 host.
 
  This would be your problem.

 How so?  Surely virtualbox _should_ be able to hand off a VT to the
 XP guest, for it to use as a keyboard, mouse, and display.  (This
 supposes that the FreeBSD box in question _has_ a keyboard, mouse,
 and display, and thus has a VT that it can hand off.)


I see what you are saying but that isn't possible currently with
Virtualbox.  The closest piece of tech I know of the OP's request is Xen
VGA passthrough.

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


Re: 9.0 crash, ssd or filesystem problem?

2012-11-16 Thread Gary Aitken
On 11/16/12 12:10, Warren Block wrote:

 ~$ gpart show ada0
 =   34  250069613  ada0  GPT  (119G)
 34128 1  freebsd-boot  (64k)
162   41943040 2  freebsd-ufs  (20G)  /
   419432021048576 3  freebsd-swap  (512M)swap
   429917788388608 4  freebsd-ufs  (4.0G) /var
   513803864194304 5  freebsd-ufs  (2.0G) /tmp
   55574690  192216088 6  freebsd-ufs  (91G)  /usr
  2477907782278869- free -  (1.1G)

 It would not cause this problem, but those partitions are not aligned.
 That would only affect speed, not reliability.

 geezes, it's not even on a 4K boundary from the get-go;
 not sure how that happened.
 let-alone the 1M boundary I just learned about.

 That's a normal install.  It's fine for 512-byte devices.
 I have other suggestions too, but let's save that until the problem is 
 fixed.

 aaahhh.  Vague recollections of getting this to boot up first time around.

After upgrading the mobo bios I re-partitioned and so far so good
although ports are messed up and I'll have to rebuild them.
Did not implement the suggestions below as I needed to get back up and 
figured it would take me a while to get it right.  Will do that on the 
new disk.

 How about suggestions anyway, as I'm going to build an sata disk and move
 things to that as part of the process to see what's wrong.  May as well get
 it right-ish the first time; then repartition the SSD.
 
 Okay.  The disk setup article shows alignment and using GPT labels, so
 I'll skip those.
 
 Additional SSD suggestions: when creating partitions, leave out the swap
 partition.  If you have lots of memory, leave out the /tmp partition. Add
 that extra space to the /usr partition.
 
 Format the UFS filesystems with -Ut, for soft updates and TRIM support.
 (Make sure your SSD supports TRIM, almost all do.)  (I don't use soft
 updates journaling.)
 
 Use dd(1) to make a zero-filled file on /usr somewhere, say /usr/swap.
 Make it the size you want swap to be, and do not make it a sparse file.
 Tell the system to use the swapfile in /etc/rc.conf:
 
swapfile=/usr/swap
 
 Use tmpfs for /tmp in /etc/fstab:
 
tmpfs/tmptmpfsrw,mode=0177700
 
 It's possible to limit the size, but not necessary.  This /tmp will be
 cleared on reboot.

Not necessary because it is constrained by the swap file size?

 Now: why?
 
 Using a swapfile through the filesystem gives three advantages:
 
 1. Disk space is not tied up in an unused swap partition.
 2. Swap can be resized without repartitioning.
 3. Swap goes through the filesystem, using TRIM, helping the SSD
 maintain performance.
 
 /tmp as tmpfs is auto-sizing, efficient, and self-clearing on reboot.
 It doesn't tie up disk space in a mostly-unused partition.
 
 I use tmpfs for /usr/obj also.  It doesn't improve speed, but reduces
 writes to SSD and is also self-clearing.

Thanks!

___
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: 9.0 crash, ssd or filesystem problem?

2012-11-16 Thread Warren Block

On Fri, 16 Nov 2012, Gary Aitken wrote:


On 11/16/12 12:10, Warren Block wrote:


Additional SSD suggestions: when creating partitions, leave out the swap
partition.  If you have lots of memory, leave out the /tmp partition. Add
that extra space to the /usr partition.

Format the UFS filesystems with -Ut, for soft updates and TRIM support.
(Make sure your SSD supports TRIM, almost all do.)  (I don't use soft
updates journaling.)

Use dd(1) to make a zero-filled file on /usr somewhere, say /usr/swap.
Make it the size you want swap to be, and do not make it a sparse file.
Tell the system to use the swapfile in /etc/rc.conf:

   swapfile=/usr/swap

Use tmpfs for /tmp in /etc/fstab:

   tmpfs/tmptmpfsrw,mode=0177700

It's possible to limit the size, but not necessary.  This /tmp will be
cleared on reboot.


Not necessary because it is constrained by the swap file size?


Yes, but also because /tmp usually doesn't need much space.  On this 
desktop system, du shows all of /tmp is only 52K.

___
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


how to correct corrupted ports tree?

2012-11-16 Thread Gary Aitken
so, after updating bios, repartitioning, etc,
things seem to be stable, modulo the following:

decided to rebuild ports for peace of mind,
but my basic ports tree is hosed:

# portmaster -t --clean-distfiles
...
/usr/ports/Mk/bsd.php.mk, line 335: Malformed conditional 
(${_USE_PHP_VER${PHP_VER}:Myes} != )
...
make: fatal errors encountered -- cannot continue

=== No DISTINFO_FILE in /usr/ports/lang/php4-extensions

Makefile, line 20: Could not find 
/usr/ports/mail/enigmail-thunderbird3/../enigmail/Makefile
make: fatal errors encountered -- cannot continue

Sure enough:

# ls /usr/ports/lang/php4-extensions
CVS Makefilepkg-descr

I didn't see anything in the handbook about how to get the ports tree itself
back to a sane condition.  Do I have to blow the whole thing away and do a
fresh extract?  I don't see a way to force refetch of the actual ports files
like distinfo when portsnap thinks the port is up to date.

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


Re: how to correct corrupted ports tree?

2012-11-16 Thread Shane Ambler

On 17/11/2012 15:26, Gary Aitken wrote:


decided to rebuild ports for peace of mind,
but my basic ports tree is hosed:



I didn't see anything in the handbook about how to get the ports tree itself
back to a sane condition.  Do I have to blow the whole thing away and do a
fresh extract?  I don't see a way to force refetch of the actual ports files
like distinfo when portsnap thinks the port is up to date.


portsnap extract will always install the entire tree, if you have made 
any modifications they will be overwritten, but new ports folders you 
have added should remain, sometimes this can also cause old folders to 
be left behind.


Worst case is to delete the existing /usr/ports and extract a clean set.

Another option is partial extraction -
portsnap extract lang/php5-extensions will extract just the one port
portsnap extract lang/php5 will match all lang ports starting with php5
portsnap extract lang will extract all the lang ports

I think that you will find your issue comes from the fact that all the 
php4 ports have been deleted - you seem to have some old folders left 
behind. Could be from extracting over an existing cvs checkout. Maybe 
you want a clean start.


If you still have php4 installed then you should be able to use
portmaster -o lang/php5-extensions lang/php4-extensions
to get it to update with the new version

find /usr/ports -type d -and -name php4* | xargs rm -R
will delete any remaining php4 folders
find /usr/ports -name CVS | xargs rm -R
will remove all the cvs garbage left behind.

___
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


confessions of a FreeBSD purist

2012-11-16 Thread Matthew Pope

Dear FreeBSD community,

It has been wonderful being a full-fledged member of this community, an 
administrator running FreeBSD on bare hardware (in his basement) for 
years.  This is the coolest, hippiest, historically pure, and most 
technically advanced UNIX community on the planet (I'm one of the more 
long in the tooth members.)  I used Dummynet about four years ago to 
replay bad Internet weather and prove my hypothesis of what servers 
caused failure in a multi-tier, forex trading system failure.


This week I reformatted the last two machines in my basement running 
FreeBSD. I feel really guilty.  I installed Ubuntu (10.04) because its 
GUI is great, its very well supported, and I had a heck of a time 
keeping my FreeBSD jails configured and stable, and I'd stopped running 
a web site for a while now.


I installed 10.04 instead of 12.04 because on another machine I had 
attempted to upgrade to 12.04 LTS while running the dual boot 
configuration, and it trashed my MBR (a known defect.) You have been 
warned, etc. It also has that radically different GUI, and really 
annoying, an entirely different directory tree on the disk.  FreeBSD 
contributors would never tamper so much with something that worked so well.


However, I do need to run a web site again, and I am more than convinced 
on the superior performance, and hardening possible with FreeBSD bind, 
and Apache running in jails. However, I'd like to run FreeBSD in a 
VMWare or VirtualBox VMs.  This gives me the ability to take snapshots 
to recover easily when I break something. Computing resources are like 
candy these days.  My fast box has 4 screaming fast processors with 8 GB 
of RAM, and that is a three year old machine.  There is no reason 
FreeBSD cannot run with adequate performance in a VM and run bind, and 
perhaps on another physical box, have a FreeBSD VM running Apache, both 
in jails.  I know others are doing it.


Could anyone be kind enough to recommend a free, or share their own 
FreeBSD VM image that has bind pre-configured in a jail, and / or an 
Apache web server pre-configured in a jail, for a non-commercial site?  
With this configuration I can revert after breaking something as an 
over-eager, semi-qualified system administrator.


Cheers,
Matthew (in Toronto)
___
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