Re: Inode numbering

2008-10-18 Thread perryh
Polytropon [EMAIL PROTECTED] wrote:

 Let's assume we have a directory D with an inode number i(D).
 It contains a file F with its inode number i(F).

 May I state that i(D)  i(F)?

In general, no.  It might work in the special case where nothing
on the filesystem is ever moved or removed, and no hard links are
ever added.

As a simple example, suppose I have directories foo and foo/bar,
and file foo/baz, with i(foo) == 15, i(foo/baz) == 20, and
i(foo/bar) == 25, satisfying your criterion.  If I do

  mv foo/baz foo/bar

(so baz is now foo/bar/baz), I will have i(foo/bar) == 25 and
i(foo/bar/baz) == 20.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Inode numbering

2008-10-19 Thread perryh
Polytropon [EMAIL PROTECTED] wrote:

 ... It will force me to
 do what I originally intended to do: Iterate from 2 up
 to the maximal number and then check the availability,
 and, if given, trace back the .. chain to an existing
 directory entry point - or re-create one, if it is missing,
 too. Will be a lot of work, but I think I can learn much
 from this.

You may be able to reuse some code from dump(8).

When doing an incremental dump, it reads through the inodes, makes
a list of those which are newer than the previous dump, then
recursively locates all parent directories of selected inodes and
adds them to the list.  (When doing a level 0 dump, it does the same
thing but by definition every inode is selected.)  Having done all
that, it dumps all the selected directories followed by the rest of
the selected inodes.

Dump's purpose is to ensure that the dump will be complete in the
sense of containing the full path to any file that is on the tape,
and your purpose is different, but I suspect much of the find
parent logic may be reusable.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sudo multiple commands at once without shell script

2008-10-25 Thread perryh
 How do I run multiple sudo commands at once? This fails
 because the semicolon ends the whole sudo command:

  sudo whoami; whoami
 root
 user

 This confuses tcsh:

 monica:~ sudo ( whoami ; whoami )
 Badly placed ()'s.

Supposing sudo spawns a shell, something like

  ~ sudo whoami \; whoami

or

  ~ sudo whoami; whoami

should work.  If not, maybe try explicitly running a shell:

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


Re: Problems with FreeBSD

2008-11-03 Thread perryh
 I have some problem with my FreeBSD server. I have this:

 ####  #
 # Linux1  #  - ASA  - Internet  - # FreeBSD  #  - # Linux2 #
 ####  #

 If I run a ssh for Linux1 to FreeBSD, my connection freeze when
 the return of some command is a big text. Example:

 I make a ssh connection in the from the Linux1 to FreeBSD server,
 then, I execute some commands, like: 'pwd', 'whoami', 'ls /'...
 this work perfectly.  But, if I run some command that return a big
 text, like as: 'ls /dev/', or top, my connection freeze.
...
 If I try to access the Linux2, throught FreeBSD (redirect port on
 natd or redirect port with rinetd), the same thing happens.

 Is this a problem with FreeBSD? Someone know how I can fix it? Some
 sysctl?

One possible cause of this behavior is an MTU problem.  If something
in the Linux1 == FreeBSD path is dropping packets larger than X
(where X is something lower than the endpoints are expecting) you'll
see exactly this sort of symptom.

While the real solution is to fix whatever is dropping the packets,
it may be easier to restrict the MTU.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Hardware Raid + hot-replace failed disk

2008-11-06 Thread perryh
 On Thursday 06 November 2008 22:01:39 Wojciech Puchar wrote:
   Suppose you have a system with multiple disks managed by a
   hardware RAID controller in a RAID5 of RAID6 configuration,
 
  what is RAID5 of RAID6???

 'of' is 'or' in dutch, common typo for dutch or flemish people.

For Americans also, due to f and r being adjacent
on a US-English keyboard.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Port Adobe Photoshop and Illustrator for FreeBSD?

2008-11-08 Thread perryh
  Is there a port like Adobe Photoshop and Illustrator for FreeBSD?
  I would like to move to FreeBSD as soon as possible.
 
  You could try the gimp for manipulating bitmap images. For creating
  vector images, try either inkscape or xaralx. They're all in ports.

 i have a friend that do offset printing.

 he have to use windoze and photoshop for only one reason - gimp
 doesn't support editing CMYK images

If all else fails, one could try running the Windows versions of
Photoshop and Illustrator under wine.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Desktop image of Beastie

2008-11-15 Thread perryh
 I picked up this jpg of Beastie over 10 years ago. Tried using
 it for a gdm logon screen background, but it's really light.

http://www.a1poweruser.com/beastie.JPG

 Does any one know where i can get a darker version of this image?

You're right, that's extremely faint, more like a watermark than an
attraction in its own right.  How about this one?

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


Re: root /etc/csh

2008-11-16 Thread perryh
... Why doesn't FreeBSD ship bash and other shells besides
the `sh' linked statically is beyond me. It wouldn't break
ports, would it?
   
   It does break ports.  Very, very badly.  I know because I've
   personally attempted replacing /bin/sh with bash as a I have
   a weekend to spare project.
  
  You misunderstand. I do not suggest replacing the standard shell
  with bash, I suggest that the shells available in FreeBSD, even
  through ports to be linked statically so they can be used for
  rescue and recovery.  If the default make instructions told to
  compile statically, it wouldn't break the ports.

 You're right -- I'm still not understanding.  So let me cover the
 bases here:

 1) The entire ports and FreeBSD build system (see: world) rely
 heavily on /bin/sh-isms and do not work with bash.  bash being
 compiled statically will not solve these problems.

If this is accurate, it should be reported to the bash maintainers as
a bug.  Bash claims complete Posix compatibility (plus extensions).
In any event, it is irrelevant to the OP's point.

 2) Changing the root users' shell is not recommended.  There are
 a lot of reasons for this, but as mentioned, the main one is
 single-user scenarios (where /usr hasn't been mounted yet, thus
 /usr/local/bin/bash is not available -- and if it's installed as
 /bin/bash, the libraries /bin/bash link to are not available).

This, of course, being the whole point of the OP's suggestion to
link port shells statically.

 3) You can build bash statically; make WITH_STATIC_BASH=true.  I do
 not know the true reason why the port is not built statically by
 default, but I can give you a damn good reason why it shouldn't be:
 complete and total wasted memory.

 Take into consideration environments where there are hundreds (or at
 my place of work, thousands) of users logged into a machine at once.
 Many of those are going to have /usr/local/bin/bash as their shell.
 A statically-linked version of bash would waste significant amounts
 of memory, while a dynamically-linked/shared version would ease that
 pain.  The same applies for any static vs. dynamic program.

How so?  Wouldn't a single in-memory instance of the bash text
segment be shared among all bash processes, across all users?
Granted, there is, in effect, *one* extra instance of the part
of libc that gets linked into the static bash.

A better reason is that security updates to shared libs often
update only the .so files, expecting the binaries that use them
to automatically pick up the new versions.  Any static executable
should be rebuilt any time there is a security update to a shared
lib that it would be using were it linked dynamically.

That said, perhaps it would be reasonable for shell ports to
build both a dynamically-linked instance to be installed in
/usr/local/bin, and a statically-linked instance to be installed
in, say, /usr/local/static.  Those who want to use bash as the
root shell could copy it from there to /bin or /sbin.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [OT] printing question

2008-11-19 Thread perryh
 So the bottom line is:  Get a postscript printer.  They're
 rather expensive ...

I got a Samsung ML-2571N for well under $100 at Fry's something like
a year ago; granted that was a sale price, dunno regular.  It speaks
PostScript and lpd, so no need to bother with drivers or CUPS; all
it needs is a printcap entry.  (BTW it also works seamlessly from
MacOS X.)

One small caution:  there is also an ML-2571 without the N -- it
may have a different letter -- which is not networked, dunno if
that one handles PostScript.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: shell scripting problems

2008-11-29 Thread perryh
 In the shell script, i have a
   pkg_info -qLx ^$PKG-[0-9,._]+$
 also tried (-X)tended regex instead of the standard rege(-x).

 sh keeps erroring out saying various $ isn't a valid variable
 name ...

Both sh and csh will try to treat $ inside of  as a variable
reference.  Does it work any better if you enclose the $ in ''
instead?

If you need the first $ to be a variable reference and the second
to be used literally, you may need to do something like

  ^$PKG-[0-9,._]+'$'
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [freebsd-questions] Looking @ upgrades mechanisms...

2008-12-02 Thread perryh
 ...  I'm trying to remember why I did not like pkg_add -r.

IIRC, one issue with pkg_add -r is that it insists on doing
everything from the remote repository, and will not bother
looking for any packages (incl. dependencies) locally first.
This makes sense for a brand-new installation where you know
there's no local repository to search -- which is probably the
use case that the author had in mind -- but can be inefficient
otherwise.  I started hacking on it a while back, but have not
had much time lately.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS partitioning

2008-12-05 Thread perryh
 Dangerous is probably overstating the issue a bit ...

AFAIK the danger is that someone boots the machine with an
installer for some other OS, and that installer treats the
disk as unformatted -- hence obviously containing nothing
important -- because it doesn't have a recognizable MBR.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: QT4.5 packages

2008-12-05 Thread perryh
Warren Liddell [EMAIL PROTECTED] wrote:

 Does anyone have or know of where to download the pkg files
 for the various Qt4.5 ports as using pkg_add is the only way
 im able to add them atm.

You can find many packages for several releases under
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Why FreeBSD not popular on hardware vendors

2008-12-13 Thread perryh
 after reading all these posts, i've still come up with this
 answer after looking ..
 freebsd - the power to serve

Might one reasonably surmise that the power to serve implies
doing a good job of running server software?  Like mail servers,
FTP servers, web servers, file servers, database servers, ssh
servers, even - gasp - X11 servers?
___
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 FreeBSD not popular on hardware vendors

2008-12-15 Thread perryh
  Unfortunately, anything covered by a patent, as I hinted
  above, is verboten.

Er, doesn't it depend on what is patented?  If the h/w itself is
patented, but its software-visible interface is not, there should be
no problem writing a driver for that h/w.  OTOH if the algorithms
used in the driver are patented it would be an infringement to
reproduce them.

 But if I remember my legal and ethics course correctly if you
 can arrive at a conclusion through your own research then your
 reasonably clear.

Not under patent, at least in the US, last I heard.  (IANAL)
A patent is infringed by any reproduction of the technology
involved, even entirely independently.  Someone described the
justification as avoiding a situation in which it would pay
to be ignorant of what others had done.

 For example, the drivers are closed source but the hardware itself
 is an entirely separate issue. So if you can create your own
 drivers by your own research into how the hardware is setup then
 the drivers created could licensed under your own terms- open
 source or otherwise.

At least in the US, that works for copyright but not for patent.

 The drivers and hardware may operate together but are separate
 items of creativity, therefore do not operate under the same
 patent.

Again, it depends on exactly what is patented (strictly speaking,
what the patent's claims are.)
___
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: Unable to delete directory even after change of ownership.

2008-12-19 Thread perryh
 As svn, when I try to delete the folder (/home/my_repos),
 I get the error Permission denied.

 Why do I get this error when I (svn) am the owner of that
 directory?

To remove anything that is located in /home, including a directory
such as /home/my_repos, user svn would need write permission in the
/home directory.  Probably only root has write permission there.
___
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: [6.3] Assigning shutdown to eg. Syst?

2008-12-23 Thread perryh
 The only other thing being in group operator lets you run,
 apart from what you've added into /etc/devfs.{conf,rules} is
 /sbin/mksnap_ffs ..

In a default devfs config, it grants read permission to
the disk devices (presumably to enable running dump(8)).
___
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


vpnc connects, but does not work

2008-12-29 Thread perryh
I have installed vpnc to connect to an employer's Cisco VPN
system, and it seems to make the connection, but after connecting
I can't ping the tun0 interface nor anything beyond it.  The
symptom seems to resemble what is described in the Routing section
of http://www.cs.rpi.edu/~flemej/fbsd-cisco-vpn.pdf, but since that
is using a completely different setup on the FreeBSD side I have no
idea whether the remedy described there is applicable (nor, if it
is, how to determine the addresses to use in this case).

Does this look at all familiar, or does anyone have any ideas for
how to go about debugging it?  I didn't find anything that seemed
applicable in recent ports@ or questions@ archives, and an earlier
inquiry on ports@ did not produce a solution.  (I have XX'd out
potentially-sensitive material in the following.)

  # /usr/local/sbin/vpnc
  Enter password for x...@xxx.xxx.com:
  Connect Banner:
  | *** XXX, Inc. Authorized Use Only ***

  add host YYY.YYY.127.228: gateway 192.168.200.254
  add net ZZZ.ZZZ.0.0: gateway ZZZ.ZZZ.233.42
snipped 56 other add net lines, all with the same
 gateway address, none to any ZZZ.ZZZ address until:
  add net ZZZ.ZZZ.57.128: gateway ZZZ.ZZZ.233.42
  add net ZZZ.ZZZ.57.133: gateway ZZZ.ZZZ.233.42
  VPNC started in background (pid: 24776)...

The addresses in those last two add net lines seem to be the
nameservers:

  $ cat /etc/resolv.conf
  #...@vpnc_generated@ -- this file is generated by vpnc
  # and will be overwritten by vpnc 
  # as long as the above mark is intact
  nameserver ZZZ.ZZZ.57.128
  nameserver ZZZ.ZZZ.57.133
  search XXX.com

which leads me to wonder whether they really ought to be add host
-- for that matter it's not clear they're needed at all since they
should be covered by the add net ZZZ.ZZZ.0.0 -- but I guess that
may not make much difference when I can't even ping my own gateway
(tun0) address :(

  $ ping ZZZ.ZZZ.233.42
  PING ZZZ.ZZZ.233.42 (ZZZ.ZZZ.233.42): 56 data bytes
  ^C
  --- ZZZ.ZZZ.233.42 ping statistics ---
  4 packets transmitted, 0 packets received, 100% packet loss

  $ ping ZZZ.ZZZ.57.128
  PING ZZZ.ZZZ.57.128 (ZZZ.ZZZ.57.128): 56 data bytes
  ^C
  --- ZZZ.ZZZ.57.128 ping statistics ---
  10 packets transmitted, 0 packets received, 100% packet loss

  $ ping ZZZ.ZZZ.57.133
  PING ZZZ.ZZZ.57.133 (ZZZ.ZZZ.57.133): 56 data bytes
  ^C
  --- ZZZ.ZZZ.57.133 ping statistics ---
  27 packets transmitted, 0 packets received, 100% packet loss

  $ ifconfig -a
  xl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
  options=9RXCSUM,VLAN_MTU
  inet6 fe80::2b0:d0ff:fe28:ad4f%xl0 prefixlen 64 scopeid 0x1
  inet 192.168.200.61 netmask 0xff00 broadcast 192.168.200.255
  ether 00:b0:d0:28:ad:4f
  media: Ethernet autoselect (10baseT/UTP)
  status: active
  plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500
  lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
  inet6 ::1 prefixlen 128
  inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
  inet 127.0.0.1 netmask 0xff00
  tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1412
  inet6 fe80::2b0:d0ff:fe28:ad4f%tun0 prefixlen 64 scopeid 0x4
  inet ZZZ.ZZZ.233.42 -- ZZZ.ZZZ.233.42 netmask 0x
  Opened by PID 24635

Meanwhile I _can_ ping YYY.YYY.127.228, which I guess is the
concentrator's public IP address:

  $ ping YYY.YYY.127.228
  PING YYY.YYY.127.228 (YYY.YYY.127.228): 56 data bytes
  64 bytes from YYY.YYY.127.228: icmp_seq=0 ttl=116 time=53.226 ms
  64 bytes from YYY.YYY.127.228: icmp_seq=1 ttl=116 time=52.982 ms
  64 bytes from YYY.YYY.127.228: icmp_seq=2 ttl=116 time=53.130 ms
  ^C
  --- YYY.YYY.127.228 ping statistics ---
  3 packets transmitted, 3 packets received, 0% packet loss
  round-trip min/avg/max/stddev = 52.982/53.113/53.226/0.100 ms

Traceroute to YYY.YYY.127.228 produces the same 14-hop result whether
connected or disconnected (modulo the need to use traceroute -n
while connected:  since vpnc has replaced /etc/resolv.conf with one
specifying only the corporate nameservers, and I can't reach them
because the link doesn't work, there is no name service while
connected).  Just like ping, traceroute to the tun0 IP address,
while connected, produced nothing:

  $ traceroute -n ZZZ.ZZZ.233.42
  traceroute to ZZZ.ZZZ.233.42 (ZZZ.ZZZ.233.42), 64 hops max, 40 byte packets
   1  * * *
   2  * * *
   3  * * *
   4  * * *
   5  * * *
  ^C

What seems truly bizarre is that, as noted above, I couldn't ping the
tun0 interface while connected even though ifconfig reported it as
up.  Shouldn't a local interface, reported as up, *always* respond to
a ping of its own IP address?

  $ netstat -r -n
  Routing tables

  Internet:
  DestinationGatewayFlagsRefs  Use  Netif Expire
  default192.168.200.254UGS 0  2209723xl0
snip lines corresponding to snipped add net lines above
  127.0.0.1  127.0.0.1  

Re: running asfiles on windowmaker...

2008-12-29 Thread perryh
 Does anyone know how to run asfiles on windowmaker?
  Whereis its executable? (path)

 I have no idea what asfiles is, but I would assume
 `which asfiles' would tell you where it is located.

... unless it's not in PATH, and the OP is asking which directory
needs to be added.  asfiles is a port which installs into /usr/local,
so I'd expect the executable to be in /usr/local/bin.  If not,

  find /usr/local -name asfiles -print

should find it.
___
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: OT: how many rankmount units is a tower-case

2009-01-04 Thread perryh
Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote:

 1U=4.5cm

Approximately :)

At least in the US, 1U = 1.75 inches = 4.445 cm, so an 18cm case
will not quite fit into 4U.  Perhaps metric racks are different.
___
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: OT: how many rankmount units is a tower-case

2009-01-04 Thread perryh
 If a hard disk formatted and used in a position , in that position
 it may be used if manufacturer is NOT advised a specific position.
 After loading of files into hard disk , change of position may
 cause difficulty in reading of already recorded data .  This point
 should be considered .

Sun, at least, used to warn about this back in the MFM/ESDI days,
recommending that a disk should be reformatted if its orientation
were changed, but those drives used all their heads for data and
depended on reproduceable mechanical positioning to align the heads
at the selected cylinder.  I'm not sure it still applies to drives
that dedicate one head to fine-tuning track position by reading
factory-recorded servo patterns.  (Quick check, if actual geometry
is known:  a drive with an odd number of heads most likely has a
dedicated servo surface.)  BTW most drives of that era, while OK on
either side as well as right side up, were *not* supposed to be
run upside down -- the bearings were not designed for that.
___
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


FIXED: vpnc connects, but does not work

2009-01-04 Thread perryh
 I have installed vpnc to connect to an employer's Cisco VPN
 system, and it seems to make the connection, but after connecting
 I can't ping the gateway nor anything beyond it ...
 
It turned out the only problem was the absence of 
 
  NAT Traversal Mode cisco-udp

in vpnc.conf.  (Presumably not all configurations of the Cisco 3000
will need that, else it would be the default, but it seems to be
correct for the one involved here.)
 
I never did figure out why that kept the interface from responding
to a ping of its own address :(
___
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: FIXED: vpnc connects, but does not work

2009-01-11 Thread perryh
 I also have this problem, the difference being that mine
 **USED to** work, but now it suddenly stoped working.
 I tried adding the line to my conf file as you did, but
 for me, the problem remains:

 Appears to connect and authenticate successfully to my office's
 VPN concentrator Once (apparently) connected, I can't access any
 resources on the company network (mail / servers, etc), nor can
 I ping anything..,

Including the IP address of your tun0 interface?  (If you can ping
that, but nothing beyond, you have a different problem than I had.)

 Wondering if you can point me to where you found the info on the
 various options I can try to continue debugging this problem,
 please.

That line came from the output of vpnc --long-help.
Other things to look at are the vpnc(8) manpage, the
/usr/local/share/doc/vpnc/README file, and the TODO
file in /usr/ports/security/vpnc/work/vpnc-0.4.0.

There's more detail of what I think is going on in this thread:
http://lists.freebsd.org/pipermail/freebsd-net/2009-January/020638.html
By the time you get it working again, you will probably have learned
more about the workings of vpnc than you really cared to know :)

 The FW guys at the office aren't exactly forthcoming where non-MS
 windows is concerned, you see..,

Not surprising :(  Too many security types act as if obscurity
helped security, not realizing that it inconveniences only their
customers and not their enemies.

Any chance they would be willing to say what config change they made
on their end about the time it stopped working, without reference to
what is running on your end?  Another thing to check is whether your
ISP changed something.
___
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: Mounting a partition from freebsd 6.2?

2009-01-11 Thread perryh
mojo fms fbsdli...@gmail.com wrote:

 I was working on an upgrade to 6.3 from 6.2 and I lost power
 during the install which hosed most of my system.  Instead of
 trying to really recover it I decided to just rebuild.  I have a
 backup of my /etc and /usr/local/etc on a different drive that
 should be fine, it was just mounted under /mnt normally and used
 for backups.  My problem is that I installed 7.1 and was careful
 not to erase any data on that drive, but my only options for a
 partition to mount is /dev/ad2s1.  When  I try to mount that it
 gives me mount: /dev/ad2s1 : Operation not permitted, what can
 I do to get the data off of it?  I only really care about my /etc
 information  but it would be nice to get all of the information
 off of it.

Supposing ad2s1 is in fact the slice containing the filesystem in
question, and the filesystem was originally made directly on that
slice without partitioning it, it should be possible to run dump(8)
against it and pipe the output to restore(8).  This should work if
the slice is readable, even if it cannot be mounted.
___
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: FIXED: vpnc connects, but does not work

2009-01-12 Thread perryh
 ... I do have a Linux OS that I have access
 to that strangely does use vpnc successfully.

That may help quite a bit.  You can use something like tcpdump or
wireshark on the FreeBSD system to monitor the traffic between the
Linux system and the Cisco while connecting and doing something
simple like pinging the inside nameserver, then reverse roles and
use the Linux system to monitor the traffic between FreeBSD and the
Cisco while connecting and attempting to do the same simple thing.
You won't be able to see what's inside the IPSEC-encrypted packets,
but you can at least see how many of what size are sent in each
direction.  This may provide some clues as to what is going wrong.
___
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: Mounting a partition from freebsd 6.2?

2009-01-13 Thread perryh
  is there anything specific I should look at for switches or
  just dump /dev/ad2s1 | restore?

 Use:dump 0af - | restore -rf -  

It would be advisable to read the dump and restore manpages first.

In 6.1, and I suspect still in 6.2, restore -r should be used only
when restoring onto an empty filesystem or loading an incremental on
top of such a full restore.  If the destination (current directory)
is not the root of an empty filesystem, you want restore -x or
restore -i instead.
___
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: NFS fstab style

2009-01-13 Thread perryh
 Can someone confirm that these two lines are the same
 -or- if one is preferred over the other ?

 Code:
 192.168.1.8:/temp/tmp_nfs nfs  rw,-b,-i   0 0
 192.168.1.8:/temp/tmp_nfs nfs  rw,bg,intr 0 0

I've never seen the style of line 1 before,
no idea whether it would work or not.
___
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: Recommendations on reliable home fileserver hardware?

2009-01-20 Thread perryh
 there is also the droboshare. great little fileserver.

Last I knew Drobo supported only Samba, not NFS -- but that
was some time ago.  Have they come out with an upgrade?
___
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 create a DVD backup filesystem?

2009-01-23 Thread perryh
 You can always try to tar it up directly

 tar -czf /dev/acd0 ~kline/ ~devel/

Does it actually work to write to a burner without intervention by
the likes of cdrecord or burncd?  If so, should it also be possible
to burn an existing .iso by something like

  dd if=cd1.iso of=/dev/acd0 bs=64b
___
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: Registry corrupt?

2009-01-24 Thread perryh
Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote:

  describe something more.
  and what you mean rehash?
 
  Rehashing forces the shell to reinitialise (for want of a
  better term) so that it rechecks the path and can sometimes
  discover new programs installed if they don't seem to work ...

 ok you mean shell rehashing. so PATH is missing something

Or an executable was added to one of the PATH directories since the
last time PATH was set or the rehash command was issued, e.g. when
a port was installed or upgraded.  See tcsh(1) for details.
___
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: Comfortable dd bs= parameters for different media

2009-01-24 Thread perryh
 I'd like to ask which sizes are comfortable to use for reading
 from different media using the dd utility ...

In case anyone still cares, I have long used bs=120b for floppy
disks.
___
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: remove kerberos 5 from FreeBSD

2009-01-25 Thread perryh
 ... bsd.own.mk can be ahead of the man page.

Perhaps the OP would consider writing a sed script to generate
/usr/share/examples/etc/src.conf from /usr/share/mk/bsd.own.mk
___
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: Sharing ports hierarchy via NFS to different arch/versions.

2009-01-25 Thread perryh
  I've got a network running different versions of FreeBSD
  (6.3, 7.0) on different architectures (i386, SPARC64).
 
  What I'd like to do is export the ports hierarchy to all machines,
  but preserving ports/packages for each version/architecture.
  I also want to make rebuilding indexes run as fast as possible.
 
  Right now, I simply exports(5) /usr/ports via NFSv3 ...
...
 The following 2 lines on each machine in /etc/make.conf should
 fix those problems:
 PACKAGES=${PORTSDIR}/packages/${ARCH}
 INDEXFILE=INDEX-${ARCH}-${OSVERSION:C/([0-9]).*/\1/}

To speed up building, it may also be useful to set WRKDIRPREFIX
to something like /var/ports or /var/tmp/ports, so that the work
directories are local rather than having to be accessed via NFS.
___
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: Tool to uncat file

2009-02-01 Thread perryh
  before starting to code on my own, I'd like to ask if there's
  already a tool to uncat files, defining the file separation
  position as a string of bytes, usually given in hexadecimal form.
  
  An example could be this:
  
  % uncat -p 0x12,0x52,0xf1,0x09 file_orig
  
  It creates file_1 file_2 file_3. And, of course,
  
  % cat file_1 file_2 file_3  file_orig
  
  would re-create the original file. The bytes 0x12,0x52,0xf1,0x09
  tell the file starting pattern (-p), where a new file begins.
  
  I cannot use dd due to the fact that the files concatenated are
  of a different size ...

 csplit(1)

csplit would cover the case where the input file is text, to be
split on line boundaries based on patterns found within the lines;
but the example given looks like a binary pattern and my reading of
the inquiry is that the split should occur at the pattern rather
than at a nearby newline.  Grepping the ports INDEX for split
yields the following candidates which might bear examination, to
see if any of them will work:

misc/granulate
sysutils/gfslicer
sysutils/hoz
sysutils/lxsplit
___
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: no cats at home, but system (7.0-STABLE) reboots

2009-02-03 Thread perryh
 I'm searching for monkeys or intruders ...

Brief power outage, perhaps?  Some BIOS have a selection of what to
do when power is restored from an outage, typical choices being to
start up, remain off, or return to the state before power was lost.
Others may offer only the first two, or be hardwired to one of them
with no opportunity to choose a different behavior.
___
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: NFSv2 Wrong FS Size

2009-02-04 Thread perryh
 1755708928*1024/512 = 3511417856 blocks.  This number is larger
 than 2^31, which techinically isn't a problem because the NFSv2
 spec says that the filesystem size is unsigned.  FreeBSD treats it
 as signed, though, so it can display negative free space when
 root starts using its 8% reserve, so your unsigned 3511417856 gets
 printed as a signed -783549440, which messes everything up.
...
 you could rebuild df to print its numbers as unsigned instead of
 signed.  Just watch out if your local filesystems start eating
 into their 8% reserve, since they'll start reporting huge values.

Or patch df to print local filesystem sizes as signed -- so that
the reserve reporting still works -- and NFS as unsigned to match
the spec.
___
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: no cats at home, but system (7.0-STABLE) reboots

2009-02-04 Thread perryh
  Brief power outage, perhaps?  ...

 note: the box is a laptop; I hit the power-off button and pulled
 out the 220V power cable of the power-supply from the outlet
 (that's why later the laptop after 2h uptime failed with battery
 empty) ...

So much for the power-bounce theory.

Perhaps you have a poltergeist?  :)
___
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: NFSv2 Wrong FS Size

2009-02-05 Thread perryh
   you could rebuild df to print its numbers as unsigned
   instead of signed.  Just watch out if your local filesystems
   start eating into their 8% reserve, since they'll start
   reporting huge values.
  
  Or patch df to print local filesystem sizes as signed -- so
  that the reserve reporting still works -- and NFS as unsigned
  to match the spec.

 That works as long as you don't NFS-mount other FreeBSD systems
 with overfull drives :)

Looking at this a little more closely, it appears that the struct
statfs returned by statfs(2) and friends tells the whole story,
using 64-bit values most of which are defined as unsigned.  (Only
f_bavail and f_ffree -- the number of blocks and inodes available to
non-superusers -- are defined as signed.)  The code that converts
from the 32-bit NFSv2 to the 64-bit struct statfs values seems
more likely to be somewhere in NFS than in df(1).
___
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: OT: SVN checkout checksumming

2009-02-05 Thread perryh
 I want to use SVN to automate the update process of a custom 
 application. So, I'm planning to indicate to every PC to update 
 periodically to a specific branch of the repository. The problem
 is that I need to be sure the files where not corrupted during
 the transfer. So, I'm planning to generate the hash (SHA or MD5,
 doesn't really matters) of every file downloaded by SVN on the
 client. For this to work, I need to compare the hashes with their
 server-side equivalent ...

Do you need to mirror the entire branch, or only distribute the
latest version?  If the latter, ports/net/rsync may be what you're
looking for.
___
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: disk recovery problem II

2009-02-07 Thread perryh
 huff@ newfs /dev/da3a
 /dev/da3a: 78167.2MB (160086512 sectors) block size 16384, fragment size 2048
 using 426 cylinder groups of 183.77MB, 11761 blks, 23552 inodes.
 super-block backups (for fsck -b #) at:
  160, 376512, 752864, 1129216, 1505568, 1881920, 2258272, 2634624, 3010976,
...
  159949760
 cg 0: bad magic number

Bad drive, perhaps?  What do sysutils/smartmontools say?
___
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: NanoBSD :: smallest image size

2009-02-19 Thread perryh
 I did consider running it off a straight cd, but I alter my routes
 enough through various tunnels I have established that this would
 be a pain.  (i.e. updating vtund configs) ...

System on CD, reading config from floppy?
___
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: NanoBSD :: smallest image size

2009-02-21 Thread perryh
Tim Judd gmail.com!taj...@agora.rdrop.com wrote:

 On Thu, 2009-02-19 at 23:48 -0800, per...@pluto.rain.com wrote:
   I did consider running it off a straight cd, but I alter my routes
   enough through various tunnels I have established that this would
   be a pain.  (i.e. updating vtund configs) ...
  
  System on CD, reading config from floppy?

 I've tried this, in my own mix
 due to rcorder, an external /etc filesystem is not read NOR mounted in
 time to be read.  When I did it and tried to bring it up ASAP, the
 system failed to read hostname variable in the external /etc filesystem.

 I haven't yet, and probably won't try -- to rewrite the /etc/rc startup
 to allow it.  And I think it's because /etc/rc sources /etc/rc.conf even
 before it runs  So how can I start rc and get the
 external /etc/rc.conf read before rc starts?

 I'd like to know, if it's possible.

There's no way to mount /etc AFAIK, because parts of it are
needed too soon:  /etc/fstab if nothing else.  However, I had
gotten the impression that the only frequently-changing part
of the config in question involved vtund.

Rather than trying to do the mount early, I was thinking
of starting vtund later than usual -- perhaps by making
it depend on the completion of mount -a -- and having
it read its config from a file on the mounted floppy.

If vtund has to start sooner than that, an alternate approach
might be to have vtund read its config from the /dev/fd0 device
itself, rather than from a filesystem mounted on /dev/fd0
(having prepared the floppy ahead of time by something like
dd if=/path/to/vtund/config/file of=/dev/fd0).

Yet another approach would be to have boot and root (and thus
/etc) on floppy, but /usr on CD.  Tweaking things so that /usr
can be read-only dates back at least as far as SunOS 4.0.
___
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: hi

2009-02-22 Thread perryh
 You can always check out ... from a date before its removal from
 the ports/ tree ...  If you need help with maintaining a local
 copy of the relevant ports ...  let me know and I'll write a short
 mini-guide for checking out the ports before their removal and
 building them as local ports.

This sounds as if it would make a good Handbook section.
___
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: new hardware platform?? :-)

2009-02-25 Thread perryh
 On Tue, 24 Feb 2009, Robert Huff wrote:
  Has any one seen more on this?
  http://news.cnet.com/8301-17938_105-10170648-1.html

http://www.marvell.com/featured/plugcomputing.jsp

They claim only Linux support for the brick, but the blurb on the
88F6281 system-on-chip processor claims BSD support (for the SOC,
not necessarily for this board, and it didn't say which BSD).
BTW it's an ARM processor.

Wojciech Puchar wojtek.tensor.gdynia.pl!woj...@agora.rdrop.com wrote:
 i don't see monitor connector? :)

It's presumably intended to be used as a headless server, accessed
primarily via the GB Ethernet; however that slot on the top side has
several useful connections including serial and JTAG.  (Their debug
board converts those to USB, but nothing requires you to plug in the
debug board :)

One disappointment is that they apparently did not bring out the
chip's SATA and PCI-E connections.  The PCI-E is only x1, so not
all that great for high-performance video, but burying it inside
the box does seem like an unnecessary limitation.
___
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: disk/drive-bay problem

2009-02-26 Thread perryh
 g_vfs_done():da4s1d[READ(offset=261868847104, length=16384)]error = 5
...
 1. This only happens on drive-bay 4.  If I swap the 300 Gig drives
 around, they are all happy in any drive-bay but number 4 ...

 2. The old 145Gig drives work perfectly in any bay, including bay 4.

 ... Why would one (proven good) drive fail in that slot, while the
 other (also proven good) drive succeeds.  The only difference is
 the size and speed (145 vs 300, 10k vs 15k).

Any chance bay 4 has a minor wiring problem, like a broken ground
or three, causing an impedance bump?  Such things might just barely
work at 10k, but fail at higher transfer speeds.
___
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: Ports on Macbook

2009-02-28 Thread perryh
Chris Rees googlemail.com!utis...@agora.rdrop.com wrote:

 That passage says that any agreement with the knowledge of the
 relationship in good faith is valid.

 Where does it mention the difference between a click-through
 licence and an oral agreement?

With apologies to a certain former U.S. President, that may depend
on the definitions of the terms.  Does someone who simply clicks
yes, without actually reading the license first, have knowledge
of the relationship?  Does someone who clicks yes, while having
no intention to comply with the terms, act in good faith?

For that matter, does Apple -- having never met the clicker in
person or even on line -- have knowledge of the relationship?

 Though a test case would be nice. Has anyone been lunatic
 enough to try taking it to court?

Given the nature of the situation, I'd think the only party likely
to take it to court would be Apple.  You seem to be saying that
they would be crazy to do so.  I suspect the OP would agree :)

 Otherwise a clicked Yes counts as an agreement made in good faith.

Are you qualified to give legal advice concerning Swedish law?

I am not, but I would guess that you could well be right *if* Sweden
has adopted something similar to DMCA; otherwise I am not so sure.
(I don't suppose the U.S. would have adopted DMCA unless it had been
thought to produce substantially different results than the previous
copyright law.)
___
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: portmanager/portmaster like application for packages?

2009-03-01 Thread perryh
Mel fbsd.questi...@rachie.is-a-geek.net wrote:

 On Saturday 28 February 2009 23:06:10 Fbsd1 wrote:
  I am looking for software like portmanager/portmaster but works
  on the package system instead of the port system. Is there such
  am application available?

 Not (yet). Without /usr/ports it's impossible to find out what
 software needs updating, or you'd have to download and trust the
 INDEX-7 on the FreeBSD package servers.

... which may not be much of a stretch for those who are prepared
to download and trust the packages themselves, from the same place.

portupgrade -PP manages somehow.  BTW, the OP may not realize that
the package system is a subset of the port system, rather than
an alternative.  Packages are generated using the port system.
___
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: bsd.rd for FreeBSD install

2009-03-04 Thread perryh
 If the machines have floppies, there are downloadable floppy
 images.

Is anyone aware of a simple method to construct a bootable
zip-drive image from the floppy images and/or bootonly.iso?
___
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: Is NFS Locking Reliable?

2009-03-11 Thread perryh
 Our NFS servers for user home directories are on FreeBSD (6.4),
 MacOSX (10.5), Linux (still 2.4 kernel) and Tru64-UNIX boxes; NFS
 clients are mostly Linux (2.6 kernel) and FreeBSD (6.4, 7.0, but
 w/o kernel lockd) systems.

I have seen problems with NFS locking even in completely homogeneous
environments.  With a mix like that, I would not trust it as far as
I could throw a Cray :)

 There are periods of several days without problems, but from time
 to time, on one, two, or several (but not all) clients application
 processes which use locking suddenly hang in kernel mode - namely
 firefox, opera, pine.

Lockups are probably the least of your concerns, at least where
pine is involved.  Dunno what sort of data firefox and opera are
protecting from race conditions, but I suppose pine is being used
for email.  Cases will arise wherein mail mysteriously disappears,
because the client and the delivery agent were both updating the
inbox at the same time.  Often there will be no noticeable symptoms,
except for users wondering what happened to that important message
they were supposed to have gotten (and which the MTA log shows was
in fact delivered).

Never export an inbox read/write if reliability of mail delivery is
needed.  Use IMAP instead.

 It seems to be no specific operating system problem - all
 combinations of clients and servers are involved.

I suspect the reason NFS locking is so troublesome is that it
presents problems which are fundamentally incomputable.  Prior
to restoration of communication, how can any automaton possibly
distinguish between

* a temporary loss of the communication link (but the peer is still
  running and the link will eventually be re-established), and

* the peer has crashed, and will eventually reboot?
___
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: utility that scans lan for client?

2009-03-24 Thread perryh
Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote:
 On Monday 23 March 2009 19:59:36 John Almberg wrote:
  What I'm looking for is a utility that can scan a LAN for attached
  clients... i.e., computers that are attached to the LAN.
 
  I have one box (an appliance that I have no access to), that is on
  the LAN but I don't know what IP address it's using. I'd like to
  complete my network map, and that is the one empty box on my chart.

 security/nmap

 If the box pings, you can simply scan your LAN like:
 $ nmap -sP 192.168.2.0/24

Or, with no ports needed:

$ ping -n -t 5 -i 10 192.168.200.255

Granted you need to know the broadcast address.  If you know the
interface name, you can get the broadcast address from ifconfig:

$ ping -n -t 5 -i 10 ` ifconfig xl0 | sed -n -e 's/^.* broadcast //p' `

BTW both ping and ifconfig are in /sbin, which is perhaps somewhat
less likely to be in PATH than /bin and /usr/bin.
___
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 configure xbiff

2009-03-26 Thread perryh
Polytropon edvax.de!free...@agora.rdrop.com wrote:
 On Thu, 26 Mar 2009 08:39:38 +0100 (CET),
 Pieter Donche pieter.don...@ua.ac.be wrote:
  From a terminal window command line xbiff -geometry 50x50-5+5  puts
  it in my upper right corner, [...]

 Do you use -5 to get rid of a window border added by KDE's window
 manager?

IIRC that construct would place xbiff in the upper right corner of
the screen.  (Negative X coordinate = distance from right edge.)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: installing freebsd on windows

2009-03-28 Thread perryh
Jerry ges...@yahoo.com wrote:
 If the connection is down, I am probably NOT using the PC. Hell,
 if the power is out for more than 30 minutes, my UPS is dead so
 I am most definitely not using the machine.

So you never experience connectivity problems for any reason other
than a local power failure?  Astonishing!
___
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


Heller-Johnson syndrome (Re: installing freebsd on windows)

2009-03-28 Thread perryh
 Heller's Law: The first myth of management is that it exists.

 Johnson's Corollary: Nobody really knows what is going on anywhere
  within the organization.

Author unknown: If someone *does* know what is going on in the
organization, that person must be fired.
___
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: Fetching directories inclusive subdirectories on HTTP server via fetch or othe FreeBSD-own tools?

2009-04-02 Thread perryh
O. Hartmann ohart...@zedat.fu-berlin.de wrote:
 I need to fetch a whole directory tree from a public remote site.
 The top level directory and its subdirectories are accessible via
 ftp:// and http:// so I tried fetch, but fetch does only retrieve
 data on file basis and does not copy a whole directory tree
 recursively. The remote site does not offer sftp/sshd for that
 purpose.

There's at least one ftp server (wuftpd) that will do it for you
on the server end.  All you have to do is get {dirname}.tar.
(The .tar file won't appear in the directory listing, because
it's created on the fly.)

It might be worth a try, to see if the server of interest happens
to be set up this way.
___
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: going from cvs to svnq

2009-04-02 Thread perryh
Chuck Robey chu...@telenix.org wrote:
 But I do need to figure out how to get the subversion archive (not
 a particular branch of the archive, the whole kit and kaboodle).

devel/svk?  (From a mention last December; I have not tried it.)
___
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: new package system proposal

2009-04-04 Thread perryh
Chris Whitehouse cwhi...@onetel.com wrote:
 My suggestion is to start with a ports tree that is fixed in time.
 Make that ports tree available as part of this package system and
 compile a typical desktop set of ports ...

Isn't this exactly what is currently done as part of a release?  The
ports tree is tagged so that a snapshot can be retrieved using csup,
and packages are built for publication on (for example)
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.0-release/

Granted this includes all package-distributable ports rather than a
typical desktop subset.

 Modify pkg_add so that it can be told to use this 'snapshot'
 including downloading the fixed ports tree that was used.

AFAIK pkg_add currently does not download the ports tree at all --
that is done using csup or portsnap -- but it can be directed to
a release set or other remote package repository via the -r flag.
My only issue with that approach is that, last I knew, there was
no way to specify a mix of local and remote repositories (to deal
with the case where I have already downloded some subset of what
I end up needing, so I want pkg_add to search locally first and
use the remote repository only for packages that it can't find
locally).
___
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: going from cvs to svnq

2009-04-04 Thread perryh
Chuck Robey chu...@telenix.org wrote:
 per...@pluto.rain.com wrote:
  Chuck Robey chu...@telenix.org wrote:
  But I do need to figure out how to get the subversion archive (not
  a particular branch of the archive, the whole kit and kaboodle).
 
  devel/svk?  (From a mention last December; I have not tried it.)

 Huh.  From reading the port's description file, it seems to be a
 svn lookalike, but with a differing feature list.  Supposely uses
 the same filesystem layout as subversion ...

I got the impression from the 2nd and 3rd non-quote paragraphs here:

http://lists.freebsd.org/pipermail/freebsd-hackers/2008-November/026898.html

that what you want is a full svk mirror, and since it was being
advocated I presumed that it could be set up by a reasonably simple,
if initially time/bandwidth intensive, mechanism.  This, from
earlier in the same thread, may be useful:

http://wiki.freebsd.org/SubversionPrimer

Again, I have not gotten around to trying any of this.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


USB SD-card reader recognized, but not working, on 6.1

2009-04-09 Thread perryh
Trying here, after no answer on usb@

When I plug in the reader, I get (on the console):

umass0: SDMMC M121 USB 2.0  SD/MMC READER, rev 2.00/2.01, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0: USB 2.0 SD/MMC Reader \001\000\000? Removable Direct Access SCSI-0 
device 
da0: 1.000MB/s transfers
da0: 1962MB (4019200 512 byte sectors: 255H 63S/T 250C)

So far, so good, and it appears -- based on this excerpt from the
mtoolstest output -- that mtools is configured to read /dev/da0 as b:

drive B:
#fn=1 mode=0 defined in /usr/local/etc/mtools.conf
file=/dev/da0 fat_bits=0 
tracks=0 heads=0 sectors=0 hidden=0
offset=0x0
partition=0

However, when I try to read it with mtools:

$ mdir -a b:
init B: non DOS media
Cannot initialize 'B:'

When I try to investigate using file:

$ file -s /dev/da0

I get a very long pause, during which this appears on the console:

umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 
0x0
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT

and the file command reports

/dev/da0: ERROR: cannot read `/dev/da0' (Input/output error)

Is there anything that can be done in the way of configuration
adjustments, or is this reader just not usable on 6.1?

USB part of dmesg.boot:

uhci0: Intel 82371AB/EB (PIIX4) USB controller port 0xcce0-0xccff irq 11 at 
device 7.2 on pci0
uhci0: [GIANT-LOCKED]
usb0: Intel 82371AB/EB (PIIX4) USB controller on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
___
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: USB SD-card reader recognized, but not working, on 6.1

2009-04-09 Thread perryh
Roland Smith rsm...@xs4all.nl wrote:
 Are you sure that the drive isn't partitioned? In other words,
 if you plug in the drive, and you give the command 'ls /dev/da0*',
 do you only get /dev/da0 or perhaps also /dev/da0s1? If it is
 partitioned, try /dev/da0s? instead.

It's an SD card, not a drive, so I had not expected it to be
partitioned; but yes, it is:

$ ls -l /dev/da0*
crw-r-  1 root  operator0, 244 Feb 14 15:09 /dev/da0
crw-r-  1 root  operator0, 245 Feb 14 15:09 /dev/da0s1

 Second, does the user running mtools have read and write access
 to the device?

Read-only, which should be sufficient for mdir.  The card is,
deliberately, write-protected.

After reconfiguring mtools to read from /dev/da0s1, I started
getting those umass0: BBB bulk-in clear stall failed, TIMEOUT
messages again, but I can read it a sector at a time using dd:

$ dd if=/dev/da0 of=~/sd bs=1b

That's been running for something like 45 minutes now, and based on
the size of the output file it has read about a tenth of the card.

It looks as if the problem arises only when attempting to read
larger blocks.  (I haven't tried to find out how much larger.)

 Have you tried just mounting the card reader?

No, because I'd expect to panic the system if it is not in fact a
valid (and readable) FAT filesystem.  Mtools seems much safer.
___
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: USB SD-card reader recognized, but not working, on 6.1

2009-04-09 Thread perryh
Roland Smith rsm...@xs4all.nl wrote:
 On Thu, Apr 09, 2009 at 12:47:23PM -0700, per...@pluto.rain.com wrote:
  It's an SD card, not a drive, so I had not expected it to be
  partitioned; but yes, it is:
  
  $ ls -l /dev/da0*
  crw-r-  1 root  operator0, 244 Feb 14 15:09 /dev/da0
  crw-r-  1 root  operator0, 245 Feb 14 15:09 /dev/da0s1

 That would suggest that there is a filesystem on there, doesn't it?

It would certainly suggest there is a DOS partition table aka
BSD slice table.  I don't think it says anything about what the
slice contains, however.

  $ dd if=/dev/da0 of=~/sd bs=1b
  
  That's been running for something like 45 minutes now, and based
  on the size of the output file it has read about a tenth of the
  card.

 Reading one byte at a time is bound to be slow.

dd bs=1b is one block (512 bytes), not one byte.

At least it seems to be working.  I *would* anticipate problems if
trying to read a umass device in units not a multiple of its native
blocksize.

 It could be that this USB chipset needs some quirks to work
 correctly.

like Don't attempt to read more than 32768 bytes at a time --
subsequent testing shows it to be OK up to bs=64b, but bs=126b
fails -- or is there maybe a way to set that sort of limit in
mtools?
___
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: USB SD-card reader recognized, but not working, on 6.1

2009-04-09 Thread perryh
Polytropon free...@edvax.de wrote:
 On Thu, 09 Apr 2009 12:47:23 -0700, per...@pluto.rain.com wrote:
  It's an SD card, not a drive, so I had not expected it to be
  partitioned; but yes, it is:
  
  $ ls -l /dev/da0*
  crw-r-  1 root  operator0, 244 Feb 14 15:09 /dev/da0
  crw-r-  1 root  operator0, 245 Feb 14 15:09 /dev/da0s1

 Why don't you expect this? As far as I know, if something is
 msdosfs-formatted (read: any Windows readable file system,
 FAT), it always involves a slice device. I never found a
 situation where access to /dev/da0 would work.

My experience is exactly the reverse.  I've never before seen a
removable-media device (floppy, Zip-drive, JAZ drive) that *did*
have a DOS partition table aka BSD slice table.  Surely you
would not expect a USB floppy to show up as /dev/da0s1?

AFAIK the reason for creating slices is to identify sections of
the device for use by different OS -- something often needed
for multi-boot from a hard drive but seldom on removable media.
I sure wasn't planning to use part of this SD card for my camera
to store pictures on, and the rest for FreeBSD backups :)
___
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: openoffice.org-3.01 packages available (i386)

2009-04-11 Thread perryh
Manolis Kiagias sonic200...@gmail.com wrote:
 I could also distribute the ports tree ...

I wonder if it's necessary to distribute the entire ports tree.
Perhaps it would suffice to distribute a timestamp for csup/cvsup
to retrieve the appropriate version.
___
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: Checksum mismatch -- will transfer entire file

2009-12-28 Thread perryh
Victor Sudakov v...@mpeks.tomsk.su wrote:
 ... [svn] needs python26, perl and tcl - all the three of them ...

It seems you may have discovered the significance of the name:
it subverts the sysadmin's sanity.  Maybe it can find practical
use as a meta-port for scripting languages, if someone cares to
add ruby to the mix ;)
___
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: PCIe audio cards: what is tob be preferred with FreeBSD 8.0/9-CURRENT?

2010-01-24 Thread perryh
O. Hartmann ohart...@mail.zedat.fu-berlin.de wrote:
 At this very moment I utilise a M-Audio 5.1 PCI-audio board with
 which I'm really satisfied. My next box doesn't have PCI slots
 at all ... I look for the Soundblaster X-Fi range of PCIe cards, 

It's possible to get an adapter that plugs into a PCIe slot and
provides a PCI slot, which might enable you to continue using
your current card.  I've never actually seen one, so don't know
about the mechanics; it could turn out that it can only be used
by leaving the cover off of the box :(
___
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: backup terminal title

2010-02-06 Thread perryh
 I wish to use  the \033]0;%s\007 sequence in a shell-script to
 set the title of a terminal. But only if I am able to undo it.

 My requirement is that this must be done without using anything
 outside the base system.

There is an escape sequence which will cause the terminal to echo
back its current title, but it's a bit tricky to use given only
base-system tools because the echo ends with, IIRC, \007 rather
than \n.  It may be possible in some shells to temporarily set the
line-end character to \007.  You probably also want to (somehow)
cover problematic cases like terminals that don't reply to the
inquiry even though TERMCAP implies that they should.
___
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: Howto run privileged commands on login/logout

2010-02-06 Thread perryh
Erik Norgaard norga...@locolomo.org wrote:
 I'm playing around with diskless operation. I'd like to be able
 to run privileged commands when a user logins or logs out:

 - on login, nfs mount the user's home directory (ok, not critical,
 I can mount /home)

Or, better yet, use an automounter.

 - on logout a system reboot to clean up any temporary files left
 from the session.

I'm not aware of any existing, simple method to handle this part.
It might not be all that difficult to hack something into getty(8)
or init(8).  Another possibility would be to clean /tmp and /var/tmp
in the .logout script, which should not require any special privs.
___
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: backup terminal title

2010-02-06 Thread perryh
Warren Block wbl...@wonkity.com wrote:
 What's the sequence for reading the terminal title?

If I remembered it I'd have included it :)

The first 3 results from Googling xterm escape sequences are

  rtfm.etla.org/xterm/ctlseq.html

  www.faqs.org/docs/Linux-mini/Xterm-Title.html

  www.kitebird.com/csh-tcsh-book/ctlseqs.pdf

I'd expect it to be in at least one of them.

(#4 may be a miss, but the next 5 also look promising.)
___
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: display and manipulate math symbols?

2010-02-09 Thread perryh
Gary Kline kl...@thought.org wrote:

 Is there any app or web site where you can select from a bunch of
 math symbols and arrange them on-screen ... pre-drawn symbols that
 could be moused around?

If not for the WYSIWYG requirement I'd suggest some variant of TeX.

Based entirely on reputation, I'd think PowerPoint could do this
fairly easily, provided the symbols you need are in one of the
installed fonts.  Have you tried the corresponding OpenOffice tool?
(I think it may be called present or some such.)

If I were going to do something like this, and didn't want to take
time to learn a new tool, I'd try using Visio -- one of only two
apps which I've found useful enough to get me to voluntarily put up
with Windoze.  Dunno (yet) how well it will run under wine; this is
one of several things I intend to try if I can ever find the time to
get a newer FreeBSD system set up.  (Wine is reputed to not work at
all well on 6.1.)

Ports/graphics/dia is somewhat similar to Visio, I think more
limited, but perhaps sufficient depending on just what you need
to do.
___
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: setting default directory ACLs using xargs

2010-02-13 Thread perryh
Doug Sampson do...@dawnsign.com wrote:

 I need to do this at the command prompt for all directories:
...
 r...@aries:/data/Products# getfacl . | setfacl -d -b -n -M - .

 Now, I have thousands of subdirectories that I want to apply this
 to. When I attempt to use the xarg command with the above command
 modified to work with xargs, I end up with an error message ...

Two possibilities come to mind:

* Try using the -L 1 switch to cause xargs to run a separate
  command instance for each input value.

* You may have run into one of the rare situations where
  find ... | xargs is not the best tool for the job.  It may
  work better to set up a 3-line shell script along the lines of

#!/bin/sh
cd $1
getfacl . | setfacl -d -b -n -M - .

  and then use find -type d -exec to run it for each directory.
___
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: Flash viewer for FBSD

2010-03-06 Thread perryh
Pongthep Kulkrisada ptkris...@gmail.com wrote:
 * Warren Block (wbl...@wonkity.com) wrote:
  When you upgrade from 7.x to 8.x, it's necessary to rebuild
  *all* ports.
 ...
 Some people only use console, they should rebuild all ports
 relating to their work.
 They do not have to rebuild KDE or GNOME, for example.

Instructions like rebuild *all* ports mean rebuild *all* ports
that you have installed on your system.  No one expects you to
build every port in the tree, unless your system is pointyhat :)
___
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 install from floppy

2010-03-06 Thread perryh
Piotr Lukawski plukaw...@googlemail.com wrote:
 ... I really cannot understand why nobody can change
 just one parameter and put the file in a proper place in
 ftp://ftp.FreeBSD.org/pub/FreeBSD/releases/i386/8.0-RELEASE/floppies/

I seem to remember something about the floppy images being dropped
because few current (or even recent) systems have a floppy drive at
all, much less a bootable one.

I sure hope they don't start applying the same reasoning to drivers
for old-ish devices.  Some of us do not rush out and acquire
the latest/greatest whiz-giz every few months just because it's
available.
___
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: Non-maskable interrupt trap

2010-03-06 Thread perryh
Marco Beishuizen mb...@xs4all.nl wrote:
 Fot the first time in years I had a kernel panic in FreeBSD
 (8.0-ST).  While playing a flash movie in Firefox (3.6),
 everything just locked up and only resetting helped. After the
 reboot it wrote a corefile in /var/crash/ which is unfortunately
 too big to read by any text editor.

Corefiles are binary, not usefully readable with anything text
oriented.  See the Handbook section on Kernel Debugging for how
to get a backtrace from it.

 ...
 Hope that someone has an idea what has caused this. I just can't
 imagine that a flash plugin is able to crash FreeBSD.

One possible cause is a driver bug in some obscure corner case that
the flash player tried to use.
___
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: [OT] ssh security

2010-03-09 Thread perryh
Angelin Lalev lalev.ange...@gmail.com wrote:
 So, SSH uses algorithms like ssh-dss or ssh-rsa to do key exchange.
 These algorithms can defeat any attempts on eavesdropping, but cannot
 defeat man-in-the-middle attacks.  To defeat them, some pre-shared
 information is needed - key fingerprint.

What happened to Diffie-Hellman?  Last I heard, its whole point was
to enable secure communication, protected from both eavesdropping
and MIM attacks, between systems having no prior trust relationship
(e.g. any sort of pre-shared secret).  What stops the server and
client from establishing a Diffie-Hellman session and using it to
perform the key exchange?
___
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: [OT] ssh security

2010-03-09 Thread perryh
Olivier Nicole olivier.nic...@cs.ait.ac.th wrote:
  What happened to Diffie-Hellman?  Last I heard, its whole
  point was to enable secure communication, protected from both
  eavesdropping and MIM attacks, between systems having no prior
  trust relationship (e.g. any sort of pre-shared secret) ...

 I am not expert in cryptography ...

Nor am I

 but logic tends to tell me that is I have no prior knowledge about
 the person I am about to talk to, anybody (MIM) could pretend to
 be that person.

 The pre-shared information need not to be secret ... but there is
 need for pre-shared trusted information.

Er, if the pre-shared information is not secret, how can I be sure
that the person presenting it is in fact my intended correspondent
and not a MIM?  My impression is that Diffie-Hellman (somehow) solves
this sort of problem.
___
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: Objective-C 2.0 on FreeBSD; garbage collection, anyone?

2010-03-12 Thread perryh
Scott Bennett benn...@cs.niu.edu wrote:
 If your program never frees any memory, then there is never
 any garbage to collect.

Last I knew, garbage collection refers to tracking down and
reclaiming allocated memory to which no valid references exist.

The particular example given here is sufficiently trivial not
to actually need GC -- it could easily free() before losing
the (only) reference -- but keeping track can become extremely
tricky in complex systems (hence the considerable effort that
has been expended in designing and implementing GC systems).
___
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: Very suspicious stack trace

2010-03-26 Thread perryh
Peter Steele pste...@maxiscale.com wrote:
 what would lead malloc() into calling abort()?
 Everything seems to be in order.

Something may have trashed its internal data structures.
I'd suggest a close look for things like buffer overflows.
___
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: Question about expr

2010-03-27 Thread perryh
Manish Jain invalid.poin...@gmail.com wrote:
 When you execute a script ...  the aliases are 
 ignored. Is there some way to fix this ...

Search for expand_aliases in the bash manpage.
___
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, postfix and push email

2010-03-28 Thread perryh
Tim Judd taj...@gmail.com wrote:
 On 3/27/10, Ron (Lists) rg.li...@rzweb.com wrote:
  Is there a way to get my freebsd/postfix setup to send push
  notifications to an iPhone ... I know it can be done with
  Exchange and ActiveSync, but I don't want to run any kind of
  exchange server.

 Wouldn't push email be a function of your POP3 or IMAP server?
 FreeBSD and Postfix are neither of those.

Er, no.  POP3 and IMAP are pull services, wherein the client
polls the server periodically for any newly-arrived messages.
A client-level push service would need to operate similarly
to biff(1)/comsat(8).
___
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, postfix and push email

2010-03-28 Thread perryh
Dan Nelson dnel...@allantgroup.com wrote:
 For ActiveSync at least, the phone has to keep a TCP connection to
 the server open 24/7, and the server sends a notification when a
 new mail arrives.  MobileMe probably works the same way.  The IMAP
 protocol supports a similar notify on new mail option, but for
 some reason Apple doesn't use it in their client.

Sigh.  It's hardly the first time a major software company
insisted on improving a standard protocol instead of
maintaining compatibility/interoperability with the rest
of the world.
___
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: Sendmail Five Second Greeting Delay

2010-04-03 Thread perryh
Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org wrote:
 Matthew Seaman m.sea...@infracaninophile.co.uk writes:
  Ident queries like this will cause a delay if the other side
  doesn't respond respond to the ident query ...
 I consider it polite for firewalls to actively refuse to open
 the connection (TCP reset) rather than just dropping the request,
 though.  There's really no downside to doing so.

Other than giving port-scanners an affirmative indication that
there is a device of some sort at the IP address involved.
Some firewalls even drop pings for exactly this reason.

If the request comes from an address to which I've recently*
initiated a connection -- so he already knows that my address
is currently alive -- I ought to either respond per protocol
or reset.  If it comes from who-knows-where, it may be safer
to drop it.

The ident protocol is useful for the purpose for which it was
designed:  to pass whom to blame info between servers which have
reason to trust one another's identity (based on, e.g., stable IP
addresses) and administration.  Granted the circumstances in which
these conditions are met are a lot less prevalent than they once
were.

* for some resonable definition of recently
___
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: Intel D945GSE vs Zotac ION ITX (was: Support for Zotac MB with nVidia ION chipset)

2010-04-06 Thread perryh
Robert Bonomi bon...@mail.r-bonomi.com wrote:

 One fairly well-known super computer class architecture from the
 mid 1960s ran without *any* error checking in the CPU *or* main
 memory.  Dr. Seymour Cray analyzed things and concluded the
 significant extra component count for just doing 'parity'
 checking, let alone ECC made for a net _reduction_ in overall
 system reliability, *IF* the machine was run under very tightly
 controlled operating conditions -- the big ones being extremely
 stable power and a very limited temperature range.  So, he
 specified the design to tight tolerances, and ran truely 'naked'
 hardward. Scary, but true.  And, it worked.

CDC-6600 and/or 7600, I presume?

The flaw in that reasoning is that, while an unchecked machine may
indeed be faster and/or have a somewhat better MTBF, the symptom
of a failure may well be silently incorrect results.  If reliable
production results are what's valued, as opposed to time between
detected failures while running diagnostics*, a checked or corrected
design wins hands down.

 This was also a machine where, at any given moment, a fair part
 of the data in the CPU was 'in the wires' (in transit from one
 part of the CPU to another), and significant parts of the wiring
 harness had to be of _just_the_right_length_ (speed-of-light
 considerations) for the box to work.

Second- (or third?) hand war story from the manufacturing dept:
Occasionally the instructions would call for pin so-and-so to be
connected to pin thus-and-such with, say, a 6 wire -- when the
pins in question were 8 apart!  The source of the story claimed
that the standard practice in such cases was to use the shortest
wire that would reach, and let the QA dept worry about the fallout.

* A diagnostic is a program that runs when the hardware is
  malfunctioning -- R. F. Rosin.
___
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 customized can an mfsroot be?

2010-04-08 Thread perryh
Peter Steele pste...@maxiscale.com wrote:
 In my read-only CD-ROM boot case, /var is created as a MFS device
 automatically and populated, but a basic directory layout only is
 used. Nothing from the CD-ROM /var is copied into the MFS /var
 that is created.

 I cannot figure out how BSD can do this automagically, so I'll
 have to have a duplicate copy of /var on the CD and populate it
 from that. What I've tried that works well is when I'm about to
 run mkisofs to create the .iso from, I rename my /var to /var2 and
 create an empty /var. When the iso is booted, a default MFS based
 /var is created with a specific collection of directories. I have
 a startup script that copies my /var2 contents into /var and that
 does the trick.

You might be able to reduce the iso size some by making a tarball
of /var (using tar -y or tar -z) instead of keeping /var2 as a tree.
Granted you would then need to have tar(1) in the iso, which may
cancel out much of the savings if you would not otherwise have
needed it.
___
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: USB Powered Speakers

2010-04-09 Thread perryh
Programmer In Training p...@joseph-a-nagy-jr.us wrote:

 ... they are only attached for power purposes ...

 Input power: DC 5V 500mA

Any chance these speakers need a USB 2.0 port, and all the ports
on your FreeBSD box are 1.x?  I don't remember the USB power spec
offhand, but 2.5W may exceed what a USB 1.x port can supply --
a limit that applies regardless of the system's overall power
provisioning.
___
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: Kernel Config for NAT

2010-04-09 Thread perryh
Ian Smith smi...@nimnet.asn.au wrote:
 http://www.freebsd.org/doc/handbook/firewalls-ipfw.html
 rant
 This is absolutely the worst section of an otherwise great
 handbook ...  Nothing short of a rewrite from scratch could
 fix it ...

As always, I'm sure a patch -- to provide that rewrite --
would be welcome.
___
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: USB Powered Speakers

2010-04-09 Thread perryh
Programmer In Training p...@joseph-a-nagy-jr.us wrote:

 I'm thinking I'm just going to wait until Tuesday and get a brand
 new pair of wall-powered speakers. This hassle is NOT worth it ...

If speakers on USB 2.0 card, all else on 1.x builtins doesn't
work, you might want to try a power adapter that has a USB host
connector.  (I've seen such at Fry's, intended for devices like
iPods that were designed to recharge their internal batteries
from a USB port.)  This would effectively convert your current
set to wall-powered, which might be less costly than a new set.

WRT the suggestion to hack something together, I wouldn't suggest
attempting it unless you're quite sure of what would be involved.
It wouldn't be exactly difficult, but getting something backwards
-- or connecting to the +12 instead of the +5 supply -- would at
least let all the magic blue smoke out of the speakers :)
___
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: [SPURIOUS] Delivery Status Notification(Failure) (fwd)

2010-04-20 Thread perryh
Ian Smith smi...@nimnet.asn.au wrote:

 Has anyone (everyone?) else been receiving these DSNs a week or so
 after having posted to freebsd-questions@ ?  Since around early
 April?

 I've had four such in the last three days ...

 If it's 'just me' I can block their source, but if more widespread
 I'll ask our esteemed postmaster (cc'd) to try hunting the errant
 recipient.

 cheers, Ian

 -- Forwarded message --
snip headers
 Your message:
 To: twelc...@mobileemail.vodafonesa.co.za
 Subject: Re: reliable rs-232
 Sent Date: 25:05 +
 has not been delivered to the recipient's BlackBerry Handheld.

Now that you mention it, yes.  A posting to freebsd-questions@
about 01:00 (US Pacific) on Apr 06 did not get one of those, but
one about 01:10 on Apr 08 and three (one about 01:00, two about
19:10) on Apr 09 did.  The first notice turned up at 20:16 Apr 16,
and the other three between 20:13 and 20:15 on Apr 17.  All four
specify the same recipient address as yours.
___
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: [SPURIOUS] Delivery Status Notification(Failure) (fwd)

2010-04-21 Thread perryh
Matthew Seaman m.sea...@infracaninophile.co.uk wrote:

 One bounce is bad enough if it goes back to the whole list
 -- but that could be excused as a momentary aberration.
 Any more than that is grounds for reporting the message to
 postmas...@freebsd.org and having the sender blacklisted:
 anyone that configures a mail server to send error notifications
 to an entire mailing list needs a) to spend some quality time
 studying the SMTP RFCs and b) to step away from the keyboard
 /now/ as they are clearly not competent to run a mail server
 on the Internet.

I've seen no indications of the bounces going to the list, only to
the sender (i.e. I posted 4 messages to freebsd-questions@ and got
back 4 bounces; I didn't get bounces that seemed related to anyone
else's posts).  However, it does look as if someone needs to teach
that mailserver about the Errors-To: header.

 Thoroughly recommend using relaydb(1) to teach your mail system
 where you've received spam from in the past and make sure it
 doesn't happen again ...

I let my uucp(!) upstream's Red Condor spam filter deal with that
sort of problem :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Network laser printcap

2010-04-24 Thread perryh
Graham Bentley ad...@cpcnw.co.uk wrote:
 Could anyone using a network laser printer post
 their working /etc/printcap entry?

 Having mixed results getting a Kyocera FS-1010
 working consistently on both ascii  ps

These entries work here on 6.1:

lp|Samsung ML-2571N PostScript network printer:\
:sh:\
:rm=ml2571n:sd=/var/spool/output/ml2571n:lf=/var/log/lpd-errs:
xerox|Xerox Phaser 6130 Color PostScript network printer:\
:sh:\
:rm=xp6130:sd=/var/spool/output/xp6130:lf=/var/log/lpd-errs:
___
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: Wpoison?????

2010-04-27 Thread perryh
John j...@starfire.mn.org wrote:

  There are better systems that have a pure honeypot which actually
  accepts mail (and add the IPs that send mail to a blacklist)

 OK - where do we find one of THOSE?

Unfortunately, THOSE may be a bit too simplistic :(

Someone forges an email appearing to come from one of your honeypot
addresses, and sends it to a bogus (or on-vacation) address at a
legitimate site.  The bounce (or vacation response) comes to your
honeypot address, causing you to blacklist the legitimate site.

No, I am not making this up.  More than once I've discovered one of
my employer's mail servers on the Spamcop blacklist, causing my home
upstream to bounce (as presumed spam) messages I tried to send from
office to home.  This seemed to have been the mechanism involved.
___
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: Wpoison?????

2010-04-27 Thread perryh
John j...@starfire.mn.org wrote:

 I wouldn't need to create a new e-mail account, I've already
 got lots of them that seem to be pure spam magnates, including
 man (the manual pages psuedo-user) which are getting stuff
 sent to them all the time.  I'm pretty sure that anyone sending
 to m...@starfire.mn.org is a spammer...

Another favorite, at least here, seems to be old Message-Id's
that have been harvested and used as email addresses :(
I haven't seen anything to man yet, however.
___
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-only booting on FreeBSD

2011-02-19 Thread perryh
Robert Bonomi bon...@mail.r-bonomi.com wrote:

 A non-ZFS boot drive results in immediate, _guaranteed_,
 down-time for replacement if/when it fails.

Not if it is gmirrored and hot-pluggable.
___
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: Backtick versus $()

2011-02-25 Thread perryh
Thorsten Glaser t...@mirbsd.org wrote:

 tcsh is not a shell ...
 http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/

If you are _that_ strongly opposed to (t)csh, sir, I submit that you
are wasting your time reading and posting to a FreeBSD mailing list.
___
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: Bit order == byte order??

2011-03-04 Thread perryh
Erik Trulsson ertr1...@student.uu.se wrote:
 On Thu, Mar 03, 2011 at 11:26:12AM -0500, Frank Solensky wrote:
  In sys/netinet/ip.h, the first octet of the ip header structure
  tests the byte ordering to determine the ordering of the header
  length (ip_hl) and version (ip_v) fields.
  
  My question: that always works?  While my reading of the
  language specification document leaves both the ordering of
  the bits within a byte and the bytes within a longer field as
  implementation choices, the two are independent of each other.
  
  I haven't run into a CPU where this assumption was proven
  incorrect ...

 Unless you have a CPU where memory is addressed bit-by-bit rather
 than byte-by-byte the ordering of bits within a byte is not only
 completely irrelevant, it is also pretty much impossible to
 determine programatically.

Agreed it is at least difficult to determine programatically,
however it is quite important when dealing with hardware that
converts between a sequence of bytes and a bitstream, e.g.
serial ports, network interfaces, SATA ports.  Driver writers
had _better_ know which bit of the byte, as well as which
byte of a word/longword/quadword, is going on the wire first.

The O.P. is absolutely correct that bit order within a byte and byte
order within a multibyte field need not, in principle, be the same.
___
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: grep: write error: Broken pipe

2011-03-06 Thread perryh
 ?? avs...@mail.ru wrote:

 ... how best can I repay you all?

IMO, by paying it forward:  as you become more familiar with/
knowledgeable of FreeBSD, continue to read freebsd-questions@
and assist when able.

Everyone here was new to Unix and/or to FreeBSD at one time.
Some of us still are :)
___
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: Firefox printing

2011-03-06 Thread perryh
ste...@mailer3.nospam.homeip.net wrote:

 With FreeBSD 8.2R and Firefox 3.6.13:

 When printing postscript to file (or PDF, and actual printers too),
 the font and spacing of text is incorrect and does not look good.
 When I do the same on Firefox 3.6.13 on Ubuntu 10.04, I get clear
 output.
...
  have included test-bad.ps to illustrate the difference,

The mailing list strips attachments.

Based only on the description, I suspect Firefox is using different
fonts on the two systems.  That's about as far as I can go with my
limited knowledge of Firefox text rendering, but others may have
suggestions re how to go about fixing this.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Server not booting

2011-03-09 Thread perryh
Doug Hardie bc...@lafn.org wrote:

 The motherboard doesn't recognize a USB stick for booting
 unfortunately.  The motherboard manual is dated 2006 so
 I think its just too old for that.

This

http://www.plop.at/

can be loaded off just about any device the system _can_ boot from,
and stands a good chance of booting from a USB stick.  (Works for me
on an old Dell, loaded from floppy and booting a FreeBSD memstick
image.)
___
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: Unable to umount

2011-03-12 Thread perryh
John Levine jo...@iecc.com wrote:
  [robert@dell64] ~ umount Flash
  umount: unmount of /home/robert/Flash failed: Device busy

 ... The problem is likely that HAL or one of its friends helpfully
 has the device open just in case you might want to ask questions
 about it.

I that case, shouldn't lsof(8) have reported something?
___
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: Unable to umount

2011-03-12 Thread perryh
Warren Block wbl...@wonkity.com wrote:

 lsof reports nothing open on either the mountpoint or the device.

 fstat blames gam_server:

 % fstat /home/wblock/Desktop/removable-storage/
 USER CMD  PID   FD MOUNT  INUM MODE SZ|DV R/W NAME
 wblock   gam_server  1409  776 /usr/home/wblock/Desktop/removable-storage 
 244864 drwx--4096  r  /home/wblock/Desktop/removable-storage/

Does this show a bug in lsof(8), or an intentional difference
between it and fstat?
___
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


logging to dmesg from userland

2011-03-13 Thread perryh
I am looking for a way to write into the kernel message buffer --
the one that dmesg prints out -- from a userland program, to help
in relating kernel printf messages to the userland operations which
provoked them.  (Yes, I am aware of the potential DoS implications:
the capability should be restricted to root, or at least to the
operator group.  I expect to use it only in single-user mode.)

Is there a program, or a system call, which can do this?  logger(1)
seemed a likely prospect, but either it doesn't have this capability
or I haven't found the formula.
___
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 termination with exit function in backquotes

2011-03-19 Thread perryh
Maxim Khitrov m...@mxcrypt.com wrote:

 ... these deviations should be noted in the man page to
 help eliminate such surprises. A single sentence would
 have sufficed in this case.

As always, I'm sure patches would be welcome :)
___
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


  1   2   3   4   5   6   >