how do i find a file in all directories 7 to 9 days old?

2011-07-28 Thread Gary Kline
 guys,


 how can i use find or whatever to find a file, say 6 levels deep
 that is = 9 days old?   i'm looking fo something i had to jt down
 [[ASCII]].  can't remembr te file name, nor when i was when i had
 the idea flash into my mind

 sigh.

 thanks,


 gary



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


disappearing files

2011-07-28 Thread admin
Hi,

I am using FreeBSD 8.2 with an UFS filesystem containing a jail. I do a
tar of the whole jail every night. Suddenly after a few weeks of
operation, tar complains about being unable to stat /usr/lib/libmilter.so.

From inside the jail:

ls /usr/lib | grep ^libmilter.so$ returns libmilter.so
ls /usr/lib/libmilter.so returns ls: libmilter.so: No such file or
directory
ls -l /usr/lib  /dev/null returns ls: libmilter.so: No such file or
directory

Trying to access the file from the main system gives the same result.

A reboot returns everything to normal.

Exactly the same also appeared on another machine some time ago, the only
difference was that it appeared on another file.

Does anyone know what can cause this problem ?

Thanks in advance,
David Arendt

___
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


Link exchange with your site

2011-07-28 Thread Joe
Dear Webmaster, 

 

I just visited your site http://www.freebsd.org/  and really appreciate it
for good design and information.  I have good quality sites from where you
would like to have linked from. And as you might aware getting links from
good quality site would definitely help your site to get higher placement or
ranking in search engines like Google, Yahoo etc. 

 

In case you are interested in link exchange, you can reply me back and I
will offer you good deal for your site, which will help in improving your
website ranking in the search engine. 

Hope to hear from you soon and have a great day :) 

 

 

Thanks, 

Joe

 

Note:
If you do not respond to this email you will not receive any additional
emails from us.

 

 

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


New games for you

2011-07-28 Thread Netlog

Hi Elias! Try out these new games!

Solitaire, played 30span style=letter-spacing: -2px;nbsp;/span051 times 
Let's play! 
http://en.netlog.com/go/mailurl/-YT1mOGY3ZWE0YjczYjM4MTY5Njc5MmY3Mzk5OGE0OWI1YiZtPTIwNTI2NDE5NTAmbD0xJmdtPTUxJnU9JTJGcGxheSUyRmdhbWUlMkZzb2xpdGFpcmU_
 

You no longer want to receive these updates by e-mail? Change your settings. 
http://en.netlog.com/go/mailurl/-YT1mOGY3ZWE0YjczYjM4MTY5Njc5MmY3Mzk5OGE0OWI1YiZtPTIwNTI2NDE5NTAmbD0yJmdtPTUxJnU9JTJGZ28lMkZzZXR0aW5ncyUyRmVtYWls


Your Netlog account: http://www.netlog.com/shashatielias





Massive Media NV E. Braunplein 18. B-9000 Gent. Belgium BE0859635972. 
abuse...@netlog.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


Can't seem to send to some of the freebsd lists

2011-07-28 Thread Andre Goree
I'm sending this message to check whether it reaches the list.  So far, 
none of my messages sent to freebsd-t...@freebsd.org have been received 
and sometimes (every 2nd or 3rd message it seems), I'll receive a notice 
that my message was marked as spam and is awaiting moderator approval 
(something that never comes).  I've also sent a message to this list 
asking for help on exactly why my message might be marked as spam.


I've checked my domain at mxtoolbox.com and everthing checks out ok 
(reverse DNS, PTR record, non-open relay) so I'm not sure what the 
problem could be.


Would appreciate any insight (if this message actually reaches the list, 
that is).  :)


Andre Goree
an...@drenet.info
___
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: disappearing files

2011-07-28 Thread Nikos Vassiliadis

On 7/28/2011 10:15 AM, ad...@prnet.org wrote:

Hi,

I am using FreeBSD 8.2 with an UFS filesystem containing a jail. I do a
tar of the whole jail every night. Suddenly after a few weeks of
operation, tar complains about being unable to stat /usr/lib/libmilter.so.


From inside the jail:


ls /usr/lib | grep ^libmilter.so$ returns libmilter.so
ls /usr/lib/libmilter.so returns ls: libmilter.so: No such file or
directory
ls -l /usr/lib  /dev/null returns ls: libmilter.so: No such file or
directory

Trying to access the file from the main system gives the same result.

A reboot returns everything to normal.

Exactly the same also appeared on another machine some time ago, the only
difference was that it appeared on another file.

Does anyone know what can cause this problem ?


File system corruption would cause such behavior. And/Or perhaps
something is wrong with the underlying disk device.

I would search the logs for messages indicating that the storage
medium is failing. Does dmesg contain anything related?

I would also unmount and fsck the file system.

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


Re: disappearing files

2011-07-28 Thread admin
Hi,

Dmesg returns no error. Also smartctl returns no errors. I will wait for
other suggestion before unmounting the volume in this machine for the case
someone else has another suggestion what to check for, because it might be
that by umounting and remounting, it will take again a few month for the
problem to reappear.

On the other machine that was having the problem, dmesg and smartctl also
returned no errors. I rebooted the machine and started fsck which also
returned no error. On remounting, everything was working again.

Bye,
David Arendt

 On 7/28/2011 10:15 AM, ad...@prnet.org wrote:
 Hi,

 I am using FreeBSD 8.2 with an UFS filesystem containing a jail. I do a
 tar of the whole jail every night. Suddenly after a few weeks of
 operation, tar complains about being unable to stat
 /usr/lib/libmilter.so.

 From inside the jail:

 ls /usr/lib | grep ^libmilter.so$ returns libmilter.so
 ls /usr/lib/libmilter.so returns ls: libmilter.so: No such file or
 directory
 ls -l /usr/lib  /dev/null returns ls: libmilter.so: No such file or
 directory

 Trying to access the file from the main system gives the same result.

 A reboot returns everything to normal.

 Exactly the same also appeared on another machine some time ago, the
 only
 difference was that it appeared on another file.

 Does anyone know what can cause this problem ?

 File system corruption would cause such behavior. And/Or perhaps
 something is wrong with the underlying disk device.

 I would search the logs for messages indicating that the storage
 medium is failing. Does dmesg contain anything related?

 I would also unmount and fsck the file system.

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



___
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


zfs clone, nfs and pxeboot

2011-07-28 Thread admin
Hi,

I wanted to experiment a bit with pxeboot. Therefore I created a zfs clone
of a jail filesystem. The clone was shared as via nfs. Pxeboot complained
that it can't load the kernel. The pxeboot ls command gave some correct
and some really messed up filenames. I then deleted the clone and copied
the filesystem (in the same zpool) using zfs send ... | zfs receive ... If
I share this new filesystem via nfs, pxeboot doesn't have the messed up
filename problem and everything works as expected. Is there some known
problems with zfs clones and nfs ?

Just for information, this was tested on FreeBSD 8.2 amd64 (not the
machine were I have problems in the other thread)

Thanks in advance,
Bye,
David Arendt

___
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 gpart create ntfs and FAT-32 partitions?

2011-07-28 Thread Nikos Vassiliadis

On 7/28/2011 7:55 AM, Kevin Oberman wrote:

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?


No, you can do this with gpart.

gpart knows the following MS related GUIDs. The types you need
to use in -t are ms-basic-data, ms-ldm-data etc.


{ ms-basic-data, G_PART_ALIAS_MS_BASIC_DATA },
{ ms-ldm-data, G_PART_ALIAS_MS_LDM_DATA },
{ ms-ldm-metadata, G_PART_ALIAS_MS_LDM_METADATA },
{ ms-reserved, G_PART_ALIAS_MS_RESERVED },
{ ntfs, G_PART_ALIAS_MS_NTFS },


I don't know which partition types you should use for the
wanted partitioning scheme.

The struct that defines the known gpart GUIDs is in
/sys/geom/part/g_part.c at line 69(on HEAD).

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


Re: zfs clone, nfs and pxeboot

2011-07-28 Thread krad
On 28 July 2011 11:41, ad...@prnet.org wrote:

 Hi,

 I wanted to experiment a bit with pxeboot. Therefore I created a zfs clone
 of a jail filesystem. The clone was shared as via nfs. Pxeboot complained
 that it can't load the kernel. The pxeboot ls command gave some correct
 and some really messed up filenames. I then deleted the clone and copied
 the filesystem (in the same zpool) using zfs send ... | zfs receive ... If
 I share this new filesystem via nfs, pxeboot doesn't have the messed up
 filename problem and everything works as expected. Is there some known
 problems with zfs clones and nfs ?

 Just for information, this was tested on FreeBSD 8.2 amd64 (not the
 machine were I have problems in the other thread)

 Thanks in advance,
 Bye,
 David Arendt

 ___
 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



you can get the kernel modules to be fetched via tftp, does it work with
that?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: how do i find a file in all directories 7 to 9 days old?

2011-07-28 Thread b. f.
  how can i use find or whatever to find a file, say 6 levels deep
  that is = 9 days old?   i'm looking fo something i had to jt down
  [[ASCII]].  can't remembr te file name, nor when i was when i had
  the idea flash into my mind

Try something like:

find / -type f -mtime -10d -mindepth 5 -maxdepth 7

See find(1) for variations.

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


Re: how do i find a file in all directories 7 to 9 days old?

2011-07-28 Thread b. f.
On 7/28/11, b. f. bf1...@googlemail.com wrote:
  how can i use find or whatever to find a file, say 6 levels deep
  that is = 9 days old?   i'm looking fo something i had to jt down
  [[ASCII]].  can't remembr te file name, nor when i was when i had
  the idea flash into my mind

 Try something like:

 find / -type f -mtime -10d -mindepth 5 -maxdepth 7

 See find(1) for variations.

Hmm. I'm not sure owing to the difference between the body and the
subject of the message, what criteria are really wanted, but for the
criteria in the subject you might use something like:

find / -type f -mtime -10d -mtime +6d


b.
___
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 seem to send to some of the freebsd lists

2011-07-28 Thread Ryan Coleman
I believe freebsd-test was determined to be broken for quite a while (something 
about the archive having nothing from the last 2 years).


On Jul 28, 2011, at 4:18 AM, Andre Goree wrote:

 I'm sending this message to check whether it reaches the list.  So far, none 
 of my messages sent to freebsd-t...@freebsd.org have been received and 
 sometimes (every 2nd or 3rd message it seems), I'll receive a notice that my 
 message was marked as spam and is awaiting moderator approval (something that 
 never comes).  I've also sent a message to this list asking for help on 
 exactly why my message might be marked as spam.
 
 I've checked my domain at mxtoolbox.com and everthing checks out ok (reverse 
 DNS, PTR record, non-open relay) so I'm not sure what the problem could be.
 
 Would appreciate any insight (if this message actually reaches the list, that 
 is).  :)
 
 Andre Goree
 an...@drenet.info
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

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


Re: Printr?

2011-07-28 Thread Polytropon
On Wed, 27 Jul 2011 16:58:57 -0700, Gary Kline wrote:
   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, if you CAN, make a checklist, and read it
as the more the better:

[ ] printer has PCL
[ ] printer has Postscript
[ ] printer has network (often N suffix in name)

Make sure _at least one_ can be checked. You
should be fine then. There are _no_ other things
that are _important_ if you want a good printer
that ACTUALLY works.

PS is the native output format for printing, so
there is no need for CUPS (except relaying the
data to the printer), and system's basic lp* tools
are fully sufficient. PCL can be generated from
PS by a single-line call to gs (the Ghostscript
interpreter from ports). And if it has network,
you can more easily access it - no need to put
it directly next to the PC, and you can share the
printer with other users in your house. The better
HP models even have their own lpr subsystem built
in, so the printing queue is in the printer and
can be manipulated by the lp* tools in the printer
instead of locally in the computer.

Do not try to save money by cheap CRAP offers.
If you have the chance, get a printer designed for
office use. It will pay. I promise. :-)



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

Oh god! Those are indications that it must be a
real crappy consumer-targeted printer (quotes
intended!). You should not waste money or time on
such nonsense.



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

2011-07-28 Thread Polytropon
On Wed, 27 Jul 2011 19:03:05 -0500, Antonio Olivares wrote:
         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 :)

There are often eco solutions that allow you to
request less laser toner. Also RET LIGHT/MED/DARK
can have an effect on toner consumption. It can
traditionally be set through the printer's operator
panel.



 I do this at work so ink lasts more on the average.

There is _no ink_ in a laser printer. If it was,
it would be a problem. :-)



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

2011-07-28 Thread Polytropon
On Wed, 27 Jul 2011 20:05:12 -0500, 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?

No need to do that. Basically, the default options
should be fine. However, _some_ programs require you
to set paper format or margins.

For actual _printing_, there is no need for any
configuration. Programs will address the default
printing queue (lp, or whatever $PRINTER says).

If your printer is Deskjet, add

setenv PRINTER Deskjet

to /etc/csh.cshrc for systemwide use (all users),
or whatever your default shell is. You can also
use login.conf to set this environmental variable.

I suggest to do so because if _not_ done, you'd
have to add -P Deskjet in too many places. :-)



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

2011-07-28 Thread Polytropon
On Wed, 27 Jul 2011 18:21:56 -0700, Gary Kline wrote:
 hope my new printer lasts at least 6 years.

You only have a chance with an office-class laser printer.
Those are mostly a bit more expensive, HUGE :-) and come
with network (see my checklist; having network is ABSOLUTELY
NECCESSARY if you want to call something office-class).

I have a HP Laserjet 4 which is almost 20 years old, and
still working perfectly. The 4000d I'm currently using
is also circa 10 years old.



   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. 

They traditionally differ in features (the basic stuff
like PS or PCL support, size of RAM, ability to add
optinons like network, more paper trays, bigger paper
trays, duplexers, output sorters and so on). Letters
at the end often are in conjunction with is for
office, is for home use only and should be seen
as a warning signal. :-)

BTW, for home home use means that it doesn't work longer
than 4 years. Nobody wants a printer _that_ old. :-)



 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. 

So then, what is non-automatic duplex handling, i. e.
manual duplexing? Reloading the paper yourself? Well,
then all non-duplex-able printers _are_ duplexing,
it's just to be manually. :-)



  interesting what
   just a litte hunting can tell you.  Yeah, postscript, pcl 5
   and 6.

Excellent, should save you much trouble. And networking
is also a fine feature, very handy, especially if you
want to be able to print from more than one machine.
USB simply isn't that smart. :-)



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

2011-07-28 Thread Matthew Seaman
On 28/07/2011 14:21, Polytropon wrote:
 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. 

 So then, what is non-automatic duplex handling, i. e.
 manual duplexing? Reloading the paper yourself? Well,
 then all non-duplex-able printers _are_ duplexing,
 it's just to be manually. :-)

You should be a bit wary of doing this sort of thing -- turning pages
over to print on the back of them.

Firstly many printers expect the paper to have a specific moisture
content.  Running the page through all the heated rollers in a laser
printer can upset that, leading to the paper being stiffer or floppier
than usual and resulting in paper jams.  You can get a similar effect if
you don't print very often and the paper gets left lying around in the
tray for ages.  Quality printers that can deal with many different
weights of paper probably won't suffer from this.

Secondly, the toner in a laser printed page is fixed to the paper by
running it over a heated roller that melts the glue[*].  Turning the
page over and running over the heated roller again can result in toner
getting transferred onto roller surfaces where it shouldn't be.  Result
can be dirty looking pages and uneven print quality.

Cheers,

Matthew

[*] Verb Sap.  If you ever have the misfortune to get covered in toner,
remember to wash in /cold/ water...

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

2011-07-28 Thread Antonio Olivares
On Thu, Jul 28, 2011 at 8:15 AM, Polytropon free...@edvax.de wrote:
 On Wed, 27 Jul 2011 20:05:12 -0500, 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?

 No need to do that. Basically, the default options
 should be fine. However, _some_ programs require you
 to set paper format or margins.

 For actual _printing_, there is no need for any
 configuration. Programs will address the default
 printing queue (lp, or whatever $PRINTER says).

 If your printer is Deskjet, add

        setenv PRINTER Deskjet

 to /etc/csh.cshrc for systemwide use (all users),
 or whatever your default shell is. You can also
 use login.conf to set this environmental variable.

 I suggest to do so because if _not_ done, you'd
 have to add -P Deskjet in too many places. :-)



 --

Polytropon,

Thank you for the suggestion.  I am using bash as my shell.  I have a
file ~/.bashrc with command in there and I get:


bash: setenv: command not found



Contents of ~/.bashrc are as follows:
/

[olivares@quadcore /usr/home/olivares]$ cat .bashrc
# User specific environment and startup programs
setxkbmap -option compose:ralt 
setenv PRINTER Deskjet 


*/


Thanks for the suggestion  hope to get it working :)

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 do i find a file in all directories 7 to 9 days old?

2011-07-28 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Thu Jul 28 02:03:19 2011
 Date: Thu, 28 Jul 2011 00:02:41 -0700
 From: Gary Kline kl...@thought.org
 To: FreeBSD Mailing List freebsd-questions@freebsd.org
 Cc: 
 Subject: how do i find a file in all directories 7 to 9 days old?

  guys,


  how can i use find or whatever to find a file, say 6 levels deep
  that is = 9 days old?   i'm looking fo something i had to jt down
  [[ASCII]].  can't remembr te file name, nor when i was when i had
  the idea flash into my mind

  sigh.

*SIGH*  indeed.

Have you ever considered READING* the manpage for the relevant tool
_before_ asking the world about the blindingly obvious?

RTFM is abaolutely appropriate here.

*DO*IT*.see the '-B primary.

If the required math is beyond you, there are 1440 minutes in a day, andz.
thus, 9 days is 12960 minutes.


___
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-28 Thread Polytropon
On Thu, 28 Jul 2011 09:57:08 -0500, Antonio Olivares wrote:
 Polytropon,
 
 Thank you for the suggestion.  I am using bash as my shell.  I have a
 file ~/.bashrc with command in there and I get:
 
 
 bash: setenv: command not found
 
 

Of course. :-) The setenv command is specific to the
C shell (FreeBSD's default dialog shell). In bash (and
in sh too), you set an environmental vairable like this:

export PRINTER=Deskjet

This is short for

PRINTER=Deskjet
export PRINTER

See man bash for details: The supplied names are marked
for automatic export to the  environment  of subsequently
executed commands. - and so on.



 Contents of ~/.bashrc are as follows:
 /
 
 [olivares@quadcore /usr/home/olivares]$ cat .bashrc
 # User specific environment and startup programs
 setxkbmap -option compose:ralt 
 setenv PRINTER Deskjet 

I don't think you need to send any of them into
background (), as they should be processed right
away.

For example, your ~/.bashrc could look like this:

setxkbmap -option compose:ralt
export PRINTER=Deskjet

Keep in mind that in _this_ case, $PRINTER is set for
_your_ account only (which should be fine on a single-
user system).

However, if you set it up in /etc/csh.cshrc for system-
wide use, user shells like bash should incorporate the
setting.




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

2011-07-28 Thread Antonio Olivares
 For example, your ~/.bashrc could look like this:

        setxkbmap -option compose:ralt
        export PRINTER=Deskjet

 Keep in mind that in _this_ case, $PRINTER is set for
 _your_ account only (which should be fine on a single-
 user system).

 However, if you set it up in /etc/csh.cshrc for system-
 wide use, user shells like bash should incorporate the
 setting.




 --

Polytropon,

I have made the changes, but the printer does not print :( from firefox.
I might ``try the /etc/csh.cshrc for system-
wide use'' option :) and get back

/
[olivares@quadcore ~]$ cat .bashrc
# User specific environment and startup programs
setxkbmap -option compose:ralt
export PRINTER=Deskjet

[olivares@quadcore ~]$ echo $PRINTER
Deskjet
/
___
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-28 Thread Antonio Olivares
 However, if you set it up in /etc/csh.cshrc for system-
 wide use, user shells like bash should incorporate the
 setting.




 --

 Polytropon,

 I have made the changes, but the printer does not print :( from firefox.
 I might ``try the /etc/csh.cshrc for system-
 wide use'' option :) and get back

 /
 [olivares@quadcore ~]$ cat .bashrc
 # User specific environment and startup programs
 setxkbmap -option compose:ralt
 export PRINTER=Deskjet

 [olivares@quadcore ~]$ echo $PRINTER
 Deskjet
 /


Made the changes with global /etc/csh.cshrc and it did not work :(

[olivares@quadcore ~]$ cat /etc/csh.cshrc
# $FreeBSD: src/etc/csh.cshrc,v 1.3.56.1.6.1 2010/12/21 17:09:25 kensmith Exp $
#
# System-wide .cshrc file for csh(1).

setenv PRINTER Deskjet


But if I change lpr to lpr -P Deskjet, I can print.  Then I will need
to play with it some more?

Thanks for your help  valuable time.

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-28 Thread Polytropon
On Thu, 28 Jul 2011 10:34:46 -0500, Antonio Olivares wrote:
 I have made the changes, but the printer does not print :(

You can always check

$ echo $PRINTER

which should give you the correct printer name, as
you did correctly show. Make sure upper/lowercase
matches exactly.

When you now use any lp* command, they should
refer to $PRINTER.

$ lpq
no entries

And as well:

$ lpr /etc/rc.conf

should print the specified file and place its entry
into the correct printer's queue.



 from firefox.
 I might ``try the /etc/csh.cshrc for system-
 wide use'' option :) and get back

In Firefox (at least here in the old 2.0.0.20_9,1 versio
as I _hardly_ use it), the printing dialog contains a
way to specify the printer directly (as some other
programs also do, but setting a printer name _for each
application_ just sounds wrong).

Go: File - Print..., then Properties, where you'll
find Print Coommand:

lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}

So you _could_ do some customization here - but it
sounds no good to do that. :-)


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

2011-07-28 Thread Polytropon
On Thu, 28 Jul 2011 10:44:52 -0500, Antonio Olivares wrote:
 Made the changes with global /etc/csh.cshrc and it did not work :(

Requires re-login, but reboot should also be fine. :-)

On the root prompt which (I assume!) has the C shell
as the default dialog shell,

% echo $PRINTER

or

% printenv PRINTER

should show the correct name. The lp* tools will then
use it (if set).



 [olivares@quadcore ~]$ cat /etc/csh.cshrc
 # $FreeBSD: src/etc/csh.cshrc,v 1.3.56.1.6.1 2010/12/21 17:09:25 kensmith Exp 
 $
 #
 # System-wide .cshrc file for csh(1).
 
 setenv PRINTER Deskjet

I also have this in mine (although Laserjet is the
name for the standard printer, and Laserjet-nodup for
an additional printer without the duplexer). My login
shell is the C shell. When I start bash from a csh
prompt, I can also use the lp* commands, as $PRINTER
will be inherited.



 But if I change lpr to lpr -P Deskjet, I can print.  Then I will need
 to play with it some more?

Make sure the settings are in effect. According to the
manpages and my experience (that it _does_ work this
way) show that if $PRINTER is present, it will be used
as the default -P parameter. It makes things easier.

For example, _all_ printing does to the default printer.
If a temporary change is needed, just set $PRINTER to a
different value as long as you need it. If it's a one
time only use, -P is definitely better.





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

2011-07-28 Thread Chip Camden
Quoth Matthew Seaman on Thursday, 28 July 2011:
 
 [*] Verb Sap.  If you ever have the misfortune to get covered in toner,
 remember to wash in /cold/ water...

That sounds like the /sapientia/ derived from /malus experientia/.

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


pgpj3eHcGn5Ol.pgp
Description: PGP signature


Re: printing to a HP Deskjet 812C printer

2011-07-28 Thread Antonio Olivares
On Thu, Jul 28, 2011 at 10:57 AM, Polytropon free...@edvax.de wrote:
 On Thu, 28 Jul 2011 10:44:52 -0500, Antonio Olivares wrote:
 Made the changes with global /etc/csh.cshrc and it did not work :(

 Requires re-login, but reboot should also be fine. :-)

Rebooted and firefox did not print :(


 On the root prompt which (I assume!) has the C shell
 as the default dialog shell,

        % echo $PRINTER

 or

        % printenv PRINTER

Did not try these, as I reverted to .bashrc export PRINTER option.


 should show the correct name. The lp* tools will then
 use it (if set).



 [olivares@quadcore ~]$ cat /etc/csh.cshrc
 # $FreeBSD: src/etc/csh.cshrc,v 1.3.56.1.6.1 2010/12/21 17:09:25 kensmith 
 Exp $
 #
 # System-wide .cshrc file for csh(1).

 setenv PRINTER Deskjet

 I also have this in mine (although Laserjet is the
 name for the standard printer, and Laserjet-nodup for
 an additional printer without the duplexer). My login
 shell is the C shell. When I start bash from a csh
 prompt, I can also use the lp* commands, as $PRINTER
 will be inherited.



 But if I change lpr to lpr -P Deskjet, I can print.  Then I will need
 to play with it some more?

 Make sure the settings are in effect. According to the
 manpages and my experience (that it _does_ work this
 way) show that if $PRINTER is present, it will be used
 as the default -P parameter. It makes things easier.

 For example, _all_ printing does to the default printer.
 If a temporary change is needed, just set $PRINTER to a
 different value as long as you need it. If it's a one
 time only use, -P is definitely better.

 --

However, in the other message:

**

You can always check

   $ echo $PRINTER

which should give you the correct printer name, as
you did correctly show. Make sure upper/lowercase
matches exactly.

When you now use any lp* command, they should
refer to $PRINTER.

   $ lpq
   no entries

And as well:

   $ lpr /etc/rc.conf

should print the specified file and place its entry
into the correct printer's queue.


***

This did work, the
$ lpr /etc/rc.conf

[olivares@quadcore ~]$ echo $PRINTER
Deskjet
[olivares@quadcore ~]$ lpq
no entries
[olivares@quadcore ~]$ lpr /etc/rc.conf
[olivares@quadcore ~]$ lpq
Deskjet is ready and printing
Rank   Owner  Job  Files Total Size
1stolivares   6/etc/rc.conf  512 bytes
[olivares@quadcore ~]$


Firefox 5 does not have the properties option :( you mentioned.  It
has File - Page Setup, File - Print Preview, File - Print [General
- Page Settings - Options],  but no properties to change printer
options :(

Thank you for the help, I am almost there, in fact I can live with what I got :)

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-28 Thread Polytropon
On Thu, 28 Jul 2011 11:06:47 -0500, Antonio Olivares wrote:
 On Thu, Jul 28, 2011 at 10:57 AM, Polytropon free...@edvax.de wrote:
  On Thu, 28 Jul 2011 10:44:52 -0500, Antonio Olivares wrote:
  Made the changes with global /etc/csh.cshrc and it did not work :(
 
  Requires re-login, but reboot should also be fine. :-)
 
 Rebooted and firefox did not print :(

Does it have some _overriding_ settings in its
printer dialog?



 Did not try these, as I reverted to .bashrc export PRINTER option.

You said that bash's echo $PRINTER would show the
correct name, so things should be fine.



 This did work, the
 $ lpr /etc/rc.conf
 
 [olivares@quadcore ~]$ echo $PRINTER
 Deskjet
 [olivares@quadcore ~]$ lpq
 no entries
 [olivares@quadcore ~]$ lpr /etc/rc.conf
 [olivares@quadcore ~]$ lpq
 Deskjet is ready and printing
 Rank   Owner  Job  Files Total Size
 1stolivares   6/etc/rc.conf  512 bytes
 [olivares@quadcore ~]$

As it should be. The processing from plain text to
whatever you need for the printer is done by the
printer filter (e. g. ghostscript-based, apsfilter,
CUPS, or something custom).



 Firefox 5 does not have the properties option :( you mentioned.  It
 has File - Page Setup, File - Print Preview, File - Print [General
 - Page Settings - Options],  but no properties to change printer
 options :(

Very strange. But then, Firefox should address the
DEFAULT printer queue, which is the one $PRINTER
points to.

Maybe you can try to print from a different web
browser, e. g. Opera, just for testing?



 Thank you for the help, I am almost there, in fact I
 can live with what I got :)

There is a workaround for this, and the emphasize
is on work: You can have Firefox printing to a file
instead to the $PRINTER. This file will be a postscript
file. You can _then_ send this PS file (per lpr file)
to the printer. :-)

But I would really suggest to look into Firefox's 
settings. There must be something strange inside.



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

2011-07-28 Thread Polytropon
On Thu, 28 Jul 2011 09:00:56 -0700, Chip Camden wrote:
 Quoth Matthew Seaman on Thursday, 28 July 2011:
  
  [*] Verb Sap.  If you ever have the misfortune to get covered in toner,
  remember to wash in /cold/ water...
 
 That sounds like the /sapientia/ derived from /malus experientia/.

No, /carpetum throwibus et garbagiae/. :-)



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

2011-07-28 Thread Chip Camden
Quoth Polytropon on Thursday, 28 July 2011:
 On Thu, 28 Jul 2011 09:00:56 -0700, Chip Camden wrote:
  Quoth Matthew Seaman on Thursday, 28 July 2011:
   
   [*] Verb Sap.  If you ever have the misfortune to get covered in toner,
   remember to wash in /cold/ water...
  
  That sounds like the /sapientia/ derived from /malus experientia/.
 
 No, /carpetum throwibus et garbagiae/. :-)
 

/LOLum magnum/

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


pgpcCw5I5cNip.pgp
Description: PGP signature


Re: disappearing files

2011-07-28 Thread Robert Bonomi

 Date: Thu, 28 Jul 2011 12:30:36 +0200
 From: ad...@prnet.org
 Subject: Re: disappearing files

 Hi,

 Dmesg returns no error. Also smartctl returns no errors. I will wait for
 other suggestion before unmounting the volume in this machine for the case
 someone else has another suggestion what to check for, because it might be
 that by umounting and remounting, it will take again a few month for the
 problem to reappear.

 On the other machine that was having the problem, dmesg and smartctl also
 returned no errors. I rebooted the machine and started fsck which also
 returned no error. On remounting, everything was working again.


When the problem shows up again, run the following script, as superuser,
from inside the jail environment. It requires one argument -- the fully
qualified path name of the 'disappeared' file.

#!/bin/sh 

if [ $# -lt 1 ] ; then
  echo  Usage: $0  pathname
  echo 'pathname' MUST be spcified
  echo
  exit 1
fi
if [ $# -gt 1 ] ; then
  echo  Usage: $0  pathname
  echo only one 'pathname' allowed (\$*\ is invalid)
  echo
  exit 1
fi

dir_name=`dirname $1` export dir_name
file_name=`basename $1 | sed -e 's/[.]/\\//'` export file_name
file_name=`dirname $file_name`
fs_name=`echo f* | tr ' ' '\n' | head -1`
fs_name='df ${fs_name} | tail -1 | cut -d ' ' -f 1'

sync; sync   # this just  minimizes fsck 'chatter'
echo
echo 'fsck output:'
yes |fsck -n  ${fs_name} # don't fix anything, continue if asked
echo
echo 'ls output:'
ls -l ${dir_name}/${file_name}*
echo
echo 'stat output:'
stat  ${dir_name}/${file_name}*
echo
echo 'stat -L output:'
stat  -L ${dir_name}/${file_name}*
echo
echo 'lsof output:'
lsof | grep  ${file_name}

This will show _all_ the relevant info for the file(s) and filesystem.  Run
it when things misbehave, _and_ when things are working properly.  Differences
should prove very informative.

Do -not- be suprised if 'fsck' reports inconsistencies -- such are to be
expected on an 'active' filesystem.  However, the list of inconsistencies
_can_ be useful if 'something unexpected' shows up there.

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


Re: zfs clone, nfs and pxeboot

2011-07-28 Thread David Arendt

Hi,

yes, I know, but it would be interesing to know if there is a general 
problem with zfs clones shared over nfs or if it is pxeboot related.


Bye,
David Arendt

On 07/28/11 13:10, krad wrote:

On 28 July 2011 11:41,ad...@prnet.org  wrote:


Hi,

I wanted to experiment a bit with pxeboot. Therefore I created a zfs clone
of a jail filesystem. The clone was shared as via nfs. Pxeboot complained
that it can't load the kernel. The pxeboot ls command gave some correct
and some really messed up filenames. I then deleted the clone and copied
the filesystem (in the same zpool) using zfs send ... | zfs receive ... If
I share this new filesystem via nfs, pxeboot doesn't have the messed up
filename problem and everything works as expected. Is there some known
problems with zfs clones and nfs ?

Just for information, this was tested on FreeBSD 8.2 amd64 (not the
machine were I have problems in the other thread)

Thanks in advance,
Bye,
David Arendt

___
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



you can get the kernel modules to be fetched via tftp, does it work with
that?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


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


Re: can't build teTeX port in FreeBSD 8.2 amd64

2011-07-28 Thread Antonio Olivares
Anton  et all,

I have found another book diffyqs that does not compile with default
teTeX, but does with TeXLive:

Book is found here:
http://www.jirka.org/diffyqs/

Source is here:
http://www.jirka.org/diffyqs/diffyqs.tar.gz

I create build script:
/*** build script **/

#!/bin/sh

pdflatex -interaction=nonstopmode diffyqs.tex
pdflatex -interaction=nonstopmode diffyqs.tex
makeindex diffyqs
pdflatex -interaction=nonstopmode diffyqs.tex

/*** end build script **/

Errors:

 Xy-pic version 3.7 1999/02/16
 Copyright (c) 1991-1998 by Kristoffer H. Rose krisr...@ens-lyon.fr
 Xy-pic is free software: see the User's Guide for details.

Loading kernel: messages; fonts; allocations: state, direction,
utility macros; pictures: \xy, positions, objects, decorations;
kernel objects: directionals, circles, text; options; algorithms: directions,
edges, connections;  Xy-pic loaded)
(/usr/local/share/texmf-dist/tex/generic/xypic/xyall.tex
 Xy-pic option: All features v.3.3
(/usr/local/share/texmf-dist/tex/generic/xypic/xycurve.tex
 Xy-pic option: Curve and Spline extension v.3.7 curve, circles, loaded)
(/usr/local/share/texmf-dist/tex/generic/xypic/xyframe.tex
 Xy-pic option: Frame and Bracket extension v.3.7 loaded)
(/usr/local/share/texmf-dist/tex/generic/xypic/xycmtip.tex
 Xy-pic option: Computer Modern tip extension v.3.3
(/usr/local/share/texmf-dist/tex/generic/xypic/xytips.tex
 Xy-pic option: More Tips extension v.3.3 loaded) loaded)
(/usr/local/share/texmf-dist/tex/generic/xypic/xyline.tex
 Xy-pic option: Line styles extension v.3.6 loaded)
(/usr/local/share/texmf-dist/tex/generic/xypic/xyrotate.tex
 Xy-pic option: Rotate and Scale extension v.3.3 loaded)
(/usr/local/share/texmf-dist/tex/generic/xypic/xycolor.tex
 Xy-pic option: Colour extension v.3.3 loaded)
(/usr/local/share/texmf-dist/tex/generic/xypic/xymatrix.tex
 Xy-pic option: Matrix feature v.3.4 loaded)
(/usr/local/share/texmf-dist/tex/generic/xypic/xyarrow.tex
 Xy-pic option: Arrow and Path feature v.3.5 path, \ar, loaded)
(/usr/local/share/texmf-dist/tex/generic/xypic/xygraph.tex
 Xy-pic option: Graph feature v.3.7 loaded) loaded))
(/usr/local/share/texmf-dist/tex/latex/units/units.sty
(/usr/local/share/texmf-dist/tex/latex/base/ifthen.sty)
(/usr/local/share/texmf-dist/tex/latex/units/nicefrac.sty))
(/usr/local/share/texmf-dist/tex/latex/booktabs/booktabs.sty)
(/usr/local/share/texmf-dist/tex/latex/microtype/microtype.sty
(/usr/local/share/texmf-dist/tex/latex/microtype/microtype.cfg))
(/usr/local/share/texmf-dist/tex/latex/txfonts/txfonts.sty)

! Package keyval Error: pdfborderstyle undefined.

See the keyval package documentation for explanation.
Type  H return  for immediate help.
 ...

l.50 }

If I find others, I will report back.  Thanks  sorry for not sending
the other email correctly.

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-28 Thread Warren Block

On Wed, 27 Jul 2011, Antonio Olivares wrote:


On Wed, Jul 27, 2011 at 8:05 PM, Antonio Olivares
olivares14...@gmail.com 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?



Ok I have figured it out :)

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


lpr uses the lp queue by default.  If that queue is capable of 
accepting PostScript (with a filter, in this case), all that's needed is 
for the application to use 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: how do i find a file in all directories 7 to 9 days old?

2011-07-28 Thread Christian Barthel
On Thu, Jul 28, 2011 at 10:10:43AM -0500, Robert Bonomi wrote:
  From owner-freebsd-questi...@freebsd.org  Thu Jul 28 02:03:19 2011
  Date: Thu, 28 Jul 2011 00:02:41 -0700
  From: Gary Kline kl...@thought.org
  To: FreeBSD Mailing List freebsd-questions@freebsd.org
  Cc: 
  Subject: how do i find a file in all directories 7 to 9 days old?
 
   guys,
 
 
   how can i use find or whatever to find a file, say 6 levels deep
   that is = 9 days old?   i'm looking fo something i had to jt down
   [[ASCII]].  can't remembr te file name, nor when i was when i had
   the idea flash into my mind
 
   sigh.
 
 *SIGH*  indeed.
 
 Have you ever considered READING* the manpage for the relevant tool
 _before_ asking the world about the blindingly obvious?
 
 RTFM is abaolutely appropriate here.

Just relax :)
He has got 24++ years experience: 

Of_Interest: With  24++ years  of service to the  Unix community.

and can't work with find @_@

 
 *DO*IT*.see the '-B primary.
 
 If the required math is beyond you, there are 1440 minutes in a day, andz.
 thus, 9 days is 12960 minutes.
 
 
 ___
 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

-- 
Christian Barthel 
Public-Key: http://bc.user-mode.org/bc.asc 
Mail: b...@user-mode.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: Howto's, Advice, Hints/Gotchas about livecd creation in FreeBSD

2011-07-28 Thread Devin Teske
 -Original Message-
 From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
 questi...@freebsd.org] On Behalf Of Antonio Olivares
 Sent: Wednesday, July 27, 2011 5:02 PM
 To: FreeBSD Questions
 Subject: Howto's, Advice, Hints/Gotchas about livecd creation in FreeBSD
 
 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

Though still in its infancy, my project brings some features that no others
have:

http://druidbsd.sourceforge.net/

I've not seen any other project utilize ISOLINUX as the boot-loader. Doing so
has freed me from many restrictions. For example, my one single ISO can be
written to either CD/DVD or USB or Hard Disk or SSD (without modification).

Naturally, I'm not going to document how to burn an ISO (that should be pretty
straight forward), but here's a link on how to write the ISO to either USB thumb
drive (process is similar for HDD/SSD, just skip steps 2 and 3 because you
presumably already know the device name associated with your target disk):

1. Visit http://sourceforge.net/projects/druidbsd/files/Druid-0.0.iso/download
and download Druid-0.0.iso to a local directory.

2. Insert USB thumb drive

3. Execute: camcontrol devlist

NOTE: find the `daN' device associated with your thumb drive

4. Execute: dd if=Druid-0.0.iso of=/dev/da5

NOTE: assuming `da5' is your thumb drive

--- At this point, your thumb drive is ready to rock and roll --

However, continue with the remaining below steps to create a 2nd [visible]
partition beyond the primary [invisible] bootable partition (allowing you to use
the remainder of your thumb drive for usable storage)...

5. Execute: echo p 2 0x0c * * | fdisk -f - /dev/da5

NOTE: again, assuming `da5' is your thumb drive

6. Execute: newfs_msdos /dev/da5s2

NOTE: again, assuming `da5' is your thumb drive

NOTE: You'll get a class not found response. Just ignore this. It's completely
spurious.

That's it. You now have a thumb drive with:

a. An invisible boot partition for booting into Druid (a disc full of tools)
b. A visible partition for storage, usable under Mac, Windows, Linux, and UNIX.

NOTE/RECAP: Don't be fooled into thinking that this will work with just any-ol'
ISO file. This works because (a) I am using the ISOLINUX boot-loader to
chain-load to the FreeBSD mfsroot and (b) I've post-processed my ISO file
(generated with mkisofs) with the ISOLINUX-isohybrid utility.


Other advantages include the fact that the smallest possible ISO is 28MB, but
can be grown to any size you want (my mfsroot remounts the CD-ROM through
/dev/iso9660 GEOM structure).
-- 
Devin

 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