Re: [gentoo-user] netfilter partial MAC filtering

2022-06-16 Thread Samuraiii
On Fri, 2022-06-17 at 01:32 +, Laurence Perkins wrote:
> I am designing a small system with a switch and an uplink.  It needs
> to be able to forward traffic from trusted, and only trusted, devices
> connected to the switch out through the uplink.
>  
> Since all potential trusted devices will have the same MAC OUI prefix
> in this case, the immediately obvious course of action would be to
> base the decision on that.
>  
> Unfortunately, there doesn't seem to be a good way to do so.  There
> was
> https://serverfault.com/questions/877576/shorewall-wildcard-filter-
> by-source-mac-address from a few years ago, with the answer being
> "You can't."
>  
> While I didn't bother to test it, I'm guessing that adding about 16
> million MAC filtering rules to the firewall won't be good for
> performance.  I briefly thought I could use the string matching or
> the U32 filters, but unfortunately it appears that they can't access
> anything prior to the start of the IP section, so picking bytes out
> of the ethernet header isn't possible.
>  
> I did find
> https://martin.uy/blog/wildcard-support-for-mac-addresses-in-netfilter-linux-kernel-and-iptables/
>    But it's old, and has something of a glaring flaw with regard to
> false wildcard matches.
>  
> I can think of a few ways to do this, mostly involving somehow
> monitoring incoming packets and noting the MAC addresses which have
> the correct prefix, and then having a little daemon pick up those
> addresses and add rules to let them through.
>  
> Either that, or try to write a custom netfilter module.
>  
> None of this seems particularly "fun" to sort out.  Does anybody know
> of any common solutions for doing packet matching based on just part
> of a MAC address on Linux?  Failing that, some advice about whether
> the system daemon and packet inspection route or the netfilter module
> route is more likely to be stable and maintainable would be
> appreciated.
>  
> Thanks,
> LMP
Hi,
I would recommend to look into nftables and its set feature...
It should perform better with one rule for multiple matches.
I bet no one had tried it with 16M items, but it is the best, as far as
I know.
Cheers
S


https://wiki.nftables.org/wiki-nftables/index.php/Sets
https://developers.redhat.com/blog/2017/04/11/benchmarking-nftables#the_first_test



Re: [gentoo-user] Recommended filesystem for an SSD drive and what mount setting to be used?

2020-03-27 Thread Samuraiii
On 27. 03. 20 9:46, Peter Humphrey wrote:
>
> Nothing special, just 'defaults,relatime' in my case, but put something like 
> this in root's crontab:
>
>   15 1,13 * * * /sbin/fstrim -a
>
> (I'm sure someone will correct me if that's no longer necessary.)
>
There is timer "fstrim.timer", if you run systemd...

So

"# systemctl enable fstrim.timer"

is enough on systemd.




signature.asc
Description: OpenPGP digital signature


[gentoo-user] vimrc in (g)vim and highlighting

2019-10-03 Thread Samuraiii

Hi list,

I have strange problem with my ~/.vimrc file.

When I have it (does not matter if it is empty or not), the syntax 
highlighting is not working at all.


But when I delete it, vim highlights as expected (I have already tried 
to set "incompatible" mode in vimrc with no success).


Cheers

S




Re: [gentoo-user] Re: What's with KDE?

2018-11-06 Thread Samuraiii
On 5.11.2018 17:35, Nikos Chantziaras wrote:
> On 03/11/2018 06:43, Alan Grimes wrote:
>> How did they make it so that 40% of ordinary zip files I try to open
>> with konqueror fail CRC (but work perfectly from the command line)
>>
>> It used to have nice large icon mode with previews, and nice small-icons
>> in normal mode... Broken too for many months now. =\
>>
>> Akregator crashes all the time if I simply try to close a tab... It went
>> about three years without saving anything to disk when it's supposed to
>> buffer my RSS feeds. Now it's just crashtastic in the extreme...
>
> Plasma in itself is not too bad. I use Plasma, but not Konqueror or
> Akregator. Find the applications that work best for you. Just because
> you use Plasma doesn't mean you need to use the rest of KDE's
> applications ;-)
>
> My browser is Firefox, my email client is Thunderbird, my image viewer
> is eog (Eye of GNOME), etc, etc.
>
> I think my only KDE application is my file manager, which is Dolphin.
>
>
I use plasma since it got stable (on KDEish stuff since gnome 3)...

It is getting better with each emerge.

I also dropped Konqueror as file manager, first because it was ~ for a
time and the features was not that much needed as before.

And Firefox and Thunderbird is also my choice.

I usually tend to try to find QT5 based app* before other alternative
but eventually I land by best working one (kdiff compared to Meld, and
so on).


S

* even if it means using ~version




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] profile-sync-daemon "bad substitution" at boot

2018-09-06 Thread Samuraiii
On 5.9.2018 21:20, Mick wrote:
> Hi All,
>
> I just noticed a psd error at boot time:
>
> /usr/bin/profile-sync-daemon: line 325: ${#DIRArr[@]##*/}: bad substitution
>
> Any idea what's brought this about?
>
Hi,

my bet is that your /bin/sh != /bin/bash and
/usr/bin/profile-sync-daemon starts with #!/bin/sh.

The other way around /usr/bin/profile-sync-daemon contains bashishms.

You can try (as a test) to change #!/bin/sh for #!/bin/bash...

S



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] how best to encrypt a file

2018-07-03 Thread Samuraiii
On 3.7.2018 13:27, Philip Webb wrote:
> 180703 Alec Ten Harmsel wrote:
>> On Tue, Jul 03, 2018 at 05:47:22AM -0400, Philip Webb wrote:
>>> I have a couple of small files which need to be encrypted :
>>> one is simple text ( .txt ), the other a spreadsheet ( .ods ).
>>> I haven't used encryption like this before : what do others use ?
>> I have used `gpg' to do this before:
>> # Encrypt with a passphrase
>> gpg -c 
>> # Decrypt
>> gpg -d .gpg
>> I do have some files I keep encrypted locally
>> that I use `gpg' to encrypt/decrypt, but with my personal key pair.
>> For that, I use a vim plugin [1] that transparently decrypts to `/tmp',
>> lets me edit and then saves back to the original file.
>> This prevents the decrypted contents from ever being on my hard drive,
>> as I have `/tmp' mounted as tmpfs.
> Thanks, that's very helpful except that you forgot to append [1] (smile).
>
> I don't need to encrypt the files locally,
> but do need to when I create copies to up-load as off-site back-ups.
>
> Does anyone else have a useful suggestion ?
>
Hi,

there is "reverse" encfs if there are more files to encrypt for backup.

encfs --reverse ~/dir /tmp/dir

It will encrypt original files on fly as you read /tmp/dir.

I used this before (now I backup with duplicity).

S

PS: link to arch page with some more info

https://wiki.archlinux.org/index.php/EncFS#Encrypted_backup




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Chromium generic build

2018-06-05 Thread Samuraiii
On 3.6.2018 00:57, Andreas K. Huettel wrote:
> Am Freitag, 1. Juni 2018, 13:07:11 CEST schrieb Samuraiii:
>> Hello list,
>>
>> I would like to build chromium for my computers only once (USE would be
>> same across all machines).
>>
>> I run amd64, multilib on following processor types:
>>
>> Core2, Corei7, Ryzen 7 and Threadripper.
>>
>> What CFLAGS should I use for mentioned cpus?
> CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
>
> works on any amd64 machine.
> (These are the CFLAGS for libreoffice-bin, minus -g)
>
Thank you very much.

S



signature.asc
Description: OpenPGP digital signature


[gentoo-user] Chromium generic build

2018-06-01 Thread Samuraiii
Hello list,

I would like to build chromium for my computers only once (USE would be
same across all machines).

I run amd64, multilib on following processor types:

Core2, Corei7, Ryzen 7 and Threadripper.

What CFLAGS should I use for mentioned cpus?

I am possibly comfortable to build two builds (Intel and AMD one).

Is it possible to build only chromium and let all other deps be build
directly on targets?

Are there any other catches I should be aware of?

With many thanks for any previous and future help

S



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Dynamic IP address services.

2016-11-08 Thread Samuraiii
On 7.11.2016 07:17, Stroller wrote:
> Can anyone recommend a free dynamic IP address service.
>
> I've used DynDNS in the past, but I think they discontinued their free 
> accounts.
>
> I've been using DTdns.com until recently, but have somehow managed to lock 
> myself out of my account, so will need to create a new one and thought I'd 
> check here for recommendations first.
>
> All I need to do at the moment is access a single host behind a home router, 
> although it would be nice if there was a free service with room for 2 or 3 
> hosts in case I need to add more.
>
> Thanks in advance for any suggestions,
>
> Stroller.
>
>
I would recommend duckdns.org

it is free and need only curl to update...

S



signature.asc
Description: OpenPGP digital signature


[gentoo-user] kde (part of) depends on gnome?

2013-06-14 Thread Samuraiii
Hi list,

am I the only one who find this dependecy at least weird?

 
equery d app-admin/system-config-printer-gnome
 * These packages depend on app-admin/system-config-printer-gnome:
kde-base/print-manager-4.10.3 (app-admin/system-config-printer-gnome)

Just popped on me during last update ...
I have kde desktop profile with gnome masked also in global USE flag.

Have nice day S


[gentoo-user] Re: VPN vs LAN address hostname resolution

2013-05-31 Thread Samuraiii
If someone is intrested here is second (undebugged) incarnation of my
hostnames updater script:

#!/bin/sh
#verze 2.0.0_2013-05-31
lock=/var/run/hostnames-updater.pid
shmm=/dev/shm/hosts

clean () {
rm $lock
rm $shmm
}
trap clean SIGHUP SIGINT SIGTERM

/bin/echo $$  $lock
while /bin/true
tst(){
x=0
if $3 = $(/usr/bin/ssh-keyscan -p $2 $5 2/dev/null|/bin/sed 's/.*\
ssh-.*\ //g'|/usr/bin/whirpooldeep)
then
x=$5
elif /usr/bin/test $1 -gt 2
then
if $3 = $(/usr/bin/ssh-keyscan -p $2 $6 2/dev/null|/bin/sed
's/.*\ ssh-.*\ //g'|/usr/bin/whirlpooldeep)
then
x=$6
else
x=$4
fi
else
x=$4
fi
}

#host testing line is as folows
#tst number of addresses to try - some hosts do have wl and eth
interface) \
#output of  ssh-keyscan -p port address 2/dev/null|/bin/sed 's/.*\
ssh-.*\ //g'|/usr/bin/whirlpooldeep \
#fallback address - eg. vpn one address 2 address n

host 1
tst address count n port hash address 1  ... address n 21
/dev/null
host1=$x


#lets create hosts file
/bin/echo # /etc/hosts: Local Host Database
#
# This file describes a number of aliases-to-address mappings for the for
# local hosts that share this file.
#
# In the presence of the domain name service or NIS, this file may not be
# consulted at all; see /etc/host.conf for the resolution order.
#

# IPv4 and IPv6 localhost aliases
127.0.0.1$(hostname).local $(hostname) localhost
::1localhost

#
# Imaginary network.
$host1host1
#Last update $(date --rfc-3339)

#
#
# According to RFC 1918, you can use the following IP networks for private
# nets which will never be connected to the Internet:
#
#   10.0.0.0-   10.255.255.255
#   172.16.0.0  -   172.31.255.255
#   192.168.0.0 -   192.168.255.255
#
# In case you want to be able to connect directly to the Internet (i.e. not
# behind a NAT, ADSL router, etc...), you need real official assigned
# numbers.  Do not try to invent your own network numbers but instead
get one
# from your network provider (if any) or from your regional registry (ARIN,
# APNIC, LACNIC, RIPE NCC, or AfriNIC.)
#
  $shmm
/bin/mv $shmm /etc/hosts
/usr/bin/sleep 300
done


I hope I helps someone
S


[gentoo-user] Re: VPN vs LAN address hostname resolution

2013-05-31 Thread Samuraiii
I am terribly sorry but i posted wrong version (one from clipboard not
actually right one so again).
You can edit what you want (eg hashing or anything else). I don't know
how to stop it from init.d script gracefully  (for now I have there kill
-9 pid). I thing the problem is in the loop (while /bin/true).

#!/bin/sh
#verze 2.0.0_2013-05-31
lock=/var/run/hostnames-updater.pid
shmm=/dev/shm/hosts

clean () {
rm $lock
rm $shmm
}
trap clean SIGHUP SIGINT SIGTERM

/bin/echo $$  $lock
while /bin/true
do
tst(){
x=0
if /usr/bin/test $3 = $(/usr/bin/ssh-keyscan -p $2 $5
2/dev/null|/bin/sed 's/.*\ ssh-.*\ //g'|/usr/bin/whirlpooldeep)
then
x=$5
elif /usr/bin/test $1 -gt 2
then
if /usr/bin/test $3 = $(/usr/bin/ssh-keyscan -p $2 $6
2/dev/null|/bin/sed 's/.*\ ssh-.*\ //g'|/usr/bin/whirlpooldeep)
then
x=$6
else
x=$4
fi
else
x=$4
fi
}

host1
tst address count port hash fallback address address 1 ...
addressn 21 /dev/null
host1=$x
AJA




/bin/echo # /etc/hosts: Local Host Database
#
# This file describes a number of aliases-to-address mappings for the for
# local hosts that share this file.
#
# In the presence of the domain name service or NIS, this file may not be
# consulted at all; see /etc/host.conf for the resolution order.
#

# IPv4 and IPv6 localhost aliases
127.0.0.1$(hostname).local $(hostname) localhost
::1localhost

#
# Imaginary network.
$host1hostname1
#Last update $(date --rfc-3339=ns)

#
#
# According to RFC 1918, you can use the following IP networks for private
# nets which will never be connected to the Internet:
#
#   10.0.0.0-   10.255.255.255
#   172.16.0.0  -   172.31.255.255
#   192.168.0.0 -   192.168.255.255
#
# In case you want to be able to connect directly to the Internet (i.e. not
# behind a NAT, ADSL router, etc...), you need real official assigned
# numbers.  Do not try to invent your own network numbers but instead
get one
# from your network provider (if any) or from your regional registry (ARIN,
# APNIC, LACNIC, RIPE NCC, or AfriNIC.)
#
  $shmm
/bin/mv $shmm /etc/hosts
/usr/bin/sleep 120
done


[gentoo-user] VPN vs LAN address hostname resolution

2013-05-22 Thread Samuraiii
Hello,

I am trying to get hostname address resolution on my LAN and VPN with
one serious problem:
I have two networks eg. 10.1.1.0 and 10.2.2.0 which are representing
local address space for LAN (10.1.1.0/8) and VPN address space (10.2.2.0/8).
Every host has its own address suffix (eg. host foo has LAN address
10.1.1.3 and vpn address 10.2.2.3).
I would like to setup some sort resolution which would account for
availability of host on LAN:
If host foo is in same LAN and host bar the connection would be carried
through LAN interface with LAN address and NOT (as avahi is trying to
do) using VPN connection which is connecting through remote server and
is therefore *a lot* slower than LAN connection.
The LAN address is not available always but VPN is.


So my question is there something which would do this almost same as
avahi but would be capable of prioritizing interface/address?
 
Thank you for advice in advance
S




Re: [gentoo-user] VPN vs LAN address hostname resolution

2013-05-22 Thread Samuraiii

On 2013-05-22 19:52, Michael Mol wrote:
 On 05/22/2013 01:36 PM, Michael Orlitzky wrote:
 On 05/22/13 12:36, Samuraiii wrote:
 Hello,

 I am trying to get hostname address resolution on my LAN and VPN with
 one serious problem:
 I have two networks eg. 10.1.1.0 and 10.2.2.0 which are representing
 local address space for LAN (10.1.1.0/8) and VPN address space (10.2.2.0/8).
 This isn't two networks, it's one network and you've got the VPN space
 overlapping the LAN space. To oversimplify a little, Don't Do That.

 Use a separate subnet for the VPN. Then traffic to the VPN will be
 routed over the VPN interface as intended, but traffic to the LAN will
 be routed over the LAN interface. This is what you want, but right now
 the VPN and the LAN are the same network, so routing to the LAN is the
 same as routing to the VPN, and your network stack doesn't know what
 to do with it.


 To be clear, replacing /8 with /24 would do this:

 10.1.1.0/8, as a network, is really just 10.0.0.0/8. This is also true
 of 10.2.2.0/8. The bits after the first 8 are irrelevant, since a /8 is
 being used. Use /24 instead, in this case.

 It would be good for Samuraiii to read up:

 http://www.tcpipguide.com/free/t_IPAddressing.htm


I'm sorry for mistake the subnet mask for both spaces IS 255.255.255.0.
so it is not overlapping at all.
I apologise for my mistake in notation.
still this is not (mainly) problem with routing but problem with
assigning name to address.
If I had superfast internet connection I would not mind and just use vpn
address space.
So basically i need to assign lan address to computer (laptop) which is
in same location (LAN) as other machines. And vpn address on all other
computers.

to illustrate:

hostname: foo
Location:1
address eth0: 10.1.1.3
address tap0: 10.2.2.3

hotname: bar
Location: 1
addresses are irrelevant
hosts entry for foo is 10.1.1.3 *(this is what I want to update if foo
moves to location 2 to 10.2.2.3)*

hosname baz
Location: 2
addresses are irrelevant
Hosts entry for foo is 10.2.2.3 *(this is what I want to update if foo
moves to location 2 to 10.1.1.3)*

Thank you or patience
S




Re: [gentoo-user] VPN vs LAN address hostname resolution

2013-05-22 Thread Samuraiii

On 2013-05-22 20:52, Michael Orlitzky wrote:
 On 05/22/13 14:30, Samuraiii wrote:
 I'm sorry for mistake the subnet mask for both spaces IS 255.255.255.0.
 so it is not overlapping at all.
 I apologise for my mistake in notation.
 still this is not (mainly) problem with routing but problem with
 assigning name to address.
 If I had superfast internet connection I would not mind and just use vpn
 address space.
 So basically i need to assign lan address to computer (laptop) which is
 in same location (LAN) as other machines. And vpn address on all other
 computers.

 to illustrate:

 hostname: foo
 Location:1
 address eth0: 10.1.1.3
 address tap0: 10.2.2.3

 hotname: bar
 Location: 1
 addresses are irrelevant
 hosts entry for foo is 10.1.1.3 *(this is what I want to update if foo
 moves to location 2 to 10.2.2.3)*

 hosname baz
 Location: 2
 addresses are irrelevant
 Hosts entry for foo is 10.2.2.3 *(this is what I want to update if foo
 moves to location 2 to 10.1.1.3)*

 Which machines are joined to the VPN? For a location-to-location VPN,
 the simplest thing to do would be to have your gateway routers
 participate in the VPN and handle the routing appropriately. That way if
 you're on the LAN at location 1 and you send a packet to another machine
 on the same LAN (using its VPN address), the gateway router knows to
 send the packet right back onto the LAN. No configuration necessary on
 the hosts. You can use the same VPN addresses at both locations.

 If that's not possible, set up a DNS resolver at each location and
 return the appropriate (local or VPN) address.


 The only result I got was a script which every 5 minutes checked all
possible addresses of given machine (my network is not big at all -
only eight machines and one network printer). So checking around 20
addreses is not big deal - but this approach feels clumsy and not
scalable to bigger networks (as have other users from list to deal with).

Script was just checking (by sftp with public ssh keys for unprivileged
account) if LAN (eth or wifi) address is up and if not it just assigned
address to hostname from vpn range (it did not accounted if machine is
up or down). And the just write new /etc/hosts.
Central dns is possible only in one part of network - only one machine
runs 24/7.
For me personally is not problem to remember where am I - but other
users need names instead of adresses.

Routers on both sides are just simple boxes which support only built-in
dhcp.
Central DNS and/or routed VPN does not solve problem of compute not in
any of known networks.

S  



Re: [gentoo-user] A torrent client which can listen to interface

2013-04-22 Thread Samuraiii
vuze does that,,,
On 2013-04-22 19:18, Nilesh Govindrajan wrote:

 Hi,

 I'm looking for a torrent client which can listen to an interface
 instead of ips. Any pointers?


-- 
Samuraiii
e-mail: samurai.no.d...@gmail.com mailto:samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
http://pgp.mit.edu:11371/pks/lookup?search=0x80C752EAop=vindexfingerprint=onexact=on
(obtainable on http://pgp.mit.edu)
Full copy of public timestamp block http://publictimestamp.org
signatures id-17508 (from 2013-04-18 21:00:00) is included in header of
html.


[gentoo-user] OT:Courseware and client db software

2013-03-29 Thread Samuraiii samuraiii
Hello,

I'm searching for courseware/client db/support software for online use
which I need to meet this criteria:
1) possibility to lead courses for no more than 12 clients (with
uploading of files - possibility to play audio and video files is
welcome but not necessary) - I know  moodle is reasonable for this
2) possibility to communicate with each client individually
3) writing notes about each client
4) security model of all mighty admin and not so powerful course
leaders who can access clients and courses only of their own
5) creating of forms for clients

Right now these task are done through e-mail which is clumsy and not
so scalable.

I have done some research but I wasn't successful so I kindly ask here.

Have nice day
S



Re: [gentoo-user] Re: Reinstall + switch to KDE

2012-09-11 Thread Samuraiii

On 2012-09-10 20:28, Nikos Chantziaras wrote:
 On 10/09/12 19:53, Andrey Moshbear wrote:
 On Mon, Sep 10, 2012 at 12:43 PM, Nikos Chantziaras
 rea...@gmail.com wrote:
 On 10/09/12 19:12, Samuraiii wrote:

 Hello,
 because I broke me PC and I need to reinstall it I'm going ask what
 should I preserve to make install faster:

 So what *is* broken?  The hardware?  If you have a new PC, you
 simply need
 to transfer your Gentoo install to a new hard disk using rsync.

 He borked his /usr/include due to an improperly-written uninstall rule
 in a Makefile.

 Oh.  That's pretty easy to fix though.  Install a new Gentoo in a
 chroot, and then rsync its /usr/include into the real one.


The whole problem lies in that the gcc in configure phase is looking for
*/usr/local/include* and not for /usr/include...
I'm not able to find where and what has changed...

-- 
Samuraiii
e-mail: samurai.no.d...@gmail.com mailto:samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
http://pgp.mit.edu:11371/pks/lookup?search=0x80C752EAop=vindexfingerprint=onexact=on
(obtainable on http://pgp.mit.edu)
Full copy of public timestamp block http://publictimestamp.org
signatures id-15751 (from 2012-09-11 06:00:06) is included in header of
html.


signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Reinstall + switch to KDE

2012-09-11 Thread Samuraiii

On 2012-09-11 11:42, Neil Bothwick wrote:
 On Tue, 11 Sep 2012 10:27:35 +0200, Samuraiii wrote:

 The whole problem lies in that the gcc in configure phase is looking for
 */usr/local/include* and not for /usr/include...
 I'm not able to find where and what has changed...
 env | grep usr/local

 or the brute force approach

 grep -r usr/local /etc



I didn't find anything suspicious...
That's the problem:
*env | grep usr/local*
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4
MANPATH=/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.4/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.22/man:/etc/java-config/system-vm/man/:/usr/lib64/php5.4/man/
XDG_DATA_DIRS=/usr/local/share:/usr/share:/usr/share/gdm


*grep -r usr/local /etc (shortened version - no config-archive, php, *~
files and alike)*

/etc/csh.env:setenv MANPATH
'/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.4/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.22/man:/etc/java-config/system-vm/man/:/usr/lib64/php5.4/man/'
/etc/csh.env:setenv XDG_DATA_DIRS
'/usr/local/share:/usr/share:/usr/share/gdm'
/etc/ld.so.conf:/usr/local/lib64
/etc/ld.so.conf:/usr/local/lib32
/etc/ld.so.conf:/usr/local/lib
/etc/prelink.conf:-h /usr/local/lib64/
/etc/prelink.conf:-h /usr/local/lib32/
/etc/prelink.conf:-h /usr/local/lib/
/etc/X11/xinit/xinitrc.d/15-xdg-data-gnome:export
XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/
/etc/env.d/00basic:MANPATH=/usr/local/share/man:/usr/share/man
/etc/env.d/00basic:LDPATH='/lib64:/usr/lib64:/usr/local/lib64:/lib32:/usr/lib32:/usr/local/lib32:/lib:/usr/lib:/usr/local/lib'
/etc/env.d/30xdg-data-local:XDG_DATA_DIRS=/usr/local/share
/etc/make.conf:#PORTDIR_OVERLAY=/usr/local/portage
/etc/security/pam_env.conf:#PATH   
DEFAULT=${HOME}/bin:/usr/local/bin:/bin\
/etc/security/pam_env.conf:#:/usr/bin:/usr/local/bin/X11:/usr/bin/X11
/etc/profile.env:export
MANPATH='/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.4/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.22/man:/etc/java-config/system-vm/man/:/usr/lib64/php5.4/man/'
/etc/profile.env:export
XDG_DATA_DIRS='/usr/local/share:/usr/share:/usr/share/gdm'
/etc/aide/aide.conf:/usr/local/bin Binlib
/etc/aide/aide.conf:/usr/local/sbin Binlib
/etc/aide/aide.conf:/usr/local/lib Binlib
/etc/aide/aide.conf:/usr/local/man ManPages
/etc/aide/aide.conf:/usr/local/src L
/etc/aide/aide.conf:/usr/local/include L
/etc/profile:   
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}
/etc/profile:PATH=/usr/local/bin:/usr/bin:/bin:${PATH}
/etc/preload.conf:exeprefix =
!/usr/sbin/;!/usr/local/sbin/;/usr/;/opt/;/usr/libexec/;!/
/etc/zsh/zprofile:   
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}
/etc/zsh/zprofile:PATH=/usr/local/bin:/usr/bin:/bin:${PATH}




-- 
Samuraiii
e-mail: samurai.no.d...@gmail.com mailto:samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
http://pgp.mit.edu:11371/pks/lookup?search=0x80C752EAop=vindexfingerprint=onexact=on
(obtainable on http://pgp.mit.edu)
Full copy of public timestamp block http://publictimestamp.org
signatures id-15752 (from 2012-09-11 09:00:08) is included in header of
html.


signature.asc
Description: OpenPGP digital signature


[gentoo-user] Reinstall + switch to KDE

2012-09-10 Thread Samuraiii
Hello,
because I broke me PC and I need to reinstall it I'm going ask what
should I preserve to make install faster:

1. I presume that /home can be left intact.
2. I plan to backup /etc and after reinstall I'm going to diff
/etc.old with /etc to see what changed and to keep my previous changes
in config.(not to forget to change make.conf according to switch to KDE)
3. Also I'm going to keep kernel .config and /boot intact.
4. World file will be also backed-up and during reinstall I'm going to
strip it of unnecessary Gnome packages to switch to KDE.

Did I missed something? Should I take care of something else?

Thank you for your advices in advance
S


-- 
Samuraiii
e-mail: samurai.no.d...@gmail.com mailto:samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
http://pgp.mit.edu:11371/pks/lookup?search=0x80C752EAop=vindexfingerprint=onexact=on
(obtainable on http://pgp.mit.edu)
Full copy of public timestamp block http://publictimestamp.org
signatures id-15745 (from 2012-09-10 12:00:06) is included in header of
html.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Broken GCC

2012-09-08 Thread Samuraiii

On 2012-09-08 02:33, Andrey Moshbear wrote:
 On Fri, Sep 7, 2012 at 5:03 PM, Samuraiii samurai.no.d...@gmail.com wrote:


 On 2012-09-07 19:38, Andrey Moshbear wrote:
 On Fri, Sep 7, 2012 at 1:24 PM, Samuraiii samurai.no.d...@gmail.com wrote:

 Are there any tips for gentoo amd64 with core2duo?
 Google doesn't seem to give any usable answers (I don't need configure
 binhost yet)
 While I can make a binpkg for gcc:{4,5,4.6,4.7} or glibc-2.15-r2 on my
 c2d-penryn laptop, my adsl upload rate is pretty slow, so it'll take a
 while to upload it to my VPS.

 In terms of guides, a 5-second googling showed up:
 https://wiki.gentoo.org/wiki/Binary_package_guide
 http://en.gentoo-wiki.com/wiki/Using_Portage_BINHOST

 I have an idea waht about make chrooted mini install just to compile gcc
 glibc and binutils... wouldn't take so long time than upload or emerge
 -NuDe @world...
 Download stage1, chroot into it, and run
 /usr/portage/scripts/bootstrap.sh, then exit the chroot and copy
 usr/include recursively.
 However, you will still need to do emerge -e @world because the rest
 of /usr/include may still be dysfunctional.

 Also, -D -N -u is redundant when combined with -e. -e implies -D and
 -N -u is pointless when -e is used, since everything is already
 included.

After building, installig gcc glibc and binutils packages still no
luck... I thing there must be some config messed  rather than package.


-- 
Samuraiii
e-mail: samurai.no.d...@gmail.com mailto:samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
http://pgp.mit.edu:11371/pks/lookup?search=0x80C752EAop=vindexfingerprint=onexact=on
(obtainable on http://pgp.mit.edu)
Full copy of public timestamp block http://publictimestamp.org
signatures id-15728 (from 2012-09-08 09:00:06) is included in header of
html.



signature.asc
Description: OpenPGP digital signature


[gentoo-user] Broken GCC

2012-09-07 Thread Samuraiii
 sse2 sse3 sse4 smp
USE_SSS_SERVER=apache2 ftp vnc socks5 sasl radius
USE_SSS_SYS=xattr usb udev ipv6 sysvipc syslog nls pam unicode acl acpi
multilib ieee1394
USE_SSS_VIDEO_CODEC=xvid x264 ffmpeg videos vcd v4l theora quicktime
mplayer mpeg mp4 matroska dvd css 
USE_SSS_VIDEO_HW=nvidia vdpau opengl directfb dri
USE_SSS_XORG=xosd xscreensaver libnotify X dbus
VBOX_APP_HOME=/usr/lib64/virtualbox
VIDEO_CARDS=nvidia
XAUTHORITY=/var/run/gdm/auth-for-a-mK9RF3/database
XDG_CONFIG_DIRS=/etc/xdg
XDG_DATA_DIRS=/usr/local/share:/usr/share:/usr/share/gdm
XTABLES_ADDONS=quota2 psd pknock lscan length2 ipv4options ipset ipp2p
iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark
dhcpmac delude chaos account
_=/usr/bin/emerge




cat /etc/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS=-march=core2 -O2 -pipe
CXXFLAGS=${CFLAGS}

# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before
changing.
CHOST=x86_64-pc-linux-gnu

# These are the USE flags that were used in addition to what is provided
by the
# profile used for building.

USE_SSS_AUDIO_HW=sound alsa pulseaudio gstreamer

USE_SSS_AUDIO_CODEC=mp3 flac wavpack cdparanoia vorbis ogg a52 aac dts
encode \
lame taglib jingle

USE_SSS_BROWSER=firefox nsplugin rss mime mbox

USE_SSS_CD_DVD=cdda cddb cdinstall cdr dvdr

USE_SSS_COMPRESS=zlib lzma lzo gzip bzip2

USE_SSS_DEV_DB=system-sqlite mysqli flatfile

USE_SSS_DEV_LANG=xml java javascript latex php pcre

USE_SSS_GNOME=gtk gnome gnome-keyring

USE_SSS_GRAPHIC=tiff imagemagic gimp gif jpeg truetype svg sdl scanner \
png mng gphoto2 gnuplot gd exif dga 

USE_SSS_MISC=symlink nocd offensive zsh-completion branding clamav
cracklib \
crypt examples mhash ncurses clamav aalib cvs subversion \
geoip gpm hscolour iconv libcaca mad modules rdesktop source spell
tidy \
wxwidgets xvmc
   
USE_SSS_NET=xmpp wifi adns curl curlwrappers gnutls ssl tcpd
networkmanager \
bluetooth jabber 

USE_SSS_PRINT=cups djvu foomaticdb pdf ppds

USE_SSS_PROC=mmx sse sse2 sse3 sse4 smp

USE_SSS_SERVER=apache2 ftp vnc socks5 sasl radius

USE_SSS_SYS=xattr usb udev ipv6 sysvipc syslog nls pam unicode acl acpi
multilib \
ieee1394

USE_SSS_VIDEO_HW=nvidia vdpau opengl directfb dri

USE_SSS_VIDEO_CODEC=xvid x264 ffmpeg videos vcd v4l theora quicktime
mplayer mpeg \
mp4 matroska dvd css 

USE_SSS_XORG=xosd xscreensaver libnotify X dbus

USE_SSS_EXCLUDE=-qt4 -plasma -pda -lirc -kontact -kolab -kde -ipod -ios
-evo -emboss \
-accessibility -3dnow

USE=${USE_SSS_AUDIO_HW} ${USE_SSS_AUDIO_CODEC} ${USE_SSS_BROWSER}
${USE_SSS_CD_DVD} \
${USE_SSS_COMPRESS} ${USE_SSS_DEV_DB} ${USE_SSS_DEV_LANG}
${USE_SSS_GNOME} \
${USE_SSS_GRAPHIC} ${USE_SSS_MISC} ${USE_SSS_NET} ${USE_SSS_PRINT}
${USE_SSS_PROC} \
${USE_SSS_SERVER} ${USE_SSS_SYS} ${USE_SSS_VIDEO_HW}
${USE_SSS_VIDEO_CODEC} \
${USE_SSS_XORG} ${USE_SSS_EXCLUDE}

MAKEOPTS=-j7

SYNC=rsync://rsync.europe.gentoo.org/gentoo-portage
EMERGE_DEFAULT_OPTS=--quiet-build --jobs=4 --load-average=3.0
--with-bdeps=y --ask -v --ask-enter-invalid
PORTAGE_NICENESS=15
ACCEPT_LICENSE=*
CLEAN_DELAY=12
FEATURES=candy compress-build-logs ebuild-locks fail-clean sandbox\
parallel-fetch parallel-install userfetch userpriv usersandbox
usersync \
metadata-transfer

INPUT_DEVICES=evdev
VIDEO_CARDS=nvidia
LINGUAS=cs en_GB en
PORTGE_COMPRESS=xz
PORTGE_COMPRESS_FLAGS=-9 -e
GENTOO_MIRRORS=http://gentoo.mirror.dkm.cz/pub/gentoo/
http://gentoo.supp.name/ \
http://gentoo.mneisen.org/ http://ftp.fi.muni.cz/pub/linux/gentoo/ \
http://gentoo.mirror.web4u.cz/;
PORTAGE_TMPDIR=/tmp
APACHE2_MODULES=actions alias auth_basic authn_alias authn_anon authn_dbm \
authn_default authn_file authz_dbm authz_default authz_groupfile \
authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock \
deflate dir disk_cache env expires ext_filter file_cache filter
headers \
include info log_config logio mem_cache mime mime_magic negotiation \
rewrite setenvif speling status unique_id userdir usertrack vhost_alias

#PORTDIR_OVERLAY=/usr/local/portage
#DISTCC_HOSTS=localhost/3# distcc@aja/2,cpp,lzo distcc@mami,cpp,lzo
#DISTCC_VERBOSE=1
#DISTCC_SSH=/etc/distcc/distcc-wrp



-- 
Samuraiii
e-mail: samurai.no.d...@gmail.com mailto:samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
http://pgp.mit.edu:11371/pks/lookup?search=0x80C752EAop=vindexfingerprint=onexact=on
(obtainable on http://pgp.mit.edu)
Full copy of public timestamp block http://publictimestamp.org
signatures id-15719 (from 2012-09-07 06:00:07) is included in header of
html.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Broken GCC

2012-09-07 Thread Samuraiii

  
  

  
  


On 2012-09-07 11:49, Andrey Moshbear
  wrote:


  On Fri, Sep 7, 2012 at 5:47 AM, Andrey Moshbear andrey@gmail.com wrote:

  
On Fri, Sep 7, 2012 at 4:46 AM, Samuraiii samurai.no.d...@gmail.com wrote:


  Hello
yesterday I probably broke my GCC

Problem is following:
When i try to emerge ANY package it fails with this :

checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in
`/tmp/portage/www-client/links-2.6/work/links-2.6':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details


Can you post the contents of config.log to a pastebin and link to it in a reply?

  
  Specifically,  .../portage/www-client/links-2.6/work/links-2.6/config.log



Here it is http://pastebin.com/s59mU9fm

  --
  
Samuraiii
e-mail: samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id-15719 (from 2012-09-07 06:00:07) is included in
header of html.
  

  



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Broken GCC

2012-09-07 Thread Samuraiii

  
  

  
  


On 2012-09-07 13:04, William Kenworthy
  wrote:


  On Fri, 2012-09-07 at 12:46 +0200, Samuraiii wrote:

  


On 2012-09-07 11:49, Andrey Moshbear wrote:



  On Fri, Sep 7, 2012 at 5:47 AM, Andrey Moshbear andrey@gmail.com wrote:

  
On Fri, Sep 7, 2012 at 4:46 AM, Samuraiii samurai.no.d...@gmail.com wrote:


  Hello
yesterday I probably broke my GCC

Problem is following:
When i try to emerge ANY package it fails with this :

checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in
`/tmp/portage/www-client/links-2.6/work/links-2.6':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details


Can you post the contents of config.log to a pastebin and link to it in a reply?

  
  Specifically,  .../portage/www-client/links-2.6/work/links-2.6/config.log



Here it is http://pastebin.com/s59mU9fm

--
Samuraiii
e-mail: samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA (obtainable on http://pgp.mit.edu)
Full copy of public timestamp block signatures id-15719 (from
2012-09-07 06:00:07) is included in header of html. 

  
  

conftest.c:11:19: fatal error: /usr/local/include/stdio.h: Permission
denied


BillK






What next?
ls -l /usr/local/include/stdio.h
ls: cannot access /usr/local/include/stdio.h: No such file or
directory

  



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Broken GCC

2012-09-07 Thread Samuraiii

  
  

  
  


On 2012-09-07 17:37, Andrey Moshbear
  wrote:


  On Fri, Sep 7, 2012 at 7:04 AM, William Kenworthy bi...@iinet.net.au wrote:

  
On Fri, 2012-09-07 at 12:46 +0200, Samuraiii wrote:


  

On 2012-09-07 11:49, Andrey Moshbear wrote:


  
On Fri, Sep 7, 2012 at 5:47 AM, Andrey Moshbear andrey@gmail.com wrote:


  On Fri, Sep 7, 2012 at 4:46 AM, Samuraiii samurai.no.d...@gmail.com wrote:

  
Hello
yesterday I probably broke my GCC

Problem is following:
When i try to emerge ANY package it fails with this :

checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in
`/tmp/portage/www-client/links-2.6/work/links-2.6':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

  
  Can you post the contents of config.log to a pastebin and link to it in a reply?


Specifically,  .../portage/www-client/links-2.6/work/links-2.6/config.log


  
  Here it is http://pastebin.com/s59mU9fm

--
Samuraiii
e-mail: samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA (obtainable on http://pgp.mit.edu)
Full copy of public timestamp block signatures id-15719 (from
2012-09-07 06:00:07) is included in header of html.




conftest.c:11:19: fatal error: /usr/local/include/stdio.h: Permission
denied


  
  Indeed. The question here is what's more concerning: the use of
/usr/local in the default gcc arguments or not having root:root 644
for the files in a global include dir.



I was thinkig if its possible to "half-reinstall" system by
preserving (read making backup) my hand modified config and then
download stage3 untar it to / (from live cd) , restore config, sync,
emerge -NuDe @world and reboot?
-- 
  
    Samuraiii
e-mail: samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id- (from ) is included in header of html.
  

  



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Broken GCC

2012-09-07 Thread Samuraiii

  
  

  
  


On 2012-09-07 17:44, Michael Mol wrote:


  On Fri, Sep 7, 2012 at 11:35 AM, Samuraiii samurai.no.d...@gmail.com wrote:

  
On 2012-09-07 13:04, William Kenworthy wrote:

On Fri, 2012-09-07 at 12:46 +0200, Samuraiii wrote:

On 2012-09-07 11:49, Andrey Moshbear wrote:

On Fri, Sep 7, 2012 at 5:47 AM, Andrey Moshbear andrey@gmail.com
wrote:

On Fri, Sep 7, 2012 at 4:46 AM, Samuraiii samurai.no.d...@gmail.com wrote:

Hello
yesterday I probably broke my GCC

Problem is following:
When i try to emerge ANY package it fails with this :

checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in
`/tmp/portage/www-client/links-2.6/work/links-2.6':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

Can you post the contents of config.log to a pastebin and link to it in a
reply?

Specifically,  .../portage/www-client/links-2.6/work/links-2.6/config.log

Here it is http://pastebin.com/s59mU9fm

--
Samuraiii
e-mail: samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA (obtainable on http://pgp.mit.edu)
Full copy of public timestamp block signatures id-15719 (from
2012-09-07 06:00:07) is included in header of html.

conftest.c:11:19: fatal error: /usr/local/include/stdio.h: Permission
denied


BillK




What next?
ls -l /usr/local/include/stdio.h
ls: cannot access /usr/local/include/stdio.h: No such file or directory

  
  Any idea why you'd have anything under /usr/local? On Gentoo, that's
usually unnecessary. (Or always unnecessary, if you care to make a
personal overlay to have your personal packages integrated
properly...not that hard, actually)




That wasn't intentionally made...
-- 
  
Samuraiii
e-mail: samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id- (from ) is included in header of html.
  

  



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Broken GCC

2012-09-07 Thread Samuraiii

  
  

  
  


On 2012-09-07 18:09, Michael Mol wrote:


  On Fri, Sep 7, 2012 at 11:57 AM, Samuraiii samurai.no.d...@gmail.com wrote:

  


On 2012-09-07 17:44, Michael Mol wrote:

On Fri, Sep 7, 2012 at 11:35 AM, Samuraiii samurai.no.d...@gmail.com
wrote:

On 2012-09-07 13:04, William Kenworthy wrote:

On Fri, 2012-09-07 at 12:46 +0200, Samuraiii wrote:

On 2012-09-07 11:49, Andrey Moshbear wrote:

On Fri, Sep 7, 2012 at 5:47 AM, Andrey Moshbear andrey@gmail.com
wrote:

On Fri, Sep 7, 2012 at 4:46 AM, Samuraiii samurai.no.d...@gmail.com wrote:

Hello
yesterday I probably broke my GCC

Problem is following:
When i try to emerge ANY package it fails with this :

checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in
`/tmp/portage/www-client/links-2.6/work/links-2.6':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

Can you post the contents of config.log to a pastebin and link to it in a
reply?

Specifically,  .../portage/www-client/links-2.6/work/links-2.6/config.log

Here it is http://pastebin.com/s59mU9fm

--
Samuraiii
e-mail: samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA (obtainable on http://pgp.mit.edu)
Full copy of public timestamp block signatures id-15719 (from
2012-09-07 06:00:07) is included in header of html.

conftest.c:11:19: fatal error: /usr/local/include/stdio.h: Permission
denied


BillK




What next?
ls -l /usr/local/include/stdio.h
ls: cannot access /usr/local/include/stdio.h: No such file or directory

Any idea why you'd have anything under /usr/local? On Gentoo, that's
usually unnecessary. (Or always unnecessary, if you care to make a
personal overlay to have your personal packages integrated
properly...not that hard, actually)


That wasn't intentionally made...

  
  Intentional or not, do you have any idea how it might have gotten
there? Or what you did that might have caused things to look there?

If we knew more, we could tell you more about how to fix it, and even
how better to do what you had been trying to do.




I must admit that this is my lame fault:

I had some issues with pidgin-otr/libotr so I stupidly thought that
I can get me latest version myslef. 
*But* when I run configure; make; make install it wasn't working as
expected so I just stupidly tried to issue make uninstall and that
probably made this problem

I feel so embarrased
S


-- 
  
Samuraiii
e-mail: samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id- (from ) is included in header of html.
  

  



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Broken GCC

2012-09-07 Thread Samuraiii

  
  

  
  


On 2012-09-07 18:03, Michael Mol wrote:


  On Fri, Sep 7, 2012 at 11:56 AM, Samuraiii samurai.no.d...@gmail.com wrote:

  


On 2012-09-07 17:37, Andrey Moshbear wrote:

On Fri, Sep 7, 2012 at 7:04 AM, William Kenworthy bi...@iinet.net.au
wrote:

On Fri, 2012-09-07 at 12:46 +0200, Samuraiii wrote:

On 2012-09-07 11:49, Andrey Moshbear wrote:

On Fri, Sep 7, 2012 at 5:47 AM, Andrey Moshbear andrey@gmail.com
wrote:

On Fri, Sep 7, 2012 at 4:46 AM, Samuraiii samurai.no.d...@gmail.com wrote:

Hello
yesterday I probably broke my GCC

Problem is following:
When i try to emerge ANY package it fails with this :

checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in
`/tmp/portage/www-client/links-2.6/work/links-2.6':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

Can you post the contents of config.log to a pastebin and link to it in a
reply?

Specifically,  .../portage/www-client/links-2.6/work/links-2.6/config.log

Here it is http://pastebin.com/s59mU9fm

--
Samuraiii
e-mail: samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA (obtainable on http://pgp.mit.edu)
Full copy of public timestamp block signatures id-15719 (from
2012-09-07 06:00:07) is included in header of html.

conftest.c:11:19: fatal error: /usr/local/include/stdio.h: Permission
denied

Indeed. The question here is what's more concerning: the use of
/usr/local in the default gcc arguments or not having root:root 644
for the files in a global include dir.

I was thinkig if its possible to "half-reinstall" system by preserving (read
making backup) my hand modified config and then download stage3 untar it to
/ (from live cd) , restore config, sync, emerge -NuDe @world and reboot?

  
  I've done that, and it can work, but you're probably better off
reinstalling gcc via binpkgs. Someone probably has a repository that
matches your configuration enough for the purpose.




Are there any tips for gentoo amd64 with core2duo?
Google doesn't seem to give any usable answers (I don't need
configure binhost yet) 

-- 
  
    Samuraiii
e-mail: samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id- (from ) is included in header of html.
  

  



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Broken GCC

2012-09-07 Thread Samuraiii



On 2012-09-07 19:38, Andrey Moshbear wrote:
 On Fri, Sep 7, 2012 at 1:24 PM, Samuraiii samurai.no.d...@gmail.com wrote:

 Are there any tips for gentoo amd64 with core2duo?
 Google doesn't seem to give any usable answers (I don't need configure
 binhost yet)
 While I can make a binpkg for gcc:{4,5,4.6,4.7} or glibc-2.15-r2 on my
 c2d-penryn laptop, my adsl upload rate is pretty slow, so it'll take a
 while to upload it to my VPS.

 In terms of guides, a 5-second googling showed up:
 https://wiki.gentoo.org/wiki/Binary_package_guide
 http://en.gentoo-wiki.com/wiki/Using_Portage_BINHOST

I have an idea waht about make chrooted mini install just to compile gcc
glibc and binutils... wouldn't take so long time than upload or emerge
-NuDe @world...

-- 
Samuraiii
e-mail: samurai.no.d...@gmail.com mailto:samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
http://pgp.mit.edu:11371/pks/lookup?search=0x80C752EAop=vindexfingerprint=onexact=on
(obtainable on http://pgp.mit.edu)
Full copy of public timestamp block http://publictimestamp.org
signatures id- (from ) is included in header of html.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] systemd and gnome3

2012-07-20 Thread Samuraiii
Hi,
I would be also interested in such configuration preview.
S

On 2012-07-20 11:56, Stefan G. Weichinger wrote:
 Does anyone use systemd on gentoo, with gnome3?

 Would someone share a tarball of /etc/systemd/system with me (off-list)
 so I could figure out what services and stuff are needed?

 Tried to follow the wiki-pages, but somehow after logging into gdm the
 session hangs ...

 Thanks, Stefan


-- 
Samuraiii
e-mail: samurai.no.d...@gmail.com mailto:samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
http://pgp.mit.edu:11371/pks/lookup?search=0x80C752EAop=vindexfingerprint=onexact=on
(obtainable on http://pgp.mit.edu)
Full copy of public timestamp block http://publictimestamp.org
signatures id- (from ) is included in header of html.




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Nvidia 295.59 driver on kernel 3.3.8

2012-06-25 Thread Samuraiii

On 2012-06-24 23:57, walt wrote:
 On 06/24/2012 12:13 PM, Samuraiii wrote:
 The driver 295.59 builds just fine against kernel 3.2.12
 So problem _MUST_ be somewhere around kernel.
 A perfectly reasonable conclusion. (My own perfectly reasonable conclusions
 are often wrong ;)

 Maybe you could install vanilla-sources and see if you have the same
 problem.  Or, just remove the gentoo-sources and reinstall from scratch?



OK I'll try vanilla...
By reinstall from scratch you mean to unmerge just gentoo-sources or
reinstall whole system?
 
-- 
Samuraiii
e-mail: samurai.no.d...@gmail.com mailto:samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
http://pgp.mit.edu:11371/pks/lookup?search=0x80C752EAop=vindexfingerprint=onexact=on
(obtainable on http://pgp.mit.edu)
Full copy of public timestamp block http://publictimestamp.org
signatures id-15123 (from 2012-06-24 18:00:09) is included in header of
html.




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Nvidia 295.59 driver on kernel 3.3.8

2012-06-25 Thread Samuraiii

  
  

  
  


On 2012-06-24 23:57, walt wrote:


  On 06/24/2012 12:13 PM, Samuraiii wrote:

  
The driver 295.59 builds just fine against kernel 3.2.12
So problem _MUST_ be somewhere around kernel.

  
  A perfectly reasonable conclusion. (My own perfectly reasonable conclusions
are often wrong ;)

Maybe you could install vanilla-sources and see if you have the same
problem.  Or, just remove the gentoo-sources and reinstall from scratch?





So with vanilla is the same problem, removing gentoo-sources
(complete removal - I kept just .config file) also didn't helped.
S
-- 
  
Samuraiii
e-mail: samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id-15131 (from 2012-06-25 18:00:07) is included in
header of html.
  



  



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Nvidia 295.59 driver on kernel 3.3.8

2012-06-25 Thread Samuraiii

  
  

  
  


On 2012-06-25 23:28, Nikos Chantziaras
  wrote:

On 25/06/12
  22:28, Samuraiii wrote:
  
  So with vanilla
is the same problem, removing gentoo-sources (complete

removal - I kept just .config file) also didn't helped.

  
  
  I guess it's time to open a bug about it on bugs.gentoo.org.
  
  
  

The bug for gentoo is unnecessary - bug is sitting on my chair...
The problem was combination of umask setting in /etc/profile (umask
077) later corrected to 022 but not sourced to root and "user*"
features in /etc/make.conf.

I feel so embarassed. 
Thank you all for your help 
S
-- 
  
    Samuraiii
e-mail: samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id-15131 (from 2012-06-25 18:00:07) is included in
header of html.
  



  



signature.asc
Description: OpenPGP digital signature


[gentoo-user] Nvidia 295.59 driver on kernel 3.3.8

2012-06-24 Thread Samuraiii
qt3support quicktime radius raw rdesktop readline rss sasl scanner sdl
session smp socialweb socks5 sound source spell sse sse2 sse3 sse4 ssl
startup-notification subversion svg symlink syslog system-sqlite sysvipc
szip taglib tcpd theora tidy tiff truetype udev udisks unicode upower
usb v4l vcd vdpau videos vnc vorbis wavpack wifi wxwidgets x264 xattr
xcb xface xml xmpp xorg xosd xscreensaver xulrunner xv xvid xvmc zlib
zsh-completion ALSA_CARDS=ali5451 als4000 atiixp atiixp-modem bt87x
ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel
intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem
ymfpci ALSA_PCM_PLUGINS=adpcm alaw asym copy dmix dshare dsnoop empty
extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul
mulaw multi null plug rate route share shm softvol
APACHE2_MODULES=actions alias auth_basic authn_alias authn_anon
authn_dbm authn_default authn_file authz_dbm authz_default
authz_groupfile authz_host authz_owner authz_user autoindex cache dav
dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache
filter headers include info log_config logio mem_cache mime mime_magic
negotiation rewrite setenvif speling status unique_id userdir usertrack
vhost_alias CALLIGRA_FEATURES=kexi words flow plan sheets stage tables
krita karbon braindump CAMERAS=ptp2 COLLECTD_PLUGINS=df interface
irq load memory rrdtool swap syslog ELIBC=glibc
GPSD_PROTOCOLS=ashtech aivdm earthmate evermore fv18 garmin garmintxt
gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore
rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx
INPUT_DEVICES=evdev KERNEL=linux LCD_DEVICES=bayrad cfontz
cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text
LIBREOFFICE_EXTENSIONS=presenter-console presenter-minimizer
LINGUAS=cs en_GB en PHP_TARGETS=php5-3 PYTHON_TARGETS=python3_2
python2_7 RUBY_TARGETS=ruby18 ruby19 USERLAND=GNU
VIDEO_CARDS=nvidia XTABLES_ADDONS=quota2 psd pknock lscan length2
ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq
steal rawnat logmark ipmark dhcpmac delude chaos account
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL,
PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON



-- 
Samuraiii
e-mail: samurai.no.d...@gmail.com mailto:samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
http://pgp.mit.edu:11371/pks/lookup?search=0x80C752EAop=vindexfingerprint=onexact=on
(obtainable on http://pgp.mit.edu)
Full copy of public timestamp block http://publictimestamp.org
signatures id-15120 (from 2012-06-24 09:00:08) is included in header of
html.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Nvidia 295.59 driver on kernel 3.3.8

2012-06-24 Thread Samuraiii

On 2012-06-24 17:13, Nikos Chantziaras wrote:
 On 24/06/12 17:58, Alex Schuster wrote:
 Nikos Chantziaras writes:

 On 24/06/12 13:49, Samuraiii wrote:
 Hello,
 yesterday I run emerge and run into problem with Nvidia 295.59 driver
 on kernel 3.3.8. 
 It won't compile (also broadcom-sta driver won't rebuild)
 [...]
 Linux-3.2.12-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8300_@_2.40GHz-with-gentoo-2.1


 You're running 3.2.12.  Your active kernel source is 3.3.8.

 This cannot work.

 Why not?

 Either use 3.2.12 as your active source, or build a
 3.3.8 kernel.

 He has built 3.3.8 already, he is just not using it yet.

 If it's built, then it should work.  The OP didn't mention it, so I
 assumed 3.3.8 was not built :-/

 In that case, trying the latest driver (302.17) is the best option.


Exactly I've built 3.3.8 (and waiting to get all modules ready before I
boot it) and with 302.17 is the same problem - no built because of
'Unable to determine...' problem (already tested this option).
-- 
Samuraiii
e-mail: samurai.no.d...@gmail.com mailto:samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
http://pgp.mit.edu:11371/pks/lookup?search=0x80C752EAop=vindexfingerprint=onexact=on
(obtainable on http://pgp.mit.edu)
Full copy of public timestamp block http://publictimestamp.org
signatures id-15122 (from 2012-06-24 15:00:08) is included in header of
html.





signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Nvidia 295.59 driver on kernel 3.3.8

2012-06-24 Thread Samuraiii

On 2012-06-24 19:54, Mark Knecht wrote:
 On Sun, Jun 24, 2012 at 3:49 AM, Samuraiii samurai.no.d...@gmail.com wrote:
 Hello,
 yesterday I run emerge and run into problem with Nvidia 295.59 driver on
 kernel 3.3.8.
 It won't compile (also broadcom-sta driver won't rebuild)
 I've read the thread 'Nvidia-drivers + kernel 3.4' but no help for me
 (files from first post don't exist).
 Google didn't helped me so I ask here. (all outpust here are taken with
 --ignore-default-opts)

 my:
 ##EMERGE
 output###
  emerge -1 --ignore-default-opts x11-drivers/nvidia-drivers
 I don't know about the --ignore-default-opts thing. I don't use that
 here and I'm running 3.3.8 + nvidia-drivers-302.17 with no problems.
That

--ignore-default-opts thing

is there to get compile output and ignore some other settings I have in
/etc/make.conf. I use this option when something (as here) goes wrong to
see where it happend.

 c2stable ~ # uname -a
 Linux c2stable 3.3.8-gentoo #1 SMP PREEMPT Thu Jun 21 13:06:44 PDT
 2012 x86_64 Intel(R) Core(TM) i7 CPU X 980 @ 3.33GHz GenuineIntel
 GNU/Linux
 c2stable ~ #

 c2stable ~ # eix -Ic nvidia
 [I] media-video/nvidia-settings (302.11{tbz2}@06/18/2012): NVIDIA
 Linux X11 Settings Utility
 [I] x11-drivers/nvidia-drivers (302.17{tbz2}@06/21/2012): NVIDIA X11
 driver and GLX libraries
 Found 2 matches.
 c2stable ~ #

 1) Along the lines of Nikos' suggestion did you properly set the linux
 link in /usr/src to point at 3.3.8?

 c2stable ~ # ls -la /usr/src/
 total 16
 drwxr-xr-x  4 root root 4096 Jun 24 09:17 .
 drwxr-xr-x 14 root root 4096 Dec 23  2011 ..
 -rw-r--r--  1 root root0 Mar 24  2010 .keep
 lrwxrwxrwx  1 root root   18 Jun 21 12:57 linux - linux-3.3.8-gentoo
 drwxr-xr-x 24 root root 4096 Jun 15 09:01 linux-3.2.12-gentoo
 drwxr-xr-x 24 root root 4096 Jun 21 13:07 linux-3.3.8-gentoo
 c2stable ~ #
I have set symlink use flag on gentoo-sources to get symlink
automatically updated (and link is OK).
 2) Here are make.conf and portage.X package data. Maybe they will
 help. I'm updated to xorg-1.12  mesa-8 as of this morning.

 c2stable ~ # cat /etc/make.conf | grep USE
 USE=gstreamer java jpeg2k ssse3 xinerama truetype type1 cleartype
 corefonts vdpau xvmc -bluetooth -cups -ipv6
 c2stable ~ #

 c2stable ~ # cat /etc/portage/package.use
 app-emulation/vmware-tools  vmware_guest_linux vmware_guest_windows
 dev-lang/python sqlite

 sys-fs/udev extras
 sys-block/parted device-mapper

 dev-vcs/subversion java

 mail-mta/ssmtp mailwrapper

 dev-libs/libgcrypt static-libs
 dev-libs/libgpg-error static-libs

 dev-util/kdevplatform subversion
 x11-libs/qt-declarative private-headers
 x11-libs/qt-script private-headers
 x11-libs/qt-core private-headers
 x11-libs/qt-gui private-headers

 =x11-libs/libdrm-2.4.26 video_cards_vmware
 sys-apps/pciutils -zlib

 app-text/ghostscript-gpl cups

 =sys-libs/zlib-1.2.5.1-r2 minizip

 x11-libs/cairo -qt4
 media-libs/mesa llvm g3dvl
 c2stable ~ #


 c2stable ~ # cat /etc/portage/package.keywords
 sys-apps/portage ~*
 app-portage/eix ~amd64
 app-emulation/virtualbox ~amd64
 app-emulation/virtualbox-modules ~amd64
 app-emulation/virtualbox-additions ~amd64
 app-emulation/virtualbox-extpack-oracle ~amd64
 x11-drivers/xf86-video-virtualbox ~amd64
 x11-drivers/xf86-input-virtualbox ~amd64
 app-emulation/vmware-modules ~amd64
 app-emulation/vmware-tools ~amd64
 app-emulation/vmware-player ~amd64
 x11-drivers/nvidia-drivers ~amd64
 media-video/nvidia-settings ~amd64
 net-im/skype ~amd64
 dev-lang/R ~amd64
 media-video/handbrake ~amd64
 sys-apps/dstat ~amd64

 app-admin/checkrestart ~amd64

 www-client/google-chrome ~amd64
 app-shells/push ~amd64
 c2stable ~ #
To this (Thank you for such extensive help):
 I'm running Gnome 3 so xorg-server is at home by me for longer time
(as unstable before)  mesa got upgraded when that driver should get
upgraded to.
My system IS NOT ~amd64 wholly  - just gnome3 related stuff and some
other packages (racket, skype, oracle-jdk,...)

 HTH,
 Mark

The driver 295.59 builds just fine against kernel 3.2.12
So problem _MUST_ be somewhere around kernel.
S
-- 
Samuraiii
e-mail: samurai.no.d...@gmail.com mailto:samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
http://pgp.mit.edu:11371/pks/lookup?search=0x80C752EAop=vindexfingerprint=onexact=on
(obtainable on http://pgp.mit.edu)
Full copy of public timestamp block http://publictimestamp.org
signatures id-15122 (from 2012-06-24 15:00:08) is included in header of
html.





signature.asc
Description: OpenPGP digital signature


[gentoo-user] «-»: [gentoo-user] Distcc advice needed

2012-06-05 Thread Samuraiii

  
  

  Thanks for help, this problem is not the one that aches me right
  now - and when I re-thaught it again I simply realized that it
  dissapeared.
  
  BUT
  Do somebody know how from distcc tell ssh which port to use to
  connect to remote machine - all of "my" computers use nonstandard
  ssh port - I know I can utilize ~/.ssh/config but how to use it
  for "portage" user that runs distcc from emerge?
  
  I tried 
  http://en.gentoo-wiki.com/wiki/Distcc_over_SSH
  
  But got stuck on those ports
  
  I do not want to use distcc daemon - I prefere ssh because in that
  way there sits only one daemon when is Im not compilinig instead
  of two (open ports, resources,)
  
  S



On 2012-06-04 09:48, Daniel Wagener wrote:

  On Sun, 03 Jun 2012 16:44:19 +0200
Samuraiii samurai.no.d...@gmail.com wrote:


  
Hello friends,
I'm in need of good advice.
I have 3 computers running gentoo and want to utilise all of them for
distcc compiling - the emerging computer would be everytime different.
Two machines are amd64 and one is x86 and this appears to be problem.
According to  http://www.gentoo.org/doc/en/cross-compiling-distcc.xml I
need to edit some symlinks and if I'm going to emerge on either amd64 or
X86.
The problem is that wrapper script which calls c++ gcc g++ with
architecture prefix.
Is there a workaroud so that I do not need to change those symliks
everytime Im going to emerge on different arch? 

Thanks for reply in advance
S

  
  You are going to need seperate toolchains, where afaik there are only two ways to tell them apart. The first is the path you install it in, the other is the binary code itself (and that only tells you they differ, not which one is for a defined arch).

So your best choice are those symlinks im afraid.
However, you can automate this process, maybe eselect can already do that for you, have not checked that yet.




    -- 
  
Samuraiii
e-mail: samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id-14969 (from 2012-06-05 12:00:10) is included in
header of html.
  

  



signature.asc
Description: OpenPGP digital signature


[gentoo-user] «-»: [gentoo-user] Re: [gentoo-user] «-»: [gentoo-user] Distcc advice needed

2012-06-05 Thread Samuraiii

  
  

  I've overcome that problem by modifying ssh wrapper script by
  adding -F /location/of/.ssh/config
  Right now Im going to test it
  S
  



On 2012-06-05 18:00, Michael Mol wrote:

  On Tue, Jun 5, 2012 at 11:43 AM, Samuraiii samurai.no.d...@gmail.com wrote:

  
Thanks for help, this problem is not the one that aches me right now - and
when I re-thaught it again I simply realized that it dissapeared.

BUT
Do somebody know how from distcc tell ssh which port to use to connect to
remote machine - all of "my" computers use nonstandard ssh port - I know I
can utilize ~/.ssh/config but how to use it for "portage" user that runs
distcc from emerge?

  
  It looks like distcc sets up its home directory (from SSH's
perspective) as /etc/distcc. So you would want to edit
"/etc/distcc/.ssh/config"

[snip]


    

    -- 
  
Samuraiii
e-mail: samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id-14970 (from 2012-06-05 15:00:07) is included in
header of html.
  

  



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Distcc advice needed

2012-06-05 Thread Samuraiii
The Subject problem was solved and about that html thing I don't why it
is doing so...
I have specially set this lists address to prefers plain text messages
(option settable for each recipient)
S

On 2012-06-05 19:44, Michael Mol wrote:
 On Tue, Jun 5, 2012 at 12:53 PM, Samuraiii samurai.no.d...@gmail.com wrote:
 I've overcome that problem by modifying ssh wrapper script by adding -F
 /location/of/.ssh/config
 Right now Im going to test it
 S
 BTW, your email client is doing some very bad things to messages it replies 
 to.

 1) It breaks threading.
 2) It does bad rewriting of subjects. (I'm replying to a message
 titled [gentoo-user] «-»: [gentoo-user] Re: [gentoo-user] «-»:
 [gentoo-user] Distcc advice needed)
 3) It's sending HTML emails which explicitly sets the font size of the
 text being quoted. (On my system, as an example, this results in it
 being absolutely tiny.

 http://img339.imageshack.us/img339/343/be1q.png
 http://img580.imageshack.us/img580/5522/be2o.png

 You're also top-posting, but (IMO) that's minor in comparison to the
 issues I'm describing. Heck, I probably wouldn't care that much if it
 didn't break threading and explicitly set font sizes.

 [snip]


-- 
Samuraiii
e-mail: samurai.no.d...@gmail.com mailto:samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
http://pgp.mit.edu:11371/pks/lookup?search=0x80C752EAop=vindexfingerprint=onexact=on
(obtainable on http://pgp.mit.edu)
Full copy of public timestamp block http://publictimestamp.org
signatures id-14970 (from 2012-06-05 15:00:07) is included in header of
html.



signature.asc
Description: OpenPGP digital signature


[gentoo-user] Distcc advice needed

2012-06-03 Thread Samuraiii

  
  

  Hello friends,
  I'm in need of good advice.
  I have 3 computers running gentoo and want to utilise all of them
  for distcc compiling - the emerging computer would be everytime
  different. Two machines are amd64 and one is x86 and this appears
  to be problem.
  According to 
  http://www.gentoo.org/doc/en/cross-compiling-distcc.xml I need to
  edit some symlinks and if I'm going to emerge on either amd64 or
  X86.
  The problem is that wrapper script which calls c++ gcc g++ with
  architecture prefix.
  Is there a workaroud so that I do not need to change those symliks
  everytime Im going to emerge on different arch?  
  
  Thanks for reply in advance
  S
  


-- 
  
Samuraiii
e-mail: samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id-14953 (from 2012-06-03 12:00:06) is included in
header of html.
  

  



signature.asc
Description: OpenPGP digital signature


[gentoo-user] «-»: [gentoo-user] eselect sh set dash?

2012-05-05 Thread Samuraiii

  
  

  Hi All,
  also readahead-list has some problems with dash as sh.
  S
  



On 2012-05-05 11:17, Florian Philipp wrote:

  Am 01.05.2012 18:53, schrieb Florian Philipp:

  
Am 29.04.2012 16:04, schrieb Marc Joliet:


  Am Sun, 29 Apr 2012 00:20:41 +0200
schrieb Florian Philipp li...@binarywings.net:


  
Hi list!

  
  Hi,
 

  
Now that eselect-sh has been stabilized, I'm wondering if anyone has
tried setting dash as the /bin/sh symlink. Any experiences?

  
  
I've been using dash as my /bin/sh for a while now. I've had it installed since
June 2009, I suppose I've had the symlink set for the same length of time.

Pretty much all incompatibilities I encountered are fixed now, stuff like
openrc introducing bashisms (what fun! I never used the debug option of an init
script before or since), or the Audacity build system having #!/bin/sh but
using bashisms. I seem to recall that I have one package installed that has this
problem and requires changing the symlink temporarily, but I don't remember
which. It might have been fixed by now, though.

Also, the old mysql-init-scripts-1.2 package requires bash, in case that matters
to you.



  
  The dmcrypt init script also has a single bashism. A bug about this has
been open for quiet some time now:
https://bugs.gentoo.org/show_bug.cgi?id=408117


  

  So I don't think you should expect any problems (save for the rare exception),
and for me there was a noticeable speedup with the init system (also reported
by Flameeyes in his blog).


  
Thanks in advance!
Florian Philipp

  
  HTH


Hi Marc,

thanks for the info! I've tried it on one of my systems and in my
measurements, it definitely scraped off a few seconds of the reboot cycle.

Regards,
Florian Philipp

  
  I suggest that anyone who wants to switch tries something like this
before rebooting to see if the init scripts can be parsed by dash:

for i in /etc/init.d/*; do printf '%s\t' "$i"; "$i" status; done

Regards,
Florian Philipp




    -- 
  
Samuraiii
e-mail: samura...@volny.cz
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id-14723 (from 2012-05-05 18:00:06) is included in
header of html.
  

  



signature.asc
Description: OpenPGP digital signature


[gentoo-user] package masking

2012-04-28 Thread Samuraiii
Hi to everyone,
my question is:

Is there easy way to emerge gnome meta-package while masking some
useless (for me) features such as vino, vinagre,...
For now I'm using gnome-light but this is very minimal and so there are
some packages that I have to hand select to my world which is not so
convenient and I'm afraid of loosing touch with some new cool features
in future updates.

Thanks for help in advance
S



-- 
Samuraiii
e-mail: samura...@volny.cz mailto:samura...@volny.cz
GnuPG key ID: 0x80C752EA
http://pgp.mit.edu:11371/pks/lookup?search=0x80C752EAop=vindexfingerprint=onexact=on
(obtainable on http://pgp.mit.edu)
Full copy of public timestamp block http://publictimestamp.org
signatures id-14659 (from 2012-04-27 18:00:06) is included in header of
html.



signature.asc
Description: OpenPGP digital signature


[gentoo-user] «-»: [gentoo-user] package masking

2012-04-28 Thread Samuraiii

  
  

  Thank you for swift reply.
  That look almost same as the way I have it right now (gnome-light
  and hand selected packages in world).
  



On 2012-04-28 12:04, Florian Philipp wrote:

  Am 28.04.2012 11:21, schrieb Samuraiii:

  
Hi to everyone,
my question is:

Is there "easy" way to emerge gnome meta-package while masking some
useless (for me) features such as vino, vinagre,...
For now I'm using gnome-light but this is very minimal and so there are
some packages that I have to hand select to my world which is not so
convenient and I'm afraid of loosing touch with some new cool features
in future updates.

Thanks for help in advance
S




  
  Certainly not. The most reasonable way is to maintain your own meta
package in an overlay. Just copy gnome-*.ebuild there and remove all
dependencies you don't like.

Regards,
Florian Philipp




-- 
  
    Samuraiii
e-mail: samura...@volny.cz
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id-14665 (from 2012-04-28 12:00:08) is included in
header of html.
  

  



signature.asc
Description: OpenPGP digital signature


[gentoo-user] «-»: [gentoo-user] Wifi autodisable on lan

2012-04-07 Thread Samuraiii

  
  

  
  I've come across this
http://johanlouwers.blogspot.com/2011/03/linux-check-interface-status.html
  
  But this isn't helping me:
  right now I'm on wifi only but when I run ifconfig I get this for
  eth0 (my lan card)
  
  eth0  Link encap:Ethernet  HWaddr 00:41:70:52:5c:59  
    UP BROADCAST MULTICAST  MTU:1500  Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000 
    RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
    Interrupt:46 Base address:0x2000 
  
  so that grep UP will return 1 even if cable isn't plugged in.
  
  But i found ethtool which does what I need so thank you for your
  help.
  S
  



On 2012-04-07 01:08, Michael Mol wrote:

  Ifconfig or iproute2
  On Apr 6, 2012 6:51 PM, "Samuraiii" samura...@volny.cz
wrote:

Hello,
  
  I'm trying to autodisable wifi when lan cable is plugged
  in.
  I "found" rfkill ebuild which look like something I need
  but I'm clueless where to get state  of the ethernet card.
  
  Is there someone who can help me slove this?
  Thank you for help in advance
  S.
  
 
    -- 
   Samuraiii
e-mail: samura...@volny.cz
GnuPG key ID: 0x80C752EA (obtainable on http://pgp.mit.edu)
  Full copy of
public
  timestamp block signatures id-14492 (from
2012-04-06 21:00:09) is included in header of html. 

  

  


    -- 
  
Samuraiii
e-mail: samura...@volny.cz
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id-14498 (from 2012-04-07 15:00:07) is included in
header of html.
  

  



[gentoo-user] Wifi autodisable on lan

2012-04-06 Thread Samuraiii

  
  

  Hello,
  
  I'm trying to autodisable wifi when lan cable is plugged in.
  I "found" rfkill ebuild which look like something I need but I'm
  clueless where to get state  of the ethernet card.
  
  Is there someone who can help me slove this?
  Thank you for help in advance
  S.
  


-- 
  
    Samuraiii
e-mail: samura...@volny.cz
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id-14492 (from 2012-04-06 21:00:09) is included in
header of html.
  

  



[gentoo-user] Gwibber - facebook and twitter

2012-03-23 Thread Samuraiii

  
  

  Hello,
  Is here anybody hawing working Gwibber for twitter and facebook on
  gnome3?
  
  S.
  


-- 
  
Samuraiii
e-mail: samura...@volny.cz
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id-14378 (from 2012-03-23 15:00:06) is included in
header of html.
  

  



0x80C752EA.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


[gentoo-user] distcc - amd64 and x86

2012-02-05 Thread Samuraiii

  
  

  Hello,
  
  I have (right now) 3 computers runing Gentoo and as two of them
  are with only 1GB of ram - which for libreoffice compiling is not
  enough.
  
  So my questions are:
  
  1) Is it possible with distcc overcome this memory limitation?
  -call compile on "weak" machine and leave memory load on "strong"
  one
  
  2) second question is about arch of each computer
    one is Core2Duo second Athlon 64 X2 and last is Pentium M
    What steps I need to take to exploit distcc for all given
  machines 
    Do I need specific toolchains for each arch in question?
  
  3) How is distcc prone to network failures?
  
  Thank you in advance 
  
  S
  
  


    -- 
  
Samuraiii
e-mail: samura...@volny.cz
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id- (from ) is included in header of html.
  

  



[gentoo-user] «-»: [gentoo-user] distcc - amd64 and x86

2012-02-05 Thread Samuraiii

  
  

  
  



On 2012-02-05 18:38, Michael Mol wrote:

  On Sun, Feb 5, 2012 at 12:04 PM, Samuraiii samura...@volny.cz wrote:

  
Hello,

I have (right now) 3 computers runing Gentoo and as two of them are with
only 1GB of ram - which for libreoffice compiling is not enough.

So my questions are:

1) Is it possible with distcc overcome this memory limitation? -call compile
on "weak" machine and leave memory load on "strong" one

  
  To a limited extent, yes. You could configure things such that
compiles happen remotely, but links always have to happen locally. And
anything not done with a C or C++ compiler happens locally.

AFAICT, any C or C++ app's most memory-consumptive act is linking.

Your better bet is probably going to be to add swap.


The swap thing is good idea but wont work because (libreoffice is
one of examples) ebuild checks for available ram not swap so when
there is eg. 962MB of ram it fails right in begining of merge

I myself have really huge (4GB+) swap for some reasons 
    -- 
  
Samuraiii
e-mail: samura...@volny.cz
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id- (from ) is included in header of html.
  

  



[gentoo-user] «-»: [gentoo-user] Re: [gentoo-user] Re: [gentoo-user] Re: [gentoo-user] «-»: [gentoo-user] Gnupg 2 and BZIP2 preference

2011-12-06 Thread Samuraiii

  
  

  few times my bzip2 flag is set from installation of systemabd
  since then I needed gpg 1.4 one time so I needed emrege it 
  (downgrading gpg 2) and then again upgrading it back and then I
  even tried (few times) to emrege gpg (for rebuilding) because of
  this problem
  If you want to see emerge --info gnupg follow my bug 
  
  https://bugs.gentoo.org/show_bug.cgi?id=390163
  
  S



On 2011-12-06 01:51, Claudio Roberto França Pereira wrote:

  Are you sure you've re-emerged the package after adding the bzip2 use
flag? Run eix app-crypt/gnupg to confirm.






-- 
  
Samuraiii
e-mail: samura...@volny.cz
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id- (from ) is included in header of html.
  

  



[gentoo-user] «-»: [gentoo-user] Re: [gentoo-user] «-»: [gentoo-user] Gnupg 2 and BZIP2 preference

2011-12-03 Thread Samuraiii

  
  

  That's the Problem 
  no bzip2 masked 
  
  emerge -pv gnupg
  [ebuild   R    ] app-crypt/gnupg-2.0.17  USE="adns bzip2 ldap nls
  static -caps -doc -openct -pcsc-lite (-selinux) -smartcard" 0 kB
  



On 2011-12-03 15:32, Claudio Roberto França Pereira wrote:
Try emerge -pv gnupg.
  Maybe the devs had masked the bzip2 use flag for some reason.
  
  Sorry, I'm not in Gentoo right now to assist you more.


-- 
  
    Samuraiii
e-mail: samura...@volny.cz
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id- (from ) is included in header of html.
  

  



[gentoo-user] «-»: [gentoo-user] Gnupg 2 and BZIP2 preference

2011-12-01 Thread Samuraiii

  
  

  I did this before - but tried it again - stil the resolut is same
  no bzip2 support
  S



On 2011-11-30 01:51, Pandu Poluan wrote:

  
On Nov 30, 2011 7:37 AM, "Samuraiii" samura...@volny.cz
wrote:

 No luck, grep didn't returned any results. 
 S.

  Hmm... try remerging gpg? 
  Rgds, 
  


-- 
  
    Samuraiii
e-mail: samura...@volny.cz
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id- (from ) is included in header of html.
  

  



[gentoo-user] «-»: [gentoo-user] Gnupg 2 and BZIP2 preference

2011-11-29 Thread Samuraiii

  
  

  No I know that Linux is casesensitve and in my USE is "bzip2" (as
  written here - I just used what is shown in gpg complaint) - so
  this is not obviously the problem.
  (my whole USE variable content is in provided bugreport...)
  
  And the preference of key is impossible to set wrongly - I did
  this on in time when I was on Ubuntu.)
  
  I just cant understand why is bzip2 use ignored by Gnupg - its in
  make.conf, by emerge --info is accepted for Gnupg but gpg
  --version is not showing this compress prefernce.
  
  S.
  



On 2011-11-30 00:04, Walter Dnes wrote:

  On Sun, Nov 27, 2011 at 12:03:41AM +0100, Samuraiii wrote


  
As I have set BZIP2 USE as global in make.conf I don't see why is
not working

  
Grasping a straws here... linux is case-sensitive.  Did you really
include "BZIP2" in USE, rather than "bzip2"?


    

    -- 
  
Samuraiii
e-mail: samura...@volny.cz
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id- (from ) is included in header of html.
  

  



[gentoo-user] «-»: [gentoo-user] Gnupg 2 and BZIP2 preference

2011-11-29 Thread Samuraiii

  
  

  No luck, grep didn't returned any results. 
  S.
  



On 2011-11-30 01:21, Pandu Poluan wrote:

  
On Nov 30, 2011 6:21 AM, "Samuraiii" samura...@volny.cz
wrote:

 No I know that Linux is casesensitve and in my USE is
"bzip2" (as written here - I just used what is shown in gpg
complaint) - so this is not ob viously the problem.
 (my whole USE variable content is in provided bugreport...)

 And the preference of key is impossible to set wrongly - I
did this on in time when I was on Ubuntu.)

 I just cant understand why is bzip2 use ignored by Gnupg -
its in make.conf, by emerge --info is accepted for Gnupg but gpg
--version is not showing this compress prefernce.

 S.

  I'm also grasping at straws... but try doing grep -R "-bzip2"
/etc
  You might have inadvertently disabled bzip2 somewhere... 
  Rgds, 
  
    

    -- 
  
Samuraiii
e-mail: samura...@volny.cz
GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)
  Full copy
of public timestamp block
signatures id- (from ) is included in header of html.
  

  



[gentoo-user] Apache Php cgi and user_dirs

2011-11-27 Thread Samuraiii
Hello,

Today Im form morning trying to get working apache 2.2.21-r1 and php
5.3.8 with userdirs mod.
The problem is that apache is capable of opening ~/public_html but when
it gets to open folder with index.php
it fails with this error:
(in browser)
The requested URL /php5cgi/php/~uname/path/to/index.php was not found on
this server.
(in syslog)
[date] [error] [client ::1] File does not exist:
/var/www/localhost/htdocs/php5cgi


php uses:
apache2 berkdb bzip2 cli crypt ctype curl curlwrappers exif fileinfo
filter flatfile ftp gd gdbm hash iconv ipv6 json ldap mhash mysql mysqli
nls phar posix readline session simplexml spell ssl sysvipc tidy
tokenizer truetype unicode xml zlib

apache uses:
apache2_modules_actions apache2_modules_alias apache2_modules_auth_basic
apache2_modules_authn_alias apache2_modules_authn_anon
apache2_modules_authn_dbm apache2_modules_authn_default
apache2_modules_authn_file apache2_modules_authz_dbm
apache2_modules_authz_default apache2_modules_authz_groupfile
apache2_modules_authz_host apache2_modules_authz_owner
apache2_modules_authz_user apache2_modules_autoindex
apache2_modules_cache apache2_modules_dav apache2_modules_dav_fs
apache2_modules_dav_lock apache2_modules_deflate apache2_modules_dir
apache2_modules_disk_cache apache2_modules_env apache2_modules_expires
apache2_modules_ext_filter apache2_modules_file_cache
apache2_modules_filter apache2_modules_headers apache2_modules_include
apache2_modules_info apache2_modules_log_config apache2_modules_logio
apache2_modules_mem_cache apache2_modules_mime
apache2_modules_mime_magic apache2_modules_negotiation
apache2_modules_rewrite apache2_modules_setenvif apache2_modules_speling
apache2_modules_status apache2_modules_unique_id apache2_modules_userdir
apache2_modules_usertrack apache2_modules_vhost_alias ldap ssl

I'm absolutly desprate of this

I do not understand why its looking for php files under /php5cgi/php/
whe I dont even have cgi enabled in both php and apache

Any suggestions would be appreciated
S


[gentoo-user] Gnupg 2 and BZIP2 preference

2011-11-26 Thread Samuraiii
Hello fellow Gentoonians,

I have problem with Gnupg 2 and compress preference on keys.

When I recieve email which is for recipirnt with set compress preference
to BZIP2 Thunderbird (with enigmail) fails to decrypt it due this:

gpg command line and output:
/usr/bin/gpg2
gpg: invalid item `BZIP2' in preference string
gpg: invalid personal compress preferences

As I have set BZIP2 USE as global in make.conf I don't see why is not
working

gpg --version returns:

gpg (GnuPG) 2.0.17
libgcrypt 1.4.6
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA
Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128,
CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB


I even recompiled gpg but no luck and my bug
(https://bugs.gentoo.org/show_bug.cgi?id=390163)only got Unconfirmed
flag and that's all
I would appreciate any suggestions (disabling  BZIP2 preference doesn't
solve problem for me)

Thank you in advance
S