Re: [gentoo-user] [OT] One line script for md5sum

2008-12-13 Thread smallnow
token* is the best. I also have this useful script in my bashrc.

its just an extended version of this.
[[ $(md5sum < file1) == $(md5sum < file2) ]]

so you can just give it two files as its argument and it returns 0 if they are
the same. -v for verbose

md5() {
local v x y;
[[ $1 == -v ]] && [[ $# == 3 ]] && { v=true; shift; }
if [[ $# != 2 ]]; then
[[ $v ]] && echo Error: need 2 arguments.
return 2
fi
if [[ $v ]]; then
x=$(md5sum < "$1" ) || return 2
y=$(md5sum < "$2" ) || return 2
else
{ x=$(md5sum < "$1" ) ;} &> /dev/null || return 2
{ y=$(md5sum < "$2" ) ;} &> /dev/null || return 2
fi
if [[  $x == $y ]]; then
[[ $v ]] && echo Same.
return 0
else
[[ $v ]] && echo Different.
return 1
fi
}

- Ian



[gentoo-user] BCM4401 Ethernet Card stopped working after kernel upgrade

2008-12-13 Thread dell core2duo
Hi All,
   I just upgraded to  sys-kernel/tuxonice-sources-2.6.26 kernel. Everything
was working fine before but now my bcm4401 ethernet card stopped working.
   I tried booting in my old kernel and card is working fine with old
kernel.

  Could someone help to solve this problem ?



My dmesg snippet and some useful info are below.


b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
b44: eth0: powering down PHY



Card

03:00.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev
02)

Driver
=
fluke...@flukebox ~ $ modinfo b44
filename:   /lib/modules/2.6.26-tuxonice/kernel/drivers/net/b44.ko
version:2.0
license:GPL
description:Broadcom 44xx/47xx 10/100 PCI ethernet driver
author: Felix Fietkau, Florian Schirmer, Pekka Pietikainen, David S.
Miller
srcversion: AC42292194F1E7451BB40C6
alias:  ssb:v4243id0806rev*
alias:  pci:v14E4d170Csv*sd*bc*sc*i*
alias:  pci:v14E4d4402sv*sd*bc*sc*i*
alias:  pci:v14E4d4401sv*sd*bc*sc*i*
depends:mii
vermagic:   2.6.26-tuxonice SMP mod_unload modversions CORE2
parm:   b44_debug:B44 bitmapped debugging message enable value (int)


Kernel
=
fluke...@flukebox ~ $ uname -a
Linux flukebox 2.6.26-tuxonice #6 SMP Sun Dec 14 00:55:06 IST 2008 i686
Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz GenuineIntel GNU/Linux


[gentoo-user] {OT} Storage expansion options

2008-12-13 Thread Grant
My desktop currently runs one of these:

http://www.newegg.com/Product/Product.aspx?Item=N82E16822148140

I'm pretty much out of space and I'm trying figure out the best way to
expand.  The factors to consider are cost, capacity, speed, noise, and
heat.  Should I get another identical drive and set up RAID, or will
that create too much noise and heat?  Should I get rid of my current
drive and get a new drive, or will that not be much faster?
Velociraptors are reputed to be very fast, but $200 for 300GB is
pretty expensive and 1TB would require 4 drives which I think would
create a lot of noise and heat.

Just looking for advice from experienced storage folk.

- Grant



[gentoo-user] Re: ebuild for recent ATI driver, whom to go to?

2008-12-13 Thread James
Miguel Ramos <2008  miguel.ramos.name> writes:


> > http://techreport.com/discussions.x/15886

> > I sure hope we get at least a function level profile
> > that works with gcc with Catalyst 8.12.

should have said "profiler"
Breaking down algorithms and make a fundamentally better 
algo for a gpu, will require a really good "profiler" to
imho.

> I took a look at your link but I can't see what I was expected to see.
 

Here'w what I was my emphasis:

"Simultaneously with the Catalyst 8.12 driver release, AMD expects to introduce
version 1.3 of its Stream SDK to developers. The new-and-improved development
toolkit will bring "significant performance enhancements" to the Brook+
high-level programming language, and it will support Radeon HD 4350, 4550, and
4600 graphics cards plus a new high-performance computing card—the AMD
FireStream 9270."


> Anyway, it seems to me that all that is needed is to have the GPU
> compiler running on the host system.
> I wouldn't think that the code produced or the binding code for the
> CPU would then require us to pull in glibc-2.2.5.
> But then, I never used Brook+ or Cal.

Me either. I was waiting until somebody in the gentoo community got
things at least functional, before obtaining  a high end video
card for GPU experimentation and programming.

I guess I'll just have to wait a little bit longer


thanks,
James








Re: [gentoo-user] [OT] One line script for md5sum

2008-12-13 Thread Robert Bridge
On Sat, 13 Dec 2008 23:49:50 +
Mick  wrote:

> Hi All,
> 
> Is there a clever way to enter a string (rather than write a script
> file) so that md5sum will check a whole series of files in one go and
> report success or error;  I was thinking along the lines of if $value
> is ... then md5sum -c ..., but my non-existent scripting knowledge
> won't take me any further.  I want it to check a series of files
> named tokena, tokenb, tokenc, ... , etc.

purely in the spirit of coming up with the simplest one...

md5sum -c token*

RobbieAB


signature.asc
Description: PGP signature


Re: [gentoo-user] [OT] One line script for md5sum

2008-12-13 Thread Willie Wong
On Sat, Dec 13, 2008 at 11:49:50PM +, Penguin Lover Mick squawked:
> Is there a clever way to enter a string (rather than write a script file) so 
> that md5sum will check a whole series of files in one go and report success 
> or error;  I was thinking along the lines of if $value is ... then 
> md5sum -c ..., but my non-existent scripting knowledge won't take me any 
> further.  I want it to check a series of files named tokena, tokenb, 
> tokenc, ... , etc.
> -- 

Why not just a simple bash one-liner

for i in token{a..z}; do md5sum -c $i; done

AFAIK the md5sum will report success or failure for each of the
checksum lines in tokena, tokenb, etc. 

If this doesn't suit your needs, can you describe in more detail your
desired behaviour?

W

-- 
(04:01:59) W: yep
(04:02:02) W: I love linux
(04:02:15) NJYWT: I love penguins
Sortir en Pantoufles: up 736 days, 23:38



Re: [gentoo-user] [OT] One line script for md5sum

2008-12-13 Thread Alan McKinnon
On Sunday 14 December 2008 01:49:50 Mick wrote:
> Hi All,
>
> Is there a clever way to enter a string (rather than write a script file)
> so that md5sum will check a whole series of files in one go and report
> success or error;  I was thinking along the lines of if $value is ... then
> md5sum -c ..., but my non-existent scripting knowledge won't take me any
> further.  I want it to check a series of files named tokena, tokenb,
> tokenc, ... , etc.

You are not being very clear about what you want. When you say "check", what 
does that mean? Do you want to test if the files are OK? Then you would 
already have the md5sums so you should use md5sum -c

To generate the sums, just run md5sum 

In any event, I think you need a fancy for loop. To run the same command on 
every file in a directory:

for I in * ; do  ; done

for a list of named files:

for I in file1, file2 ; do  ; done

for a list of files with a clear name structure:

for I in a b c d ; do  token${I} ; done 
or
for I in $(seq 1 10) ; do  token${I} ;  done

The last two are insanely useful. Replace  with whatever you need to 
be run over and over

-- 
alan dot mckinnon at gmail dot com



[gentoo-user] [OT] One line script for md5sum

2008-12-13 Thread Mick
Hi All,

Is there a clever way to enter a string (rather than write a script file) so 
that md5sum will check a whole series of files in one go and report success 
or error;  I was thinking along the lines of if $value is ... then 
md5sum -c ..., but my non-existent scripting knowledge won't take me any 
further.  I want it to check a series of files named tokena, tokenb, 
tokenc, ... , etc.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] dev-java/sun-jdk-1.6.0.11 Failed to unpack

2008-12-13 Thread Jean-Baptiste Mestelan
2008/12/13 Jeff Cranmer 
> Perhaps it would have done if I knew where the download page was.

The file /usr/portage/dev-java/sun-jdk/sun-jdk-1.6.0.11.ebuild
will disclose this information, and hints at
https://jdk-distros.dev.java.net/developer.html


Regards.



Re: [gentoo-user] Trying to install NetBeans 6.5 doesn't work

2008-12-13 Thread Alan McKinnon
On Saturday 13 December 2008 23:09:58 Yannick Mortier wrote:
> Hello!
> I'm currently trying to install NetBeans 6.5 but it just doesn't work.
> I always get a block when I try to to this.
>
> [blocks B ] dev-java/ant-tasks ("dev-java/ant-tasks" is blocking
> dev-java/ant-core-1.7.1-r2)
>
>  * Error: The above package list contains packages which cannot be
>  * installed at the same time on the same system.

This is a standard blocker, the process of how to deal with it is detailed in 
the handbook. But here goes:

You have an arch system as per your ACCEPT_KEYWORDS. But look at the packages 
that want to be pulled in:

a...@nazgul ~ $ eix ant-tasks
* dev-java/ant-tasks
 Available versions:  1.7.0-r4 {X antlr bcel bsf commonslogging commonsnet 
elibc_FreeBSD jai javamail jdepend jmf jsch log4j oro regexp resolver}
 Homepage:http://ant.apache.org/
 Description: Meta-package for Apache Ant's optional tasks.

a...@nazgul ~ $ eix ant-core
[I] dev-java/ant-core
 Available versions:  1.7.0 1.7.0-r1 (~)1.7.0-r2 (~)1.7.1-r1 (~)1.7.1-r2 
{doc elibc_FreeBSD source}
 Installed versions:  1.7.1-r2(00:14:52 12/09/08)
(-doc -elibc_FreeBSD -source)
 Homepage:http://ant.apache.org/
 Description: Java-based build tool similar to 'make' that uses 
XML configuration files.

ant-task is stable, ant-core is unstable. So, you seem to have 
package-unmasked the ant stuff. The ant-core ebuild says that it completely 
blocks ant-tasks and ant-optional.

The best way to advise you what to do would be if you supply the output from 
the emerge you are running with the -t option. Without that my best guess 
would be:

emerge -avC ant-tasks
rerun the original emerge



-- 
alan dot mckinnon at gmail dot com



[gentoo-user] Trying to install NetBeans 6.5 doesn't work

2008-12-13 Thread Yannick Mortier
Hello!
I'm currently trying to install NetBeans 6.5 but it just doesn't work.
I always get a block when I try to to this.

[blocks B ] dev-java/ant-tasks ("dev-java/ant-tasks" is blocking
dev-java/ant-core-1.7.1-r2)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

here is my emerge --info:

# emerge --info
Portage 2.1.6.1 (default/linux/amd64/2008.0/desktop, gcc-4.3.2,
glibc-2.9_p20081201-r0, 2.6.27-gentoo-r5 x86_64)
=
System uname: 
Linux-2.6.27-gentoo-r5-x86_64-AMD_Phenom-tm-_9950_Quad-Core_Processor-with-glibc2.2.5
Timestamp of tree: Sat, 13 Dec 2008 14:15:01 +
app-shells/bash: 3.2_p33
dev-java/java-config: 1.3.7-r1, 2.1.6
dev-lang/python: 2.5.2-r7
dev-util/cmake:  2.6.2
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -finline-functions -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/kde/4.1/env /usr/kde/4.1/share/config
/usr/kde/4.1/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d
/etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo
/etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox
sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/
http://mirror.netcologne.de/gentoo/ "
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
--compress --force --whole-file --delete --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 7zip X a52 aac acl acpi alsa amd64 amr audiofile
bash-completion berkdb branding bzip2 cairo cdda cddb cdio cdr cli
cracklib crypt css cups curl dbus dhcp dri dts dvd dvdr dvdread eds
emboss encode esd evo examples exif fam ffmpeg firefox flac fontconfig
fortran gd gdbm gif glib gnutls gpm gstreamer gtk hal iconv id3tag
ieee1394 imagemagick isdnlog java java6 jpeg jpeg2k kde kdeprefix lame
lcms libnotify mad matroska midi mikmod mmx mmxext mp3 mp4 mpeg
mudflap multilib musicbrainz mysql mysqli ncurses network nls nptl
nptlonly nsplugin ogg opengl openmp pcre pdf perl php png ppds pppd
python qt qt3 qt3support qt4 quicktime readline reflection samba
schroedinger sdl session smp spell spl sqlite sse sse2 sse3 ssl ssse3
startup-notification svg sysfs taglib tcpd templates theora threads
tiff truetype unicode usb vcd vorbis wavpack wmf x264 xml xorg xprint
xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp
atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938
es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio
via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy
dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa
lfloat linear meter mmap_emul mulaw multi null plug rate route share
shm softvol" APACHE2_MODULES="alias asis auth_basic auth_digest
autoindex cache cern_meta dir env expires ext_filter file_cache filter
headers info log_config logio mime mime_magic negotiation rewrite
setenvif speling status unique_id" APACHE2_MPMS="worker" ELIBC="glibc"
INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad
cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LINGUAS="de" NETBEANS_MODULES="ide java nb websvccommon php visualweb
webcommon xml" USERLAND="GNU" VIDEO_CARDS="radeon flgrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS,
PORTDIR_OVERLAY

The Netbeans modules I have written into /etc/make.conf

NETBEANS_MODULES="ide java nb websvccommon php visualweb webcommon xml"


I also have got Eclipse installed and it works just fine. Basically
what I want is just a NetBeans installation with support for Java and
PHP. Can anyone help me, please?

-- 
Currently developing a browsergame...
http://www.p-game.de
Trade - Expand - Fight



[gentoo-user] vmware-workstation & virtualbox crash - Any ideas?

2008-12-13 Thread Grant
I can't get either vmware-workstation or virtualbox to work.  Either
software's forums have been no help and you guys are my last hope.

I've tried vmware-workstation-6.5.0 and 6.5.1.  Either one crashes
when clicking the "Create a new virtual machine" button with "Invalid
partition map found".  I have:

sda1 Boot Primary Linux ext2 41.13
sda2 Primary Linux swap / Solaris 518.20
sda3 Primary Linux ext3 319511.01

The user is in the vmware group and I've started the vmware services.

With virtualbox, I get sort of a partial system freeze when I try to
start a virtual machine for the first time.  There is no terminal
output.  The user is in the vboxusers group and I've loaded the
necessary kernel module.  I've tried 1.6.6 and 2.0.6.

Does anyone have any sort of idea on either of these?

- Grant



Re: [gentoo-user] dev-java/sun-jdk-1.6.0.11 Failed to unpack

2008-12-13 Thread Jeff Cranmer
Perhaps it would have done if I knew where the download page was.

On Saturday 13 December 2008 07:25:36 am Neil Bothwick wrote:
> On Fri, 12 Dec 2008 23:03:43 -0500, Jeff Cranmer wrote:
> > Failed to extract the files.  Please refer to the Troubleshooting
> > section of the Installation Instructions on the download page for more
> > information.
>
> Did this help?



Re: [gentoo-user] Re: OpenVPN and IPsec

2008-12-13 Thread Mick
On Friday 12 December 2008, James wrote:
> Mick  gmail.com> writes:
> > Well, the router is a Cisco clone so it might work - thanks for the tip!
>
> Adtran perchance?
>
> If so, drop me some private email

Thanks James, private email follows.  Meanwhile, vpnc returns this error no 
matter what I have tried with the configuration file, or the router:

vpnc: response was invalid [1]:  (ISAKMP_N_INVALID_EXCHANGE_TYPE)(7)

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Gentoo and ICH9 Sata

2008-12-13 Thread Eddie Mihalow Jr

Leandro Sales wrote:

Hi,
  I'm trying to install Gentoo on a Intel xeon quad-core intel xeon
computer. The SATA controller is ICH9, I then enabled ATA_PIIX in the
kernel as built-in. The livecd boots properly and I can do fdisk
/dev/sda, but after installing the system and reboot, the system says
that /dev/sda2 is not recognized as a root partition. Any suggestion
to solve this issue? Some helpful messages are:

Driver 'sd' needs updating -- please use bus_type method
ata_piix 000:00:1f.2: MAP [ P0 P2 P1 P3 ]
PCI: Unable to reverse I/O region #1:8...@1f0 for device 000:00:1f.2
ata_piix 000:00:1f.2: failed to request/iomap BARs for port0 (errno=-1)
ata_piix 000:00:1f.5:: MAP [ P0 -- P1 -- ]
scsi0: ata_piix
scsi1: ata_piix
no available native port

Thank you,
Leandro.



You need to enable ACHI and the SATA options in the kernel

--
Edward A Mihalow Jr
Gentoo! Linux
Mudbug Computers and Networks
Registered Linux User#225662
New Orleans,LA



[gentoo-user] Gentoo and ICH9 Sata

2008-12-13 Thread Leandro Sales
Hi,
  I'm trying to install Gentoo on a Intel xeon quad-core intel xeon
computer. The SATA controller is ICH9, I then enabled ATA_PIIX in the
kernel as built-in. The livecd boots properly and I can do fdisk
/dev/sda, but after installing the system and reboot, the system says
that /dev/sda2 is not recognized as a root partition. Any suggestion
to solve this issue? Some helpful messages are:

Driver 'sd' needs updating -- please use bus_type method
ata_piix 000:00:1f.2: MAP [ P0 P2 P1 P3 ]
PCI: Unable to reverse I/O region #1:8...@1f0 for device 000:00:1f.2
ata_piix 000:00:1f.2: failed to request/iomap BARs for port0 (errno=-1)
ata_piix 000:00:1f.5:: MAP [ P0 -- P1 -- ]
scsi0: ata_piix
scsi1: ata_piix
no available native port

Thank you,
Leandro.



[gentoo-user] Xvnc Terminal Server doesn't work

2008-12-13 Thread Pau Peris
I've followed that link to creeate a "Xvnc Terminal Server":

http://forums.gentoo.org/viewtopic-t-72893-postdays-0-postorder-asc-start-0.html

* My machines has no Diplay connected to it and mouse, but to test it
i use to connect a monitor so i can check everything works fine.

* Xdm works proprly but i can't acces from the localhost neither fro
mthe local network. I'm always getting the can't open display error

>When i type vncviewer localhost:71: (in syslog doesn't appear nothing when 
>doing it from the localhost but it does if i do it over lan or connected over 
>ssh)

# vncviewer localhost:71
Error: Can't open display:


>xhost gives that error:

# xhost
X connection to sibok:11.0 broken (explicit kill or server shutdown).

> xauth ist like that, it's auto created when logging from ssh

That's the syslog when a try to connect from the local network

> cat /var/log/messages

Dec 13 15:10:16 sibok xinetd[18183]: START: vnc-640x480x8 pid=18351
from=172.26.0.2
Dec 13 15:10:16 sibok xinetd[18183]: EXIT: vnc-640x480x8 status=1
pid=18351 duration=0(sec)

># emerge -pv tightvnc xinetd tcp-wrappers

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-apps/tcp-wrappers-7.6-r8  USE="-ipv6*" 0 kB
[ebuild   R   ] net-misc/tightvnc-1.3.9-r1  USE="server tcpd -java" 0 kB
[ebuild   R   ] sys-apps/xinetd-2.3.14  USE="perl tcpd" 0 kB

># cat /etc/hosts.allow
ALL:127.0.0.1
ALL:172.26.
ALL:172.26.0.0/255.255.255.0
ALL:172.26.0.2

>sibok ~ # cat /etc/hosts.deny
ALL:ALL

Don't know if it could be something related to display 1:0 or somehow.
Can someone help me pease? Thanks in advanced



Re: [gentoo-user] dev-java/sun-jdk-1.6.0.11 Failed to unpack

2008-12-13 Thread Neil Bothwick
On Fri, 12 Dec 2008 23:03:43 -0500, Jeff Cranmer wrote:

> Failed to extract the files.  Please refer to the Troubleshooting
> section of the Installation Instructions on the download page for more
> information.

Did this help?


-- 
Neil Bothwick

The nice thing about Windows is - It does not just crash,
it displays a dialog box and lets you press OK first.


signature.asc
Description: PGP signature