[gentoo-user] Re: AHCI/IDE-question

2011-01-22 Thread Nikos Chantziaras

On 01/22/2011 09:50 AM, Dale wrote:

Nikos Chantziaras wrote:

On 01/22/2011 12:31 AM, Dale wrote:

[...]
And I thought there was something weird with me on this one. o_O I did
switch it back to AHCI after I got done booting the CD thingy. I really
can't tell any difference in speed between the two and neither could
hdparm -tT either.


hdparm measures raw throughput when reading continuously from one
position to another. AHCI improves performance when the disk needs to
read from several different places, which is the case in every day
use. It does this by providing a feature similar to what SCSI
provides: native command queuing (NCQ). You can read about what this
is and why we want it here:

http://en.wikipedia.org/wiki/Native_Command_Queuing


Other than copying a file and using time to measure how long it takes,
what is the best test of a hard drive's speed?


By running a benchmark tool that does exactly this.  IOzone is a nice one:

  http://www.iozone.org

It's in portage: app-benchmarks/iozone.



Also, does or can the kernel override the BIOS setting? I think it uses
AHCI no matter what is in the BIOS. It seems it would be at least some
difference in speed.


The kernel can't change this setting and has no access to it whatsoever.




Re: [gentoo-user] Re: AHCI/IDE-question

2011-01-22 Thread Dale

Nikos Chantziaras wrote:

On 01/22/2011 09:50 AM, Dale wrote:

Nikos Chantziaras wrote:

On 01/22/2011 12:31 AM, Dale wrote:

[...]
And I thought there was something weird with me on this one. o_O I did
switch it back to AHCI after I got done booting the CD thingy. I 
really

can't tell any difference in speed between the two and neither could
hdparm -tT either.


hdparm measures raw throughput when reading continuously from one
position to another. AHCI improves performance when the disk needs to
read from several different places, which is the case in every day
use. It does this by providing a feature similar to what SCSI
provides: native command queuing (NCQ). You can read about what this
is and why we want it here:

http://en.wikipedia.org/wiki/Native_Command_Queuing


Other than copying a file and using time to measure how long it takes,
what is the best test of a hard drive's speed?


By running a benchmark tool that does exactly this.  IOzone is a nice 
one:


  http://www.iozone.org

It's in portage: app-benchmarks/iozone.


I installed it but trying to figure out how to use it.  Jeez, what a man 
page.  O_O






Also, does or can the kernel override the BIOS setting? I think it uses
AHCI no matter what is in the BIOS. It seems it would be at least some
difference in speed.


The kernel can't change this setting and has no access to it whatsoever.



I didn't think so but thought it worth asking.  Seems to be some 
confusion on this.


Dale

:-)  :-)



[gentoo-user] Networkdriver for Intel 82579

2011-01-22 Thread Matthias Fechner
Dear list,

I have here a brand new mainboard (Asus P8P67 Pro) with the new sandy
chip on it. If I look into the manual it says there is an Intel 82579
Gigabit LAN chip on-board.

I tried it with kernel 2.6.37 (from kernel.org) and dmesg tells me:
e1000e: Intel(R) PRO/1000 Network Driver - 1.2.7-k2
e1000e: Copyright (c) 1999 - 2010 Intel Corporation.
e1000e :00:19.0: PCI INT A - GSI 18 (level, low) - IRQ 18
e1000e :00:19.0: setting latency timer to 64
e1000e :00:19.0: irq 49 for MSI/MSI-X
e1000e :00:19.0: eth0: (PCI Express:2.5GB/s:Width x1) bc:ae:c5:b6:9b:8e
e1000e :00:19.0: eth0: Intel(R) PRO/1000 Network Connection
e1000e :00:19.0: eth0: MAC: 10, PHY: 11, PBA No: ff-0ff

I searched around and found the tip to use a newer driver.
I downloaded it here:
http://sourceforge.net/projects/e1000/files/e1000e%20stable/1.2.20/

But if I try to compile the driver I get:
/usr/src/e1000e-1.2.20/src/netdev.c: In function 'e1000_restore_vlan':
/usr/src/e1000e-1.2.20/src/netdev.c:3076: error: 'VLAN_GROUP_ARRAY_LEN'
undeclared (first use in this function)
/usr/src/e1000e-1.2.20/src/netdev.c:3076: error: (Each undeclared
identifier is reported only once
/usr/src/e1000e-1.2.20/src/netdev.c:3076: error: for each function it
appears in.)
make[2]: *** [/usr/src/e1000e-1.2.20/src/netdev.o] Error 1
make[1]: *** [_module_/usr/src/e1000e-1.2.20/src] Error 2
make: *** [default] Error 2

Can here please help someone?

Thanks a lot
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] Networkdriver for Intel 82579

2011-01-22 Thread Dale

Matthias Fechner wrote:

Dear list,

I have here a brand new mainboard (Asus P8P67 Pro) with the new sandy
chip on it. If I look into the manual it says there is an Intel 82579
Gigabit LAN chip on-board.

I tried it with kernel 2.6.37 (from kernel.org) and dmesg tells me:
e1000e: Intel(R) PRO/1000 Network Driver - 1.2.7-k2
e1000e: Copyright (c) 1999 - 2010 Intel Corporation.
e1000e :00:19.0: PCI INT A -  GSI 18 (level, low) -  IRQ 18
e1000e :00:19.0: setting latency timer to 64
e1000e :00:19.0: irq 49 for MSI/MSI-X
e1000e :00:19.0: eth0: (PCI Express:2.5GB/s:Width x1) bc:ae:c5:b6:9b:8e
e1000e :00:19.0: eth0: Intel(R) PRO/1000 Network Connection
e1000e :00:19.0: eth0: MAC: 10, PHY: 11, PBA No: ff-0ff

I searched around and found the tip to use a newer driver.
I downloaded it here:
http://sourceforge.net/projects/e1000/files/e1000e%20stable/1.2.20/

But if I try to compile the driver I get:
/usr/src/e1000e-1.2.20/src/netdev.c: In function 'e1000_restore_vlan':
/usr/src/e1000e-1.2.20/src/netdev.c:3076: error: 'VLAN_GROUP_ARRAY_LEN'
undeclared (first use in this function)
/usr/src/e1000e-1.2.20/src/netdev.c:3076: error: (Each undeclared
identifier is reported only once
/usr/src/e1000e-1.2.20/src/netdev.c:3076: error: for each function it
appears in.)
make[2]: *** [/usr/src/e1000e-1.2.20/src/netdev.o] Error 1
make[1]: *** [_module_/usr/src/e1000e-1.2.20/src] Error 2
make: *** [default] Error 2

Can here please help someone?

Thanks a lot
Matthias

   


Does the one that comes with the kernel not work for some reason? It's 
here according to the search page:


│ Prompt: Intel(R) PRO/1000 Gigabit Ethernet support
│ Defined at drivers/net/Kconfig:2085
│ Depends on: NETDEVICES [=y]  NETDEV_1000 [=y]  PCI [=y]
│ Location:
│ - Device Drivers
│ - Network device support (NETDEVICES [=y])
│ - Ethernet (1000 Mbit) (NETDEV_1000 [=y])
│


Just build it in or add it as a module. In case you are new, go to 
Device Drivers, Network Device support, Ethernet 1000 Mbit then look for 
Intel Pro/1000. Sort of lists it backwards up there. ;-)


Dale

:-) :-)



[gentoo-user] Re: Rail Model font for coders

2011-01-22 Thread Nuno J. Silva
Nikos Chantziaras rea...@arcor.de writes:

 On 01/21/2011 12:08 AM, Nuno J. Silva wrote:
 Nikos Chantziarasrea...@arcor.de  writes:

 On 01/20/2011 11:14 AM,
 hare_krsna_hare_krsna_krsna_krsna_hare_hare_hare_rama_hare_rama_rama_rama_hare_h...@lavabit.com

 I am against hard limits on username lengths, but I think that
 uuencoding the result of gzipping that address yelds a more readable
 address.

 I think the OP should keep the username.  In addition, he/she should
 switch to this email service:

 http://www.abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk.com

 I'm planning on getting one. Lots of fun :-P

Not that the OP isn't already having this problem, but I wonder how
would I give other people my address Oh see, njsg at
two-and-a-half-alphabets dot com!

But now that DNS allows non-ascii, there is a whole new realm
of... clever domain parts. 

-- 
Nuno J. Silva
gopher://sdf-eu.org/1/users/njsg




[gentoo-user] Re: Rail Model font for coders

2011-01-22 Thread Nuno J. Silva
hare_krsna_hare_krsna_krsna_krsna_hare_hare_hare_rama_hare_rama_rama_rama_hare_h...@lavabit.com
writes:

 I think the expression you're looking for is non sequitur.

 Meeku:  It follows neatly and just because it is out-of-the-box spiritual
 philosophy does not mean it's non sequitur.

I just think it goes too far for a description about the font, nothing
specific against philosophy.

-- 
Nuno J. Silva
gopher://sdf-eu.org/1/users/njsg




Re: [gentoo-user] Re: Rail Model font for coders

2011-01-22 Thread hare_krsna_hare_krsna_krsna_krsna_hare_hare_hare_rama_hare_rama_rama_rama_hare_hare

 I just think it goes too far for a description about the font, nothing
 specific against philosophy.

Meeku:  What tends to happen in font design that certain issues tend to be
closed/buried or muted and thus I wanted to be open about it.





Re: [gentoo-user] Re: python wide-unicode problem

2011-01-22 Thread Helmut Jarausch
On 01/21/2011 10:14:33 PM, walt wrote:
 On 01/21/2011 07:48 AM, Helmut Jarausch wrote:
  On 01/21/2011 04:26:09 PM, walt wrote:
  On 01/21/2011 12:13 AM, Helmut Jarausch wrote:
  Hi,
 
  using Python3.1, if I say
  import site
 
  I get
 
  File /usr/lib64/python3.1/site.py, line 472, in setencoding
sys.setdefaultencoding(encoding) # Needs Python Unicode
  build !
  ValueError: Can only set default encoding to utf-8
 
  But
 
  emerge -vp dev-lang/python-3.1.3  shows
  USE=doc gdbm ipv6 ncurses readline sqlite ssl threads tk (wide-
  unicode) xml -build -examples -wininst
 
  Why is 'wide-unicode' in parentheses?
 
  Hm.  Try using a different tool, like equery u python.  Note the
  warning
  about changing that useflag.
 
  Thanks, unfortunately I don't understand the output
  I've got
  [ Legend : U - final flag setting for installation]
  [: I - package is installed with flag ]
  [ Colors : set, unset ]
* Found these USE flags for dev-lang/python-3.1.3:
  .
- + wide-unicode : Enable wide Unicode implementation which uses
 4-
  byte
   Unicode characters. Switching of this USE flag
  changes ABI
   of Python and requires reinstallation of many
  Python
   modules. (DON'T DISABLE THIS UNLESS YOU KNOW
 WHAT
  YOU'RE
   DOING)
 
  So, I have U- but I+ on wide-unicode
  What does that mean?
 
 I just re-emerged python:3.1 as a test, and I see exactly the same 
 but
 I don't get that error.
 
 For some reason site.py certainly thinks your python3 is built 
 without
 wide-unicode.  Have you tried re-installing python3 just for fun?
 
 You could try deleting site.pyc and site.pyo as an easy test.
 

Thanks Walt,
I've noticed that my root account did use an ASCII locale. Now I've 
changed that to the same locale en_US.iso88591 that is used in non-root 
accounts on my machine. With that I rebuild Python3.1.
And now, the error is gone. A bit strange.
I came along this problem when I tried to emerge the new 
package app-portage/smart-live-rebuild
This fails because the author's name contain non-ascii (even non 
latin1) characters. The author (Michał Górny) sent me a patch to 
distutils.eclass and after generating an utf-8 locale
LANG=en_US.utf-8 emerge -v app-portage/smart-live-rebuild
finally succeeded. He says, it's a Python problem.

Have a nice weekend,
Helmut.



Re: [gentoo-user] Networkdriver for Intel 82579

2011-01-22 Thread Matthias Fechner

On 01/22/11 12:12, Dale wrote:

Just build it in or add it as a module. In case you are new, go to
Device Drivers, Network Device support, Ethernet 1000 Mbit then look for
Intel Pro/1000. Sort of lists it backwards up there. ;-)


no it is not working (kernel 2.6.37). But I got the above mentioned 
driver working by editing the file with the error, replaced 
VLAN_GROUP_ARRAY_LEN by VLAN_N_VID, found that in a kernel git log that 
this variable was renamed.


Now it runs fine.


Bye
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] How can I turn off xterm console restore?

2011-01-22 Thread Mick
On Saturday 22 January 2011 05:45:27 Walter Dnes wrote:
   As soon as some textmode applications in xterm stop, their output gets
 wiped, and the xterm screen is restored to what it looked like before I
 launched the app.  Somebody thought they were being helpful; then
 again, so did the designers of Clippy.  I don't know how many updates
 ago the behaviour changed, but here's what happens...

Hmm ... as far as I can recall with xterm/aterm this behaviour for some 
commands is the expected/default behaviour.  I've looked into it for things 
like top et al when launched like so on the desktop from e.g. fluxbox's menu:

  aterm +sb -e top -d 2

Pressing q to quit top closes the aterm.  Completely.  :-(

I have not found a solution for it.

With xterm I would use the -hold option to stop xterm from collapsing like so:

  xterm -geometry 144x30 -bg black -fg green -hold -e 'ps auxf'

Thereafter I use the window decoration to close xterm, because no other 
keyboard inputs are accepted by it.


   Let's say I'm having a problem with packet loss to/from a certain
 internet server.  I would run mtr which gives an ongoing enhanced
 traceroute display.  When it gets to the router that's dropping packets
 I would hit Q and mtr quits.

That's how it always worked here.


 Before the update
 =
   I would copy/paste the mtr output into an email, and send it off to
 whomever, with the output showing the packet-loss stats.

Are you sure you were not previously using the -r option to report the output 
on the screen and now you don't?


 After the update
 
   As soon as mtr quits, its output gets wiped, and the xterm screen is
 restored to the state it was in before mtr was launched... helpful NOT!

try this:

  mtr -c 3 -r 123.456.78.90

   I've discovered that I can suspend it with {CTRL-S}, but I shouldn't
 have to resort to that.  Using Google, I found references to
 man termcap, which stated that this behaviour was controlled by
 entries in /etc/termcap.  Despite the fact that I have the termcap man
 page on my system, I do *NOT* have /etc/termcap.  Does anyone have a
 sample /etc/termcap (or will ~/.termcap work?) to stop the screen
 restore after a text application quits?

I don't have /etc/termcap here ... and wouldn't know how to use it to be 
honest.
-- 
Regards,
Mick


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


Re: [gentoo-user] Networkdriver for Intel 82579

2011-01-22 Thread Dale

Matthias Fechner wrote:

On 01/22/11 12:12, Dale wrote:

Just build it in or add it as a module. In case you are new, go to
Device Drivers, Network Device support, Ethernet 1000 Mbit then look for
Intel Pro/1000. Sort of lists it backwards up there. ;-)


no it is not working (kernel 2.6.37). But I got the above mentioned 
driver working by editing the file with the error, replaced 
VLAN_GROUP_ARRAY_LEN by VLAN_N_VID, found that in a kernel git log 
that this variable was renamed.


Now it runs fine.


Bye
Matthias



So you got it working.  That's all that matters.  ;-)

Dale

:-)  :-)



Re: [gentoo-user] Re: AHCI/IDE-question

2011-01-22 Thread Mark Knecht
On Sat, Jan 22, 2011 at 1:15 AM, Dale rdalek1...@gmail.com wrote:
SNIP
 Other than copying a file and using time to measure how long it takes,
 what is the best test of a hard drive's speed?

 By running a benchmark tool that does exactly this.  IOzone is a nice one:

  http://www.iozone.org

 It's in portage: app-benchmarks/iozone.

 I installed it but trying to figure out how to use it.  Jeez, what a man
 page.  O_O


Yeah, it's a tough one. Also, very slow, assuming I understand it
correctly. You have to use file sizes larger than the memory of the
system, so on a 24GB system it takes (literally) a day or two to run.
(Assuming I actually understood the man page!) ;-)

- Mark



[gentoo-user] Re: How can I turn off xterm console restore?

2011-01-22 Thread Nuno J. Silva
Mick michaelkintz...@gmail.com writes:

 On Saturday 22 January 2011 05:45:27 Walter Dnes wrote:
   As soon as some textmode applications in xterm stop, their output gets
 wiped, and the xterm screen is restored to what it looked like before I
 launched the app.  Somebody thought they were being helpful; then
 again, so did the designers of Clippy.  I don't know how many updates
 ago the behaviour changed, but here's what happens...

 Hmm ... as far as I can recall with xterm/aterm this behaviour for some 
 commands is the expected/default behaviour.  I've looked into it for things 
 like top et al when launched like so on the desktop from e.g. fluxbox's menu:

   aterm +sb -e top -d 2

 Pressing q to quit top closes the aterm.  Completely.  :-(

 I have not found a solution for it.

 With xterm I would use the -hold option to stop xterm from collapsing like so:

   xterm -geometry 144x30 -bg black -fg green -hold -e 'ps auxf'

 Thereafter I use the window decoration to close xterm, because no other 
 keyboard inputs are accepted by it.

I think the OP is talking about how some programs (ncurses-based and the
like?) such as less output to a separate layer which is hidden when
they terminate, instead of writing to the same layer where the shell
lives (what would make the last output still visible when they end and
control goes back to the shell.

But I have no idea how to change it - I know it works differently in
some terminals, but I never tried to figure out how and why.

-- 
Nuno J. Silva
gopher://sdf-eu.org/1/users/njsg




[gentoo-user] More adventures with grub2

2011-01-22 Thread walt

Just finished using gdisk to convert my MSDOS partition table to
a GPT.  Worked perfectly on the first try (whew).

Rebooted with grub2 to discover that grub2 couldn't see my shiny
new GPT :(

After holding my head in my sweaty palms for a few minutes, I
finally realized that grub didn't automatically load its module
called part_gpt, so I used the grub shell to load it, and my new
GPT was there after all (whew again).

I found and loaded the linux kernel from the root partition, which
resides in my new GPT, right?  You see where this is going, right?

The kernel booted nicely -- and then the panic message appeared,
because, what else, I forgot to compile in support for GPT :(

So now I'm off to boot my gparted rescue CD and try to chroot
to the hard disk so I can compile a kernel with GPT support.

If that works I'm taking the rest of the day off. (I'm lying.)

Good thing I like this kind of fascinating learning experience.




[gentoo-user] Setting up SMTP relay

2011-01-22 Thread Alex Schuster
Hi there!

On my desktop PC, I have set up ssmtp with access data for my mail
server, so things like smartmontools or portage can send me emails.

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.

Is there an easy solution? Like setting up a simple SMTP server on my
desktop PC, that accepts connections from the LAN and forwards mails to
my external mail server?

I once had courier running, but did not really understand the
configuration, and would not really like to set it up again. Or dovecot,
which I heard good things about, so I would prefer it now. But maybe the
default configuration only needs few changes for my purpose? Or maybe
there is another simple tool that does just what I want?

It's nothing important, so if there's no simple solution, I'll just skip
this and check the logs from time to time.

Wonko



Re: [gentoo-user] Setting up SMTP relay

2011-01-22 Thread kashani

On 1/22/2011 1:34 PM, Alex Schuster wrote:

Hi there!

On my desktop PC, I have set up ssmtp with access data for my mail
server, so things like smartmontools or portage can send me emails.

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.

Is there an easy solution? Like setting up a simple SMTP server on my
desktop PC, that accepts connections from the LAN and forwards mails to
my external mail server?

I once had courier running, but did not really understand the
configuration, and would not really like to set it up again. Or dovecot,
which I heard good things about, so I would prefer it now. But maybe the
default configuration only needs few changes for my purpose? Or maybe
there is another simple tool that does just what I want?

It's nothing important, so if there's no simple solution, I'll just skip
this and check the logs from time to time.

Wonko



I handle it with Postfix. Dovecot is only imap and won't accept main 
directly.


1. install postfix with USE sasl or devecot-sasl, I don't believe it 
matters which. Add the following lines to the bottom of 
/etc/postfix/main.cf and fill in your hostname, domain, etc as needed.


# local settings
myhostname = host.domain.com
mydomain = domain.com
myorigin = $myhostname
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks_style = subnet
mynetworks = 127.0.0.0/8 10.19.20.0/24

smtpd_recipient_restrictions =
#reject_non_fqdn_recipient
#reject_non_fqdn_sender
#reject_unknown_recipient_domain
permit_mynetworks
reject_unauth_destination
permit

I commented out some of the checks above. Enable them if they'll work in 
your environment. I recommend at least reject_unknown_recipient_domain 
which doesn't allow recipients to domains that don't exist.


2. run sudo newaliases
	Postfix bitches if the /etc/mail/aliases.db doesn't exist and will hang 
on start.


3. Verify postfix works, isn't complaining in the logs, etc.
	Make sure it's up and running. That you can telnet to port 25 from 
another machine and even send to a local user on your machine.


4. Add the user/pass stuff to the bottom of /etc/postfix/main.cf

# relay host and credentials
relayhost = [my.external.relayhost.com]
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl.passwd
smtp_sasl_mechanism_filter = digest-md5
smtp_sasl_security_options = noanonymous

/etc/postfix/sasl.passwd
[my.external.relayhost.com]  myusern...@relayhost.com:my_secure_passwd

sudo postmap /etc/postfix/sasl.passwd

sudo /etc/init.d/postfix restart

Things to remember. You need to restart Postfix is your change the 
password because it caches it. Also the relayhost name needs to match 
*exactly* between the passwd file and main.cf.


5. Once you're this far it's time to test all the way through.

make sure you can send from the localhost machine
sendmail -v s...@address.com
.

Once you're sure that works test from another machine on the network. 
Ideally it should just work if you've done all the steps.


kashani



Re: [gentoo-user] Re: How can I turn off xterm console restore?

2011-01-22 Thread Paul Colquhoun
On Sun, 23 Jan 2011 06:11:03 Nuno J. Silva wrote:
 Mick michaelkintz...@gmail.com writes:
  On Saturday 22 January 2011 05:45:27 Walter Dnes wrote:
As soon as some textmode applications in xterm stop, their output gets
  
  wiped, and the xterm screen is restored to what it looked like before I
  launched the app.  Somebody thought they were being helpful; then
  again, so did the designers of Clippy.  I don't know how many updates
  ago the behaviour changed, but here's what happens...
  
  Hmm ... as far as I can recall with xterm/aterm this behaviour for some
  commands is the expected/default behaviour.  I've looked into it for
  things
  
  like top et al when launched like so on the desktop from e.g. fluxbox's 
menu:
aterm +sb -e top -d 2
  
  Pressing q to quit top closes the aterm.  Completely.  :-(
  
  I have not found a solution for it.
  
  With xterm I would use the -hold option to stop xterm from collapsing like 
so:
xterm -geometry 144x30 -bg black -fg green -hold -e 'ps auxf'
  
  Thereafter I use the window decoration to close xterm, because no other
  keyboard inputs are accepted by it.
 
 I think the OP is talking about how some programs (ncurses-based and the
 like?) such as less output to a separate layer which is hidden when
 they terminate, instead of writing to the same layer where the shell
 lives (what would make the last output still visible when they end and
 control goes back to the shell.
 
 But I have no idea how to change it - I know it works differently in
 some terminals, but I never tried to figure out how and why.


I know what the OP is after, and I remember doing it some time ago. A bit of 
hunting in my .bashrc  .bash_profile files shows this:

LESS=-R -X
PAGER=/usr/bin/less

The -X is the important option, as it stops 'less' doing the terminal setup 
required for the oputput hiding.

It seems that the affected programs all check the 'PAGER' environment variable 
and run their output through 'less'.

Try just setting the 'LESS' environment variable from the command line and see 
it that helps. If it does, add it to .bashrc or .bash_profile to make it 
permanent.


-- 
Reverend Paul Colquhoun, ULC.http://andor.dropbear.id.au/~paulcol
 Before you criticize someone, you should walk a mile in their shoes.
Then, when you do, you'll be a mile away, and you'll have their shoes.



Re: [gentoo-user] NX, FreeNX, Neatx, x2go?

2011-01-22 Thread Stroller

On 21/1/2011, at 2:43pm, Alex Schuster wrote:
 ...
 I'm using various versions of NX to access remote servers. Normally I
 use FreeNX, but sometimes NX from nomachine.org, and I also gave Neatx a
 try, depending on which OS I am using - I do this with Gentoo, Fedora,
 Ubuntu and openSUSE.

I'm not sure what you're trying to do, exactly, but it might be worth a look at 
xpra / Window Switch. 

http://en.wikipedia.org/wiki/Xpra
http://winswitch.org/video/

Window Switch is basically a flashy GUI front end for xpra, but I think it 
supports NX and VNC on top of X11. Window Switch's version of xpra may not be 
compatible with the one in `x11-wm/parti`, as it has some extensions, but 
winswitch.org provides some ebuilds.

Stroller.




Re: [gentoo-user] Re: Rail Model font for coders

2011-01-22 Thread Stroller

On 20/1/2011, at 10:08pm, Nuno J. Silva wrote:
 Nikos Chantziaras rea...@arcor.de writes:
 
 On 01/20/2011 11:14 AM,
 hare_krsna_hare_krsna_krsna_krsna_hare_hare_hare_rama_hare_rama_rama_rama_hare_h...@lavabit.com
 
 I am against hard limits on username lengths, but I think that
 uuencoding the result of gzipping that address yelds a more readable
 address.

Uh, sorry - can you translate, please?

Stroller.




[gentoo-user] ALSA - No Sound

2011-01-22 Thread dhk
Can someone tell me why I don't have sound?  I've followed the
instructions at http://www.gentoo.org/doc/en/alsa-guide.xml and
everything seems to be working, but there's still no sound.  I've also
swapped out the speakers, made sure they were powered on, and the volume
turned up.  Also I'm in the audio group and the channels are unmuted
with the volume at 75%.

One thing I did notice is that after running alsaconf there aren't any
modules in /etc/modules.d/, in fact the directory doesn't even exist.
Now if there aren't any modules to load that's fine, but since I don't
hear anything I'm not so sure.

Below is what's on my ~amd64 system.

Thanks.

# rc-update show | grep -i alsa
   alsasound | boot

# /etc/init.d/alsasound restart
 * WARNING:  you are stopping a boot service.
 * Storing ALSA Mixer Levels ...
  [ ok ]
 * Loading ALSA modules ...
 *   Loading: snd-card-0 ...
  [ ok ]
 * Restoring Mixer Levels ...
  [ ok ]

# lspci -v | grep -i audio
00:06.0 Multimedia audio controller: nVidia Corporation nForce3 250Gb
AC'97 Audio Controller (rev a1)

# cat /etc/kernels/kernel-config-x86_64-2.6.36-gentoo-r5 | egrep -i
'sound|ac97|alsa'
CONFIG_SOUND=m
CONFIG_SOUND_OSS_CORE=y
CONFIG_SOUND_OSS_CORE_PRECLAIM=y
CONFIG_SND_AC97_CODEC=m
# CONFIG_SND_AC97_POWER_SAVE is not set
# CONFIG_SOUND_PRIME is not set
CONFIG_AC97_BUS=m
CONFIG_THINKPAD_ACPI_ALSA_SUPPORT=y
# CONFIG_CRYPTO_SALSA20 is not set
CONFIG_CRYPTO_SALSA20_X86_64=m

# cat /proc/asound/cards
 0 [CK8S   ]: NFORCE - NVidia CK8S
  NVidia CK8S with ALC850 at irq 20
 1 [UART   ]: MPU-401 UART - MPU-401 UART
  MPU-401 UART at 0x300, irq 5

# cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.23.

# cat /proc/asound/oss/sndstat
Sound Driver:3.8.1a-980706 (ALSA v1.0.23 emulation code)
Kernel: Linux jenny 2.6.36-gentoo-r5 #1 SMP Wed Jan 12 16:53:04 EST 2011
x86_64
Config options: 0

Installed drivers:
Type 10: ALSA emulation

Card config:
NVidia CK8S with ALC850 at irq 20
MPU-401 UART at 0x300, irq 5

Audio devices:
0: NVidia CK8S (DUPLEX)

Synth devices: NOT ENABLED IN CONFIG

Midi devices:
1: MPU-401 UART MIDI

Timers:
31: system timer

Mixers:
0: Realtek ALC850 rev 0
1: mixer10




Re: [gentoo-user] ALSA - No Sound

2011-01-22 Thread David Abbott
On Sat, Jan 22, 2011 at 8:16 PM, dhk dhk...@optonline.net wrote:
 Can someone tell me why I don't have sound?
What happens when you;
modprobe snd-intel8x0 ; modprobe snd-pcm-oss ; modprobe snd-mixer-oss
; modprobe snd-seq-oss



Re: [gentoo-user] ALSA - No Sound

2011-01-22 Thread dhk
On 01/22/2011 08:51 PM, David Abbott wrote:
 On Sat, Jan 22, 2011 at 8:16 PM, dhk dhk...@optonline.net wrote:
 Can someone tell me why I don't have sound?
 What happens when you;
 modprobe snd-intel8x0 ; modprobe snd-pcm-oss ; modprobe snd-mixer-oss
 ; modprobe snd-seq-oss
 
 

After executing the four modprobes above, nothing happens.





Re: [gentoo-user] ALSA - No Sound

2011-01-22 Thread Hazen Valliant-Saunders
Alsaconf will probe the right module for you.

have you run alsamixer? (Or gmixer or whichever mixer you like to unumte the
channels with?)

You need to unmute the channells;

On Sat, Jan 22, 2011 at 9:59 PM, dhk dhk...@optonline.net wrote:

 On 01/22/2011 08:51 PM, David Abbott wrote:
  On Sat, Jan 22, 2011 at 8:16 PM, dhk dhk...@optonline.net wrote:
  Can someone tell me why I don't have sound?
  What happens when you;
  modprobe snd-intel8x0 ; modprobe snd-pcm-oss ; modprobe snd-mixer-oss
  ; modprobe snd-seq-oss
 
 

 After executing the four modprobes above, nothing happens.






-- 
Hazen Valliant-Saunders Adipl. CISSP ITIL MCSE MCP
IT/IS Consultant
(613) 355-5977


[gentoo-user] Geographical location of an URL/IP-address

2011-01-22 Thread meino . cramer

Hi,

is there any tool/mechanism to locate a given URL or IP-address on the
globe automatically?
I mean: I feed the tool with an IP-address or an URL and it will
respond: France, Paris

I dont mean a tool, whose output I have interpret.

I want this for batch processing...

Thank you very much in advance for any tool ;)
Bet regards, 
mcc