Re: [gentoo-user] OT im more just curious

2007-04-14 Thread Sergio Polini
I'll be 56 next month.
I first used Caldera in 1997, then Redhat, Mandrake, Suse, LFS (Linux 
From Scratch). I discovered Gentoo in 2004.

Sergio

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Completely lost regarding wifi

2007-02-05 Thread Sergio Polini
Sigfrido V. Ortiz C.:
 [EMAIL PROTECTED] wrote:
  [...]
  My school has some Windows/Mac setup instructions here (scroll
  down a bit):
  http://rorschach.concordia.ca/neg/remote_access/wireless/
  They mention Xsupplicant in relation to Linux, but once again I
  find myself way out of my depth. . .
  [...]
 [...]
 About Gentoo Networking please look at here for x86 processor:

 http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1chap=
3 and
 http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4

Here are some other examples  toubles:
http://lists.shmoo.com/pipermail/hostap/2005-December.txt

HTH

Sergio

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT Add something to boo-up that's not in /etc/init.d

2006-12-13 Thread Sergio Polini
Michael Sullivan:
 Is there a way to add something to the boot-up process that's not
 in /etc/init.d?  I thought I remembered something from Red Hat
 like /etc/rc.local, but I can't remember...

Look at /etc/conf.d/local.start. Which is run by /etc/init.d/local.

Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT: wlan0 is sssloooow [100% SOLVED]

2006-12-12 Thread Sergio Polini
Mick:
 On Monday 11 December 2006 20:56, Sergio Polini wrote:
  Yes, it was OT and very few of you are interested ;-)
  However, somebody would like to know who the killer was.
 
  The original subject was wlan0 is ssslw [99% SOLVED]
  because pinging the Belkin F5D7230-4 wireless router worked from
  Windows but not from Linux.
  The answer is: because Windows sends ICMP messages with 32 bytes
  of data, Linux sends them with 56 bytes of data.
  Moreover, Linux IP datagrams have the DF (don't fragment) bit
  set, Windows ones have not.
  On Linux, ping -s 15 192.168.2.2 works.

 How did you ever find this out?!

I used two tools: Douglas Comer, Internetworking with TCP/IP, and 
Wireshark (former ethereal).
I'm still installing my new laptop, f.i., I've not yet setup a 
firewall. My former firewall was based on the Iptables Tutorial by 
Oskar Andreasson, but I didn't understand all the details. So I've 
started studying, i.e. reading Comer and looking at frames, 
datagrams, etc. by Wireshark.
I needed that. For example, I had used nmap to look for an echo port 
on the Belkin router, but ping, i.e. ICMP, doesn't know anything 
about ports!
As to the ping problem, I started a Windows virtual machine by VMware 
Player, then Wireshark both in the Linux real machine and in the 
virtual one, then pinged the Belkin router. Looking at the output 
produced by the Linux Wireshark and by the virtual Windows one, there 
were just two differences: the DF bit, and the data field length in 
the ICMP messages.

 I'll know that's another thing to test when an access point
 is playing up. I wonder why belkin is set up this way.

I think that a router should send ICMP messages such as fragmentation 
needed and DF set (Type 3, , Code 4) and time to live exceeded in 
transit (Type 11, , Code 0), but Belkin does not (traceroute, and 
tracert, 192.168.2.1 print stars).
The Belkin 54G wireless router, F5D7130, had serious security holes:
http://www.governmentsecurity.org/archive/t15618.html
My model, F5D7230, is more secure. Eventually too much ;-)

 Thanks for sharing.  :-)

Alan McKinnon:
 I'm very glad you did post this update as here in the office we had
 this very problem three weeks ago. One morning every non-Windows
 host in our building suddenly could not see past the gateway, could
 not ping it and was essentially off-air. We eventually tracked it
 down to one of these Belkin wireless routers, but never figured out
 why it was doing what it did.

 Now we do know, so thanks for the heads-up!

I must thank all of you. Gentoo would not be such an attractive system 
without the continuous support by all of you.

Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT: wlan0 is sssloooow [100% SOLVED]

2006-12-11 Thread Sergio Polini
Yes, it was OT and very few of you are interested ;-)
However, somebody would like to know who the killer was.

The original subject was wlan0 is ssslw [99% SOLVED] because  
pinging the Belkin F5D7230-4 wireless router worked from Windows but 
not from Linux.
The answer is: because Windows sends ICMP messages with 32 bytes of 
data, Linux sends them with 56 bytes of data.
Moreover, Linux IP datagrams have the DF (don't fragment) bit set, 
Windows ones have not.
On Linux, ping -s 15 192.168.2.2 works.

Cheers
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT: wlan0 is sssloooow [99% SOLVED]

2006-11-28 Thread Sergio Polini
Richard Fish:
 Ok, two things to try.  First, remove the 192.168.2.1 nameserver
 from resolve.conf.  That nameserver may be broken and unable to
 resolve names on the internet.  This should help the ping
 www.google.com case.

Yes, I've already said that, but you are great! ;-)
I read your message this morning quickly, when I was going to work, 
and didn'understand it.
Then I've spoken to a colleague of mine, a true network guru, a very 
capable ethical hacker, and I've understood! (I suppose)
My wireless router:
a) runs a (WAN) DHCP client to get its IP address and the IP addresses 
of my provider's nameservers;
b) it get those IP addresses to send them to me when I run a DHCP 
client; my wireless router runs a (LAN) DHCP server too, but it is 
*not* a nameserver;
c) my DHCP client was configured as usual, i.e. replace 
my /etc/resolv.conf; I've added

dhcpcd_toynet=-R -h sergio
   ^^

to /etc/conf.d/wireless and restarted /etc/init.d/net.wlan0.
Now... there is no line nameserver 192.168.2.1 in 
my /etc/resolv.conf and ping www.google.com is fast ;-)

BTW: This evening I've started running Windows at first. ipconfig /all 
showed three nameservers, and 192.168.2.1 was the first one.
However, when I ran nslookup, the message was clear: 192.168.2.1 is 
not a nameserver. Why the difference between fast (Windows) and slow 
(my previous Gentoo box) Internet pings? Perhaps because the Windows 
timeout is short: 2 seconds. I do not know how to eventually set such 
a timeout in Linux

 Second, does ping -I wlan0 192.168.2.1 work better?

Nope. ping -I wlan0 or -n 192.168.2.1 is still blocked.
Well, it's just a nuisance, but I'll keep looking for a solution.
Any hints would be greately appreciated ;-)
That's not strange, because:

sergio ~ # nmap -sS -O -PI -PT 192.168.2.1

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2006-11-28 
22:21 CET
Interesting ports on 192.168.2.1:
Not shown: 1678 closed ports
PORT STATESERVICE
80/tcp   open http
4662/tcp filtered edonkey
MAC Address: 00:17:3F:0C:19:12 (Belkin)
Device type: broadband router
Running: Netgear embedded
OS details: Netgear Wireless router or Netgear FM114P/REPOTEC IP515H 
Router  Print Server

Nmap finished: 1 IP address (1 host up) scanned in 4.834 seconds

i.e., port 7 (Echo) looks closed. Does Windows' ping (which works) 
speak eDonkey? (very OT question ;-)

 Oh, one last thingyou don't have any firewall rules enabled,
 right?  (iptables --list)

Right. I wish to configure my real (wire and wireless connection to my 
ISP) and virtual (VMWare) networks, and then enable iptables.

Thanks a lot, as usual ;-)
Sergio

PS: I wish to thank Thomas Sjolshagen (private message) and Hans de 
Hartog too. If one doesn't feel lonely when he tries to solve a 
problem, well that helps a lot! My English is poor, but I hope 
that you understand what I mean ;-)
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] wlan0/ndiswrapper failing after gcc-4 upgrade (and dual Windows boot)

2006-11-26 Thread Sergio Polini
Mark Knecht:
Following along in the spirit of your response I don't even see
 version 1.23 so I've tried installing  the newest masked version,
 even though I expect this failed on your machine:

 Sector9 ~ # eix -I ndiswrapper
 * net-wireless/ndiswrapper
  Available versions:  1.2-r1 1.25 1.26 1.28 1.29
  Installed:   1.29
  Homepage:http://ndiswrapper.sourceforge.net/
  Description: Wrapper for using Windows drivers for
 some wireless cards

This is why I now keep two Gentoo root partitions, stable 
and testing: in stable there is a fully working system, 
in testing I update and look at what happens ;-)

 From the command line it appears that the newest version of
 ndiswrapper is suggesting I can now use a Linux driver. I have no
 idea how to actually do that though.

 Sector9 ~ # ndiswrapper -l
 installed drivers:
 neta3ab driver installed, hardware (168C:001A) present
 (alternate driver: ath_pci)
 Sector9 ~ #
 []
 Since I cannot get ndiswrapper working how would I go about getting
 ath_pci to work?

I'd check Stroller's advice ;-)
You could also look at:
http://gentoo-wiki.com/HARDWARE_Wireless
http://gentoo-wiki.com/Index:Hardware#Wireless
http://ndiswrapper.sourceforge.net/mediawiki/index.php/List

Sergio
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] OT: wlan0 is sssloooow

2006-11-26 Thread Sergio Polini
Scenario:
- I have a HAG (Home Access Gateway, which embodies an ADSL modem) 
installed by my provider;
- the HAG has three RJ45 ports; when a PC is connected to one of 
theese ports, it gets an IP address via DHCP;
- I have connected a Belkin wireless rooter to one of theese ports;
- I connect my PC to another port, and/or to the wireless router (by 
running modprobe ndiswrapper; then /etc/init.d/net.wlan0 is ran by 
ifplugs - at least, this is what I can guess ;-).

When I run Windows, my wireless connection is normal, but when I run 
Gentoo there are strange delays. For example, a simple ping is fast 
under Windows, very slow under Gentoo. I have to stop net.wlan0 to 
get normal pings again.

As far as I can understand, it is a matter of metric.
When I only connect my PC to the wireless router, I can see:

a) under Windows (the output is in Italian, but I'm sure you can read 
it - using a fixed font may help ;-):

 route PRINT

Elenco interfacce
0x1 ... MS TCP Loopback interface
0x2 ...00 16 d3 09 2d 17 .. NVIDIA nForce Networking
0x3 ...00 14 a5 e1 d2 b9 .. WLAN Broadcom 802.11a/b/g


Route attive:
Indirizzo rete   Mask Gateway   Interfac. Metric
0.0.0.0 0.0.0.0 192.168.2.1 192.168.2.2 25
  127.0.0.0   255.0.0.0   127.0.0.1   127.0.0.1  1
192.168.2.0   255.255.255.0 192.168.2.2 192.168.2.2 25
192.168.2.2 255.255.255.255   127.0.0.1   127.0.0.1 25
  192.168.2.255 255.255.255.255 192.168.2.2 192.168.2.2 25
  224.0.0.0   240.0.0.0 192.168.2.2 192.168.2.2 25
255.255.255.255 255.255.255.255 192.168.2.2   2  1
255.255.255.255 255.255.255.255 192.168.2.2 192.168.2.2  1
Gateway predefinito:   192.168.2.1

Route permanenti:
  Nessuno

b) under Gentoo:

b.1) fast:

sergio ~ # route -n
Kernel IP routing table
Destination Gateway Genmask   Flags Metric Ref Use Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 2000   0 0 wlan0
127.0.0.0   0.0.0.0 255.0.0.0 U 0  0 0 lo
0.0.0.0 192.168.2.1 0.0.0.0   UG2000   0 0 wlan0

b.1) very slow:

sergio ~ # route
Kernel IP routing table
Destination Gateway Genmask   Flags Metric Ref Use Iface
192.168.2.0 *   255.255.255.0 U 2000   0 0 wlan0
loopback*   255.0.0.0 U 0  0 0 lo
default 192.168.2.1 0.0.0.0   UG2000   0 0 wlan0

I can just notice an astonishing difference between metrics: 25 under 
Windows, 2000 (!) under Linux.

I've tried route del default and then route add default gw 
192.168.2.1 metric 0, but the wireless connection was still slow.
Slow means, for example, that if I use my browser and go 
to www.google.com, Looking for www.google.com lasts too mach.

Any hints?
Thanks
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT: wlan0 is sssloooow

2006-11-26 Thread Sergio Polini
Richard Fish:
 On 11/26/06, Sergio Polini [EMAIL PROTECTED] wrote:
  I can just notice an astonishing difference between metrics: 25
  under Windows, 2000 (!) under Linux.

 The absolute value of an interface metric is meaningless, they only
 matter in relation to other interface metrics active at the time.
 They are used to decide between interfaces when a host can be
 reached through more than one interface.  So for example, if you
 have a dialup connection as well as broadband, you would want the
 broadband connection to have a lower metric than the dialup so that
 it is the 'preferred' interface.

Thanks for your answer.
My pings (perhaps all DNS lookups) are slow even if connect my PC to 
both the wireless router and the cable, i.e. when there are both 
a fast (metric 0) and a slow (metric 2000) interface.

 What do ifconfig wlan and iwconfig wlan report for the fast and
 slow states?

Fast (i.e. normal ;-) state happens only when net.wlan0 is stopped.
When I start net.wlan0:

sergio ~ # ifconfig wlan0
wlan0  Link encap:Ethernet  HWaddr 00:14:A5:E1:D2:B9
   inet addr:192.168.2.2  Bcast:192.168.2.255 Mask:255.255.255.0
   UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
   RX packets:16 errors:0 dropped:0 overruns:0 frame:0
   TX packets:93 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:1000
   RX bytes:2742 (2.6 Kb)  TX bytes:10200 (9.9 Kb)
   Interrupt:20 Memory:c300-c3004000

sergio ~ # iwconfig wlan0
wlan0  IEEE 802.11g  ESSID:mynet
Mode:Managed  Frequency:2.462 GHz  Access Point: 00:17:3F:0C:19:12
Bit Rate=54 Mb/s   Tx-Power:32 dBm
RTS thr:off   Fragment thr:off
Encryption key:------XX
Security mode:restricted
Power Management:off
Link Quality:100/100  Signal level:-48 dBm  Noise level:-256 dBm
Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
Tx excessive retries:1  Invalid misc:168   Missed beacon:0

 And the host that you are pinging, is a remote 
 internet host or something local (like 192.168.2.1)?

Remote internet hosts (f.i., google) and local.
BTW, I can't ping 192.168.2.1, i.e. the wireless router. But I can 
under Windows!

Thanks
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] wlan0/ndiswrapper failing after gcc-4 upgrade (and dual Windows boot)

2006-11-25 Thread Sergio Polini
Mark Knecht:
Unless I'm mistaken, that module is ndiswrapper which was
 emerged again after the kernel was rebuilt.

Was ndiswrapper emerged *and updated*?
My card name is Broadcom BCM4310 UART, my gcc is 4.1.1, my udev is 
087-r1. I have to use ndiswrapper 1.23 because more recent versions 
do not work.
HTH
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] undoing emerge --sync

2006-11-18 Thread Sergio Polini
Neil Bothwick:
 On Sun, 15 Oct 2006 14:00:09 +0200, Sergio Polini wrote:
  May I undo an emerge --sync?

 Only be restoring from a previously made backup or another computer
 that you haven't synced yet.

I apologize for my delay.
What have I to backup to be able to restore a previous sync?
Are /usr/portage and /etc/conf.d enough?

Thanks
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] undoing emerge --sync

2006-11-18 Thread Sergio Polini
Michael Sullivan:
 On Sat, 2006-11-18 at 19:57 +0100, Sergio Polini wrote:
  Neil Bothwick:
   On Sun, 15 Oct 2006 14:00:09 +0200, Sergio Polini wrote:
May I undo an emerge --sync?
  
   Only be restoring from a previously made backup or another
   computer that you haven't synced yet.
 
  I apologize for my delay.
  What have I to backup to be able to restore a previous sync?
  Are /usr/portage and /etc/conf.d enough?
 
  Thanks
  Sergio

 Theoretically, couldn't you just go to a Gentoo mirror and download
 a portage snapshot from before you ran emerge --sync?

Yes, but I'ld like to return to a tested sync.
Perhaps I've been too concise ;)
I have two Gentoo systems, stable and testing. I'ld like to test a 
new sync in the testing system, and:
a) if it does not work well to me, restore the previous working sync 
from the stable system, and wait for a new sync;
b) if it works well, copy the working sync to the stable system.
This is why I'm wondering if copying /usr/portage and /etc/conf.d 
would be enough.

Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] WinXP under VMWare: no sound

2006-11-10 Thread Sergio Polini
Richard Fish:
 Unfortunately, even though I can get all the right libraries to
 load, I cannot get sound to work reliably on amd64.  Neither aoss
 nor vmdsp seem to work for me, either as a user or root.

That's very strange, because...

 However, I think I know how to make aoss work as a normal user on
 your system.  You should just need to:

 # chmod 4755 /emul/linux/x86/usr/lib/libaoss.so.0.0.0
 # ln -s /emul/linux/x86/usr/lib/libaoss.so /usr/lib32/libaoss.so

 The first command is just to make sure the library is setuid.

YOU ARE GREAT!!! 
I have too Gentoos, stable and testing.  I had only vmplayer 
installed in stable (the virtual machine is in another partition).
So I have:
a) emerged alsa-oss
b) emerged emul-linux-x86-soundlibs
c) chmoded and ln -sed as you have advised
and sound is working now both as root and as normal user!
Thanks!

If you have some spare time, I'ld like to understand why the symbolic 
link in /usr/lib32 is needed (and why your solution works on my 
system and not on yours).
But don't bother. I can imagine that you have something better to 
do ;-)

Tanks again
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] WinXP under VMWare: no sound

2006-11-08 Thread Sergio Polini
Dear Bo, Hans-Werner, and Richard,
I wish at first to thank you for your help.
Then, I think that a small recap could be useful.
Please, select a fixed font ;-)

a) vmwarearts (in vmware-dsp):

userlibvmdsp.so  result
--  ---  ---
normal  chmod -s no preload
rootchmod -s no /dev/dsp
normal  chmod +s no preload
rootchmod +s no /dev/dsp

b) aoss32 (in alsa-oss):

useremul/.../libaoss.so.0.0.0  result
--  -  --
normal  chmod -s   no preload
rootchmod -s   no preload
normal  chmod +s   no preload
rootchmod +s   no preload

c) aoss (in alsa-oss):

userlibaoss.so.0.0.0  result
--    --
normal  chmod -s  no preload
rootchmod -s  sound works
normal  chmod +s  no preload
rootchmod +s  sound works

As to:
Richard:
 Sergio,  try doing chmod +s on /emul/linux/x86/usr/lib/libaoss.so
There is no such file!

Now:

i) I can't understand why root can't open /dev/dsp when running 
vmwarearts. I can only guess that aoss works better ;-)

ii) suid and sgid bits look insignificant (!)

Hans-Werner Hilse:
 You answered my last question about why you are mocking with chmod
 +s with something along the lines of I felt like I had to. What
 makes you think you have to? Why should those libraries be set with
 setuid?

Sorry, my answer was evasive because I've googled a lot and can't 
remember where I've read that I had to ;-)
However, I also tried installing vmwaredsp-1.3 manually, and in the 
install script, runme.sh, there is the line:
install -c -m  64/libvmdsp.so $LIB64/libvmdsp.so
(but even the vmwarearts in this package does not work).
Richard's answer:

 This is necessary because vmware is a setuid executable,
 and you cannot use LD_PRELOAD with setuid executables
 unless those libraries are *also* setuid.

look very interesting, because, as far as I can understand

testing ~ # cd /opt/vmware/workstation/bin
testing bin # l
total 1872
-rwxr-xr-x 1 root root12292 Nov  1 00:20 vm-support*
-rwxr-xr-x 1 root root 6160 Nov  1 00:20 vmnet-bridge*
-rwxr-xr-x 1 root root   110872 Nov  1 00:20 vmnet-dhcpd*
-rwxr-xr-x 1 root root   118884 Nov  1 00:20 vmnet-natd*
-rwxr-xr-x 1 root root 5192 Nov  1 00:20 vmnet-netifup*
-rwxr-xr-x 1 root root 8140 Nov  1 00:20 vmnet-sniffer*
-rwxr-xr-x 1 root root 4574 Nov  1 00:20 vmplayer*
-rwxr-xr-x 1 root root 4946 Nov  1 00:20 vmrun*
-rwxr-xr-x 1 root root 4570 Nov  1 00:20 vmware*
-rwxr-xr-x 1 root root   268975 Nov  1 00:20 vmware-config.pl*
-rwxr-xr-x 1 root root   486368 Nov  1 00:20 vmware-loop*
-rwxr-xr-x 1 root root25488 Nov  1 00:20 vmware-mount.pl*
-rws--x--- 1 root vmware  10852 Nov  1 00:20 vmware-ping*
-rwxr-xr-x 1 root root90467 Nov  1 00:20 vmware-uninstall.pl*
-rwxr-xr-x 1 root root   694312 Nov  1 00:20 vmware-vdiskmanager*
testing bin #

my vmware *is not* setuid!
However, nothing changes if I do chmod +s on libaoss *and* vmware: 
sound only works when I am root, otherwise libaoss is not preloaded.

BTW, I've installed Ubunto 6.10 and looked at what happened.
Well vmwareesd... works!!!
Linux kernel: 2.6.17 i686
glibc: 2.4
libvmdsp.so: setuid (!)

I am in the dark. Also because googling around I can see that a 
similar preload problem occurs rather often in several different 
cases, but there is seldom a solution

Eventually I'll run vmware as root when I'll need sound ;-)

Thanks again
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] WinXP under VMWare: no sound

2006-11-08 Thread Sergio Polini
Me:
 As to:

 Richard:
  Sergio,  try doing chmod +s on /emul/linux/x86/usr/lib/libaoss.so

 There is no such file!

Sorry, Richard. I was looking in /emul/linux/x86/lib ;-))
However the results are those reported in my previous message.

Sergio

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] WinXP under VMWare: no sound

2006-11-08 Thread Sergio Polini
Richard Fish:
 On 11/8/06, Sergio Polini [EMAIL PROTECTED] wrote:
   Sergio,  try doing chmod +s on
   /emul/linux/x86/usr/lib/libaoss.so
 
  There is no such file!

 Hold up.  Previously you posted:
 [cut]
 If this file doesn't exist,

That file esists. I was looking in /emul/linux/x86/lib. ;-)

 If instead you have emul/.../libaoss.so.0.0.0, then change
 the LD_PRELOAD in aoss32 to:

 LD_PRELOAD=${exec_prefix}/lib/libaoss.so.0.0.0${LD_PRELOAD:+:$LD_PR
ELOAD}

 I would also add an echo for debugging after that:

 echo running with LD_PRELOAD=$LD_PRELOAD

If I write:

LD_PRELOAD=${exec_prefix}/lib/libaoss.so.0.0.0${LD_PRELOAD:+:
$LD_PRELOAD}   exec $@
echo running with LD_PRELOAD=$LD_PRELOAD

I get:
[sp ~]$ aoss32 vmware
ERROR: ld.so: object '/emul/linux/x86/usr/lib/libaoss.so.0.0.0' from 
LD_PRELOAD cannot be preloaded: ignored.
(five times)

and the echo statement is not executed.
If I write:
  LD_PRELOAD=${exec_prefix}/lib/libaoss.so.0.0.0${LD_PRELOAD:+:
$LD_PRELOAD}  echo running with LD_PRELOAD=$LD_PRELOAD  exec $@

I get:
[sp ~]$ aoss32 vmware
running with LD_PRELOAD=

?
However: no preloading error message, but sound does not work.
BTW: are you sure sure that one can still set LD_PRELOAD to an 
*absolute* path? 

 Are you actually logged into KDE as root, or as your normal user?

Always as a normal user. I open a new root shell in Konsole when I 
wish to be root.

 What happens when you run artsplay
 /usr/kde/3.5/share/sounds/KDE_Startup_1.ogg as root?  under your
 user account?

I can hear the sound.

 This is a shell script (your clue is the size).  The actual binary
 that executes the virtual machine (and this needs to produce sound)
 is in /opt/vmware/workstation/lib/bin, and is named vmware-vmx.  It
 is almost certainly setuid.

Right. I apologize for my foolishness/laziness. Let me say that I was 
a bit tired yesterday evening ;-)

 I really don't understand why aoss would only work as root.  I
 suspect a path or environment issue here, possibly a different
 library is actually being loaded.  I suspect this has more to do
 with the actual path to the library being loaded as root versus
 your user account.

On Marc 27th, 2005 you wrote in a VMWare Forum:
 Ok, I got it figured out. It seems that in response to GLSA
 200408-16, Gentoo made a patch that in addition to fixing the
 LD_DEBUG vulnerability, moved the cleansing of the environment
 to before the values were saved. This part of the change is not in
 the official glibc CVS source, and the patch is not applied for
 glibc-2.3.4.20050125-r1 (currently marked for testing...).
 So Gentoo users will need to upgrade their glibc to at least
 2.3.4.20050125 to use LD_PRELOAD with setuid binaries.   

Are you sure that that has not been reverted in glibc 2.4-r3?

 I'm going to try installing workstation on my amd64 desktop and see
 what I get.

Thanks!!!

Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] WinXP under VMWare: no sound

2006-11-07 Thread Sergio Polini
Richard Fish:
 Sorry for the late reply...I've been away for a couple of days.

That's very kind of you :-)

 Hmm, looks like building this is broken on AMD64 arches...too bad.

I'll check the patch submitted by Bo.

  testing ~ # ldd /usr/lib/libvmdsp.so
  ldd: warning: you do not have execution permission for
  `/usr/lib/libvmdsp.so'
  libpthread.so.0 = /lib/libpthread.so.0
  (0x2b944790f000) libdl.so.2 = /lib/libdl.so.2
  (0x2b9447a25000) libc.so.6 = /lib/libc.so.6
  (0x2b9447b29000) /lib64/ld-linux-x86-64.so.2
  (0x4000)

 Ah, libvmdsp.so is a 64-bit library.  I am pretty sure that vmware
 is still distributed as a 32-bit application, so yeah, preloading
 64-bit libraries won't work.

Sorry, but... are you sure that a 32-vs-64 bit compatibility problem 
can vanish when I run aoss vmware as root?
Sound works when I am root...

Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] WinXP under VMWare: no sound

2006-11-07 Thread Sergio Polini
Bo Ørsted Andresen:
  http://bugs.gentoo.org/show_bug.cgi?id=150495

 I've attached a patch for the ebuild on the bug that although not
 excactly optimal it works for me.

Thanks! Now I've just to understand how to emerge an ebuild with a new 
patch ;-)))

Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] WinXP under VMWare: no sound

2006-11-07 Thread Sergio Polini
Sergio Polini:
 Bo Ørsted Andresen:
   http://bugs.gentoo.org/show_bug.cgi?id=150495
 
  I've attached a patch for the ebuild on the bug that although not
  excactly optimal it works for me.

 Thanks! Now I've just to understand how to emerge an ebuild with a
 new patch ;-)))

Well, it was easy, but:
a) when I run vmwarearts as a normal user, I get:
vmwarearts ERROR: ld.so: object 'libvmdsp.so' from LD_PRELOAD cannot 
be preloaded: ignored.
and sound doesn't work;
b) when I run vmwarearts as root, I get a vmware messate Failed to 
open sound device /dev/dsp: No such device Virtual device sound will 
start disconnected.;
c) when I run aoss vmware as a normal user, I get:
ERROR: ld.so: object 'libaoss.so' from LD_PRELOAD cannot be preloaded: 
ignored.
d) when I run aoss vmware as root sound works!!!

I still think that there is something about permissions somewhere.

Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] WinXP under VMWare: no sound

2006-11-07 Thread Sergio Polini
Richard Fish:
 Ah, libvmdsp.so is a 64-bit library.  I am pretty sure that vmware
 is still distributed as a 32-bit application, so yeah, preloading
 64-bit libraries won't work.

 Try changing the vmwarearts script to preload the library from
 /usr/lib32 instead of /usr/lib.

I've tried aoss32, i.e.:

#!/bin/sh

# A simple script to facilitate the use of the OSS compatibility 
library.
# Usage:
#   aoss command command options and arguments

if [ -d /proc/asound ]; then
  prefix=/emul/linux/x86/usr
  exec_prefix=${prefix}
  LD_PRELOAD=${exec_prefix}/lib/libaoss.so${LD_PRELOAD:+:$LD_PRELOAD} 
exec $@
else
  exec $@
fi
exit 1

But I've got (the same as root):

[sp ~]$ ERROR: ld.so: object '/emul/linux/x86/usr/lib/libaoss.so' from 
LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/emul/linux/x86/usr/lib/libaoss.so' from 
LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/emul/linux/x86/usr/lib/libaoss.so' from 
LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/emul/linux/x86/usr/lib/libaoss.so' from 
LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/emul/linux/x86/usr/lib/libaoss.so' from 
LD_PRELOAD cannot be preloaded: ignored.

Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] WinXP under VMWare: no sound

2006-11-07 Thread Sergio Polini
Richard Fish:
  [sp ~]$ ERROR: ld.so: object '/emul/linux/x86/usr/lib/libaoss.so'
  from LD_PRELOAD cannot be preloaded: ignored.

 What are the permissions on this?

a)
ls -l /emul/linux/x86/usr/lib/libaoss.so.0.0.0 - -rwxr-xr-x

[sp ~]$ aoss32 vmware 
[1] 5409
[sp ~]$ ERROR: ld.so: object '/emul/linux/x86/usr/lib/libaoss.so' from 
LD_PRELOAD cannot be preloaded: ignored.
(five times)

testing ~ # aoss32 vmware 
[1] 5439
testing lib # ERROR: ld.so: 
object '/emul/linux/x86/usr/lib/libaoss.so' from LD_PRELOAD cannot be 
preloaded: ignored.
(five times)

b)
chmod +s libaoss.so.0.0.0
ls -l /emul/linux/x86/usr/lib/libaoss.so.0.0.0 - -rwsr-sr-x

[sp ~]$ aoss32 vmware 
[1] 5462
[sp ~]$ ERROR: ld.so: object '/emul/linux/x86/usr/lib/libaoss.so' from 
LD_PRELOAD cannot be preloaded: ignored.
(five times)

testing lib # aoss32 vmware 
[1] 5480
testing ~ # ERROR: ld.so: object '/emul/linux/x86/usr/lib/libaoss.so' 
from LD_PRELOAD cannot be preloaded: ignored.
(five times)

But:

testing ~ # aoss vmware 
[1] 5515
(sound works)

[sp ~]$ aoss vmware 
[2] 5598
[sp ~]$ ERROR: ld.so: object 'libaoss.so' from LD_PRELOAD cannot be 
preloaded: ignored.

Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] WinXP under VMWare: no sound

2006-11-06 Thread Sergio Polini
Hans-Werner Hilse:
 On Sun, 5 Nov 2006 12:55:58 +0100 Sergio Polini [EMAIL PROTECTED]

 wrote:
  Since vmware-dsp (which is ~amd64) doesn't compile, I have:
  - emerged alsa-oss
  - chmod +s /usr/lib/libaoss.so.*

 ^^^
 Why did you do that?

I did that because, as far as I have understood, I had to ;-)

  Try setting it back and then use LD_PRELOAD.

Done. Sound still not working, unless I run aoss vmware (or aoss 
wmplayer) as root.

 Your normal user account can't possibly change to another user
 (probably root in this case for /usr/lib/libaoss.*...).

I suspect that there is a glibc problem:
http://www.vmware.com/community/message.jspa?messageID=26228
Look at the posts by... Richard Fish ;-)

Sergio

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Determine kernel release of non-running kernel

2006-11-06 Thread Sergio Polini
Tim Garton:
 Anyone know how to determine the kernel release of a non-running
 kernel? Like 'uname -r' but point it at a kernel file?

$ strings kernel file | head -20

;-)
... but I don't know how to automate that.

HTH
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] WinXP under VMWare: no sound

2006-11-05 Thread Sergio Polini
Richard Fish:
 The workaround to this is to use a wrapper such as aoss or
 vmware-dsp that fakes out the application when it tries to open
 /dev/dsp and uses another audio API instead (alsa for aoss, esd or
 artsd for vmware-dsp).

Since vmware-dsp (which is ~amd64) doesn't compile, I have:
- emerged alsa-oss
- chmod +s /usr/lib/libaoss.so.*
- created a script:

#!/bin/bash
LD_PRELOAD=libaoss.so exec /opt/vmware/workstation/bin/vmware 

Now:
i) if I run the script as myself, sound doesn't work and I get
ERROR: ld.so: object 'libaoss.so' from LD_PRELOAD cannot be preloaded: 
ignored.
I get the same result if I run aoss vmware.
As to ldd /usr/lib/libaoss.so.0.0.0:
libalsatoss.so.0 = /usr/lib/libalsatoss.so.0 
(0x2b09ff97f000)
libc.so.6 = /lib/libc.so.6 (0x2b09ffa89000)
libasound.so.2 = /usr/lib/libasound.so.2 (0x2b09ffcb4000)
libm.so.6 = /lib/libm.so.6 (0x2b09ffe8b000)
libdl.so.2 = /lib/libdl.so.2 (0x2b09fffe)
libpthread.so.0 = /lib/libpthread.so.0 (0x2b0a000e4000)
/lib64/ld-linux-x86-64.so.2 (0x4000)

ii) if I run the script as root, sound works!

So, it looks like a matter of permissions, but I can't guess what I 
should change. I hope that you can ;-)

Cheers
Sergio
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] WinXP under VMWare: no sound

2006-11-04 Thread Sergio Polini
I'm experimenting with VMWare.
I've installed VMWare Workstation (5.5.1.19175-r7 ebuild) and created 
a Windows Virtual Machine.
Then I've installed VMWare Player (in another Gentoo partition), so I 
can play the VM I've created.
It works fine. Running Internet Explorer under Linux is rather 
amusing ;-) Well, I've installed VMWare because I _must_ run a few 
Windows apps (not IE ;-)) and don't like to shutdown my Gentoo box to 
do that. But that is another matter...
Now I have what I needed, but I can't help experimenting
Sound does not work. Sometimes (not always) I get a message 
like cannot connect to /dev/dsp.
Even if I do not get that message, even if the sound card looks 
connected (no red x) sound is not working.
I've found a VMWare document about a wrapper:
http://kb.vmware.com/vmtnkb/search.do?cmd=displayKCdocType=kcexternalId=1611sliceId=SAL_Public
but it looks suited for versions 3.x, 4.x, and 5.0.x.
Moreover, I've installed it and got:

[sp ~]$ vmwarearts 
[1] 5669
[sp ~]$ ERROR: ld.so: object 'libvmdsp.so' from LD_PRELOAD cannot be 
preloaded: ignored.

And no sound, of course
Any hints?
Thanks
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] WinXP under VMWare: no sound

2006-11-04 Thread Sergio Polini
Richard Fish:
 On 11/4/06, Sergio Polini [EMAIL PROTECTED] wrote:
  Sound does not work. Sometimes (not always) I get a message
  like cannot connect to /dev/dsp.
  Even if I do not get that message, even if the sound card looks
  connected (no red x) sound is not working.
  I've found a VMWare document about a wrapper:

 The problem is that /dev/dsp is the legacy OSS api, and does not
 support dmix (software mixing of audio).  Thus only one application
 can access /dev/dsp at a time unless your card supports hardware
 mixing.  So most likely, /dev/dsp is already in use by some app.

alsasound?
kde? even if I have auto-suspend enabled?

 The workaround to this is to use a wrapper such as aoss or
 vmware-dsp that fakes out the application when it tries to open
 /dev/dsp and uses another audio API instead (alsa for aoss, esd or
 artsd for vmware-dsp).

 http://kb.vmware.com/vmtnkb/search.do?cmd=displayKCdocType=kcexte
rnalId=1611sliceId=SAL_Public

  but it looks suited for versions 3.x, 4.x, and 5.0.x.
  Moreover, I've installed it and got:

 FYI, there is an ebuild available for this...emerge vmare-dsp.

Oops! ;-)
It emerged app-emulation/emul-linux-x86-soundlibs-2.3 too (Im running 
Gentoo AMD64), but then:

01:56:32 (200.82 KB/s) - `/usr/portage/distfiles/vmwaredsp-1.3.tar.gz' 
saved [52412/52412]

 * checking ebuild checksums ;-) ...
  
[ ok ]
 * checking auxfile checksums ;-) ...   
  
[ ok ]
 * checking miscfile checksums ;-) ...  
  
[ ok ]
 * checking vmwaredsp-1.3.tar.gz ;-) ...
  
[ ok ]
 Unpacking source...
 Unpacking vmwaredsp-1.3.tar.gz 
to /var/tmp/portage/vmware-dsp-1.3/work
 Source unpacked.
 Compiling source 
in /var/tmp/portage/vmware-dsp-1.3/work/vmwaredsp-1.3 ...
 * Building aRts support only.
make -C 32 default
make[1]: Entering directory 
`/var/tmp/portage/vmware-dsp-1.3/work/vmwaredsp-1.3/src/32'
cc -c -W -Wall -O2 -fPIC -o vmdsp.o ../vmdsp.c
cc -shared -Wl,-version-script=../vmdsp.map -o libvmdsp.so 
vmdsp.o  -lpthread -ldl -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: 
libvmdsp.so: undefined versioned symbol name [EMAIL PROTECTED]
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: 
failed to set dynamic section sizes: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libvmdsp.so] Error 1
rm vmdsp.o
make[1]: Leaving directory 
`/var/tmp/portage/vmware-dsp-1.3/work/vmwaredsp-1.3/src/32'
make: *** [default] Error 2

!!! ERROR: app-emulation/vmware-dsp-1.3 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  vmware-dsp-1.3.ebuild, line 58:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call 
stack if relevant.

:-(

  [sp ~]$ ERROR: ld.so: object 'libvmdsp.so' from LD_PRELOAD cannot
  be preloaded: ignored.

 What does ldd /usr/lib/libvmdsp* report?  (or whatever directory
 libvmdsp got installed to..)

From my former install (1611_fvmwaredsp-1.3.tgz):

testing ~ # ldd /usr/lib/libvmdsp.so
ldd: warning: you do not have execution permission for 
`/usr/lib/libvmdsp.so'
libpthread.so.0 = /lib/libpthread.so.0 (0x2b944790f000)
libdl.so.2 = /lib/libdl.so.2 (0x2b9447a25000)
libc.so.6 = /lib/libc.so.6 (0x2b9447b29000)
/lib64/ld-linux-x86-64.so.2 (0x4000)


 PS:The real fix for this is for VMWare to *stop* using the
 deprecated OSS API for sound, and implement real ALSA
 compatibility.  I highly recommend sending this request to them!

Sure, but first I'ld like to get sound working ;-)

Thanks
Sergio

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Grub causing kernel panic? - ThinkPad T40 - new install

2006-11-03 Thread Sergio Polini
Greg Morin:
 Device  Boot   Size   System   Filesystem   Mount point
    = =   =
 /dev/hda1   *   32MLinux   ext2  /boot
 /dev/hda2  3GLinux swap  none none
 /dev/hda3 ~71GLinuxext3  / 

My layout is similar:
/dev/sda5 : /boot
/dev/sda6: /

grub.conf
  [cut]
  title=Gentoo Linux 2.6.17-r8
  root (hd0,0)
  kernel /boot/kernel-2.6.17-gentoo-r8 root=/dev/hda3

My grub.conf:
title=Gentoo 2.6.17-r8 Stable (sda6)
root (hd0,4)
kernel /vmlinuz-2.6.17-gentoo-r8 root=/dev/sda6 doscsi

 Any ideas?
Delete /boot from the kernel line.

HTH
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] xorg can't work with hotplugged mice?

2006-10-23 Thread Sergio Polini
Mick:
 My touchpad does not seem to have a problem:
 =
 Section InputDevice
 Identifier  Mouse0
 Driver  synaptics
 Option  Protocol SynPS/2
 Option  InputFashion Mouse
 Option  Device /dev/input/mice
 Option   Name SynPS/2 Synaptics TouchPad
 Option   SHMConfig on
 Option   Vendor 0002
 Option  ZAxisMapping  4 5
 Option  Emulate3Buttons   True
 Option  Buttons   3
 EndSection
 =

 On the other hand I have not tried (yet) a USB mouse to see if/how
 it will be picked up.  No problem with PS/2 mice though.  They are
 detected as soon as I plug them in.

No problem with my touchpad (HP Pavilion dv200z) and my Logitech USB 
mouse (even if I plug and unplug it).

$ cat /proc/bus/input/devices
...
I: Bus=0011 Vendor=0002 Product=0007 Version=
N: Name=SynPS/2 Synaptics TouchPad
P: Phys=isa0060/serio4/input0
S: Sysfs=/class/input/input3
H: Handlers=mouse0 event2
B: EV=b
B: KEY=6420 7 0 0 0 0
B: ABS=1103

I: Bus=0003 Vendor=046d Product=c016 Version=0340
N: Name=Logitech Optical USB Mouse
P: Phys=usb-:00:0b.0-6/input0
S: Sysfs=/class/input/input5
H: Handlers=mouse1 event3
B: EV=7
B: KEY=7 0 0 0 0
B: REL=103

$ less /etc/X11/xorg.conf
..
Section InputDevice
Identifier  Mouse1
Driver  mouse
Option Protocolauto
Option Device  /dev/input/mice
Option ZAxisMapping   4 5 6 7
EndSection

Section InputDevice
   Identifier   TouchPad
   Driver   synaptics
   Option   Device/dev/input/mouse0
   Option   Protocol  auto-dev
   Option   LeftEdge  1700
   Option   RightEdge 5300
   Option   TopEdge   1700
   Option   BottomEdge4200
   Option   FingerLow 25
   Option   FingerHigh30
   Option   MaxTapTime180
   Option   MaxTapMove220
   Option   VertScrollDelta 100
   Option   MinSpeed  0.09
   Option   MaxSpeed  0.18
   Option   AccelFactor   0.0015
   Option   SHMConfig on
EndSection

Cheers,
Sergio
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] undoing emerge --sync

2006-10-15 Thread Sergio Polini
May I undo an emerge --sync?
Thanks
Sergio

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] undoing emerge --sync

2006-10-15 Thread Sergio Polini
Mick:
 On Sunday 15 October 2006 13:00, Sergio Polini wrote:
  May I undo an emerge --sync?
  Thanks
  Sergio

 No, but wait for a while for the mirrors to refresh themselves and
 resync later.  Hopefully, what ever package/version you couldn't
 download would be updated for synch-ing by then.

 Of course, I'm only liberally interpreting your question to deduce
 what the problem might be, because you didn't tell us.

You are right ;-)
My problems are:
a) my goal is a reasonably updated working system, not one in the 
latest fashion;
b) I had got to two RUWSs, an old Athlon xp (with riva TNT 2) and an 
HP dv5000z (Turion, ATI Radeon Xpress 200M);
-- updating my Athlon system was a mess *before* the new 
nvidia-legacy-drivers package, so it was worth updating the portage 
tree, but after the last emerge --sync many packages are blocked 
becasue they want a non-existent media-video/nvidia-glx (?) required 
(?) by an already installed and working qt-3.3.6-r1;
-- my laptop was perfect before modular X, then I ran into inadeguate 
support (by ATI and Xorg) of my video card.

I'm thinking about a solution:
a) a stable root partition, including all directories used by 
portage (/etc, /usr, /var, and..? eventually all but home);
b) a testing root partition;
c) updating the portage tree in the testing partion, always emerging 
with the --buildpkg option;
d) updating the portage tree in the stable partition, and emerging the 
tbz2files created on the testing partition. only when the testing 
partition looks stable.

Any comments?
Thanks
Sergio
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] DRI lost... solved ;-)

2006-10-08 Thread Sergio Polini
I wish to thank Benno, Jerry and Richard for their help.
However, I've found another solution ;-)

I have presented my daughter with my HP dv5000z, and so I've got rid 
of that irksome and ill-supported ATI Radeon XPRESS 200M.
I'm going to purchase a new HP dv2000 (Turion X2, Geforce 6150).
;-)

Thanks a lot!
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] DRI lost after modular X and gcc-4.1.1

2006-09-25 Thread Sergio Polini
Jerry:
 Which kernel?

2.6.12-r10

(2.6.18 is masked ;-)

 Here, running 2.6.18, I compile the kernel drm, 
 agpgart and ati-agp. I then emerge x11-drm. In
 /etc/modules.autoload.d/kernel-2.6 I add; agpgart, ati-agp, drm
 then radeon. In that specific order. Also, run eselect opengl and
 be sure xorg-x11 is selected.

I can't comile agpgart as a module, nor get ati-agp compiled.
When I make menuconfig:

--- /dev/agpgart (AGP Support)  [I can't select it]
M   Intel 440LX/BX/GX, I8xx and E7x05 chipset support
M Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
M   ATI Radeon

after make, in /usr/src/linux/drivers/char/drm:
[root] ls -l ati*
-rw-r--r-- 1 root root 14061 25 feb  2006 ati-agp.c
[root] ls -l *.o
-rw-r--r-- 1 root root 49283 25 set 08:36 agpgart.o
-rw-r--r-- 1 root root 15728 25 set 08:36 amd64-agp.o
-rw-r--r-- 1 root root 12039 25 set 08:36 backend.o
-rw-r--r-- 1 root root 62203 25 set 08:36 built-in.o
-rw-r--r-- 1 root root 10944 25 set 08:36 frontend.o
-rw-r--r-- 1 root root 26452 25 set 08:36 generic.o
-rw-r--r-- 1 root root  7816 25 set 08:42 intel-agp.mod.o
-rw-r--r-- 1 root root 39056 25 set 08:36 intel-agp.o
-rw-r--r-- 1 root root  5704 25 set 08:36 isoch.o

How did you compile ati-agp?
Thanks
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] DRI lost after modular X and gcc-4.1.1

2006-09-25 Thread Sergio Polini
Sorry, I can't understand...

Richard Fish:
 If you want DRI, you have two choices:

 1. the open source radeon driver, with the in-kernel DRM driver. 
 For this you need to turn on CONFIG_DRM and CONFIG_DRM_RADEON in
 your kernel configuration.  This doesn't work for all chips yet
 AFAIK.

 2. the proprietary ATI drivers.  For this you don't change the
 kernel configuration, but add fglrx to VIDEO_CARDS, and change
 your xorg.conf driver from radeon to fglrx.

But:
i) as to http://gentoo-wiki.com/HOWTO_DRI_with_ATi_Open-Source_Drivers 
there is a third choise: CONFIG_DRM=n and emerge x11-drm;
ii) in http://www.ati.com/products/catalyst/linux.html:
Q7: What X-Windows versions are supported in this driver?
A7: Driver packages are available for XFree86 versions 4.1, 4.2, and 
4.3, as well as X.Org 6.8.
So they shouldn't work with Xorg 7.* (actually I had DRI working with 
Xorg 6.8)

Jerry McBride:
 I compile the kernel drm, agpgart and 
 ati-agp. I then emerge x11-drm.

But the kernel drm and x11-drm look as they are not to work together.

  me:
  How did you compile ati-agp?

 I selected it and then compiled them with make modules.

But I just can select ATI radeon if I select kernel drm:

M Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
M   ATI Radeon

I do net get ati-agp compiled, and ... make modules should not be 
needed for kernels 2.6.* ;-)

I'm a bit confused.

Sergio
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] DRI lost after modular X and gcc-4.1.1

2006-09-24 Thread Sergio Polini
I need your help ;-)
I've switched to modular X and gcc-4.1.1, and I've lost DRI :-(
My configuration:

HP dv5078EA (laptop)
Gentoo AMD64
Kernel 2.6.12-r10

in /usr/src/linux/.config:
  CONFIG_MTRR=y
  CONFIG_AGP=y
  CONFIG_AGP_AMD64=y
  CONFIG_AGP_INTEL=m
  # CONFIG_DRM is not set

output of lspci | grep VGA:
  01:05.0 VGA compatible controller: ATI Technologies Inc ATI Radeon 
XPRESS 200M 5955 (PCIE)

output of lspci | grep AGP:
  none

sys-apps/portage 2.1.1
media-libs/mesa 6.4.2-r2
x11-base/xorg-x11 7.0-r1
x11-base/x11--drm 20060608

in /etc/make.conf:
VIDEO_CARDS=vga radeon

in /etc/X11/xorg.conf:
  Section Module
Load  dri
Load  dbe
SubSection extmod
Option  omit xfree86-dga
EndSubSection
Load  type1
Load  freetype
Load  synaptics
Load  glx
  EndSection
  Section Device
Identifier  ATI Graphics Adapter
Driver  radeon
Option  AGPFastWrite 1
  EndSection

output of eselect opengl show:
  xorg-x11

output of glxinfo | grep direct:
  direct rendering: No 
  OpenGL renderer string: Mesa GLX Indirect

in /var/log/Xorg.0.log:
  (II) LoadModule: dri
  (II) Loading /usr/lib64/xorg/modules/extensions/libdri.so
  ...
  (II) Loading sub module drm
  (II) LoadModule: drm
  (II) Loading /usr/lib64/xorg/modules/linux/libdrm.so
  ...
  (II) Loading sub module radeon
  (II) LoadModule: radeon
  (II) Reloading /usr/lib64/xorg/modules/drivers/radeon_drv.so
  ...
  (--) RADEON(0): Chipset: ATI Radeon XPRESS 200M 5955 (PCIE) ChipID 
= 0x5955)
  (--) RADEON(0): Linear framebuffer at 0xc000
  (II) RADEON(0): PCI card detected 
  drmOpenDevice: node name is /dev/dri/card0
  drmOpenDevice: open result is -1, (No such device or address)
  drmOpenDevice: open result is -1, (No such device or address)
  drmOpenDevice: Open failed
  drmOpenByBusid: Searching for BusID pci::01:05.0
  drmOpenDevice: node name is /dev/dri/card0
  drmOpenDevice: open result is -1, (No such device)
  drmOpenDevice: open result is -1, (No such device)
  drmOpenDevice: Open failed
  drmOpenByBusid: drmOpenMinor returns -1023
  drmOpenDevice: node name is /dev/dri/card1
  drmOpenDevice: open result is -1, (No such device)
  drmOpenDevice: open result is -1, (No such device)
  drmOpenDevice: Open failed
  ...
  drmOpenDevice: node name is /dev/dri/card14
  drmOpenDevice: open result is -1, (No such device)
  drmOpenDevice: open result is -1, (No such device)
  drmOpenDevice: Open failed
  (EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM
  [dri] Disabling DRI.

output of lsmod, first three lines;
  Module  Size  Used by
  radeon123808  0
  drm   101544  1 radeon

output of ls -al /dev/dri:
  total 0

Docs checked:
http://www.gentoo.org/proj/en/desktop/x/x11/modular-x-howto.xml
http://www.gentoo.org/doc/en/gcc-upgrading.xml
http://gentoo-wiki.com/HOWTO_DRI_with_ATi_Open-Source_Drivers

Any hints?

Thanks
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Portage 2.1 weirdness

2006-06-16 Thread Sergio Polini
Bo Ørsted Andresen:
 Look at the first section at the GWN from the 16. of January [1].
 Also this (autouse) has recently been added to the release notes of
 portage 2.1 [2] (they forgot until now).

Thanks! I didn't subscribe to the GWN. My fault ;-)

Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Portage 2.1 weirdness

2006-06-15 Thread Sergio Polini
Mick:
 As I understand it (I'm sure this has been covered in GWN, forums,
 etc.) USE flags which had been set  automatically by certain
 packages are no longer valid universally.  Therefore, either add
 those USE flags missing (e.g. ldap  mozilla for OOo) in your
 /etc/make.conf, or if you only want them for a particular package
 add them in /etc/portage/package.use.

I'm sure (I'ld like to be sure) that this change is documented 
somewhere, but I can't find where.
I need documentation because I'm an advanced user of some packages 
(f.i., tetex), but a naive user of other ones (f.i., xine). So I 
can't understand why and how I should re-emerge xine because of:

[ebuild   R   ] media-video/xine-ui-0.99.4-r5  USE=X ncurses nls 
readline -aalib -curl* -libcaca -lirc -vdr -xinerama 0 kB

Any hints?

Thanks
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] flash drive mounting

2006-05-16 Thread Sergio Polini
dirk dil:

 I'm having trouble mounting a jetflash 110 onto usb.

Please, check http://www.gentoo.org/doc/en/usb-guide.xml and your flash
drive will work well ;-)

Sergio







___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Sierra Wireless AirCard 850

2006-05-03 Thread Sergio Polini
I'ld like to know how to get the card working ;-)
That is:
-- minimal kernel version;
-- kernel config options;
-- auxiliary packages (pcmcia-cs, pcpcia-cs-cis, pcmciautils, 
etc.).

Thanks
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] I'm going crazy ;-)

2006-04-29 Thread Sergio Polini
Qian Qiao:
 That's exactly the reason we still use mysql 4.0 in our production
 environment.

 The mysql charset thingy is basically a whole load of mess.

 A brief search on mysql's bug database shows some of the encoding
 bugs and unicode key length not correctly calculated are still not
 properly fixed yet they pushed their production version to 5.0.

Thanks.
I've unmerged mysql 4.1.14, and emerged 4.0.25.
Now I'm revdep-rebuilding.
This is why I love Gentoo ;-)

Sergio
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] I'm going crazy ;-)

2006-04-28 Thread Sergio Polini
What's happening about locales/languages?
I've tried to install PHP-Nuke and Xoops, but one of them (I don't 
remember which one, now ;-)) doesn't like utf8 encoding, because it 
creates too long primary keys for MySQL.
So I remerged MySQL and replaced utf8 with latin1 
in /etc/mysql/my.conf.
I've emerged Mediawiki (thanks Ric!) with the math USE flag, but when 
I try to save a page containing a formula I get the error message:

1267: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and 
(utf8_general_ci,COERCIBLE) for operation '=' (localhost)

Yes! My wikidb database was created with latin1_swedish_ci 
collation!!!
And phpmyadmin says to me that MySQL charset is utf8!!!

Who has set those collation values??? I didn't...

Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Mediawiki

2006-04-24 Thread Sergio Polini
Ric de France:
 Hi Sergio,

 On 4/22/06, Sergio Polini [EMAIL PROTECTED] wrote:
  Then I got the error Sorry! The wiki is experiencing some
  technical difficulties, and cannot contact the database server.
  As far I can understand, this happens because of the new password
  algorithm in mysql 4.1+, so I've remerged dev-lang/php with the
  mysqli flag, but I still get the same error.

 From what I remember, I think I got something similar to you...
 what I think I did was:
 a) Start up mysql - something like: /etc/init.d/mysql start
 b) Check to see if the encryption level you're using is correct -
 Mediawiki was written in an older version of PHP, and does not use
 the same authentication as the latest and greatest of mysql. In
 /etc/mysql/my.cnf add the line old_passwords to the file in the
 [mysqld] section... it seemed to make it work...
 c) Check:
 http://meta.wikimedia.org/wiki/Help:Running_MediaWiki_on_Gentoo_Lin
ux - this page is a little out of date. If you use PHP5, you don't
 need mod_php (well I didn't)...

Thanks! As soon as possibile, I'll give Mediawiki another try ;-)

Sergio


-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Mediawiki

2006-04-21 Thread Sergio Polini
I can't install Mediawiki 1.4.15.
I've installed:
a) apache 2.0.55-r1
b) dev-lang/php 5.1.2 (current flags in /etc/portage/package.use: dba 
gd -gd-external pcre mysql mysqli session)
c) mysql 4.1.14-r1

I got the error Specified key was too long; max key length is 1000 
bytes when creating the categorylinks table, so I've esecuted
ALTER DATABASE wikidb DEFAULT CHARACTER SET latin1 COLLATE 
latin1_general_ci.

Then I got the error Sorry! The wiki is experiencing some technical 
difficulties, and cannot contact the database server.
As far I can understand, this happens because of the new password 
algorithm in mysql 4.1+, so I've remerged dev-lang/php with the 
mysqli flag, but I still get the same error.

Does anybody know how to get mediawiki installed?

Thanks
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Dependency info is missing! Run /sbin/depscan.sh

2006-04-10 Thread Sergio Polini
Daevid Vincent:
 * Dependancy info is missing! Please run
 *   #/sbin/depscan.sh
 * to fix this.

 Well, of course I do run that script and it does absolutely
 nothing. No output. No anything.

I'ld try remerging baselayout.

HTH
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Dependency info is missing! Run /sbin/depscan.sh

2006-04-10 Thread Sergio Polini
Daevid Vincent:
 How can I do that when I don't have networking?! :(

  -Original Message-
  From: Sergio Polini [mailto:[EMAIL PROTECTED]
  Sent: Monday, April 10, 2006 12:32 PM
  To: gentoo-user@lists.gentoo.org
  Subject: Re: [gentoo-user] Dependency info is missing! Run
  /sbin/depscan.sh
 
  Daevid Vincent:
   * Dependancy info is missing! Please run
   *   #/sbin/depscan.sh
   * to fix this.
  
   Well, of course I do run that script and it does absolutely
   nothing. No output. No anything.
 
  I'ld try remerging baselayout.

Chek Richard Fish's advice.
However, you surely can remerge what you have alreary emerged once ;-)
You do not clean /usr/portage/distfiles. Do you?
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: problems with ifplugd

2006-04-03 Thread Sergio Polini
Neil Bothwick:
 On Sun, 02 Apr 2006 20:47:18 +0200, Sven Köhler wrote:
  I would rather like, if ifplugd would automatically do the
  ifconfig up so that no configuration tweaks are needed.
 
  Of course, i also got to put the interface in the up state on
  boot, because i don't want to put net.eth0 in the
  default-runlevel for the case where there is no cable plugged in
  ...

 That's what you're doing wrong.

Well... what is wrong?
I think that putting the interface in the up state on boot is wrong, 
but perhaps removing net.eth0 from the default runlevel is not, even 
if there is a cable plugged in.
I mean that net.eth0 is executed by /etc/iflugd/ifplugd.action.
At least, this is how my laptop is working ;-)
Is there anything wrong with this setting?

Sergio

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] KDE desktop icons

2006-03-27 Thread Sergio Polini
[EMAIL PROTECTED]:
 I am using KDE 3.4.3 Gentoo amd64.
 Almost every time I login the icons of the desktop moved and mixed.
 I tried checking every possible options (KDE Comtrol Center), with
 no results. Any hints.

Try checking right-button-mouse-click / Icons / Align to grid.

Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Init sequence

2006-03-23 Thread Sergio Polini
Ryan Tandy:
 Try calling your favorite rc-script with 'help' as the argument (for
 example, /etc/init.d/net.eth0 help).  This gives a fairly detailed
 description of what you're asking.

Neil Bothwick:
 Run any init script with help instead of start/stop and you'll see
 a fairly comprehensive explanation.

Yes, at least I can understand what net means.
Thanks!

Sergio
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Init sequence

2006-03-22 Thread Sergio Polini
I'ld like to know how the sequence of init scripts is set up.
There are such functions as after() and before() (f.i., in net.lo), 
and commands like before, need, after in depend() functions (f.i., in 
cupsd).
I'ld like to understand:
- what's the difference between after/before commands and functions;
- where/how the commands' arguments (f.i., net in use net, nfs in 
before nfs, etc.) are defined.
Moreover, I'd like to know if it's possible to verify the actual 
sequence of the init scripts. I can look at the commands that a make 
command would execute but do not execute them, or at the problems 
reported by fsck avoiding to repair them, by the -n option.
Could I check an init sequence in a similar way?
Thanks
Sergio

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Init sequence

2006-03-22 Thread Sergio Polini
Bo Andresen:
 On Wednesday 22 March 2006 20:26, Sergio Polini wrote:
  I'ld like to know how the sequence of init scripts is set up.

 Did you look in the Gentoo handbook?
 http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2chap=
4

 If after reading that you still have unanswered questions then ask
 again.

I had read that page (perhaps I should have said that I had ;-), but:
- before() and after() functions are not mentioned (I can guess that 
they are normal functions defined only in net.*);
- the arguments to after and before seem service names (f.i., but 
want your service to be started before (or after) another service), 
but... what kind of service is net? Is it net.lo, net.eth?, 
netmount? There is no net service... 

I'm using a notebook (HP dv5078) and an all-in-one printer (HP PSC 
1510). The hplip service has not worked until I removed it from the 
default runlevel and executed it in local.start.
I've found that hplip worked if started after iptables, didn't work if 
started before iptables.
I've contacted HP, and their answer was:
 HPLIP requires the loopback interface for TCP/IP socket
 communication. I would expect the following order at boot time
 for proper operation. 

 iptables
 loopback interface
 hplip
 cups

My default init sequence [was] is different:
- domainname
- net.lo
- syslog-ng
- anacron
- net.eth0
[- hplip, when it didn't work]
- cupsd
- gpm
- iptables
- netmount
- local - hplip

I'ld like to try the sequence suggested by HP, but I can't understand 
what could I do. For example, how could I execute iptables (which is 
executed before net, but after net.*) before net.lo?

  Moreover, I'd like to know if it's possible to verify the actual
  sequence of the init scripts. I can look at the commands that a
  make command would execute but do not execute them, or at the
  problems reported by fsck avoiding to repair them, by the -n
  option. Could I check an init sequence in a similar way?

 I don't think so. But it will check syntax of the entire script if
 you run any command on it. Only syntax though.

Yes, I could try:
- replacing before net with before net.lo in iptables;
- adding after iptables to cupsd;
and so on, but even if some editing worked, eventually after a few  
booting failures, that would be a blind workaround ;-)

Cheers
Sergio
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Re: synaptics touchpad stop working after starting a gtk app

2006-03-21 Thread Sergio Polini
Mauro Faccenda:
If I use the synaptics driver, my touchpad stop working after starting
a
GTK app (tried vmware, grkellm2, firefox). It doesn't occours when I'm
 using a mouse driver for it. But I want to use some advantages in
 synaptics driver.

Is there

InputDevice TouckPad AlwaysCore

in your xorg.conf?

HTH
Sergio







___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: synaptics touchpad stop working after starting a gtk app

2006-03-21 Thread Sergio Polini
Mauro Faccenda:
 On Tuesday 21 March 2006 13:34, Sergio Polini wrote:
  Is there
 
  InputDevice TouckPad AlwaysCore
 
  in your xorg.conf?

 hi Sergio, thanks for your help.

 but there is a weird thing:

 adding this parameter in xorg.conf [etc.]

That line should have been in xorg.conf ;-)
Have you read 
http://gentoo-wiki.com/HARDWARE_Synaptics_Touchpad
?

 made the touchpad work in 
 fluxbox with any kind of app (gtk, qt, etc...). but in kde it stop
 working when kde splash says its starting the window manager.

 any other clue?

My mouse and my touchpah (HP Pavilion dv5078ea) work well.
Perhaps you should look again at your xorg.conf.
In my xorg.conf there are two InputDevice sections:

Section InputDevice
Identifier  Mouse1
Driver  mouse
Option  Protocol ImPS/2
Option  ZAxisMapping 4 5
Option  Device /dev/input/mice
EndSection

Section InputDevice
   Driver   synaptics
   Identifier   TouchPad
   Option   Device/dev/input/mouse0
   Option   Protocol  auto-dev
   Option   LeftEdge  1700
   Option   RightEdge 5300
   Option   TopEdge   1700
   Option   BottomEdge4200
   Option   FingerLow 25
   Option   FingerHigh30
   Option   MaxTapTime180
   Option   MaxTapMove220
   Option   VertScrollDelta 100
   Option   MinSpeed0.09
   Option   MaxSpeed0.18
   Option   AccelFactor 0.0015
   Option   SHMConfig   on
EndSection

In the second section, your Option Device should be:
   Option   Device/dev/input/mouse1
because of your /proc/bus/input/devices.

Ciao
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] moving /usr

2006-03-10 Thread Sergio Polini
Mark Knecht:
 http://forums.gentoo.org/viewtopic.php?t=121164
 
 I'll proceed in this manner unless I hear back that there is some
 problem with doing it this way.

There are several hints in that topic.
I did move my /usr to a new partition, so I'ld say:
1. create and format your new partition;
2. mount your new partition in /mnt/whatever;
3. copy the content of your /usr into this partition by:
cp -a /usr/* /mnt/whatever (the -a option is important; look at man
cp);
4. reboot frome a livecd;
5. mount your root filesystem and edit /etc/fstab:
/dev/hdXY /usr etc.
6. reboot from the hard disk to be sure that your new partition is well
mounted and works; run mount to check that /usr is on your new
partition; test this in other ways to be really sure ;-)
7. reboot again from a live cd;
8. mount your root filesystem in /mnt/something;
9. delete the old /usr directory to free the unused space:
cd /mnt/something/usr
rm -rf *
NB: do not delete /usr itself, just its contents, as /usr is the mount
point for the new partition;
10. cross your fingers and reboot from the hard disk ;-)

HTH
Sergio







___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] moving /usr

2006-03-10 Thread Sergio Polini
Mark Knecht:
 Well...I did my best, but it wasn't good enough. The machine no
 longer boots to any level that a user could use. I'm told there are
 lots of messages on the screen about being unable to find files.
 (/usr/bin, /usr/sbin sort of things...)

That happened to me too ;-)
But the reason was quickly clear: I had deleted /usr instead 
of /usr/*!
Remember:

 9. delete the old /usr directory to free the unused space:
 cd /mnt/something/usr
 rm -rf *
 NB: do not delete /usr itself, just its contents, as /usr is the
 mount point for the new partition;

Let us suppose that your /etc/fstab looks like:

/dev/hda1 /boot type opts dump/pass
/dev/hda2 / type opts dump/pass
/dev/hda3 /usr type opts dump/pass

The first and simplest try: reboot from a livecd, then:

mount /dev/hda2 /mnt/something
ls /mnt/something/usr

If /mnt/something/usr doesn't exist, then:

mkdir /mnt/something/usr
reboot

You could check that the new /usr partition is there, before 
rebooting:

mount /dev/hda3 /mnt/something_else
ls /mnt/something_else

The old /usr contents should be there. Why not?
So, if your reboot doesn't work, reboot again from a livecd and 
check /etc/fstab.

Let me/us know!

Sergio
-- 
gentoo-user@gentoo.org mailing list



RE: [gentoo-user] [OT] find list of files and then copy them

2006-02-15 Thread Sergio Polini
Marco Calviani wrote:
I need to search and copy a list of files that end with a particular
extension and belong to a certain user: i've managed this part with

find -name *.C -user username

now i would like only these files copied to a certain directory.

You could try:

find -name '*.C' -user username -exec cp '{}' destdir ';'

HTH

Sergio







___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Gentoo on Acer Aspire 5002

2006-02-11 Thread Sergio Polini
Felipe Ribeiro:
 I'm thinking about buying the Acer Aspire 5002.
 Does any of you have one? Did you have problems to set things up?
 (video, wlan, etc)

You should look at:
http://www.linux-laptop.net/
which sends you to:
http://www.linux-on-laptops.com/acer.html
and then to:
http://roguestar.dynu.com:/acer.html

Or:
http://tuxmobil.org/mylaptops.html

HTH

Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: ls date was: Bizarre etc/cfg-update problem

2006-01-07 Thread Sergio Polini
Holly Bostick:
  [...]
  Sorry, couldn't help with the rest of your problem, but I think
  it is assumed that ls will display the year only for files older
  than a year old. Quite clever, in my opinion.

 OK, I see what you mean-- or maybe I don't:
 [...]
 I see that many files that are more than a year old then are
 followed by the year, but some are not, and some which are less
 than a year old are followed by a year.

Why bother?
Untar coreutils and look at src/ls.c:

static char const *long_time_format[2] =
  {
   /* strftime format for non-recent files (older than 6 months), in
  -l output when --time-style=locale is specified.  This should
  contain the year, month and day (at least), in an order that is
  understood by people in your locale's territory.
  Please try to keep the number of used screen columns small,
  because many people work in windows with only 80 columns. But
  make this as wide as the other string below, for recent files.*/
   N_(%b %e  %Y),
   /* strftime format for recent files (younger than 6 months), in
  -l output when --time-style=locale is specified.  This should
  contain the month, day and time (at least), in an order that is
  understood by people in your locale's territory.
  Please try to keep the number of used screen columns small,
  because many people work in windows with only 80 columns.  But
  make this as wide as the other string above, for non-recent
  files.  */
   N_(%b %e %H:%M)
  };

 But even leaving aside the inconsistencies (only for the purposes of
 this discussion), this is not the behaviour I expect or in fact
 desire. I normally expect the year to be displayed whenever the
 current calendar year is different from that associated with the
 file-- thus, if the file was created in 2006, I would not expect the
 year to be shown, but if it was created in 2005, I would expect the
 year to be shown, whether or not the current date was one year or
 more from the month and day that the file was created.

The code you should change is here:

static void print_long_format (const struct fileinfo *f) {
  char modebuf[12];
  

  if ((when_local = localtime (when)))
{
  time_t six_months_ago;
  int recent;
  char const *fmt;

  /* If the file appears to be in the future, update the current
 time, in case the file happens to have been modified since
 the last time we checked the clock.  */
  if (current_time  when
  || (current_time == when  current_time_ns  when_ns))
{
  /* Note that get_current_time calls gettimeofday which, on some non-
   compliant systems, clobbers the buffer used for localtime's result.
   But it's ok here, because we use a gettimeofday wrapper that
   saves and restores the buffer around the gettimeofday call.  */
  get_current_time ();
}

  /* Consider a time to be recent if it is within the past six
 months.  A Gregorian year has 365.2425 * 24 * 60 * 60 ==
 31556952 seconds on the average.  Write this value as an
 integer constant to avoid floating point hassles.  */
  six_months_ago = current_time - 31556952 / 2;
  recent = (six_months_ago = when
 (when  current_time
|| (when == current_time  when_ns = current_time_ns)));
  fmt = long_time_format[recent];
   
}

May be, you could add a command-line option ;-)

HTH
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Asking dhcp for a static address

2006-01-06 Thread Sergio Polini
Peter:
 iface_eth0=192.168.2.100 broadcast 192.168.0.255 netmask 
255.255.255.0
 #iface_eth0=dhcp
 #dhcpcd_eth0=-N
 gateway=eth0/192.168.2.1

 This last part is important. Your PC has to find the gateway.

Done. But it doesn't work :-(

 You might also have to add the
 gateway address to /etc/resolv.conf as the nameserver otherwise you
 might lose internet and network connections.

Yes, I can't get names resolved.
Do you mean that I should  add

nameserver 192.168.2.1

(i.e., my gateway address, which is different ;-) to /etc/resolv.conf?
My resolv.conf after a dhcp connession is:

domain fastwebnet.it
nameserver 213.156.54.80
nameserver 213.156.54.81

(Fastweb is my provider).

What should my resolv.conf look like?
Thanks.
Sergio
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Asking dhcp for a static address

2006-01-05 Thread Sergio Polini
I can't understand how to ask dhcp for a static address.
I've read /etc/conf.d/net.example, but using

config_eth0=( IPaddress netmask netmask brd broadcast)

in /etc/conf.d/net configures my network interface _instead of_ asking 
dhcp (the files in /var/lib/dhcpc are not updated).

If I use

dhcpcd_eth0=-s IPaddress

dhcpcd hangs.

Any hints?

Thanks
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Mouse wheel doesn't work

2005-09-19 Thread Sergio Polini
Holly Bostick:
  3)  Could the vmware-tools sample be sufficient to build one
  (xorg.conf)?

 Why would you bother? There is a configuration utility, you know. I
 don't know what it's called though, as I've never used it (just
 renamed my XF86Config to xorg.cfg and went on from there).

 Oh, scratch that, it's called xorgcfg. Very logically found with a
 guess and a 'which'.

You could also try Xorg -configure.
From man Xorg:
-configure
  When this option is specified, the Xorg server loads all video
  driver  modules, probes  for  available  hardware,  and  writes
  out an initial xorg.conf(5x) file based on what was detected.
  This option currently has  some  problems  on  some platforms,
  but  in  most  cases it is a good way to bootstrap the configuration
  process.  This option is only available when the server is  run  as
  root  (i.e, with real-uid 0).

HTH
Sergio

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Getting direct rendering (DRI) to work with ATI 9550 video card

2005-09-02 Thread Sergio Polini
Holly Bostick:
 John Lange schreef:
  And does that file name libglx.so.1.0.7174 seem right?

 Now that you mention it, no. Isn't that an nVidia file (I'm not
 sure, having never had an nVidia card, but that number looks like
 an nVidia driver revision number to me).

 Here's mine:
 [cut]

Here's mine:

[root ~]# l /usr/lib/modules/extensions/
total 3332
-r--r--r--  1 root root 2451366 Aug  6 20:39 libGLcore.a
-r--r--r--  1 root root   16640 Aug  6 20:39 libdbe.a
-r--r--r--  1 root root   32530 Aug  6 20:39 libdri.a
-r--r--r--  1 root root  167796 Aug  6 20:39 libextmod.a
lrwxrwxrwx  1 root root  43 Aug 21 17:14 libglx.so 
- /usr/lib/opengl/nvidia/extensions/libglx.so*
-rwxr-xr-x  1 root root  651460 May 23 22:31 libglx.so.1.0.7174*
-r--r--r--  1 root root   25748 Aug  6 20:39 librecord.a
-r--r--r--  1 root root   39406 Aug  6 20:39 libxtrap.a
[root ~]#

[root ~]# l /usr/lib/opengl/nvidia/extensions/
total 644
-rwxr-xr-x  1 root root 651460 Aug 21 17:13 libglx.so*
[root ~]#


nvidia card: RIVA TNT2
nvidia-kernel-1.0.7174
nvidia-glx-1.0.7174-r4

HTH
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Getting direct rendering (DRI) to work with ATI 9550 video card

2005-09-02 Thread Sergio Polini
John Lange:
 Note the dates in:

 /usr/lib/modules/extensions/
 -r--r--r--  1 root root  16580 Apr 10 17:38 libdbe.a
 -r--r--r--  1 root root  32470 Apr 10 17:38 libdri.a
 -r--r--r--  1 root root 167396 Apr 10 17:38 libextmod.a
 -rwxr-xr-x  1 root root 651460 Apr 10 18:20 libglx.so.1.0.7174
 -r--r--r--  1 root root  25688 Apr 10 17:38 librecord.a
 -r--r--r--  1 root root  39306 Apr 10 17:38 libxtrap.a

 nothing new in a while Does Xorg need to be re-emerged to get
 this working?

I think so. My dates (as you can see in my previuos message) are Aug 
6.
Looking for Aug 06 in /var/log/emerge.log, I've found:
- nvidia-kernel: not emerged on Aug 6
- nvidia-glx: not emerged on Aug 6
- opengl-update: not emerged on Aug 6
- xorg-x11-6.8.2-r2: emerged on Aug 6

HTH
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dhcpcd 2.0.0 - Boot process hangs

2005-08-31 Thread Sergio Polini
Christoph Daldrup:
 I've recently done an emerge -tuvD world and dhcpcd was updated
 from version dhcpcd-1.3.22_p4-r11 to version 2.0.0. The emerge went
 fine, no error message, no note to update config-files, everything
 seemed to be fine.

 But at the next reboot, I wasn't able to get an IP adress,
 [etc.]

I emerged -uvDN world on Sunday and dhcpcd 2.0.0 is masked.

HTH
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Does GAIM 1.5 need evolution-data-server?

2005-08-30 Thread Sergio Polini
Hareesh Nagarajan:
 Hi All:

 Does GAIM 1.5 now need evolution-data-server?

I don't know ;-)
But I can notice:

 emerge
 ...
 [ebuild U ] net-im/gaim-1.5.0 [1.3.1] -cjk -debug +eds* -gnutls
 ^
 |

Perhaps you coud try -eds.

HTH
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] How to shred without deleting /dev/*

2005-08-29 Thread Sergio Polini
Michael Kintzios:
 There's nothing wrong with dd, but I see no reason to create my own
 script to extend the basic dd functionality.  I would rather use
 shred which does everything I want it to do - if only I can avoid
 the deletion if the device node itself.

Why -u?
From the man page:


Delete FILE(s) if --remove (-u) is specified.  The default is not to
remove  the  files because it is common to operate on device files
like /dev/hda, and those files usually should not be removed.


BTW, which is your filesystem? From the man page again:


CAUTION:  Note  that  shred  relies  on a very important assumption:
that the filesystem overwrites data in place.  This is the traditional
way to do  things,  but  many  modern filesystem  designs  do  not
satisfy  this  assumption.   The following are examples of
filesystems on which shred is not effective:
 * log-structured or journaled filesystems, such as those
 supplied with AIX and Solaris (and JFS, ReiserFS, XFS, Ext3, etc.)


HTH
Sergio



-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] many packages are available in gentoo?

2005-08-28 Thread Sergio Polini
William Kenworthy:
 Is there a link that states how many packages are available in
 gentoo? Stable, ~x86 etc?

Do you speak perl? Sorry, I don't speak python any more ;-)

 begin gentoo_packages.pl 
#!/usr/bin/perl

use strict;
use File::Find;
use vars qw/*name/;
*name   = *File::Find::name;

# Your architecture
my $arch = 'x86';
# $uniq == 1 - nss_ldap-207.ebuild and
# nss_ldap-215-r1.ebuild are the same package
my $uniq = 1;
# $categ == 1 - package names like 'sys-auth/nss_ldsp'
# $categ == 0 - package names like 'nss_ldap'
my $categ = 1;
# Output:
my $sfile = 'stable';
my $tfile = 'testing';

my %stable;
my %testing;
my @stable;
my @testing;

find(\wanted, '/usr/portage');
@stable = sort keys %stable;
@testing = sort keys %testing;
$=\n;
open OUT, ''.$sfile or die Errore opening $sfile: $!\n;
print OUT @stable\n;
close OUT;
open OUT, ''.$tfile or die Errore opening $tfile: $!\n;
print OUT @testing\n;
close OUT;
print Done.\n;

sub wanted {
/^.*\.ebuild\z/s
 storename($name);
}

sub storename {
my $fname = $_[0];
my $shortname;
my $line;
my @temp = split('/', $fname);
print $fname\n;
if ($uniq) {
$temp[5] =~ /(.*)-\d.*ebuild/;
$temp[5] = $1;
}
$shortname = $categ ? $temp[3] . '/' : '';
$shortname .= $temp[5];
open EBLD, $fname or die Error opening $fname: $!\n;
while ($line=EBLD) {
if ($line =~ /^KEYWORDS/) {
if ($line =~ /~$arch/) {
++$testing{$shortname};
} elsif ($line =~ /$arch/) {
++$stable{$shortname};
}
last;
}
}
close EBLD;
}
 end gentoo_packages.pl 

Then:
[root ~]# wc stable
  7702   7702 152968 stable
[root ~]# wc testing
 4929  4929 98613 testing

HTH

Sergio

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] xine cannot find /dev/hdc

2005-08-20 Thread Sergio Polini
Ed Jabbour:
 After a recent emerge -uDv system, which upgraded xine-lib, I
 cannot use xine to watch dvds anymore.  It cannot find /dev/hdc. 
 The output from running xine from the console is at
 http://rafb.net/paste/results/ac0MJP75.html. I've tried downgrading
 and re-emerging to no avail.  I'm wondering if this is related
 somehow to udev, but I don't know where to look for that.  Any
 advice appreciated.  Thanks.

Ehm, I got the same error messages a few days ago... but... the error 
was on my side: I put my DVD into /dev/hdd instead of /dev/hdc ;-)

Sergio, a bit ashamed ;-)
-- 
gentoo-user@gentoo.org mailing list