Re: [gentoo-user] Re: mpg123: Can't open /dev/dsp!
mpg321, if alsa is in your USE flags, I believe will default to alsa (something in /dev/snd versus /dev/sound), hence you're not having the problem with mpg321. To iron out if the problem is with mpg123 or with /dev/dsp (/dev/sound/dsp), can your run something like "ls -l /bin > /dev/dsp", and see if you hear something? (assuming your volume is turned up.) if you do, then I would venture to say that the problem is with mpg123. if not then it would appear as though you have a problem with alsa and/or the alsa configuration files. Walter Dnes wrote: On Tue, Mar 21, 2006 at 08:41:44PM +0100, Simon Kellett wrote "Walter Dnes" <[EMAIL PROTECTED]> writes: ... mpg123 complains about not being able to open /dev/dsp ... Does "mpg123 -a /dev/sound/dsp" work ? Nope. The only change is that now I get "Can't open /dev/sound/dsp!". -- gentoo-user@gentoo.org mailing list
[gentoo-user] New To Gentoo and Emerge, No ACPI in Kernel
Hi, I'm very very new to Gentoo. I managed to squeak through a install from the live CD, however, this gave me a kernel with little or no ACPI support - I have a laptop, so I'd like to have this support enabled. However, I don't know how to rebuild the kernel, or do so enabling ACPI support. I only know a few precious things about emerge, like --sync, --search, and even --help, but beyond that I'm not that good at all, and the man pages didn't offer much help for me. I know this is a painfully elementary question, but thanks for any help you can give! == Lord Sauron the Great = == GCv3.12 == GCS d-(++) s+: a? C++ UL+> P+ L++ E--- W+(+++) N++ o? K? w--- O? M+ V? PS- PE+ Y-(--) PGP- t+++ 5? X R tv-- b+ DI+++ D+ G e* h- !r !y = END GCv3.12 == www.geekcode.com === -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] is it toast?
2006/3/24, Iain Buchanan <[EMAIL PROTECTED]>: On Fri, 2006-03-24 at 07:03 +0100, Martin S wrote:> I lent my USB stick to a guy for a job the other day. Apparently his> Win98 box wanted to install drivers for it to work, so he pulled it> before Wintendo (anything < 2000) could get to doing its stuff. >> Now I get>> SuicidalPuppy martoni # mount /mnt/usb/> mount: block device /dev/sda is write-protected, mounting read-only> mount: wrong fs type, bad option, bad superblock on /dev/sda, >missing codepage or other error>In some cases useful info is found in syslog - try>dmesg | tail or soThe "read-only" is a bit misleading - I get this message when mount can't understand the filesystem, even though it may be ok.If you don't need any data from the drive, see if you can re-fdisk andre-format it. Unplug it first and plug in again, just in case you didsomething bad with hdparm. SuicidalPuppy martoni # fdisk /dev/sdaYou will not be able to write the partition table.Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabelBuilding a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previouscontent won't be recoverable.Warning: invalid flag 0x of partition table 4 will be corrected by w(rite)Command (m for help): n Command action e extended p primary partition (1-4)pPartition number (1-4): 1First cylinder (1-1015, default 1):Using default value 1Last cylinder or +size or +sizeM or +sizeK (1-1015, default 1015): Using default value 1015Command (m for help): pDisk /dev/sda: 262 MB, 262144000 bytes9 heads, 56 sectors/track, 1015 cylindersUnits = cylinders of 504 * 512 = 258048 bytes Device Boot Start End Blocks Id System /dev/sda1 1 1015 255752 83 LinuxCommand (m for help): wUnable to write /dev/sda Regards,Martin S
Re: [gentoo-user] LG L1730P in 1280x1024 - solved
péntek 24 március 2006 04.37 dátummal Richard Fish ezt írta: > On 3/23/06, Stefán István <[EMAIL PROTECTED]> wrote: > > I changed my Matrox G550 card to a Radeon 7500, executed the Xorg > > -configure command, and the created config file works perfectly. It seems > > that something was wrong with tha matrox card or with the matrox driver. > > Yes, it seems so. But if for some reason you wanted to use the matrox > card, you could try using the video mode timings shown by xvidtune > when running the vesa or radeon driver in the configuration file for > the matrox. The timing used when running radeon driver shown by xvidtune is not working with tha matrox card. I don't understand how it could be ... Istvan -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] is it toast?
On Fri, 2006-03-24 at 07:03 +0100, Martin S wrote: > I lent my USB stick to a guy for a job the other day. Apparently his > Win98 box wanted to install drivers for it to work, so he pulled it > before Wintendo (anything < 2000) could get to doing its stuff. > > Now I get > > SuicidalPuppy martoni # mount /mnt/usb/ > mount: block device /dev/sda is write-protected, mounting read-only > mount: wrong fs type, bad option, bad superblock on /dev/sda, >missing codepage or other error >In some cases useful info is found in syslog - try >dmesg | tail or so The "read-only" is a bit misleading - I get this message when mount can't understand the filesystem, even though it may be ok. If you don't need any data from the drive, see if you can re-fdisk and re-format it. Unplug it first and plug in again, just in case you did something bad with hdparm. -- Iain Buchanan He who laughs, lasts. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] screen flickers/static
On Fri, 2006-03-24 at 00:00 -0600, Dave Moore wrote: > I have this problem too, precisely as thufir described it. I, however, > have no other xorg.conf for comparison. you mean you deleted it, or your system "auto-detects" it? if 1. then too bad :( you could try playing around with drivers (eg try the standard vesa driver). If 2. then try making one, then play around with it. -- Iain Buchanan If you sell diamonds, you cannot expect to have many customers. But a diamond is a diamond even if there are no customers. -- Swami Prabhupada -- gentoo-user@gentoo.org mailing list
[gentoo-user] is it toast?
I lent my USB stick to a guy for a job the other day. Apparently his Win98 box wanted to install drivers for it to work, so he pulled it before Wintendo (anything < 2000) could get to doing its stuff.Now I get SuicidalPuppy martoni # mount /mnt/usb/mount: block device /dev/sda is write-protected, mounting read-onlymount: wrong fs type, bad option, bad superblock on /dev/sda, missing codepage or other error In some cases useful info is found in syslog - try dmesg | tail or soAnd SuicidalPuppy martoni # dmesg |tail...FAT: bogus logical sector size 255VFS: Can't find a valid FAT filesystem on dev sda. FAT: bogus logical sector size 255VFS: Can't find a valid FAT filesystem on dev sda.Googling a bit I found a few ideas how to get the USB-thingie up again.Like:SuicidalPuppy martoni # hdparm -r0 /dev/sda /dev/sda: setting readonly to 0 (off) readonly = 0 (off)SuicidalPuppy martoni # parted /dev/sdaWarning: Unable to open /dev/sda read-write (Read-only file system). /dev/sda has beenopened read-only. Warning: Unable to open /dev/sda read-write (Read-only file system). /dev/sda has beenopened read-only.And SuicidalPuppy martoni # dd if=/dev/zero of=/dev/sdadd: opening `/dev/sda': Read-only file system I'm out of ideas now - Is the last shot to go out and buy a new USB stick?Martin S-- Regards,Martin S
Re: [gentoo-user] screen flickers/static
I have this problem too, precisely as thufir described it. I, however, have no other xorg.conf for comparison. -- -BEGIN GEEK CODE BLOCK- Version: 3.12 GAT d-(+) s+: a24 C++ UBL++ P+>+++ L++ E--- W+++$ N+ o? K? w O? M-- V? !PS !PE Y PGP- t++ 5++ X+ R+++ tv+ b++ DI D++ G e+ h-- r++ y+ --END GEEK CODE BLOCK-- -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] dd if=/dev/dvd of=backup.iso - DMA related problem
On 3/23/06, Joseph <[EMAIL PROTECTED]> wrote: > OK, here is dmesg output, the last two lines indicate that: > hdc: DMA disabled > hdc: ATAPI reset complete The lines that are interesting to me are: VP_IDE: IDE controller at PCI slot :00:0f.1 sata_via :00:0f.0: version 1.1 The above PCI id lines indicate that your parallel ata (IDE) device is really just a function of your SATA chip. Since your hard disk wouldn't be affected, I would try a kernel without IDE support and see if the SATA driver picks up your CD drive. -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] dd if=/dev/dvd of=backup.iso - DMA related problem
On Thu, 2006-03-23 at 21:24 -0700, Richard Fish wrote: > On 3/23/06, Joseph <[EMAIL PROTECTED]> wrote: > > That is interesting. > > My DVD burner is connected to IDE controller and I have in kernel > > enabled both options support: > > <*> Include IDE/ATAPI CDROM support > > and > > <*> SCSI CDROM support > > My DVD is recognized as /dev/hdc > > > > If I disable first option "DE/ATAPI CDROM support" will the drive be > > recognized as /dev/sr0 ??? > > No, you would need to disable (or at least modularize) all IDE/ATAPI > support (# CONFIG_IDE is not set). > > But this would _only_ be an option if you actually have a SATA > chipset. If it is truly a PATA controller, then you won't get > /dev/sr0 no matter what you do. [1] > > Maybe you can post your dmesg output? > > -Richard OK, here is dmesg output, the last two lines indicate that: hdc: DMA disabled hdc: ATAPI reset complete What application reseted the DMA, I don't know? --dmesg- Bootdata ok (command line is root=/dev/sda3 pci=noacpi noapic) Linux version 2.6.15-gentoo-r4 ([EMAIL PROTECTED]) (gcc version 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)) #3 SMP Sat Feb 25 17:33:09 MST 2006 BIOS-provided physical RAM map: BIOS-e820: - 0009fc00 (usable) BIOS-e820: 0009fc00 - 000a (reserved) BIOS-e820: 000e4000 - 0010 (reserved) BIOS-e820: 0010 - 1ffb (usable) BIOS-e820: 1ffb - 1ffc (ACPI data) BIOS-e820: 1ffc - 1fff (ACPI NVS) BIOS-e820: 1fff - 2000 (reserved) BIOS-e820: ff78 - 0001 (reserved) ACPI: RSDP (v000 ACPIAM) @ 0x000fa8d0 ACPI: RSDT (v001 A M I OEMRSDT 0x03000509 MSFT 0x0097) @ 0x1ffb ACPI: FADT (v001 A M I OEMFACP 0x03000509 MSFT 0x0097) @ 0x1ffb0200 ACPI: OEMB (v001 A M I OEMBIOS 0x03000509 MSFT 0x0097) @ 0x1ffc0040 ACPI: DSDT (v001 A0277 A0277001 0x0001 MSFT 0x010d) @ 0x Scanning NUMA topology in Northbridge 24 Number of nodes 1 Node 0 MemBase Limit 1ffb Using 63 for the hash shift. Using node hash shift of 63 Bootmem setup node 0 -1ffb On node 0 totalpages: 127885 DMA zone: 2723 pages, LIFO batch:0 DMA32 zone: 125162 pages, LIFO batch:31 Normal zone: 0 pages, LIFO batch:0 HighMem zone: 0 pages, LIFO batch:0 ACPI: PM-Timer IO Port: 0x808 Intel MultiProcessor Specification v1.1 Virtual Wire compatibility mode. OEM ID: ASUSTeK <6>Product ID: <6>APIC at: 0xFEE0 Processor #0 15:15 APIC version 16 I/O APIC #1 Version 3 at 0xFEC0. Setting APIC routing to flat Processors: 1 Allocating PCI resources starting at 3000 (gap: 2000:df78) Checking aperture... CPU 0: aperture @ e800 size 128 MB Built 1 zonelists Kernel command line: root=/dev/sda3 pci=noacpi noapic Initializing CPU#0 PID hash table entries: 2048 (order: 11, 65536 bytes) time.c: Using 3.579545 MHz PM timer. time.c: Detected 1802.396 MHz processor. Console: colour VGA+ 80x25 Dentry cache hash table entries: 65536 (order: 7, 524288 bytes) Inode-cache hash table entries: 32768 (order: 6, 262144 bytes) Memory: 510632k/523968k available (2753k kernel code, 12948k reserved, 1294k data, 228k init) Calibrating delay using timer specific routine.. 3613.38 BogoMIPS (lpj=7226767) Mount-cache hash table entries: 256 CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line) CPU: L2 Cache: 512K (64 bytes/line) CPU 0(1) -> Node 0 -> Core 0 mtrr: v2.0 (20020519) ACPI: setting ELCR to 0e20 (from 0c20) Using local APIC timer interrupts. Detected 12.516 MHz APIC timer. Brought up 1 CPUs time.c: Using PIT/TSC based timekeeping. testing NMI watchdog ... OK. NET: Registered protocol family 16 ACPI: bus type pci registered PCI: Using configuration type 1 ACPI: Subsystem revision 20050902 ACPI: Interpreter enabled ACPI: Using PIC for interrupt routing Linux Plug and Play Support v0.97 (c) Adam Belay pnp: PnP ACPI init pnp: PnP ACPI: found 12 devices SCSI subsystem initialized usbcore: registered new driver usbfs usbcore: registered new driver hub PCI: Probing PCI hardware PCI: Probing PCI hardware (bus 00) Boot video device is :01:00.0 PCI: Using IRQ router default [1106/3227] at :00:11.0 PCI: IRQ 0 for device :00:0f.1 doesn't match PIRQ mask - try pci=usepirqmask agpgart: Detected AGP bridge 0 agpgart: AGP aperture is 128M @ 0xe800 PCI-DMA: Disabling IOMMU. pnp: 00:07: ioport range 0x680-0x6ff has been reserved pnp: 00:07: ioport range 0x290-0x297 has been reserved PCI: Bridge: :00:01.0 IO window: disabled. MEM window: faf0-fbff PREFETCH window: f000-f9ff PCI: Setting latency timer of device :00:01.0 to 64 IA32 emulation $Id: sys_ia32.c,v 1.32 2002/03/24 13:02:28 ak Exp $ Total HugeTLB memory allocated, 0 Installing knfsd (copyright (C)
Re: [gentoo-user] My Gentoo is too secure ... ;)
If the problem is you log straight into KDE, you could boot from the Gentoo CD, and chroot to your system Gabriel Dain -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] resuming emerges
Excellent! thanks a lot, I will give it a go. Iain Buchanan wrote: You can edit /etc/make.conf and add noclean to your FEATURES. This way the temporary stuff in /var/tmp/portage (or wherever it is) will stay behind, and you can say `emerge --resume` and it will continue. HOWEVER: the side effect is that /var/tmp/portage will get very large. I recommend that you say: FEATURES=noclean emerge -u openoffice FEATURES=noclean emerge --resume just for the specific build you want it for. oh yes it is :> However, you can use ccache to save the compilations and you could put the laptop in standby to continue after moving it. This is also a good idea. But I'm affraid those are your only options. not so. You could also install openoffice-bin. You could even setup hibernate, so that you don't have to shutdown. Just hibernate your laptop, and when it starts up again the emerge will continue like it never stopped. HTH, Send instant messages to your online friends http://au.messenger.yahoo.com -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] dd if=/dev/dvd of=backup.iso - DMA related problem
On 3/23/06, Joseph <[EMAIL PROTECTED]> wrote: > That is interesting. > My DVD burner is connected to IDE controller and I have in kernel > enabled both options support: > <*> Include IDE/ATAPI CDROM support > and > <*> SCSI CDROM support > My DVD is recognized as /dev/hdc > > If I disable first option "DE/ATAPI CDROM support" will the drive be > recognized as /dev/sr0 ??? No, you would need to disable (or at least modularize) all IDE/ATAPI support (# CONFIG_IDE is not set). But this would _only_ be an option if you actually have a SATA chipset. If it is truly a PATA controller, then you won't get /dev/sr0 no matter what you do. [1] Maybe you can post your dmesg output? -Richard [1] Technically you could use ide-scsi emulation, but it wouldn't help. -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] My Gentoo is too secure ... ;)
Antoine writes: > # vi groups (or whatever the "correct" way of doing it is) > add your user to wheel I think it is "gpasswd -a wheel". Alex -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] dd if=/dev/dvd of=backup.iso - DMA related problem
On Thu, 2006-03-23 at 20:44 -0700, Richard Fish wrote: > On 3/23/06, Joseph <[EMAIL PROTECTED]> wrote: > > After following several leads from Gentoo folks (including replacing DVD > > cable) I've narrow it down to problem with "dma" resetting itself on > > "eject". > > Hmm, what type of controller is this attached to? > > On my new laptop, I have a PATA DVD burner, but it is ultimately > attached to a SATA chipset. I could not get DMA to work correctly > using the IDE drivers. The solution was to disable all IDE support, > add SCSI CD-ROM support, and let the SATA driver control the drive as > /dev/sr0. > > -Richard That is interesting. My DVD burner is connected to IDE controller and I have in kernel enabled both options support: <*> Include IDE/ATAPI CDROM support and <*> SCSI CDROM support My DVD is recognized as /dev/hdc If I disable first option "DE/ATAPI CDROM support" will the drive be recognized as /dev/sr0 ??? -- #Joseph -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Splash livecd-2006.0 not working
On 3/23/06, Bo Andresen <[EMAIL PROTECTED]> wrote: > root (hd0,1) > Filesystem type is reiserfs, partition type 0x83 > kernel /vmlinuz root=/dev/hda6 video=vesafb-tng:[EMAIL PROTECTED],mtrr,ywrap > spla > sh=verbose,theme:live-cd-2006.0 quiet CONSOLE=/dev/tty1 Did you notice you have a typo here? That should be splash=verbose,theme:livecd-2006.0 ^^ -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] My Gentoo is too secure ... ;)
On Thu, 23 Mar 2006 22:52:58 +0100 Antoine <[EMAIL PROTECTED]> wrote: > so that means log into root before you run X. > # vi groups (or whatever the "correct" way of doing it is) vigr is the right editor for the group file and vipw for passwd. The -s switch makes them edit the shadow file. As the man page says the "programs will set the appropriate locks to prevent file corruption". > add your user to wheel The method I've seen referred to on Gento is gpasswd -a which adds the user to the named group. -- Ian. EOM -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] screen flickers/static
On Fri, 2006-03-24 at 02:33 +, THUFIR HAWAT wrote: > I recently switched from fedora to gentoo, it's a dual boot system. > Never in Fedora, not in windows, but in gentoo, I get screen > flickers/static. strange. Try comparing you xorg.conf files from fedora and gentoo - it may be the video module you're using... -- Iain Buchanan How do I type "for i in *.dvi do xdvi i done" in a GUI? (Discussion in comp.os.linux.misc on the intuitiveness of interfaces.) -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] resuming emerges
On Fri, 2006-03-24 at 03:58 +0100, Rick van Hattem wrote: > On Friday 24 March 2006 02:46, TN wrote: > > Hi all, > > I see that emerge has a resume option - but it only compiles from where > > the the previous emerge was stopped and when you issue a resume, it > > starts at the beginning of the next package to be emerged. > > > > Is it possible to get emerge to continue from where the actual compile > > was broken (ie. not recompile from the package beginning, but rather > > from within the package itself ?) > > I find a constant problem in that large packages take so long to > > compile, that I need to shutdown my laptop before an emerge is complete > > (to go home or whatever), and then I have to start from the beginning > > again.OO takes around 6 hours for me, and it seems that this would > > be reasonable to implement so that emerges could be resumed from the > > last source file where the compilation was halted ? > > The option should be able to ask emerge to start compiling the package > > without un-compressing and cleaning up the last compile I'd assume. > > > No, that's not really possible. oh yes it is :> You can edit /etc/make.conf and add noclean to your FEATURES. This way the temporary stuff in /var/tmp/portage (or wherever it is) will stay behind, and you can say `emerge --resume` and it will continue. HOWEVER: the side effect is that /var/tmp/portage will get very large. I recommend that you say: FEATURES=noclean emerge -u openoffice FEATURES=noclean emerge --resume just for the specific build you want it for. > However, you can use ccache to save the compilations and you could put the > laptop in standby to continue after moving it. This is also a good idea. > But I'm affraid those are your only options. not so. You could also install openoffice-bin. You could even setup hibernate, so that you don't have to shutdown. Just hibernate your laptop, and when it starts up again the emerge will continue like it never stopped. HTH, -- Iain Buchanan Tobacco is a filthy weed, That from the devil does proceed; It drains your purse, it burns your clothes, And makes a chimney of your nose. -- B. Waterhouse -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: KDE version
On Thu, 2006-03-23 at 21:30 -0500, Philip Webb wrote: > > Isn't the solution to have 3 levels: 'testing', 'probation' & 'stable' ? There are 3 levels: Masked, ~ARCH, and ARCH. Masked you can install if you want, like gnome-2.14, but it's your own fault if it kills your system. ~ARCH you can install if you want, it may do bad things, but if so you're probably the first to know about it. File a bug and help move it to ARCH. ARCH is good for everyone else. -- Iain Buchanan Humor in the Court: Q: What is the meaning of sperm being present? A: It indicates intercourse. Q: Male sperm? A. That is the only kind I know. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] dd if=/dev/dvd of=backup.iso - DMA related problem
On 3/23/06, Joseph <[EMAIL PROTECTED]> wrote: > After following several leads from Gentoo folks (including replacing DVD > cable) I've narrow it down to problem with "dma" resetting itself on > "eject". Hmm, what type of controller is this attached to? On my new laptop, I have a PATA DVD burner, but it is ultimately attached to a SATA chipset. I could not get DMA to work correctly using the IDE drivers. The solution was to disable all IDE support, add SCSI CD-ROM support, and let the SATA driver control the drive as /dev/sr0. -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] LG L1730P in 1280x1024 - solved
On 3/23/06, Stefán István <[EMAIL PROTECTED]> wrote: > I changed my Matrox G550 card to a Radeon 7500, executed the Xorg -configure > command, and the created config file works perfectly. It seems that something > was wrong with tha matrox card or with the matrox driver. Yes, it seems so. But if for some reason you wanted to use the matrox card, you could try using the video mode timings shown by xvidtune when running the vesa or radeon driver in the configuration file for the matrox. -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] resuming emerges
On Friday 24 March 2006 02:46, TN wrote: > Hi all, > I see that emerge has a resume option - but it only compiles from where > the the previous emerge was stopped and when you issue a resume, it > starts at the beginning of the next package to be emerged. > > Is it possible to get emerge to continue from where the actual compile > was broken (ie. not recompile from the package beginning, but rather > from within the package itself ?) > I find a constant problem in that large packages take so long to > compile, that I need to shutdown my laptop before an emerge is complete > (to go home or whatever), and then I have to start from the beginning > again.OO takes around 6 hours for me, and it seems that this would > be reasonable to implement so that emerges could be resumed from the > last source file where the compilation was halted ? > The option should be able to ask emerge to start compiling the package > without un-compressing and cleaning up the last compile I'd assume. > > thanks. > Trevor No, that's not really possible. However, you can use ccache to save the compilations and you could put the laptop in standby to continue after moving it. But I'm affraid those are your only options. -- Rick van Hattem Rick.van.Hattem(at)Fawo.nl pgprGy1Z9i8VJ.pgp Description: PGP signature
Re: [gentoo-user] Re: mpg123: Can't open /dev/dsp!
On Tue, Mar 21, 2006 at 08:41:44PM +0100, Simon Kellett wrote > "Walter Dnes" <[EMAIL PROTECTED]> writes: > > > ... mpg123 complains about not being able to open /dev/dsp ... > > Does "mpg123 -a /dev/sound/dsp" work ? Nope. The only change is that now I get "Can't open /dev/sound/dsp!". -- Walter Dnes <[EMAIL PROTECTED]> In linux /sbin/init is Job #1 My musings on technology and security at http://tech_sec.blog.ca -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] How about ieee 1394 was:USB TV / Video capture devices
On Fri, 2006-03-24 at 14:40 +1200, Nick Rout wrote: > I am unclear what you mean here. what is a "Analog to Digital S-VHS > converter." I suspect it has RCA analog video in, but what comes out? > is > it DV (like a DV camera format)? > > If so I suspect you will ned up with a DV format file on your > computer, > not sure if you can see that "live" but it might in kino. > > emerge kino and try it. The Converter has an Analog IN input (RCA-type A/V jack) and output is S-VHS Video Out / Coaxial S/PDIF out / Toslink out So I'm not sure I'll be able to take advantage of it, I think I need RCA to DV converter (with FireWire port) -- #Joseph -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] How to install iplimit?
Hello, I'm still using 2.6.11-r9, but, it appears to be in yours too. From "make menuconfig" under the 2.6.11-r9 it is here: Device Drivers ---> Networking support --> [*] Networking Support Networking options ---> [*] Network packet filtering (replaces ipchains) IP: Netfilter Configuration ---> IP tables support (required for filtering/masq/NAT) limit match support From a 2.6.15-r7 kernel: Networking ---> Networking options ---> [*] Network packet filtering (replaces ipchains) IP: Netfilter Configuration ---> IP tables support (required for filtering/masq/NAT) limit match support The kernel module would be called ipt_limit in both cases. Mariusz Zalewski wrote: Hello I would like to use iplimit in my firewall. I use iptables-1.3.4 with "extensions" USE flag and gentoo-sources-2.6.15-r1 I can't find iplimit module in that kernel: # grep -i iplimit /usr/src/linux/.confg {none} How to install iplimit on my server? What should I do? Maybe there is other module, that can restrict number of connections from define IP address? P.S. Sorry about "crosspost" - I've send this message few days ago to gentoo-security mail list, but nobody reply. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] How about ieee 1394 was:USB TV / Video capture devices
On Thu, 23 Mar 2006 18:10:14 -0700 Joseph wrote: > I have a ieee-1394 card and "Kino" application supports ieee-1394. > I have as well Analog to Digital S-VHS converter. > > But is it possible to have a cable from S-VHS to FireWire 4 or 6pin; to > connect it to ieee-1394 card? I am unclear what you mean here. what is a "Analog to Digital S-VHS converter." I suspect it has RCA analog video in, but what comes out? is it DV (like a DV camera format)? If so I suspect you will ned up with a DV format file on your computer, not sure if you can see that "live" but it might in kino. emerge kino and try it. -- Nick Rout <[EMAIL PROTECTED]> -- gentoo-user@gentoo.org mailing list
[gentoo-user] screen flickers/static
I recently switched from fedora to gentoo, it's a dual boot system. Never in Fedora, not in windows, but in gentoo, I get screen flickers/static. It's not a hardware problem as just a little bit ago I was in windows, no problem. The connections to the monitor and so forth are fine. When I type in, for instance, this window (gmail in firefox) the screen flickers with each keystroke. Also, if I'm in the terminal window, for gnome, and type, same thing. Perhaps flicker is a bad description. To the nake eye a series of horizontal lines flash, about one or two per key stroke. The system monitor isn't showing anything out of the ordinary, low CPU usage and low memory [EMAIL PROTECTED] ~ $ top top - 02:31:52 up 5:55, 2 users, load average: 0.02, 0.16, 0.15 Tasks: 74 total, 1 running, 73 sleeping, 0 stopped, 0 zombie Cpu(s): 4.0% us, 1.0% sy, 0.0% ni, 95.0% id, 0.0% wa, 0.0% hi, 0.0% si Mem:223364k total, 208064k used,15300k free,11912k buffers Swap: 441776k total,0k used, 441776k free,97228k cached PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND 9752 root 15 0 58736 20m 6328 S 2.7 9.5 28:35.53 X 10747 thufir15 0 24416 12m 8616 S 1.7 5.8 0:01.45 gnome-terminal 9839 thufir15 0 17808 8984 6856 S 0.3 4.0 0:00.78 multiload-apple 10753 thufir16 0 2056 1056 816 R 0.3 0.5 0:00.02 top 1 root 16 0 1468 484 424 S 0.0 0.2 0:01.15 init 2 root RT 0 000 S 0.0 0.0 0:00.00 migration/0 3 root 34 19 000 S 0.0 0.0 0:00.00 ksoftirqd/0 4 root RT 0 000 S 0.0 0.0 0:00.00 watchdog/0 5 root 10 -5 000 S 0.0 0.0 0:00.14 events/0 6 root 10 -5 000 S 0.0 0.0 0:00.01 khelper 7 root 11 -5 000 S 0.0 0.0 0:00.01 kthread 9 root 10 -5 000 S 0.0 0.0 0:00.02 kblockd/0 10 root 20 -5 000 S 0.0 0.0 0:00.00 kacpid 121 root 20 0 000 S 0.0 0.0 0:00.00 pdflush 122 root 15 0 000 S 0.0 0.0 0:00.00 pdflush 124 root 17 -5 000 S 0.0 0.0 0:00.00 aio/0 123 root 25 0 000 S 0.0 0.0 0:00.00 kswapd0 [EMAIL PROTECTED] ~ $ date Fri Mar 24 02:31:56 GMT 2006 [EMAIL PROTECTED] ~ $ thanks, Thufir -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: KDE version
060324 Hemmann, Volker Armin wrote: > KDE 3.4.3 has its bugs too.. a lot of them fixed in the 3.5 releases. > 3.5.1 is not in stable, and 3.5.2 is already looming around the corner Isn't the solution to have 3 levels: 'testing', 'probation' & 'stable' ? 'Testing' would be literally that, asking for feedback from users; 'probation' wb already tested for a defined period -- say 30 days -- without any bugs appearing which are likely to affect typical users; 'stable' wb firmly believed to be free of any bugs. KDE 3.5.1 would belong in 'probation' at present, 3.4.3 might be 'stable' depending on how many bugs it's known to have. -- ,, SUPPORT ___//___, Philip Webb : [EMAIL PROTECTED] ELECTRIC /] [] [] [] [] []| Centre for Urban & Community Studies TRANSIT`-O--O---' University of Toronto -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] big trouble with emerge
yes mike, I had, when it was rebuild the metadata after --sync it crashs the first time. now I am in trouble with my instalation. On 3/23/06, Michael Crute <[EMAIL PROTECTED]> wrote: > On 3/23/06, Allan Spagnol Comar <[EMAIL PROTECTED]> wrote: > > Hi list wise guys, I am trying to run emerge --metadata on a fresh > > installed gentoo box and all I am receiving is segmentation fault > > What Can I do, I can not emerge the rest of the systems I have to use > > because emerge stops with segmentation fault every time .. :( > > Just a silly question, but did you emerge --sync first? > > -Mike > > -- > > Michael E. Crute > http://mike.crute.org > > It is a mistake to think you can solve any major problems just with potatoes. > --Douglas Adams > > -- > gentoo-user@gentoo.org mailing list > > -- An application asked: "Requeires Windows 9x, NT4 or better", so I´ve installed Linux -- gentoo-user@gentoo.org mailing list
[gentoo-user] resuming emerges
Hi all, I see that emerge has a resume option - but it only compiles from where the the previous emerge was stopped and when you issue a resume, it starts at the beginning of the next package to be emerged. Is it possible to get emerge to continue from where the actual compile was broken (ie. not recompile from the package beginning, but rather from within the package itself ?) I find a constant problem in that large packages take so long to compile, that I need to shutdown my laptop before an emerge is complete (to go home or whatever), and then I have to start from the beginning again.OO takes around 6 hours for me, and it seems that this would be reasonable to implement so that emerges could be resumed from the last source file where the compilation was halted ? The option should be able to ask emerge to start compiling the package without un-compressing and cleaning up the last compile I'd assume. thanks. Trevor Send instant messages to your online friends http://au.messenger.yahoo.com -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] KDE version
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Boyd Stephen Smith Jr. wrote: > On Tuesday 21 March 2006 16:40, "Hemmann, Volker Armin" > <[EMAIL PROTECTED]> wrote about 'Re: [gentoo-user] KDE > version': >> On Tuesday 21 March 2006 22:12, Thierry de Coulon wrote: >>> On Tuesday 21 March 2006 21.13, [EMAIL PROTECTED] wrote: To-day I installed kdebase using "emerge kdebase". But the installed version was 3.4.3. Is it right? Did not KDE reach 3.5 version? >>> I did not sync recently but (on my amd64 machine) emerge --pretend >>> =kde-3.5.0 shows the package are still masked with keyword. >> which is quite sad - KDE 3.5.1 is out for ages! > > The KDE team is a bunch of weenies. :P > > Seriously, I think they hold package releases (even point releases) in > package.mask and ~ARCH too long. HOWEVER, they are provide (IIRC) both > split and monolithic ebuilds, which is quite a bit of work to get > completely right. > >> But the times, that gentoo was pretty actual in the stable tree are >> over. > > You do realize the above sentence makes no freakin' sense, right? > >> Is this so bad with gnome too? > > > What's gnome? > > Just a note: KDE dev don't decide whenever it becomes to ARCH instead of ~ARCH, that is an ARCH gentoo maintainers. They are supposed to be the ARCH specialists. When they think some app is stable in their ARCH, it will be moved to ARCH from ~ARCH. But if you wanna have the latest packages, just ACCEPT_KEYWORDS="~ARCH" where ARCH is your computers' architecture. Maybe your system will be a little more unstable, but from my point of view, it is still stable using ~x86 (mine haven't broken yet). Bye !! Rafael Fernández López. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEI1Qc9RRlaicc3IERAt6vAJ4wk9jf6jFgzHTb9ZS1dXSLxxiWsQCcDVLJ NGm98P+IE3BgyRIIP1JWjK0= =SL08 -END PGP SIGNATURE- -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] sudo echo
On Thursday 23 March 2006 23:48, JimD wrote: > addkey() > { > sudo sh -c "echo $* >> /etc/portage/package.keywords" > } For keywording I prefer to use this script: http://users.cybercity.dk/~dsl89966/keix It allows me to do: $ eix porth * app-portage/porthole Available versions: ~0.4.1 [M]0.5.0 Installed: none Homepage:http://porthole.sourceforge.net Description: A GTK+-based frontend to Portage Found 1 matches $ sudo keix porth Do you wish to add '=app-portage/porthole-0.4* ~x86' to package.keywords? (Yes/no) Adding '=app-portage/porthole-0.4* ~x86' to package.keywords $ Of course it requires that app-portage/eix is installed and updated. -- Bo Andresen -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] How about ieee 1394 was:USB TV / Video capture devices
On Fri, 2006-03-24 at 09:40 +1200, Nick Rout wrote: > On Thu, 23 Mar 2006 12:22:00 -0700 > Joseph wrote: > > > Are there any USB type TV / Video capture devices that works with Linux? > > > > -- > > #Joseph > > >From the mythtv docs: > > "USB Capture Devices. > > The Plextor ConvertX PVR devices are supported through Linux drivers > available from http://www.plextor.com/english/support/LinuxSDK.htm. > MythTV uses the Plextor to capture hardware encoded MPEG-4, so the host > CPU requirements are low." That would do it with a bit of tweaking. All I want is to connect my Video Microscope (that has standard RCA Rack) to TV IN Card to see a live picture and be able to capture a frame. I have a ieee-1394 card and "Kino" application supports ieee-1394. I have as well Analog to Digital S-VHS converter. But is it possible to have a cable from S-VHS to FireWire 4 or 6pin; to connect it to ieee-1394 card? -- #Joseph -- gentoo-user@gentoo.org mailing list
[gentoo-user] Splash livecd-2006.0 not working
I did follow this guide a long time ago and again yesterday. http://gentoo-wiki.com/HOWTO_fbsplash When I use emergence as theme everything is working just like it is supposed to. But when I change to livecd-2005.1 or livecd-2006.0 (I think any theme that has activity instead of just a picture) I get this error during bootup: = Booting 'Gentoo Linux' root (hd0,1) Filesystem type is reiserfs, partition type 0x83 kernel /vmlinuz root=/dev/hda6 video=vesafb-tng:[EMAIL PROTECTED],mtrr,ywrap spla sh=verbose,theme:live-cd-2006.0 quiet CONSOLE=/dev/tty1 [Linux-bzImage, setup=0x1c00, size=0x19d4cd] initrd /boot/fbsplash-livecd-2006.0-1400x1050 [Linux-initrd @ 0x1ff68000, 0x87c57 bytes] Uncompressing Linux... Ok, booting the kernel. Can't open config file /etc/splash/live-cd-2006.0/1400x1050.cfg. Failed to load image (null). Failed to get verbose splash image. = >From grub: = title Gentoo Linux root (hd0,1) kernel /vmlinuz root=/dev/hda6 video=vesafb-tng:[EMAIL PROTECTED],mtrr,ywrap splash=verbose,theme:live-cd-2006.0 quiet CONSOLE=/dev/tty1 initrd /boot/fbsplash-livecd-2006.0-1400x1050 = = # ls -l /boot [...] -rw-r--r-- 1 root root 556119 Mar 23 18:42 fbsplash-livecd-2006.0-1400x1050 lrwxrwxrwx 1 root root 26 Mar 23 00:03 vmlinuz -> vmlinuz-2.6.15-suspend2-r8 -rw-r--r-- 1 root root 1700557 Mar 23 00:03 vmlinuz-2.6.15-suspend2-r8 [...] = Until yesterday I was using gentoo-sources but that has not changed anything. I have had this problem for a long time. Obviously something is wrong with the initramfs. It was created by this command: # splash_geninitramfs -g /boot/fbsplash-livecd-2006.0-1400x1050 -r 1400x1050 -v livecd-2006.0 If while booted a type: # splash_manager --theme livecd-2006.0 -c set the splash theme is loaded successfully on tty1. Any ideas? -- Bo Andresen -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] How to tar?
Michael Kintzios wrote: > As things currently are gentoo_usr.tgz is in /dev/hda2, > which is destined to house the /usr/portage directory. /dev/hda2 > is a 4.0G partition with only 74M available. How big is gentoo_usr.tgz? What's the rest on /dev/hda2? > /dev/hda3 will have the rest of the filesystem > (and the remaining /usr directory). What's on /dev/hda3 now? How big is it? What's on /dev/hda1? Can't you move the gentoo_usr.tgz to another roomier partition? If I get it right, /dev/hda3 is destined to become your /, and /dev/hda2 your /usr/portage. Have you already upacked the rest of / on /dev/hda3? How about retarring it and untarring it after gentoo_usr.tgz? > what I think is needed > here is untarring of the archive, while untarred data is > dynamically deleted immediately after untarred to make space for > more data to be untarred . . . do I make sense? Yes, but GNU tar cannot do that, it can only do one command at a time, either --extract or --delete or ... Benno -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: KDE version
On Thursday 23 March 2006 18:22, Christopher O'Neill wrote: > I've been using 3.5.1 for a while also, imo it should stay in unstable > for now. There are a few bugs with the desktop, Konqueror and > Kaffeine also has a habit of seg-faulting. I am considering > rebuilding it with the debug flags to I can submit some useful bug > reports. > > I think packages in stable should be stable as the name says, not > simply "older than 30 days" or whatever ;-) > but it does not become 'better' by staying in unstable. And KDE 3.4.3 has its bugs too.. a lot of them fixed in the 3.5 releases. 3.5.1 is not in stable, and 3.5.2 is already looming around the corner -- gentoo-user@gentoo.org mailing list
[gentoo-user] pump - dhcp - reject: msgtyp: 6 ??
Hello all I am having a problem with pump apparently failing to renew leases. See logs.. Mar 23 07:11:03 arrakis pumpd[9212]: failed to renew lease for device eth0 Mar 23 07:11:03 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:11:08 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:11:15 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:11:27 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:11:34 arrakis pumpd[9212]: failed to renew lease for device eth0 Mar 23 07:11:34 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:11:37 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:11:44 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:11:57 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:12:04 arrakis pumpd[9212]: failed to renew lease for device eth0 Mar 23 07:12:04 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:12:06 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:12:12 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:12:24 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:12:33 arrakis pumpd[9212]: failed to renew lease for device eth0 Mar 23 07:12:33 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:12:36 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:12:42 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:12:53 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:13:03 arrakis pumpd[9212]: failed to renew lease for device eth0 Mar 23 07:13:03 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:13:07 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:13:14 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:13:28 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:13:33 arrakis pumpd[9212]: failed to renew lease for device eth0 Mar 23 07:13:33 arrakis pumpd[9212]: PUMP: sending discover Mar 23 07:13:34 arrakis pumpd[9212]: got dhcp offer Mar 23 07:13:34 arrakis pumpd[9212]: PUMP: sending second discover Mar 23 07:13:35 arrakis pumpd[9212]: PUMP: got an offer Mar 23 07:13:35 arrakis pumpd[9212]: PUMP: got lease Mar 23 07:13:35 arrakis pumpd[9212]: intf: device: eth0 Mar 23 07:13:35 arrakis pumpd[9212]: intf: set: 416 Mar 23 07:13:35 arrakis pumpd[9212]: intf: bootServer: 192.168.1.1 Mar 23 07:13:35 arrakis pumpd[9212]: intf: reqLease: 43200 Mar 23 07:13:35 arrakis pumpd[9212]: intf: ip: 192.168.1.105 Mar 23 07:13:35 arrakis pumpd[9212]: intf: next server: 192.168.1.1 Mar 23 07:13:35 arrakis pumpd[9212]: intf: netmask: 255.255.255.0 Mar 23 07:13:35 arrakis pumpd[9212]: intf: gateways[0]: 192.168.1.1 Mar 23 07:13:35 arrakis pumpd[9212]: intf: numGateways: 1 Mar 23 07:13:35 arrakis pumpd[9212]: intf: dnsServers[0]: 68.87.72.130 Mar 23 07:13:35 arrakis pumpd[9212]: intf: dnsServers[1]: 68.87.77.130 Mar 23 07:13:35 arrakis pumpd[9212]: intf: numDns: 2 Mar 23 07:13:35 arrakis pumpd[9212]: intf: domain: hsd1.il.comcast.net. Mar 23 07:13:35 arrakis pumpd[9212]: intf: broadcast: 192.168.1.255 Mar 23 07:13:35 arrakis pumpd[9212]: intf: network: 192.168.1.0 Mar 23 07:13:35 arrakis pumpd[9212]: configured interface eth0 Mar 23 07:13:39 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:13:46 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:13:59 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:14:05 arrakis pumpd[9212]: failed to renew lease for device eth0 Mar 23 07:14:35 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:14:39 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:14:45 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:14:56 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:15:05 arrakis pumpd[9212]: failed to renew lease for device eth0 Mar 23 07:15:35 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:15:40 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:15:47 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:15:59 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:16:06 arrakis pumpd[9212]: failed to renew lease for device eth0 Mar 23 07:16:36 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:16:39 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:16:44 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:16:56 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:17:06 arrakis pumpd[9212]: failed to renew lease for device eth0 Mar 23 07:17:36 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:17:39 arrakis pumpd[9212]: reject: msgtyp: 6 Mar 23 07:17:46 arrakis pumpd[9212]: reject: msgtyp: 6 This is just a small chunk. The 'reject: msgtyp: 6' continues for hours prior as well. These errors always begin at certain times of the day: 0600 and 1800 (6AM and 6PM) which makes me suspect that it is something external to my system that is causing the errors. Also, as you can see in the above example, I re-initialized pump at 07:13:33 and it very clearly states that it got a lease, though the errors persist afterwards. Before I re-initialized pump, my applications were behaving as though they had no internet connection (Gaim and Firefox), and after I re-initialized, they found the net just fine, even though those errors continued. I've searched the Gentoo forums and Googled, for 'reject msgtyp 6' and tried to find an error table of some sort for p
Re: [gentoo-user] Have portage lost its memory?
On Thu, Mar 23, 2006 at 03:07:08PM +0100, Jules Colding wrote: > On Thu, 2006-03-23 at 14:36 +0100, Toby 'qubit' Cubitt wrote: > > > > >Having an SSH session on another machine and forgetting ll about it. > > > > > > > > > >Please forgive my stupidity here. > > > > > > > > > >Sorry, > > > > > jules > > > > > > > > > I thought only I could do that. Funny ain't it? > > > > > > Not when you do it in public ;-) > > > > I used to give the shell prompts different colours on different > > machines to help avoid this. Or rather, the local one would always be > > the same colour, but shells under ssh sessions were colour-coded by > > machine. > > > > I've lost the script I wrote for this somewhere in the mists of time > > (if I remember right, it was copied and hacked from a bash prompt > > example that colour-coded according to the login type: ssh, telnet, > > local, etc.) > > > > Someday I might get round to recreating it... > > That would be helpful. Here you go. It also checks if you're root. Save it as something suitable somewhere in your $PATH, (e.g. ~/bin/bash_prompt), modify to suit your setup, then do: source ~/bin/bash_prompt colour_code_prompt unset colour_code_prompt either from the shell or in your .bashrc to load it. Use at your own risk, since I've only just written it, and haven't tested it very heavily! (When I've used it a bit to check it works properly, I might document it a bit and put it on my web site.) Toby -- bash_prompt: -- #!/bin/bash function colour_code_prompt { # set up some colour escape variables BLUE="\[\033[1;34m\]" GREEN="\[\033[1;32m\]" CYAN="\[\033[1;36m\]" RED="\[\033[1;31m\]" MAGENTA="\[\033[1;35m\]" YELLOW="\[\033[1;33m\]" WHITE="\[\033[1;37m\]" GREY="\[\033[00m\]" # if logged in via ssh, choose colours according to host and user if [ -n "$SSH_CLIENT" ]; then if [ "$EUID" == "0" ]; then case "$(hostname -f)" in box1.some.domain) COLOUR1=$RED COLOUR2=$GREEN ;; box2*) COLOUR1=$RED COLOUR2=$YELLOW ;; *) COLOUR1=$RED COLOUR2=$MAGENTA ;; esac else case "$(hostname -f)" in box1.some.domain) COLOUR1=$GREEN COLOUR2=$CYAN ;; box2*) COLOUR1=$YELLOW COLOUR2=$BLUE ;; *.some.other.domain) COLOUR1=$CYAN COLOUR2=$RED ;; *) COLOUR1=$MAGENTA COLOUR2=$BLUE ;; esac fi # if logged in locally as root, use different colours elif [ "$EUID" == "0" ]; then COLOUR1=$RED COLOUR2=$BLUE # otherwise, use default colours else COLOUR1=$GREEN COLOUR2=$BLUE fi # set the prompt export PS1="[EMAIL PROTECTED] $COLOUR2\w \$ $GREY" } -- PhD Student Quantum Information Theory group Max Planck Institute for Quantum Optics Garching, Germany email: [EMAIL PROTECTED] web: www.dr-qubit.org -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] sudo echo
On Thu, 23 Mar 2006 23:12:38 + David Morgan <[EMAIL PROTECTED]> wrote: > On 23:38 Thu 23 Mar , Renat Golubchyk wrote: > > Careful with those quotation marks - you might want to escape > > them ;-) I would use single quotes on the outside to avoid the > > confusion: > > > > sudo 'echo "app-portage/porthole ~*" > > >> /etc/portage/package.keywords' > > > > > Do that and it'll say > > sudo: echo "app-portage/porthole ~*" > >> /etc/portage/package.keywords: command not found > > This has been discussed on here before. > > The problem is that if you do `sudo echo foo > bar`, the echo is being > run as root, but the writing to bar isn't. Alright, then run sudo bash -c 'echo some_string >> some_file' No problem here :) Cheers, Renat -- Probleme kann man niemals mit derselben Denkweise loesen, durch die sie entstanden sind. (Einstein) signature.asc Description: PGP signature
Re: [gentoo-user] My Gentoo is too secure ... ;)
> > On Thu, 23 Mar 2006 23:16:54 +0100 > Etaoin Shrdlu wrote: > >> On Thursday 23 March 2006 22:42, Nick Rout wrote: >> >> > which you probably cannot do without logging in as root at a console >> > as once you log into X as user, you cannot su. chicken egg chicken >> > egg. >> >> Not necessarily: if you use kde, konsole has a "root shell" feature. > > Which I suspect only works if you can use su, although i am not 100% on > that. > dosn't su just have its own /etc/pam.d/su file that has pam_rootok.so in it so root can just su without a passwd and it also has a module that checks if they are in the wheel group. > >> -- >> gentoo-user@gentoo.org mailing list > > -- > Nick Rout <[EMAIL PROTECTED]> > > -- > gentoo-user@gentoo.org mailing list > > -- gentoo-user@gentoo.org mailing list
[gentoo-user] Re-caching dependency info (mtimes differ)...
Hi all, I needed to restart sendmail more than once after upgrade and noticed the script always produces these warnings: # /etc/init.d/sendmail restart * Re-caching dependency info (mtimes differ)... * Stopping sendmail ... [ok] * Re-caching dependency info (mtimes differ)... * Re-caching dependency info (mtimes differ)... * Re-caching dependency info (mtimes differ)... * Re-caching dependency info (mtimes differ)... * Starting sendmail ... [ok] What might be wrong here? TIA, Sasha -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] alps touchpad problem
On 3/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > AZixMapping doesn't work. > I think it's for mouse driver of x, not for synaptics drivers! Hmm, your other choice is xmodmap. Something like: xmodmap -e "pointer = 1 2 3 5 4" might work. -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] sudo echo
On 23:38 Thu 23 Mar , Renat Golubchyk wrote: > Careful with those quotation marks - you might want to escape them ;-) > I would use single quotes on the outside to avoid the confusion: > > sudo 'echo "app-portage/porthole ~*" >> /etc/portage/package.keywords' > Do that and it'll say sudo: echo "app-portage/porthole ~*" >> /etc/portage/package.keywords: command not found This has been discussed on here before. The problem is that if you do `sudo echo foo > bar`, the echo is being run as root, but the writing to bar isn't. In this case, you might like to look at app-portage/flagedit (it's less typing for a start). -- djm -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] My Gentoo is too secure ... ;)
On Thu, 23 Mar 2006 23:08:36 + b.n. wrote: > >>I think you just need to add the user to the wheel group. > >>HTH > > > > which you probably cannot do without logging in as root at a console as > > once you log into X as user, you cannot su. chicken egg chicken egg. > > ?!? > where's the problem? > logins as root at the tty --> adds user to wheel --> startx --> everyone > is happy. Oh I agree, I only meant that trying to do it from within a user login (including X) created the chicken/egg problem. Also of course you have to remember that you need to log in afresh after being added to a new group! -- Nick Rout <[EMAIL PROTECTED]> -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] My Gentoo is too secure ... ;)
On Thursday 23 March 2006 17:08, Nick Rout <[EMAIL PROTECTED]> wrote about 'Re: [gentoo-user] My Gentoo is too secure ... ;)': > On Thu, 23 Mar 2006 23:16:54 +0100 > Etaoin Shrdlu wrote: > > Not necessarily: if you use kde, konsole has a "root shell" feature. > > Which I suspect only works if you can use su, although i am not 100% on > that. While KDE may do some autodetection re: this, my "Root Shell" (uncustomized) from Konsole runs 'su -'; which will be a problem if you want to use sudo instead. (Or can't su for some reason.) If you do, you can edit the existing session or create a new session to run 'sudo -s'. I use this nice feature to have a session that runs "su - -c 'screen -x -R -s /bin/bash'" (and a similar one for non-root). I don't know show well (if at all) screen runs under sudo, but the equivalent should be something along the lines of 'sudo screen -x -R -s /bin/bash' Hrm, after writing this I realize I'm not in the "sudo" thread anymore. *shrug* Maybe this is useful information to someone. -- "If there's one thing we've established over the years, it's that the vast majority of our users don't have the slightest clue what's best for them in terms of package stability." -- Gentoo Developer Ciaran McCreesh -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] sudo echo
On Thursday 23 March 2006 16:33, JimD <[EMAIL PROTECTED]> wrote about 'Re: [gentoo-user] sudo echo': > If you type something like the following: > > "> /tmp/myfile.foo" > > It will truncate the file. I use it when I want to clear out logs real > quick. I can sudo su and then just type (without the quotes): > > "> /var/log/mail/current" > > and have a clean log. However to do that I need to be root and the > only thing I found is to sudo su and then type the command and then > exit from root. Try: sudo /bin/bash -c '> /var/log/mail/current' or, if that doesn't work: sudo /bin/bash -c ': > /var/log/mail/current' Shells handle redirection and pipes, sudo does not, AFAIK. -- "If there's one thing we've established over the years, it's that the vast majority of our users don't have the slightest clue what's best for them in terms of package stability." -- Gentoo Developer Ciaran McCreesh -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] How to tar?
On Thursday 23 March 2006 16:31, Bo Andresen <[EMAIL PROTECTED]> wrote about 'Re: [gentoo-user] How to tar?': > Perhaps that link wasn't as useful to you as I thought when I > transmitted it. Here are a couple of other examples. I think it requires > GNU tar. > > This compacts data recursively from /from/path and using gzip, pipes it > through ssh and extracts it into /to/path: > # tar -zcf - /from/path | ssh desktop.homelinux.com "tar -C /to/path > -xzf -" Or, for non-GNU tar: tar cf - /from/path | gzip -c | ssh desktop.homelinux.com 'cd /to/path; gunzip -c | tar xf -' (Some non-gnu tars probably don't even need the 'f -' parts...) > And this just pipes through ssh and extracts using bunzip2 to /to/path > on remote machine > # cat file.tar.bz2 | ssh desktop.homelinux.com "tar -C /to/path -xjf -" Or for non-GNU tar without the unnecessarily spawned process: ssh desktop.homelinux.com 'cd /to/path; bunzip2 -c | tar xf -' < file.tar.bz2 (Each of my examples is meant to be a single line.) -- "If there's one thing we've established over the years, it's that the vast majority of our users don't have the slightest clue what's best for them in terms of package stability." -- Gentoo Developer Ciaran McCreesh -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: KDE version
On Thursday 23 March 2006 11:22, "Christopher O'Neill" <[EMAIL PROTECTED]> wrote about '[gentoo-user] Re: KDE version': > I've been using 3.5.1 for a while also, imo it should stay in unstable > for now. There are a few bugs with the desktop, Konqueror and > Kaffeine also has a habit of seg-faulting. I am considering > rebuilding it with the debug flags to I can submit some useful bug > reports. > > I think packages in stable should be stable as the name says, not > simply "older than 30 days" or whatever ;-) It's not /simply/ older than 30 days. They have to be ~ARCH for /at least/ 30 days, so that ~ARCH users have plenty of time to find and file bugs that exist. It's rather hard to say a package is stable before it's gone through the ~ARCH users cleanly, so I'd say that "stable" implies "older than 30 days" therefore "stable and older than 30 days" == "stable". So, really, stable gentoo packages are stable as the name says. :) (That said, I love my ~amd64 machine; but I regularly upgrade and have enough time to file most to all of the bugs I find.) -- "If there's one thing we've established over the years, it's that the vast majority of our users don't have the slightest clue what's best for them in terms of package stability." -- Gentoo Developer Ciaran McCreesh -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] My Gentoo is too secure ... ;)
On Thu, 23 Mar 2006 23:16:54 +0100 Etaoin Shrdlu wrote: > On Thursday 23 March 2006 22:42, Nick Rout wrote: > > > which you probably cannot do without logging in as root at a console > > as once you log into X as user, you cannot su. chicken egg chicken > > egg. > > Not necessarily: if you use kde, konsole has a "root shell" feature. Which I suspect only works if you can use su, although i am not 100% on that. > -- > gentoo-user@gentoo.org mailing list -- Nick Rout <[EMAIL PROTECTED]> -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Hosted server as distcc machine
On Wednesday 22 March 2006 17:10, Grant <[EMAIL PROTECTED]> wrote about 'Re: [gentoo-user] Hosted server as distcc machine': > > > Is there anything wrong with > > > making a remote machine [a] distcc system? > > > > Not really, but you do need to realize that distcc doesn't guarantee > > that jobs will be sent to the remote machines and will not prevent > > jobs from being run locally. > > Good to know for sure. I was kinda surprised at the behavior. I was sort of hoping distcc would just sort of "hold" the job until a slot opened up. It's not a big deal, but something that you should be aware of. > > Also, distccd is a wide-open security hole. > > Not good. The remote machine I'm considering using distcc on is my > business's server. I can't have break-ins there. Then I don't suggest distccd open to the internet (or any public network) -- it was never designed to be secure. It's not a big target ATM for hackers AFAIK, but it's still a large vulnerability. > > It's probably better to use distcc over ssh, using an ssh-agent and > > PKI authentication. > > So using distcc along with ssh and PKI would be sufficient to prevent > the rooted box mentioned above? It won't /completely/ prevent it. But, it will bring down the risk significantly. Random attackers will no longer simply be able to spoof IPs, instead the attacker will have to have the username and private key of a user known to have shell access. (Malicious users or a healthy dose of paranoia may force you to limit shell access anyway.) > How would ssh and PKI be set up in > the workflow? It isn't mentioned here: > http://www.gentoo.org/doc/en/distcc.xml Yeah, I started with that document, too. distcc/ssh/PKI is not covered, since it is moderately advanced. 1) On the server, set up the shell account that will use distcc via ssh. 2) On the client, generate the private key for that account and use ssh-copy-id to give the server the public key. Please, please, give your private key a good passphrase -- I've seen some people use an empty passphrase! 3) On the server, if possible, disable password logins to force the use of the private key for that user. 4) On the client, add a line like [EMAIL PROTECTED] to your distcc_hosts. You can leave out the shell_account part if you want to log in to the server as the user invoking distcc, but you must include the @ since that's how distcc knows the host is accessed via ssh. You can add a :port section if the server runs ssh on a port other than 22; You can add a /limit section (after or in lieu of the :port section) to have the client limit the number of distcc jobs that will be sent to the server 5) Prior to invoking distcc on the client, start an ssh-agent (I prefer the keychain "meta-"agent.) and optionally add your private key to the agent. (If you don't start an agent, each compile that goes to an ssh host will ask for a password -- very troublesome with parallel make; If you don't add your private key to the agent, you'll get prompted for the passphrase the first time you need a key -- still moderately troublesome.) There is no need to run distccd on the server at all. You /will/ need sshd. Remember, since these are standard ssh connections, you'll limit the number of simultaneous jobs on the server by limiting the number of simultaneous ssh logins -- not by using any distccd settings. As far as compile jobs from cron, I just don't suggest them. If you /have/ to use them, have them compile locally. If they /have/ to use your distcc hosts, you'll have to figure out some way to give your cron jobs access to your private key without compromising it's security -- not an easy feat. -- "If there's one thing we've established over the years, it's that the vast majority of our users don't have the slightest clue what's best for them in terms of package stability." -- Gentoo Developer Ciaran McCreesh -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: fstab
On Thu, 23 Mar 2006 21:08:33 + (UTC), James wrote: > so I should make my /etc/fstab look like this? > > /dev/hdc /mnt/?auto noauto,user0 0 > /dev/hdd /mnt/cdromauto noauto,user0 0 > > I also have hal/ivman/dbus installed. If you use ivman (or KDE's HAL-based media handling) you don't need anything in fstab, unless you want to override the mount points used by ivman. -- Neil Bothwick PROSTITUTE: Receiver of swollen goods. signature.asc Description: PGP signature
Re: [gentoo-user] autofs, supermount, submount... which is best for Gentoo?
On Wed, 13 Oct 2004, Jochen Schalanda wrote: From: Jochen Schalanda <[EMAIL PROTECTED]> Subject: Re: [gentoo-user] autofs, supermount, submount... which is best for Gentoo? Newsgroups: linux.gentoo.user On 10/13/2004 11:10 PM, Felix Tiede wrote: submount is supposed to supersede supermount as supermount is running in kernel-space, while submount is a user-space-tool. I think that is not quite correct. submount is a kernel module, hence it runs in kernel space. A userspace solution for automounting would be dbus+hal+ivman or gnome-volume-manager. I tried supermount, submount, and dbus+hal+ivman and at the moment I like submount best since it perfectly fits my needs. But as already said, all the programs (automount, supermount, submount, ivman) have a slightly different featureset, so one should really try them all and decide afterwards which one to choose. Jochen Very informative, thanks. I think I'll go with submount. -Thufir -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] sudo echo
On Thursday 23 March 2006 23:38, Renat Golubchyk wrote: > On Thu, 23 Mar 2006 18:27:46 -0300 "Daniel da Veiga" > > <[EMAIL PROTECTED]> wrote: > > Sudo takes a command as parameter, enclose the whole command in quotes > > and try again, like this: > > > > sudo "echo "app-portage/porthole ~*" >> /etc/portage/package.keywords" > >^ ^ ^ ^ > > Careful with those quotation marks - you might want to escape them ;-) > I would use single quotes on the outside to avoid the confusion: > > sudo 'echo "app-portage/porthole ~*" >> /etc/portage/package.keywords' Yeah, and the neat thing ... it still doesn't work... ;) As Daniel admitted in reply to Hollys mail in this thread he had an alias for sudo. -- Bo Andresen -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: dd if=/dev/dvd of=backup.iso - DMA related problem
On Thu, 2006-03-23 at 17:25 -0500, JimD wrote: > On Thu, 23 Mar 2006 14:26:20 -0700 > Joseph <[EMAIL PROTECTED]> wrote: > > > Before ejecting put any CD / DVD disk IN and run: > > dd if=/dev/hdc of=backup.iso or > > cat /dev/hdc >backup.iso > > > > When finished run "eject ..." > > and > > hdparm /dev/hdc > > > > See if the parameter "using_dma" was reset. > > [EMAIL PROTECTED] # dd if=/dev/hdc of=backup.iso > CTRL+C > 37824+0 records in > 37824+0 records out > > /tmp > [EMAIL PROTECTED] # ls -l backup.iso > -rw-r--r-- 1 root root 19M Mar 23 17:20 backup.iso > > [EMAIL PROTECTED] # hdparm /dev/hdc > /dev/hdc: > IO_support = 1 (32-bit) > unmaskirq= 1 (on) > using_dma= 1 (on) > keepsettings = 0 (off) > readonly = 0 (off) > readahead= 256 (on) > HDIO_GETGEO failed: Invalid argument > > DMA is still on. I don't know why I always get that "HDIO_GETGEO > failed" error. > > Do you have another CD/DVD drive you can try? Are you using SCSI > emulation? > > I am using kernel 2.6.15-gentoo-r7 > > Jim Did you do "eject /dev/hdc between dd and hdparm? dd if=/dev/hdc of=backup.iso eject dev/hdc hdparm /dev/hdc Yes, I've tried this combination on two different machines with two different drives and DMA gests rest on both. amd64 + BenQ DVD x86 + Plexwriter I'm using kernel 2.6-15 -- #Joseph -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] My Gentoo is too secure ... ;)
> > I think you just need to add the user to the wheel group. > > HTH > > which you probably cannot do without logging in as root at a console as > once you log into X as user, you cannot su. chicken egg chicken egg. Thats true... However: > I can login as root at the text console. useradd -G wheel *name* *password* Gabriel -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] sudo echo
On Fri, 24 Mar 2006 09:45:16 +1200, Nick Rout wrote: > the elevation of privilege does not seem to survive the redirection. I > suspect you need to know more than I do about the way redirection is > handled by the shell to explain it. Redirection is applied before the command is executed, so you are redirecting the output of sudo. It's the same as if you'd typed sudo >>/some/file somecommand -- Neil Bothwick If you only have a hammer, you tend to see every problem as a nail. * Maslow signature.asc Description: PGP signature
Re: [gentoo-user] sudo echo
On Thu, 23 Mar 2006 18:27:46 -0300 "Daniel da Veiga" <[EMAIL PROTECTED]> wrote: > Sudo takes a command as parameter, enclose the whole command in quotes > and try again, like this: > > sudo "echo "app-portage/porthole ~*" >> /etc/portage/package.keywords" ^ ^ ^ ^ Careful with those quotation marks - you might want to escape them ;-) I would use single quotes on the outside to avoid the confusion: sudo 'echo "app-portage/porthole ~*" >> /etc/portage/package.keywords' Cheers, Renat -- Probleme kann man niemals mit derselben Denkweise loesen, durch die sie entstanden sind. (Einstein) signature.asc Description: PGP signature
Re: [gentoo-user] How to tar?
On Thursday 23 March 2006 22:52, Bo Andresen wrote: > On Thursday 23 March 2006 21:24, Michael Kintzios wrote: > > What should I run to untar the rest of /usr (excluding /usr/portage) into > > /dev/hda3 and at the same time delete it from within the gentoo_usr.tgz > > archive, so that I get some space in /dev/hda2 to untar /usr/portage? > > Really, what I think is needed here is untarring of the archive, while > > untarred data is dynamically deleted immediately after untarred to make > > space for more data to be untarred . . . do I make sense? > > You don't have to scp the archieve to the machine before unpacking it. > > http://gentoo-wiki.com/HOWTO_Backup#Securely_backing_up_a_filesystem_on_a_r >emote_machine > Perhaps that link wasn't as useful to you as I thought when I transmitted it. Here are a couple of other examples. I think it requires GNU tar. This compacts data recursively from /from/path and using gzip, pipes it through ssh and extracts it into /to/path: # tar -zcf - /from/path | ssh desktop.homelinux.com "tar -C /to/path -xzf -" And this just pipes through ssh and extracts using bunzip2 to /to/path on remote machine # cat file.tar.bz2 | ssh desktop.homelinux.com "tar -C /to/path -xjf -" -- Bo Andresen -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] big trouble with emerge
On 3/23/06, Allan Spagnol Comar <[EMAIL PROTECTED]> wrote: > Hi list wise guys, I am trying to run emerge --metadata on a fresh > installed gentoo box and all I am receiving is segmentation fault > What Can I do, I can not emerge the rest of the systems I have to use > because emerge stops with segmentation fault every time .. :( Just a silly question, but did you emerge --sync first? -Mike -- Michael E. Crute http://mike.crute.org It is a mistake to think you can solve any major problems just with potatoes. --Douglas Adams -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] sudo echo
On 3/23/06, Holly Bostick <[EMAIL PROTECTED]> wrote: > JimD schreef: > > I have been using Linux for a number of years and the one "trick" I > > have never read how to do is something like: > > > > sudo echo "app-portage/porthole ~*" >> /etc/portage/package.keywords > > Well this one I do with a set of revised command nicked from the list, > entered into ~/.bashrc, and requiring that > > 1) "su" is one of the commands that you are allowed to execute via sudo > > 2) you are exempted from needing to enter a password for 'sudo su': > > addkey(){ >sudo su -c "echo $* >> /etc/portage/package.keywords" > } > > adduse(){ >sudo su -c "echo $* >> /etc/portage/package.use" > } > > addmask(){ >sudo su -c "echo $* >> /etc/portage/package.mask" > } > > addunmask(){ >sudo su -c "echo $* >> /etc/portage/package.unmask" > } > > The general idea being that a) sudo seems to be a bit weird; even though > it allows you to perform operations as if you are root, it doesn't do so > by pretending that you _are_ root, so you still couldn't write to the > /etc/portage/package.* files; b) su does pretend you are root, but "su" > alone only just re-logs you in, rather than actually allowing you to > execute a command-- unless you use the "-c" switch. su -c then says, > "whatever follows this switch is a command that you should execute as > root". But of course, since "echo $* (where $* stands for "what I typed > after addkey") >> /etc/portage/package.* is a complex command, > containing spaces, the syntax of the command following sudo su -c needs > to be quoted. > > > > > > Another one I always wanted to know if it is possible is: > > > > sudo > /var/log/foo.log > > I'm sure it is, with a bit of creativity, though I honestly don't know > what your intention is in any case, since this looks to me like you're > logging the output of the sudo command to foo.log (but since there is no > output really to typing 'sudo', I have no idea what result you might > expect). > > Anyway, hope this is to some degree helpful; what you most likely want > to do is read up on bash scripting to understand how to chain the > commands that do what you want to get done with sudo. Depending on your > goals, you might also consider aliasing (alias etc-update="sudo > etc-update"), and fine-tuning your visudo to allow you to run specific > apps with sudo, preferably without a password, since if you have to type > the password everytime you want to do sudo emerge, you might as well > just su, imo. > > Good luck, > Holly > -- > gentoo-user@gentoo.org mailing list > > Holly is right, I had some scripts running the commands I said, heh, what I didn't notice was an alias for sudo as sudo su -c... Sorry for my fast and wrong response... :) -- Daniel da Veiga Computer Operator - RS - Brazil -BEGIN GEEK CODE BLOCK- Version: 3.1 GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V- PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++ --END GEEK CODE BLOCK-- -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] My Gentoo is too secure ... ;)
so that means log into root before you run X. # vi groups (or whatever the "correct" way of doing it is) add your user to wheel you're done Cheers Antoine On 23/03/06, Etaoin Shrdlu <[EMAIL PROTECTED]> wrote: > On Thursday 23 March 2006 21:35, Meino Christian Cramer wrote: > > > Where do I have to tweak to allow "su" from xterm, mrxvt or whatever > > owned by a normal user ? > > I think you just need to add the user to the wheel group. > HTH > -- > gentoo-user@gentoo.org mailing list > > -- This is where I should put some witty comment. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] My Gentoo is too secure ... ;)
On Thursday 23 March 2006 22:42, Nick Rout wrote: > which you probably cannot do without logging in as root at a console > as once you log into X as user, you cannot su. chicken egg chicken > egg. Not necessarily: if you use kde, konsole has a "root shell" feature. -- gentoo-user@gentoo.org mailing list
[gentoo-user] How to install iplimit?
Hello I would like to use iplimit in my firewall. I use iptables-1.3.4 with "extensions" USE flag and gentoo-sources-2.6.15-r1 I can't find iplimit module in that kernel: # grep -i iplimit /usr/src/linux/.confg {none} How to install iplimit on my server? What should I do? Maybe there is other module, that can restrict number of connections from define IP address? P.S. Sorry about "crosspost" - I've send this message few days ago to gentoo-security mail list, but nobody reply. -- Mariusz Zalewski <[EMAIL PROTECTED]> -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] My Gentoo is too secure ... ;)
I think you just need to add the user to the wheel group. HTH which you probably cannot do without logging in as root at a console as once you log into X as user, you cannot su. chicken egg chicken egg. ?!? where's the problem? logins as root at the tty --> adds user to wheel --> startx --> everyone is happy. m. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] sudo echo
Holly Bostick wrote: > JimD schreef: >> I have been using Linux for a number of years and the one "trick" I >> have never read how to do is something like: >> >> sudo echo "app-portage/porthole ~*" >> /etc/portage/package.keywords > > Well this one I do with a set of revised command nicked from the list, > entered into ~/.bashrc, and requiring that > > 1) "su" is one of the commands that you are allowed to execute via sudo > > 2) you are exempted from needing to enter a password for 'sudo su': > > addkey(){ >sudo su -c "echo $* >> /etc/portage/package.keywords" > } What's the use of su here? I don't understand. What's happening is, that a root process executes su -c "echo $* >> /etc/portage/package.keywords" But why switch user from root to root to execute echo $* >> /etc/portage/package.keywords I don't understand that. Please explain. > The general idea being that a) sudo seems to be a bit weird; even though > it allows you to perform operations as if you are root, it doesn't do so > by pretending that you _are_ root, Uh? What are you talking about? The command is run with root rights. If you use "sudo -H", even $HOME is set to ~root. > so you still couldn't write to the > /etc/portage/package.* files; Yes, you can. The error is, that with sudo echo blah >> file Here the NORMAL USER does ">> file", *NOT* the root echo process! Have a read in your shell manpage. > b) su does pretend you are root, What do you mean with that? >> Another one I always wanted to know if it is possible is: >> >> sudo > /var/log/foo.log > > I'm sure it is, with a bit of creativity, though I honestly don't know > what your intention is in any case, since this looks to me like you're > logging the output of the sudo command to foo.log (but since there is no > output really to typing 'sudo', I have no idea what result you might > expect). A truncated file is to be expected, as that's what's happening when you do > filename > Anyway, hope this is to some degree helpful; what you most likely want > to do is read up on bash scripting to understand how to chain the > commands that do what you want to get done with sudo. Yep. Alexander Skwar -- Keep brain from freezing. -- Homer Simpson Simpson and Delilah -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] sudo echo
On Thu, 23 Mar 2006 16:03:08 -0500 JimD wrote: > I have been using Linux for a number of years and the one "trick" I > have never read how to do is something like: > > sudo echo "app-portage/porthole ~*" >> /etc/portage/package.keywords > > Another one I always wanted to know if it is possible is: > > sudo > /var/log/foo.log > > Both give me error message. Are either of these command possible? > > I used to always just use su, though now I like sudo better. I just > can't for the life of me get "sudo echo" or "sudo >" to work. I can > sudo su and then do the commands, however I am lazy and want to save > having to "exit" out from su. > > Jim man i have been wanting to know the answer to that for ages, but have lived with it. the elevation of privilege does not seem to survive the redirection. I suspect you need to know more than I do about the way redirection is handled by the shell to explain it. > -- > gentoo-user@gentoo.org mailing list -- Nick Rout <[EMAIL PROTECTED]> -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] How to tar?
On Thursday 23 March 2006 21:24, Michael Kintzios wrote: > What should I run to untar the rest of /usr (excluding /usr/portage) into > /dev/hda3 and at the same time delete it from within the gentoo_usr.tgz > archive, so that I get some space in /dev/hda2 to untar /usr/portage? > Really, what I think is needed here is untarring of the archive, while > untarred data is dynamically deleted immediately after untarred to make > space for more data to be untarred . . . do I make sense? You don't have to scp the archieve to the machine before unpacking it. http://gentoo-wiki.com/HOWTO_Backup#Securely_backing_up_a_filesystem_on_a_remote_machine Also if you look at man tar you'll find tar --exclude PATTERN HtH -- Bo Andresen -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] send mail to gentoo-user locally
There is a great tutorial for postfix/fetchmail and gmail at http://souptonuts.sourceforge.net/postfix_tutorial.html On Wed, 22 Mar 2006, [EMAIL PROTECTED] wrote: > Stroller and Simon, > > Thank you so much for the helpful information. > Finally, I changed the settings of postfix, and let all my emails relay > through gmail server. It seems work. > > Best, > Mingfeng > > On Wed, Mar 22, 2006 at 06:21:17AM +, Stroller wrote: > > > > On 20 Mar 2006, at 22:46, Mingfeng Yang wrote: > > > > > > > > ... Now my problem is: the mail > > sent out by postfix (sendmail) is always get rejected by the mailing > > lists, though I set "my_hdr From: mfyang < [EMAIL PROTECTED]>" in > > muttrc. > > > > > > I'm not familiar with Mutt, but it looks like've got a space between the < > > and > > the g. Is this correct / important / relevant? > > > > > > How can I "cheat" the mailing list and let my email go to everybody even > > if it's sent from my local sendmail program instead of gmail sever? > > > > > > This should surely work as you anticipate. A work-around might be to relay > > through Gmail's SMTP server, tho'. > > > > Stroller. > > > > > -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] sudo echo
JimD wrote: > I have been using Linux for a number of years and the one "trick" I > have never read how to do is something like: > > sudo echo "app-portage/porthole ~*" >> /etc/portage/package.keywords echo whatnot | sudo sh -c ">> foo" If you don't wish to append, the following can be used as well: echo whatever | sudo dd of=some-file > Another one I always wanted to know if it is possible is: > > sudo > /var/log/foo.log What's that supposed to do? Truncate the file? sudo sh -c "> foo.log" > Both give me error message. Are either of these command possible? See above. Alexander Skwar -- "It is easier to fight for principles than to live up to them." -- Alfred Adler -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] sudo echo
Hi, On Thu, 23 Mar 2006 16:03:08 -0500 JimD <[EMAIL PROTECTED]> wrote: > I have been using Linux for a number of years and the one "trick" I > have never read how to do is something like: > > sudo echo "app-portage/porthole ~*" >> /etc/portage/package.keywords That's because your _current_ shell interprets the ">>". What you want can be done with sudo sh -c 'echo "app-portage/porthole ~*" >> /etc/portage/package.keywords' > Another one I always wanted to know if it is possible is: > > sudo > /var/log/foo.log I guess you want to use ... | sudo sh -c 'cat > /var/log/foo.log' You can create a short script that does both (nice idea, I currently wrote them for me, too...): ---:suappend:--- #!/bin/sh exec sudo sh -c "cat >> \"$1\"" ---snip--- and you can do: echo "blah" | suappend /var/log/blah.log etc.pp. -hwh -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] USB TV / Video capture devices
On Thu, 23 Mar 2006 12:22:00 -0700 Joseph wrote: > Are there any USB type TV / Video capture devices that works with Linux? > > -- > #Joseph >From the mythtv docs: "USB Capture Devices. The Plextor ConvertX PVR devices are supported through Linux drivers available from http://www.plextor.com/english/support/LinuxSDK.htm. MythTV uses the Plextor to capture hardware encoded MPEG-4, so the host CPU requirements are low." > -- > gentoo-user@gentoo.org mailing list -- Nick Rout <[EMAIL PROTECTED]> -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] My Gentoo is too secure ... ;)
On Thu, 23 Mar 2006 21:58:10 +0100 Etaoin Shrdlu wrote: > On Thursday 23 March 2006 21:35, Meino Christian Cramer wrote: > > > Where do I have to tweak to allow "su" from xterm, mrxvt or whatever > > owned by a normal user ? > > I think you just need to add the user to the wheel group. > HTH which you probably cannot do without logging in as root at a console as once you log into X as user, you cannot su. chicken egg chicken egg. Also i recommend sudo, but thats another whole story... > -- > gentoo-user@gentoo.org mailing list -- Nick Rout <[EMAIL PROTECTED]> -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: dd if=/dev/dvd of=backup.iso - DMA related problem
On Thu, 23 Mar 2006 12:54:44 -0700 Joseph wrote: > On Thu, 2006-03-23 at 20:18 +0100, Sven Köhler wrote: > > > I've run onto few posting on Google regarding DMA resetting itself but > > > no solution. > > > > That is simply annoying, that the Linux-Kernel resets DMA. > > > > You could try "hdparm -k1" - but somethimes that doesn't help either. > > Yes, I've tried "-k1" too, it doesn't help. > It seems like kernel bug, I was able to duplicate resetting CD/DVD DMA > on both machines: > amd64 with BenQ DVD writer and > x86 with Plextor CD writer > > -- > #Joseph do they both use the same kernel version? > -- Nick Rout <[EMAIL PROTECTED]> -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: dd if=/dev/dvd of=backup.iso - DMA related problem
On Thu, 2006-03-23 at 14:26 -0700, Joseph wrote: > Before ejecting put any CD / DVD disk IN and run: > dd if=/dev/hdc of=backup.iso or > cat /dev/hdc >backup.iso > > When finished run "eject ..." to be specific: eject /dev/hdc > and > hdparm /dev/hdc > > See if the parameter "using_dma" was reset. > -- #Joseph -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: dd if=/dev/dvd of=backup.iso - DMA related problem
On Thu, 2006-03-23 at 16:15 -0500, JimD wrote: > On Thu, 23 Mar 2006 12:54:44 -0700 > Joseph <[EMAIL PROTECTED]> wrote: > > > Yes, I've tried "-k1" too, it doesn't help. > > It seems like kernel bug, I was able to duplicate resetting CD/DVD DMA > > on both machines: > > amd64 with BenQ DVD writer and > > x86 with Plextor CD writer > > It might be a bug, though it probably is only for certain drives. I > have a LITE-ON DVDRW LDW-451S on amd64. Here is a test I just ran: > > > [EMAIL PROTECTED] $ sudo hdparm /dev/hdc > /dev/hdc: > IO_support = 1 (32-bit) > unmaskirq= 1 (on) > using_dma= 1 (on) > keepsettings = 0 (off) > readonly = 0 (off) > readahead= 256 (on) > HDIO_GETGEO failed: Invalid argument > > [EMAIL PROTECTED] $ sudo eject > > [EMAIL PROTECTED] $ sudo hdparm /dev/hdc > /dev/hdc: > IO_support = 1 (32-bit) > unmaskirq= 1 (on) > using_dma= 1 (on) > keepsettings = 0 (off) > readonly = 0 (off) > readahead= 256 (on) > HDIO_GETGEO failed: Invalid argument > > [EMAIL PROTECTED] $ sudo eject > > [EMAIL PROTECTED] $ sudo hdparm /dev/hdc > /dev/hdc: > IO_support = 1 (32-bit) > unmaskirq= 1 (on) > using_dma= 1 (on) > keepsettings = 0 (off) > readonly = 0 (off) > readahead= 256 (on) > HDIO_GETGEO failed: Invalid argument > > [EMAIL PROTECTED] $ eject --version > eject version 2.1.0 by Jeff Tranter ([EMAIL PROTECTED]) > > Running eject as root or a regular user did not reset my DMA > settings for my DVD-RW. > > Jim Before ejecting put any CD / DVD disk IN and run: dd if=/dev/hdc of=backup.iso or cat /dev/hdc >backup.iso When finished run "eject ..." and hdparm /dev/hdc See if the parameter "using_dma" was reset. -- #Joseph -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] sudo echo
On 3/23/06, JimD <[EMAIL PROTECTED]> wrote: > I have been using Linux for a number of years and the one "trick" I > have never read how to do is something like: > > sudo echo "app-portage/porthole ~*" >> /etc/portage/package.keywords if you do this, you'll execute sudo echo and try to redirect the output as the normal user, because the shell doesn't know you're sudoying ;) Sudo takes a command as parameter, enclose the whole command in quotes and try again, like this: sudo "echo "app-portage/porthole ~*" >> /etc/portage/package.keywords" > > Another one I always wanted to know if it is possible is: > > sudo > /var/log/foo.log Same as above... > > Both give me error message. Are either of these command possible? > > I used to always just use su, though now I like sudo better. I just > can't for the life of me get "sudo echo" or "sudo >" to work. I can > sudo su and then do the commands, however I am lazy and want to save > having to "exit" out from su. > > Jim > -- > gentoo-user@gentoo.org mailing list > > -- Daniel da Veiga Computer Operator - RS - Brazil -BEGIN GEEK CODE BLOCK- Version: 3.1 GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V- PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++ --END GEEK CODE BLOCK-- -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] sudo echo
JimD schreef: > I have been using Linux for a number of years and the one "trick" I > have never read how to do is something like: > > sudo echo "app-portage/porthole ~*" >> /etc/portage/package.keywords Well this one I do with a set of revised command nicked from the list, entered into ~/.bashrc, and requiring that 1) "su" is one of the commands that you are allowed to execute via sudo 2) you are exempted from needing to enter a password for 'sudo su': addkey(){ sudo su -c "echo $* >> /etc/portage/package.keywords" } adduse(){ sudo su -c "echo $* >> /etc/portage/package.use" } addmask(){ sudo su -c "echo $* >> /etc/portage/package.mask" } addunmask(){ sudo su -c "echo $* >> /etc/portage/package.unmask" } The general idea being that a) sudo seems to be a bit weird; even though it allows you to perform operations as if you are root, it doesn't do so by pretending that you _are_ root, so you still couldn't write to the /etc/portage/package.* files; b) su does pretend you are root, but "su" alone only just re-logs you in, rather than actually allowing you to execute a command-- unless you use the "-c" switch. su -c then says, "whatever follows this switch is a command that you should execute as root". But of course, since "echo $* (where $* stands for "what I typed after addkey") >> /etc/portage/package.* is a complex command, containing spaces, the syntax of the command following sudo su -c needs to be quoted. > > Another one I always wanted to know if it is possible is: > > sudo > /var/log/foo.log I'm sure it is, with a bit of creativity, though I honestly don't know what your intention is in any case, since this looks to me like you're logging the output of the sudo command to foo.log (but since there is no output really to typing 'sudo', I have no idea what result you might expect). Anyway, hope this is to some degree helpful; what you most likely want to do is read up on bash scripting to understand how to chain the commands that do what you want to get done with sudo. Depending on your goals, you might also consider aliasing (alias etc-update="sudo etc-update"), and fine-tuning your visudo to allow you to run specific apps with sudo, preferably without a password, since if you have to type the password everytime you want to do sudo emerge, you might as well just su, imo. Good luck, Holly -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: fstab
Le jeudi 23 mars 2006 à 21:08 +, James a écrit : > so I should make my /etc/fstab look like this? > > /dev/hdc /mnt/?auto noauto,user0 0 > /dev/hdd /mnt/cdromauto noauto,user0 0 mkdir /mnt/cdrom2 /dev/hdc /mnt/cdrom2auto noauto,user0 0 /dev/hdd /mnt/cdromauto noauto,user0 0 :) -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] autofs, supermount, submount... which is best for Gentoo?
[EMAIL PROTECTED] schreef: >> >> Very informative, thanks. I think I'll go with submount. > These are the packages that I would merge, in order: > > Calculating dependencies ...done! [ebuild N] > sys-fs/submount-0.9-r2 159 kB > > Total size of downloads: 159 kB localhost ~ # emerge submount > Calculating dependencies ...done! emerge (1 of 1) sys-fs/submount-0.9-r2 to / > 15:04:38 (64.11 KB/s) - > `/usr/portage/distfiles/submount-0.9.tar.gz' saved [75476/75476] > md5 files ;-) submount-0.9-r2.ebuild md5 files ;-) files/digest-submount-0.9-r2 md5 src_uri ;-) submount-2.4-0.9.tar.gz md5 src_uri ;-) submount-0.9.tar.gz > * Determining the location of the kernel source code * Found kernel > source directory: * /usr/src/linux * Could not find a usable > .config in the kernel source directory. * Please ensure that > /usr/src/linux points to a configured set of Linux sources. * If you > are using KBUILD_OUTPUT, please set the environment var so that * it > points to the necessary object directory so that it might find > .config. > > !!! ERROR: sys-fs/submount-0.9-r2 failed. !!! Function > linux-info_pkg_setup, Line 537, Exitcode 1 !!! Unable to calculate > Linux Kernel version !!! If you need support, post the topmost build > error, NOT this status message. > > > I'm not sure what's meant by the topmost build error, but as it's not > too large, I included everything. > What is meant is the last output right before "ERROR:"; in this case, it is * Could not find a usable .config in the kernel source directory. * Please ensure that /usr/src/linux points to a configured set of Linux sources. This package compiles against the kernel, as you can see from * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux However, the kernel source that the /usr/src/linux symlink points to has not been configured using make (menu/x)config. Therefore there is no .config file that the package can examine to ensure that the kernel source in question has/will be built with the support that the package requires. You don't have to build or install this kernel source, but you do have to configure it (properly for the submount package) before you attempt to install the submount package. I'd think that the wiki entry will detail the necessary kernel settings. Hope this helps. Holly -- gentoo-user@gentoo.org mailing list
[gentoo-user] Re: fstab
Keats wanadoo.fr> writes: > > I have set my /etc/fstab following the instractions of the Handbook. In the > > example there is this entry: > > > > /dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user0 0 > you have to know the device of your cdrom > generaly it's a secondary master ide > /dev/hdc > so set fstab to : > /dev/hdc /mnt/cdrom auto noauto,user0 0 Interest, I gues I missed this upgrading to udev, some time ago. One one system I both cd/DVDrom and a dvdrw dual layer. The NEC 3550A is a dual layer DVD RW which also support many CD & DVD formats. grepping the dmesg file I see both devices: ide1: BM-DMA at 0xb808-0xb80f, BIOS settings: hdc:DMA, hdd:DMA hdc: _NEC DVD_RW ND-3550A, ATAPI CD/DVD-ROM drive hdc: ATAPI 48X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, UDMA(33) and hdd: CDU5211, ATAPI CD/DVD-ROM drive hdd: ATAPI 52X CD-ROM drive, 120kB Cache, UDMA(33) so I should make my /etc/fstab look like this? /dev/hdc /mnt/?auto noauto,user0 0 /dev/hdd /mnt/cdromauto noauto,user0 0 I also have hal/ivman/dbus installed. sometimes ejecting media from the command line is a challege. James -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] autofs, supermount, submount... which is best for Gentoo?
On Thu, 23 Mar 2006 15:06:59 + (GMT), [EMAIL PROTECTED] wrote: > * Determining the location of the kernel source code > * Found kernel source directory: > * /usr/src/linux > * Could not find a usable .config in the kernel source directory. > * Please ensure that /usr/src/linux points to a configured set of > Linux sources. As it says, make sure /usr/src/linux is a link to a kernel source you have configured, usually the running kernel. It looks like it currently points to newly-installed sources that you have not yet run make menuconfig/xconfig on. -- Neil Bothwick WinErr 012: Window closed - Do not look inside signature.asc Description: PGP signature
Re: [gentoo-user] autofs, supermount, submount... which is best for Gentoo?
On Thu, 23 Mar 2006, [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] Subject: Re: [gentoo-user] autofs, supermount, submount... which is best for Gentoo? On Wed, 13 Oct 2004, Jochen Schalanda wrote: From: Jochen Schalanda <[EMAIL PROTECTED]> Subject: Re: [gentoo-user] autofs, supermount, submount... which is best for Gentoo? Newsgroups: linux.gentoo.user On 10/13/2004 11:10 PM, Felix Tiede wrote: > submount is supposed to supersede supermount as supermount is running in > kernel-space, while submount is a user-space-tool. I think that is not quite correct. submount is a kernel module, hence it runs in kernel space. A userspace solution for automounting would be dbus+hal+ivman or gnome-volume-manager. I tried supermount, submount, and dbus+hal+ivman and at the moment I like submount best since it perfectly fits my needs. But as already said, all the programs (automount, supermount, submount, ivman) have a slightly different featureset, so one should really try them all and decide afterwards which one to choose. Jochen Very informative, thanks. I think I'll go with submount. -Thufir localhost ~ # localhost ~ # localhost ~ # emerge -vp submount These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N] sys-fs/submount-0.9-r2 159 kB Total size of downloads: 159 kB localhost ~ # emerge submount Calculating dependencies ...done! emerge (1 of 1) sys-fs/submount-0.9-r2 to / Downloading http://distfiles.gentoo.org/distfiles/submount-2.4-0.9.tar.gz --15:04:32-- http://distfiles.gentoo.org/distfiles/submount-2.4-0.9.tar.gz => `/usr/portage/distfiles/submount-2.4-0.9.tar.gz' Resolving distfiles.gentoo.org... 64.50.238.52, 64.50.236.52, 216.165.129.135, ... Connecting to distfiles.gentoo.org|64.50.238.52|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 88,203 (86K) [application/x-gzip] 100%[>] 88,20326.49K/sETA 00:00 15:04:36 (26.47 KB/s) - `/usr/portage/distfiles/submount-2.4-0.9.tar.gz' saved [88203/88203] Downloading http://distfiles.gentoo.org/distfiles/submount-0.9.tar.gz --15:04:36-- http://distfiles.gentoo.org/distfiles/submount-0.9.tar.gz => `/usr/portage/distfiles/submount-0.9.tar.gz' Resolving distfiles.gentoo.org... 64.50.238.52, 64.50.236.52, 216.165.129.135, ... Connecting to distfiles.gentoo.org|64.50.238.52|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 75,476 (74K) [application/x-gzip] 100%[>] 75,47664.24K/s 15:04:38 (64.11 KB/s) - `/usr/portage/distfiles/submount-0.9.tar.gz' saved [75476/75476] md5 files ;-) submount-0.9-r2.ebuild md5 files ;-) files/digest-submount-0.9-r2 md5 src_uri ;-) submount-2.4-0.9.tar.gz md5 src_uri ;-) submount-0.9.tar.gz * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Could not find a usable .config in the kernel source directory. * Please ensure that /usr/src/linux points to a configured set of Linux sources. * If you are using KBUILD_OUTPUT, please set the environment var so that * it points to the necessary object directory so that it might find .config. !!! ERROR: sys-fs/submount-0.9-r2 failed. !!! Function linux-info_pkg_setup, Line 537, Exitcode 1 !!! Unable to calculate Linux Kernel version !!! If you need support, post the topmost build error, NOT this status message. localhost ~ # localhost ~ # date Thu Mar 23 15:05:01 GMT 2006 localhost ~ # I'm not sure what's meant by the topmost build error, but as it's not too large, I included everything. -Thufir -- gentoo-user@gentoo.org mailing list
[gentoo-user] big trouble with emerge
Hi list wise guys, I am trying to run emerge --metadata on a fresh installed gentoo box and all I am receiving is segmentation fault What Can I do, I can not emerge the rest of the systems I have to use because emerge stops with segmentation fault every time .. :( -- An application asked: "Requeires Windows 9x, NT4 or better", so I´ve installed Linux -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] USB TV / Video capture devices
On Thu, 23 Mar 2006 12:22:00 -0700 Joseph <[EMAIL PROTECTED]> wrote: > Are there any USB type TV / Video capture devices that works with > Linux? Check out http://www.linuxtv.org/ Cheers, Renat -- Probleme kann man niemals mit derselben Denkweise loesen, durch die sie entstanden sind. (Einstein) signature.asc Description: PGP signature
Re: [gentoo-user] My Gentoo is too secure ... ;)
On Thursday 23 March 2006 21:35, Meino Christian Cramer wrote: > Where do I have to tweak to allow "su" from xterm, mrxvt or whatever > owned by a normal user ? I think you just need to add the user to the wheel group. HTH -- gentoo-user@gentoo.org mailing list
[gentoo-user] My Gentoo is too secure ... ;)
Hi, in general I like systems to be more secure. But in the current configuration'n'installing phase of my new linux my system is a little too secure: I can login as root at the text console. But as soon as I login as normal user, start X (startx) and try an "su" I'll get fired. No chance. I tried to remove /etc/securetty (by renaming it) and I read /etc/login.def but nothing helps. Where do I have to tweak to allow "su" from xterm, mrxvt or whatever owned by a normal user ? (background: k3b's k3bsetup needs root privileges to run successfully...) (background2: I am running some of kde's applikations, but only IceWM as environment. But this is not the reason for the behaviour described above...) Thank you very much for any helpful reply ! Keep hacking! mcc -- gentoo-user@gentoo.org mailing list
Re: Re: [gentoo-user] How to tar?
> From:: "Michael Crute" <[EMAIL PROTECTED]> > To: gentoo-user@lists.gentoo.org > Subject: Re: [gentoo-user] How to tar? > Date: Thu, 23 Mar 2006 12:32:55 -0500 > In that case I would create /usr on one filesystem and /portage on > another partition then create /usr/portage and mount /portage to it > then untar your file. It should look like this: > > /dev/hdx1 (/usr) > /dev/hdx2 (/portage) > > /usr/portage -> /portage > > Seems to be the most straightforward way of doing it to me. Cool! As things currently are gentoo_usr.tgz is in /dev/hda2, which is destined to house the /usr/portage directory. /dev/hda2 is a 4.0G partition with only 74M available. My /usr is more than 3.9G large. /dev/hda3 will have the rest of the filesystem (and the remaining /usr directory). What should I run to untar the rest of /usr (excluding /usr/portage) into /dev/hda3 and at the same time delete it from within the gentoo_usr.tgz archive, so that I get some space in /dev/hda2 to untar /usr/portage? Really, what I think is needed here is untarring of the archive, while untarred data is dynamically deleted immediately after untarred to make space for more data to be untarred . . . do I make sense? -- Regards, Mick Lycos iQ - show what you knoW: iq.lycos.co.uk
Re: [gentoo-user] Re: dd if=/dev/dvd of=backup.iso - DMA related problem
On Thu, 2006-03-23 at 20:18 +0100, Sven Köhler wrote: > > I've run onto few posting on Google regarding DMA resetting itself but > > no solution. > > That is simply annoying, that the Linux-Kernel resets DMA. > > You could try "hdparm -k1" - but somethimes that doesn't help either. Yes, I've tried "-k1" too, it doesn't help. It seems like kernel bug, I was able to duplicate resetting CD/DVD DMA on both machines: amd64 with BenQ DVD writer and x86 with Plextor CD writer -- #Joseph -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Init sequence
Ryan Tandy: > Try calling your favorite rc-script with 'help' as the argument (for > example, /etc/init.d/net.eth0 help). This gives a fairly detailed > description of what you're asking. Neil Bothwick: > Run any init script with help instead of start/stop and you'll see > a fairly comprehensive explanation. Yes, at least I can understand what "net" means. Thanks! Sergio -- gentoo-user@gentoo.org mailing list
[gentoo-user] USB TV / Video capture devices
Are there any USB type TV / Video capture devices that works with Linux? -- #Joseph -- gentoo-user@gentoo.org mailing list
[gentoo-user] Re: dd if=/dev/dvd of=backup.iso - DMA related problem
> I've run onto few posting on Google regarding DMA resetting itself but > no solution. That is simply annoying, that the Linux-Kernel resets DMA. You could try "hdparm -k1" - but somethimes that doesn't help either. signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] file limit
On Wed, 22 Mar 2006 20:50:26 -0500 Bruce Therrien <[EMAIL PROTECTED]> wrote: > Is there a limit to the files contained in a directory? No. Though the file system type can have an affect on performance if there are a lot of files/directories. For example, reiserfs is much faster at handling a lot of files than ext[23]. What file system are you using? > we have over 19,000 in our store graphics directory > and sometimes cannot acces it because the ftp > software says it's not a directory. > It's on an IBM server running gentoo. I would think it is the ftp software and not the file system or server. 19,000 is not a huge number. I have an AMD64 3200+ with 2 GB of dual channel DDR 400 and a SATA II drive with reiserfs v3. The system is "speedy" but certainly nothing high end. Here is a test I just did: # Touch 19,000 files [EMAIL PROTECTED] $ mkdir /tmp/bigdir [EMAIL PROTECTED] $ cd /tmp/bigdir [EMAIL PROTECTED] $ time for i in $(seq 0 19000); do touch $i; done real0m23.318s user0m6.370s sys 0m16.364s # list 19,000 files [EMAIL PROTECTED] $ time ls -l real0m1.481s user0m0.235s sys 0m0.163s # Remove 19,000 files [EMAIL PROTECTED] $ time find . -exec rm {} \; real0m12.555s user0m3.834s sys 0m8.545s Jim -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Have portage lost its memory?
Selon Toby 'qubit' Cubitt <[EMAIL PROTECTED]>: > > I used to give the shell prompts different colours on different > machines to help avoid this. Or rather, the local one would always be > the same colour, but shells under ssh sessions were colour-coded by > machine. > > I've lost the script I wrote for this somewhere in the mists of time > (if I remember right, it was copied and hacked from a bash prompt > example that colour-coded according to the login type: ssh, telnet, > local, etc.) Here's one I use to make a difference between root (red prompt) and user (green). As for other stations, their prompt stays white. Hope it can help : [ $UID -eq 0 ] && PS1="\e[1;[EMAIL PROTECTED] : \W \! ># \e[0m" || PS1="\e[1;[EMAIL PROTECTED] : \W \! >$ \e[0m" More readable version if test "$UID" = 0 ; then PS1="\e[31m\h:\w # \e[0m" else PS1="[EMAIL PROTECTED]:\w \!>\e[0m " fi -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] OT - Linewrap in vim
On 3/23/06, Michael Sullivan <[EMAIL PROTECTED]> wrote: > Is there a way to turn off the line wrap function in vim/gvim? I know > it doesn't actually wrap lines in the file - I just want to turn off the > visual line wrap in the editor. Is that possible? :set wrap! You can add it to your .vimrc and .gvimrc if you like. -Mike -- Michael E. Crute http://mike.crute.org It is a mistake to think you can solve any major problems just with potatoes. --Douglas Adams -- gentoo-user@gentoo.org mailing list
[gentoo-user] OT - Linewrap in vim
Is there a way to turn off the line wrap function in vim/gvim? I know it doesn't actually wrap lines in the file - I just want to turn off the visual line wrap in the editor. Is that possible? -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Current state of the Gentoo installation process
> > > > Also, if you start with Stage3, you may not even need to > > rebuild the > > > > installed packages, as if it's been a little while since > > the Stage3 > > > > image was created, there will be new versions of > > everything, so you'd > > > > be rebuilding when you do a 'emerge -u system' anyways. > > > > > Nice. Is there a slick way to determine if there are any > > pre-compiled > > > packages left on the system after the first 'emerge -u system'? > > > > touch /tmp/firstupdate > > emerge --update --deep --newuse world > > find /var/db/pkg/ -maxdepth 2 -mindepth 2 -type d ! -newer > > /tmp/firstupdate > > In time you will end up rebuilding the lot anyway - assuming you emerge > -u world every now and then. The problem with the stage1 was that it > left some cruft behind in the portage and system. Hence, the "build a > stage1 using a stage3 install" series of howto's in the forums. > -- > Regards, > Mick Alright, thanks guys. - Grant -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: KDE version
Christopher O'Neill wrote: >I've been using 3.5.1 for a while also, imo it should stay in unstable >for now. There are a few bugs with the desktop, Konqueror and >Kaffeine also has a habit of seg-faulting. I am considering >rebuilding it with the debug flags to I can submit some useful bug >reports. > >I think packages in stable should be stable as the name says, not >simply "older than 30 days" or whatever ;-) > > >- Chris > > > Well, the only bug I have seen is when I try to change the permissions with Konqueror and right clicking and selecting properties. It gives me a error and changes some of the changes but not all of them. It takes me a couple times to get them right. I have not had any seg faulting though. Are you using good flags? When I had some bad flags I had seg faulting a lot, not just KDE either. Dale :-) -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] How to tar?
On 3/23/06, Michael Kintzios <[EMAIL PROTECTED]> wrote: > > Hmm... basics... I would start with `man tar` and see where > > that takes you. > > Not very far. ;-) That's why I'm asking for some quick help. I also > need to add that I was seeking answers to the above questions in the > context of having access only to the new machine and three more > partitions on it, all of which are smaller than the total uncompressed > /usr directory. In that case I would create /usr on one filesystem and /portage on another partition then create /usr/portage and mount /portage to it then untar your file. It should look like this: /dev/hdx1 (/usr) /dev/hdx2 (/portage) /usr/portage -> /portage Seems to be the most straightforward way of doing it to me. -Mike -- Michael E. Crute http://mike.crute.org It is a mistake to think you can solve any major problems just with potatoes. --Douglas Adams -- gentoo-user@gentoo.org mailing list
[gentoo-user] Re: KDE version
I've been using 3.5.1 for a while also, imo it should stay in unstable for now. There are a few bugs with the desktop, Konqueror and Kaffeine also has a habit of seg-faulting. I am considering rebuilding it with the debug flags to I can submit some useful bug reports. I think packages in stable should be stable as the name says, not simply "older than 30 days" or whatever ;-) - Chris On 23/03/06, Petr Kocmid <[EMAIL PROTECTED]> wrote: > On Wednesday 22 March 2006 08:31, Hemmann, Volker Armin wrote: > > On Wednesday 22 March 2006 02:42, Boyd Stephen Smith Jr. wrote: > > > > But the times, that gentoo was pretty actual in the stable tree are > > > > over. > > > You do realize the above sentence makes no freakin' sense, right? > > nope. > > If I had realized that, I would have not written it. > > Gentoo was once VERY up to date, but than the 'stable mania' started and > > since then, gentoo needs way to much time to get new versions into the > > stable tree. > > 3.5.0 is out for ages. > > 3.5.1 is out for ages > > Stable is 3.4.3... > > that is so sad. > > I am already running 3.5.1 for ages. Perhaps ' so sadness' is no proper > mental > attitude to achieve the upgrade. package.keywords is my friend, 300+ > packages > at bleeding edge versions. > > -- > > Petr > -- > gentoo-user@gentoo.org mailing list > > -- Chris -- gentoo-user@gentoo.org mailing list