Re: HELP! core dumps: install, mtree, et cetera all of the sudden after portmaster security/cyrus-sasl2

2012-08-17 Thread Glen Barber
On Fri, Aug 17, 2012 at 09:44:40AM +0200, Hartmann, O. wrote:
  An installation failed due to pkg(ng) was missing libarchive.so via
  
  There is pkg-static for recovering in this type of situation.
 
 Oh ... I'm new to pkg(ng).
 

No worries.  It is a nice thing to know about, since after a big shlib
bump during an upgrade, if all else is broken, you can still at least
get /rescue stuff and pkg-static to upgrade third party software.

  If someone has some hints how to recompile the sources with an emergency
  booted disk, I highly appreciate some desater advice. Maybe the release
  of FreeBSD-10-CURRENT sources I compiled do have accidentally a nasty
  bug, so it would be nice to update the sources and have a complete
  recompilation done.
 
  
  If you can get booted into a recovery medium, you can mount /usr/src and
  /usr/obj from the hosed system, and should be able to
  installworld/installkernel into the hosed system with DESTDIR set.
  
 
 I do  this the very moment with the RELEASE CD I found at allbsd.org for
 the most recent FBSD 10.0-CURRENT as from 16.08.2012. I try to build the
 sources and install them into the mounted DESTDIR.
 

I have lately been creating memstick images for this exact type of
thing.  On -CURRENT and 9-STABLE, you can do:

 # make -C /usr/src buildworld buildkernel
 # make -C /usr/src/release NOSRC=yes NODOCS=yes NOPORTS=yes memstick

Then take the resulting memory stick image to use for recovery.

Glen

___
freebsd-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: HELP! core dumps: install, mtree, et cetera all of the sudden after portmaster security/cyrus-sasl2

2012-08-16 Thread Glen Barber
On Thu, Aug 16, 2012 at 05:33:20PM +0200, Hartmann, O. wrote:
 
 I ran into a very delicate and nasty situation.
 
 On several boxes, FreeBSD 9.1-PRE and FreeBSD 10-CURRENT (build of
 CURRENT sources from yesterday, r239295 Wed August 15 17:04:51 CEST 2012
 amd64, I had to recompile all requirements of port Apache22, since after
 the port update it core dumped.
 
 On FreeBSD 9.1-PRE, with pkg(ng), things went well. Recompilation and
 installation of all portmaster -f apache-2.2 requirements went perfect.
 
 On both FreeBSD 10-CURRENT boxes it ended up in a mess, all of a
 sudden(!), while reinstalling port security/cyrus-sasl2, things started
 to fail in a dramatik way!
 
 On both FBSD 10 boxes, the installation of the port security/cyrus-sasl2
 got corrupted by install and/or mtree dumping core and signalling
 SIGNAL 11. Booting into multiuser mode is impossible, login core dumps
 SIGNAL 11, many other daemons, too. The only way is to boot into single
 user mode.
 
 An installation failed due to pkg(ng) was missing libarchive.so via

There is pkg-static for recovering in this type of situation.

 portmaster or via core dumping install(1). By installing on one box, my
 home box, port security/cyrus-sasl2 manually, luckily install(1) and
 mtree(1) didn't coredump and it worked - and this precedure rescued me.
 But on my lab's development box, it doesn't work!
 
 On this specific box, where this nasty problem also occured the same way
 by simply recompiling everything for port www/apache22, including the
 reinstallation of port security/cyrus-sasl2. Nearly every binary is
 suddenly coredumping (as on the home box). login, vi, install, devfs,
 syslogd, mtree, id, find ... a whole lot of binaries seem to be
 compromised by something I do not see (libsasl2.so perhaps?).
 
 I tried to help myself via copying /rescue/vi to /usr/bin/vi to have at
 least a working vi. But in /rescue, I can not find install or mtree. I'm
 not familiar with the sophisticated ways of /rescue. Where are
 install(1) and mtree(1)?
 
 Trying to reinstall security/cyrus-sasl2 from single-user fails due
 install coredumps. pkg(ng) fails due to missing libpkg.so.5 and even
 rejects being reinstalled. But /usr/local/lib/libpkg.so.0 is even there!
 Disabling the use of pkg with commenting out WITH_PKGNG=yes in
 /etc/make.conf leads to the above issues with mtree and install.
 Disabling this pkgng tag leads to reinstallation of missing packages,
 which are store in the pkgng sqlite format and not as ASCII anymore, but
 then I get
 /var/runld-elf.so.hints: No such file or directory

Is this a typo, or literal transcription?  (The missing / between
'run' and 'ld-elf.so.hints', that is.)

 Error: shared library iconv.3 does not exist.
 
 But most of the libs have never been touch! So what is the loader
 complaining about?
 
 Well, I'm floating like a dead man in the water and I'm glad that one
 box survided although suffering from the same symptomes.
 
 I tried to find rescue images and a rescue DVD of a snap shot server,
 but there is no way to crawl through the informations on the web pages
 towards a snapshot. All folders end up in 2011 and highly outdated
 (www.freebsd.org, I didn't look at mirrors since I thought the main
 server carries the most recent stuff). This isn't funny. No lead, no
 hint, even in the download section.
 

Yes, I have been complaining about this for a while now...

 If someone has some hints how to recompile the sources with an emergency
 booted disk, I highly appreciate some desater advice. Maybe the release
 of FreeBSD-10-CURRENT sources I compiled do have accidentally a nasty
 bug, so it would be nice to update the sources and have a complete
 recompilation done.
 

If you can get booted into a recovery medium, you can mount /usr/src and
/usr/obj from the hosed system, and should be able to
installworld/installkernel into the hosed system with DESTDIR set.

Glen

___
freebsd-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: Burning a DVD

2011-01-22 Thread Glen Barber
Hi,

On 1/22/11 1:47 PM, Jens Jahnke wrote:
 Hi,
 
 I tried to burn a dvd after doing setup according to the handbook.
 
 /boot/loader.conf:
 atapicam_load=YES
 hw.ata.atapi_dma=1
 
 /etc/devfs.conf:
 link  acd0cdrom
 link  acd0dvd
 perm  acd00660
 perm  pass0   0660
 perm  xpt00660
 
 ls -la /dev/acd0
 crw-rw  1 root  operator0,  98 22 Jan 19:26 /dev/acd0
 
 But when I try
 growisofs -dvd-compat -dry-run -Z /dev/acd0 /path/to/video
 I get:
 :-( unable to CAMGETPASSTHRU for /dev/acd0: Inappropriate ioctl for
 device
 

I believe you have to use /dev/cd0 when doing this.  You should have a
/dev/cd0 device after atapicam was loaded.

Regards,

-- 
Glen Barber
___
freebsd-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: Like it or not, Theo has a point... freebsd is shipping export-restricted software in the core

2010-10-07 Thread Glen Barber
On 10/7/10 6:47 PM, Robert Bonomi wrote:
 To: FreeBSD freebsd-questions@freebsd.org
 Date: Wed, 06 Oct 2010 14:46:34 -0700
 Subject: Re: Like it or not,
  Theo has a point... freebsd is shipping export-restricted software
  in the core


 I understand that entirely.  Which is why it would be reasonable (and
 downright ethical) to ensure that every FreeBSD integrator be made well
 aware of this restriction.

 It hadn't occurred to *me* for example to think that FreeBSD might be
 restricted. 
 
 We are not responsible for _your_ lack of understanding OF THE LAW.
 
 But then, you've been there before on that, and learned the 'hard way'
 didn't you.
 
 Pure and simple, _if_ there is software involved, there *MAY* be export-
 control issues.
 
 *ANYONE* in the business of exporting software _should_ be aware of that
 fact, and as a matter of basic 'due diligence' know about _their_ national
 laws on the matter, and how/where to find out what kinds of software are
 restricted, and on what basis.
 
 It is worth noting that since the original software author (Intel) put the
 it is possible an export license may be required under some circumstances
 notice on their software that anyone who takes said notice -off- had better
 have (1) a -solid- professionally-rendered legal opinion that no such license
 is required under _any_ circumstances, and (2) massive liability insuance
 in case they are wrong.
 
 The party that removes the warning notice of a possible risk *IS* liable
 to the party who 'relies' on such removal as evidence that no license is
 needed.
 
 If a cautionary notice was _never_ present, that is one thing, and one cannot
 draw conclusions from the omission.
 
 If a notice _was_ present, and someone removes it, that 'affirmtive acton'
 is a _very_ different thing.
 

Can this thread go away now?

-- 
Glen Barber
___
freebsd-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: PF Version

2010-10-04 Thread Glen Barber
On 10/4/10 10:03 PM, Jason C. Wells wrote:
 What version of PF shipped with 8.1-RELEASE?  Where can I find this for
 myself?  I looked in cvsweb but was unable to understand what I was
 reading.

Hi Jason,

The current version of PF is in line with OpenBSD 4.1, as stated in the
Handbook:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-pf.html

Best regards,

-- 
Glen Barber
___
freebsd-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: Not Sure Which Package has mssql_connect.

2010-09-29 Thread Glen Barber
Hi Martin,

On 9/29/10 10:21 AM, Martin McCormick wrote:
 I just upgraded a system from FreeBSD6.3 to 8.1 and only have 2
 loose ends so far.
 
   One is that I discovered some of my C code needs a
 little touching up to continue to work right and the other is
 that we have an application on our system that uses freetds and
 makes mysql queries and presently gives me the following error:
 
 Fatal error: Call to undefined function mssql_connect() in 
 
 Line number of script is given and that line reads:
 
 $numero= mssql_connect(sql , natreg1 , PASSWD );
 

Are you sure mssql_connect() isn't a typo?  The rest of your email
states mysql_connect().

   As soon as I find out what port or package contains
 mysql_connect, we should be back in business.
 
   I did install mysql50-client. It does not contain the
 mysql_connect routine so I deleted it. I installed the port
 called mysql-connector-odbc which looked like a good possibility
 but it also does not have the connect routine.
 
   I installed php5 to get the php interpreter so it is
 possible that I have the wrong php and another php has the
 mysql_connect routine so at this time, I am all ears.
 

Cheers,

-- 
Glen Barber
___
freebsd-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: GUI Suggested?

2010-09-23 Thread Glen Barber
On 9/23/10 8:31 PM, Chad Perrin wrote:
 On Thu, Sep 23, 2010 at 12:24:58PM -0500, Neal Hogan wrote:

 If you like xmonad, check out scrotwm. It's inspired by xmonad,
 lightweight, written in C by oBSD dev, actively maintained, and
 vim-like (among other things ;-).
 
 Why is written in C considered such a great benefit by the Scrotwm
 developer(s)?  Earlier today, I read this on the site:
 
 On the other hand xmonad has great defaults, key bindings and
 xinerama support but is crippled by not being written in C.
 
 What's up with that?  How does Haskell cripple xmonad?
 

My interpretation is that if you will be compiling software for a
UNIX-like system, you will probably have some variant of a C compiler
already available.  Read as just build it and go versus just build
its dependencies, then build it and go.

Cheers,

-- 
Glen Barber
___
freebsd-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: RSS to email?

2010-09-20 Thread Glen Barber
On 9/20/10 3:00 PM, Chris Maness wrote:
 Is there an app in ports that can fetch RSS feeds and send them as an email?
 

mail/rss2email?  :)

Cheers,

-- 
Glen Barber
___
freebsd-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: RSS to email?

2010-09-20 Thread Glen Barber
On 9/20/10 3:39 PM, Chip Camden wrote:
 Quoth Glen Barber on Monday, 20 September 2010:
 On 9/20/10 3:00 PM, Chris Maness wrote:
 Is there an app in ports that can fetch RSS feeds and send them as an email?


 mail/rss2email?  :)

 
 I like newspipe better, but it isn't in ports (that I could find).  It's
 just a python script, though.
 

That looks interesting.  Looks like it's not maintained anymore though.
 I may try that out anyway.

-- 
Glen Barber
___
freebsd-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: Regex Help For Procmail

2010-09-09 Thread Glen Barber
On 9/8/10 12:22 PM, Drew Tomlinson wrote:
[snip]
 # Deliver other email to folder
 :0
 * ^From:.*famous-smoke\.com
 ${HOME}/Maildir/.Shopping/Famous Smoke/Email/
 
 Do you see anything I'm missing?
 

Drew,

I'll give this one final shot.  Try this:

* ^From:(@.*famous-smoke\.com)
$HOME/Maildir/

Regards,

-- 
Glen Barber
___
freebsd-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: Regex Help For Procmail

2010-09-05 Thread Glen Barber
On 9/5/10 12:33 PM, Drew Tomlinson wrote:
 No, still not matching.  Basically, why doesn't this header:
 
 From: Famous Smoke Shop annou...@email.famous-smoke.com
 
 Match this procmail recipe:
 
 :0
 * ^From:.*famous-smoke.com$

Hmm.. I just noticed this - I don't think you need the trailing bracket ().

What about this:

* ^From:.*famous-smoke\.com$

Note that I also escaped the period before 'com'.

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


Re: proper way to setup laptop with apache22

2010-09-04 Thread Glen Barber
On 9/4/10 5:59 PM, Jim Pazarena wrote:
 I'm setting up a laptop with apache, just to play, basically.
 
 But apache doesn't like the fact that it can't resolve the
 lappy's hostname to an IP number and it will not load. The laptop
 gets its IP # via DHCP so it changes at various locations.
 
 I could use the localhost name  IP #, which should work.
 
 My laptop is named 'laptop' (laptop.mydomain.com)
 
 Is there a way to have the system utilize it's assigned IP #?
 Or do I have to change my apache config to localhost ?
 

Hi,

You can enter (assuming 'lappy' is the hostname):

127.0.0.1   localhost lappy

in /etc/hosts and set the ListenAddress directive in Apache to bind to
that IP.

Regards,

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


Re: proper way to setup laptop with apache22

2010-09-04 Thread Glen Barber
On 9/4/10 6:34 PM, Glen Barber wrote:
 On 9/4/10 5:59 PM, Jim Pazarena wrote:
 I'm setting up a laptop with apache, just to play, basically.

 But apache doesn't like the fact that it can't resolve the
 lappy's hostname to an IP number and it will not load. The laptop
 gets its IP # via DHCP so it changes at various locations.

 I could use the localhost name  IP #, which should work.

 My laptop is named 'laptop' (laptop.mydomain.com)

 Is there a way to have the system utilize it's assigned IP #?
 Or do I have to change my apache config to localhost ?

 
 Hi,
 
 You can enter (assuming 'lappy' is the hostname):
 
 127.0.0.1 localhost lappy
 
 in /etc/hosts and set the ListenAddress directive in Apache to bind to
 that IP.
 

Oops.  Listen 127.0.0.1:80

Too much SSH config-ing for me lately. :)

-- 
Glen Barber
___
freebsd-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: vmware-guestd6: error during make install

2010-09-03 Thread Glen Barber
Hi,

On 9/3/10 4:31 AM, Matthias Apitz wrote:
 I'm trying to install the port /usr/ports/emulators/vmware-guestd6 (even
 the freshest from FreeBSD server) in 8-CURRENT:

 Do you have a particular reason for using this port? Assuming you mean
 8.X,
 
 My FreeBSD is a CVS 8-CURRENT from May 2009 to be exactly, i.e. after
 8-RELEASE but before 8.1.
 

9-CURRENT was after 8.0-RELEASE.  Can you provide the output of 'uname -a'?

Regards,

-- 
Glen Barber
___
freebsd-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: Regex Help For Procmail

2010-09-03 Thread Glen Barber
Hi Drew,

On 9/3/10 2:45 PM, Drew Tomlinson wrote:
  I use procmail for mail delivery and I'm trying to concoct the right
 regex to match From: headers and deliver to a folder.  However mail is
 sent from various addresses so I want to match all that end with
 famous-smoke.com.  Here's an example of a header:
 
 From: Famous Smoke Shopannou...@email.famous-smoke.com
 
 Because I also occasionally order, I don't want to catch mail from
 anything that has the word Orders and Famous in the From field. 
 Thus here is my procmail recipe:
 
 # Deliver order info to inbox
 :0
 *^From:.[Ff]amous.*[Oo]rder.*famous-smoke.com$
 ${HOME}/Maildir/new/
 

Is this supposed to be match Famous OR Order?  This currently matches
Famous AND Order.

 # Deliver other email to folder
 :0
 *^From:.*famous-smoke.com$
 ${HOME}/Maildir/.Shopping/Famous Smoke/Email/
 

Going by your examples, you want to catch Famous OR Order and place
that in Maildir/new, and all other email from this address to go to
Maildir/.Shopping/...

Try this:

# catch famous or order
:0
* ^From:.*([Ff]amous|[Oo]rder).*famous-smoke.com$
$HOME/Maildir/new

# catch everything else from this sender
:0
* ^From:.*famous-smoke.com$
$HOME/Maildir/.Shopping/Famous Smoke/Email/


 According to my procmail log, the From: header does not match.  I would
 expect the example From: header above to match the second regex and be
 delivered to the specified folder. Where is my error?
 

If my assumption above is incorrect, could you paste a snippet from your
procmail log and point out what should be matching so we can have a
specific example?

Regards,

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


Re: Which specific version will be installed via pkg_add or via the port?

2010-09-02 Thread Glen Barber
On 9/2/10 10:43 AM, Lowell Gilbert wrote:
 Ed Flecko edfle...@gmail.com writes:
 
 When you're installing software via the pkg_add command or building
 from source, how do you what specific version you'll be installing
 BEFORE you actually install it?
 
 By reading the port's Makefile, in my case.
 Other common options are 
  make packagename in the port's directory
  http://www.freebsd.org/ports
  http://www.freshports.org/
 

Adding onto Lowell's response, you can see which version of the port was
packaged at release time by logging directly into the FTP server:

ftp://ftp.FreeBSD.org/pub/FreeBSD

and take a look at what is in the package directory.  For example:

ls ports/${ARCH}/packages-X.Y-release/${CATEGORY}/${PORT}

replacing ${ARCH}, ${CATEGORY}, and ${PORT} as appropriate, and
replacing X and Y with your current release version (for example, 8.1).

Regards,

-- 
Glen Barber
___
freebsd-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: Interactive Port

2010-08-31 Thread Glen Barber
Hi Rem,

On 8/31/10 3:34 PM, Rem P Roberti wrote:
 In attempting to install /usr/ports/print/dvips I got the error message
 that dvips is an interactive port, and I can't remember how to handle
 that. Could I please get a heads up there.  Thank you.
 

I suspect you have BATCH=yes in /etc/make.conf; if so, comment out that
line and run make(1) again.

Cheers,

-- 
Glen Barber
___
freebsd-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: Interactive Port

2010-08-31 Thread Glen Barber
On 8/31/10 3:39 PM, Rem P Roberti wrote:
 On 2010.08.31 12:34:21 -0700, Rem P Roberti wrote:
 In attempting to install /usr/ports/print/dvips I got the error message
 that dvips is an interactive port, and I can't remember how to handle
 that. Could I please get a heads up there.  Thank you.

 
 OK...I commented out the 'batch' entry in make.conf.  Now I get this
 error message:
 
 ===  dvips-5.76 conflicts with installed package(s): 
   teTeX-base-3.0_20
   teTeX-texmf-3.0_6
 
 The whole problem is that I am trying to get muttprint to work, and my
 understanding is that it is dependent on teTeX for its operation.  But
 when I tried to print I got an error message telling me that the print
 operation needs to see dvips.  So I'm not exactly sure what is going on
 here.

Looking at the Makefile for the port, all teTeX ports conflict with
dvips.  Deinstalling teTeX-* from your system will allow this port to
build/install; I'm not familiar enough with muttprint enough to be of
much more help with it though.

Cheers,

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


Re: how do i scp .dotfiles??

2010-08-27 Thread Glen Barber
On 8/27/10 1:07 PM, Gary Kline wrote:
 
 guys,
 
 this is the start of my master switchover.  how to i copy/scp,say,
 ~/.purpur to home/kline/.purple?  along with many hundreds of other
 dot files? scp doesn't do it.
 
 tx,
 

scp u...@foo:\.dotfile .dotfile

Regards,

-- 
Glen Barber
___
freebsd-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: Xorg Redux

2010-08-23 Thread Glen Barber
On 8/23/10 11:44 AM, Rem P Roberti wrote:
  Thanks to the list X11 is now running perfectly on my desktop; not so
 on my Thinkpad R51.  Here's what's happening.  I installed xorg on this
 new 8.1 installation, and have run the xorg configure program, copying
 the xorg.conf.new file to /etc/X11 as xorg.conf.  I have both hald and
 dbus enabled in /etc/rc.conf.  When I try to run the test on xorg.conf,
 or if I just run startx I momentarily see the initial screen, which is
 displayed when X11 loads, but then the screen goes blank, and that's all
 she wrote.  No keyboard, no mouse, totally frozen.  The only way out is
 a reboot via the power switch.
 
 As usual, help is very appreciated.
 

Try adding this to xorg.conf:

Section ServerFlags
option AutoAddDevices off
EndSection

Regards,

-- 
Glen Barber
___
freebsd-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: Xorg Redux

2010-08-23 Thread Glen Barber
On 8/23/10 11:53 AM, Glen Barber wrote:
 On 8/23/10 11:44 AM, Rem P Roberti wrote:
  Thanks to the list X11 is now running perfectly on my desktop; not so
 on my Thinkpad R51.  Here's what's happening.  I installed xorg on this
 new 8.1 installation, and have run the xorg configure program, copying
 the xorg.conf.new file to /etc/X11 as xorg.conf.  I have both hald and
 dbus enabled in /etc/rc.conf.  When I try to run the test on xorg.conf,
 or if I just run startx I momentarily see the initial screen, which is
 displayed when X11 loads, but then the screen goes blank, and that's all
 she wrote.  No keyboard, no mouse, totally frozen.  The only way out is
 a reboot via the power switch.

 As usual, help is very appreciated.

 
 Try adding this to xorg.conf:
 
   Section ServerFlags
   option AutoAddDevices off
   EndSection
 
 Regards,
 

I misread your 'hald and dbus enabled' as 'disabled' initially, so this
may or may not help.

Do you see a mouse pointer when the screen goes blank?  Also, can you
include Xorg.log.0 and xorg.conf?

-- 
Glen Barber
___
freebsd-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: Xorg Redux

2010-08-23 Thread Glen Barber
On 8/23/10 1:44 PM, Rem P Roberti wrote:
 
 The R51 should have Mobility Radeon 7500 or 9000 graphics.  Here's the
 xorg.conf from my T42 with a 7500:

 http://laptop.bsdgroup.de/freebsd/index.html?action=show_configconfig=xconfiglaptop=12947


 
 Here is the xorg.conf that was created by Xorg -configure:
 
 Section ServerLayout
 Identifier X.org Configured
 Screen  0  Screen0 0 0
 Screen  1  Screen1 RightOf Screen0

Hmmm.. What happens if you disable Screen 1 ?

-- 
Glen Barber
___
freebsd-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: Xorg Redux

2010-08-23 Thread Glen Barber
On 8/23/10 1:51 PM, Glen Barber wrote:
 On 8/23/10 1:44 PM, Rem P Roberti wrote:

 The R51 should have Mobility Radeon 7500 or 9000 graphics.  Here's the
 xorg.conf from my T42 with a 7500:

 http://laptop.bsdgroup.de/freebsd/index.html?action=show_configconfig=xconfiglaptop=12947



 Here is the xorg.conf that was created by Xorg -configure:
 
 Section ServerLayout
 Identifier X.org Configured
 Screen  0  Screen0 0 0
 Screen  1  Screen1 RightOf Screen0
 
 Hmmm.. What happens if you disable Screen 1 ?
 

I suspect your laptop has an external connector for a second monitor.
If so, can you plug a monitor in before trying what I suggested earlier?

-- 
Glen Barber
___
freebsd-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: 8.1 memstick installation

2010-08-23 Thread Glen Barber
On 8/23/10 1:34 PM, Friedemann Becker wrote:
 Hello,
 
 I have some questions about an installation on a memorystick.
 
 I have (a few weeks still) a very poor internet connection at home
 that's unusable for anything beyond email. I tried some hacking on
 musescore (yes I know that it can't work, but that's not my problem
 for now). Since I don't want to carry missing ports/packages/other
 stuff around on a stick everytime I miss something - which takes one
 day each - i would like to have a working system (not installation
 image) on usb-stick.
 Can i use fdimage with the memorystick installation image on windows,
 or any hacked versions of it?
 And how do turn this stick in a running system?
 Or is there any kind of live-stick-images out there, and if it is, how
 to move these on the stick (since windows is missing dd and nero
 doesn't like burning sticks :-) )
 

You can try UnxUtils, from Sourceforge:

http://sourceforge.net/projects/unxutils/

dd.exe is included. (I haven't tested making a bootable memory stick on
a Windows machine).

Regards (and let me know if it works),

-- 
Glen Barber
___
freebsd-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: Xorg Redux

2010-08-23 Thread Glen Barber
On 8/23/10 3:08 PM, Warren Block wrote:
 On Mon, 23 Aug 2010, Rem P Roberti wrote:
 
 Section Device
 Identifier  Card0
 Driver  intel
 VendorName  Intel Corporation
 BoardName   82852/855GM Integrated Graphics Device
 BusID   PCI:0:2:0
 EndSection

 Section Device
 Identifier  Card1
 Driver  intel
 VendorName  Intel Corporation
 BoardName   82852/855GM Integrated Graphics Device
 BusID   PCI:0:2:1
 EndSection
 
 Interesting, two device sections.  Some notebooks actually do have two
 video cards, although the R51 might not and this might just be misdetected.
 

I wonder what's listed in the BIOS.  Rem, can you check if there is more
than one display adapter listed there?

-- 
Glen Barber
___
freebsd-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: Xorg Redux

2010-08-23 Thread Glen Barber
On 8/23/10 5:51 PM, Rem P Roberti wrote:
  On 08/23/10 14:34, Warren Block wrote:
 On Mon, 23 Aug 2010, Rem P Roberti wrote:

 I forgot.  The version of PCBSD that I had installed on the Thinkpad
 was the legacy version.  The latest version, PCBSD 8.1, won't
 install.  The screen goes blank and the computer freezes, just as
 happens when trying to install X11 with FreeBSD 8.1

 No real idea what to try next, so let's try turning off acceleration
 in the Device section:

 Option NoAccel On
 
 Nope.  BTW, thanks for hanging in here.  I've never had trouble like
 this getting X11 to function.  Of course, I've never tried to install
 8.1 on a Thinkpad either.
 

Ok, one quick question.  When your screen goes blank, can you
[ctrl][alt][fN] to a different TTY, where N is anything between 2-7?
I'm curious about the machine's state when you start X.

-- 
Glen Barber
___
freebsd-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: Xorg Redux

2010-08-23 Thread Glen Barber
On 8/23/10 7:01 PM, Rem P Roberti wrote:
 Ok, one quick question.  When your screen goes blank, can you
 [ctrl][alt][fN] to a different TTY, where N is anything between 2-7?
 I'm curious about the machine's state when you start X.

 
 No, when the screen goes blank the whole computer freezes.  No mouse, no
 keyboard.  And I also noticed that the wireless indicator freezes in the
 on position.  Everything stops dead its tracks.
 

In your xorg.conf, switch 'Driver intel' to 'Driver vesa', and see
if it hangs with that.

In addition, it might be helpful to build debugging options into your
GENERIC kernel.  If you're willing to go down this path, I'll help you
get set up, but the gory details are here:

http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug.html

First, let's try the vesa thing.

-- 
Glen Barber
___
freebsd-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: Xorg Redux

2010-08-23 Thread Glen Barber
On 8/23/10 7:33 PM, Glen Barber wrote:
 In addition, it might be helpful to build debugging options into your
 GENERIC kernel.  If you're willing to go down this path, I'll help you
 get set up,

I should mention, though - I used to have issues with the nVidia driver
putting my machine in an unusable state, similar to what you are
describing.  Though the more recent versions of that driver seem to have
mostly fixed my issues, it still gives intermittent problems.  As a
result, I have since been using the Xorg nv driver.

What made the problem worse is that I couldn't get any debugging
information, no matter what debugging options I had built into the
kernel.  Just mentioning this in case you _are_ willing to do this.  In
my case, I wasn't able to grab anything useful.

(By the way, does anything except 'minfree' exist in /var/crash ?)

-- 
Glen Barber
___
freebsd-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: Xorg Redux

2010-08-23 Thread Glen Barber
On 8/23/10 7:53 PM, Rem P Roberti wrote:
 First, let's try the vesa thing.

 
 Eureka!  I changed Driver to vesa in both of the Device sections and
 X now loads.  I doubt that vesa is the ideal entry in the
 configuration, but at this point I'm not going to complain.
 

Great.  It looks like the intel driver is the problem then.  vesa will
work, but I'd expect it will perform suboptimal, comparatively.  Are you
interested in helping find out what the real problem is?

-- 
Glen Barber
___
freebsd-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: [off-topic] Server-side IRC channel logging? (not statistics)

2010-08-22 Thread Glen Barber
On 8/22/10 3:19 AM, jhell wrote:
 On 08/19/2010 06:05, Glen Barber wrote:
 On 8/19/10 4:18 AM, Joshua Isom wrote:
 So you can set up the server but you can't install a client on the
 server machine?

 I can - I would prefer not to.

 
 Compile a static version of ircII and run it from the object directory
 without installing it.
 

Hi,

An off-list reply suggested I look at irc/eggdrop, which is doing what I
want.  Thanks for the suggestion.

Regards,

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


Re: ZFS jails

2010-08-22 Thread Glen Barber
On 8/21/10 11:57 PM, Joe wrote:
 I am thinking about running zfs on the host for everything except
 booting the system. I plan to create a 1gb zfs area which I want to use
 for a jail directory tree.
 
 Is this possible?

Yep.

   # zfs create -o quota=1G tank/usr/jail

Regards,

-- 
Glen Barber
___
freebsd-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: Thinkpad Wireless

2010-08-22 Thread Glen Barber
On 8/22/10 8:12 PM, Rem P Roberti wrote:
  I just acquired an IBM Thinkpad R51 on which I have installed 8.1
 Release.  I have scoured the handbook and tried a number of different
 combinations in /etc/rc.conf and /boot/loader.conf to get the wireless
 working, but so far with no luck.  Can anyone give me a heads up on
 getting wireless operating on this laptop?
 

Hi Rem,

First off, do you know what wireless chipset you have?  You can find out
using:

pciconf -lv

though without knowing what manufacturer, I can't quite say what to look
for.  As far as the settings, have a look at this section of the handbook:


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireless.html

particularly where you configure wlan0 as the interface in rc.conf -
pre-8.0-RELEASE, the convention was to use:

ifconfig_ath0=DHCP

where iwn0 was an Atheros-based chipset.  The new way is to set the
following in rc.conf:

wlans_ath0=wlan0
ifconfig_wlan0=DHCP


Maybe you can put the output of the pciconf command I referenced earlier
on pastebin - I think that might help us get you in the right direction
faster.

Regards,

-- 
Glen Barber
___
freebsd-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: Thinkpad Wireless

2010-08-22 Thread Glen Barber
On 8/22/10 10:47 PM, Glen Barber wrote:
 particularly where you configure wlan0 as the interface in rc.conf -
 pre-8.0-RELEASE, the convention was to use:
 
   ifconfig_ath0=DHCP
 
 where iwn0 was an Atheros-based chipset.  The new way is to set the
 following in rc.conf:

Of course, iwn0 is a typo... :)

-- 
Glen Barber
___
freebsd-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: Thinkpad Wireless

2010-08-22 Thread Glen Barber
On 8/22/10 11:00 PM, Rem P Roberti wrote:
 
 Thanks for your help so far.  Yes, I have looked at the handbook section
 on wireless, and as a matter of fact I installed 8.1 on an ancient
 Compaq Presario (6GB HD!) and was able to configure the Atheros wireless
 pci card so that the computer works quite well.  OK...the info I gleaned
 from pciconf -lv shows:
 
 device= 'driverIntel PRO/Wirelss 220BG  (MPC13B'
 

Perfect.  Is 220BG a typo?  I see that iwi(4) supports 2200BG/2225BG
and so on.  If it _is_ a typo, try this:

echo 'legal.intel_iwi.license_ack=1'  /boot/loader.conf
echo 'if_iwi_load=YES'  /boot/loader.conf
echo 'iwi_bss_load=YES'  /boot/loader.conf
echo 'iwi_ibss_load=YES'  /boot/loader.conf
echo 'iwi_monitor_load=YES'  /boot/loader.conf

(Note, the differentiation between the single- and double-quotes.)

After a reboot, you should see iwi0 in ifconfig(8) output.  (I'm not
aware of a way to acknowledge the license agreement without a reboot.)
Then you should be able to configure your wlan0 device similarly to your
Presario.

Hope this helps.

Regards,

-- 
Glen Barber
___
freebsd-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: Thinkpad Wireless

2010-08-22 Thread Glen Barber
On 8/22/10 11:21 PM, Rob Byrnes wrote:

[snip]


echo 'legal.intel_iwi.license_ack=1'  /boot/loader.conf
echo 'if_iwi_load=YES'  /boot/loader.conf
echo 'iwi_bss_load=YES'  /boot/loader.conf
echo 'iwi_ibss_load=YES'  /boot/loader.conf
echo 'iwi_monitor_load=YES'  /boot/loader.conf


[snip]

 
 For a fresh install of 8.1 you only need:
 
 if_iwi_load=YES
 legal.intel_iwi.license_ack=1
 

Thanks - I wasn't aware of this.

Regards,

-- 
Glen Barber
___
freebsd-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: Thinkpad Wireless

2010-08-22 Thread Glen Barber
On 8/22/10 11:28 PM, Rem P Roberti wrote:
 
 Yep, it was a typo.  OK...iwi0 is now showing up in the ifconfig
 output.  I shall make the (hopefully) appropriate entries in
 /etc/rc.conf and see what happens.
 

Good to hear.  Good luck!

Regards,

-- 
Glen Barber
___
freebsd-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: Thinkpad Wireless

2010-08-22 Thread Glen Barber
On 8/22/10 11:51 PM, Rem P Roberti wrote:
 OK...here's what is happening now.  I have put these entries into
 /etc/rc.conf:
 
 wlans_iwi0=wlan0
 ifconfig_wlan0=WPA DHCP
 
 when I booted up I could see from the wireless beacon indicator that
 something was happening.  But I kept getting this message:
 
 iwi0: need multicast update callback
 

I used to see this on my Toshiba laptop I no longer use (using iwn(4)).
 It is seemingly harmless.

 And when I tried to do a ping I got the dreaded...ping: cannot resolve
 yahoo.com: Host name lookup failure...and then all of sudden it started
 working and I was able to successfully ping, and connect.

In what timeframe from the boot?  I suspect WPA was still in the
authentication process.  My Toshiba's wireless card would take a few
seconds (roughly 10) before authenticating.

 Is this voodoo :-) ?
 

Probably. :)

-- 
Glen Barber
___
freebsd-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: Thinkpad Wireless

2010-08-22 Thread Glen Barber
On 8/23/10 12:11 AM, Rem P Roberti wrote:
 
 In what timeframe from the boot?  I suspect WPA was still in the
 authentication process.  My Toshiba's wireless card would take a few
 seconds (roughly 10) before authenticating.

 
 You are no doubt right...WPA was probably still in the authentication
 process.  Clearly, everything is working now, and I am doing a
 portupgrade as I write.  Now, if I can only get msmtp to work with
 Comcast I'd be done.  For a while.  One thing at a time.
 
 Thank you for your help.
 

Glad I could help.  Enjoy!

-- 
Glen Barber
___
freebsd-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: Xorg Problems

2010-08-21 Thread Glen Barber
On 8/21/10 7:12 PM, Warren Block wrote:
 I changed the driver from vesa to nVidia but the nVidia driver could not
 be found and X exited.  After restoring vesa I ran the test on xorg.conf
 -retro and it worked ok.  However, startx still produced only a black
 screen.
 
 nVidia is a long story.  There are binary drivers provided by nVidia,
 and there's a limited open-source driver provided by xorg.  Someone else
 is going to have to provide detail.
 
 For now, vesa at 1024x768 should be fine.

Just curious - why are you using vesa instead of nv (not nVidia)?

Regards,

-- 
Glen Barber
___
freebsd-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: [off-topic] Server-side IRC channel logging? (not statistics)

2010-08-19 Thread Glen Barber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/19/10 4:18 AM, Joshua Isom wrote:
 So you can set up the server but you can't install a client on the
 server machine?  

I can - I would prefer not to.

- -- 
Glen Barber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Darwin)

iQEcBAEBAgAGBQJMbQIFAAoJEFJPDDeguUajK48H/jGNG5pkXGKuPsnEczDzv/PR
G00tZHqWPgRWCRN2zt4SOMvrhAenvfDMPDSCFiVgQ5ZrV2ziQgwkfB0Yntn12B6R
OlOvlWyzzjLLDClOV98Cal284re+7bB9wt3V+zpr0JZaoNsDVgkANCMHA7/oXnhE
Ul+/2AwQG9U1vhyeDdtvCUgLUIa8xGABJi9sv5BHCON80qfzOgN1W80i7Srf53mM
k4vaIKaxOtZMum8O5AUzHKzO/wctXQMx0zDes71PYSS4oIWDpCt8d/1tQVDIjEXv
D0DNqQy8TzL9uVF4UMSEodcvQQvs4Z/Bm4Exr8CO468V+Lzbt1QupZyf5UZmbVk=
=1SuB
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Why network doesn't get initialized on system startup?

2010-08-19 Thread Glen Barber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/19/10 2:00 AM, Yuri wrote:
 On another rc.conf has:
 wlans_ndis0=wlan0
 ifconfig_wlan0=ssid wifi-net-id weptxkey 1 deftxkey 1 wepmode on wepkey
 0x1234567890 DHCP
 and this one doesn't get initialized at startup.

Are you loading the ndis(4) kernel module at boot via loader.conf?

- -- 
Glen Barber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Darwin)

iQEcBAEBAgAGBQJMbQL5AAoJEFJPDDeguUajLbMH/Atp8JcOOsKcwGGs2rujobIC
xjZuOQGAtAr7pisuFiDvqiax4zyDLg8xiiSFQxYKjGNJIxdp2ltl96/rvBakrhfp
gKegUBO6RG+QQIHLE8IDkcxzx+xLxOYBkVIzhlofDlPtgZqc9EzKq7ipbnG5mW4H
TtkpuZtX+AWWyBYf3DxNgndfHYETTKXDYDvt1ELyFnAZta0e7mYH4FkUb0/j/4sp
hpk408HwUR5VCFNL6OP9NW9aAemxLy5KHWJ8NSl/HgNktEcyIYCHAwUno1/QPHFi
EHXaaqGOBr+EPyBIRyDM533t1HH9ztDoDnLrblBYre4LMs+lO4X7zPThAgAs4iM=
=oL1E
-END PGP SIGNATURE-
___
freebsd-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: can't ping localhost

2010-08-19 Thread Glen Barber
On 8/19/10 10:21 AM, Tim Kellers wrote:
 When I ping localhost:
 # ping localhost
 PING localhost (127.0.0.1): 56 data bytes
 ping: sendto: Can't assign requested address

Hi,

Is the loopback interface (lo0) up?

Regards,

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


[OT] AllowEmptyInput is bad (was: Re: Xorg Problems)

2010-08-19 Thread Glen Barber
On 8/19/10 1:59 PM, Warren Block wrote:
 On Thu, 19 Aug 2010, Ondrej Majerech wrote:
 On 08/19/2010 15:02, Warren Block wrote:

 Don't need it in FreeBSD, either. In fact, using it in FreeBSD often
 causes hesitant input characters that only show up when you move the
 mouse. Or a draggy mouse. Or both.
 
 Finally got motivated to put together a little writeup on this:
 
 http://www.wonkity.com/~wblock/docs/html/aei.html

Can we have an RSS feed for that last section? :)

-- 
Glen Barber
___
freebsd-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: fix bad directory on FAT32 usb disk

2010-08-18 Thread Glen Barber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/18/10 9:55 AM, Fbsd8 wrote:
 I have a fat32 usb disk that gives this error when mounting with
 mount_msdosfs /dev/da0s1bad fat32 file system
 
 Is there some way to clean or auto fix this fat32 file system so it will
 mount?

Hi,

You can try fsck_msdosfs(8).  Does it mount in other OSes?

Regards,

- -- 
Glen Barber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Darwin)

iQEcBAEBAgAGBQJMa+gfAAoJEFJPDDeguUajcAEIAI75vNn0PSNGUqpUtxh75FEm
R1jEkoI0R4/u2l4bjQB4FkCtxPg8cpnMINdWT7agKyUb2sqqmTj/sKyx6xdzkQBA
SH7liNDXBCr6TgPMq58p+AkM9wHZzBksM4a5YYGx/OG5SqtQyjeEYnKW+iJ9g/2p
QbIYO3j9qOWw2hVPUt1gqTHKMMaAGi+Vr+n7sawvwxpxaTeCRQdnvlPp18B+5SHP
lvtCdhYk7TdMHGoyQvyZSuG0WKzJyGKX5Czhwap2tQlLlGf9TAyP059iPUqraB08
dCa7x4CKwkagt38bXwGR7NRk0p1L7dp5H6/57J1+Nq+a5lVwS0BaXk7/lc5UyFQ=
=bL7j
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


[off-topic] Server-side IRC channel logging? (not statistics)

2010-08-18 Thread Glen Barber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I recently set up an IRC server (irc/ircd-hybrid), which I don't see
obvious settings for finely tuned channel logging.  What I would like to
do is log individual channels without depending on a connected client.

In all my searching I found software that either:

1.) depends on a 100% connected client, but provides concise logging of
channel activity;

2.) logs statistics, rather than the useful information I am trying to
obtain such as, who pastes the most links, who 'smiley's the most, etc.

My interest is in the useful information in the channel, not statistics;
ultimately, I want to have the channel conversations archived.

I'd like to do this on the server itself.  For example, in the event I
have to reboot my machine or the disk dies, or whatever bad event, I
don't want to concern myself with missed data, corrupt logs, or a
disconnected client, so I would like this to run unprivileged and
without an interactive shell.

If anyone has any suggestions, I'd be happy to hear them before I go
reinventing the wheel.

Thanks, best regards, and sorry for the off-topic post.

- -- 
Glen Barber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Darwin)

iQEcBAEBAgAGBQJMbI4rAAoJEFJPDDeguUajmSgIAJNc3fPkv3TQ97c+CPVPUjVx
FrdM17i58WubEM6g2PSpc7oEjqyVilmxzVlQSPDrGK3DUeXRQu0qTb6Qi/foxi2g
Mx0q/jkJQMNOqICAAU+VlXsXDPe8C/57yM5RVEY/XRTNyDmseMC9Zpt40+9YDYFe
aNqXy4Ydgk3lnTxT7TWI1ivzr9ShUD61s6Fe+842Ryfh2kiFr5srOOE89DmH9QWb
jhUaan/nKt34VpfoKWq2aIRkven+BRMjsO3eDmjyRcrx5f5jnXGKAyYmCZzovNK4
CDqGA9e+yT6juNeNh1q67p2seid5+tYKjw19QWLrWzfV2jDdKbwjqwoxkGAVVdI=
=RJoU
-END PGP SIGNATURE-
___
freebsd-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: rmconfig from all ports tree

2010-07-22 Thread Glen Barber

On 7/22/10 1:15 PM, Paul Schmehl wrote:

--On Thursday, July 22, 2010 02:21:59 +0200 claudiu vasadi
claudiu.vas...@gmail.com wrote:


Hi Greg,

Thanks for the rmconfig-recursive. I did not know about it.


Nor did I. And it begs the question - is there a way to find out what
all the make targets are in /usr/ports? Is this documented anywhere?



Hi,

This is documented in ports/Mk/bsd.port.mk - look for the string 
Default targets and their behaviors:.


Regards,

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


Re: How do you automatically start Apache, Bind, etc. in a jail?

2010-07-22 Thread Glen Barber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 7/22/10 6:20 PM, Ed Flecko wrote:
 Hi folks,
 I have Apache installed in a qjail named webserver (I.P. address
 192.168.225.130) using the pkg_add -r apache22 command, but how do
 you get Apache (or Bind, etc.) to automatically start upon boot?
 
 I got the jail to start by adding qjail_enable=YES to hosts'
 /etc/rc.conf and I also added apache22_enable=YES, but that doesn't
 seem to work.
 

You would need to add apache22_enable=YES to the jail's rc.conf, not
the host's.

 Suggestions?
 
 
 
 Also, when I console into the jail, and issue an apachectl start
 command, I get the following error:
 
 httpd: apr_sockaddr_info_get() failed for webserver
 httpd: Could not reliably determine the server's fully qualified
 domain name, using 127.0.0.1 for ServerName
 

Edit httpd.conf, adding a ServerName directive.  (An example exists in
the file, so you can model after that.)  If you don't have a FQDN, use
the jail's hostname, and add that hostname to the jail's /etc/hosts.

 I figured out if I add the IP address of the jail as well as
 webserver to the jails' hosts file, I can start Apache, but I still
 get this error:
 
 httpd: Could not reliably determine the server's fully qualified
 domain name, using 192.168.225.130 for ServerName
 
 What am I doing wrong?
 
 
 
 Finally, rather than installing Apache using the typical pkg_add -r
 apache22 command, is there a way to install Apache using the
 ./configure script? In MY case, I know the EXACT parameters I want to
 pass to the ./configure script (like enabling SSL, etc), but I don't
 know how to do this in a jail.
 

You can build from source if you like, but ports are easier, IMHO.

Have a look here for more information on the ports tree:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html

From the jail console, I tried:
 
 cd /usr/ports/www/apache22
 ./configure --enable-ssl...etc., etc., etc.???
 

'make config' to show the configuration screen; 'make install' to
compile and install.

 but this doesn't work.
 
 Do I need to do the opposite, i.e., from the HOST console:
 
 ./configure --prefix=/PathToJail --enable-ssl...etc., etc., etc???
 

Nope; have a look at the link I pasted above.  I think you might like
the ports tree rather than compiling from source, since all of the hard
work has already been taken care of for you.

Regards,

- -- 
Glen Barber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxIyKEACgkQeHhHJjlriYVw0QCeMvja3z3manD9lHgBk7VTfocI
iCoAn1F4ycv7P+dPv6GhWpghEIOgOxRm
=wLii
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How do you automatically start Apache, Bind, etc. in a jail?

2010-07-22 Thread Glen Barber

On 7/22/10 6:51 PM, Ed Flecko wrote:

Thanks Glen.

:-)

I'm not clear how I get the 'make config' to show the configuration
screen or the 'make install' to compile and install???



Depending on what you've previously done in the www/apache22 directory, 
a configuration may already exist.  'make showconfig' will tell you.  If 
so, you can run 'make rmconfig' in the apache22 port directory, and a 
subsequent 'make config' will display the configuration screen. 
(Actually, I believe www/apache22 does this automatically if a 
configuration doesn't already exist.)



That might allow me to install Apache (with a limited number of
modules) like I want, but I don't understand what you're suggesting.



The config screen will allow you to select/deselect various build-time 
options, such as DAV, AUTH_BASIC, etc.





Also, do you know for sure that compiling from source and specifying
the install target (i.e., ./configure --prefix=/PathToJail
--enable-ssl...etc., etc., etc???) won't work?



It will work, sure, but make(1) and the port Makefile does this for you.


Thank you again!



You're welcome.

Regards,

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


Re: How do you automatically start Apache, Bind, etc. in a jail?

2010-07-22 Thread Glen Barber

On 7/22/10 7:07 PM, Glen Barber wrote:

Also, do you know for sure that compiling from source and specifying
the install target (i.e., ./configure --prefix=/PathToJail
--enable-ssl...etc., etc., etc???) won't work?



It will work, sure, but make(1) and the port Makefile does this for you.



To be clear, you'd need the apache22 source tarball for that to work. 
That isn't in the port directory (/usr/ports/www/apache22).  make(1) in 
the port directory fetches the source tarball when the build starts.\


Regards,

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


Re: How do you automatically start Apache, Bind, etc. in a jail?

2010-07-22 Thread Glen Barber

On 7/22/10 7:19 PM, Ed Flecko wrote:

Oh, O.K., so I CAN just download the tarball (from
http://httpd.apache.org/), unpack and install it (just like any other
source install) and specify the jail as the target or did I
misinterpret you?



Do it from _inside_ the jail, not from the host.

Regards,

--
Glen Barber
___
freebsd-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: Recommend ezjail.conf settings?

2010-07-20 Thread Glen Barber

Hi Ed,

On 7/20/10 12:54 PM, Ed Flecko wrote:

Hi folks,
I'm looking at the ezjail.conf file, and it seems like SOME of the
settings might be mandatory, but they're all commented out.

For example, the:

# ezjail_mount_enable=YES


Uncommenting and setting to NO would disable mounting the /basejail, 
read-only bits.



# ezjail_devfs_enable=YES
# ezjail_devfs_ruleset=devfsrules_jail


If you have specific devfs needs for the jail, you can enable a special 
rule.  Have a look at devfs(8) and devfs.conf(5) if you need to modify 
this, though you probably won't need to.



# ezjail_procfs_enable=YES


Disabling this will disable procfs(5).  I recommend this one if you 
don't need procfs(5).



# ezjail_fdescfs_enable=YES



Similarly to procfs above.  I haven't found any reason to disable this.


should be uncommented because they're Default options for newly
created jails, right?



Correct, they are enabled by default, and show the default value.


Are there any of the other settings I might want to consider enabling?



Depends on what your usage needs are. :)

Regards,

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


Re: KDE won't start

2010-07-19 Thread Glen Barber

On 7/19/10 2:15 PM, Caleb Stein wrote:

Whenever I try to start KDE4, I get this output:


# /usr/local/kde4/etc/rc.d/kdm4 start
Startink kdm4.
Updating KDM configuration
Information: reading pre-existing kdmrc
/usr/local/kde4/share/config/kdm/kdmrc (config version 2.4)
# info: [drm] Setting GART location based on new memory map
info: [drm] Loading RV710 Microcode
info: [drm] Resetting GPU
info: [drm] writeback test succeeded in 2 usecs
drm0: [ITHREAD]
Jul 19 03:59:47 FreeBSD kdm-bin: :0[28893]: Received unknown or
unexpected command -2 from greeter
Jul 19 03:59:47 FreeBSD kdm-bin: :0[28893]: Abnormal termination of
greeter for display :0, code 125, signal 0
info: [drm] Resetting GPU


The same thing happens when I try to run Gnome or Xfce. It all started
when I accidentally deleted graphics/jpeg and graphics/png. I tried
reinstalling them, but it didn't work. I have done portupgrade -a three
times, but none of them helped. How can I fix this issue without having
to reinstall?


Hello,

If you reinstalled a newer version of jpeg and png, you will need to 
rebuild all ports that linked against them.  Take a look at 
ports/UPDATING for portupgrade syntax.


Regards,

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


Re: KDE won't start

2010-07-19 Thread Glen Barber

On 7/19/10 2:21 PM, Glen Barber wrote:

If you reinstalled a newer version of jpeg and png, you will need to
rebuild all ports that linked against them. Take a look at
ports/UPDATING for portupgrade syntax.



Sorry, should have included the entry number - 20100328.

Regards,

--
Glen Barber
___
freebsd-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: bugzilla

2010-07-15 Thread Glen Barber

On 7/15/10 5:07 PM, alexus wrote:

Software error:

The ./data/params file does not exist. You probably need to run
checksetup.pl. at Bugzilla/Config.pm line 337.
Compilation failed in require at /var/www/html/bugzilla/index.cgi line 34.
BEGIN failed--compilation aborted at /var/www/html/bugzilla/index.cgi line 34.

For help, please send mail to the webmaster (r...@localhost), giving
this error message and the time and date of the error.

[r...@wcmisdlin02 bugzilla]# ./checksetup.pl
* This is Bugzilla 3.6.1 on perl 5.8.8
* Running on Linux 2.6.18-194.8.1.el5xen #1 SMP Thu Jul 1 19:41:05 EDT 2010

Checking perl modules...
Checking for  CGI.pm (v3.21)   ok: found v3.49
Checking for  Digest-SHA (any) ok: found v5.48
Checking forTimeDate (v2.21)   ok: found v2.22
Checking forDateTime (v0.28)   ok: found v0.60
Checking for   DateTime-TimeZone (v0.71)   ok: found v1.19
Checking for DBI (v1.41)   ok: found v1.609
Checking forTemplate-Toolkit (v2.22)   ok: found v2.22
Checking for  Email-Send (v2.00)   ok: found v2.198
Checking for  Email-MIME (v1.861)  ok: found v1.903
Checking for Email-MIME-Encodings (v1.313)  ok: found v1.313
Checking for Email-MIME-Modifier (v1.442)  ok: found v1.903
Checking for URI (any) ok: found v1.35

Checking available perl DBD modules...
Checking for  DBD-Pg (v1.45)not found
Checking for   DBD-mysql (v4.00)   ok: found v4.013
Checking for  DBD-Oracle (v1.19)not found

The following Perl modules are optional:
Checking for  GD (v1.20)   ok: found v2.45
Checking for   Chart (v2.1)ok: found v2.4.1
Checking for Template-GD (any) ok: found v1.56
Checking for  GDTextUtil (any) ok: found v0.86
Checking for GDGraph (any) ok: found v1.44
Checking forXML-Twig (any) ok: found v3.35
Checking for  MIME-tools (v5.406)  ok: found v5.428
Checking for libwww-perl (any) ok: found v2.033
Checking for PatchReader (v0.9.4)  ok: found v0.9.5
Checking for   perl-ldap (any) ok: found v0.33
Checking for Authen-SASL (any) ok: found v2.15
Checking for  RadiusPerl (any) ok: found v0.15
Checking for   SOAP-Lite (v0.710.06) ok: found v0.712
Checking forJSON-RPC (any) ok: found v0.96
Checking for  Test-Taint (any) ok: found v1.04
Checking for HTML-Parser (v3.40)   ok: found v3.64
Checking for   HTML-Scrubber (any) ok: found v0.08
Checking for Email-MIME-Attachment-Stripper (any) ok: found v1.316
Checking for Email-Reply (any) ok: found v1.202
Checking for TheSchwartz (any) ok: found v1.10
Checking for  Daemon-Generic (any) ok: found v0.71
Checking formod_perl (v1.999022) ok: found v2.04
Reading ./localconfig...

OPTIONAL NOTE: If you want to be able to use the 'difference between two
patches' feature of Bugzilla (which requires the PatchReader Perl module
as well), you should install patchutils from:

 http://cyberelk.net/tim/patchutils/

Checking for   DBD-mysql (v4.00)   ok: found v4.013
Checking for   MySQL (v4.1.2)  ok: found v5.0.77-log

WARNING: You need to set the max_allowed_packet parameter in your MySQL
configuration to at least 3276750. Currently it is set to 3275776.
You can set this parameter in the [mysqld] section of your MySQL
configuration file.

InnoDB is disabled in your MySQL installation.
Bugzilla requires InnoDB to be enabled.
Please enable it and then re-run checksetup.pl.



My bet would be this last message.

Regards,

--
Glen Barber
___
freebsd-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: Get server's internal temperature from ACPI ?

2010-07-08 Thread Glen Barber

On 7/7/10 12:38 PM, Chip Camden wrote:

Quoth Frank Bonnet on Wednesday, 07 July 2010:

Hello

Is there an utility to get the internal temperature from a HP Proliant
server with ACPI ???



sysctl -n hw.acpi.thermal.tz0.temperature

I'm not sure if the Proliant has an Intel Core, but if it does then you
can get per-cpu temperature info:

kld coretemp


kldload, of course. :-)


for i in 0 1 2 3; sysctl -n dev.cpu.$i.temperature



amdtemp(4) exists for K8, K10, and K11 AMD chips as well.

Regards,

--
Glen Barber
___
freebsd-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: pkg_add

2010-07-01 Thread Glen Barber

Hi,

On 6/30/10 8:00 PM, Mr. Darren wrote:

Though this will not be the focus of my question.  Lots of ports are being 
created for FreeBSD and none submitted.  I don't know why.

My problem arises when trying to install one of these which is put together 
quite well.  pkg_add -r http://site/something.tbz, or pkg_add something.tbz 
doesn't work for the dependencies.  So how do I tell pkg_add to fetch the first 
pkg from one site and the rest from the main sites?  It is available in source 
but the system is void of pkg's at the moment and with the 1ghz processor and 
512mb ram could take quite a while.  And the funny part is it will work 
perfectly if I just place it in ports/multimedia.



Assuming the site structure is the same as the FreeBSD ftp structure, as 
it would be if the remote site is using Tinderbox, you can set the 
PACKAGESITE and PKG_PATH environment variables.


If using csh:
setenv PACKAGESITE http://site/All/
setenv PKG_PATH http://site/Latest/

If using sh/bash:
export PACKAGESITE=http://site/All/;
export PKG_PATH=http://site/Latest/;

Regards,

--
Glen Barber
___
freebsd-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: Reinstalling a package

2010-07-01 Thread Glen Barber

Hi,

On 7/1/10 5:28 AM, Alejandro Imass wrote:

On Thu, Jul 1, 2010 at 2:10 AM, Chris Stankevitz
chrisstankev...@yahoo.com  wrote:


http://lists.freebsd.org/pipermail/freebsd-gnome/2010-June/024394.html

In the above post, a FreeBSD GNOME team member recommends rebuilding and 
reinstalling sysutils/polkit, sysutils/policykit, and sysutils/consolekit.

Q: How do I rebuild and reinstall these applications when they were installed 
originally via pkg_add -r gnome2?

A: pkg_add -r polkit [fails with the message already installed]


I have the same problem and asked a while back but got no answer. My
Gnome is partially broken because of a stupid libpng and libjpg
upgrade and I would like to re-install the whole thing from binary.



If you are going to rebuild libpng and libjpg, you will need to rebuild 
all ports that depend on those libraries, not just the gnome-specific ports.


You might want to have a look at ports-mgmt/portmaster.  Also have a 
look at /usr/ports/UPDATING, entry 20100328 for libpng.


Regards,

--
Glen Barber
___
freebsd-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: Upgrading without building and without freebsd-update

2010-07-01 Thread Glen Barber

Hi,

On 7/1/10 6:48 AM, Anders Andersson wrote:

2010/7/1 Christer Solskogenchrister.solsko...@gmail.com


I've got two FreeBSD machines on two different networks(and two
different locations). One of them is as fast machine (i7-920) while
the other one is a Intel Atom. How can I build on the fast machine and
use those binaries on the slow one, without mounting /usr/obj using
nfs? first I was thinking about creating a dump file on the fast
machine and extract that on the slow, but that wont work on a
filesystem that is already populated. Would a tarfile work? (how about
/libexec/ld-elf.so.1?)

--
chs,



Hello!

I can provide some help at least. I found the page
http://onlamp.com/pub/a/bsd/2003/08/07/FreeBSD_Basics.html which says that
make package creates tgz packages which you can copy over to the slow
machine and use pkg_add to install.



This works for ports.  The OP is asking about the base system.


Commands that might be intresting to read about:
make fetch
portinstall

As I am quiet new to this as well, lets hope someone else can explain how to
extract all packages easily (make package seems to work on one single
package, portinstall has an option for making packages as it works through
the build process whihc can be handy to create all dependencies in one go)
and what to think about when building for different architectures (if that
is necessary).



You could use 'make package-recursive', or have a look at 
ports-mgmt/tinderbox, which does this by default.


Regards,

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


sshd logging with private key authentication

2010-07-01 Thread Glen Barber

Hi,

I've been seeing quite a bit of ssh bruteforce attacks which appear to 
be dictionary-based.  That's fine; I have proper measures in place, such 
as key-only access, bruteforce tables for pf(4), and so on.


What caught my interest is if I attempt to log in from a machine where I 
do not have my key, I see nothing logged about a failed publickey 
attempt.  If I attempt with an invalid username, as expected, I see 
'Invalid user foo from ${IP}.'


Is this to be expected?  If so, I am curious why.  Though I realize an 
attacker may not be able to see that a user is valid or invalid, might 
we want to know that a valid username is being used in an attack? 
(Unless, of course, the valid username is 'john'...)


Regards,

--
Glen Barber
___
freebsd-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: Convert all packages to ports

2010-07-01 Thread Glen Barber

Hi, Chris

On 7/1/10 5:23 PM, Chris Stankevitz wrote:

Hello,

I setup my system using packages.  I have 675 packages installed and 0 
ports installed.

Q: Is there a simple way to replace each package with the locally compiled 
port?

Ideally the procedure will not ask me any questions and will leave me with 0 installed 
packages and 675 installed ports.



You might have a look at ports-mgmt/portmaster.  It will prompt you for 
configuration settings before proceeding with building your ports.


Regards,

--
Glen Barber
___
freebsd-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: Convert all packages to ports

2010-07-01 Thread Glen Barber

On 7/1/10 5:31 PM, Glen Barber wrote:

Hi, Chris

On 7/1/10 5:23 PM, Chris Stankevitz wrote:

Hello,

I setup my system using packages. I have 675 packages installed
and 0 ports installed.

Q: Is there a simple way to replace each package with the locally
compiled port?

Ideally the procedure will not ask me any questions and will leave me
with 0 installed packages and 675 installed ports.



You might have a look at ports-mgmt/portmaster. It will prompt you for
configuration settings before proceeding with building your ports.



I just want to add, that this is necessary when upgrading your existing 
software.  Once ports or packages are installed, there is no 
differentiation to the system.  The difference is that packages 
(installed via pkg_add(1)) are built once, when a new FreeBSD -RELEASE 
is out.


Regards,

--
Glen Barber
___
freebsd-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: Convert all packages to ports

2010-07-01 Thread Glen Barber

On 7/1/10 5:58 PM, Chris Stankevitz wrote:

--- On Thu, 7/1/10, Glen Barberglen.j.bar...@gmail.com  wrote:

Once ports or packages are installed,
there is no
differentiation to the system.


Interesting.  If this is true, then I can just start upgrading my 'pkg_add' 
installed packages using ports and eventually they will all be converted over 
to 'make'.

However, your comment seems to be in disagreement with online warnings of do not 
mix 'pkg_add' packages with 'make' ports.



portmaster will deinstall and reinstall (and I believe rollback if 
something blows up).  You are correct - don't mix ports and packages.



My original question's intention was to prevent me from having a system where 
some packages were installed with 'pkg_add' while others were installed with 
'make'.



portmaster is probably the easiest road to get you there.

Regards,

--
Glen Barber
___
freebsd-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: Convert all packages to ports

2010-07-01 Thread Glen Barber

On 7/1/10 7:27 PM, Chris Stankevitz wrote:

--- On Thu, 7/1/10, Chris Stankevitzchrisstankev...@yahoo.com  wrote:

Q: Is there a simple way to replace each package with the
locally compiled port?


portmaster -f -a


Ideally the procedure will not ask me any questions


Be prepared to answer hundreds of options questions.  To take the default option you 
must press TAB, ENTER to each query.  Have fun!

Chris

TAB, ENTER, TAB, ENTER, TAB, ENTER, TAB, ENTER, TAB, ENTER, TAB, ENTER, TAB, 
ENTER, TAB, ENTER, TAB, ENTER, TAB, ENTER, TAB, ENTER, TAB, ENTER, TAB, ENTER



You can add BATCH=yes in /etc/make.conf, though I don't recall off hand 
if portmaster looks there - I suspect it does.


Ideally sounds like an option to me.  [tab][enter]

Regards,

--
Glen Barber
___
freebsd-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: Boot to ZFS on FreeBSD 7.3

2010-06-28 Thread Glen Barber

On 6/28/10 5:13 PM, Dan D Niles wrote:


The release notes for FreeBSD 7.3 said that it could boot to zfs.  I did
not see any options for doing that via the normal install.  I followed
the instructions here:

http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot

When I reboot, I get:

can't load 'kernel'

I wiped the disk and tried again to verify I didn't miss a step.  Same
result.

I saw a suggestion that zfs.cache needed to be copied.  I did that
during the setup, but I tried doing it again from Fixit.  Same result.


You don't need this step for 7.3.


The other suggestion I saw was to do section 2 step 7 again.  That
shouldn't be necessary for 7.3, but I tried it anyway.  Still seeing
can't load 'kernel'.

Any suggestions for getting FreeBSD 7.3 to boot to ZFS?



Can you try the following at the loader prompt, where you see the 
FreeBSD boot options?


   load zfs
   load opensolaris # should not be necessary, but just to be safe
   boot

Regards,

--
Glen Barber
___
freebsd-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: Boot to ZFS on FreeBSD 7.3

2010-06-28 Thread Glen Barber

On 6/28/10 7:27 PM, Glen Barber wrote:

On 6/28/10 5:13 PM, Dan D Niles wrote:


The release notes for FreeBSD 7.3 said that it could boot to zfs. I did
not see any options for doing that via the normal install. I followed
the instructions here:

http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot

When I reboot, I get:

can't load 'kernel'

I wiped the disk and tried again to verify I didn't miss a step. Same
result.

I saw a suggestion that zfs.cache needed to be copied. I did that
during the setup, but I tried doing it again from Fixit. Same result.


You don't need this step for 7.3.


The other suggestion I saw was to do section 2 step 7 again. That
shouldn't be necessary for 7.3, but I tried it anyway. Still seeing
can't load 'kernel'.


I quoted the wrong sentence - you don't need _this_ step.



Any suggestions for getting FreeBSD 7.3 to boot to ZFS?



Can you try the following at the loader prompt, where you see the
FreeBSD boot options?

load zfs
load opensolaris # should not be necessary, but just to be safe
boot

Regards,




--
Glen Barber
___
freebsd-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: pkg_add

2010-06-24 Thread Glen Barber

On 6/24/10 9:01 PM, zaxis wrote:



uname -a

FreeBSD mybsd.zsoft.com 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #9: Sat Mar 27
15:06:39 CST 2010 r...@mybsd.zsoft.com:/usr/obj/usr/src/sys/MYKERNEL
i386


echo $PKG_PATH

PKG_PATH: Undefined variable.


cat .cshrc |grep -i package

setenv PACKAGESITE
ftp://ftp.cn.freebsd.org/pub/FreeBSD/ports/i386/packages-8.0-release/All/

So you should use PACKAGESITE instead of PKG_PATH you mentioned .




Not entirely true.

Using the above FTP URL, PKG_PATH will look for

ftp://ftp.cn.freebsd.org/pub/FreeBSD/ports/i386/packages-8.0-release/Latest/

Regards,

--
Glen Barber
___
freebsd-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: pkg_add

2010-06-24 Thread Glen Barber

On 6/24/10 9:49 PM, Fbsd1 wrote:

Glen Barber wrote:


Using the above FTP URL, PKG_PATH will look for

ftp://ftp.cn.freebsd.org/pub/FreeBSD/ports/i386/packages-8.0-release/Latest/


Regards,


No I am not looking for the remote path to fetch the package
distribution file from. When doing pkg_add -Kr pkgname
will save the downloaded distribution pkg file.
My question is where is this file saved at on my host by default.
/usr/packages maybe



/usr/ports/packages, assuming it exists.  If not, it will save to the 
port directory.


Regards,

--
Glen Barber
___
freebsd-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: pkg_add

2010-06-24 Thread Glen Barber

On 6/24/10 10:02 PM, Glen Barber wrote:

On 6/24/10 9:49 PM, Fbsd1 wrote:

Glen Barber wrote:


Using the above FTP URL, PKG_PATH will look for

ftp://ftp.cn.freebsd.org/pub/FreeBSD/ports/i386/packages-8.0-release/Latest/



Regards,


No I am not looking for the remote path to fetch the package
distribution file from. When doing pkg_add -Kr pkgname
will save the downloaded distribution pkg file.
My question is where is this file saved at on my host by default.
/usr/packages maybe



/usr/ports/packages, assuming it exists. If not, it will save to the
port directory.



Actually, to quote pkg_add(1):
 -K, --keep
 Keep any downloaded package in PKGDIR if it is defined or 
in current directory by default.


Therefore, if PKGDIR is not defined, it should use $PWD.

PKGDIR and PKG_PATH are two entirely different environment variables.

Regards,

--
Glen Barber
___
freebsd-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: X11 problem

2010-06-22 Thread Glen Barber

On 6/22/10 2:39 PM, Gary Kline wrote:


guys,
what do i need to rebuild to fix this problem to get X working on my
server::


ethic# startx
xauth:  creating new authority file /root/.serverauth.1054

/libexec/ld-elf.so.1: Shared object libhal.so.1 not found, required by X
giving up.


Have you tried rebuilding sysutils/hal?

Regards,

--
Glen Barber
___
freebsd-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 not responding

2010-06-22 Thread Glen Barber

On 6/22/10 1:52 PM, Andy Balholm wrote:

I am having a problem with Xorg under FreeBSD 8.0 RELEASE and 8.1 RC1:

When I type startx, the X server starts, and some xterm windows open, but it 
will not respond to keyboard or mouse input. The mouse pointer won't move, and 
the only keyboard input that does anything is CTRL-ALT-F1 etc. to switch 
virtual terminals.

If I install FreeBSD 7.1, which installs Xorg straight from the installation 
CD, it works fine. Under version 8, I've tried installing from ports and 
packages, and I get this problem.

When I first had this problem, I was running it under VirtualBox, so I thought 
maybe it was because VirtualBox's FreeBSD support is incomplete. But now I've 
tried it on real PC hardware, and I have the same problem.

Obviously some people must be running X under FreeBSD 8, so I must be doing 
something wrong in my installation or configuration, but I can't guess what it 
is.



Try adding the following to xorg.conf:

Section ServerFlags
option AllowEmptyInput off
option AutoAddDevices off
EndSection

Regards,

--
Glen Barber
___
freebsd-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: system is under attack (what can I do more?)

2010-06-18 Thread Glen Barber

Hi,

On 6/18/10 11:29 AM, Kaya Saman wrote:

[...]

Look at ports/security/sshguard and ports/security/bruteblock.

I use sshguard with ipfilter, but it works with pf and ipfw as well.
It is very simple to set up and gets the job done.



Hi just wanted to say thanks for stating this as I'm also looking for a
BSD version of fail2ban which I couldn't find in the FreeBSD ports
collection..



security/py-fail2ban

Regards,

--
Glen Barber
___
freebsd-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: Followup On Perl Dumping Core

2010-06-18 Thread Glen Barber

Hi,

On 6/18/10 2:24 PM, Tim Daneliuk wrote:

I have rebuilt world to today's 8.1-PRERELEASE sources

I have forced a rebuild of every port on the system with:

 portupgrade -f *

I have rebooted.

I am still seeing these log messages:

 (perl5.10.1), uid 0: exited on signal 11

The long running perl processes on this system are associated with
MailScanner. MailScanner does periodically restart itself thereby
killing these perl processes, but I wouldn't expect this to throw a
signal 11...


Ideas anyone?




Have you recently upgraded perl without running perl-after-upgrade 
afterwards?


Regards,

--
Glen Barber
___
freebsd-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: Followup On Perl Dumping Core

2010-06-18 Thread Glen Barber

On 6/18/10 2:30 PM, Tim Daneliuk wrote:

Have you recently upgraded perl without running perl-after-upgrade
afterwards?



I did upgrade perl some time ago.  I do not recall if I  ran perl-after-upgrade.
Wouldn't the 'portupgrade -f *' take care of this, or should I go run the
script now, just in case?



portupgrade does not do this for you.  If you don't remember, I'd 
suggest running it.


Regards,

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


Re: i cannot login as root

2010-06-15 Thread Glen Barber

Hi,

On 6/15/10 7:15 AM, Giorgos Tsiapaliokas wrote:

hello,

my system has 2 users the user terietor and the root user.

after a failed upgrade of my system with portmaster,i can't login as root
but i can login as terietor.
root was using the csh shell and terietor was using the bash shell.



Are you sure you don't have this backwards?

portmaster should not touch /bin/csh, since it is not a port - it is 
part of the base system.  However, if root's shell is set to bash and 
portmaster blew up upgrading that port, this would prevent you from 
logging in as root, and is a good example of why not to change root's 
default shell to something not in the base install.


If this is the case, and you have physical access to the machine, drop 
into single-user mode and use chsh(1) to reset root's shell to /bin/csh.


Regards,

--
Glen Barber
___
freebsd-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: closing X

2010-06-14 Thread Glen Barber

On 6/14/10 6:21 PM, Derek Funk wrote:

On 6/13/2010 7:12 PM, Glen Barber wrote:

Hi Derek,

On 6/13/10 10:51 AM, Derek Funk wrote:

I have setup PCBSD and a Standard Freebsd with gui. and kbunto. They do
not close X completely. I get a flashing screen.
I can still type commands while the screen flashes. I have done a google
search but nothing seems to match my problem.

I installed opensolaris and it doesn't do this but I want bsd.

I have a Toshiba Satellite laptop that has intel mobile graphics. Is
this something with the intel graphics driver or an installed software
conflict.



Does it sound similar to this issue?

http://lists.freedesktop.org/archives/xorg/2009-August/046958.html

Regards,


Yea, that is mostly what I am experiencing. I followed the thread and
didn't see a resolution.




Last I used that laptop, there still was no resolution.  The only thing 
I could find to prevent it from happening in the first place is to not 
use xscreensaver, xrander, etc.  Once I disabled those apps, the 
flashing console went away.


I did find that 'startx' from the flashing console, and immediately 
closing X would drop me back to a normal, visible console.


Regards,

--
Glen Barber
___
freebsd-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: closing X

2010-06-13 Thread Glen Barber

Hi Derek,

On 6/13/10 10:51 AM, Derek Funk wrote:

I have setup PCBSD and a Standard Freebsd with gui. and kbunto. They do
not close X completely. I get a flashing screen.
I can still type commands while the screen flashes. I have done a google
search but nothing seems to match my problem.

I installed opensolaris and it doesn't do this but I want bsd.

I have a Toshiba Satellite laptop that has intel mobile graphics. Is
this something with the intel graphics driver or an installed software
conflict.



Does it sound similar to this issue?

http://lists.freedesktop.org/archives/xorg/2009-August/046958.html

Regards,

--
Glen Barber
___
freebsd-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 upgrade

2010-06-09 Thread Glen Barber

On 6/9/10 9:07 PM, Aiza wrote:

The upgrade function requires the -r newrelease flag.
The manpage does not state the formate of the newrelease value.

Is it just the release number like this 8.0 or is it like this 8.0-RELEASE?


8.0-RELEASE.  I believe you can pull 8.0-RELEASE-p2 using -r as well.

Regards,

--
Glen Barber
___
freebsd-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 upgrade

2010-06-09 Thread Glen Barber

On 6/9/10 9:26 PM, Fbsd1 wrote:

Glen Barber wrote:

On 6/9/10 9:07 PM, Aiza wrote:

The upgrade function requires the -r newrelease flag.
The manpage does not state the formate of the newrelease value.

Is it just the release number like this 8.0 or is it like this
8.0-RELEASE?


8.0-RELEASE. I believe you can pull 8.0-RELEASE-p2 using -r as well.

Regards,


Thanks.

Have another question.

When freebsd-update first entered the ports system, it was limited to
updating systems that not been changed from the basic release. IE:
Recompiling the kernel adding devices or removing them. Is that still
true now?



If you have a custom kernel installed, freebsd-update will overwrite it 
with GENERIC, which means you will need to recompile your custom kernel.


Regards,

--
Glen Barber
___
freebsd-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: Problem compiling lsof

2010-05-24 Thread Glen Barber
Hi Arthur,

On Mon, May 24, 2010 at 8:57 PM, Arthur Barlow arthurbar...@gmail.com wrote:
 On Mon, May 24, 2010 at 5:43 PM, Chuck Swiger cswi...@mac.com wrote:

 Hi--

 On May 24, 2010, at 5:41 PM, Arthur Barlow wrote:
  Sorry about the false start. Fat fingers.  I'm trying to compile the lsof
  program in FreeBSD 8.0 on an i686 machine.  There is a error referencing
  dlsof.h and it looks like there is an ugly hack in the header file.
  Any
  suggestions, besides playing with the code?

 Sure; how about:

  cd /usr/ports/sysutils/lsof  make install

 Regards,
 --
 -Chuck


 Chuck,

 That doesn't work, which was my point to begin with.  The compile process
 throws an error.


Despite not seeing the error, I'll ask if your kernel and userland are in sync.

Regards,

-- 
Glen Barber
___
freebsd-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: Need advise.

2010-05-19 Thread Glen Barber
Hi Chuck,

pa...@magi.magidesign.com wrote: 
 
 
 Guys, 
 
 I have a box that I need to add several software
 package, I can't use ports because it appears that they have blocked the
 ports to do a fetch. 

Who is they?  Some details would help us help you.

 
 So I am wondering what can I do?
 
 Chuck

Regards,

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


Autoresponders [pa...@magi.magidesign.com: [#24508600] Re: Need advise.]

2010-05-19 Thread Glen Barber
Headers attached, so we can stop this nonsense in the future.

- Forwarded message from pa...@magi.magidesign.com -

Delivered-To: glen.j.bar...@gmail.com
Received: from gmail-pop.l.google.com [74.125.113.109]
by glenbarber.us with POP3 (fetchmail-6.3.14)
for gbar...@localhost (single-drop); Wed, 19 May 2010 22:33:20 -0400
(EDT)
Received: by 10.231.40.13 with SMTP id i13cs11992ibe;
Wed, 19 May 2010 19:36:15 -0700 (PDT)
Received: by 10.142.55.20 with SMTP id d20mr6759641wfa.331.1274322975037;
Wed, 19 May 2010 19:36:15 -0700 (PDT)
Return-Path: pa...@magi.magidesign.com
Received: from secure.mpcustomer.com (secure.mpcustomer.com [208.43.146.75])
by mx.google.com with ESMTP id
4si11369005pzk.70.2010.05.19.19.36.11;
Wed, 19 May 2010 19:36:12 -0700 (PDT)
Received-SPF: neutral (google.com: 208.43.146.75 is neither permitted nor
denied by best guess record for domain of pa...@magi.magidesign.com)
client-ip=208.43.146.75;
Authentication-Results: mx.google.com; spf=neutral (google.com: 208.43.146.75
is neither permitted nor denied by best guess record for domain of
pa...@magi.magidesign.com) smtp.mail=pa...@magi.magidesign.com
Received: by secure.mpcustomer.com (Postfix, from userid 99)
id CACC615407D8; Wed, 19 May 2010 21:36:11 -0500 (CDT)
To: Glen Barber glen.j.bar...@gmail.com
Subject: [#24508600] Re: Need advise.
Date: Wed, 19 May 2010 21:36:11 -0500
From: pa...@magi.magidesign.com
Reply-To: supp...@mpcustomer.com
Message-ID: 23c180a83264bf123c83316d8eaec...@secure.mpcustomer.com
X-Priority: 3
X-Mailer: PHPMailer (phpmailer.sourceforge.net) [version 2.0.4]
X-Uberinst: uber_phase-support
X-Mailer: Ubersmith
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=utf-8

Hello,

This is an automated response to inform you that your question has been entered 
into our system, and will be reviewed shortly. Your ticket has been submitted 
into the General Support department.

We will respond to you as soon as possible.

==
Please keep this information, and use it when refering to your ticket:

Ticket subject: Re: Need advise. 
Ticket number: 24508600
Ticket link: https://secure.mpcustomer.com/ticket.php?ticket=24508600
Ticket body: Hi Chuck,

pa...@magi.magidesign.com wrote: 
 
 
 Guys, 
 
 I have a box that I need to add several software
 package, I can't use ports because it appears that they have blocked the
 ports to do a fetch. 

Who is they?  Some details would help us help you.

 
 So I am wondering what can I do?
 
 Chuck

Regards,

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



- End forwarded message -

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


Re: Installation queries

2010-04-24 Thread Glen Barber
Hi,

Warren Liddell wrote: 
 I have a Hard Drive presently running Win 7 which ironically i wish to 
 remain souly a Win drive .. my question is, i have another drive im 
 looking to put in while i take the windows 1 out and install FreeBSD 
 onto it .. if later on i decide for some god unknown reason to put that 
 drive back in and take the FreeBSD one out .. will there be any issues ?

No, because they will be two separate disks.  If you have only one
attached at one time, each disk will contain its own MBR.

Regards,

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


Re: Installation queries

2010-04-24 Thread Glen Barber
Hi,

Jorge Biquez wrote: 
 I would like to hear if possible your comments and advice on this 
 taht's related ..
 
 What if you have a to have several OS and distros to study or give 
 consulting and developing services. I have this scenario now and I 
 guess I have this optios.
 
 - Extra disk(s) and install there the differnet os I need (FreeBSD 
 and some Linux distros).
 - As mentioned have different small disk with real installations and 
 change according to needs.

IMHO, this is a clumsy way to avoid writing over an existing installed
operating system.  But, you know what they say about opinions.

 - Change my slow machine and have a big one with
a) have the windows needed (for some clients that have that, I am 
 sorry) and under it run VMWARE or similar and have all the 
 installations that I need.
b) Have a big mac and do the same with virtualpc or similar (not 
 sure of the name).
 

VirtualBox?  

 Thinking that you are looking to continue learning and you are 
 offering consulting services where clients have different 
 instllations. What would you choose of the above, if any? Or what would you 
 do?
 

FWIW, I run VirtualBox on all of my FreeBSD machines and my
Mac for similar purposes.  It is much more convenient than carrying around
extra disks or obscure disk partitioning.

Regards,

-- 
Glen Barber
___
freebsd-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: Duplicate ports with the same name, shou,d thy be banned/renamed?

2010-04-23 Thread Glen Barber
Hi,

Yuri wrote: 
 I see there are two ports:
 /usr/ports/audio/mpc
 /usr/ports/math/mpc
 
 When I run 'pkg_add -r mpc' the first one gets installed, there is 'All' 
 directory under packages, here all of them from all subdirectories are 
 dropped.
 
 Shouldn't duplication be banned?
 

This is where the LATEST_LINK entry in the port Makefile comes in.  If you
want to pkg_add math/mpc, use:

pkg_add -r math_mpc

Regards,

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


Re: How to mount mfsroot?

2010-04-22 Thread Glen Barber
Hi,

Yuri wrote: 
 I am trying to set up NFS install, and need to modify mfsroot to not 
 load sysinstall.
 But vnconfig is disabled in 8.0.
 http://www.freebsd.org/doc/en_US.ISO8859-1/articles/pxe/article.html 
 suggests using vnconfig vn0 mfsroot
 But vnconfig is disabled in 8.0.
 
 So I ran:
 mdconfig -a -t vnode -f mfsroot
 mount /dev/md0 /mnt/
 And got an error:
 mount: /dev/md0 : Invalid argument
 
 What's wrong?
 Yuri

Have a look at the EXAMPLES section of mdconfig(8).  You need to
bsdlabel and newfs the md device.

Regards,

-- 
Glen Barber
___
freebsd-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: RootBSD?

2010-04-06 Thread Glen Barber
Hi Tom,

Tom Ierna wrote: 
 Hi,
 
 Anyone have any experience with RootBSD.net?
 

I've been using RootBSD for a few months now, and would give you nothing
but positive feedback - however, your question isn't exactly specific.

Is there anything in particular you need to know?

-- 
Glen Barber
___
freebsd-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: Preventing Bad SMB Mount From Stalling A Boot

2010-04-06 Thread Glen Barber
Hi Tim,

Tim Daneliuk wrote: 
 I mount my SMB shares from /etc/fstab on a FBSD 8.x production machine like 
 this:
 
  //u...@winserver/SHARE   /mountpointsmbfs   rw  0   0
 
 The problem is that after an outage, WINSERVER doesn't come up
 before the FBSD machine. So, the FBSD machine tries to boot and then
 hangs permanently because it cannot get the SMB share points mounted.
 This recently happened after a catastrophic power outage that cooked
 the share info on WINSERVER. Even after it came up, it was no longer
 serving the proper shares and the FBSD machine could never find the
 SMB shares and thus hung permanently.
 
 The SMB mounts are not essential for systems operations. Is there a
 way to tell the FBSD to try and mount SMB, but keep going and complete
 the boot if it cannot?
 

I have a similar problem with a D-Link NAS I use for rsnapshot, however my
NAS does not come up after a power outage _period_.

The solution I use is to 'noauto' the nfs mount to prevent the stall until
I can boot the NAS.  I then created /mountpoint/NO, which the existence of
the 'NO' file is checked before rsnapshot via cron telling rsnapshot if it
is okay to backup to the mountpoint.  The result is that my machine will
continue to boot after a power failure, and the filesystem will not get
clobbered by recursive backups.

Though this isn't the same situation you are experiencing, you could
always script the mount to occur @reboot via cron.  Of course, there is
always rcorder(8), but I have not looked at it too much, as it would not
help in my situation.

HTH and regards,

-- 
Glen Barber
___
freebsd-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: bizarre mount_nullfs issue with jails / ezjail

2010-04-06 Thread Glen Barber
Hi Dan,

Dan Naumov wrote: 
 So, I want the basejail to only contain the world and link the ports
 tree from the host into each individual jail when it's time to update
 the ports inside them, but I am running into a bit of a bizarre issue:
 I can mount_nullfs /usr/ports elsewhere on the host just fine, but it
 doesn't work if I try to mount_nullfs it to /usr/ports inside the
 jail:
 
 mount_nullfs /usr/ports/ /usr/ports2
 
 df -H | grep ports
 cerberus/usr-ports34G241M 34G 1%/usr/ports
 cerberus/usr-ports-distfiles  34G  0B 34G 0%
 /usr/ports/distfiles
 cerberus/usr-ports-packages   34G  0B 34G 0%
 /usr/ports/packages
 /usr/ports34G241M 34G 1%/usr/ports2
 
 mount | grep ports
 cerberus/usr-ports on /usr/ports (zfs, local)
 cerberus/usr-ports-distfiles on /usr/ports/distfiles (zfs, local)
 cerberus/usr-ports-packages on /usr/ports/packages (zfs, local)
 /usr/ports on /usr/ports2 (nullfs, local)
 
 mount_nullfs /usr/ports/ /usr/jails/semipublic/usr/ports
 mount_nullfs: /basejail: No such file or directory
 
 What is going on here? I also note that the error actually wants a
 /basejail on the host, which is even more bizarre:
 
 mount_nullfs /usr/ports/ /usr/jails/semipublic/usr/ports
 mount_nullfs: /basejail: No such file or directory
 
 mkdir /basejail
 
 mount_nullfs /usr/ports/ /usr/jails/semipublic/usr/ports
 mount_nullfs: /basejail/usr: No such file or directory
 
 Yet, this works:
 
 mkdir /usr/jails/semipublic/test
 mount_nullfs /usr/ports/ /usr/jails/semipublic/test
 umount /usr/jails/semipublic/test
 
 Any ideas?
 
 

The ports directory in an ezjail is a link to /basejail/usr/ports (in the
jail).

Breaking the link (from the host) allows the mount to work successfully.

orion# ll usr/ports 
lrwxr-xr-x  1 root  wheel  19 Mar  8 18:06 usr/ports - /basejail/usr/ports
orion# unlink usr/ports 
orion# mkdir usr/ports
orion# mount_nullfs /usr/ports usr/ports
orion#

Regards,

-- 
Glen Barber
___
freebsd-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: Upgrading releases?

2010-03-30 Thread Glen Barber
Hi Jason,

Slack-Moehrle wrote: 
 Hi All,
 
 I have a system with 8.0-RELEASE and I read that 8-STABLE has ZFS v14 
 (instead of v13)
 
 I am trying:
 
 # freebsd-update upgrade -r 8-STABLE 
 
 and it does not work. it tried 3 mirrors, all fail and nada.
 
 Since I am new to FreeBSD, what am I obviously missing? Is there a place that 
 states the releases? Is there an 8.1 or 8.2 out now that has even a new 
 version of ZFS?
 

Have a look at the DESCRIPTION section of the freebsd-update(8) man page,
which explains why you cannot upgrade to -STABLE using this utility.  If
you wish to upgrade from -RELEASE to -STABLE, the handbook covers the
proper source-based upgrade procedure.

Regards,

-- 
Glen Barber
___
freebsd-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: uname -a

2010-03-30 Thread Glen Barber
Hi,

alexus wrote: 
 su-3.2# uname -a
 FreeBSD dd.alexus.org 7.3-RELEASE FreeBSD 7.3-RELEASE #13: Tue Mar 23
 20:47:52 UTC 2010 xx...@x.xxx.:/usr/obj/usr/src/sys/GENERIC
 amd64
 su-3.2#
 
 why is it showing up #13 here? back when I had 7.2-RELEASE-pX i've had
 #12, I then did following:
 
 rm -rf /usr/src
 csup /usr/share/examples/cvsup/standard-supfile
 cd /usr/src
 make buildworld
 make buildkernel
 ...
 reboot
 now it show shows 7.3 and #13, i thought if i get rid of /usr/src and
 re-csup it it should reset to #1? or #0
 

The kernel version is incremented from /usr/obj, not /usr/src.  To revert
it to #0, remove /usr/obj.

Regards,

-- 
Glen Barber
___
freebsd-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: checkup

2010-03-23 Thread Glen Barber
Hi,

madunix wrote: 
 Dear bsd's
 I want to create checkup script bash/perl to run on daily basis in
 order to do checkup routine for a multiple 20xlinux server
 (centos/rhel/suse/freebsd). Some kind of a list, making sure all of
 the relevant services are working properly: hardware, filesystens
 mounted, ip address, hostname, login user, cpu, network services,
 databases oracle, mysql, ftp, http, samba,quota, log all these output
 into file and mail it to admin daily.
 
 can you help.
 

Unless you have a reason to reinvent the wheel, you might have a look at
ports/net-mgmt/nagios.

Regards,

-- 
Glen Barber
___
freebsd-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: Twitter On FreeBSD

2010-03-08 Thread Glen Barber
Hi,

Programmer In Training wrote: 
[snip]

 
 ./AdobeAIRInstaller.bin
 Error loading the runtime (libxml2.so.2: cannot open shared object file:
 No such file or directory)

Have you tried the textproc/linux-libxml2 port?

Regards,

-- 
Glen Barber
___
freebsd-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: Perl 5.8 - 5.10 On Current Production System

2010-03-04 Thread Glen Barber
Hi,

Tim Daneliuk wrote: 
 Is there a recommended procedure I can read somewhere on how to upgrade an
 entire production system from Perl 5.8 to 5.10 (or whatever is current) 
 cleanly? 

Have a look at the 20100205 entry of ports/UPDATING.

Regards,

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


Re: Virtualbox on Freebsd

2010-03-03 Thread Glen Barber
Hi,

Chris Hill wrote: 
 On Wed, 3 Mar 2010, Thomas Lawrence wrote:
 
Hello Guys and Gals,
Can you clear something up for me.
Is it possible to install the closed source version of Virtualbox on
Freebsd8.
 
 Glen Barber posted this...
 
 http://www.mail-archive.com/freebsd-questions@freebsd.org/msg217302.html
 
 ...last summer. I have not tried it, just saying it's there.
 

It is a (horribly outdated) pkg_add(1) installer.  I haven't had a chance
to update it yet; hopefully this weekend now that my attention has been
drawn to it.

For the record, it is not the closed-source version.  It is
emulators/virtualbox before it was repocopied to
emulators/virtualbox-ose-*.

Regards,

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


Re: Question about Jails

2010-02-27 Thread Glen Barber
Hi,

Graeme Dargie wrote: 
 Hello List,
 
  
 
 I understand this is possible but cant seem to find any how to`s or
 guides out on the net, I would like to set up a jail running FreeBSD 8.0
 i386 on a system that is running FreeBSD 8.0 amd64. I know this may
 sound somewhat odd but I have a program that I need to run that just
 will not compile under amd64.
 

You want to set the TARGET for buildworld, which will create
/usr/obj/i386.  Use TARGET again for installworld to install from that obj
directory.

  make TARGET=i386 buildworld
  make TARGET=i386 DESTDIR=/usr/jails/myi386jail installworld

Regards,

-- 
Glen Barber
___
freebsd-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: Mailing lists link in handbook redirects to......

2010-02-26 Thread Glen Barber
Hi,

Leslie Jensen wrote: 
 This address
 
 http://searchportal.information.com/?o_id=94081domainname=lists.freebsd.org
 
 I'm trying to subscribe to freebsd-emulation but I end up at the above.
 
 I've tried via the handbook and direct url. Same result. Is this a new 
 behaviour?
 

Nope, the link works correctly for me.  It's possible it's a DNS issue and
your ISP does redirection to a search result page when it cannot find the
domain.

What IP returns from 'dig lists.freebsd.org'?

Regards,

-- 
Glen Barber
___
freebsd-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: Using webcam Windows driver

2010-02-25 Thread Glen Barber
Hi,

Fernando Apestegu?a wrote: 
 On Thu, Feb 25, 2010 at 8:56 AM, Siju George sgeorge...@gmail.com wrote:
  Hi,
 
  I have a logitech quickcam. Will I be able to use it in FreeBSD?
  Can I use Windows driver?
 
 Maybe you want to have a look at pwcbsd[1]. This is to use linux drivers on

A more recent project exists in the ports tree.  If you're running
8.0-RELEASE or later, you might have a look at:

   ports/multimedia/video4bsd-kmod
   ports/multimedia/webcamd

Although, I don't know if your particular camera is supported.

Regards,

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


Re: VirtualBox doesn't start

2010-02-01 Thread Glen Barber
Hi Frank,

Frank Wi?mann wrote: 
 After trying this I still get the message:
 
 mount: procfs : Operation not supported
 
 And a
 
 mount -t procfs /proc/
 

The procfs(5) man page specifies the following:

mount -t procfs proc /proc

Regards,

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


Re: VirtualBox doesn't start

2010-01-31 Thread Glen Barber
Hi Frank,

Frank Wi?mann wrote: 
 Hi, folks!
 I want to launch my freshly installed VB with the run-command under 
 KDE 3.5.10, but it won't start. All I get is Command can't be executed 
 in german. I also tried with full pathname 
 /usr/local/lib/virtualbox/VboxBFE, but that doesn't work either.
 Where should I look for a solution?
 

Can you run this from a terminal emulator (konsole, xterm) for more
verbose output?

Regards,

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


Re: VirtualBox doesn't start

2010-01-31 Thread Glen Barber
Frank Wi?mann wrote: 
 Glen Barber schrieb:
  Hi Frank,
  
  Frank Wi?mann wrote: 
  Hi, folks!
  I want to launch my freshly installed VB with the run-command under 
  KDE 3.5.10, but it won't start. All I get is Command can't be executed 
  in german. I also tried with full pathname 
  /usr/local/lib/virtualbox/VboxBFE, but that doesn't work either.
  Where should I look for a solution?
 
  
  Can you run this from a terminal emulator (konsole, xterm) for more
  verbose output?
 
 OK, here it is:
 
 VBoxBFE: supR3HardenedExecDir: couldn't read , errno=2 cchLink=-1
 

Is your user in the vboxusers group?

Regards,

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


  1   2   3   4   5   6   >