[gentoo-user] using lvm without a partition of type linux LVM

2013-10-14 Thread Gregory Shearman
In linux.gentoo.user, allan wrote:
 On Sat, Oct 12 2013, thana...@asyr.hopto.org wrote:

 on 10/12/2013 05:40 PM gottl...@nyu.edu wrote the following:
 copy the lvm partitions to directories on an external disk (ext3)

 What command did you use for copying?

 cp -ax

 rsync not is on the minimal install.

rsync is on my 2013 amd-x64 minimal install CD. Do you have an amd-x64
install and do you have the latest version of the minimal install CD?

-- 
Regards,
Gregory.



Re: [gentoo-user] Re: separate / and /usr to require initramfs 2013-11-01

2013-10-07 Thread Gregory Shearman
In linux.gentoo.user, James wrote:
 Gregory Shearman zekeyg at gmail.com writes:


 b) The important reason I need an initramfs is that I have my root
 filesystems on LVM partitions (except for my ARM servers). 

 Hello Gregory,

 Please tell me, as much as you are confortable  with, 
 about your ARM servers

I'm running 2 servers at the moment. They are very low power and they
mainly serve my home network. One is a Marvell Sheevaplug (single core
1.2GHZ 512MB memory) and has been running reliably for many years. The
other is a Texas Instruments Pandaboard (2 core Cortex A9 Processor -
1Gb memory) .  I've only had the Panda since October last year and it is
also a very reliable server (with added GUI HDMI benefits!).

 Running Gentoo?  Running Embedded Gentoo?  Which kernels? 
 HDD ? File Systems? Configurations, Grub 2? LVM, RAID ?

Both servers are running Gentoo Stable... therefore current kernels (for
their architecture). Both have external HDD attached via USB.

File systems: root filesystem is on an SDHC card (2nd partition). Other
filesystems (except for the boot partition) are all on LVM. I have
/usr/src, /usr/portage, /usr/portage/distfiles is a symlink to
/var/www/localhost/gentoo/distfiles (another filesystem). I also have
/var/tmp/portage on a separate filesystem and I also run a postgresql
database server which also has its own partition on
/var/lib/postgresql/version. Both servers have the same setup as I'm
currently in the process of replacing the sheevaplug with the panda.

Grub? There's no such thing on ARM machines. The kernel or uImage looks
for the first partition on the configured root device (SDHC on my
systems) the first partition MUST be VFAT (unfortunately) and it
contains the u-boot bootloader and the kernel (uImage). Kernels are
built the same way as x86 kernels except you do make uImage instead of
make bzImage.

LVM? All the above filesystems, except the root partition and the boot
partition are LVM volumes. Filesystems are mostly Ext4 (very
conventional).

RAID? Nope.

 Typical usage?

Print server, database server, backups, webserver - which includes serving 
gentoo
portage and distfiles to other machines on the network (THTTPD is a
great minimal web server).

 What install docs did you follow?

Sheevaplug:

http://dev.gentoo.org/~armin76/arm/sheevaplug/install.xml#install

Pandaboard:

http://dev.gentoo.org/~armin76/arm/pandaboard/install.xml

It's easy.

 Any suggestions on setting up ARM servers, cluster,
 and such are most welcome.

ARM servers aren't much different to other servers but you must realise
that these are low powered devices (the ones I run anyway) and aren't
really suited to large loads. They especially suit a small business or
home hobbyist environment. Even so, compiling Gentoo, especially on the
Panda is not a problem and doesn't take forever (except for gcc
updates 8-)).

I suppose you could cluster a number of these devices but I think it
would be more efficient to use a more powerful server running servers as
virtual machines.

-- 
Regards,
Gregory.



Re: [gentoo-user] separate / and /usr to require initramfs 2013-11-01

2013-10-06 Thread Gregory Shearman
In linux.gentoo.user, Tanstaafl wrote:
 On 2013-09-29 4:09 PM, Alan McKinnon alan.mckin...@gmail.com wrote:
 On 29/09/2013 19:59, Tanstaafl wrote:
 I've been told that this shouldn't be a big deal... while I am a
 (barely) passable linux sys admin

 Allow me to forward an opinion. The above is not true, not even close.

 Don't knock yourself, you don't deserve it :-)

 Lol!!! At first I thought you were saying that it wasn't true that 
 merging /usr into / shouldn't be a big deal - and I was about to start 
 gnashing my teeth (again).

 Thanks Alan, your words are very kind... and I'll just leave it at 
 that... ;)

I've just changed one of my machines so that /usr is now part of the
root filesystem. Like you, I had a separate /usr filesystem. Unlike you
I've been running an initramfs for many years because:

a) I'm running laptops and like them to have pretty graphical boot
screens and no ugly writing appearing during the boot sequence. It's
silly, I know, but it still looks pretty. The initramfs will start up
bootsplash 8-)

b) The important reason I need an initramfs is that I have my root
filesystems on LVM partitions (except for my ARM servers). I've never
has a scrap of trouble with the genkernel initramfs builds, despite
myriad updates over the years. I've had minor niggles with display but
nothing critical.

So while I've run an initramfs for many years, now it has had to mount
/usr before the pivot_root command. This has led to the problem that
/usr is no longer able to be fscked because it is already mounted, and I
cannot for the life of me, get the genkernel initramfs to fsck the /usr
filesystem before mounting. I've had to manually fsck the /usr
filesystem by running my minimal install CD. There are probably ways to
do this (like fscking /usr on shutdown, which I couldn't get working)
but I'm sick of looking for them. I've bit the bullet and changed things
over. It went without a hitch.

Here's what I did:

I added a new LVM volume group and added a slash filesystem (10Gb), a
usrsrc filesystem for my kernels (10Gb), a portage filesystem (3Gb),
a distfiles filesystem (15Gb) and a packages filesystem (10Gb).
Because these are on LVM they can be adjusted upwards or downwards
depending on usage. I updated /etc/default/grub so that the new kernel
command line will find my new slash LVM volume, and ran the grub2
installer to make the change valid.

I then shut down the machine, booted my minimal install CD, used LVM to
find my filesystems. I then mounted my new slash and mounted the new
filesystems.

I also decided to move portage, distfiles and packages to the old /var
partition but to do so I first had to mount them in their old positions
on /usr/portage /usr/portage/distfiles etc... Once done, I mounted the
old slash and the old /usr (with included distfiles and packages and
portage) then did the cp -av old hierarchy new hierarchy. It was
then possible to unmount distfiles, packages and portage and then move
them to /var (mount /var and mkdir /var/portage /var/distfiles and
/var/packages) I altered the new slash fstab. I then rebooted without
a hitch. Oh, I also had to update /etc/portage/make.conf and the
make.profile symlink to reflect the change.

It seems complicated but every step was logical. Having my root
filesystem on LVM has made the change more complicated than it should
have been, but it still was quite easy to do and downtime was minimal.

I don't feel like I've been forced to do anything. I'm grateful for
the Gentoo devs and their hard work over the years. This upstream change
is just a small bump in the long Gentoo road. If I didn't agree with the
change then it would be up to me to find a way to get my system to work
without an initramfs, not the Gentoo Devs... after all, this IS open
source. Be grateful that the Gentoo Devs are still willing to volunteer
their time building this great distribution.

-- 
Regards,
Gregory.



Re: Integrated ZFS for Gentoo - WAS Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-31 Thread Gregory Shearman
In linux.gentoo.user, Mr Schilling wrote:

 On Solaris, you can disable loading unsigned modules,  is this not supported 
 by 
 Linux?

CONFIG_MODULE_SIG

-- 
Regards,
Gregory.



Re: [gentoo-user] grub2 or kernel config - unable to properly boot [NOT SOLVED]

2013-08-29 Thread Gregory Shearman
In linux.gentoo.user, you wrote:

 search for CONSOLE in this file and find:

 # exec ${CONSOLE} ${CONSOLE} 21

 Just remove the hash at the start of the line, rebuild my initramfs
 and it is ready to go.

 --
 Regards,
 Gregory.



 Thanks Gregory.

 I really would like to find that partition number limitation on genkernel
 in the docs.

I've never had that problem but then I've always made /boot my first
partition.

 I have already had that splash screen problem, very interesting your
 solution. That's a big reason I love Gentoo, always learning something new.
 Funny thing is that checking the file you've mentioned in this new system,
 it has no hash at that line (line number 13, right?). On the other working
 system, the same, no hash.

No, the line is 149. 

You see, I've got this as part of my kernel command line:

console=tty1

The code section from the linuxrc file is part of the kernel command
line check as part of a bash(sh) do loop:

CONSOLE=*|console=*)
CONSOLE=${x#*=}
CONSOLE=$(basename ${CONSOLE})
#   exec ${CONSOLE} ${CONSOLE} 21

If you change your console= value on the command line then the new
console choice is redirected. If the hash is in place then the
console is not redirected and usually you get console output writing all
over your splash screen.


 I'm using genkernel-3.4.45.1 on both systems, perhaps not the same as you.

 Regarding that last issue, the message complaining that the root partition
 is not a valid block device _is still there_, only masked by the splash
 (which now is verbose).

 I was optimistic in believing everything would work as expected once I
 found that detail.

I'm not sure I can help you here. My root filesystem is on an LVM volume
(as are all the rest of my filesystems except for my /boot partition.

-- 
Regards,
Gregory.



Re: [gentoo-user] grub2 or kernel config - unable to properly boot [SOLVED]

2013-08-28 Thread Gregory Shearman
In linux.gentoo.user, you wrote:

 While trying to learn about dracut, I found a detail that made me look
 closer to the genkernel generated initramfs, and I found that the error
 message was perfectly clear: there was no /dev/sda5, where my real_root
 is, that initramfs has just /dev/sda1 to /dev/sda4 .

 I think it must be a limitation on genkernel part, although I was unable to
 find anything related to this issue up to now.

It appears as if genkernel can only boot off real, not extended
partitions.

 So now I have rearranged the partitions, using just the first ones. Now I
 got a stuck splash image, no initialization shown, no progress bar
 moving... but this is another problem, probably I forgot to change
 something to reflect the new partitioning scheme.

It could be a tty problem. If I use genkernel unchanged I get a weird
splash screen and the boot dialog writes all over my splash screen. What
I have to do evey time an emerge updates my genkernel is:

edit my /usr/share/genkernel/defaults/linuxrc file

search for CONSOLE in this file and find:

# exec ${CONSOLE} ${CONSOLE} 21

Just remove the hash at the start of the line, rebuild my initramfs
and it is ready to go.

-- 
Regards,
Gregory.



Re: [gentoo-user] Swap is manually 'swapon-able' but not via fstab...?

2013-08-10 Thread Gregory Shearman
In linux.gentoo.user, you wrote:
  Hi,

  When I do a 
  
 beagleboneblack:/rootswapon /dev/sda2  
 beagleboneblack:/rootfree
 total   used   free sharedbuffers cached
 Mem:507476  50812 456664  0  13108  17244
 -/+ buffers/cache:  20460 487016
 Swap:  5242876  05242876
 

 swap is added to the system.

 If I add

 /dev/sda2 none swap  sw0 0

 swapspace will not be used after a reboot.

 dmesg has nothing specific...

 What did I wrong here? Why get swap not used via fstab?

Do you have swap added to the boot runlevel?

# rc-update add swap boot

-- 
Regards,
Gregory.
Gentoo Linux - Penguin Power

-- 
Regards,
Gregory.
Gentoo Linux - Penguin Power



Re: [gentoo-user] Gentoo installation, network adapter not supported

2013-07-01 Thread Gregory Shearman
In linux.gentoo.user, you wrote:
 2013/6/29 Zind wzmind...@gmail.com

 Can you search with dmesg and find if it's nead a firmware.

 Yes.
 At the bottom of the dmesg message, I can see these lines:
 request for firmware file 'iwlwifi-2030-6.ucode' failed.
 request for firmware file 'iwlwifi-2030-5.ucode' failed.
 no suitable firmware found!


 You can try to fix this with emerging linux-firmware. I'm not sure if this
 firmware is in there, or what else to configure to fit it exactly, but in
 default the firmwares ware installed.

I can confirm that these firmware files are in the linux-firmware
package.

-- 
Regards,
Gregory Shearman.



Re: [gentoo-user] Re: mesa 9.1.2.r1 fails to build

2013-06-13 Thread Gregory Shearman
In linux.gentoo.user, you wrote:

 The problem isn't obvious to me, but in the past I've seen strange linking
 errors happen when the ebuild (for some strange reason) uses the headers
 in /usr/include (from the previous version of the package) instead of the
 headers in the new source code.  No idea why.

 Anyway, you could try removing your current mesa installation (after using
 quickpkg, of course) and then trying the emerge again.

Sometimes when a package fails to build while doing an: 

emerge -auDN world

I've had to add the '--with-bdeps=y' option:

emerge -auDN --with-bdeps=y world

For some reason I can't understand, it seems to work. It may not help
with mesa-9.1.2-r1 but it doesn't take much effort and can't hurt to try

-- 
Regards,
Gregory Shearman.



Re: [gentoo-user] Recover on SSD

2013-05-05 Thread Gregory Shearman
In linux.gentoo.user, Dale wrote:
 Randolph Maaßen wrote:

 I'm so damn lucky

 I dd'ed the SSD onto an external drive and worked at first on the
 image with qemu. A simple recreation of the partition brought the
 system back to live on the image. I tried the same on the real machine
 and Gentoo works again.

 Allow me to introduce what is likely the luckiest computer user there
 is.  Here he is:  Randolph Maaßen

 If that was me, I would have lost everything on there. 

But you'd lose everything on there with style, Dale.

I don't trust any machine and therefore have multiple backups in
different places. I haven't lost anything yet.

-- 
Regards,
Gregory.



Re: [gentoo-user] Re: Udev-197 : 4 show-stoppers

2013-01-23 Thread Gregory Shearman
In linux.gentoo.user, you wrote:

 On Wed, 23 Jan 2013 09:29:19 +0100, Matthias Hanft wrote:

 Good idea, but as I updated udev yesterday on one of my Gentoo systems,
 in the usual after-update messages there was a line in red, telling me
 You don't have CONFIG_DEVTMPFS enabled. udev will not start. So it's
 not really a surprise, is it? Hence, I built a new kernel *before*
 rebooting :-)

 That's fine if you see the message, which you should, and the system
 does not suffer an unplanned reboot, which it shouldn't. But leaving a
 system in a state that won't reboot following a crash or power failure is
 not particularly clever, making the warnings fatal sounds a safe default
 to me. As this is Gentoo there will always be a way to turn the airbags
 off and even disable the brakes :)

A similar message has been shown after quite a few previous udev
updates, not just this last one. I remember having to add the
CONFIG_DEVTMPFS=y option to my gentoo kernels at least 6 months ago
after seeing a message telling me that this option must be enabled for
udev or there'll be big problems later on.

I have all update messages emailed to me using:

PORTAGE_ELOG_*=blah

In my /etc/portage/make.conf

After every update I read every message that portage sends me and I act
appropriately upon them.

BTW, My udev update went without a hitch. I had a revdep-rebuild to do
for a libudev update and that was about it.

Even if you didn't see the message and your system didn't boot then you
could still fix things by using your Minimal Install CD to start up,
then chroot into your normal system and rebuild your kernel.

-- 
Regards,
Gregory.



Re: [gentoo-user] hard disk name changes within initramfs

2012-12-10 Thread Gregory Shearman
In linux.gentoo.user, you wrote:
 * Helmut Jarausch jarau...@igpm.rwth-aachen.de [121206 09:27]:
 Hi,
 
 on one of several machines I have a problem with initramfs.
 
 The machine has a single SATA drive. When the kernel boots it shows  
 that it is called /dev/sda,
 Now, within the init script of my initramfs it tries to mount /dev/sda2  
 as root but fails.
 Since the initramfs spawns a shell (busybox) I can see the device files  
 for /dev/sda?
 but fdisk /dev/sda fails.
 As it turns out, the harddisk is now named /dev/sdb with /dev/sdb?  
 partition names.
 [..]

 I can't tell you why it changed but after my device names got messed
 around with (after an upgrade) and the next boot mounted /home on /tmp
 and an initscript blew away a bunch of home directories before I caught
 it I switched to mounting via UUID.  Once you find the UUID to use it's
 easy and alleviates lots of problems in the future.

 Todd

All of the partitions of my HDD (including the root partition) are LVM
partitions so I don't have to worry about this problem at all.

-- 
Regards,
Gregory.



Re: [gentoo-user] genkernel 2 manual

2012-10-23 Thread Gregory Shearman
In linux.gentoo.user, you wrote:

 I've been using Gentoo for quite a long time, and today I decided to try
 compiling the kernel myself, Thing I've never done before. I want a smaller
 kernel, a faster boot (without initramfs) and, of course, some fun :).

Good for you. I've rolled my own kernels for around 15 years, but I
still use genkernel to build me an initramfs. I require the initramfs
because:

a) I've got my root filesystem on an LVM partition.

b) I've got my /usr directory on a separate partition. This is not a
problem, yet, but the udev update is coming!

c) I like a fancy boot splash screen during early boot.

I'm not that fond of using genkernel to build my initramfs, but it
works. I'll probably switch to dracut when it becomes more stable.

 I'm still reading the oficial documentation, but I don't think it will be
 enough, so, if anyone of you know some documentation more detailed, I'd
 appreciate reading it.

What do you mean by official documentation? Do you include the
information in the Documentation directory in your latest kernel?

Have you tried:

$make menuconfig

This gives you a good interface for configuring your kernel. If you hit
/ you'll get a search function and there are help options for just
about every feature you want to include in your new kernel.

 I've just ran 'make xconfig', and I noticed that the configuration is the
 same from genkernel (genkernel --menuconfig). Is it good? Should I get an
 original .conf, with less garbage, or this is just the 'normal default'
 instead of 'genkernel default' as I'm guessing?

I usually start from scratch with a new machine, but in your case you
should be able to use your old genkernel .config file and then pare it
down to what you require ie what works.

 Is there any tool that can scan my pc and help me out with the .conf or
 even generate one? I guess not. There are lots of options that I have no
 idea what they are for. I think this will be the fun part, but I think I
 can't get a running kernel before I optimize it, so I can do it gradually.

I have had reasonable success with lshw (sys-apps/lshw). It generates
a list of the hardware on your machine. Unfortanately it won't produce a
.config file for you.

One option that makes subsequent kernels easier to produce is:

CONFIG_IKCONFIG

Kernel .config support

This feature provides copy of your current Kernel's .config file at
/proc/config.gz which you can then extract and use on your new kernel by
doing:

$ zcat /proc/config.gz  new-kernel-directory/.config
$ cd new-kernel-directory
$ make oldconfig

 Just for curiosity, what is the size of your kernel? Mine is 3.4 MB.

3.7MB

Yep.. it's bigger than your genkernel generated kernel... 8-)

Remember, the first kernel you produce on your own will take a bit of
effort, but subsequent kernels are easy.

-- 
Regards,
Gregory.



Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.

2012-04-13 Thread Gregory Shearman
In linux.gentoo.user, Dale wrote:
 I have ran into a issue here.  I copied everything over to sdb, my temp
 drive.  When I try to boot it, it still boots from sda which is the
 primary drive.  I can not get it to boot from the copy.  I did update
 the fstab file to point to the new sdb partitions, I use labels for that
 and they have different names.  I also edited grub and told it root was
 sdb2.  When I boot, everything mounted is sda.

Did you actually install grub onto your MBR by either:

# grub-install --no-floppy /dev/sdb

or

# grub

grub root (hd1,0)
grub setup (hd1)
grub quit

-

You didn't actually write down these steps. Are you assuming that we
know you've done that?

-- 
Regards,
Gregory.



Re: [gentoo-user] recommendation for a router/WAP

2012-02-02 Thread Gregory Shearman
In linux.gentoo.user, you wrote:

 On 02/02/2012, at 11:02, Allan Gottlieb gottl...@nyu.edu wrote:
 
 I am asking for a recommendation of a router/wap.  I know the
 wired/wireless tradeoffs.
 
 thanks, allan
 

 Sorry, read it as wired or wireless.

 Check out the buffalo routers -I have a G300NH which while it has a
 few early reports of bad wifi, it's been faultless for me.  After a
 couple of months I changed the custom ddwrt firmware for real ddwrt
 (basically  because I could!) and it's always been problem free.

 My limited experience with 1G has been mixed - usually don't notice
 much of a difference though its occasionally wow! - mostly cisco
 devices though.

I can second the Buffalo WZR-HP-G300NH. I run it with Openwrt rather
than ddwrt and I find it runs flawlessly, though I only run it with a
few wireless laptops and a wired server. Everthing works as it should. I
love the ease of configuration that is provided by Openwrt, plus the
flexibility of having IPV6 available.

-- 
Regards,
Gregory.



Re: Your earliest ooh, shiny (was: [gentoo-user] Floppy support question)

2012-01-29 Thread Gregory Shearman
In linux.gentoo.user, you wrote:

 Our 286 (that Tandy) came with a 20MB hard disk. The 386 I got as a
 hand-me-down had a 540MB disk. (That was a bit of a golden age for me;
 I never managed to fill that drive.)

I had twice the storage. My 286 had a 40MB hard disk. It also had 1MB of
memory but only 640KB was accessible to the system without a memory
mapping hack.

It ran MSDOS 3.1. (Ah! the late '80s)

Gee I had a lot of fun on that machine. I could connect via 1200 baud
modem from my home to the university VAX-VMS and use the VAX Wordperfect
wordprocessor to do my course work and then send it to the University
printer, which produced beautiful results.

I wouldn't go back though! I love my HP quadcore laptop running Gentoo.

-- 
Regards,
Gregory.



Re: [gentoo-user] Gentoo-sources: can't make menuconfig with user? User can't access ncurses?

2012-01-17 Thread Gregory Shearman
In linux.gentoo.user, Mick wrote:

 I use a separate output directory that is under control of the user.
 What I do as an ordinary user:

 mkdir kerneloutputdir

 zcat /proc/config.gz  kerneloutputdir/.config

 # assuming you have this option set in your kernel ie the current
 kernel # config saved in /proc/config.gz

 cd /usr/src/linux

 # assuming that /usr/src/linux is a soft link to your new kernel #
 directory.

 make O=kerneloutputdir oldconfig

 # The O= makes sure that any kernel output goes to the directory
 under # the permissions and control of the kernel builder user rather
 than in # the kernel directory under root permissions.

 # If you want to make changes to the new kernel then:

 make O=kerneleoutputdir menuconfig

 You can then proceed with building kernel and modules. Yes, I know
 that make without a command will automatically build both kernel
 image and modules but I prefer to do things explicitly.

 make O=kerneleoutputdir bzImage make O=kerneleoutputdir modules

 You can then install the new kernel and modules as root:

 make O=kerneleoutputdir modules_install make O=kerneleoutputdir
 install

 You need to set the following environment variable:

 KBUILD_OUTPUT=kerneloutputdir

 This variable ensures that any emerged app can find the kernel output
 if necessary. I've created a script in /etc/profile.d that
 automatically keeps this environment variable up to date. Oh,
 remember to unset this variable if you do *anything* requiring a
 busybox build (eg genkernel).

 An enjoyable side-effect of this system is that when you remove an
 obselete kernel from your system using emerge -C
 oldkernelversion, everything will be removed because there are no
 changes, no files added to those portage added kernel directory.

 The kernel builder user does nothing but build new kernels. This
 user's home directory is a hierarchy containing current kernel
 builds.

 I've been using this system for years now, on all my gentoo systems.
 It is second nature. Of course, the .bash_history of the kernel
 builder user is *very* useful for quickly doing all this from the
 command line.

 I used to have a script to automate all this, but it is just as easy
 to do from the command line.

 What is the benefit of this approach vis a vis su to root first as the
 gentoo handbook suggests?

You've answered your own question. I'm of the opinion that it is far
better to do the absolute *minimum* commands as the superuser, for your
own system security. My way of compiling a new kernel means that only
the install commands are done as superuser.

-- 
Regards,
Gregory.



Re: [gentoo-user] Gentoo-sources: can't make menuconfig with user? User can't access ncurses?

2012-01-02 Thread Gregory Shearman
In linux.gentoo.user, you wrote:
 On Mon, 2 Jan 2012 20:58:18 -0200
 Claudio Roberto França Pereira spide...@gmail.com wrote:

 I'm not currently at my Gentoo box, sorry for this, but if I don't
 post this now I'll probably forget to post it at all.
 Anyways, last time I tried upgrading my kernel, I copied my .config
 and ran make menuconfig as my main user, but it whined about missing
 ncurses libraries or something. After su'ing, everything went better
 than expected.
 Was that normal behavior? I remember configuring my kernel as user
 before. Even compiling it as user.


 How did you install the kernel sources?

 If you downloaded them as a normal user you should be able to make
 menuconfig; make; sudo make install just fine.

 If portage installed the sources, then you should
 configure/compile/install as root. The sources are owned by portage
 (IIRC) and you can't su to that user, leaving only root. Or, try adding
 yourself to the portage group. Personally I think that's too much
 effort for zero gain so I always do it as root.

I use a separate output directory that is under control of the user.
What I do as an ordinary user:

mkdir kerneloutputdir

zcat /proc/config.gz  kerneloutputdir/.config

# assuming you have this option set in your kernel ie the current kernel
# config saved in /proc/config.gz

cd /usr/src/linux 

# assuming that /usr/src/linux is a soft link to your new kernel
# directory.

make O=kerneloutputdir oldconfig

# The O= makes sure that any kernel output goes to the directory under
# the permissions and control of the kernel builder user rather than in
# the kernel directory under root permissions.

# If you want to make changes to the new kernel then:

make O=kerneleoutputdir menuconfig

You can then proceed with building kernel and modules. Yes, I know that
make without a command will automatically build both kernel image and
modules but I prefer to do things explicitly.

make O=kerneleoutputdir bzImage
make O=kerneleoutputdir modules

You can then install the new kernel and modules as root:

make O=kerneleoutputdir modules_install
make O=kerneleoutputdir install

You need to set the following environment variable:

KBUILD_OUTPUT=kerneloutputdir

This variable ensures that any emerged app can find the kernel output if
necessary. I've created a script in /etc/profile.d that automatically
keeps this environment variable up to date. Oh, remember to unset this
variable if you do *anything* requiring a busybox build (eg genkernel).

An enjoyable side-effect of this system is that when you remove an
obselete kernel from your system using emerge -C oldkernelversion,
everything will be removed because there are no changes, no files added
to those portage added kernel directory.

The kernel builder user does nothing but build new kernels. This user's
home directory is a hierarchy containing current kernel builds.

I've been using this system for years now, on all my gentoo systems. It
is second nature. Of course, the .bash_history of the kernel builder
user is *very* useful for quickly doing all this from the command line.

I used to have a script to automate all this, but it is just as easy to
do from the command line.

-- 
Regards,
Gregory.



Re: [gentoo-user] Can't build firmware into kernel

2011-12-10 Thread Gregory Shearman
In linux.gentoo.user, Lavender wrote:

 I have checked my Xorg.0.log, there is no error message. I have a
 question,I read xorg.conf , I didn't find any area about Window
 Manage, so how xorg-server knowswhich WM to invoke when I use X
 -config /etc/X11/xorg.conf ?BTW, among my class I am the only one who
 uses Linux, so it's impossible to use ssh.

Window managers are started by users. I think you are talking about
display managers.

Xorg runs a script /etc/X11/startDM.sh. It will start up /etc/init.d/xdm
if that's the display manager defined (as it is in a default Gentoo
setup). You define which display manager you want to start in
/etc/conf.d/xdm, for example:

DISPLAYMANAGER=kdm

This will start the KDE4 display manager.

-- 
Regards,
Gregory.



Re: [gentoo-user] Can't build firmware into kernel

2011-12-08 Thread Gregory Shearman
In linux.gentoo.user, Lavender wrote:

 Thanks a lot ! But I used lspci -v | less, it printed vebose
 information, then I looked up carefully for my video card, but I did
 not find anything about R600,R700 or other like, I'm still not clear
 about R*** things , is it chipset name?
Hmm, I re-installed radeon-ucode package and I'm sure that I have
R600_rlc.bin cause I canlocate it in /lib/firmware/ and
/usr/src/linux/somewhere. But when I use make , the error message
like:make[1]: *** No rule to make target
`firmware/radeon/R600_rlc.bin', needed by
`firmware/radeon/R600_rlc.bin.gen.o'.  Stop.make: *** [firmware] Error
2
 It's weird, because I think I have done all the Prerequisite
 correctly, so how could I fix it out ?

I think you need:

CONFIG_PREVENT_FIRMWARE_BUILD=y

Configured into your kernel.

Have a look at your dmesg output. It should have your Radeon card
version listed. Mine is a Radeon REDWOOD chip.

Here's my kernel config relating to building firmware into the kernel:

(ignore the fact that I wastefully build in all the chip versions other
than the REDWOOD)

CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE=radeon/REDWOOD_pfp.bin radeon/REDWOOD_rlc.bin \
radeon/REDWOOD_me.bin radeon/CEDAR_pfp.bin radeon/CEDAR_rlc.bin \
radeon/CEDAR_me.bin radeon/CYPRESS_me.bin radeon/CYPRESS_pfp.bin \
radeon/CYPRESS_rlc.bin radeon/JUNIPER_me.bin radeon/JUNIPER_pfp.bin \
radeon/JUNIPER_rlc.bin carl9170-1.fw
CONFIG_EXTRA_FIRMWARE_DIR=/lib/firmware

-- 
Regards,
Gregory.



Re: [gentoo-user] pg_upgrade91 - You must have read and write access in the current directory

2011-12-05 Thread Gregory Shearman
In linux.gentoo.user, you wrote:
 On 12/05/11 13:37, Gregory Shearman wrote:
In linux.gentoo.user, Joseph wrote:
 I'm upgrading form posgresql 9.0 to 9.1, it seem to the upgrade went OK but 
 when try to transfer the data
 base:
 pg_upgrade91 -v --old-datadir=/var/lib/postgresql/9.0/data/ 
 --new-datadir=/var/lib/postgresql/9.1/data
 --old-bindir=/usr/lib/postgresql-9.0/bin/ 
 --new-bindir=/usr/lib/postgresql-9.1/bin/
 Running in verbose mode
 Performing Consistency Checks
 -
 Checking current, bin, and data directories
 You must have read and write access in the current directory.
 Failure, exiting

 What am I doing wrong?

Have you checked that you have read and write access in the current
directory before running the command?

I did the upgrade as the postgres user and made sure that I ran the
command from a read/writable directory for that user.

 Yes, I did su postgres
 and ls -al /var/lib/postgresql/9.1/
 drwx-- 13 postgres postgres 4096 Dec  4 18:20 data

 so it should work.

 -- 
 Joseph

hmmm...

Which directory are you running the command from? I ran mine from
/var/lib/postgresql which has the properties:

drwxr-xr-x 4 postgres root

I don't recall using the command pg_upgrade91, but I see that it is a
symlink to /usr/lib/postgresql-9.1/bin/pg_upgrade

This is the command that worked for me:

pg_upgrade -u postgres -d /var/lib/postgresql/9.0/data -D \\
/var/lib/postgresql/9.1/data -b /usr/lib/postgresql-9.0/bin -B \\
/usr/lib/postgresql-9.1/bin

For more information do (as postgres user)

$ pg_upgrade --help

-- 
Regards,
Gregory



Re: [gentoo-user] pg_upgrade91 - You must have read and write access in the current directory

2011-12-05 Thread Gregory Shearman
In linux.gentoo.user, you wrote:
 On 12/05/11 21:56, Gregory Shearman wrote:
hmmm...

Which directory are you running the command from? I ran mine from
/var/lib/postgresql which has the properties:

drwxr-xr-x 4 postgres root

I don't recall using the command pg_upgrade91, but I see that it is a
symlink to /usr/lib/postgresql-9.1/bin/pg_upgrade

This is the command that worked for me:

pg_upgrade -u postgres -d /var/lib/postgresql/9.0/data -D \\
/var/lib/postgresql/9.1/data -b /usr/lib/postgresql-9.0/bin -B \\
/usr/lib/postgresql-9.1/bin

For more information do (as postgres user)

$ pg_upgrade --help

 I definitely wasn't in that directory I just su postgres and run the 
 command.

 I just recreate the databases by hand and populated them with backup data.

I see. That's a shame.

Usually, the HOME directory of the postgres user is set to
/var/lib/postgresql.

If you just do su postgres you'll remain in the directory from which
you ran the command.

What you *must* do is run:

$ su - postgres

Notice the '-'?

This makes the su to the user a *login*, so that you'll be in the HOME
directory of the postgres user.

Try it yourself. Do an 'ls' after su postgres and then do an 'ls'
after su - postgres

See man su for more information.

-- 
Regards,
Gregory.



Re: [gentoo-user] pg_upgrade91 - You must have read and write access in the current directory

2011-12-04 Thread Gregory Shearman
In linux.gentoo.user, Joseph wrote:
 I'm upgrading form posgresql 9.0 to 9.1, it seem to the upgrade went OK but 
 when try to transfer the data 
 base:
 pg_upgrade91 -v --old-datadir=/var/lib/postgresql/9.0/data/ 
 --new-datadir=/var/lib/postgresql/9.1/data 
 --old-bindir=/usr/lib/postgresql-9.0/bin/ 
 --new-bindir=/usr/lib/postgresql-9.1/bin/
 Running in verbose mode
 Performing Consistency Checks
 -
 Checking current, bin, and data directories 
 You must have read and write access in the current directory.
 Failure, exiting

 What am I doing wrong?

Have you checked that you have read and write access in the current
directory before running the command?

I did the upgrade as the postgres user and made sure that I ran the
command from a read/writable directory for that user.

-- 
Regards,
Gregory.



Re: [gentoo-user] grub and what happens exactly when booting.

2011-09-16 Thread Gregory Shearman
In linux.gentoo.user, Dale wrote:

 I'm getting this LVM thing down pat tho.

 cfdisk to create partitions, if not using the whole drive.
 pvcreate
 vgcreate
 lvcreate
 then put on a file system and mount.

Sounds good.

 I still get them confused as to what comes first but I got some pictures 
 to look at now.  That helps to picture what I am doing, sort of.

pv = physical volume. Physical comes first.

vg = volume group. LVM volumes MUST belong to a group.

lv = logical volume. Logical obviously comes last.

 Thanks to all for the advice tho.  It's helping.  Still nervous about / 
 on LVM tho.  :/

If you're nervous then don't do it. I've had my root filesystem on LVM
for years on a number of different machines and never had a problem.
I've used Genkernel's initramfs generator to create my initramfs, but
I've just unmasked dracut and I've begun testing it on my system. It
looks good so far, except that dracut mounts something on my nonexistent
/run directory. This caused a warning when displaying mounted
filesystems using df about /run not existing. I'm wondering whether I
can just add the directory or do I need to do something special such as
add a .keep file to it.

If you want to go ahead with root on LVM then leave a duplicate root
partition in a normal linux partition until you're satisfied, or backup
your root partition to another machine or disk drive. You should be
backing up your system anyway. My root filesystem on my laptop is only
161MB. Of course I've got a separate /usr and /var filesystem, which is
the reason for my testing of dracut. I want to be ahead of the game when
these forced udev changes become mandatory.

I'm not happy about the decision to make /usr necessary for udev to
populate /dev, but I've used an initramfs for years so it's not such a
wrench for as it for other gentoo users.

-- 
Regards,
Gregory.



Re: [gentoo-user] OT: but cool - NASDAQ is gentoo powered

2011-08-18 Thread Gregory Shearman
In linux.gentoo.user, you wrote:
 On Tuesday 16 August 2011 02:48:30 Michael Mol wrote:

 I have a midget server on the LAN (Atom N270) which runs Gentoo, but it's 
 too underpowered to do all the compiling itself, so it NFS-exports its 
 packages directory to my workstation, where I have a 32-bit chroot set up as 
 an image of the Atom. Emerging is done here, making the packages available 
 for installation on the Atom. This is a cumbersome operation though.

That's interesting. I run a SheevaPlug with Gentoo onboard. It runs at
1.2G and has half a G of memory. I have no trouble compiling gentoo on
this little server. It works as a file server, backup server, web
server and portage server (distfiles and portage sync for the gentoos on
my network).

Is ARM more efficient than the intel atom?

-- 
Regards,
Gregory.



Re: [gentoo-user] KDE and HARD lock ups.

2011-07-04 Thread Gregory Shearman
Jesús J. Guerrero Botella jesus.guerrero.bote...@gmail.com  wrote:
 2011/7/4 Dale rdalek1...@gmail.com:
 I don't think I am logged in long enough to change the settings.  I may try
 my test user but I think a file got corrupted or something.  I did have a
 power failure the other day and the relay on my UPS was not quite fast
 enough.  I think the contacts may need some cleaning.  My UPS does some odd
 things at times.  I need a new one but they are pricey.  I had forgot about
 the power failure issue.  That has lead me down a different path now.

 You don't need much time. The default shortcut to disable compositing
 in kde is shift+alt+f12


You can also edit the user KDE config directly via:

~/.kde4/share/config/kwinrc

[Compositing]

Enabled=True

change to

Enabled=False

There's more than one way to skin a cat.

-- 
Regards,
Gregory.



Re: [gentoo-user] [OT - More Router Advice] Cheap Router with decent/reliable VLAN support

2011-05-28 Thread Gregory Shearman
In linux.gentoo.user, Todd Goodman wrote:
 * Tanstaafl tansta...@libertytrek.org [110528 12:43]:
 After seeing an older thread asking about a router, I figured I'd ask my
 own question...
 
 I'm looking for a cheap but reliable router that has decent and SIMPLE
 way to add VLANs (I'm not a CISCO guy and don't want to have to become
 one)...
 
 Specifically, I want to have one VLAN that my wireless access points are
 plugged into, to provide ONLY internet access, and then a separate VLAN
 for my internal network...
 
 This is to protect my internal net from any potentially infected
 machines that are on the wireless access points (I routinely work on
 infected computers for friends/family, so, I need internet access, but
 want them isolated from my internal network).
 
 Anyone? Will one of the FLOSS builds for the cheap Cable/DSL routers
 support VLANs on the different built-in router ports (ie, Tomato, DD-WRT
 or OpenWRT)?
 
 Looking forward to any suggestions/ideas...

 Hi, I'm pretty sure OpenWRT supports VLANs.

 I started using it on a Buffalo WHR-G300N (I think, not at home to check
 right now.)  Cheap and I didn't expect much but it works great (far
 better than any Linksys or trendnet products I've purchased and run
 their firmware on.)

I'll second that. I run a Buffalo Nfiniti WZR-HP-G300NH with openwrt
installed. It is VLAN capable and has Gigabyte ethernet and b/g/n wifi.
It also has a USB socket for extra disk storage if needed (or any other
peripheral you fancy).  It just sits in the corner and does its job. It
is also very cheap.

-- 
Regards,
Gregory.



Re: [gentoo-user] How's the openrc update going for everyone?

2011-05-11 Thread Gregory Shearman
Dale wrote: 
 Neil Bothwick wrote:
 On Wed, 11 May 2011 04:55:46 -0500, Dale wrote:


 I'll leave it like it is I guess.  I like all the little green OK's
 that scroll up anyway.
  
 Reassuring, aren't they?




 What's bad is when something doesn't start for some reason and you don't 
 know it didn't start.  Then things start acting weird and you get a head 
 scratcher.  It's one reason I don't like the picture stuff that some 
 people use that covers all that up.  Even when I boot off a USB stick or 
 CD, I hit F2 or whatever to see if everything I need is seen and ready.

The picture stuff will switch to verbose if there's any errors in
the bootup process, otherwise it's a nice graphical bootscreen and a
progress bar.

-- 
Regards,
Gregory.



Re: [gentoo-user] LVM for data drives but not the OS

2011-04-07 Thread Gregory Shearman
In linux.gentoo.user, you wrote:
 Neil Bothwick wrote:
 On Thu, 07 Apr 2011 05:22:41 -0500, Dale wrote:


 I want to do it this way because I don't trust LVM enough to put my OS
 on.  Just my personal opinion on LVM.
  
 This doesn't make sense. Your OS can be reinstalled in an hour or two,
 your photos etc. are irreplaceable.



 It does to me.  I want to keep things so that if there is a problem, I 
 know how to fix it or can at least get to a point that I can get help on 
 it.  If LVM fails and I can't boot, then I loose everything on LVM 
 because I would have to reinstall from scratch.  If it fails just on my 
 data stuff, I can get help and fix it because I can still boot up and 
 get to my email program.  Also, I have the important stuff backed up to 
 DVD.  I would only loose things that I can download again.  I would just 
 rather avoid that and I'm sure ATT would agree.  That's a lot of 
 downloading.

I have all my partitions on LVM except the boot partition. I've used LVM
for more years than I could count and have *never* had a failure related
to LVM.

I backup my machines to an external drive (2 backup drives actually)
using rsync.

If I have a failure and cannot boot then I just put in my Gentoo Minimal
CD (which has all the LVM tools available) and I can fix the damage. If
the damage isn't fixable then I can just copy over the backups.

LVM snapshots make live backups a breeze. Backups are always in a
consistent state and I've tested them and they *work*.

-- 
Regards,
Gregory.



Re: [gentoo-user] screen just saved my day!

2011-04-07 Thread Gregory Shearman
In linux.gentoo.user, you wrote:

 On Thursday 07 April 2011 05:44:17 Pandu Poluan wrote:
 Someone really should mention 'screen' in the handbook; that venerable
 tool just saved my day :)
 I was in the midst of 'emerge --update --newuse world' over SSH when
 my office had a 'temporary power failure'. Luckily, I had started a
 'screen' session. When the power is restored 5 minutes later, I just
 re-attach the screen session, and all's well :)
 Rgds,

 Have a look here, under Section 3 - Leaving your Terminal:

 http://www.gentoo.org/doc/en/gentoo-x86-tipsntricks.xml
 Regards,
 Mick

I run a SheevaPlug with Gentoo installed. I use 'Screen' to talk to the
SheevaPlug via its serial USB connection:

# screen /dev/ttyUSB0 115200

This gets me to a login screen on the SheevaPlug. The serial USB
connection is only used for installation and if the network connection
to the SheevaPlug is unavailable for any reason.

Screen should get a medal.

-- 
Regards,
Gregory.



Re: [gentoo-user] non-root user switch gcc version ?

2011-02-24 Thread Gregory Shearman
In linux.gentoo.user, you wrote:
 Hi,

 many distributions have something like a 'switch' command such that an 
 ordinary user can switch the version of his/her default gcc compiler.

 Is there something similar in GenToo?

 Many thanks for a hint,

$ gcc-config -h

-- 
Regards,
Gregory.



Re: [gentoo-user] non-root user switch gcc version ?

2011-02-24 Thread Gregory Shearman
In linux.gentoo.user, you wrote:
 Hi,

 many distributions have something like a 'switch' command such that an 
 ordinary user can switch the version of his/her default gcc compiler.

 Is there something similar in GenToo?

 Many thanks for a hint,

Forgive previous post. Didn't read it properly. I'm not aware of any
user switching program but perhaps you can manually select your gcc
profile by using /usr/bin/gcc-x.x.x rather than gcc.

-- 
Regards,
Gregory.



Re: [gentoo-user] [drm] loading RV710 Microcode fails

2011-02-08 Thread Gregory Shearman
In linux.gentoo.user, you wrote:
 Hello,

 I cleanup up  a system, per the postings to not use HAL.
 k3b does not work, but, I'll look for a fix for it later.

 I keep 2 kernels on this system.

 kernel-2.6.34-gentoo-r12 and kernel-2.6.36-gentoo-r5

 the *36 does not work. I have copied it over from 
 an identical system, build new kernels an still it
 fails with the verbiage listed in the title.

Are you using kernel modesetting? If you are then you have to get your
microcode built into the kernel.

You need CONFIG_EXTRA_FIRMWARE, and provide the filenames of the
firmware you require (in the form of a space delimited string) to run
your graphics card.

You also need CONFIG_EXTRA_FIRMWARE_DIR to tell the kernel where to find
the microcode. Mine is set to /lib/firmware.

 Reboot and Running:
 xorg-server-1.9.2  ati-drivers-10.11
 xorg-x11-7.4-r1 kernel-2.6.34-gentoo-r12 
 with no hald all is fine?
 The old kernel was built with hal and hald
 running, if that makes a difference.?

I don't think it has anything to do with HAL. Check to make sure if you
are now running Kernel Modesetting where the previous kernel wasn't.

-- 
Regards,
Gregory.



Re: [gentoo-user] Re: [drm] loading RV710 Microcode fails

2011-02-08 Thread Gregory Shearman
In linux.gentoo.user, you wrote:
 Gregory Shearman zekeyg at gmail.com writes:


 Are you using kernel modesetting? If you are then you have to get your
 microcode built into the kernel.

 Not sure, can you be more specific on modesetting as 
 grepping the /usr/src/linux/.config does not find anything,
 so I'm not exactly sure what modesetting refers to

I run an ATI HD5660 graphics card and use the open source Radeon driver
found in the kernel. When I select this driver, there's a second option
about allowing kernel modesetting by default. I've found that 3D
graphics and even the Xserver doesn't run on the 2.6.36 kernel unless
Kernel Modesetting is selected. This driver requires microcode to be
installed (emerge radeon-ucode). Now, I don't run an initramfs and
because kernel modesetting requires that the kernel handle the
framebuffer it loads the graphics driver before it has accessed any of
the system's hard drives. This means that for the kernel to find the
microcode it must be included when the kernel is compiled.

I can't help you further as I'm not sure what graphics card you run, nor
whether or not you're using the proprietary driver nor have you provided
the context for the error message provided in the subject.


 Nothing undeer the Generic Driver section of the kernels
 I have been using has changed. The kernel worked before
 I began following web pages and notes from this list
 on removing hald and the hal flag from the system. I did
 rebuild the kernel-2.6.36-gentoo-r5 after these
 hal purge exercises began.

I don't think HAL is your problem. Your kernel cannot find the microcode
for your graphics card. See above.

 You need CONFIG_EXTRA_FIRMWARE, and provide the filenames of the
 firmware you require (in the form of a space delimited string) to run
 your graphics card.

 Here are the setting from .config, as they always have
 been: (I'd prefer not to use modsetting, unless provided
 a GOOD reason to use it?)


 CONFIG_UEVENT_HELPER_PATH=/sbin/hotplug
 # CONFIG_DEVTMPFS is not set
 CONFIG_STANDALONE=y
 CONFIG_PREVENT_FIRMWARE_BUILD=y
 CONFIG_FW_LOADER=y
 CONFIG_FIRMWARE_IN_KERNEL=y
 CONFIG_EXTRA_FIRMWARE=

See CONFIG_EXTRA_FIRMWARE=?

This needs to be where you place your filenames for your kernel
microcode required by your graphics card.

You should also have:

CONFIG_EXTRA_FIRMWARE_DIR=

This should show the kernel the directory where your firmware is stored.
Mine is in /lib/firmware.

-- 
Regards,
Gregory.



Re: [gentoo-user] sudo in kernel config ?

2010-09-12 Thread Gregory Shearman
In linux.gentoo.user, you wrote:

 Some people, such as myself, use kernel sources outside of portage (I
 follow a git repo) and do so as a non-root user.  In this case the
 kernel tree is not owned by root and the config/compile is easily done
 as a non-root user.

 If you are super-paranoid.  You can make a non-root copy
 of /usr/src/linux and compile it as a non-root user.

 But there really isn't any point in using sudo.  It's effectively doing
 the same thing that you are trying to avoid.

I agree there's no point in using sudo, but what's the problem? You
don't need to edit the kernel sources merely to build a new kernel. You
can build your kernel outside the tree using for example:
make O=/home/user/kernel/tree/ menuconfig
make O=/home/user/kernel/tree/

All files are put into the user's directory.

All that's need is the KBUILD_OUTPUT environment variable set, so that
drivers can find the kernel .config file etc.

I've built my kernels like this for years now. All kernels are built by
a specific user and then installed as root. No problem, no worries about
permissions and no altering the portage installed kernel sources so that
a purge (emerge -P gentoo-sources) will automatically remove the whole
tree.

-- 
Regards,

Gregory.



Re: [gentoo-user] Gentoos community communication rant

2010-09-07 Thread Gregory Shearman
In linux.gentoo.user, you wrote:
 On Tuesday 07 September 2010, Al wrote:
  I was trying to figure this out myself.  I thought maybe I was missing
  something in the message.  Maybe not.
  
  Isn't the list aggregated into that news site gmain or whatever its
  called?
  Then he can have it as a newsgroup.
 
 It's not the question how I read it, but a question how a majority of
 users can read and write to it. That influences the culture and
 athmosphere of communication.  Also I think Volkers remark was very
 ironical else he should best go back to his dishes.
 
 Al

 up until today nobody ever mentioned news. Everybody was happy using mailing 
 lists, forums or irc.

I'm reading your message via a usenet server. linux.gentoo.user is the
newsgroup. Replies of course go via the mailing list address.

 Or to phrase it differently: news is dying out quickly and gentoo never 
 missed 
 anything not having a newsgroups.

Usenet is dying because it doesn't attract new users. The old ones are
slowly dying out.

If usenet dies I'll use something else. No problem.

-- 
Regards,

Gregory.



Re: [gentoo-user] Gentoos community communication rant

2010-09-07 Thread Gregory Shearman
In linux.gentoo.user, you wrote:
 I'm reading your message via a usenet server. linux.gentoo.user is the
 newsgroup. Replies of course go via the mailing list address.

 Is that seamless? Can you directly reply to a posting? Easy to set up? How?

More or less. Instead of press f to reply in slrn I press r and slrn
starts up Mutt and my favourite text editor.

-- 
Regards,

Gregory.



Re: [gentoo-user] cleaning:/usr/tmp/portage

2010-09-03 Thread Gregory Shearman
In linux.gentoo.user, you wrote:
 On Friday 03 September 2010, James wrote:
 Hello,
 
 What the usual admin cycle/tools/habits
 for pruning /usr/tmp/portage
 for a Gentoo workstation
 or server?
 
 
 James


 tmpfs 8,0G 0  8,0G   0% /var/tmp/portage

 thus with every reboot all the garbage is done.

 uptime
  19:44:45 up  2:39, 12 users,  load average: 0.31, 0.19, 0.18

 there is no need to keep the box running while I am at work...

I'd like to see you emerge openoffice from source with that setup. I
reckon you'd need around 8Gb of memory to do the job.

-- 
Regards,

Gregory.



Re: [gentoo-user] How to fix messed up KDE menu icons?

2010-08-31 Thread Gregory Shearman
In linux.gentoo.user, you wrote:

 I have a broken Firefox-3 reference in my KDE favorites menu. Is there a
 tool to fix these broken items because I haven't found one.


If you are on KDE 4.x then:

emerge kde-base/kmenuedit

Then type:

kmenuedit

That should be all you need.

-- 
Regards,

Gregory.
Gentoo Linux - Penguin Power



Re: [gentoo-user] How to fix messed up KDE menu icons?

2010-08-31 Thread Gregory Shearman
In linux.gentoo.user, you wrote:

 I have a broken Firefox-3 reference in my KDE favorites menu. Is there a
 tool to fix these broken items because I haven't found one.

In another message I suggested kmenuedit. I missed the bit about the
favourites menu. You should be able to remove it with a right click onto
the context menu. There should be an entry to delete the menu item
selected.

-- 
Regards,

Gregory.



Re: [gentoo-user] emerge xchat fails

2010-08-15 Thread Gregory Shearman
In linux.gentoo.user, you wrote:
 I have xchat installed.  An update is failing to install with error:

 libtool: link: cannot find the library `/usr/lib/libpng12.la' or unhandled 
 argument `/usr/lib/libpng12.la'

 libpng is installed:

 /usr/lib$eix libpng
 [I] media-libs/libpng
  Available versions:  
 (1.2)   1.2.44
 (0) 1.4.3
  Installed versions:  1.2.44(1.2)(06:16:49 PM 07/01/2010) 1.4.3(06:15:21 
 PM 07/01/2010)

 Checking the lib directory, I find:

 /usr/lib/$ls libpng*
 libpng12.so.0  libpng14.a  libpng14.la  libpng14.so  libpng14.so.14  
 libpng14.so.14.3.0  libpng.a  libpng.la  libpng.so

 Any suggestions on how I go about fixing this?

Have you run:

# lafilefixer --justfixit

It looks like the libpng update has removed /usr/lib/libpng12.la and
/usr/lib/libpng.la is probably referencing this file. lafilefixer should
fix this.

You're running with both libpng 1.2 and libpng 1.4 installed. May I
suggest you read:

http://blog.flameeyes.eu/2010/06/29/stable-users-libpng-update

Do you keep a log of emerge messages so that you can fix these issues
as they arise?

The file /usr/share/portage/config/make.conf.example gives examples of
how to store all messages generated during an emerge update. These
messages can save you a lot of grief later on.

-- 
Regards,

Gregory.



Re: [gentoo-user] can't get accelerated opengl renderer ati radeon xpress 200M

2010-04-11 Thread Gregory Shearman
In linux.gentoo.user, you wrote:
 On Thu, Apr 8, 2010 at 1:18 AM, Gregory Shearman zek...@gmail.com wrote:
 In linux.gentoo.user, you wrote:

 GentooPenguin# /usr/sbin/lspci | grep Radeon

 01:05.0 VGA compatible controller: ATI Technologies Inc RC410 [Radeon
 Xpress 200M]

 Yesssir!

 o_0 tony # lspci | grep Radeon
 01:05.0 VGA compatible controller: ATI Technologies Inc RC410 [Radeon
 Xpress 200M]

 Are you sure your opengl libraries are being found in /usr/lib/opengl?

 Maybe we could compare this information:

 o_0 opengl # ls -lh /usr/lib/opengl/xorg-x11/lib/
 total 352K
 lrwxrwxrwx 1 root root   10 2010-04-08 02:46 libGL.so - libGL.so.1
 lrwxrwxrwx 1 root root   12 2010-04-08 02:46 libGL.so.1 - libGL.so.1.2
 -rwxr-xr-x 1 root root 345K 2010-04-08 02:45 libGL.so.1.2

Hmmm here's mine:

GentooPenguin$ ls -lh /usr/lib/opengl/xorg-x11/lib/
total 392K
-rw-r--r-- 1 root root  723 2010-04-04 22:22 libGL.la
lrwxrwxrwx 1 root root   10 2010-04-04 22:22 libGL.so - libGL.so.1
lrwxrwxrwx 1 root root   12 2010-04-04 22:22 libGL.so.1 - libGL.so.1.2
-rwxr-xr-x 1 root root 383K 2010-04-04 22:22 libGL.so.1.2

Note the libGL.la file. I wonder where yours has got to, or if it's
necessary for proper operation.

When I check which package produces this file I get:

GentooPenguin$ /usr/src/linux-2.6.31-gentoo-r6 $ equery belongs libGL.la
[ Searching for file(s) libGL.la in *... ]
media-libs/mesa-7.5.2 (/usr/lib/opengl/xorg-x11/lib/libGL.la)

You're running a newer version of mesa aren't you? Perhaps it doesn't
produce this file.


 o_0 opengl # ldd /usr/lib/opengl/xorg-x11/lib/libGL.so.1.2
 linux-gate.so.1 =  (0xb7851000)
 libXext.so.6 = /usr/lib/libXext.so.6 (0xb77ce000)
 libXxf86vm.so.1 = /usr/lib/libXxf86vm.so.1 (0xb77c8000)
 libXdamage.so.1 = /usr/lib/libXdamage.so.1 (0xb77c4000)
 libXfixes.so.3 = /usr/lib/libXfixes.so.3 (0xb77be000)
 libX11-xcb.so.1 = /opt/gfx-test/lib/libX11-xcb.so.1 (0xb77ba000)
 libX11.so.6 = /opt/gfx-test/lib/libX11.so.6 (0xb769d000)
 libxcb-glx.so.0 = /usr/lib/libxcb-glx.so.0 (0xb768a000)
 libxcb.so.1 = /usr/lib/libxcb.so.1 (0xb766f000)
 libdrm.so.2 = /opt/gfx-test/lib/libdrm.so.2 (0xb7664000)
 libm.so.6 = /lib/libm.so.6 (0xb763e000)
 libpthread.so.0 = /lib/libpthread.so.0 (0xb7624000)
 libdl.so.2 = /lib/libdl.so.2 (0xb762)
 libc.so.6 = /lib/libc.so.6 (0xb74d8000)
 libXau.so.6 = /usr/lib/libXau.so.6 (0xb74d4000)
 libXdmcp.so.6 = /usr/lib/libXdmcp.so.6 (0xb74ce000)
 librt.so.1 = /lib/librt.so.1 (0xb74c4000)
 /lib/ld-linux.so.2 (0xb7852000)


Why are libX11-xcb.so.1, libX11.so.6, libdrm.so.2 in the
/opt/gfx-test/lib directory rather than in /usr/lib as they are on my
machine?

 o_0 opengl # ls -lh /usr/lib/opengl/xorg-x11/extensions/
 total 388K
 -rwxr-xr-x 1 root root  14K 2010-04-05 18:13 libdri2.so
 -rwxr-xr-x 1 root root  38K 2010-04-05 18:13 libdri.so
 -rwxr-xr-x 1 root root 327K 2010-04-05 18:13 libglx.so

The same as on my machine, but you need links from
/usr/lib/xorg/modules/extensions for each of these files. Have you done:

GentooPenguin# eselect opengl set xorg-x11

Sometimes this works.

 o_0 opengl # ldd /usr/lib/opengl/xorg-x11/extensions/libdri2.so
 linux-gate.so.1 =  (0xb7837000)
 libdrm.so.2 = /opt/gfx-test/lib/libdrm.so.2 (0xb780c000)
 libm.so.6 = /lib/libm.so.6 (0xb77e6000)
 librt.so.1 = /lib/librt.so.1 (0xb77dd000)
 libc.so.6 = /lib/libc.so.6 (0xb7695000)
 /lib/ld-linux.so.2 (0xb7838000)
 libpthread.so.0 = /lib/libpthread.so.0 (0xb767b000)

 o_0 opengl # ldd /usr/lib/opengl/xorg-x11/extensions/libdri.so
 linux-gate.so.1 =  (0xb773b000)
 libdrm.so.2 = /opt/gfx-test/lib/libdrm.so.2 (0xb770b000)
 libm.so.6 = /lib/libm.so.6 (0xb76e5000)
 librt.so.1 = /lib/librt.so.1 (0xb76dc000)
 libc.so.6 = /lib/libc.so.6 (0xb7594000)
 /lib/ld-linux.so.2 (0xb773c000)
 libpthread.so.0 = /lib/libpthread.so.0 (0xb757a000)


Again there are links to libs in /opt/gfx-test that aren't on my
machine.

 Section Device
        Identifier  ATI Graphics Adapter 0
        Driver  radeon
        Option  AccelMethod   EXA
        BusID       PCI:1:5:0
 EndSection

 I tried copying yours. It all worked except it couldn't find the 'xtrap' 
 module.

Oh dear! Neither can mine:

(EE) Failed to load module xtrap (module does not exist, 0)

I'd better remove it from my xorg.conf.

 Didn't make a difference though. Still have no accelerated rendering
 and nothing in /dev/dri.

Really odd. Have you re-emerged all the drivers found in
/var/db/pkg/x11-drivers? I'm starting to stab in the dark here.

 What does glxinfo | grep render say for you?

direct rendering: Yes
OpenGL renderer string: Mesa DRI R300 20060815 x86/MMX/SSE2 NO-TCL

Do you have this section in your /etc/X11/xorg.conf:

Section DRI
Mode 0666
EndSection

Have you followed

Re: [gentoo-user] can't get accelerated opengl renderer ati radeon xpress 200M

2010-04-08 Thread Gregory Shearman
In linux.gentoo.user, you wrote:

GentooPenguin# /usr/sbin/lspci | grep Radeon

01:05.0 VGA compatible controller: ATI Technologies Inc RC410 [Radeon
Xpress 200M]

 drmOpenDevice: node name is /dev/dri/card0
 drmOpenDevice: open result is -1, (No such device)
 drmOpenDevice: open result is -1, (No such device)
 drmOpenDevice: Open failed
 drmOpenByBusid: Searching for BusID pci::01:05.0
 drmOpenDevice: node name is /dev/dri/card0
 drmOpenDevice: open result is -1, (No such device)
 drmOpenDevice: open result is -1, (No such device)
 drmOpenDevice: Open failed
 drmOpenByBusid: drmOpenMinor returns -19
 drmOpenDevice: node name is /dev/dri/card1
 drmOpenDevice: open result is -1, (No such device)
 drmOpenDevice: open result is -1, (No such device)
 drmOpenDevice: Open failed
 drmOpenByBusid: drmOpenMinor returns -19
 drmOpenDevice: node name is /dev/dri/card2
 drmOpenDevice: open result is -1, (No such device)
 drmOpenDevice: open result is -1, (No such device)
 drmOpenDevice: Open failed
 drmOpenByBusid: drmOpenMinor returns -19
 (etc, etc, etc, etc, etc, etc, etc)
 (EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM
 [dri] Disabling DRI.


 Well the directory /dev/dri/ is empty, so there you go.

Hmmm... Mine has an entry for card0:

GentooPenguin# ls -l /dev/dri

crw-rw 1 root video 226, 0 2010-04-08 17:42 card0

Are you sure your opengl libraries are being found in /usr/lib/opengl?

I used to run the ATI proprietary driver and switched to the open Radeon
driver and remember some fiddling was required in this directory,
possibly a symlink pointing in the wrong direction.

What does the command eselect opengl list show you?

Mine tells me that the xorg-x11 driver is being used.

 I have these package versions:

 xorg-server 1.7.6
 mesa 7.8
 libdrm 2.4.19
 xf86-video-ati 6.12.192
 xorg-drivers 1.7

I'm running:

xorg-server 1.6.5-r1
mesa7.5.2
libdrm  2.4.15
xf86-video-ati  6.12.5
xorg-drivers1.6


 I have drm set in my kernel too:

 t...@o_0 ~ $ zgrep DRM /proc/config.gz
 CONFIG_DRM=m
 CONFIG_DRM_KMS_HELPER=m
 CONFIG_DRM_TTM=m
 # CONFIG_DRM_TDFX is not set
 # CONFIG_DRM_R128 is not set
 CONFIG_DRM_RADEON=m
 CONFIG_DRM_RADEON_KMS=y
 # CONFIG_DRM_I810 is not set
 # CONFIG_DRM_I830 is not set
 # CONFIG_DRM_I915 is not set
 # CONFIG_DRM_MGA is not set
 # CONFIG_DRM_SIS is not set
 # CONFIG_DRM_VIA is not set
 # CONFIG_DRM_SAVAGE is not set
 # CONFIG_DRM_VMWGFX is not set
 # CONFIG_DRM_NOUVEAU is not set
 # CONFIG_DRM_I2C_CH7006 is not set

GentooPenguin$ zgrep DRM /proc/config.gz

CONFIG_DRM=m
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_R128 is not set
CONFIG_DRM_RADEON=m
# CONFIG_DRM_I810 is not set
# CONFIG_DRM_I830 is not set
# CONFIG_DRM_I915 is not set
# CONFIG_DRM_MGA is not set
# CONFIG_DRM_SIS is not set
# CONFIG_DRM_VIA is not set
# CONFIG_DRM_SAVAGE is not set

 and this dmesg output appears to indicate that its working ok:

 [   53.428828] [drm] Initialized drm 1.1.0 20060810
 [   53.642115] [drm] radeon defaulting to kernel modesetting.
 [   53.642122] [drm] radeon kernel modesetting enabled.

 But glxgears only gets about 19 fps. Here is what glxinfo | grep OpenGL 
 reports:

I get:

1438 frames in 5.0 seconds = 287.483 FPS

Not really screaming along, but adequate for my needs.

 Section Module
   Load  record
   Load  extmod
   Load  dri
   Load  glx
   Load  GLcore
   Load  dri2
   Load  dbe
 EndSection

My xorg.conf shows:

Section Module
Load  extmod
Load  dri   
Load  dbe   
Load  record
Load  xtrap 
Load  glx   
EndSection

 Section Device
 ### Available Driver options are:-
 ### Values: i: integer, f: float, bool: True/False,
 ### string: String, freq: f Hz/kHz/MHz
 ### [arg]: arg optional
 #Option ShadowFB# [bool]
 #Option DefaultRefresh  # [bool]
 #Option ModeSetClearScreen  # [bool]
   Identifier  Card0
   Driver  radeon
   VendorName  ATI Technologies Inc
   BoardName   RC410 [Radeon Xpress 200M]
   BusID   PCI:1:5:0
   Option  MergedFB  true
   Option  CRT2Position  LeftOf
   Option  ColorTiling   true
   Option  EnablePageFliptrue
   #Option AccelMethod   EXA
   #Option AccelDFS  true
 EndSection

My Device Section:

Section Device
Identifier  ATI Graphics Adapter 0
Driver  radeon
Option  AccelMethod   EXA
BusID   PCI:1:5:0
EndSection

 If anyone has any idea, please let me know. Would posting to the xorg
 or radeon mailing lists be good places for help as well?

I hope this helps.

-- 
Regards,

Gregory.
Gentoo Linux - Penguin Power



Re: [gentoo-user] emerge mythtv fails... again

2009-08-19 Thread Gregory Shearman
In linux.gentoo.user, you wrote:
 I wrote:

 Shawn Haggett writes:
  Some recent updates have broken my mythtv (missing libraries) so I'm of
  course trying to recompile it. Whenever I try however, the following
  happens:
 
  sgc ~ # emerge -va mythtv

 [...]

  /var/tmp/portage/media-tv/mythtv-0.21_p18314-r1/temp/environment: line
  3924: cd:
  /var/tmp/portage/media-tv/mythtv-0.21_p18314-r1/work/branches/release-0
 -2 1-fixes/mythtv: No such file or directory
  sed: can't read
  /var/tmp/portage/media-tv/mythtv-0.21_p18314-r1/work/branches/release-0
 -2 1-fixes/mythtv/version.pro: No such file or directory

 [...]
 I just had the same problem with a fresh install of mythtv. I tried other
 versions, 0.21_p19961-r2 showed the same problem, but 0.21_p20877 did
 compile. So give that one a try.

 Now python-updater wants to rebuild mythtv, and fails to do so because of 
 the missing version.pro. Same version which built before. The ebuild's date 
 is from july 20th, some days before I emerged it, so there was no silent 
 change.

 Strange. But for the moment I don't care, no time yet to play with mythtv.

 BTW, the expected .../work/mythtv-0.21_p20877/version.pro can be found in 
 .../work/branches/release-0-21-fixes/mythtv/version.pro.

I had the same problem. What I've done is to remove ~x86 from mythtv in
/etc/portage/package.keywords and then rerun the python updater on the
older stable mythtv version (0.21_p18314-r1). The compile completed
successfully.

-- 
Regards,

Gregory.
Gentoo Linux - Penguin Power

-- 
Regards,

Gregory.
Gentoo Linux - Penguin Power



Re: [gentoo-user] coexisting GCC versions

2009-06-27 Thread Gregory Shearman
In linux.gentoo.user, you wrote:
 On Sonntag 28 Juni 2009, Alex Schuster wrote:
 Roger Mason writes:
  I need gcc 4.3 to compile a specific application.  I am hoping that I
  can install gcc 4.3 alongside 4.1.1 without suffering some awful
  catastrophe.  This is the output of emerge on the machine in question:

 [...]

  Can someone confirm that I'll be able to use gcc 4.3 for the specific
  application that needs it but then revert to 4.1.1 without having to
  re-compile all or most of my system?

 I'm pretty sure you can. Emerge gcc 4.3, activate it with gcc-config,
 compile your application, and use gcc-config again to revert back to 4.1 if
 you like.

 Or keep 4.3 as default, I don't think you could run into problems.

  Wonko

 he will over time. If you switch default compiler emerge -s world has to be 
 done.

 But seriously, why staying with 4.1? it's old... and 4.3 was a nice release...

Well, for me, media-plugins/mytharchive won't compile with gcc 4.3.
Hopefully things will change with the next mythtv release.

-- 
Regards,

Gregory.



Re: [gentoo-user] coexisting GCC versions

2009-06-27 Thread Gregory Shearman
In linux.gentoo.user, you wrote:

 --rwEMma7ioTxnRzrJ
 Content-Type: text/plain; charset=utf8
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable

 Gregory Shearman zek...@gmail.com said:
 In linux.gentoo.user, you wrote:
  he will over time. If you switch default compiler emerge -s world has t=
 o be=20
  done.
 
  But seriously, why staying with 4.1? it's old... and 4.3 was a nice rel=
 ease...
=20
 Well, for me, media-plugins/mytharchive won't compile with gcc 4.3.
 Hopefully things will change with the next mythtv release.

 Please file a bug so we actually know about the problem and can fix it
:)

 https://bugs.gentoo.org/

Have a look at this:

http://bugs.gentoo.org/240379

It describes how mytharchive-0.21_p17948 requires an earlier version of
mjpegtools (1.80) than the portage 1.90 version. mjpegtools-1.80 won't
compile on gcc-4.3.

Perhaps I didn't make myself completely clear when I said that
mytharchive won't compile using gcc 4.3. It's mjpegtools 1.80 (required by
mytharchive) that won't compile using gcc 4.3.

-- 
Regards,

Gregory.



Re: [gentoo-user] Failed to install x11-drivers/ati-drivers-8.552-r2

2009-04-19 Thread Gregory Shearman
In linux.gentoo.user, you wrote:

 Completed installing ati-drivers-8.552-r2 into
  *
  * Searching all installed packages for file collisions...
  *
  * Press Ctrl-C to Stop
  *
  * x11-base/xorg-server-1.5.3-r5
  */usr/lib64/opengl/ati/extensions/libglx.so
  *
  * Package 'x11-drivers/ati-drivers-8.552-r2' NOT merged due to file
  * collisions. If necessary, refer to your elog messages for the whole
  * content of the above message.

 Failed to install x11-drivers/ati-drivers-8.552-r2, Log file:

 microway ~ # portageq owners / /usr/lib64/opengl/ati/extensions/libglx.so
 x11-base/xorg-server-1.5.3-r5
   /usr/lib64/opengl/ati/extensions/libglx.so

 Doing portageq owners / /usr/lib64/opengl/ati/extensions/libglx.so
 gets the following response:
 x11-base/xorg-server-1.5.3-r5
   /usr/lib64/opengl/ati/extensions/libglx.so

 Suggestions for how to successfully emerge -D -uav world would be much
 appreciated.

G'day John,

I had the problem on a 32 bit machine and just removed the offending
file:

rm /usr/lib/opengl/ati/extensions/libglx.so

I then proceeded with the emerge of the ati-driver. It's discussed here:

http://bugs.gentoo.org/247685

I hope this helps.

-- 
Regards,

Gregory.
Gentoo Linux - Penguin Power



Re: [gentoo-user] Fonts garbled with Xorg 1.5

2009-04-15 Thread Gregory Shearman
In linux.gentoo.user, you wrote:

 Hi,

 I am having problems with some webpages in FireFox as well as Eclipse. 
 Fonts are totally garbled. It looks like they were written with chalk
 and then somebody wiped over them. A redraw fixes is sometimes but
 then it gets garbled again. I am using nvidia-drivers 96.XX for legacy
 reasons.

One of my machines runs a GeForce4 card and uses the legacy 96.XX
drivers.

 Anybody got a clue how to fix this? Do I need to change something in
 xorg.conf?

I had the same problems with font smudging in *all* programs and on the
kde desktop. It was almost impossible to even read the start menu.

I solved the problem by adding nvidia-drivers
(x11-drivers/nvidia-drivers ~x86) to /etc/portage/package.keywords. The
latest 96.XX driver was installed which was 96.43.11

You do need:

=x11-drivers/nvidia-drivers-100.00.00

in /etc/portage/package.mask so that the latest (~x86) 96.XX driver will be 
installed.

I'm not sure if it will work for you, but maybe it's work a try.

-- 
Regards,

Gregory.
Gentoo Linux - Penguin Power



Re: [gentoo-user] Fonts garbled with Xorg 1.5

2009-04-15 Thread Gregory Shearman
In linux.gentoo.user, you wrote:
 In 20090415113152.ga11...@pacific.net.au zek...@gmail.com (Gregory 
 Shearman) writes:

I solved the problem by adding nvidia-drivers
(x11-drivers/nvidia-drivers ~x86) to /etc/portage/package.keywords. The
latest 96.XX driver was installed which was 96.43.11

You do need:

=x11-drivers/nvidia-drivers-100.00.00

in /etc/portage/package.mask so that the latest (~x86) 96.XX driver will be 
installed.

I'm not sure if it will work for you, but maybe it's work a try.
 Thanks for the tip. Do I need to rebuild anything but nvidia-drivers?

No, I just added the nvidia drivers line to
/etc/portage/package.keywords and emerged the nvidia-drivers. I hope it
works for you.

-- 
Regards,

Gregory.
Gentoo Linux - Penguin Power



Re: [gentoo-user] broken splash screen and / or init?

2008-12-26 Thread Gregory Shearman
Marc Blumentritt wrote:

 I have since 2 months a problem with my boot up splash. Splash is
 working, but the init messages (like starting daemon foh ... [ok]) are
 written an screen above (for lack of a better word) my splash. When
 the messages reach the bottom of the screen, the splash is moving
 upwards with every new line printed. When the messages reach Starting
 XDM the screen is not switched to the 7th terminal, where X is running.
 I have to switch manually by pressing alt-F7.

The problem is with your linuxrc file in the initrd (you are using genkernel 
to build your initrd, right?) There's a mistake in the section which parses 
the kernel command line so that it misses the CONSOLE=tty1 bit... causing it 
to write all over the splash screen.

There's already a bug report (#232012) on this filed in july and I've supplied 
information about how to work around this bug:

http://bugs.gentoo.org/show_bug.cgi?id=232012

Let's hope the genkernel developers get the time to fix this.

-- 
Regards,

Gregory.



Re: [gentoo-user] emerge -aDNvu world fails

2008-04-01 Thread Gregory Shearman
Kevin O'Gorman wrote:

 On Sat, Mar 29, 2008 at 10:22 PM, Gregory Shearman [EMAIL PROTECTED]
 wrote:
 
 Kevin O'Gorman wrote:

  I cannot emerge world any more because portage keeps barfing on some
  random java ebuild.
  Java's not even in the list of things to emerge, but here's what I see:
 
  Total: 14 packages (14 upgrades), Size of downloads: 99,898 kB
 
  Would you like to merge these packages? [Yes/No] yes
  Verifying ebuild Manifests...
 
  !!! Digest verification failed:
  !!! /usr/portage/dev-java/sun-jdk/sun-jdk-1.5.0.15-r1.ebuild
  !!! Reason: Failed on RMD160 verification
  !!! Got: 751637964edd458f00c9c72de8f5375eabaf9004
  !!! Expected: c7268656bf1adccafde5dd9c1104c5a12905b1dc
  treat init.d #
 
 
  I've tried deleting the offending file and re-syncing, but the same
 error
  occurs.
 
  Help???
 
  ++ kevin
 

 https://bugs.gentoo.org/show_bug.cgi?id=215288

 []

 Workaround:
remove EBUILD line from Manifest
remove /usr/portage/dev-java/sun-jdk/sun-jdk-1.5.0.15-r1.ebuild

 [...]

 Things have moved quickly.  The workaround did not work for me, but
 before
 I got to post
 a complaint about it, the PowersThatBe somehow pushed good copies of the
 portage tree
 out to the mirrors, and things seem to be working again.

The workaround worked for me but I had to get rid of the Changelog ( and 
remove it from the Manifest) as well.
It was also corrupted.

emerge worked fine after that. I'll do another sync later in the week.

 Thanks, though.  It was an interesting education.

Yep. Gentoo is like that.

-- 
Regards,

Gregory.
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user]  Re: Nvidia drivers

2008-04-01 Thread Gregory Shearman
James wrote:

 Volker Armin Hemmann volker.armin.hemmann at tu-clausthal.de writes:
 
 
  NV11 [GeForce2 MX/MX 400]  NV34 [GeForce FX 5200]
 
 that is not true. Both cards are still supported by nvidia drivers.
 
 
 The FX card ist even supported by the latest drivers!
 Yep I got this one(FX 5200) working with the lastest driver.
 
 
 
 The Gf2 based ones are supported by the 7186 drivers - which are even in
 portage.
 
 
 Hmmm,
 I'm using 2.6.24-gentoo-r3.
 
 Emerging (1 of 1) x11-drivers/nvidia-drivers-71.86.01
 snip
 *** Unable to determine the target kernel version. ***
 
 make: *** [select_makefile] Error 1
  *
  * ERROR: x11-drivers/nvidia-drivers-71.86.01 failed.
  * Call stack:
  *   ebuild.sh, line   49:  Called src_compile
  * environment, line 3558:  Called linux-mod_src_compile
  * environment, line 2624:  Called die
  * The specific snippet of code:
  *   emake HOSTCC=$(tc-getBUILD_CC) CC=$(get-KERNEL_CC)
 LDFLAGS=$(get_abi_LDFLAGS) ${BUILD_FIXES} ${BUILD_PARAMS}
 ${BUILD_TARGETS} || die Unable to make ${BUILD_FIXES} ${BUILD_PARAMS}
 ${BUILD_TARGETS}.;
  *  The die message:
  *   Unable to make  IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux
 SYSOUT=/lib/modules/2.6.24-gentoo-r3/build clean module.
 
 
 I've never seen this before
  Depending on where and how the kernel sources (or the
 kernel headers) were installed, you may need to specify
 their location with the SYSSRC environment variable or
 the equivalent nvidia-installer command line option.
 
 So where/how do I set the SYSSRC variable?
 
 Or is something else wrong?

I had the same problem going from 2.6.23-gentoo-r9 to 2.6.24-gentoo-r3 using 
the legacy nvida 96.43.01 driver. The masked 96,43.05 driver works on the new 
kernel,but it is unstable on my old Geforce MX 440 card.

What I did discover was a nasty hack to get the old driver to recognise the 
new kernel version:

# ln -s  /usr/src/linux/include/asm-x86 /usr/src/linux/include/asm-i386

( This assumes that /usr/src/linux points to the new kernel 2.6.24-gentoo-r3)

It looks like the kernel devs are trying to update references to the include
asm files and the nvidia devs are yet to catch up. Maybe one day nvidia will 
release its driver specs and save itself a lot of trouble and money building 
catchup linux drivers. Maybe hell will also freeze over on that day.

Hope this helps.

-- 
Regards,

Gregory.
--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] emerge -aDNvu world fails

2008-03-29 Thread Gregory Shearman
Kevin O'Gorman wrote:

 I cannot emerge world any more because portage keeps barfing on some
 random java ebuild.
 Java's not even in the list of things to emerge, but here's what I see:
 
 Total: 14 packages (14 upgrades), Size of downloads: 99,898 kB
 
 Would you like to merge these packages? [Yes/No] yes
 Verifying ebuild Manifests...
 
 !!! Digest verification failed:
 !!! /usr/portage/dev-java/sun-jdk/sun-jdk-1.5.0.15-r1.ebuild
 !!! Reason: Failed on RMD160 verification
 !!! Got: 751637964edd458f00c9c72de8f5375eabaf9004
 !!! Expected: c7268656bf1adccafde5dd9c1104c5a12905b1dc
 treat init.d #
 
 
 I've tried deleting the offending file and re-syncing, but the same error
 occurs.
 
 Help???
 
 ++ kevin
 

https://bugs.gentoo.org/show_bug.cgi?id=215288

[]

Workaround:
remove EBUILD line from Manifest
remove /usr/portage/dev-java/sun-jdk/sun-jdk-1.5.0.15-r1.ebuild

[...]


-- 
Regards,

Gregory.
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] nVidia GeForce4 MX 440 AGP 8x - tainted driver 96.43.05 causes X crash sig 11 - Kernel 2.6.24-gentoo-r3

2008-03-22 Thread Gregory Shearman
Last week I upgraded the kernel on one of my 5 year old Pentium 4 desktop
machines to 2.6.24-gentoo-r3. Kernel compilation went fine as usual but
when I tried to emerge the current (x86) binary nVidia driver [96.43.01]
for its GeForce4 MX 440 AGP 8x graphics card it failed with an error
message that the it couldn't determine the kernel version.

The graphics card is around 5-7 years old and won't run on later 1xx.xx.xx
versions of the binary blob, so I'd masked the driver to:

/etc/portage/package.mask/nvidia-drivers

=x11-drivers/nvidia-drivers-97.00.00

==

The driver worked fine on the previous kernel 2.6.23-gentoo-r9. The solution
was to do what I've always done for binary blobs (nvidia,ati,madwifi-ng
etc) and add:

/etc/portage/package.keywords

x11-drivers/nvidia-drivers ~86

==

This allowed me to go from 96.43.01 to 96.43.05.

Unfortunately, even though the driver compiled fine and started without
error this driver proved to be unstable on my machine and graphics
hardware. X (1.3.0-r5) failed on KDE logout with:

/etc/var/log/Xorg.0.log:

Backtrace:
0: /usr/bin/X(xf86SigHandler+0x85) [0x80c7c57]
1: /usr/lib/xorg/modules/drivers//nvidia_drv.so(_nv001216X+0xe5)
[0xb71d6711]
2: [0x1]

Fatal server error:
Caught signal 11.  Server aborting

===

Maybe running the uvesafb framebuffer and fbcondecor (livecd-2007.0 theme)
has something to do with the sigsegv problems on just this particular
driver version but I knew that I couldn't run this driver.

I did a bit of research and found an ugly hack to get the 96.43.01 driver
working on kernel 2.6.24-gentoo-r3 so I changed the mask to:

/etc/portage/package.mask/nvidia-drivers

x11-drivers/nvidia-drivers-96.43.01

=

I then worked the dark magic:

# ln -s  /usr/src/linux/include/asm-x86 /usr/src/linux/include/asm-i386

(/usr/src/linux points to the new kernel 2.6.24-gentoo-r3)

==

I reemerged nvidia-drivers and the hack worked. I got the reliable 96.43.01
driver working again, though with some concerns about future reliability.
There might be other changes within the kernel 2.6.24 that driver 96.43.01
doesn't know about that could cause me some grief in the future, but for
now it works fine. 

Now a week later I find that portage has released the nvidia binary driver
96.43.05 as stable on x86. I allowed it to emerge, but it still had the X
killing problem when logging out of KDE.

Some of the things I've read suggest nvidia have been informed of this
specific problem but I was wondering if there's any more information around
about this issue? I know the card is getting old and perhaps I should use
the open nv driver, but the card usually works really well with the binary
blob.

I would also like to know if these problems were known to the Gentoo devs
when they released 96.43.05 as stable on x86.

-- 
Regards,

Gregory.
--
gentoo-user@lists.gentoo.org mailing list