[gentoo-user] Re: Simultaneously emerging multiple packages with same dependencies

2011-01-26 Thread Nikos Chantziaras

On 01/26/2011 02:12 PM, PK wrote:

Hi,

Is there any way to simultaneously emerge multiple packages (multiple
instances of 'emerge') that share common dependencies ?

I'm aware that portage uses locking mechanism before modifying 'world'
file, but what about the actual building process ? I'd expect emerge to
check if dependency package is already build/installed (or currently
being build by another instance) and just skip it in this case, however
I haven't tried it yet.. Can anybody shred some light on this ?


You can try, but the second instance with simply block until the lock 
has been removed.


I'm not aware of any package system that supports this.  I don't think 
adding support for this justifies the added complexity.





[gentoo-user] Any experiences with Huawei E181 USB "data stick"?

2011-01-26 Thread Walter Dnes
  I'm interested in Wind Mobile's Mobile Internet service in Greater
Toronto, which requires this hardware...
http://shop.windmobile.ca/ProductCatalog/Handsets/DatastickDetails.aspx?id=Huawei%20E181%20Data%20Stick

  Anyone running it under Gentoo?  How well does it work?  For that
matter, does it work?  T-Mobile in the USA is also UMTS/AWS band, so the
device might also be in use there.

-- 
Walter Dnes 



Re: [gentoo-user] Is anyone here using RTL8192CU wifi device in Gentoo?

2011-01-26 Thread Paul Hartman
On Wed, Jan 26, 2011 at 4:18 PM, Mick  wrote:
> On Wednesday 26 January 2011 16:22:03 Paul Hartman wrote:
>> Hi,
>>
>> I recently bought a USB wifi adapter with RTL8192CU chipset. Drivers
>> are available from Realtek's website, and are updated regularly (last
>> month), but are not in the mainline Linux kernel or in the portage
>> tree.
>>
>> Compiling and installing the drivers is not a problem, but every time
>> I insert the USB adapter my computer freezes and no amount of
>> magic-SysRq can get me out of it. I tried on 2 different Gentoo
>> machines with the same result.
>>
>> The adapter works (poorly...) on a Windows XP machine, so I know the
>> hardware is functional.
>>
>> Does anyone else here use these drivers?
>
> I'm not using this hardware, but have you seen this?
>
> http://amailbox.net/mailarchive/linux-kernel/2010/12/13/4658671

Hi,

Thanks for the pointer! While that firmware itself does nothing for me
(the Realtek driver already includes the latest firmware in the source
code), Googling Larry Finger's name along with this chipset led me to
some other (and very recent) posts which tell me that this driver only
works on 32-bit systems and that no functioning 64-bit driver is
available. That's too bad. I suppose all I can do now is wait for
Realtek to fix it and release a working driver.

Thanks again.



Re: [gentoo-user] Is anyone here using RTL8192CU wifi device in Gentoo?

2011-01-26 Thread Mick
On Wednesday 26 January 2011 16:22:03 Paul Hartman wrote:
> Hi,
> 
> I recently bought a USB wifi adapter with RTL8192CU chipset. Drivers
> are available from Realtek's website, and are updated regularly (last
> month), but are not in the mainline Linux kernel or in the portage
> tree.
> 
> Compiling and installing the drivers is not a problem, but every time
> I insert the USB adapter my computer freezes and no amount of
> magic-SysRq can get me out of it. I tried on 2 different Gentoo
> machines with the same result.
> 
> The adapter works (poorly...) on a Windows XP machine, so I know the
> hardware is functional.
> 
> Does anyone else here use these drivers?

I'm not using this hardware, but have you seen this?

http://amailbox.net/mailarchive/linux-kernel/2010/12/13/4658671
-- 
Regards,
Mick


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


Re: [gentoo-user] Kernel config for wifi on AMD_64?

2011-01-26 Thread Jacob Todd
Did you enable wireless extensions in your kernel? It's called CONFIG_WEXT
or something to that effect in the .config.


Re: [gentoo-user] [OT] - Code translation tools?

2011-01-26 Thread Mark Knecht
On Wed, Jan 26, 2011 at 12:32 PM, Michael Orlitzky  wrote:
> On 01/26/2011 02:40 PM, Mark Knecht wrote:

>> As for testing it _may_ be a slight bit easier than having to get to
>> that level. There is a library in portage called ta-lib which
>> implements lots of standard technical analysis constructs. After it's
>> installed I don't seem to have the C code for the actual functions
>> anymore. What I have is a compiled library as well as some header
>> files to look at. I suspect I can install the library again using
>> portage bt not getting rid of the functions which I could then use as
>> an example for my coding.
>
> Use FEATURES="noclean" and the patched source will be left under
> /var/tmp/portage. The unpatched source is probably in your
> /usr/portage/distfiles already. (I don't know if there *are* any patches
> for ta-lib, but if there are, you usually want them applied).
>

Actually, the tar.gz file in distfiles was easily expanded and I found
the code within for all the functions. I hadn't considered patches but
fortunately there aren't any applied so it seems I get off lucky this
time.


>
> If you can figure out what all those parameters mean -- that will be the
> hard part. What type of moving average is EasyLanguage doing? Which
> TA_MAType does it match up to? Can the E.L. version fail if it runs off
> the end of the prices array, or does it just add zeros at the end? Is
> there a way to make TA_MA do the same?
>
> Sorry I have nothing but discouragement to offer =) This isn't an easy
> problem.

I don't consider this discouragement at all. In fact it's _very_ helpful.

Documentation:

I've found this much:

Online at the following links:
http://ta-lib.org/d_api/d_api.html
http://ta-lib.org/function.html

I haven't yet found a nice PDF that tells me the exact meaning of
every parameter but I suspect it's out there somewhere. There's a
forum for the library where people ask questions. I just noticed
someone asking about writing documentation to be put in a Wiki so
there's something going on. I'm not overly worried about matching up
ta-lib functionality with what I use today in EL.

Functionality:

Software for real-time stock trading tends to be a little more
restrictive than more general programming

1) First, we are operating on price data that  has date & time
attached to every value. Think of a price chart for any stock. This
stuff (in general) just operates across time in a forward direction.

2) When doing a moving average, for example, we are calculating from
the current bar _backwards_. The only way to run off the end of the
array is to try to reference too far back, so a 20 period moving
average cannot be calculated before bar #20. As I go through a price
data array, I just start at the length parameter into the array N[20]
and keep going until the end.

The way I see this is there's an upper layer that reads the price data
in, puts it in an array and the calls the strategy bar-by-bar.
(row-by-row in the array) When it gets to the last bar of data (last
row with date and time) then it knows it's done. Pretty much all this
stuff seems to work that way.

At this point I feel like I've imposed on gentoo-user far too much. I
was hoping maybe there was some program in portage for doing
translations that might work but I guess there isn't. I'll let this
thread drift asleep unless someone responds back. I think I've got
enough info to sort of play around at this point, and I suspect my
next set of questions are better addressed at someplace like
StackOverflow as I can hardly program beyond Hello World at this
point! ;-)

Again, THANKS for your help and insights!

Anyone interested in this subject matter is always welcome to contact
me off-list.

Cheers,
Mark



Re: [gentoo-user] Something like nullfs (FreeBSD) available in linux

2011-01-26 Thread Matthias Fechner

On 26.01.11 16:56, YoYo Siska wrote:

Unionfs or aufs should be able to do that.


thanks a lot, aufs work perfectly.

Thanks,
Matthias

--
"Programming today is a race between software engineers striving to 
build bigger and better idiot-proof programs, and the universe trying to 
produce bigger and better idiots. So far, the universe is winning." -- 
Rich Cook




Re: [gentoo-user] Kernel config for wifi on AMD_64?

2011-01-26 Thread Walter Dnes
  Any idea what I'm doing wrong?  Here is an attempt to start it
manually.  I've asterisked "HWaddr.  The complaint about
"Cannot read /proc/net/wireless" looks ominous.

[aa1][root][~] lsmod
Module  Size  Used by
ath9k  96655  0 
mac80211  161048  1 ath9k
ath9k_common3536  1 ath9k
ath9k_hw  283965  2 ath9k,ath9k_common
ath 8604  2 ath9k,ath9k_hw
cfg80211  114837  3 ath9k,mac80211,ath

[aa1][root][~] /etc/init.d/net.wlan0 restart
 * Stopping wlan0
 *   Bringing down wlan0
 * Shutting down wlan0 ...  [ ok ]
 * Starting wlan0
 *   Bringing up wlan0  [ ok ]

[aa1][root][~] iwconfig wlan0
wlan0 no wireless extensions.

[aa1][root][~] ifconfig wlan0
wlan0 Link encap:Ethernet  HWaddr **:**:**:**:**:**  
  UP BROADCAST MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000 
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

[aa1][root][~] iwconfig wlan0 essid any
Cannot read /proc/net/wireless
Error for wireless request "Set ESSID" (8B1A) :
SET failed on device wlan0 ; Invalid argument.
[aa1][root][~]

-- 
Walter Dnes 



Re: [gentoo-user] [OT] - Code translation tools?

2011-01-26 Thread Michael Orlitzky
On 01/26/2011 02:40 PM, Mark Knecht wrote:
> 
> REALLY great points about the math issues. Thanks.
> 
> As for testing it _may_ be a slight bit easier than having to get to
> that level. There is a library in portage called ta-lib which
> implements lots of standard technical analysis constructs. After it's
> installed I don't seem to have the C code for the actual functions
> anymore. What I have is a compiled library as well as some header
> files to look at. I suspect I can install the library again using
> portage bt not getting rid of the functions which I could then use as
> an example for my coding.

Use FEATURES="noclean" and the patched source will be left under
/var/tmp/portage. The unpatched source is probably in your
/usr/portage/distfiles already. (I don't know if there *are* any patches
for ta-lib, but if there are, you usually want them applied).


> I have not used this library myself, but I've read enough on the web
> to be reasonably sure it's results are very consistent with what
> TradeStation functions of the same type do.
> 
> For a simple function call like a moving average EasyLanguage would write:
> 
> ...
>
> TA_RetCode TA_MA( intstartIdx,
>   intendIdx,
>   const double inReal[],
>   int   optInTimePeriod, /* From 1 to 10 */
>   TA_MAType optInMAType,
>   int  *outBegIdx,
>   int  *outNBElement,
>   doubleoutReal[] );
>
> ...
> 
>Maybe I could use the definitions of these functions as a basis for
> understanding what might be a reasonable set of guesses? From my point
> of view, a good start at translation would be to use whatever is
> available in ta-lib whenever possible and only have to deal with other
> stuff like If/Else, Switch, etc.
> 
>Just thinking.

If you can figure out what all those parameters mean -- that will be the
hard part. What type of moving average is EasyLanguage doing? Which
TA_MAType does it match up to? Can the E.L. version fail if it runs off
the end of the prices array, or does it just add zeros at the end? Is
there a way to make TA_MA do the same?

Sorry I have nothing but discouragement to offer =) This isn't an easy
problem.



Re: [gentoo-user] Simultaneously emerging multiple packages with same dependencies

2011-01-26 Thread Jacob Todd
Then ^c and add/remove what you need.
On Jan 26, 2011 1:30 PM, "PK"  wrote:
>>
>> Don't use multiple instances of emerge, they'll probably all try to merge
>> the same dependencies. Do it the way the portage developers intended, use
>> the --jobs option with a single emerge instance.
>>
>>
> Sure, but sometimes while emerge is building a bunch of packages I
remember
> that I've forgotten to specify a few more, my only option then is to wait
> till building process finishes. I think it should be possible to be more
> efficient than that.
>
> Cheers,
> P.


Re: [gentoo-user] Spamassassin

2011-01-26 Thread kashani

On 1/26/2011 10:25 AM, meino.cra...@gmx.de wrote:


Hi,

is it possible to configure Spamassassin to filter out spam-mail,
if the mail contains certain keywords and/or the subject line match
a certain pattern without diving too deep into the source and the
ruleset of spamassassin?


	I'd consider handling that at the MTA level. In Postfix you would use 
header_check to build rules like that. There is also the added benefit 
of being able to REJECT the mail before it enters your system rather 
than accepting the mail, sending to spamassassin, attempting to bounce 
mail, etc.


This site has a number of good examples
http://www.posluns.com/guides/hedchek.html

kashani



Re: [gentoo-user] Spamassassin

2011-01-26 Thread Michael Orlitzky
On 01/26/2011 01:25 PM, meino.cra...@gmx.de wrote:
> 
> Hi,
> 
> is it possible to configure Spamassassin to filter out spam-mail,
> if the mail contains certain keywords and/or the subject line match
> a certain pattern without diving too deep into the source and the
> ruleset of spamassassin?

The rules are generally just regular expressions. From 20_phrases.cf:

  body GUARANTEED_100_PERCENT /100% GUARANTEED/i

and from 72_active.cf:

  header DRUGS_HDIA   Subject =~ /\bhoodia\b/i

Once you have rules defined, you give them a score. From 50_scores.cf:

  score DRUGS_HDIA 0

You can add descriptions too if you want, just copy whatever the S.A.
signatures do. You can stick them in any (loaded) cf file.



Re: [gentoo-user] [OT] - Code translation tools?

2011-01-26 Thread Mark Knecht
On Wed, Jan 26, 2011 at 10:47 AM, Michael Orlitzky  wrote:
> On 01/26/2011 12:56 PM, Mark Knecht wrote:
>> Michael,
>>    Thanks for the inputs. It gives me more to think about.
>>
>>    In this case the input language is interpreted, not compiled. The
>> trading platform interprets the program and internally turns it into
>> buy & sell operations. (Not the piece of code I supplied - that was
>> just a small function.) Unfortunately, as the language is proprietary
>> to the trading platform there isn't a way to go to any common
>> low-level language.
>>
>>    The 'battery of tests' would be, I think, the trading program being
>> executed on a certain market, producing a certainly list of buy & sell
>> operations and a specific gain or loss. It would be quite easy to
>> compare the outcome because it's nothing more than a list of trades.
>> If the translated code generates the same list then it works. If not,
>> I dig into why. This part of the task seems relatively straight
>> forward to me.
>>
>>    I was mainly hoping to find a tool that might generate _reasonable_
>> C code, even if it's not perfect. If the C code compiles and runs then
>> I could determine what works, what doesn't, and start fixing things.
>> I'm not a C programmer and haven't touched that language in at least
>> 15 years so anything that moves me forward would be helpful.
>>
>>    Again, I do appreciate your inputs. If this extra info gives you
>> any new ideas please let me know.
>
> If you don't even have a common low-level language, what you're
> essentially doing is creating a compiler for EasyLanguage. Take a small
> example, adding two integers in E.L. I won't pretend to know the syntax,
> but let's just assume that you have two integers (or numbers or
> whatever) 'a' and 'b' declared.
>
> How do you translate "a+b" to C code? You can declare two ints 'a' and
> 'b' in C, of course. But these are 32- or 64-bit integers. So if 'a' and
> 'b' are large, "a+b" will overflow. Do EasyLanguage integers work that
> way? Probably not...
>
> How about "a/b"? Does EasyLanguage do integer division, or does it treat
> them like floats? If it does treat them like floats, do the rounding and
> precision agree with C floats? Probably not, so floats are out too.
>
> If you try to fix all of these problems, what you'll end up with is
> something like a struct EasyLanguageInteger {...} with associated
> functions add_easylanguage_integers, divide_easylanguage_integers, etc.
> Then, you can translate "a+b" into add_easylanguage_integers(a, b) where
> 'a' and 'b' are now structs instead of just ints or floats.
>
> Then, you'll have to write a parser that understands the rules of
> precedence, looping constructs, functions, and everything else so that
> they can be converted into the appropriate structs and function calls.
> At the end, if it works, you'll have an EasyLanguage compiler.
>
> Without a spec (the language is proprietary?), you'd have to guess at
> most of that stuff anyway, so the chances you'd get it all right are
> about zero.
>
> Your best bet[1] is to create a ton of test data, and feed it to the
> E.L. program. Make sure the test data triggers any edge cases. Then you
> can attempt to rewrite the code in C, and compare the output. You as a
> human who understands what the code does can take a lot of shortcuts
> that a translator couldn't.
>
>
> [1] I'm assuming you want to do this for a relatively small number of
> programs, and that writing a compiler would not actually be less
> time-consuming.
>
>

OK - this is probably WAY too off topic for this list. If folks
strongly want me to stop the thread I will but I appreciate the
technical adeptness of folks on this list quite a lot and the eventual
outcome would be the use of this thing on Gentoo, so I hope folks
won't mind too much if we continue a little further.


REALLY great points about the math issues. Thanks.

As for testing it _may_ be a slight bit easier than having to get to
that level. There is a library in portage called ta-lib which
implements lots of standard technical analysis constructs. After it's
installed I don't seem to have the C code for the actual functions
anymore. What I have is a compiled library as well as some header
files to look at. I suspect I can install the library again using
portage bt not getting rid of the functions which I could then use as
an example for my coding.

I have not used this library myself, but I've read enough on the web
to be reasonably sure it's results are very consistent with what
TradeStation functions of the same type do.

For a simple function call like a moving average EasyLanguage would write:

Inputs:
Price(Close),
Length(10)
;
variable:
MA1(0)
;

MA1 = Average(Price,Length);

Here is what I see for a similar moving average function from ta-lib:

/*
 * TA_MA - Moving average
 *
 * Input  = double
 * Output = double
 *
 * Optional Parameters
 * ---
 * optInTimePeriod:(From 1 to 10)
 *Number of period

Re: [gentoo-user] [OT] - Code translation tools?

2011-01-26 Thread Michael Orlitzky
On 01/26/2011 12:56 PM, Mark Knecht wrote:
> Michael,
>Thanks for the inputs. It gives me more to think about.
> 
>In this case the input language is interpreted, not compiled. The
> trading platform interprets the program and internally turns it into
> buy & sell operations. (Not the piece of code I supplied - that was
> just a small function.) Unfortunately, as the language is proprietary
> to the trading platform there isn't a way to go to any common
> low-level language.
> 
>The 'battery of tests' would be, I think, the trading program being
> executed on a certain market, producing a certainly list of buy & sell
> operations and a specific gain or loss. It would be quite easy to
> compare the outcome because it's nothing more than a list of trades.
> If the translated code generates the same list then it works. If not,
> I dig into why. This part of the task seems relatively straight
> forward to me.
> 
>I was mainly hoping to find a tool that might generate _reasonable_
> C code, even if it's not perfect. If the C code compiles and runs then
> I could determine what works, what doesn't, and start fixing things.
> I'm not a C programmer and haven't touched that language in at least
> 15 years so anything that moves me forward would be helpful.
> 
>Again, I do appreciate your inputs. If this extra info gives you
> any new ideas please let me know.

If you don't even have a common low-level language, what you're
essentially doing is creating a compiler for EasyLanguage. Take a small
example, adding two integers in E.L. I won't pretend to know the syntax,
but let's just assume that you have two integers (or numbers or
whatever) 'a' and 'b' declared.

How do you translate "a+b" to C code? You can declare two ints 'a' and
'b' in C, of course. But these are 32- or 64-bit integers. So if 'a' and
'b' are large, "a+b" will overflow. Do EasyLanguage integers work that
way? Probably not...

How about "a/b"? Does EasyLanguage do integer division, or does it treat
them like floats? If it does treat them like floats, do the rounding and
precision agree with C floats? Probably not, so floats are out too.

If you try to fix all of these problems, what you'll end up with is
something like a struct EasyLanguageInteger {...} with associated
functions add_easylanguage_integers, divide_easylanguage_integers, etc.
Then, you can translate "a+b" into add_easylanguage_integers(a, b) where
'a' and 'b' are now structs instead of just ints or floats.

Then, you'll have to write a parser that understands the rules of
precedence, looping constructs, functions, and everything else so that
they can be converted into the appropriate structs and function calls.
At the end, if it works, you'll have an EasyLanguage compiler.

Without a spec (the language is proprietary?), you'd have to guess at
most of that stuff anyway, so the chances you'd get it all right are
about zero.

Your best bet[1] is to create a ton of test data, and feed it to the
E.L. program. Make sure the test data triggers any edge cases. Then you
can attempt to rewrite the code in C, and compare the output. You as a
human who understands what the code does can take a lot of shortcuts
that a translator couldn't.


[1] I'm assuming you want to do this for a relatively small number of
programs, and that writing a compiler would not actually be less
time-consuming.



Re: [gentoo-user] Simultaneously emerging multiple packages with same dependencies

2011-01-26 Thread PK
>
> Don't use multiple instances of emerge, they'll probably all try to merge
> the same dependencies. Do it the way the portage developers intended, use
> the --jobs option with a single emerge instance.
>
>
Sure, but sometimes while emerge is building a bunch of packages I remember
that I've forgotten to specify a few more, my only option then is to wait
till building process finishes. I think it should be possible to be more
efficient than that.

Cheers,
P.


[gentoo-user] Spamassassin

2011-01-26 Thread meino . cramer

Hi,

is it possible to configure Spamassassin to filter out spam-mail,
if the mail contains certain keywords and/or the subject line match
a certain pattern without diving too deep into the source and the
ruleset of spamassassin?

Thank you very much in advance for any help!
Best regards,
mcc 





Re: [gentoo-user] [OT] - Code translation tools?

2011-01-26 Thread Mark Knecht
On Tue, Jan 25, 2011 at 5:15 PM, Michael Orlitzky  wrote:
> On 01/24/2011 05:34 PM, Mark Knecht wrote:
>> Hello,
>>    I'm wondering if there are any generic sorts of code translation
>> tools in portage wherein I could translate from an 'uncommon' language
>> no one here is likely to use (EasyLanguage) into C?
>>
>>    As an example I've attached a little EL function that takes
>> buy/sell command data an puts it away in an array for safe keeping.
>> What tools are out there, if any, that might allow me to describe how
>> EL works and then the tool does the conversion?
>
> Since no one else has given you the bad news, this is basically
> impossible if you care that the two programs behave the same.
>
> For any particular program, the best you can do is rewrite it by hand
> after creating a battery of unit tests. The alternative is to compile
> your source language to a common low-level language, and then decompile
> back to your target language.
>
> Unfortunately, unless your common low-level language is some sort of
> bytecode with additional metadata (you can translate between .NET
> languages for example), the output from the decompiler is going to look
> like garbage.

Michael,
   Thanks for the inputs. It gives me more to think about.

   In this case the input language is interpreted, not compiled. The
trading platform interprets the program and internally turns it into
buy & sell operations. (Not the piece of code I supplied - that was
just a small function.) Unfortunately, as the language is proprietary
to the trading platform there isn't a way to go to any common
low-level language.

   The 'battery of tests' would be, I think, the trading program being
executed on a certain market, producing a certainly list of buy & sell
operations and a specific gain or loss. It would be quite easy to
compare the outcome because it's nothing more than a list of trades.
If the translated code generates the same list then it works. If not,
I dig into why. This part of the task seems relatively straight
forward to me.

   I was mainly hoping to find a tool that might generate _reasonable_
C code, even if it's not perfect. If the C code compiles and runs then
I could determine what works, what doesn't, and start fixing things.
I'm not a C programmer and haven't touched that language in at least
15 years so anything that moves me forward would be helpful.

   Again, I do appreciate your inputs. If this extra info gives you
any new ideas please let me know.

Cheers,
Mark



Re: [gentoo-user] Setting up SMTP relay

2011-01-26 Thread kashani

On 1/26/2011 1:07 AM, Stroller wrote:


On 26/1/2011, at 6:46am, Mick wrote:

On Wednesday 26 January 2011 04:04:16 Walter Dnes wrote:

On Sat, Jan 22, 2011 at 10:34:11PM +0100, Alex Schuster wrote


This is working fine. But there are other PCs in the LAN, which I
would also like to get status emails from. Being not the only one
with root access there, I do not want to duplicate the ssmtp setup
because of the password stored in ssmtp.conf.


??? What password in ssmtp.conf ???  My /etc/ssmtp/ssmtp.conf has 4
uncommented lines.  They are...
...


If you set it up to email you stuff using e.g. your email account, you would
also need authentication credentials:


Ya, but he's got a Postfix server listening on that LAN, so the other machines 
(using ssmtp) don't need to authenticate to that.

This thread has become far too complicated. Postfix can be set up editing only 
about 3 lines lines in its config file.

Stroller.




	I dont't think you have followed the thread correctly. The OP did say 
he had a user/pass in his ssmtpd.conf which I assumed was for accessing 
the final relay host. That was the reason for the extra lines.


kashani



[gentoo-user] Is anyone here using RTL8192CU wifi device in Gentoo?

2011-01-26 Thread Paul Hartman
Hi,

I recently bought a USB wifi adapter with RTL8192CU chipset. Drivers
are available from Realtek's website, and are updated regularly (last
month), but are not in the mainline Linux kernel or in the portage
tree.

Compiling and installing the drivers is not a problem, but every time
I insert the USB adapter my computer freezes and no amount of
magic-SysRq can get me out of it. I tried on 2 different Gentoo
machines with the same result.

The adapter works (poorly...) on a Windows XP machine, so I know the
hardware is functional.

Does anyone else here use these drivers?



Re: [gentoo-user] What needs x11-libs/libxkbui?

2011-01-26 Thread Mick
On 26 January 2011 08:51, Neil Bothwick  wrote:
> On Wed, 26 Jan 2011 06:51:10 +, Mick wrote:
>
>> equery depends doesn't show anything ... so I followed emerge
>> --depclean's suggestion and unmerged it.  Have I borked anything?
>
> equery depends is unrelaible, use
>
> emerge --depclean -pv cat/pkg

Thank you all.  I was sure that I had run revdep-rebuild -i, but it
seems that I hadn't!  Unlike my wife, multitasking is not my strong
point ...

Sorry for the noise.
-- 
Regards,
Mick



Re: [gentoo-user] Something like nullfs (FreeBSD) available in linux

2011-01-26 Thread YoYo Siska
On Wed, Jan 26, 2011 at 01:37:38PM +0100, Matthias Fechner wrote:
> Dear list,
> 
> I want to build up a NFS share for several host.
> The base system is always equal, only some files are different
> (files in /etc and /var, maybe more).
> 
> The structure should look like:
> Base system is on /basesystem
> 
> Then I want a directory for every host:
> /nfsroot/host1
> /nfsroot/host2
> ..
> /nfsroot/hostn
> 
> Client 1 will boot via lan and mount the /nfsroot/host1 via NFS.
> On the server the mount could look like:
> mount -t nullfs /basesystem /nfsroot/host1
> mount -t nullfs /basesystem /nfsroot/host2
> 
> If the host1 changes now a file the changed file is not stored in
> /basesystem but in /nfsroot/host1.
> (so you can think about a filesystem in two layers, the ground layer
> is /basesystem and readonly, changes will go to /nfsroot/hostn)
> 
> If i upgrade the /basesystem all files should be available for all
> hosts expect the files the host changed by itself (they are stored
> in the nfsroot/hostn directory).
> 
> In FreeBSD there is a file system available called nullfs which
> could be used for this.
> Is there a similar filesystem for Linux available, too?

Unionfs or aufs should be able to do that.

yoyo




Re: [gentoo-user] Simultaneously emerging multiple packages with same dependencies

2011-01-26 Thread Neil Bothwick
On Wed, 26 Jan 2011 12:12:57 +, PK wrote:

> Is there any way to simultaneously emerge multiple packages (multiple
> instances of 'emerge') that share common dependencies ?

Don't use multiple instances of emerge, they'll probably all try to merge
the same dependencies. Do it the way the portage developers intended, use
the --jobs option with a single emerge instance.


-- 
Neil Bothwick

The severity of the itch is inversely proportional to the reach.


signature.asc
Description: PGP signature


Re: [gentoo-user] Simultaneously emerging multiple packages with same dependencies

2011-01-26 Thread Petri Rosenström
On Wed, Jan 26, 2011 at 2:12 PM, PK  wrote:
>
> Hi,
> Is there any way to simultaneously emerge multiple packages (multiple 
> instances of 'emerge') that share common dependencies ?
> I'm aware that portage uses locking mechanism before modifying 'world' file, 
> but what about the actual building process ? I'd expect emerge to check if 
> dependency package is already build/installed (or currently being build by 
> another instance) and just skip it in this case, however I haven't tried it 
> yet.. Can anybody shred some light on this ?
> Thanks,
> P.

Hi,

--jobs isn't enough? example emerge -j kde-meta

Best regards
Petri Rosenström



[gentoo-user] Something like nullfs (FreeBSD) available in linux

2011-01-26 Thread Matthias Fechner

Dear list,

I want to build up a NFS share for several host.
The base system is always equal, only some files are different (files in 
/etc and /var, maybe more).


The structure should look like:
Base system is on /basesystem

Then I want a directory for every host:
/nfsroot/host1
/nfsroot/host2
..
/nfsroot/hostn

Client 1 will boot via lan and mount the /nfsroot/host1 via NFS.
On the server the mount could look like:
mount -t nullfs /basesystem /nfsroot/host1
mount -t nullfs /basesystem /nfsroot/host2

If the host1 changes now a file the changed file is not stored in 
/basesystem but in /nfsroot/host1.
(so you can think about a filesystem in two layers, the ground layer is 
/basesystem and readonly, changes will go to /nfsroot/hostn)


If i upgrade the /basesystem all files should be available for all hosts 
expect the files the host changed by itself (they are stored in the 
nfsroot/hostn directory).


In FreeBSD there is a file system available called nullfs which could be 
used for this.

Is there a similar filesystem for Linux available, too?

Thanks,
Matthias

--
"Programming today is a race between software engineers striving to 
build bigger and better idiot-proof programs, and the universe trying to 
produce bigger and better idiots. So far, the universe is winning." -- 
Rich Cook




[gentoo-user] Simultaneously emerging multiple packages with same dependencies

2011-01-26 Thread PK
Hi,

Is there any way to simultaneously emerge multiple packages (multiple
instances of 'emerge') that share common dependencies ?

I'm aware that portage uses locking mechanism before modifying 'world' file,
but what about the actual building process ? I'd expect emerge to check if
dependency package is already build/installed (or currently being build by
another instance) and just skip it in this case, however I haven't tried it
yet.. Can anybody shred some light on this ?

Thanks,
P.


Re: [gentoo-user] Setting up SMTP relay

2011-01-26 Thread Stroller

On 26/1/2011, at 6:46am, Mick wrote:
> On Wednesday 26 January 2011 04:04:16 Walter Dnes wrote:
>> On Sat, Jan 22, 2011 at 10:34:11PM +0100, Alex Schuster wrote
>> 
>>> This is working fine. But there are other PCs in the LAN, which I
>>> would also like to get status emails from. Being not the only one
>>> with root access there, I do not want to duplicate the ssmtp setup
>>> because of the password stored in ssmtp.conf.
>> 
>> ??? What password in ssmtp.conf ???  My /etc/ssmtp/ssmtp.conf has 4
>> uncommented lines.  They are...
>> ...
> 
> If you set it up to email you stuff using e.g. your email account, you would 
> also need authentication credentials:

Ya, but he's got a Postfix server listening on that LAN, so the other machines 
(using ssmtp) don't need to authenticate to that.

This thread has become far too complicated. Postfix can be set up editing only 
about 3 lines lines in its config file.

Stroller.




Re: [gentoo-user] What needs x11-libs/libxkbui?

2011-01-26 Thread Neil Bothwick
On Wed, 26 Jan 2011 06:51:10 +, Mick wrote:

> equery depends doesn't show anything ... so I followed emerge
> --depclean's suggestion and unmerged it.  Have I borked anything?

equery depends is unrelaible, use

emerge --depclean -pv cat/pkg


-- 
Neil Bothwick

I am sitting on the toilet with your article before me. Soon it will be
behind me.


signature.asc
Description: PGP signature


Re: [gentoo-user] Flash versions

2011-01-26 Thread Neil Bothwick
On Tue, 25 Jan 2011 19:28:40 -0500, Jacob Todd wrote:

> Manually install flash.

That's probably what caused the problem in the first place.


-- 
Neil Bothwick

WinErr 018: Unrecoverable error - System has been destroyed. Buy a new
one. Old Windows licence is not valid anymore.


signature.asc
Description: PGP signature