Re: [gentoo-user] world symlinking

2010-11-02 Thread Daniel Pielmeier
2010/11/2 Gary Golden m...@garygolden.me:
 Hi, list.
 I keep changes of my /etc with git and I would like to include
 /var/lib/portage/world file into the repository.

 Can I safely do:

 mv /var/lib/portage/world /etc/portage
 ln -s /etc/portage /var/lib/portage/world

 Will portage update handle it properly?
 Using hardlinks seems to be more cleaner way, but for some reason I
 don't want to use it for this task.

It should work. Just try it out, but make a copy of your world file
before. Should be easy to switch back if anything fails.

Afaik, the creation of the symbolic link should look like this:
ln -s /etc/portage/world /var/lib/portage/world

-- 
Daniel Pielmeier



Re: [gentoo-user] HP C4795 All-in-One

2010-11-02 Thread Daniel Pielmeier
2010/11/2 CJoeB colleen.bea...@gmail.com:
  Hi,

 Before someone asks Haven't you posted this before?, I'll respond,
 Sort of, but not really!

 Anyway, I've reread all the previous posts.  Mostly, they were related
 to the printer portion of the device.  The printer works fine.

 The current problem is related to the scanner.  My previous post was
 about not being able to use xsane as a normal user, it would only work
 as root.  Since posting that, I've done upgrades to my system and for
 months, the scanner won't work at all - not as a normal user nor as root.

 I've tried reinstalling sane-backends and xsane using an unstable
 version, but that didn't help the situation.  I've checked the kernel
 configuration and that looks fine.

 When installing sane-backends, after the normal USE=, there is a
 statement SANE-BACKENDS= ...  where a number of devices are listed,
 but none in the 4700 series.

 I have no idea what is going on here.  I don't scan much, but tonight
 when I desperately needed to scan I couldn't despite my best efforts.

 BTW, I AM in the scanner group, so that is not the issue.  Whenever, I
 try to run xsane as a normal user or root, I get the message No device
 found.

 Help would be appreciated.

The sane project has a pretty good search engine [1] where you can
find the needed driver.
Hint: Try hpaio :) PS: Your internet search engine of choice is your friend.

http://www.sane-project.org/cgi-bin/driver.pl?manu=Hewlett-Packardmodel=Photosmartbus=anyv=p=

-- 
Daniel Pielmeier



[gentoo-user] CFLAGS

2010-11-02 Thread Coert Waagmeester

Hello all,

Possible noob question.

I have installed a 64 bit gentoo on my intel Pentium D machine.
Now I am reading through /usr/share/portage/config/make.conf.example

My CFLAGS on that machine is the default currently: CFLAGS=-O2 -pipe
But according to 
http://www.gentoo.org/doc/en/gentoo-amd64-faq.xml#cflags I can make it:

-O2 -march=core2 -pipe

Is this entirely necessary? Will it cause a big improvement?

If I do change, how do I recompile everything? (like --newuse for USE 
changes?)


Thank you,
Coert Waagmeester



Re: [gentoo-user] CFLAGS

2010-11-02 Thread Sebastian Beßler

Am 02.11.2010 09:43, schrieb Coert Waagmeester:

Hello all,


Hello!


Possible noob question.


We all was noobs once, maybe I am still ;-)


If I do change, how do I recompile everything? (like --newuse for USE
changes?)


To recompile all use emerge -e world
The switch -e lets portage think that nothing is installed so it has to 
reinstall everything and his dependencies.


read man emerge for more informations.

Greetings

Sebastian



Re: [gentoo-user] CFLAGS

2010-11-02 Thread Alan McKinnon
Apparently, though unproven, at 10:43 on Tuesday 02 November 2010, Coert 
Waagmeester did opine thusly:

 Hello all,
 
 Possible noob question.
 
 I have installed a 64 bit gentoo on my intel Pentium D machine.
 Now I am reading through /usr/share/portage/config/make.conf.example
 
 My CFLAGS on that machine is the default currently: CFLAGS=-O2 -pipe
 But according to
 http://www.gentoo.org/doc/en/gentoo-amd64-faq.xml#cflags I can make it:
 -O2 -march=core2 -pipe

With a recent gcc (4.something) you should use

-O2 -march=native -pipe

Saves you having to figure out what the arch is.
 
 Is this entirely necessary? Will it cause a big improvement?

It will improve things by making all code optimized for your CPU if most of 
your binaries are still from the stage tarball and unoptimized for you.
You will be able to measure the difference with very fancy software.
You will not notice the difference. If you think you do, you are imagining it.
 
 If I do change, how do I recompile everything? (like --newuse for USE
 changes?)

emerge -e world

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] world symlinking

2010-11-02 Thread Gary Golden
On 11/02/2010 12:08 PM, Daniel Pielmeier wrote:
 2010/11/2 Gary Golden m...@garygolden.me:
 Hi, list.
 I keep changes of my /etc with git and I would like to include
 /var/lib/portage/world file into the repository.

 Can I safely do:

 mv /var/lib/portage/world /etc/portage
 ln -s /etc/portage /var/lib/portage/world

 Will portage update handle it properly?
 Using hardlinks seems to be more cleaner way, but for some reason I
 don't want to use it for this task.
 
 It should work. Just try it out, but make a copy of your world file
 before. Should be easy to switch back if anything fails.
 
 Afaik, the creation of the symbolic link should look like this:
 ln -s /etc/portage/world /var/lib/portage/world
 

Thanks for the correction, you're right, of course.
Nevertheless, I've considered that using hardlinks is most porper way to
solve this task. It basically do what I need, make another reference to
the file under needed directory; without introducing compexity.

-- 
Gary Golden



Re: [gentoo-user] CFLAGS

2010-11-02 Thread Yohan Pereira
On Tuesday 02 November 2010 2:13:41 pm Coert Waagmeester wrote:
 I have installed a 64 bit gentoo on my intel Pentium D machine.

also as far as i know, core2 is for core 2 duo quad etc cpus ... 
not for pentium D.

 -O2 -march=core2 -pipe

use native as Alan suggested.
or refer to 

http://www.gentoo-wiki.info/Safe_Cflags

-- 
- Yohan Pereira.



Re: [gentoo-user] world symlinking

2010-11-02 Thread Alan McKinnon
Apparently, though unproven, at 11:54 on Tuesday 02 November 2010, Gary Golden 
did opine thusly:

 On 11/02/2010 12:08 PM, Daniel Pielmeier wrote:
  2010/11/2 Gary Golden m...@garygolden.me:
  Hi, list.
  I keep changes of my /etc with git and I would like to include
  /var/lib/portage/world file into the repository.
  
  Can I safely do:
  
  mv /var/lib/portage/world /etc/portage
  ln -s /etc/portage /var/lib/portage/world
  
  Will portage update handle it properly?
  Using hardlinks seems to be more cleaner way, but for some reason I
  don't want to use it for this task.
  
  It should work. Just try it out, but make a copy of your world file
  before. Should be easy to switch back if anything fails.
  
  Afaik, the creation of the symbolic link should look like this:
  ln -s /etc/portage/world /var/lib/portage/world
 
 Thanks for the correction, you're right, of course.
 Nevertheless, I've considered that using hardlinks is most porper way to
 solve this task. It basically do what I need, make another reference to
 the file under needed directory; without introducing compexity.


hard links will only work if /etc/portage and /var/lib/portage are on the same 
filesystem. Frequently, they are not.


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] world symlinking

2010-11-02 Thread Coert Waagmeester

Gary Golden wrote:

On 11/02/2010 12:08 PM, Daniel Pielmeier wrote:

2010/11/2 Gary Golden m...@garygolden.me:

Hi, list.
I keep changes of my /etc with git and I would like to include
/var/lib/portage/world file into the repository.

Can I safely do:

mv /var/lib/portage/world /etc/portage
ln -s /etc/portage /var/lib/portage/world

Will portage update handle it properly?
Using hardlinks seems to be more cleaner way, but for some reason I
don't want to use it for this task.

It should work. Just try it out, but make a copy of your world file
before. Should be easy to switch back if anything fails.

Afaik, the creation of the symbolic link should look like this:
ln -s /etc/portage/world /var/lib/portage/world



Thanks for the correction, you're right, of course.
Nevertheless, I've considered that using hardlinks is most porper way to
solve this task. It basically do what I need, make another reference to
the file under needed directory; without introducing compexity.



What about a bind mount?

Rgds,
Coert



Re: [gentoo-user] CFLAGS

2010-11-02 Thread Chris Reffett
I feel like the Pentium D is march=prescott though, again, native
should work fine as well.
Chris Reffett
On 11/02/2010 06:40 AM, Yohan Pereira wrote:
 On Tuesday 02 November 2010 2:13:41 pm Coert Waagmeester wrote:
 I have installed a 64 bit gentoo on my intel Pentium D machine.
 also as far as i know, core2 is for core 2 duo quad etc cpus ... 
 not for pentium D.

 -O2 -march=core2 -pipe
 use native as Alan suggested.
 or refer to 

 http://www.gentoo-wiki.info/Safe_Cflags





Re: [gentoo-user] Converting RCS/CVS to git

2010-11-02 Thread BRM
The cvs2svn project also has a cvs2git tool.

http://cvs2svn.tigris.org/

HTH,

Ben




- Original Message 
 From: fe...@crowfix.com fe...@crowfix.com
 To: gentoo-user@lists.gentoo.org
 Sent: Tue, November 2, 2010 12:02:58 AM
 Subject: [gentoo-user] Converting RCS/CVS to git
 
 I have a small RCS repository which I would like to convert to git.
 It has no  branches, no subdirs, and only a few files.
 
 I found one conversion  utility which claimed to convert directly from
 RCS to git, but it failed, and  I no longer remember its name or how it
 failed, other than it sounded like  more than  a simple failure.
 
 I can convert it to CVS manually simply  enough.
 
 I found git has a cvsimport command, but it complained that cvs  didn't
 recognize the server command, and some hints I saw of requiring cvs  2
 made me pause ... all I can see is cvs 1.12.  Vague fuzzy old  memories
 make me think there was a cvs 2, but I see nothing in gentoo for  it.
 I am not  excited at git expecting a cvs server; I'll be danged if  I'm
 going to muck around with that just to convert a few files when  git
 has direct access to the ,v files themselves.
 
 Anyone have any  suggestions?  Don't feed me google pages; I am asking
 for personal  experience.  It would also be interesting to know what
 this cvs 2  business is.  It's hard to google for that ...
 
 -- 
  ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ ..  ._.
  Felix Finch: scarecrow repairman  rocket surgeon / fe...@crowfix.com
   GPG = E987 4493  C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
 I've found a  solution to Fermat's Last Theorem but I see I've run out of 
 room 
o
 
 



Re: [gentoo-user] world symlinking

2010-11-02 Thread Gary Golden
On 11/02/2010 03:53 PM, Coert Waagmeester wrote:
 Gary Golden wrote:
 On 11/02/2010 12:08 PM, Daniel Pielmeier wrote:
 2010/11/2 Gary Golden m...@garygolden.me:
 Hi, list.
 I keep changes of my /etc with git and I would like to include
 /var/lib/portage/world file into the repository.

 Can I safely do:

 mv /var/lib/portage/world /etc/portage
 ln -s /etc/portage /var/lib/portage/world

 Will portage update handle it properly?
 Using hardlinks seems to be more cleaner way, but for some reason I
 don't want to use it for this task.
 It should work. Just try it out, but make a copy of your world file
 before. Should be easy to switch back if anything fails.

 Afaik, the creation of the symbolic link should look like this:
 ln -s /etc/portage/world /var/lib/portage/world


 Thanks for the correction, you're right, of course.
 Nevertheless, I've considered that using hardlinks is most porper way to
 solve this task. It basically do what I need, make another reference to
 the file under needed directory; without introducing compexity.

 
 What about a bind mount?
 
 Rgds,
 Coert
 
 

Indeed, it is another solution for this.
But its disadvantage is that it requires additional configuration (fstab
at least)
If /var would be on another fs, then I would use bind mount, though :)


-- 
Gary Golden



Re: [gentoo-user] Converting RCS/CVS to git

2010-11-02 Thread felix
On Tue, Nov 02, 2010 at 08:41:27AM -0700, BRM wrote:
 The cvs2svn project also has a cvs2git tool.
 
 http://cvs2svn.tigris.org/

Interesting ... downloaded and tried it, but no time for a full
reading of the docs ... got an empty git repository so I will have to
explore it further later :-)

Thanks.

-- 
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
 Felix Finch: scarecrow repairman  rocket surgeon / fe...@crowfix.com
  GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o



Re: [gentoo-user] Converting RCS/CVS to git

2010-11-02 Thread BRM
- Original Message 

 From: fe...@crowfix.com fe...@crowfix.com
 On Tue, Nov 02, 2010 at 08:41:27AM -0700, BRM wrote:
  The cvs2svn project  also has a cvs2git tool.
  
   http://cvs2svn.tigris.org/
 
 Interesting ... downloaded and tried it, but  no time for a full
 reading of the docs ... got an empty git repository so I  will have to
 explore it further later :-)
 

Jump on the cvs2svn mailing list if you continue to have problems.
The mailing list is very low-volume (100 per month) and the author is quite 
responsive to issues.

I haven't used cvs2git myself, though I have used cvs2svn several times.
It's a great and wonderful little tool.

Ben




[gentoo-user] Search for a file that is not installed in the system?

2010-11-02 Thread Kfir Lavi
Hi,
Is there a way to search for a file that I can install, but is not currently
installed in the system?
For example:
$ equery belongs zzdir
[ Searching for file(s) zzdir in *... ]
dev-libs/zziplib-0.13.59-r1 (/usr/bin/zzdir)

$ eix -I zziplib
[I] dev-libs/zziplib
 Available versions:  0.13.58-r1 0.13.59-r1 {doc sdl static-libs test}
 Installed versions:  0.13.59-r1(09:22:31 10/30/10)(sdl -doc
-static-libs -test)
 Homepage:http://zziplib.sourceforge.net/
 Description: Lightweight library used to easily extract data
from files archived in a single zip file


Here zziplib is installed.
I would like equery return the same output when zziplib is not installed.

Is it possible?

Regards,
Kfir


Re: [gentoo-user] Search for a file that is not installed in the system?

2010-11-02 Thread Dale

Kfir Lavi wrote:

Hi,
Is there a way to search for a file that I can install, but is not 
currently installed in the system?

For example:
$ equery belongs zzdir
[ Searching for file(s) zzdir in *... ]
dev-libs/zziplib-0.13.59-r1 (/usr/bin/zzdir)

$ eix -I zziplib
[I] dev-libs/zziplib
 Available versions:  0.13.58-r1 0.13.59-r1 {doc sdl static-libs test}
 Installed versions:  0.13.59-r1(09:22:31 10/30/10)(sdl -doc 
-static-libs -test)

 Homepage: http://zziplib.sourceforge.net/
 Description: Lightweight library used to easily extract 
data from files archived in a single zip file



Here zziplib is installed.
I would like equery return the same output when zziplib is not installed.

Is it possible?

Regards,
Kfir


Well, this is not something you install but you can use this site to 
look for files that some unknown package provides.


http://www.portagefilelist.de/index.php/Special:PFLQuery2

Just type in the name and see what package it shows providing that file.

If you can, install app-portage/pfl and you can help build the list of 
files as well.  I run mine every few weeks or when I install something new.


Hope that helps.

Dale

:-)  :-)



Re: [gentoo-user] Search for a file that is not installed in the system?

2010-11-02 Thread Alex Schuster
Kfir Lavi writes:

 Is there a way to search for a file that I can install, but is not
 currently installed in the system?

Have a look here:

http://www.portagefilelist.de/index.php/Special:PFLQuery2

This is not 100% reliable, as sometimes the files that get installed 
depend on USE flags and such. But it worked well for me in the past.

Wonko



Re: [gentoo-user] world symlinking

2010-11-02 Thread Stroller

On 2/11/2010, at 10:46am, Alan McKinnon wrote:
 ...
 hard links will only work if /etc/portage and /var/lib/portage are on the 
 same 
 filesystem. Frequently, they are not.

For small values of frequently.

Stroller.




Re: [gentoo-user] world symlinking

2010-11-02 Thread Volker Armin Hemmann
On Tuesday 02 November 2010, Stroller wrote:
 On 2/11/2010, at 10:46am, Alan McKinnon wrote:
  ...
  hard links will only work if /etc/portage and /var/lib/portage are on the
  same filesystem. Frequently, they are not.
 
 For small values of frequently.
 
 Stroller.

for every sane system out there.

/var is a candidate for surprisingly filling up / to 100% so it is a smart and 
sane choice to put it on its own partition where damage will be reduced to 
some log files or an aborted emerge. 



Re: [gentoo-user] world symlinking

2010-11-02 Thread Gary Golden
 /var is a candidate for surprisingly filling up / to 100% so it is a smart 
 and 
 sane choice to put it on its own partition where damage will be reduced to 
 some log files or an aborted emerge. 
 
 

It is safe for everyday laptop with 500Gb to have solid / ;)

-- 
Gary Golden



Re: [gentoo-user] world symlinking

2010-11-02 Thread Volker Armin Hemmann
On Tuesday 02 November 2010, Gary Golden wrote:
  /var is a candidate for surprisingly filling up / to 100% so it is a
  smart and sane choice to put it on its own partition where damage will
  be reduced to some log files or an aborted emerge.
 
 It is safe for everyday laptop with 500Gb to have solid / ;)

hope and wishfull thinking. Cute. ;)



Re: [gentoo-user] Search for a file that is not installed in the system?

2010-11-02 Thread Alan McKinnon
Apparently, though unproven, at 19:25 on Tuesday 02 November 2010, Kfir Lavi 
did opine thusly:

 Hi,
 Is there a way to search for a file that I can install, but is not
 currently installed in the system?
 For example:
 $ equery belongs zzdir
 [ Searching for file(s) zzdir in *... ]
 dev-libs/zziplib-0.13.59-r1 (/usr/bin/zzdir)
 
 $ eix -I zziplib
 [I] dev-libs/zziplib
  Available versions:  0.13.58-r1 0.13.59-r1 {doc sdl static-libs test}
  Installed versions:  0.13.59-r1(09:22:31 10/30/10)(sdl -doc
 -static-libs -test)
  Homepage:http://zziplib.sourceforge.net/
  Description: Lightweight library used to easily extract data
 from files archived in a single zip file
 
 
 Here zziplib is installed.
 I would like equery return the same output when zziplib is not installed.

It's not totally possible as Dale and Alex said. The site they gave works well 
fpr the most part. But there's another way - 

just ask here :-)

Seriously, it works. Someone is bound to have what you need and will run an 
equery depends for you. Luckily, the question you ask is actually quite rare.


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] world symlinking

2010-11-02 Thread Alan McKinnon
Apparently, though unproven, at 20:19 on Tuesday 02 November 2010, Volker 
Armin Hemmann did opine thusly:

 On Tuesday 02 November 2010, Stroller wrote:
  On 2/11/2010, at 10:46am, Alan McKinnon wrote:
   ...
   hard links will only work if /etc/portage and /var/lib/portage are on
   the same filesystem. Frequently, they are not.
  
  For small values of frequently.
  
  Stroller.
 
 for every sane system out there.
 
 /var is a candidate for surprisingly filling up / to 100% so it is a smart
 and sane choice to put it on its own partition where damage will be
 reduced to some log files or an aborted emerge.


You're both right, but for different reasons. It'd done less often on a laptop 
or personal machine than on a server for instance. And on embedded stuff, 
almost never. Example: Any junior of mine who doesn't make /var separate is 
liable to be served his own testicles for dinner, and they know it. But my 
laptop is one big filesystem. One case definitely needs it, the other one 
doesn't really.

You're probably looking at the same question from entirely different needs and 
viewpoints.

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] world symlinking

2010-11-02 Thread Volker Armin Hemmann
On Tuesday 02 November 2010, Alan McKinnon wrote:
 Apparently, though unproven, at 20:19 on Tuesday 02 November 2010, Volker
 
 Armin Hemmann did opine thusly:
  On Tuesday 02 November 2010, Stroller wrote:
   On 2/11/2010, at 10:46am, Alan McKinnon wrote:
...
hard links will only work if /etc/portage and /var/lib/portage are on
the same filesystem. Frequently, they are not.
   
   For small values of frequently.
   
   Stroller.
  
  for every sane system out there.
  
  /var is a candidate for surprisingly filling up / to 100% so it is a
  smart and sane choice to put it on its own partition where damage will
  be reduced to some log files or an aborted emerge.
 
 You're both right, but for different reasons. It'd done less often on a
 laptop or personal machine than on a server for instance. And on embedded
 stuff, almost never. Example: Any junior of mine who doesn't make /var
 separate is liable to be served his own testicles for dinner, and they
 know it. But my laptop is one big filesystem. One case definitely needs
 it, the other one doesn't really.
 
 You're probably looking at the same question from entirely different needs
 and viewpoints.

I am looking at the question from the viewpoint of a person who was hit very 
hard in the past. Surprise / fillup thanks to /var or /tmp is no fun at all.



[gentoo-user] Re: Search for a file that is not installed in the system?

2010-11-02 Thread Grant Edwards
On 2010-11-02, Kfir Lavi lavi.k...@gmail.com wrote:

 Is there a way to search for a file that I can install, but is not
 currently installed in the system?

With a meta-distribution, that's not quite possible to do in a
definitive way. With a binarydistribution like Fedora or Ubuntu, you
know what files are going to be installed by any given package, since
the files are already there inside the package file.

With a distro like Gentoo, the files aren't there -- only the
instructions for building them are present, and you don't really know
exactly what files are going to get installed until after you've built
the package from the source code.

If you can find a system that already has the package installed with
all of the USE flags enable, then you can look at that system and be
pretty confident that the same files would be installed on your system
should you install that program with the same USE flags.

So if you install all packages with all USE flags set, you can then
search that system to find out who owns a particular file.

Somebody's already posted a link to a site that attempts to do
something like that, but there's always the possibility that your USE
flags will cause a slightly different set of files to be installed
(IOW you may already have the package installed, but you don't have
the required USE flag).

-- 
Grant Edwards   grant.b.edwardsYow! The Osmonds!  You are
  at   all Osmonds!!  Throwing up
  gmail.comon a freeway at dawn!!!




Re: [gentoo-user] world symlinking

2010-11-02 Thread Alan McKinnon
Apparently, though unproven, at 23:21 on Tuesday 02 November 2010, Volker 
Armin Hemmann did opine thusly:

 On Tuesday 02 November 2010, Alan McKinnon wrote:
  Apparently, though unproven, at 20:19 on Tuesday 02 November 2010, Volker
  
  Armin Hemmann did opine thusly:
   On Tuesday 02 November 2010, Stroller wrote:
On 2/11/2010, at 10:46am, Alan McKinnon wrote:
 ...
 hard links will only work if /etc/portage and /var/lib/portage are
 on the same filesystem. Frequently, they are not.

For small values of frequently.

Stroller.
   
   for every sane system out there.
   
   /var is a candidate for surprisingly filling up / to 100% so it is a
   smart and sane choice to put it on its own partition where damage will
   be reduced to some log files or an aborted emerge.
  
  You're both right, but for different reasons. It'd done less often on a
  laptop or personal machine than on a server for instance. And on embedded
  stuff, almost never. Example: Any junior of mine who doesn't make /var
  separate is liable to be served his own testicles for dinner, and they
  know it. But my laptop is one big filesystem. One case definitely needs
  it, the other one doesn't really.
  
  You're probably looking at the same question from entirely different
  needs and viewpoints.
 
 I am looking at the question from the viewpoint of a person who was hit
 very hard in the past. Surprise / fillup thanks to /var or /tmp is no fun
 at all.

I feel your pain. I know it well. That's why I mentioned roasted testicles.

Right now I sit with 60+ SLES 9 machines that cannot be taken offline for any 
reason, and EVERY SINGLE ONE has one giant filesystem except for the database 
partitions - those are /dev/sdb in a RAID.

I cannot fix this and still maintain my SLA because

a) you can't reduce a mounted fs
b) you can't umount / 
c) all disk bays are full
d) I don't have budget for bigger replacement drives
e) there's no way I'm sitting in that freezing data centre for a week fiddling 
with disks, breaking RAID, putting bigger drives in, rebuilding RAID, fdisk, 
mkfs, blah, blah, blah. And with my luck, all of those machines will decide 
the stress of pulling drives will cause others to fail just at the exact point 
I don't have redundancy.

How did this happen? The man in charge three managers ago thought this was a 
cool way to configure critical servers. Because One filesystem mounted at / 
was option #1 on the disk page of the SLES install wizard.

And lets not talk about the abuses /tmp can be subject to...

sigh

rant over


-- 
alan dot mckinnon at gmail dot com



[gentoo-user] Re: world symlinking

2010-11-02 Thread Francesco Talamona
On Tuesday 02 November 2010, Gary Golden wrote:
 Hi, list.
 I keep changes of my /etc with git and I would like to include
 /var/lib/portage/world file into the repository.
 
 Can I safely do:
 
 mv /var/lib/portage/world /etc/portage
 ln -s /etc/portage /var/lib/portage/world
 
 Will portage update handle it properly?
 Using hardlinks seems to be more cleaner way, but for some reason I
 don't want to use it for this task.
 
 Have a nice day! ;)

Actually it's much easier, I have two machines, both with /etc/world. 
And it's a exact copy of /var/lib/portage/world, something in my 
computers is doing this, and it isn't a (soft|hard)link :)

sys-apps/portage-2.2_rc67

HTH
Francesco

-- 
Linux Version 2.6.35-gentoo-r11, Compiled #1 SMP PREEMPT Fri Oct 29 
20:33:46 CEST 2010
Two 1GHz AMD Athlon 64 Processors, 4GB RAM, 4021.86 Bogomips Total
aemaeth



[gentoo-user] Re: world symlinking

2010-11-02 Thread walt
On 11/02/2010 03:05 PM, Alan McKinnon wrote:

 Right now I sit with 60+ SLES 9 machines that cannot be taken offline for any 
 reason, and EVERY SINGLE ONE has one giant filesystem...

 How did this happen? The man in charge three managers ago thought this was a 
 cool way to configure critical servers. Because One filesystem mounted at / 
 was option #1 on the disk page of the SLES install wizard.

Thanks, I'm relieved to know that I'm not cut from managerial cloth :)

I'm assuming that SUSE releases security patches from time to time.  How
do you keep all those machines up to date if you can't take them offline?




Re: [gentoo-user] world symlinking

2010-11-02 Thread Peter Humphrey
On Tuesday 02 November 2010 22:05:21 Alan McKinnon wrote:

 rant over

Relief!  :-)

-- 
Rgds
Peter.  Linux Counter 5290, 1994-04-23.



Re: [gentoo-user] Re: world symlinking

2010-11-02 Thread Alan McKinnon
Apparently, though unproven, at 00:21 on Wednesday 03 November 2010, Francesco 
Talamona did opine thusly:

 On Tuesday 02 November 2010, Gary Golden wrote:
  Hi, list.
  I keep changes of my /etc with git and I would like to include
  /var/lib/portage/world file into the repository.
  
  Can I safely do:
  
  mv /var/lib/portage/world /etc/portage
  ln -s /etc/portage /var/lib/portage/world
  
  Will portage update handle it properly?
  Using hardlinks seems to be more cleaner way, but for some reason I
  don't want to use it for this task.
  
  Have a nice day! ;)
 
 Actually it's much easier, I have two machines, both with /etc/world.
 And it's a exact copy of /var/lib/portage/world, something in my
 computers is doing this, and it isn't a (soft|hard)link :)
 
 sys-apps/portage-2.2_rc67


You have a funky cron somewhere? Are time stamps the same?

I don't have such a thing:

$ emerge -V
Portage 2.2.0_alpha3 (default/linux/amd64/10.0/desktop, gcc-4.4.5, 
glibc-2.11.2-r3, 2.6.36-ck x86_64)

$ ls -al /etc/world
ls: cannot access /etc/world: No such file or directory

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: world symlinking

2010-11-02 Thread Alan McKinnon
Apparently, though unproven, at 00:49 on Wednesday 03 November 2010, walt did 
opine thusly:

 On 11/02/2010 03:05 PM, Alan McKinnon wrote:
  Right now I sit with 60+ SLES 9 machines that cannot be taken offline for
  any reason, and EVERY SINGLE ONE has one giant filesystem...
  
  How did this happen? The man in charge three managers ago thought this
  was a cool way to configure critical servers. Because One filesystem
  mounted at / was option #1 on the disk page of the SLES install wizard.
 
 Thanks, I'm relieved to know that I'm not cut from managerial cloth :)
 
 I'm assuming that SUSE releases security patches from time to time.  How
 do you keep all those machines up to date if you can't take them offline?


Maintenance time slots. A reboot after installing a new kernel takes less than 
5 minutes and nothing else really requires a reboot, so this passes the Change 
Management process easily. Other updates are usually a service restart which 
can be done on the fly. So never take offline doesn't actually mean *never*, 
it means outside agreed service levels

Fixing / means take the machine offline for X hours where $X is some large 
number depending on how big / is and how fast tar runs. And the Change Manager 
asks his usual horrible questions:

What's the risk?
What's the impact?
Is this customer facing?
Does this problem reduce quality of service to customers?
Don't you have Nagios to manage exactly this kind of thing?

His answer to my answers is usually something like 

You're kidding me right? This is another one of Alan's pranks, right?

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: world symlinking

2010-11-02 Thread Dale

Alan McKinnon wrote:

Apparently, though unproven, at 00:21 on Wednesday 03 November 2010, Francesco
Talamona did opine thusly:

   

On Tuesday 02 November 2010, Gary Golden wrote:
 

Hi, list.
I keep changes of my /etc with git and I would like to include
/var/lib/portage/world file into the repository.

Can I safely do:

mv /var/lib/portage/world /etc/portage
ln -s /etc/portage /var/lib/portage/world

Will portage update handle it properly?
Using hardlinks seems to be more cleaner way, but for some reason I
don't want to use it for this task.

Have a nice day! ;)
   

Actually it's much easier, I have two machines, both with /etc/world.
And it's a exact copy of /var/lib/portage/world, something in my
computers is doing this, and it isn't a (soft|hard)link :)

sys-apps/portage-2.2_rc67
 


You have a funky cron somewhere? Are time stamps the same?

I don't have such a thing:

$ emerge -V
Portage 2.2.0_alpha3 (default/linux/amd64/10.0/desktop, gcc-4.4.5,
glibc-2.11.2-r3, 2.6.36-ck x86_64)

$ ls -al /etc/world
ls: cannot access /etc/world: No such file or directory

   


I don't have one here and I run the latest portage.  I don't recall ever 
having one either.


Dale

:-)  :-)



Re: [gentoo-user] HP C4795 All-in-One Att'n Neil Bothwick

2010-11-02 Thread CJoeB
 On 11/02/10 07:27, Daniel Pielmeier wrote:
 2010/11/2 CJoeB colleen.bea...@gmail.com:
  Hi,


 The current problem is related to the scanner.  My previous post was
 about not being able to use xsane as a normal user, it would only work
 as root.  Since posting that, I've done upgrades to my system and for
 months, the scanner won't work at all - not as a normal user nor as root.


 The sane project has a pretty good search engine [1] where you can
 find the needed driver.
 Hint: Try hpaio :) PS: Your internet search engine of choice is your friend.

 http://www.sane-project.org/cgi-bin/driver.pl?manu=Hewlett-Packardmodel=Photosmartbus=anyv=p=

Thanks for the link.  I got the scanner working and BTW, I did do a
google search, but the search parameters I used only returned stuff from
my previous posts.

The reason for the Att'n Neil Bothwick in the subject line is because
Neil responded months ago when I had the scanner working the first time,
but could only run xsane as root, not as a normal user.  Neil responded
suggesting that I write a udev rule and gave me an example:

SYSFS{product}==CanoScan, SYSFS{manufacturer}==Canon,
GROUP:=scanner, MODE:=0660

I used this to write a udev rule after reading some documentation.  Of
course I changed the product and manufacturer in the above line to what
is applicable to my HP C4795.  After rebooting, I was able to run xsane
as a normal user.  However, when I run it from the command line, a bunch
of messages appear and I'm not sure if there is a problem or if I didn't
write the rule correctly.

This is the message that repeats itself in the terminal window:

(xsane:10566): Gtk-WARNING **: GtkSpinButton: setting an adjustment with
non-zero page size is deprecated

Do I need to be concerned about this?

Regards,

Colleen




-- 

Registered Linux User #411143 with the Linux Counter, http://counter.li.org




Re: [gentoo-user] Re: world symlinking

2010-11-02 Thread Kevin O'Gorman
On Tue, Nov 2, 2010 at 3:21 PM, Francesco Talamona 
francesco.talam...@know.eu wrote:

 On Tuesday 02 November 2010, Gary Golden wrote:
  Hi, list.
  I keep changes of my /etc with git and I would like to include
  /var/lib/portage/world file into the repository.
 
  Can I safely do:
 
  mv /var/lib/portage/world /etc/portage
  ln -s /etc/portage /var/lib/portage/world
 
  Will portage update handle it properly?
  Using hardlinks seems to be more cleaner way, but for some reason I
  don't want to use it for this task.
 
  Have a nice day! ;)

 Actually it's much easier, I have two machines, both with /etc/world.
 And it's a exact copy of /var/lib/portage/world, something in my
 computers is doing this, and it isn't a (soft|hard)link :)

 sys-apps/portage-2.2_rc67

 HTH
Francesco


I'll look forward to that going stable x86.  Right now that means
sys-apps/portage-2.1.8.3

-- 
Kevin O'Gorman, PhD