Re: [OT] Hard Drive Energy Not Worth Conserving drives?

2011-01-15 Thread Andrew McGlashan
Hi, Stefan Monnier wrote: Read the ATA and SCSI specifications. Or ask on either mailing list. In short, the drive presents its LBA addressing based on 512B sectors. The kernel can't choose to ignore that--it's stuck with it. Since the drive is presenting LBA based on 512B sectors, there is no

Re: OT: Output from date command - my little backup script

2011-01-15 Thread Bob Proulx
Adrian Levi wrote: > Is the output from the date command a string or integer wrt date +%w? The date command only produces string output. %w produces one of the characters 0, 1, 2, 3, 4, 5, 6. > I'm trying to test a condition in my backup script where i want to > match on day of week = 0 > > The

OT: Output from date command - my little backup script

2011-01-15 Thread Adrian Levi
Is the output from the date command a string or integer wrt date +%w? I'm trying to test a condition in my backup script where i want to match on day of week = 0 The program flow I am trying to achieve is" If the file exists and the day of the week is 0 then remove the file and set the day of the

Re: [OT] Hard Drive Energy Not Worth Conserving drives?

2011-01-15 Thread Stefan Monnier
> Read the ATA and SCSI specifications. Or ask on either mailing list. > In short, the drive presents its LBA addressing based on 512B sectors. > The kernel can't choose to ignore that--it's stuck with it. Since the > drive is presenting LBA based on 512B sectors, there is no way the > kernel can

HD manufacturers and Free Software (was: [SOLVED] Is squeeze compatible with WD20EARS and other 2TB drives?)

2011-01-15 Thread Stefan Monnier
> "MUST READ: Western Digital is unable to provide support for the > Unix/Linux operating systems outside of jumper configurations (for > EIDE hard drives) and physical installation support." While I never expect any OS-specific support from hard-drive suppliers, I find it offensive for a manufact

Re: [SOLVED] Is squeeze compatible with WD20EARS and other 2TB drives?

2011-01-15 Thread Stefan Monnier
>> > I'm down on these drives due to the maniacal 8 second head park >> > interval, which likely does more mechanical damage than it saves power >> > in dollar terms. >> There is simply no concrete evidence to back this urban legend. > In the WD20EARS I purchased this was in no way just a legend --

Re: [really solved] Re: aptitude: set all packages auto-installed except given list?

2011-01-15 Thread Andrei Popescu
On Du, 16 ian 11, 01:00:50, Javier Barroso wrote: > When you invoke aptitude unmarkauto ... aptitude has all your packages > with auto mark, so aptitude will want to delete these unused packages > *before* it start with your operation (unmarkauto in this case). I > think it make sense Well, '(un)m

Re: changing grub boot order

2011-01-15 Thread briand
On Sun, 16 Jan 2011 01:36:07 +0200 Andrei Popescu wrote: > On Sb, 15 ian 11, 14:55:08, bri...@aracnet.com wrote: > > as per the wiki > > > > I change the default in /etc/default/grub from 0 to 4. > > > > I ran update-grub. > > > > The same entry boots by default, i.e. it didn't work. > > > >

Re: [really solved] Re: aptitude: set all packages auto-installed except given list?

2011-01-15 Thread Javier Barroso
On Sat, Jan 15, 2011 at 9:41 PM, Andrei Popescu wrote: > On Sb, 15 ian 11, 19:42:26, Andrei Popescu wrote: >> >> Actually this only helps cleaning the system of unneeded packages, but >> still leaves me with a lot of packages not marked auto, so I had to >> apply Javier's hack after all. > > Ok, t

Re: Grub2 reinstall on raid1 system.

2011-01-15 Thread Henrique de Moraes Holschuh
On Sat, 15 Jan 2011, Tom H wrote: > On Sat, Jan 15, 2011 at 9:06 AM, Henrique de Moraes Holschuh > wrote: > > On Sat, 15 Jan 2011, Jack Schneider wrote: > >> > >> You might want to try configuring grub and fstab to use UUID's > >> > >> instead of /dev/mdX.  That removes the possibility that the ke

Re: Grub2 reinstall on raid1 system.

2011-01-15 Thread Bob Proulx
Jack Schneider wrote: > Bob Proulx wrote: > > Jack Schneider wrote: > > > I have a raid1 based W/S running Debian Squeeze uptodate. (was > > > until ~7 days ago) There are 4 drives, 2 of which had never been > > > used or formatted. I configured a new array using Disk Utility from > > > a live Ubun

Re: Grub2 reinstall on raid1 system.

2011-01-15 Thread Tom H
On Sat, Jan 15, 2011 at 5:29 PM, Jack Schneider wrote: > On Fri, 14 Jan 2011 05:25:45 -0700 > Bob Proulx wrote: >> Jack Schneider wrote: >> > >> > I have a raid1 based W/S running Debian Squeeze uptodate. (was >> > until ~7 days ago) There are 4 drives, 2 of which had never been >> > used or form

Re: Grub2 reinstall on raid1 system.

2011-01-15 Thread Tom H
On Sat, Jan 15, 2011 at 9:06 AM, Henrique de Moraes Holschuh wrote: > On Sat, 15 Jan 2011, Jack Schneider wrote: >> > >> You might want to try configuring grub and fstab to use UUID's >> > >> instead of /dev/mdX.  That removes the possibility that the kernel >> > >> will change the mdX designation

Re: Grub2 reinstall on raid1 system.

2011-01-15 Thread Tom H
On Sat, Jan 15, 2011 at 8:24 AM, Jack Schneider wrote: > On Fri, 14 Jan 2011 12:16:37 -0500 > Tom H wrote: >> >> > > [BIG SNIP] > >> >> You might want to try configuring grub and fstab to use UUID's >> >> instead of /dev/mdX.  That removes the possibility that the kernel >> >> will change the mdX

Re: changing grub boot order

2011-01-15 Thread Andrei Popescu
On Sb, 15 ian 11, 14:55:08, bri...@aracnet.com wrote: > as per the wiki > > I change the default in /etc/default/grub from 0 to 4. > > I ran update-grub. > > The same entry boots by default, i.e. it didn't work. > > Anyone know why ? Please post the outputs of 'grep default= /boot/grub/grub.cf

changing grub boot order

2011-01-15 Thread briand
as per the wiki I change the default in /etc/default/grub from 0 to 4. I ran update-grub. The same entry boots by default, i.e. it didn't work. Anyone know why ? Brian For reference: Configuring grub v2 The configuration file is /boot/grub/grub.cfg, but you shouldn't edit it directly. This

Re: Grub2 reinstall on raid1 system.

2011-01-15 Thread Jack Schneider
On Fri, 14 Jan 2011 05:25:45 -0700 Bob Proulx wrote: > Jack Schneider wrote: > > I have a raid1 based W/S running Debian Squeeze uptodate. (was > > until ~7 days ago) There are 4 drives, 2 of which had never been > > used or formatted. I configured a new array using Disk Utility from > > a live U

Re: blancing conections

2011-01-15 Thread Bob Proulx
Jesus arteche wrote: > I have a web application that I want to scale in a cluster like Amazon EC2. > I have a load balancer and behind several web server (Apache2). My question > is: > > How can I make for the session that is iniciated in webserver 1...will be > available in webserver 2 cause the

Re: stardict dictionary packages.

2011-01-15 Thread Freeman
On Sat, Jan 15, 2011 at 01:15:11PM -0800, evenso wrote: > On Sat, Jan 15, 2011 at 07:52:01PM +, Camaleón wrote: > > On Sun, 16 Jan 2011 01:50:39 +0700, Sthu Deus wrote: > > > > > Good day. > > > > It's late afternoon here :-P > > > > > Are in Debian the packages holding dictionaries capable

Re: stardict dictionary packages.

2011-01-15 Thread Freeman
On Sat, Jan 15, 2011 at 07:52:01PM +, Camaleón wrote: > On Sun, 16 Jan 2011 01:50:39 +0700, Sthu Deus wrote: > > > Good day. > > It's late afternoon here :-P > > > Are in Debian the packages holding dictionaries capable to work w/ > > stardict? > > > > I see plenty of dictionaries for dict

Re: aptitude: set all packages auto-installed except given list?

2011-01-15 Thread Andrei Popescu
On Sb, 15 ian 11, 14:31:13, Boyd Stephen Smith Jr. wrote: > (aptitude unmarkauto $(cat pkg.list)) should do what you want, and extra > newlines and spaces wouldn't matter even if the file contained them. Thanks for the tip, that saves a 'tr' invocation in my solution. Regards, Andrei -- Off

Re: [really solved] Re: aptitude: set all packages auto-installed except given list?

2011-01-15 Thread Andrei Popescu
On Sb, 15 ian 11, 19:42:26, Andrei Popescu wrote: > > Actually this only helps cleaning the system of unneeded packages, but > still leaves me with a lot of packages not marked auto, so I had to > apply Javier's hack after all. Ok, this looks like the best version so far: Backup: aptitude --di

Re: aptitude: set all packages auto-installed except given list?

2011-01-15 Thread Boyd Stephen Smith Jr.
In <20110115133957.gi4...@wasteland.homelinux.net>, Jochen Schulz wrote: >Florian Kulzer: >> […] Backticks should also work if you want to avoid the $(...) >> bashism. > >That's not a bashism, it's perfectly legal POSIX/SUS. It's also preferred over backticks since you can't nest backticks AND som

Re: Keyboard freezing/repeating endlessly

2011-01-15 Thread Joe Riel
On Sat, 15 Jan 2011 20:16:16 + (UTC) Camaleón wrote: > On Sat, 15 Jan 2011 09:55:54 -0800, Joe Riel wrote: > > > On Fri, 14 Jan 2011 07:47:59 -0800 Joe Riel wrote: > > > >> On Fri, 14 Jan 2011 11:38:43 + (UTC) Camaleón wrote: > >> > >> > You can: > >> > > >> > 1/ Start the system with

Re: aptitude: set all packages auto-installed except given list?

2011-01-15 Thread Boyd Stephen Smith Jr.
In <20110115110130.GC15639@think.homelan>, Andrei Popescu wrote: >My usual method of 'cleaning' the system was to set all installed >packages to auto-installed and then mark one by one the ones I need to >keep. > >aptitude --schedule-only markauto ~i > >Seems to be doing the first part, but I c

Squeeze and Logitech, Inc. QuickCam Pro 4000

2011-01-15 Thread Slobodan Aleksić
Hello List, I own a Logitech QuickCamPro and it doesn't work with Squeeze, any other people who have the same problem or no problem with it ?! Only thing I found relevant was a closed bug : http://lists.debian.org/debian-kernel/2010/06/msg00310.html Greetings! -- Slobodan -- To UNSUBSCRIB

blancing conections

2011-01-15 Thread Jesus arteche
hi guys, I have a web application that I want to scale in a cluster like Amazon EC2. I have a load balancer and behind several web server (Apache2). My question is: How can I make for the session that is iniciated in webserver 1...will be available in webserver 2 cause the load balancer maybe can

Re: Keyboard freezing/repeating endlessly

2011-01-15 Thread Camaleón
On Sat, 15 Jan 2011 09:55:54 -0800, Joe Riel wrote: > On Fri, 14 Jan 2011 07:47:59 -0800 Joe Riel wrote: > >> On Fri, 14 Jan 2011 11:38:43 + (UTC) Camaleón wrote: >> >> > You can: >> > >> > 1/ Start the system with no xorg (console) and leave it so for >> > sometine to check if the problem

Re: stardict dictionary packages.

2011-01-15 Thread Camaleón
On Sun, 16 Jan 2011 01:50:39 +0700, Sthu Deus wrote: > Good day. It's late afternoon here :-P > Are in Debian the packages holding dictionaries capable to work w/ > stardict? > > I see plenty of dictionaries for dict use, for example, but not for > stardict. Or it is almost unusable program in

stardict dictionary packages.

2011-01-15 Thread Sthu Deus
Good day. Are in Debian the packages holding dictionaries capable to work w/ stardict? I see plenty of dictionaries for dict use, for example, but not for stardict. Or it is almost unusable program in Debian repo - as the interface program w/o the dictionaries seems to me as VCR w/o the tapes. :)

Re: need help making shell script use two CPUs/cores

2011-01-15 Thread Carl Johnson
Stan Hoeppner writes: > Carl Johnson put forth on 1/13/2011 11:34 AM: > >> Processors Time (seconds) >> P1 66 >> P2 36 >> P3 25 >> P4 20 >> P5 20 >> P6 20 >> P7 20 >> P8 20 > > Your number

Re: Keyboard freezing/repeating endlessly

2011-01-15 Thread Joe Riel
On Fri, 14 Jan 2011 07:47:59 -0800 Joe Riel wrote: > On Fri, 14 Jan 2011 11:38:43 + (UTC) > Camaleón wrote: > > > You can: > > > > 1/ Start the system with no xorg (console) and leave it so for > > sometine to check if the problem is still present (even with no x > > server). > > I'll att

Re: [kinda solved] Re: aptitude: set all packages auto-installed except given list?

2011-01-15 Thread Andrei Popescu
On Sb, 15 ian 11, 14:14:11, Andrei Popescu wrote: > On Sb, 15 ian 11, 12:23:07, Florian Kulzer wrote: > > > > > > Any other suggestions? > > > > aptitude --schedule-only unmarkauto $(cat pkg.list) > > Do you mean after a '--schedule-only markauto ~i'? Hmm, let's try... > Nope, not what I need

Re: Grub2 reinstall on raid1 system.

2011-01-15 Thread Jack Schneider
On Sat, 15 Jan 2011 12:06:11 -0200 Henrique de Moraes Holschuh wrote: > On Sat, 15 Jan 2011, Jack Schneider wrote: > > > >> You might want to try configuring grub and fstab to use UUID's > > > >> instead of /dev/mdX.  That removes the possibility that the > > > >> kernel will change the mdX desig

Re: aptitude: set all packages auto-installed except given list?

2011-01-15 Thread Gilles Mocellin
Le samedi 15 janvier, Florian Kulzer écrivit : > On Sat, Jan 15, 2011 at 13:01:30 +0200, Andrei Popescu wrote: > [...] > > aptitude --schedule-only unmarkauto $(cat pkg.list) > > is somewhat clumsy, but it seems to work here. I only tried a simple > test case with a list of two packages, and I

Re: Grub2 reinstall on raid1 system.

2011-01-15 Thread Henrique de Moraes Holschuh
On Sat, 15 Jan 2011, Jack Schneider wrote: > > >> You might want to try configuring grub and fstab to use UUID's > > >> instead of /dev/mdX.  That removes the possibility that the kernel > > >> will change the mdX designations. > > >> > > >> Use blkid to find out the UUID's of your partitions. Wha

Re: Grub2 reinstall on raid1 system.

2011-01-15 Thread Jack Schneider
On Fri, 14 Jan 2011 05:25:45 -0700 Bob Proulx wrote: > Jack Schneider wrote: > > I have a raid1 based W/S running Debian Squeeze uptodate. (was > > until ~7 days ago) There are 4 drives, 2 of which had never been > > used or formatted. I configured a new array using Disk Utility from > > a live U

Re: Grub2 reinstall on raid1 system.

2011-01-15 Thread Jack Schneider
On Fri, 14 Jan 2011 12:16:37 -0500 Tom H wrote: > >> > [BIG SNIP] > >> You might want to try configuring grub and fstab to use UUID's > >> instead of /dev/mdX.  That removes the possibility that the kernel > >> will change the mdX designations. > >> > >> Use blkid to find out the UUID's of your p

Re: aptitude: set all packages auto-installed except given list?

2011-01-15 Thread Jochen Schulz
Florian Kulzer: > > […] Backticks should also work if you want to avoid the $(...) > bashism. That's not a bashism, it's perfectly legal POSIX/SUS. http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_03 J. -- In this bunker there are women and children. There are

Re: Lenny - xvinfo: No Adaptors present.. No XVideo

2011-01-15 Thread Sven Joachim
On 2011-01-15 12:58 +0100, Camaleón wrote: > On Fri, 14 Jan 2011 21:03:19 -0500, Chris Jones wrote: > >> On Fri, Jan 14, 2011 at 12:37:11PM EST, Camaleón wrote: >> >> [..] >> >>> Maybe it's time for you attach/upload the whole "/var/log/Xorg.0.log" >>> file :-) >> >> Hey.. why not.. >> >> ht

[Solved] Re: aptitude: set all packages auto-installed except given list?

2011-01-15 Thread Andrei Popescu
On Sb, 15 ian 11, 12:23:07, Florian Kulzer wrote: > > > > Any other suggestions? > > aptitude --schedule-only unmarkauto $(cat pkg.list) Do you mean after a '--schedule-only markauto ~i'? Hmm, let's try... Nope, not what I needed. But the solution seems to be: aptitude --schedule-only markau

Re: Lenny - xvinfo: No Adaptors present.. No XVideo

2011-01-15 Thread Camaleón
On Fri, 14 Jan 2011 21:03:19 -0500, Chris Jones wrote: > On Fri, Jan 14, 2011 at 12:37:11PM EST, Camaleón wrote: > > [..] > >> Maybe it's time for you attach/upload the whole "/var/log/Xorg.0.log" >> file :-) > > Hey.. why not.. > > http://pastebin.com/38DZcW7D Thanks :-) Some comments on

Re: aptitude: set all packages auto-installed except given list?

2011-01-15 Thread Javier Barroso
On Sat, Jan 15, 2011 at 12:38 PM, Andrei Popescu wrote: > On Sb, 15 ian 11, 12:25:26, Javier Barroso wrote: >> >> If you have a packages.txt file with a package by line, do it with awk: >> >> aptitude markauto '~i'$(awk '{printf "!~n^"$1"$";}' packages.txt) >> >> And a similar trick marking these

Re: aptitude: set all packages auto-installed except given list?

2011-01-15 Thread Florian Kulzer
On Sat, Jan 15, 2011 at 13:01:30 +0200, Andrei Popescu wrote: [...] > How can I: > > - set everything to auto-installed > - automatically mark as manually installed the ones in the list > > ? > > I already tried (as root): > > aptitude markauto ~i > > This will try to remove everything

Re: aptitude: set all packages auto-installed except given list?

2011-01-15 Thread Andrei Popescu
On Sb, 15 ian 11, 12:29:15, Javier Barroso wrote: > > > > And a similar trick marking these packages like manual installed. > Maybe essential packages should be installed no auto (add !~E to expression) Not needed since apt/aptitude will never auto-remove packages 'Essential: yes'. Regards, Andr

Re: aptitude: set all packages auto-installed except given list?

2011-01-15 Thread Andrei Popescu
On Sb, 15 ian 11, 12:25:26, Javier Barroso wrote: > > If you have a packages.txt file with a package by line, do it with awk: > > aptitude markauto '~i'$(awk '{printf "!~n^"$1"$";}' packages.txt) > > And a similar trick marking these packages like manual installed. Thanks, at a first glance tha

Re: aptitude: set all packages auto-installed except given list?

2011-01-15 Thread Javier Barroso
On Sat, Jan 15, 2011 at 12:25 PM, Javier Barroso wrote: > Hi, > > On Sat, Jan 15, 2011 at 12:01 PM, Andrei Popescu > wrote: >> Hi, >> >> My usual method of 'cleaning' the system was to set all installed >> packages to auto-installed and then mark one by one the ones I need to >> keep. I even have

Re: aptitude: set all packages auto-installed except given list?

2011-01-15 Thread Javier Barroso
Hi, On Sat, Jan 15, 2011 at 12:01 PM, Andrei Popescu wrote: > Hi, > > My usual method of 'cleaning' the system was to set all installed > packages to auto-installed and then mark one by one the ones I need to > keep. I even have a good list generated with: > > aptitude -F '%?p' search '~i!~M' > b

aptitude: set all packages auto-installed except given list?

2011-01-15 Thread Andrei Popescu
Hi, My usual method of 'cleaning' the system was to set all installed packages to auto-installed and then mark one by one the ones I need to keep. I even have a good list generated with: aptitude -F '%?p' search '~i!~M' > bak/pkg.list Now the problem I'm facing is that (probably due to some ap