Re: [gentoo-user] Recreating a directory structure and indicating a files presence

2012-09-23 Thread Andrew Lowe

On 09/20/12 22:13, Alan McKinnon wrote:

On Thu, 20 Sep 2012 20:33:39 +0800
Andrew Lowe a...@wht.com.au wrote:


Hi all,
I have the situation where I have a large amount of data,
many TB's, made up of many, many files. This information has now been
archived but I've got people who want to be able to see what data
does/does not exist, filling in gaps where they may exist.

As this data used to be available/visible in a directory
structure, ie via a file browser, I thought the easiest way for them
to see if something existed would be to create a mirror of the
directory structure and then populate this dir structure with 1 - 5
byte files with the same name as the real data files that now
reside in the archive. I've seen some scripts on the interweb that
allow me to create the dir structure, but does anyone have any ideas
how to do the creation of the marker files in the active file
system?

Just buying more hard disks and keeping the data on line also
isn't an option.

Any thoughts, greatly appreciated,

Andrew



I don't understand why you specify 1-5 byte files. Those few bytes will
always be useless. Rather use 0-length files.

On the archive:

find /root/of/dir/structure -type d  dirs.txt
find /root/of/dir/structure -type f  files.txt

Copy those two files to the on-line system:

for I in `cat dirs.txt` ; do mkdir -p $I ; done
for I in `cat files.txt` ; do touch -p $I ; done

Do that in the appropriate top-level directory of course. You can
probably make it more efficient using decent options to xargs, but what
the hell, I'd do it as-is. It's a once off action and finding the xargs
man page will take longer than the mkdirs



Gentlemen,
	Thanks for the suggestions, worked like a charm. I did the above and 
except for whitespaces, which shouldn't have been there in the first 
place and -, things went well. As to the reason for 1 - 5 bytes, I 
forgot about zero length files.


Andrew



[gentoo-user] Broken Ebuild for www-misc/fcgiwrap-1.0.3-r1

2012-09-23 Thread Eliezer Croitoru

the ebuild form portage: www-misc/fcgiwrap-1.0.3-r1
has the line 22: S=${WORKDIR}/gnosek-${PN}-${MY_REV}
and when trying to emerge it it gives an error
 * Messages for package www-misc/fcgiwrap-1.0.3-r1:

 * ERROR: www-misc/fcgiwrap-1.0.3-r1 failed (prepare phase):
 *   The source directory 
'/var/tmp/portage/www-misc/fcgiwrap-1.0.3-r1/work/gnosek-fcgiwrap-' 
doesn't exist

 *
 * Call stack:
 *ebuild.sh, line 708:  Called ebuild_main 'prepare'
 *   phase-functions.sh, line 955:  Called dyn_prepare
 *   phase-functions.sh, line 372:  Called die
 * The specific snippet of code:
 *  die The source directory '${S}' doesn't exist
 *
 * If you need support, post the output of `emerge --info 
'=www-misc/fcgiwrap-1.0.3-r1'`,
 * the complete build log and the output of `emerge -pqv 
'=www-misc/fcgiwrap-1.0.3-r1'`.
 * The complete build log is located at 
'/var/tmp/portage/www-misc/fcgiwrap-1.0.3-r1/temp/build.log'.
 * The ebuild environment file is located at 
'/var/tmp/portage/www-misc/fcgiwrap-1.0.3-r1/temp/environment'.

 * Working directory: '/var/tmp/portage/www-misc/fcgiwrap-1.0.3-r1'
 * S: '/var/tmp/portage/www-misc/fcgiwrap-1.0.3-r1/work/gnosek-fcgiwrap-'


and thie is since there is no 
/var/tmp/portage/www-misc/fcgiwrap-1.0.3-r1/work/gnosek-fcgiwrap-


but there is a folder:
/var/tmp/portage/www-misc/fcgiwrap-1.0.3-r1/work/gnosek-fcgiwrap-58ec209


changing the ebuild sources to uncomment the variable MY_REV=58ec209
fix the problem.

change it and run:  ebuild 
/usr/portage/www-misc/fcgiwrap/fcgiwrap-1.0.3-r1.ebuild digest


to update the ebuild and it runs fine.

Eliezer



[gentoo-user] OT: new printer suggestions?

2012-09-23 Thread James
Hello,

I've mostly had HP printers over the years.
I have a HP officejet 8500 that is just cannot not do
everything I need. I have googled for hours
and only found what I like, in a Brother printer
(Brother MFC-J6710DW Inkjet All-in-One Printer)

I have never owned a brother printersso

1. Does it work well with CUPS/linux?
2. Are they reliable for a small workgroup?
3. Are the color cartridges reasonable priced?

Here is what my needs are:

dual trays (letter size and 11x 17)
prints envelops easily (#10 mostly)
dual sided printing
color

less than 500.00 and reliable for small quantity.


Any suggestions? It must work well with Cups over ethernet
as well as with winblows (7 and 8).

thoughts?

James




Re: [gentoo-user] OT: new printer suggestions?

2012-09-23 Thread Michael Trausch
Whatever you get, ensure it is PCL or Postscript, which will guarantee it
works with everything.
On Sep 23, 2012 8:50 PM, James wirel...@tampabay.rr.com wrote:

 Hello,

 I've mostly had HP printers over the years.
 I have a HP officejet 8500 that is just cannot not do
 everything I need. I have googled for hours
 and only found what I like, in a Brother printer
 (Brother MFC-J6710DW Inkjet All-in-One Printer)

 I have never owned a brother printersso

 1. Does it work well with CUPS/linux?
 2. Are they reliable for a small workgroup?
 3. Are the color cartridges reasonable priced?

 Here is what my needs are:

 dual trays (letter size and 11x 17)
 prints envelops easily (#10 mostly)
 dual sided printing
 color

 less than 500.00 and reliable for small quantity.


 Any suggestions? It must work well with Cups over ethernet
 as well as with winblows (7 and 8).

 thoughts?

 James





[gentoo-user] libreoffice: don't know how to handle video

2012-09-23 Thread Valmor de Almeida
Hello,

I have emerged libreoffice with the USE flags below and still the
Insert-Movie and Sounds does not import any movies I tried (formats):
avi, mpg, ogg.
Every movie I tried plays fine with vlc on my machine.

Has anyone been able to insert and play movies in libreoffice?

Thanks,

--
Valmor



- equery uses libreoffice
[ Legend : U - final flag setting for installation]
[: I - package is installed with flag ]
[ Colors : set, unset ]
 * Found these USE flags for app-office/libreoffice-3.5.6.2:
 U I
 - - binfilter  : Enable support for legacy StarOffice 5.x and earlier file
  formats
 - - binfilterdebug : Generate debug info for binfilter code (not recommended,
  huge files result)
 + + branding   : Enable Gentoo specific branding
 + + cups   : Add support for CUPS (Common Unix Printing System)
 - - dbus   : Enable dbus support for anything that needs it (gpsd,
  gnomemeeting, etc)
 - - eds: Enables support for Evolution-Data-Server (EDS)
 - - gnome  : Adds GNOME support
 + + graphite   : Enable support for non-Roman fonts via media-gfx/graphite2
 + + gstreamer  : Adds support for media-libs/gstreamer (Streaming media)
 + + gtk: Adds support for x11-libs/gtk+ (The GIMP Toolkit)
 + + java   : Adds support for Java
 - - jemalloc   : Use dev-libs/jemalloc for allocations
 - - kde: Adds support for KDE (K Desktop Environment)
 - - mysql  : Adds mySQL Database support
 - - nlpsolver  : Build extension for non-linear solving in calc
 + + nsplugin   : Build plugin for browsers supporting the Netscape plugin
  architecture (that is almost any modern browser)
 - - odk: Build the Office Development Kit
 + + opengl : Adds support for OpenGL (3D graphics)
 - - pdfimport  : Build pdf-import extension using app-text/poppler. Note
  that you don't need this for pdf-export!
 - - postgres   : Adds support for the postgresql database
 + + svg: Adds support for SVG (Scalable Vector Graphics)
 - - test   : Workaround to pull in packages needed to run with
  FEATURES=test. Portage-2.1.2 handles this internally, so
  don't set it in make.conf/package.use anymore
 + + vba: Enable support for VBA compatibility and ActiveX embedding
 + + webdav : Adds support for HTTP content adding via net-libs/neon
 + + xmlsec : Adds support for document signing using internal modified
  dev-libs/xmlsec and system dev-libs/nss