Re: Book recommendations (slightly OT)

2011-07-27 Thread Matthew Seaman
On 26/07/2011 20:57, Mark Moellering wrote:
> I want to automate some tasks, creating directories, file editing, etc. 
> I was going to pick up a book on shell scripting but wanted to ask the
> list if;
> A) I am barking up the wrong tree and should use something else.

No -- automating routine tasks is exactly what shell scripting is for.

> B) If I am headed in the right direction, what is the best book /
> resource to use?

Personally, I wouldn't spend any money on textbooks trying to teach you
shell programming.  Not because there aren't any good books available,
but because the free on-line resources are more than adequate to get you
going.

First of all, choose your shell.  On FreeBSD I'd say that it's got to be
/bin/sh for programming.  This is the POSIX compatible Bourne Shell.  If
you write your scripts to the POSIX standard then you'll be able to run
them just about anywhere eg. using bash on a Linux box.  The converse is
not true.

You could learn bash -- it is pretty much a de-facto standard nowadays
-- but bash is pretty bloated with lots of interactive usage stuff, and
there's nothing you can't do in POSIX shell that you can in bash.  Also,
bash has to be installed from ports, which might not seem like a big
deal (usually it isn't), but it tends to become really quite important
when you're dealing with systems in extremis.

Don't bother trying to use tcsh for programming -- that's not what it is
for.  tcsh is great interactively (it's what I use for my login shell),
but a pain in the bum for scripting.

Now, resources for learning how to program in /bin/sh --

 * The sh(1) man page is invaluable.  It's a really nicely written and
   concise description of what sh can do.  I'm constantly referring to
   this man page when shell scripting.

 * Code examples.  Copying from what someone else wrote really is the
   best way to get ahead.  There are many good examples that come with
   FreeBSD -- look at the periodic scripts, rc scripts (including from
   ports) and things like mergemaster(1).  For instance, if you want to
   see how to deal with command line arguments, the standard idiom is
   very clearly demonstrated in mergemaster.

 * On-line resources like http://tldp.org/LDP/abs/html/ (Yes -- this is
   all about bash, but there's a lot of overlap with sh)

 * Learn about all of those Unixy commands.  /bin/sh in many ways is
   designed as a means to glue together compiled C programs to achieve a
   desired effect.  You should be familiar with programs like test(1),
   jot(1), comm(1), xargs(1), printf(1), comm(1), sort(1).  Not to
   mention those stalwarts of shell programming sed(1) and awk(1) --
   although each of those is in itself is a programming language about
   as complex as pure shell.

Counterintuitively, given the above, the best shell scripts use built-in
shell capabilities rather than calling out to external programmes
wherever possible.  eg. Using the variable prefix / suffix selection
operators: ${progname%%*/} has much the same effect as basename(1).

All the usual programming best-practices apply in shell scripting: write
clean, well structured code divided into relatively short functions each
of which has a single specific purpose.  Avoid overuse of global
variables and magic side-effects.  Prefer clarity over cleverness.
Comment liberally, but make sure your comments add value.  Choose
conventions (eg. on variable naming and code formatting) and stick to them.

One other piece of advice -- as a matter of style, try and avoid
interactive behaviour in scripts.  If you prompt a user to type in some
value, then it makes it very hard to call your script from another
script.  Instead, pass in any values you need using the command line, or
by using environment variables.

Cheers,

Matthew

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



signature.asc
Description: OpenPGP digital signature


Re: Hi installing on windows dual boot

2011-07-27 Thread Matthew Seaman
On 26/07/2011 12:06, Ganesh Khedkar wrote:
>  I am new to FreeBSD , just wanted to give one suggestion that , Ubuntu 
> linux have given one 
> Nice facility to user that they can easily install Ubuntu in windows and any 
> drive we want .
> Even we can assign size to that drive . So cant we provide this facility 
> to our user .
> So that people can experience freeBSD.

Hmmm... There's nothing wrong with this idea, but I doubt it's going to
be implemented in FreeBSD any time soon.  (Only if someone steps up to
the plate and provides patches probably.)  At the moment, FreeBSD is in
the throws of replacing the old sysinstall(8) with a brand-new, written
from scratch installer.  The focus is on getting the installer to
support all of the capabilities of the OS like ZFS or gmirror, and what
you propose is not a priority right now.

You can already build a dual-boot system, but you'll need to know how to
go beyond what the installer provides.  This is a core FreeBSD concept:
learning is desirable, so the OS doesn't try and hide the gory details
under a glossy GUI.  It's a bit off-putting to beginners, but you're
only a beginner for a relatively short time, and the FreeBSD way really
does pay dividends once you have some knowledge.

I heartily recommend PC-BSD for any beginner that wants to get their
feet wet and build a desktop BSD system -- essentially the same role
that Ubuntu is aimed at -- not that it isn't good for seasoned old
campaigners that just want to spin up a desktop quickly either.

Cheers,

Matthew

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



signature.asc
Description: OpenPGP digital signature


Re: Book recommendations (slightly OT)

2011-07-27 Thread C. P. Ghost
On Tue, Jul 26, 2011 at 9:57 PM, Mark Moellering  wrote:
> I want to automate some tasks, creating directories, file editing, etc.  I
> was going to pick up a book on shell scripting but wanted to ask the list
> if;
> A) I am barking up the wrong tree and should use something else.
> B) If I am headed in the right direction, what is the best book / resource
> to use?

Most automation can be done with shell scripting, but there are
situations where shell won't cut it. Then, you may want to give
Expect a try (hint: combine it with netcat a.k.a. nc and other tools).
If you don't like its TCL syntax, there's a port to Python in
misc/py-pexpect:

http://pexpect.sourceforge.net/

Good luck.

> Thanks in advance
>
> Mark Moellering

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Hi installing on windows dual boot

2011-07-27 Thread perryh
Ryan Coleman  wrote:

> A heads up about your footer: This email goes onto a mailing
> list that is available via an online archive... your "terms"
> are violated just by sending an email to this mailing list.

Not necessarily.  It says [emphasis added]:

> > The contents of this eMail ... should not be disclosed
> > to, ... anyone _other than the intended addressee(s)_ ...
> > Any _unauthorized_ review ... is strictly prohibited ...

I don't see a problem provided the archived mailing list is
considered to be among "the intended addressee(s)" and the
sender is considered, by the act of sending it to an archived
list, to have authorized the archiving (and implicitly any
subsequent use of the archive).
___
freebsd-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 get ip address automatically from different dhcp server

2011-07-27 Thread Edgar Rodolfo
2011/7/26, dave jones :
> Hi,
>
> I cat get an IP address from dhcp server by adding the line in /etc/rc.conf:
>
> ifconfig_em0="DHCP"
>
> If I move my laptop to another place, I have to manually run "dhclient em0"
> to get an IP. Otherwise, it won't get an IP automatically.
>
> My question is it's possible to get ip address automatically from different
> dhcp server? thanks.

of course, if you system FreeBSD has ifconfig_em0="DHCP" enable, it
will recive parameters as ip, dns, gateway; is necessary that where
you connect your laptop e.g. router or switch, should be the network
working with some dhcp server, many router for default have it
enable...
>
> Regards,
> Dave.
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>


-- 
Edguitar ;)
http://cybernautape.blogspot.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"


legal notices at the end of emails (was: Re: Hi installing on windows dual boot)

2011-07-27 Thread Damien Fleuriot
On 7/27/11 5:11 PM, per...@pluto.rain.com wrote:
> Ryan Coleman  wrote:
> 
>> A heads up about your footer: This email goes onto a mailing
>> list that is available via an online archive... your "terms"
>> are violated just by sending an email to this mailing list.
> 
> Not necessarily.  It says [emphasis added]:
> 
>>> The contents of this eMail ... should not be disclosed
>>> to, ... anyone _other than the intended addressee(s)_ ...
>>> Any _unauthorized_ review ... is strictly prohibited ...
> 
> I don't see a problem provided the archived mailing list is
> considered to be among "the intended addressee(s)" and the
> sender is considered, by the act of sending it to an archived
> list, to have authorized the archiving (and implicitly any
> subsequent use of the archive).
>

All the same, any of you guys ever take this kind of notice seriously ?
I mean, really ?


See, you've actually read the e-mail prior to reading (and thus
accepting or refusing) the "legal" notice.

It's like me sending you an e-mail, with a footer saying "By reading
this e-mail you hereby forfeit all of your fortune, properties and
claims in favor of Pwnd LTD, who shall be the sole and universal
beneficiary, and has just done you good.".

Just because they appear in an e-mail and you've read that e-mail
doesn't mean you've acknowledged said terms, let alone accepted them.


I for one, on principle, decline to abide by such terms, which may in no
case be enforced on me, seeing I never accepted them in the first place.

One would have to get my consent to abide by their legal notice THEN
send me the actual contents.

Now, that would work.
Then again, on principle I would decline said terms so they couldn't
send me whatever they wanted...



Discuss ?
___
freebsd-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: legal notices at the end of emails

2011-07-27 Thread Svein Skogen (Listmail account)
On 27.07.2011 13:01, Damien Fleuriot wrote:
> On 7/27/11 5:11 PM, per...@pluto.rain.com wrote:
>> Ryan Coleman  wrote:
>>
>>> A heads up about your footer: This email goes onto a mailing
>>> list that is available via an online archive... your "terms"
>>> are violated just by sending an email to this mailing list.
>>
>> Not necessarily.  It says [emphasis added]:
>>
 The contents of this eMail ... should not be disclosed
 to, ... anyone _other than the intended addressee(s)_ ...
 Any _unauthorized_ review ... is strictly prohibited ...
>>
>> I don't see a problem provided the archived mailing list is
>> considered to be among "the intended addressee(s)" and the
>> sender is considered, by the act of sending it to an archived
>> list, to have authorized the archiving (and implicitly any
>> subsequent use of the archive).
>>
> 
> All the same, any of you guys ever take this kind of notice seriously ?
> I mean, really ?
> 
> 
> See, you've actually read the e-mail prior to reading (and thus
> accepting or refusing) the "legal" notice.
> 
> It's like me sending you an e-mail, with a footer saying "By reading
> this e-mail you hereby forfeit all of your fortune, properties and
> claims in favor of Pwnd LTD, who shall be the sole and universal
> beneficiary, and has just done you good.".
> 
> Just because they appear in an e-mail and you've read that e-mail
> doesn't mean you've acknowledged said terms, let alone accepted them.

Exactly. You did not solicit an agreement with the sender before the
agreement appeared, and since it required no active part on your half,
it is non-binding.

> I for one, on principle, decline to abide by such terms, which may in no
> case be enforced on me, seeing I never accepted them in the first place.

I think the reasoning is the legal principle of "whatever people think
we can get away with, because we have a lawyer so slippery PTFT
manufacturers are suing us for patent violations"

> One would have to get my consent to abide by their legal notice THEN
> send me the actual contents.
> 
> Now, that would work.
> Then again, on principle I would decline said terms so they couldn't
> send me whatever they wanted...

Those e-mail-footers of legalese-sounding mumbo-jumbo threatening
voodoo-action against you and anybody standing next to you, should you
not be the sole designated, implied or expressed, recipient of that
e-mail, are _LESS_ binding than "shrinkwrap EULAs", and has less actual
legal content than the gold-content of seawater. They add the footers to
sound important. It's a mild case of narcissism.

//Svein
-- 
+---+---
  /"\   |Svein Skogen   | sv...@d80.iso100.no
  \ /   |Solberg Østli 9| PGP Key:  0xE5E76831
   X|2020 Skedsmokorset | sv...@jernhuset.no
  / \   |Norway | PGP Key:  0xCE96CE13
|   | sv...@stillbilde.net
 ascii  |   | PGP Key:  0x58CD33B6
 ribbon |System Admin   | svein-listm...@stillbilde.net
Campaign|stillbilde.net | PGP Key:  0x22D494A4
+---+---
|msn messenger: | Mobile Phone: +47 907 03 575
|sv...@jernhuset.no | RIPE handle:SS16503-RIPE
+---+---
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

 Picture Gallery:
  https://gallery.stillbilde.net/v/svein/




signature.asc
Description: OpenPGP digital signature


Re: legal notices at the end of emails

2011-07-27 Thread Jerry
On Wed, 27 Jul 2011 13:08:04 +0200
Svein Skogen (Listmail account) articulated:

> On 27.07.2011 13:01, Damien Fleuriot wrote:
> > On 7/27/11 5:11 PM, per...@pluto.rain.com wrote:
> >> Ryan Coleman  wrote:
> >>
> >>> A heads up about your footer: This email goes onto a mailing
> >>> list that is available via an online archive... your "terms"
> >>> are violated just by sending an email to this mailing list.
> >>
> >> Not necessarily.  It says [emphasis added]:
> >>
>  The contents of this eMail ... should not be disclosed
>  to, ... anyone _other than the intended addressee(s)_ ...
>  Any _unauthorized_ review ... is strictly prohibited ...
> >>
> >> I don't see a problem provided the archived mailing list is
> >> considered to be among "the intended addressee(s)" and the
> >> sender is considered, by the act of sending it to an archived
> >> list, to have authorized the archiving (and implicitly any
> >> subsequent use of the archive).
> >>
> > 
> > All the same, any of you guys ever take this kind of notice
> > seriously ? I mean, really ?
> > 
> > 
> > See, you've actually read the e-mail prior to reading (and thus
> > accepting or refusing) the "legal" notice.
> > 
> > It's like me sending you an e-mail, with a footer saying "By reading
> > this e-mail you hereby forfeit all of your fortune, properties and
> > claims in favor of Pwnd LTD, who shall be the sole and universal
> > beneficiary, and has just done you good.".
> > 
> > Just because they appear in an e-mail and you've read that e-mail
> > doesn't mean you've acknowledged said terms, let alone accepted
> > them.
> 
> Exactly. You did not solicit an agreement with the sender before the
> agreement appeared, and since it required no active part on your half,
> it is non-binding.
> 
> > I for one, on principle, decline to abide by such terms, which may
> > in no case be enforced on me, seeing I never accepted them in the
> > first place.
> 
> I think the reasoning is the legal principle of "whatever people think
> we can get away with, because we have a lawyer so slippery PTFT
> manufacturers are suing us for patent violations"
> 
> > One would have to get my consent to abide by their legal notice THEN
> > send me the actual contents.
> > 
> > Now, that would work.
> > Then again, on principle I would decline said terms so they couldn't
> > send me whatever they wanted...
> 
> Those e-mail-footers of legalese-sounding mumbo-jumbo threatening
> voodoo-action against you and anybody standing next to you, should you
> not be the sole designated, implied or expressed, recipient of that
> e-mail, are _LESS_ binding than "shrinkwrap EULAs", and has less
> actual legal content than the gold-content of seawater. They add the
> footers to sound important. It's a mild case of narcissism.
> 
> //Svein

I find it rather amusing that anyone actually reads, far less pays any
attention to those useless pieces of garbage (disclaimers). Although I
do find it interesting that some pseudo Internet sheriff will condemn
the use of HTML mail in forums as wasted bandwidth yet stay mum on the
killing of defenseless electrons with the implementation of these
pointless disclaimers.

-- 
Jerry

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to which they
are addressed. If you are not the intended recipient of this
transmission, please delete it immediately.

Obviously, I am the idiot who sent it to you by mistake. Furthermore,
there is no way I can force you to delete it. Worse, by the time you
have reached this disclaimer you have all ready read the document.
Telling you to forget it would seem absurd. In any event, I have no
legal right to force you to take any action upon this email anyway.

This entire disclaimer is just a waste of everyone's time and
bandwidth. Therefore, let us just forget the whole thing and enjoy a
cold beer instead.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Hi installing on windows dual boot

2011-07-27 Thread Polytropon
On Tue, 26 Jul 2011 11:06:57 +, Ganesh Khedkar wrote:
> Hi all, 
>  I am new to FreeBSD , just wanted to give one suggestion that , Ubuntu 
> linux have given one 
> Nice facility to user that they can easily install Ubuntu in windows and any 
> drive we want .
> Even we can assign size to that drive . So cant we provide this facility 
> to our user .
> So that people can experience freeBSD.

Currently you cannot install FreeBSD from withing "Windows",
if this is what you mean. FreeBSD is an operating system
that needs to be booted _on_ the machine it should be
installed to, as the installer requires that OS - just
the same way you cannot simply "try" a "Windows" by
installing it into, let's say... Solaris. :-)

Hint 1: You need to install FreeBSD in order to use it.
This is done by booting FreeBSD.

However, you can "install" (i. e. use) a system image for
a virtualisation software, e. g. for VMWare or VirtualPC.
You can use the default installation approaches (from CD
or DVD, from USB drive), or you can download a "turnkey"
solution that provides a preinstalled and preconfigured
system that you can run within "Windows" (using the VM
solution).

An example is VirtualBSD: http://www.virtualbsd.info/

Hint 2: You can use a VM solution.

You can _easily_ install a dual-boot solution for FreeBSD
and "Windows", but you have to do that from within the
FreeBSD installer, as mentioned above.

You can _also_ use PC-BSD to install a "normal" FreeBSD,
as well as the PC-BSD operating system (derived from FreeBSD).
This is also simple and easy.

Find more info here: http://www.pcbsd.org/

Hint 3: Dual-booting is easy. :-)

During _any_ of the installation methods mentioned, you
can define the target drive and the size of your installation.
Typically it is a hard disk, but it doesn't have to be.

More information is provided by the FreeBSD Handbook and
the FAQ, which you'll find here:

http://www.freebsd.org/doc/handbook/

http://www.freebsd.org/doc/en/books/faq/

FreeBSD provides excellent documentation that helps you
to do the easy task of installation.


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


Re: Command failed [exit code 1]: /usr/local/sbin/portinstall misc/shared-mime-info

2011-07-27 Thread Frank Shute
On Wed, Jul 27, 2011 at 01:41:15AM -0500, Antonio Olivares wrote:
>
> Dear kind folks,
> 
> I got me a new hard drive on one of my machines and installed FreeBSD
> 8.2 amd64 on it.   I tried to run
> 
> # portupgrade -R firefox
> which would update firefox to latest and all the ports that depend on
> it, but I am encountering a problem with shared-mime-info.
> 
> 
> quadcore# portupgrade -R firefox
> [Updating the pkgdb  in /var/db/pkg ... - 399
> packages found (-1 +0) (...) done]
> Stale dependency: firefox-4.0_1,1 --> shared-mime-info-0.80 --
> manually run 'pkgdb -F' to fix, or specify -O to force.
> quadcore# pkgdb -F
> --->  Checking the package registry database
> Duplicated origin: print/font-amsfonts - amspsfnt-1.0_5 cmpsfont-1.0_6
> Unregister any of them? [no] y
>   Unregister amspsfnt-1.0_5 keeping the installed files intact? [no] y
>   -> cmpsfont-1.0_6 is kept.
>   --> Saving the amspsfnt-1.0_5's +CONTENTS file as
> /var/db/pkg/cmpsfont-1.0_6/+CONTENTS.amspsfnt-1.0_5
>   --> Unregistering amspsfnt-1.0_5
>   --> Done.
> [Updating the pkgdb  in /var/db/pkg ... - 398
> packages found (-1 +0) (...) done]
> Stale dependency: ImageMagick-6.6.7.10_1 -> shared-mime-info-0.80
> (misc/shared-mime-info):
> Install stale dependency? ([y]es/[n]o/[a]ll) [yes] y
> [Gathering depends for misc/shared-mime-info
> . done]
> --->  Installing 'shared-mime-info-0.80_1' from a port (misc/shared-mime-info)
> --->  Building '/usr/ports/misc/shared-mime-info'
> ===>  Cleaning for shared-mime-info-0.80_1
> ===>  Vulnerability check disabled, database not found
> ===>  License check disabled, port has not defined LICENSE
> ===>  Extracting for shared-mime-info-0.80_1
> => SHA256 Checksum OK for shared-mime-info-0.80.tar.bz2.
> ===>  Patching for shared-mime-info-0.80_1
> ===>  Applying FreeBSD patches for shared-mime-info-0.80_1
> ===>   shared-mime-info-0.80_1 depends on executable: gmake - found
> ===>   shared-mime-info-0.80_1 depends on file:
> /usr/local/bin/intltool-extract - found
> ===>   shared-mime-info-0.80_1 depends on executable: pkg-config - found
> ===>   shared-mime-info-0.80_1 depends on shared library: intl - found
> ===>   shared-mime-info-0.80_1 depends on shared library: glib-2.0.0 - found
> ===>   shared-mime-info-0.80_1 depends on shared library: xml2.5 - found
> ===>  Configuring for shared-mime-info-0.80_1
> checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... ./install-sh -c -d
> checking for gawk... no
> checking for mawk... no
> checking for nawk... nawk
> checking whether gmake sets $(MAKE)... yes
> checking for gcc... cc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether cc accepts -g... yes
> checking for cc option to accept ISO C89... none needed
> checking for style of include used by gmake... GNU
> checking dependency style of cc... gcc3
> checking for an ANSI C-conforming const... yes
> checking whether NLS is requested... yes
> checking for intltool >= 0.35.0... 0.41.1 found
> checking for intltool-update... /usr/local/bin/intltool-update
> checking for intltool-merge... /usr/local/bin/intltool-merge
> checking for intltool-extract... /usr/local/bin/intltool-extract
> checking for xgettext... /usr/local/bin/xgettext
> checking for msgmerge... /usr/local/bin/msgmerge
> checking for msgfmt... /usr/local/bin/msgfmt
> checking for gmsgfmt... /usr/local/bin/msgfmt
> checking for perl... /usr/bin/perl
> checking for perl >= 5.8.1... 5.12.4
> checking for XML::Parser... configure: error: XML::Parser perl module
> is required for intltool
> ===>  Script "configure" failed unexpectedly.
> Please run the gnomelogalyzer, available from
> "http://www.freebsd.org/gnome/gnomelogalyzer.sh";, which will diagnose the
> problem and suggest a solution. If - and only if - the gnomelogalyzer cannot
> solve the problem, report the build failure to the FreeBSD GNOME team at
> gn...@freebsd.org, and attach (a)
> "/usr/ports/misc/shared-mime-info/work/shared-mime-info-0.80/config.log", (b)
> the output of the failed make command, and (c) the gnomelogalyzer output.
> Also, it might be a good idea to provide an overview of all packages installed
> on your system (i.e. an `ls /var/db/pkg`). Put your attachment up on any
> website, copy-and-paste into http://freebsd-gnome.pastebin.com, or use
> send-pr(1) with the attachment. Try to avoid sending any attachments to the
> mailing list (gn...@freebsd.org), because attachments sent to FreeBSD mailing
> lists are usually discarded by the mailing list software.
> *** Error code 1
> 
> Stop in /usr/ports/misc/shared-mime-info.
> ** Command failed [exit code 1

Re: legal notices at the end of emails

2011-07-27 Thread Ryan Coleman

On Jul 27, 2011, at 6:30 AM, Jerry wrote:

> On Wed, 27 Jul 2011 13:08:04 +0200
> Svein Skogen (Listmail account) articulated:
> 
>> On 27.07.2011 13:01, Damien Fleuriot wrote:
>>> On 7/27/11 5:11 PM, per...@pluto.rain.com wrote:
 Ryan Coleman  wrote:
 
> A heads up about your footer: This email goes onto a mailing
> list that is available via an online archive... your "terms"
> are violated just by sending an email to this mailing list.
 
 Not necessarily.  It says [emphasis added]:
 
>> The contents of this eMail ... should not be disclosed
>> to, ... anyone _other than the intended addressee(s)_ ...
>> Any _unauthorized_ review ... is strictly prohibited ...
 
 I don't see a problem provided the archived mailing list is
 considered to be among "the intended addressee(s)" and the
 sender is considered, by the act of sending it to an archived
 list, to have authorized the archiving (and implicitly any
 subsequent use of the archive).
 
>>> 
>>> All the same, any of you guys ever take this kind of notice
>>> seriously ? I mean, really ?
>>> 
>>> 
>>> See, you've actually read the e-mail prior to reading (and thus
>>> accepting or refusing) the "legal" notice.
>>> 
>>> It's like me sending you an e-mail, with a footer saying "By reading
>>> this e-mail you hereby forfeit all of your fortune, properties and
>>> claims in favor of Pwnd LTD, who shall be the sole and universal
>>> beneficiary, and has just done you good.".
>>> 
>>> Just because they appear in an e-mail and you've read that e-mail
>>> doesn't mean you've acknowledged said terms, let alone accepted
>>> them.
>> 
>> Exactly. You did not solicit an agreement with the sender before the
>> agreement appeared, and since it required no active part on your half,
>> it is non-binding.
>> 
>>> I for one, on principle, decline to abide by such terms, which may
>>> in no case be enforced on me, seeing I never accepted them in the
>>> first place.
>> 
>> I think the reasoning is the legal principle of "whatever people think
>> we can get away with, because we have a lawyer so slippery PTFT
>> manufacturers are suing us for patent violations"
>> 
>>> One would have to get my consent to abide by their legal notice THEN
>>> send me the actual contents.
>>> 
>>> Now, that would work.
>>> Then again, on principle I would decline said terms so they couldn't
>>> send me whatever they wanted...
>> 
>> Those e-mail-footers of legalese-sounding mumbo-jumbo threatening
>> voodoo-action against you and anybody standing next to you, should you
>> not be the sole designated, implied or expressed, recipient of that
>> e-mail, are _LESS_ binding than "shrinkwrap EULAs", and has less
>> actual legal content than the gold-content of seawater. They add the
>> footers to sound important. It's a mild case of narcissism.
>> 
>> //Svein
> 
> I find it rather amusing that anyone actually reads, far less pays any
> attention to those useless pieces of garbage (disclaimers). Although I
> do find it interesting that some pseudo Internet sheriff will condemn
> the use of HTML mail in forums as wasted bandwidth yet stay mum on the
> killing of defenseless electrons with the implementation of these
> pointless disclaimers.
> 
> -- 
> Jerry
> 
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to which they
> are addressed. If you are not the intended recipient of this
> transmission, please delete it immediately.
> 
> Obviously, I am the idiot who sent it to you by mistake. Furthermore,
> there is no way I can force you to delete it. Worse, by the time you
> have reached this disclaimer you have all ready read the document.
> Telling you to forget it would seem absurd. In any event, I have no
> legal right to force you to take any action upon this email anyway.
> 
> This entire disclaimer is just a waste of everyone's time and
> bandwidth. Therefore, let us just forget the whole thing and enjoy a
> cold beer instead.
> _


Nice disclaimer. :)

They have their place. CPAs, Bankers, mortgage, transferring of sensitive data, 
etc. But they really mean nothing. :)

___
freebsd-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: Command failed [exit code 1]: /usr/local/sbin/portinstall misc/shared-mime-info

2011-07-27 Thread Antonio Olivares
>> Any hints/pointers to resolve this issue?
>>
>> Thanks in Advance,
>>
>> Antonio
>
> # portupgrade -Nv p5-XML-Parser
>
>
> Regards,
>
> --

Frank,

Thank you very much, but it still fails:

quadcore# portupgrade -Nv p5-XML-Parser
--->  Session started at: Wed, 27 Jul 2011 09:33:21 -0500
[Updating the pkgdb  in /var/db/pkg ... - 449
packages found (-0 +1) . done]
** Found already installed package(s) of 'textproc/p5-XML-Parser':
p5-XML-Parser-2.40
** None has been installed or upgraded.
--->  Session ended at: Wed, 27 Jul 2011 09:33:22 -0500 (consumed 00:00:01)
quadcore# portupgrade -R firefox
Stale dependency: firefox-5.0,1 --> shared-mime-info-0.80 -- manually
run 'pkgdb -F' to fix, or specify -O to force.


I have updated firefox to latest using
cd /usr/ports/www/firefox/
make install clean

and I am up to date on firefox, but If I issue the command to update
all the deps, I get above error :(

Regards,

Antonio
___
freebsd-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: Book recommendations (slightly OT)

2011-07-27 Thread doug



On Tue, 26 Jul 2011, Mark Moellering wrote:

I want to automate some tasks, creating directories, file editing, etc.  I 
was going to pick up a book on shell scripting but wanted to ask the list if;

A) I am barking up the wrong tree and should use something else.
B) If I am headed in the right direction, what is the best book / resource to 
use?


Thanks in advance

Mark Moellering


I second Matthew's sh recommendation. Doing admin stuff is much much easier if 
you learn the basics of regular expressions, awk, sed and xargs. Also find. The 
daily jobs and the scripts in /etc have lots of coding examples. Of course 
mergermaster and portmaster are the king and queen of sh scripts. Google will 
yield thousands of simple examples of all the above and more.


If you are doing lexical stuff perl is hard to beat.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Hi installing on windows dual boot

2011-07-27 Thread Daniel Staal

On Wed, July 27, 2011 7:58 am, Polytropon wrote:
> On Tue, 26 Jul 2011 11:06:57 +, Ganesh Khedkar wrote:
>> Hi all,
>>  I am new to FreeBSD , just wanted to give one suggestion that ,
>> Ubuntu linux have given one
>> Nice facility to user that they can easily install Ubuntu in windows and
>> any drive we want .
>> Even we can assign size to that drive . So cant we provide this
>> facility to our user .
>> So that people can experience freeBSD.
>
> Currently you cannot install FreeBSD from withing "Windows",
> if this is what you mean. FreeBSD is an operating system
> that needs to be booted _on_ the machine it should be
> installed to, as the installer requires that OS - just
> the same way you cannot simply "try" a "Windows" by
> installing it into, let's say... Solaris. :-)

I think the original poster was referring to the fact that Ubuntu actually
has an installer that can run as a Windows application, and will resize
your hard drive for you and install a dual-boot setup.  It does this while
you are running Windows, although it has to reboot the machine.  (Which it
will do automatically for you.)

It's very slick, and would be an interesting addition to FreeBSD, but I
don't think it's likely to be something that will get worked on soon. 
Ubuntu is targeted at non-technical users, especially ones not likely to
have run Linux (or any other open-source OS) before.  FreeBSD is largely
targeted at more technical users, and at the server space instead of the
desktop.  So such a tool would be a high priority for Ubuntu (as it makes
installing the OS much easier for a newbie), it's not the top of the list
for FreeBSD.

Daniel T. Staal

---
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---

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


Re: Command failed [exit code 1]: /usr/local/sbin/portinstall misc/shared-mime-info

2011-07-27 Thread Antonio Olivares
@ALL

On Wed, Jul 27, 2011 at 9:36 AM, Antonio Olivares
 wrote:
>>> Any hints/pointers to resolve this issue?
>>>
>>> Thanks in Advance,
>>>
>>> Antonio
>>
>> # portupgrade -Nv p5-XML-Parser
>>
>>
>> Regards,
>>
>> --
>
> Frank,
>
> Thank you very much, but it still fails:
>
> quadcore# portupgrade -Nv p5-XML-Parser
> --->  Session started at: Wed, 27 Jul 2011 09:33:21 -0500
> [Updating the pkgdb  in /var/db/pkg ... - 449
> packages found (-0 +1) . done]
> ** Found already installed package(s) of 'textproc/p5-XML-Parser':
> p5-XML-Parser-2.40
> ** None has been installed or upgraded.
> --->  Session ended at: Wed, 27 Jul 2011 09:33:22 -0500 (consumed 00:00:01)
> quadcore# portupgrade -R firefox
> Stale dependency: firefox-5.0,1 --> shared-mime-info-0.80 -- manually
> run 'pkgdb -F' to fix, or specify -O to force.
>
>
> I have updated firefox to latest using
> cd /usr/ports/www/firefox/
> make install clean
>
> and I am up to date on firefox, but If I issue the command to update
> all the deps, I get above error :(
>
> Regards,
>
> Antonio
>

I downloaded the package suggested[gnomelogalyzer.sh] and ran the two
suggested commands, one was related to what you suggested, and the
second command suggested

quadcore# portupgrade -f p5-\*
quadcore# pkgdb -F

IT has fixed things up:

[Updating the pkgdb  in /var/db/pkg ... - 448
packages found (-1 +0) (...) done]
--->  Installing the new version via the port
===>  Installing for p5-XML-Parser-2.40
===>   p5-XML-Parser-2.40 depends on file: /usr/local/bin/perl5.12.4 - found
===>   p5-XML-Parser-2.40 depends on shared library: expat.6 - found
===>   Generating temporary packing list
Files found in blib/arch: installing files in blib/lib into
architecture dependent library tree
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/auto/XML/Parser/Expat/Expat.so
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/auto/XML/Parser/Expat/Expat.bs
Installing /usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser.pm
Installing /usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/LWPExternEnt.pl
Installing /usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Expat.pm
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/x-sjis-cp932.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/iso-8859-7.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/iso-8859-10.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/ibm866.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/iso-8859-9.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/iso-8859-11.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/x-euc-jp-unicode.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/iso-8859-14.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/iso-8859-1.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/iso-8859-6.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/big5.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/windows-1255.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/iso-8859-15.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/x-sjis-jdk117.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/x-sjis-unicode.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/windows-1251.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/iso-8859-5.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/koi8-r.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/README
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/euc-kr.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/windows-1250.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/windows-1252.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/Japanese_Encodings.msg
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/iso-8859-3.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/iso-8859-8.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/iso-8859-4.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/x-euc-jp-jisx0221.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/iso-8859-13.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/iso-8859-2.enc
Installing 
/usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Encodings/x-sjis-jisx0221.enc
Installing /usr/local/lib/perl5/site_perl/5.12.4/mach/XML/Parser/Style/Tree.pm
Installing /usr/local/lib/

Re: "zpool remove" locks up ZFS under amd64 RELENG_8

2011-07-27 Thread Daniel Staal

On Wed, July 27, 2011 1:03 am, Dennis Glatting wrote:
>
> I attached a SSD as a ZIL to a RAIDz pool, which is a fairly useless thing
> to do but I am testing. If I try to remove the SSD ZIL the zpool command
> does not return and in another window a "zpool status" also doesn't return
> or print anything, typifying a lockup. I also have a SSD attached to the
> pool as a cache.

Not that useless, if the SSD has a faster write time and you are doing
lots of writes to the ZFS pool.  ;)

> iirc# zpool upgrade
> This system is currently running ZFS pool version 28.
>
> All pools are formatted using this version.

Ok, so the most obvious reason is out (that ZILs can't be removed under
the version of ZFS that ships with 8.2), but it means you must have a
patched kernel, or be running -CURRENT.  It's possible this is a bug in
the ZFS code.  It might be worth taking this to the CURRENT list.

How are you trying to remove the ZIL?  Are you just pulling the drive or
are you running a 'remove' first?  (Just checking...)

Daniel T. Staal

---
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---

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


Re: legal notices at the end of emails

2011-07-27 Thread Chip Camden
Quoth Svein Skogen (Listmail account) on Wednesday, 27 July 2011:
> 
> Those e-mail-footers of legalese-sounding mumbo-jumbo threatening
> voodoo-action against you and anybody standing next to you, should you
> not be the sole designated, implied or expressed, recipient of that
> e-mail, are _LESS_ binding than "shrinkwrap EULAs", and has less actual
> legal content than the gold-content of seawater. They add the footers to
> sound important. It's a mild case of narcissism.
> 

I think it's more of a CYA than narcissism -- but a poor one.  Or it
may be the equivalent of "please keep it to yourself" framed in legalese
for added effect -- the 21st century version of pronouncing a curse upon
the offender, and just as effective.

-- 
.O. | Sterling (Chip) Camden  | http://camdensoftware.com
..O | sterl...@camdensoftware.com | http://chipsquips.com
OOO | 2048R/D6DBAF91  | http://chipstips.com


pgpPbmPinTBSn.pgp
Description: PGP signature


Re: Book recommendations (slightly OT)

2011-07-27 Thread Chad Perrin
In the following, I cut out anything not needed as context for my
response.  Where I cut something out, you should assume that I agree with
what Matthew Seaman wrote, and have nothing in particular to add to it at
this time.  The only possible exception is the specific list of resources
he suggested for learning shell scripting, but only because I am not
personally familiar with all the recommendations and thus am not in a
position to comment on them.

On Wed, Jul 27, 2011 at 08:45:30AM +0100, Matthew Seaman wrote:
> On 26/07/2011 20:57, Mark Moellering wrote:
> > I want to automate some tasks, creating directories, file editing, etc. 
> > I was going to pick up a book on shell scripting but wanted to ask the
> > list if;
> > A) I am barking up the wrong tree and should use something else.
> 
> No -- automating routine tasks is exactly what shell scripting is for.

Actually, he said "automating tasks" with no specific reference to
*routine* tasks, and I'd say that pretty much anything involving
computers is about automating tasks -- especially scripting/programming.
As you suggest, though, the more routine these tasks are (particularly as
system administration tasks), the more likely they are to be exactly the
right time to use shell scripting.


> 
> First of all, choose your shell.  On FreeBSD I'd say that it's got to be
> /bin/sh for programming.  This is the POSIX compatible Bourne Shell.  If
> you write your scripts to the POSIX standard then you'll be able to run
> them just about anywhere eg. using bash on a Linux box.  The converse is
> not true.
> 
> You could learn bash -- it is pretty much a de-facto standard nowadays
> -- but bash is pretty bloated with lots of interactive usage stuff, and
> there's nothing you can't do in POSIX shell that you can in bash.  Also,
> bash has to be installed from ports, which might not seem like a big
> deal (usually it isn't), but it tends to become really quite important
> when you're dealing with systems in extremis.
> 
> Don't bother trying to use tcsh for programming -- that's not what it is
> for.  tcsh is great interactively (it's what I use for my login shell),
> but a pain in the bum for scripting.

I would say that the Bourne shell (that is, /bin/sh) is the right choice
for pretty much *all* shell scripting.  If you need more than the Bourne
shell, or its POSIX compatible equivalent, you should be using a high
level programming language such as Perl or Ruby instead of an interactive
shell syntax.  More sophisticated shells are fine for interactive use,
but should not be relied upon for shell scripting in the vast majority of
cases for reasons of portability and consistency.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


pgpODY3kSLiNG.pgp
Description: PGP signature


build problem trying to upgrade a 7.0 system

2011-07-27 Thread doug


bcr:/usr/ports/databases/php5-pdo# make
===>   php5-pdo-5.2.10 depends on file: /usr/local/bin/phpize - found
===>   php5-pdo-5.2.10 depends on file: /usr/local/bin/autoconf-2.62 - found
===>  PHPizing for php5-pdo-5.2.10
Configuring for:
PHP Api Version: 20041225
Zend Module Api No:  20060613
Zend Extension Api No:   220060519
exec: /usr/local/bin/autom4te-2.62: not found
*** Error code 1

autom4te-2.62 is a perl script and is present:

  bcr:~# which autom4te-2.62
  /usr/local/bin/autom4te-2.62

bcr:/usr/local/bin# ls -l auto*
lrwxr-xr-x  1 root  wheel  16 Jul 20  2009 autoconf@ -> autoconf-wrapper
-r-xr-xr-x  1 root  wheel   14657 Jul 20  2009 autoconf-2.62*
-r-xr-xr-x  1 root  wheel3318 Jul 20  2009 autoconf-wrapper*
lrwxr-xr-x  1 root  wheel  16 Jul 20  2009 autoheader@ -> autoconf-wrapper
-r-xr-xr-x  1 root  wheel8507 Jul 20  2009 autoheader-2.62*
lrwxr-xr-x  1 root  wheel  16 Jul 20  2009 autom4te@ -> autoconf-wrapper
-r-xr-xr-x  1 root  wheel   31522 Jul 20  2009 autom4te-2.62*
lrwxr-xr-x  1 root  wheel  16 Jul 20  2009 automake@ -> automake-wrapper
-r-xr-xr-x  1 root  wheel  233475 Jul 20  2009 automake-1.10*
-r-xr-xr-x  1 root  wheel3266 Jul 20  2009 automake-wrapper*
-r-xr-xr-x  1 root  wheel   18489 Jul 20  2009 autopoint*
lrwxr-xr-x  1 root  wheel  16 Jul 20  2009 autoreconf@ -> autoconf-wrapper
-r-xr-xr-x  1 root  wheel   20268 Jul 20  2009 autoreconf-2.62*
lrwxr-xr-x  1 root  wheel  16 Jul 20  2009 autoscan@ -> autoconf-wrapper
-r-xr-xr-x  1 root  wheel   17091 Jul 20  2009 autoscan-2.62*
-r-xr-xr-x  1 root  wheel   33693 Jul 20  2009 autoupdate-2.62*
lrwxr-xr-x  1 root  wheel  16 Jul 20  2009 autoupdates@ -> autoconf-wrapper
bcr:/usr/local/bin# ls -l autom4te-2.62
-r-xr-xr-x  1 root  wheel  31522 Jul 20  2009 autom4te-2.62*

Some is amiss as:

  bcr:~# /usr/local/bin/autom4te-2.62
  /usr/local/bin/autom4te-2.62: Command not found.

How do I find out what the actual error is?


___
freebsd-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: build problem trying to upgrade a 7.0 system

2011-07-27 Thread Chuck Swiger
On Jul 27, 2011, at 10:55 AM, doug wrote:
> Some is amiss as:
> 
>  bcr:~# /usr/local/bin/autom4te-2.62
>  /usr/local/bin/autom4te-2.62: Command not found.
> 
> How do I find out what the actual error is?

What does "head -3 /usr/local/bin/autom4te-2.62" say?
One guess is that it's pointing to an invalid invocation of perl

Regards,
-- 
-Chuck

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


Re: build problem trying to upgrade a 7.0 system

2011-07-27 Thread doug



On Wed, 27 Jul 2011, Chuck Swiger wrote:


On Jul 27, 2011, at 10:55 AM, doug wrote:

Some is amiss as:

 bcr:~# /usr/local/bin/autom4te-2.62
 /usr/local/bin/autom4te-2.62: Command not found.

How do I find out what the actual error is?


What does "head -3 /usr/local/bin/autom4te-2.62" say?
One guess is that it's pointing to an invalid invocation of perl


#! /usr/bin/perl -w
# -*- perl -*-
# Generated from autom4te.in; do not edit by hand.

exactly - I looked at that and missed the missing local. A mising symlink. Thank 
you.

___
freebsd-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: build problem trying to upgrade a 7.0 system

2011-07-27 Thread Chuck Swiger
On Jul 27, 2011, at 11:50 AM, d...@safeport.com wrote:
>> What does "head -3 /usr/local/bin/autom4te-2.62" say?
>> One guess is that it's pointing to an invalid invocation of perl
> 
> #! /usr/bin/perl -w
> # -*- perl -*-
> # Generated from autom4te.in; do not edit by hand.
> 
> exactly - I looked at that and missed the missing local. A mising symlink. 
> Thank you.

Ah, you're most welcome.

Regards,
-- 
-Chuck

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


printing to a HP Deskjet 812C printer

2011-07-27 Thread Antonio Olivares
Dear folks,

I have a working installation 8.2 Release AMD64 and I am trying to
follow a printing howto :

http://www.wonkity.com/~wblock/docs/html/lpdprinting.html

I am copying the settings and I can't print.

quadcore# lpq -a
lp:
Warning: no daemon present
Rank   Owner  Job  Files Total Size
1stroot   0(standard input)  17 bytes
2ndroot   1(standard input)  89 bytes

quadcore# lpd
chkprintcap: Warning: blanks after trailing '\', at line 62 (entry lp)
chkprintcap: Warning: values-line after line with NO trailing '\', at line 63
chkprintcap:2 warnings from skimming /etc/printcap

quadcore# cat /etc/printcap
#   @(#)printcap5.3 (Berkeley) 6/30/90
# $FreeBSD: src/etc/printcap,v 1.14.30.1.6.1 2010/12/21 17:09:25 kensmith Exp $

#
# This enables a simple local "raw" printer, hooked up to the first
# parallel port.  No kind of filtering is done, so everything you pass
# to the "lpr" command will be printed unmodified.
#
# Remember, for further print queues you're going to add, you have
# to choose different spool directories (the "sd" capability below),
# otherwise you will greatly confuse lpd.
#
# For some advanced printing, have a look at the "apsfilter" package.
# It plugs into the lpd system, allowing you to print a variety of
# different file types by converting everything to PostScript(tm)
# format.  For more information about apsfilter visit
#
#http://www.apsfilter.org/
#
# If you don't have a PostScript(tm) printer, don't panic, but do
# also install the latest "ghostscript" package for best printer support.
#
# Do also refer to the "printing" section of the handbook.
#
#   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing.html
#
# A local copy can be found under
#
#   /usr/share/doc/handbook/handbook.{html,latin1}.
#
# Banner pages are now suppressed by default.  Remove the :sh: capability
# to turn them back on.
#
#lp|local line printer:\
#   :sh:\
#   :lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:
#
# Sample remote printer.  The physical printer is on machine "lphost".
# You can perform any kind of local filtering directly.  If you need
# local filters (e.g. LF -> CR-LF conversion for HP printers), create
# a filter script that sends the proper escape sequence to the printer
# and then concatenates stdin to stdout.
#
#remote|sample remote printer:\
#   :sh:\
#   :rm=lphost:sd=/var/spool/output/lphost:lf=/var/log/lpd-errs:\
#   :if=/usr/local/libexec/if-script:
#
# Simple Russian printer with hardware CP866 character set, output filter
# used for KOI8-R -> CP866 conversion
#
#lp|Russian local line printer:\
#   :sh:of=/usr/libexec/lpr/ru/koi2alt:\
#   :lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:

# add for HP Deskjet 812C
lp:\
:lp=/dev/ulpt0:\
:sh:\
:mx#0:\
:sd=/var/spool/lpd/lp:\
:if=/usr/local/libexec/psif:\
:lf=/var/log/lpd-errs:

quadcore# cat /usr/local/libexec/ps2pcl
#!/bin/sh
/usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=deskjet -sOUTFILE=- -

quadcore# ls -l /usr/local/libexec/ps2pcl
-rwxr-xr-x  1 root  wheel  81 Jul 27 14:18 /usr/local/libexec/ps2pcl
quadcore# cat /usr/local/libexec/psif
#!/bin/sh
IFS="" read -r first_line
first_two_chars=`expr "$first_line" : '\(..\)'`

case "first_two_chars" in
%!|\033%%)
# %! or ESC% : Postscript job, print it.
echo "$first_line" && cat && printf "\004" && exit 0
exit 2
;;
*)
# otherwise, format with enscript
( echo "$first_line"; cat ) \
 | /usr/local/bin/enscript -o - && printf "\004" && exit 0
exit 2
;;
esac

quadcore# ls -l /usr/local/libexec/psif
-rwxr-xr-x  1 root  wheel  378 Jul 27 14:26 /usr/local/libexec/psif

I modified the -sDEVICE to  -sDEVICE=deskjet  since the machine is an
Desjet.  The printer is on a USB and it is connected.  I have tried to
change

/dev/ulpt0 and /dev/unlpt0 and still get the same thing.  Any
pointers/advice/hints?

Thanks in Advance,

Antonio
___
freebsd-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 build teTeX port in FreeBSD 8.2 amd64

2011-07-27 Thread Antonio Olivares
Anton & et all,

> hrs@ has been most speedy and helpful. He added
>
> print/latex-chapterfolder
> print/tex-mfpic
>
> With these 2 new ports + teTeX I can build this book
> fully, no errors. Check it out.
>
> If you know of another tex project where teTeX fails,
> please send me the details. I'm keen to patch
> teTeX as far as possible with no major
> changes to TDS, i.e. just adding or updating
> a package.
>
> --

Thank you very much with your input & fix to default TeX/LateX setup
on FreeBSD.  I know TeXLive 2011 is out(I have it on DVD) but I tried
your changes and yes the book does compile after adding the two ports
:)

There was a new release on the book and I have a new script to build it :

http://www.stitz-zeager.com/Precalculus/Stitz_Zeager_Open_Source_Precalculus_files/SZPreCalc07152011SourceCode.zip


#!/bin/sh

# change JPG to jpg since *nix systems are case sensitive
for i in `find . -name "*JPG"`
 do
 mv "$i" "$(echo $i|sed 's/JPG/jpg/g')"
 done
sleep 5;
pdflatex AlgTrigBook.tex -interaction=nonstop
sleep 2;
for i in *.mp
   do
  mpost $i
   done
sleep 5;
pdflatex AlgTrigBook.tex -interaction=nonstop
sleep 5;
makeindex AlgTrigBook
sleep 5;
pdflatex AlgTrigBook.tex -interaction=nonstop
===

Here's another book with source code, and even with full texlive can't
get it to compile properly :(

http://www.mecmath.net/trig/

Here's source
http://www.mecmath.net/trig/trigbook-1.1-src.tar.gz

modify trigbook.sh by changin /bin/bash to /bin/sh, and give it a whirl.

[olivares@quadcore /usr/home/olivares/Downloads/trigbook-src-1.1]$
./trigbook.sh
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./trigbook.tex
LaTeX2e <2003/12/01>
Babel  and hyphenation patterns for american, french, german, ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur
kish, ukrainian, nohyphenation, loaded.
(/usr/local/share/texmf-dist/tex/latex/koma-script/scrbook.cls
Document Class: scrbook 2004/09/16 v2.9t LaTeX2e KOMA document class
(/usr/local/share/texmf-dist/tex/latex/koma-script/scrlfile.sty
Package scrlfile, 2004/09/16 v2.9t LaTeX2e KOMA package
  Copyright (C) Markus Kohm

) (/usr/local/share/texmf-dist/tex/latex/base/bk11.clo)
(/usr/local/share/texmf-dist/tex/latex/koma-script/typearea.sty
Package typearea, 2004/09/16 v2.9t LaTeX2e KOMA package
  Copyright (C) Frank Neukam, 1992-1994
  Copyright (C) Markus Kohm, 1994-2002

)) (/usr/local/share/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/share/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/share/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/share/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/share/texmf-dist/tex/latex/graphics/graphics.cfg)
(/usr/local/share/texmf-dist/tex/latex/graphics/dvips.def)))
(/usr/local/share/texmf-dist/tex/latex/float/float.sty)
(/usr/local/share/texmf-dist/tex/latex/nomencl/nomencl.sty

! LaTeX Error: Unknown option `intoc' for package `nomencl'.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H   for immediate help.
 ...

l.97 \ProcessOptions\relax

?


 The problem that I have encountered is the TiKZ package :(

http://www.texample.net/tikz/builds/

even with full TeXLive I can't get past those errors :(

Thank you very much for your input and also to the users that have
contributed to the thread.  This is not to add fuel to the fire!, but
to see if someone knows how to deal with TiKZ and the above
\ProcessOptions\relax probs.

Regards,

Antonio
___
freebsd-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 get ip address automatically from different dhcp server

2011-07-27 Thread Christopher J. Ruwe
On Wed, 27 Jul 2011 10:49:42 +0800
dave jones  wrote:

> Hi,
> 
> I cat get an IP address from dhcp server by adding the line
> in /etc/rc.conf:
> 
> ifconfig_em0="DHCP"
> 
> If I move my laptop to another place, I have to manually run
> "dhclient em0" to get an IP. Otherwise, it won't get an IP
> automatically.
> 
> My question is it's possible to get ip address automatically from
> different dhcp server? thanks.
> 
> Regards,
> Dave.
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscr...@freebsd.org"

Have a look at /etc/devd.conf. Mine include a portion

#
# Try to start dhclient on Ethernet like interfaces when the link comes
# up.  Only devices that are configured to support DHCP will actually
# run it.  No link down rule exists because dhclient automaticly exits
# when the link goes down.
#
notify 0 {
match "system"  "IFNET";
match "type""LINK_UP";
media-type  "ethernet";
action "/etc/rc.d/dhclient quietstart $subsystem";
};
#
notify 0 {
match "system"  "IFNET";
match "type""LINK_DOWN";
media-type  "ethernet";
action "/etc/rc.d/dhclient quietstop $subsystem ; ifconfig $subsystem 
inet 0.0.0.0";
};

I am under the impression that this rule does what you want to do.

Cheers,
-- 
Christopher J. Ruwe
TZ GMT + 2


signature.asc
Description: PGP signature


Re: printing to a HP Deskjet 812C printer

2011-07-27 Thread Antonio Olivares
On Wed, Jul 27, 2011 at 2:51 PM, Antonio Olivares
 wrote:
> Dear folks,
>
> I have a working installation 8.2 Release AMD64 and I am trying to
> follow a printing howto :
>
> http://www.wonkity.com/~wblock/docs/html/lpdprinting.html
>
> I am copying the settings and I can't print.
>
> quadcore# lpq -a
> lp:
> Warning: no daemon present
> Rank   Owner      Job  Files                                 Total Size
> 1st    root       0    (standard input)                      17 bytes
> 2nd    root       1    (standard input)                      89 bytes
>
> quadcore# lpd
> chkprintcap: Warning: blanks after trailing '\', at line 62 (entry lp)
> chkprintcap: Warning: values-line after line with NO trailing '\', at line 63
> chkprintcap:    2 warnings from skimming /etc/printcap
>
> quadcore# cat /etc/printcap
> #       @(#)printcap    5.3 (Berkeley) 6/30/90
> # $FreeBSD: src/etc/printcap,v 1.14.30.1.6.1 2010/12/21 17:09:25 kensmith Exp 
> $
>
> #
> # This enables a simple local "raw" printer, hooked up to the first
> # parallel port.  No kind of filtering is done, so everything you pass
> # to the "lpr" command will be printed unmodified.
> #
> # Remember, for further print queues you're going to add, you have
> # to choose different spool directories (the "sd" capability below),
> # otherwise you will greatly confuse lpd.
> #
> # For some advanced printing, have a look at the "apsfilter" package.
> # It plugs into the lpd system, allowing you to print a variety of
> # different file types by converting everything to PostScript(tm)
> # format.  For more information about apsfilter visit
> #
> #            http://www.apsfilter.org/
> #
> # If you don't have a PostScript(tm) printer, don't panic, but do
> # also install the latest "ghostscript" package for best printer support.
> #
> # Do also refer to the "printing" section of the handbook.
> #
> #       
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing.html
> #
> # A local copy can be found under
> #
> #       /usr/share/doc/handbook/handbook.{html,latin1}.
> #
> # Banner pages are now suppressed by default.  Remove the :sh: capability
> # to turn them back on.
> #
> #lp|local line printer:\
> #       :sh:\
> #       :lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:
> #
> # Sample remote printer.  The physical printer is on machine "lphost".
> # You can perform any kind of local filtering directly.  If you need
> # local filters (e.g. LF -> CR-LF conversion for HP printers), create
> # a filter script that sends the proper escape sequence to the printer
> # and then concatenates stdin to stdout.
> #
> #remote|sample remote printer:\
> #       :sh:\
> #       :rm=lphost:sd=/var/spool/output/lphost:lf=/var/log/lpd-errs:\
> #       :if=/usr/local/libexec/if-script:
> #
> # Simple Russian printer with hardware CP866 character set, output filter
> # used for KOI8-R -> CP866 conversion
> #
> #lp|Russian local line printer:\
> #       :sh:of=/usr/libexec/lpr/ru/koi2alt:\
> #       :lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:
>
> # add for HP Deskjet 812C
> lp:\
>        :lp=/dev/ulpt0:\
>        :sh:\
>        :mx#0:\
>        :sd=/var/spool/lpd/lp:\
>        :if=/usr/local/libexec/psif:\
>        :lf=/var/log/lpd-errs:
>
> quadcore# cat /usr/local/libexec/ps2pcl
> #!/bin/sh
> /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=deskjet -sOUTFILE=- -
>
> quadcore# ls -l /usr/local/libexec/ps2pcl
> -rwxr-xr-x  1 root  wheel  81 Jul 27 14:18 /usr/local/libexec/ps2pcl
> quadcore# cat /usr/local/libexec/psif
> #!/bin/sh
> IFS="" read -r first_line
> first_two_chars=`expr "$first_line" : '\(..\)'`
>
> case "first_two_chars" in
> %!|\033%%)
>        # %! or ESC% : Postscript job, print it.
>        echo "$first_line" && cat && printf "\004" && exit 0
>        exit 2
>        ;;
> *)
>        # otherwise, format with enscript
>        ( echo "$first_line"; cat ) \
>         | /usr/local/bin/enscript -o - && printf "\004" && exit 0
>        exit 2
>        ;;
> esac
>
> quadcore# ls -l /usr/local/libexec/psif
> -rwxr-xr-x  1 root  wheel  378 Jul 27 14:26 /usr/local/libexec/psif
>
> I modified the -sDEVICE to  -sDEVICE=deskjet  since the machine is an
> Desjet.  The printer is on a USB and it is connected.  I have tried to
> change
>
> /dev/ulpt0 and /dev/unlpt0 and still get the same thing.  Any
> pointers/advice/hints?
>
> Thanks in Advance,
>
> Antonio
>

I have found a page in OpenPrinting:

http://www.openprinting.org/printer/HP/HP-DeskJet_812C

But the device /dev/ulpt0 and/or /dev/unlpt0 are not found :(

quadcore# ls /dev/ulpt0
ls: /dev/ulpt0: No such file or directory
quadcore# ls /dev/unlpt0
ls: /dev/unlpt0: No such file or directory

I need to add them somewhere in /etc/rc.conf, or in /boot/loader.conf ?

Thanks,

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

Printr?

2011-07-27 Thread Gary Kline
 
 folks,

 i sent a couple freebsd questions days ago and did not bcc myself.  i never
 saw the post nor got any response.  anyway, new  one:  is there any way of
 getting my 'brother HL-3040CN' color laser printr to work.  i have mucked with
 it for >> 48 until i am ready to [[ dunno, really ]].  i guess return it 
 and buy one that just works with cups.  

 this 3040cn is seriously low-end, but if any of you have one Working, i'd
 seriously like to know what you did.  i'm using whatever CUPS we've got with
 7.3.

 thanks in advance,

 gary


-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.98a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org
 ethic 
The Double-Dip for the developed world (for my fellow FreeBSDers): 
  http://www.thought.org/#cdep


___
freebsd-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: Printr?

2011-07-27 Thread Antonio Olivares
On Wed, Jul 27, 2011 at 3:16 PM, Gary Kline  wrote:
>
>  folks,
>
>  i sent a couple freebsd questions days ago and did not bcc myself.  i never
>  saw the post nor got any response.  anyway, new  one:  is there any way of
>  getting my 'brother HL-3040CN' color laser printr to work.  i have mucked 
> with
>  it for >> 48 until i am ready to [[ dunno, really ]].  i guess return it
>  and buy one that just works with cups.
>
>  this 3040cn is seriously low-end, but if any of you have one Working, i'd
>  seriously like to know what you did.  i'm using whatever CUPS we've got with
>  7.3.
>
>  thanks in advance,
>
>  gary
>
>
> --

Gary,

I can't find your printer model here:

http://www.openprinting.org/printers/manufacturer/Brother

:(  Hope someone has it working though, and can offer some advice.

Regards,

Antonio
___
freebsd-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: legal notices at the end of emails

2011-07-27 Thread Robert Bonomi


> From: Ryan Coleman 
> Date: Wed, 27 Jul 2011 08:33:53 -0500
> Subject: Re: legal notices at the end of emails
>
> > --
> > Jerry
> >
> > This email and any files transmitted with it are confidential and 
> > intended solely for the use of the individual or entity to which they 
> > are addressed. If you are not the intended recipient of this 
> > transmission, please delete it immediately.
> >
> > Obviously, I am the idiot who sent it to you by mistake. Furthermore, 
> > there is no way I can force you to delete it. Worse, by the time you 
> > have reached this disclaimer you have all ready read the document. 
> > Telling you to forget it would seem absurd. In any event, I have no 
> > legal right to force you to take any action upon this email anyway.
> >
> > This entire disclaimer is just a waste of everyone's time and 
> > bandwidth. Therefore, let us just forget the whole thing and enjoy a 
> > cold beer instead.
> > _
>
>
> Nice disclaimer. :)
>
> They have their place.

Yup.  That place is frequently referred to as "File 13".

>CPAs, Bankers, mortgage, transferring of sensitive 
> data, etc. But they really mean nothing. :)

To be 'legally binding' on the recipient, one must have _agreement_ on the
terms from the recipient, _before_ the 'sensitive' material is sent to them.


In _most_ jurisdictions in Western (at least!) jurisprudince, such embedeed
'disclaimers' are entirely _unenforceable_ against an 'unintended' recipient,
being what is commonly known as a "contract of adhesion", and, as such, fail
to satisfy one of the fundamental requirirements of a 'contract' -- i.e., a
"meeting of the minds" between the parties to the contract.

Such 'disclaimers' -- with the notable exception of ones similar to Jerry's,
that is -- are nothing more than a (probably ineffective) CYA attempt by
the originator's organization in the event of an actual erroneous disclosure
of 'confidential' information. 

_IF_ such a 'notice' were an enforcable 'contract', consider what the effect
of the following notice:

   By accepting this email, you agree to pay me US$5,000 within 10 days. And
   if you fail to tender said sum within the specified time-frame, authorize
   me to enter a 'confession of judgement' in your name, in a collection 
   lawsuit.


___
freebsd-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: printing to a HP Deskjet 812C printer

2011-07-27 Thread Warren Block

On Wed, 27 Jul 2011, Antonio Olivares wrote:


chkprintcap: Warning: blanks after trailing '\', at line 62 (entry lp)
chkprintcap: Warning: values-line after line with NO trailing '\', at line 63
chkprintcap:2 warnings from skimming /etc/printcap


This needs to be fixed.  The entry is broken or at least incomplete. 
Line 62 has spaces or tabs after the backslash at the end.


A Deskjet 812C should be a parallel printer, with device /dev/lpt0.  Are 
you using a USB to parallel adapter?

___
freebsd-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: printing to a HP Deskjet 812C printer

2011-07-27 Thread Warren Block

On Wed, 27 Jul 2011, Warren Block wrote:

A Deskjet 812C should be a parallel printer, with device /dev/lpt0.  Are you 
using a USB to parallel adapter?


Cancel that, an 812C has both parallel and USB.  Make sure only the USB 
cable is connected, I suspect those printers don't have auto port 
switching.  When the printer is connected and powered on, /dev/ulpt0 and 
/dev/unlpt0 should appear.

___
freebsd-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: printing to a HP Deskjet 812C printer

2011-07-27 Thread Antonio Olivares
On Wed, Jul 27, 2011 at 4:23 PM, Warren Block  wrote:
> On Wed, 27 Jul 2011, Warren Block wrote:
>
>> A Deskjet 812C should be a parallel printer, with device /dev/lpt0.  Are
>> you using a USB to parallel adapter?
>
> Cancel that, an 812C has both parallel and USB.  Make sure only the USB
> cable is connected, I suspect those printers don't have auto port switching.
>  When the printer is connected and powered on, /dev/ulpt0 and /dev/unlpt0
> should appear.
>

I disconnected the usb cable and reconnected it and now they appear:

quadcore# lpq -a
lp:
Warning: no daemon present
Rank   Owner  Job  Files Total Size
1stroot   0(standard input)  17 bytes
2ndroot   1(standard input)  89 bytes

quadcore# ls /dev/unlpt0
ls: /dev/unlpt0: No such file or directory
quadcore# ls /dev/ulpt0
ls: /dev/ulpt0: No such file or directory

reconnected it :

quadcore# ls /dev/ulpt0
/dev/ulpt0
quadcore# ls -l /dev/ulpt0
crw-r--r--  1 root  operator0, 148 Jul 27 16:27 /dev/ulpt0


quadcore# ls -l /dev/unlpt0
crw-r--r--  1 root  operator0, 149 Jul 27 16:27 /dev/unlpt0

I changed /etc/printcap, and two blank pages came out but blank :(

Thanks,

Antonio
___
freebsd-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: Printr?

2011-07-27 Thread Robert Bonomi

> Date: Wed, 27 Jul 2011 13:16:48 -0700
> From: Gary Kline 
> To: FreeBSD Mailing List 
> Subject: Printr?
>
>
>  folks,
>
>  i sent a couple freebsd questions days ago and did not bcc myself.  i 
>  never saw the post nor got any response.  anyway, new  one:  is there 
>  any way of getting my 'brother HL-3040CN' color laser printr to work.  i 
>  have mucked with it for >> 48 until i am ready to [[ dunno, really ]].  
>  i guess return it and buy one that just works with cups.

Advice: *READ* the specifications.  Make sure the printer 'speaks' (or, at a 
minimum 'emulaes') at at least _one_ "standard' page-layout language -- PCL,
or (*preferably*) Postscript.  The HL-3040cn specs expressly _disclaim_ such,
to wit:

   "Emulation   N/A(Host-Based only)
Resident Fonts
PCL N/A
BR-Script 3 (PostScript 3 language emulation)   N/A"

This _should_ have told you to "run away'.


>  this 3040cn is seriously low-end, but if any of you have one Working, 
>  i'd seriously like to know what you did.  i'm using whatever CUPS we've 
>  got with  7.3.


Odds are that you are SOL.

The HL-3040CN is what is charitably called a "winprinter".  That is, it
is a *dumb* imaging device that requires _everything_ be done on the 
host computer, using a "vendor-provided" device driver.  Brother provides
drivers for Windows, MacOS, and a CUPS-based driver executable for Linux.

The odds of getting _that_ executable to work on FreeBSD are not good.
With a fulll Linux emulation environment, maybe.

___
freebsd-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: printing to a HP Deskjet 812C printer

2011-07-27 Thread Warren Block

On Wed, 27 Jul 2011, Antonio Olivares wrote:


I changed /etc/printcap, and two blank pages came out but blank :(


Okay, it's progress.  And good news, that printer understands plain 
ASCII and PCL3.


Make certain lpd is running (pgrep lpd), then try the test shown in the 
article:


  % printf “This is a test\r\n\f” | lpr___
freebsd-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: printing to a HP Deskjet 812C printer

2011-07-27 Thread Antonio Olivares
On Wed, Jul 27, 2011 at 5:11 PM, Warren Block  wrote:
> On Wed, 27 Jul 2011, Antonio Olivares wrote:
>
>> I changed /etc/printcap, and two blank pages came out but blank :(
>
> Okay, it's progress.  And good news, that printer understands plain ASCII
> and PCL3.
>
> Make certain lpd is running (pgrep lpd), then try the test shown in the
> article:
>
>  % printf “This is a test\r\n\f” | lpr

Warren,

quadcore# ls -l /dev/ulpt0
crw-r--r--  1 root  operator0, 148 Jul 27 16:29 /dev/ulpt0
quadcore# ls -l /dev/unlpt0
crw-r--r--  1 root  operator0, 149 Jul 27 16:27 /dev/unlpt0
quadcore# pgrep lpd
43017
quadcore# printf "This is a test\r\n\f" | lpr

The printer has not printed :(

Thanks,

Antonio
___
freebsd-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: Book recommendations (slightly OT)

2011-07-27 Thread Brandon Gooch
On Tue, Jul 26, 2011 at 2:57 PM, Mark Moellering  wrote:
> I want to automate some tasks, creating directories, file editing, etc.  I
> was going to pick up a book on shell scripting but wanted to ask the list
> if;
> A) I am barking up the wrong tree and should use something else.
> B) If I am headed in the right direction, what is the best book / resource
> to use?
>
> Thanks in advance
>
> Mark Moellering

You should check this out, from our friends at Apple:

http://developer.apple.com/library/mac/#documentation/OpenSource/Conceptual/ShellScripting/

I haven't gone through it, but I've perused it, and it looks like a
good place to start learning.

-Brandon
___
freebsd-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: printing to a HP Deskjet 812C printer

2011-07-27 Thread Ross
It requires CUPS and replaces system lpr. Here's an example on setting
up HPLIP: http://daemon-notes.com/articles/install/hplip

On Thu, Jul 28, 2011 at 1:25 AM, Antonio Olivares
 wrote:
> On Wed, Jul 27, 2011 at 5:07 PM, Ross  wrote:
>> Why you do not use HPLIP? Your printer is supported.
>
> Does lpd/lpr use this? or it requires CUPS?
>
> Thanks,
>
> Antonio
>
___
freebsd-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: printing to a HP Deskjet 812C printer

2011-07-27 Thread Antonio Olivares
On Wed, Jul 27, 2011 at 5:43 PM, Ross  wrote:
> It requires CUPS and replaces system lpr. Here's an example on setting
> up HPLIP: http://daemon-notes.com/articles/install/hplip
>
> On Thu, Jul 28, 2011 at 1:25 AM, Antonio Olivares
>  wrote:
>> On Wed, Jul 27, 2011 at 5:07 PM, Ross  wrote:
>>> Why you do not use HPLIP? Your printer is supported.
>>
>> Does lpd/lpr use this? or it requires CUPS?
>>
>> Thanks,
>>
>> Antonio
>>
>

Thanks Ross,

But I have to compile/recompile kernel just to get it working?

I'll think about it :?
Howto you have provided is detailed and I cannot complain :(

Regards,

Antonio
___
freebsd-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: Printr?

2011-07-27 Thread Roland Smith
On Wed, Jul 27, 2011 at 01:16:48PM -0700, Gary Kline wrote:

>  this 3040cn is seriously low-end,

Avoid that low-end crap like the plague. Those are usually depend on the
driver to do all the processing work and chances of finding a FreeBSD driver
are essentially nonexistant.

Preferably get a printer that understands PostScript. If not then at least PCL
or ESC2P. Look at the OpenPrinting.org database for a printer that works
"perfectly".

If you cannot afford a new one, look for a second-hand "professional"
printer. They are usually better quality. First or second generation color
laser printers will be quite bulky but they shouldn't be too expensive.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpsnR6cuPnYI.pgp
Description: PGP signature


Re: printing to a HP Deskjet 812C printer

2011-07-27 Thread Ross
On Thu, Jul 28, 2011 at 1:54 AM, Antonio Olivares
 wrote:
> On Wed, Jul 27, 2011 at 5:43 PM, Ross  wrote:
>> It requires CUPS and replaces system lpr. Here's an example on setting
>> up HPLIP: http://daemon-notes.com/articles/install/hplip
>>
>> On Thu, Jul 28, 2011 at 1:25 AM, Antonio Olivares
>>  wrote:
>>> On Wed, Jul 27, 2011 at 5:07 PM, Ross  wrote:
 Why you do not use HPLIP? Your printer is supported.
>>>
>>> Does lpd/lpr use this? or it requires CUPS?
>>>
>>> Thanks,
>>>
>>> Antonio
>>>
>>
>
> Thanks Ross,
>
> But I have to compile/recompile kernel just to get it working?
>
> I'll think about it :?
> Howto you have provided is detailed and I cannot complain :(
>
> Regards,
>
> Antonio
>

Well, you had problems with ulpt so maybe removing it which is
required for HPLIP is a solution. Sorry if recompiling the kernel is
not an option for you. Otherwise it just works.
___
freebsd-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: printing to a HP Deskjet 812C printer

2011-07-27 Thread Antonio Olivares
On Wed, Jul 27, 2011 at 6:03 PM, Ross  wrote:
> On Thu, Jul 28, 2011 at 1:54 AM, Antonio Olivares
>  wrote:
>> On Wed, Jul 27, 2011 at 5:43 PM, Ross  wrote:
>>> It requires CUPS and replaces system lpr. Here's an example on setting
>>> up HPLIP: http://daemon-notes.com/articles/install/hplip
>>>
>>> On Thu, Jul 28, 2011 at 1:25 AM, Antonio Olivares
>>>  wrote:
 On Wed, Jul 27, 2011 at 5:07 PM, Ross  wrote:
> Why you do not use HPLIP? Your printer is supported.

 Does lpd/lpr use this? or it requires CUPS?

 Thanks,

 Antonio

>>>
>>
>> Thanks Ross,
>>
>> But I have to compile/recompile kernel just to get it working?
>>
>> I'll think about it :?
>> Howto you have provided is detailed and I cannot complain :(
>>
>> Regards,
>>
>> Antonio
>>
>
> Well, you had problems with ulpt so maybe removing it which is
> required for HPLIP is a solution. Sorry if recompiling the kernel is
> not an option for you. Otherwise it just works.
>

Ross,

I am afraid to screw up and for the first time, I can say that I have
updated FreeBSD successfully without hiccups and I have not compiled
the kernel on FreeBSD :(, I have done it on linux systems many times,
but have not here, and I would hate to lose all the work just to get
the printer working.

I will be patient and try some things out then report back.  I
appreciate the help and if I can't find a solution, I will take the
plunge :) and hopefully not fail.

Regards,

Antonio
___
freebsd-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: printing to a HP Deskjet 812C printer

2011-07-27 Thread Ross
On Thu, Jul 28, 2011 at 2:12 AM, Antonio Olivares
 wrote:
> On Wed, Jul 27, 2011 at 6:03 PM, Ross  wrote:
>> On Thu, Jul 28, 2011 at 1:54 AM, Antonio Olivares
>>  wrote:
>>> On Wed, Jul 27, 2011 at 5:43 PM, Ross  wrote:
 It requires CUPS and replaces system lpr. Here's an example on setting
 up HPLIP: http://daemon-notes.com/articles/install/hplip

 On Thu, Jul 28, 2011 at 1:25 AM, Antonio Olivares
  wrote:
> On Wed, Jul 27, 2011 at 5:07 PM, Ross  wrote:
>> Why you do not use HPLIP? Your printer is supported.
>
> Does lpd/lpr use this? or it requires CUPS?
>
> Thanks,
>
> Antonio
>

>>>
>>> Thanks Ross,
>>>
>>> But I have to compile/recompile kernel just to get it working?
>>>
>>> I'll think about it :?
>>> Howto you have provided is detailed and I cannot complain :(
>>>
>>> Regards,
>>>
>>> Antonio
>>>
>>
>> Well, you had problems with ulpt so maybe removing it which is
>> required for HPLIP is a solution. Sorry if recompiling the kernel is
>> not an option for you. Otherwise it just works.
>>
>
> Ross,
>
> I am afraid to screw up and for the first time, I can say that I have
> updated FreeBSD successfully without hiccups and I have not compiled
> the kernel on FreeBSD :(, I have done it on linux systems many times,
> but have not here, and I would hate to lose all the work just to get
> the printer working.
>
> I will be patient and try some things out then report back.  I
> appreciate the help and if I can't find a solution, I will take the
> plunge :) and hopefully not fail.
>
> Regards,
>
> Antonio
>

If you do decide to take this route, it's not that hard to recompile a kernel.

# csup -h cvsup.FreeBSD.org -L2 /usr/share/examples/cvsup/standard-supfile

Copy your kernconf, say COFFIN, to /usr/src/sys/i386/conf/ if you are
on 32bit or to /usr/src/sys/amd64/conf/ if on amd64.
The file could be just the following (just the GENERIC kernel,
slightly modified):
--- cut ---
include GENERIC

ident   COFFIN

# Remove legacy support
nocpu   I486_CPU
nocpu   I586_CPU

# HPLIP can't work whithout this
nodeviceulpt
--- cut ---

# cd /usr/src
# make buildkernel KERNCONF=COFFIN
# make installkernel KERNCONF=COFFIN
# reboot

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


Re: printing to a HP Deskjet 812C printer

2011-07-27 Thread Ross
On Thu, Jul 28, 2011 at 2:29 AM, Ross  wrote:
> On Thu, Jul 28, 2011 at 2:12 AM, Antonio Olivares
>  wrote:
>> On Wed, Jul 27, 2011 at 6:03 PM, Ross  wrote:
>>> On Thu, Jul 28, 2011 at 1:54 AM, Antonio Olivares
>>>  wrote:
 On Wed, Jul 27, 2011 at 5:43 PM, Ross  wrote:
> It requires CUPS and replaces system lpr. Here's an example on setting
> up HPLIP: http://daemon-notes.com/articles/install/hplip
>
> On Thu, Jul 28, 2011 at 1:25 AM, Antonio Olivares
>  wrote:
>> On Wed, Jul 27, 2011 at 5:07 PM, Ross  wrote:
>>> Why you do not use HPLIP? Your printer is supported.
>>
>> Does lpd/lpr use this? or it requires CUPS?
>>
>> Thanks,
>>
>> Antonio
>>
>

 Thanks Ross,

 But I have to compile/recompile kernel just to get it working?

 I'll think about it :?
 Howto you have provided is detailed and I cannot complain :(

 Regards,

 Antonio

>>>
>>> Well, you had problems with ulpt so maybe removing it which is
>>> required for HPLIP is a solution. Sorry if recompiling the kernel is
>>> not an option for you. Otherwise it just works.
>>>
>>
>> Ross,
>>
>> I am afraid to screw up and for the first time, I can say that I have
>> updated FreeBSD successfully without hiccups and I have not compiled
>> the kernel on FreeBSD :(, I have done it on linux systems many times,
>> but have not here, and I would hate to lose all the work just to get
>> the printer working.
>>
>> I will be patient and try some things out then report back.  I
>> appreciate the help and if I can't find a solution, I will take the
>> plunge :) and hopefully not fail.
>>
>> Regards,
>>
>> Antonio
>>
>
> If you do decide to take this route, it's not that hard to recompile a kernel.
>
> # csup -h cvsup.FreeBSD.org -L2 /usr/share/examples/cvsup/standard-supfile
>
> Copy your kernconf, say COFFIN, to /usr/src/sys/i386/conf/ if you are
> on 32bit or to /usr/src/sys/amd64/conf/ if on amd64.
> The file could be just the following (just the GENERIC kernel,
> slightly modified):
> --- cut ---
> include         GENERIC
>
> ident           COFFIN
>
> # Remove legacy support
> nocpu           I486_CPU
> nocpu           I586_CPU
>
> # HPLIP can't work whithout this
> nodevice        ulpt
> --- cut ---
>
> # cd /usr/src
> # make buildkernel KERNCONF=COFFIN
> # make installkernel KERNCONF=COFFIN
> # reboot
>
> That's it.
>

Although I should add that you probably will need to also rebuild the
world if you update your sources with csup. Well, don't run csup, use
the sources you already have in /usr/src.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


SOLVED! Re: printing to a HP Deskjet 812C printer

2011-07-27 Thread Antonio Olivares
>> I will be patient and try some things out then report back.  I
>> appreciate the help and if I can't find a solution, I will take the
>> plunge :) and hopefully not fail.
>>
>> Regards,
>>
>> Antonio
>>
>
> If you do decide to take this route, it's not that hard to recompile a kernel.
>
> # csup -h cvsup.FreeBSD.org -L2 /usr/share/examples/cvsup/standard-supfile
>
> Copy your kernconf, say COFFIN, to /usr/src/sys/i386/conf/ if you are
> on 32bit or to /usr/src/sys/amd64/conf/ if on amd64.
> The file could be just the following (just the GENERIC kernel,
> slightly modified):
> --- cut ---
> include         GENERIC
>
> ident           COFFIN
>
> # Remove legacy support
> nocpu           I486_CPU
> nocpu           I586_CPU
>
> # HPLIP can't work whithout this
> nodevice        ulpt
> --- cut ---
>
> # cd /usr/src
> # make buildkernel KERNCONF=COFFIN
> # make installkernel KERNCONF=COFFIN
> # reboot
>
> That's it.
>

Thank you very much Ross & Warren.  You guided me in the right
direction.  To solve the printing issue I installed apsfilter and
chose the hpij drivers, the printer appeared and I selected it.  I
then configured it and voila it worked :)

I found the following page

http://www.freebsdfoo.com/bsd-print-foo.txt

and it helped me.  I is an old printer my mom got for me in a yard
sale three years ago and thankfully to you guys, with your
suggestions/advice I got it to work with FreeBSD amd64 8.2!

Regards,

Antonio

@Ross,
I might take the advice of compiling the kernel as I am heavily
looking to create a livecd/livedvd of FreeBSD.  I liked freesbie,
installed it port, but don't know how to use it/create it.  I like
Frenzy but can't find the SDK, I will create a new thread on this
later.  Thanks again.
___
freebsd-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: Printr?

2011-07-27 Thread Gary Kline
On Wed, Jul 27, 2011 at 04:34:10PM -0500, Robert Bonomi wrote:
> Date: Wed, 27 Jul 2011 16:34:10 -0500 (CDT)
> From: Robert Bonomi 
> Subject: Re: Printr?
> To: freebsd-questions@freebsd.org, kl...@thought.org
> 
> 
> > Date: Wed, 27 Jul 2011 13:16:48 -0700
> > From: Gary Kline 
> > To: FreeBSD Mailing List 
> > Subject: Printr?
> >
> >
> >  folks,
> >
> >  i sent a couple freebsd questions days ago and did not bcc myself.  i 
> >  never saw the post nor got any response.  anyway, new  one:  is there 
> >  any way of getting my 'brother HL-3040CN' color laser printr to work.  i 
> >  have mucked with it for >> 48 until i am ready to [[ dunno, really ]].  
> >  i guess return it and buy one that just works with cups.
> 
> Advice: *READ* the specifications.  Make sure the printer 'speaks' (or, at a 
> minimum 'emulaes') at at least _one_ "standard' page-layout language -- PCL,
> or (*preferably*) Postscript.  The HL-3040cn specs expressly _disclaim_ such,
> to wit:
> 
>"Emulation N/A(Host-Based 
> only)
> Resident Fonts
>   PCL N/A
>   BR-Script 3 (PostScript 3 language emulation)   N/A"
> 
> This _should_ have told you to "run away'.
> 
> 
> >  this 3040cn is seriously low-end, but if any of you have one Working, 
> >  i'd seriously like to know what you did.  i'm using whatever CUPS we've 
> >  got with  7.3.
> 
> 
> Odds are that you are SOL.
> 
> The HL-3040CN is what is charitably called a "winprinter".  That is, it
> is a *dumb* imaging device that requires _everything_ be done on the 
> host computer, using a "vendor-provided" device driver.  Brother provides
> drivers for Windows, MacOS, and a CUPS-based driver executable for Linux.
> 
> The odds of getting _that_ executable to work on FreeBSD are not good.
> With a fulll Linux emulation environment, maybe.
> 

tehere were zero specs on the costco page; and evvntually i
dd found some download for lrp and cups for the 3040 on the
brother site.   bt yes, for linx only.   it is going back on
friday night.

i have found an hp2025[x|n|dn] that looks goood since it has
cups suppport.

do you//any of you see anythn wrong with the hp2025X??

gary


ps:  i did read that the brother only wsorks with lighteight
paper; another comlaint is that it goes thru toner very
fast.  ...


-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 8.51a release of Jottings: http://jottings.thought.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"


Howto's, Advice, Hints/Gotchas about livecd creation in FreeBSD

2011-07-27 Thread Antonio Olivares
Dear folks,

I would like to kindly ask you as the Subject Line tells it all.  I
believe I have done my homework, and I have tried out some competing
LiveCDs from *BSD like Bsdanywhere, jibbed(NetBSD), jggimi(OpenBSD),
had used RoFreeSBIE(FreeBSD based but unmaintained), Frenzy, Mahesha,
old FreeSBIE 2.0.1, ..., etc

I see some pages like mfsroot, and it is small custom made for ZFS and
other goodies :), I am not there yet :(, I see there are custom
scripts/SDK for livecd building:

http://wiki.freebsd.org/AvgLiveCD

http://livecd.sourceforge.net/

other pages and Frenzy Page:

http://frenzy.org.ua/en/

I got standard cd based on 8.1 Release i386 and I like it, but it got too big :(

What I am looking at.  I would like to create a small ~200MB cd like
old Frenzy with firefox and few apps to be able to copy2ram and take a
FreeBSD system anywhere(like I do with some linux livecds like Slax,
Porteus, PartedMagic, SystemRescueCD, Gparted, Clonezilla, etc).  It
would be nice to let people know that there is not just linux, I
showed some students where I work that there are other OSes beside
windows :)

Also, I would like to create a bigCD/LiveDVD with many things(not the
kitchen sink), with several apps I use for work, i.e, TeX/Latex (can
be TexLive2011 or teTeX from ports), maxima, gnuplot(dep for maxima),
ghostscript, ImageMagick, pdf utilities, compiler in case some apps
are needed, gkrellm/conky, like XFCE, but can use FluxBox, Blackbox,
other small Desktops or not use X if recommended.  CD/DVD should have
firefox, pf/ipfw firewall generic configuration, LibreOffice/(abiword
& gnumeric)/, mplayer & mencoder, ffmpeg, vorbis-tools, lame,
cdrecord/dvd+rw-tools/cdrdao, ..., etc.  This like RoFreeSBIE had, but
it died out unfortunately.  KDE is heavier desktop[PC-BSD has this],
Gnome too[There's GhostBSD].  If I can clone my current installation,
I would be very happy and take my desktop everywhere I can boot it.
If it is possible to put it on USB that would be also a great plus.

My friends advice me to follow the advice given in

http://wiki.freebsd.org/AvgLiveCD

and get my feet wet.  But I am not sure how to begin :(

Thank you all for your generous advice/suggestions/comments.

Regards,

Antonio
___
freebsd-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: Printr?

2011-07-27 Thread Antonio Olivares
>        ps:  i did read that the brother only wsorks with lighteight
>        paper; another comlaint is that it goes thru toner very
>        fast.  ...
>
>
> --

Try to use DRAFT option if it* exits :)
I do this at work so ink lasts more on the average.

Regards,

Antonio
___
freebsd-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: Printr?

2011-07-27 Thread Ryan Coleman
I think that was your first mistake.

On Jul 27, 2011, at 6:58 PM, Gary Kline wrote:

>   tehere were zero specs on the costco page

___
freebsd-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: printing to a HP Deskjet 812C printer

2011-07-27 Thread Antonio Olivares
>> If you do decide to take this route, it's not that hard to recompile a 
>> kernel.
>>
>> # csup -h cvsup.FreeBSD.org -L2 /usr/share/examples/cvsup/standard-supfile
>>
>> Copy your kernconf, say COFFIN, to /usr/src/sys/i386/conf/ if you are
>> on 32bit or to /usr/src/sys/amd64/conf/ if on amd64.
>> The file could be just the following (just the GENERIC kernel,
>> slightly modified):
>> --- cut ---
>> include         GENERIC
>>
>> ident           COFFIN
>>
>> # Remove legacy support
>> nocpu           I486_CPU
>> nocpu           I586_CPU
>>
>> # HPLIP can't work whithout this
>> nodevice        ulpt
>> --- cut ---
>>
>> # cd /usr/src
>> # make buildkernel KERNCONF=COFFIN
>> # make installkernel KERNCONF=COFFIN
>> # reboot
>>
>> That's it.
>>
>
> Although I should add that you probably will need to also rebuild the
> world if you update your sources with csup. Well, don't run csup, use
> the sources you already have in /usr/src.
>

I guess I got overly excited and when I try to print from firefox,
nothing happens :(

I tried to print from command line and I get:

[olivares@quadcore ~/Documents]$ lpr -P ijs/DESKJET_812 freebsd-printing1.txt
[olivares@quadcore ~/Documents]$ mail
Mail version 8.1 6/6/93.  Type ? for help.
"/var/mail/olivares": 1 message 1 new
>N  1 dae...@quadcore.home  Wed Jul 27 19:20  25/884   "apsfilter: can't find"
&
Message 1:
>From dae...@quadcore.home Wed Jul 27 19:20:47 2011
Date: Wed, 27 Jul 2011 19:20:46 -0500 (CDT)
From: Owner of many system processes 
To: r...@quadcore.home
Cc: oliva...@quadcore.home
Subject: apsfilter: can't find configuration

apsfilter fatal error: can't find configuration

The configuration file /usr/local/etc/apsfilter/DESKJET_812/apsfilterrc
is missing. Please run SETUP.


-- apsfilter, your lpd input filter

&
At EOF
& q
Saved 1 message in mbox


I did not name the printer, went back to run ./SETUP and named it, I
also checked
===

*Ok, now that THAT is over, lets check the perms on the lpd dir:

---
ptah# ls -ald /var/spool/lpd
drwxr-xr-x  2 root  daemon  512 Jan 28 05:10 /var/spool/lpd
ptah# chmod 777 /var/spool/lpd
ptah# ls -ald /var/spool/lpd
drwxrwxrwx  2 root  daemon  512 Jan 28 05:10 /var/spool/lpd
---

*...now everyone can write to it.

*So I went into /usr/local/etc/rc.d and created a printer.sh
 file with the following contents:

---
#!/bin/sh

[ -x /usr/sbin/lpd] && /usr/sbin/lpd && echo -n " lpd"
---

*I started it with just a:

---
/usr/sbin/lpd && echo -n " lpd"
---

*...real quick and then checked to see if it was running, and
 it was!

*lpc status all - shows if the printer is recognized and up:

---
freak:
queuing is enabled
printing is enabled
no entries in spool area
printer idle
---

*So yay!  He's up and going.  Now to print to him I can just do:

---
lpr -P freak whatever.txt
---

*And it should print just fine.

*I added the following lines in /usr/local/etc/smb.conf

---

==

I have not done this:
---
#!/bin/sh

[ -x /usr/sbin/lpd] && /usr/sbin/lpd && echo -n " lpd"
---

does having lpd_enable="YES" in /etc/rc.conf do the same?

I modified permissions, but printer is not printing via firefox or
command line :(


Here's some output of what I got when I ran ./SETUP

Please enter a printer queue name for printer 'ijs/DESKJET_812'.
The default name is 'aps1'.

Your choice: ijs/DESKJET_812
** creating printcap entry for printer ijs/DESKJET_812...
   creating spooldir ...
   remember SETUP settings in printers apsfilterrc file...
** done.

[ press  to continue ]











==
  A P S F I L T E R   S E T U P   -- MAIN MENUE --
==

(D) Available Device Drivers in your gs binary
(R) Read Ghostscript driver documentation(devices.txt)

(1) Printer Driver Selection[ijs/DESKJET_812]
(2) Interface Setup [parallel]
(3) Paper Format[letter]
(4) Printing Quality[draft]
(5) Color Mode  [full]
(6) Print Resolution in "dots per inch" [300x300]
(7) Default Printing Method [auto]

(T) Print Test Page
(V) View performance log (times of print attempts)

(A) Abort installation (don't do anything)
(I) ==> Install printer with values shown above - repeat this
step for installing multiple printers
(Q) ==> Finish installation

Your choice? q


Finished creating/updating /etc/printcap and /usr/local/etc/apsfilter/ ...


To let the printer scheduler know of

Re: printing to a HP Deskjet 812C printer

2011-07-27 Thread Antonio Olivares
@ all,

I restarted machine and I can print from command line :)

[olivares@quadcore ~/Documents]$ cat Document1.txt |  lpr -P Deskjet
[olivares@quadcore ~/Documents]$ lpq -a
Deskjet:
Deskjet is ready and printing
Rank   Owner  Job  Files Total Size
active olivares   2(standard input)  10405 bytes

[olivares@quadcore ~/Documents]$

Now how do I configure apps like Firefox, evince, LibreOffice to print?

Thanks,

Antonio
___
freebsd-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: Printr?

2011-07-27 Thread Gary Kline
On Thu, Jul 28, 2011 at 12:53:49AM +0200, Roland Smith wrote:
> Date: Thu, 28 Jul 2011 00:53:49 +0200
> From: Roland Smith 
> Subject: Re: Printr?
> To: Gary Kline 
> Cc: FreeBSD Mailing List 
> 
> On Wed, Jul 27, 2011 at 01:16:48PM -0700, Gary Kline wrote:
> 
> >  this 3040cn is seriously low-end,
> 
> Avoid that low-end crap like the plague. Those are usually depend on the
> driver to do all the processing work and chances of finding a FreeBSD driver
> are essentially nonexistant.
> 
> Preferably get a printer that understands PostScript. If not then at least PCL
> or ESC2P. Look at the OpenPrinting.org database for a printer that works
> "perfectly".


thanks much for the datapoint!  If I knew of a org site that
has all the fax  ["just the fax, ma'am"] i would be pleased
beyond words.  


> 
> If you cannot afford a new one, look for a second-hand "professional"
> printer. They are usually better quality. First or second generation color
> laser printers will be quite bulky but they shouldn't be too expensive.


IIRC, my first HP (1992-3) mono was $450; it llastd until
'05 when I decidd on a laser.  the ink was/is xtreme.
the HL-5250DN was aound the same cost but only lasted six
years.  hope my new printer lasts at least 6 years.

i found variants of the hp2025FOO.  There is the 2025dn,
the 2025x, and the 2025n.   UNtil Robert mentioned it , i
never thought of googling for an individual printer.  there
are a billion of them.  bt i found it.  and the ONLY
difference i can see is __One__.  the cheap one is the "n";
you have to by-hand set it to do duplex.the "dn" and the
"x" have "automatic" duplex handling.   interesting what
just a litte hunting can tell you.  Yeah, postscript, pcl 5
and 6.

gary




> 
> Roland
> -- 
> R.F.Smith   http://www.xs4all.nl/~rsmith/
> [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
> pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 8.51a release of Jottings: http://jottings.thought.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: printing to a HP Deskjet 812C printer

2011-07-27 Thread Antonio Olivares
On Wed, Jul 27, 2011 at 8:05 PM, Antonio Olivares
 wrote:
> @ all,
>
> I restarted machine and I can print from command line :)
>
> [olivares@quadcore ~/Documents]$ cat Document1.txt |  lpr -P Deskjet
> [olivares@quadcore ~/Documents]$ lpq -a
> Deskjet:
> Deskjet is ready and printing
> Rank   Owner      Job  Files                                 Total Size
> active olivares   2    (standard input)                      10405 bytes
>
> [olivares@quadcore ~/Documents]$
>
> Now how do I configure apps like Firefox, evince, LibreOffice to print?
>
> Thanks,
>
> Antonio
>

Ok I have figured it out :)

I need to change `lpr` to `lpr -P Deskjet` and it will print.

Thanks to all who have advised/helped me with this issue.

Regards,

Antonio
___
freebsd-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: Printr?

2011-07-27 Thread Gary Kline
On Wed, Jul 27, 2011 at 07:03:05PM -0500, Antonio Olivares wrote:
> Date: Wed, 27 Jul 2011 19:03:05 -0500
> From: Antonio Olivares 
> Subject: Re: Printr?
> To: Gary Kline 
> Cc: freebsd-questions@freebsd.org, Robert Bonomi 
> 
> >        ps:  i did read that the brother only wsorks with lighteight
> >        paper; another comlaint is that it goes thru toner very
> >        fast.  ...
> >
> >
> > --
> 
> Try to use DRAFT option if it* exits :)
> I do this at work so ink lasts more on the average.



what? use the draft option and show how cheap i am:)
actuallly that was the first thing i saw when i se t up my
brothr laser.  most of my first cartridge was left!
{reminds me o a joke about being cheap, but i'lll ave it}

gary


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

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 8.51a release of Jottings: http://jottings.thought.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"


Can gpart create ntfs and FAT-32 partitions?

2011-07-27 Thread Kevin Oberman
I want to create a GPT disk structure that has the following partitions:
MBR
NTFS (1.2G)
NTFS (200G)
FreeBSD OS (250G)
NTFS (15G)
FAT-32 (100G) (needs to be RW for W7 and FreeBSD and ntfs-3g is just
not stable enough)
FreeBSD data only (380G)

The NTFS partitions are to place the Windows7 system, recovery
partition (which I may
not use), and Lenovo's odd "SYSTEM_DRV" that is required for booting.
gpart has no
indications of how to create an NTFS or FAT partition. Any way to so
this? Or, should I
use W7 to do that and leave the space for the FreeBSD ones?
-- 
R. Kevin Oberman, Network Engineer - Retired
E-mail: kob6...@gmail.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"