Re: Package users: wrapper script for mkdir
The addition of this feature is desired since the glibc 2.3.4 installation (from LFS 6.1.1) calls mkdir with relative paths You'll have a hard time convincing me of that. No glibc version I've ever installed did this. I have an LFS system lying around that used 2.3.4 which has /usr/share/locale/* with proper permissions and I'm certain that I didn't manually change the permissions of /usr/share/locale. I've also installed glibc-2.4 just a few weeks ago and it worked fine. I'm sorry but I think you are doing something wrong, probably a messed up PATH. Yes! You are devishly right: (as root): echo 'echo $PATH' | su glibc /bin:/usr/bin:/sbin:/usr/sbin:/tools/bin (as root): su glibc package glibc:/usr/src/glibc echo $PATH /usr/lib/pkgusr:/bin:/usr/bin:/tools/bin I am using the first approach to automate the LFS build process. It looks like in this case the .bash_profile file is not read. Why? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Switching users in a bash script?
Angel Tsankov wrote: exit END FILE Then simply call: echo build-package-name.txt | su What will happen if I do not append an 'exit' at the end of the file? Then it will get stuck I think and you will have to hit C-c to get out of it. No, it does not. I tried with and without 'exit' and I get the same result, at least visually, i.e. I did not chech if some process is left waiting or anything like this. That's not surprising. Non-interactive shell should terminate when it encounters EOF on input stream. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Booting problems
Hi there! Just finished LFS SVN-20060906 with some modifications (Glibc-2.4 plus Glibc-LibIDN-2.4 built as per book and Linux-2.6.17.11 plus Linux-Headers-2.6.17.11-08232006 from Cross-LFS SVN-20060906-x86) and had no problems in compilation. Now I tried various times to boot but had no success, always ended up with a kernel panic. The error message is VFS: Cannot open root device sdb3 or unknown-block (0,0) Please append a correct root= boot option Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (0,0). Host is OpenSUSE 10.2 Alpha 3 i386 on first ide hd (hda) (hda1 swap, hda2 root, hda3 home); dvdrecorder is hdc and dvd is hdd; I built into sata hard disk 2 (sdb with LFS on sdb3) (first sata is sda with M$). I built reiserfs (file system of my LFS system while OpenSUSE use xfs) and libata plus sata_via compiled into the kernel while scsi and other devices (ide etc...) as modules. Boot is from grub os OpenSUSE configured like this: title OpenSUSE root (hd0,1) kernel /boot/vmlinuz root=/dev/hda2 and then title LFS SVN-20060906 root (hd?,?) # I tried various options with no success kernel /boot/lfskernel-2.6.17.11 root=/dev/sdb3 Where is the error and how to solve it? If something else is needed (kernel-configurations or what please ask). Thanks in advance, Luca -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Booting problems
If i were you id have all hard drive based support compiled into the kernel, and none as modules, its the safest way. Id try that. Dave Luca wrote: Hi there! Just finished LFS SVN-20060906 with some modifications (Glibc-2.4 plus Glibc-LibIDN-2.4 built as per book and Linux-2.6.17.11 plus Linux-Headers-2.6.17.11-08232006 from Cross-LFS SVN-20060906-x86) and had no problems in compilation. Now I tried various times to boot but had no success, always ended up with a kernel panic. The error message is VFS: Cannot open root device sdb3 or unknown-block (0,0) Please append a correct root= boot option Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (0,0). Host is OpenSUSE 10.2 Alpha 3 i386 on first ide hd (hda) (hda1 swap, hda2 root, hda3 home); dvdrecorder is hdc and dvd is hdd; I built into sata hard disk 2 (sdb with LFS on sdb3) (first sata is sda with M$). I built reiserfs (file system of my LFS system while OpenSUSE use xfs) and libata plus sata_via compiled into the kernel while scsi and other devices (ide etc...) as modules. Boot is from grub os OpenSUSE configured like this: title OpenSUSE root (hd0,1) kernel /boot/vmlinuz root=/dev/hda2 and then title LFS SVN-20060906 root (hd?,?) # I tried various options with no success kernel /boot/lfskernel-2.6.17.11 root=/dev/sdb3 Where is the error and how to solve it? If something else is needed (kernel-configurations or what please ask). Thanks in advance, Luca -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Linux KVM Switch Support
I've been looking into getting another box at home, but I really don't have the space to support another full desktop setup. So, I figured I could just get a KVM switch and save some space. The question is, can anyone recommend a model to use that will work well with the current kernel? I'd prefer a switch that has DVI inputs since the monitor is an LCD and both cards should be able to drive it digitally. How do these switches interact with X? I've never used a KVM switch before, so any information would be helpful. Anyone have any suggestions? Thanks. -- Dan -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Linux KVM Switch Support
--- Randy McMurchy [EMAIL PROTECTED] wrote: Dan Nicholson wrote these words on 09/07/06 11:27 CST: The question is, can anyone recommend a model to use that will work well with the current kernel? I use an *old* Linksys KVM without any issues whatsoever. It is a ProConnect 4-station, model #SVIEW04. and I'm using a newer Startech SV411 4 way kvm switch. [ SV411, came with the cables, at just under $100 CDN ] I'd prefer a switch that has DVI inputs since the monitor is an LCD and both cards should be able to drive it digitally. Can't help you there, my switch does not have DVI capability. Mine is svga monitor connection, but drives flat screen monitor no problem. How do these switches interact with X? Mine works just fine, without any issues whatsoever. Same here, if there is zero client software they should work, so the smart switches are not good, the software is windows only. I've never used a KVM switch before, so any information would be helpful. I know I wasn't able to provide very much help, other than I use one without any issues whatsoever. :-) It is as simple as pushing Ctrl-Alt-RightShift and then 1, 2, 3 or 4 depending on the box I want. Different video resolution, scan rates, color settings, etc. don't matter. The monitor adjusts according to the signal it receives. My keyboard controls are slightly simpler, left control+left control then 1-4 to pick system. Jeff Henager: If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Linux KVM Switch Support
Dan Nicholson wrote: The question is, can anyone recommend a model to use that will work well with the current kernel? I'd prefer a switch that has DVI inputs since the monitor is an LCD and both cards should be able to drive it digitally. How do these switches interact with X? I've never used a KVM switch before, so any information would be helpful. Anyone have any suggestions? Thanks. -- Dan I use (now) a Belkin Omniview Pro which takes PS/2 inputs from the kbd and mouse and connects to your host computers via USB. It is VGA for the monitor. Only problem I have is with my mouse (It is a logitech MX1000) and I have it connected to the KVM via a USB/PS/2 converter. The hosts only see (unsurprisingly) the KVM interface as far as the USB is concerned so I loose the ablility to make a nice device for my mouse. I don't move things about much and it always appears on /dev/event1 so it isn't a problem. The other thing which Ken (Moffat?) also seemed to suffer with along with me was the loss of the pipe key (On a UK kbd this is a shifted \). This seems to be a kernel issue rather than something specific with KVMs but now I access that host using SSH or VNC and it goes away! Hope that helps some. Alan -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Booting problems
Luca a écrit : Hi there! Just finished LFS SVN-20060906 with some modifications (Glibc-2.4 plus Glibc-LibIDN-2.4 built as per book and Linux-2.6.17.11 plus Linux-Headers-2.6.17.11-08232006 from Cross-LFS SVN-20060906-x86) and had no problems in compilation. Now I tried various times to boot but had no success, always ended up with a kernel panic. The error message is VFS: Cannot open root device sdb3 or unknown-block (0,0) Please append a correct root= boot option Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (0,0). Host is OpenSUSE 10.2 Alpha 3 i386 on first ide hd (hda) (hda1 swap, hda2 root, hda3 home); dvdrecorder is hdc and dvd is hdd; I built into sata hard disk 2 (sdb with LFS on sdb3) (first sata is sda with M$). I built reiserfs (file system of my LFS system while OpenSUSE use xfs) and libata plus sata_via compiled into the kernel while scsi and other devices (ide etc...) as modules. Boot is from grub os OpenSUSE configured like this: title OpenSUSE root (hd0,1) kernel /boot/vmlinuz root=/dev/hda2 and then title LFS SVN-20060906 root (hd?,?) # I tried various options with no success kernel /boot/lfskernel-2.6.17.11 root=/dev/sdb3 Where is the error and how to solve it? If something else is needed (kernel-configurations or what please ask). Thanks in advance, Luca it should be root (hd2,2) -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
No sound from speakers
Please can somebody help. I've reached the stage of desperation. I've compiled the via drivers and alsa into the kernel and installed the alsa library, plug-ins, utilities and alsa oss. I've run the speaker-test and played a wav file and everything on the terminal screen looks good. I have not been able to get any failures, but I still cannot get any sound from the speakers. I've tested the speakers and cable on another box and they are good. Does anybody know what the problem could be? It must be something simple that's eluding me. Thanks in advance. Richard -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: Booting problems
Am Donnerstag, 7. September 2006 18:19 schrieb Luca: Hi there! Hi Luca! [...] Now I tried various times to boot but had no success, always ended up with a kernel panic. The error message is VFS: Cannot open root device sdb3 or unknown-block (0,0) Please append a correct root= boot option Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (0,0). [...] Where is the error and how to solve it? If something else is needed (kernel-configurations or what please ask). Well, just have a look at http://linuxfromscratch.org/pipermail/lfs-support/2006-August/031351.html;. Maybe you just need to ad a rootdelay= option. Thanks in advance, Luca HTH, Leonhard. PS: Let us know about your forthcoming. :-) -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Linux KVM Switch Support
On Thu, Sep 07, 2006 at 09:27:49AM -0700, Dan Nicholson wrote: I've been looking into getting another box at home, but I really don't have the space to support another full desktop setup. So, I figured I could just get a KVM switch and save some space. The question is, can anyone recommend a model to use that will work well with the current kernel? I'd prefer a switch that has DVI inputs since the monitor is an LCD and both cards should be able to drive it digitally. How do these switches interact with X? I've never used a KVM switch before, so any information would be helpful. For consumer-level devices, no! If you downgrade works well to works fairly well, any of them, at least for PS/2. Problems I see are occasional garbled display in X (change to another resolution, if you can, or to a tty then come back) and very occasional uncontrollable bursts of mouse activity (in menu bars) for no obvious reason (perhaps once a week on one of the machines). As Alan noted, I've got a problem with a PS/2 KVM feeding a usb-only machine (mac G5). I think it's a kernel problem, and probably doesn't affect most key layouts (we Brits seem to have an extra keycode for these glyphs) - I've got my compose key working on that box, so compose-v-l or compose-/-/ give me | and \. FWIW, my posts to usb-devel didn't get through and I haven't got around to looking at my email config to try to fix that. That box also suffers from fairly consistent excesses of vertical scroll-up events in windows and xterms, I've been assuming it's the nvidia graphics card but it could be the KVM. But KVMs with DVI ? - never seen one. Ken -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Linux KVM Switch Support
Hi Dan! Am Donnerstag, 7. September 2006 18:27 schrieb Dan Nicholson: I've been looking into getting another box at home, but I really don't have the space to support another full desktop setup. So, I figured I could just get a KVM switch and save some space. Good idea. :-) The question is, can anyone recommend a model to use that will work well with the current kernel? Recommend? Well, we have a Belkin model in use and are quite happy with it. No real problems so far. :-) (German) part number is: F1DB104Pg Take a look at http://catalog.belkin.com/IWCatProductPage.process?Product_Id=123878; where you can get a picture of it. I'd prefer a switch that has DVI inputs since the monitor is an LCD and both cards should be able to drive it digitally. Sorry, no idea. How do these switches interact with X? I've never used a KVM switch before, so any information would be helpful. The swith we use behaves just like the monitor itself. Beside that it, of course, gives you keyboard and mouse. Anyone have any suggestions? Thanks. -- Dan HTH, Leonhard. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: No sound from speakers
On Thu, Sep 07, 2006 at 08:57:02PM +0100, Richard Melville wrote: Please can somebody help. I've reached the stage of desperation. I've compiled the via drivers and alsa into the kernel and installed the alsa library, plug-ins, utilities and alsa oss. I've run the speaker-test and played a wav file and everything on the terminal screen looks good. I have not been able to get any failures, but I still cannot get any sound from the speakers. I've tested the speakers and cable on another box and they are good. Does anybody know what the problem could be? It must be something simple that's eluding me. Sound is like that, I'm afraid. If you try to play through a driver for which the hardware is not present, I'm not sure if they all report errors, so perhaps you have the wrong driver - has sound ever worked on this hardware ? Non-software possibilities - input on amp not connected or not selected, speaker cables fell out of amp (I've had both of those), amp turned down too far. Alsa possibilities - a 'hidden' control which is muted (some drivers have more controls than fit on the screen, and everything defaults to off and muted). For testing, it can help to set everything to unmuted and fairly high level, but it depends how sensitive your amp is - you may need to be ready to turn down a physical volume control. There can also be 64/32 or endian issues with obscure combinations of hardware and sound cards, but those usually lead to either error messages or aplay taking a persistent 100% cpu. -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: Linux KVM Switch Support
First, thanks to everyone for sharing. Ken Moffat wrote: For consumer-level devices, no! If you downgrade works well to works fairly well, any of them, at least for PS/2. Problems I see are occasional garbled display in X (change to another resolution, if you can, or to a tty then come back) and very occasional uncontrollable bursts of mouse activity (in menu bars) for no obvious reason (perhaps once a week on one of the machines). I was afraid of that. A couple years ago a friend of mine was trying to use a KVM switch on a RedHat system that didn't work. I think it was a kernel issue that got fixed. That's the closest to experience I have. So, it sounds like people have had mixed experiences, mostly positive, though. Is there any online resource with information? Something similar to this: http://www.linux-usb.org/ Oh, I found this: http://www.keylabs.com/linux/results_kvm.html But KVMs with DVI ? - never seen one. Here's some I found. They're not cheap. It would be nice though, since all the components otherwise are capable. VGA would be work, so it's not a showstopper. http://www.kvm-switches-online.com/dvi-kvm-switch.html http://catalog.belkin.com/IWCatProductPage.process?Product_Id=262900 I'm also thinking about PS/2 vs. USB. Seems like the switches have one or the other. Not a big deal there, but I want it to work. I'll probably stick with PS/2 as that's what I know how to work with. -- Dan P.S., Ken. Don't know if this will help, but I stumbled upon a blog where a guy was having issues with a KVM on a MacMini using a PS/2 to USB converter. Fix came a while back, but maybe this could help. The guy, Hubert Figuiere, is a developer of some GNOME applications. http://www.figuiere.net/hub/blog/?2005/03/08/110-kvm-and-linux -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Linux KVM Switch Support
I've had a few minor problems with X losing the mouse device when switching between windows and linux boxes on a couple different (older) Belkin models. I then switched to Cybex (also an older model) and I've had no problems switching between any of the OS's I use. I'm currently using an 8 port Cybex Autoview Commander and it has never given me problems. Because it's an older kvm, it does not support usb or dvi, but works great with Hi-res svga (1600+), 3D desktop (gset-compiz), and Ultra-wide monitors. Good luck! -Tyler On Thu, 2006-09-07 at 09:27 -0700, Dan Nicholson wrote: I've been looking into getting another box at home, but I really don't have the space to support another full desktop setup. So, I figured I could just get a KVM switch and save some space. The question is, can anyone recommend a model to use that will work well with the current kernel? I'd prefer a switch that has DVI inputs since the monitor is an LCD and both cards should be able to drive it digitally. How do these switches interact with X? I've never used a KVM switch before, so any information would be helpful. Anyone have any suggestions? Thanks. -- Dan -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Switching users in a bash script?
Assuming that you meant cat build-package-name.txt | su this makes bash read neither /etc/bash_profile, nor ~/.bash_profile. This is the case even if su is invoked with -. With package users, I need bash to read ~/.bash_profile before I execute the instructions in build-package-name.txt. I did mean with cat. Just throw a 'source ~/.bash_profile' just after the root password. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Booting problems
Thanks to all for the replays, after sending the post I tried recompiling the kernel including internal support for xfs, ide_core, ide_disk, scsi, sd_mod and via82cxxx and not as modules and this solved the problem, now I will try with your indications about grub... By the way, actually it seems working well my system using Cross-LFS headers instead of Linux-Libc-Headers from Mazurk, Glibc-2.4 includes inotify.h so it would be unnecessary to patch it and copy the header manually. Luca -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page