Re: [gentoo-user] LVM: extending volume groups and logical volumes

2011-12-16 Thread Philip Webb
111215 Allan Gottlieb wrote:
 I need to add space to /var -- thank you, libreoffice -- ,
 which is on lvm.  Since my one volume group vg is getting low,
 I thought this would be a good time to extend it as well ...
   phy vol:pvcreate /dev/sda8
 ...

I have long had my own extra var-type dir, which i call '/z'
(it started out as all the otherwise unassigned space on the disk).
Currently, it has  20 GB , of which  8 GB  are used,
all temporary stuff, none of it for anything of lasting value.
That's where I do all my heavy-lifting, eg ISOs, testing packed archives
 esp  /z/tmp , which is my Portage tempdir.

In your set-up, you might consider mounting  /dev/sda8  as a similar big dir.
That would avoid all the problems of changing existing dir sizes
 also any need to alter LVM.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] LVM: extending volume groups and logical volumes

2011-12-16 Thread Neil Bothwick
On Fri, 16 Dec 2011 08:41:07 +0100, J. Roeleveld wrote:

 On Friday 16 December 2011 03:18:16 Allan Gottlieb wrote:
  I need to add space to /var (thank you, libreoffice), which is on lvm.
  Since my one volume group vg is getting low, I thought this would be a
  good time to extend it as well.
 
 Actually, you need space in /var/tmp/portage

In fact, he needs space in wherever $PORTAGE_TMPDIR points to. Just set
this variable to somewhere with enough space before emerging libreoffice.

  phy disk:   /dev/sda  my only drive
  phy part:   fdisk   create another partition of type LVM (/dev/sda8)
  phy vol:pvcreate /dev/sda8
  vol grp:vgextend vg /dev/sda8
  log vol:lvextend --size +10G /dev/vg/var
  file sys:   resize2fs /dev/vg/var

Did you say your existing PV is sda7? In that case, why mess with having
two adjacent partitions are separate PVs in the same VG. Delete sda8,
resize sda7 to fill the space and run pvresize /dev/sda7 to resize the PV
to fit. Then you can use lvresize and resize2fs to increase /var, or
create a separate space for PORT_TMPDIR.

I prefer to keep potentially huge temporary directories away from
critical filesystems like /var.


-- 
Neil Bothwick

If God can't help you, how about Mr. Coffee?


signature.asc
Description: PGP signature


[gentoo-user] Any video optimization tips?

2011-12-16 Thread Walter Dnes
  I'm trying to make an older PC display high-def streaming video.  It's
a Dell Inspiron Desktop 530, with 2 gigs of ram, assembled and shipped
August 2007.  It has an Intel dual core (*NOT* a Core Duo) cpu like so
(from /proc/cpuinfo).

vendor_id   : GenuineIntel
cpu family  : 6
model   : 15
model name  : Genuine Intel(R) CPU2140  @ 1.60GHz
stepping: 2
cpu MHz : 1595.660
cache size  : 1024 KB

  The original Intel onboard GPU wasn't really up to the task.  I bought
an Nvidia GeForce 6200 video card, set it up, and it handles 1280x720p
video OK, from my HDHomerun TV tuner box.  1920x1080i shows the
occasional hint of stuttering.  I followed the instructions at
http://www.gentoo.org/doc/en/xorg-config.xml including the Nouveau
driver.  I'm running ICEWM to minimize system overhead.  Are there any
other tips and tricks for getting better video performance out of this
admittedly old system?  glxgears shows 382 fps when the system is idle.

  It works without an xorg.conf.  This also happens to my mdev test
machine (no udev).  I'm attaching the Xorg log file for more detail.

-- 
Walter Dnes waltd...@waltdnes.org


x.gz
Description: Binary data


Re: [gentoo-user] Any video optimization tips?

2011-12-16 Thread Helmut Jarausch
On 12/16/2011 12:11:34 PM, Walter Dnes wrote:
   I'm trying to make an older PC display high-def streaming video. 
 It's
 a Dell Inspiron Desktop 530, with 2 gigs of ram, assembled and 
 shipped
 August 2007.  It has an Intel dual core (*NOT* a Core Duo) cpu like
 so
 (from /proc/cpuinfo).
 
 vendor_id   : GenuineIntel
 cpu family  : 6
 model   : 15
 model name  : Genuine Intel(R) CPU2140  @ 1.60GHz
 stepping: 2
 cpu MHz : 1595.660
 cache size  : 1024 KB
 
   The original Intel onboard GPU wasn't really up to the task.  I
 bought
 an Nvidia GeForce 6200 video card, set it up, and it handles 
 1280x720p
 video OK, from my HDHomerun TV tuner box.  1920x1080i shows the
 occasional hint of stuttering.  I followed the instructions at
 http://www.gentoo.org/doc/en/xorg-config.xml including the Nouveau
 driver.  I'm running ICEWM to minimize system overhead.  Are there 
 any
 other tips and tricks for getting better video performance out of 
 this
 admittedly old system?  glxgears shows 382 fps when the system is
 idle.
 
   It works without an xorg.conf.  This also happens to my mdev test
 machine (no udev).  I'm attaching the Xorg log file for more detail.
 

You could try to install a recent kernel  (3.1.5 for me) and enable
the CONFIG_DRM_NOUVEAU=y  (it's a staging driver, just search for it
by entering / in the make menuconfig environment).

Then re-emerge the x11-drivers/xf86-video-nouveau driver.

I hope this helps a bit,

Helmut.



Re: [gentoo-user] LVM: extending volume groups and logical volumes

2011-12-16 Thread Pandu Poluan
On Dec 16, 2011 5:05 PM, Neil Bothwick n...@digimed.co.uk wrote:

 On Fri, 16 Dec 2011 08:41:07 +0100, J. Roeleveld wrote:

  On Friday 16 December 2011 03:18:16 Allan Gottlieb wrote:
   I need to add space to /var (thank you, libreoffice), which is on lvm.
   Since my one volume group vg is getting low, I thought this would be a
   good time to extend it as well.
 
  Actually, you need space in /var/tmp/portage

 In fact, he needs space in wherever $PORTAGE_TMPDIR points to. Just set
 this variable to somewhere with enough space before emerging libreoffice.

   phy disk:   /dev/sda  my only drive
   phy part:   fdisk   create another partition of type LVM (/dev/sda8)
   phy vol:pvcreate /dev/sda8
   vol grp:vgextend vg /dev/sda8
   log vol:lvextend --size +10G /dev/vg/var
   file sys:   resize2fs /dev/vg/var

 Did you say your existing PV is sda7? In that case, why mess with having
 two adjacent partitions are separate PVs in the same VG. Delete sda8,
 resize sda7 to fill the space and run pvresize /dev/sda7 to resize the PV
 to fit. Then you can use lvresize and resize2fs to increase /var, or
 create a separate space for PORT_TMPDIR.

 I prefer to keep potentially huge temporary directories away from
 critical filesystems like /var.


Alternatively, mount sda8 under /mnt, create shadow directories in sda8,
and bindmount them when needed.

E.g.:

mkdir /mnt/sparespace
mount /dev/sda8 /mnt/sparespace
mount -o bind /mnt/sparespace /var/tmp/portage

Of course, this assumes sda8 has enough space for heavy compiles (i.e., 10
GiB or more). Create a huge number of inodes or use a filesystem other than
ext[2-4] for sda8, and you're covered.

Rgds,


[gentoo-user] Re: Any video optimization tips?

2011-12-16 Thread James
Helmut Jarausch jarausch at igpm.rwth-aachen.de writes:



I'm trying to make an older PC display high-def streaming video. 

 You could try to install a recent kernel  (3.1.5 for me) and enable
 the CONFIG_DRM_NOUVEAU=y  (it's a staging driver, just search for it
 by entering / in the make menuconfig environment).

Additionally, when I use older machines, sometimes minimization
of the compile flags helps on some apps and not on others. You
have to experiment. It usually works for machines that are
design for a single special purpose, not workstations or every
server service you can compile for. I never optimized one
for just streaming video, so I cannot give you specifics.

Here is one I use for a firewall. Note the CFLAGS (Os) setting
for small:

CFLAGS=-Os -march=i586 -pipe -fomit-frame-pointer
USE=-* -nls mmx hardened  ncurses ssl crypt berkdb tcpd pam perl pcre \
python readline zlib bzip2 nptl nptlonly syslog

Find the minimal flags and the optimum CFLAGS settings for 
your needs. Refine by testing. USE a fast hard drive.
Avoid apps that soak up ram. Some video apps are ram_hogs...

I'd be curious to learn what you finally figure out.

hth,
James






Re: [gentoo-user] Any video optimization tips?

2011-12-16 Thread Michael Mol
On Fri, Dec 16, 2011 at 6:11 AM, Walter Dnes waltd...@waltdnes.org wrote:
  I'm trying to make an older PC display high-def streaming video.  It's
 a Dell Inspiron Desktop 530, with 2 gigs of ram, assembled and shipped
 August 2007.  It has an Intel dual core (*NOT* a Core Duo) cpu like so
 (from /proc/cpuinfo).

 vendor_id       : GenuineIntel
 cpu family      : 6
 model           : 15
 model name      : Genuine Intel(R) CPU            2140  @ 1.60GHz
 stepping        : 2
 cpu MHz         : 1595.660
 cache size      : 1024 KB

  The original Intel onboard GPU wasn't really up to the task.  I bought
 an Nvidia GeForce 6200 video card, set it up, and it handles 1280x720p
 video OK, from my HDHomerun TV tuner box.  1920x1080i shows the
 occasional hint of stuttering.  I followed the instructions at
 http://www.gentoo.org/doc/en/xorg-config.xml including the Nouveau
 driver.  I'm running ICEWM to minimize system overhead.  Are there any
 other tips and tricks for getting better video performance out of this
 admittedly old system?  glxgears shows 382 fps when the system is idle.

  It works without an xorg.conf.  This also happens to my mdev test
 machine (no udev).  I'm attaching the Xorg log file for more detail.

Use any nVidia card capable of full, in-hardware decoding of full
h.264 AVC. I've got two GeForce 210s which I purchased because A) they
were $50/pc two years ago, and B) they did exactly this.

Then enable vdpau. (But that means running the proprietary drivers,
disabling KMS, disabling NOVOU, etc)

Then use any media player with support for vdpau. I know mplayer will
do it. I'm unsure about ffmpeg, flash, etc.

With an (old) $50 card, you can get an old Core 2 desktop system to
serve as an HTPC.


-- 
:wq



[gentoo-user] Re: Any video optimization tips?

2011-12-16 Thread Nikos Chantziaras

On 12/16/2011 04:13 PM, Michael Mol wrote:

With an (old) $50 card, you can get an old Core 2 desktop system to
serve as an HTPC.


Core 2 can be an HTPC even with a crap card. You can play 1080p on the 2 
CPUs just fine.


A Core 2 desktop system is certainly not old.




[gentoo-user] iptables question...

2011-12-16 Thread Tanstaafl

Hi all,

I was reading up on some iptables rules in the gentoo security handbook:

http://www.gentoo.org/doc/en/security/security-handbook.xml?part=1chap=12style=printable

It mentions DROPing packets with an INVALID state.

It sounded/sounds like a good idea, so I added the following rule:

-A INPUT -i eth0 -m state --state INVALID -j LOG

As suggested, I addd this rule just ABOVE this one:

-A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT

I also changed the DROP action to LOG so I could see what it did if 
anything.


Right after adding this rule, I started seeing lines like this in the log:

Dec 16 10:15:31 myhost kernel: IN=eth0 OUT= 
MAC=00:e0:81:54:9c:8a:00:90:7f:86:a8:c0:08:00 SRC=208.87.137.233 
DST=192.168.1.252 LEN=40 TOS=0x00 PREC=0x00 TTL=52 ID=0 DF PROTO=TCP 
SPT=50113 DPT=25 WINDOW=0 RES=0x00 RST URGP=0


What I don't understand is why it isn't using my LOG prefix that is used 
for everything else:


-A INPUT -j LOG --log-prefix (fw-drop):  --log-level 7

Anyone?



[gentoo-user] DVD Movie backups

2011-12-16 Thread Mark Knecht
For archive purposes is there a simple way for me to make a
bit-for-bit copy retail DVDs I've purchased?

Assume that I've got the right sort of DVD drive, I guess something
capable of writing dual-layer DVDs.

Thanks,
Mark



Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...

2011-12-16 Thread Indi
On Wed, Dec 14, 2011 at 04:40:01PM +0100, Tanstaafl wrote:
 
 Hope someone has an idea...

You could try esmtp; Always seems to work for me when the others fail. 
Haven't tried what you're pursuing, but surely it can be made to work
fairly easily...

-- 
caveat utilitor
♫ ❤ ♫ ❤ ♫ ❤ ♫ ❤ 



Re: [gentoo-user] DVD Movie backups

2011-12-16 Thread Michael Mol
No; you'll have to decrypt, or do without the encrypted bits.

dvdbackup is probably the closest to what you want.

On Dec 16, 2011 11:09 AM, Mark Knecht markkne...@gmail.com wrote:

 For archive purposes is there a simple way for me to make a
 bit-for-bit copy retail DVDs I've purchased?

 Assume that I've got the right sort of DVD drive, I guess something
 capable of writing dual-layer DVDs.

 Thanks,
 Mark




Re: [gentoo-user] DVD Movie backups

2011-12-16 Thread Mark Knecht
On Fri, Dec 16, 2011 at 9:06 AM, Michael Mol mike...@gmail.com wrote:
 No; you'll have to decrypt, or do without the encrypted bits.

 dvdbackup is probably the closest to what you want.

 On Dec 16, 2011 11:09 AM, Mark Knecht markkne...@gmail.com wrote:

 For archive purposes is there a simple way for me to make a
 bit-for-bit copy retail DVDs I've purchased?

 Assume that I've got the right sort of DVD drive, I guess something
 capable of writing dual-layer DVDs.

 Thanks,
 Mark

Interesting. So even something that just copies blocks of data, like
dd, can't be used for that purpose?

I have no interest in tearing apart the DVD in any way. It was more
about the idea of a fire causing the loss of maybe $15K-$20K
investment over the years. I can rip all the CDs, keep the ripped
version here to watch on the computer, and store the DVDs elsewhere,
but that elimiates (generally) being able to watch special features
which my wife and kid enjoy.

Thanks for the info.

- Mark



Re: [gentoo-user] DVD Movie backups

2011-12-16 Thread Joerg Schilling
Mark Knecht markkne...@gmail.com wrote:

 On Fri, Dec 16, 2011 at 9:06 AM, Michael Mol mike...@gmail.com wrote:
  No; you'll have to decrypt, or do without the encrypted bits.
 
  dvdbackup is probably the closest to what you want.
 
  On Dec 16, 2011 11:09 AM, Mark Knecht markkne...@gmail.com wrote:
 
  For archive purposes is there a simple way for me to make a
  bit-for-bit copy retail DVDs I've purchased?
 
  Assume that I've got the right sort of DVD drive, I guess something
  capable of writing dual-layer DVDs.
 
  Thanks,
  Mark

 Interesting. So even something that just copies blocks of data, like
 dd, can't be used for that purpose?

Yo you see that you get the same answer as you received two days ago from the 
Cdrecord-support mailing list ;-)

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] DVD Movie backups

2011-12-16 Thread Michael Mol
On Fri, Dec 16, 2011 at 12:25 PM, Mark Knecht markkne...@gmail.com wrote:
 On Fri, Dec 16, 2011 at 9:06 AM, Michael Mol mike...@gmail.com wrote:
 No; you'll have to decrypt, or do without the encrypted bits.

 dvdbackup is probably the closest to what you want.

 On Dec 16, 2011 11:09 AM, Mark Knecht markkne...@gmail.com wrote:

 For archive purposes is there a simple way for me to make a
 bit-for-bit copy retail DVDs I've purchased?

 Assume that I've got the right sort of DVD drive, I guess something
 capable of writing dual-layer DVDs.

 Thanks,
 Mark

 Interesting. So even something that just copies blocks of data, like
 dd, can't be used for that purpose?

 I have no interest in tearing apart the DVD in any way. It was more
 about the idea of a fire causing the loss of maybe $15K-$20K
 investment over the years. I can rip all the CDs, keep the ripped
 version here to watch on the computer, and store the DVDs elsewhere,
 but that elimiates (generally) being able to watch special features
 which my wife and kid enjoy.

 Thanks for the info.

I did exactly the same thing a few years ago, but it's been a long,
long time, so my memory on my process is very fuzzy. (It also involved
my first foray into RAID...I've got a couple hundred DVDs!) Go ahead,
count the number of times I qualify something with IIRC...

dvdbackup can recreate the ISO images, IIRC.

If you run a simple 'dd' on a DVD with encrypted portions, you'll get
I/O errors when it encounters the encrypted pieces. IIRC, some of the
data required to decrypt those portions is on the disc, but it's in an
out-of-the-way portion that won't show up as part of the block device.
IIRC, dvdbackup makes use of libdvdcss to decrypt the encrypted
portions[1], and writes a decrypted version of the data. *this* is why
you can't make a bit-for-bit copy; the output data would be decrypted.

There are other, later obstacles, too; once CSS was broken, some
content publishers (Bandai USA, for example) would fudge the ISO spec
and the DVD nav specs in ways that didn't break *most* hardware DVD
players, but did tend to break players which strictly adhered to the
standards, such as ffmpeg, vlc and mplayer. It also broke dvdbackup
for me, IIRC, which is why I had to resort to vobcopy in some cases. I
expect the software angle for handling these things has gotten better,
though.

[1] I don't know how it does it when dd would have hit an I/O error.
Obviously, my understanding of the workings of dvdbackup, dd, DVDs and
CSS encryption is flawed somehow.

-- 
:wq



Re: [gentoo-user] apache2 not running (no pid file)

2011-12-16 Thread Mick
On Tuesday 13 Dec 2011 19:20:57 Todd Goodman wrote:
 * Grant emailgr...@gmail.com [111213 14:07]:
  Has anyone else noticed this sort of behavior from apache-2.2.21-r1:
  
  # /etc/init.d/apache2 restart
  
   * Stopping apache2 ... [ ok ]
   * Starting apache2 ...
   * start-stop-daemon: /usr/sbin/apache2 is already running [ ok ]
  
  # /etc/init.d/apache2 restart
  
   * apache2 not running (no pid file)
   * Starting apache2 ... [ ok ]
  
  It probably happens about half the time I restart apache2.  Nothing in
  /var/log/apache2/error_log besides:
  
  [notice] caught SIGTERM, shutting down
  [notice] Apache/2.2.21 (Unix) configured -- resuming normal operations
  
  - Grant
 
 I've seen that for years.  I always assumed it was because the apache2
 stop didn't complete before the apache2 start tried to start when I use
 /etc/init.d/apache2 restart.
 
 Instead I do an /etc/init.d/apache2 stop; ps aux | egrep apache until I
 see all the threads are gone and then a /etc/init.d/apache2 start

+1

If there aren't many threads a quick restart will work fine, but if there are 
many threads hanging around then you may be better off to stop, wait, then 
start.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] DVD Movie backups

2011-12-16 Thread Mark Knecht
On Fri, Dec 16, 2011 at 9:53 AM, Michael Mol mike...@gmail.com wrote:
 On Fri, Dec 16, 2011 at 12:25 PM, Mark Knecht markkne...@gmail.com wrote:
 On Fri, Dec 16, 2011 at 9:06 AM, Michael Mol mike...@gmail.com wrote:
 No; you'll have to decrypt, or do without the encrypted bits.

 dvdbackup is probably the closest to what you want.

 On Dec 16, 2011 11:09 AM, Mark Knecht markkne...@gmail.com wrote:

 For archive purposes is there a simple way for me to make a
 bit-for-bit copy retail DVDs I've purchased?

 Assume that I've got the right sort of DVD drive, I guess something
 capable of writing dual-layer DVDs.

 Thanks,
 Mark

 Interesting. So even something that just copies blocks of data, like
 dd, can't be used for that purpose?

 I have no interest in tearing apart the DVD in any way. It was more
 about the idea of a fire causing the loss of maybe $15K-$20K
 investment over the years. I can rip all the CDs, keep the ripped
 version here to watch on the computer, and store the DVDs elsewhere,
 but that elimiates (generally) being able to watch special features
 which my wife and kid enjoy.

 Thanks for the info.

 I did exactly the same thing a few years ago, but it's been a long,
 long time, so my memory on my process is very fuzzy. (It also involved
 my first foray into RAID...I've got a couple hundred DVDs!) Go ahead,
 count the number of times I qualify something with IIRC...

 dvdbackup can recreate the ISO images, IIRC.

 If you run a simple 'dd' on a DVD with encrypted portions, you'll get
 I/O errors when it encounters the encrypted pieces. IIRC, some of the
 data required to decrypt those portions is on the disc, but it's in an
 out-of-the-way portion that won't show up as part of the block device.
 IIRC, dvdbackup makes use of libdvdcss to decrypt the encrypted
 portions[1], and writes a decrypted version of the data. *this* is why
 you can't make a bit-for-bit copy; the output data would be decrypted.

 There are other, later obstacles, too; once CSS was broken, some
 content publishers (Bandai USA, for example) would fudge the ISO spec
 and the DVD nav specs in ways that didn't break *most* hardware DVD
 players, but did tend to break players which strictly adhered to the
 standards, such as ffmpeg, vlc and mplayer. It also broke dvdbackup
 for me, IIRC, which is why I had to resort to vobcopy in some cases. I
 expect the software angle for handling these things has gotten better,
 though.

 [1] I don't know how it does it when dd would have hit an I/O error.
 Obviously, my understanding of the workings of dvdbackup, dd, DVDs and
 CSS encryption is flawed somehow.

 --
 :wq


Thanks for the info. It makes it a bit clearer as to what's causing
the road block vs. the sort of answer Jorg provided this morning which
did nothing (as when I asked on the cd-record list a few days ago and
the answer there did nothing either) to advance my knowledge on the
subject.

I appreciate the time it took you to respond. Thanks!

Cheers,
Mark



Re: [gentoo-user] Please ignore above email; I hit send by mistake

2011-12-16 Thread Mick
On Wednesday 14 Dec 2011 17:55:14 pk wrote:
 On 2011-12-14 07:32, Walter Dnes wrote:
  On Wed, Dec 14, 2011 at 01:12:10AM -0500, Walter Dnes wrote
  
 Please ignore the above email.  I hit send by mistake.  Long story
  
  short... the R200 is not supported under Mesa Gallium.  So a glxgears
  rating of 262 fps with the ATI Radeon R200 card gives stuttering useless
  streaming video while the onboard Intel GPU is OK, even though it gives
  60 fps under glxgears.
 
 Most likely you have vertical sync on for the onboard Intel gpu which
 can explain why you see it limited to 60 fps (lcds usually run at 60Hz).

Please remind me, where do you set up vsync?

On mine it seems to be on by default:

 $ less /var/log/Xorg.0.log | grep -i vsync
[ 22796.516] (II) RADEON(0): SwapBuffers wait for vsync: enabled
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] DBI connect dbname=template1 failed Permission denied

2011-12-16 Thread Stroller

On 16 December 2011, at 03:20, Joseph wrote:
 …
 The SQL-Ledger developer was helping me out on this and he can not figure it 
 out either.
 I'm sure it is not SQL-ledger as it is working perfectly on my other 
 computers. It could be apache configuration, but I don't see how?

Wait. Stop. This is your (first) problem.

Use Ledger-SMB.

The security vulnerabilities have demonstrated that Dieter cannot be trusted. 
When they were pointed out to him he showed that his understanding of the 
problem did not meet the expectations one would have of a first- or second-year 
student, never mind those we have of a developer who charges a considerable 
amount for supporting his product. Dieter tried to dismiss the problems and 
suppress the disclosure of the vulnerabilities, banning people from his mailing 
list.

Ledger-SMB has (I assume) a public bug tracker, and excellent support in its 
own mailing lists and on IRC. PostgreSQL developers contribute to Ledger-SMB 
and use it themselves.

Stroller.


Re: [gentoo-user] Any video optimization tips?

2011-12-16 Thread Stroller

On 16 December 2011, at 14:27, Nikos Chantziaras wrote:

 On 12/16/2011 04:13 PM, Michael Mol wrote:
 With an (old) $50 card, you can get an old Core 2 desktop system to
 serve as an HTPC.
 
 Core 2 can be an HTPC even with a crap card. You can play 1080p on the 2 CPUs 
 just fine.
 
 A Core 2 desktop system is certainly not old.

There are newer Core2s and older ones, though. The first ones were released 
summer 2006.

Stroller.




[gentoo-user] Re: DVD Movie backups

2011-12-16 Thread Grant Edwards
On 2011-12-16, Mark Knecht markkne...@gmail.com wrote:
 On Fri, Dec 16, 2011 at 9:06 AM, Michael Mol mike...@gmail.com wrote:

 No; you'll have to decrypt, or do without the encrypted bits.

 dvdbackup is probably the closest to what you want.

 Interesting. So even something that just copies blocks of data, like
 dd, can't be used for that purpose?

Correct.  If you use dd to copy an encrypted disk, the result will be
missing something like 90% of the data.

 I have no interest in tearing apart the DVD in any way. It was more
 about the idea of a fire causing the loss of maybe $15K-$20K
 investment over the years. I can rip all the CDs, keep the ripped
 version here to watch on the computer, and store the DVDs elsewhere,
 but that elimiates (generally) being able to watch special features
 which my wife and kid enjoy.

No it doesn't.  You can use dvdbackup (or k9copy or ...) to copy the
DVDs to the computer and when you play them back you get all the menus
and special features and whatnot.  If you want you can create ISO
images and burn them to dual-layer-DVDs, but you don't need to do that
to play them with all the features.

-- 
Grant Edwards   grant.b.edwardsYow! Now we can become
  at   alcoholics!
  gmail.com




Re: [gentoo-user] DVD Movie backups

2011-12-16 Thread David Haller
Hello,

On Fri, 16 Dec 2011, Mark Knecht wrote:
On Fri, Dec 16, 2011 at 9:06 AM, Michael Mol mike...@gmail.com wrote:
 No; you'll have to decrypt, or do without the encrypted bits.
 dvdbackup is probably the closest to what you want.
[..]
Interesting. So even something that just copies blocks of data, like
dd, can't be used for that purpose?

Depends on the disk. There's some you can copy with ddrescue, some
not. Have a tail -f on the messages, you can't use dd / ddrescue /
dd_rescue if you get stuff like this in the log:

kernel: [17700.04] end_request: I/O error, dev sr0, sector 252120
kernel: [17700.131687] sr 16:0:0:0: [sr0]  Result: hostbyte=DID_OK 
driverbyte=DRIVER_SENSE
kernel: [17700.131698] sr 16:0:0:0: [sr0]  Sense Key : Illegal Request 
[current] 
kernel: [17700.131707] sr 16:0:0:0: [sr0]  Add. Sense: Read of scrambled sector 
without authentication

Note the scrambeld sector. If you don't get those, it should work in
most cases. If you get those, use e.g. k3b to rip an iso-image (or
rather udf-image) of the disk, or use 'dvdbackup -M' to copy the
data. There's some broken disks though with intentional defects in
the filesystem etc., often from Fbal. You usually won't be able to
copy those whole and images witk k3b will probably be
defective. Using dvdbackup, dvdcpy, lxdvdrip, mplayer, tccat or so to
copy only the titles that you actually want (main feature, extras, but
e.g. no trailers and stuff) will be the only way.

HTH,
-dnh

-- 
God must love the Common Man; He made so many of them.
   -- BSD fortune file



Re: [gentoo-user] DVD Movie backups

2011-12-16 Thread Stroller

On 16 December 2011, at 17:25, Mark Knecht wrote:
 ...
 I have no interest in tearing apart the DVD in any way. It was more
 about the idea of a fire causing the loss of maybe $15K-$20K
 investment over the years. I can rip all the CDs, keep the ripped
 version here to watch on the computer, and store the DVDs elsewhere,
 but that elimiates (generally) being able to watch special features
 which my wife and kid enjoy.

I've been down this path fairly extensively.

Use media-video/dvdbackup and mkisofs (from app-cdr/cdrtools) to create .iso 
images of your DVDs.

Store these on a Samba share, then use something like the PlayOn HD Mini or the 
Western Digital TV Live! to watch them on your big screen TV.

These players allow you to treat .iso files on the network just as if they were 
actual DVDs and give you full access to the menus and extra features.

I'm in the process of trying media-tv/xbmc instead - I believe it handles 
menus, but haven't got far enough to test that (I just got video sorted on my 
HTPC, now working on sound).

dvdbackup will fail on a small number of DVDs which have been copy-protected 
by making them non-compliant with the DVD specification (IMO this is fixable in 
dvdbackup's code), but I'm getting at least a 95% success rate.

I have found writing dual-layer DVDs practically impossible. The failure rate 
is way too high - even disks which burned successfully are unreadable on 
another PC / player.

Stroller.




Re: [gentoo-user] Re: DVD Movie backups

2011-12-16 Thread Mark Knecht
On Fri, Dec 16, 2011 at 11:03 AM, Grant Edwards
grant.b.edwa...@gmail.com wrote:
 On 2011-12-16, Mark Knecht markkne...@gmail.com wrote:
 On Fri, Dec 16, 2011 at 9:06 AM, Michael Mol mike...@gmail.com wrote:

 No; you'll have to decrypt, or do without the encrypted bits.

 dvdbackup is probably the closest to what you want.

 Interesting. So even something that just copies blocks of data, like
 dd, can't be used for that purpose?

 Correct.  If you use dd to copy an encrypted disk, the result will be
 missing something like 90% of the data.

 I have no interest in tearing apart the DVD in any way. It was more
 about the idea of a fire causing the loss of maybe $15K-$20K
 investment over the years. I can rip all the CDs, keep the ripped
 version here to watch on the computer, and store the DVDs elsewhere,
 but that elimiates (generally) being able to watch special features
 which my wife and kid enjoy.

 No it doesn't.  You can use dvdbackup (or k9copy or ...) to copy the
 DVDs to the computer and when you play them back you get all the menus
 and special features and whatnot.  If you want you can create ISO
 images and burn them to dual-layer-DVDs, but you don't need to do that
 to play them with all the features.

 --
 Grant Edwards               grant.b.edwards        Yow! Now we can become

Hi Grant,
   I should have guessed you'd be on top of this subject given your
pointer a month ago about Handbrake. (Which has been a really great
program.) Thanks for that and thanks for the additional info.

   So for my continued education, if I take an encrypted movie I can
use program XYZ (Linux or Windows-based...) to create an iso image,
but that iso image won't, even if it does include all the special
features, ever be a bit-for-bit copy of the original. It's now
unencrypted and created anew. It's a completely different way to
represent the original data.

   That said, if it's a _complete_ representation of the original then
the special features are there, and if written to a DVD _might_ work
in my DVD player, assuming the DVD player isn't specifically looking
for something that was on the original disc such as specifically
encrypted blocks of data, etc.

   Am I getting closer?

Thanks,
Mark



[gentoo-user] Re: DVD Movie backups

2011-12-16 Thread James
Mark Knecht markknecht at gmail.com writes:


 For archive purposes is there a simple way for me to make a
 bit-for-bit copy retail DVDs I've purchased?

Some time back, I was almost ready to do something
big on my 1000+ dvd collection. I did a lot of 
research. I got stuck on the raid servers
and then abandoned the project. I'm building a 
new office and stuck in brick and mortar at
this time.

STROLLER has tried everything and knows what works.
He has some very cool scripts (I bet he'd share,
if you ask him) I'd strike up a conversation with
Stroller. When I get back to it, I was going to
also put the great information into a wiki for
many others to useas I think there are many Gentoo'rs
that have similar needs and desires.

Stroller knows his stuff on video, because I think
he has tried every piece of software and reproduction
scheme you can imagine... (um, I mean related to video).
;-) 


hth,
James






Re: [gentoo-user] DVD Movie backups

2011-12-16 Thread Paul Hartman
On Fri, Dec 16, 2011 at 1:15 PM, Stroller
strol...@stellar.eclipse.co.uk wrote:
 I'm in the process of trying media-tv/xbmc instead - I believe it handles 
 menus, but haven't got far enough to test that

It does, I've been using it on my xbox for years. :)



Re: [gentoo-user] DVD Movie backups

2011-12-16 Thread Mark Knecht
On Fri, Dec 16, 2011 at 11:15 AM, Stroller
strol...@stellar.eclipse.co.uk wrote:

 On 16 December 2011, at 17:25, Mark Knecht wrote:
 ...
 I have no interest in tearing apart the DVD in any way. It was more
 about the idea of a fire causing the loss of maybe $15K-$20K
 investment over the years. I can rip all the CDs, keep the ripped
 version here to watch on the computer, and store the DVDs elsewhere,
 but that elimiates (generally) being able to watch special features
 which my wife and kid enjoy.

 I've been down this path fairly extensively.

 Use media-video/dvdbackup and mkisofs (from app-cdr/cdrtools) to create .iso 
 images of your DVDs.

 Store these on a Samba share, then use something like the PlayOn HD Mini or 
 the Western Digital TV Live! to watch them on your big screen TV.

 These players allow you to treat .iso files on the network just as if they 
 were actual DVDs and give you full access to the menus and extra features.

 I'm in the process of trying media-tv/xbmc instead - I believe it handles 
 menus, but haven't got far enough to test that (I just got video sorted on my 
 HTPC, now working on sound).

 dvdbackup will fail on a small number of DVDs which have been 
 copy-protected by making them non-compliant with the DVD specification (IMO 
 this is fixable in dvdbackup's code), but I'm getting at least a 95% success 
 rate.

 I have found writing dual-layer DVDs practically impossible. The failure rate 
 is way too high - even disks which burned successfully are unreadable on 
 another PC / player.

 Stroller.



Interesting info. Thanks.

My new TV actually has a number of USB ports and I've managed to mount
a USB disk with mp4 files created by Handbrake and play them just
fine. I hadn't considered trying an iso file though. I'll give that a
shot this weekend and see if it sees them. Unfortunately *.iso isn't
on their recognized formats list, but it's worth a try. The nice thing
about the TV is that it has lots of Open Source software built in and
puts of nice folders showing the directories I've created and all the
files in each directory. I'm currently experimenting with how much I
can tolerate in terms of compressing the DVD info.

I'll certainly look into dvdbackup. I tried to emerge it but I've
gotten some sort of package block going on that portage isn't happy
about.

Thanks,
Mark



Re: [gentoo-user] apache2 not running (no pid file)

2011-12-16 Thread Grant
  Has anyone else noticed this sort of behavior from apache-2.2.21-r1:
 
  # /etc/init.d/apache2 restart
 
   * Stopping apache2 ... [ ok ]
   * Starting apache2 ...
   * start-stop-daemon: /usr/sbin/apache2 is already running [ ok ]
 
  # /etc/init.d/apache2 restart
 
   * apache2 not running (no pid file)
   * Starting apache2 ... [ ok ]
 
  It probably happens about half the time I restart apache2.  Nothing in
  /var/log/apache2/error_log besides:
 
  [notice] caught SIGTERM, shutting down
  [notice] Apache/2.2.21 (Unix) configured -- resuming normal operations
 
  - Grant

 I've seen that for years.  I always assumed it was because the apache2
 stop didn't complete before the apache2 start tried to start when I use
 /etc/init.d/apache2 restart.

 Instead I do an /etc/init.d/apache2 stop; ps aux | egrep apache until I
 see all the threads are gone and then a /etc/init.d/apache2 start

 +1

 If there aren't many threads a quick restart will work fine, but if there are
 many threads hanging around then you may be better off to stop, wait, then
 start.

Thanks fellas, that makes perfect sense.  Would it make sense for me
to request a change to the initscript that waits until all threads
have stopped before starting during a restart?

- Grant



Re: [gentoo-user] DVD Movie backups

2011-12-16 Thread Joerg Schilling
Michael Mol mike...@gmail.com wrote:

 dvdbackup can recreate the ISO images, IIRC.

No, dvdbackup just creates a readable mirror copy from the directory tree on 
the DVD. You need to use mkisofs -dvd-video to create a new ISO image that can 
be written to DVD.

 If you run a simple 'dd' on a DVD with encrypted portions, you'll get
 I/O errors when it encounters the encrypted pieces. IIRC, some of the

This is what I mentioned on the cdrecord mailing list already...

 IIRC, dvdbackup makes use of libdvdcss to decrypt the encrypted
 portions[1], and writes a decrypted version of the data. *this* is why
 you can't make a bit-for-bit copy; the output data would be decrypted.

dvdbackup decrypts the sectors that are part of the VOB files.

 There are other, later obstacles, too; once CSS was broken, some
 content publishers (Bandai USA, for example) would fudge the ISO spec
 and the DVD nav specs in ways that didn't break *most* hardware DVD
 players, but did tend to break players which strictly adhered to the
 standards, such as ffmpeg, vlc and mplayer. It also broke dvdbackup

This is interestingas some mkisofs users report that there are DVDs that look 
as if there is a need to introduce negative padding between some files.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] Re: DVD Movie backups

2011-12-16 Thread Joerg Schilling
Grant Edwards grant.b.edwa...@gmail.com wrote:

 On 2011-12-16, Mark Knecht markkne...@gmail.com wrote:
  On Fri, Dec 16, 2011 at 9:06 AM, Michael Mol mike...@gmail.com wrote:

  No; you'll have to decrypt, or do without the encrypted bits.
 
  dvdbackup is probably the closest to what you want.
 
  Interesting. So even something that just copies blocks of data, like
  dd, can't be used for that purpose?

 Correct.  If you use dd to copy an encrypted disk, the result will be
 missing something like 90% of the data.

dd will abort on the first unreadable sector.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] apache2 not running (no pid file)

2011-12-16 Thread Michael Orlitzky

On 12/16/2011 03:31 PM, Grant wrote:


Thanks fellas, that makes perfect sense.  Would it make sense for me
to request a change to the initscript that waits until all threads
have stopped before starting during a restart?



Right now it's dumb in one direction, and I have a feeling that if it 
gets fixed we'll overshoot correct and wind up dumb in the other 
direction.


Nevertheless, I've been dealing with this for years and would like to 
hear what the devs have to say. So, yeah.




Re: [gentoo-user] DVD Movie backups

2011-12-16 Thread Joerg Schilling
Stroller strol...@stellar.eclipse.co.uk wrote:

 I have found writing dual-layer DVDs practically impossible. The failure rate 
 is way too high - even disks which burned successfully are unreadable on 
 another PC / player.

Dual layer DVDs will only work, if the layer break is at the right place.

I so far have not been able to get the layer break value from the IFO file.

You need to use cdrecord -atip to get the layer break value and then use 
cdrecord layerbreak=# and a DVD+R/DL media.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] Any video optimization tips?

2011-12-16 Thread Walter Dnes
On Fri, Dec 16, 2011 at 12:20:44PM +0100, Helmut Jarausch wrote

 You could try to install a recent kernel  (3.1.5 for me) and enable
 the CONFIG_DRM_NOUVEAU=y  (it's a staging driver, just search for it
 by entering / in the make menuconfig environment).
 
 Then re-emerge the x11-drivers/xf86-video-nouveau driver.

  The instructions at http://www.gentoo.org/doc/en/xorg-config.xml do
mention the staging Nouveau driver, and I did enable it.

-- 
Walter Dnes waltd...@waltdnes.org



Re: [gentoo-user] Re: Any video optimization tips?

2011-12-16 Thread Walter Dnes
On Fri, Dec 16, 2011 at 01:57:58PM +, James wrote

 Find the minimal flags and the optimum CFLAGS settings for 
 your needs. Refine by testing. USE a fast hard drive.
 Avoid apps that soak up ram. Some video apps are ram_hogs...
 
 I'd be curious to learn what you finally figure out.

  Here's my current setup.  First the cpu flags...

waltdnes@d530 ~ $ grep flags /proc/cpuinfo
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm
constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl
est tm2 ssse3 cx16 xtpr pdcm lahf_lm dts

  And what I've specified in CFLAGS and USE

waltdnes@d530 ~ $ grep \(CFLAGS\|USE\) /etc/make.conf
CFLAGS=-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe
CXXFLAGS=${CFLAGS}
USE=-* X a52 aac bzip2 cxx dga dri exif ffmpeg flac fortran gallium gif
intel jpeg mmx mng mp3 mpeg nptl nptlonly nsplugin offensive ogg opengl
png posix sse sse2 ssse3 theora threads tiff truetype vim-syntax vorbis
win32codecs wmf xcomposite xpm xv xvid zlib

  One more thing.  I just ran gcc -march=native -Q --help=target and
got a major shock.  It's a long output listing of what is/isn't enabled
with -march=native on my cpu.  Here are some relevant items...

-march=   core2
-mmmx [disabled]
-msse [disabled]
-msse2[disabled]
-msse3[disabled]
-mssse3   [disabled]

  It has properly identified the cpu as core2.  But mmx, sse, sse2,
sse3 (aka pni), and ssse3 are disabled!!!  I'll change my CFLAGS to...

CFLAGS=-O2 -march=native -mmmx -msse -msse2 -msse3 -mssse3 -mfpmath=sse 
-fomit-frame-pointer -pipe

...and emerge system and world and rebuild the kernel.  Then I'll see
if it helps.  It'll probably be at least an overnight job for each
emerge, if not longer.

-- 
Walter Dnes waltd...@waltdnes.org



Re: [gentoo-user] Any video optimization tips?

2011-12-16 Thread Walter Dnes
On Fri, Dec 16, 2011 at 09:13:14AM -0500, Michael Mol wrote

 Use any nVidia card capable of full, in-hardware decoding of full
 h.264 AVC. I've got two GeForce 210s which I purchased because A) they
 were $50/pc two years ago, and B) they did exactly this.
 
 Then enable vdpau. (But that means running the proprietary drivers,
 disabling KMS, disabling NOVOU, etc)

  Unfortunatunately, the Geforce 6200 series is too old for vdpau
support.  It starts with the Geforce 8400 series.  As I mentioned in
another post, -march=native does not enable mmx, sse, sse2, sse3, and
ssse3 options for gcc.  I'll explicitly put them in CFLAGS, and rebuild
system+world+kernel, and see if it helps.

-- 
Walter Dnes waltd...@waltdnes.org



Re: [gentoo-user] LVM: extending volume groups and logical volumes

2011-12-16 Thread Allan Gottlieb
On Thu, Dec 15 2011, Allan Gottlieb wrote:

 I need to add space to /var (thank you, libreoffice), which is on lvm.
 Since my one volume group vg is getting low, I thought this would be a
 good time to extend it as well.

 Alan (McKinnon) has posted very helpful lvm bits (reprinted below).
 Following alan's bottom up creation mandate I believe the idea is

[snip]

1.  Thank you dale for rc single.  This looks like what I have wanted
for a while, namely a replacement for single-user mode.  

2.  Everyone seems to agree that you really can enlarge a mounted
ext3 file system.  I was going to try it except ...

3.  I decided to use another suggestion (from neil) to use
PORTAGE_TMPDIR, roeleveld's idea of just using temporary space, and
Webb suggested /z for extra space.

So I made a normal linux ext3 partition on sda8, created the mount point
/mnt/junk and when needed mount sda8 on /mnt/junk and set PORTAGE_TMPDIR
accordingly.

One more thing.  Some readers were suggesting I need 8 or so GB for
libreoffice.  The failures occurred with 13GB.  Today's /mnt/junk
success required 16GB.  Fortunately sda8 has 50GB.

Thanks to all.
allan



Re: [gentoo-user] LVM: extending volume groups and logical volumes

2011-12-16 Thread Dale

Allan Gottlieb wrote:

On Thu, Dec 15 2011, Allan Gottlieb wrote:


I need to add space to /var (thank you, libreoffice), which is on lvm.
Since my one volume group vg is getting low, I thought this would be a
good time to extend it as well.

Alan (McKinnon) has posted very helpful lvm bits (reprinted below).
Following alan's bottom up creation mandate I believe the idea is

[snip]

1.  Thank you dale for rc single.  This looks like what I have wanted
 for a while, namely a replacement for single-user mode.

2.  Everyone seems to agree that you really can enlarge a mounted
 ext3 file system.  I was going to try it except ...

3.  I decided to use another suggestion (from neil) to use
 PORTAGE_TMPDIR, roeleveld's idea of just using temporary space, and
 Webb suggested /z for extra space.

So I made a normal linux ext3 partition on sda8, created the mount point
/mnt/junk and when needed mount sda8 on /mnt/junk and set PORTAGE_TMPDIR
accordingly.

One more thing.  Some readers were suggesting I need 8 or so GB for
libreoffice.  The failures occurred with 13GB.  Today's /mnt/junk
success required 16GB.  Fortunately sda8 has 50GB.

Thanks to all.
allan





Dang !!

pkg_pretend() {
if [[ ${MERGE_TYPE} != binary ]]; then
CHECKREQS_MEMORY=1G
use debug  CHECKREQS_DISK_BUILD=15G || 
CHECKREQS_DISK_BUILD=9G

check-reqs_pkg_pretend

That's a LOT of space.  9gbs of free space should be enough tho.  15Gbs 
if you use debug.


Dale

:-)  :-)

--
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS=--quiet-build=n




Re: [gentoo-user] DBI connect dbname=template1 failed Permission denied

2011-12-16 Thread Joseph

On 12/16/11 18:57, Stroller wrote:


On 16 December 2011, at 03:20, Joseph wrote:

…
The SQL-Ledger developer was helping me out on this and he can not figure it 
out either.
I'm sure it is not SQL-ledger as it is working perfectly on my other computers. 
It could be apache configuration, but I don't see how?


Wait. Stop. This is your (first) problem.

Use Ledger-SMB.

The security vulnerabilities have demonstrated that Dieter cannot be trusted. 
When they were pointed out to him he showed that his understanding of the 
problem did not meet the expectations one would have of a first- or second-year 
student, never mind those we have of a developer who charges a considerable 
amount for supporting his product. Dieter tried to dismiss the problems and 
suppress the disclosure of the vulnerabilities, banning people from his mailing 
list.

Ledger-SMB has (I assume) a public bug tracker, and excellent support in its 
own mailing lists and on IRC. PostgreSQL developers contribute to Ledger-SMB 
and use it themselves.

Stroller.


I was not able to find any support or good pointer so not being able to fix it 
I scrap Gentoo on this box and trying Debian. I'll post an update.
I have tried to use Ledger-SMB at the time I was using SQL-Ledger-2.6.12 so it was still compatible with Ledger-SMB but I could not find anybody who would 
help me with data transition to Ledger-SMB last year.  
So I couldn't wait any longer and upgraded to SQL-Ledger now 2.8.35 I think it is too late as this data is not compatible with Ledger-SMB 

The instruction on Ledger-SMB were less than helpful in data transition, when I asked question on a the forum I hardly got any rely. 


--
Joseph



Re: [gentoo-user] DBI connect dbname=template1 failed Permission denied

2011-12-16 Thread Joseph

On 12/16/11 18:57, Stroller wrote:


On 16 December 2011, at 03:20, Joseph wrote:

…
The SQL-Ledger developer was helping me out on this and he can not figure it 
out either.
I'm sure it is not SQL-ledger as it is working perfectly on my other computers. 
It could be apache configuration, but I don't see how?


Wait. Stop. This is your (first) problem.

Use Ledger-SMB.

The security vulnerabilities have demonstrated that Dieter cannot be trusted. 
When they were pointed out to him he showed that his understanding of the 
problem did not meet the expectations one would have of a first- or second-year 
student, never mind those we have of a developer who charges a considerable 
amount for supporting his product. Dieter tried to dismiss the problems and 
suppress the disclosure of the vulnerabilities, banning people from his mailing 
list.

Ledger-SMB has (I assume) a public bug tracker, and excellent support in its 
own mailing lists and on IRC. PostgreSQL developers contribute to Ledger-SMB 
and use it themselves.

Stroller.


I see that LedgerSMB is 1.3 is it stable?
Is there direct migration from SQL-Ledger 2.8.35

--
Joseph



Re: [gentoo-user] LVM: extending volume groups and logical volumes

2011-12-16 Thread Allan Gottlieb
On Fri, Dec 16 2011, Dale wrote:

 Allan Gottlieb wrote:

 One more thing.  Some readers were suggesting I need 8 or so GB for
 libreoffice.  The failures occurred with 13GB.  Today's /mnt/junk
 success required 16GB.  Fortunately sda8 has 50GB.

 Dang !!

 pkg_pretend() {
 if [[ ${MERGE_TYPE} != binary ]]; then
 CHECKREQS_MEMORY=1G
 use debug  CHECKREQS_DISK_BUILD=15G ||
 CHECKREQS_DISK_BUILD=9G
 check-reqs_pkg_pretend

 That's a LOT of space.  9gbs of free space should be enough tho.
 15Gbs if you use debug.

Perhaps 9GB should be enough.  But 16GB is needed.  And eix confirms
that I don't have debug

allan

ajglap gottlieb # eix libreoffice
[I] app-office/libreoffice
[snip]
 Installed versions:  3.4.99.1-r1(05:56:10 PM 12/16/2011)(branding dbus eds 
gnome graphite gstreamer gtk jemalloc nsplugin opengl svg vba webdav xmlsec 
-aqua -binfilter -debug -elibc_FreeBSD -gtk3 -java -kde -kdeenablefinal -mysql 
-odk -pdfimport -postgres -test)



Re: [gentoo-user] LVM: extending volume groups and logical volumes

2011-12-16 Thread Dale

Allan Gottlieb wrote:

On Fri, Dec 16 2011, Dale wrote:


Allan Gottlieb wrote:

One more thing.  Some readers were suggesting I need 8 or so GB for
libreoffice.  The failures occurred with 13GB.  Today's /mnt/junk
success required 16GB.  Fortunately sda8 has 50GB.

Dang !!

pkg_pretend() {
 if [[ ${MERGE_TYPE} != binary ]]; then
 CHECKREQS_MEMORY=1G
 use debug  CHECKREQS_DISK_BUILD=15G ||
CHECKREQS_DISK_BUILD=9G
 check-reqs_pkg_pretend

That's a LOT of space.  9gbs of free space should be enough tho.
15Gbs if you use debug.

Perhaps 9GB should be enough.  But 16GB is needed.  And eix confirms
that I don't have debug

allan

ajglap gottlieb # eix libreoffice
[I] app-office/libreoffice
[snip]
  Installed versions:  3.4.99.1-r1(05:56:10 PM 12/16/2011)(branding dbus 
eds gnome graphite gstreamer gtk jemalloc nsplugin opengl svg vba webdav xmlsec 
-aqua -binfilter -debug -elibc_FreeBSD -gtk3 -java -kde -kdeenablefinal -mysql 
-odk -pdfimport -postgres -test)




I got what I posted from the ebuild.  This is the path and what it expects:

root@fireball / # cat 
/usr/portage/app-office/libreoffice/libreoffice-3.4.99.1-r1.ebuild | 
grep DISK
use debug  CHECKREQS_DISK_BUILD=15G || 
CHECKREQS_DISK_BUILD=9G

root@fireball / #

If I read that correctly, 9Gbs of free space should be enough.  Note 
that is FREE space not the size of the partition.  It doesn't actually 
need that much in most cases but how much depends on USE flags and 
such.  The devs take what is the maximum it could take and make it look 
for at least that much.  Nobody wants to get that about 90% compiled to 
run out of space.


If yours is looking for more than that then I would think it is 
something outside the ebuild that is causing a issue.  While it does 
take a lot of space at times, I have never seen it take 16Gbs.  I have 
portages work directory on tmpfs and it never gives me a error and I 
only have 16Gbs of ram.


Dale

:-)  :-)

--
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS=--quiet-build=n




Re: [gentoo-user] LVM: extending volume groups and logical volumes

2011-12-16 Thread Allan Gottlieb
On Fri, Dec 16 2011, Dale wrote:

 Allan Gottlieb wrote:
 On Fri, Dec 16 2011, Dale wrote:

 Allan Gottlieb wrote:
 One more thing.  Some readers were suggesting I need 8 or so GB for
 libreoffice.  The failures occurred with 13GB.  Today's /mnt/junk
 success required 16GB.  Fortunately sda8 has 50GB.

 Perhaps 9GB should be enough.  But 16GB is needed.  And eix confirms
 that I don't have debug

 allan

 ajglap gottlieb # eix libreoffice
 [I] app-office/libreoffice
 [snip]
   Installed versions:  3.4.99.1-r1(05:56:10 PM 12/16/2011)(branding dbus 
 eds gnome graphite gstreamer gtk jemalloc nsplugin opengl svg vba webdav 
 xmlsec -aqua -binfilter -debug -elibc_FreeBSD -gtk3 -java -kde 
 -kdeenablefinal -mysql -odk -pdfimport -postgres -test)



 I got what I posted from the ebuild.  This is the path and what it expects:

 root@fireball / # cat
 /usr/portage/app-office/libreoffice/libreoffice-3.4.99.1-r1.ebuild |
 grep DISK
 use debug  CHECKREQS_DISK_BUILD=15G ||
 CHECKREQS_DISK_BUILD=9G
 root@fireball / #

 If I read that correctly, 9Gbs of free space should be enough.  Note
 that is FREE space not the size of the partition.  It doesn't actually
 need that much in most cases but how much depends on USE flags and
 such.  The devs take what is the maximum it could take and make it
 look for at least that much.  Nobody wants to get that about 90%
 compiled to run out of space.

 If yours is looking for more than that then I would think it is
 something outside the ebuild that is causing a issue.  While it does
 take a lot of space at times, I have never seen it take 16Gbs.  I have
 portages work directory on tmpfs and it never gives me a error and I
 only have 16Gbs of ram.

I had 13GB left on /var when it died at which point /var had zero.

I made a new partition (/mnt/junk) with nothing else on it and built
libreoffice there.

In another terminal I ran

while true
do
  df -h /mnt/junk | grep junk
  sleep 300
done

df began at 0GB and grew to 16GB where it stayed (I was away when the
build finished)
So I am pretty sure that at the end it did indeed use 16GB.

allan

PS thanks again for rc single



Re: [gentoo-user] LVM: extending volume groups and logical volumes

2011-12-16 Thread Dale

Allan Gottlieb wrote:

I had 13GB left on /var when it died at which point /var had zero.

I made a new partition (/mnt/junk) with nothing else on it and built
libreoffice there.

In another terminal I ran

while true
do
   df -h /mnt/junk | grep junk
   sleep 300
done

df began at 0GB and grew to 16GB where it stayed (I was away when the
build finished)
So I am pretty sure that at the end it did indeed use 16GB.

allan

PS thanks again for rc single




This is odd.

Has anyone else noticed this?  I upgraded this a while back and I didn't 
use anywhere near this amount of space.  I'm curious as to why Allan's 
is using so much.


Dale

:-)  :-)

--
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS=--quiet-build=n




Re: [gentoo-user] DVD Movie backups

2011-12-16 Thread David Haller
Hello,

On Fri, 16 Dec 2011, Joerg Schilling wrote:
This is interestingas some mkisofs users report that there are DVDs that look 
as if there is a need to introduce negative padding between some files.

There's DVDs that look (to e.g. lsdvd) as if there were ~60 Tracks of
various sizes used, with a playing time of, say, 40 hours overall,
breaking the Specs willfully. Of course, only e.g. 4 Tracks are the
real tracks. Figuring out which tracks those are (e.g. playing the
disc with xine, mplayer or vlc) and then extracting only those tracks
with e.g. dvdbackup is the only possibility. Images etc. will be
defective. Don't ask me how you create such interleaved tracks
(e.g. tracks 20-35 would be various parts of a series episode but only
one, say 27, would be the full track). I'd guess negative padding (at
least in the nav-structures) might play a role there.

Just this week I've had a DVD, where lsdvd just barfed. The image with
k3b was broken. dvdbackup for single tracks worked.

That's one reason I like to rent a disc before I buy a whole series.
Actually, there's only one Movie-set that has broken (one or two out
of 5) discs, most I own are standard conforming and some seem to not
even bother with css.

Digital files cannot be made uncopyable, any more than water can be made
not wet.   --Bruce Schneier on `copy protection' schemes

And I want to make backups of the discs I own. The less hoops I'm
forced to jump through (with a rented disc), the more likely I am to
buy something. There's a certain series (c.f. above) I quite like, but
the DVDs are just plain broken. Won't buy. Period.

-dnh, got to look up the publisher on above mentioned disc where lsdvd
barfed ... ah: Cnenzbhag. I hadn't have them on my publishes
un-DVDs list yet. Well, anyway, some publishers seem to start not
to produce un-DVDs lately. Just keep sending rented disc after
disc back as broken and asking for replacement ...

-- 
 Take two Gods.
Diagnostic. n. Someone who doubts the existence of two Gods.
Makes sense. Every regular user of diagnostics that I know of only
believes in Murphy.   -- D. Holdsworth, C. Suslowicz and Lionel



Re: [gentoo-user] DVD Movie backups

2011-12-16 Thread David Haller
Hello,

On Fri, 16 Dec 2011, Stroller wrote:
On 16 December 2011, at 17:25, Mark Knecht wrote:
 ...
 I have no interest in tearing apart the DVD in any way. It was more
 about the idea of a fire causing the loss of maybe $15K-$20K
 investment over the years. I can rip all the CDs, keep the ripped
 version here to watch on the computer, and store the DVDs elsewhere,
 but that elimiates (generally) being able to watch special features
 which my wife and kid enjoy.

I've been down this path fairly extensively.

So have I. Um, if my index is right, about 1k-ish ;)

Use media-video/dvdbackup and mkisofs (from app-cdr/cdrtools) to
create .iso images of your DVDs.

Store these on a Samba share, then use something like the PlayOn HD
Mini or the Western Digital TV Live! to watch them on your big screen
TV.

These players allow you to treat .iso files on the network just as if
they were actual DVDs and give you full access to the menus and extra
features.

At least mplayer, vlc and xine will also happily play a directory, be
it a mounted DVD, a mounted image or just a rip as made by dvdbackup
and others (e.g. lxdvdrip).

dvdbackup will fail on a small number of DVDs which have been
copy-protected by making them non-compliant with the DVD
specification (IMO this is fixable in dvdbackup's code), but I'm
getting at least a 95% success rate.

See my other mail(s), finding the correct tracks with above players
and then ripping only those tracks with 'dvdbackup -t TRACKNO ...'
should get you to 99.5% or so. The rest is usually just plain broken.
So far, I've always got a result out of non-physically-defective disc
(I don't mind throwing away the menus though).

I even had the situation that trying to only play one such disc (with
xine IIRC) made my box hang up. Needed a hard reset. Weirdly enough, I
could still rip the tracks after the reboot with dvdbackup or so and
the result was ok ... Probably the (libata) IDE driver got thoroughly
screwed on that first try by whatever combination of commands and
drive reactions...

I have found writing dual-layer DVDs practically impossible. The
failure rate is way too high - even disks which burned successfully
are unreadable on another PC / player.

I've, so far, only written data-DVD-DL, no problems with those ;)

BTW: do you reencode stuff? I use mencoder with:

-x264encopts crf=22:trellis=1:qcomp=0.8:weight_b:8x8dct:subq=6:nr=750

the resulting files are usually surprisingly small and still have a
very good quality (I can't see a difference to the original with both
unscaled on the screen (PAL-DVD, not HD ;). I have yet to try that one
on some difficuly cases though (dark scenes in a movie with fog,
panning, and movement and a quite noisy-in-the-dark series
(SG-1/S1). Might have to break out hqdn3d again for the latter.

-dnh

-- 
Rincewind shut his eyes. Inside his mind he could feel the Spell scuttling
off to hide behind his conscience, and muttering to itself.
   -- Terry Pratchett, The Light Fantastic, p. 161