Re: [gentoo-user] Re: Anyone using libreoffice 3.5.0.0 yet?

2011-12-03 Thread Maciej Grela
2011/12/3 walt w41...@gmail.com:
 On 12/01/2011 07:44 PM, victor romanchuk wrote:


 Can anyone confirm or deny?



 i confirm. apart of these 'painting' issues in localc, observed both
 lowriter
 and localc crash during arbitrary pointer movements over menu items. it
 seems
 all that misbehavior is related to x11-libs/gtk+:3


I have also rolled back to 3.4.4 due to repaint problems in all apps.
Initially I blamed this on nouveau but I don't know how to check if
this is the case.

Best regards,
Maciej Grela



Re: [gentoo-user] [OT] laptop desktop serial connection don't work on one direction

2011-11-06 Thread Maciej Grela
2011/11/5  bill.long...@gmail.com:
 Pardon my top post please.

 You'll have too ensure that you have only three wires. Line 2 to 3, line 3
 to 2 and line 5 straight through. I don't think you'll be able to get bi
 directional serial links if you have the other hardware lines connected.


When you have a simple cable like that make sure to disable hardware
flow control on *both* sides. This is a mistake I was always making in
the past.

Best regards,
Maciej Grela



Re: [gentoo-user] rfkill

2011-06-26 Thread Maciej Grela
2011/6/26 Ignas Anikevicius anikevic...@gmail.com:
 Hi guys,

 I wanted to ask how to check what scripts/events are started when I
 press a key? I have some automagical stuff happening when I press Fn+F5
 (I have a Thinkpad x200s). To be more precise, my Wifi card is switched
 off and on and I want to know what is causing this and turn it off.


You don't need a script for this. If you have the rfkill-input kernel
module or the thinkpad-acpi module they hook into the hotkeys and
drive rfkill to enable/disable radios.

Best regards,
Maciej Grela



Re: [gentoo-user] {OT} Tether a Google Nexus One?

2011-05-03 Thread Maciej Grela
2011/5/3 Grant emailgr...@gmail.com:
 Does anyone know if a Google Nexus One cell phone can be USB tethered
 to a Gentoo system?  I use wvdial to accomplish this with other cell
 phones but I've read that the Nexus One doesn't work that way because
 it doesn't appear on the host system as a tty:

 http://forum.nginx.org/read.php?23,146509,147989

 There is a tethering option in the Nexus One settings but I can't
 figure out how to get my Gentoo laptop to use the tethered cell
 phone's internet connection.


What kind of device appears in the system when you plug in the phone ?
The last few lines of dmesg would give the best information.

Best regards,
Maciej Grela



Re: [gentoo-user] *** URGENT *** xdg-open respawns itself until crash

2011-03-31 Thread Maciej Grela
2011/3/31 Helmut Jarausch jarau...@igpm.rwth-aachen.de:
 Hi,

 I have a big problem on a very import machine here.
 Although it's a bit copy of a running machine,
 it somehow respawns xdg-open until the system is out of memory
 and therefore unresponsive or it crashes.

 How can I find out which process tries to start xdg-open?

 It assume it's connected to some settings the user's home directory.


Use pstree to see what is executing it when this is happening.

Br,
Maciej Grela



Re: [gentoo-user] Best way to improve interactivity with heavy disk activity?

2010-11-27 Thread Maciej Grela
2010/11/26 Stroller strol...@stellar.eclipse.co.uk:
 Hi there,

 As per subject, what's the best way to improve interactivity with heavy disk 
 activity, please?

 Or perhaps a better question would be: what approaches are available?

 Presently my main Linux system is basically just a storage server with a 
 *really slow* disk controller. I do all my web-browsing and email (and most 
 other things) on my Mac laptop (because my Mac desktop has recently died ☹), 
 but I occasionally do some bash or perl scripting, searches and other stuff 
 on this Linux box.

 Normally this isn't a problem - the machine is an old Pentium 4 but plenty 
 powerful enough for this simple command-line stuff. However I have recently 
 bought a new STB which plays DVD .iso files across the network, so I started 
 ripping DVDs on storage server, using dvdbackup  mkisofs. When I do so, 
 interactivity becomes *dire* - it takes maybe 15 seconds for *any* command to 
 execute.

 My immediate reaction was to consider the recent 200-line patch to kernel = 
 superkernel thread:
 http://www.gossamer-threads.com/lists/gentoo/user/221770

 But I have also heard of `ionice` in the past: 
 http://linux.die.net/man/1/ionice

 I've never used that - in fact, I can't recall ever having to use the regular 
 `nice` - but I think maybe I should consider it.

 Does anyone have any thoughts, please?


I use ionice  nice when running paludis in the background and it does
the job pretty well:

alias paludis='ionice -c 3 nice -n 19 paludis'

Just remember that for ionice to work properly you need to have the
CFQ I/O scheduler enabled.

Best regards,
Maciej Grela



Re: [gentoo-user] mkfs.ext4 -j /dev/sdb1

2010-11-27 Thread Maciej Grela
2010/11/27 James wirel...@tampabay.rr.com:
 Hello,

 I just added a new drive to an existing system
 using an ext4 (journaled) file system.

 I was not sure about using the -j option
 so I did it anyway. Correct assumption?
 Irrelevant?  no examples to ponder.

 comments or observations on the -j option
 with ext4?

Irrelevant for running mkfs.ext4. The journal is always created in
this case. This option has been used for mke2fs.

Best regards,
Maciej Grela



Re: [gentoo-user] Suspect fs, or suspect disk, or something else?

2010-11-09 Thread Maciej Grela
2010/11/9 Mick michaelkintz...@gmail.com:
 Hi All,

 I've had at least 3 fs corruptions on a Reiser4 fs, in as many months.

 I understand that the fs type is experimental, but am wondering if it
 is the fs at fault here or Dell's hard drive:


Check your RAM using memtest86.

-- 
Maciej Grela



Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-09 Thread Maciej Grela
2010/11/9  meino.cra...@gmx.de:
 Hi,

 it is possible to run a 32-bit binary executable on a 64-bit system
 (AMD64).


 But: Is it possible to compile source code on a 64-bit system and get
 an 32-bit executable a the result ??? And if 'yes'...how???


gr...@kraken ~ $ cat test.c
void main() {}
gr...@kraken ~ $ gcc -o a.out.64 test.c
gr...@kraken ~ $ gcc -m32 -o a.out.32 test.c
gr...@kraken ~ $ file a.out.*
a.out.32: ELF 32-bit LSB executable, Intel 80386, version 1
(GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux
2.6.9, not stripped
a.out.64: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux),
dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not
stripped
gr...@kraken ~ $

Br,
Maciej Grela



Re: [gentoo-user] [Somewhat OT] Laptop battery not showing up in KDE, Smart Battery calibration

2010-11-09 Thread Maciej Grela
2010/11/9 Paul Hartman paul.hartman+gen...@gmail.com:
 Hi,

 I have a laptop running Gentoo (with dual-boot to Windows XP). It was
 manufactured in 2004 and battery life have been consistent for all
 those years. However, it sat dormant for almost a year, after which I
 did a few days worth of updating to bring it up to current kernel and
 ~amd64 package levels. There are two issues that have arisen:

 1) The smart battery is not so smart anymore. It only charges about
 halfway, then the charging light turns green and it stops. Effective
 battery capacity is about one-third of what it used to be. From what I
 understand, while Li-ion don't have memory like old Ni-Cd batteries,
 the smart circuitry cannot account for power drain that happens when
 the battery is not in use. Say the battery lost half of its power
 while it was in storage, so the chip thinks charge is at one level
 when it is really much lower. When recharging, it stops when it is
 full even though it's only halfway there.


The inbuilt battery circuit can account for the self-discharge, the
charge on a lithium cell is proportional to it's voltage IIRC. The
problem is, that li-ion cells don't like being totaly discharged (for
example lying unused for a year). It's advised to charge them and only
then put them into storage (and recharge every once in a while). So
your battery may simply have 3 cells, 2 of which have been damaged by
self-discharge, therefore you are seeing only 30 % of the previous
capacity.

Br,
Maciej Grela



Re: [gentoo-user] Auto-detecting network I'm connected to

2010-10-21 Thread Maciej Grela
2010/10/21 Alan McKinnon alan.mckin...@gmail.com:
 Hi all,

 One gentoo notebook running wicd, three general classes of network logon used
 frequently (dhpc always):

 work - mostly wired, occasionally wireless. There's a plethora of APs to pick
       from, some official, some rogue. And not all end up being served by the
       same dhcp server, or even be in sync with each other.
 home - Easy one. Usually wireless, sometimes wired. I control the router.
 everything else - friend's houses, other companies, wifi hotspots.

 Thanks to our IT division I get lots of practice in finding interesting ways
 into the corporate network. Depending on how I'm connected I start up all
 manner of tunnels, socks proxies and various other bits. Doing this manually
 is getting tedious.

 So I'm looking for a reasonably reliable way of detecting what served my
 current IP address so the post-start script in wicd can detect this and launch
 all the correct things correctly. The actual address range and domain is not
 the way to go - too many networks dish out 10.0.0.0/8 and example.com for that
 to work well.

 I have some ideas of my own, but figured I'd ask here as well. Odds are
 excellent someone will have much better ideas than I.


There are a few metrics you can use to identify a network you are on:

1. ESSID and AP MAC in case of wireless
2. MAC address of DHCP server that served you the address (can be also
used to alarm you when DHCP-spoofing is detected).
3. MAC addresses of hosts provided by DHCP (gateway and DNS usually).
4. CDP or LLDP traffic on your interface (usually present in corporate LANs).

There was once a feature in gentoo, which involved loading different
network profiles from /etc/conf.d/net depending on the IP address of
the gateway offered by DHCP. It worked pretty well in the days before
networkmanager and wicd.

-- 
Maciej Grela



Re: [gentoo-user] Suspend-to-disk stopped by xhci-module...

2010-10-11 Thread Maciej Grela
2010/10/11  meino.cra...@gmx.de:
 Hi,

 For my ASUS Crosshair IV Formula motherboard I use the (experimental)
 USB 3.0 driver xhci.
 When this driver is loaded as module I cannot send the PC to
 suspend-mode.
 After unloading that module, it works.

 Is it possible to rmmod this module and maybe sync and unmount any
 related USB-device automagically before entering any suspend mode?
 (Or is there any other nice trick to circumvent that problem?)


What appears in dmesg when you try to suspend with the module loaded ?

-- 
Maciej Grela



Re: [gentoo-user] HAL? ACPID?

2010-10-09 Thread Maciej Grela
2010/10/9  meino.cra...@gmx.de:

 Hi,

 in search of informations about acpi/acpid on the internet I found
 the statement, that acpid is now obsoleted by hal.
 When I give acpi in the gentoo wiki I found installation
 instructions for acpid and HAL is not mentioned.

 I am confused now...

 I am using an ASUS Crosshair IV Formula wuth an AMD Phenom II X6
 CPU. Suspend-to-Swap works fine (as a sign of a working ACPI
 implemention...)

 What should I use ? Acpid? Hal? Both?


What do you want to do with acpi ?

-- 
Maciej Grela



Re: [gentoo-user] What network configuration should I use with vbox

2010-10-08 Thread Maciej Grela
2010/10/8 Mick michaelkintz...@gmail.com:
 I want to install MSWindows in a VM.  I want to be able to use the guest
 MSWindows OS to connect to a website run on apache on the Gentoo host OS on
 the same machine.

 What is the recommended network configuration for the VM?  NAT or bridge?
 Anything I should pay particular attention to?  I haven't configured a network
 machine before.

I would suggest bridge mode in this case.

-- 
Maciej Grela



Re: [gentoo-user] Filesystem couldn't be fixed

2010-10-06 Thread Maciej Grela
2010/10/6 Gaston shuo...@gmail.com:
  hello everyone,I have installed Gentoo,but,when I reboot it,the
 filesystem is readonly,
 Filesystem couldn't be fixed
 how can I solve it,thanks very much



Did you have a power failure ?
Have you tried to run fsck on the filesystem after booting from some
livecd linux (I'd suggest System Rescue CD) ?
Have you checked your RAM (with memtest86) and HDD (with badblocks) ?

Best regards,
Maciej Grela



Re: [gentoo-user] Where should i ask Gentoo/Xen/hardware questions?

2010-10-06 Thread Maciej Grela
2010/10/6 Olaf Krause gentoo...@okit.de:
 Hello,

 first: where should I ask the following question?

 We successfully operate some HP Proliant DL380 G3, using Gentoo Xen-kernels
 as Dom0 and DomU.
 Now i tried to upgrade to Generation 4 and 6:
 * HP Proliant DL380 G4
 * HP Proliant DL380 G6

 Grub works fine. After selecting a kernel to boot, it is loaded and starts
 operating and fails some lines later with a kernel panic. The kernel seems
 not to find the HP SCSI controller (/dev/cciss/...).

 I made sure, that the kernel has build in the needed drivers as described
 here:
  http://en.gentoo-wiki.com/wiki/HP_ProLiant_DL380_G5

 Funny is, that the Gentoo boot images do work, for example
 install-x86-minimal-20100216.iso.

 I use the iso images to boot the system initially, initialize the SCSI disks
 with fdsik and mkfs... and then mount the SCSI drives (/dev/cciss/...), copy
 a working tarball-image, populate the filsystem and then use the grub shell
 make it bootable.

 Attached is a screen shot with the error message.


Is this screenshot from a domU or dom0 ? If it's from a domU then I
think that in Xen you have a different driver than cciss for the
disks.

If it's from a dom0, are you sure that you have the cciss driver
built-in instead of a module ? From the screenshot it seems that it's
not present at the point the kernel is booting.

-- 
Maciej Grela



Re: [gentoo-user] Where should i ask Gentoo/Xen/hardware questions?

2010-10-06 Thread Maciej Grela
2010/10/6 Olaf Krause gentoo...@okit.de:
 Hello,

 first: where should I ask the following question?

 We successfully operate some HP Proliant DL380 G3, using Gentoo
 Xen-kernels
 as Dom0 and DomU.
 Now i tried to upgrade to Generation 4 and 6:
 * HP Proliant DL380 G4
 * HP Proliant DL380 G6

 Grub works fine. After selecting a kernel to boot, it is loaded and
 starts
 operating and fails some lines later with a kernel panic. The kernel
 seems
 not to find the HP SCSI controller (/dev/cciss/...).

 I made sure, that the kernel has build in the needed drivers as described
 here:
  http://en.gentoo-wiki.com/wiki/HP_ProLiant_DL380_G5

 Funny is, that the Gentoo boot images do work, for example
 install-x86-minimal-20100216.iso.

 I use the iso images to boot the system initially, initialize the SCSI
 disks
 with fdsik and mkfs... and then mount the SCSI drives (/dev/cciss/...),
 copy
 a working tarball-image, populate the filsystem and then use the grub
 shell
 make it bootable.

 Attached is a screen shot with the error message.


 Is this screenshot from a domU or dom0 ? If it's from a domU then I
 think that in Xen you have a different driver than cciss for the
 disks.

 If it's from a dom0, are you sure that you have the cciss driver
 built-in instead of a module ? From the screenshot it seems that it's
 not present at the point the kernel is booting.

 It is the screenshot of the Dom0. And yes - also for me the driver seems not
 to be available during boot time. But i am sure to have it build in. And on
 older hardware (G3 - generation 3 HP hardware) the same kernel seems to
 work, mounting the cciss devices.

 Here is what mount says in the same kernel on a G3 hardware (sorry for the
 linebreaks):
 
 orion ~ # mount
 /dev/cciss/c0d0p1 on / type ext3 (rw,noatime)
 proc on /proc type proc (rw,nosuid,nodev,noexec)
 sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
 udev on /dev type tmpfs (rw,nosuid,size=10240k,mode=755)
 devpts on /dev/pts type devpts (rw,nosuid,noexec,gid=5,mode=620)
 /dev/cciss/c0d1p1 on /mnt/xen2 type ext3 (rw,noatime)
 shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
 usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85)
 ---


Maybe the cciss driver doesn't have your controller on the PCI devices
list. This is unlikely but would give the symptoms you are describing.
Please post the output of 'lspci -k' and 'lspci -n' commands. Which
kernel version are you trying to run ?

-- 
Maciej Grela



Re: [gentoo-user] Booting Gentoo from USB stick

2010-09-10 Thread Maciej Grela
2010/9/10 Jake Moe jakesaddr...@gmail.com:
  Hello all,

 I've been thinking about creating a Gentoo USB stick for install and rescue
 purposes (and, of course, just to see if I could).  I've mostly followed the
 Gentoo handbook (I used a single 4GB partition for the whole system, and no
 swap).  I've used genkernel for the kernel (so I can have a multi-system
 capable kernel).  I've gotten GRUB installed and working.  My problem comes
 in after what I believe is the init process:


 Gentoo Linux; http://www.gentoo.org
  Copyright 1999-2009 Gentoo Foundation; Distributed under the GPLv2

 Press I to enter interactive boot mode

  * Mounting proc at /proc ...                                             [
 ok ]
  * Mounting sysfs at /sys ...                                             [
 ok ]
  * Mounting /dev ...                                                      [
 ok ]
  * Starting udevd ...                                                     [
 ok ]
  * Populating /dev with existing devices through uevents ...              [
 ok ]
  * Waiting for uevents to be processed ...                                [
 ok ]
  * Mounting devpts at /dev/pts ...                                        [
 ok ]
  * Checking root filesystem ...
 fsck.ext2: No such file or directory while trying to open /dev/sda1
 /dev/sda1:
 The superblock could not be read or does not describe a correct ext2
 filesystem.  If the device is valid and it really contains an ext2
 filesystem (and not swap or ufs or something else), then the superblock
 is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 device

  * Filesystem couldn't be fixed :(                                        [
 !! ]
 Give root password for maintenance
 (or type Control-D to continue):


 If I give the root password, I can find no /dev/sda1.  However, mount shows
 /dev/sda1 on /, and there *is* a /sys/block/sda folders, with a sda1 folder
 in that as well.  It's almost like it had /dev/sda1, but then lost it
 somehow.

 Does anyone have any idea what's going on here?  Any help would be
 appreciated.


Have you seen http://www.sysresccd.org/Main_Page ? It's based on
Gentoo, you could check what they did to boot from a usb stick.

Br,
Maciej Grela



[gentoo-user] Properly handling missing files when downloading files from ftp:// via ISA proxy (emerge/wget)

2010-09-10 Thread Maciej Grela
Hi,

Is there any way to make emerge (wget) correctly behave when it tries
to download a non-existing file from FTP
in a network using ISA as ftp_proxy ? I have one of these at work and
it's really annoying because of situations
like below:

pazuzu ~ # LC_ALL=C wget -T 30 -t 1 --continue -O
/var/cache/src/cvsps-2.1.tar.gz
ftp://ftp.gentoo.mesh-solutions.com/gentoo/distfiles/cvsps-2.1.tar.gz
--2010-09-10 16:31:25--
ftp://ftp.gentoo.mesh-solutions.com/gentoo/distfiles/cvsps-2.1.tar.gz
Connecting to 10.144.1.10:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/var/cache/src/cvsps-2.1.tar.gz'

[ =
] 318
   --.-K/s   in 0s

2010-09-10 16:31:25 (14.9 MB/s) - `/var/cache/src/cvsps-2.1.tar.gz' saved [318]

Wget thinks, that this file was downloaded when really it contains
some crap produced by ISA:

pazuzu ~ # cat /var/cache/src/cvsps-2.1.tar.gz
HTML
meta http-equiv=Content-Type content=text-html; charset=UTF-8
HEAD
TITLEServer error message /TITLE
/HEAD
BODYH1ISA Server: extended error message : /H1
PRE200 Switching to Binary mode.
227 Entering Passive Mode (213,203,218,123,116,42)
550 Failed to open file.
/PRE
/BODY
/HTML
pazuzu ~ #


Is there any way to work around this problem ?
Is it neccessary to change ISA configuration to properly respond to an
ftp client when
the file is missing ? If yes, how ?

Best regards,
Maciej Grela



Re: [gentoo-user] Properly handling missing files when downloading files from ftp:// via ISA proxy (emerge/wget)

2010-09-10 Thread Maciej Grela
2010/9/10 Paul Hartman paul.hartman+gen...@gmail.com:
 On Fri, Sep 10, 2010 at 9:43 AM, Maciej Grela maciej.gr...@gmail.com wrote:
 Hi,

 Is there any way to make emerge (wget) correctly behave when it tries
 to download a non-existing file from FTP
 in a network using ISA as ftp_proxy ? I have one of these at work and
 it's really annoying because of situations

 If you are allowed to bypass the proxy, try --use-proxy=off in your
 wget command line.


Unfortunately proxy is the only way to access the Internet.

 It seems your FTP is proxied over HTTP and your client needs to
 support this. I'm not sure if wget supports HTTP proxies for FTP.

 Here is a document from Microsoft about configuring ISA and various clients:
 http://technet.microsoft.com/en-us/library/bb794745.aspx


I'll read that, thanks.

Br,
Maciej Grela



Re: [gentoo-user] strange network problem

2010-09-07 Thread Maciej Grela
2010/9/7 路 xaoru2...@163.com:
 Hi ,everybody
          I've met a strang network problem.My gentoo Netbook can't access
 google and some other web sites after  lying idle about more than half an
 hour's. But it can acesses  other sites normally ,And can pinging  ervery
 sites including google very well! The Only thing i can do is rebooting  the
 system,and Network resume aftre that. I've googled a lot,and found nothing
 to solve this problem. :-(
        It borthered me a lot.Please help me!


You should run wireshark and see what is happening when you are trying
to access google.

Best regards,
Maciej Grela



Re: [gentoo-user] New HD monitor stretches everything. How to teach Xorg?

2010-08-25 Thread Maciej Grela
2010/8/25 Peter Humphrey pe...@humphrey.ukfsn.org:
 On Wednesday 25 August 2010 15:44:58 Mick wrote:

 Fair enough, but anything other than the native resolution on an LCD
 monitor will end looking distorted or blurred.

 Why? Granted, LCD panels are made up of discreet pixels, but so are
 CRTs: the dots are deposited in trios, each illuminated through a hole
 in the shadow mask.

Right, but nature does a better job at upsampling an image than DSPs.

Br,
Maciej Grela



Re: [gentoo-user] New HD monitor stretches everything. How to teach Xorg?

2010-08-25 Thread Maciej Grela
2010/8/25 Peter Humphrey pe...@humphrey.ukfsn.org:
 On Wednesday 25 August 2010 15:44:58 Mick wrote:

 Fair enough, but anything other than the native resolution on an LCD
 monitor will end looking distorted or blurred.

 Why? Granted, LCD panels are made up of discreet pixels, but so are
 CRTs: the dots are deposited in trios, each illuminated through a hole
 in the shadow mask.

Right, but nature does a better job at upsampling an image than DSPs.

Br,
Maciej Grela