[gentoo-user] ssl + apache2

2009-03-02 Thread Kaushal Shriyan
Hi,

is there a step by step guide to configure ssl on apache2 on Gentoo OS?

Thanks and Regards

Kaushal


[gentoo-user] SUID

2009-03-02 Thread Hinko Kocevar
Hi,

I'm trying to touch a file in /sbin during boot time
and would like to do that with a normal user by running
SUIDed shell script.
I have following script:
hin...@alala /tmp $ cat test.sh 
#!/bin/sh

touch /sbin/foo.bar
exit $?

hin...@alala /tmp $ sudo chmod +x test.sh 
hin...@alala /tmp $ sudo chown root:root test.sh 
hin...@alala /tmp $ sudo chmod +s test.sh 
hin...@alala /tmp $ ls -l test.sh 
-rwsr-sr-x 1 root root 32 Mar  2 09:27 test.sh
hin...@alala /tmp $ sh -x test.sh 
+ touch /sbin/foo.bar
touch: cannot touch `/sbin/foo.bar': Permission denied

Can somebody help me with that?

Thank you!

Best regards,
Hinko
-- 
Hinko Kočevar, OSS developer
ČETRTA POT, d.o.o.
Planina 3, 4000 Kranj, SI EU
tel ++386 (0) 4 280 66 03
e-mail  hinko.koce...@cetrtapot.si
httpwww.cetrtapot.si




Re: [gentoo-user] SUID

2009-03-02 Thread Tomáš Krasničan

Hi,

#! scripts can not run as suid.

Regards,
krasko

Hinko Kocevar wrote:

Hi,

I'm trying to touch a file in /sbin during boot time
and would like to do that with a normal user by running
SUIDed shell script.
I have following script:
hin...@alala /tmp $ cat test.sh 
#!/bin/sh


touch /sbin/foo.bar
exit $?

hin...@alala /tmp $ sudo chmod +x test.sh 
hin...@alala /tmp $ sudo chown root:root test.sh 
hin...@alala /tmp $ sudo chmod +s test.sh 
hin...@alala /tmp $ ls -l test.sh 
-rwsr-sr-x 1 root root 32 Mar  2 09:27 test.sh
hin...@alala /tmp $ sh -x test.sh 
+ touch /sbin/foo.bar

touch: cannot touch `/sbin/foo.bar': Permission denied

Can somebody help me with that?

Thank you!

Best regards,
Hinko
begin:vcard
fn;quoted-printable:Tom=C3=A1=C5=A1 Krasni=C4=8Dan
n;quoted-printable;quoted-printable:Krasni=C4=8Dan;Tom=C3=A1=C5=A1
email;internet:kra...@krasko.sk
tel;cell:+420 605 520 368
x-mozilla-html:FALSE
version:2.1
end:vcard



[gentoo-user] Re: SUID

2009-03-02 Thread ABCD
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hinko Kocevar wrote:
 Hi,
 
 I'm trying to touch a file in /sbin during boot time
 and would like to do that with a normal user by running
 SUIDed shell script.
 I have following script:
 hin...@alala /tmp $ cat test.sh 
 #!/bin/sh
 
 touch /sbin/foo.bar
 exit $?
 
 hin...@alala /tmp $ sudo chmod +x test.sh 
 hin...@alala /tmp $ sudo chown root:root test.sh 
 hin...@alala /tmp $ sudo chmod +s test.sh 
 hin...@alala /tmp $ ls -l test.sh 
 -rwsr-sr-x 1 root root 32 Mar  2 09:27 test.sh
 hin...@alala /tmp $ sh -x test.sh 
 + touch /sbin/foo.bar
 touch: cannot touch `/sbin/foo.bar': Permission denied
 
 Can somebody help me with that?
 
 Thank you!
 
 Best regards,
 Hinko

Linux does not support s[ug]id scripts, however, you can emulate the
effect of it using sudo - in your shell script, do the following:

#!/bin/sh
[ $(id -u) -ne 0 ]  exec sudo $0 $@

# put the rest of the script here

and add a line to /etc/sudoers that reads:

ALL ALL=NOPASSWD: /path/to/script

This will allow any user (the first ALL) from any host (the second
ALL) to run /path/to/script as root:root without any authentication,
by simply calling /path/to/script (or just script, if it happens to be
in the $PATH).

NB - I havn't actually tried this recently, so I might be wrong on some
of the specifics, but the general idea should hold.

Also, if you want to restrict *who* can run the script, you can change
the first ALL to something else, see sudoers(5) for details - also you
can restrict *where* it can be run by changing the second ALL.

If you want to make the user enter *their own* password, remove the
NOPASSWD:.  If you want to make the user enter *root's* password, read
the man page - I don't remember the option, but I know there is one.

- --
ABCD
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmrneIACgkQOypDUo0oQOqhCwCgqspw4mIaGhDdkjyFkYbUnmMF
DgAAn0rG+V5ZFmwp8GWPPUc80cyB0EGB
=NE1x
-END PGP SIGNATURE-




Re: [gentoo-user] Re: SUID

2009-03-02 Thread Hinko Kocevar
ABCD wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hinko Kocevar wrote:
 Hi,

 I'm trying to touch a file in /sbin during boot time
 and would like to do that with a normal user by running
 SUIDed shell script.
 I have following script:
 hin...@alala /tmp $ cat test.sh 
 #!/bin/sh

 touch /sbin/foo.bar
 exit $?

 hin...@alala /tmp $ sudo chmod +x test.sh 
 hin...@alala /tmp $ sudo chown root:root test.sh 
 hin...@alala /tmp $ sudo chmod +s test.sh 
 hin...@alala /tmp $ ls -l test.sh 
 -rwsr-sr-x 1 root root 32 Mar  2 09:27 test.sh
 hin...@alala /tmp $ sh -x test.sh 
 + touch /sbin/foo.bar
 touch: cannot touch `/sbin/foo.bar': Permission denied

 Can somebody help me with that?

 Thank you!

 Best regards,
 Hinko
 
 Linux does not support s[ug]id scripts, however, you can emulate the

Hmm, I was not aware of that..

 effect of it using sudo - in your shell script, do the following:
 
 #!/bin/sh
 [ $(id -u) -ne 0 ]  exec sudo $0 $@
 
 # put the rest of the script here
 
 and add a line to /etc/sudoers that reads:
 
 ALL ALL=NOPASSWD: /path/to/script
 
 This will allow any user (the first ALL) from any host (the second
 ALL) to run /path/to/script as root:root without any authentication,
 by simply calling /path/to/script (or just script, if it happens to be
 in the $PATH).
 
 NB - I havn't actually tried this recently, so I might be wrong on some
 of the specifics, but the general idea should hold.
 
 Also, if you want to restrict *who* can run the script, you can change
 the first ALL to something else, see sudoers(5) for details - also you
 can restrict *where* it can be run by changing the second ALL.
 
 If you want to make the user enter *their own* password, remove the
 NOPASSWD:.  If you want to make the user enter *root's* password, read
 the man page - I don't remember the option, but I know there is one.
 

Thanks for detailed info!

Best regards,
Hinko

-- 
Hinko Kočevar, OSS developer
ČETRTA POT, d.o.o.
Planina 3, 4000 Kranj, SI EU
tel ++386 (0) 4 280 66 03
e-mail  hinko.koce...@cetrtapot.si
httpwww.cetrtapot.si




Re: [gentoo-user] Grep question

2009-03-02 Thread Steven Lembark
Adam Carter wrote:
 I need to select all the lines between string1 and string2 in a file.
 String1 exists on an entire line by itself and string2 will be at the
 start of a line. What's the syntax? I cant use -A as there is a variable
 number of lines.

Perl will handle this easily enough for you.

Assuming you want to print string1 and string2:

perl -n -e 'print if /string1/ ../string2/';

The '..' notation behaves sort of like a triac
(flip-flop?): it is false until the first test
is true and true until the second passes, at
which point it stays false again.

for example:

$ cat a
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
foo -- /foo/ true here
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
bar -- /bar/ true here
fdsa
fdsa
fdsa

$ perl -n -e 'print if /foo/ .. /bar/';
foo
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
bar


-- 
Steven Lembark85-09 90th St.
Workhorse Computing Woodhaven, NY, 11421
lemb...@wrkhors.com  +1 888 359 3508



Re: [gentoo-user] A little light relief from endless problems

2009-03-02 Thread Peter Humphrey
On Monday 02 March 2009 07:09:31 Momesso Andrea wrote:
 On Sun, Mar 01, 2009 at 02:03:28PM -0500, Allan Gottlieb wrote:
  At Sun, 01 Mar 2009 17:49:36 +0100 KH gentoo-u...@konstantinhansen.de 
wrote:
   Peter Humphrey schrieb:
   As it's Sunday, here's an odd little thing.
  
   Not long ago, while booting this machine, four ext3 partitions
   needed checks on remount count reaching zero. They had been set to
   23, 24, 25 and 26 mounts. (I didn't choose the numbers; they were
   allocated at the time I was creating the file system.)
  
   Now, this box does get rebooted, but hardly 23 x 24 x 25 x 26 =
   358,800 times all told. At, say, two reboots per day, that would
   take rather a long time: a little under 500 years if my arithmetic
   is working.
  
   Hi,
  
   this is incorrect. 179400 mounts would be enough (24 and 26 can both
   be divided by 2).

I wasn't sure how to allow for this common factor, so I ignored it. Thanks 
for the clarification. And no, 250 years is not a lot more credible than 
500! So you might say my error was not significant.

  Correct.  I erred in saying that 23,24,25,26 are relatively prime as
  you noted.  In general if it was a1,a2,...an the answer would be
  LCM(a1,a2,...,an), where LCM abbreviates Least Common Multiple.
 
  allan

Nicely  put.

 What about battery? If that's a laptop checks are deferred if running on
 battery at boot time, so it can happen that all the partitions are
 fscked the first time you boot on AC.

It isn't a laptop. It's an ordinary desktop box (or a workstation, depending 
on your point of view: it was sold as a workstation - and it certainly 
makes enough noise for one).

And the other contribution, about manual mounting, is also a red herring. If 
anyone thinks I contributed a hundred thousand operations to the total, 
they need to spend a little time in a quiet room  :-)

-- 
Rgds
Peter



[gentoo-user] Re: Kernel update messed up console encoding

2009-03-02 Thread Nikos Chantziaras

Florian v. Savigny wrote:

[...]
I think I'll continue on a kernel list to figure out what kernel
2.6.27 does differently from 2.6.17, and why (and whether that
behaviour cannot be changed with a compile-time option). I think that
part is really not a gentoo-specific question. But I'll report here
when I get the result!


On my /etc/rc.conf, there's this:

  # Set unicode to YES to turn on unicode support for keyboards
  # and screens.
  unicode=YES

So I suppose maybe simpley changing this to NO will do the job.  I'm 
on OpenRC now though so maybe it looks different on older baselayout.


Try grep -ri unicode /etc and see what you find.




[gentoo-user] Re: [OT hardware ?] Can ram spec be tracked to different mobos

2009-03-02 Thread Nikos Chantziaras

Harry Putnam wrote:

Anyone know if the ram sticks installed in one mobo can be tracked to
see what other mobo's it will work in.

I'm thinking switching out a mobo and hate to loose the 3GB ram
installed in it.  I don't have the spec to hand due to one machine
being shut down but do have record of it on that machine when I boot
it.

You'd think some kind of cross reference like that would be around
since ram is one of the more expensive parts of a setup.


If it's the same type of RAM, it should work just fine.




Re: [gentoo-user] A little light relief from endless problems

2009-03-02 Thread Neil Bothwick
On Mon, 2 Mar 2009 10:52:54 +, Peter Humphrey wrote:

 And the other contribution, about manual mounting, is also a red
 herring. If anyone thinks I contributed a hundred thousand operations
 to the total, they need to spend a little time in a quiet room  :-)

Six manual mounts would be sufficient.


-- 
Neil Bothwick

Support bacteria - they're the only culture some people have.


signature.asc
Description: PGP signature


[gentoo-user] netcard interface with alias

2009-03-02 Thread Zhu Sha Zang
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I have 7 networks behind a machine with 5 network's device. Now, this
machine running debian, but i'll upgrade too gentoo. How i can create
a eth0:1, for example, using /etc/conf.d/net?

Thanks

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmrzNAACgkQ35zeJy7JhCijFwCfaIgUYnNX3og3zQ/RMRyEb8vY
SmoAmgPshApqi3hLGxbuz/mXhOc6GVgK
=J1Fx
-END PGP SIGNATURE-




Re: [gentoo-user] netcard interface with alias

2009-03-02 Thread Tomáš Krasničan

Hi,

the guide to networking in Gentoo (with examples) is avaible here:

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

Regards
krasko


Zhu Sha Zang wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I have 7 networks behind a machine with 5 network's device. Now, this
machine running debian, but i'll upgrade too gentoo. How i can create
a eth0:1, for example, using /etc/conf.d/net?

Thanks

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmrzNAACgkQ35zeJy7JhCijFwCfaIgUYnNX3og3zQ/RMRyEb8vY
SmoAmgPshApqi3hLGxbuz/mXhOc6GVgK
=J1Fx
-END PGP SIGNATURE-


begin:vcard
fn;quoted-printable:Tom=C3=A1=C5=A1 Krasni=C4=8Dan
n;quoted-printable;quoted-printable:Krasni=C4=8Dan;Tom=C3=A1=C5=A1
email;internet:kra...@krasko.sk
tel;cell:+420 605 520 368
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [gentoo-user] netcard interface with alias

2009-03-02 Thread Alan McKinnon
On Monday 02 March 2009 14:10:57 Zhu Sha Zang wrote:
 I have 7 networks behind a machine with 5 network's device. Now, this
 machine running debian, but i'll upgrade too gentoo. How i can create
 a eth0:1, for example, using /etc/conf.d/net?

The top section in the default /etc/conf.d/net says that more info is in 
/etc/conf.d/net.example

If you look there, around about line 70, you'll find something about aliases.



-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Learning to use libtool

2009-03-02 Thread Albert Hopkins

 It appears the book is just out of date.  I need newer references.
 It's definitely not ldconfig that's wanted, but a program that
 configures a local copy of libtool itself.  Maybe it's now obsolete.
 So I'm looking for a new reference.  All I've found so far is some
 acrobat slides -- lots of them, but they have all the problems
 inherent in slide presentations without a presenter.

Not to sound like a dick, but did you even bother to look at the libtool
home page[1]?  There's a crapload of information there, including to the
answer to the mystery behind the missing ltconfig.

[1] http://www.gnu.org/software/libtool/





Re: [gentoo-user] netcard interface with alias

2009-03-02 Thread Zhu Sha Zang
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Alan McKinnon escreveu:
 On Monday 02 March 2009 14:10:57 Zhu Sha Zang wrote:
 I have 7 networks behind a machine with 5 network's device. Now,
 this machine running debian, but i'll upgrade too gentoo. How i
 can create a eth0:1, for example, using /etc/conf.d/net?

 The top section in the default /etc/conf.d/net says that more info
 is in /etc/conf.d/net.example

 If you look there, around about line 70, you'll find something
 about aliases.



Yeah Yeah, i've already seen this net.example. But before change to
appropriate setting, don't appear any interface with alias, anda
occour some errors when try to initialize devices. And the routes used
by alias don't worked.

Someone had this working succesfully?




-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmr0fwACgkQ35zeJy7JhCiCXwCgn24dcLSj/fAfSYwKGM+44AXz
ODUAn3gkAUPUadS3bEjs6ZvbnV77kUmV
=vldQ
-END PGP SIGNATURE-




Re: [gentoo-user] Re: Kernel update messed up console encoding

2009-03-02 Thread Florian v. Savigny


Hi Nikos,

   On my /etc/rc.conf, there's this:
   
  # Set unicode to YES to turn on unicode support for keyboards
  # and screens.
  unicode=YES

It's set to no on my machine (I already posted this; this was the
first thing outside the kernel that I considered, I think). (I haven't
yet posted that I use sys-apps/baselayout-1.12.11.1, though - not sure
how this relates to the OpenRC you are mentioning.)

   So I suppose maybe simpley changing this to NO will do the job.

Curiously, it does not, even though it seems supposed to do it, using
the very mechanisms we already discussed (kbd_mode and console escape
sequences). It's a little strange:

   Try grep -ri unicode /etc and see what you find.

Doing this, I found out that /etc/runlevels/boot/keymaps and
/etc/init.d/keymaps do use this variable, but do so for setting the
keyboard encoding only if it's set to yes. In other words, if the
kernel starts up with 8-bit encoding for the console, these scripts (I
don't know which one, perhaps both - they seem to do the same thing in
this respect) will switch to unicode for the keyboard, but not the
other way round (i.e. the if statement if [[${UNICODE} == 'yes']]
has no else part, so if $UNICODE has a different value, such as 'no',
it is simply ignored, and nothing happens). For the terminal encoding,
however, the scripts seem to act both ways (the if statement does have
an else part). Strange, to me (or am I overlooking something?).

(I'm not sure, BTW, whether the double '=' is a gentoo peculiarity,
nor whether this kind of string comparison is case-insensitive. But in
any case, the scripts only test for yes, in lower case, so anything
else should effectively mean no.)

Best regards,

Florian




Re: [gentoo-user] netcard interface with alias

2009-03-02 Thread Graham Murray
Zhu Sha Zang zhushaz...@yahoo.com.br writes:

 Yeah Yeah, i've already seen this net.example. But before change to
 appropriate setting, don't appear any interface with alias, anda
 occour some errors when try to initialize devices. And the routes used
 by alias don't worked.

 Someone had this working succesfully?

You do not need to use aliases. Using iproute2, you can have as many
(within reason) IP addresses as you want on each interface. You
configure it as 

conf_eth0=( 1.2.3.4/24 10.11.12.13/24 20.21.22.23/24 )

For routing via the different networks use iproute2 rules, see the
postup() function (towards the end of /etc/conf.d/net.example) for an
example of how to set this up.





[gentoo-user] local mail processing

2009-03-02 Thread alain . didierjean
I don't import mail on my machine. I still need local mail to be processed and
delivered. I emerged ssmtp  procmail to no avail. All I get is :
Mar  2 11:07:03 isba sSMTP[26810]: Unable to connect to mailhub.adj.org port
25.
Mar  2 11:07:03 isba sSMTP[26810]: Cannot open mailhub.adj.org:25

What am I missing ? All localy emitted mail end up in ~/dead.letter...
Thx,

--
~adj~



[gentoo-user] Re: Grep question

2009-03-02 Thread James
Adam Carter Adam.Carter at optus.com.au writes:


 I need to select all 
 the lines between string1 and string2 in a file. String1 exists on 
an entire 
 line by itself and string2 will be at the start of a line. What's 
the syntax? I 
 cant use -A as there is a variable number of lines.

AWK

is my vote. Old, *SIMPLE* and used by most other packages when pattern matching
is involved. Often AWK and SED go together. As do Perl and AWK


http://www.softpanorama.org/Tools/awk.shtml


hth,

James






[gentoo-user] Re: local mail processing

2009-03-02 Thread Nikos Chantziaras

alain.didierj...@free.fr wrote:

I don't import mail on my machine. I still need local mail to be processed and
delivered. I emerged ssmtp  procmail to no avail. All I get is :
Mar  2 11:07:03 isba sSMTP[26810]: Unable to connect to mailhub.adj.org port
25.
Mar  2 11:07:03 isba sSMTP[26810]: Cannot open mailhub.adj.org:25

What am I missing ? All localy emitted mail end up in ~/dead.letter...
Thx,


You emerged it but did not configure it.

Anyway, for an easy to set-up local mail system, I'd recommend Exim.

PS:
You don't need ssmtp for local mail.  You can safely unmerge it.




Re: [gentoo-user] local mail processing

2009-03-02 Thread Alan McKinnon
On Monday 02 March 2009 16:00:43 alain.didierj...@free.fr wrote:
 I don't import mail on my machine. I still need local mail to be processed
 and delivered. I emerged ssmtp  procmail to no avail. All I get is :
 Mar  2 11:07:03 isba sSMTP[26810]: Unable to connect to mailhub.adj.org
 port 25.
 Mar  2 11:07:03 isba sSMTP[26810]: Cannot open mailhub.adj.org:25

 What am I missing ? All localy emitted mail end up in ~/dead.letter...
 Thx,

 --
 ~adj~

port 25 is closed:

a...@nazgul ~ $ nmap mailhub.adj.org

Starting Nmap 4.76 ( http://nmap.org ) at 2009-03-02 16:06 SAST
Interesting ports on 63.214.247.170:
Not shown: 995 filtered ports
PORT STATE  SERVICE
25/tcp   closed smtp
80/tcp   open   http
135/tcp  closed msrpc
/tcp closed krb524
6667/tcp closed irc

Nmap done: 1 IP address (1 host up) scanned in 4.64 seconds

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] --depclean and PyQt4 blocking

2009-03-02 Thread Paul Hartman
On Sun, Mar 1, 2009 at 2:11 AM, Dale rdalek1...@gmail.com wrote:
 emerge --update
 --newuse --deep @system @world

Did you do that command? AFAIK depclean should only be done after
world has been fully updated.

I don't know what profile/arch you're running... On my system it was
recently upgraded to Qt-4.5, so if that's the case for you then I'd
unmerge the Qt-4.4 stuff entirely and then update world and see what
it tries to bring in.



[gentoo-user] Adaptec 1405 SAS controller supported ?

2009-03-02 Thread Stefan G. Weichinger

A customer of mine wants to use an Adaptec 1405 SAS controller for
attaching an internal LTO-2-drive.

We'd like to use 64-bit-Gentoo on that box, but I can't find any
explicit YES, it works ...

Also the kernel-docs (aacraid.txt) and browsing the .config doesn't
help. And adaptec.com only lists RHEL and SLES supported, with special
rpms provided.

Could anyone here confirm if that controller is usable with gentoo as well?

Thanks, Stefan



Re: [gentoo-user] --depclean and PyQt4 blocking

2009-03-02 Thread Dale
Paul Hartman wrote:
 On Sun, Mar 1, 2009 at 2:11 AM, Dale rdalek1...@gmail.com wrote:
   
 emerge --update
 --newuse --deep @system @world
 

 Did you do that command? AFAIK depclean should only be done after
 world has been fully updated.

 I don't know what profile/arch you're running... On my system it was
 recently upgraded to Qt-4.5, so if that's the case for you then I'd
 unmerge the Qt-4.4 stuff entirely and then update world and see what
 it tries to bring in.


   

World the way it is set up includes system.  I don't use the sets
feature as of yet.  So world includes system as long as you leave off
the @ thingy.

I posted this on the forums after a day or so.  A developer posted the
fix.  Here it is quoted from
http://forums.gentoo.org/viewtopic-p-5524910.html?sid=5a3c9d2154aae9b9c83e8215933a8df7#5524910
 
:

 What is probably happening here is that PyQt4 is linking qt-assistant
 and qt-xmlpatterns, if these packages are installed. But they are not
 listed as dependencies in the ebuild. So you can either (1) leave
 things as installed now, or (2) unmerge qt-assistant and
 qt-xmlpatterns, and then rebuild PyQt4.

 That those packages are not listed in the PyQt4 ebuild as optional
 dependencies is a bug that needs to be fixed tho.

Unmerging those then rebuilding PyQt4 worked and it comes back clean. 
Finer than frog hair now.  ;-) 

Dale

:-)  :-) 




[gentoo-user] Wine-1.1.16 and amd64

2009-03-02 Thread Antonio Quartulli
Hi all!
I am trying to upgrade wine to version 1.1.16 on my Gentoo AMD64 but I
got a problem because it can't compile (or maybe link) on my amd64 system.

x86_64-pc-linux-gnu-gcc -m32 -c -I. -I. -I../../include -I../../include
 -D__WINESRC__  -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing
-Wdeclaration-after-statement -Wwrite-strings -Wtype-limits
-Wpointer-arith  -march=core2 -O3 -pipe -msse4.1 -fomit-frame-pointer
-o activeds_main.o activeds_main.c
/usr/bin/ld: Relocatable linking with relocations from format elf32-i386
(main.o) to format elf64-x86-64 (acledit.gf6Map.o) is not supported
winebuild: /usr/bin/ld -r failed with status 256
winegcc: ../../tools/winebuild/winebuild failed
make[2]: *** [acledit.dll.so] Error 2

this is one of the errors that I got.

Is there a way to build wine on a 64bit system without using the win64
flag (i still want to run win32 binaries).

Bye!


-- 
Antonio Quartulli http://www.ritirata.org/ordex



[gentoo-user] how to switch laptop to usb keyboard

2009-03-02 Thread Michael Higgins
Hey, all --

I picked up a logitech usb keyboard to use with my laptop. Plugged it in and it 
works... almost. No number keys.

How to I tell X to use this different device when I plug it in?

Cheers,

-- 
 |\  /||   |  ~ ~  
 | \/ ||---|  `|` ?
 ||ichael  |   |iggins\^ /
 michael.higgins[at]evolone[dot]org



Re: [gentoo-user] Wine-1.1.16 and amd64

2009-03-02 Thread Alan McKinnon
On Monday 02 March 2009 19:11:51 Antonio Quartulli wrote:
 Hi all!
 I am trying to upgrade wine to version 1.1.16 on my Gentoo AMD64 but I
 got a problem because it can't compile (or maybe link) on my amd64 system.

 x86_64-pc-linux-gnu-gcc -m32 -c -I. -I. -I../../include -I../../include
  -D__WINESRC__  -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing
 -Wdeclaration-after-statement -Wwrite-strings -Wtype-limits
 -Wpointer-arith  -march=core2 -O3 -pipe -msse4.1 -fomit-frame-pointer
 -o activeds_main.o activeds_main.c
 /usr/bin/ld: Relocatable linking with relocations from format elf32-i386
 (main.o) to format elf64-x86-64 (acledit.gf6Map.o) is not supported
 winebuild: /usr/bin/ld -r failed with status 256
 winegcc: ../../tools/winebuild/winebuild failed
 make[2]: *** [acledit.dll.so] Error 2

 this is one of the errors that I got.

 Is there a way to build wine on a 64bit system without using the win64
 flag (i still want to run win32 binaries).

 Bye!


Bug #260726 at b.g.o.

Apparently if you remove the offending line recently added by vapier to the 
ebuild, it may build. However, variable results have been reported.

Failing that, I suggest you do what I did - mask 1.1.6 and be content with 
1.1.15

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] how to switch laptop to usb keyboard

2009-03-02 Thread Paul Hartman
On Mon, Mar 2, 2009 at 11:34 AM, Michael Higgins li...@evolone.org wrote:
 Hey, all --

 I picked up a logitech usb keyboard to use with my laptop. Plugged it in and 
 it works... almost. No number keys.

 How to I tell X to use this different device when I plug it in?

 Cheers,

Using HAL and .fdi files you can set up rules for that device ID to
treat it as a certain kind of keyboard. Search gentoo forums or google
for some examples and more info about it.



Re: [gentoo-user] Wine-1.1.16 and amd64

2009-03-02 Thread Antonio Quartulli
Alan McKinnon ha scritto:
 On Monday 02 March 2009 19:11:51 Antonio Quartulli wrote:
 Hi all!
 I am trying to upgrade wine to version 1.1.16 on my Gentoo AMD64 but I
 got a problem because it can't compile (or maybe link) on my amd64 system.

 x86_64-pc-linux-gnu-gcc -m32 -c -I. -I. -I../../include -I../../include
  -D__WINESRC__  -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing
 -Wdeclaration-after-statement -Wwrite-strings -Wtype-limits
 -Wpointer-arith  -march=core2 -O3 -pipe -msse4.1 -fomit-frame-pointer
 -o activeds_main.o activeds_main.c
 /usr/bin/ld: Relocatable linking with relocations from format elf32-i386
 (main.o) to format elf64-x86-64 (acledit.gf6Map.o) is not supported
 winebuild: /usr/bin/ld -r failed with status 256
 winegcc: ../../tools/winebuild/winebuild failed
 make[2]: *** [acledit.dll.so] Error 2

 this is one of the errors that I got.

 Is there a way to build wine on a 64bit system without using the win64
 flag (i still want to run win32 binaries).

 Bye!
 
 
 Bug #260726 at b.g.o.
 
 Apparently if you remove the offending line recently added by vapier to the 
 ebuild, it may build. However, variable results have been reported.
 
 Failing that, I suggest you do what I did - mask 1.1.6 and be content with 
 1.1.15
 
ok, thank you so much!
I will mask version 1.1.16 too

-- 
Antonio Quartulli http://www.ritirata.org/ordex



[gentoo-user] Updating system problem

2009-03-02 Thread Túlio Henrique Alves dos Santos
Hi folks,

I trying to update one server, that in the past had apache2 installed.

Today I removed the apache2, but when I run:

*# emerge --update --ask world*

the update of apache2 appears with the update of the others programs that is
installed, but apache is no more.

What I have to do to fix this, and take out this update?

Thanks a lot for the attention.


Tulio Henrique


RE: [gentoo-user] Updating system problem

2009-03-02 Thread Prado, Renato (R.P.)
Did you try equery depends apache2

 



From: Túlio Henrique Alves dos Santos [mailto:tulio...@gmail.com] 
Sent: Monday, March 02, 2009 3:01 PM
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Updating system problem

 

Hi folks, 

I trying to update one server, that in the past had apache2 installed.

Today I removed the apache2, but when I run: 

# emerge --update --ask world

the update of apache2 appears with the update of the others programs that is 
installed, but apache is no more.

What I have to do to fix this, and take out this update? 

Thanks a lot for the attention.


Tulio Henrique



Re: [gentoo-user] Updating system problem

2009-03-02 Thread Antonio Quartulli
Túlio Henrique Alves dos Santos ha scritto:
 Hi folks,
 
 I trying to update one server, that in the past had apache2 installed.
 
 Today I removed the apache2, but when I run:
 
 *# emerge --update --ask world*
 
 the update of apache2 appears with the update of the others programs that is
 installed, but apache is no more.
 
 What I have to do to fix this, and take out this update?
 
 Thanks a lot for the attention.
 
 
 Tulio Henrique
 
did you run
# emerge --depclean
?
To remove any deps that apache2 intalled in the past. Remember -p to
have a look of the package that it wants to remove.

-- 
Antonio Quartulli http://www.ritirata.org/ordex



RE: [gentoo-user] Updating system problem

2009-03-02 Thread Prado, Renato (R.P.)

From: Prado, Renato (R.P.) [mailto:rpr...@visteon.com] 
Sent: Monday, March 02, 2009 3:23 PM
To: gentoo-user@lists.gentoo.org
Subject: RE: [gentoo-user] Updating system problem

Did you try equery depends apache2

Sorry for top posting :-(



Re: [gentoo-user] Updating system problem

2009-03-02 Thread Túlio Henrique Alves dos Santos
Thanks a lot guys,

I solved the problem using first:

*equery depends apache2*

so I discovered the dependencies of apache and removed it, and now the
problem is gone.

I've learned so much with *# emerge --depclean* thanks!


Best regards!

2009/3/2 Prado, Renato (R.P.) rpr...@visteon.com

 
 From: Prado, Renato (R.P.) [mailto:rpr...@visteon.com]
 Sent: Monday, March 02, 2009 3:23 PM
 To: gentoo-user@lists.gentoo.org
 Subject: RE: [gentoo-user] Updating system problem

 Did you try equery depends apache2

 Sorry for top posting :-(




[gentoo-user] Re: Grep question

2009-03-02 Thread Harry Putnam
James wirel...@tampabay.rr.com writes:

 Adam Carter Adam.Carter at optus.com.au writes:


 I need to select all 
 the lines between string1 and string2 in a file. String1 exists on 
 an entire 
 line by itself and string2 will be at the start of a line. What's 
 the syntax? I 
 cant use -A as there is a variable number of lines.

 AWK

 is my vote. Old, *SIMPLE* and used by most other packages when
 pattern matching is involved. Often AWK and SED go together. As
 do Perl and AWK

Yup and using Steves' example:

$ cat a
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
foo -- /foo/ true here
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
bar -- /bar/ true here
fdsa
fdsa
fdsa

cat a | awk '/^foo/{FLAG=1}\
 FLAG{print} \
 /^bar/{FLAG=}'
foo
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
bar




Re: [gentoo-user] how to switch laptop to usb keyboard

2009-03-02 Thread Michael Higgins
On Mon, 2 Mar 2009 11:42:53 -0600
Paul Hartman paul.hartman+gen...@gmail.com wrote:

 On Mon, Mar 2, 2009 at 11:34 AM, Michael Higgins li...@evolone.org
 wrote:
  Hey, all --
 
  I picked up a logitech usb keyboard to use with my laptop. Plugged
  it in and it works... almost. No number keys.
 
  How to I tell X to use this different device when I plug it in?
 
  Cheers,
 
 Using HAL and .fdi files you can set up rules for that device ID to
 treat it as a certain kind of keyboard. Search gentoo forums or google
 for some examples and more info about it.
 

Still no luck here, as this is new to me. Really, I'm lost on the process... 
figured it would just work, which it does, except that I don't have number 
keys... on either keyboard. So, why is *that*?

What should I be trying to do next?

Cheers,

-- 
 |\  /||   |  ~ ~  
 | \/ ||---|  `|` ?
 ||ichael  |   |iggins\^ /
 michael.higgins[at]evolone[dot]org



Re: [gentoo-user] how to switch laptop to usb keyboard

2009-03-02 Thread Mike Kazantsev
On Mon, 2 Mar 2009 18:31:41 -0800
Michael Higgins li...@evolone.org wrote:

 Still no luck here, as this is new to me. Really, I'm lost on the
 process... figured it would just work, which it does, except that I
 don't have number keys... on either keyboard. So, why is *that*?
 
 What should I be trying to do next?

If xev (x11-apps/xev) shows generated events and a keycodes when you
press these keys (on either KB), you can bind them for any purpose you
wish (including KP_*) via xmodmap (x11-apps/xmodmap). Just hack
together an ~/.xmodmaprc file, looking like this:

  keycode 100 = KP_4
  keycode 102 = KP_6
  keycode 98 = KP_8
  keycode 104 = KP_2
  ...

and add 'xmodmap ~/.xmodmaprc' line to some X/WM init script.
Note that the keycodes probably won't be the same for you, but you can
get them from xev output.

-- 
Mike Kazantsev // fraggod.net


signature.asc
Description: PGP signature