Re: [gentoo-user] Re: trackpoint *and* trackpad
=== On Sat, 01/08, James wrote: === Can you please send me the relevant snippet of your configuration? === Section InputClass Identifier synaptics MatchIsTouchpad on Driver synaptics #Option SHMConfig on Option VertTwoFingerScroll on EndSection Of course you also need in make.conf a line like this: INPUT_DEVICES=evdev synaptics This is the new (latest, AFAIK) way to override evdev and select specific drivers and features for X server. -- Keith Dart -- -- ~ Keith Dart ke...@dartworks.biz public key: ID: 19017044 http://www.dartworks.biz/ =
Re: [gentoo-user] No module named sqlite3
=== On Sat, 01/08, Daniel D Jones wrote: === Is there any reason python shouldn't be set to version 3? Are there backwards compatibility issues that will break things? === Yes, many. It will be years more before the Python world is fully migrated to version 3. -- Keith Dart -- -- ~ Keith Dart ke...@dartworks.biz public key: ID: 19017044 http://www.dartworks.biz/ =
[gentoo-user] vlc oddities
Hi, I am using vlc (beside other things) to watch dvb-t using this hardware (according lspci) 01:06.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11) 01:06.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11) . I call vlc like vlc channels.conf When changing channels with n and p there are positions in the range of channels, where vlc gets stuck. Example Start Keyresults in with chn. channel no.: 1 n 2 (video ok,vlc running ok) 2 n 3 (video ok,vlc running ok) 3 n 3 (image freezes,vlc stucks) n 5 (video ok,vlc running ok) 5 p 4 (video ok,vlc running ok) 4 n 5 (video ok,vlc running ok) 5 n 6 (video ok,vlc running ok) 6 n(image freezes,vlc stucks) n(image freezes,vlc stucks) 8 p 7 (video ok,vlc running ok) 7 p 6 (video ok,vlc running ok) ... I didnt find any logical link between the channel number, the corresponding entry in channels.conf and whether the channel is directly selectable while stepping with n or only selectable via np forward-backward stepping. With vlc-1.0.0 I didnt have this problems, after that all versions of vlc shows this unwanted behaviour. Unfortunately vlc-1.0.0 didn't compile anymore beside other reasons to not to install it. Does anyone else have this experienced and - may be - knows a solution ? Have a nice weekend! Best regards, mcc
Re: [gentoo-user] Latest unstable ntp not generating ntp.drift file.
On Sunday 09 January 2011 00:34:33 Dale wrote: I read the man pages and even used google but the part about what to log didn't register with me. Basically, I need to tell it where to put the log file, which I did, then what I want it to log as well, which I missed. Sort of like the way portage does in make.conf. I didn't catch what the last part meant. I added that to config and restarted it. Will see if that does what I want. I think it will. I'm sure it will. I don't usually have logging switched on as it records large quantities of data, which would be useful in debugging but I don't need to do that. Not today, that is. Thanks for the help. Pleasure. -- Rgds Peter. Linux Counter 5290, 1994-04-23.
Re: [gentoo-user] Cloned partition won't emerge some packages
On 9 January 2011 01:18, Daniel D Jones ddjo...@riddlemaster.org wrote: On Saturday, January 08, 2011 17:36:48 Mick wrote: However, I can't emerge some packages from it like gcc or subversion ... Looks to me like this is your issue: In file included from /usr/include/stdio.h:28, from conftest.c:10: /usr/include/features.h:347:25: error: sys/cdefs.h: No such file or directory Do you have /usr/include/sys/cdefs.h on your system? If the file isn't there, I'd copy it over and verify that all the other files which should be there are present. If the file is there, then gcc likely isn't looking in the right location for include files. I'm not sure off the top of my head where that's configured on Gentoo. On my system, there's no environmental variables set, so it's probably done by some other means. I'm sure that if that's your issue, someone here will chime in with the information. Yes, you're right! # ls -la /usr/include/sys/ total 40 drwxr-xr-x 2 root root48 Nov 13 09:28 . drwxr-xr-x 320 root root 40712 Jan 8 20:30 .. Why is this empty?!! Something to do with tar breakage? I tried this with different options, the last one being tar xvf (just in case the half broken tar sparse files option is not fixed yet) and still these files are missing ... O_O Why wouldn't these files have transferred over? What else might be missing? Very confused ... -- Regards, Mick
Re: [gentoo-user] Cloned partition won't emerge some packages
On Sunday 09 January 2011 11:28:01 you wrote: On 9 January 2011 01:18, Daniel D Jones ddjo...@riddlemaster.org wrote: On Saturday, January 08, 2011 17:36:48 Mick wrote: However, I can't emerge some packages from it like gcc or subversion ... Looks to me like this is your issue: In file included from /usr/include/stdio.h:28, from conftest.c:10: /usr/include/features.h:347:25: error: sys/cdefs.h: No such file or directory Do you have /usr/include/sys/cdefs.h on your system? If the file isn't there, I'd copy it over and verify that all the other files which should be there are present. If the file is there, then gcc likely isn't looking in the right location for include files. I'm not sure off the top of my head where that's configured on Gentoo. On my system, there's no environmental variables set, so it's probably done by some other means. I'm sure that if that's your issue, someone here will chime in with the information. Yes, you're right! # ls -la /usr/include/sys/ total 40 drwxr-xr-x 2 root root48 Nov 13 09:28 . drwxr-xr-x 320 root root 40712 Jan 8 20:30 .. Why is this empty?!! Something to do with tar breakage? I tried this with different options, the last one being tar xvf (just in case the half broken tar sparse files option is not fixed yet) and still these files are missing ... O_O Why wouldn't these files have transferred over? What else might be missing? Very confused ... Correction! I meant to type: tar cvf -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] A tiny titillating taste of grub2
Apparently, though unproven, at 01:36 on Sunday 09 January 2011, walt did opine thusly: About three years ago I spent a lot of time on the grub2 mailing list, building grub2 from their svn repo, even submitting a patch or two to get it working for the *BSD family. Then I got old and tired and I settled on gentoo. I deleted all the other OS's from my machines, including (especially) Windows -- so I no longer need to multiboot five different OS's -- and so I lost interest in the sexy new features of grub2. Lately, though, I've been using multiple USB sticks, and having them plugged in at boot-time can confuse legacy grub into booting from the wrong disk, i.e. not booting at all. Very annoying. So, I installed grub-1.98 and I've found that it *does* find partitions by UUID, and even by LABEL, amongst multiple disks. Very nifty. Not so fast, though. I don't know how to write a grub.conf file that can tell grub2 how to do that automatically so I don't need to type commands at the interactive grub2 command prompt. That's where you testosterone-pumped youngsters (Dale? Volker? Alan? Neil? Anyone?) can help fix this basically silly problem. Might be worth learning how this new-fangled boot loader works. Right now I'm having Hercules' own fight trying to get Android Donut[1] and Froyo triple-booting on an Ubuntu 10.10 netbook. Ubuntu uses grub2 these days and I think I want to keep that (makes updates easier that way - the Android stuff is a manual update anyway). Let's keep the thread open and add stuff as we find it. [1] Yes, Android now runs on x86 :-) http://www.android-x86.org [2] I'llet testosterone-pumped passed (I'm the BOFH at work) but I dunno about youngsters, this here fellow has grey in his beard. Actually he has a grey beard with a few bits of brown in it :-) grub2 is enough different from legacy grub to make the learning curve very steep -- but I'm only about half-way up the curve and I'm fading fast. (I usually unplug the offending USB stick and reboot :) If anyone here is interested enough to spend some real time and effort on grub2, I can offer a few pointers, but I'm not willing to do the real grunt work myself. Hm, sunset. Off to bed :) -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] A tiny titillating taste of grub2
Apparently, though unproven, at 02:44 on Sunday 09 January 2011, Dale did opine thusly: I have not tried grub2 yet but I did fine these: https://help.ubuntu.com/community/Grub2 That has a lot of info on the grub2 conf file. It is called grub.cfg if I read that correctly. There is a lot of info there. Seems a bit complicated since I don't have it installed and can really follow what they mean on things. This next one is a bit more basic tho: http://en.gentoo-wiki.com/wiki/Grub2 This one seems to have a example and not quite so complicated. http://grub.enbug.org/grub.cfg I don't quite agree with Volker's viewpoint but don't totally disagree with him either. grub2 has a whole whack of bloat all of it's own. Here's what Ubuntu has on 10.10: $ ls -al /boot/ total 17656 drwxr-xr-x 3 root root 4096 2011-01-08 21:37 . drwxr-xr-x 22 root root 4096 2011-01-08 21:21 .. -rw-r--r-- 1 root root 705861 2010-12-02 09:07 abi-2.6.35-24-generic -rw-r--r-- 1 root root 128614 2010-12-02 09:07 config-2.6.35-24-generic drwxr-xr-x 3 root root 4096 2011-01-08 21:21 grub -rw-r--r-- 1 root root 10752449 2010-12-28 20:57 initrd.img-2.6.35-24-generic -rw-r--r-- 1 root root 165084 2010-09-24 19:14 memtest86+.bin -rw-r--r-- 1 root root 167264 2010-09-24 19:14 memtest86+_multiboot.bin -rw-r--r-- 1 root root 1831358 2010-12-02 09:07 System.map-2.6.35-24-generic -rw-r--r-- 1 root root 1192 2010-12-02 09:10 vmcoreinfo-2.6.35-24-generic -rw-r--r-- 1 root root 4294032 2010-12-02 09:07 vmlinuz-2.6.35-24-generic $ du -sh /boot/ 22M /boot/ Most of that is an 11M initrd and a 4.1M kernel. What?? A fully modular kernel weighing in it 4.1M?? grub2 modules are 4.1M, not too bad, except by looking at filenames there iss support in there for jpeg, intel 915, xfs, andrewfs, hfsplus, iso9660, jfs and $DEITY knows what else. Including tar. Methinks a modular build system is in order here. Why should I build support for sparc when I know for a fact I'm building an x86 installer? -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] A tiny titillating taste of grub2
Alan McKinnon wrote: I don't quite agree with Volker's viewpoint but don't totally disagree with him either. grub2 has a whole whack of bloat all of it's own. Here's what Ubuntu has on 10.10: $ ls -al /boot/ total 17656 drwxr-xr-x 3 root root 4096 2011-01-08 21:37 . drwxr-xr-x 22 root root 4096 2011-01-08 21:21 .. -rw-r--r-- 1 root root 705861 2010-12-02 09:07 abi-2.6.35-24-generic -rw-r--r-- 1 root root 128614 2010-12-02 09:07 config-2.6.35-24-generic drwxr-xr-x 3 root root 4096 2011-01-08 21:21 grub -rw-r--r-- 1 root root 10752449 2010-12-28 20:57 initrd.img-2.6.35-24-generic -rw-r--r-- 1 root root 165084 2010-09-24 19:14 memtest86+.bin -rw-r--r-- 1 root root 167264 2010-09-24 19:14 memtest86+_multiboot.bin -rw-r--r-- 1 root root 1831358 2010-12-02 09:07 System.map-2.6.35-24-generic -rw-r--r-- 1 root root 1192 2010-12-02 09:10 vmcoreinfo-2.6.35-24-generic -rw-r--r-- 1 root root 4294032 2010-12-02 09:07 vmlinuz-2.6.35-24-generic $ du -sh /boot/ 22M /boot/ Most of that is an 11M initrd and a 4.1M kernel. What?? A fully modular kernel weighing in it 4.1M?? grub2 modules are 4.1M, not too bad, except by looking at filenames there iss support in there for jpeg, intel 915, xfs, andrewfs, hfsplus, iso9660, jfs and $DEITY knows what else. Including tar. Methinks a modular build system is in order here. Why should I build support for sparc when I know for a fact I'm building an x86 installer? It seems grub2 is a whopper. Check this out: r...@fireball / # du -shc /boot/ 13M /boot/ 13M total r...@fireball / # ls -al /boot/bzImage-2.6.36-r* -rw-r--r-- 1 root root 4201472 Dec 15 00:16 /boot/bzImage-2.6.36-r4-1 -rw-r--r-- 1 root root 4204768 Dec 19 23:11 /boot/bzImage-2.6.36-r4-2 -rw-r--r-- 1 root root 4207168 Jan 4 23:38 /boot/bzImage-2.6.36-r6-1 r...@fireball / # So, my /boot is 13Mbs and I have three kernels there plus copies of their config files as well. Those are full blown ones since I don't use modules. I guess grub2 may make some people have to grow their /boot partition a bit for all that. I'm not planning to try grub2 for a bit yet but from the looks of it, it's a good thing I made my /boot partition 200Mbs. o_O Why so much you reckon? I did a emerge -pv and it has to install three more packages, in addition to the ones grub-static pulled in already. Does grub2 wash dishes too? I need one of those if it does. lol Dale :-) :-)
[gentoo-user] Re: A tiny titillating taste of grub2
On 01/09/2011 04:10 AM, Alan McKinnon wrote: Apparently, though unproven, at 02:44 on Sunday 09 January 2011, Dale did opine thusly: I have not tried grub2 yet but I did fine these: https://help.ubuntu.com/community/Grub2 http://en.gentoo-wiki.com/wiki/Grub2 http://grub.enbug.org/grub.cfg Thanks Dale, the ubuntu link may be what I need. I don't quite agree with Volker's viewpoint but don't totally disagree with him either. grub2 has a whole whack of bloat all of it's own. Indeed it does, except for grub.info, which is not nearly complete. Methinks a modular build system is in order here. Why should I build support for sparc when I know for a fact I'm building an x86 installer? Here is how I do that manually, FWIW. (I've not run the grub2 install scripts because I haven't read them yet, which makes me nervous in a boot loader :) $cd ~/src#in my home directory, so I don't need root $tar -xvzf /usr/portage/distfiles/grub-1.98.tar.gz $cd grub-1.98 $./configure --prefix=$HOME --disable-werror $make all install At this point grub2 has merely saved some files in your home directory, it has *not* messed with your boot sector or touched legacy grub in any way. $ls ~/bin/grub* /home/wa1ter/bin/grub-bin2h /home/wa1ter/bin/grub-mkisofs /home/wa1ter/bin/grub-editenv /home/wa1ter/bin/grub-mkpasswd-pbkdf2 /home/wa1ter/bin/grub-fstest /home/wa1ter/bin/grub-mkrelpath /home/wa1ter/bin/grub-mkelfimage /home/wa1ter/bin/grub-mkrescue /home/wa1ter/bin/grub-mkfont /home/wa1ter/bin/grub-script-check /home/wa1ter/bin/grub-mkimage $ls ~/lib/grub/i386-pc/ acpi.mod font.mod linux16.modreboot.mod affs.mod fs.lstlnxboot.imgreiserfs.mod afs.modfshelp.modloadenv.modrelocator.mod dozens more grub2 modules snipped for brevity That's where the bloat comes from, as you pointed out. There are tons of those *.mod files you won't need, so the trick is to compile a list of them you *do* need, and then feed the list to grub-mkimage as described below. NOTE: I can't recall exactly why but the ata* modules conflict with some other modules, so *don't use them* unless you know what you are doing. Create a list of all grub2 modules: $ls ~/lib/grub/i386pc/*.mod /tmp/modlist Now edit that file and delete any modules you know you don't need, e.g. I deleted reiserfs.mod and ntfs.mod and the raid*.mod because I don't use those items. Don't touch anything you don't clearly recognize, but *do* delete ata.mod and ata_pthru.mod. Now it's time to build the grub2 binary executable: $~/bin/grub-mkimage -o /tmp/grub2bin `cat /tmp/modlist` Your file grub2bin is actually formatted as a tiny pseudo kernel, which your legacy grub can boot using the usual grub sytax: title try grub2 root (hdX,X) kernel /tmp/grub2bin (or wherever else you want to put it. NOTE: so far I've done nothing requiring root privileges :) That menu item will start a grub2 running so you can experiment with it all you want, but still use legacy grub to boot as you always do. (You won't yet have a menu file for grub2, so you will see only the usual grub command prompt instead of a menu.) The grub2 shell is a bit different, so you might want to type set to see what variables you can change, ls to see your disks, and of course hit the tab key when you don't know what else to type. Type help search for the real excitement. A few more grub2 differences: the 'linux' command replaces 'kernel' to load your (linux) kernel. 'multiboot' is used to load any true multiboot kernel e.g. NetBSD. Not sure, but I think you still need to chainload the Windows booter -- sadly, I can't test it anymore :D One problem I encountered on my old amd32 machine is that I had to remove the USB-related grub2 modules or grub2 would crash while probing for disks. The newer amd64 machine works fine with the USB stuff included. Dunno why. NOTE: if grub2 names your disks (ataN,N) instead of (hdN,N) that means you are using the ata* grub2 modules -- I haven't figured out how to make that configuration work yet.
Re: [gentoo-user] A tiny titillating taste of grub2
Apparently, though unproven, at 19:48 on Sunday 09 January 2011, Dale did opine thusly: It seems grub2 is a whopper. Check this out: r...@fireball / # du -shc boot 13M boot 13M total r...@fireball / # ls -al /boot/bzImage-2.6.36-r* -rw-r--r-- 1 root root 4201472 Dec 15 00:16 /boot/bzImage-2.6.36-r4-1 -rw-r--r-- 1 root root 4204768 Dec 19 23:11 /boot/bzImage-2.6.36-r4-2 -rw-r--r-- 1 root root 4207168 Jan 4 23:38 /boot/bzImage-2.6.36-r6-1 r...@fireball / # So, my /boot is 13Mbs and I have three kernels there plus copies of their config files as well. Those are full blown ones since I don't use modules. I guess grub2 may make some people have to grow their /boot partition a bit for all that. I'm not planning to try grub2 for a bit yet but from the looks of it, it's a good thing I made my /boot partition 200Mbs. o_O Why so much you reckon? I did a emerge -pv and it has to install three more packages, in addition to the ones grub-static pulled in already. Does grub2 wash dishes too? I need one of those if it does. lol It's trying to be an OS that's a bootloader as it's primary function. Think back to the days of lilo. It obviously isn't an OS and doesn't understand OS concepts - it loads an OS. When that step is done, then and only then do OS concepts come into play. lilo doesn't even understand how to find a file on a disk, that's why the lilo command had to be run to tell the bootloader which sectors on disk it had to shove into memory. This confused people. It annoyed even more people who often forgot to run lilo before rebooting. So grub came along, it had the absolute minimum of OS-like features to find and load a kernel file. It needed it's own syntax of defining drive names, then would make it's way through the read-only fs it found there to find the kernel. It supported a small number of file systems, just enough so that a 50M partition would be usable on almost any platform. grub2 now looks like GNU/grub (sarcasm intended). It's not a bootloader, it's a puny OS with one extra feature - it can bootload! It has support for jpeg, every fs under the sun, and the grub2 ebuild even has a truetype USE flag. Yes! Now my life is complete. I've been DYING for years to have a bootloader that can properly display anti-aliased fonts for the entire 2 seconds it's on- screen -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] A tiny titillating taste of grub2
On Sunday 09 January 2011 22:04:44 Alan McKinnon wrote: Apparently, though unproven, at 19:48 on Sunday 09 January 2011, Dale did opine thusly: It seems grub2 is a whopper. Check this out: r...@fireball / # du -shc boot 13M boot 13M total r...@fireball / # ls -al /boot/bzImage-2.6.36-r* -rw-r--r-- 1 root root 4201472 Dec 15 00:16 /boot/bzImage-2.6.36-r4-1 -rw-r--r-- 1 root root 4204768 Dec 19 23:11 /boot/bzImage-2.6.36-r4-2 -rw-r--r-- 1 root root 4207168 Jan 4 23:38 /boot/bzImage-2.6.36-r6-1 r...@fireball / # So, my /boot is 13Mbs and I have three kernels there plus copies of their config files as well. Those are full blown ones since I don't use modules. I guess grub2 may make some people have to grow their /boot partition a bit for all that. I'm not planning to try grub2 for a bit yet but from the looks of it, it's a good thing I made my /boot partition 200Mbs. o_O Why so much you reckon? I did a emerge -pv and it has to install three more packages, in addition to the ones grub-static pulled in already. Does grub2 wash dishes too? I need one of those if it does. lol It's trying to be an OS that's a bootloader as it's primary function. Think back to the days of lilo. It obviously isn't an OS and doesn't understand OS concepts - it loads an OS. When that step is done, then and only then do OS concepts come into play. lilo doesn't even understand how to find a file on a disk, that's why the lilo command had to be run to tell the bootloader which sectors on disk it had to shove into memory. This confused people. It annoyed even more people who often forgot to run lilo before rebooting. So grub came along, it had the absolute minimum of OS-like features to find and load a kernel file. It needed it's own syntax of defining drive names, then would make it's way through the read-only fs it found there to find the kernel. It supported a small number of file systems, just enough so that a 50M partition would be usable on almost any platform. grub2 now looks like GNU/grub (sarcasm intended). It's not a bootloader, it's a puny OS with one extra feature - it can bootload! It has support for jpeg, every fs under the sun, and the grub2 ebuild even has a truetype USE flag. Yes! Now my life is complete. I've been DYING for years to have a bootloader that can properly display anti-aliased fonts for the entire 2 seconds it's on- screen and of course it uses a way to load the OS everybody else says is broken. GNU ftw!
[gentoo-user] Re: A tiny titillating taste of grub2
On 01/09/2011 12:04 PM, Alan McKinnon wrote: grub2 now looks like GNU/grub (sarcasm intended). It's not a bootloader, it's a puny OS with one extra feature - it can bootload! You remember the vi versus emacs wars?
Re: [gentoo-user] A tiny titillating taste of grub2
Alan McKinnon wrote: It's trying to be an OS that's a bootloader as it's primary function. Think back to the days of lilo. It obviously isn't an OS and doesn't understand OS concepts - it loads an OS. When that step is done, then and only then do OS concepts come into play. lilo doesn't even understand how to find a file on a disk, that's why the lilo command had to be run to tell the bootloader which sectors on disk it had to shove into memory. This confused people. It annoyed even more people who often forgot to run lilo before rebooting. So grub came along, it had the absolute minimum of OS-like features to find and load a kernel file. It needed it's own syntax of defining drive names, then would make it's way through the read-only fs it found there to find the kernel. It supported a small number of file systems, just enough so that a 50M partition would be usable on almost any platform. grub2 now looks like GNU/grub (sarcasm intended). It's not a bootloader, it's a puny OS with one extra feature - it can bootload! It has support for jpeg, every fs under the sun, and the grub2 ebuild even has a truetype USE flag. Yes! Now my life is complete. I've been DYING for years to have a bootloader that can properly display anti-aliased fonts for the entire 2 seconds it's on- screen Well, I have to say that for the moment, the old grub is working fine here. Just like ntp, that may change next week. I just wonder how much longer it will take before they get it stabilized and expect everyone to switch to it? From my understanding, they are not doing much with the old grub now so it should be to far off. I don't like to think about the old lilo days. Bad memories. Reminds me of xorg and hal. o_O Dale :-) :-)
Re: [gentoo-user] Cloned partition won't emerge some packages
Mick writes: I used: tar -X file.list -lcvSf - . | (cd /new_gentoo_partition; tar -xpvf - ) to clone a gentoo / partition to another partition on the same disk (I want to run some tests from it). The file.list has this is in it: tmp/* proc/* sys/* dev/* etc/mtab usr/portage/distfiles/* Which also excludes /usr/include/sys, not only /sys. And so on. You probably have to rewrite this as ./tmp/* , but I did not test this. And I just learnt that -l is no longer a synonym for --one-file-system, at least for tar 1.25. I'd do it with a bind mount this: mount -o bind / /mnt cd /mnt tar -cvSf - . | (cd /new_gentoo_partition; tar -xpvf - ) This way, the original /dev is being copied (including entries console and null), without the udev stuff that is mounted on top of /dev, while with --one-file-system only the empty /dev directory would be created. Wonko
Re: [gentoo-user] Re: A tiny titillating taste of grub2
walt wrote: On 01/09/2011 04:10 AM, Alan McKinnon wrote: Apparently, though unproven, at 02:44 on Sunday 09 January 2011, Dale did opine thusly: I have not tried grub2 yet but I did fine these: https://help.ubuntu.com/community/Grub2 http://en.gentoo-wiki.com/wiki/Grub2 http://grub.enbug.org/grub.cfg Thanks Dale, the ubuntu link may be what I need. I don't quite agree with Volker's viewpoint but don't totally disagree with him either. grub2 has a whole whack of bloat all of it's own. Indeed it does, except for grub.info, which is not nearly complete. Methinks a modular build system is in order here. Why should I build support for sparc when I know for a fact I'm building an x86 installer? Here is how I do that manually, FWIW. (I've not run the grub2 install scripts because I haven't read them yet, which makes me nervous in a boot loader :) $cd ~/src#in my home directory, so I don't need root $tar -xvzf /usr/portage/distfiles/grub-1.98.tar.gz $cd grub-1.98 $./configure --prefix=$HOME --disable-werror $make all install At this point grub2 has merely saved some files in your home directory, it has *not* messed with your boot sector or touched legacy grub in any way. $ls ~/bin/grub* /home/wa1ter/bin/grub-bin2h /home/wa1ter/bin/grub-mkisofs /home/wa1ter/bin/grub-editenv /home/wa1ter/bin/grub-mkpasswd-pbkdf2 /home/wa1ter/bin/grub-fstest /home/wa1ter/bin/grub-mkrelpath /home/wa1ter/bin/grub-mkelfimage /home/wa1ter/bin/grub-mkrescue /home/wa1ter/bin/grub-mkfont /home/wa1ter/bin/grub-script-check /home/wa1ter/bin/grub-mkimage $ls ~/lib/grub/i386-pc/ acpi.mod font.mod linux16.modreboot.mod affs.mod fs.lstlnxboot.imgreiserfs.mod afs.modfshelp.modloadenv.modrelocator.mod dozens more grub2 modules snipped for brevity That's where the bloat comes from, as you pointed out. There are tons of those *.mod files you won't need, so the trick is to compile a list of them you *do* need, and then feed the list to grub-mkimage as described below. NOTE: I can't recall exactly why but the ata* modules conflict with some other modules, so *don't use them* unless you know what you are doing. Create a list of all grub2 modules: $ls ~/lib/grub/i386pc/*.mod /tmp/modlist Now edit that file and delete any modules you know you don't need, e.g. I deleted reiserfs.mod and ntfs.mod and the raid*.mod because I don't use those items. Don't touch anything you don't clearly recognize, but *do* delete ata.mod and ata_pthru.mod. Now it's time to build the grub2 binary executable: $~/bin/grub-mkimage -o /tmp/grub2bin `cat /tmp/modlist` Your file grub2bin is actually formatted as a tiny pseudo kernel, which your legacy grub can boot using the usual grub sytax: title try grub2 root (hdX,X) kernel /tmp/grub2bin (or wherever else you want to put it. NOTE: so far I've done nothing requiring root privileges :) That menu item will start a grub2 running so you can experiment with it all you want, but still use legacy grub to boot as you always do. (You won't yet have a menu file for grub2, so you will see only the usual grub command prompt instead of a menu.) The grub2 shell is a bit different, so you might want to type set to see what variables you can change, ls to see your disks, and of course hit the tab key when you don't know what else to type. Type help search for the real excitement. A few more grub2 differences: the 'linux' command replaces 'kernel' to load your (linux) kernel. 'multiboot' is used to load any true multiboot kernel e.g. NetBSD. Not sure, but I think you still need to chainload the Windows booter -- sadly, I can't test it anymore :D One problem I encountered on my old amd32 machine is that I had to remove the USB-related grub2 modules or grub2 would crash while probing for disks. The newer amd64 machine works fine with the USB stuff included. Dunno why. NOTE: if grub2 names your disks (ataN,N) instead of (hdN,N) that means you are using the ata* grub2 modules -- I haven't figured out how to make that configuration work yet. This sounds about as complicated as lilo. Is this going to end up like hal? You know, so complicated that no one can use the thing and they have to start over again? Dale :-) :-)
[gentoo-user] Re: A tiny titillating taste of grub2
Alan McKinnon alan.mckin...@gmail.com writes: Apparently, though unproven, at 19:48 on Sunday 09 January 2011, Dale did opine thusly: It has support for jpeg, every fs under the sun, and the grub2 ebuild even has a truetype USE flag. Does it support mp3 or ogg vorbis? Don't tell me I can't make it play the fifth when it boots... Yes! Now my life is complete. I've been DYING for years to have a bootloader that can properly display anti-aliased fonts for the entire 2 seconds it's on- screen I just hope that it is actually able to work in plain VGA mode. Although I like to have framebuffer in the console, I don't think it's actually needed in the bootloader. Also, I suppose it'll be a PITA to configure that (or slow to run it) on some older computers. -- Nuno J. Silva gopher://sdf-eu.org/1/users/njsg
[gentoo-user] Re: A tiny titillating taste of grub2
walt w41...@gmail.com writes: On 01/09/2011 12:04 PM, Alan McKinnon wrote: grub2 now looks like GNU/grub (sarcasm intended). It's not a bootloader, it's a puny OS with one extra feature - it can bootload! You remember the vi versus emacs wars? But at least emacs is running in the operating system, not in the bootloader (although that may be in the GRUB roadmap). Someday we will need a bootloader to load grub. -- Nuno J. Silva gopher://sdf-eu.org/1/users/njsg
Re: [gentoo-user] A tiny titillating taste of grub2
Apparently, though unproven, at 22:51 on Sunday 09 January 2011, Dale did opine thusly: Alan McKinnon wrote: It's trying to be an OS that's a bootloader as it's primary function. Think back to the days of lilo. It obviously isn't an OS and doesn't understand OS concepts - it loads an OS. When that step is done, then and only then do OS concepts come into play. lilo doesn't even understand how to find a file on a disk, that's why the lilo command had to be run to tell the bootloader which sectors on disk it had to shove into memory. This confused people. It annoyed even more people who often forgot to run lilo before rebooting. So grub came along, it had the absolute minimum of OS-like features to find and load a kernel file. It needed it's own syntax of defining drive names, then would make it's way through the read-only fs it found there to find the kernel. It supported a small number of file systems, just enough so that a 50M partition would be usable on almost any platform. grub2 now looks like GNU/grub (sarcasm intended). It's not a bootloader, it's a puny OS with one extra feature - it can bootload! It has support for jpeg, every fs under the sun, and the grub2 ebuild even has a truetype USE flag. Yes! Now my life is complete. I've been DYING for years to have a bootloader that can properly display anti-aliased fonts for the entire 2 seconds it's on- screen Well, I have to say that for the moment, the old grub is working fine here. Just like ntp, that may change next week. I just wonder how much longer it will take before they get it stabilized and expect everyone to switch to it? From my understanding, they are not doing much with the old grub now so it should be to far off. I don't like to think about the old lilo days. Bad memories. Reminds me of xorg and hal. o_O At least you didn't have to deal with booting linux off a floppy -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] Re: A tiny titillating taste of grub2
Apparently, though unproven, at 22:50 on Sunday 09 January 2011, walt did opine thusly: On 01/09/2011 12:04 PM, Alan McKinnon wrote: grub2 now looks like GNU/grub (sarcasm intended). It's not a bootloader, it's a puny OS with one extra feature - it can bootload! You remember the vi versus emacs wars? emacs? The complete OS that only lacks an editor to be complete? -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] A tiny titillating taste of grub2
Alan McKinnon wrote: Apparently, though unproven, at 22:51 on Sunday 09 January 2011, Dale did opine thusly: Alan McKinnon wrote: It's trying to be an OS that's a bootloader as it's primary function. Think back to the days of lilo. It obviously isn't an OS and doesn't understand OS concepts - it loads an OS. When that step is done, then and only then do OS concepts come into play. lilo doesn't even understand how to find a file on a disk, that's why the lilo command had to be run to tell the bootloader which sectors on disk it had to shove into memory. This confused people. It annoyed even more people who often forgot to run lilo before rebooting. So grub came along, it had the absolute minimum of OS-like features to find and load a kernel file. It needed it's own syntax of defining drive names, then would make it's way through the read-only fs it found there to find the kernel. It supported a small number of file systems, just enough so that a 50M partition would be usable on almost any platform. grub2 now looks like GNU/grub (sarcasm intended). It's not a bootloader, it's a puny OS with one extra feature - it can bootload! It has support for jpeg, every fs under the sun, and the grub2 ebuild even has a truetype USE flag. Yes! Now my life is complete. I've been DYING for years to have a bootloader that can properly display anti-aliased fonts for the entire 2 seconds it's on- screen Well, I have to say that for the moment, the old grub is working fine here. Just like ntp, that may change next week. I just wonder how much longer it will take before they get it stabilized and expect everyone to switch to it? From my understanding, they are not doing much with the old grub now so it should be to far off. I don't like to think about the old lilo days. Bad memories. Reminds me of xorg and hal. o_O At least you didn't have to deal with booting linux off a floppy I had to deal with windoze 3.1 tho. I did boot Linux off a floppy one time. That was a long time ago to. It worked to my surprise. It wasn't speedy but it worked. Dale :-) :-)
Re: [gentoo-user] Cloned partition won't emerge some packages
On Sunday 09 January 2011 21:11:02 Alex Schuster wrote: Mick writes: I used: tar -X file.list -lcvSf - . | (cd /new_gentoo_partition; tar -xpvf - ) to clone a gentoo / partition to another partition on the same disk (I want to run some tests from it). The file.list has this is in it: tmp/* proc/* sys/* dev/* etc/mtab usr/portage/distfiles/* Which also excludes /usr/include/sys, not only /sys. And so on. You probably have to rewrite this as ./tmp/* , but I did not test this. And I just learnt that -l is no longer a synonym for --one-file-system, at least for tar 1.25. I'd do it with a bind mount this: mount -o bind / /mnt cd /mnt tar -cvSf - . | (cd /new_gentoo_partition; tar -xpvf - ) This way, the original /dev is being copied (including entries console and null), without the udev stuff that is mounted on top of /dev, while with --one-file-system only the empty /dev directory would be created. Thanks Wonko, it seems that I fell victim to my regex ignorance. I started with /tmp, but that would also exclude the directories and I didn't fancy creating them manually afterwards. Also dir/* does not include dir/.* What shall I use for excluding all the contents of a directory, but not the directory itself? I'll need to experiment some more. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
[gentoo-user] Re: A tiny titillating taste of grub2
On 01/09/2011 01:19 PM, Nuno J. Silva wrote: Alan McKinnonalan.mckin...@gmail.com writes: Apparently, though unproven, at 19:48 on Sunday 09 January 2011, Dale did opine thusly: It has support for jpeg, every fs under the sun, and the grub2 ebuild even has a truetype USE flag. Does it support mp3 or ogg vorbis? Don't tell me I can't make it play the fifth when it boots... Hm. There *is* a grub2 module 'play.mod' but I haven't tried it yet. If it plays audio files I'll let you know ASAP.
Re: [gentoo-user] Re: A tiny titillating taste of grub2
On Sunday 09 January 2011 21:26:38 Alan McKinnon wrote: Apparently, though unproven, at 22:50 on Sunday 09 January 2011, walt did opine thusly: On 01/09/2011 12:04 PM, Alan McKinnon wrote: grub2 now looks like GNU/grub (sarcasm intended). It's not a bootloader, it's a puny OS with one extra feature - it can bootload! You remember the vi versus emacs wars? emacs? The complete OS that only lacks an editor to be complete? Yes! If it could only receive vim commands, it would be perfect! :p -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] A tiny titillating taste of grub2
On Sunday 09 January 2011 21:42:22 Dale wrote: Alan McKinnon wrote: Apparently, though unproven, at 22:51 on Sunday 09 January 2011, Dale did opine thusly: Alan McKinnon wrote: It's trying to be an OS that's a bootloader as it's primary function. Think back to the days of lilo. It obviously isn't an OS and doesn't understand OS concepts - it loads an OS. When that step is done, then and only then do OS concepts come into play. lilo doesn't even understand how to find a file on a disk, that's why the lilo command had to be run to tell the bootloader which sectors on disk it had to shove into memory. This confused people. It annoyed even more people who often forgot to run lilo before rebooting. So grub came along, it had the absolute minimum of OS-like features to find and load a kernel file. It needed it's own syntax of defining drive names, then would make it's way through the read-only fs it found there to find the kernel. It supported a small number of file systems, just enough so that a 50M partition would be usable on almost any platform. grub2 now looks like GNU/grub (sarcasm intended). It's not a bootloader, it's a puny OS with one extra feature - it can bootload! It has support for jpeg, every fs under the sun, and the grub2 ebuild even has a truetype USE flag. Yes! Now my life is complete. I've been DYING for years to have a bootloader that can properly display anti-aliased fonts for the entire 2 seconds it's on- screen Well, I have to say that for the moment, the old grub is working fine here. Just like ntp, that may change next week. I just wonder how much longer it will take before they get it stabilized and expect everyone to switch to it? From my understanding, they are not doing much with the old grub now so it should be to far off. I don't like to think about the old lilo days. Bad memories. Reminds me of xorg and hal. o_O At least you didn't have to deal with booting linux off a floppy I had to deal with windoze 3.1 tho. I did boot Linux off a floppy one time. That was a long time ago to. It worked to my surprise. It wasn't speedy but it worked. SBM? It was a beauty! -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Re: A tiny titillating taste of grub2
On Sunday 09 January 2011 23:26:38 Alan McKinnon wrote: Apparently, though unproven, at 22:50 on Sunday 09 January 2011, walt did opine thusly: On 01/09/2011 12:04 PM, Alan McKinnon wrote: grub2 now looks like GNU/grub (sarcasm intended). It's not a bootloader, it's a puny OS with one extra feature - it can bootload! You remember the vi versus emacs wars? emacs? The complete OS that only lacks an editor to be complete? init=/bin/xemacs. Lots of fun, lots of fun. No, seriously, I did it, it worked surprisingly well.
[gentoo-user] Re: A tiny titillating taste of grub2
Mick michaelkintz...@gmail.com writes: On Sunday 09 January 2011 21:26:38 Alan McKinnon wrote: Apparently, though unproven, at 22:50 on Sunday 09 January 2011, walt did opine thusly: On 01/09/2011 12:04 PM, Alan McKinnon wrote: grub2 now looks like GNU/grub (sarcasm intended). It's not a bootloader, it's a puny OS with one extra feature - it can bootload! You remember the vi versus emacs wars? emacs? The complete OS that only lacks an editor to be complete? Yes! If it could only receive vim commands, it would be perfect! :p Maybe this will do, I never tried it. ,[C-h f viper-mode] | viper-mode is an interactive autoloaded Lisp function in `viper.el'. | | (viper-mode) | | Turn on Viper emulation of Vi in Emacs. See Info node `(viper)Top'. ` -- Nuno J. Silva gopher://sdf-eu.org/1/users/njsg
[gentoo-user] Re: A tiny titillating taste of grub2
On 01/09/2011 01:11 PM, Dale wrote: walt wrote: my grub recipe book snipped for brevity This sounds about as complicated as lilo. Much more complicated, but also more nifty :) Is this going to end up like hal? I certainly hope so! You know, so complicated that no one can use the thing and they have to start over again? rant This mess goes back to IBM's decision to use the Intel 8086 CPU in their shiny new PC and then hire Bill Gates and Paul Allen to write/steal DOS. The result was a brain-dead booting scheme which has been holding back the Intel/x86 world to this very day. (But they all made a huge bundle of cash along the way.) Intel has been trying ever since to correct those early wrong choices by inventing stuff like ACPI and EFI and GPT, et al, but it's been a long time coming. Meanwhile we have a truckload of hacks like lilo, grub1, grub2, syslinux, not to mention M$ boot loaders, which morph with every new release of Windows. /rant (Corrections to my historical mis-recollections are welcome, of course :)
[gentoo-user] Re: A tiny titillating taste of grub2
On 01/09/2011 11:07 AM, walt wrote: One problem I encountered on my old amd32 machine is that I had to remove the USB-related grub2 modules or grub2 would crash while probing for disks. The newer amd64 machine works fine with the USB stuff included. Dunno why. By trial-and-error I found that usb_keyboard.mod was the guilty one, but I have no idea why it causes trouble on this machine. Maybe a bug in the BIOS?
[gentoo-user] Re: pdf -amp;amp;gt; txt
meino.cramer at gmx.de writes: I explored the manual of that tool (pdftk) but didnt find any hint of converting pdf ot txt. Please, give me one little, a keyword, only an option which I can search for in the documentation to find out how to convert pdf to txt with pdftk. Maybe this page can help? http://www.pdflabs.com/docs/pdftk-cli-examples/ Maybe pdftk is not the right tool for your needs? If all you want to do is convert a pdf to text, just use acroread (as previously suggested): There is a button at the top to save out the pdf file into a txt file --File--Save as Text cya, James
Re: [gentoo-user] Re: A tiny titillating taste of grub2
On Sunday 09 January 2011 22:54:14 walt wrote: This mess goes back to IBM's decision to use the Intel 8086 CPU in their shiny new PC What? Little-endian hardware? Crackers: backwards thinking, which Americans seem to me to be prone to. And yes, I did spend two years working in Minneapolis 20 years ago. In the predecessor of that project we had to write common code to run equally well on a GEC machine, with a hardware limit of 8KB of process space but a highly efficient scheduler, and on a Ferranti Argus 700 in which a process could be any size but you couldn't have too many of them. The project failed of course, having been specified by the hardware department: yet another stupid decision. It was replaced with another project that bought a system in from another continent. Anyone remember Empros? Defunct, after gargantuan efforts by all concerned. Whose interest was that in? and then hire Bill Gates and Paul Allen to write/steal DOS. Just about the worst decision ever taken. And that includes politicians. All of them. The result was a brain-dead booting scheme which has been holding back the Intel/x86 world to this very day. (But they all made a huge bundle of cash along the way.) Capitalism? Greed in another word. (Why use one syllable when 5 will do?) Meanwhile we have a truckload of hacks like lilo, grub1, grub2, syslinux, not to mention M$ boot loaders, which morph with every new release of Windows. Come on, why don't you tell us what you think? Don't hold back - I haven't. -- Rgds Peter. Linux Counter 5290, 1994-04-23.
Re: [gentoo-user] Re: pdf -amp;amp;gt; txt
James wirel...@tampabay.rr.com [11-01-10 01:41]: meino.cramer at gmx.de writes: I explored the manual of that tool (pdftk) but didnt find any hint of converting pdf ot txt. Please, give me one little, a keyword, only an option which I can search for in the documentation to find out how to convert pdf to txt with pdftk. Maybe this page can help? http://www.pdflabs.com/docs/pdftk-cli-examples/ Maybe pdftk is not the right tool for your needs? If all you want to do is convert a pdf to text, just use acroread (as previously suggested): There is a button at the top to save out the pdf file into a txt file --File--Save as Text cya, James Hi James, I asked here for a tool to convert from pdf to txt. I had to recompile the gcc (missing USE-flag) to install pdftk. This effort only to get said: Maybe pdftk is not the right tool for your needs?
Re: [gentoo-user] Re: A tiny titillating taste of grub2
On Jan 9, 2011 8:11 PM, Peter Humphrey pe...@humphrey.ukfsn.org wrote: On Sunday 09 January 2011 22:54:14 walt wrote: The result was a brain-dead booting scheme which has been holding back the Intel/x86 world to this very day. (But they all made a huge bundle of cash along the way.) Capitalism? Greed in another word. (Why use one syllable when 5 will do?) Of course, if all else fails, blame the capitalists! That argument hasn't been torn to shreds for fifty years or anything.
Re: [gentoo-user] Cloned partition won't emerge some packages
Mick writes: On Sunday 09 January 2011 21:11:02 Alex Schuster wrote: Mick writes: I used: tar -X file.list -lcvSf - . | (cd /new_gentoo_partition; tar -xpvf - ) to clone a gentoo / partition to another partition on the same disk (I want to run some tests from it). The file.list has this is in it: tmp/* proc/* sys/* dev/* etc/mtab usr/portage/distfiles/* Which also excludes /usr/include/sys, not only /sys. And so on. You probably have to rewrite this as ./tmp/* , but I did not test this. And I just learnt that -l is no longer a synonym for --one-file-system, at least for tar 1.25. I'd do it with a bind mount this: mount -o bind / /mnt cd /mnt tar -cvSf - . | (cd /new_gentoo_partition; tar -xpvf - ) This way, the original /dev is being copied (including entries console and null), without the udev stuff that is mounted on top of /dev, while with --one-file-system only the empty /dev directory would be created. Thanks Wonko, it seems that I fell victim to my regex ignorance. I started with /tmp, but that would also exclude the directories and I didn't fancy creating them manually afterwards. Also dir/* does not include dir/.* What shall I use for excluding all the contents of a directory, but not the directory itself? Actually it does, although this is wrong in my opinion. But maybe what the user normally intends. I created two directories sys/ and usr/include/sys/, with normal and hidden files: wo...@weird ~/tmp/tar $ ls -a . sys usr/include/sys .: . .. sys usr sys: . .. .hidden visible usr/include/sys: . .. .hidden.h visible.h I tarred them as you did. Note that the hidden file is also excluded, although I did not exclude sys/.*, too: wo...@weird ~/tmp/tar $ tar cf ../foo.tar --exclude='sys/*' . wo...@weird ~/tmp/tar $ tar tf ../foo.tar ./ ./usr/ ./usr/include/ ./usr/include/sys/ ./sys/ As suggested, I added a './' to the exclude file list and tarred the directory. Seems to work: wo...@weird ~/tmp/tar $ tar cf ../foo.tar --exclude='./sys/*' . wo...@weird ~/tmp/tar $ tar tf ../foo.tar ./ ./usr/ ./usr/include/ ./usr/include/sys/ ./usr/include/sys/visible.h ./usr/include/sys/.hidden.h ./sys/ What shall I use for excluding all the contents of a directory, but not the directory itself? sed -i 's:^:./:g' file.list Wonko
[gentoo-user] Endless mysql-update
Hi, since some time I got the same mysql update displayed after doing eix-sync emerge --color=n -p -v --newuse --update --deep world . How can I stop mysql from this ? Best regards, mcc
Re: [gentoo-user] Endless mysql-update
meino.cra...@gmx.de wrote: Hi, since some time I got the same mysql update displayed after doing eix-sync emerge --color=n -p -v --newuse --update --deep world . How can I stop mysql from this ? Best regards, mcc I don't use the package but this may help. Have you ran revdep-rebuild lately? If that comes back clean and it does it even if you haven't re-synced, then maybe it is a bug or something. Dale :-) :-)