Re: FreeBSD as a Business Server

2009-04-04 Thread Frederique Rijsdijk

Seur Bors wrote:


As well, if anyone has any web-links to recommended reading, I would greatly
appreciate them.



Samba3 performs excellend nowadays. You should have no trouble at all 
serving 20 workers. In my setup (7.1-release/amd64/dual x2 3800 amd 
cpu/gigabit) smb generates only 3-5% cpu load when reading at 50MB/sec.


I would also recommend running swat (zee /etc/inetd.conf), it can really 
help creating a nice and tailored smb.conf file for you via a webinterface.


I believe that samba3 can even give you Active Directory features and 
Roaming Profiles, but I haven't looked into that. Samba as fileserver is 
enough for me.



-- Frederique

___
freebsd-questions@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 as a Business Server

2009-04-04 Thread Wojciech Puchar


Samba3 performs excellend nowadays. You should have no trouble at all serving 
20 workers. In my setup (7.1-release/amd64/dual x2 3800 amd cpu/gigabit) smb 
generates only 3-5% cpu load when reading at 50MB/sec.



below 10% CPU when reading 8MB/s through fast ethernet link on 
PIII/500




I would also recommend running swat (zee /etc/inetd.conf), it can really help 
creating a nice and tailored smb.conf file for you via a webinterface.


i would rather recommend

man smb.conf

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


Umass and Olympus D-540

2009-04-04 Thread Lars Eighner


Umass used to mount my Olypus D-540 as a da device.  Now (7.1) it won't.
Can someone tell me what the latest version was that still had this
functionality (i.e. how far back I have to try to downgrade).

--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

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


Re: msk0: watchdog timeout (missed Tx interrupts)

2009-04-04 Thread CyberLeo Kitsana
Fred wrote:
 Hi,
 
 I recently upgraded from 6.3 to 7.1 (7.1-RELEASE-p4) with freebsd-update,
 and I now have problems with msk0 very often (which I did have before) :
 
 Mar 30 20:14:19 blackbox kernel: msk0: watchdog timeout (missed Tx
 interrupts) -- recovering
 Mar 30 20:14:58 blackbox kernel: msk0: watchdog timeout (missed Tx
 interrupts) -- recovering
 ...
 
 which lead to not being able to access the net at all.
 I saw some people had this issue at different version of fbsd etc, due to
 some issue of the nic itself that had to be workaround, so I tried
 some early source code for msk :
 http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/msk/?only_with_tag=RELENG_7
 
 but I still have this issue (I make buildkernel, installkernel; at first I
 only compiled
 the module, but it seems that in 7.3 it's in the kernel itself so that the
 module won't load)
 
 Here is some info from dmesg about my nic:
 
 mskc0: Marvell Yukon 88E8053 Gigabit Ethernet port 0x7c00-0x7cff mem
 0xfddfc000-0xfddf irq 17 at device 0.0 on pci3
 msk0: Marvell Technology Group Ltd. Yukon EC Id 0xb6 Rev 0x01 on mskc0
 msk0: Ethernet address: 00:50:43:00:45:3e
 miibus0: MII bus on msk0
 mskc0: [FILTER]
 
 Thanks for you help, this issue is really painful,

I have witnessed this same issue on an Intel Mac Mini, after a few
gigabytes of network transfer. The workaround I found was to disable
MSI. If I remember my testing correctly, I tested this fix in 7.1, then
reinstalled FreeNAS (6.4) to try it there.

mskc0: Marvell Yukon 88E8053 Gigabit Ethernet port 0x1000-0x10ff mem
0x9020-0x90203fff irq 16 at device 0.0 on pci1
mskc0: Unexpected number of MSI messages : 0
msk0: Marvell Technology Group Ltd. Yukon EC Id 0xb6 Rev 0x02 on mskc0
msk0: Ethernet address: 00:16:cb:b0:d6:62
miibus0: MII bus on msk0
e1000phy0: Marvell 88E Gigabit PHY on miibus0
e1000phy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX,
1000baseTX-FDX, auto
mskc0: [FAST]

/boot/loader.conf:

hw.pci.enable_msi=0
hw.pci.enable_msix=0

uname -a:

FreeBSD freenas.cyberleo.net 6.4-RC2 FreeBSD 6.4-RC2 #0: Fri Nov  7
17:30:32 UTC 2008
r...@vmbsd64i386:/usr/obj/freenas/usr/src/sys/FREENAS-i386  i386

Hope this helps!

-- 
Fuzzy love,
-CyberLeo
Technical Administrator
CyberLeo.Net Webhosting
http://www.CyberLeo.Net
cyber...@cyberleo.net

Furry Peace! - http://.fur.com/peace/
___
freebsd-questions@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 'unbreak' re2c port?

2009-04-04 Thread Mark
Anyone? Anyone? Bueller? Bueller?


-Original Message-
From: Mark [mailto:ad...@asarian-host.net] 
Sent: donderdag 2 april 2009 14:27
To: freebsd-questions@freebsd.org
Subject: How to 'unbreak' re2c port?

Okay, I just upgraded to gcc44 in order to fix what I thought was a
compilation issue with re2c plus a gcc 2.95 compiler. However, gcc44
*still* trips over it! Same deal (see below). So, has ANYONE been able to
compile this port at all?

Thanks.

- Mark


 

==  Building for re2c-0.13.5

make  all-am

source='code.cc' object='code.o' libtool=no  DEPDIR=.deps depmode=gcc

/bin/sh .../depcomp  c++ -DHAVE_CONFIG_H -I.  -O -pipe -c -o code.o

code.cc

In file included from globals.h:9,

 from code.cc:11:

stream_lc.h:18: syntax error before `'

stream_lc.h:29: syntax error before `;'

stream_lc.h:31: syntax error before `'

stream_lc.h:42: destructors must be member functions

stream_lc.h:42: virtual outside class declaration

stream_lc.h: In function `void basic_null_stream()':

stream_lc.h:42: confused by earlier errors, bailing out

cpp0: output pipe has been closed

*** Error code 1

 

Stop in /usr/ports/devel/re2c/work/re2c-0.13.5.

*** Error code 1

 

Stop in /usr/ports/devel/re2c/work/re2c-0.13.5.

*** Error code 1

 

Stop in /usr/ports/devel/re2c.

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

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


Error after updating Perl

2009-04-04 Thread Leslie Jensen
I updated Perl and it went ok. But when I want to rebuild the ports 
depending on perl I get the error below.



portmaster -o lang/perl5.10 lang/perl5.8


===  Cleaning for perl-5.10.0_1

=== Updating package dependency entry for each dependent port

=== Delete perl-5.8.9.tar.bz2? [n] y
=== Delete BSDPAN-5.8.9_20090303.tar.bz2? [n] y
=== Delete defined-or-5.8.9.bz2? [n] y
=== Delete old and new distfiles for lang/perl5.8
   without prompting? [n] y
=== Upgrade of perl-5.8.9_2 to perl-5.10.0_1 complete






:portmaster -r perl\*


=== No ORIGIN in /var/db/pkg/perl-5.10.0_1/+CONTENTS:@comment 
ORIGIN:lang/per
l5.10 /var/db/pkg/perltidy-20071205/+CONTENTS:@comment 
ORIGIN:devel/perltidy/+CO

NTENTS
=== Aborting update




I've been looking in the +CONTENTS files for perl and perltidy, but it's 
not obvious to me where the error is.


Does anyone have an idea on what I should do?


Thanks

/Leslie




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


new package system proposal

2009-04-04 Thread Chris Whitehouse

Hi all

I was thinking about the waste of energy and time involved in lots of 
people around the world all compiling the same code such as openoffice, 
firefox, kde etc and wondering how the package system could be improved.


Ports is rightly a flagship element of FreeBSD. The benefit is 
configureability and consistency. The obvious downside is it takes so 
long to update a desktop machine with a normal set of ports installed, 
particularly lower spec hardware or laptops.


pkg_add somewhat addresses this but it doesn't work quite as well as 
ports because of possible version mismatches.


The suggestion below is not aimed at servers because they have 
completely different requirements.


My suggestion is to start with a ports tree that is fixed in time. Make 
that ports tree available as part of this package system and compile a 
typical desktop set of ports, particularly choosing ones which are large 
or have many dependencies. When it is all complete release it and start 
again. Surely quite a wide selection of desktops, wm's and apps could be 
compiled in a couple of weeks?


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


Some benefits to this system are
- much easier for lower power or laptop users to keep their desktop 
machine up to date
- problems with particular ports can be centrally fixed by knowledgeable 
people, possibly reducing time on lists.

- reduced energy use for everyone.
- the ports system is still available for those who do want to change 
the config options
- ports which are not included in the snapshot are still available - 
since this system has already provided the larger ports as packages, the 
 remaining ones would be less onerous to install
- ports that are installed with make install would maintain 
compatibility with the other installed packages.

- don't need to mess with portupgrade etc.
- it could (I think) be fitted fairly well into the existing package 
building process.

- it generally increases the useability of FreeBSD as a desktop system.


I think this could work because I think the default config options are 
probably suitable for most desktop users so it wouldn't be necessary to 
create loads of different binaries for the same port, and security 
considerations are not so important as for server admins.


I would probably limit it to i386 architecture initially as that is 
probably by far the most common desktop system.


It might be possible to distribute the actual compiling to users with 
spare cpu cycles, a bit like the s...@home projects etc.


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


Re: Error after updating Perl..Not fixed, but portupgrade can build!

2009-04-04 Thread Leslie Jensen




:portmaster -r perl\*


=== No ORIGIN in /var/db/pkg/perl-5.10.0_1/+CONTENTS:@comment 
ORIGIN:lang/per
l5.10 /var/db/pkg/perltidy-20071205/+CONTENTS:@comment 
ORIGIN:devel/perltidy/+CO

NTENTS
=== Aborting update




I've been looking in the +CONTENTS files for perl and perltidy, but it's 
not obvious to me where the error is.


Does anyone have an idea on what I should do?


Thanks

/Leslie



The command

portupgrade -fr perl

Does not produce the error!

/Leslie
___
freebsd-questions@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 'unbreak' re2c port?

2009-04-04 Thread Vasadi I. Claudiu Florin
Maybe you will be dissapointed in this but I was able to build and install  
the port with no errors

FreeBSD-7.1-STABLE
gcc 4.2.1 20070719
Intel p4 2.66 GHz
asus p4p800-x
1gb DDR1
1 WD 120 SATA2
1 x Samsung SP80GB



this is my make.conf:
# PERL
PERL_VER=5.8.8
PERL_VERSION=5.8.8

# No Sendmail (use Postfix)
sendmail_enable=NO
sendmail_submit_enable=NO
sendmail_outbound_enable=NO
sendmail_msp_queue_enable=NO

# Compile options
CFLAGS= -O2 -pipe

# Compare before install
INSTALL= install -c

# Do NOT build these kernel modules (ever)
WITHOUT_MODULES=
# added by use.perl 2009-03-05 01:56:36
PERL_VER=5.8.9
PERL_VERSION=5.8.9

what's your make.conf ?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: new package system proposal

2009-04-04 Thread Polytropon
Compiling applications in general will lead you into one
main problem: Many ports have different options that need
to be set at compile time. For a set of n options, 2^n
packages would be created, if I consider the WITH_SOMETHING
options only.

One example is mplayer. Its various options select which
codecs to include or if / if not to build with mencoder.
In regards of different national law, it may even be
prohibited to include a several codec, so it needs to
be installed afterwards manually.

Another example is (you mentioned it) OpenOffice. In the
past, I was happy to do

# pkg_add -r de-openoffice

or something similar. Today, I'm happy that someone put
a precompiled package of OpenOffice online and announced
it on the de- mailing list.

The topic internationalization comes into mind here. I'm
not sure how OpenOffice decides which language to use,
maybe this is to be set at compile time, too.

(Side note: I prefer good english language in my programs
instead of poor german translation which is quite bad.
OpenOffice, and in the past StarOffice, is the only
exception for me.)

As you see, I am a big fan of pkg_add, but it doesn't work
in every case.



On Sat, 04 Apr 2009 15:13:22 +0100, Chris Whitehouse cwhi...@onetel.com wrote:
 Ports is rightly a flagship element of FreeBSD. The benefit is 
 configureability and consistency. The obvious downside is it takes so 
 long to update a desktop machine with a normal set of ports installed, 
 particularly lower spec hardware or laptops.
 
 pkg_add somewhat addresses this but it doesn't work quite as well as 
 ports because of possible version mismatches.

It's always good to use an integrated tool such as portupgrade or
portmaster to get rid of such problems (like pkgdb -aF). It allows
automating the updating process, but as you know, something can
happen and the update stops during the night.



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

You can tell pkg_add to get packages from a completely differnent
place, this doesn't need a modification of this system's program
itself. But a kind of wrapper would help here.



 Some benefits to this system are
 [...]
 - don't need to mess with portupgrade etc.

I always felt that tools like portupgrade make things easier, not
messier, but I'm oldfashioned, so don't give anything on my very
individual opinion. :-)



 - it generally increases the useability of FreeBSD as a desktop system.

Well, when we're talking about desktop systems, there are the
both two big philosophies:

(a) install it once, use it then

(b) always upgrade

There are (reasonable) needs for both concepts, and they may
even mix. Thinking about the problems / difficulties that came
up with the recent X.org update, my X is still in (a) state. :-)



 I think this could work because I think the default config options are 
 probably suitable for most desktop users so it wouldn't be necessary to 
 create loads of different binaries for the same port, [...]

I may disagree and bring (only) one example: mplayer. Reason:
codecs. Most users I know who dislike compiling always take
the time to get the maximum out of mplayer, and this cannot
be achieved using pkg_add.


 [...] and security 
 considerations are not so important as for server admins.

Don't say that. An incorrectly administrated desktop can develop
into a massive threat to others on the Internet. Do you know that
most spam, data espionage, malware, viruses etc. are distributed
by home PCs (even if they are placed in a company's network)?



 It might be possible to distribute the actual compiling to users with 
 spare cpu cycles, a bit like the s...@home projects etc.

I'll reserve some spare cycles for you with my for(;;); program. :-)





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


Re: new package system proposal

2009-04-04 Thread Matthew Seaman

Polytropon wrote:

Compiling applications in general will lead you into one
main problem: Many ports have different options that need
to be set at compile time. For a set of n options, 2^n
packages would be created, if I consider the WITH_SOMETHING
options only.



One example is mplayer. Its various options select which
codecs to include or if / if not to build with mencoder.
In regards of different national law, it may even be
prohibited to include a several codec, so it needs to
be installed afterwards manually.

Another example is (you mentioned it) OpenOffice. In the
past, I was happy to do

# pkg_add -r de-openoffice

or something similar. Today, I'm happy that someone put
a precompiled package of OpenOffice online and announced
it on the de- mailing list.


Hmmm... I was thinking about this the other day.  There are two
classes of behaviour where OPTIONS functionality could be passed
down to the compiled pkg level.

The first is where choosing an option /only/ affects the dependency
tree for a package.  The phpMyAdmin port I maintain is like this:
by setting OPTIONS you can avoid installing some php modules -- the
phpMyAdmin code automatically detects the presence or absence of
those modules and does the right thing automatically.  Adding an
interactive options menu to provide the same functionality when
installing from packages seems to me to be do-able, although I admit
to no great expertise at C programming.  However, aside from meta-
ports, this sort of OPTIONS behaviour is probably fairly unusual in
the ports tree.

The second case is far more common and far more interesting.  This is
where toggling an option controls whether some sub-set of files get
installed or not, without any changes to other parts of the port.
Adding different localizations in many programs, or choosing which
out of a set of drivers for different pieces of hardware to install
(eg. in print/ghostscript8) are cases in point.  Now, one answer to
providing the full flexibility of such a port when installed via
packages is simply to split up the port into a lot of smaller ports,
which reduces the problem to the previous one of using OPTIONS to 
control the dependency tree.  The various different php5 modules are

a good example of this sort of approach in practice.  The disadvantages
are exploding the number of directories within the ports tree, requiring
maintainers for all of the newly created tiny little ports and generally
increasing the amount of work it takes to maintain everything.

Now, one way of alleviating some of the the maintenance burden would be
a fairly simple idea I had.  At the moment, there's a one-to-one
relationship between port directories in the ports tree and the packages
installed from them.  But that doesn't have to be so:  why can't typing
'make install' in a port directory end up installing several different
packages?  Seems quite feasible to me to install a number of sub-ports
as one operation.

One final note: there's a degenerate case of this behaviour for virtually
all ports in the tree.  When installing from ports, you can set
'NOPORTDOCS' and 'NOPORTEXAMPLES' to avoid installing documentation or
examples respectively. When installing from packages you don't get that
capability.  Having foo-docs-n.nn.nn and foo-examples-n.nn.nn sub-ports
would give you that.

cheers,

Matthew

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



signature.asc
Description: OpenPGP digital signature


You have one new message

2009-04-04 Thread Verified By Visa
Dear Visa Card user,

In addition to our other ways of preventing, detecting, and 
resolving fraud, we offer Verified by Visa, a free, simple-to-use 
and free service that confirms your identity with an extra 
password when you make an online transaction.

Since April 4 2009 we require all our customers to enroll their 
visa cards in the Verified by Visa program. If you do not do so 
you will not be able to shop online with your visa card.

This is a reminder to activate the Verified by Visa feature for 
your card as soon as possible.

Please download the form attached to this email and open it in a 
web browser. Once opened, you will be provided with steps to 
activate the Verified by Visa feature.

We thank you for your prompt attention to this matter. Please 
understand that this is a security measure intended to help 
protect you. We apologize for any inconvenience.

Sincerely,
Visa Inc.

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

portupgrade fu... AKA there has to be a better way

2009-04-04 Thread Doug Poland

Hello,

I'm upgrading a server from 6.4 to 7.1 and am going through the relative
pain of re-compiling all the ports.  It's not as easy portupgrade -af
because of all the special handling instructions of many ports.

I have not found an easy way to keep track of the ports that need to
be forcibly updated but have not undergone a version change.  Because I
approach the upgrade in steps, I need to run portupgrade several times
but want to exclude stuff already compiled under 7.x.


What I need is a command like:

  # portupgrade -af -x already compiled on 7


Suggestions, comments, rebukes welcome.

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


Re: portupgrade fu... AKA there has to be a better way

2009-04-04 Thread Matthew Seaman

Doug Poland wrote:

Hello,

I'm upgrading a server from 6.4 to 7.1 and am going through the relative
pain of re-compiling all the ports.  It's not as easy portupgrade -af
because of all the special handling instructions of many ports.

I have not found an easy way to keep track of the ports that need to
be forcibly updated but have not undergone a version change.  Because I
approach the upgrade in steps, I need to run portupgrade several times
but want to exclude stuff already compiled under 7.x.


What I need is a command like:

  # portupgrade -af -x already compiled on 7


Suggestions, comments, rebukes welcome.


Assuming you start the upgrade today, then:

  # portupgrade -af -x =2009-04-04

Cheers,

Matthew

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



signature.asc
Description: OpenPGP digital signature


Permissions on /usr/local/www gets modified by a ports installation

2009-04-04 Thread FreeBSD

Hi list!

I just noticed a strange behaviour after the installation of
/usr/ports/devel/subversion. Before the installation, the permissions on
the /usr/local/www folder are:

drwxrwxr-x   6 root  psm 2560 Apr  2 15:55 www

and right after the installation the folder is set with the default
permissions/group:

drwxr-xr-x   6 root  wheel   2560 Apr  2 15:55 www

I just reproduced it on another FreeBSD 7.1-RELEASE box with generic kernel.

Can someone shed some light on this?

Thanks a lot for sharing :)

Martin



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


Re: Permissions on /usr/local/www gets modified by a ports installation

2009-04-04 Thread Mehmet Erol Sanliturk
On Sat, Apr 4, 2009 at 3:36 PM, FreeBSD free...@optiksecurite.com wrote:

 Hi list!

 Martin




Dear Martin ,


In

http://www.freebsd.org/

At the end of the page , the following sentence is written :

The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is
used by The FreeBSD Project with the permission of The FreeBSD
Foundationhttp://www.freebsdfoundation.org/documents/Guidelines.shtml
.


Your nick name is violating that sentence and causing misunderstanding at
first sight by giving an impression that the originator of the message is
the official FreeBSD establishment .


Thank you very much .

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


Executing command on USB connect

2009-04-04 Thread Oliver Roeschke
Hi folks,

I'm using a HP Laserjet P1006 on a freebsd with cups to make the printer
available on the network.
Since this modell is one of the crapy-cheap-laserjets it has some
firmware you have to upload, everytime the printer has lost power.

Currently I'm doing this via a cron job once a hour, but it's not
satisfying, since the printer is located in the office of a customer and
at max he has to wait 1h until he can use the printer.

So my question is, how can I execute the command which uploads the
firmware (which is nothing more than a 'cat firmware  /dev/ugen0.1')
whenever the printer is connected?

Regards,
Olli



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


Re: Re: Ultrium 920 Autoloader Question

2009-04-04 Thread Jerry McAllister
On Fri, Apr 03, 2009 at 09:19:37PM -0500, jh...@socket.net wrote:

 
  Depends a little on what sort of software is on the tape drive.
  But, probably you can either use dump(8)/restore(8) or tar with
  no problem.   They can dump/restore to/from remote devices/files.
  
 
 No software on the drive. 

Well, there has to be some type of software -- or firmware -- to be
able to hang on the network.

jerry


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


Re: Executing command on USB connect

2009-04-04 Thread Vincent Hoffman
On 4/4/09 21:13, Oliver Roeschke wrote:
 Hi folks,

 I'm using a HP Laserjet P1006 on a freebsd with cups to make the printer
 available on the network.
 Since this modell is one of the crapy-cheap-laserjets it has some
 firmware you have to upload, everytime the printer has lost power.

 Currently I'm doing this via a cron job once a hour, but it's not
 satisfying, since the printer is located in the office of a customer and
 at max he has to wait 1h until he can use the printer.

 So my question is, how can I execute the command which uploads the
 firmware (which is nothing more than a 'cat firmware  /dev/ugen0.1')
 whenever the printer is connected?

 Regards,
 Olli


   
Sounds like a job for devd, there are a few examples in /etc/devd.conf
that do firmware downloading which should be enough to get you started.

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

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


OT: MySQL upgrade advice wanted _OFF-LIST_

2009-04-04 Thread Robert Huff

Any MySQL admins have a few cycles to spare privately?


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


Critical : My X went down

2009-04-04 Thread manish jain


Hi all,

In attempting to unlock some Python related mysteries (which neither 
python-list nor python-help would respond to despite repeated queries), 
I found myself recursively portupgrading myself right up the xorg 
distribution. That wasn't half as bad as the fact that - after all that 
effort - X does not even start now.


startx complains :

(EE) No devices detected.

Fatal server error:
no screens found
giving up.
xinit:  No such file or directory (errno 2):  unable to connect to X server
xinit:  No such process (errno 3):  Server error.


The Xorg log file says :


X.Org X Server 1.5.3
Release Date: 5 November 2008
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 7.1-RELEASE i386 
Current Operating System: FreeBSD unxfbsdi.local.lan 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan  1 14:37:25 UTC 2009 r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386

Build Date: 04 April 2009  05:44:56PM
 
	Before reporting problems, check http://wiki.x.org

to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: /var/log/Xorg.0.log, Time: Sun Apr  5 02:46:15 2009
(==) Using config file: /etc/X11/xorg.conf
(==) ServerLayout Simple Layout
(**) |--Screen Screen_1 (0)
(**) |   |--Monitor st105
(**) |   |--Device intel810
(**) |--Input Device Mouse1
(**) |--Input Device Keyboard1
(**) Option AllowEmptyInput off
(==) Automatically adding devices
(==) Automatically enabling devices
(==) Including the default font path 
/usr/local/lib/X11/fonts/misc/,/usr/local/lib/X11/fonts/TTF/,/usr/local/lib/X11/fonts/OTF,/usr/local/lib/X11/fonts/Type1/,/usr/local/lib/X11/fonts/100dpi/,/usr/local/lib/X11/fonts/75dpi/.
(**) FontPath set to:
/usr/local/lib/X11/fonts/misc/,
/usr/local/lib/X11/fonts/TTF/,
/usr/local/lib/X11/fonts/OTF,
/usr/local/lib/X11/fonts/Type1/,
/usr/local/lib/X11/fonts/100dpi/,
/usr/local/lib/X11/fonts/75dpi/,
/usr/local/lib/X11/fonts/bitstream-vera/,
/usr/local/lib/X11/fonts/cyrillic/,
/usr/local/lib/X11/fonts/misc/,
/usr/local/lib/X11/fonts/TTF/,
/usr/local/lib/X11/fonts/OTF,
/usr/local/lib/X11/fonts/Type1/,
/usr/local/lib/X11/fonts/100dpi/,
/usr/local/lib/X11/fonts/75dpi/
(**) ModulePath set to /usr/local/lib/xorg/modules
(II) Loader magic: 0x81bcde0
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.4
X.Org Video Driver: 4.1
X.Org XInput driver : 2.1
X.Org Server Extension : 1.1
X.Org Font Renderer : 0.6
(II) Loader running on freebsd
(--) Using syscons driver with X support (version 2.0)
(--) using VT number 9

(--) PCI:*(0...@0:1:0) Intel Corporation 82810 (CGC) Chipset Graphics 
Controller rev 3, Mem @ 0xe800/0, 0xeff8/0, BIOS @ 0x/65536
(II) System resource ranges:
[0] -1  0   0x0010 - 0x3fff (0x3ff0) MX[B]E(B)
[1] -1  0   0x000f - 0x000f (0x1) MX[B]
[2] -1  0   0x000c - 0x000e (0x3) MX[B]
[3] -1  0   0x - 0x0009 (0xa) MX[B]
[4] -1  0   0x - 0x (0x1) IX[B]
[5] -1  0   0x - 0x00ff (0x100) IX[B]
(II) extmod will be loaded. This was enabled by default and also specified in 
the config file.
(II) dbe will be loaded. This was enabled by default and also specified in 
the config file.
(II) glx will be loaded. This was enabled by default and also specified in 
the config file.
(II) freetype will be loaded. This was enabled by default and also specified 
in the config file.
(II) record will be loaded by default.
(II) dri will be loaded. This was enabled by default and also specified in 
the config file.
(II) LoadModule: dbe

(II) Loading /usr/local/lib/xorg/modules/extensions//libdbe.so
(II) Module dbe: vendor=X.Org Foundation
compiled for 1.5.3, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 1.1
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: glx

(II) Loading /usr/local/lib/xorg/modules/extensions//libglx.so
(II) Module glx: vendor=X.Org Foundation
compiled for 1.5.3, module version = 1.0.0
ABI class: X.Org Server Extension, version 1.1
(==) AIGLX disabled
(==) Exporting typical set of GLX visuals
(II) Loading extension GLX
(II) LoadModule: freetype

(II) Loading /usr/local/lib/xorg/modules/fonts//libfreetype.so
(II) Module freetype: vendor=X.Org Foundation  the After X-TT Project
compiled for 1.5.3, module version = 2.1.0
Module class: X.Org Font Renderer
ABI class: X.Org Font Renderer, version 0.6
(II) Loading font FreeType
(II) LoadModule: dri

(II) Loading /usr/local/lib/xorg/modules/extensions//libdri.so
(II) Module dri: 

The FreeBSD Diary: 2009-04-04

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

RECENT ARTICLES:

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

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

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

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

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

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

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

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

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

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


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

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


Re: new package system proposal

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

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

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

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

AFAIK pkg_add currently does not download the ports tree at all --
that is done using csup or portsnap -- but it can be directed to
a release set or other remote package repository via the -r flag.
My only issue with that approach is that, last I knew, there was
no way to specify a mix of local and remote repositories (to deal
with the case where I have already downloded some subset of what
I end up needing, so I want pkg_add to search locally first and
use the remote repository only for packages that it can't find
locally).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: going from cvs to svnq

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

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

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

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

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

http://wiki.freebsd.org/SubversionPrimer

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


Re: portupgrade fu... AKA there has to be a better way

2009-04-04 Thread Doug Poland

On Sat, April 4, 2009 14:06, Matthew Seaman wrote:
 Doug Poland wrote:
 Hello,

 I'm upgrading a server from 6.4 to 7.1 and am going through the
 relative pain of re-compiling all the ports.  It's not as easy
 portupgrade -af because of all the special handling instructions
 of many ports.

 I have not found an easy way to keep track of the ports that need
 to be forcibly updated but have not undergone a version change.
 Because I approach the upgrade in steps, I need to run portupgrade
 several times but want to exclude stuff already compiled under 7.x.

 What I need is a command like:

 # portupgrade -af -x already compiled on 7


 Suggestions, comments, rebukes welcome.

 Assuming you start the upgrade today, then:

 # portupgrade -af -x =2009-04-04

hmmm, I don't think it gets much easier than that.  Thanks!


-- 
Regards,
Doug

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


Re: upgrade of databases/sqlite3 to 3.6.11 fails

2009-04-04 Thread Sergio de Almeida Lenzi
it is generate by the libtool code 
at /usr/local/bin/libtool

edit that file (search for the words not ending 
and comment those 2 lines,

re-install the package


For me it works...

Sergio

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


Re: Recovering partitions from disk image? *resolved*

2009-04-04 Thread snott

If anyone's interested, the last post I made about doing a bsdlabel, fsck,
mdconfig etc on the damaged disk image worked.  I have recovered all my
files!  Hooray!!!

Skye

-- 
View this message in context: 
http://www.nabble.com/Recovering-partitions-from-disk-image--tp22862006p22889910.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

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


Updating Perl..

2009-04-04 Thread Leslie Jensen

Hello list.

When one updates perl, one should rebuild all ports dependend on perl 
according to the UPDATING file.


I'm just wondering, isn't the script perl-after-upgrade supposed to do 
the work needed, so that one can save the time of upgrading the ports?


Thanks.

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