Re: [gentoo-user] Re: Re: Re: Another hardware thread
Am 18.11.2011 10:46, schrieb Stefan G. Weichinger: hardware order planned for next week maybe. Right now I consider simply skipping the K-CPU and get some pre-built system w/ full guarantee and stuff (even the K-CPU is outdated soon, and the normal i7-2600 is also much faster than my C2D-E6600). The HP Z210 SFF brings the i7-2600-CPU, this should also bring enough power into my office ;-) I just wonder about the Intel C206 chipset. AFAI see from the specs it should support the on-cpu-graphics (although I would get a Nvidia Quadro 600 w/ that box) and -more important- the whole Intel-VT-stuff for using KVM. correct? anyone using such a board? It might be a bit small though ... 2 hdds are possible, but I wonder if the whole system is still silent then ... Stefan
[gentoo-user] Re: [SOLVED] Help; ISO8859-1 fonts not being installed
On Sun, Nov 20, 2011 at 03:57:02PM -0500, waltd...@waltdnes.org wrote When I emerge font-misc-misc, ISO8859-1 fonts do not get built. See attached build.log.gz. Note... checking whether to build ISO8859-1 fonts... no ### What ?!?!?! checking whether to build ISO8859-2 fonts... no checking whether to build ISO8859-3 fonts... no checking whether to build ISO8859-4 fonts... no checking whether to build ISO8859-5 fonts... no checking whether to build ISO8859-7 fonts... no checking whether to build ISO8859-8 fonts... no checking whether to build ISO8859-9 fonts... no checking whether to build ISO8859-10 fonts... no checking whether to build ISO8859-11 fonts... no checking whether to build ISO8859-13 fonts... no checking whether to build ISO8859-14 fonts... no checking whether to build ISO8859-15 fonts... no checking whether to build ISO8859-16 fonts... no checking whether to build KOI8-R fonts... no checking whether to build JISX0201 fonts... no See https://bugs.gentoo.org/show_bug.cgi?id=368335 for the bug and the work-around. It is a heavy-handed hack, but at least the font installs, and xfreecell works. -- Walter Dnes waltd...@waltdnes.org
Re: [gentoo-user] Progress on s/udev/mdev/
On Sat, Nov 19, 2011 at 09:53:50PM -0600, Dale wrote Question: Is this going to be added to the shiney new Gentoo wiki at some point? The wiki needs some more content for sure. ;-) I didn't know if ya'll had thought of this before or not. Actually, I was hoping to convince the devs to accept a patched ebuild that would accept busybox with the +mdev flag, in addition to the other options in RDEPEND. If this gets accepted by the devs, it would imply changes in the Gentoo docs, plus an additional new profile, etc, etc. Right now, it has to be manually maintained, because it's off the beaten path, and beta-testing, etc. I'm not looking to fork Gentoo. I want this to become another optional profile, not a hack-job that has to be manually maintained by the user. IANACP (I Am Not A C Programmer). I'm willing to help out in the documentation, or where ever else I can. -- Walter Dnes waltd...@waltdnes.org
Re: [gentoo-user] Progress on s/udev/mdev/
On Mon, Nov 21, 2011 at 17:22, waltd...@waltdnes.org wrote: On Sat, Nov 19, 2011 at 09:53:50PM -0600, Dale wrote Question: Is this going to be added to the shiney new Gentoo wiki at some point? The wiki needs some more content for sure. ;-) I didn't know if ya'll had thought of this before or not. Actually, I was hoping to convince the devs to accept a patched ebuild that would accept busybox with the +mdev flag, in addition to the other options in RDEPEND. If this gets accepted by the devs, it would imply changes in the Gentoo docs, plus an additional new profile, etc, etc. True, it would be very preferred to have mdev as a new profile. BUT ... If the procedure lacks something and/or causes a huge number of bugs/annoyances, it will never be accepted as a profile. So we'll have to start with what we have right now, and push it to as many early adopters as possible. One way is to put this into wiki.g.o as an article, and give people a linkback via this list and/or the forums. Right now, it has to be manually maintained, because it's off the beaten path, and beta-testing, etc. I'm not looking to fork Gentoo. I want this to become another optional profile, not a hack-job that has to be manually maintained by the user. Eh? The changes are so minor it truly can't be considered a fork. Hack-job, perhaps. Fork, no ;-) IANACP (I Am Not A C Programmer). I'm willing to help out in the documentation, or where ever else I can. AFAICT, your procedure involves no C programming at all. After reflecting on your procedure, I think the whole process can be automated via scripts (bash and/or .ebuild). Let's see if I can whup up such a script within this week... 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] Re: Beta test Gentoo with mdev instead of udev; version 2
Based on feedback, I've changed step 6, to get a modified ebuild for virtual/dev-manager to properly check for busybox with the mdev USE flag. Steps 1-through-5 are unchanged. The usual warnings apply... * this is a beta * use a spare test machine * if you don't follow the instructions correctly, the result might be an unbootable linux * even if you do follow instructions, the result might be an unbootable linux 1) Set up your kernel to support and automount a devtmpfs filesystem at /dev * If you prefer to edit .config directly, set CONFIG_DEVTMPFS=y and CONFIG_DEVTMPFS_MOUNT=y * If you prefer make menuconfig, the route is as shown below. Note that the Autount devtmpfs... option won't appear until you enable Maintain a devtmpf... option. make menuconfig Device Drivers --- Generic Driver Options --- [*] Maintain a devtmpfs filesystem to mount at /dev [*] Automount devtmpfs at /dev, after the kernel mounted the rootfs Once you've made the changes, rebuild the kernel. 2) Set up for emerging busybox, there are 2 items to change A) It appears that there may be an mdev bug in older versions of busybox. To avoid that bug, keyword busybox-1.19.2 in /etc/portage/package.keywords E.g. if you're using 32-bit Gentoo on Intel, the incantation is... =sys-apps/busybox-1.19.2 ~x86 Change the ~x86 to reflect your architecture, etc. B) busybox requires the mdev flag in this situation. The static flag is probably also a good idea. In file /etc/portage/package.use add the line sys-apps/busybox static mdev Now, emerge busybox 3) In the bootloader append line, include init=/sbin/linuxrc where the file /sbin/linuxrc consists of *AT LEAST*... #!/sbin/busybox ash mount -t proc proc /proc mount -t sysfs sysfs /sys exec /sbin/init This should be enough for most users. If you have an unusual setup, you may need additional stuff in there. If you're using lilo remember to re-run lilo to implement the changes. 4) Remove udev from the services list, and replace it with mdev. Type the following 2 commands at the command line rc-update del udev sysinit rc-update add mdev sysinit 5) reboot to your new kernel. You're now running without using udev. 6) ***THIS STEP IS OPTIONAL*** This is only to alay any suspicion that udev is still in use. udev is pulled in by virtual/dev-manager, which in turn is pulled in by the kernel. * If you don't already have an overlay, create one, and implement it in /etc/make.conf. In the following example, I'll use my setup, which has the overlay in /usr/local/portage * copy the contents of /usr/portage/virtual/dev-manager/ to /usr/local/portage/virtual/dev-manager/ * cd /usr/local/portage/virtual/dev-manager/ * Edit the dev-manager-0.ebuild in the overlay to include sys-apps/busybox[mdev] as one option in RDEPEND. And also include EAPI=2 at the top of the ebuild, which is required for this syntax. The revised ebuild is shown below. EAPI=2 DESCRIPTION=Virtual for the device filesystem manager HOMEPAGE= SRC_URI= LICENSE= SLOT=0 KEYWORDS=alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~spar c-fbsd ~x86-fbsd IUSE= DEPEND= RDEPEND=|| ( sys-fs/udev sys-apps/busybox[mdev] sys-fs/devfsd sys-fs/static-dev sys-freebsd/freebsd-sbin ) * execute the following 3 commands at the commandline ebuild dev-manager-0.ebuild digest emerge -1 dev-manager emerge --unmerge sys-fs/udev * In file /atc/portage/package.mask, append the line sys-fs/udev Create the file if it doesn't already exist. You now have a totally udev-free machine -- Walter Dnes waltd...@waltdnes.org
[gentoo-user] Re: Can't get racoon IPSec going on the client machine
On 20 November 2011 16:06, Mick michaelkintz...@gmail.com wrote: Hi All, I have been trying for some time now to set up a road warrior VPN client so that I can connect to my home router and administer machines on the LAN. However, my understanding of IPSec is poor and consequently my configuration of racoon is not working. There are other apps out there like strongswan, but would really like to learn to do it using the vanilla racoon and kernel set up first rather than apply another layer of software to it. Could some kind soul give me a nudge in troubleshooting this? On the home router I have: public IP: 123.456.78.9 LAN: 10.10.10.0/24 router LAN IP: 10.10.10.1 respond anymode local-id fqdn router1_VPN peer any encryption aes-256-cbc authentication pre-share DH group 2 crypto ipsec transform-set esp-aes-256-cbc-esp-sha-hmac esp-aes-256-cbc esp- sha-hmac mode tunnel On the laptop, I have this in the racoon.conf: === # Racoon IKE daemon configuration file. # See 'man racoon.conf' for a description of the format and entries. path pre_shared_key /etc/racoon/psk.txt; path certificate /etc/racoon/certs; path script /etc/racoon; listen { # socket used for communication between racoon and racoonctl adminsock /var/run/racoon/racoon.sock root operator 0660; } remote 123.456.78.9 { exchange_mode aggressive; my_identifier fqdn dell_xps_VPN; peers_identifier fqdn router1_VPN; mode_cfg on; proposal_check obey; # nat_traversal on; # ike_frag on; # script /etc/racoon/phase1_up_down.sh phase1_up; # script /etc/racoon/phase1_up_downdown.sh phase1_down; proposal { encryption_algorithm aes; hash_algorithm sha1; authentication_method pre_shared_key; dh_group 2; } } sainfo anonymous { lifetime time 1 hour; encryption_algorithm aes; authentication_algorithm hmac_sha1; compression_algorithm deflate; } === I connect to the Internet using my mobile and I get this from the ISP: # netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 193.30.166.3 0.0.0.0 UG 0 0 0 ppp0 127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo 193.30.166.3 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 Where 193.30.166.3 is the ISP's gateway. The ppp0 ip address is 10.149.124.40: # ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:252 errors:0 dropped:0 overruns:0 frame:0 TX packets:252 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:10678 (10.4 KiB) TX bytes:10678 (10.4 KiB) ppp0 Link encap:Point-to-Point Protocol inet addr:10.149.124.40 P-t-P:193.30.166.3 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:5 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:74 (74.0 B) TX bytes:107 (107.0 B) Now the problem is that upon starting racoon I do not see a tunnel being formed and indeed I cannot connect to machines in the LAN. This from the log: == Nov 20 13:40:59 dell_xps racoon: INFO: Reading configuration from /etc/racoon/racoon.conf Nov 20 13:40:59 dell_xps racoon: NOTIFY: NAT-T is enabled, autoconfiguring ports Nov 20 13:40:59 dell_xps racoon: INFO: 127.0.0.1[500] used as isakmp port (fd=7) Nov 20 13:40:59 dell_xps racoon: INFO: 127.0.0.1[500] used for NAT-T Nov 20 13:40:59 dell_xps racoon: INFO: 127.0.0.1[4500] used as isakmp port (fd=8) Nov 20 13:40:59 dell_xps racoon: INFO: 127.0.0.1[4500] used for NAT-T Nov 20 13:40:59 dell_xps racoon: INFO: 10.149.124.40[500] used as isakmp port (fd=9) Nov 20 13:40:59 dell_xps racoon: INFO: 10.149.124.40[500] used for NAT-T Nov 20 13:40:59 dell_xps racoon: INFO: 10.149.124.40[4500] used as isakmp port (fd=10) Nov 20 13:40:59 dell_xps racoon: INFO: 10.149.124.40[4500] used for NAT-T Nov 20 13:40:59 dell_xps racoon: INFO: ::1[500] used as isakmp port (fd=11) Nov 20 13:40:59 dell_xps racoon: INFO: ::1[4500] used as isakmp port (fd=12) == Why is it not showing the public router address 123.456.78.9 or the router LAN address and shows the loopback instead? I tried including this up/down script but it made no odds: == #!/bin/bash # # manipulate IPSec SA database on behalf of the racoon daemon # Gabriel Somlo
Re: [gentoo-user] Re: Re: Re: Another hardware thread
Am 2011-11-21 09:45, schrieb Stefan G. Weichinger: Am 18.11.2011 10:46, schrieb Stefan G. Weichinger: hardware order planned for next week maybe. Right now I consider simply skipping the K-CPU and get some pre-built system w/ full guarantee and stuff (even the K-CPU is outdated soon, and the normal i7-2600 is also much faster than my C2D-E6600). The HP Z210 SFF brings the i7-2600-CPU, this should also bring enough power into my office ;-) Case closed: ordered a HP Elite 7300 right now. H67-Chipset, i7-2600, bigger Tower, 6 GB RAM for a start, more to be added later. Stefan
Re: [gentoo-user] Vim stops installing when it runs installman.sh
On 21 November 2011 15:00, 1990 dqgcs dqgcs1...@gmail.com wrote: Hi Mick Here is my output ,Thanks for help!!! *** .-(~)-(ayu@Freedom )- `-- MAKEOPTS=-j1 emerge -uaDv app-editors/vim This action requires superuser access... Would you like to add --pretend to options? [Yes/No] yes These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] app-arch/bzip2-1.0.6-r3 [1.0.6-r2] USE=static-libs%* -static 0 kB [ebuild U ] dev-libs/icu-4.8.1-r2 [4.8] USE=static-libs -debug -doc -examples 18,241 kB [ebuild U ] dev-libs/libffi-3.0.10 [3.0.9-r2] USE=static-libs -debug -test 736 kB [ebuild U ] sys-libs/timezone-data-2011l [2011h] USE=nls 331 kB [ebuild U ] sys-devel/automake-wrapper-5 [4] 0 kB [ebuild U ] sys-apps/sandbox-2.5 [2.4] USE=(-multilib) 348 kB [ebuild U ] sys-apps/less-444 [441] USE=unicode 301 kB [ebuild U ] sys-kernel/linux-headers-2.6.39 [2.6.36.1] 4,583 kB [ebuild U ] dev-perl/IO-Socket-SSL-1.440.0 [1.35] USE=-idn 68 kB [ebuild U ] dev-util/gtk-doc-am-1.18 [1.17] 623 kB [ebuild U ] media-libs/freetype-2.4.7 [2.4.6] USE=X bzip2 static-libs -auto-hinter -bindist -debug -doc -fontforge -utils 1,456 kB [ebuild U ] dev-lang/python-2.7.2-r3 [2.7.1-r1] USE=gdbm ipv6 ncurses readline ssl threads (wide-unicode) xml -berkdb -build -doc -examples -sqlite* -tk -wininst 11,494 kB [ebuild U ] dev-libs/libxml2-2.7.8-r3 [2.7.8-r1] USE=icu ipv6 python readline static-libs%* -debug -doc -examples -test 0 kB [ebuild U ] dev-libs/libxslt-1.1.26-r2 [1.1.26-r1] USE=crypt python static-libs%* -debug 0 kB [ebuild U ] dev-lang/python-3.1.4-r3 [3.1.3-r1] USE=gdbm ipv6 ncurses readline ssl threads (wide-unicode) xml -build -doc -examples -sqlite -tk -wininst 8,005 kB [ebuild U ] sys-apps/util-linux-2.19.1-r1 [2.19.1] USE=cramfs crypt ncurses nls unicode -loop-aes -old-linux -perl (-selinux) -slang (-uclibc) 0 kB [ebuild U ] sys-devel/binutils-2.21.1-r1 [2.20.1-r1] USE=nls static-libs -multislot -multitarget -test -vanilla 18,572 kB [ebuild U ] sys-devel/llvm-2.9-r2 [2.8-r2] USE=libffi -debug -llvm-gcc -multitarget -ocaml -test -udis86 -vim-syntax% 9,351 kB [ebuild U ] app-text/docbook-xsl-stylesheets-1.76.1 [1.75.2] 3,597 kB [ebuild U ] sys-apps/dbus-1.4.16 [1.4.12] USE=X static-libs -debug -doc (-selinux) -test 1,846 kB [ebuild U ] dev-util/ctags-5.8 [5.7] USE=-ada 469 kB [ebuild U ] dev-libs/dbus-glib-0.98 [0.92] USE=static-libs -debug -doc -test (-bash-completion%) 707 kB [ebuild U ] x11-misc/xdg-utils-1.1.0_rc1_p20111003 [1.1.0_rc1_p20110519] USE=-doc 1,141 kB [ebuild U ] sys-libs/pam-1.1.5 [1.1.4] USE=berkdb cracklib nls -audit -debug -nis (-selinux) -test -vim-syntax 1,584 kB [ebuild U ] sys-auth/polkit-0.102 [0.101-r1] USE=gtk introspection nls pam -debug -doc -examples -kde 860 kB [ebuild N ] app-editors/vim-core-7.3.266 USE=acl nls -bash-completion -livecd 0 kB [ebuild N ] app-editors/vim-7.3.266 USE=X acl gpm nls python -bash-completion -cscope -debug -minimal -perl -ruby -vim-pager 0 kB [ebuild U ] x11-libs/gtk+-2.24.5-r1 [2.24.4] USE=cups introspection (-aqua) -debug -doc -examples -test -vim-syntax -xinerama 12,942 kB [ebuild U ] media-libs/libpng-1.5.5 [1.4.8-r1] USE=static-libs -apng 670 kB [ebuild U ] x11-libs/gdk-pixbuf-2.24.0-r1 [2.22.1-r2] USE=X introspection jpeg -debug -doc -jpeg2k -test -tiff (-svg%*) 1,149 kB [ebuild U ] app-text/ghostscript-gpl-9.04-r4 [9.04-r3] USE=X cups dbus gtk static-libs -bindist -djvu -idn -jpeg2k LINGUAS=zh_CN -ja -ko -zh_TW 0 kB [blocks B ] x11-libs/libsexy-0.1.11-r3 (x11-libs/libsexy-0.1.11-r3 is blocking media-libs/libpng-1.5.5) [blocks B ] x11-libs/gdk-pixbuf-2.24.0-r1 (x11-libs/gdk-pixbuf-2.24.0-r1 is blocking media-libs/libpng-1.5.5) Total: 31 packages (29 upgrades, 2 new), Size of downloads: 99,064 kB Conflict: 2 blocks (2 unsatisfied) * Error: The above package list contains packages which cannot be * installed at the same time on the same system. (media-libs/libpng-1.5.5::gentoo, ebuild scheduled for merge) pulled in by media-libs/libpng:0 required by (app-text/ghostscript-gpl-9.04-r4::gentoo, ebuild scheduled for merge) =media-libs/libpng-1.4.3:0 required by (net-print/cups-1.4.8-r1::gentoo, installed) =media-libs/libpng-1.4:0 required by (app-text/poppler-0.16.7::gentoo, installed) =media-libs/libpng-1.4:0 required by (x11-libs/gdk-pixbuf-2.24.0-r1::gentoo, ebuild scheduled for merge) media-libs/libpng:0 required by (x11-libs/cairo-1.10.2-r1::gentoo, installed) For more information about Blocked Packages, please refer to the following section of the Gentoo Linux x86 Handbook
Re: [gentoo-user] Vim stops installing when it runs installman.sh
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. Dale :-) :-) -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words!
Re: [gentoo-user] I'm getting this error when I log into PHPMYADMIN (/htdocs/phpmyadmin/libraries/Error.class.php on line 179)
On 21 November 2011 00:49, Mick michaelkintz...@gmail.com wrote: On Monday 21 Nov 2011 02:53:20 Michael Mol wrote: Check php.net for docs around error handling, specifically where to send errors (you want it going to a log file, not the web browser), and what severity of error to stop the script at; normally, NOTICE and WARNING grade errors still leave most apps functioning...but that's tunable in php.ini. It's also very likely that there's something else wrong, but I don't have any good first guesses. ZZ Also go to line 179 (referred to in the error you get) and look for any obvious missing files, links, etc. that may be causing this. -- Regards, Mick Hello, Thank you for your answers! Well, what I did: I just downgrade PHP to: 5.3.9_rc1 and re-emerged PHP with PHPMYADMIN. And everything seems to be working fine.. (at least for now) Maybe later I will try to upgrade again to see what's wrong. Regards -- Carlos Sura.- www.carlossura.com
[gentoo-user] sed/awk question
Hi All, I need to cut a string, which happens to be a filename, using the first dash that's followed by a numeral, so cut -f 1 -d- fails if the filename has an extra dash. How do i do this?
Re: [gentoo-user] sed/awk question
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
Re: [gentoo-user] sed/awk question
I'd use sed and the regex -[0-9] to delimit the field foo=`echo '123--bad-2xyz-3--' | sed -r -e s/-[0-9].*//` echo $foo 123--bad Helpful? Adam Carter wrote: Hi All, I need to cut a string, which happens to be a filename, using the first dash that's followed by a numeral, so cut -f 1 -d- fails if the filename has an extra dash. How do i do this? -- University of Houston, Cougar Card services support.
Re: [gentoo-user] sed/awk question
Oh, and you can get the other end next by foo2=`echo '123--bad-2xyz-3--' | sed -r -e s/$foo//` echo $foo2 -2xyz-3-- Joseph Davis wrote: I'd use sed and the regex -[0-9] to delimit the field foo=`echo '123--bad-2xyz-3--' | sed -r -e s/-[0-9].*//` echo $foo 123--bad Helpful? Adam Carter wrote: Hi All, I need to cut a string, which happens to be a filename, using the first dash that's followed by a numeral, so cut -f 1 -d- fails if the filename has an extra dash. How do i do this? -- University of Houston, Cougar Card services support.
Re: [gentoo-user] sed/awk question
On 11/21/2011 06:52 PM, Adam Carter wrote: Hi All, I need to cut a string, which happens to be a filename, using the first dash that's followed by a numeral, so cut -f 1 -d- fails if the filename has an extra dash. How do i do this? Here's a Bourne parameter expansion: blee@eclipse ~ $ foo=net-snmp-5.3.2.2-5.cp843034001.i386.rpm blee@eclipse ~ $ echo ${foo%%-[0-9]*} net-snmp -- Benjamin Lee http://www.b1c1l1.com/ signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] sed/awk question
I'd use sed and the regex -[0-9] to delimit the field foo=`echo '123--bad-2xyz-3--' | sed -r -e s/-[0-9].*//` echo $foo 123--bad Helpful? Perfect - thanks!
Re: [gentoo-user] sed/awk question
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].*//' Basically, the regex above tries to (greedily) match dash followed by a digit followed by zero or more (any) characters... then deletes the match. Thus leaving the front part of the string untouched. (And yes, this time I've tested the sed incantation) Rgds, -- FdS Pandu E Poluan ~ IT Optimizer ~ • LOPSA Member #15248 • Blog : http://pepoluan.tumblr.com • Linked-In : http://id.linkedin.com/in/pepoluan