Re: [gentoo-user] Internet

2011-06-16 Thread Joost Roeleveld
On Wednesday 15 June 2011 23:38:01 Neil Bothwick wrote:
 On Wed, 15 Jun 2011 23:14:28 +0100, Mick wrote:
If not please change the ethernet cable.
   
   I did it, it was even a new one!
   
 This seems s much like a hardware failure

I can't think of anything else.
   
   I would like this was the key, but...   :-(
  
  OK, let's look at this from the router side ... what router make 
  model do you have?
 
 I'd go even more basic, connect directly to another computer using a
 crossover cable, set addresses on both with ifconfig and see if they can
 ping one another. This really sounds like broken hardware and if the
 cable is fine, the NIC is suspect.

Or swap the cable with a working PC and vice-versa.
If then the issue stays with the currently broken one, then the issue is 
probably with the network card in the broken one.

If the issue affects the other PC, then the problem is the cable. I've had 
issues before where I couldn't get a connection using CAT-6 cables. Didn't 
check properly and the network card wouldn't allow it. The card did, however, 
claim there was a link...

--
Joost



Re: [gentoo-user] Kernel Modules

2011-06-16 Thread Stroller

On 15 June 2011, at 19:05, Peter Humphrey wrote:

 On Wednesday 15 June 2011 17:25:23 Neil Bothwick wrote:
 On Wed, 15 Jun 2011 17:07:01 +0100, Peter Humphrey wrote:
 I'd like to use this but I don't have shopt. Which package is it in? If
 I ask Google I get a list of places to buy T-shirts.
 
 It's a Bash built-in.
 
 Hmm. It seems that the command from the Wiki can't be run as an ordinary 
 user via sudo; …

Did you try: 
  sudo bash -c 'whatever'
?

Personally, I haven't used Gentoo's bash completion since 2009.
http://www.gossamer-threads.com/lists/gentoo/user/189292

I don't really feel that I can trust it. 

Stroller.






Re: [gentoo-user] USB Problems

2011-06-16 Thread JDM
Apologies for this. It was supposed to be a general term

With regards to usb issues 2.6.39-r1 has seemed to solve a lot of issues. 

--Original Message--
From: Peter Humphrey
To: Gentoo
ReplyTo: Gentoo
Subject: Re: [gentoo-user] USB Problems
Sent: 16 Jun 2011 00:34

On Sunday 12 June 2011 15:30:12 john wrote:

 Gents

[...]

It may have escaped your attention, but we here aren't all gents.

Just thought I'd mention it.

-- 
Rgds
Peter



JDM



Re: [gentoo-user] Internet

2011-06-16 Thread Cahn Roger
 Or someone's standing on the cable  :-)

Yes, a bad spirit!!!

I resume.
1-The problem occured after I tried to share my Epson printer
between my three PCs: Gentoo+XP (twice) and W7
2-The NIC is included in the motherboard (Asus P5K-E)
3-The cable from the dektop, where the problem exists,
works fine on the laptop which is without problem,
and the cable from the laptop doesn't work on the desktop.
Therefore, I think, that's not a cable problem.




Re: [gentoo-user] Internet

2011-06-16 Thread Neil Bothwick
On Thu, 16 Jun 2011 09:50:00 +0200, Cahn Roger wrote:

 2-The NIC is included in the motherboard (Asus P5K-E)

Can you get hold of a PCI* NIC to try, it will appear as eth1. If it
works the problem is with the motherboard NIC. I'd also check the BIOS to
make sure the pixies haven't disabled the NIC in the BIOS settings,
stranger things have happened, sometimes disabling and re-enabling a
device can resurrect it.


-- 
Neil Bothwick

Hyperbole is absolutely the worst mistake you can possibly make


signature.asc
Description: PGP signature


Re: [gentoo-user] Internet

2011-06-16 Thread Cahn Roger
 This really sounds like broken hardware and if the
 cable is fine, the NIC is suspect.

I'm afraid you're right!
But, as I just wrote, the NIC is included in the motherboard...

PERHAPS a solution: try a restore from the
external HD where I have saved a week ago with
fsarchiver on SystemRescueCD.





Re: [gentoo-user] Internet

2011-06-16 Thread Neil Bothwick
On Thu, 16 Jun 2011 10:06:19 +0200, Cahn Roger wrote:

  This really sounds like broken hardware and if the
  cable is fine, the NIC is suspect.
 
 I'm afraid you're right!
 But, as I just wrote, the NIC is included in the motherboard...
 
 PERHAPS a solution: try a restore from the
 external HD where I have saved a week ago with
 fsarchiver on SystemRescueCD.

No amount of farting around with software will bring dead hardware back
to life. Just try another NIC, at least that way you'll know.


-- 
Neil Bothwick

(A)bort (R)etry (S)ell it


signature.asc
Description: PGP signature


Re: [gentoo-user] Internet

2011-06-16 Thread Cahn Roger

 Can you get hold of a PCI* NIC to try, it will appear as eth1. 

Excuse me, I don't understand what you mean  get hold of a PCI* NIC  :-(

A lspci gives:

02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E
Gigabit Ethernet Controller (rev 12)







Re: [gentoo-user] Internet

2011-06-16 Thread Joost Roeleveld
On Thursday 16 June 2011 09:50:00 Cahn Roger wrote:
  Or someone's standing on the cable  :-)
 
 Yes, a bad spirit!!!
 
 I resume.
 1-The problem occured after I tried to share my Epson printer
 between my three PCs: Gentoo+XP (twice) and W7

Is the printer still connected and switched on?
It's possible this is part of the problem

 2-The NIC is included in the motherboard (Asus P5K-E)

Those can, unfortunately, also break

 3-The cable from the dektop, where the problem exists,
 works fine on the laptop which is without problem,
 and the cable from the laptop doesn't work on the desktop.
 Therefore, I think, that's not a cable problem.

I agree, the cable has been proven to work.



Re: [gentoo-user] Internet

2011-06-16 Thread Joost Roeleveld
On Thursday 16 June 2011 10:28:47 Cahn Roger wrote:
  Can you get hold of a PCI* NIC to try, it will appear as eth1.
 
 Excuse me, I don't understand what you mean  get hold of a PCI* NIC  :-(
 
 A lspci gives:
 
 02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E
 Gigabit Ethernet Controller (rev 12)

What Cahn Roger means is, can you get hold of a network card that is not 
included on your mainboard?
In other words, can you test using a new network card that you built into the 
computer?

Can you try checking the BIOS settings to see if there is something there that 
might cause problems with the network device on the mainboard?


Based on all the information provided already, there is a very good chance 
that the network card on your mainboard is no longer working correctly.
I am, to be honest, hoping that it is caused by interference of the printer or 
by a BIOS setting.

--
Joost



Re: [gentoo-user] Internet

2011-06-16 Thread Cahn Roger
 Based on all the information provided already, there is a very good chance 
 that the network card on your mainboard is no longer working correctly.

I'm afraid you're right, because neither Gentoo nor XP work and they're
on two different HD.

 I am, to be honest, hoping that it is caused by interference of the printer 

It was my first idea, because it arrived just afterwards.

 or by a BIOS setting.

I verified, but didn't see any wrong setting

I'll try with an other network card...when I get time!
Thank's all for trying to bring me out of the trouble.
I'll tell you what will happen.
Roger





Re: [gentoo-user] Internet

2011-06-16 Thread William Kenworthy
Apologies if I missed someone already asking these:

1. are the lights on or flashing with a cable plugged in and pinging
something valid?

2. can you ping yourself (both 127.0.0.1 and the nic IP) - cable plugged
in

3. do you have IP tables installed - iptables -vnL and check you have
not firewalled yourself off from the world somehow.

4. set up a ping and check dmesg and terminal 12 (ctrl-alt-F12) for
anything meaningful.

5. as an outside chance, run modinfo [eth_module] - get the right
module name from lsmod

BillK




On Thu, 2011-06-16 at 11:55 +0200, Cahn Roger wrote:
  Based on all the information provided already, there is a very good chance 
  that the network card on your mainboard is no longer working correctly.
 
 I'm afraid you're right, because neither Gentoo nor XP work and they're
 on two different HD.
 
  I am, to be honest, hoping that it is caused by interference of the printer 
 
 It was my first idea, because it arrived just afterwards.
 
  or by a BIOS setting.
 
 I verified, but didn't see any wrong setting
 
 I'll try with an other network card...when I get time!
 Thank's all for trying to bring me out of the trouble.
 I'll tell you what will happen.
 Roger
 
 
 

-- 
William Kenworthy bi...@iinet.net.au
Home in Perth!




Re: [gentoo-user] Internet

2011-06-16 Thread Mick
On Thursday 16 Jun 2011 09:02:01 Cahn Roger wrote:
  OK, let's look at this from the router side ... what router make  model
  do you have?
 
 It's a box through which I get internet, telephone.
 The name is Neuf-Box and given by access supplier SFR.
 It continue to work well on my two other PCs and telephone
 connection is normal.

OK, I don't know how much SFR have locked down their firmware.  You should be 
able to access its control panel using a browser (using another PC of course) 
and pointing it to http://192.168.178.1 (the default address for this router 
seems to be http://192.168.1.1).

Then work your way through the menu until you find a log.  If there is one 
available then have a look at what it shows when you try to connect with your 
faulty PC.
-- 
Regards,
Mick


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


Re: [gentoo-user] Internet

2011-06-16 Thread Thanasis
on 06/16/2011 10:50 AM Cahn Roger wrote the following:
  Or someone's standing on the cable  :-)
 
 Yes, a bad spirit!!!
 
 I resume.
 1-The problem occured after I tried to share my Epson printer
 between my three PCs: Gentoo+XP (twice) and W7
 2-The NIC is included in the motherboard (Asus P5K-E)
 3-The cable from the dektop, where the problem exists,
 works fine on the laptop which is without problem,
 and the cable from the laptop doesn't work on the desktop.
 Therefore, I think, that's not a cable problem.
 
 
 
Reset the switch too?



Re: [gentoo-user] blocking conflicts in kde packages when updating world

2011-06-16 Thread Alex Schuster
ifj. Stefán István writes:

 I want to make an update on my Gentoo system and get a lot of blocking
 packages.
 I use this command for upgarde:
 USE=semantic-desktop emerge -pv --update --newuse --deep world

Add --tree, this may help to see what pulls in which packages.
I had a similar blocker output when upgrading KDEPIM, it turned out I
had akregator:4.4 in /var/lib/portage/world. After I removed the line,
all was fine.

Wonko



[gentoo-user] sysklogd

2011-06-16 Thread Zhu Sha Zang

Someone that use sysklogd know how to create /dev/xconsole?

Cos every time that sysklogd start during the boot appear some message 
about this file and something like No such file or directory. But 
the sysklogd starting normally.




Thanks for any help.

--

---
Zhu Sha Zang




Re: [gentoo-user] Gentoo server installation

2011-06-16 Thread Perenaster
thank you al for your responses! this really helped a lot I will try to
install and use Gentoo as server and I also will contact the gentoo-server
mailinglist if I experienace any problems
Thanks
Tom

2011/6/10 Pandu Poluan pa...@poluan.info

 On Fri, Jun 10, 2011 at 21:29, Alan McKinnon alan.mckin...@gmail.com
 wrote:
  Apparently, though unproven, at 15:15 on Friday 10 June 2011, Joost
 Roeleveld
  did opine thusly:
 
  On Friday 10 June 2011 12:13:22 Perenaster wrote:
   Hey,
   I dont't know if this is the right list I'm writing to but I want to
 use
   Gentoo as server. My aim is a small as possible installation of an OS
   with only the modules I want. So I thought Gentoo might be the OS of
   choice. Is it suitable for an server or should I look for an other
   distro?
   Is there anything in particular that I have to mention at the
   installation? Thanks in advance,
   Tom
 
  Hi Tom,
 
  Gentoo is quite usable as a Server. I use it as such myself.
 
  Funny think about Gentoo is that it can save you a few MB of disk space
 by
  removing things you don't need.
 
  But it consumes 3GB of disk space to do it.
 

 Heh, I personally don't really care about hard disk usage.

 All I know is, compared to other 'server'-oriented distros (or distro
 variant), Gentoo has the least amount of memory usage :-)

 Rgds,
 --
 Pandu E Poluan
 ~ IT Optimizer ~
 Visit my Blog: http://pepoluan.posterous.com




-- 
sip:3...@perenaster.com
sip:3...@perenaster.com
sip:3...@perenaster.com
sip:3...@perenaster.com
sip:3...@perenaster.com


Re: [gentoo-user] Internet

2011-06-16 Thread Cahn Roger
 Apologies if I missed someone already asking these:

No problem! Thanks to try to help me.

 1. are the lights on or flashing with a cable plugged in and pinging
 something valid?

No. They are stable

 2. can you ping yourself (both 127.0.0.1 and the nic IP) - cable plugged
 in

They work both (127.0.0.1 and 192.168.1.20 my desktop IP)

 3. do you have IP tables installed - iptables -vnL and check you have
 not firewalled yourself off from the world somehow.

Not iptables installed.

 4. set up a ping and check dmesg and terminal 12 (ctrl-alt-F12) for
 anything meaningful.

ping to my laptop which works (192.168.0.22) fails.
In dmesg (very very long!) I didn't find anything
I could understand but this:
[   11.002756] sky2 :02:00.0: eth0: enabling interface
[   11.003194] ADDRCONF(NETDEV_UP): eth0: link is not ready
[   11.113427] Adding 2048280k swap on /dev/sdb2.  Priority:-1 extents:1
across:2048280k
[   14.025657] sky2 :02:00.0: eth0: Link is up at 100 Mbps, full
duplex, flow control rx
[   14.026096] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   24.386040] eth0: no IPv6 routers present

With ctrl+alt+F12 i canread this (interesting?)
Bureau ntpd_intres[3301] host name not found: 0.gentoo.pool.ntp.org
(3 other lines like this with number 2, 3, 4)

 5. as an outside chance, run modinfo [eth_module] - get the right
 module name from lsmod

in lsmod I don't have a module eth_module







Re: [gentoo-user] Internet

2011-06-16 Thread Cahn Roger

 Reset the switch too?

Excuse me Thanasis but I don't understand what you mean   ;-(




Re: [gentoo-user] Internet

2011-06-16 Thread Thanasis
on 06/16/2011 05:11 PM Cahn Roger wrote the following:
 
 Reset the switch too?
 
 Excuse me Thanasis but I don't understand what you mean   ;-(
 
 
 
Reset, or power-off and power-on the switch/hub.



[gentoo-user] tethering an htc incredible

2011-06-16 Thread Allan Gottlieb
I have an htc incredible and want to use it to act as a modem for my
gentoo laptop.

The htc manual says that I first must install htc sync.
When I go to the htc web site, I find that htc sync is only available
for ms windows.

I believing others on this group have tethered their incredibles and I
wonder how.  I see in google some attempts to use wine or other ms
windows emulators / virtualizers.

I do not need to sync contacts/mail/calendar since I do that with
google.

I haven't seen any howtos for tethering directly with gentoo.

thanks in advance.
allan



Re: [gentoo-user] tethering an htc incredible

2011-06-16 Thread Paul Hartman
On Thu, Jun 16, 2011 at 9:38 AM, Allan Gottlieb gottl...@nyu.edu wrote:
 I have an htc incredible and want to use it to act as a modem for my
 gentoo laptop.

 I haven't seen any howtos for tethering directly with gentoo.

Check out this forum post:
https://forums.gentoo.org/viewtopic-t-843255-start-0.html



[gentoo-user] /etc/locale vs /etc/env.d/02locale?

2011-06-16 Thread Mark Knecht
Is there a simple explanation concerning the difference between the
two locales I have seen on Gentoo machines?

1) /etc/locale, as specified in the installation documents

2) /etc/env.d/02locale as has been discussed on the list recently

I'm helping a Windows friend bring up his first Gentoo box. With the
locale set in /etc/locale as per the install docs the locale command
returns: (from the chroot)

(chroot) livecd linux # cat /etc/locale.gen
SNIP
en_US ISO-8859-1
en_US.UTF-8 UTF-8
(chroot) livecd linux # locale
LANG=
LC_CTYPE=POSIX
LC_NUMERIC=POSIX
LC_TIME=POSIX
LC_COLLATE=POSIX
LC_MONETARY=POSIX
LC_MESSAGES=POSIX
LC_PAPER=POSIX
LC_NAME=POSIX
LC_ADDRESS=POSIX
LC_TELEPHONE=POSIX
LC_MEASUREMENT=POSIX
LC_IDENTIFICATION=POSIX
LC_ALL=
(chroot) livecd linux #


However on my machines it did the same thing until I set 02locale and
now it returns:

mark@c2stable ~ $ locale
LANG=en_US.UTF8
LC_CTYPE=en_US.UTF8
LC_NUMERIC=en_US.UTF8
LC_TIME=en_US.UTF8
LC_COLLATE=en_US.UTF8
LC_MONETARY=en_US.UTF8
LC_MESSAGES=en_US.UTF8
LC_PAPER=en_US.UTF8
LC_NAME=en_US.UTF8
LC_ADDRESS=en_US.UTF8
LC_TELEPHONE=en_US.UTF8
LC_MEASUREMENT=en_US.UTF8
LC_IDENTIFICATION=en_US.UTF8
LC_ALL=
mark@c2stable ~ $

It seems to me the latter is preferable but the install docs don't
talk about it at all.

Thanks,
Mark



Re: Odp: [gentoo-user] Re: polish fonts xorg.conf

2011-06-16 Thread fajfusio
Dnia 15-06-2011 o godz. 21:59 Mick napisał(a):
 On Wednesday 15 Jun 2011 16:41:29 YoYo Siska wrote:
  On Wed, Jun 15, 2011 at 04:46:54PM +0200, fajfu...@wp.pl wrote:
   Dnia 14-06-2011 o godz. 21:51 walt napisał(a):
On 06/14/2011 09:02 AM, fajfu...@wp.pl wrote:
 Hello
 
 When I execute:
 setxkbmap pl
 
 I can type polish fonts in xterm and other X programs. But when I

generate xorg.conf file with Xorg -configure and add the following to
it I cannot type the polish fonts (I copied it to /etc/x11/xorg.conf)

 Section InputDevice
 
 Identifier  Keyboard0
 Driver  kbd
 Option XkbModel pc105
 Option XkbLayoutpl
 
 EndSection
 
 
 Xorg.0.log:
 [ 29007.715] (==) Using config file: /etc/X11/xorg.conf
 [ 29008.100] (II) XINPUT: Adding extended input device Power Button

(type: KEYBOARD)

 [ 29008.100] (**) Option xkb_rules evdev
 [ 29008.100] (**) Option xkb_model evdev
 [ 29008.100] (**) Option xkb_layout us

The only problem I can see at the moment is that the log file says that
your keyboard
is using the 'evdev' driver but your xorg.conf specifies the 'kbd'
driver.  Try changing
the Driver to evdev instead of 'kbd'.
   
   I have reconfigured xorg.conf as follows:
   Section InputDevice
   
   Identifier  Keyboard0
   Driver  evdev
   Option XkbModel pc105
   Option XkbLayoutpl
   
   EndSection
   
   or
   
   Section InputDevice
   
   Identifier  Keyboard0
   Driver  evdev
   Option XkbModel evdev
   Option XkbLayoutpl
   
   EndSection
   
   
   Unfortunatelly it didn't help.
   I attach the complete Xorg.0.log.
   Do you have another suggestions.
   Thank you for help
  
  [ 24703.710] (**) Keyboard0: always reports core events
  [ 24703.710] (EE) Keyboard0: No device specified.
  [ 24703.710] (II) UnloadModule: evdev
  [ 24703.710] (EE) PreInit returned NULL for Keyboard0
  
  you defined a (new) keyboard in the config, which doesn't actually point
  to a device (the old kbd driver didn't need a device, but it didn't work
  for other reasons...) so that X basically ignored that section
  and your real keyboard device did get added automatically later
  albeit without your settings...
  
  the most correct way with a newer xorg is to create a file in
  /etc/xorg.conf.d  where you put an entry, which would  *match*  your
  keyboard device (that gets automatically created) and add the options to
  it, basically something like:
  
  Section InputClass
  Identifier pl keyboard layout
  MatchIsKeyboard on
  Option XkbModel evdev
  Option XkbLayoutpl
  EndSection
  
  can't find gentoo specific doc / page for this stuff, but
  man xorg.conf (search for InputClass) and google for
  xorg.conf.d and/or InputClass should give you something usefull
  fex:
  http://fedoraproject.org/wiki/Input_device_configuration
  
  
  
  yoyo
 As yoyo says:
 
 Remove
 Section ServerLayout
 #   InputDeviceKeyboard0 CoreKeyboard
 
 because evdev does not need it and change your keyboard section as 
 suggested,
 or if it doesn't work you can also try this:
 =
 Section InputClass
Identifier  keyboard catchall
Driver  evdev
MatchIsKeyboard on
MatchDevicePath /dev/input/event*
Option XkbLayout pl
Option XkbOptions
 EndSection
 =
 
 --
 Regards,
 Mick

Thanks all of you for help.
The last 2 posts definitely solved the problem.







[gentoo-user] Re: /etc/locale vs /etc/env.d/02locale?

2011-06-16 Thread Nikos Chantziaras

On 06/16/2011 06:45 PM, Mark Knecht wrote:

Is there a simple explanation concerning the difference between the
two locales I have seen on Gentoo machines?

1) /etc/locale, as specified in the installation documents

2) /etc/env.d/02locale as has been discussed on the list recently


There is no /etc/locale.  I assume you mean /etc/locale.gen.  That one 
only contains the locales for glibc.  You should not specify env vars 
there.  You only list raw locales.  Mine for example has these contents:


  en_US ISO-8859-1
  en_US.UTF-8 UTF-8

/etc/env.d/02locale is of a different format.  It's executed as a 
script, so you set your locale-specific env vars there.  You only need 
LANG actually, and possibly LC_COLLATE.  The whole contents of mine:


  LANG=en_US.UTF-8
  LC_COLLATE=C




Re: [gentoo-user] /etc/locale vs /etc/env.d/02locale?

2011-06-16 Thread Mark Knecht
On Thu, Jun 16, 2011 at 9:00 AM, Paul Hartman
paul.hartman+gen...@gmail.com wrote:
 On Thu, Jun 16, 2011 at 10:45 AM, Mark Knecht markkne...@gmail.com wrote:
 Is there a simple explanation concerning the difference between the
 two locales I have seen on Gentoo machines?

 1) /etc/locale, as specified in the installation documents

 2) /etc/env.d/02locale as has been discussed on the list recently

 I'm not near a Gentoo machine right now, but off the top of my head IIRC:

 /etc/locale.gen contains a list of locales to be compiled when glibc
 is emerged. These will be available to be used.

 /etc/env.d/02locale specifies which of those locales you actually want
 to use for the system-wide default (the LC variables)

Thanks for the response Paul.

Does that mean that the /etc/locale.gen is used only by glibc and not
really by the system? If so, what is glibc doing with these beyond
letting me system run programs?

If 02locale specifies what the system is using, then should it be
02locale that's in the install documents vs off in an optional Gentoo
Localization guide?

Note that the /etc/locale.gen stuff is marked optional in the guide so
presumably it isn't actually needed. All I've determined about it is
that it reduces the amount of time emerge spends buildingglibc/gcc.

Thanks,
Mark



Re: [gentoo-user] Re: /etc/locale vs /etc/env.d/02locale?

2011-06-16 Thread Mark Knecht
On Thu, Jun 16, 2011 at 9:22 AM, Nikos Chantziaras rea...@arcor.de wrote:
 On 06/16/2011 06:45 PM, Mark Knecht wrote:

 Is there a simple explanation concerning the difference between the
 two locales I have seen on Gentoo machines?

 1) /etc/locale, as specified in the installation documents

 2) /etc/env.d/02locale as has been discussed on the list recently

 There is no /etc/locale.  I assume you mean /etc/locale.gen.

I did. thanks.

 That one only
 contains the locales for glibc.  You should not specify env vars there.  You
 only list raw locales.  Mine for example has these contents:

  en_US ISO-8859-1
  en_US.UTF-8 UTF-8


As does mine.


 /etc/env.d/02locale is of a different format.  It's executed as a script, so
 you set your locale-specific env vars there.  You only need LANG actually,
 and possibly LC_COLLATE.  The whole contents of mine:

  LANG=en_US.UTF-8
  LC_COLLATE=C


I had the first line but not the second which I've added.

I think the root of my question is really the (possibly) unfortunately
use of the word 'locale' for the glibc stuff. I understand the concept
of locales for the system and users, but why does glibc need locales
which are possibly different from those in use on a system by users?

I can make up reasons, like someone from Japan logs into my server to
do work and needs something to use Japanese locales, but he could
likely set those up in .bashrc or something. What is glibc doing with
them?

Thanks,
Mark



[gentoo-user] Re: /etc/locale vs /etc/env.d/02locale?

2011-06-16 Thread Nikos Chantziaras

On 06/16/2011 07:23 PM, Mark Knecht wrote:

On Thu, Jun 16, 2011 at 9:00 AM, Paul Hartman
paul.hartman+gen...@gmail.com  wrote:

On Thu, Jun 16, 2011 at 10:45 AM, Mark Knechtmarkkne...@gmail.com  wrote:

Is there a simple explanation concerning the difference between the
two locales I have seen on Gentoo machines?

1) /etc/locale, as specified in the installation documents

2) /etc/env.d/02locale as has been discussed on the list recently


I'm not near a Gentoo machine right now, but off the top of my head IIRC:

/etc/locale.gen contains a list of locales to be compiled when glibc
is emerged. These will be available to be used.

/etc/env.d/02locale specifies which of those locales you actually want
to use for the system-wide default (the LC variables)


Thanks for the response Paul.

Does that mean that the /etc/locale.gen is used only by glibc and not
really by the system? If so, what is glibc doing with these beyond
letting me system run programs?


It allows you to have locales to use in /etc/env.d/02locale ;-)  If you 
want to set LANG=en_US.UTF-8 in 02locale, you of course need the files 
for that specific locale/encoding.  To get them, you need to write 
en_US.UTF-8 UTF-8 in locale.gen.  Not sure why you're not getting the 
comments in your locale.gen, but here there are, at the top of the file:


# /etc/locale.gen: list all of the locales you want to have on your system
#
# The format of each line:
# locale charmap
#
# Where locale is a locale located in /usr/share/i18n/locales/ and
# where charmap is a charmap located in /usr/share/i18n/charmaps/.
#
# All blank lines and lines starting with # are ignored.
#
# For the default list of supported combinations, see the file:
# /usr/share/i18n/SUPPORTED
#
# Whenever glibc is emerged, the locales listed here will be automatically
# rebuilt for you.  After updating this file, you can simply run 
`locale-gen`

# yourself instead of re-emerging glibc.




[gentoo-user] Re: /etc/locale vs /etc/env.d/02locale?

2011-06-16 Thread Nikos Chantziaras

On 06/16/2011 07:45 PM, Mark Knecht wrote:

I think the root of my question is really the (possibly) unfortunately
use of the word 'locale' for the glibc stuff.


locale.gen looks a bit cryptic, but the gen refers to generating 
locales.  To have locales available for use, they need to be generated 
first.





Re: [gentoo-user] /etc/locale vs /etc/env.d/02locale?

2011-06-16 Thread YoYo Siska
On Thu, Jun 16, 2011 at 09:23:16AM -0700, Mark Knecht wrote:
 On Thu, Jun 16, 2011 at 9:00 AM, Paul Hartman
 paul.hartman+gen...@gmail.com wrote:
  On Thu, Jun 16, 2011 at 10:45 AM, Mark Knecht markkne...@gmail.com wrote:
  Is there a simple explanation concerning the difference between the
  two locales I have seen on Gentoo machines?
 
  1) /etc/locale, as specified in the installation documents
 
  2) /etc/env.d/02locale as has been discussed on the list recently
 
  I'm not near a Gentoo machine right now, but off the top of my head IIRC:
 
  /etc/locale.gen contains a list of locales to be compiled when glibc
  is emerged. These will be available to be used.
 
  /etc/env.d/02locale specifies which of those locales you actually want
  to use for the system-wide default (the LC variables)
 
 Thanks for the response Paul.
 
 Does that mean that the /etc/locale.gen is used only by glibc and not
 really by the system? If so, what is glibc doing with these beyond
 letting me system run programs?
 
 If 02locale specifies what the system is using, then should it be
 02locale that's in the install documents vs off in an optional Gentoo
 Localization guide?
 
 Note that the /etc/locale.gen stuff is marked optional in the guide so
 presumably it isn't actually needed. All I've determined about it is
 that it reduces the amount of time emerge spends buildingglibc/gcc.

locale.gen is in the install docs, because it allows you to choose which
locales should be built, ie after emerging libc, which locales you can
choose from... if you don't modify it, you get a lot of usual locales
built...

/etc/env.d/02locale is used to actually choose which one of the built
ones will be used as the default locale for (almost) everything that
runs... I gues it might deserve a mention in the install guide... 
though it actullly isn't any special file... the actuall locale is set
by setting an enviroment variable (LANG or the specific LC_...), you
could set it in your .bashrc / .bash_profile only for your user, or
anywhere where it would apply to most programs, ie /etc/profile ...
Gentoo has the mechanism, that anything that gets put into /etc/env.d is
then (through env-update, which you have certainly run from time to time
;) merged together to /etc/profile.env, which is in turned sourced by
/etc/profile (and posibly other things) so that it is just logical to
put it there... but the actual name of the file doesn't really matter ;)


yoyo




[gentoo-user] gentoo-source-2.6.38-r6 as PV domU in XEN no Console

2011-06-16 Thread Konstantinos Agouros
Hi,

it is booting, I can log in. (dom0 is xen-sources-2.6.34-r4). However I do 
not have a complete console (tried with xensons=tty). Last message while
starting with xm create -c is: 
[0.284193] uname used greatest stack depth: 5856 bytes left
[6.801094] init-early.sh used greatest stack depth: 4000 bytes left

If I use xen-sources for the domU kernel as well all is fine. I used the
kernel-config of the xen-sources-domU kernel to do a make menuconfig in
the gentoo-sources-kernel. Anybody has this working?

Konstantin
-- 
Dipl-Inf. Konstantin Agouros aka Elwood Blues. Internet: elw...@agouros.de
Altersheimerstr. 1, 81545 Muenchen, Germany. Tel +49 89 69370185

Captain, this ship will not survive the forming of the cosmos. B'Elana Torres



Re: [gentoo-user] Internet

2011-06-16 Thread Joost Roeleveld
On Thursday 16 June 2011 17:20:10 Thanasis wrote:
 on 06/16/2011 05:11 PM Cahn Roger wrote the following:
  Reset the switch too?
  
  Excuse me Thanasis but I don't understand what you mean   ;-(
 
 Reset, or power-off and power-on the switch/hub.

Or simply, shut down everything that's networked, eg. router(s), 
switch(es)/hub(s), computer(s),

Wait 5 minutes and then restart the whole thing.



Re: [gentoo-user] Internet

2011-06-16 Thread Cahn Roger

 Wait 5 minutes and then restart the whole thing.

I did it, but without success  :-(




Re: [gentoo-user] tethering an htc incredible

2011-06-16 Thread Allan Gottlieb
On Thu, Jun 16 2011, Paul Hartman wrote:

 On Thu, Jun 16, 2011 at 9:38 AM, Allan Gottlieb gottl...@nyu.edu wrote:
 I have an htc incredible and want to use it to act as a modem for my
 gentoo laptop.

 I haven't seen any howtos for tethering directly with gentoo.

 Check out this forum post:
 https://forums.gentoo.org/viewtopic-t-843255-start-0.html

I have tried both builtin and modules for the kernel options mentioned
in the forum, with no success.  The phone is recognized and if I set the
option (on the phone) to have the connection act as a disk, that works
file.  But the phone option for mobile broadband does not work.  I see
the phone in dmesg but the usb0 network port is not created
(I do have net.usb0 -- net.lo).

thanks,
allan



Re: [gentoo-user] tethering an htc incredible

2011-06-16 Thread Mick
On Thursday 16 Jun 2011 15:38:30 Allan Gottlieb wrote:
 I have an htc incredible and want to use it to act as a modem for my
 gentoo laptop.
 
 The htc manual says that I first must install htc sync.
 When I go to the htc web site, I find that htc sync is only available
 for ms windows.

I wouldn't think that this is necessary unless you want to sync contacts, 
messages, etc.  Opensync may work with that phone - but I do know for sure.


 I believing others on this group have tethered their incredibles and I
 wonder how.  I see in google some attempts to use wine or other ms
 windows emulators / virtualizers.
 
 I do not need to sync contacts/mail/calendar since I do that with
 google.
 
 I haven't seen any howtos for tethering directly with gentoo.

I don't have your phone to provide detailed instructions, but this is how I 
have tethered phones in the past to connect to the Internet using IrDA or 
Bluetooth.

1. Establish a connection between your phone and the laptop.  I assume you 
will use Bluetooth for this, so you will need to edit 
/etc/bluetooth/rfcomm.conf as follows:

#
# RFCOMM configuration file.
#

rfcomm0 {
#   # Automatically bind the device at startup
#   bind no;
bind yes;
#   # Bluetooth address of the device
#   device 11:22:33:44:55:66;
device XX:XX:XX:XX:XX:XX;  --your phone's b'tooth MAC address
#
#   # RFCOMM channel for the connection
#   channel 1;
#channel 1;
#   # Description of the connection
#   comment Example Bluetooth device;
comment HTC Incredible;  --your phone's name
}

To find the MAC address run hcitool with various parameters like, scan, dev, 
inq.

Then create a ppp connection on your PC and point it to /dev/rfcomm0.  First 
check though that the device is being created and if not, check the 
/etc/conf.d/bluetooth file, this is mine:

# Bluetooth configuraton file

# Bind rfcomm devices (allowed values are true and false)
RFCOMM_ENABLE=true

# Config file for rfcomm
RFCOMM_CONFIG=/etc/bluetooth/rfcomm.conf


The tricky part with the ppp connection is using the correct string for 
running the modem on the phone.  On mine I dial up *99# and that activates 
GPRS on the phone.  You may also need special initialisation commands for the 
phone's modem.  Some googling on these specifics should get you there.

Other than that enable bluetooth on both devices, establish a connection using 
bluetooth and entering a pin and then run ppp on your laptop.  If all goes as 
expected you should be online.
-- 
Regards,
Mick


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


Re: [gentoo-user] tethering an htc incredible

2011-06-16 Thread Allan Gottlieb
On Thu, Jun 16 2011, Mick wrote:

 On Thursday 16 Jun 2011 15:38:30 Allan Gottlieb wrote:
 I have an htc incredible and want to use it to act as a modem for my
 gentoo laptop.
 
 The htc manual says that I first must install htc sync.
 When I go to the htc web site, I find that htc sync is only available
 for ms windows.

 I wouldn't think that this is necessary unless you want to sync contacts, 
 messages, etc.  Opensync may work with that phone - but I do know for sure.


 I believing others on this group have tethered their incredibles and I
 wonder how.  I see in google some attempts to use wine or other ms
 windows emulators / virtualizers.
 
 I do not need to sync contacts/mail/calendar since I do that with
 google.
 
 I haven't seen any howtos for tethering directly with gentoo.

 I don't have your phone to provide detailed instructions, but this is how I 
 have tethered phones in the past to connect to the Internet using IrDA or 
 Bluetooth.

thanks for the information.  The forum post paul sent me too claims that
this is very easy with a usb connection.  But to date, I haven't got it
working.  Others definitely have so there is probably something wrong
with configuration (quite possible the kernel).

thanks again,
allan



 1. Establish a connection between your phone and the laptop.  I assume you 
 will use Bluetooth for this, so you will need to edit 
 /etc/bluetooth/rfcomm.conf as follows:

 #
 # RFCOMM configuration file.
 #

 rfcomm0 {
 #   # Automatically bind the device at startup
 #   bind no;
 bind yes;
 #   # Bluetooth address of the device
 #   device 11:22:33:44:55:66;
 device XX:XX:XX:XX:XX:XX;  --your phone's b'tooth MAC address
 #
 #   # RFCOMM channel for the connection
 #   channel 1;
 #channel 1;
 #   # Description of the connection
 #   comment Example Bluetooth device;
 comment HTC Incredible;  --your phone's name
 }

 To find the MAC address run hcitool with various parameters like, scan, dev, 
 inq.

 Then create a ppp connection on your PC and point it to /dev/rfcomm0.  First 
 check though that the device is being created and if not, check the 
 /etc/conf.d/bluetooth file, this is mine:

 # Bluetooth configuraton file

 # Bind rfcomm devices (allowed values are true and false)
 RFCOMM_ENABLE=true

 # Config file for rfcomm
 RFCOMM_CONFIG=/etc/bluetooth/rfcomm.conf


 The tricky part with the ppp connection is using the correct string for 
 running the modem on the phone.  On mine I dial up *99# and that activates 
 GPRS on the phone.  You may also need special initialisation commands for the 
 phone's modem.  Some googling on these specifics should get you there.

 Other than that enable bluetooth on both devices, establish a connection 
 using 
 bluetooth and entering a pin and then run ppp on your laptop.  If all goes as 
 expected you should be online.



Re: [gentoo-user] Internet

2011-06-16 Thread William Kenworthy
On Thu, 2011-06-16 at 16:10 +0200, Cahn Roger wrote:
  Apologies if I missed someone already asking these:
 
 No problem! Thanks to try to help me.
 
  1. are the lights on or flashing with a cable plugged in and pinging
  something valid?
 
 No. They are stable
 

That indicates a problem - if a packet is going out/in, the lights
shouls flash

  2. can you ping yourself (both 127.0.0.1 and the nic IP) - cable plugged
  in
 
 They work both (127.0.0.1 and 192.168.1.20 my desktop IP)
 
that would indicate the software (protocol stack) is ok

  3. do you have IP tables installed - iptables -vnL and check you have
  not firewalled yourself off from the world somehow.
 
 Not iptables installed.
ok

 
  4. set up a ping and check dmesg and terminal 12 (ctrl-alt-F12) for
  anything meaningful.
 
 ping to my laptop which works (192.168.0.22) fails.
 In dmesg (very very long!) I didn't find anything
 I could understand but this:
 [   11.002756] sky2 :02:00.0: eth0: enabling interface
 [   11.003194] ADDRCONF(NETDEV_UP): eth0: link is not ready
 [   11.113427] Adding 2048280k swap on /dev/sdb2.  Priority:-1 extents:1
 across:2048280k
 [   14.025657] sky2 :02:00.0: eth0: Link is up at 100 Mbps, full
 duplex, flow control rx
 [   14.026096] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
 [   24.386040] eth0: no IPv6 routers present
 

normal, seeing the cable and a valid line discipline the other end

 With ctrl+alt+F12 i canread this (interesting?)
 Bureau ntpd_intres[3301] host name not found: 0.gentoo.pool.ntp.org
 (3 other lines like this with number 2, 3, 4)
 
ntpd is the network time protocol daemon - its basicly complaining about
no network.

  5. as an outside chance, run modinfo [eth_module] - get the right
  module name from lsmod
 
 in lsmod I don't have a module eth_module
 
 
in this comntext [ ] normally means optional or replace this so you
need to do an lsmod, identify the module for your ethernet card (sky2?)
and rum modinfo eth_module replacing eth_module with the real module
name.

 
 
 

Next I would remove the switch and use a crossover cable to another
machine and use ethtool on each end to go deeper into what the
hardware/cable is doing.  You can still get problems with one end being
say 10Mb/s and the other running a different speed/duplex etc.  I am
finding that 1Ghz chips seem less than reliable in this regard to older
switches that way!  I also have some 4 port sun 100mhz cards that need
the other end always up before powering the machine they are in on as
nothing I can do once up will get the ends in sync.


also try cat /proc/net/dev and see if that shows anything useful

BillK


-- 
William Kenworthy bi...@iinet.net.au
Home in Perth!




[gentoo-user] Recovering RAID1 after disk failure

2011-06-16 Thread Mike Diehl
Hi all,

I've got a sw RAID1 that just had a failed drive replaced with an identical 
drive.

However, the good drive started on sector 63 and the new drive want's to start 
on sector 2048.  Fdisk won't let me create the partition table on the new 
drive as it is on the old drive.

This is the good drive in the RAID:
===
Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xfc32270f

   Device Boot  Start End  Blocks   Id  System
/dev/sdb1  63  224909  112423+  fd  Linux raid autodetect
/dev/sdb2  2249105057261925173855   82  Linux swap / Solaris
/dev/sdb350572620   625137344   287282362+  fd  Linux raid autodetect
===

However, after zero'ing out the new drive, this is what fdisk allows me to do:


===
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF 
disklabel
Building a new DOS disklabel with disk identifier 0xfcd585e4.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x of partition table 4 will be corrected by w(rite)

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4, default 1): 1
First sector (2048-625142447, default 2048):
===

As you can see, I can't mirror the previous partitioning scheme and I will 
probably not have enough space on the new drive to build the RAID!

What can I do?



-- 

Take care and have fun,
Mike Diehl.