Re: [gentoo-user] naming an xterm
Thus spake Peter Ruskin on Fri, Jan 09, 2004 at 08:45:01AM CST On Friday 09 Jan 2004 14:13, Andrew Gaffney wrote: I routinely have atleast 3 xterm's at any one time. I need a way to easily distinguish between them. Is there a command I can run from the xterm to change its title to something I specify? There's a bash-prompt HOWTO that describes how to do this. I customised it and put the file proml in my home directory, made it executable and sourced it in .bashrc or /etc/profile (can't remember exactly). You might also want to look at http://ldp.kernelnotes.de/HOWTO/Xterm-Title.html This describes the escape sequences available to change the title of an xterm. I include this in my bash prompt string, so I have access in the xterm title to any information which can be accessed using the special bash prompt escapes, e.g. \h for hostname, \u for user, etc, although these are generally available as env vars as well. Basically: * ESC]0;stringBEL -- Set icon name and window title to string * ESC]1;stringBEL -- Set icon name to string * ESC]2;stringBEL -- Set window title to string BEL is octal \007 My PS1 looks like this: \[\e]0;\]$machine `if [ $ACCEPT_KEYWORDS = ~x86 ]; then echo (unstable); fi;` $USE . ($USER)\[\007\e[1m\e[${pcolor}m\]\h:\[\e[31m\]\w\[\e[m\]\$ $machine and $pcolor are defined elsewhere in my .bash_profile. $machine is the name of the current machine and $pcolor is the color of the command prompt defined by the UID (cyan for UID=0 and yellow for everything else) -- Lindsay Haisley | Everything works| PGP public key FMP Computer Services | if you let it | available at 512-259-1190 |(The Roadie) | http://www.fmp.com/pubkeys http://www.fmp.com| | -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] what is adjust (NEVER MIND)
Thus spake John Ziniti on Fri, Jan 09, 2004 at 10:21:03AM CST Gerhard W. Gruber wrote: What is qpkg? /usr/bin/qpkg belongs to package app-portage/gentoolkit. You *must* get to know qpkg. Just emerge gentoolkit. You'll also find epm to be very useful! (or at least I have) -- Lindsay Haisley | Everything works| PGP public key FMP Computer Services | if you let it | available at 512-259-1190 |(The Roadie) | http://www.fmp.com/pubkeys http://www.fmp.com| | -- [EMAIL PROTECTED] mailing list
[gentoo-user] Kernel folk - Where did the sk98lin network driver go in 2.4.22-gentoo ????
Does anyone know what happened to support for the 3Com LOM 3C940 in kernel linux-2.4.22-gentoo-r3? This was available as the sk98lin module in 2.4.20 and works fine for the 3Com 3C940, and in fact it looks as if some of the Gentoo kernel hackers enhanced it somewhat. The code is still in the kernel tree in 2.4.22, and instructions for installing it are still in /Documentation/networking/sk98lin.txt but it doesn't show up in the configuration menus or options. Apparently this is similar to, but not quite the same as the 3C2000 driver, and some people have reported problems with the driver from the Asus website. There are supposed to be patches for it on the SysKonnect website to fix the problems, but it's been too long since I studied German. The 3C940 is onboard on an Asus P4C800 MB and although I could put a PCI card in the box I'm running short of slots and would rather use onboard gigabit NIC. Any help from anyone here? Should I post an enhancement request to bugs.gentoo.org? I can install a kernel patch if there is one somewhere. -- Lindsay Haisley | Everything works| PGP public key FMP Computer Services | if you let it | available at 512-259-1190 |(The Roadie) | http://www.fmp.com/pubkeys http://www.fmp.com| | -- [EMAIL PROTECTED] mailing list
[gentoo-user] Invalid db entry ??
From time to time I get the following message when emerging a package. What does it mean, and what sort of action should I take to correct it? Auto-cleaning packages ... !!! Invalid db entry: /var/db/pkg/*sys-fs/devfsd!!! Invalid db entry: /var/db/pkg/*sys-fs/devfsd -- Lindsay Haisley | Everything works| PGP public key FMP Computer Services | if you let it | available at 512-259-1190 |(The Roadie) | http://www.fmp.com/pubkeys http://www.fmp.com| | -- [EMAIL PROTECTED] mailing list
[gentoo-user] 3rd party ebuilds
I have a couple of questions regarding installation of ebuilds. I recently had to install a patched ebuild from a standalone ebuild supplied by a gentoo developer. Although the man page for ebuild documents the use of a standalone external file as a source for an ebuild, following the directions resulted in errors complaining about paths and the ebuild not being found under /usr/portage. What's the correct procedure for installing a standalone ebuild file and incorporating it into the build tree? Along the same line, I've been wondering if 3rd party ebuilds for gentoo for stuff not already in gentoo are common on places like freshmeat, as are packages for other distributions for open source work not already available through the distribution's regular channels. The answer to the above question would, of course, apply to any 3rd party ebuilds one might download. -- Lindsay Haisley | Everything works| PGP public key FMP Computer Services | if you let it | available at 512-259-1190 |(The Roadie) | http://www.fmp.com/pubkeys http://www.fmp.com| | -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] 3rd party ebuilds
Yes, I have PORTDIR_OVERLAY defined, but this doesn't really address my question. In particular, I had some difficulty installing the patch from a gentoo maintainer: # ebuild gnome-panel-2.4.0-r2.ebuild unpack !!! aux_get(): ebuild for '/gnome-panel-2.4.0-r2' does not exist at: !!!/usr/portage//gnome-panel/gnome-panel-2.4.0-r2.ebuild gnome-panel-2.4.0-r2.ebuild is in the pwd (~root), from whicn I'm running this command. What am I missing? The man page defines the syntax as 'ebuild file command [command]...' I get the same error whatever command I try to run w. ebuild. What am I doing wrong? Thus spake Jose Gonzalez Gomez on Wed, Oct 15, 2003 at 11:32:30AM CDT Take a look at PORTDIR_OVERLAY in /etc/make.conf Lindsay Haisley wrote: I have a couple of questions regarding installation of ebuilds. I recently had to install a patched ebuild from a standalone ebuild supplied by a gentoo developer. Although the man page for ebuild documents the use of a standalone external file as a source for an ebuild, following the directions resulted in errors complaining about paths and the ebuild not being found under /usr/portage. What's the correct procedure for installing a standalone ebuild file and incorporating it into the build tree? Along the same line, I've been wondering if 3rd party ebuilds for gentoo for stuff not already in gentoo are common on places like freshmeat, as are packages for other distributions for open source work not already available through the distribution's regular channels. The answer to the above question would, of course, apply to any 3rd party ebuilds one might download. -- [EMAIL PROTECTED] mailing list -- Lindsay Haisley | Everything works| PGP public key FMP Computer Services | if you let it | available at 512-259-1190 |(The Roadie) | http://www.fmp.com/pubkeys http://www.fmp.com| | -- [EMAIL PROTECTED] mailing list
[gentoo-user] Promise hw RAID and Gentoo 1.4 livecd
I'm building a system with an ASUS P4C800 Delux mb which has an onboard Promise PDC20378 controller chipset. I've read the discussions on this list from last spring about Gentoo and Promise raid, but am still having trouble, and everything I can find on google indicates that a lot of people are having the same problems and that solutions are hard to come by. I'm trying to get at the RAID array from the livecd, v1.4-20030911. modprobe ataraid- works OK modprobe pdcraid- fails According to what I've read, there were problems with the Promise raid driver in kernel 2.4.19 but the livecd uses 2.4.21. I can fall back on Linux software raid, but it'd really rather not have to deal with the boot issues involved. One of the reasons I paid the extra $$ for this mb was because it had the onboard hw raid. I guess it's what I get for trying to use bleeding edge hardware with Linux, I guess :( Has anyone made any progress on this problem? -- Lindsay Haisley | Everything works| PGP public key FMP Computer Services | if you let it | available at 512-259-1190 |(The Roadie) | http://www.fmp.com/pubkeys http://www.fmp.com| | -- [EMAIL PROTECTED] mailing list
[gentoo-user] Hyper-threading, SMB and Gentoo
I'm building a system with an ASUS P4C800 Deluxe mb. I'm using the smp kernel on the Gentoo livecd, v1.4-20030911. The BIOS settings tell me that hyperthreading is enabled, and the flags line in /proc/cpuinfo lists the ht flag, but only one CPU is listed in /proc/cpuinfo and only one shows up in the boot console messages. Should I not be seeing two of them from the point of view of the OS? The CPU is an Intel 2.60GHZ/512/800 (2.6 GHz, 512 cache, 800Mhz sys. bus) which supports hyperthreading according to Intel's website, and the mb manual indicates that the hyperthreading option isn't offered in the BIOS unless it's enabled in the CPU. What am I missing? -- Lindsay Haisley | Everything works| PGP public key FMP Computer Services | if you let it | available at 512-259-1190 |(The Roadie) | http://www.fmp.com/pubkeys http://www.fmp.com| | -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] What creates System.map, config and vmlinuz?
Thus spake David Friggens on Mon, Sep 15, 2003 at 04:57:22PM CDT * Mark Knecht [EMAIL PROTECTED] [2003-09-15 09:57]: I just did a kernel build of gentoo-sources-2.4.20-r7 by hand (make dep clean bzImage modules modules_install then copy bzImage to /boot by hand) and I do not get the System.map, config and vmlinuz files in /boot. However, QUESTION 1: What do these files do, and are they necessary? vmlinux is your kernel. Often necessary. System.map is the symbol map and is necessary. bzImage is a compressed file that contains both. (So you use it instead of the others.) bzImage doesn't contain the system symbol map, but the symbol map is frequently used to translate numeric locations in bzImage into symbol names for debugging purposes. System.map isn't required. The file /usr/src/linux/arch/xxx/boot/bzImage gets copied, usually, to /boot/vmlinuz when one builds a kernel, so they're the same file, really. /boot/vmlinuz (if it's the working kernel image) is _always_ required. bzImage in the kernel build tree is only generated when one builds a kernel, and can be deleted. QUESTION 2: What is the process to create these files if I want them? Do `make vmlinux` instead of `make bzImage` - they should be in the source root. (They may actually be there after doing make bzImage - have a look - but that's what you do if you don't want the compressed image.) You don't need the uncompressed kernel. The proper sequence of commands (or one of them) to create a new kernel is as follows: cd /usr/src/linux[assuming this is the base of your kernel source tree] make menuconfig [set things the way you want them] make dep make clean make bzImage modules make modules_install cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-whatever You may need to dicker with your lilo or grub config file to reference your new kernel, and if you use lilo, you'll need to run it to update the boot info. -- Lindsay Haisley | Everything works| PGP public key FMP Computer Services | if you let it | available at 512-259-1190 |(The Roadie) | http://www.fmp.com/pubkeys http://www.fmp.com| | -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Hyper-threading, SMB and Gentoo
Bingo! Two penguins! Thanks. Thus spake Michael Niethen on Mon, Sep 15, 2003 at 04:40:06PM CDT [Mon, 15 Sep 2003 15:44:10 -0500] Lindsay Haisley [EMAIL PROTECTED] -- : I'm building a system with an ASUS P4C800 Deluxe mb. I'm using the smp kernel on the Gentoo livecd, v1.4-20030911. The BIOS settings tell me that hyperthreading is enabled, and the flags line in /proc/cpuinfo lists the ht flag, but only one CPU is listed in /proc/cpuinfo and only one shows up in the boot console messages. Should I not be seeing two of them from the point of view of the OS? The CPU is an Intel 2.60GHZ/512/800 (2.6 GHz, 512 cache, 800Mhz sys. bus) which supports hyperthreading according to Intel's website, and the mb manual indicates that the hyperthreading option isn't offered in the BIOS unless it's enabled in the CPU. What am I missing? The 'smp' kernel doesn't have the proper ACPI support, which is needed. Try 'smp-acpi' at boot-time, it should work fine. -- Michael Computers are like air conditioners. They don't work when Windows are open. -- [EMAIL PROTECTED] mailing list -- Lindsay Haisley | Everything works| PGP public key FMP Computer Services | if you let it | available at 512-259-1190 |(The Roadie) | http://www.fmp.com/pubkeys http://www.fmp.com| | -- [EMAIL PROTECTED] mailing list
[gentoo-user] SATA woes!!
Having given up, at least for now, on the onboard Promise RAID controller on my new mb, I switched the two Seagate SATA HDs onto the descrete SATA connectors on the MB. They're coming up, but with errors, or not at all in the stock gentoo kernel. The stock gentoo kernel hangs on boot after the ICH5-SATA boot report. If I have ide=nodma in the boot invocation, the last line is hde: ST3120023AS, ATA DISK drive If I don't use ide=nodma, the hang is after the line blk: queue ... I/O Limit 4095MB (mask 0xfff... etc.) If I use the smp kernel, I can mount the hard drive, partition it, and apparently write to it, but I get frequent console messages like: ide2: unexpected interrupt, status=0xd0, count=x If I use the smp-apci kernel (required to get Hyper-threading working) I seem to be able to mount existing partitions on the drives, but can't modify the partition tables. When I try to do so, I get, in addition to the unexpected interrupt error, the following errors, several times: hde: status error: status=0x58 (DriveReady SeekComplete DataRequest) hde: drive not ready for command The partition table write fails. These are Seagate drives, and after buying them I disovered that Western Digital has a better reputation with some people for SATA drives, and that Seagate's may have known problems with DMA. Don't know if the drives are crap, the kernel doesn't contain the proper options, there's a timing issue, or what... I don't know if I can trust the SATA system for building a Gentoo install considering all this. -- Lindsay Haisley | Everything works| PGP public key FMP Computer Services | if you let it | available at 512-259-1190 |(The Roadie) | http://www.fmp.com/pubkeys http://www.fmp.com| | -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] What creates System.map, config and vmlinuz?
Thus spake Mark Knecht on Mon, Sep 15, 2003 at 08:31:46PM CDT On Mon, 2003-09-15 at 15:40, Lindsay Haisley wrote: bzImage doesn't contain the system symbol map, but the symbol map is frequently used to translate numeric locations in bzImage into symbol names for debugging purposes. System.map isn't required. The file /usr/src/linux/arch/xxx/boot/bzImage gets copied, usually, to /boot/vmlinuz when one builds a kernel, so they're the same file, really. OK, so for a couple of years I've made a consistent 'mistake' because I almost always do this copy by hand, but I never rename it. So the bzImage files in my /boot directory, by convention, should really be named vmlinuz, but I haven't been doing that. It's really a no-nevermind. You can call the file in the /boot directory whatever you want to, as long as it agrees with the grub or lilo reference to it in their config files. Do `make vmlinux` instead of `make bzImage` - they should be in the source root. (They may actually be there after doing make bzImage - have a look - but that's what you do if you don't want the compressed image.) Does 'make vmlinuz' make an uncompressed kernel? # make vmlinuz make: *** No rule to make target `vmlinuz'. Stop. It don't compute ;-) The other 2/3's are where do the System.map and config files come from? System.map is created by the kernel build (make bzImage). Generally you can copy it to your /boot, along with your kernel image and if it's needed to put human-readable names on numeric kernel addresses, it'll be found there. Several programs use it, ps being one, I believe, but it's not mission critical. It may now be included in the bzImage created by a build, but I don't know if every program that might use it knows to look for it there. The config file, actually .config, is created by the kernel configuration process (rather than the kernel build) and contains all your kernel settings. If you have a configuration you want to save off so that you can build an identical kernel somewhere else, with all the same options, just copy it to a fresh kernel tree somewhere and do a 'make oldconfig', or run 'make menuconfig' and and save your changes if you want to modify anything. Gentoo kernels create /proc/config which is the contents of the config file used to generate the kernel. Even if you wipe out your kernel tree you can just copy /proc/config to .config in a new kernel tree and you can reproduce the running kernel. If they are created by the above set of steps, then are they under /usr/src/linux somewhere after I've built the kernel? Yes, in the root of the source tree. -- Lindsay Haisley | Everything works| PGP public key FMP Computer Services | if you let it | available at 512-259-1190 |(The Roadie) | http://www.fmp.com/pubkeys http://www.fmp.com| | -- [EMAIL PROTECTED] mailing list