Re: [gentoo-user] Kernel options and udisk
True... Had I only one computer, I would've gone the USB 3 route... 2 ext HD, I backup to one for one or two weeks, then deposit the drive to an off-site location, swapping it with the other HD, and use the second HD for the next period. Problem is, using a USB drive means I have to move it around, and I'm lazy, so it won't work for me... That's why I opt for a networked solution... Hmm, that begat an interesting thought, though... Anyone knows of a cheapo box (appliance) with USB 3.0 that can expose an external HD to the network? Rgds, -- Pandu E Poluan, ~ IT Optimizer ~ On Sep 17, 2012 11:16 AM, "Dale" wrote: > Pandu Poluan wrote: > > > > > > Kind of off-topic, but... > > > > For backups, I prefer a bunch of disks in a RAID configuration. After > > all, what good is an online backup system if the data becomes > > corrupted without me realizing it... > > > > I heard QNAP makes good ones. Or I can always make an LVM-based one, > > booting off a USB stick. Still considering which route to take, > > though... The former is more expensive, but the latter is not that > > much cheaper either, considering I have to build a complete system > > with a honkin' big casing + honkin' big PSU to feed them hard drives... > > > > And neither provides an off-site backup... > > > > Rgds, > > -- > > > > Pandu E Poluan, ~ IT Optimizer ~ > > > > So far, knock on wood, I have only had one drive to die on me and I got > the data off before it did with some time to spare. I agree with RAID > but what happens if the house catches fire? What if someone breaks in > and steals my puter, even tho I'm a really good shot? o_O I usually > put my backups on DVD but when you start storing videos, that goes out > the window pretty fast. So, I figure I'd just get me some sort of USB > drive and backup to that from time to time. > > Those questions are what happens when you try to account for each and > every thing that *can* happen tho. It gets expensive pretty quick. I > could just download most all the videos again so even if a few were to > get corrupted, I can most likely get them back. Things I create myself, > I have backups on DVD since it is a MUCH smaller number. Those DVDs are > in a separate building too, in case of fire or something. > > Dale > > :-) :-) > > -- > I am only responsible for what I said ... Not for what you understood or > how you interpreted my words! > > >
Re: [gentoo-user] Kernel options and udisk
Pandu Poluan wrote: > > > Kind of off-topic, but... > > For backups, I prefer a bunch of disks in a RAID configuration. After > all, what good is an online backup system if the data becomes > corrupted without me realizing it... > > I heard QNAP makes good ones. Or I can always make an LVM-based one, > booting off a USB stick. Still considering which route to take, > though... The former is more expensive, but the latter is not that > much cheaper either, considering I have to build a complete system > with a honkin' big casing + honkin' big PSU to feed them hard drives... > > And neither provides an off-site backup... > > Rgds, > -- > > Pandu E Poluan, ~ IT Optimizer ~ > So far, knock on wood, I have only had one drive to die on me and I got the data off before it did with some time to spare. I agree with RAID but what happens if the house catches fire? What if someone breaks in and steals my puter, even tho I'm a really good shot? o_O I usually put my backups on DVD but when you start storing videos, that goes out the window pretty fast. So, I figure I'd just get me some sort of USB drive and backup to that from time to time. Those questions are what happens when you try to account for each and every thing that *can* happen tho. It gets expensive pretty quick. I could just download most all the videos again so even if a few were to get corrupted, I can most likely get them back. Things I create myself, I have backups on DVD since it is a MUCH smaller number. Those DVDs are in a separate building too, in case of fire or something. Dale :-) :-) -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words!
Re: [gentoo-user] Kernel options and udisk
On Sep 17, 2012 10:21 AM, "Dale" wrote: > > Canek Peláez Valdés wrote: > > On Sun, Sep 16, 2012 at 8:39 PM, Dale wrote: > > [snip] > >> The important part is about 'if you are unsure about this, say N here'. > >> Well, I don't think I need USB remote wakeup or anything so I don't > >> think I need this but at the same time, udisk is giving me notice that > >> it should be there. > > I'll put it. The 'if you are unsure about this, say N here' is not a > > warning; it means that it's probably safe not to put it. However, > > udisks want it, so I would enable it. > > Well, I was "unsure" about it. LOL > > >> This is a desktop system not a laptop. Do I need to listen to me not > >> needing it or udisk that says I do? > > I suppose you connect from time to time USB sticks/hard drives onto > > the machine (or at least want to be able to). I don't know how much > > udisks depends on USB_SUSPEND, but if it's asking for it I don't see > > any reason at all not to put it. It certainly will not hurt. > > > > And BTW, the difference between desktop and laptop is getting smaller > > and smaller every year. I suspend/hibernate my desktop almost as much > > as I do my laptop. > > > > Regards. > > Actually, except for a USB stick, I have not plugged a drive into a USB > port, YET. I'm sure I will someday tho. I hope to get one for backup > one of these days. > > Thanks much. > > Dale > > :-) :-) > Kind of off-topic, but... For backups, I prefer a bunch of disks in a RAID configuration. After all, what good is an online backup system if the data becomes corrupted without me realizing it... I heard QNAP makes good ones. Or I can always make an LVM-based one, booting off a USB stick. Still considering which route to take, though... The former is more expensive, but the latter is not that much cheaper either, considering I have to build a complete system with a honkin' big casing + honkin' big PSU to feed them hard drives... And neither provides an off-site backup... Rgds, -- Pandu E Poluan, ~ IT Optimizer ~
Re: [gentoo-user] Kernel options and udisk
Canek Peláez Valdés wrote: > On Sun, Sep 16, 2012 at 8:39 PM, Dale wrote: > [snip] >> The important part is about 'if you are unsure about this, say N here'. >> Well, I don't think I need USB remote wakeup or anything so I don't >> think I need this but at the same time, udisk is giving me notice that >> it should be there. > I'll put it. The 'if you are unsure about this, say N here' is not a > warning; it means that it's probably safe not to put it. However, > udisks want it, so I would enable it. Well, I was "unsure" about it. LOL >> This is a desktop system not a laptop. Do I need to listen to me not >> needing it or udisk that says I do? > I suppose you connect from time to time USB sticks/hard drives onto > the machine (or at least want to be able to). I don't know how much > udisks depends on USB_SUSPEND, but if it's asking for it I don't see > any reason at all not to put it. It certainly will not hurt. > > And BTW, the difference between desktop and laptop is getting smaller > and smaller every year. I suspend/hibernate my desktop almost as much > as I do my laptop. > > Regards. Actually, except for a USB stick, I have not plugged a drive into a USB port, YET. I'm sure I will someday tho. I hope to get one for backup one of these days. Thanks much. Dale :-) :-) -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words!
Re: [gentoo-user] new machine : suddenly Python 3 appears
Michael Mol wrote: > On Sun, Sep 16, 2012 at 9:18 PM, Dale wrote: >> Michael Mol wrote: >>> On Sun, Sep 16, 2012 at 8:24 PM, Philip Webb wrote: We've been warned not to use Python 3 >>> Maybe I missed something...but by whom? >> I think he means that we are not supposed to set the system default to >> python3. I'm just reading tea leaves, between the lines etc but that >> was the way I took it. > And portage's deps don't handle it? Weird. > Well, it appears he just doesn't want python3 on his system. Cool by me since he may have some good reason for it. So, if he wants it gone as his post suggests, I just told him how to do it that hopefully won't break things. Dale :-) :-) -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words!
Re: [gentoo-user] Kernel options and udisk
On Sun, Sep 16, 2012 at 8:39 PM, Dale wrote: [snip] > The important part is about 'if you are unsure about this, say N here'. > Well, I don't think I need USB remote wakeup or anything so I don't > think I need this but at the same time, udisk is giving me notice that > it should be there. I'll put it. The 'if you are unsure about this, say N here' is not a warning; it means that it's probably safe not to put it. However, udisks want it, so I would enable it. > This is a desktop system not a laptop. Do I need to listen to me not > needing it or udisk that says I do? I suppose you connect from time to time USB sticks/hard drives onto the machine (or at least want to be able to). I don't know how much udisks depends on USB_SUSPEND, but if it's asking for it I don't see any reason at all not to put it. It certainly will not hurt. And BTW, the difference between desktop and laptop is getting smaller and smaller every year. I suspend/hibernate my desktop almost as much as I do my laptop. Regards. -- Canek Peláez Valdés Posgrado en Ciencia e Ingeniería de la Computación Universidad Nacional Autónoma de México
[gentoo-user] Kernel options and udisk
Howdy, I was doing a update a while back and noticed a ewarn, enotice or something going by. I used the elogviewer to go back and dig it out. This is what it says: Found sources for kernel version: 3.5.0-gentoo Checking for suitable kernel configuration options... ERROR (setup) CONFIG_USB_SUSPEND: is not set when it should be. WARN (setup) Please check to make sure these options are set correctly. Failure to do so may cause unexpected problems. So, I go into the kernel's menuconfig and find this: │ CONFIG_USB_SUSPEND: │ │ │ │ If you say Y here, you can use driver calls or the sysfs │ │ "power/control" file to enable or disable autosuspend for │ │ individual USB peripherals (see │ │ Documentation/usb/power-management.txt for more details). │ │ │ │ Also, USB "remote wakeup" signaling is supported, whereby some │ │ USB devices (like keyboards and network adapters) can wake up │ │ their parent hub. That wakeup cascades up the USB tree, and │ │ could wake the system from states like suspend-to-RAM. │ │ │ │ If you are unsure about this, say N here. │ │ │ │ Symbol: USB_SUSPEND [=n] │ │ Type : boolean │ │ Prompt: USB runtime power management (autosuspend) and wakeup │ │ Defined at drivers/usb/core/Kconfig:41 │ │ Depends on: USB_SUPPORT [=y] && USB [=y] && PM_RUNTIME [=y] │ │ Location: │ │ -> Device Drivers │ │ -> USB support (USB_SUPPORT [=y]) │ │ -> Support for Host-side USB (USB [=y]) The important part is about 'if you are unsure about this, say N here'. Well, I don't think I need USB remote wakeup or anything so I don't think I need this but at the same time, udisk is giving me notice that it should be there. This is a desktop system not a laptop. Do I need to listen to me not needing it or udisk that says I do? Opinions? Dale :-) :-) P. S. The only things I have USB right now is my printer and a camera. I may have a UPS added to that when I get around to rebooting again. I'm not sure on how I will end up connecting it yet. -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words!
Re: [gentoo-user] new machine : suddenly Python 3 appears
On Sun, Sep 16, 2012 at 9:18 PM, Dale wrote: > Michael Mol wrote: >> On Sun, Sep 16, 2012 at 8:24 PM, Philip Webb wrote: >>> We've been warned not to use Python 3 >> Maybe I missed something...but by whom? > > I think he means that we are not supposed to set the system default to > python3. I'm just reading tea leaves, between the lines etc but that > was the way I took it. And portage's deps don't handle it? Weird. -- :wq
Re: [gentoo-user] new machine : suddenly Python 3 appears
Michael Mol wrote: > On Sun, Sep 16, 2012 at 8:24 PM, Philip Webb wrote: >> We've been warned not to use Python 3 > Maybe I missed something...but by whom? > > I think he means that we are not supposed to set the system default to python3. I'm just reading tea leaves, between the lines etc but that was the way I took it. Dale :-) :-) -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words!
Re: [gentoo-user] new machine : suddenly Python 3 appears
On Sun, Sep 16, 2012 at 8:24 PM, Philip Webb wrote: > We've been warned not to use Python 3 Maybe I missed something...but by whom? -- :wq
Re: [gentoo-user] new machine : suddenly Python 3 appears
Philip Webb wrote: > We've been warned not to use Python 3 , so it's not installed in this box, > but it was included along with Python 2 in the Stage3 for the new machine. > I now find that 13 pkgs have been compiled relying on it > & Portage refuses to unmerge it. Is this safe ? > If you want to get rid of python3, you need to put -python3 in your make.conf and then do a emerge -Na world to rebuild. That should rebuild everything that was built against python3 then you can unemerge it and emerge shouldn't complain either. If it does, you need to make sure why before removing it. Hope that helps. Dale :-) :-) -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words!
[gentoo-user] new machine : suddenly Python 3 appears
We've been warned not to use Python 3 , so it's not installed in this box, but it was included along with Python 2 in the Stage3 for the new machine. I now find that 13 pkgs have been compiled relying on it & Portage refuses to unmerge it. Is this safe ? -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
Re: [gentoo-user] new machine : a few small queries
On Saturday 15 Sep 2012 01:27:04 Philip Webb wrote: > (1) In Fluxbox, Gkrellm insists on starting on Desktop 1 ; > on my existing machine with the same config files, it starts on Desktop 8 . > There must be some setting somewhere which has got changed. The problem arose from the unadvertised & unexpected fact that Fluxbox rewrites 'apps' whenever it exits (ugh!). To work around this feature/bug you have to create your own file with a different name & tell FB to look for it via a line in 'init'. HTH others who forget such obscurities. -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
Re: [gentoo-user] Update to newer kernel completely hoses suspend
On Saturday 15 September 2012 17:28:26 Daniel Frey wrote: > I guess it was not really a coincidence that the failure happened > after a major update. This isn't the first time an `emerge -pvuDN > world` killed my computer. :-) A real-life example of software breaking hardware, which was drummed into me as impossible some 40 years ago. -- Rgds Peter
Re: [gentoo-user] Update to newer kernel completely hoses suspend
Daniel Frey wrote: > On 09/15/2012 03:29 PM, Dale wrote: >> Daniel Frey wrote: >>> Well, it turns out it was my PSU. The voltage drop on the 5V line was >>> 4.08, but it would slowly warm up to 4.95V, then the PC would behave >>> normally. I opened the PSU and there was a ruptured cap. >>> >>> I've replaced it and the problems are all gone. >>> >>> I guess it was not really a coincidence that the failure happened after >>> a major update. This isn't the first time an `emerge -pvuDN world` >>> killed my computer. :-) >>> >>> Dan >>> >>> >> *cough cough* Maybe you need a better or more powerful power supply? >> If that cap went bad, you could have some others that are ready for the >> same problem. I'd at least be on the look out for a new P/S. The next >> one could go out and take a mobo or something with it. That would be >> bad for sure. >> >> Just a thought. >> >> Dale >> >> :-) :-) >> > After I changed the cap I decided to get a new PSU anyway. I went with > better (650 W Antec Platinum) rather than more powerful. The old one was > already 1010 W, by a manufacturer whom I don't trust any longer. > > Dan > > Sounds good. This is a site that I keep a eye on. http://www.jonnyguru.com/modules.php?name=NDReviews&op=Review_Cat&recatnum=13 They do power supply reviews and the good part, they take the power supplies apart so you can see what is in them plus they point out anything that may be cause for concern. They also tell what brand of caps they have too. This is a forum thread that also lists power supplies that have been tested and it also lists some that should be avoided for some reason. http://www.overclockers.com/forums/showthread.php?t=589708 I don't build anything super fancy but I do try to get at least a good one or avoid the ones on the bad list. lol You may have already heard of those but thought I would post them just in case it could help in the future. May even help someone else too. Glad you got it fixed tho. ;-) Dale :-) :-) -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words!
Re: [gentoo-user] USB automount
On Fri, Sep 14, 2012 at 12:42 AM, Stefan G. Weichinger wrote: [snip] > Great to hear, thanks so far. > Looking forward to his reply Stefan, do you use systemd? David told me that he could only check the bug on monday, so I did a little research on the weekend. I installed Gentoo in a QEMU VM (using gnome-boxes), to see if I could reproduce the bug in a unmodified Gentoo installation (I use my systemd-only overlay). I could reproduce the bug, but I found a reasonable workaround: cat /etc/portage/package.use/no-systemd gnome-base/gdm -systemd gnome-base/gnome-session-systemd gnome-base/gnome-shell -systemd sys-auth/polkit -systemd If those four packages have systemd support disabled, then everything works as expected (the suspend/hibernate options returns, I can mount/umount USB sticks, etc.) If at least one of those packages have the systemd USE flag, then the bug appears. I updated the bug report (and I'm not really sure the bug is in polkit or gnome-shell): https://bugs.freedesktop.org/show_bug.cgi?id=53905 This workaround also works in my systemd-only overlay. So, if you have the systemd flag in any of those four packages, disable it and everything should work. Just to be explicit, the versions are: gnome-base/gdm-3.4.1-r1 gnome-base/gnome-session-3.4.2.1 gnome-base/gnome-shell-3.4.2 sys-auth/polkit-0.107:0 I was really looking forward to use the integration of systemd into GNOME, but I suppose it's still a little green. Hopefully we will find and fix the exact bug soon; meanwhile, this workaround is much more usable than using pmount, pm-suspend, etc. Regards. -- Canek Peláez Valdés Posgrado en Ciencia e Ingeniería de la Computación Universidad Nacional Autónoma de México
Re: Re: [gentoo-user] Update to newer kernel completely hoses suspend
On 09/15/2012 03:29 PM, Dale wrote: > Daniel Frey wrote: >> Well, it turns out it was my PSU. The voltage drop on the 5V line was >> 4.08, but it would slowly warm up to 4.95V, then the PC would behave >> normally. I opened the PSU and there was a ruptured cap. >> >> I've replaced it and the problems are all gone. >> >> I guess it was not really a coincidence that the failure happened after >> a major update. This isn't the first time an `emerge -pvuDN world` >> killed my computer. :-) >> >> Dan >> >> > > *cough cough* Maybe you need a better or more powerful power supply? > If that cap went bad, you could have some others that are ready for the > same problem. I'd at least be on the look out for a new P/S. The next > one could go out and take a mobo or something with it. That would be > bad for sure. > > Just a thought. > > Dale > > :-) :-) > After I changed the cap I decided to get a new PSU anyway. I went with better (650 W Antec Platinum) rather than more powerful. The old one was already 1010 W, by a manufacturer whom I don't trust any longer. Dan
Re: Re: [gentoo-user] Update to newer kernel completely hoses suspend
On 09/15/2012 03:26 PM, Mick wrote: > I was also replacing capacitors last weekend. It is a good idea to upgrade > them if there are alternatives of a higher maximum temperature as they will > probably last longer. A belts & braces approach is to add another/larger > case > fan to keep the in-case temperatures lower. Well, after I replaced the cap, I decided to get a better power supply anyway. The one that died was an OCZ 1010 W supply, which is way too much for this machine. I used to have 12 hard drives in here (Thermaltake Full Armor), but a few years ago I built a server to do those tasks. I replaced it with a platinum 650 W rated supply. The new PSU looks like it's built a lot better. I already have three 12 cm fans that are controlled by the BIOS. I've had really poor luck with OCZ anything (to the point that I won't buy anything they make anymore.) Dan
Re: [gentoo-user] Apache forked itself to death...
> > * Each Apache process is consuming 80-100MB of RAM. > * Squid is consuming 666MB of RAM > * memcached is consuming 822MB of RAM > * mysqld is consuming 886MB of RAM > * The kernel is using 110MB of RAM for buffers > * The kernel is using 851MB of RAM for file cache (which benefits squid). > > And, not RAM, but potentially of interest for the curious: > * The MySQL db is consuming 3.8GB on disk. > * The Squid cache is about 9.2GB on disk. > As Jerry did not specify which content his apache is serving, I used 12MB of RAM per apache process (as a general rule of thumb). But if it's dynamic content generated by a scripting language like php it could be a lot more. But I think 80-100MB of RAM with php in the back should be a good guess. Important thing is: MaxClients x memory footprint per apache process < available memory :-) If you have lots of concurrent requests you may be better suited with something lighter like lighttpd. Or start caching of some sort, like Michael does.
Re: [gentoo-user] Offline Update
A few years ago, I used to run gentoo offline. When I needed to update it, I used to download the portage snapshot, and use the following script, based on Gentoo handbook: #!/bin/bash mv /usr/portage/distfiles /usr/ rm -rf /usr/portage/ tar xvjf $1 -C /usr mv /usr/distfiles /usr/portage/ emerge --metadata emerge --regen I also have another script to built a list of packages for download. You can take this list to a connected place, download the files and put it into /usr/portage/distfiles/. If useful, I can give it to you (but I don't know if it still works). 2012/9/16 Dale > Alan McKinnon wrote: > > On Sun, 16 Sep 2012 18:52:54 +0200 > > Silvio Siefke wrote: > > > >> Hello, > >> > >> can i copy the portage tree from my Notebook to the desktop PC? > > Yes. There is only one tree, not different one for different arches. > > > > So it does not matter where you get your tree from, only that you do > > have a copy. > > > > Do make sure that owners and permissions are set to something that will > > work on the destination after the copy. > > > > > > It's been a while since I did this so, does he need to run emerge > --metadata like used to be needed a long time ago? I think that would > take care of Bryan's concerns too. > > Dale > > :-) :-) > > -- > I am only responsible for what I said ... Not for what you understood or > how you interpreted my words! > > > -- João de Matos Linux User #461527 Graduando em Engenharia de Computação 2005.1 UEFS - Universidade Estadual de Feira de Santana
Re: [gentoo-user] Offline Update
Alan McKinnon wrote: > On Sun, 16 Sep 2012 18:52:54 +0200 > Silvio Siefke wrote: > >> Hello, >> >> can i copy the portage tree from my Notebook to the desktop PC? > Yes. There is only one tree, not different one for different arches. > > So it does not matter where you get your tree from, only that you do > have a copy. > > Do make sure that owners and permissions are set to something that will > work on the destination after the copy. > > It's been a while since I did this so, does he need to run emerge --metadata like used to be needed a long time ago? I think that would take care of Bryan's concerns too. Dale :-) :-) -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words!
Re: [gentoo-user] Offline Update
On Sun, 16 Sep 2012 18:52:54 +0200 Silvio Siefke wrote: > Hello, > > can i copy the portage tree from my Notebook to the desktop PC? > > http://en.gentoo-wiki.com/wiki/Networkless_Maintenance > > I use this as help, but must i load the portage latest or can copy > the tree from Notebook, because is up to date. > > > Thanks for help. > > > Regards > Silvio I don't know if this handles things like package renames that get processed at the end of syncing. Maybe emerge knows to do this on the next run? I haven't tried this way, can someone confirm? One way that works is to uncomment the [gentoo-portage] entry in /etc/rsync.conf on your laptop, start rsyncd, then point your desktop to sync from your laptop with: SYNC="rsync://ip.of.laptop.here/gentoo-portage" in make.conf, and do an emerge --sync / eix-sync as normal. Cheers, Bryan
Re: [gentoo-user] Offline Update
On Sun, 16 Sep 2012 18:52:54 +0200 Silvio Siefke wrote: > Hello, > > can i copy the portage tree from my Notebook to the desktop PC? Yes. There is only one tree, not different one for different arches. So it does not matter where you get your tree from, only that you do have a copy. Do make sure that owners and permissions are set to something that will work on the destination after the copy. > > http://en.gentoo-wiki.com/wiki/Networkless_Maintenance > > I use this as help, but must i load the portage latest or can copy > the tree from Notebook, because is up to date. > > > Thanks for help. > > > Regards > Silvio > -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] Samba wants to downgrade my python....
Andrew Lowe wrote: On 09/16/12 19:53, Neil Bothwick wrote: On Sun, 16 Sep 2012 19:32:11 +0800, Andrew Lowe wrote: I suppose I'll have to have a look at the ebuild to try and work out why this thingy wants Python, any python, in the first place. Portage is written in Python, which raises the question of why you didn't have python:2 installed in the first place. The samba ebuild doesn't include a dependency on python, so you'll need to do and emerge -t to see which packages do pull it in, but I suspect it is required by an eclass inherited by one of the ebuilds. If so, Samba itself does not need Python to do it's job, but portage needs Python in order to install Samba. that would make it a build dependency which could be uninstalled after Samba was merged, but I'd be nervous about removing Python from any Gentoo system that uses portage. Neil, Looks like you've hit the nail on the head. The media machine has just had a new install of Gentoo done and according to "eselect python list", I only have V3.2. Nothing has been removed, just a few things added so it looks like the default "install" only does V3.2. Looks like I'll have to put up with it, the compile time on the little machine is a killer, and let the install happen. Portage works with either instance of python and its ebuild has "python2" and "python3" USE flags. Alas, the build system of sys-libs/talloc seems to require python:2.6 or python:2.7. I would suggest adding dev-lang/python:2.7 to the world file so as to protect it from being reaped by emerge --depclean, only to be required again for future builds. Incidentally, one of the first things I do on a Gentoo system is mask >=dev-lang/python-3.0 and rebuild affected packages against python-2.7. I have yet to find a single instance where having both installed is helpful. Even major applications such as Django still don't support Py3k. Regarding the increase in compilation time, you could get a head start by grabbing a binary package from tinderbox.dev.gentoo.org. Cheers, --Kerin
[gentoo-user] Offline Update
Hello, can i copy the portage tree from my Notebook to the desktop PC? http://en.gentoo-wiki.com/wiki/Networkless_Maintenance I use this as help, but must i load the portage latest or can copy the tree from Notebook, because is up to date. Thanks for help. Regards Silvio
Re: [gentoo-user] Samba wants to downgrade my python....
On 09/16/12 19:53, Neil Bothwick wrote: On Sun, 16 Sep 2012 19:32:11 +0800, Andrew Lowe wrote: I suppose I'll have to have a look at the ebuild to try and work out why this thingy wants Python, any python, in the first place. Portage is written in Python, which raises the question of why you didn't have python:2 installed in the first place. The samba ebuild doesn't include a dependency on python, so you'll need to do and emerge -t to see which packages do pull it in, but I suspect it is required by an eclass inherited by one of the ebuilds. If so, Samba itself does not need Python to do it's job, but portage needs Python in order to install Samba. that would make it a build dependency which could be uninstalled after Samba was merged, but I'd be nervous about removing Python from any Gentoo system that uses portage. Neil, Looks like you've hit the nail on the head. The media machine has just had a new install of Gentoo done and according to "eselect python list", I only have V3.2. Nothing has been removed, just a few things added so it looks like the default "install" only does V3.2. Looks like I'll have to put up with it, the compile time on the little machine is a killer, and let the install happen. Thanks for the feedback everyone, Andrew
Re: [gentoo-user] Generate an ebuild for mldonkey-3.1.3
On 09/16/12 04:20, Alexandre Paz Mena wrote: > Ok, thank you very much! > > Apart from that, I should add those files to the dependencies, right? Nope, all you should have to do is copy the net-p2p/mldonkey/files directory into the corresponding directory in your overlay. The "2.9.5-execstacks.patch" file might not be needed for the 3.1.x you're building, but it won't hurt anything to leave it there.
Re: [gentoo-user] Apache forked itself to death...
On Sun, Sep 16, 2012 at 9:26 AM, Michael Hampicke wrote: > Am 16.09.2012 08:55, schrieb Jarry: >> Hi, >> strange thing happened to my web-server (apache-2.2.22-r1): >> it started forking untill it used all ram/swap and stopped >> responding. I counted ~60 apache processes running (ps -a), >> all sleeping, top showed no load except all memory being used. >> Log-files showed nothing suspicious to me, except for a few >> "GET / HTTP/1.1 200 40" messages at the time when apache >> was already unable to send reply. >> >> Apparently my apache is not correctly configured when it >> "forked to death", but maybe someone can help me. I have >> about 1GB memory for apache. What should I change in my >> config so that apache never runs out of memory? >> >> server-info: >> Timeouts: connection: 60keep-alive: 15 >> MPM Name: Prefork >> MPM Information: Max Daemons: 150 Threaded: no Forked: yes >> Module Name: prefork.c >> 31: StartServers 5 >> 32: MinSpareServers 5 >> 33: MaxSpareServers 10 >> 34: MaxClients 150 >> >> Jarry >> > > > Hi, > > try reducing MaxClients to 64, StartServers and MinSpareServers to 2 and > then observe how things develop. If you then feel apache is to slow to > respond to request under load, try increasing MinSpareServer one at a > time. But always keep in mind: every fork of apache eats your memory. And sucks up system entropy. And increases connection latency, if you've already got a request waiting on that fork to spin up. I have StartServers, MinSpareServers, MaxSpareServers and MaxClients all pegged to the same value. And on the server in question, they'll all pegged to '10'. I have MaxRequestsPerChild set to 2, so that any leaky processes get cleaned up. Because I need to fit a lot of operation into a limited space, I need to be able to reasonably predict how much RAM is going to be in use by each of my services. A "MaxClients" of 10 may seem small, but that's what Squid is for; only requests Squid couldn't cache get passed on to Apache. The server I'm describing is a VM with 4GB of RAM, and is also running MySQL, squid and memcached. For those playing with the numbers in their head, each of these numbers reflect RES (code+data resident in RAM): * Each Apache process is consuming 80-100MB of RAM. * Squid is consuming 666MB of RAM * memcached is consuming 822MB of RAM * mysqld is consuming 886MB of RAM * The kernel is using 110MB of RAM for buffers * The kernel is using 851MB of RAM for file cache (which benefits squid). And, not RAM, but potentially of interest for the curious: * The MySQL db is consuming 3.8GB on disk. * The Squid cache is about 9.2GB on disk. -- :wq
Re: [gentoo-user] Apache forked itself to death...
Am 16.09.2012 08:55, schrieb Jarry: > Hi, > strange thing happened to my web-server (apache-2.2.22-r1): > it started forking untill it used all ram/swap and stopped > responding. I counted ~60 apache processes running (ps -a), > all sleeping, top showed no load except all memory being used. > Log-files showed nothing suspicious to me, except for a few > "GET / HTTP/1.1 200 40" messages at the time when apache > was already unable to send reply. > > Apparently my apache is not correctly configured when it > "forked to death", but maybe someone can help me. I have > about 1GB memory for apache. What should I change in my > config so that apache never runs out of memory? > > server-info: > Timeouts: connection: 60keep-alive: 15 > MPM Name: Prefork > MPM Information: Max Daemons: 150 Threaded: no Forked: yes > Module Name: prefork.c > 31: StartServers 5 > 32: MinSpareServers 5 > 33: MaxSpareServers 10 > 34: MaxClients 150 > > Jarry > Hi, try reducing MaxClients to 64, StartServers and MinSpareServers to 2 and then observe how things develop. If you then feel apache is to slow to respond to request under load, try increasing MinSpareServer one at a time. But always keep in mind: every fork of apache eats your memory.
Re: [gentoo-user] Samba wants to downgrade my python....
On Sun, 16 Sep 2012 19:32:11 +0800, Andrew Lowe wrote: > I suppose I'll have to have a look at the > ebuild to try and work out why this thingy wants Python, any python, in > the first place. Portage is written in Python, which raises the question of why you didn't have python:2 installed in the first place. The samba ebuild doesn't include a dependency on python, so you'll need to do and emerge -t to see which packages do pull it in, but I suspect it is required by an eclass inherited by one of the ebuilds. If so, Samba itself does not need Python to do it's job, but portage needs Python in order to install Samba. that would make it a build dependency which could be uninstalled after Samba was merged, but I'd be nervous about removing Python from any Gentoo system that uses portage. -- Neil Bothwick Top Oxymorons Number 47: Act naturally signature.asc Description: PGP signature
Re: [gentoo-user] Samba wants to downgrade my python....
On 09/16/12 19:19, Randolph Maaßen wrote: On Sep 16, 2012 1:05 PM, "Andrew Lowe" mailto:a...@wht.com.au>> wrote: > > Hi all, > I've got a media server that I'm in the process of installing Samba on. When I do: > > emerge -NuD --pretend samba > > I get a list of stuff that portage wants to install, including Python, V2.7.3, even though the machine already has V3.2.3 installed. I've also stripped down the USE variables to basically "server" and that's all and still for some reason portage wants to bring in Python - the older version, V2. I've even added a "-python" to packages.use and it still wants python, V2. I've had a look at the USE variables for the packages that follow Python in the emerge list and they either don't want python or already have "-python" set. > > Having a play around with equery also didn't reveal anything. Does anyone have any ideas as to what's causing old Python to be brought in? I haven't posted the whole "emerge --info" stuff yet as hopefully someone has come across this problem before. > > Any thoughts greatly appreciated, > > Andrew > Hi, when you are dealing with python always remember that the API has changed between version 2 and 3 so python 3 can't handle python 2 scripts. So what I think emerge is doing here is installing python 2.7 beside 3.2. When you add the verbose flag to the emerge command, you will probably see something like [ NS ] or [ uS ] at the beginning of the python line. The S stands for new slot, so both version will be installedbecause samba or one of it's dependency is using python 2 scripts. Randolph, You have guessed correctly, I get NS. But to me, the question is why do I even need python at all for something that is a file sharing daemon? I've turned off CUPS etc etc, I just want file sharing to the M$ world, not all the other fluff. I suppose I'll have to have a look at the ebuild to try and work out why this thingy wants Python, any python, in the first place. Andrew
Re: [gentoo-user] Samba wants to downgrade my python....
Am Sun, 16 Sep 2012 18:59:33 +0800 schrieb Andrew Lowe : > Hi all, Hi, > I've got a media server that I'm in the process of installing Samba on. > When I do: > > emerge -NuD --pretend samba > > I get a list of stuff that portage wants to install, including Python, > V2.7.3, even though the machine already has V3.2.3 installed. I've also > stripped down the USE variables to basically "server" and that's all and > still for some reason portage wants to bring in Python - the older > version, V2. I've even added a "-python" to packages.use and it still > wants python, V2. I've had a look at the USE variables for the packages > that follow Python in the emerge list and they either don't want python > or already have "-python" set. > > Having a play around with equery also didn't reveal anything. Does > anyone have any ideas as to what's causing old Python to be brought in? > I haven't posted the whole "emerge --info" stuff yet as hopefully > someone has come across this problem before. First of all: Python 2 and 3 are (partly) incompatible versions of the language. They can be installed in parallel in different slots (the emerge output will have contained "NS" at one point, for "New Slot"). So you are not so much downgrading python as installing an older version in addition to the current version. Although "older" and "newer" are misleading, since they have both been under active development in parallel since Python 3 was released. Second: you can use the "-t" (or "--tree") option of emerge to get a tree view of the dependencies, so that you can see what exactly is pulling in python-2.7.3. But it sounds like some dependency of samba has a hard dependency on Python 2, so you probably cannot control it. > Any thoughts greatly appreciated, > > Andrew HTH -- Marc Joliet -- "People who think they know everything really annoy those of us who know we don't" - Bjarne Stroustrup signature.asc Description: PGP signature
Re: [gentoo-user] Samba wants to downgrade my python....
On Sun, 16 Sep 2012 18:59:33 +0800, Andrew Lowe wrote: > I've had a look at the USE variables for the packages > that follow Python in the emerge list and they either don't want python > or already have "-python" set. You've already had a reply about the slotted nature of python, but you also need to understand that USE flags are not dependency lists. USE flags cover optional features, if a package has an option python module, bindings or scripts, a USE flag may determine whether they are installed. But if a package needs python2, no amount of fudging with USE flags will change that fact. -- Neil Bothwick Programmer (n): A red-eyed, mumbling mammal capable of conversing with inanimate objects. signature.asc Description: PGP signature
Re: [gentoo-user] Samba wants to downgrade my python....
On Sun, 16 Sep 2012 18:59:33 +0800 Andrew Lowe wrote: > Hi all, > I've got a media server that I'm in the process of installing > Samba on. When I do: > > emerge -NuD --pretend samba > > I get a list of stuff that portage wants to install, including > Python, V2.7.3, even though the machine already has V3.2.3 installed. > I've also stripped down the USE variables to basically "server" and > that's all and still for some reason portage wants to bring in Python > - the older version, V2. I've even added a "-python" to packages.use > and it still wants python, V2. I've had a look at the USE variables > for the packages that follow Python in the emerge list and they > either don't want python or already have "-python" set. > > Having a play around with equery also didn't reveal anything. > Does anyone have any ideas as to what's causing old Python to be > brought in? I haven't posted the whole "emerge --info" stuff yet as > hopefully someone has come across this problem before. > > Any thoughts greatly appreciated, > > Andrew > Python is slotted (see gentoo docs for more info on SLOTS). Samba is not downgrading python, it is asking for python-2.7 to be installed alongside python-3.2 (so you will then have both). Just accept what portage says and let it do it;s thing - there are many packages out there that are not ported to python-3 yet so you almost certainly are going to need python-2.7 at some point anyway. -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] Samba wants to downgrade my python....
On Sep 16, 2012 1:05 PM, "Andrew Lowe" wrote: > > Hi all, > I've got a media server that I'm in the process of installing Samba on. When I do: > > emerge -NuD --pretend samba > > I get a list of stuff that portage wants to install, including Python, V2.7.3, even though the machine already has V3.2.3 installed. I've also stripped down the USE variables to basically "server" and that's all and still for some reason portage wants to bring in Python - the older version, V2. I've even added a "-python" to packages.use and it still wants python, V2. I've had a look at the USE variables for the packages that follow Python in the emerge list and they either don't want python or already have "-python" set. > > Having a play around with equery also didn't reveal anything. Does anyone have any ideas as to what's causing old Python to be brought in? I haven't posted the whole "emerge --info" stuff yet as hopefully someone has come across this problem before. > > Any thoughts greatly appreciated, > > Andrew > Hi, when you are dealing with python always remember that the API has changed between version 2 and 3 so python 3 can't handle python 2 scripts. So what I think emerge is doing here is installing python 2.7 beside 3.2. When you add the verbose flag to the emerge command, you will probably see something like [ NS ] or [ uS ] at the beginning of the python line. The S stands for new slot, so both version will be installedbecause samba or one of it's dependency is using python 2 scripts. Mit freundlichen Grüßen / Best Regards Randolph Maaßen
[gentoo-user] Samba wants to downgrade my python....
Hi all, I've got a media server that I'm in the process of installing Samba on. When I do: emerge -NuD --pretend samba I get a list of stuff that portage wants to install, including Python, V2.7.3, even though the machine already has V3.2.3 installed. I've also stripped down the USE variables to basically "server" and that's all and still for some reason portage wants to bring in Python - the older version, V2. I've even added a "-python" to packages.use and it still wants python, V2. I've had a look at the USE variables for the packages that follow Python in the emerge list and they either don't want python or already have "-python" set. Having a play around with equery also didn't reveal anything. Does anyone have any ideas as to what's causing old Python to be brought in? I haven't posted the whole "emerge --info" stuff yet as hopefully someone has come across this problem before. Any thoughts greatly appreciated, Andrew
Re: [gentoo-user] Generate an ebuild for mldonkey-3.1.3
Ok, thank you very much! Apart from that, I should add those files to the dependencies, right? On Sun, Sep 16, 2012 at 4:33 AM, Michael Orlitzky wrote: > On 09/15/2012 11:59 AM, Alexandre Paz Mena wrote: > > > > Thanks, I'll post a bug to upstream. > > > > Meanwhile, instead of adding libs, I worked adding them to econf. > > > > But a new problem has appeared, mldonkey-3.1.3 seems to not have a > > init.d script. I thought that was the ebuild work, but both ebuilds are > > almost the same and now I'm looking through the tarballs to see any > > differences related to that. > > The init scripts are usually stored in the package's "files" directory. > You should see the mldonkey one here: > > $ ls /usr/portage/net-p2p/mldonkey/files/ > total 12K > -rw-r--r-- 1 root root 1.6K 2008-06-30 12:12 2.9.5-execstacks.patch > -rw-r--r-- 1 root root 887 2007-01-24 12:40 mldonkey.confd-2.8 > -rw-r--r-- 1 root root 3.1K 2011-10-23 14:22 mldonkey.initd > > The ebuild in portage (tries to) install this: > > ... > newinitd "${FILESDIR}/mldonkey.initd" mldonkey > > > A guess: you copied the ebuilds to an overlay, but didn't copy the > "files" directory. Normally you'd get an error as a result, but there's > a bug (lots of them, actually) in the ebuild. In earlier EAPIs, the > dofoo/newfoo functions could fail but would not do so automatically. The > usual way to handle this is with e.g. > > newinitd x y || die "newinitd didn't work" > > The ebuild doesn't do this, so it happily continues after failing to > install the init script. > > -- Alexandre Paz Mena