Re: linux emulator

2009-07-25 Thread Boris Samorodov
PJ af.gour...@videotron.ca writes:

 /compat/llinux/sbin/ldconfig :
 ELF binary type '3' not known syntax error: ( unexpected - error code 2

Have you load linuxulator? You may check it:
-
% kldstat | grep linux
 63 0x8100d000 413f0linux.ko
-

You may do it by hand with 'kldload linux' or adding an apropriate
line to /boot/loader.conf 'linux_load=YES' or to
/etc/rc.conf[.local] 'linux_enable=YES'.

-- 
WBR, bsam
___
freebsd-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: Restarting hal

2009-07-25 Thread Polytropon
On Fri, 24 Jul 2009 11:02:39 -0400, Bob Hall rjh...@gmail.com wrote:
 Aside from the ctrl-alt-bksp bug, this has been the easiest X setup I've
 ever done. I've tried it with and without hal and both are easy to set
 up. Given my level of ignorance, that's saying something. I've seen a
 lot of complaints about Xorg's new system, but I like it.

I'm sure it works very well on up-to-date hardware, but on
older hardware, where all the autodetect magic won't work
properly, problems may occur. Furthermore, if you need to
have a non-standard keyboard layout, e. g. the german one,
this has to be set in a different place now. As far as I
know, HAL and DBUS, along with FreeBSD 8, work very well for
different automounting scenarios (CD, DVD, USB).

Soon I will encounter the joy of the new X modularity
and dependencies. :-)

It's still worth mentioning that it's possible to run X
in the old fashioned way, but DBUS and HAL have to be
excluded at compile time.



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


Re: Moxa 8-port serial multiplexor, how-to

2009-07-25 Thread Polytropon
On Fri, 24 Jul 2009 10:32:52 -0500, Doug Poland d...@polands.org wrote:
 After reading the handbook(26.2) and man puc(4), sio(4).  man sio(4)
 talks about adding /boot/device.hints but not for my particular
 hardware.  I'm at a loss on how to continue.
 
 Suggestions, pointers, URLs welcome.

The file is /boot/device.hints. For each serial port, the
following dataset has to be completed:

hint.sio.N.at=isa
hint.sio.N.port=0x3F8   ---+
hint.sio.N.flags=0x10   ---+--- set up
hint.sio.N.irq=4---+

Still, I don't know how to determine the correct addresses
and IRQs, maybe the documentation belonging to the expansion
card can help...

If I see this correctly, each serial port should then be
visible as a /dev/cuadN device file.



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


Re: INN configuration

2009-07-25 Thread Michel Talon
Tim Kellers said:
 -Has anyone set up a n INN server on freebsd, successfuly?

Yes, no problem. Have you read the Inn install doc in 
/usr/local/share/doc/inn/INSTALL
This is a step by step guide to the *long* configuration.

Note that if you want to suck in news from another news server you also
need some other software, the best one being newsx (in the ports).

You also need to edit the active file to add newsgroups.


-- 

Michel TALON

___
freebsd-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: A question for developers

2009-07-25 Thread Polytropon
On Fri, 24 Jul 2009 22:49:10 -0400, Steve Bertrand st...@ibctech.ca wrote:
 I'm looking for a new editor.

I went on a similar journey, and I don't know if I'm already where I
want to be, but maybe my path is helpful to you.



 My desires/don't mind:
 
 - easily set tab width

mcedit: PF9, Options, General
joe:^TD



 - fingers near home row

Both.



 - I'm competent/comfortable with CTRL, SHFT etc

Both. Especially joe supports the very comfortable and powerful
control codes (^KB/K/M/C, ^KF/^L).



 - *very* quick basic movements within a file (preferably a single
 keyboard gesture will pg-up/dn, end of line, start of line, top, bot,
 erase line, cp line, insert line etc)

Again, both mcedit and joe support the basic functions of the
keyboard's navigation keys, and anything more advanced is done
through key combinations that are obvious. If cursor keys are
absent (maybe due to defective termcap or crappy implementation
on Windows program), joe has a simple Ctrl+character key for
every movement.



 - smooth copy/paste with a mouse if I want to transfer from devel box to
 my workstation, and back into a different window

Can't tell, never needed.



 - syntax highlighting (opening/closing braces/brackets/parens) would be
 really nice, but since my win32 client seems black/white, I think this
 is a pipe dream. I can easily live without this. As a matter of fact, I
 negate this statement

Check for the terminal type settings in your Windows client. $TERM
like xterm or xterm-color supports color.

According to the requirement, mcedit and joe have builtin syntax
highlighting. Both can be reconfigured if intended quite easily I have
done this to mcedit's colors because I really couldn't stand them. :-)



 - simple in-editor search/replace would be a nice-have (especially if it
 either understood everything as text, or comprehended Perl-type regexp

Yes, mcedit has this, PF4, and joe has ^KF+R and ^L.



 - be able to have multiple files open simultaneously for editing, and an
 easy way to flip back and forth (a virtual 'tab' system, if you please)

This is something mcedit can't, but joe can; it employs ^KE / ^KR for
loading (with listing and name completition), and ^KN for switching
between them.

Note that each file edited can have a separate (!) edit buffer / marker
that can be changed on both (!) ends and even be edited while (!) being
selected.



 Honestly, the only reason I want to switch is because I want a four char
 tab...really.

joe: ^TD8Enter. You can, however, set the tab character to any width
you want. There are additional tools that allow you to transform tabs
into spaces and vice versa, and to resize spaced tabs.



 I don't want/need an excessive amount of features, just
 something that will just work.

Just try mcedit (installed by the Midnight Commander's port) and
joe. I think joe is what you want, but you need to try it and find out
for yourself.

Use it's help, ^KH, and Meta-, and Meta-. to browse help pages.
^C to abort, ^KX to save and exit. Oh yes, and because I may assume
that you don't have Meta keys, use Esc , and Esc . for this. :-)



 In the last few weeks, I've been leaning toward vim.

Yes, vim isn't bad, but the magic of the vi-related editors never
really opened up to me. But I know that vim has syntax highlighting
and (nearly?) every feature you required.



 If you've read this far, then I very much welcome your feedback.

I hope it will help you on your journey, Steve.



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


Re: A question for developers

2009-07-25 Thread Chad Perrin
On Fri, Jul 24, 2009 at 10:49:10PM -0400, Steve Bertrand wrote:
 Forgive the verbosity.
 
 Before anything else, I'd appreciate it if my requirements were actually
 read before providing any feedback. I know that there are qualified
 persons here to legitimately answer my question, so if a flame war does
 ensue, I ask that you refrain from responding.

[snip]

What you describe as your requirements sounds exactly like vi, or some
variant of it -- the most popular of which is Vim.  FreeBSD comes with
nvi by default, though, and if you find you don't care about Vim's
additional features, you may want to use that instead.  Note that nvi
doesn't support syntax highlighting though, last I checked.

I know some people might read your list of requirements and claim that
emacs is as good a fit as vi, but beg to differ for at least two specific
reasons:

1. You mentioned wanting to be able to move around easily with a single
keystroke.  The keystroke count for various operations tends to be
slightly greater in emacs than in vi.

2. You mentioned wanting to stay close to home row.  The truth is that vi
and emacs are almost precisely on par here, for the most part, but I
think that the key chording requirements of common emacs operation does
cause the fingers to stray from home row on a QWERTY keyboard a bit more
than vi's tendency to stick to single-key commands a lot more.

It's just my good luck that I happen to prefer vi/Vim over emacs myself,
while your requirements also seem to favor vi/Vim.

I wrote an introduction to productive use of Vim a while back in my
personal Weblog.  It is most emphatically *not* a tutorial -- it doesn't
tell you what commands you need to know to use it or give you tips and
tricks for getting specific things done, really.  What it does is discuss
in very general terms useful approaches to doing things like starting
Vim, saving and exiting while using it, taking advantage of the vi modal
editing paradigm, and learning more about it over time.  It's sort of a
lesson in learning how to use Vim, rather than a direct lesson in how to
use it, if that makes any sense.

Without further ado, here it is:

http://sob.apotheon.org/?p=981

I hope that helps.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
Quoth Larry Wall: It's more important to be a good driver than to have
seven feet of sponge rubber all around your car.


pgpqAfmiP1qLO.pgp
Description: PGP signature


running out of inodes

2009-07-25 Thread Peter
Hello,

We have a strange issue with one of our machines. We have a busy site on
it with a lot content  and cache files - all of these a lot small files.

We started to run out inodes.

[r...@pistolcontent-lb3 /]# df -hi
Filesystem   SizeUsed   Avail Capacity  iused  ifree %iused
Mounted on
/dev/aacd0s1a496M382M 74M84%25402  40388   39%   /
devfs1.0K1.0K  0B   100%0  0  100%   /dev
/dev/aacd0s1e496M2.7M453M 1%   99  656910%   /tmp
/dev/aacd0s1f123G 95G 18G84% 16623996  27266  100%   /usr
/dev/aacd0s1d4.8G 62M4.4G 1% 1425 6580290%   /var



What is the best way to handle it ?

Thanks in advance.


Peter Zyumbilev

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


PPPoE server (high traffic in WDM network)

2009-07-25 Thread Nikos Vassiliadis

Hello Michelle,

I think you better ask about the performance you should
expect out of a PPPoE server on the mpd forum. There
people on the forum with real numbers.


If I go with 1 U Sun Fire X4100M2 the Opteron has 4 Cores and 4  threads
per core (AFAIK there is a 8 threads version too)


I would ask about this as well. i386? amd64? number of cores?

http://sourceforge.net/forum/forum.php?forum_id=44693

HTH, 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


Re: Restarting daemons after portupgrade/portmanager

2009-07-25 Thread Matthew Seaman

Axel wrote:

Hello! I have a question concerning port upgrades.

mysql51-server stops automatically during upgrade (using portupgrade or 
portmanager), and is properly started again based on a AFTERINSTALL 
setting in pktools.conf.


So far, so good. But what about the other daemons that still seem to run 
after upgrade (Apache, Courier IMAP etc)? Are the new version running 
fine after the upgrade, or should I set AFTERINSTALL to do a restart of 
these daemons, to make sure they run the upgraded version?


No -- the sample AFTERINSTALL stuff in pkgtools.conf will run any RC
scripts the package installs to try and start those services.  This will
have no effect if:

  * The daemon is already running

  * There's no foo_enable=yes setting in /etc/rc.conf or equivalent.

So daemons like mysql or slapd that get shutdown during the process of
updating the port will be restarted, but daemons like apache or snmpd
that don't get shutdown will still be running the old version and you'll
have to restart them manually, as you will have to configure and start
anything newly installed.  


Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: A question for developers

2009-07-25 Thread Erich Dollansky
Hi,

let me answer very shortly.

On 25 July 2009 am 10:49:10 Steve Bertrand wrote:
 Forgive the verbosity.

I use joe, gedit, kate and bluefish.

All have their week points.

One advantage of using several in parallel is that you can 
configure each to a special need of you and then start the one 
which seems to fit best your current task.

joe has also the advantage that it behaves differently depending 
under which name your start it.

ee is really just useful for very basic editing. But this is the 
idea behind ee.

Erich
___
freebsd-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: vim port have a lot of broken links ??

2009-07-25 Thread Kalle Møller
Spot on.. My server is ipv6 ready.. (We are the hosting department of the
ISP if we should examine all ticket we get with.. Its the networks fault we
wouldn't do anything else :D )

And fetch -4 http://ftp.vim.org/pub/vim/patches/7.2/7.2.002 is working fine.
So it must be that it tries ipv6 first.

Well thank you , I'm just gonna add the ipv6 interface after I've installed
vim.


On Sat, Jul 25, 2009 at 4:00 AM, Steve Bertrand st...@ibctech.ca wrote:

 Kalle Møller wrote:
  Well any other port works flawless. It's only the vim ports (other =
 screen
  sudo wget bash apache22 mysql-server subversion etc)
 
  And the ISP is not the problem - I works for them in the network
 department
  (its on a 10 G link :D )
 
  I just made a make distclean and make again
 
  = vim-7.2.tar.bz2 doesn't seem to exist in /tmp/ports/distfiles/vim.
  = Attempting to fetch from http://ftp.vim.org/pub/vim/unix/.
  fetch: transfer timed out
  = Attempting to fetch from
 http://mirrors.24-7-solutions.net/pub/vim/unix/.
  vim-7.2.tar.bz2   100% of 7034 kB  254 kBps
  00m00s
 
  This takes 2-3 min And the 24-7 site only have to around 190  the
 last
  40 needs to wait for both primary and 24-7 to timeout before the 3rd site
  delivers

 I don't know which network department you work in at your ISP, but in
 this ISP's network department, we *never* disclaim the possibility of
 having an issue until the problem has been resolved, and we know
 *exactly* _what_ it was, and _where_ it was (yes, I'm a little sensitive
 to blind claims that it's not our fault ;)

  Looked a little deeper... It seems like I can
 
  wget http://ftp.vim.org/pub/vim/patches/7.2/7.2.002
 
  But i cannont
 
  fetch http://ftp.vim.org/pub/vim/patches/7.2/7.2.002
 
  wget goes smoothly but fetch times out

 Both work here:

 # fetch -4 http://ftp.vim.org/pub/vim/patches/7.2/7.2.002
 7.2.002   100% of 1462  B 9327 kBps

 # wget -4 http://ftp.vim.org/pub/vim/patches/7.2/7.2.002
 [...snip...]
 2009-07-24 21:52:01 (113 MB/s) - `7.2.002.1' saved [1462/1462]

 However, it seems as though ftp.vim.org is IPv6 enabled, but both fetch
 and wget time-out when trying to reach it over IPv6. eg:

 # wget -6 http://ftp.vim.org/pub/vim/patches/7.2/7.2.002

 --2009-07-24 22:02:13--  http://ftp.vim.org/pub/vim/patches/7.2/7.2.002
 Resolving ftp.vim.org... 2001:610:1:80aa:192:87:102:42,
 2001:610:1:80aa:192:87:102:43
 Connecting to ftp.vim.org|2001:610:1:80aa:192:87:102:42|:80... connected.
 HTTP request sent, awaiting response...
 ^C

 Are you IPv6 ready? If not, do you have v6 enabled in some fashion that
 could be interfering with proper Internet communication?

 Steve











-- 

Med Venlig Hilsen

Kalle R. Møller
___
freebsd-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-update: from 7.1-STABLE to 7.2-RELEASE?

2009-07-25 Thread Axel

Hello,

I have previously kept my machine updated by fetching the STABLE branch 
using csup and rebuilding the kernel. (As described in Handbook chapter 
24.7)


From now on, I want to use freebsd-update to simplify the process and 
follow the RELEASE branch (+patches) instead.


But it seems that freebsd-update cannot help me upgrade from 7.1-STABLE 
to 7.2-RELEASE.


Any tips on how to make the transition to RELEASE?

--

uname -a
FreeBSD host 7.1-STABLE FreeBSD 7.1-STABLE #0: Sat Jul 25 12:24:54 
CEST 2009

root@host:/usr/obj/usr/src/sys/GENERIC  i386

--

freebsd-update -v debug -r 7.2-RELEASE upgrade
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching public key from update5.FreeBSD.org... fetch: 
http://update5.FreeBSD.org/7.1-STABLE/i386/pub.ssl: Not Found

failed.
Fetching public key from update4.FreeBSD.org... fetch: 
http://update4.FreeBSD.org/7.1-STABLE/i386/pub.ssl: Not Found

failed.
Fetching public key from update1.FreeBSD.org... fetch: 
http://update1.FreeBSD.org/7.1-STABLE/i386/pub.ssl: Not Found

failed.
No mirrors remaining, giving up.

--
___
freebsd-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: Restarting daemons after portupgrade/portmanager

2009-07-25 Thread Axel

Thanks for your reply!

I want to make the upgrade process as easy as possible, so I guess that 
I'll set up automated restart of daemons (unless you think it's a bad idea).


Is it okay to send a restart signal using AFTERINSTALL, or should the 
restart wait until after portmanager has updated all dependencies etc (= 
make a shell script)?


Axel

Matthew Seaman wrote:

Axel wrote:
  

Hello! I have a question concerning port upgrades.

mysql51-server stops automatically during upgrade (using portupgrade or 
portmanager), and is properly started again based on a AFTERINSTALL 
setting in pktools.conf.


So far, so good. But what about the other daemons that still seem to run 
after upgrade (Apache, Courier IMAP etc)? Are the new version running 
fine after the upgrade, or should I set AFTERINSTALL to do a restart of 
these daemons, to make sure they run the upgraded version?



No -- the sample AFTERINSTALL stuff in pkgtools.conf will run any RC
scripts the package installs to try and start those services.  This will
have no effect if:

   * The daemon is already running

   * There's no foo_enable=yes setting in /etc/rc.conf or equivalent.

So daemons like mysql or slapd that get shutdown during the process of
updating the port will be restarted, but daemons like apache or snmpd
that don't get shutdown will still be running the old version and you'll
have to restart them manually, as you will have to configure and start
anything newly installed.  


Cheers,

Matthew

  

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


Re: freebsd-update: from 7.1-STABLE to 7.2-RELEASE?

2009-07-25 Thread Nikos Vassiliadis

Axel wrote:
 From now on, I want to use freebsd-update to simplify the process and 
follow the RELEASE branch (+patches) instead.


But it seems that freebsd-update cannot help me upgrade from 7.1-STABLE 
to 7.2-RELEASE.


Any tips on how to make the transition to RELEASE?


You must use CVSup for one last time. RELENG_7_2_0_RELEASE
is the CVS|CVSup tag you should use to update your sources
to 7.2-RELEASE. Build and install that and then, you can
start using binary updates...

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


Re: freebsd-update: from 7.1-STABLE to 7.2-RELEASE?

2009-07-25 Thread Matthew Seaman

Axel wrote:

Hello,

I have previously kept my machine updated by fetching the STABLE branch 
using csup and rebuilding the kernel. (As described in Handbook chapter 
24.7)


 From now on, I want to use freebsd-update to simplify the process and 
follow the RELEASE branch (+patches) instead.


But it seems that freebsd-update cannot help me upgrade from 7.1-STABLE 
to 7.2-RELEASE.


Any tips on how to make the transition to RELEASE?

--

uname -a
FreeBSD host 7.1-STABLE FreeBSD 7.1-STABLE #0: Sat Jul 25 12:24:54 
CEST 2009

root@host:/usr/obj/usr/src/sys/GENERIC  i386

--

freebsd-update -v debug -r 7.2-RELEASE upgrade
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching public key from update5.FreeBSD.org... fetch: 
http://update5.FreeBSD.org/7.1-STABLE/i386/pub.ssl: Not Found

failed.
Fetching public key from update4.FreeBSD.org... fetch: 
http://update4.FreeBSD.org/7.1-STABLE/i386/pub.ssl: Not Found

failed.
Fetching public key from update1.FreeBSD.org... fetch: 
http://update1.FreeBSD.org/7.1-STABLE/i386/pub.ssl: Not Found

failed.
No mirrors remaining, giving up.

--


Probably your best plan would be to:

  * Back up everything, but particularly all of the contents of /etc
/usr/local/etc and /home and anywhere else you have important files
you can't recover from original sources.

  * csup to RELENG_7_2_0_RELEASE (ie use that as the cvs tag in your sup 
file).  This will give you code base the release was generated

from. Compile and update your system the normal way -- uname(1) should
identify itself as 7.2-RELEASE after this.  Replace any custom kernel
with GENERIC if you want to use freebsd-update for the kernel as well
as the world.

  * use freebsd-update to to upgrade from 7.2-RELEASE to 7.2-RELEASE-p2 
according to the instructions in the man page.


Now, you'll be using a self-compiled version of FreeBSD rather than exactly
what comes off the release .iso so there will be minor differences and 
mismatched
checksums for various files.  However I think freebsd-update should be able to
cope, and will probably overwrite any non-matching files.  In case it doesn't,
your next recourse would be to grab a release .iso from the FTP sites and 
overwrite
your system with the version from the install media.  You can do this without
completely trashing your existing setup if you take care -- particularly make
sure that you tell the installer *not* to newfs any partitions.  Of course, 
make sure you've backed everything up before trying this, as it will overwrite

some of the files under /etc with the default versions.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: freebsd-update: from 7.1-STABLE to 7.2-RELEASE?

2009-07-25 Thread Manolis Kiagias
Axel wrote:
 Hello,

 I have previously kept my machine updated by fetching the STABLE
 branch using csup and rebuilding the kernel. (As described in Handbook
 chapter 24.7)

 From now on, I want to use freebsd-update to simplify the process and
 follow the RELEASE branch (+patches) instead.

 But it seems that freebsd-update cannot help me upgrade from
 7.1-STABLE to 7.2-RELEASE.

 Any tips on how to make the transition to RELEASE?


freebsd-update can take you from one very specific point of FreeBSD to
another. For example, RELEASE to RELEASE or BETAx to RELEASE.  If you
follow STABLE, there is no such defined point hence you cannot use
freebsd-update to go from STABLE to RELEASE.

For your case, use the csup / rebuild method one more time to get to
7.2-RELEASE. After that you can start using freebsd-update to upgrade
from one release to the next.
___
freebsd-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: A question for developers

2009-07-25 Thread Steve Bertrand
Erich Dollansky wrote:

 let me answer very shortly.

[..snip..]

 ee is really just useful for very basic editing. But this is the
 idea behind ee.

I'd like to thank everyone for all of the well thought out, detailed and
informative feedback.

As far as ee, it's all I've really used for the last 10 years for pretty
much everything :)

In years gone by, I've toyed with both Emacs and vi. I'm no stranger to
using CNTL functions frequently (ee), but I've always felt more at home
with vi. I just never put in the initial effort to make it stick. I'm
going to give vim a go. It's what I've been contemplating for quite some
time anyway, and the recent post brought it to the surface.

Thanks everyone. I've saved all of the relevant links, code snips and
keystrokes for further perusal.

Steve
___
freebsd-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: Evolution 2.24.5 Exchange can't Subscribe to Other user's Calendar

2009-07-25 Thread Charles Oppermann

On 7/24/2009 1:10 PM, Matthias Apitz wrote:

Using the mentioned environment (on FreeBSD 8-CURRENT) I can't Subscribe
to Other user's Calendar in the Exchange server (don't blame me for
this, using Exchange :-)) . It fails with a more or less stupid message
about wrong password.
   
Exchange is an excellent mail handling system, with lots of benefits, no 
need to trash it here.


It's not a stupid message; it's telling you it can't authenticate you.  
To tell you explicitly cannot find credentials servers and services 
would be a security hole, because if it could find them and merely told 
you bad authentication you'd know you have a bad password, and could 
try a different one.

I've watched with TCPDUMP what's happening when I access in the Menue
'Subscribe to Other user's Calendar': it does a DNS lookup for
kerberos.OCLC.org which is failing (yyy.yyy.yyy.yyy is our DNS server,
xxx.xxx.xxx.xxx is my laptop):
10:43:53.583797 IP xxx.xxx.xxx.xxx.34455  yyy.yyy.yyy.yyy.53: 43976+ SRV?  
_kerberos._udp.OCLC.ORG. (41)
10:43:53.585520 IP yyy.yyy.yyy.yyy.53  xxx.xxx.xxx.xxx.34455: 43976 NXDomain 
0/1/0 (91)
10:43:53.586181 IP xxx.xxx.xxx.xxx.51100  yyy.yyy.yyy.yyy.53: 48460+ SRV?  
_kerberos._tcp.OCLC.ORG. (41)
10:43:53.587866 IP yyy.yyy.yyy.yyy.53  xxx.xxx.xxx.xxx.51100: 48460 NXDomain 
0/1/0 (91)
10:43:53.588479 IP xxx.xxx.xxx.xxx.23102  yyy.yyy.yyy.yyy.53: 46661+ SRV?  
_kerberos._http.OCLC.ORG. (42)
10:43:53.590098 IP yyy.yyy.yyy.yyy.53  xxx.xxx.xxx.xxx.23102: 46661 NXDomain 
0/1/0 (92)
10:43:53.590505 IP xxx.xxx.xxx.xxx.57028  yyy.yyy.yyy.yyy.53: 45174+ A?  
kerberos.OCLC.ORG. (35)
10:43:53.592087 IP yyy.yyy.yyy.yyy.53  xxx.xxx.xxx.xxx.57028: 45174 NXDomain 
0/1/0 (85)
10:43:53.592241 IP xxx.xxx.xxx.xxx.54405  yyy.yyy.yyy.yyy.53: 45175+ ?  
kerberos.OCLC.ORG. (35)
10:43:53.593850 IP yyy.yyy.yyy.yyy.53  xxx.xxx.xxx.xxx.54405: 45175 NXDomain 
0/1/0 (85)

The domain OCLC.ORG is the part of my mail addr, i.e. my addr 
isxx...@oclc.org.
The IT folks of my company gave me the hint that the above nslookup should not
be, for example, '_kerberos._udp.OCLC.ORG', but '_kerberos._udp.oa.OCLC.ORG'
(i.e. in the zone oa.OCLC.ORG) which indead is working with nslookup:

$ nslookup -type=SRV '_kerberos._udp.oa.OCLC.ORG'
Server: yyy.yyy.yyy.yyy
Address:yyy.yyy.yyy.yyy#53

Non-authoritative answer:
_kerberos._udp.oa.OCLC.ORG  service = 0 100 88 oadc5server.oa.oclc.org.
_kerberos._udp.oa.OCLC.ORG  service = 0 100 88 oadc01ewbe.oa.oclc.org.
_kerberos._udp.oa.OCLC.ORG  service = 0 100 88 oadc1server.oa.oclc.org.
_kerberos._udp.oa.OCLC.ORG  service = 0 100 88 oadc2server.oa.oclc.org.
...

Why Evo is asking for '_kerberos._udp.OCLC.ORG' and not for 
'_kerberos._udp.oa.OCLC.ORG'
   
Active Directory LDAP schemes can be mis-configured and yet still appear 
to work.  Check earlier to see if Evolution or PAM (if you're using 
PAM), was given oa.oclc.org or just oclc.org.


What domain are you in?  It's possible that Evolution assumes that SMTP 
address reflects your domain.  If you are in the OA domain, it should 
not hurt to list your address as x...@oa.oclc.org.  Mail sent to 
x...@oclc.org will still find you, and you can set the reply-to: header 
field to x...@oclc.org.


I have this issue at work, as for testing purposes my email address is 
currently chuc...@exchange.microsoft.com, but the alias 
chuc...@microsoft.com works as well.  But my email client keeps wanting 
to send @exchange.microsoft.com which confuses my friends into thinking 
my email address has changed.


Good luck and let us know.
___
freebsd-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: Evolution 2.24.5 Exchange can't Subscribe to Other user's Calendar

2009-07-25 Thread Matthias Apitz
El día Saturday, July 25, 2009 a las 08:30:16AM -0400, Charles Oppermann 
escribió:

 On 7/24/2009 1:10 PM, Matthias Apitz wrote:
 Using the mentioned environment (on FreeBSD 8-CURRENT) I can't Subscribe
 to Other user's Calendar in the Exchange server (don't blame me for
 this, using Exchange :-)) . It fails with a more or less stupid message
 about wrong password.


Hello Charles,

...
 It's not a stupid message; it's telling you it can't authenticate you.  
 To tell you explicitly cannot find credentials servers and services 
 would be a security hole, because if it could find them and merely told 
 you bad authentication you'd know you have a bad password, and could 
 try a different one.

I disagree here.  Look the three examples for host 'boell' I've typed a
wrong password, host 'krampus' (a MS$ one) does not run SSH daemon and
host 'krampuss' just does not exist:

$ ssh boell
g...@boell.sisis.de's password: 
Permission denied, please try again.

$ ssh krampus
ssh: connect to host krampus.Sisis.de port 22: Connection refused

$ ssh krampuss
ssh: Could not resolve hostname krampuss: hostname nor servname
provided, or not known

These are the normal world responses, at least of a SSH client in
FreeBSD; I don't see any security hole, but in any of the three cases
you know the error which has occured.

...

 Active Directory LDAP schemes can be mis-configured and yet still appear 
 to work.  Check earlier to see if Evolution or PAM (if you're using 
 PAM), was given oa.oclc.org or just oclc.org.
 
 What domain are you in?  It's possible that Evolution assumes that SMTP 
 address reflects your domain.  If you are in the OA domain, it should 
 not hurt to list your address as x...@oa.oclc.org.  Mail sent to 
 x...@oclc.org will still find you, and you can set the reply-to: header 
 field to x...@oclc.org.

In the Exchange authentication fields of Evo (Edit--Preferences--MailAccount)
I have to set following the advice of the server admins:

Username: OCLC\apitzm

I have no access to the Exchange server, but will check your hint with
the admins there.

 I have this issue at work, as for testing purposes my email address is 
 currently chuc...@exchange.microsoft.com, but the alias 
 chuc...@microsoft.com works as well.  But my email client keeps wanting 
 to send @exchange.microsoft.com which confuses my friends into thinking 
 my email address has changed.
 
 Good luck and let us know.

Thanks for your kind help and I will let you know, of course

matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e g...@unixarea.de - w http://www.unixarea.de/
People who hate Microsoft Windows use Linux but people who love UNIX use 
FreeBSD.
___
freebsd-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: INN configuration

2009-07-25 Thread Tim Kellers

Michel Talon wrote:

Tim Kellers said:
  

-Has anyone set up a n INN server on freebsd, successfuly?



Yes, no problem. Have you read the Inn install doc in 
/usr/local/share/doc/inn/INSTALL

This is a step by step guide to the *long* configuration.

Note that if you want to suck in news from another news server you also
need some other software, the best one being newsx (in the ports).

You also need to edit the active file to add newsgroups.


  

Thanks,

I think my problem may be my not having other software to grab the news 
from an upstream news server.  I'll take a look at newsx.  The 
configuration is long for sure, but I've been through it so many times 
in the past few days that I think I'm getting better at it. :-)


I'll report my success/failures as soon as I can get back on it.

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


ports failed install xfce4

2009-07-25 Thread David Collins
Hi

I am trying to install xfce4. I have updated ports , following
UPDATING I uninstalled xfce4.4 and attempted to install xfce4.6.

I have googled this and not found anything other than a gentoo bug
that didn't have a solution.

The box is as follows

FreeBSD cobra.homeunix.com 7.2-STABLE FreeBSD 7.2-STABLE #1: Thu Jul
16 16:28:20 BST 2009
r...@cobra.homeunix.com:/usr/obj/usr/src/sys/COBRA  i386

I get the following error

...
gmake[2]: Entering directory
`/usr/ports/x11-wm/xfce4-desktop/work/xfdesktop-4.6.1/panel-plugin'
/bin/sh ../libtool --tag=CC   --mode=link cc -I../common
-I/usr/local/include -D_THREAD_SAFE -I/usr/local/include
-I/usr/local/include/xfce4 -I/usr/local/include/gtk-2.0
-I/usr/local/lib/gtk-2.0/include -I/usr/local/include/pango-1.0
-I/usr/local/include/cairo -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -I/usr/local/include/pixman-1
-I/usr/local/include/freetype2 -I/usr/local/include/atk-1.0
-D_THREAD_SAFE -I/usr/local/include/xfce4/ -I/usr/local/include/xfce4
-I/usr/local/include -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -I/usr/local/include/gtk-2.0
-I/usr/local/lib/gtk-2.0/include -I/usr/local/include/pango-1.0
-I/usr/local/include/cairo -I/usr/local/include/pixman-1
-I/usr/local/include/freetype2 -I/usr/local/include/atk-1.0
-DDATADIR=\/usr/local/share\ -DLOCALEDIR=\/usr/local/share/locale\
-DBINDIR=\/usr/local/bin\ -O2 -fno-strict-aliasing -pipe   -o
xfce4-menu-plugin xfce4_menu_plugin-desktop-menu-plugin.o
../common/libxfdesktop-menu.la ../common/libxfdesktop.la -lSM -lICE
-R/usr/local/lib -lX11 -pthread -L/usr/local/lib -lxfcegui4
-lgtk-x11-2.0 -lxfce4util -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0
-lpangocairo-1.0 -lgio-2.0 -lXext -lXrender -lXinerama -lXi -lXrandr
-lXcursor -lXcomposite -lXdamage -lpangoft2-1.0 -lXfixes -lcairo -lX11
-lpango-1.0 -lm -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0
-lglib-2.0   -pthread -L/usr/local/lib -lxfce4panel -lxfcegui4
-lgtk-x11-2.0 -lxfce4util -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0
-lpangocairo-1.0 -lgio-2.0 -lXext -lXrender -lXinerama -lXi -lXrandr
-lXcursor -lXcomposite -lXdamage -lpangoft2-1.0 -lXfixes -lcairo -lX11
-lpango-1.0 -lm -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0
-lglib-2.0
libtool: link: cc -I../common -I/usr/local/include -D_THREAD_SAFE
-I/usr/local/include -I/usr/local/include/xfce4
-I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include
-I/usr/local/include/pango-1.0 -I/usr/local/include/cairo
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include/pixman-1 -I/usr/local/include/freetype2
-I/usr/local/include/atk-1.0 -D_THREAD_SAFE
-I/usr/local/include/xfce4/ -I/usr/local/include/xfce4
-I/usr/local/include -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -I/usr/local/include/gtk-2.0
-I/usr/local/lib/gtk-2.0/include -I/usr/local/include/pango-1.0
-I/usr/local/include/cairo -I/usr/local/include/pixman-1
-I/usr/local/include/freetype2 -I/usr/local/include/atk-1.0
-DDATADIR=\/usr/local/share\ -DLOCALEDIR=\/usr/local/share/locale\
-DBINDIR=\/usr/local/bin\ -O2 -fno-strict-aliasing -pipe -o
xfce4-menu-plugin xfce4_menu_plugin-desktop-menu-plugin.o -pthread
-pthread  ../common/.libs/libxfdesktop-menu.a
../common/.libs/libxfdesktop.a -L/usr/local/lib
/usr/local/lib/libxfce4panel.so /usr/local/lib/libxfcegui4.so
/usr/local/lib/libstartup-notification-1.so
/usr/local/lib/libxcb-aux.so /usr/local/lib/libxcb-event.so
/usr/local/lib/libxcb-atom.so /usr/local/lib/libSM.so
/usr/local/lib/libICE.so /usr/local/lib/libgtk-x11-2.0.so
/usr/local/lib/libxfce4util.so /usr/local/lib/libgdk-x11-2.0.so
/usr/local/lib/libatk-1.0.so /usr/local/lib/libgdk_pixbuf-2.0.so
/usr/local/lib/libpangocairo-1.0.so /usr/local/lib/libgio-2.0.so
/usr/local/lib/libXinerama.so /usr/local/lib/libXi.so
/usr/local/lib/libXrandr.so /usr/local/lib/libXcursor.so
/usr/local/lib/libXcomposite.so /usr/local/lib/libXext.so
/usr/local/lib/libXdamage.so /usr/local/lib/libpangoft2-1.0.so
/usr/local/lib/libXfixes.so /usr/local/lib/libcairo.so
/usr/local/lib/libpixman-1.so -lpng
/usr/local/lib/libxcb-render-util.so /usr/local/lib/libxcb-render.so
/usr/local/lib/libXrender.so /usr/local/lib/libX11.so
/usr/local/lib/libxcb.so /usr/local/lib/libXau.so
/usr/local/lib/libXdmcp.so -lrpcsvc /usr/local/lib/libpango-1.0.so -lm
/usr/local/lib/libfontconfig.so /usr/local/lib/libfreetype.so -lz
/usr/local/lib/libexpat.so /usr/local/lib/libgobject-2.0.so
/usr/local/lib/libgmodule-2.0.so /usr/local/lib/libglib-2.0.so
/usr/local/lib/libintl.so /usr/local/lib/libiconv.so
/usr/local/lib/libpcre.so -pthread -Wl,-rpath -Wl,/usr/local/lib
-Wl,-rpath -Wl,/usr/local/lib
xfce4_menu_plugin-desktop-menu-plugin.o(.text+0x1220): In function
`dmp_create_file_chooser_button':
: undefined reference to `exo_gtk_file_chooser_add_thumbnail_preview'
gmake[2]: *** [xfce4-menu-plugin] Error 1
gmake[2]: Leaving directory
`/usr/ports/x11-wm/xfce4-desktop/work/xfdesktop-4.6.1/panel-plugin'
gmake[1]: *** 

Re: Restarting hal

2009-07-25 Thread Warren Block

On Sat, 25 Jul 2009, Polytropon wrote:


On Fri, 24 Jul 2009 11:02:39 -0400, Bob Hall rjh...@gmail.com wrote:

Aside from the ctrl-alt-bksp bug, this has been the easiest X setup I've
ever done. I've tried it with and without hal and both are easy to set
up. Given my level of ignorance, that's saying something. I've seen a
lot of complaints about Xorg's new system, but I like it.


I'm sure it works very well on up-to-date hardware, but on
older hardware, where all the autodetect magic won't work
properly, problems may occur. Furthermore, if you need to
have a non-standard keyboard layout, e. g. the german one,
this has to be set in a different place now. As far as I
know, HAL and DBUS, along with FreeBSD 8, work very well for
different automounting scenarios (CD, DVD, USB).

Soon I will encounter the joy of the new X modularity
and dependencies. :-)

It's still worth mentioning that it's possible to run X
in the old fashioned way, but DBUS and HAL have to be
excluded at compile time.


Option AutoAddDevices Off should disable hal devices even if 
xorg-server has been built with hal.


-Warren Block * Rapid City, South Dakota USA
___
freebsd-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 Client

2009-07-25 Thread Leonardo M . Ramé

Hi, I'm trying to connect to an OpenVPN server in my office. To do this, I 
installed OpenVPN 2.0.6 i386-portbld-freebsd7.2 [SSL] [LZO] from ports, and 
looking at different tutorials I found it needs a config file in 
/usr/local/etc/openvpn/openvpn.conf. The problem here, is that our server 
provides an client.ovpn file containing all the connection params needed by a 
client, in fact, we connect windows machines just by installing 
OpenVPN_Installer.exe, it configures a TAP device and a client that reads the 
client.ovpn file.

Now, in my FreeBSD 7.2 i386 machine, I did this:

Created the /usr/local/etc/openvpn/openvpn.conf (the port doesn't created it 
automatically) with this content:

remote 200.80.219.194.static.techtelnet.net
client
proto tcp 
port 443
dev tun 
ns-cert-type server
auth-user-pass
auth-retry interact
comp-lzo
user nobody
group nobody
verb 3
ca /usr/local/etc/openvpn/keys/ca.key
cert /usr/local/etc/openvpn/keys/cert.key
key /usr/local/etc/openvpn/keys/key.key

This contents are extracted from client.ovpn, and ca, cert and key files 
were extracted from the same file.

I kldload tun, but when I do ifconfig, it doesn't shows nothing related to tun 
or tap.

Also, when I do openvpn /usr/local/etc/openvpn/openvpn.conf the results are 
this:

Sat Jul 25 11:24:09 2009 OpenVPN 2.0.6 i386-portbld-freebsd7.2 [SSL] [LZO] 
built on Jul 24 2009
Enter Auth Username:nico
Enter Auth Password:
Sat Jul 25 11:24:13 2009 WARNING: you are using user/group/chroot without 
persist-key/persist-tun -- this may cause restarts to fail
Sat Jul 25 11:24:13 2009 WARNING: file '/usr/local/etc/openvpn/keys/key.key' is 
group or others accessible
Sat Jul 25 11:24:13 2009 LZO compression initialized
Sat Jul 25 11:24:13 2009 Control Channel MTU parms [ L:1544 D:140 EF:40 EB:0 
ET:0 EL:0 ]
Sat Jul 25 11:24:13 2009 Data Channel MTU parms [ L:1544 D:1450 EF:44 EB:135 
ET:0 EL:0 AF:3/1 ]
Sat Jul 25 11:24:13 2009 Local Options hash (VER=V4): '69109d17'
Sat Jul 25 11:24:13 2009 Expected Remote Options hash (VER=V4): 'c0103fa8'
Sat Jul 25 11:24:13 2009 NOTE: UID/GID downgrade will be delayed because of 
--client, --pull, or --up-delay
Sat Jul 25 11:24:13 2009 Attempting to establish TCP connection with 
200.80.219.194:443
Sat Jul 25 11:24:13 2009 TCP connection established with 200.80.219.194:443
Sat Jul 25 11:24:13 2009 TCPv4_CLIENT link local: [undef]
Sat Jul 25 11:24:13 2009 TCPv4_CLIENT link remote: 200.80.219.194:443
Sat Jul 25 11:24:13 2009 Connection reset, restarting [0]
Sat Jul 25 11:24:13 2009 TCP/UDP: Closing socket
Sat Jul 25 11:24:13 2009 SIGUSR1[soft,connection-reset] received, process 
restarting
Sat Jul 25 11:24:13 2009 Restart pause, 5 second(s)

In my /etc/rc.conf I have openvpn_if=tun, I don't load the tun nor tap 
interface at boot, I just want to load it with kldload.

uname -a:
FreeBSD inspiron.local 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May  1 08:49:13 
UTC 2009 r...@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

ifconfig:
ndis0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
ether 00:23:4d:64:d6:7a
inet 192.168.0.100 netmask 0xff00 broadcast 192.168.0.255
media: IEEE 802.11 Wireless Ethernet autoselect
status: associated
ssid  channel 1 (2412 Mhz 11b)
authmode OPEN privacy OFF bmiss 7 scanvalid 60 roaming MANUAL
bintval 0
fwe0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500
options=8VLAN_MTU
ether 32:4f:c0:e1:55:e1
ch 1 dma -1
fwip0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500
lladdr 33.4f.c0.0.26.e1.55.e1.a.2.ff.fe.0.0.0.0
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 
inet6 ::1 prefixlen 128 
inet 127.0.0.1 netmask 0xff00 

Thanks in advance,
Leonardo M. Ramé



___
freebsd-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: A question for developers

2009-07-25 Thread Chad Perrin
On Sat, Jul 25, 2009 at 05:21:44PM +0800, Erich Dollansky wrote:
 
 I use joe, gedit, kate and bluefish.
 
 All have their week points.
 
 One advantage of using several in parallel is that you can 
 configure each to a special need of you and then start the one 
 which seems to fit best your current task.

I find that I get the same benefit by creating multiple configuration
files for a single application, and starting it with the configuration I
want for the specific task at hand, if that single application with
different configurations is better suited to the task at hand than some
other application.  For instance, I might have a .vim_ruby_rc and a
.vim_english_rc, one for programming in Ruby and one for writing articles
in English.

If I want to have quick, easy startup for each, I might use aliases such
as:

alias evim 'vim -S .evimrc'
alias rvim 'vim -S .rvimrc'

If I want a quick way to remind myself what Vim configurations I have
available, I might use an alias like this:

alias vimlist 'alias|grep vim'

I would do this sort of thing because of the unignorable boost to my
productivity that I have observed when using Vim, as opposed to other
editors.  I don't want to give that up for some varying configuration
options, using something like nano instead.  If, however, you find that a
different editor actually suits your needs better for a different
purpose, by all means use it for that purpose.  I just didn't want to
leave these comments without ensuring that it's clear to anyone who
doesn't already know it that it's easy to use different configurations
for the same editor when using it for different purposes.

I do something similar with my mail user agent, and email downloading and
sending tools, so that I can work with multiple email addresses without
having to use email clients I don't like.

 
 joe has also the advantage that it behaves differently depending 
 under which name your start it.

What do you mean by which name?  I'm curious.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
O'Rourke's Circumcision Precept: You can take 10 percent off the top of
anything.


pgp4uuAT8EAr4.pgp
Description: PGP signature


Re: A question for developers

2009-07-25 Thread Chad Perrin
On Sat, Jul 25, 2009 at 08:46:14AM -0400, Steve Bertrand wrote:
 
 In years gone by, I've toyed with both Emacs and vi. I'm no stranger to
 using CNTL functions frequently (ee), but I've always felt more at home
 with vi. I just never put in the initial effort to make it stick. I'm
 going to give vim a go. It's what I've been contemplating for quite some
 time anyway, and the recent post brought it to the surface.

Good luck!

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
Quoth Sean Reifschneider: If java had real garbage-collection, it would
delete most programs before it executed them.


pgpkBuqxhGFNA.pgp
Description: PGP signature


Rs. 55 per 19 Liters Bottle

2009-07-25 Thread Yasir Baig

    
   3D 3D 3D 3D
   3D 3D 3D 3D
   3D 3D 3D 3D
   3D 3D 3D 3D
   3D 3D 3D 3D
   3D 3D 3D 3D
   3D 3D 3D 3D
   3D 3D 3D 3D

   [1]click here t= o remove  yourself from our mailing list

References

   1. 3Dmailto:aeplpurewa...@gmail.com?subject=remove;
___
freebsd-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 Client

2009-07-25 Thread Bill Campbell
On Sat, Jul 25, 2009, Leonardo M. Ram? wrote:


Hi, I'm trying to connect to an OpenVPN server in my office. To do this, I
installed OpenVPN 2.0.6 i386-portbld-freebsd7.2 [SSL] [LZO] from ports,
and looking at different tutorials I found it needs a config file in
/usr/local/etc/openvpn/openvpn.conf. The problem here, is that our server
provides an client.ovpn file containing all the connection params needed
by a client, in fact, we connect windows machines just by installing
OpenVPN_Installer.exe, it configures a TAP device and a client that reads
the client.ovpn file.

You can probably just ``mv client.ovpn client.conf'' and use that
(along with the other files provided with keys, etc.).  The
Tunnelblick OpenVPN client I use on my Macs recognizes either.

Bill
-- 
INTERNET:   b...@celestial.com  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
Voice:  (206) 236-1676  Mercer Island, WA 98040-0820
Fax:(206) 232-9186  Skype: jwccsllc (206) 855-5792

Freedom from prices is freedom from responsibility. You can simply pass
laws, using the magic wand of government to satisfy your own desires at
unspecified costs to be paid by others. -- Thomas Sowell Aug 2000
___
freebsd-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 Client

2009-07-25 Thread chris scott
2009/7/25 Leonardo M. Ramé martinr...@yahoo.com


 Hi, I'm trying to connect to an OpenVPN server in my office. To do this, I
 installed OpenVPN 2.0.6 i386-portbld-freebsd7.2 [SSL] [LZO] from ports,
 and looking at different tutorials I found it needs a config file in
 /usr/local/etc/openvpn/openvpn.conf. The problem here, is that our server
 provides an client.ovpn file containing all the connection params needed
 by a client, in fact, we connect windows machines just by installing
 OpenVPN_Installer.exe, it configures a TAP device and a client that reads
 the client.ovpn file.

 Now, in my FreeBSD 7.2 i386 machine, I did this:

 Created the /usr/local/etc/openvpn/openvpn.conf (the port doesn't created
 it automatically) with this content:

 remote 200.80.219.194.static.techtelnet.net
 client
 proto tcp
 port 443
 dev tun
 ns-cert-type server
 auth-user-pass
 auth-retry interact
 comp-lzo
 user nobody
 group nobody
 verb 3
 ca /usr/local/etc/openvpn/keys/ca.key
 cert /usr/local/etc/openvpn/keys/cert.key
 key /usr/local/etc/openvpn/keys/key.key

 This contents are extracted from client.ovpn, and ca, cert and key
 files were extracted from the same file.

 I kldload tun, but when I do ifconfig, it doesn't shows nothing related to
 tun or tap.

 Also, when I do openvpn /usr/local/etc/openvpn/openvpn.conf the results
 are this:

 Sat Jul 25 11:24:09 2009 OpenVPN 2.0.6 i386-portbld-freebsd7.2 [SSL] [LZO]
 built on Jul 24 2009
 Enter Auth Username:nico
 Enter Auth Password:
 Sat Jul 25 11:24:13 2009 WARNING: you are using user/group/chroot without
 persist-key/persist-tun -- this may cause restarts to fail
 Sat Jul 25 11:24:13 2009 WARNING: file
 '/usr/local/etc/openvpn/keys/key.key' is group or others accessible
 Sat Jul 25 11:24:13 2009 LZO compression initialized
 Sat Jul 25 11:24:13 2009 Control Channel MTU parms [ L:1544 D:140 EF:40
 EB:0 ET:0 EL:0 ]
 Sat Jul 25 11:24:13 2009 Data Channel MTU parms [ L:1544 D:1450 EF:44
 EB:135 ET:0 EL:0 AF:3/1 ]
 Sat Jul 25 11:24:13 2009 Local Options hash (VER=V4): '69109d17'
 Sat Jul 25 11:24:13 2009 Expected Remote Options hash (VER=V4): 'c0103fa8'
 Sat Jul 25 11:24:13 2009 NOTE: UID/GID downgrade will be delayed because of
 --client, --pull, or --up-delay
 Sat Jul 25 11:24:13 2009 Attempting to establish TCP connection with
 200.80.219.194:443
 Sat Jul 25 11:24:13 2009 TCP connection established with
 200.80.219.194:443
 Sat Jul 25 11:24:13 2009 TCPv4_CLIENT link local: [undef]
 Sat Jul 25 11:24:13 2009 TCPv4_CLIENT link remote: 200.80.219.194:443
 Sat Jul 25 11:24:13 2009 Connection reset, restarting [0]
 Sat Jul 25 11:24:13 2009 TCP/UDP: Closing socket
 Sat Jul 25 11:24:13 2009 SIGUSR1[soft,connection-reset] received, process
 restarting
 Sat Jul 25 11:24:13 2009 Restart pause, 5 second(s)

 In my /etc/rc.conf I have openvpn_if=tun, I don't load the tun nor tap
 interface at boot, I just want to load it with kldload.

 uname -a:
 FreeBSD inspiron.local 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May  1
 08:49:13 UTC 2009 r...@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
  i386

 ifconfig:
 ndis0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
ether 00:23:4d:64:d6:7a
inet 192.168.0.100 netmask 0xff00 broadcast 192.168.0.255
media: IEEE 802.11 Wireless Ethernet autoselect
status: associated
ssid  channel 1 (2412 Mhz 11b)
authmode OPEN privacy OFF bmiss 7 scanvalid 60 roaming MANUAL
bintval 0
 fwe0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500
options=8VLAN_MTU
ether 32:4f:c0:e1:55:e1
ch 1 dma -1
 fwip0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500
lladdr 33.4f.c0.0.26.e1.55.e1.a.2.ff.fe.0.0.0.0
 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff00

 Thanks in advance,
 Leonardo M. Ramé



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



make sure you have the tap kernel module loaded

kldload /boot/kernel/if_tap.ko

to make sure its there after boot do add
if_tap_load=yes
to your /boot/loader.conf

When used openvpn i also added

cloned_interfaces=tun1

to my rc.conf , then  reinitialize the network stack by  running
/etc/netstart


I also set the open vpn client to explicitly use tun1
___
freebsd-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: A question for developers

2009-07-25 Thread Polytropon
On Sat, 25 Jul 2009 08:49:05 -0600, Chad Perrin per...@apotheon.com wrote:
 On Sat, Jul 25, 2009 at 05:21:44PM +0800, Erich Dollansky wrote:
  joe has also the advantage that it behaves differently depending 
  under which name your start it.
 
 What do you mean by which name?  I'm curious.

According to man joe (syntax):

   joe [global-options] [ [local-options] filename ]...

   jstar [global-options] [ [local-options] filename ]...

   jmacs [global-options] [ [local-options] filename ]...

   rjoe [global-options] [ [local-options] filename ]...

   jpico [global-options] [ [local-options] filename ]...

There is specific behaviour for joe as Wordstar, joe as
Emacs, restricted joe and joe as pico.



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


Re: Restarting hal

2009-07-25 Thread Polytropon
On Sat, 25 Jul 2009 07:56:17 -0600 (MDT), Warren Block wbl...@wonkity.com 
wrote:
 
 Option AutoAddDevices Off should disable hal devices even if 
 xorg-server has been built with hal.

I'm aware of this. There are other workarounds to get the
default stuff working again (option Don't-Zap for example),
so X installations relying on xorg.conf can work again.


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


Re: Restarting daemons after portupgrade/portmanager

2009-07-25 Thread Mel Flynn
On Friday 24 July 2009 14:57:13 Axel wrote:

 So far, so good. But what about the other daemons that still seem to run
 after upgrade (Apache, Courier IMAP etc)? Are the new version running
 fine after the upgrade, or should I set AFTERINSTALL to do a restart of
 these daemons, to make sure they run the upgraded version?

I don't know about Courier, but Apache is generally not affected by on-disk 
versions of libraries. The CGI programs however, are, since they're started up 
and shutdown with each request (or in the case of FCGI in X requests) - the 
Apache workers are spawned from the root process and use that process image.

So there is no definite need to shut down Apache and disrupt service. If a 
running webserver is important to you, I also would not do this automatically. 
For example, jpeg could be upgraded before Apache and a module for Apache 
needing it, yet this module is depending on Apache and therefore not 
recompiled yet. As a result, this module tries to load a non-existing library 
and Apache restart will fail.
-- 
Mel
___
freebsd-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: running out of inodes

2009-07-25 Thread ill...@gmail.com
2009/7/25 Peter peterp...@aboutsupport.com:
 Hello,

 We have a strange issue with one of our machines. We have a busy site on
 it with a lot content  and cache files - all of these a lot small files.

 We started to run out inodes.

 [r...@pistolcontent-lb3 /]# df -hi
 Filesystem       Size    Used   Avail Capacity  iused  ifree %iused
 Mounted on
 /dev/aacd0s1a    496M    382M     74M    84%    25402  40388   39%   /
 devfs            1.0K    1.0K      0B   100%        0      0  100%   /dev
 /dev/aacd0s1e    496M    2.7M    453M     1%       99  65691    0%   /tmp
 /dev/aacd0s1f    123G     95G     18G    84% 16623996  27266  100%   /usr
 /dev/aacd0s1d    4.8G     62M    4.4G     1%     1425 658029    0%   /var



 What is the best way to handle it ?

fsck_ffs -r
may help temporarily, or may not

dump, newfs -i 4096, restore
might solve it

breaking the content and cache files out into their own
filesystem (with its own, more easily managed parameters)
is probably the best 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: vim port have a lot of broken links ??

2009-07-25 Thread Mel Flynn
On Saturday 25 July 2009 02:29:30 Kalle Møller wrote:
 Spot on.. My server is ipv6 ready.. (We are the hosting department of the
 ISP if we should examine all ticket we get with.. Its the networks fault we
 wouldn't do anything else :D )

 And fetch -4 http://ftp.vim.org/pub/vim/patches/7.2/7.2.002 is working
 fine. So it must be that it tries ipv6 first.

/usr/ports/Mk/bsd.port.mk states:
# FETCH_ARGS- Arguments to ftp/http fetch command.
# Default: -ApRr

Override it in /etc/make.conf:
FETCH_ARGS=-4ApRr

Or one could set it in your shell environment for the duration that IPv6 is 
not working.
-- 
Mel
___
freebsd-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 Client

2009-07-25 Thread Leonardo M . Ramé

Thanks, after adding if_tun_load=YES to my /boot/loader.conf and rebooting, 
this message appears in dmesg:

can't re-use a leaf (if_tun_debug)!
module_register: module if_tun already exists!
Module if_tun failed to register: 17

So I think it is not required to add it to loader.conf.

I replaced tun by tun1 in openvpn.conf, and the result is this:

Sat Jul 25 15:09:46 2009 OpenVPN 2.0.6 i386-portbld-freebsd7.2 [SSL] [LZO] 
built on Jul 24 2009
Enter Auth Username:nico
Enter Auth Password:
Sat Jul 25 15:09:48 2009 WARNING: file '/usr/local/etc/openvpn/keys/key.key' is 
group or others accessible
Sat Jul 25 15:09:48 2009 LZO compression initialized
Sat Jul 25 15:09:48 2009 Control Channel MTU parms [ L:1544 D:140 EF:40 EB:0 
ET:0 EL:0 ]
Sat Jul 25 15:09:48 2009 Data Channel MTU parms [ L:1544 D:1450 EF:44 EB:135 
ET:0 EL:0 AF:3/1 ]
Sat Jul 25 15:09:48 2009 Local Options hash (VER=V4): '69109d17'
Sat Jul 25 15:09:48 2009 Expected Remote Options hash (VER=V4): 'c0103fa8'
Sat Jul 25 15:09:48 2009 NOTE: UID/GID downgrade will be delayed because of 
--client, --pull, or --up-delay
Sat Jul 25 15:09:48 2009 Attempting to establish TCP connection with 
200.80.219.194:443
Sat Jul 25 15:09:48 2009 TCP connection established with 200.80.219.194:443
Sat Jul 25 15:09:48 2009 TCPv4_CLIENT link local: [undef]
Sat Jul 25 15:09:48 2009 TCPv4_CLIENT link remote: 200.80.219.194:443
Sat Jul 25 15:09:49 2009 Connection reset, restarting [0]
Sat Jul 25 15:09:49 2009 TCP/UDP: Closing socket
Sat Jul 25 15:09:49 2009 SIGUSR1[soft,connection-reset] received, process 
restarting
Sat Jul 25 15:09:49 2009 Restart pause, 5 second(s)
Sat Jul 25 15:09:50 2009 SIGINT[hard,init_instance] received, process exiting

If I do ifconfig, the tun interface appears in the list:

ndis0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
ether 00:23:4d:64:d6:7a
inet 192.168.0.100 netmask 0xff00 broadcast 192.168.0.255
media: IEEE 802.11 Wireless Ethernet autoselect
status: associated
ssid  channel 1 (2412 Mhz 11b)
authmode OPEN privacy OFF bmiss 7 scanvalid 60 roaming MANUAL
bintval 0
fwe0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500
options=8VLAN_MTU
ether 32:4f:c0:e1:55:e1
ch 1 dma -1
fwip0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500
lladdr 33.4f.c0.0.26.e1.55.e1.a.2.ff.fe.0.0.0.0
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 
inet6 ::1 prefixlen 128 
inet 127.0.0.1 netmask 0xff00 
tun1: flags=8010POINTOPOINT,MULTICAST metric 0 mtu 1500

Any hint?

--- On Sat, 7/25/09, chris scott kra...@googlemail.com wrote:

 From: chris scott kra...@googlemail.com
 Subject: Re: OpenVPN Client
 To: Leonardo M. Ramé martinr...@yahoo.com
 Cc: freebsd-questions@freebsd.org
 Date: Saturday, July 25, 2009, 1:56 PM
 2009/7/25 Leonardo M. Ramé martinr...@yahoo.com
 
 
  Hi, I'm trying to connect to an OpenVPN server in my
 office. To do this, I
  installed OpenVPN 2.0.6 i386-portbld-freebsd7.2 [SSL]
 [LZO] from ports,
  and looking at different tutorials I found it needs a
 config file in
  /usr/local/etc/openvpn/openvpn.conf. The problem here,
 is that our server
  provides an client.ovpn file containing all the
 connection params needed
  by a client, in fact, we connect windows machines just
 by installing
  OpenVPN_Installer.exe, it configures a TAP device
 and a client that reads
  the client.ovpn file.
 
  Now, in my FreeBSD 7.2 i386 machine, I did this:
 
  Created the /usr/local/etc/openvpn/openvpn.conf (the
 port doesn't created
  it automatically) with this content:
 
  remote 200.80.219.194.static.techtelnet.net
  client
  proto tcp
  port 443
  dev tun
  ns-cert-type server
  auth-user-pass
  auth-retry interact
  comp-lzo
  user nobody
  group nobody
  verb 3
  ca /usr/local/etc/openvpn/keys/ca.key
  cert /usr/local/etc/openvpn/keys/cert.key
  key /usr/local/etc/openvpn/keys/key.key
 
  This contents are extracted from client.ovpn, and
 ca, cert and key
  files were extracted from the same file.
 
  I kldload tun, but when I do ifconfig, it doesn't
 shows nothing related to
  tun or tap.
 
  Also, when I do openvpn
 /usr/local/etc/openvpn/openvpn.conf the results
  are this:
 
  Sat Jul 25 11:24:09 2009 OpenVPN 2.0.6
 i386-portbld-freebsd7.2 [SSL] [LZO]
  built on Jul 24 2009
  Enter Auth Username:nico
  Enter Auth Password:
  Sat Jul 25 11:24:13 2009 WARNING: you are using
 user/group/chroot without
  persist-key/persist-tun -- this may cause restarts to
 fail
  Sat Jul 25 11:24:13 2009 WARNING: file
  '/usr/local/etc/openvpn/keys/key.key' is group or
 others accessible
  Sat Jul 25 11:24:13 2009 LZO compression initialized
  Sat Jul 25 11:24:13 2009 Control Channel MTU parms [
 L:1544 D:140 EF:40
  EB:0 ET:0 EL:0 ]
  Sat Jul 25 11:24:13 2009 Data Channel MTU parms [
 L:1544 D:1450 EF:44
  EB:135 ET:0 EL:0 AF:3/1 ]
  Sat Jul 25 

Re: Restarting hal

2009-07-25 Thread Warren Block

On Sat, 25 Jul 2009, Polytropon wrote:


On Sat, 25 Jul 2009 07:56:17 -0600 (MDT), Warren Block wbl...@wonkity.com 
wrote:


Option AutoAddDevices Off should disable hal devices even if
xorg-server has been built with hal.


I'm aware of this.


Just trying to point out the options, and that a one-line change in 
xorg.conf is lower impact than rebuilding xorg-server.


There are other workarounds to get the default stuff working again 
(option Don't-Zap for example), so X installations relying on 
xorg.conf can work again.


Since some defaults have changed in newer versions of xorg, that last 
sentence is confusing.  Maybe


  s/default stuff working again/legacy behavior/
  s/work/work as expected/

-Warren Block * Rapid City, South Dakota USA
___
freebsd-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 Client

2009-07-25 Thread Leonardo M . Ramé

Well, I opted for deinstalling openvpn and install openvpn-devel (2.1). Now it 
reads my client.ovpn file, and it seems to be going a little step further, now 
it seems to be a problem with route add.

I have to mention that the client machine is connected to a router using DHCP 
in the network 192.168.0.xxx. Can this be the problem?

This is the new log:

Sat Jul 25 16:20:10 2009 OpenVPN 2.1_rc18 i386-portbld-freebsd7.2 [SSL] [LZO2] 
[PKCS11] built on Jul 25 2009
Sat Jul 25 16:20:13 2009 NOTE: OpenVPN 2.1 requires '--script-security 2' or 
higher to call user-defined scripts or executables
Sat Jul 25 16:20:13 2009 Control Channel Authentication: tls-auth using INLINE 
static key file
Sat Jul 25 16:20:13 2009 Outgoing Control Channel Authentication: Using 160 bit 
message hash 'SHA1' for HMAC authentication
Sat Jul 25 16:20:13 2009 Incoming Control Channel Authentication: Using 160 bit 
message hash 'SHA1' for HMAC authentication
Sat Jul 25 16:20:13 2009 LZO compression initialized
Sat Jul 25 16:20:13 2009 Control Channel MTU parms [ L:1544 D:168 EF:68 EB:0 
ET:0 EL:0 ]
Sat Jul 25 16:20:13 2009 Data Channel MTU parms [ L:1544 D:1450 EF:44 EB:135 
ET:0 EL:0 AF:3/1 ]
Sat Jul 25 16:20:13 2009 Local Options hash (VER=V4): 'ee93268d'
Sat Jul 25 16:20:13 2009 Expected Remote Options hash (VER=V4): 'bd577cd1'
Sat Jul 25 16:20:13 2009 Attempting to establish TCP connection with 
200.80.219.194:443 [nonblock]
Sat Jul 25 16:20:14 2009 TCP connection established with 200.80.219.194:443
Sat Jul 25 16:20:14 2009 Socket Buffers: R=[66608-65536] S=[33304-65536]
Sat Jul 25 16:20:14 2009 TCPv4_CLIENT link local: [undef]
Sat Jul 25 16:20:14 2009 TCPv4_CLIENT link remote: 200.80.219.194:443
Sat Jul 25 16:20:14 2009 TLS: Initial packet from 200.80.219.194:443, 
sid=f4722bb3 aafe8f23
Sat Jul 25 16:20:14 2009 WARNING: this configuration may cache passwords in 
memory -- use the auth-nocache option to prevent this
Sat Jul 25 16:20:15 2009 VERIFY OK: depth=1, /CN=OpenVPN_CA
Sat Jul 25 16:20:15 2009 VERIFY OK: nsCertType=SERVER
Sat Jul 25 16:20:15 2009 VERIFY OK: depth=0, /CN=OpenVPN_Server
Sat Jul 25 16:20:15 2009 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 
128 bit key
Sat Jul 25 16:20:15 2009 Data Channel Encrypt: Using 160 bit message hash 
'SHA1' for HMAC authentication
Sat Jul 25 16:20:15 2009 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 
128 bit key
Sat Jul 25 16:20:15 2009 Data Channel Decrypt: Using 160 bit message hash 
'SHA1' for HMAC authentication
Sat Jul 25 16:20:15 2009 Control Channel: TLSv1, cipher TLSv1/SSLv3 
DHE-RSA-AES256-SHA, 1024 bit RSA
Sat Jul 25 16:20:15 2009 [OpenVPN_Server] Peer Connection Initiated with 
200.80.219.194:443
Sat Jul 25 16:20:16 2009 SENT CONTROL [OpenVPN_Server]: 'PUSH_REQUEST' 
(status=1)
Sat Jul 25 16:20:16 2009 PUSH: Received control message: 
'PUSH_REPLY,route-delay 5 
30,dhcp-pre-release,dhcp-renew,dhcp-release,redirect-private 
local,redirect-private bypass-dhcp,redirect-private bypass-dns,route-metric 
101,route 192.168.0.0 255.255.255.0,route-gateway 172.16.0.1,topology 
subnet,ping 8,ping-restart 90,socket-flags TCP_NODELAY,ifconfig 172.16.0.2 
255.255.0.0'
Sat Jul 25 16:20:16 2009 Options error: Unrecognized option or missing 
parameter(s) in [PUSH-OPTIONS]:2: dhcp-pre-release (2.1_rc18)
Sat Jul 25 16:20:16 2009 Options error: Unrecognized option or missing 
parameter(s) in [PUSH-OPTIONS]:3: dhcp-renew (2.1_rc18)
Sat Jul 25 16:20:16 2009 Options error: Unrecognized option or missing 
parameter(s) in [PUSH-OPTIONS]:4: dhcp-release (2.1_rc18)
Sat Jul 25 16:20:16 2009 OPTIONS IMPORT: timers and/or timeouts modified
Sat Jul 25 16:20:16 2009 OPTIONS IMPORT: --socket-flags option modified
Sat Jul 25 16:20:16 2009 NOTE: setsockopt TCP_NODELAY=1 failed (No kernel 
support)
Sat Jul 25 16:20:16 2009 OPTIONS IMPORT: --ifconfig/up options modified
Sat Jul 25 16:20:16 2009 OPTIONS IMPORT: route options modified
Sat Jul 25 16:20:16 2009 OPTIONS IMPORT: route-related options modified
Sat Jul 25 16:20:16 2009 ROUTE default_gateway=192.168.0.1
Sat Jul 25 16:20:16 2009 TUN/TAP device /dev/tun0 opened
Sat Jul 25 16:20:16 2009 /sbin/ifconfig tun0 172.16.0.2 172.16.0.2 netmask 
255.255.0.0 mtu 1500 up
Sat Jul 25 16:20:16 2009 /sbin/route add -net 172.16.0.0 172.16.0.2 255.255.0.0
add net 172.16.0.0: gateway 172.16.0.2
Sat Jul 25 16:20:21 2009 WARNING: potential route subnet conflict between local 
LAN [192.168.0.0/255.255.255.0] and remote VPN [192.168.0.0/255.255.255.0]
Sat Jul 25 16:20:21 2009 /sbin/route add -net 192.168.0.0 172.16.0.1 
255.255.255.0
route: writing to routing socket: File exists
add net 192.168.0.0: gateway 172.16.0.1: route already in table
Sat Jul 25 16:20:21 2009 ERROR: FreeBSD route add command failed: external 
program exited with error status: 1
Sat Jul 25 16:20:21 2009 Initialization Sequence Completed
Sat Jul 25 16:20:30 2009 event_wait : Interrupted system call (code=4)
Sat Jul 25 16:20:30 2009 TCP/UDP: Closing socket
Sat Jul 25 16:20:30 2009 

7.2 amd64 Flash

2009-07-25 Thread PJ
Has anyone SUCCESSFULLY installed Adobe Flash for Firefox on FBSD 7.2
running on amd64?
I have managed to install about everything I need on an Acer TravelMate
4400 except Flash.
I have found that someone did install it in version 7.1 but the same
procedures do not work on 7.2. linux_base-f8 (linux_base-f8-8_11
compat.linuxosrelease: 2.4.2 is not supported.)
Installed is linux_base-fc-4_14 is currently installed.
linux_base-f10-10 is asking to use version 2.6.16
Surely some version of Flash should be functional on FBSD 7.2
TIA

-- 
Hervé Kempf: Pour sauver la planète, sortez du capitalisme.
-
Phil Jourdan --- p...@ptahhotep.com
   http://www.ptahhotep.com
   http://www.chiccantine.com/andypantry.php

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


X errors when I open gvim

2009-07-25 Thread Andrew Falanga
Hi,

When I open gVim from the command line, I get the following errors:

Xlib:  extension Generic Event Extension missing on display :0.0.
Xlib:  extension Generic Event Extension missing on display :0.0.
Xlib:  extension Generic Event Extension missing on display :0.0.
Xlib:  extension Generic Event Extension missing on display :0.0.
Xlib:  extension Generic Event Extension missing on display :0.0.
Xlib:  extension Generic Event Extension missing on display :0.0.


How do I fix this?

Andy

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-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: X errors when I open gvim

2009-07-25 Thread Mel Flynn
On Saturday 25 July 2009 13:38:24 Andrew Falanga wrote:

 When I open gVim from the command line, I get the following errors:

 Xlib:  extension Generic Event Extension missing on display :0.0.

 How do I fix this?

What's there to fix? The warnings are harmless, search the archives for more 
info.
-- 
Mel
___
freebsd-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: Additional sa devices?

2009-07-25 Thread Brian Seklecki
On Fri, 2009-07-10 at 11:52 +0700, Olivier Nicole wrote:
 Hi,
 
My question is what the difference is between 'sa0.0' and 'sa0.[1-3]'.
I can't seem to find it documented anywhere.
 

Maybe submit a PR+Patch to the man page file? ~BAS

 From the top of my head, I think I remember devices sa0.[1-3] would
 represent different compression mode.
 
 Bests,


___
freebsd-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: 7.2 amd64 Flash

2009-07-25 Thread Adam Vande More
On Sat, Jul 25, 2009 at 3:25 PM, PJ af.gour...@videotron.ca wrote:

 Has anyone SUCCESSFULLY installed Adobe Flash for Firefox on FBSD 7.2
 running on amd64?
 I have managed to install about everything I need on an Acer TravelMate
 4400 except Flash.
 I have found that someone did install it in version 7.1 but the same
 procedures do not work on 7.2. linux_base-f8 (linux_base-f8-8_11
 compat.linuxosrelease: 2.4.2 is not supported.)
 Installed is linux_base-fc-4_14 is currently installed.
 linux_base-f10-10 is asking to use version 2.6.16
 Surely some version of Flash should be functional on FBSD 7.2
 TIA

 --
 Hervé Kempf: Pour sauver la planète, sortez du capitalisme.
 -
 Phil Jourdan --- p...@ptahhotep.com


Sure it's no different than i386.  You need to set linux kernel version to
2.6.16 in /etc/sysctl.conf then remove f4 and install f8 or f10.

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


Re: Webcam problem - pwc

2009-07-25 Thread Brian Seklecki
On Sat, 2009-07-04 at 22:12 +, Antonio Rieser wrote:
 ugen0: vendor 0x046d product 0x08dd, class 0/0, rev 1.10/1.00, addr
 3 on uhub1

The driver didn't attach to the device.  Look in the driver source code
for product ID 0x08dd.  Change/Add, then recompile the kernel and try
again -- no promises. ~BAS

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


mount_smbfs + suspend = kernel panic

2009-07-25 Thread EforeZZ
Hi guys,

I use mount_smbfs on my notebook and I have a little nasty problem..
Sometimes I have kernel panic when resuming after the suspend. The
issue seems to happen when I go to suspend with my USB network (WiFi)
adapter plugged in (I do use /etc/rc.d/netif stop rum0 before going
to suspend), then I resume the notebook without the adapter, then I
suspend it again, and finally I resume it with the adapter plugged in.
The system panics. Maybe there are any workarounds to avoid the
problem.. Should I do umount all smbfs' before I go to suspend?.. Is
there any other more elegant way?

Here is the kernel buffer and the backtrace:

kernel trap 12 with interrupts disabled


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x18
fault code  = supervisor read, page not present
instruction pointer = 0x20:0xc081fa05
stack pointer   = 0x28:0xe8cf2adc
frame pointer   = 0x28:0xe8cf2af8
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags= resume, IOPL = 0
current process = 37632 (smbiod4)
trap number = 12
panic: page fault
cpuid = 0
Uptime: 7d12h57m21s
Physical memory: 2022 MB
Dumping 275 MB: (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to
abort)  260 244 228 (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to
abort)  212 196 180 164 148 132 116 100 84 68 52 36 20 4





#0  doadump () at pcpu.h:196
#1  0xc07e8767 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:418
#2  0xc07e8a39 in panic (fmt=Variable fmt is not available.
) at /usr/src/sys/kern/kern_shutdown.c:574
#3  0xc0aecd3c in trap_fatal (frame=0xe8cf2a9c, eva=24) at
/usr/src/sys/i386/i386/trap.c:939
#4  0xc0aed6bf in trap (frame=0xe8cf2a9c) at /usr/src/sys/i386/i386/trap.c:320
#5  0xc0ad207b in calltrap () at /usr/src/sys/i386/i386/exception.s:159
#6  0xc081fa05 in turnstile_broadcast (ts=0x0, queue=0) at
/usr/src/sys/kern/subr_turnstile.c:836
#7  0xc07d93f2 in _mtx_unlock_sleep (m=0xc8d82d94, opts=0,
file=0xc107c6c3 /usr/src/sys/modules/smbfs/../../netsmb/smb_iod.c,
line=97) at /usr/src/sys/kern/kern_mutex.c:619
#8  0xc07d9752 in _mtx_unlock_flags (m=0xc8d82d94, opts=0,
file=0xc107c6c3 /usr/src/sys/modules/smbfs/../../netsmb/smb_iod.c,
line=97) at /usr/src/sys/kern/kern_mutex.c:210
#9  0xc106fb73 in smb_iod_invrq (iod=Variable iod is not available.
) at /usr/src/sys/modules/smbfs/../../netsmb/smb_iod.c:97
#10 0xc1070d57 in smb_iod_addrq (rqp=0xc8d82d00) at
/usr/src/sys/modules/smbfs/../../netsmb/smb_iod.c:424
#11 0xc106d28c in smb_rq_enqueue (rqp=0xc8d82d00) at
/usr/src/sys/modules/smbfs/../../netsmb/smb_rq.c:193
#12 0xc106d6d8 in smb_rq_simple (rqp=0xc8d82d00) at
/usr/src/sys/modules/smbfs/../../netsmb/smb_rq.c:174
#13 0xc106b9e4 in smb_smb_treeconnect (ssp=0xc778d500,
scred=0xc7a6e144) at
/usr/src/sys/modules/smbfs/../../netsmb/smb_smb.c:561
#14 0xc10708b8 in smb_iod_thread (arg=0xc7a6e100) at
/usr/src/sys/modules/smbfs/../../netsmb/smb_iod.c:212
#15 0xc07c2159 in fork_exit (callout=0xc10705c0 smb_iod_thread,
arg=0xc7a6e100, frame=0xe8cf2d38)
at /usr/src/sys/kern/kern_fork.c:810
#16 0xc0ad20f0 in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:264

Best regards,
EforeZZ
___
freebsd-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: 7.2 amd64 Flash

2009-07-25 Thread Boris Samorodov
Adam Vande More amvandem...@gmail.com writes:
 On Sat, Jul 25, 2009 at 3:25 PM, PJ af.gour...@videotron.ca wrote:

 Has anyone SUCCESSFULLY installed Adobe Flash for Firefox on FBSD 7.2
 running on amd64?
 I have managed to install about everything I need on an Acer TravelMate
 4400 except Flash.
 I have found that someone did install it in version 7.1 but the same
 procedures do not work on 7.2. linux_base-f8 (linux_base-f8-8_11
 compat.linuxosrelease: 2.4.2 is not supported.)
 Installed is linux_base-fc-4_14 is currently installed.
 linux_base-f10-10 is asking to use version 2.6.16
 Surely some version of Flash should be functional on FBSD 7.2

 Sure it's no different than i386.  You need to set linux kernel version to
 2.6.16 in /etc/sysctl.conf then remove f4 and install f8 or f10.

If needed use /usr/ports/UPDATING and search emulation@ ML for
instructions on how to ugrade from fc4 to any non-default linux
base port. 

-- 
WBR, bsam
___
freebsd-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: 7.2 amd64 Flash

2009-07-25 Thread PJ
Adam Vande More wrote:
 On Sat, Jul 25, 2009 at 3:25 PM, PJ af.gour...@videotron.ca
 mailto:af.gour...@videotron.ca wrote:

 Has anyone SUCCESSFULLY installed Adobe Flash for Firefox on FBSD 7.2
 running on amd64?
 I have managed to install about everything I need on an Acer
 TravelMate
 4400 except Flash.
 I have found that someone did install it in version 7.1 but the same
 procedures do not work on 7.2. linux_base-f8 (linux_base-f8-8_11
 compat.linuxosrelease: 2.4.2 is not supported.)
 Installed is linux_base-fc-4_14 is currently installed.
 linux_base-f10-10 is asking to use version 2.6.16
 Surely some version of Flash should be functional on FBSD 7.2
 TIA

 --
 Hervé Kempf: Pour sauver la planète, sortez du capitalisme.
 -
 Phil Jourdan --- p...@ptahhotep.com mailto:p...@ptahhotep.com


 Sure it's no different than i386.  You need to set linux kernel
 version to 2.6.16 in /etc/sysctl.conf then remove f4 and install f8 or
 f10.

 -- 
 Adam Vande More
Thanks for the prompt answer Adam,

I already had f8 installed as well as fc-4  sctl.conf set to 2.6.16. I
tried installing flash but here's what I get.

The current linux-f8-flashplugin10 spews out:
=== linux-flashplugin-10.0r22 bsd.linux-apps.mk test failed: The
component nss is not defined for LINUX_DIST_SUFFIX= (the corresponding
variable nss_FILE is not defined).
*** Error code 1

linux_base-fc-4-14 was installed as a dependency by some other program.
What happens if I remofe it?


-- 
Hervé Kempf: Pour sauver la planète, sortez du capitalisme.
-
Phil Jourdan --- p...@ptahhotep.com
   http://www.ptahhotep.com
   http://www.chiccantine.com/andypantry.php

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


The FreeBSD Diary: 2009-07-25

2009-07-25 Thread Dan Langille
The FreeBSD Diary contains a large number of practical 
examples and how-to guides.  This message is posted weekly
to freebsd-questions@freebsd.org with the aim of letting people
know what's available on the website.  Before you post a question
here it might be a good idea to first search the mailing list 
archives http://www.freebsd.org/search/search.html#mailinglists 
and/or The FreeBSD Diary http://www.freebsddiary.org/. 

RECENT ARTICLES:

2-Dec : Obscuring smtp auth headers
 If you consider your smtp-auth location to be private, this is what you 
want. 
 http://freebsddiary.org/smtp-headers-rewrite-auth.php?2

29-Nov : OpenVPN - creating a routed VPN
 If you have multiple VPN clients, this is a practical solution. 
 http://freebsddiary.org/openvpn-routed.php?2

27-Nov : Creating your own Certificate Authority
 How to create a CA and generate your own SSL certificates
 http://freebsddiary.org/openvpn-easy-rsa.php?2

27-Nov : OpenVPN - getting it running
 Using OpenVPN to create a secure pathway between home and office 
 http://freebsddiary.org/openvpn.php?2

5-Oct : Removing dead mailing lists from Mailman
 Mailing lists can outlive their usefulness 
 http://freebsddiary.org/mailman-removing-dead-lists.php?2

30-Aug : gmirror - recovering from a failed HDD
 an HDD failed.  gmirror to the rescue. 
 http://freebsddiary.org/gmirror-failure.php?2

6-Jul : ezjail - A jail administration framework
 This makes jails easier 
 http://freebsddiary.org/ezjail.php?2

24-Jun : Adding gmirror to an existing installation
 Adding RAID-1 to an existing FreeBSD 7 installation
 http://freebsddiary.org/gmirror.php?2

20-Mar : ThinkPad x61s
 Unpacking the box, installing PC-BSD 
 http://freebsddiary.org/thinkpad-x61s.php?2

17-Mar : Using two monitors with X.org
 The GeForce 8600 GT with two monitors 
 http://freebsddiary.org/xorg-two-screens.php?2


-- 
Dan Langille
BSDCan - http://www.BSDCan.org/ - BSD Conference

___
freebsd-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: 7.2 amd64 Flash

2009-07-25 Thread Adam Vande More
On Sat, Jul 25, 2009 at 6:03 PM, PJ af.gour...@videotron.ca wrote:

 Adam Vande More wrote:
  On Sat, Jul 25, 2009 at 3:25 PM, PJ af.gour...@videotron.ca
  mailto:af.gour...@videotron.ca wrote:
 
  Has anyone SUCCESSFULLY installed Adobe Flash for Firefox on FBSD 7.2
  running on amd64?
  I have managed to install about everything I need on an Acer
  TravelMate
  4400 except Flash.
  I have found that someone did install it in version 7.1 but the same
  procedures do not work on 7.2. linux_base-f8 (linux_base-f8-8_11
  compat.linuxosrelease: 2.4.2 is not supported.)
  Installed is linux_base-fc-4_14 is currently installed.
  linux_base-f10-10 is asking to use version 2.6.16
  Surely some version of Flash should be functional on FBSD 7.2
  TIA
 
  --
  Hervé Kempf: Pour sauver la planète, sortez du capitalisme.
  -
  Phil Jourdan --- p...@ptahhotep.com mailto:p...@ptahhotep.com
 
 
  Sure it's no different than i386.  You need to set linux kernel
  version to 2.6.16 in /etc/sysctl.conf then remove f4 and install f8 or
  f10.
 
  --
  Adam Vande More
 Thanks for the prompt answer Adam,

 I already had f8 installed as well as fc-4  sctl.conf set to 2.6.16. I
 tried installing flash but here's what I get.

 The current linux-f8-flashplugin10 spews out:
 === linux-flashplugin-10.0r22 bsd.linux-apps.mk test failed: The
 component nss is not defined for LINUX_DIST_SUFFIX= (the corresponding
 variable nss_FILE is not defined).
 *** Error code 1

 linux_base-fc-4-14 was installed as a dependency by some other program.
 What happens if I remofe it?


 --
 Hervé Kempf: Pour sauver la planète, sortez du capitalisme.
 -
 Phil Jourdan --- p...@ptahhotep.com
http://www.ptahhotep.com
   http://www.chiccantine.com/andypantry.php


In my experience, upgrading linux base hasn't broken anything as long as
proper steps are taken.  Boris was correct in referencing
/usr/ports/UPDATING for instructions on upgrading it.  There are important
steps there.  Also the original post had an error that reflected the sysctl
not being set correctly.  Generally, sysctl.conf is only run at boot.  If
you're just getting starting in BSD, it is probably easier to just remember
to reboot after changing files like /etc/sysctl.conf and /boot/loader.conf.
It's more complicated than that and this introduces some unnecessary steps
but it's a lot easier to remember for someone new to this enviroment.

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


Re: 7.2 amd64 Flash

2009-07-25 Thread PJ
Adam Vande More wrote:
 On Sat, Jul 25, 2009 at 6:03 PM, PJ af.gour...@videotron.ca
 mailto:af.gour...@videotron.ca wrote:

 Adam Vande More wrote:
  On Sat, Jul 25, 2009 at 3:25 PM, PJ af.gour...@videotron.ca
 mailto:af.gour...@videotron.ca
  mailto:af.gour...@videotron.ca
 mailto:af.gour...@videotron.ca wrote:
 
  Has anyone SUCCESSFULLY installed Adobe Flash for Firefox on
 FBSD 7.2
  running on amd64?
  I have managed to install about everything I need on an Acer
  TravelMate
  4400 except Flash.
  I have found that someone did install it in version 7.1 but
 the same
  procedures do not work on 7.2. linux_base-f8
 (linux_base-f8-8_11
  compat.linuxosrelease: 2.4.2 is not supported.)
  Installed is linux_base-fc-4_14 is currently installed.
  linux_base-f10-10 is asking to use version 2.6.16
  Surely some version of Flash should be functional on FBSD 7.2
  TIA
 
  --
  Hervé Kempf: Pour sauver la planète, sortez du capitalisme.
  -
  Phil Jourdan --- p...@ptahhotep.com mailto:p...@ptahhotep.com
 mailto:p...@ptahhotep.com mailto:p...@ptahhotep.com
 
 
  Sure it's no different than i386.  You need to set linux kernel
  version to 2.6.16 in /etc/sysctl.conf then remove f4 and install
 f8 or
  f10.
 
  --
  Adam Vande More
 Thanks for the prompt answer Adam,

 I already had f8 installed as well as fc-4  sctl.conf set to
 2.6.16. I
 tried installing flash but here's what I get.

 The current linux-f8-flashplugin10 spews out:
 === linux-flashplugin-10.0r22 bsd.linux-apps.mk
 http://bsd.linux-apps.mk test failed: The
 component nss is not defined for LINUX_DIST_SUFFIX= (the corresponding
 variable nss_FILE is not defined).
 *** Error code 1

 linux_base-fc-4-14 was installed as a dependency by some other
 program.
 What happens if I remofe it?


 --
 Hervé Kempf: Pour sauver la planète, sortez du capitalisme.
 -
 Phil Jourdan --- p...@ptahhotep.com mailto:p...@ptahhotep.com
   http://www.ptahhotep.com
   http://www.chiccantine.com/andypantry.php


 In my experience, upgrading linux base hasn't broken anything as long
 as proper steps are taken.  Boris was correct in referencing
 /usr/ports/UPDATING for instructions on upgrading it.  There are
 important steps there.  Also the original post had an error that
 reflected the sysctl not being set correctly.  Generally, sysctl.conf
 is only run at boot.  If you're just getting starting in BSD, it is
 probably easier to just remember to reboot after changing files like
 /etc/sysctl.conf and /boot/loader.conf.  It's more complicated than
 that and this introduces some unnecessary steps but it's a lot easier
 to remember for someone new to this enviroment.

 -- 
 Adam Vande More
I'm afraid that I am a little lost here.
I have had a few problems configuring ports on previous installations,
but I hagve always managed to ge them done. Usually, with a little help
to find my own silly little mistakes like typos and just not paying
attention.
But up to now, I have never been able to install Flash on any previous
distributions.
Anyway, I now have flash installed... it does not work.
I have also acroread9 installed... it does not want to work... it loads
up, the panel comes up and last about 1-2 seconds and dies.
That's nice. I went to the trouble to install it and it doesn't work.
Any suggestions what to do, look for, or whatever befor I trash all this
stuff and go back to MicroSlop.
Thanks again...I've had enough for today... gotta get some sleep. It's
been a miserable week installing and reinstalling 7.2 on amd64... and I
was just beginning to see the light at the end of the tunnel... :'(

-- 
Hervé Kempf: Pour sauver la planète, sortez du capitalisme.
-
Phil Jourdan --- p...@ptahhotep.com
   http://www.ptahhotep.com
   http://www.chiccantine.com/andypantry.php

___
freebsd-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: INN configuration

2009-07-25 Thread Tim Kellers

Tim Kellers wrote:

Michel Talon wrote:

Tim Kellers said:
 

-Has anyone set up a n INN server on freebsd, successfuly?



Yes, no problem. Have you read the Inn install doc in 
/usr/local/share/doc/inn/INSTALL

This is a step by step guide to the *long* configuration.

Note that if you want to suck in news from another news server you also
need some other software, the best one being newsx (in the ports).

You also need to edit the active file to add newsgroups.


  

Thanks,

I think my problem may be my not having other software to grab the 
news from an upstream news server.  I'll take a look at newsx.  The 
configuration is long for sure, but I've been through it so many times 
in the past few days that I think I'm getting better at it. :-)


I'll report my success/failures as soon as I can get back on it.

Tim



Looks like newsx was the solution I was looking for.  So far, it is 
pulling the articles from my active groups from my upstream provider.  I 
assume from the docs I have to run rnews -U after this immense pull has 
completed.


Thanks for all the help

Tim
___
freebsd-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: limit to number of files seen by ls?

2009-07-25 Thread Karl Vogel
 On Thursday 23 July 2009 09:41:26 Karl Vogel wrote:

K Every version of Unix I've ever used had an upper limit on the size of
K the argument list you could pass to a program, so it won't just be ls
K that's affected here.  That's why I use 1,000 as a rule of thumb for the
K maximum number of files I put in a directory.

 On Thu, 23 Jul 2009 10:25:49 -0800, 
 Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net said:

M That arbitrary number works simply because kern.argmax default has been
M raised somewhere in 6.x (before it was 64kB).

   That arbitrary number has worked very nicely for me for 20 years under
   Solaris, Linux, and several BSD variants.  The main reason I stick
   with 1000 is because directories are read linearly unless you're using
   something like ReiserFS, and I get impatient waiting for more than that
   number of filenames to be sorted when using ls.

M And MAXNAMLEN in sys/dirent.h is 255.

   That's the maximum length of a single filename in a directory.  Since
   I keep my filenames much shorter, I don't have a problem.

M Knowing your way around maximum arguments length through xargs as
M suggested in this thread is much better solution then trying to exercise
M control over directory sizes, which may or not be under your control in
M the first place.

   Xargs is very useful, but it's not a substitute for poor design, and
   it's not something you can drop into any existing pipeline without a
   little thought first.

   If your application is trying to create hundreds of thousands or
   millions of files in any one directory, or you're creating lots of
   200-character filenames from hell, then your design is a poor match for
   most varieties of Unix; small directories perform better than enormous
   ones, and lots of commonly-used scripts and programs will fall over
   when handed zillion-file argument lists.

   I'm sure the latest version of insert-cool-OS-or-filesystem-here
   fixes all these objections, but not everyone gets to run the latest
   and greatest.  Don't fight your filesystem, and it won't fight you.

-- 
Karl Vogel  I don't speak for the USAF or my company
Birds of a feather flock together and usually crap on your car.
___
freebsd-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: 7.2 amd64 Flash

2009-07-25 Thread Adam Vande More
On Sat, Jul 25, 2009 at 7:57 PM, PJ af.gour...@videotron.ca wrote:

 Adam Vande More wrote:
  On Sat, Jul 25, 2009 at 6:03 PM, PJ af.gour...@videotron.ca
  mailto:af.gour...@videotron.ca wrote:
 
  Adam Vande More wrote:
   On Sat, Jul 25, 2009 at 3:25 PM, PJ af.gour...@videotron.ca
  mailto:af.gour...@videotron.ca
   mailto:af.gour...@videotron.ca
  mailto:af.gour...@videotron.ca wrote:
  
   Has anyone SUCCESSFULLY installed Adobe Flash for Firefox on
  FBSD 7.2
   running on amd64?
   I have managed to install about everything I need on an Acer
   TravelMate
   4400 except Flash.
   I have found that someone did install it in version 7.1 but
  the same
   procedures do not work on 7.2. linux_base-f8
  (linux_base-f8-8_11
   compat.linuxosrelease: 2.4.2 is not supported.)
   Installed is linux_base-fc-4_14 is currently installed.
   linux_base-f10-10 is asking to use version 2.6.16
   Surely some version of Flash should be functional on FBSD 7.2
   TIA
  
   --
   Hervé Kempf: Pour sauver la planète, sortez du capitalisme.
   -
   Phil Jourdan --- p...@ptahhotep.com mailto:p...@ptahhotep.com
  mailto:p...@ptahhotep.com mailto:p...@ptahhotep.com
  
  
   Sure it's no different than i386.  You need to set linux kernel
   version to 2.6.16 in /etc/sysctl.conf then remove f4 and install
  f8 or
   f10.
  
   --
   Adam Vande More
  Thanks for the prompt answer Adam,
 
  I already had f8 installed as well as fc-4  sctl.conf set to
  2.6.16. I
  tried installing flash but here's what I get.
 
  The current linux-f8-flashplugin10 spews out:
  === linux-flashplugin-10.0r22 bsd.linux-apps.mk
  http://bsd.linux-apps.mk test failed: The
  component nss is not defined for LINUX_DIST_SUFFIX= (the
 corresponding
  variable nss_FILE is not defined).
  *** Error code 1
 
  linux_base-fc-4-14 was installed as a dependency by some other
  program.
  What happens if I remofe it?
 
 
  --
  Hervé Kempf: Pour sauver la planète, sortez du capitalisme.
  -
  Phil Jourdan --- p...@ptahhotep.com mailto:p...@ptahhotep.com
http://www.ptahhotep.com
http://www.chiccantine.com/andypantry.php
 
 
  In my experience, upgrading linux base hasn't broken anything as long
  as proper steps are taken.  Boris was correct in referencing
  /usr/ports/UPDATING for instructions on upgrading it.  There are
  important steps there.  Also the original post had an error that
  reflected the sysctl not being set correctly.  Generally, sysctl.conf
  is only run at boot.  If you're just getting starting in BSD, it is
  probably easier to just remember to reboot after changing files like
  /etc/sysctl.conf and /boot/loader.conf.  It's more complicated than
  that and this introduces some unnecessary steps but it's a lot easier
  to remember for someone new to this enviroment.
 
  --
  Adam Vande More
 I'm afraid that I am a little lost here.
 I have had a few problems configuring ports on previous installations,
 but I hagve always managed to ge them done. Usually, with a little help
 to find my own silly little mistakes like typos and just not paying
 attention.
 But up to now, I have never been able to install Flash on any previous
 distributions.
 Anyway, I now have flash installed... it does not work.
 I have also acroread9 installed... it does not want to work... it loads
 up, the panel comes up and last about 1-2 seconds and dies.
 That's nice. I went to the trouble to install it and it doesn't work.
 Any suggestions what to do, look for, or whatever befor I trash all this
 stuff and go back to MicroSlop.
 Thanks again...I've had enough for today... gotta get some sleep. It's
 been a miserable week installing and reinstalling 7.2 on amd64... and I
 was just beginning to see the light at the end of the tunnel... :'(

 Best instructions are found here:

http://crnl.org/blog/2008/11/01/flash-9-for-freebsd-71

I've not had any issue with any freebsd 7.x version including stable, but I
didn't run amd64 long.  I doubt that is the issue though.
-- 
Adam Vande More
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Restarting hal

2009-07-25 Thread Bob Hall
On Sat, Jul 25, 2009 at 08:41:38AM +0200, Polytropon wrote:
 On Fri, 24 Jul 2009 11:02:39 -0400, Bob Hall rjh...@gmail.com wrote:
  Aside from the ctrl-alt-bksp bug, this has been the easiest X setup I've
  ever done. I've tried it with and without hal and both are easy to set
  up. Given my level of ignorance, that's saying something. I've seen a
  lot of complaints about Xorg's new system, but I like it.
 
 I'm sure it works very well on up-to-date hardware, but on
 older hardware, where all the autodetect magic won't work
 properly, problems may occur. 

I'm going to install FBSD 7 on a PII in a few weeks. We'll see how that
goes. :)
___
freebsd-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: 7.2 amd64 Flash

2009-07-25 Thread Adam Vande More
On Sat, Jul 25, 2009 at 8:33 PM, Adam Vande More amvandem...@gmail.comwrote:

 On Sat, Jul 25, 2009 at 7:57 PM, PJ af.gour...@videotron.ca wrote:

 Adam Vande More wrote:
  On Sat, Jul 25, 2009 at 6:03 PM, PJ af.gour...@videotron.ca
  mailto:af.gour...@videotron.ca wrote:
 
  Adam Vande More wrote:
   On Sat, Jul 25, 2009 at 3:25 PM, PJ af.gour...@videotron.ca
  mailto:af.gour...@videotron.ca
   mailto:af.gour...@videotron.ca
  mailto:af.gour...@videotron.ca wrote:
  
   Has anyone SUCCESSFULLY installed Adobe Flash for Firefox on
  FBSD 7.2
   running on amd64?
   I have managed to install about everything I need on an Acer
   TravelMate
   4400 except Flash.
   I have found that someone did install it in version 7.1 but
  the same
   procedures do not work on 7.2. linux_base-f8
  (linux_base-f8-8_11
   compat.linuxosrelease: 2.4.2 is not supported.)
   Installed is linux_base-fc-4_14 is currently installed.
   linux_base-f10-10 is asking to use version 2.6.16
   Surely some version of Flash should be functional on FBSD 7.2
   TIA
  
   --
   Hervé Kempf: Pour sauver la planète, sortez du capitalisme.
   -
   Phil Jourdan --- p...@ptahhotep.com mailto:p...@ptahhotep.com
  mailto:p...@ptahhotep.com mailto:p...@ptahhotep.com
  
  
   Sure it's no different than i386.  You need to set linux kernel
   version to 2.6.16 in /etc/sysctl.conf then remove f4 and install
  f8 or
   f10.
  
   --
   Adam Vande More
  Thanks for the prompt answer Adam,
 
  I already had f8 installed as well as fc-4  sctl.conf set to
  2.6.16. I
  tried installing flash but here's what I get.
 
  The current linux-f8-flashplugin10 spews out:
  === linux-flashplugin-10.0r22 bsd.linux-apps.mk
  http://bsd.linux-apps.mk test failed: The
  component nss is not defined for LINUX_DIST_SUFFIX= (the
 corresponding
  variable nss_FILE is not defined).
  *** Error code 1
 
  linux_base-fc-4-14 was installed as a dependency by some other
  program.
  What happens if I remofe it?
 
 
  --
  Hervé Kempf: Pour sauver la planète, sortez du capitalisme.
  -
  Phil Jourdan --- p...@ptahhotep.com mailto:p...@ptahhotep.com
http://www.ptahhotep.com
http://www.chiccantine.com/andypantry.php
 
 
  In my experience, upgrading linux base hasn't broken anything as long
  as proper steps are taken.  Boris was correct in referencing
  /usr/ports/UPDATING for instructions on upgrading it.  There are
  important steps there.  Also the original post had an error that
  reflected the sysctl not being set correctly.  Generally, sysctl.conf
  is only run at boot.  If you're just getting starting in BSD, it is
  probably easier to just remember to reboot after changing files like
  /etc/sysctl.conf and /boot/loader.conf.  It's more complicated than
  that and this introduces some unnecessary steps but it's a lot easier
  to remember for someone new to this enviroment.
 
  --
  Adam Vande More
 I'm afraid that I am a little lost here.
 I have had a few problems configuring ports on previous installations,
 but I hagve always managed to ge them done. Usually, with a little help
 to find my own silly little mistakes like typos and just not paying
 attention.
 But up to now, I have never been able to install Flash on any previous
 distributions.
 Anyway, I now have flash installed... it does not work.
 I have also acroread9 installed... it does not want to work... it loads
 up, the panel comes up and last about 1-2 seconds and dies.
 That's nice. I went to the trouble to install it and it doesn't work.
 Any suggestions what to do, look for, or whatever befor I trash all this
 stuff and go back to MicroSlop.
 Thanks again...I've had enough for today... gotta get some sleep. It's
 been a miserable week installing and reinstalling 7.2 on amd64... and I
 was just beginning to see the light at the end of the tunnel... :'(

 Best instructions are found here:

 http://crnl.org/blog/2008/11/01/flash-9-for-freebsd-71

 I've not had any issue with any freebsd 7.x version including stable, but I
 didn't run amd64 long.  I doubt that is the issue though.
 --
 Adam Vande More


Actually there is a pretty good thread going in stable about this:

http://lists.freebsd.org/pipermail/freebsd-stable/2009-July/051292.html

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


UFS2 tuning for heterogeneous 4TB file system

2009-07-25 Thread Maxim Khitrov
Hi all,

I've spent a few hours now reading on how to set newfs parameters for
various environments (many small files, many large files, etc.). I
must say that I still don't have a clear picture of the relationships
between cylinders, blocks, fragments, and inodes. That's making things
difficult for me in figuring out what to use in my situation.

The file system in question will not have a common file size (which is
what, as I understand, bytes per inode should be tuned for). There
will be many small files ( 10 KB) and many large ones ( 500 MB). A
similar, in terms of content, 2TB ntfs file system on another server
has an average file size of about 26 MB with 59,246 files.

Ideally, I would prefer that small files do not waste more than 4 KB
of space, which is what you have with ntfs. At the same time, having
fsck running for days after an unclean shutdown is also not a good
option (I always disable background checking). From what I've gathered
so far, the two requirements are at the opposite ends in terms of file
system optimization.

So the question is what would be the optimal newfs parameters in my
situation? Please don't suggest using zfs. Right now I'm in the
testing phase and need to get the best configuration for usf2. After
that I will give zfs a try. OS is FreeBSD 7.2-RELEASE-p2 amd64.

Thanks for your help,
Max
___
freebsd-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: A question for developers

2009-07-25 Thread Giorgos Keramidas
On Fri, 24 Jul 2009 22:49:10 -0400, Steve Bertrand st...@ibctech.ca wrote:
 Forgive the verbosity.

 Before anything else, I'd appreciate it if my requirements were actually
 read before providing any feedback. I know that there are qualified
 persons here to legitimately answer my question, so if a flame war does
 ensue, I ask that you refrain from responding.

 I'm looking for a new editor.

 I continue to claim that I am not a programmer, but I'm getting to the
 point where my current editor can not do what I need it to do for the
 programming I have been doing (90% Perl, a bit of C and the rest is
 shell/awk stuff if you want to call that programming).

 Currently, I use ee. The ONLY reason I have outgrown it, is due to the
 fact that I can't find an easy way to change my \t to four chars instead
 of eight.

Both editors/vim and editors/emacs can do what you describe and a *LOT*
more.  You should at least try them for a while and see which one of the
two fits your style of work better.

To get you started by a sneak preview of what they can do, here's a
short example of how my .vimrc and .emacs files set options that apply
only to C sources.

First the ~/.vimrc options:

 .vimrc options that apply to all files
set softtabstop=8   how much to indent when TAB is typed
set tabstop=8   how many columns a literal TAB buffer byte indents
set textwidth=0where do we wrap lines?

 vim options that apply only to C sources
if !exists(format_keramida_cmode)
let format_keramida_cmode = 1
 formatting C code
autocmd BufNewFile,BufRead *.c,*.h set autoindent showmatch
autocmd BufNewFile,BufRead *.c,*.h set formatoptions=tcq2l textwidth=74
autocmd BufNewFile,BufRead *.c,*.h set shiftwidth=8 softtabstop=8 
tabstop=8 noexpandtab
endif

When using VIM, you can get an indentation style of 4 columns that uses
only spaces (no TABs at all) by setting `softtabstop=4' and
`expandtabs'.

Then the ~/.emacs options for GNU Emacs:

(defun keramida/cc-mode/setup ()
  Configure cc-mode and derivatives for KNF style.
  (interactive)

  ;; Basic indent is 8 columns
  (make-local-variable 'c-basic-offset)
  (setq c-basic-offset 8)

  ;; Continuation lines are indented 4 spaces
  (make-local-variable 'c-offsets-alist)
  (c-set-offset 'arglist-cont 4)
  (c-set-offset 'arglist-cont-nonempty 4)
  (c-set-offset 'statement-cont 4)

  ;; Fill column
  (make-local-variable 'fill-column)
  (setq fill-column 74)

  ;; Indenting to a tab stop always inserts TAB characters
  (setq indent-tabs-mode t)
  (setq c-tab-always-indent t))

;; Install my own hook for C/C++ mode.
(add-hook 'c-mode-common-hook 'keramida/cc-mode/setup)

When using Emacs, you can get an indentation style that uses 4 columns
and only spaces by setting `indent-tabs-mode' to `nil' and then tweaking
`c-basic-offset' to 4:

(setq indent-tabs-mode nil)
(setq c-basic-offset 4)

There are _tons_ of other features in both editors.  I lean towards
Emacs, because I like the way it works, but you can do so many things
with both editors that I have been using both for more than 16 years
now.  I like both of them :-)



pgpu5yBCeQGwV.pgp
Description: PGP signature