[gentoo-user] Linux traffic shaper setup advice

2009-02-09 Thread Aleksey V. Kunitskiy
Hi Gentoo community,
I have several computers at home and one Gentoo-powered router. I want to 
setup a very simple traffic shaper that will give each computer almost 
equal(the best choice - with some weight coefficient on each ip address) 
speed, without counting number of connections and etc. So, someone using 
torrent won't load whole pipe. One most important problem with it that I have 
fixed speed to the world and fixed speed to local resourses in my city, so I 
can't fix my up/down link speed to one fixed number, I actually have 2 
speeds, depending on the IP address I'm accessing to.

Any suggestions?

-- 
best regards,
Aleksey V. Kunitskiy



Re: [gentoo-user] Wireless: Limit rate to strengthen connection?

2008-04-18 Thread Aleksey V. Kunitskiy
On Friday 28 March 2008, Florian Philipp wrote:
 pastup() {
   if [[ ${IFACE} = wlan0 ]]; then
   iwconfig [...]
   fi
   return 0
 }

 should work.

Nice tip, thanks.
I don't understand why config_SSID and config_ETH (or iwconfig_) can't handle 
it.
Is there a bug on bugzilla for this? My search didn't give me any result.

-- 
best regards,
Aleksey V. Kunitskiy
GPG/PGP: 0x12101BD2


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


Re: [gentoo-user] [OT] converting FLAC tags from Cp1251 to UTF8

2008-03-04 Thread Aleksey V. Kunitskiy
On Tuesday 04 March 2008, Andrew Gaydenko wrote:
 Hi!

 There are many inconsistent records in freedb.org db. I mean when, say,
 Cp1251 charset is used instead of UTF8. Say, I have written these
 invalid tags to flac files (with easytag or entagged). How to repair
 tags to make them visible as something useful (i.e. to UTF8) insteaf of
 abracadabra (i.e. from Cp1251)?


 Andrew

You can try to export tags from flac, then iconv them and after all import it 
back. Will look like this:

1. metaflac --export-tags-to=~/some_file.tags --no-utf8-convert track.flac
2. iconv -f cp-1251 -t utf-8 ~/some_file.tags  ~/some_file_fixed.tags
3. metaflac --remove-all-tags track.flac
4. metaflac --import-tags-from=~/some_file_fixed.tags --no-utf8-convert 
track.flac

HTH

-- 
best regards,
Aleksey V. Kunitskiy
GPG/PGP: 0x12101BD2


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


[gentoo-user] syslog-ng heavy load

2007-11-09 Thread Aleksey V. Kunitskiy
Hi,
I observe that syslog-ng is flooded by BANDWIDTH_[IN,OUT] log messages. I've 
shorewall installed and I did not specified there to log any bandwidth log 
messages. Can somebody point me to the right place where I can turn off this 
log messages?

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc
-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: syslog-ng heavy load

2007-11-09 Thread Aleksey V. Kunitskiy
On Saturday 10 November 2007, Aleksey V. Kunitskiy wrote:
 Hi,
 I observe that syslog-ng is flooded by BANDWIDTH_[IN,OUT] log messages.
 I've shorewall installed and I did not specified there to log any bandwidth
 log messages. Can somebody point me to the right place where I can turn off
 this log messages?

Damn, probably that was webmin... It modified /etc/shorewall/start

$ find /etc -type f -exec grep -l 'BANDWIDTH' {} \;
Helped me :D

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


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


Re: [gentoo-user] Getting system stats

2007-11-07 Thread Aleksey V. Kunitskiy
On Wednesday 07 November 2007, James wrote:
 All,

 I'm writing a piece of code that requires I gather the following
 statistics every second:

 - CPU Usage (as a percentage)
 - NIC I/O
 - Hard Drive I/O

 I later have to correlate these stats as a function of time.

 I'm not really sure where I should be looking to gather these
 statistics.  I know about /proc/stat, but that's only CPU related (and
 I don't think /proc/sys will give me a CPU usage percentage anyways).
 I'm not sure if there exist other proc files that will give me the
 values for NIC and hard drive I/O (such as number of transactions per
 second).

 Thoughts?

First thought that comes in my mind is to have a look at source code of such 
programms as:
- gkrellm
- top/htop
- iptraf
I think you can find there all information you need



-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


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


[gentoo-user] gentoo hardened shorewall

2007-10-28 Thread Aleksey V. Kunitskiy
Hi,

I recently updated to hardened-sources-2.6.22-r8 and had a problem starting 
shorewall:

* Starting firewall ...
 WARNING: Error inserting nf_conntrack_amanda 
(/lib/modules/2.6.22-hardened-r8/kernel/net/netfilter/nf_conntrack_amanda.ko): 
Unknown symbol in module, or unknown parameter (see dmesg)
 FATAL: Error inserting nf_nat_amanda 
(/lib/modules/2.6.22-hardened-r8/kernel/net/ipv4/netfilter/nf_nat_amanda.ko): 
Unknown symbol in module, or unknown parameter (see dmesg)
 WARNING: Error inserting nf_conntrack_amanda 
(/lib/modules/2.6.22-hardened-r8/kernel/net/netfilter/nf_conntrack_amanda.ko): 
Unknown symbol in module, or unknown parameter (see dmesg)
 FATAL: Error inserting nf_nat_amanda 
(/lib/modules/2.6.22-hardened-r8/kernel/net/ipv4/netfilter/nf_nat_amanda.ko): 
Unknown symbol in module, or unknown parameter (see dmesg)
 iptables: No chain/target/match by that name
ERROR: Command /sbin/iptables -A FORWARD -p tcp --tcp-flags SYN,RST 
SYN -j TCPMSS --clamp-mss-to-pmtu Failed
/sbin/shorewall: line 375:  8362 Terminated  ${VARDIR}/.start 
$debugging start

here is kernel log:
   ip_tables: (C) 2000-2006 Netfilter Core Team
ctnetlink v0.93: registering with nfnetlink.
nf_nat_amanda: Unknown symbol nf_nat_amanda_hook
ClusterIP Version 0.8 loaded successfully
nf_nat_amanda: Unknown symbol nf_nat_amanda_hook

Seems that it is kernel fault. I recompiled kernel with nf_nat_amanda and 
nf_conntrack_amanda in kernel. After that shorewall still fails to start with 
message:

iptables: No chain/target/match by that name
ERROR: Command /sbin/iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j 
TCPMSS --clamp-mss-to-pmtu Failed


I googled it and searched it on bugs.gentoo.org but I've not found any 
information about it.

Thanks fo any suggestions

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc
* Starting firewall ...
 WARNING: Error inserting nf_conntrack_amanda 
(/lib/modules/2.6.22-hardened-r8/kernel/net/netfilter/nf_conntrack_amanda.ko): 
Unknown symbol in module, or unknown parameter (see dmesg)
 FATAL: Error inserting nf_nat_amanda 
(/lib/modules/2.6.22-hardened-r8/kernel/net/ipv4/netfilter/nf_nat_amanda.ko): 
Unknown symbol in module, or unknown parameter (see dmesg)
 WARNING: Error inserting nf_conntrack_amanda 
(/lib/modules/2.6.22-hardened-r8/kernel/net/netfilter/nf_conntrack_amanda.ko): 
Unknown symbol in module, or unknown parameter (see dmesg)
 FATAL: Error inserting nf_nat_amanda 
(/lib/modules/2.6.22-hardened-r8/kernel/net/ipv4/netfilter/nf_nat_amanda.ko): 
Unknown symbol in module, or unknown parameter (see dmesg)
 iptables: No chain/target/match by that name
ERROR: Command /sbin/iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j 
TCPMSS --clamp-mss-to-pmtu Failed
/sbin/shorewall: line 375:  8362 Terminated  ${VARDIR}/.start 
$debugging start

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


[gentoo-user] Shorewall ip_forwarding

2007-08-28 Thread Aleksey V. Kunitskiy
Hi,

I have problem visiting web-sites like [1] from my computers in the local net. 
I have Gentoo Hardened powered server. From server I can open it, but from 
windows  linux machines on the local net I can't. I have simple masq 
shorewall configuration and ip_forwarding=1:

enigma alex # cat /proc/sys/net/ipv4/ip_forward
1
enigma alex # grep IP_FORWARDING /etc/shorewall/shorewall.conf
IP_FORWARDING=Keep

Where is the problem? Thanks for any suggestions

[1] http://www.sysresccd.org/


-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


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


[gentoo-user] crossdev -t amd64 on x86 hardened

2007-08-17 Thread Aleksey V. Kunitskiy
Hi,
Are there any limitations on building crossdev amd64 tools on i686 hardened 
gentoo? Of course I don't need any SSP/PIE on crossdev's gcc. I also need 
gcc4 there.
Can you suggest the right way of building such crossdev environment ?
Thanks

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


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


Re: [gentoo-user] Samsung 971p

2007-08-17 Thread Aleksey V. Kunitskiy
On Friday 17 August 2007, Danis Petkakis wrote:
 could you point me to the right software if it is in your knowledge for
 colour calibration?? what other test tools might be necessary??

I did not care about color calibration, because it have no sense if you do not 
have proffesional camera or printer, etc. So I have default settings.
Try to search it on wikipedia and google if you really need it. AFAIK Linux 
have very good tools for color calibation

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


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


Re: [gentoo-user] Problem with distcc/crossdev

2007-08-17 Thread Aleksey V. Kunitskiy
On Saturday 18 August 2007, Tim wrote:
 I can post more info if necessary. The problem is easily recreatable on
 my machine - a simple 'emerge =x11-libs/qt-3.3.8-r3' will crash it every
 time.

 My question is this: What's causing the compile failures and how do I
 resolve it? I'm running on a distcc network of about half a dozen boxes,
 all of which are i686 with the sole exception of the one amd64 slave.

Hi,
Had exactly the same problem today. Sometimes the problem above solves by 
passing CC and CXX as i686-pc-linux-gnu-g[++,cc]. But in case of qt this 
didn't help. However I had cc and g++ (and gcc) symlinks in distcc/bin folder
So, if somebody explain how to solve this problem, it will be very nice :)

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


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


Re: [gentoo-user] Samsung 971p

2007-08-16 Thread Aleksey V. Kunitskiy
On Thursday 16 August 2007, Danis Petkakis wrote:
 hi there...i'm thinking of buying the tft monitor mentioned in the subject
 of this topic and i would like to know how it comprehends with gentoo...i'm
 a little confused because the monitor doesn't have any switches to control
 it rather Samsung gives a software called magictune to do all of the
 controlling...so my question is will i be able to work with this monitor in
 my gentoo and if so how will i be able to control the brightness/contrast
 and the other feautures?? thanks for any response...

Hi,

I have two Samsung 971p monitors plugged via two DVI ports in xinerama mode. 
They work best for me. If you want to tune them under linux you can use 
ddccontrol [1], which is also in portage (note: 971p seem to be only in the 
latest ddc database, so if you'll not find this model there - try to unmask 
packages related to the ddccontrol)

[1] http://ddccontrol.sourceforge.net/

good luck

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


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


Re: [gentoo-user] Samsung 971p

2007-08-16 Thread Aleksey V. Kunitskiy
On Thursday 16 August 2007, Danis Petkakis wrote:
 post back.is there any other software other than ddccontrol which would
 help

 me control the monitor or is ddccontrol all i need?? thanks...

That is all you need. Except that you need color calibration or smth similar - 
you need software that shows you color tuning table, etc.
In other words ddccontrol only allows you to change all of monitor parameters 
that are present in your model, it does not provide any test tools.

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


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


[gentoo-user] gentoo-portage.com gentoo-wiki.com

2007-08-16 Thread Aleksey V. Kunitskiy
Hi,
Anybody knows what is going on there?

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


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


Re: [gentoo-user] Open Office wants to speak to me in Greek!

2007-08-16 Thread Aleksey V. Kunitskiy
On Thursday 16 August 2007, Randy Barlow wrote:
 I have an odd problem with Open Office: all the menus and dialogs from
 Open Office are using Greek character sets and not the usual ones.  I
 can read them since I know most of the Greek characters, but this
 doesn't come easy :)  Here is a screen shot:

Try to change fonts in the KDE Control Center from Standard Symbols to another 
one.

I had this problem with that font and I solved this problem that way

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


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


Re: [gentoo-user] amd64 4G memory

2007-08-11 Thread Aleksey V. Kunitskiy
On Friday 10 August 2007 21:13, Tim wrote:
 Hi. How are you checking the memory?
/proc/meminfo :)
 Can you post the first 30 lines or 
 so of dmesg or the output of 'cat /proc/meminfo'? Also, is your kernel
 configured with HIGHMEM support? If so, what type?

 You may also consider checking in the BIOS for any memory options - some
 video cards share system memory.

I have 64 bit kernel and there is no need in HIGHMEM at all

MemTotal:  4043012 kB
MemFree:   3695820 kB
Buffers: 14028 kB
Cached: 144332 kB
SwapCached:  0 kB
Active: 199168 kB
Inactive:84012 kB
SwapTotal:   0 kB
SwapFree:0 kB
Dirty: 820 kB
Writeback:   0 kB
AnonPages:  124832 kB
Mapped:  60024 kB
Slab:28016 kB
SReclaimable:14040 kB
SUnreclaim:  13976 kB
PageTables:   8528 kB
NFS_Unstable:0 kB
Bounce:  0 kB
CommitLimit:   2021504 kB
Committed_AS:   305060 kB
VmallocTotal: 34359738367 kB
VmallocUsed:311952 kB
VmallocChunk: 34359425531 kB
HugePages_Total: 0
HugePages_Free:  0
HugePages_Rsvd:  0
Hugepagesize: 2048 kB


-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgpGFNTzgd3P3.pgp
Description: PGP signature


Re: [gentoo-user] amd64 4G memory

2007-08-11 Thread Aleksey V. Kunitskiy
On Friday 10 August 2007 22:34, Volker Armin Hemmann wrote:
 So your 'lost' memory is not really lost
Why? If I have 3G of memory it is OK and 4G is a problem. Of course a few 
MB(~100 actualy) of memory is not critical for me in this case, but I'd like 
to understand why 4G is problem where logical address space is 64 bit and 
physical is about ~40 bit.

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgpzaNcewSX14.pgp
Description: PGP signature


[gentoo-user] amd64 4G memory

2007-08-10 Thread Aleksey V. Kunitskiy
Hi,

I'm a bit confused, because before this moment I thought that 4G for amd64 
platform is normal memory size...
I've Asus a8n-e motherboard and AMD X2 cpu. Yesterday I've installed +1G 
memory to my already installed 3G. Before this my system showed that all 
3072M of memory are avalible. After +1G instalation it shows 3948M of 
avalible memory.
My questions are: where is the rest of the memory? Is 4G of memory a problem 
for amd64 cpu? What is going on there o_O ?

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgpYQ363WUY5X.pgp
Description: PGP signature


Re: [gentoo-user] Re: Mathematica 6 Gentoo amd64

2007-08-09 Thread Aleksey V. Kunitskiy
On Wednesday 08 August 2007 20:18, Jure Varlec wrote:
 I never tried version 6, but they used to have 64 bit version for 5, so I
 guess there should be one for 6 :/ . Since the 5.1 that I used was native
 64 bit, it needed no chroot.

Version 6 tells me that it can't find libstdc++.so.5. I tried to create this 
symlink manualy(pointing to the libstdc++ 6.0.8 ) but it didn't give me any 
results

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgpql6gxT2Ob3.pgp
Description: PGP signature


Re: [gentoo-user] Re: Mathematica 6 Gentoo amd64

2007-08-09 Thread Aleksey V. Kunitskiy
On Thursday 09 August 2007 15:52, Hans-Werner Hilse wrote:
 Emerge libcompat to get libstdc++ 5. (and undo that symlink attempt)

I can not unmask it. This package has no amd64 keyword and all my tries 
putting something like =sys-libs/lib-compat-1.4.1 -* ~* in package.keywords 
have no results.

emerge still tells me this:

!!! All ebuilds that could satisfy =sys-libs/lib-compat-1.4.1 have been 
masked.
!!! One of the following masked packages is required to complete your request:
- sys-libs/lib-compat-1.4.1 (masked by: missing keyword)

Any suggestions?

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgpMqGuDs2Uaa.pgp
Description: PGP signature


Re: [gentoo-user] Re: Mathematica 6 Gentoo amd64

2007-08-09 Thread Aleksey V. Kunitskiy
On Thursday 09 August 2007 19:48, Neil Bothwick wrote:
 I don't think that's the right package.

 % qfile libstdc++.so.5
 sys-libs/libstdc++-v3 (/usr/lib64/libstdc++-v3/libstdc++.so.5)
 app-emulation/emul-linux-x86-compat (/usr/lib32/libstdc++.so.5)

Of course, I forgot about it... Thanks guys! ;)

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgpe78jpnpeIp.pgp
Description: PGP signature


[gentoo-user] Mathematica 6 Gentoo amd64

2007-08-07 Thread Aleksey V. Kunitskiy
Hi,

Does anybody have experience of installing Mathematica 6 on Gentoo amd64 box?
Is there any possibility to install it without chroot'ed environment?

Thanks for suggentions

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgpZH73Kfdn4c.pgp
Description: PGP signature


[gentoo-user] Re: program autostart from another user

2007-07-31 Thread Aleksey V. Kunitskiy
Thanks all for suggestions

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgpi6gQNCFXHi.pgp
Description: PGP signature


[gentoo-user] IO scheduling

2007-07-31 Thread Aleksey V. Kunitskiy
Hi,

Is there any possibility to adjust IO scheduling priority ? I found that 
rtorrent eats a lot of IO resourses when calculating hash, and I can't ajust 
that by making its nice higher. Even on +19 it is blocker

Thanks

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgp9tv166UFgl.pgp
Description: PGP signature


Re: [gentoo-user] IO scheduling

2007-07-31 Thread Aleksey V. Kunitskiy
On Tuesday 31 July 2007 23:58, Steve Dommett wrote:
 ionice -c2 -p `pidof rtorrent`   will make IO very nice.
 ionice -c3 -p `pidof rtorrent`   claims to wait until other IO is idle.
 Extremely nice, but probably not what you want for a network client like
 rtorrent.

Thanks Steve. I'll try it. But I can still accept other suggestions :)

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgpuytDUd5XLJ.pgp
Description: PGP signature


Re: [gentoo-user] IO scheduling

2007-07-31 Thread Aleksey V. Kunitskiy
On Wednesday 01 August 2007 00:03, Daniel Pielmeier wrote:
 There is ionice. It is part of sys-process/schedutils which is in portage.

 There is a manpage here http://linux.die.net/man/1/ionice as it is not
 included in schedutils.

 You can also take alook at
 http://forums.gentoo.org/viewtopic-t-462230.html. It is a forum thread
 about ionice.

 Just for your information:

 Ionice is also part of the util-linux-ng-2.13 the replacement for
 util-linux which is in portage but currently without keywords.

 The stable version 2.12r-r7 is the old util linux where ionice is not
 included.
 So you have to use 2.13_rc2 which is util-linux-ng but there is always a
 reason why there are no keywords!

Thank you all guys, I'll use it and see if cfq fully fits into my needs.

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgp5TdJw6YGdz.pgp
Description: PGP signature


Re: [gentoo-user] portage dirs safe remove

2007-07-30 Thread Aleksey V. Kunitskiy
 Why are you making it so complicated? All I do is put
 pandora://usr/portage /usr/portage nfs bg,hard 0 0 in /etc/fstab on
 all my machines except pandora, which is the server. /usr/portage is
 just an empty directory on all the client machines.

Ah, I have layman installed, so I was confused when I got couple errors after 
portage dir cleanup.

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgpPzNT4lVtCi.pgp
Description: PGP signature


[gentoo-user] program autostart from another user

2007-07-30 Thread Aleksey V. Kunitskiy
Hi,

I want to auto start some programs on startup, using init
My local.start looks like:
sudo -u user_name screen program

My question is - is it the right way?
How can I attach next program to existing screen session (by creating new 
buffer in screen session)?

Thanks

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgphdCFNPy0Lr.pgp
Description: PGP signature


Re: [gentoo-user] program autostart from another user

2007-07-30 Thread Aleksey V. Kunitskiy
On Monday 30 July 2007 12:58, Abraham Marín Pérez wrote:
 Maybe this doesn't exactly meet your needs but, have you tried to add
 those program to ~/.bashrc? That way the program will be executed for
 your user.

I need startup program without user be logged in.

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgpT5k2gmEnbk.pgp
Description: PGP signature


Re: [gentoo-user] program autostart from another user [OT]

2007-07-30 Thread Aleksey V. Kunitskiy
On Monday 30 July 2007 16:07, Abraham Marín Pérez wrote:
 I see... Just curious, why would you need a program to be executed by a
 user who isn't logged in? The only reason I can imagine is a daemon,
 server o similar;
Yes, this is a server :). 


-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgproz2E2lg4j.pgp
Description: PGP signature


[gentoo-user] portage dirs safe remove

2007-07-29 Thread Aleksey V. Kunitskiy
Hi,

I've setup my portage tree via nfs. Now what dirs I can safely remove from my 
local machine?

Dirs that I've exported:
PORTDIR=/mnt/portage_nfs
PKGDIR=/mnt/portage_nfs/packages
DISTDIR=/mnt/portage_nfs/distfiles
RPMDIR=/mnt/portage_nfs/rpm

Thanks

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgp3BN8j93eTj.pgp
Description: PGP signature


[gentoo-user] ntpd clock adjusting

2007-07-27 Thread Aleksey V. Kunitskiy
Hi,

I've just deployed my home server, of course using Gentoo :)
I setup openntpd there and /var/log/messages says to me that every few minutes 
clock is adjusted by ~100s. Is it a bug or I've missed smth?
chipset: nForce2
And, btw, what is also strange - ntpd use different time in different log 
message types. Actual local time was 22h (GMT+3). System clock is UTC
(note: I've terminated several times ntpd - I've changed servers, I hoped it 
help, but...)

thanks for any suggestion

/var/log/messages:
Jul 27 22:07:27 enigma ntpd[32345]: listening on 192.168.3.1
Jul 27 19:07:27 enigma ntpd[32345]: ntp engine ready
Jul 27 19:07:50 enigma ntpd[32345]: peer 129.6.15.29 now valid
Jul 27 19:07:53 enigma ntpd[32345]: peer 129.6.15.28 now valid
Jul 27 22:08:43 enigma ntpd[32344]: adjusting local clock by 102.470196s
Jul 27 19:09:31 enigma ntpd[32345]: peer 129.6.15.29 now invalid
Jul 27 19:10:21 enigma ntpd[32345]: ntp engine exiting
Jul 27 22:10:21 enigma ntpd[32344]: Terminating
Jul 27 22:10:21 enigma ntpd[32677]: listening on 192.168.3.1
Jul 27 19:10:21 enigma ntpd[32677]: ntp engine ready
Jul 27 19:10:45 enigma ntpd[32677]: peer 129.6.15.28 now valid
Jul 27 19:10:45 enigma ntpd[32677]: peer 129.6.15.29 now valid
Jul 27 22:11:46 enigma ntpd[32676]: adjusting local clock by 102.424075s
Jul 27 22:13:21 enigma ntpd[32676]: adjusting local clock by 102.314918s
Jul 27 22:17:10 enigma ntpd[32676]: adjusting local clock by 102.248247s
Jul 27 22:19:13 enigma ntpd[32676]: adjusting local clock by 102.065928s
Jul 27 19:20:04 enigma ntpd[32677]: ntp engine exiting
Jul 27 22:20:04 enigma ntpd[32676]: Terminating
Jul 27 22:20:04 enigma ntpd[1092]: listening on 192.168.3.1
Jul 27 19:20:04 enigma ntpd[1092]: ntp engine ready
Jul 27 19:20:22 enigma ntpd[1092]: peer 81.210.250.102 now valid
Jul 27 19:20:22 enigma ntpd[1092]: peer 89.25.11.9 now valid
Jul 27 19:20:23 enigma ntpd[1092]: peer 212.244.104.2 now valid
Jul 27 19:20:25 enigma ntpd[1092]: peer 139.143.5.30 now valid
Jul 27 19:20:26 enigma ntpd[1092]: peer 130.60.75.60 now valid
Jul 27 19:20:27 enigma ntpd[1092]: peer 213.239.212.133 now valid
Jul 27 19:20:30 enigma ntpd[1092]: peer 66.180.136.186 now valid
Jul 27 22:21:26 enigma ntpd[1091]: adjusting local clock by 101.912042s
Jul 27 19:24:18 enigma ntpd[1092]: ntp engine exiting
Jul 27 22:24:18 enigma ntpd[1091]: Terminating
Jul 27 22:24:18 enigma ntpd[1431]: listening on 192.168.3.1
Jul 27 19:24:18 enigma ntpd[1431]: ntp engine ready
Jul 27 19:24:37 enigma ntpd[1431]: peer 213.239.212.133 now valid
Jul 27 19:24:38 enigma ntpd[1431]: peer 212.244.104.2 now valid
Jul 27 19:24:39 enigma ntpd[1431]: peer 89.25.11.9 now valid
Jul 27 19:24:39 enigma ntpd[1431]: peer 209.11.160.7 now valid
Jul 27 19:24:41 enigma ntpd[1431]: peer 130.60.75.60 now valid
Jul 27 19:24:43 enigma ntpd[1431]: peer 81.210.250.102 now valid
Jul 27 19:24:44 enigma ntpd[1431]: peer 66.180.136.186 now valid
Jul 27 19:25:45 enigma ntpd[1431]: peer 89.25.11.9 now invalid
Jul 27 22:26:08 enigma ntpd[1430]: adjusting local clock by 101.742480s
Jul 27 19:26:24 enigma ntpd[1431]: peer 130.60.75.60 now invalid
Jul 27 19:26:54 enigma ntpd[1431]: peer 81.210.250.102 now invalid
Jul 27 22:29:46 enigma ntpd[1430]: adjusting local clock by 101.681414s
Jul 27 22:32:30 enigma ntpd[1430]: adjusting local clock by 101.532742s
Jul 27 19:34:59 enigma ntpd[1431]: peer 82.225.138.2 now valid
Jul 27 22:35:57 enigma ntpd[1430]: adjusting local clock by 101.413649s
Jul 27 19:36:58 enigma ntpd[1431]: peer 89.25.11.9 now valid
Jul 27 19:37:14 enigma ntpd[1431]: peer 130.60.75.60 now valid
Jul 27 19:37:57 enigma ntpd[1431]: peer 81.210.250.102 now valid
Jul 27 22:38:35 enigma ntpd[1430]: adjusting local clock by 101.265187s

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgp2G3Ioaw1qy.pgp
Description: PGP signature


Re: [gentoo-user] ntpd clock adjusting

2007-07-27 Thread Aleksey V. Kunitskiy
On Friday 27 July 2007 23:04, Dirk Heinrichs wrote:
 Don't know openntpd because I'm using ntpd, but: It seems the numbers are
 decreasing, so it looks like normal operation. At some point time will be
 adjusted completely.
Yes, it is OK. I've just found it on openbsd.org:
...Once your clock is accurately set, ntpd will hold it at a high degree of 
accuracy, however, if your clock is more than a few minutes off, it is highly 
recommended that you bring it to close to accurate initially, as it may take 
days or weeks to bring a very-off clock to sync. You can do this using 
the -s option of ntpd(8) or any other way to accurately set your system 
clock.


-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgprso8LqQppL.pgp
Description: PGP signature


[gentoo-user] xine audio skips

2007-07-24 Thread Aleksey V. Kunitskiy
Hi,

Last time I am watching to HDTVs. They are in mkv(xvid+ac3) or mkv(xvid)+ac3
(separate track) format. And I have a problem when watching them(all) in 
xine - it skips a few seconds of audio from time to time. Seems that it is 
sync problem, but AFAIK one of advantages of mkv format is very good av 
syncing.

Other players like vlc or mplayer don't have this problem, but I don't use 
them because of other disadvantages...

My hardware is: AMD Athlon X2 4400+, 3GB ram, GeForce 7950, audio ESI Juli@

My xine-lib use flags:
[ Found these USE variables for media-libs/xine-lib-1.1.4-r2 ]
 U I
 + + X   : Adds support for X11
 + + a52 : Enables support for decoding ATSC A/52 streams used in DVD
 + + aac : Enables support for MPEG-4 AAC Audio
 - - aalib   : Adds support for media-libs/aalib (ASCII-Graphics Library)
 + + alsa: Adds support for media-libs/alsa-lib (Advanced Linux Sound 
Architecture)
 - - altivec : Adds support for optimizations for G4 and G5/ppc970 
processors
 + + arts: Adds support for aRts: the KDE sound daemon
 - - debug   : Enable extra debug codepaths, like asserts and extra 
output. If you want to get meaningful backtraces see 
http://www.gentoo.org/proj/en/qa/backtraces.xml .
 - - directfb: Adds support for DirectFB layer (library for FB devices)
 + + dts : Enables libdts (DTS Coherent Acoustics decoder) support
 + + dvd : Adds support for DVDs
 - - dxr3: Support for DXR3 mpeg accelleration cards
 - - esd : Adds support for media-sound/esound (Enlightened Sound 
Daemon)
 - - fbcon   : Adds framebuffer support for the console, via the kernel
 + + flac: Adds support for the flac audio codec
 - - gnome   : Adds GNOME support
 + + gtk : Adds support for x11-libs/gtk+ (The GIMP Toolkit)
 + + imagemagick : Enables support for Imagemagick (image converter)
 - - ipv6: Adds support for IP version 6
 - - libcaca : Add support for colored ASCII-art graphics
 + + mad : Adds support for mad (high-quality mp3 decoder library and 
cli frontend)
 + + mmap: Adds mmap (memory map) support
 + + mng : Adds support for libmng (MNG images)
 - - modplug : Build with modplug support
 + + musepack: Enable support for the musepack audio codec
 + + nls : Adds Native Language Support (using gettext - GNU locale 
utilities)
 + + opengl  : Adds support for OpenGL (3D graphics)
 - - oss : Adds support for OSS (Open Sound System)
 - - pulseaudio  : Adds support for PulseAudio sound server
 + + samba   : Adds support for SAMBA (Windows File and Printer sharing)
 + + sdl : Adds support for Simple Direct Layer (media library)
 + + speex   : Adds support for the speex audio codec
 + + theora  : Adds support for the Theora Video Compression Codec
 + + truetype: Adds support for FreeType and/or FreeType2 fonts
 - - v4l : Enables video4linux support
 - - vcd : Video CD support
 - - vidix   : Support for vidix video output
 + + vorbis  : Adds support for the OggVorbis audio codec
 + + wavpack : Build with WavPack support
 - - win32codecs : use win32codecs package for dll avi decoding support (wmv 
and what not)
 + + xcb : Support the X C-language Binding, a replacement for Xlib
 + + xinerama: Add support for the xinerama X11 extension, which allows 
you to stretch your display across multiple monitors
 + + xv  : Adds in optional support for the Xvideo extension (an X API 
for video playback)
 - - xvmc: Support for XVideo Motion Compensation (accelerated mpeg 
playback)

Thank you for any suggestion

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgp9zV5QAKbgM.pgp
Description: PGP signature


[gentoo-user] shorewall configuration

2007-07-24 Thread Aleksey V. Kunitskiy
Hi,

I'm trying to configure snat with shorewall. I read all manual on the official 
site + some Gentoo Wiki topics. I made test configuration, but shorewall 
start didn't start and I can't understand where is the problem.

Thank you for any suggestion

#shorewall show capatibilities:
Shorewall-3.2.9 Chains capatibilities at enigma - Tue Jul 24 16:12:35 EEST 
2007
iptables: No chain/target/match by that name

#shorewall start log:

Compiling...
Determining Zones...
   IPv4 Zones: net loc
   Firewall Zone: fw
Validating interfaces file...
Validating hosts file...
Validating Policy file...
Determining Hosts in Zones...
   net Zone: ppp0:0.0.0.0/0
   loc Zone: eth1:192.168.3.0/24
Pre-processing Actions...
   Pre-processing /usr/share/shorewall/action.Drop...
   Pre-processing /usr/share/shorewall/action.Reject...
   Pre-processing /usr/share/shorewall/action.Limit...
Deleting user chains...
Compiling /etc/shorewall/routestopped ...
Compiling Accounting...
Creating Interface Chains...
Compiling Proxy ARP
Compiling NAT...
Compiling NETMAP...
Compiling Common Rules
Adding Anti-smurf Rules
Adding rules for DHCP
Enabling RFC1918 Filtering
Compiling TCP Flags checking...
Compiling Kernel Route Filtering...
Compiling Martian Logging...
Compiling IP Forwarding...
Compiling /etc/shorewall/rules...
Compiling /etc/shorewall/tunnels...
Compiling Actions...
Compiling /usr/share/shorewall/action.Drop for Chain Drop...
Compiling /usr/share/shorewall/action.Reject for Chain Reject...
Compiling /etc/shorewall/policy...
   WARNING: NAT disabled; masq rule ignored
Compiling /etc/shorewall/tos...
Compiling /etc/shorewall/ecn...
Compiling Traffic Control Rules...
Validating /etc/shorewall/tcdevices...
Validating /etc/shorewall/tcclasses...
Compiling Rule Activation...
Compiling Refresh of Black List...
Compiling Refresh of /etc/shorewall/ecn...
Validating /etc/shorewall/tcdevices...
Validating /etc/shorewall/tcclasses...
Shorewall configuration compiled to /var/lib/shorewall/.start
Processing /etc/shorewall/params ...
Starting Shorewall
Initializing...
Processing /etc/shorewall/init ...
Clearing Traffic Control/QOS
Deleting user chains...
iptables: No chain/target/match by that name
   ERROR: Command /sbin/iptables -A FORWARD -m state --state 
ESTABLISHED,RELATED -j ACCEPT Failed
Processing /etc/shorewall/stop ...
iptables: No chain/target/match by that name
iptables: No chain/target/match by that name
IP Forwarding Enabled
Processing /etc/shorewall/stopped ...
/sbin/shorewall: line 529:  9682 Terminated  ${VARDIR}/.start 
$debugging start


-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgpmI47urpgPL.pgp
Description: PGP signature


Re: [gentoo-user] xine audio skips

2007-07-24 Thread Aleksey V. Kunitskiy
On Tuesday 24 July 2007 16:53, Volker Armin Hemmann wrote:
 and do you have arts running? if yes, kill it before you start watching a
 video. Arts sucks. ESD sucks too.. all sound daemons suck...
No, Arts is turned off and I don't use it. Audio output is set alsa in xine 
options

 maybe using xvmc might help?
I don't think so, because I have problems only with mkv format. HDTV in avi 
container have not this problem

Maybe mkv sync is broken in xine? Don't know... I'll try to emerge latest 
masked...

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgpQz54PSvCKF.pgp
Description: PGP signature


Re: [gentoo-user] shorewall configuration

2007-07-24 Thread Aleksey V. Kunitskiy
On Tuesday 24 July 2007 17:01, Uwe Thiem wrote:
 I think your trouble starts here. Did you try to put any NAT rule into
 policy? That would be wrong. It belongs to nat. Would you show us your
 policy file (only the rules in there, *not* all the comments)?

 Uwe

I've found where the problem is.

Note the following error:

iptables: No chain/target/match by that name
   ERROR: Command /sbin/iptables -A FORWARD -m state --state 
ESTABLISHED,RELATED -j ACCEPT Failed

In 99% cases it's because one of features is missed in the kernel 
configuration. I've turned on 2 modules in kernel and it works.

Anyway, thanks!

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgprvVE7PhCBs.pgp
Description: PGP signature


Re: [gentoo-user] Hotswapable Drive

2007-07-24 Thread Aleksey V. Kunitskiy
On Tuesday 24 July 2007 19:04, Florian Philipp wrote:
 Hi!

 I'd like to know what's the current best practice to handle a hotswapable
 SATA-drive. It's the optical drive of my Dell Latitude D520 laptop, the so
 called Media Bay.

I'm using sata hard drive in hot-swap case and it works perfectly. But one 
important thing - I have to turn off disk power first, then I can change it.

HTH

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgpPLZboNk2I4.pgp
Description: PGP signature


[gentoo-user] udev and usb stick/hdd

2007-07-21 Thread Aleksey V. Kunitskiy
Hi

I'm trying to learn how to write udev rules for auto-naming usb sticks and usb 
hard drives. I have several problems that I can't solve:

Can I precisely recognize usb stick and usb hard drive ? Note that the last is 
exactly external usb hard drive, not a usb stick.

Can I disable write-cache on vfat,ntsf-3g?

Thanks for any suggestions.

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgpQtAErzNwsO.pgp
Description: PGP signature


Re: [gentoo-user] udev and usb stick/hdd

2007-07-21 Thread Aleksey V. Kunitskiy
On Saturday 21 July 2007 17:15, Dirk Heinrichs wrote:
 Yes. See http://www.reactivated.net/writing_udev_rules.html
Big thanks Dirk

 It seems vfat doesn't have a sync mount option. For ntfs-3g I don't know.
That's a pitty. It's a big problem for me when I write data to flash disk and 
I need to flush data frequently.

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgpNylcFLuNxQ.pgp
Description: PGP signature


Re: [gentoo-user] Switching virtual desktops in KDE with Xinerama

2007-07-06 Thread Aleksey V. Kunitskiy
On Friday 06 July 2007 13:57, Elias Probst wrote:
 This was just implemented as a GSoC project during the last weeks. I think
 we'll see this in KDE4
 http://www.fredemmott.co.uk/blog_103

 Regards, Elias P.

Thanks. I hope it will be done it KDE4 and KDE4 will become stable very soon 
after release :)

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgpHhpB2RzCgl.pgp
Description: PGP signature


[gentoo-user] A Good player for streaming audio

2007-07-06 Thread Aleksey V. Kunitskiy
Hi
I'm using Amarok as my favorite audio player. But I listen to radio very often 
and I not found in Amarok ability of writing audio streams.
Anybody can advice me a good player for recording radio streams?
Thanks

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgpKQ3QSJkBUd.pgp
Description: PGP signature


Re: [gentoo-user] A Good player for streaming audio

2007-07-06 Thread Aleksey V. Kunitskiy
On Friday 06 July 2007 21:13, Marc Joliet wrote:
file output module, and using aplay for listening to the output file

Hmm, can you point me to this file output module, please? You are using 
aplay because that module does raw dump of the stream without header, so 
amarok can't play it?

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgpTih7hIN8VF.pgp
Description: PGP signature


Re: [gentoo-user] A Good player for streaming audio

2007-07-06 Thread Aleksey V. Kunitskiy
On Friday 06 July 2007 22:52, Marc Joliet wrote:
 Audio settings -- set audio output to xine engine -- change output
 module (in German Ausgabe-Modul) to file. That writes the output to
 the file ~/alsa-out.wav.
I was there but there wasn't file engine in the list. Seems that I've to set 
aprorriate USE flags to amarok and recompile it

 Sorry for inaccuracies from translating, I have a German locale, so I
 don't know what the English version says.
Not a big problem, I understood, thanks ;)

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgpKmWm3AtoJD.pgp
Description: PGP signature


[gentoo-user] Switching virtual desktops in KDE with Xinerama

2007-07-05 Thread Aleksey V. Kunitskiy
Hi
Can I switch virtual desktops in KDE with Xinerama separately on each screen? 
I know that it can be done without Xinerama(by using two X11 screens), but I 
might have the ability moving windows between screens - with Xinerama I can 
this.

Thanks for any suggestions

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgpuWDxVzrpIJ.pgp
Description: PGP signature


Re: [gentoo-user] Seamonkey and saving images taking so long

2007-06-30 Thread Aleksey V. Kunitskiy
On Saturday 30 June 2007 08:29, Dale wrote:
 Any ideas?  Is it Seamonkey or something else?

 Thanks for any help.

 Dale

 :-)  :-)

You can check how much processor time takes kernel(top or htop) - if kernel 
loads cpu too much then it is probably fs io.

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgp2y1JkmOH8n.pgp
Description: PGP signature