Re: [gentoo-user] sed/awk question
Pandu Poluan pa...@poluan.info wrote: On Tue, Nov 22, 2011 at 10:26, Adam Carter adamcart...@gmail.com wrote: sed -r -e 's/(.*)-[0-9].*/\1/' You know, that looks familiar... are you trying to get a package name from the list of eix-installed? :-) No - its non-gentoo. In this case it hasn't worked $ echo net-snmp-5.3.2.2-5.cp843034001.i386.rpm | sed -r -e 's/(.*)-[0-9].*/\1/' net-snmp-5.3.2.2 Ah, yes. sed's greedy regex again messes up the plan . Here's an alternative: sed -r -e 's/-[0-9].*//' Nust a note: sed has no option -r and 's/(.*)-[0-9].*/\1/' is a garbled command. A corrected version would be 's/\(.*\)-[0-9].*/\1/' So the main question is: why do you use a non-existing option? Jörg -- EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin j...@cs.tu-berlin.de(uni) joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
Re: [gentoo-user] sed/awk question
On Tue, Nov 22, 2011 at 16:40, Joerg Schilling joerg.schill...@fokus.fraunhofer.de wrote: Pandu Poluan pa...@poluan.info wrote: On Tue, Nov 22, 2011 at 10:26, Adam Carter adamcart...@gmail.com wrote: sed -r -e 's/(.*)-[0-9].*/\1/' You know, that looks familiar... are you trying to get a package name from the list of eix-installed? :-) No - its non-gentoo. In this case it hasn't worked $ echo net-snmp-5.3.2.2-5.cp843034001.i386.rpm | sed -r -e 's/(.*)-[0-9].*/\1/' net-snmp-5.3.2.2 Ah, yes. sed's greedy regex again messes up the plan . Here's an alternative: sed -r -e 's/-[0-9].*//' Nust a note: sed has no option -r and 's/(.*)-[0-9].*/\1/' is a garbled command. A corrected version would be 's/\(.*\)-[0-9].*/\1/' So the main question is: why do you use a non-existing option? # sed --help Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]... - 8 snip -r, --regexp-extended use extended regular expressions in the script. - 8 snip Rgds, -- FdS Pandu E Poluan ~ IT Optimizer ~ • LOPSA Member #15248 • Blog : http://pepoluan.tumblr.com • Linked-In : http://id.linkedin.com/in/pepoluan
Re: [gentoo-user] sed/awk question
On 11/22/2011 10:40 AM, Joerg Schilling wrote: Here's an alternative: sed -r -e 's/-[0-9].*//' Nust a note: sed has no option -r and 's/(.*)-[0-9].*/\1/' is a garbled command. A corrected version would be 's/\(.*\)-[0-9].*/\1/' So the main question is: why do you use a non-existing option? It does (at least, sys-apps/sed-4.2.1-r1 does): -r, --regexp-extended use extended regular expressions in the script. Appendix A Extended regular expressions *** The only difference between basic and extended regular expressions is in the behavior of a few characters: `?', `+', parentheses, and braces (`{}'). While basic regular expressions require these to be escaped if you want them to behave as special characters, when using extended regular expressions you must escape them if you want them _to match a literal character_. - I just learned something new raf
Re: [gentoo-user] sed/awk question
Pandu Poluan pa...@poluan.info wrote: sed -r -e 's/-[0-9].*//' Nust a note: sed has no option -r and 's/(.*)-[0-9].*/\1/' is a garbled command. A corrected version would be 's/\(.*\)-[0-9].*/\1/' So the main question is: why do you use a non-existing option? # sed --help Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]... - 8 snip -r, --regexp-extended use extended regular expressions in the script. - 8 snip You seem to miss the fact that you are using gsed instead of sed. using -r makes scripts non-portable. Jörg -- EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin j...@cs.tu-berlin.de(uni) joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
[gentoo-user] Re: sed/awk question
The 22/11/11, Joerg Schilling wrote: You seem to miss the fact that you are using gsed instead of sed. using -r makes scripts non-portable. You seem to miss the fact that the OP didn't asked for a portable script and didn't even talked about any system specification. So, it's _welcome_ to suppose he's using the most available implementation of sed on Linux distribution which is GNU sed. -- Nicolas Sebrecht
Re: [gentoo-user] Vim stops installing when it runs installman.sh
On 21 November 2011 18:51, Dale rdalek1...@gmail.com wrote: James Broadhead wrote: Finally: You probably don't need the MAKEOPTS flag at all - try updating vim without it. ( `emerge -u vim` ) That about covers it ;) And don't forget the -1 or --oneshot option either. You are incorrect, vim definitely belongs in world. :wq :P
Re: [gentoo-user] Re: sed/awk question
On 22 November 2011 10:45, Nicolas Sebrecht nsebre...@piing.fr wrote: The 22/11/11, Joerg Schilling wrote: You seem to miss the fact that you are using gsed instead of sed. using -r makes scripts non-portable. You seem to miss the fact that the OP didn't asked for a portable script and didn't even talked about any system specification. So, it's _welcome_ to suppose he's using the most available implementation of sed on Linux distribution which is GNU sed. A: You are not using the original release of sed from 1973!! B: I'm using sed-justforme, with the --magic option. I'm pretty sure that on a linux mailing list, that the chances that he's asking for a GNU-sed compatible regex are pretty strong. Can't we all just get along? :)
Re: [gentoo-user] Re: sed/awk question
On Tue, Nov 22, 2011 at 19:26, James Broadhead jamesbroadh...@gmail.com wrote: On 22 November 2011 10:45, Nicolas Sebrecht nsebre...@piing.fr wrote: The 22/11/11, Joerg Schilling wrote: You seem to miss the fact that you are using gsed instead of sed. using -r makes scripts non-portable. You seem to miss the fact that the OP didn't asked for a portable script and didn't even talked about any system specification. So, it's _welcome_ to suppose he's using the most available implementation of sed on Linux distribution which is GNU sed. A: You are not using the original release of sed from 1973!! B: I'm using sed-justforme, with the --magic option. I'm pretty sure that on a linux mailing list, that the chances that he's asking for a GNU-sed compatible regex are pretty strong. In addition, this is the [gentoo-user] mailing list, so it should be expected that a sed question will be answered based on the sys-apps/sed as provided by Gentoo's portage. If OP needs a portable (i.e., POSIX-compatible) sed, I'm sure he'll explicitly ask :-) Can't we all just get along? :) Kewl! Let's we all get together for a couple pints of beer sometime :D ( OT: Any such thing as a GentooCon ? ) Rgds, -- FdS Pandu E Poluan ~ IT Optimizer ~ • LOPSA Member #15248 • Blog : http://pepoluan.tumblr.com • Linked-In : http://id.linkedin.com/in/pepoluan
[gentoo-user] Get maintainer's email for bug report?
Is there a CLI way of extracting the email addresses of any maintainers listed in metadata.xml? - Mark
Re: [gentoo-user] Get maintainer's email for bug report?
On 22/11/11 17:45, Mark Knecht wrote: Is there a CLI way of extracting the email addresses of any maintainers listed in metadata.xml? - Mark Use epkginfo from app-portage/gentoolkit jsutin signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Get maintainer's email for bug report?
On Tue, Nov 22, 2011 at 10:45 AM, Mark Knecht markkne...@gmail.com wrote: Is there a CLI way of extracting the email addresses of any maintainers listed in metadata.xml? equery m packagename | grep Maintainer
Re: [gentoo-user] Get maintainer's email for bug report?
On Tue, Nov 22, 2011 at 8:53 AM, Paul Hartman paul.hartman+gen...@gmail.com wrote: On Tue, Nov 22, 2011 at 10:45 AM, Mark Knecht markkne...@gmail.com wrote: Is there a CLI way of extracting the email addresses of any maintainers listed in metadata.xml? equery m packagename | grep Maintainer Thanks Paul. That's the sort of command I'm looking for. - Mark
Re: [gentoo-user] Get maintainer's email for bug report?
On Tue, Nov 22, 2011 at 8:49 AM, justin j...@gentoo.org wrote: On 22/11/11 17:45, Mark Knecht wrote: Is there a CLI way of extracting the email addresses of any maintainers listed in metadata.xml? - Mark Use epkginfo from app-portage/gentoolkit jsutin Thanks Justin. Cheers, Mark
[gentoo-user] howto disable automatic net.eth0 configuration
I have a laptop computer with an ethernet port, and during bootup dhcpcd gets invoked (twice) to configure a network connection on 'eth0'. I have set rc_hotplug=* !net.eth0 in /etc/rc.conf and RC_HOTPLUG=yes RC_COLDPLUG=yes RC_PLUG_SERVICES=!net.eth0 in /etc/conf.d/rc (why do these files still both exist after 7 years, especially as they contain duplicate configuration?) I have also set 'noipv4ll' in /etc/dhcpcd.conf. None of these configurations prevent the double automatic initialization attempts for net.eth0. I would just unmerge dhcpcd, but it seems that NetworkManager needs an external dhcp client. What can I do to prevent this behavior? What have I missed? Justin
Re: [gentoo-user] howto disable automatic net.eth0 configuration
On Tue, 22 Nov 2011 10:46:43 -0700, Justin Findlay wrote: I have a laptop computer with an ethernet port, and during bootup dhcpcd gets invoked (twice) to configure a network connection on 'eth0'. I have set rc_hotplug=* !net.eth0 Try rc_hotplug=!net.eth0 *. It may be matching eth0 on the * and looking no further. in /etc/rc.conf and RC_HOTPLUG=yes RC_COLDPLUG=yes RC_PLUG_SERVICES=!net.eth0 in /etc/conf.d/rc (why do these files still both exist after 7 years, especially as they contain duplicate configuration?) Because you did not delete /etc/conf.d/rc after upgrading to baselayout2. I would just unmerge dhcpcd, but it seems that NetworkManager needs an external dhcp client. What can I do to prevent this behaviour? You could ditch NetworkManager... -- Neil Bothwick Windows Error:01F Reserved for future mistakes. signature.asc Description: PGP signature
[gentoo-user] A helping hand with virtual machines, please.
Hi, Gentoo. A friend of mine recently suggested I should install and play with virtual machines on my Gentoo. I've scanned /usr/portage for likely looking packages, particularly in directory virtual, yet found nothing likely looking. Would somebody please give me some hints which packages I should be looking at, and perhaps any use flags I might need. TVM -- Alan Mackenzie (Nuremberg, Germany).
Re: [gentoo-user] A helping hand with virtual machines, please.
On Tue, Nov 22, 2011 at 11:20 AM, Alan Mackenzie a...@muc.de wrote: Hi, Gentoo. A friend of mine recently suggested I should install and play with virtual machines on my Gentoo. I've scanned /usr/portage for likely looking packages, particularly in directory virtual, yet found nothing likely looking. Would somebody please give me some hints which packages I should be looking at, and perhaps any use flags I might need. TVM -- Alan Mackenzie (Nuremberg, Germany). The two biggies are VMware (closed source) and Virtualbox. (Open Source) I use both but am slowly leaving VMware behind. There are others I've never used like kvm, xen, qemu. HTH, Mark
Re: [gentoo-user] A helping hand with virtual machines, please.
On Tue, Nov 22, 2011 at 2:20 PM, Alan Mackenzie a...@muc.de wrote: Hi, Gentoo. A friend of mine recently suggested I should install and play with virtual machines on my Gentoo. I've scanned /usr/portage for likely looking packages, particularly in directory virtual, yet found nothing likely looking. Would somebody please give me some hints which packages I should be looking at, and perhaps any use flags I might need. I've heard you should stay away from virtualbox, due to instability from their kernel modules. Apart from that, make sure your kernel has kvm support enabled. From there, you can either try playing with Xen (I've got my Gentoo desktop as my dom0), libvirt, qemu-kvm or vmware-workstation. I haven't tried any of the latter three on Gentoo, and I haven't tried vmware on Linux at *all*. I can't make a good recommendation for which would suit you best. Perhaps someone else could make a suggestion or two. -- :wq
Re: [gentoo-user] A helping hand with virtual machines, please.
Hi Alan, Am 22.11.2011 20:20, schrieb Alan Mackenzie: Hi, Gentoo. A friend of mine recently suggested I should install and play with virtual machines on my Gentoo. I've scanned /usr/portage for likely looking packages, particularly in directory virtual, yet found nothing likely looking. Virtual machines are all in /usr/portage/app-emulation, not in virtual (that is for virtual packages). Would somebody please give me some hints which packages I should be looking at, and perhaps any use flags I might need. VirtualBox is quite easy for beginners, but requires external kernel modules and requires a GUI (what you most probably want anyway). KVM (maybe with virt-manager as a GUI) is quite powerful for desktop virtualization, but requires processor support (but it is available on all recent (Core2 oder newer) non-Atom CPUs by Intel and AFAIK all recent AMD CPUs) and the kernel modules (but they are real upstream modules and very stable). Xen is the most advanced solution, but maybe not the best one to play around. But it's supported by virt-manager, too. TVM
Re: [gentoo-user] A helping hand with virtual machines, please.
On Tue, 22 Nov 2011 14:43:10 -0500 Michael Mol mike...@gmail.com wrote: On Tue, Nov 22, 2011 at 2:20 PM, Alan Mackenzie a...@muc.de wrote: Hi, Gentoo. A friend of mine recently suggested I should install and play with virtual machines on my Gentoo. I've scanned /usr/portage for likely looking packages, particularly in directory virtual, yet found nothing likely looking. Would somebody please give me some hints which packages I should be looking at, and perhaps any use flags I might need. I've heard you should stay away from virtualbox, due to instability from their kernel modules. I use virtualbox and it's the one I recommend. The kernel modules are no better and no worse than any other out-of-tree modules. Yes, they break sometimes. So does VMWare. So did ath network cards long ago - that's how life works. Here it runs on stable with zero issues about kernel versions for 6 months+, it's probably reasonable to assume that bleeding edge kernels would of course not build occasionally. But does one really want to run VMs on the latest bleeding edge kernel? I don't. What I like about VBox is that you get all the useful bits in the open-source version. With VMWare you get player for free but need paying version to get more functionality. It's been a long time since I payed with Xen so I can't really comment on that product. qemu-kvm would appeal to the hard-core geek, something that Alan Mac is at least in part Apart from that, make sure your kernel has kvm support enabled. From there, you can either try playing with Xen (I've got my Gentoo desktop as my dom0), libvirt, qemu-kvm or vmware-workstation. I haven't tried any of the latter three on Gentoo, and I haven't tried vmware on Linux at *all*. I can't make a good recommendation for which would suit you best. Perhaps someone else could make a suggestion or two. -- Alan McKinnnon alan.mckin...@gmail.com
Re: [gentoo-user] A helping hand with virtual machines, please.
On Tue, 2011-11-22 at 19:20 +, Alan Mackenzie wrote: Hi, Gentoo. A friend of mine recently suggested I should install and play with virtual machines on my Gentoo. I've scanned /usr/portage for likely looking packages, particularly in directory virtual, yet found nothing likely looking. Would somebody please give me some hints which packages I should be looking at, and perhaps any use flags I might need. They would be under app-emulation. The virtual category is for virtual packages (e.g. virtual/editor). You could research Google for Linux visualization. The big 3 open source/semi-open-source are kvm, VirtualBox, and xen. I have personal experience with xen and kvm... and pretty much only use kvm now. The big closed source one is VMware, but, except for legacy requirements, I personally don't know why people (still) use that when the competing open source solutions are typically as good or better than VMWare. As for what USE flags, that would wildly depend on the visualization package you choose (and a billion other ifs). As always, required dependencies are required by the packages themselves, forced USE flags are forced by the packages themselves, anything else is our own personal choice.
Re: [gentoo-user] A helping hand with virtual machines, please.
On 11/22/2011 11:20 AM, Alan Mackenzie wrote: Hi, Gentoo. A friend of mine recently suggested I should install and play with virtual machines on my Gentoo. I've scanned /usr/portage for likely looking packages, particularly in directory virtual, yet found nothing likely looking. Would somebody please give me some hints which packages I should be looking at, and perhaps any use flags I might need. TVM +1 for VirtualBox and more importantly being able to use Vagrant with it. http://vagrantup.com/docs/getting-started/index.html kashani
Re: [gentoo-user] A helping hand with virtual machines, please.
On Tue, 22 Nov 2011 21:14:15 +0100 Felix Kuperjans fe...@desaster-games.com wrote: Would somebody please give me some hints which packages I should be looking at, and perhaps any use flags I might need. VirtualBox is quite easy for beginners, but requires external kernel modules and requires a GUI (what you most probably want anyway). That's not true. VBoxHeadless implements practically everything you can do in the gui, and the built-in RDP server lets you connect from other machines so the host doesn't need to run a gui either. A GUI is strongly recommended, some thing are just easier with pointy-clicky, but it's far from required. External kernel modules are no big deal either. You need the same with VMWare. It's just a package you emerge and modules-rebuild is there to help you remember what must be rebuilt with every kernel build. These days you have to do the same with xorg-modules whenever you upgrade Xorg, so even that is not an issue anymore. -- Alan McKinnnon alan.mckin...@gmail.com
Re: [gentoo-user] A helping hand with virtual machines, please.
Good evening, Felix! On Tue, Nov 22, 2011 at 09:14:15PM +0100, Felix Kuperjans wrote: Hi Alan, Am 22.11.2011 20:20, schrieb Alan Mackenzie: Hi, Gentoo. A friend of mine recently suggested I should install and play with virtual machines on my Gentoo. I've scanned /usr/portage for likely looking packages, particularly in directory virtual, yet found nothing likely looking. Virtual machines are all in /usr/portage/app-emulation, not in virtual (that is for virtual packages). Would somebody please give me some hints which packages I should be looking at, and perhaps any use flags I might need. VirtualBox is quite easy for beginners, but requires external kernel modules and requires a GUI (what you most probably want anyway). KVM (maybe with virt-manager as a GUI) is quite powerful for desktop virtualization, but requires processor support (but it is available on all recent (Core2 oder newer) non-Atom CPUs by Intel and AFAIK all recent AMD CPUs) and the kernel modules (but they are real upstream modules and very stable). I'm kind of leaning towards KVM at the moment. Just a quick question: by kernel modules do you literally mean kernel modules? It's just that my kernel isn't built for modules (for simplicity's sake), so would that mean me having to change this, or can I just build the stuff in? Xen is the most advanced solution, but maybe not the best one to play around. But it's supported by virt-manager, too. TVM -- Alan Mackenzie (Nürnberg).
Re: [gentoo-user] A helping hand with virtual machines, please.
On Tue, 2011-11-22 at 14:43 -0500, Michael Mol wrote: On Tue, Nov 22, 2011 at 2:20 PM, Alan Mackenzie a...@muc.de wrote: Hi, Gentoo. A friend of mine recently suggested I should install and play with virtual machines on my Gentoo. I've scanned /usr/portage for likely looking packages, particularly in directory virtual, yet found nothing likely looking. Would somebody please give me some hints which packages I should be looking at, and perhaps any use flags I might need. I've heard you should stay away from virtualbox, due to instability from their kernel modules. Apart from that, make sure your kernel has kvm support enabled. From there, you can either try playing with Xen (I've got my Gentoo desktop as my dom0), libvirt, qemu-kvm or vmware-workstation. I haven't tried any of the latter three on Gentoo, and I haven't tried vmware on Linux at *all*. I can't make a good recommendation for which would suit you best. Perhaps someone else could make a suggestion or two. YMMV ... VB is stable and rarely if ever breaks, app and modules just work - performance is as good as vmware vmware is a pig, you have to wait for matching kernel versions, the licensing system sucks (I am not part of the IT staff, so because my Institution centralises licensing, I have to get them to download it for me every few months ... which means talking new helpdesk staff through a process I cant participate in). The upgrade process sucks ... you need to use the vmware overlay as the tree version often just wont build (usually requires different patches for every version). Its tied to having particular versions/modules/kernels and you have to actively manage it which includes things like putting a copy in your own portage overlay since the version you are licenced for gets punted from the tree/overlay so you end up chasing ebuilds from the attic ... It also currently fails glsa-check for libpng as it requires an old png version to build (this may be something unique to my system) In use, vmware breaks regularly ... often requires waiting weeks before patches/updates for kernels are out so its restore from a working backup until upgrades are fixed. VB doesnt need this. As I said, YMMV but I am hoping to phase vmware out of my area. I have been using vmware since Version 1 but have no love for it. BillK
Re: [gentoo-user] A helping hand with virtual machines, please.
On Tue, 22 Nov 2011 22:29:23 +0200, Alan McKinnon wrote: What I like about VBox is that you get all the useful bits in the open-source version. Except USB support. -- Neil Bothwick What do you get if you cross an agnostic, an insomniac and adyslexic? Someone who lies awake at night wondering if there really is a dog. signature.asc Description: PGP signature
Re: [gentoo-user] A helping hand with virtual machines, please.
Am 22.11.2011 23:12, schrieb Alan Mackenzie: Good evening, Felix! Good evening, Alan! On Tue, Nov 22, 2011 at 09:14:15PM +0100, Felix Kuperjans wrote: Hi Alan, Am 22.11.2011 20:20, schrieb Alan Mackenzie: Hi, Gentoo. A friend of mine recently suggested I should install and play with virtual machines on my Gentoo. I've scanned /usr/portage for likely looking packages, particularly in directory virtual, yet found nothing likely looking. Virtual machines are all in /usr/portage/app-emulation, not in virtual (that is for virtual packages). Would somebody please give me some hints which packages I should be looking at, and perhaps any use flags I might need. VirtualBox is quite easy for beginners, but requires external kernel modules and requires a GUI (what you most probably want anyway). KVM (maybe with virt-manager as a GUI) is quite powerful for desktop virtualization, but requires processor support (but it is available on all recent (Core2 oder newer) non-Atom CPUs by Intel and AFAIK all recent AMD CPUs) and the kernel modules (but they are real upstream modules and very stable). I'm kind of leaning towards KVM at the moment. Just a quick question: by kernel modules do you literally mean kernel modules? It's just that my kernel isn't built for modules (for simplicity's sake), so would that mean me having to change this, or can I just build the stuff in? It can be built in as well. The necessary options are: Virtualization - Kernel-based Virtual Machine (KVM) support and then the corresponding processor support, i.e.: KVM for Intel processors support or KVM for AMD processors support That should be usually sufficient, the Host kernel accelerator for virtio net can speed up your network but is not necessary. Xen is the most advanced solution, but maybe not the best one to play around. But it's supported by virt-manager, too. TVM
[gentoo-user] sys-boot/grub USE=static
I'm just wondering, what are the benefits drawbacks of turning on static USE flag for sys-boot/grub? Rgds, -- FdS Pandu E Poluan ~ IT Optimizer ~ • LOPSA Member #15248 • Blog : http://pepoluan.tumblr.com • Linked-In : http://id.linkedin.com/in/pepoluan
Re: [gentoo-user] LVM and LABELS in fstab
Another LVM question. If I want to remove a drive and tell pvmove to move the data off it, can the drive have files being written to it while this is done? I'm wanting to use my old spare drive to move some things around but right now LVM has it. I think it is OK but just want to make sure. If it is not OK, do I have to unmount the LV first? Thanks. Dale :-) :-) -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words!