Re: Tuning /etc/sysctl.conf

2013-10-14 Thread Steve O'Hara-Smith
On Mon, 14 Oct 2013 18:35:49 +0200
Carlos Jacobo Puga Medina cjpug...@gmail.com wrote:

 Hi people,
 
 I'm very interested to tuning /etc/sysctl.conf according to the
 specifications of my PC.

As a general rule it is more appropriate to think of tuning in
terms of the workload you intend to apply to your PC. Most changes you can
make will benefit some workflows at the cost of making others less
efficient.

-- 
Steve O'Hara-Smith st...@sohara.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: Q: Updating a port (math:asymptote)

2013-10-11 Thread Steve O'Hara-Smith
On Fri, 11 Oct 2013 19:14:48 +0300
Jarmo Hurri jarmo.hu...@syk.fi wrote:

 
 Greetings.
 
 I would like to switch from Linux to FreeBSD, but am puzzled by the
 timeliness of the ports. In particular, I use a drawing program called

The extent to which any given port is kept up to date depends on
the maintainer.

 asymptote quite heavily in my work. From the ports page I noticed that
 the ports version is approximately 14 months old:
 
 http://www.freebsd.org/cgi/ports.cgi?query=asymptote
 
 I tried to contact the maintainer via email, but got no response.
 
 What would be the correct procedure for trying to get that port updated?
 
 1. Somehow get in contact with the maintainer. How? (I tried.)

A non-responding maintainer may be for any number of reasons
including having lost all interest, but sometimes they're just temporarily
unavailable (on holiday, busy with other things ...) and will get back to
it later.

 2. Try to become a maintainer. How?

Step one would be to try bringing the port up to date yourself,
sometimes it is as easy as editing the Makefile, changing the version and
running make makesum to update the checksums. Sometimes the patches need to
be adjusted in which case much depends on how much patching was needed in
the first place. In the case of asymptote it looks like the only patch is
adjusting the path to exampledir in Makefile.in which ought to be pretty
easy to handle.

The porters handbook has a lot of useful information on what to do
when things get tricky.

If you succeed in bringing the port up to date then your problem
is solved (you have an up to date version) and if you use send-pr to submit
the changes to bring it up to date then there's a good chance that you'll
solve the same problem for everyone else who may want it. 

 3. Something else?

Wait for someone else to do it.

FreeBSD is a volunteer project and the best way to make it better
is to scratch your itches and contribute the result.

-- 
Steve O'Hara-Smith st...@sohara.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 ring a bell?

2013-10-07 Thread Steve O'Hara-Smith
On Mon, 07 Oct 2013 12:37:35 +0100
Frank Leonhardt fra...@fjl.co.uk wrote:

 In the good'ol days I could make UNIX ring a bell (literally) by sending 
 \a to the console TTY (an ASR33 in my case). Now there's an electronic 
 synthesised ting or beep from an terminal emulator IF it's got a sound 
 card and so on, and an IBM-PC had a beep routine in the BIOS.

Try this:

echo ^G  /dev/console

You'll have to type ^V^G to get a real ^G in the command line
(^ means control of course).

-- 
Steve O'Hara-Smith st...@sohara.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 ring a bell?

2013-10-07 Thread Steve O'Hara-Smith
On Mon, 07 Oct 2013 13:46:53 +0100
Frank Leonhardt fra...@fjl.co.uk wrote:

 Then there's the issue of writing it to the console rather than a 
 virtual terminal, but I have a few hacks that'll achieve that part.

/dev/console is your friend.

-- 
Steve O'Hara-Smith st...@sohara.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: cause of reboot

2013-09-30 Thread Steve O'Hara-Smith
On Mon, 30 Sep 2013 17:24:18 +0300
Emre Çamalan mail...@yandex.com wrote:

 Hi,
 my server reboots every night and same o'clock last 10 days. But this
 machine's uptime was 96days.
 
 Suddenly reboot this machine and now this continue every night again and
 again.
 
 I didn't find any reason and I didn't change anything else.
 
 I looked last command, 
 reboot ~ ~   AM 03.15  ~

That's likely something in the daily run going wrong, try disabling
items in there one by one (by editing /etc/periodic.conf - which probably
doesn't yet exist so create it and look in /etc/defaults/periodic.conf for
details) until you get through a night without a reboot. Then the next step
is to figure out why whatever is crashing the system does so, but first
let's find out what.

-- 
Steve O'Hara-Smith st...@sohara.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: persistence in freeBSD

2013-09-17 Thread Steve O'Hara-Smith
On Mon, 16 Sep 2013 10:29:26 -0400
Sam Fourman Jr. sfour...@gmail.com wrote:

 mount -o rw /

That would need to be

mount -u -o rw /

-- 
Steve O'Hara-Smith st...@sohara.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: persistence in freeBSD

2013-09-16 Thread Steve O'Hara-Smith
On Mon, 16 Sep 2013 15:20:00 -
atar atar.yo...@gmail.com wrote:

 Is there any way to enable persistence between reboots when using
 FreeBSD from a USB stick?

What exactly do you mean by enable persistence between reboots ?

-- 
Steve O'Hara-Smith st...@sohara.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: Proper way to share ZFS via NFS

2013-09-10 Thread Steve O'Hara-Smith
On Tue, 10 Sep 2013 12:10:13 +0100
krad kra...@gmail.com wrote:

 which is why you shouldnt use /etc/exports for zfs datasets. Just because

Not so clear, if you are using a mixture of filesystems you may
very sensibly opt to keep all your export controls in one place, similarly
if you have servers running multiple OSs then not having to remember that
the FreeBSD/ZFS box manages it's exports differently to the Linux/ext2fs
may well be a benefit. You may have management tools and not wish to extend
them to handle ZFS explicitly.

There can be good reasons both ways.

-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.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: ttys file question

2013-09-09 Thread Steve O'Hara-Smith
On Sun, 8 Sep 2013 23:13:37 -0700 (PDT)
Jack Mc Lauren jack.mclau...@yahoo.com wrote:

 Thanks. Another question is how can I change the default values of e.g.
 databits, stopbits and ... for the device? I can set the speed
 in /etc/ttys.

Look at the man pages for sio and stty - all the details are there.

-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.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: Proper way to share ZFS via NFS

2013-09-09 Thread Steve O'Hara-Smith
On Fri, 6 Sep 2013 11:43:03 -0700
aurfalien aurfal...@gmail.com wrote:

 Hi,
 
 Wondering whats the correct way to share ZFS, /etc/exports or via zfs
 commands which alter /etc/zfs/exports?

As far as I can see both work just fine. The first has the benefit
that it puts your ZFS exports in the standard place for exports and won't
need fiddling with if you decide that you want to move one of them to some
other filesystem. The second has the benefit that it integrates better with
the ZFS tools.

The one thing you don't want to do is put the same export in both.
-- 
Steve O'Hara-Smith st...@sohara.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: ttys file question

2013-09-08 Thread Steve O'Hara-Smith
On Sun, 8 Sep 2013 09:40:44 -0700 (PDT)
Jack Mc Lauren jack.mclau...@yahoo.com wrote:

 But I can not connect to my server with this configuration. But if I
 change ttyu6 to cuau6, everything works fine! I don't understand the
 difference, would you please explain the reason for me?

In short the tty devices are for outgoing connections, the cua
devices are for incoming connections.

For more detail see sio(4), after all the detail about multi-port
serial cards and their master ports comes a couple of paragraphs describing
the devices associated with each serial port in detail.

-- 
Steve O'Hara-Smith st...@sohara.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: Unusual file: /bin/[

2013-07-29 Thread Steve O'Hara-Smith
On Mon, 29 Jul 2013 15:45:10 +0200
cpghost cpgh...@cordula.ws wrote:

 On 07/29/13 15:25, Paul Macdonald wrote:
  Hi, I spotted what i'd call an unusual file in the basejail on a jail
  install, and have since seen this on other non jailed boxes.
  
  -r-xr-xr-x   2 root  wheel   11488 Jun 10 12:19 [
 
 That's a perfectly valid UNIX program used in
 (bourne) shell programming. It has been part of
 BSD Unix for ages. And I really mean AGES!

grin I recall someone deciding that /bin/[ looked iffy and
deleted it from a FreeBSD 1.1.5.1 box busy serving connections to a bunch
of dial up users. An amazing number of things stopped working.

-- 
Steve O'Hara-Smith st...@sohara.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: to gmirror or to ZFS

2013-07-21 Thread Steve O'Hara-Smith
On Sun, 21 Jul 2013 14:13:39 +0930
Shane Ambler free...@shaneware.biz wrote:

 On 21/07/2013 04:42, Steve O'Hara-Smith wrote:
  It's a pity there are now only two manufacturers of spinning rust.
 
 I thought there was three left - Seagate WD and Toshiba

I assumed Toshiba were out of the game, I've never seen anything
bigger than 500GB with a Toshiba label.

-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.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: to gmirror or to ZFS

2013-07-21 Thread Steve O'Hara-Smith
On Sun, 21 Jul 2013 00:27:01 -0700
per...@pluto.rain.com (Perry Hutchison) wrote:

 Steve O'Hara-Smith st...@sohara.org wrote:
 
  It's a pity there are now only two manufacturers of spinning rust.
 
 I didn't think there were _any_!  Haven't oxide-coated platters gone
 the way of the dodo bird?

Ah the technicalities, this is a software group :-)

-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.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: to gmirror or to ZFS

2013-07-20 Thread Steve O'Hara-Smith
On Sat, 20 Jul 2013 18:14:20 +0100
Frank Leonhardt fra...@fjl.co.uk wrote:

 It's worth noting, as a warning for anyone who hasn't been there, that 
 the number of times a second drive in a RAID system fails during a 
 rebuild is higher than would be expected. During a rebuild the remaining 
 drives get thrashed, hot, and if they're on the edge, that's when 
 they're going to go. And at the most inconvenient time. Okay - obvious 
 when you think about it, but this tends to be too late.

Having the cabinet stuffed full of nominally identical drives
bought at the same time from the same supplier tends to add to the
probability that more than one drive is on the edge when one goes. It's a
pity there are now only two manufacturers of spinning rust.

-- 
Steve O'Hara-Smith st...@sohara.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: ZFS install on a partition

2013-05-24 Thread Steve O'Hara-Smith
On Thu, 23 May 2013 11:00:21 +0200
Albert Shih albert.s...@obspm.fr wrote:

 Before I'm installing my server under 9.0 + ZFS I do some benchmarks with
 ionice to compare 
 
 FreeBSD 9.0+ ZFS + 12 disk SATA 7200 rpm vs CentOS + H700 + 12 disk
 SAS 15krpm
 
 (Both are same Dell poweredge).
 
 And the ZFS+12 disk sata goes much faster than CentOS+H700+ext4 almost
 everywhere. Only for small file AND small record size the ZFS is slower
 than CentOS. 

Hmm I wonder if that's mostly down to the SAS drives seeking faster
or between ZFS and ext4. The only real way to tell would be to give both
boxes the same kind of drives.

-- 
Steve O'Hara-Smith st...@sohara.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: List Spam Filtering

2013-05-12 Thread Steve O'Hara-Smith
On Sat, 11 May 2013 19:44:46 +0200
Julian H. Stacey j...@berklix.com wrote:

 Hi,
 Steve O'Hara-Smith wrote:
  On Thu, 09 May 2013 02:26:26 +0200
  Julian H. Stacey j...@berklix.com wrote:
  
   If list write access was changed to Subscribers Only:
 - List could silently discard such spam.
 - Postmaster@  ( webmaster@ weeding web archives) would have less
   work.
 - Less individual need to select spam phrases to copy to personal
   filters ( less time searching WTF dialect American above meant in
   English ;-).
  
  The downside is that it would require people to subscribe in
  order to ask a question, 
 
 True.  I suggest the up side outweighs the down side though.

From the point of view of subscribers perhaps, however from the
point of view of users who don't wish to subscribe in order to ask a single
question it is the other way round.

  this is also the reason for the convention of using
  Reply to all in FreeBSD mailing lists. It's been a convention for a
  *long* time, at least since FreeBSD 1.1 was shiny and new in 1993.
 
 I'm not intending to question or suggest any change re CC behaviour.
   (Maybe you mis-read or mis-infered what I intended, 

Not at all, just pointing out that the two things have a common
reason in the FreeBSD lists. Personally I doubt that either will change any
time soon.

or maybe I mis-wrote, or mis-implied, whatever, please forget that bit,
though as background I'd observe:
   Questions@ didn't exist for quite a while after FreeBSD started,
   Hackers@  some others preceded it.

A good many others indeed - but all the user lists have always
had the same conventions.

   Various people prune CC when they get littered with too many CC. )

True enough - and occasionally this loses the unsubscribed OP.

-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.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: List Spam Filtering

2013-05-11 Thread Steve O'Hara-Smith
On Thu, 09 May 2013 02:26:26 +0200
Julian H. Stacey j...@berklix.com wrote:

 If list write access was changed to Subscribers Only:
   - List could silently discard such spam.
   - Postmaster@  ( webmaster@ weeding web archives) would have less work.
   - Less individual need to select spam phrases to copy to personal
 filters ( less time searching WTF dialect American above meant in
 English ;-).

The downside is that it would require people to subscribe in order
to ask a question, this is also the reason for the convention of using
Reply to all in FreeBSD mailing lists. It's been a convention for a
*long* time, at least since FreeBSD 1.1 was shiny and new in 1993.

-- 
Steve O'Hara-Smith st...@sohara.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: Diskless question

2013-04-24 Thread Steve O'Hara-Smith
On Wed, 24 Apr 2013 10:18:59 +0200
Bernt Hansson b...@bananmonarki.se wrote:

 Hello list!
 
 I have set up a diskless machine with 8.3-stable and i as a user can log 
 in, but when I try to log in as root it won't work. How to resolv that 
 issue. I have tried with and without password but the computer said no.

Are you logging in on the console or by ssh ? By default ssh does
not allow root login, it can be enabled but you should read up on the
security implications carefully before enabling it. I would expect console
login to work fine.

As a general rule it is better to use sudo or su rather than
logging in as root, although for a single user system this doesn't really
make much difference.

-- 
Steve O'Hara-Smith st...@sohara.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: FreeBSD-update?

2013-04-24 Thread Steve O'Hara-Smith
On Wed, 24 Apr 2013 16:00:47 + (UTC)
Walter Hurry walterhu...@gmail.com wrote:

 When I issue 'freebsd-update fetch install I see this:
 
 Looking up update.FreeBSD.org mirrors... 3 mirrors found.
 Fetching metadata signature for 9.1-RELEASE from update5.freebsd.org... 
 done.
 Fetching metadata index... done.
 Inspecting system... done.
 Preparing to download files... done.
 
 No updates needed to update system to 9.1-RELEASE-p2.
 No updates are available to install.
 
 So if 'No updates (are) needed to update system to 9.1-RELEASE-p2',
 how do I actually update to 9.1-RELEASE-p2?
 
 $ uname -r
 9.1-RELEASE

You have updated to 9.1-RELEASE-p2 - but since there have been no
kernel changes since 9.1-RELEASE the kernel version message hasn't changed.
This could very reasonably be regarded as bug in the update/version
reporting process but I wouldn't hold my breath for a fix, as things stand
the version reported only changes when the kernel is updated, or if you
recompile it after the update.

-- 
Steve O'Hara-Smith st...@sohara.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: FreeBSD-update?

2013-04-24 Thread Steve O'Hara-Smith
On Wed, 24 Apr 2013 14:52:17 -0500
Mark Felder f...@feld.me wrote:

 On Wed, 24 Apr 2013 14:34:30 -0500, Steve O'Hara-Smith
 st...@sohara.org wrote:
 
  You have updated to 9.1-RELEASE-p2 - but since there have been no
  kernel changes since 9.1-RELEASE the kernel version message hasn't  
  changed.
  This could very reasonably be regarded as bug in the update/version
  reporting process but I wouldn't hold my breath for a fix, as things  
  stand
  the version reported only changes when the kernel is updated, or if you
  recompile it after the update.
 
 It would be nice if the version of the OS itself was stored in something  
 like /etc/freebsd-version so you know what the version of the OS as a  

Yes it would.

-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.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: FreeBSD-update?

2013-04-24 Thread Steve O'Hara-Smith
On Thu, 25 Apr 2013 08:43:59 +1000
Da Rock freebsd-questi...@herveybayaustralia.com.au wrote:

 On 04/25/13 06:31, Steve O'Hara-Smith wrote:
  On Wed, 24 Apr 2013 14:52:17 -0500
  Mark Felder f...@feld.me wrote:
 
  On Wed, 24 Apr 2013 14:34:30 -0500, Steve O'Hara-Smith
  st...@sohara.org wrote:
 
  You have updated to 9.1-RELEASE-p2 - but since there have been no
  kernel changes since 9.1-RELEASE the kernel version message hasn't
  changed.
  This could very reasonably be regarded as bug in the update/version
  reporting process but I wouldn't hold my breath for a fix, as things
  stand
  the version reported only changes when the kernel is updated, or if
  you recompile it after the update.
  It would be nice if the version of the OS itself was stored in
  something like /etc/freebsd-version so you know what the version of
  the OS as a
  Yes it would.
 
 sysctl kern.version

The problem under discussion is that the kernel version does not
change when a freebsd-update update does not include a kernel change.

-- 
Steve O'Hara-Smith st...@sohara.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: FreeBSD-update?

2013-04-24 Thread Steve O'Hara-Smith
On Thu, 25 Apr 2013 13:43:03 +1000
Da Rock freebsd-questi...@herveybayaustralia.com.au wrote:

 Interesting. My only observation was that sysctl is supposed to be the 
 'system' database where all queries relate to. It is supposed to display 
 everything about the system; therefore any of these data bits should be 
 fixed here first. Anything else would be a 'feature' :)

That would be nice - one way to achieve that would be to add a
writable oid for patch level and not bump newvers.sh for patches.

-- 
Steve O'Hara-Smith st...@sohara.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: State of Packages

2013-04-06 Thread Steve O'Hara-Smith
On Sat, 06 Apr 2013 15:25:42 -0500
Joshua Isom jri...@gmail.com wrote:

 I've been using FreeBSD since the summer of 2005, I still have the first 
 cd-r I used.  The fact that it's so easy makes me wonder why it hasn't 
 been done yet.  It's been almost five months.

It's easy to build a repository, it's hard to build a secure public
repository.

-- 
Steve O'Hara-Smith st...@sohara.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: use of the kernel and licensing

2013-04-01 Thread Steve O'Hara-Smith
On Mon, 01 Apr 2013 10:26:15 -0400
Joe fb...@a1poweruser.com wrote:

 snip
 
 How do you explain all the forks of UNIX each claiming their own 
 copyright.

Look very carefully at the copyrights involved, you will see
copyright attributions retained very carefully (see for example the
file /usr/src/COPYRIGHT in FreeBSD).

 They all provide the same concept, use the same names for 
 their commands, use the same programming language, have a filesystem as 
 their base.

These features are defined in open standards (POSIX and SUS) for
anyone who cares to implement them.

 Just where is the line drawn between a fork and a rewrite?

That's simple in essence, if it's written by taking a copy of the
code and modifying it then it's a fork (until and unless you can prove that
not one single line of the original code remains), if it's written from
scratch with no reference to the original code then it's a rewrite. I
suppose there are edge cases where a rewrite may include a portion taken
from the original (assuming compatible licensing), or where a fork has been
so heavily modified that little of the original remains.

-- 
Steve O'Hara-Smith st...@sohara.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: Copying memstick image to a USB (flash/thumb) drive

2013-03-28 Thread Steve O'Hara-Smith
On Thu, 28 Mar 2013 04:27:43 -0400
Quartz qua...@sneakertech.com wrote:

 
  I have filed the following PR:
 
  http://www.freebsd.org/cgi/query-pr.cgi?pr=177431
 
 Er, don't take my word for law: I have *no* idea if 1M is a good idea 
 for most systems, I'm not even sure if it's optimal for mine. I did a 
 single test with three random values at different orders of magnitude 
 and picked the fastest. I do think that 10k is probably way under the 
 right value, but someone should do proper testing on a variety of 
 hardware before changing all the docs.

The 1M will work fine, it's way bigger than any physical write. In
theory the performance should max out when the block size matches the
maximum physical write size of the controller (often 64K), but that assumes
zero read latency on the data feed so in practice larger block sizes help,
but except for things like tape they don't help much once you pass the
device/controller max write block size.

-- 
Steve O'Hara-Smith st...@sohara.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: svn new pkg system

2013-03-10 Thread Steve O'Hara-Smith
On Sun, 10 Mar 2013 13:18:04 -0400
Fbsd8 fb...@a1poweruser.com wrote:

 No body has made a case for NOT including svn in the base system. If it 
 can be a port there is no reason why it can not be included in the base 
 system.

Giorgos did when he said Subversion is a large system, with a ton
of dependencies which translates to a lot of work to keep it up to date in
the base system, and all sorts of fun and games when other things using
those dependencies need a newer version.

-- 
Steve O'Hara-Smith st...@sohara.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: Confused by restore(8) man page example

2013-03-04 Thread Steve O'Hara-Smith
On Mon, 04 Mar 2013 01:47:24 -0800
Ronald F. Guilmette r...@tristatelogic.com wrote:

 
 
 In the man page for restore(8) I see the following:
 
 The -r flag ... can be detrimental to one's health if
 not used carefully (not to mention the disk).  An example:
 
  newfs /dev/da0s1a
  mount /dev/da0s1a /mnt
  cd /mnt
 
  restore rf /dev/sa0
 
 
 Personally, I utterly fail to see what point the author is attempting
 to illustrate with the above example.  I mean what part of this, exactly,
 may be detrimental to one's health ?  It's an enigma to me.

There's nothing wrong with the example. I think An example:
should be in a new paragraph to make it clear that it is not related to
the warning. The detrimental effects cut in when you use -r on a filesystem
that is not pristine, or at least in the expected state for restoring an
incremental dump.

-- 
Steve O'Hara-Smith st...@sohara.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: Grepping though a disk

2013-03-04 Thread Steve O'Hara-Smith
On Mon, 4 Mar 2013 12:15:24 +0100
Polytropon free...@edvax.de wrote:

 But I don't know how to do this. From reading man dd
 my impression (consistent with my experience) is that
 the option skip= operates in units of bs= size, so I'm
 not sure how to compose a command that reads units of
 1 MB, but skips in units of 950 kB. Maybe some parts of
 my memory have also been marked unused by fsck. :-)

Not too hard (you'll kick yourself when you read down) - translation
to valid shell script is left as an exercise for the reader :)

 bs=50k count=(n*20) skip=(n*20 - 1)

Probably nicer to use powers of 2

bs=64k count=(n*16) skip=(n*16 - 1)

-- 
Steve O'Hara-Smith st...@sohara.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: make package vs pkg create

2013-02-24 Thread Steve O'Hara-Smith
On Sun, 24 Feb 2013 10:33:45 -0600
Joshua Isom jri...@gmail.com wrote:

 I tried making a build jail, not with pourdriere or tinderbox.  I just 
 went to the ports and ran `make -DBATCH package-recursive clean` to get 
 packages created.  I ran `pkg add *` in the packages/All directory, but 
 all failed because of MANIFEST missing.  I'm guessing this is a bug in 
 the .mk files, since I do have WITH_PKGNG set.

No bug, but you will need to run pkg repo  to turn the collection
of packages you've built into a pkgng repository.

  Is this a known problem 
 or is there supposed to be a different way to do it?  Am I just supposed 
 to use pourdriere or the source to keep my ports up to date until all 
 the packages are rebuilt on freebsd.org?

You don't need to use poudriere but it is very convenient once set
up. For example - updating the ports tree and rebuilding the affected ports

poudriere ports -u
poudriere bulk -f /root/packages -j build

build is my build jail, and /root/packages is a file listing the
packages I want.

-- 
Steve O'Hara-Smith st...@sohara.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: Why not simplify Copyright at boot/dmesg?

2013-02-23 Thread Steve O'Hara-Smith
On Sat, 23 Feb 2013 17:11:50 +0100
Polytropon free...@edvax.de wrote:

 On Sat, 23 Feb 2013 16:47:10 +0100, vermaden wrote:
  Why not simplify that:
  
  | Copyright (c) 1992-2013 The FreeBSD Project.
  | Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993,
  | 1994 The Regents of the University of California. All rights reserved.
  | FreeBSD is a registered trademark of The FreeBSD Foundation.
  | (...)
  
  ... into that:
  
  | Copyright (c) 1992-2013 The FreeBSD Project.
  | Copyright (c) 1979-1994 The Regents of the University of California.
  | FreeBSD is a registered trademark of The FreeBSD Foundation.
  | (...)
 
 Because you need to exclude 1981, 1982, 1984, 1985, 1987 and 1990
 which are missing in list of years. :-)

There's that, also that copyright message belongs to the Regents of
the University of California and unless I misremember one of the license
conditions is retaining their copyright notice - altering it would probably
be a license violation.

-- 
Steve O'Hara-Smith st...@sohara.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: Why not simplify Copyright at boot/dmesg?

2013-02-23 Thread Steve O'Hara-Smith
On Sat, 23 Feb 2013 15:56:46 -0600
Joseph A. Nagy, Jr jnagyjr1...@gmail.com wrote:

 On 02/23/13 15:33, Joshua Isom wrote:
  On 2/23/2013 1:10 PM, Joseph A. Nagy, Jr wrote:
 snip
  It seems the regents copyright claims end in 1994. Perhaps some
  underlying piece of code is still in FreeBSD requiring this notice?
 
 
  Perhaps the creation of FreeBSD and the release of 4.4BSD?  Nothing from
  Berkley's been added, so no new copyright.  There's little need to
  incorporate later patches to 4.4BSD because divergences between the
  4.4BSD and FreeBSD.

It's even simpler than that 4.4 BSD Lite2 was the final release
from Berkeley CSRG in 1994. There have been no later patches to 4.4BSD from
Berkeley, that was the last release of any kind from CSRG. FreeBSD 2.0 was
based on 4.4-Lite, the updates in Lite2 were merged in pretty quickly IIRC.

 Not that I find it an issue, but could whatever is left over be removed? 
 Just a thought, not a concern.

I can't think why anyone would want to, and I expect there's a *lot*
left over, certainly their copyright notice appears in many files
in /usr/src.

-- 
Steve O'Hara-Smith st...@sohara.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: I made a mess. libc

2013-02-21 Thread Steve O'Hara-Smith
On Thu, 21 Feb 2013 18:22:47 +0100
Bernt Hansson b...@bananmonarki.se wrote:

 2013-02-21 18:01, Teske, Devin skrev:
  Is it the base machine that won't boot? I got this ...
 
 That is correct. So no cd burning no nothing...Well it want to drop in 
 to a single shell bla bla bla press enter for /bin/sh
 
 enter
 libexec* libc.so.7: invalid file format

IIRC you get an option at this point to enter a full path to the
shell, enter /rescue/sh which will get you a statically linked shell. You
should then be able to use the tools in /rescue to replace libc provided
you can somehow get a copy of it where you can read it.

-- 
Steve O'Hara-Smith st...@sohara.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: FreeBSD 9.1 Update?

2013-02-19 Thread Steve O'Hara-Smith
On Tue, 19 Feb 2013 12:26:18 -0600
Denzel Turner dgt...@gmail.com wrote:

 Hello Folks,
 
 /**/
 
  When the FreeBSD 9.1 Update functionality gets rebuilt and back on-
 
 line so that fetch freebsd-update will get updates for FreeBSD 9.1, how
 will 
 
 users be notified? I am unsure of which Mailing List would cover this
 info.

I don't think freebsd-update has been down, at least not for any
significant length of time. It's certainly working now, earlier today I
updated my 9.1 installations using it.

-- 
Steve O'Hara-Smith st...@sohara.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: FreeBSD 9.1 Update?

2013-02-19 Thread Steve O'Hara-Smith
On Tue, 19 Feb 2013 14:03:56 -0600
Denzel Turner dgt...@gmail.com wrote:

 Hello Gentlemen and thank you for the prompt response. I thought
 freegsd-update for FreeBSD 9.1 only updated with FreeBSD 9.0 Packages as
 the Update Functionality Infrastructure was being rebuilt. I might be
 wrong about this but I thought this was put out in the FreeBSD 9.1
 Announcement.

Ah I see the confusion. The package building  infrastructure is
indeed still being rebuilt and so there are no packages for 9.1 and the
only packages on the distribution sites are now quite old. However the base
system updates used by freebsd-update are still being produced.

 I am learning about FreeBSD after not using it for several
 years. My first FreeBSD was 5.4 i386 version.

Hmm that release occurred during my break from FreeBSD between 4.x
and 9.0. My first FreeBSD install was 1.1.

-- 
Steve O'Hara-Smith st...@sohara.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: [kde-freebsd] tmux and konsole characters

2013-02-03 Thread Steve O'Hara-Smith
On Sun, 03 Feb 2013 11:54:16 -0500
Andre Goree an...@drenet.info wrote:

 Thanks!  That was it...I opened a new konsole window, set the encoding
 to UTF-8 (which my arch linux box is using) and the lines show up fine.
 
 On a related note, I guess I can set LANG=en_US.UTF-8 in my .bashrc and
 have that as my default, no?  Any nuances on en_US.UTF-8 vs. ISO8859?
 I've never really ever needed to deal with locales before, but I believe
 UTF-8 offers more characters, no?

The iso8859 encodings are 256 character maps, the UTF-8 encoding
covers the entire million character range of unicode (or iso10646 which
amounts to the same thing) how well it displays depends on the font being
used. This one has pretty good coverage.

-misc-fixed-medium-*-*-*-*-140-*-*-*-*-iso10646-*

There's a wonderful file around called UTF-9-demo.txt produced by
Markus Kuhn which shows off the capability of UTF-8 pretty well, and tests
your font support unmercifully (the font above can cope with the whole
document, and an up to date urxvt handles the alignment correctly).

There is a great deal to be said for adopting unicode by default,
and generally in the form of UTF-8. I regard the iso8859 encodings as
basically obsolete. Unicode has it's faults, but it is the best general
purpose encoding system available. There are also tools for unicode that
can handle problems such as correctly sorting text for different languages
which is not as easy as you might think.

-- 
Steve O'Hara-Smith st...@sohara.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: ZFS - whole disk or partition or BSD slice?

2013-01-28 Thread Steve O'Hara-Smith
On Mon, 28 Jan 2013 11:40:53 +0200
Volodymyr Kostyrko c.kw...@gmail.com wrote:

 28.01.2013 09:03, Steve O'Hara-Smith:
  On Sun, 27 Jan 2013 22:05:05 -0800
  Michael Sierchio ku...@tenebras.com wrote:
 
  On Sun, Jan 27, 2013 at 5:36 PM, Shane Ambler free...@shaneware.biz
  wrote:
 
  I recall reading that using partitions for zfs on FreeBSD was as good
  as full disks.
 
  No, it isn't - ZFS can fully utilize disk caches when presented with
  whole devices. There are possible reasons to create partitions - one
  being that if an unfriendly OS sees the device, it won't try to
  initialize it if it sees a partition map.  Another is using a cheap
  RAID controller that can't be fully disabled - in which case you
  generally need to create a partition that doesn't include the last few
  sectors of the disk, where such controllers keep magic data.
 
  There's one other good reason to use partitions when mirroring.
  When the time comes to replace a drive in a mirror it is necessary that
  the new drive be the same size (or larger) than the one it replaces.
  Given that drives of nominally the same capacity (and even of the same
  type and brand bought at different times) tend not to be exactly the
  same size using a partition a little smaller than the whole drive makes
  it certain that a replacement drive will be big enough to use in the
  mirror when it arrives.
 
 There's no need for that as ZFS can use same or bigger partition to 
 mirror existing one. If the second one would be smaller - do some math 
 and cut out some swap space.

The problem arises when a drive fails, you order a replacement
(go down the shop whatever) and when the new disc arrives and it's a few
blocks smaller than the existing one. Then it cannot be used to mirror the
existing one and you're in for a messy job to get a working mirror up.

-- 
Steve O'Hara-Smith st...@sohara.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: Cronjob Cvsup - What?

2013-01-27 Thread Steve O'Hara-Smith
On Sun, 27 Jan 2013 09:51:12 -0500
MFV mrk...@acm.org wrote:

 The only downside with svn seems to be the 728 MB footprint.

With hard disc space running at around 10c per gigabyte it's a
minor issue.

-- 
Steve O'Hara-Smith st...@sohara.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: ZFS - whole disk or partition or BSD slice?

2013-01-27 Thread Steve O'Hara-Smith
On Sun, 27 Jan 2013 22:05:05 -0800
Michael Sierchio ku...@tenebras.com wrote:

 On Sun, Jan 27, 2013 at 5:36 PM, Shane Ambler free...@shaneware.biz
 wrote:
 
  I recall reading that using partitions for zfs on FreeBSD was as good as
  full disks.
 
 No, it isn't - ZFS can fully utilize disk caches when presented with
 whole devices. There are possible reasons to create partitions - one
 being that if an unfriendly OS sees the device, it won't try to
 initialize it if it sees a partition map.  Another is using a cheap
 RAID controller that can't be fully disabled - in which case you
 generally need to create a partition that doesn't include the last few
 sectors of the disk, where such controllers keep magic data.

There's one other good reason to use partitions when mirroring.
When the time comes to replace a drive in a mirror it is necessary that the
new drive be the same size (or larger) than the one it replaces. Given that
drives of nominally the same capacity (and even of the same type and brand
bought at different times) tend not to be exactly the same size using a
partition a little smaller than the whole drive makes it certain that a
replacement drive will be big enough to use in the mirror when it arrives.

-- 
Steve O'Hara-Smith st...@sohara.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: Best approach to jails + zfs

2013-01-25 Thread Steve O'Hara-Smith
On Fri, 25 Jan 2013 18:25:06 +0100
bsd b...@todoo.biz wrote:

 Hi, 
 
 I wanted to have the point of view of the community on the best approach
 in order to handle a quite large system with couple of jails (shouldn't
 have more than 5 to 10). Whole system is based on zfs. I'll use this as a
 backup server.

You might like the sysutils/ezjail port - I use it for a very
similar purpose and find it works well.

-- 
Steve O'Hara-Smith st...@sohara.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: Best approach to jails + zfs

2013-01-25 Thread Steve O'Hara-Smith
On Fri, 25 Jan 2013 19:14:45 +0100
bsd b...@todoo.biz wrote:

 Le 25 janv. 2013 à 18:41, Steve O'Hara-Smith a écrit :
 
  On Fri, 25 Jan 2013 18:25:06 +0100
  bsd b...@todoo.biz wrote:
  
  Hi, 
  
  I wanted to have the point of view of the community on the best
  approach in order to handle a quite large system with couple of jails
  (shouldn't have more than 5 to 10). Whole system is based on zfs. I'll
  use this as a backup server.
  
  You might like the sysutils/ezjail port - I use it for a very
  similar purpose and find it works well.
  
  -- 
  Steve O'Hara-Smith st...@sohara.org
 
 
 
 I am a bit skeptical on the third party script approach. 
 
 How stable has It been ? 

Rock solid - for me YMMV of course. The underpinnings are quite
straightforward so it should be easy to fix anything that does go astray.

 ZFS has introduced a new challenge, but now that I have understood (more
 or less) how It is working, I found It really great! Just trying to
 figure out the best way to use both Jail + ZFS. 
 
 But I might re-consider my position… Does ezjail comply with the latest
 FreeBSD 9 / 9.1 advances in jail / ZFS management improvement ? 

I'm using it on a 9,1 box to admin a bunch of 9.1 jails. It doesn't
require ZFS but it can use it (along with a variety of other storage
options). It uses standard ZFS commands to do it's work with ZFS.

It's just a shell script program (albeit a 1500 line one), I might
have written a simpler, cruder one myself had it not existed and worked.

-- 
Steve O'Hara-Smith st...@sohara.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: shell script problem

2012-12-23 Thread Steve O'Hara-Smith
On Sun, 23 Dec 2012 09:57:02 +
Matthew Seaman matt...@freebsd.org wrote:

 Hmmm I'd just like to draw your attention to the comm(1) program,
 which lets you find lines common to two files, or only in one or other
 of a pair of inputs, very easily.  The only slight gotcha is that the
 input files have to be sorted.

For which purpose the sort program is most useful.

-- 
Steve O'Hara-Smith st...@sohara.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: Obsolete Shared Libraries?

2012-12-18 Thread Steve O'Hara-Smith
On Tue, 18 Dec 2012 12:40:39 + (UTC)
Walter Hurry walterhu...@gmail.com wrote:

 9.1 RC3 (started out as 9.0 RELEASE)
 
 Over time, as ports have been upgraded, I seem to have accumulated a 
 number of obsolete shared libraries - a recent example being /usr/local/
 lib/libpcre.so.1, which appears no longer to be linked in by anything, 
 having been replaced by libpcre.so.3.
 
 Is there a convenient and safe utility to clean out this detritus? I'm 
 not trying to save disk space or anything; it's just a matter of tidiness.

portsclean - it will also tidy up distfiles, packages and work
areas.

-- 
Steve O'Hara-Smith st...@sohara.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: serial connection

2012-12-16 Thread Steve O'Hara-Smith
On Sat, 15 Dec 2012 22:43:43 -0600
Jonathan P chavode...@hotmail.com wrote:

 hello everyone, i need to establish a connection between 2 freebsd
 systems, but i have to this over a serial line, any advices? thank you
 all so much!

It's been a long time - but this should help.

You'll want to use ppp in dedicated mode to achieve this. Try
setting it up by hand first and then move it to ppp.conf files and arrange
boot time startup. On both sides specify device, speed and IP addresses
then on one side use the dial command to bring up the connection.

It's similar to this vpn over ssh setup with different device
configuration http://www.semicomplete.com/articles/ppp-over-ssh//

-- 
Steve O'Hara-Smith st...@sohara.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: switching from i386 to amd64

2012-12-16 Thread Steve O'Hara-Smith
On Sun, 16 Dec 2012 12:48:40 +0100
Ralf Mardorf ralf.mard...@rocketmail.com wrote:

 Specific requirements _could_ be wine and nVidia's proprietary GPU
 driver, as far as I know. - Polytropon (Btw. thank you Polytropon :)

I'm using amd64 on an Atom/ION box here, the Nvidia binary drivers
work fine for both openGL and the vdpau stuff. Virtualbox worked fine too,
but this Atom doesn't have hardware virtualisation support so it's a bit
sluggish. I've not tried (or wanted) Wine in years.

-- 
Steve O'Hara-Smith st...@sohara.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: Safe Way to Tell if Process is Running

2012-12-04 Thread Steve O'Hara-Smith
On Tue, 04 Dec 2012 14:50:38 -0600
Martin McCormick mar...@x.it.okstate.edu wrote:

 Robert Bonomi writes:
  'man 2  kill' tells all.
 
   I believe that is the first or second time I have used
 Section 2. I appreciate the reminder. It looks like ps -p ###
 /dev/null appears to do what I need without producing output
 
 ps -p 54321 /dev/null  date ran the date command if there was
 a process with that number and produced nothing if no process
 54321 existed.

That's not a certain test, ps can miss processes. Given that you
are working in C you would be better off calling kill directly rather than
spawning a process with system and risking picking up some odd
implementation of a command.

if (-1 != kill(pid, 0)) {
// Process exists
} else if (EPERM == errno) {
// No permission to signal process - belongs to someone else
} else if (ESRCH == errno) {
// Process does not exist
} else {
// Something weird and undocumented went wrong
}

-- 
Steve O'Hara-Smith at...@sohara.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: root filesystem and soft-update

2012-12-04 Thread Steve O'Hara-Smith
On Tue, 4 Dec 2012 16:50:42 -0500
Rick Miller vmil...@hostileadmin.com wrote:

 Hi all,
 
 I remember one time seeing a site that explained why soft-updates was
 not enabled for the root filesystem.  I tried looking for it earlier,
 but failed to locate it.  Is there someone who knows where it is?

No idea about where it is, but I can recall the reasons.

The root filesystem is often quite small and the delay in space
freed by deletions could cause the filesystem to fill up during an update
resulting in a failed update and a partially hosed root filesystem (not
inconsistent, just incomplete - but if it's /bin/sh that's gone it could be
tricky recovering).

The other reason is that softupdates is about optimising write
performace, and the root filesystem shouldn't be getting many writes in
normal use so softupdates is of no benefit.

-- 
Steve O'Hara-Smith at...@sohara.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: set connection to a modem

2012-12-02 Thread Steve O'Hara-Smith
On Sun, 2 Dec 2012 12:28:59 +0400
Peter Vereshagin pe...@vereshagin.org wrote:

 Hello.
 
 2012/12/02 09:41:12 +0330 s m sam.gh1...@gmail.com = To Chris Petrik :
 sm thanks chris
 sm 
 sm ppp is used when you want connect to internet via modem. 
 
 What if your (or someone else's) ISP use dial-back?
 
 This way ppp(8) can't be used because it's not you want to connect to
 internet but internet wants to connect you?
 
 I believe ppp is an equal peers'  peer-to peer (point-to-point) protocol.
 
 And it can be used for dial-in conections.

Of course it can be used for dial in connections, that's what
happens at the ISP end of the connection. It can also be used for fixed
point to point connections over directly wired connections or leased line
modems or using ATM as a carrier.

All of this is covered in great detail in section IV of the
handbook - 27 Serial Communications and 28 PPP and SLIP.

-- 
Steve O'Hara-Smith at...@sohara.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: Re[2]: How to allow httpd to run 'ipfw table 7 add ... '

2012-11-30 Thread Steve O'Hara-Smith
On Thu, 29 Nov 2012 23:03:08 +0200
Eugen Konkov kes-...@yandex.ru wrote:

 Здравствуйте, Steve.

 SOHS The only problem with this is it will allow apache to
 SOHS do anything with ipfw including flush all of the rules. I would
 SOHS suggest having apache dumping the parameters of the command to
 SOHS be run into a queue of some kind (named pipe perhaps or a file
 SOHS based queue if it's important to survive shutdowns) and have a
 SOHS process reading the queue, sanity checking the parameters and
 SOHS then executing the appropriate command.
 
 maybe:
 apache host=(root) NOPASSWD: /my/script/add_table.pl
 apache host=(root) NOPASSWD: /my/script/del_table.pl
 
 this will restrict apache to run only add/del tasks with table.
 what do you think?

That also works. I have a slight preference for queue based approaches 
but that's just me really.

-- 
Steve O'Hara-Smith st...@sohara.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 you manage jails?

2012-11-29 Thread Steve O'Hara-Smith
On Thu, 29 Nov 2012 09:05:30 -0500
Rick Miller vmil...@hostileadmin.com wrote:

 Hi All,
 
 I want to inquire how the majority of users manage jails within their
 own environments.  Do you use the utilities described in the handbook
 in chapter 16 or some other management facility like qjail or ezjail?

ezjail here - my fileserver runs a bunch of jails for various services 
as well as a build jail. I find it convenient and it hasn't annoyed me yet.

-- 
Steve O'Hara-Smith st...@sohara.org
---BeginMessage---
On Thu, 29 Nov 2012 09:05:30 -0500
Rick Miller vmil...@hostileadmin.com wrote:

 Hi All,
 
 I want to inquire how the majority of users manage jails within their
 own environments.  Do you use the utilities described in the handbook
 in chapter 16 or some other management facility like qjail or ezjail?

ezjail here - my fileserver runs a bunch of jails for various services 
as well as a build jail. I find it convenient and it hasn't annoyed me yet.

-- 
Steve O'Hara-Smith st...@sohara.org
---End Message---
___
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: portsnap

2012-11-22 Thread Steve O'Hara-Smith
On Thu, 22 Nov 2012 10:40:59 +0100
Polytropon free...@edvax.de wrote:

 On Wed, 21 Nov 2012 21:44:40 + (UTC), jb wrote:
 
  This is not the same what portsnap(8) does:
  portsnap ... command ...
  This command word is non-executable by itself; it has a meaning only
  as a special word passed to portsnap command to tell it what to do
  internally, just a kind of special indicator to be used for conditional
  processing: if arg=fetch then do-fetch-routine
  else if arg=update then do-update-routine
  else 
 
 That is _one_ possibility for interpretation. However, the
 bare word command carries two, maybe three aspects.
 1st: the commander: _who_ provides the command?
 2nd: the command content: _what_ is to be done?
 3rd: the commanded one: _who_ will execute the command?

I think it's past time

 +---+ .:\:\:/:/:.
 |   PLEASE DO NOT   |:.:\:\:/:/:.:   
 |  FEED THE TROLLS  |   :=.' -   - '.=:  
 |   |   '=(\ 9   9 /)='  
 |   Thank you,  |  (  (_)  ) 
 |   Management  |  /`-vvv-'\ 
 +---+ / \
 |  |@@@  / /|,|\ \   
 |  |@@@ /_//  /^\  \\_\  
   @x@@x@|  | |/ WW(  (   )  )WW  
   \/|  |\|   __\,,\ /,,/__   
\||/ |  | |  (__Y__)  
/\/\/\/\/\/\/\/\//\/\\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
==

-- 
Steve O'Hara-Smith at...@sohara.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: Home Server

2012-11-21 Thread Steve O'Hara-Smith
On Wed, 21 Nov 2012 10:52:12 -0600
Nicholas MIller nick.k...@gmail.com wrote:

 My question(s) regard storage.  Depending on which case I end up using or
 if i purchase a new one, will have access to either 4(four) or 6(six) hard
 drive bays.  The only things I really *need* redundancy for would be the
 centralized backups. Which has me leaning towards zfs.  However since I'll
 probably want to use some of the space from the drives in that pool, but
 won't need redundancy I'm not quite sure how to proceed.

With that many drive bays, and the low cost of disc space I'd go
for a big ZFS mirror for storage and put just about everything on it. You
might have some data that doesn't need to be mirrored but I'll bet there's
not much that wouldn't be a PITA to lose.

-- 
Steve O'Hara-Smith at...@sohara.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: csup to svn

2012-11-21 Thread Steve O'Hara-Smith
On Wed, 21 Nov 2012 12:52:14 -0500
Fbsd8 fb...@a1poweruser.com wrote:

 You missed to whole point of my question.
 I don't want to maintain the WHOLE ports tree.
 I only want to download selected single port.
 My current ports tree only has 2 ports, apache22 and php5.
 So your reply did not answer my question.
 Thanks any how.

This works

svn co svn://svn0.us-east.freebsd.org/ports/head/www/apache22 .

If you do it in /usr/ports/www/apache22 then the port winds up in a
sane place. Once you have it you can do svn up in /usr/ports/www/apache22 to
update it.

This will probably become intolerably clumsy for more than a
handful of ports.

-- 
Steve O'Hara-Smith at...@sohara.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: portsnap

2012-11-20 Thread Steve O'Hara-Smith
On Tue, 20 Nov 2012 09:15:16 + (UTC)
jb jb.1234a...@gmail.com wrote:

 Robert Bonomi bonomi at mail.r-bonomi.com writes:
 
  You persist in repeating your error.
  ...
 
 Well, yes - CLI applies to many environments (not only OSs), with the same
 basic format.

Why don't the pair of you try and understand each other instead of
arguing over the meanings of words as though it was a matter of life and
death. As it happens you are *both* right about the usage of the word
command. You *both* fail to appreciate that like *every* other word in the
English language it has a context dependant meaning.

Stop masturbating over a dictionary and work on your problem or
take it elsewhere - please.

-- 
Steve O'Hara-Smith at...@sohara.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: portsnap

2012-11-20 Thread Steve O'Hara-Smith
On Tue, 20 Nov 2012 10:46:55 + (UTC)
jb jb.1234a...@gmail.com wrote:


 Educate yourselves, please. It's scary when one confuses command arguments
 with a command because some nitwit described/called it that way.
 jb

Well with nearly 30 years in unix software development I do know a
thing or two about it. However that is not relevant, the sad thing is that
you have destroyed any chance of getting whatever help you wanted by
deciding to argue about what you think words should mean instead of
understanding how they are being used.

-- 
Steve O'Hara-Smith at...@sohara.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: virtualbox with FreeBSD as host

2012-11-18 Thread Steve O'Hara-Smith
On Mon, 19 Nov 2012 01:08:01 +1100
andrew clarke m...@ozzmosis.com wrote:

 On Sun 2012-11-18 08:50:34 UTC-0500, Fbsd8 (fb...@a1poweruser.com) wrote:
 
  By design virtualbox requires a desktop on the host to use the
  virtualbox built in config screens and the only way to access a
  configured and installed guest VM is from a remote PC with a desktop.
 
 No, you can create and configure VirtualBox VMs using the command-line
 VBoxManage. I do this over SSH. See the VirtualBox manual (PDF).

There are even command line tools such as Vagrant for managing
virtual box VMs using baseline images and definition files to create VMs on
the fly in response to a simple command.

-- 
Steve O'Hara-Smith at...@sohara.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: virtualbox with FreeBSD as host

2012-11-17 Thread Steve O'Hara-Smith
On Sat, 17 Nov 2012 01:10:23 -0800
per...@pluto.rain.com wrote:

 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.

Yes, but the virtualised display talks to X as the display backend.

-- 
Steve O'Hara-Smith at...@sohara.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: 9.0 crash, ssd or filesystem problem?

2012-11-15 Thread Steve O'Hara-Smith
On Thu, 15 Nov 2012 13:30:43 -0600
Adam Vande More amvandem...@gmail.com wrote:

 Sounds like you have bad hardware.  Drive, cable, controller etc.
 Probably wouldn't hurt to do a fsck either.

*After* identifying and fixing the hardware problem, otherwise you
may make things worse.

-- 
Steve O'Hara-Smith at...@sohara.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: IPv6in4 tunnel with only one /64 prefix

2012-11-07 Thread Steve O'Hara-Smith
On Wed, 07 Nov 2012 22:21:30 +0100
Frédéric Perrin f...@fperrin.net wrote:

 I have a FreeBSD server with native IPv6 connectivity. At home, my ISP
 provides me with only IPv4 connectivity. In order to get IPv6 to the
 home, I had the idea of creating a 6in4 tunnel between my home gateway
 and my FreeBSD server. The part about creating the tunnel, routing
 between the home and the server works using private addresses (fc00::/8
 over gif0).

Why not just get a tunnel from one of the tunnel brokers, at least
he.net and gogo6.com are still running free tunnels.

-- 
Steve O'Hara-Smith at...@sohara.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: Re[2]: HELP: some process eat my /var

2012-11-02 Thread Steve O'Hara-Smith
On Fri, 2 Nov 2012 21:20:51 +0200
Eugen Konkov kes-...@yandex.ru wrote:

 Notice df -h
 /dev/ada0s1d 30G 23G3.7G87%/var
 
 and notice du -h -d 1
 6.2G
 
 I have only 6.2G are occupied by files
 
 where 18Gb of disk space?

Probably in a deleted file still open by some process.

-- 
Steve O'Hara-Smith at...@sohara.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 to disable page breaks in line printer

2012-10-30 Thread Steve O'Hara-Smith
On Tue, 30 Oct 2012 10:53:56 GMT
Anton Shterenlikht me...@bristol.ac.uk wrote:

 I thought from reading printcap(5)
 that pl sets page length is lines,
 so if I make it long enough, I should
 see no page breaks. Still, I get
 empty space at the bottom of the
 physical page and empty space at
 the top of the next.
 Surely I'm missing someting.
 How to get rid of this empty space?

The printer may be doing this internally, many dot matrix printers
had the ability to set the page length and perforation skip on DIP
switches.

-- 
Steve O'Hara-Smith at...@sohara.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: Which NNTP newsreader for huge newsgroups?

2012-10-30 Thread Steve O'Hara-Smith
On Tue, 30 Oct 2012 15:56:30 +0100
C. P. Ghost cpgh...@cordula.ws wrote:

 Hello,
 
 I'm looking for an NNTP newsreader that can gracefully
 handle newsgroups with a *huge* number of posts, if
 possible with a moderate memory and CPU footprint.
 
 My newsreader of choice, news/tin, while quite good for
 newsgroups with a moderate number of articles can't
 cope with some alt.binaries.* groups that contain over
 2,000,000+ active/unread articles. It effectively thrashes

For binaries I wouldn't use a newsreader at all. I'd use something
like nzbget and an nzb search service.

-- 
Steve O'Hara-Smith at...@sohara.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: FreeBSD based, standalone, print server

2012-10-25 Thread Steve O'Hara-Smith
On Thu, 25 Oct 2012 16:20:35 +0700 (ICT)
Olivier Nicole olivier.nic...@cs.ait.ac.th wrote:

 2) I find a solution to bridge the parallel port and the ethernet
port. This is more exciting and I keep the quota and spooling on
the original print server.

There are very cheap network print servers available, finding one
with parallel might be harder.

-- 
Steve O'Hara-Smith at...@sohara.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: FreeBSD based, standalone, print server

2012-10-25 Thread Steve O'Hara-Smith
On Thu, 25 Oct 2012 18:10:13 +0700
Olivier Nicole olivier.nic...@cs.ait.ac.th wrote:

 I am digging along the line of netgraph, but ther eis no netgraph for
 parallel port :(

If there was it would be a connection to a PLIP network - actually
I'd be surprised if there wasn't.

-- 
Steve O'Hara-Smith at...@sohara.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: MFS root filesystem and static binaries size

2012-10-17 Thread Steve O'Hara-Smith
On Tue, 16 Oct 2012 13:13:41 -0700
Devin Teske devin.te...@fisglobal.com wrote:

 When two files have the same inode, they are hard links to each other.
 Unlike a soft link (or symbolic link as they are more appropriately
 called), which stores a destination-path of the target, a hard link
 instead looks and acts no different than the original in every way.

A better way of thinking about it (ie. closer to reality) is that
the inode entry is the file. When two directory entries both have the same
inode number in them they refer to the same file. Crunchgen produces a
file  with a lot of names.

-- 
Steve O'Hara-Smith at...@sohara.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: ZFS and zpool mistake

2012-10-08 Thread Steve O'Hara-Smith
On Mon, 08 Oct 2012 17:29:46 +0200
Matthias Fechner ide...@fechner.net wrote:

 Dear list,
 
 I installed a freebsd with freebsd on a zfs root and only one disk:
   pool: zroot
  state: ONLINE
   scan: none requested
 config:
 
   NAME STATE READ WRITE CKSUM
   zrootONLINE   0 0 0
 ada0p3 ONLINE   0 0 0
 
 This disk was now insterted into the computer and boots fine.
 The next step I wanted was to setup a mirror with a second disk.
 
 So I inserted a second disk, configured everything with gpart and added
 the disk to the zroot with:
 zpool add zroot gpt/disk1
 (I think I had to execute zpool add zroot mirror gpt/disk1, this is not
 clear from the man page)

You need add for a stripe and attach for a mirror.

 And now I have a problem, it seems not to be a mirror but a stripe:
   NAME STATE READ WRITE CKSUM
   zrootONLINE   0 0 0
 ada0p3 ONLINE   0 0 0
 gpt/disk1  ONLINE   0 0 0
 
 Is there any chance to get it into a mirror?
 
 I don't think there was anything written to the second disk but I cannot
 remove it anymore.

Yep once you've added a stripe there's no way to remove it. You'll
have to copy the data off somewhere and then rebuild the pool.

-- 
Steve O'Hara-Smith at...@sohara.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: Port update hosed entire system

2012-10-02 Thread Steve O'Hara-Smith
On Tue, 2 Oct 2012 09:16:43 +0200
Polytropon free...@edvax.de wrote:

 On Tue, 2 Oct 2012 06:20:45 -0400, Rod Person wrote:
  It would never have occured to me that updating a port that
  has to do with audio and video containers would totally leave me unable
  to login into my system or issue and shell commands without getting
  a segmentation fault.
 
 I find it very hard to see a correlation here. Coincidence? Yes,
 but I cannot imagine a way a port can dmage the system in that
 way so not even shell commands keep working...
 
 
 
  I did discover that my / file system had run out of space -131MB.
 
 That could show that some part of important content on / has
 not been written yet - it's still held in write buffers

No, the negative free space simply means that you have encroached
on to the reserved space (only root can do this) which is usually used to
optimise the layout when writing new data.

 pending. So you could first check what takes up space in /
 that is not required to be there, and remove it, then the
 write buffers will be written properly. A sync command
 could do this on request.

Having negative free space will prevent non root users from writing
data, but that will be returned to the applications as error returns to
write calls not held in write buffers.

 Check with df -h for _no_ negative values before rebooting
 the system into SUM. I'm not sure if the write buffers can
 survive a shutdown.

They can't but they're not connected with negative free space
reports. A normal shutdown will flush all the buffers.

  I'm still able to issue sudo, so using sudo rm -r I was able to free up
  25GB...but still, /bin/sh, ls, clear all seg fault and su doesn't work
  and switching consoles doesn't let me log in.
 
 That sounds that somehow calling programs (executing / forking)
 is not working properly anymore. As this is one of the most
 fundamental mechanisms of the systems, it's hard to believe
 that this can be triggered through a port update...

More likely one of the shared libraries they all use has been
overwritten. Updating ports certainly shouldn't be able to do this though.

The stuff in /rescue should work fine for getting a usable
environment to go bug hunting in, but without a deep and intimate knowledge
of how things are supposed to be it's going to be hard short of
reinstalling.

-- 
Steve O'Hara-Smith at...@sohara.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: sockstat

2012-10-02 Thread Steve O'Hara-Smith
On Tue, 2 Oct 2012 05:42:51 -0500
ajtiM lum...@gmail.com wrote:

 Hi!
 
 I have FreeBSD 9.1-RC1 #0 and I running KDE 4.8.4 too.
 If I run KDE and try sockstat -l46 I get:
 
 sockstat -l46
 USER COMMANDPID   FD PROTO  LOCAL ADDRESS FOREIGN
 ADDRESS ajtimknemo  35725 10 udp4   *:*   *:*
 root Xorg   33842 1  tcp6   *:6000*:*
 root Xorg   33842 3  tcp4   *:6000*:*
 
 Is it normal root Xorg...
 I am running Xorg (kde) as user.

Yes, the X server needs device access not available to normal
users so it run setuid root.

-- 
Steve O'Hara-Smith at...@sohara.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: sockstat

2012-10-02 Thread Steve O'Hara-Smith
On Tue, 2 Oct 2012 16:26:59 -0500
ajtiM lum...@gmail.com wrote:

 On Tuesday 02 October 2012 05:50:57 Steve O'Hara-Smith wrote:
  On Tue, 2 Oct 2012 05:42:51 -0500
  
  ajtiM lum...@gmail.com wrote:
   Hi!
   
   I have FreeBSD 9.1-RC1 #0 and I running KDE 4.8.4 too.
   If I run KDE and try sockstat -l46 I get:
   
   sockstat -l46
   USER COMMANDPID   FD PROTO  LOCAL ADDRESS FOREIGN
   ADDRESS ajtimknemo  35725 10 udp4   *:*   *:*
   root Xorg   33842 1  tcp6   *:6000*:*
   root Xorg   33842 3  tcp4   *:6000*:*
   
   Is it normal root Xorg...
   I am running Xorg (kde) as user.
  
  Yes, the X server needs device access not available to normal
  users so it run setuid root.
 
 Thank you.
  I have no in /usr/local/bin/startx
 clientargs=-nolisten tcp

You don't need this in clientargs, serverargs is the right place.
It should be harmless though, I think.

 serverargs=-nolisten tcp
 and is okay.

That serverargs should prevent those sockets being used, so no not
OK if the sockets are still open.

In general though it's best to pass these to startx (perhaps from
another script) rather than editing it, your changes will get lost next
time startx gets updated.

-- 
Steve O'Hara-Smith at...@sohara.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: fsck not working on messed-up file system

2012-09-19 Thread Steve O'Hara-Smith
On Wed, 19 Sep 2012 06:05:06 -0400
Thomas Mueller muelle...@insightbb.com wrote:

 THE FOLLOWING DISK SECTORS COULD NOT BE READ: 7584318, 7584319,
 ** Phase 2 - Check Pathnames
 ** Phase 3 - Check Connectivity
 ** Phase 4 - Check Reference Counts
 ** Phase 5 - Check Cyl groups
 1475900 files, 4638292 used, 21162419 free (61643 frags, 2637597 blocks,
 0.2% fragmentation)
 
 * FILE SYSTEM STILL DIRTY *
 
 * PLEASE RERUN FSCK *
 
 Script done on Wed Sep 19 04:17:27 2012
 
 
 Would this indicate a software bug, or is my Western Digital Caviar Green
 3 TB hard drive failing?

Either something was referencing sectors off the end of the disc,
or the drive is failing. I'd be inclined to copy the data off somewhere
safe and subject the disc to extensive tests with smartctl from
smartmontools, then if it passes recreate the fileystem(s) and restore the
data.

-- 
Steve O'Hara-Smith at...@sohara.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: have desktop on freebsd

2012-09-18 Thread Steve O'Hara-Smith
Hi,

Did you then copy the xorg.conf.new to /etc/X11/xorg.conf ? You'll
need to do that for it to be used by default.

On Tue, 18 Sep 2012 12:39:43 +0430
saeedeh motlagh saeedeh.motl...@gmail.com wrote:

 yes, i used Xorg -configure and after that Xorg -config
 xorg.conf.new -retro as a root user. it seems that every thing is ok
 and i see a gray page with mouse curser but when i restart my system i
 don't have desktop.
 i use startx command to test it and fbdevmodule error occurred.
 
 i really don't know how to fix it:(. have you any suggestion? i need
 desktop on my BSD box.
 
 
 
 
 On 9/18/12, Jamie Paul Griffin ja...@kode5.net wrote:
  [ saeedeh motlagh wrote on Tue 18.Sep'12 at  9:40:16 +0430 ]
 
  thanks Jamie, i changed my driver to intel and modules are as the same
  you mentioned but i don't have desktop yet. after editing xorg.conf
  file, i restart my system to be sure that xorg.conf file is readed
  again and changes are applied but error is as the same before:
 
  loadmodule: module fbdevhw does not have a fbdevhwModuleData data
  object
 
  i looked in xorg log file and see that there is an error in
  libfbdevhw.so which is in /usr/local/lib/xorg/modules/linux path. do
  you know how i can fiix it??
 
  I'm not sure why linux would be included in that path at the end there,
  perhaps that was a typo?
 
   Did you use the command:   Xorg -configure ?
 
  from the command prompt as the root user first?
  ___
  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


-- 
Steve O'Hara-Smith at...@sohara.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: installation of yuma

2012-09-18 Thread Steve O'Hara-Smith
On Tue, 18 Sep 2012 14:25:03 +
ahmed elouadrhiri ahmedelouadrh...@gmail.com wrote:

 Hi all;
 
 i tried to install yuma in freebsd by the command : make freebsd=1
 
 and it give me :
  Makefile, line 14: Need an operator

At a guess you need to use gmake (you may need to install it first
from the ports).

-- 
Steve O'Hara-Smith at...@sohara.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: Empty logfiles

2012-08-29 Thread Steve O'Hara-Smith
On Wed, 29 Aug 2012 21:59:17 +0200
Jos Chrispijn po...@webrz.net wrote:

 Stupic question: I have a directory with 120 logfiles (extension *.log).
 Can someone tell me how I can empty these logfiles in one command?
 I thought 'echo  *.log' would work, but no way K-)

find . -name \*.log -exec truncate {} \;

man find and man truncate for the gory details.

-- 
Steve O'Hara-Smith at...@sohara.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: Does 9.0 honor TERM settings

2012-08-24 Thread Steve O'Hara-Smith
On Fri, 24 Aug 2012 01:18:23 -0500 (CDT)
Lars Eighner luvbeas...@larseighner.com wrote:

 
 Does 9.0 honor TERM settings?
 
 It appears to me it does not.  Although I set TERM=cons25l1 in .profile
 (running bash) and have verified that it is set to that value with SET,
 it appears to me that the function keys are mapped to weird xterm-like
 strings instead of their ANSI values (example: F7 = E[18~ not E[S).

The TERM environment variable is supposed to describe the terminal
not control it.

-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.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: Does 9.0 honor TERM settings

2012-08-24 Thread Steve O'Hara-Smith
On Fri, 24 Aug 2012 03:13:09 -0500 (CDT)
Lars Eighner luvbeas...@larseighner.com wrote:

 On Fri, 24 Aug 2012, Steve O'Hara-Smith wrote:
 
  On Fri, 24 Aug 2012 01:18:23 -0500 (CDT)
  Lars Eighner luvbeas...@larseighner.com wrote:
 
 
  Does 9.0 honor TERM settings?
 
  It appears to me it does not.  Although I set TERM=cons25l1 in .profile
  (running bash) and have verified that it is set to that value with SET,
  it appears to me that the function keys are mapped to weird xterm-like
  strings instead of their ANSI values (example: F7 = E[18~ not E[S).
 
  The TERM environment variable is supposed to describe the
  terminal not control it.
 
 
 Well, then, where is the setting that makes the F7 key send E[18~ instead
 of the standard E[S?

In the kernel config there's an option TEKEN_CONS25 which will build
the console terminal emulator in CONS25 mode. You'll need a custom kernel
of course.

I'm curious though - why ? As long as TERM is set correctly
anything that uses curses will handle the keyboard and screen correctly.

-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.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: Does 9.0 honor TERM settings

2012-08-24 Thread Steve O'Hara-Smith
On Fri, 24 Aug 2012 05:11:19 -0500 (CDT)
Lars Eighner luvbeas...@larseighner.com wrote:

 On Fri, 24 Aug 2012, Steve O'Hara-Smith wrote:
 
  On Fri, 24 Aug 2012 03:13:09 -0500 (CDT)
  Lars Eighner luvbeas...@larseighner.com wrote:
 
  On Fri, 24 Aug 2012, Steve O'Hara-Smith wrote:
 
  On Fri, 24 Aug 2012 01:18:23 -0500 (CDT)
  Lars Eighner luvbeas...@larseighner.com wrote:
 
 
  Does 9.0 honor TERM settings?
 
  It appears to me it does not.  Although I set TERM=cons25l1
  in .profile (running bash) and have verified that it is set to that
  value with SET, it appears to me that the function keys are mapped
  to weird xterm-like strings instead of their ANSI values (example:
  F7 = E[18~ not E[S).
 
The TERM environment variable is supposed to describe the
  terminal not control it.
 
 
  Well, then, where is the setting that makes the F7 key send E[18~
  instead of the standard E[S?
 
  In the kernel config there's an option TEKEN_CONS25 which will
  build the console terminal emulator in CONS25 mode. You'll need a
  custom kernel of course.
 
 I find it really interesting that this change which broke just about every
 critical application I run was not mentioned in the release notes or
 UPDATING.

Bizarre - no well written application should break unless of course
you have TERM set to something that doesn't match what the terminal does.
The whole TERM termcap/terminfo/curses mechanism is designed to support
terminal independent applications.

  I'm curious though - why ? As long as TERM is set correctly
  anything that uses curses will handle the keyboard and screen correctly.
 
 If 9.0 had not broken my most important applications, I wouldn't be
 asking.

Which applications - and are they still broken with the right TERM
settings (TERM=xterm) ?

-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.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: Does 9.0 honor TERM settings

2012-08-24 Thread Steve O'Hara-Smith
On Fri, 24 Aug 2012 05:20:18 -0500 (CDT)
Lars Eighner l...@larseighner.com wrote:

 I grepped the entire /usr/src/sys/amd64/conf directory.  There is no
 TEKEN_CONS25 or TEKEN or CONS25.  Exactly where is this documented?

/usr/src/sys/conf/NOTES is where I found it.

-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.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: Does 9.0 honor TERM settings

2012-08-24 Thread Steve O'Hara-Smith
On Fri, 24 Aug 2012 05:58:36 -0500 (CDT)
Lars Eighner luvbeas...@larseighner.com wrote:

 On Fri, 24 Aug 2012, Steve O'Hara-Smith wrote:
 
  On Fri, 24 Aug 2012 05:20:18 -0500 (CDT)
  Lars Eighner l...@larseighner.com wrote:
 
  I grepped the entire /usr/src/sys/amd64/conf directory.  There is no
  TEKEN_CONS25 or TEKEN or CONS25.  Exactly where is this documented?
 
  /usr/src/sys/conf/NOTES is where I found it.
 
 Grepped /usr/src/sys/conf/* and did not find it.
 
 I see from google that something seems to have been added to HEAD and its
 UPDATING, but there is nothing of the sort in 9.0 RELEASE - p4.

It's there on my 9.0-RELEASE-p4 boxes. In /etc/freebsd-update.conf
do you have src among the components to update ?

 I really should have known better by now than to upgrade to a X.0 -
 perhaps by X.2 or X.3 they will have fix most of the stuff they broke
 with X.0.

I've yet to see any breakage, do your applications really break
with TERM=xterm on the console ?

 Fortunately, I have learned enough to try upgrades on the mirror and not
 on the production disc.

Well yes - no untested updates should ever hit a production system,
that's what the QA boxes are for.

-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.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: Does 9.0 honor TERM settings

2012-08-24 Thread Steve O'Hara-Smith
On Fri, 24 Aug 2012 06:12:57 -0500 (CDT)
Lars Eighner l...@larseighner.com wrote:

 On Fri, 24 Aug 2012, Steve O'Hara-Smith wrote:
 
  On Fri, 24 Aug 2012 05:11:19 -0500 (CDT)
  Lars Eighner luvbeas...@larseighner.com wrote:
 
  If 9.0 had not broken my most important applications, I wouldn't be
  asking.
 
  Which applications - and are they still broken with the right
  TERM settings (TERM=xterm) ?
 
 Joe, most, lynx (which is also my file manager) in functions involving
 function keys.  I could, of course, remap all of the macros, but that
 would be silly since I have about five pages of keymapping in .Xdefaults
 to make xterm in X emulate cons25.

You have something bizarrely wrong on your machine. Lynx works
perfectly in an xterm without any keymapping, it's a curses application so
it should do and it does. I suspect you have something forcing TERM=CONS25
into the environment - you'd be well served by finding and removing it.
Nothing apart from the curses library should ever need to care what the
terminal type is provided TERM matches reality.

-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.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: implications of adding root to a group

2012-08-23 Thread Steve O'Hara-Smith
On Thu, 23 Aug 2012 07:51:10 -0700
Krims G krimskr...@gmail.com wrote:

 Hello, I've been looking at the /etc/group and have noticed that some
 groups have root included in them, for example operator. Is it not
 implied that root has access to all things and groups? What is the purpose
 of adding root to a group? If I add root to some new arbitrary group, what
 does it result in differently than if I do not add root to that group?

The root user has the ability to ignore file permissions, but not
the ability to subvert group membership tests in scripts or programs.

-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.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: implications of adding root to a group

2012-08-23 Thread Steve O'Hara-Smith
On Thu, 23 Aug 2012 23:07:04 +0200
Damien Fleuriot m...@my.gd wrote:

 
 On 23 Aug 2012, at 17:26, Steve O'Hara-Smith st...@sohara.org wrote:
 
  On Thu, 23 Aug 2012 07:51:10 -0700
  Krims G krimskr...@gmail.com wrote:
  
  Hello, I've been looking at the /etc/group and have noticed that some
  groups have root included in them, for example operator. Is it not
  implied that root has access to all things and groups? What is the
  purpose of adding root to a group? If I add root to some new arbitrary
  group, what does it result in differently than if I do not add root to
  that group?
  
 The root user has the ability to ignore file permissions, but not
  the ability to subvert group membership tests in scripts or programs.
  
  -- 
  Steve O'Hara-Smith  |   
 
 
 While I can compute what you wrote, I fail to see the implications.
 
 Would you kindly explain in layman's terms ?

Any script or program that checks group membership before
proceeding will execute for root regardless of permissions but won't do
anything (except emit a message) unless root is also a member of the
required group.
 
-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.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: /tmp filesystem full

2012-08-22 Thread Steve O'Hara-Smith
On Wed, 22 Aug 2012 08:14:35 -0500 (CDT)
Robert Bonomi bon...@mail.r-bonomi.com wrote:

  From owner-freebsd-questi...@freebsd.org  Wed Aug 22 05:59:52 2012
  Date: Wed, 22 Aug 2012 12:59:13 +0200
  From: Andy Wodfer wod...@gmail.com
  To: freebsd-questions freebsd-questions@freebsd.org
  Subject: /tmp filesystem full
 
  Hi,
  I have about 500MB in my /tmp and it seems to be too small when the
  periodic LOCATE script runs every week.
 
  What's the best way to increase the size of /tmp ? Could I simply
  remove it and create a symbolic link ln -s to say /usr/tmp instead
  (where I have several hundred GBs free)?
 
 That is a BAD IDEA(tm)!
 
 There are appliations that assume /tmp, /var/tmp, and /usr/tmp are
 _distinct_ directories.  They will create files _with_the_same_name_ in
 two of those 'temp' locations, expecting them to be unique.o

/usr/tmp usually does not exist so creating it and
symlinking /tmp to it is OK.

 It _is_ OK to symlink /tmp to 'somewhere else', with the caveat that it
 should be on the '/' filesystem -- one may need it in single-user mode
 befoe other filesystems are mounted.  You can 'live dangerously' and 
 symlink to a dir on a different filesystem and _probably_ not have 
 problems.

A null mount would be a safer way of pushing /tmp onto /usr or
indeed any other filesystem - that way when the null mount fails the mount
point is still a directory. There's really no point in linking it elsewhere
on the same filesystem.

-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.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: 9.0 release hang in quiescent X

2012-08-16 Thread Steve O'Hara-Smith
On Wed, 15 Aug 2012 22:45:47 -0600
Gary Aitken a...@dreamchaser.org wrote:

 I've been struggling trying to ignore something and it refuses to go
 away :-(.
 
 Running 9.0 release on an amd 64 box, standard kernel, 16GB, SSD
 (/, /usr, /var, /tmp) + HDDs, visiontek 900331 graphics card (ati radeon
 hd5550).  
 
 As long as I am using the system, things seem to be fine.  However, when
 I leave the system idle for an extended period of time (e.g. overnight,
 out for the day, etc.), it often refuses to return from whatever state it
 is in.  The screen is blank and in standby for power saving, and
 ctlalt Fn won't get me a console prompt.  The only way I know to
 recover is to power off and reboot.

Are you running any kind of screensaver ?

 Xorg.0.log shows the following errors:
   (EE) RADEON(0): Acceleration initialization failed
 However, the display works fine and I'm assuming I'm just getting slow
 rendering, which is ok in this case.

Sometimes the OpenGL screen saver modules crash without proper
hardware support. If you're running a screensaver try disabling it and just
using display blanking.

-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.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: Best file system for a busy webserver

2012-08-16 Thread Steve O'Hara-Smith
On Thu, 16 Aug 2012 10:45:25 -0500
Paul Schmehl pschmehl_li...@tx.rr.com wrote:

 Does anyone have any opinions on which file system is best for a busy 
 webserver (7 million hits/month)?  Is anyone one system noticeably better 
 than any other?

That's an average of about 3 hits per second. If it's static pages
then pretty much anything will handle it easily (but please don't use FAT).
If it's dynamic then the whole problem is more complex than a simple page
rate. If that load is bursty it may make a difference too.

Other considerations may come into play - how big is this
filesystem (number of files, maximum number of entries in a directory,
volume of data) ? Are there many users needing to be protected from each
other ? What about archives ? snapshots ? growth ? churn ? uptime
requirements, disaster recovery time ?

-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.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: Best file system for a busy webserver

2012-08-16 Thread Steve O'Hara-Smith
On Thu, 16 Aug 2012 13:16:26 -0500
Paul Schmehl pschmehl_li...@tx.rr.com wrote:

 --On August 16, 2012 6:02:57 PM +0100 Steve O'Hara-Smith
 st...@sohara.org wrote:
 
  On Thu, 16 Aug 2012 10:45:25 -0500
  Paul Schmehl pschmehl_li...@tx.rr.com wrote:
 
  Does anyone have any opinions on which file system is best for a busy
  webserver (7 million hits/month)?  Is anyone one system noticeably
  better  than any other?
 
  That's an average of about 3 hits per second. If it's static
  pages then pretty much anything will handle it easily (but please don't
  use FAT). If it's dynamic then the whole problem is more complex than a
  simple page rate. If that load is bursty it may make a difference too.
 
 
 Thanks for the reply.  It's a combination.  There are many static pages, 
 but there is also a php-mysql forum that generates pages on the fly.  It 
 accounts for about half of the traffic.  I've always used ufs but am 
 wondering if switching to zfs would make sense.
 
 This stats page might answer some of your questions: 
 http://www.stovebolt.com/stats/
 
 Basically traffic is steady but it's busiest in the evenings (US time
 zones)
 
  Other considerations may come into play - how big is this
  filesystem (number of files, maximum number of entries in a directory,
  volume of data) ? Are there many users needing to be protected from each
  other ? What about archives ? snapshots ? growth ? churn ? uptime
  requirements, disaster recovery time ?
 
 I don't even know where to begin.  There's about 15G of data on the
 server.

OK I would say there's no pressing reason to consider ZFS for this
purpose. You'd save a bit of time in crash recovery with no fsck going on,
and perhaps the checksum mechanism would give some peace of mind - but
really in 15GB silent corruption is a very slow process - now if it were
15TB ...

 last pid: 40369;  load averages:  0.01,  0.03,  0.00 
 up 104+09:33:44 13:14:49
 137 processes: 1 running, 136 sleeping
 CPU:  0.7% user,  0.0% nice,  0.1% system,  0.0% interrupt, 99.2% idle
 Mem: 229M Active, 6108M Inact, 1056M Wired, 15M Cache, 828M Buf, 514M Free
 Swap: 16G Total, 28K Used, 16G Free

OTOH you have plenty of memory lying around doing nothing much
(6108M inactive) so you can easily support ZFS if you want to play with
it's features (the smooth integration of volume management and filesystem
is rather cool).

 The system is not being stressed.
 
 If by users, you means shell accounts, there's two, so that's not really
 an issue.

OK so no need for fancy quota schemes then.

 Uptime is not an issue.  The owners have repeatedly said if the site is 
 down for two days they don't care.  (The forum users don't feel that way 
 though!)  We've had one disaster (hard drive failure and raid failed 
 while I was on vacation), and it took about 36 hours to get back online, 
 but that was 10 years ago.  The site doesn't go down - it's running on 
 FreeBSD. :-)

It sounds like you have backups or at least some means of restoring
the site in the event of disaster so that's all good. If there was a
pressing need to be able to get back up fairly quickly and easily I'd be
suggesting ZFS in RAID1 with a hot swap bay in which a third disc goes,
attached as a third mirror, periodically split it off the mirror take
it off site, and replace it with the one that's been off site.

There's really nothing here that's pushing you in any particular
direction for a filesystem, at 15GB if performance ever becomes a problem a
RAID1 of SSDs with UFS would make it fly probably into the hundreds of hits
per second range.

-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.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: Patent hit - MS goes after Linux - FreeBSD ?

2012-08-06 Thread Steve O'Hara-Smith
On Mon, 6 Aug 2012 08:16:38 -0400
Jerry je...@seibercom.net wrote:

 Yes you can. You are stating a commonly held incorrect belief. You can
 always request a license from the patient holder. No one, well no one
 interested in monetary compensation would patient anything unless they
 were:
 
 ⁽¹⁾ Intended to use the patents in such a way that they would directly
 profit from it
 
 ⁽²⁾ Intended to lease the patent rights or outright sell the patent.

[3] Want to prevent anyone else from using it to break into their market.

-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.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: ZFS bonnie puzzlement

2012-08-05 Thread Steve O'Hara-Smith
On Sun, 5 Aug 2012 13:29:51 +0200 (CEST)
Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote:

  are showing me. Read performance OTOH is strange, zpool and systat both
  reporting consistently an aggregated read speed of around 120MB/s during
  the block read tests (which seems a bit slow for the drives - and indeed
  systat reports the drives at less than 50% utilisation) but bonnie is
  only reporting 35MB/s, I see similar discrepancies with simple dd block
  reads to /dev/null, in which case my stopwatch agrees with dd.
 no it is not wrong.
 
 Do more tests (possibly your own doing heavy mixed workload) to
 understand well why you should not use this last word in filesystems.

First surprise, with only 4GB I had set primarycache=metadata,
changing that to primarycache=all caused the systat, zpool iostat and
bonnie figures all to agree - and made them all a bit better too. Lesson
from this - don't bother setting primarycache=metadata.

With that puzzle gone testing and tuning becomes more useful:

Enabling prefetch made a huge difference to the per char sequential
read, but didn't really change anything else. Indeed this test is now CPU
limited in bonnie - that'll do.

Rebooting with zfs.cache_flush_disable=1 made everything faster.
Block writes and reads maxed out the discs at around 110MB/s and 200MB/s
respectively - pretty close to the raw disc speed. Rewrite nearly doubled in
speed too.

Next stop NFS tuning.

-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.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: ZFS bonnie puzzlement

2012-08-05 Thread Steve O'Hara-Smith
On Sun, 5 Aug 2012 20:02:54 +0200 (CEST)
Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote:

  First surprise, with only 4GB I had set primarycache=metadata,
 
 you mean 4 GIGABYTES of memory is ONLY?

At less than €30 - yes I think only is reasonable, I'd have bought
more but 4GB is all the motherboard would take. I've paid more than that for
a *KILOBYTE* of memory - admittedly that was a long time ago.

One big part of the changing landscape in computer economics is
that RAM and disc are *cheap*.

-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.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


ZFS bonnie puzzlement

2012-08-04 Thread Steve O'Hara-Smith
Hi,

I've been looking at the performance of my new NAS box - built
using a Jetway JNF99FL-525 with 4GB of 1066 DDR3 and a pair of 2TB Samsung
F4 drives in a mirror. It all works but the performance reports are puzzling

Running bonnie -s 8192 - reports character and block write times of
around 66MB/s which is consistent with what zpool iostat -v and systat -v
are showing me. Read performance OTOH is strange, zpool and systat both
reporting consistently an aggregated read speed of around 120MB/s during
the block read tests (which seems a bit slow for the drives - and indeed
systat reports the drives at less than 50% utilisation) but bonnie is only
reporting 35MB/s, I see similar discrepancies with simple dd block reads
to /dev/null, in which case my stopwatch agrees with dd.

I made some more bonnie tests on the boot SSD - there everything is
as expected systat and bonnie agree and the disc gets pushed to 90-100%
utilisation with write speeds over 100MB/s and read speeds over 250MB/s.

Also a dd of the raw drive (read only of course) runs the drives up
to around 130MB/s easily - dd and systat agree about the speed.

First up can anyone explain the discrepancy between bonnie and
zpool/systat for the XFS pool ? Secondly can anyone suggest a reason that I
can't seem to get the drives above 50% reported utilisation on reads ?

-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.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