tor browser?

2013-07-16 Thread Anton Shterenlikht
Anybody is using the Tor Browser?

I started using security/tor.
In addition to this, the tor
folk insist on using the tor browser:
 https://www.torproject.org/download/download#warning
which is a part of the tor bundle:
 https://www.torproject.org/projects/torbrowser-details.html.en#build

Now, this tor browser seems to be a patched
firefox. There is no port for it, and
my previous experience of building firefox
outside ports was not good.

So I was wondering if anybody has built
or used hte tor browser?

Thanks

Anton

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


Re: to gmirror or to ZFS

2013-07-16 Thread Shane Ambler

On 16/07/2013 14:41, aurfalien wrote:


On Jul 15, 2013, at 9:23 PM, Warren Block wrote:


On Mon, 15 Jul 2013, aurfalien wrote:


... thats the question :)

At any rate, I'm building a rather large 100+TB NAS using ZFS.

However for my OS, should I also ZFS or simply gmirror as I've a
 dedicated pair of 256GB SSD drives for it.  I didn't ask for SSD
 sys drives, this system just came with em.

This is more of a best practices q.


ZFS has data integrity checking, gmirror has low RAM overhead.
gmirror is, at present, restricted to MBR partitioning due to
metadata conflicts with GPT, so 2TB is the maximum size.

Best practices... depends on your use.  gmirror for the system
leaves more RAM for ZFS.


Perfect, thanks Warren.

Just what I was looking for.


I doubt that you would save any ram having the os on a non-zfs drive as
you will already be using zfs chances are that non-zfs drives would only
increase ram usage by adding a second cache. zfs uses it's own cache
system and isn't going to share it's cache with other system managed
drives. I'm not actually certain if the system cache still sits above
zfs cache or not, I think I read it bypasses the traditional drive cache.

For zfs cache you can set the max usage by adjusting vfs.zfs.arc_max
that is a system wide setting and isn't going to increase if you have
two zpools.

Tip: set the arc_max value - by default zfs will use all physical ram
for cache, set it to be sure you have enough ram left for any services
you want running.

Have you considered using one or both SSD drives with zfs? They can be
added as cache or log devices to help performance.
See man zpool under Intent Log and Cache Devices.

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


Re: to gmirror or to ZFS

2013-07-16 Thread Frank Leonhardt

On 16/07/2013 10:41, Shane Ambler wrote:

On 16/07/2013 14:41, aurfalien wrote:


On Jul 15, 2013, at 9:23 PM, Warren Block wrote:


On Mon, 15 Jul 2013, aurfalien wrote:


... thats the question :)

At any rate, I'm building a rather large 100+TB NAS using ZFS.

However for my OS, should I also ZFS or simply gmirror as I've a
 dedicated pair of 256GB SSD drives for it.  I didn't ask for SSD
 sys drives, this system just came with em.

This is more of a best practices q.


ZFS has data integrity checking, gmirror has low RAM overhead.
gmirror is, at present, restricted to MBR partitioning due to
metadata conflicts with GPT, so 2TB is the maximum size.

Best practices... depends on your use.  gmirror for the system
leaves more RAM for ZFS.


Perfect, thanks Warren.

Just what I was looking for.


I doubt that you would save any ram having the os on a non-zfs drive as
you will already be using zfs chances are that non-zfs drives would only
increase ram usage by adding a second cache. zfs uses it's own cache
system and isn't going to share it's cache with other system managed
drives. I'm not actually certain if the system cache still sits above
zfs cache or not, I think I read it bypasses the traditional drive cache.

For zfs cache you can set the max usage by adjusting vfs.zfs.arc_max
that is a system wide setting and isn't going to increase if you have
two zpools.

Tip: set the arc_max value - by default zfs will use all physical ram
for cache, set it to be sure you have enough ram left for any services
you want running.

Have you considered using one or both SSD drives with zfs? They can be
added as cache or log devices to help performance.
See man zpool under Intent Log and Cache Devices.

I agree with the sentiment of using the SSD as ZFS cache - it's possibly 
the only logical use for them.


I guess that with 100Tb worth of Winchesters you're not on a very tight 
budget, and not too tight on RAM for the OS either. If I was going to do 
this I'd stick with the OS on UFS and a gmirror because I simply don't 
trust ZFS. This is based on pure prejudice and inexperience.


I know how to arrange disks on a UNIX file system for performance - what 
to use for swap, where tmp files should go and so on. I also know where 
every file will be, physically, in the event of trouble. And here's the 
clincher: If the machine blows up I can simply take one of the mirrored 
drives, slap it in to some new hardware and I've got a very reasonable 
chance that it'll boot. Can I do this with ZFS? I get the feeling that 
the answer is an emphatic maybe.


So all things considered, I'd need a good reason not to stick with what 
I know works reliably and can be recovered in the event of a disaster 
(UFS), but I'm happy to watch and learn from everyone else's experience!


___
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


Exim has stopped using SpamAssassin

2013-07-16 Thread Mike Clarke

I've just noticed that for the last month Exim does not appear to have been 
using SpamAssassin to check incoming emails.

Previously all my incoming emails contained the following headers:

X-SA-Exim-Connect-IP:
X-SA-Exim-Mail-From:
X-Spam-Checker-Version: 
X-Spam-Level: 
X-Spam-Status:

But I'm not seeing any of them now.

I've compared things with a ZFS snapshot from a time when it was working and 
both Exim and SpamAssassin are the same versions as before and there has 
been no changes in /usr/local/etc/exim/configure or 
/usr/local/etc/exim/sa-exim.conf.

Current versions are:
FreeBSD curlew.lan 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #0: Mon Jun 17 
11:42:37 UTC 2013 root@amd64 
builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
exim-sa-exim-4.80.1+4.2_2
p5-Mail-SpamAssassin-3.3.2_8
perl-5.14.4 (was 5.14.2_3 when SpamAssassin was working)

I've re-installed Exim and SpamAssassin using the same make options as before 
to see if that had any effect but still no joy.

I've set SAEximDebug to 1 in sa-exim.conf but there's still nothing in the logs 
to help.

Any suggestions where I should look next?

-- 
Mike Clarke
___
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


linux-f10-hal-libs

2013-07-16 Thread R Skinner
I've discovered a fix for certain videos using flashplayer on websites. 
Apparently they require hal to access the DRM (?!), so I've just whipped 
up a port to fix this.


It has been done in a real hurry; unfortunately I don't have any further 
time to spend on this as I'm way over my head at the moment, but I hope 
this helps fix some issues for some.


If there are any problems with the way I've set this up, can you let me 
know via this address and advice on the error would be very appreciated.


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


Re: linux-f10-hal-libs

2013-07-16 Thread Mark Felder
On Tue, Jul 16, 2013, at 6:26, R Skinner wrote:
 I've discovered a fix for certain videos using flashplayer on websites. 
 Apparently they require hal to access the DRM (?!), so I've just whipped 
 up a port to fix this.
 
 It has been done in a real hurry; unfortunately I don't have any further 
 time to spend on this as I'm way over my head at the moment, but I hope 
 this helps fix some issues for some.
 
 If there are any problems with the way I've set this up, can you let me 
 know via this address and advice on the error would be very appreciated.
 


Can you provide a link to a video that is broken and requires this so we
have a test case?


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


Purpose of /usr/local/lib/compat/pkg?

2013-07-16 Thread Walter Hurry
What is the purpose of /usr/local/lib/compat/pkg? As far as I can see, in 
a properly organised system, all the shared libraries in there should be 
redundant.

If this is correct, is there an easy way to clear them out, or should I 
just rm?

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


FreeBSD software installation problems

2013-07-16 Thread chenjunbing1234
questi...@freebsd.org
Iknowvery littleEnglish, and Iwant to learnfreebsd,I was 
underftp://ftp.freebsd.org/pub/FreeBSD/doc/zh_CN.GB2312/books/handbook/above 
tutorialto installand preparation, andmeta lot of problems,Imade 
​​athreehttp://bbs.chinaunix.net/forum-5-1.htmlforumpostingsentitled:novicestep 
by stepinstallFreeBSD-9.0-RELEASE,not many peopleto helpMymainproblemis the 
softwareinstalled,I hopeto get your help.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

Re: to gmirror or to ZFS

2013-07-16 Thread Johan Hendriks
Op dinsdag 16 juli 2013 schreef Frank Leonhardt (fra...@fjl.co.uk) het
volgende:

 On 16/07/2013 10:41, Shane Ambler wrote:

 On 16/07/2013 14:41, aurfalien wrote:


 On Jul 15, 2013, at 9:23 PM, Warren Block wrote:

  On Mon, 15 Jul 2013, aurfalien wrote:

  ... thats the question :)

 At any rate, I'm building a rather large 100+TB NAS using ZFS.

 However for my OS, should I also ZFS or simply gmirror as I've a
  dedicated pair of 256GB SSD drives for it.  I didn't ask for SSD
  sys drives, this system just came with em.

 This is more of a best practices q.


 ZFS has data integrity checking, gmirror has low RAM overhead.
 gmirror is, at present, restricted to MBR partitioning due to
 metadata conflicts with GPT, so 2TB is the maximum size.

 Best practices... depends on your use.  gmirror for the system
 leaves more RAM for ZFS.


 Perfect, thanks Warren.

 Just what I was looking for.


 I doubt that you would save any ram having the os on a non-zfs drive as
 you will already be using zfs chances are that non-zfs drives would only
 increase ram usage by adding a second cache. zfs uses it's own cache
 system and isn't going to share it's cache with other system managed
 drives. I'm not actually certain if the system cache still sits above
 zfs cache or not, I think I read it bypasses the traditional drive cache.

 For zfs cache you can set the max usage by adjusting vfs.zfs.arc_max
 that is a system wide setting and isn't going to increase if you have
 two zpools.

 Tip: set the arc_max value - by default zfs will use all physical ram
 for cache, set it to be sure you have enough ram left for any services
 you want running.

 Have you considered using one or both SSD drives with zfs? They can be
 added as cache or log devices to help performance.
 See man zpool under Intent Log and Cache Devices.

  I agree with the sentiment of using the SSD as ZFS cache - it's possibly
 the only logical use for them.

 I guess that with 100Tb worth of Winchesters you're not on a very tight
 budget, and not too tight on RAM for the OS either. If I was going to do
 this I'd stick with the OS on UFS and a gmirror because I simply don't
 trust ZFS. This is based on pure prejudice and inexperience.

 I know how to arrange disks on a UNIX file system for performance - what
 to use for swap, where tmp files should go and so on. I also know where
 every file will be, physically, in the event of trouble. And here's the
 clincher: If the machine blows up I can simply take one of the mirrored
 drives, slap it in to some new hardware and I've got a very reasonable
 chance that it'll boot. Can I do this with ZFS? I get the feeling that the
 answer is an emphatic maybe.

 So all things considered, I'd need a good reason not to stick with what I
 know works reliably and can be recovered in the event of a disaster (UFS),
 but I'm happy to watch and learn from everyone else's experience!


I would us a zfs for the os.
I have a couple of servers that did not survive a power failure with
gmirror.
The problems i had was when the power failed one disk was in a rebuilding
state and then when the background fsck started or was busy for some time
it would crash the whole server.
Removing the disk that was rebuilding resolved the issue.
This happened to me more than once.
Most of the times it worked as advertised but not always.

Before people tell me to use an UPS, i used a UPS but the damn thing gave
way itself.
Then after it came back from the warranty repair it gave way again.
Some times it came back right away, leaving some servers survive and some
in the state they where.
It was hard to find the cause in the beginning because of the fact some
servers did survive the power failure.
We did not suspect the UPS at first.

Anyway, gmirror did not work for me in all cases.
I am now running a few servers with a zfs root.
I did not have any problems with them till now (knock on wood).
Since reading that swap on zfs root can cause trouble i have a separate
freebsd-swap partition for the swap.

Gr
Johan




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

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


Re: to gmirror or to ZFS

2013-07-16 Thread aurfalien

On Jul 16, 2013, at 2:41 AM, Shane Ambler wrote:

 On 16/07/2013 14:41, aurfalien wrote:
 
 On Jul 15, 2013, at 9:23 PM, Warren Block wrote:
 
 On Mon, 15 Jul 2013, aurfalien wrote:
 
 ... thats the question :)
 
 At any rate, I'm building a rather large 100+TB NAS using ZFS.
 
 However for my OS, should I also ZFS or simply gmirror as I've a
 dedicated pair of 256GB SSD drives for it.  I didn't ask for SSD
 sys drives, this system just came with em.
 
 This is more of a best practices q.
 
 ZFS has data integrity checking, gmirror has low RAM overhead.
 gmirror is, at present, restricted to MBR partitioning due to
 metadata conflicts with GPT, so 2TB is the maximum size.
 
 Best practices... depends on your use.  gmirror for the system
 leaves more RAM for ZFS.
 
 Perfect, thanks Warren.
 
 Just what I was looking for.
 
 I doubt that you would save any ram having the os on a non-zfs drive as
 you will already be using zfs chances are that non-zfs drives would only
 increase ram usage by adding a second cache. zfs uses it's own cache
 system and isn't going to share it's cache with other system managed
 drives. I'm not actually certain if the system cache still sits above
 zfs cache or not, I think I read it bypasses the traditional drive cache.
 
 For zfs cache you can set the max usage by adjusting vfs.zfs.arc_max
 that is a system wide setting and isn't going to increase if you have
 two zpools.
 
 Tip: set the arc_max value - by default zfs will use all physical ram
 for cache, set it to be sure you have enough ram left for any services
 you want running.
 
 Have you considered using one or both SSD drives with zfs? They can be
 added as cache or log devices to help performance.
 See man zpool under Intent Log and Cache Devices.

This is a very interesting point.

In terms if SSDs for cache, I was planning on using a pair of Samsung Pro 512GB 
SSDs for this purpose (which I haven't bought yet).

But I tire of buying stuff, so I have a pair of 40GB Intel SSDs for use as sys 
disks and several Intel 160GB SSDs lying around that I can combine with the 
existing 256GB SSDs for a cache.

Then use my 36x3TB for the beasty NAS.

- aurf


___
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: Purpose of /usr/local/lib/compat/pkg?

2013-07-16 Thread Charles Swiger
Hi--

On Jul 16, 2013, at 9:57 AM, Walter Hurry walterhu...@gmail.com wrote:
 What is the purpose of /usr/local/lib/compat/pkg?

It holds old versions of shared libraries which were once used by installed 
ports.

 As far as I can see, in a properly organised system, all the shared libraries
 in there should be redundant.

True, assuming you've recompiled all of your ports to use the latest versions.
However, if you ever have to roll something back, it will continue to work if
these old shared libs are available.

 If this is correct, is there an easy way to clear them out, or should I just 
 rm?

If you're low on space, sure, you can just rm them.  Don't bother otherwise...

Regards,
-- 
-Chuck

___
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: Purpose of /usr/local/lib/compat/pkg?

2013-07-16 Thread Walter Hurry
On Tue, 16 Jul 2013 10:05:19 -0700, Charles Swiger wrote:

 Hi--
 
 On Jul 16, 2013, at 9:57 AM, Walter Hurry walterhu...@gmail.com wrote:
 What is the purpose of /usr/local/lib/compat/pkg?
 
 It holds old versions of shared libraries which were once used by
 installed ports.
 
 As far as I can see, in a properly organised system, all the shared
 libraries in there should be redundant.
 
 True, assuming you've recompiled all of your ports to use the latest
 versions. However, if you ever have to roll something back, it will
 continue to work if these old shared libs are available.
 
 If this is correct, is there an easy way to clear them out, or should I
 just rm?
 
 If you're low on space, sure, you can just rm them.  Don't bother
 otherwise...
 
Thanks. No, I'm not desperately low on space; I just like to keep things 
tidy.

___
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


openvpn routing

2013-07-16 Thread Pol Hallen
Hi all :-)

This freebsd server in an internal lan server, IP 192.168.1.254.
192.168.1.212 is gateway on internet.

I've an easy config:

DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.1.212  UGS 031807em0
10.20.10.0/24  10.20.10.2 UGS 00   tun0
10.20.10.1 link#5 UHS 00lo0
10.20.10.2 link#5 UH  00   tun0
127.0.0.1  link#4 UH  0 3478lo0
192.168.1.0/24 link#2 U   046116em0
192.168.1.254  link#2 UHS 00lo0

ifconfig

em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
inet 192.168.1.254 netmask 0xff00 broadcast 192.168.1.255
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
[...]
tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST metric 0 mtu 1500
inet 10.20.10.1 -- 10.20.10.2 netmask 0x

Problem is: 10.20.10.2 is a gateway? why?

On clients I've this error:

OpenVPN ROUTE: OpenVPN needs a gateway parameter for a --route option and
no default was specified by either --route-gateway or --ifconfig options
Tue Jul 16 19:28:30 2013 us=860975 OpenVPN ROUTE: failed to parse/resolve
route for host/network: 10.20.10.0
Tue Jul 16 19:28:30 2013 us=861091 OpenVPN ROUTE: OpenVPN needs a gateway
parameter for a --route option and no default was specified by either
--route-gateway or --ifconfig options

openvpn server config:

port XXX
proto udp
dev tun
;dev-node tap0
ca /usr/local/etc/openvpn/XX.crt
cert /usr/local/etc/openvpn/XX.crt
key /usr/local/etc/openvpn/XX.key
dh /usr/local/etc/openvpn/dh2048.pem

server 10.20.10.0 255.255.255.0
push route 10.20.10.0 255.255.255.0

ifconfig-pool-persist /usr/local/etc/openvpn/ipp.txt 0

;duplicate-cn
keepalive 10 120
;cipher BF-CBC# Blowfish (default)
;cipher AES-256-CBC   # AES
cipher DES-EDE3-CBC  # Triple-DES
comp-lzo
user nobody
group nobody
persist-key
persist-tun
;status /var/log/openvpn-status.log
;log-append /var/log/openvpn.log
verb 10
mute 20
client-to-client
client-config-dir ccd route 10.20.10.1 255.255.255.0

ping-restart 0
tls-auth /usr/local/etc/openvpn/ta.key 0
plugin /usr/local/lib/openvpn/plugins/openvpn-plugin-auth-pam.so login
#tmp-dir /dev/shm

Almost same config on linux openvpn server runs. It's the server that
create correct route. But on freebsd I've 10.20.10.2 like automatic gw.

Any idea?

thanks!

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


Re: to gmirror or to ZFS

2013-07-16 Thread Johan Hendriks
Op dinsdag 16 juli 2013 schreef Charles Swiger (cswi...@mac.com) het
volgende:

 Hi--

 On Jul 16, 2013, at 10:33 AM, Johan Hendriks 
 joh.hendr...@gmail.comjavascript:;
 wrote:
 [ ... ]
  I would us a zfs for the os.
  I have a couple of servers that did not survive a power failure with
  gmirror.
  The problems i had was when the power failed one disk was in a rebuilding
  state and then when the background fsck started or was busy for some time
  it would crash the whole server.

 Well, don't do that.  :-)


When the server reboots because of a powerfailure at night, then it boots.
Then it starts to rebuild the mirror on its own, and later the fsck kicks
in.

Not much i can do about it.

Maybe i should have done it without the automatic attachment for a new
device.





 Seriously, bring up the box on one disk, force a foreground fsck if needed
 to get the filesystem to known clean state, and then rebuild the mirror.
 Mixing the mirror rebuild with something like an fsck will just thrash the
 disks.

 [ ... ]
  Before people tell me to use an UPS, i used a UPS but the damn thing gave
  way itself.  Then after it came back from the warranty repair it gave
 way again.

 Grr.  That's when you want find another UPS vendor.


Is apc not the right choice?
I think i got a monday morning model.
Some times things fail!




Regards,
 --
 -Chuck


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


Re: to gmirror or to ZFS

2013-07-16 Thread Warren Block

On Tue, 16 Jul 2013, aurfalien wrote:

On Jul 16, 2013, at 2:41 AM, Shane Ambler wrote:


I doubt that you would save any ram having the os on a non-zfs drive as
you will already be using zfs chances are that non-zfs drives would only
increase ram usage by adding a second cache. zfs uses it's own cache
system and isn't going to share it's cache with other system managed
drives. I'm not actually certain if the system cache still sits above
zfs cache or not, I think I read it bypasses the traditional drive cache.

For zfs cache you can set the max usage by adjusting vfs.zfs.arc_max
that is a system wide setting and isn't going to increase if you have
two zpools.

Tip: set the arc_max value - by default zfs will use all physical ram
for cache, set it to be sure you have enough ram left for any services
you want running.

Have you considered using one or both SSD drives with zfs? They can be
added as cache or log devices to help performance.
See man zpool under Intent Log and Cache Devices.


This is a very interesting point.

In terms if SSDs for cache, I was planning on using a pair of Samsung Pro 512GB 
SSDs for this purpose (which I haven't bought yet).

But I tire of buying stuff, so I have a pair of 40GB Intel SSDs for use as sys 
disks and several Intel 160GB SSDs lying around that I can combine with the 
existing 256GB SSDs for a cache.

Then use my 36x3TB for the beasty NAS.


Agreed that 256G mirrored SSDs are kind of wasted as system drives.  The 
40G mirror sounds ideal.

___
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: openvpn routing

2013-07-16 Thread Pol Hallen
 This freebsd server in an internal lan server, IP 192.168.1.254.
 192.168.1.212 is gateway on internet.
[...]

tap -- tun

solved :-)

Pol
___
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: Purpose of /usr/local/lib/compat/pkg?

2013-07-16 Thread Warren Block

On Tue, 16 Jul 2013, Walter Hurry wrote:


On Tue, 16 Jul 2013 10:05:19 -0700, Charles Swiger wrote:


Hi--

On Jul 16, 2013, at 9:57 AM, Walter Hurry walterhu...@gmail.com wrote:

What is the purpose of /usr/local/lib/compat/pkg?


It holds old versions of shared libraries which were once used by
installed ports.


As far as I can see, in a properly organised system, all the shared
libraries in there should be redundant.


True, assuming you've recompiled all of your ports to use the latest
versions. However, if you ever have to roll something back, it will
continue to work if these old shared libs are available.


If this is correct, is there an easy way to clear them out, or should I
just rm?


If you're low on space, sure, you can just rm them.  Don't bother
otherwise...


Thanks. No, I'm not desperately low on space; I just like to keep things
tidy.


Install the excellent sysutils/bsdadminscripts and run pkg_libchk to 
check for packages still depending on those libraries or missing ones. 
If it doesn't complain, it's safe to delete them.  Otherwise, rebuild 
everything it complains about first.

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


Re: to gmirror or to ZFS

2013-07-16 Thread Charles Swiger
Hi--

On Jul 16, 2013, at 10:33 AM, Johan Hendriks joh.hendr...@gmail.com wrote:
[ ... ]
 I would us a zfs for the os.
 I have a couple of servers that did not survive a power failure with
 gmirror.
 The problems i had was when the power failed one disk was in a rebuilding
 state and then when the background fsck started or was busy for some time
 it would crash the whole server.

Well, don't do that.  :-)

Seriously, bring up the box on one disk, force a foreground fsck if needed
to get the filesystem to known clean state, and then rebuild the mirror.
Mixing the mirror rebuild with something like an fsck will just thrash the 
disks.

[ ... ]
 Before people tell me to use an UPS, i used a UPS but the damn thing gave
 way itself.  Then after it came back from the warranty repair it gave way 
 again.

Grr.  That's when you want find another UPS vendor.

Regards,
-- 
-Chuck

___
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


Automake won't build.

2013-07-16 Thread Jason Garrett
Hello all,

I am configuring a new system to run FreeBSD. I was in the middle of
installing lxde-meta which depends on automake. This is where the install
bails, and I'll include my uname -ar. Any help is greatly appreciated.



FreeBSD something.com 9.2-PRERELEASE FreeBSD 9.2-PRERELEASE #0 r253377: Tue
Jul 16 02:21:15 CDT 2013 r...@something.com:/usr/obj/usr/src/sys/GENERIC
 amd64



install-info --quiet /usr/local/info/automake.info /usr/local/info/dir
install-info: /usr/local/info/dir: empty file
*** [add-plist-info] Error code 1

TIA,

Jason
___
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: Automake won't build.

2013-07-16 Thread Jason Garrett
On Tue, Jul 16, 2013 at 2:39 PM, Jason Garrett kinged...@gmail.com wrote:

 Hello all,

 I am configuring a new system to run FreeBSD. I was in the middle of
 installing lxde-meta which depends on automake. This is where the install
 bails, and I'll include my uname -ar. Any help is greatly appreciated.



 FreeBSD something.com 9.2-PRERELEASE FreeBSD 9.2-PRERELEASE #0 r253377:
 Tue Jul 16 02:21:15 CDT 2013 
 r...@something.com:/usr/obj/usr/src/sys/GENERIC
  amd64



 install-info --quiet /usr/local/info/automake.info /usr/local/info/dir
 install-info: /usr/local/info/dir: empty file
 *** [add-plist-info] Error code 1

 TIA,

 Jason



The solution for this was to remove /usr/local/info/dir  and the port
installed fine. Any ideas on why this happens?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: to gmirror or to ZFS

2013-07-16 Thread Charles Swiger
Hi--

On Jul 16, 2013, at 11:27 AM, Johan Hendriks joh.hendr...@gmail.com wrote:
 Well, don't do that.  :-)
 
 When the server reboots because of a powerfailure at night, then it boots.
 Then it starts to rebuild the mirror on its own, and later the fsck kicks in.
 
 Not much i can do about it.
 
 Maybe i should have done it without the automatic attachment for a new device.

It's normally the case that getting a hot spare automatically attached should be
fine, but not if you also have the box go down entirely and need to fsck.

I'm more used to needing to explicitly physically swap out a failed mirror 
component,
in which case one can make sure the system is OK before the replacement drive 
goes in.

 [ ... ]
 Before people tell me to use an UPS, i used a UPS but the damn thing gave
 way itself.  Then after it came back from the warranty repair it gave way 
 again.
 
 Grr.  That's when you want find another UPS vendor.
 
 Is apc not the right choice?
 I think i got a monday morning model.
 Some times things fail!

APC is decent for desktops, but I'm dubious about them when it comes to entire 
racks
or a DC.  I like Leviton's PDUs/MDUs and TVSS; for a medium-sized UPS (10-40 
kVA)
Liebert and PowerWare (now Eaton) were good.  Liebert's PDUs are also pretty 
good.

Regards,
-- 
-Chuck

PS: I ran a small DC in NYC with a 20kVA PowerWare 9330 behind a Leviton 57000 
TVSS;
the Cupertino locals have ~650kVA worth of Bloom boxes and a Cummins diesel 
genset
as a backup just for this building.

___
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


rsyslog

2013-07-16 Thread Pol Hallen
Hi all :-)

I just installed rsyslog7 but there isn't any /usr/local/etc/rsyslog.conf

Where I found a standard rsyslog.conf config file to put it to
/usr/local/etc?

thanks for help

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


Odd behavior while booting off Install media for 9.1...

2013-07-16 Thread aurfalien
... sometimes I get a normal boot procedure were I can proceed to install.

Other times I get the mountroot prompt and upon pressing enter, the system 
reboots.

This seems random with the same hardware setup.  I literally have to stare at 
the screen for it to finally push through to the install procedure.

I'm clearly new to freeBSD and was wondering what is going on here?

I'm happily installing now as I managed to find time and stare at the screen 
long enough but would like some insight n this if possible.

- aurf
___
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: rsyslog

2013-07-16 Thread Polytropon
On Tue, 16 Jul 2013 22:04:05 +0200, Pol Hallen wrote:
 Where I found a standard rsyslog.conf config file to put it to
 /usr/local/etc?

I think you can find a rsyslog-example.conf file in the
directory for examples, probably /usr/local/share/examples
or in a rsyslog/ or rsyslog7/ subdirectory thereof.


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


gpart: table 'da0' is corrupt; operation not permitted

2013-07-16 Thread aurfalien
Hello again,

Not happy to be posting so much lately especially being so new.

I grabbed a few disks from a Mac and am using them for sys disks.

Upon booting from an install CD into a shell, I type;

gpart show

and see several partitions;

34  78165293da0 GPT 
(37G)   [CORRUPT]
34  6   - free -
(3.0k)
40  409600  1   efi 
(200M)
409640  774935362   
!52414944--11aa-aa11-00306543eacac  (37G)
77903176262144  3   apple-boot  
(128M)
781653207   - free- 
(3.5k)


Upon doing;

gpart destroy da0

I get;

gpart: Device busy


Upon doing;

gpart delete -i 1 da0

I get;

gpart: table da0 is corrupt: Operation not permitted

Any insight would be huge, thanks in advance,

- aurf


___
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: gpart: table 'da0' is corrupt; operation not permitted

2013-07-16 Thread Michael Sierchio
On Tue, Jul 16, 2013 at 1:44 PM, aurfalien aurfal...@gmail.com wrote:

 Upon doing;

 gpart destroy da0

 I get;

 gpart: Device busy

crude but effective:


DISK=da0

offset=`diskinfo $DISK | awk '{ print $4 - 131072 }'`
dd if=/dev/zero of=/dev/$DISK bs=64k count=1
dd if=/dev/zero of=/dev/$DISK bs=64k seek=$offset

gpart create -s gpt ${DISK}
___
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: gpart: table 'da0' is corrupt; operation not permitted

2013-07-16 Thread aurfalien

On Jul 16, 2013, at 1:50 PM, Michael Sierchio wrote:

 On Tue, Jul 16, 2013 at 1:44 PM, aurfalien aurfal...@gmail.com wrote:
 
 Upon doing;
 
 gpart destroy da0
 
 I get;
 
 gpart: Device busy
 
 crude but effective:
 
 
 DISK=da0
 
 offset=`diskinfo $DISK | awk '{ print $4 - 131072 }'`
 dd if=/dev/zero of=/dev/$DISK bs=64k count=1
 dd if=/dev/zero of=/dev/$DISK bs=64k seek=$offset
 
 gpart create -s gpt ${DISK}

This is what I ended up doing.

I unplugged it, waited a few, re plugged and then I was able to delete/destroy.

I will keep your method on hand though as I prefer not doing a hot plug.

- aurf
___
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: gpart: table 'da0' is corrupt; operation not permitted

2013-07-16 Thread Warren Block

On Tue, 16 Jul 2013, aurfalien wrote:



On Jul 16, 2013, at 1:50 PM, Michael Sierchio wrote:


On Tue, Jul 16, 2013 at 1:44 PM, aurfalien aurfal...@gmail.com wrote:


Upon doing;

gpart destroy da0

I get;

gpart: Device busy


crude but effective:


DISK=da0

offset=`diskinfo $DISK | awk '{ print $4 - 131072 }'`
dd if=/dev/zero of=/dev/$DISK bs=64k count=1
dd if=/dev/zero of=/dev/$DISK bs=64k seek=$offset

gpart create -s gpt ${DISK}


This is what I ended up doing.

I unplugged it, waited a few, re plugged and then I was able to delete/destroy.

I will keep your method on hand though as I prefer not doing a hot plug.


Hot plug?  That just wipes the beginning and end of the disk.  I would 
erase 1M just to be sure.


The more elegant version is

  gpart destroy -F da0

If it gives an error when doing that, disabling the safety may be 
necessary:  sysctl kern.geom.debugflags=16

Do that only when necessary.  It usually is 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: gpart: table 'da0' is corrupt; operation not permitted

2013-07-16 Thread aurfalien

On Jul 16, 2013, at 3:01 PM, Warren Block wrote:

 On Tue, 16 Jul 2013, aurfalien wrote:
 
 
 On Jul 16, 2013, at 1:50 PM, Michael Sierchio wrote:
 
 On Tue, Jul 16, 2013 at 1:44 PM, aurfalien aurfal...@gmail.com wrote:
 
 Upon doing;
 
 gpart destroy da0
 
 I get;
 
 gpart: Device busy
 
 crude but effective:
 
 
 DISK=da0
 
 offset=`diskinfo $DISK | awk '{ print $4 - 131072 }'`
 dd if=/dev/zero of=/dev/$DISK bs=64k count=1
 dd if=/dev/zero of=/dev/$DISK bs=64k seek=$offset
 
 gpart create -s gpt ${DISK}
 
 This is what I ended up doing.
 
 I unplugged it, waited a few, re plugged and then I was able to 
 delete/destroy.
 
 I will keep your method on hand though as I prefer not doing a hot plug.
 
 Hot plug?  That just wipes the beginning and end of the disk.  I would erase 
 1M just to be sure.
 
 The more elegant version is
 
  gpart destroy -F da0

Oh for sure, I did that after the hotplug which finally allowed me to f do it.

I had to hot plug a few times though.


 If it gives an error when doing that, disabling the safety may be necessary:  
 sysctl kern.geom.debugflags=16
 Do that only when necessary.  It usually is not.

Funny, I did that based on some googling but no dice.

I booted in both regular shel and Live CD.

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


Re: to gmirror or to ZFS

2013-07-16 Thread Nikos Vassiliadis

On 07/16/13 21:27, Johan Hendriks wrote:

Op dinsdag 16 juli 2013 schreef Charles Swiger (cswi...@mac.com) het
volgende:


Hi--

On Jul 16, 2013, at 10:33 AM, Johan Hendriks 
joh.hendr...@gmail.comjavascript:;
wrote:
[ ... ]

I would us a zfs for the os.
I have a couple of servers that did not survive a power failure with
gmirror.
The problems i had was when the power failed one disk was in a rebuilding
state and then when the background fsck started or was busy for some time
it would crash the whole server.


Well, don't do that.  :-)



When the server reboots because of a powerfailure at night, then it boots.
Then it starts to rebuild the mirror on its own, and later the fsck kicks
in.

Not much i can do about it.


You could add geom_journal which will minimize the time of fsck to a 
second or something like that. Then you don't have to use background 
fsck anymore.


Actually geom_journal's manual page mentions an interesting
side-effect of geom_journal over a geom_mirror:

you can turn off component synchronization.

Geom_journal will re-play last writes so whatever was
changed just before the crash will be re-written to both disks.
I haven't used this but it makes sense in theory.


Maybe i should have done it without the automatic attachment for a new
device.


I always turn off automatic synchronization or stale components
as well.

It seems to me that people don't really use geom_journal
or maybe they just don't talk about it like it's some
sort of secret:)

just my two cents,

Nikos

___
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