Re: [gentoo-user] Reinstall Gentoo? [Was: Building pygtk-2.22.0-r1 fails. Help, please!]

2011-04-25 Thread Mark Knecht
On Mon, Apr 25, 2011 at 8:03 AM, Alan Mackenzie a...@muc.de wrote:
SNIP
 Call me a clinging cry-baby if you like, but until I'm confident about my
 new kernel, I'd like to hang on to the old one, including its sources.
 It'd also be nice to run --depclean in the meantime.  Do I have to do
 recursive copying or directory renaming to achiev this?


Run something like

emerge --noreplace =gentoo-sources-2.6.38-r1

to add the kernel you want to keep to your world file, or just add the
kernel with it's specific revision to the world file manually. At that
point emerge won't delete it and you won't get any messages until
portage maintainers remove it from portage.

HTH,
Mark



Re: [gentoo-user] Howzat!

2011-04-21 Thread Mark Knecht
On Wed, Apr 20, 2011 at 6:33 AM, Neil Bothwick n...@digimed.co.uk wrote:
SNIP
 Here it is, as an attachment too to avoid screwing up the lines


 #!/bin/bash

 export PORTAGE_ECLASS_WARNING_ENABLE=0
 WORLD_MERGE=emerge --update --deep --reinstall changed-use --with-bdeps y 
 --verbose @system @world


Hi Neil,

I like the script. Thanks for posting it.

 I guess I've lost track. Is @system not a part of @world or is that
done for some other reason? The emerge man page says 'world
encompasses both the selected and system sets.'

Thanks,
Mark



Re: [gentoo-user] Howzat!

2011-04-21 Thread Mark Knecht
On Thu, Apr 21, 2011 at 3:42 PM, Neil Bothwick n...@digimed.co.uk wrote:
 On Thu, 21 Apr 2011 06:41:08 -0700, Mark Knecht wrote:

  WORLD_MERGE=emerge --update --deep --reinstall changed-use
  --with-bdeps y --verbose @system @world

  I guess I've lost track. Is @system not a part of @world or is that
 done for some other reason? The emerge man page says 'world
 encompasses both the selected and system sets.'

 It is, but at the time I added that to the script, it wasn't the case.
 The script needs updating, it hasn't been touched for over two years.


 --
 Neil Bothwick

Easily explained. Thanks!
-Mark



Re: [gentoo-user] [OT] Disk recommendations?

2011-04-10 Thread Mark Knecht
On Sun, Apr 10, 2011 at 12:50 AM, Peter Humphrey
pe...@humphrey.ukfsn.org wrote:
 On Saturday 09 April 2011 22:01:18 Mark Knecht wrote:

 Are you running a RAID?

 Yes; mdadm RAID-1, with LVM on top, as in the Gentoo how-to:
 http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml

 Are you looking for a little redundancy or a lot of redundancy?

 I'm just speculating at the moment, from a dabbler's point of view; what 
 benefits
 would accrue from switching from RAID-1 to RAID-5 or above? And, in 
 particular,
 what are the comparative virtues of the Samsung disks?


My understanding is there's nothing more reliable than RAID1. mdadm
allows N-wide RAID1. My RAID1's are currently 3-drive.

Typically the higher RAID numbers are for trading off storage space,
redundancy and in some cases throughput. My 5-drive RAID6 gives me
(again, my understanding) equivalent redundancy to a 3-drive RAID1. I
can lose 2 drives in either RAID before I risk losing everything with
a 3rd drive failure, but I only get the storage of 3-drives. A 5-drive
RAID5 would lose everything with 2 drive failures but gets  4 drives
of storage.


As for Samsung drives I have no experience. However one common problem
I read about again and again is a RAID user who loses 1 drive and
then, while in the process of fixing the RAID, loses a second drive.
Most of us (myself included) buy identical drives all at the same time
from the same vendor. This means all the drives were likely from the
same manufacturing batch and, if they are drives that will fail at all
then the group will likely experience multiple drive failures. The
underlying idea of RAID is that the drives are not likely to fail at
the same time giving us time to fix the array. However, if /dev/sda
fails the chances of /dev/sdb failing is higher if they were built at
the same time in the same plant.

Reading the mdadm list for the last couple of years it seems that many
folks running data centers intentionally buy drives from multiple
manufactures, or drives of different sizes from the same manufacturer,
hoping to lower the chances of multiple failures at the same time.
What I did myself was buy 5 drives initially, 3 from Amazon, 2 from
NewEgg. For spares I then waited 2 months, bought one more drive, and
waited another 2 months and got one more. In my case all my drives are
WD RAID Edition drives which have higher reliability specs than the
commercial drives. (And are more expensive and smaller)

As for hardware RAID the risk I hear about there is that if the
controller itself fails then you need an identical backup controller
or you risk the possibility that you won't be able to recover
anything. I don't know how true that is or whether it's just FUD.

Cheers,
Mark



Re: [gentoo-user] LVM for data drives but not the OS

2011-04-09 Thread Mark Knecht
On Sat, Apr 9, 2011 at 6:33 AM, Dale rdalek1...@gmail.com wrote:
SNIP

 I think I am too.  Since folks know I am disabled anyway, I went to the Dr
 the other day.  The new meds aren't perfect but it is better.  When I go
 back, he may change it to another med.  He just wanted to try this first.
  It does sort of help me to get a better grasp on things tho.  Sort of weird
 in a way.  That part is like a side effect.  :/

 I'm just needing to find me a good LARGE drive to put in here.  I'm checking
 out the reviews but it just seems most have issues.  May just have to buy
 one, work the stuffing out of it with a script or something to see if it
 holds up.

 I see some of the large drives spin slower, some a lot slower.  Given the
 density of the data, are they about as fast as a drive that spins at 7200?
  My main drives for my OS and the large drive I already have turn at 7200
 rpms.  I'm just curious if that would be slower or because of the density of
 the data, it doesn't matter.  I get about 80 to 100Mb/sec on my current
 drives.  I have 3gbs/sec drives which is what my mobo maxes out at.  I
 thought about getting a 6Gb/sec just in case I upgrade my mobo later.

 My data drive mostly has audio/video stuff but does contain pictures I took
 with my camera and some documents, mostly saved web pages or OOo stuff.  My
 750Gb drives plays audio/video stuff just fine, even the HD stuff.  I just
 wouldn't want to get a drive that is slow enough to cause pauses and such.

 I see newegg has 3Tb drives too.  he he he he  O_O

 Thoughts?

 Dale

Good thread Dale. I've been busy this week so I finally read the whole
thing, start to finish, this morning. Good LVM info which I expect
I'll use one of these days myself.

Personally II think one thing you might want to consider, given your
concerns about not losing important personal data, is to investigate
RAID with the same level of focus that you are doing with LVM. Instead
of buying very large drives (3TB) you can build a large RAID6 or RAID5
out of smaller 500GB or 1TB drives. Personally my home compute server,
which runs 4 copies of Windows 7 in VMWare and Virtualbox for trading
in the futures market, is set up this way:

- Five 500GB WD RAID Edition physical drives

- /boot is just a 100MB partition on /dev/sda, but I've saved more
partition space on other drives with various kernel images should
/dev/sda fail.

- Gentoo is on a 50GB 5-drive RAID1. That's a LOT of redundancy. I can
technically lose 4 drives and the system continues to work fine. For
the OS that's essentially unkillable short of someting like a power
supply failure taking out all the drives or the MB.

- /home is on a 5-drive RAID6 using 50GB partitions. That gives me a
total of 150GB storage personally for my pictures, videos, code, etc.,
and allows 2 drives to fail without losing data.

- /VirtualMachines is on a 5-drive RAID6 using the remaining 400GB on
each drive, so that's 1.2TB with redundancy of a 2-drive loss being
protected.

I then have a few external eSATA hard drives that I use for backups.
/home to one pair, /VirtualMachines to another pair.

I think if I was to set up this system from scratch again I might
consider one large RAID6 using 450GB and putting /home in one LV and
/VirtualMachines in another. The advantage would be that over time, if
my personal needs increased, I could resize the LVs more easily than
resizing the RAIDs. (Which is also possible but beyond the scope of
this thread...)

Anyway, it's just another idea about how you can use the same hardware
in a different configuration. Five 1TB drives as a RAID6 gives you
both 3TB of storage as well as far more reliability. One 3TB drive by
itself can die and everything is gone.

Congrats on your learning experience and I hope it continues to be
successful for you.

Cheers,
Mark



Re: [gentoo-user] [OT] Disk recommendations?

2011-04-09 Thread Mark Knecht
On Sat, Apr 9, 2011 at 1:00 PM, Peter Humphrey pe...@humphrey.ukfsn.org wrote:
 Hello list,

 I've seen some discussion of hard disks on this list recently, but I didn't
 notice any reference to Samsung Spinpoint F3 disks.

 I have two of these in my workstation; if I were thinking of adding 3 more to
 make a more robust system, what advice would I receive?

 --
 Rgds
 Peter

Some questions:

Are you running a RAID?

Are you considering going to RAID?

Are you looking for a little redundancy or a lot of redundancy?

What are your future space  drive bandwidth requirements vs today's
requirements?

Sort of hard to give any inputs (not even advice) not knowing what
your usage model is.

Cheers,
Mark



Re: [gentoo-user] LVM for data drives but not the OS

2011-04-08 Thread Mark Knecht
On Fri, Apr 8, 2011 at 6:40 AM, Dale rdalek1...@gmail.com wrote:
 Neil Bothwick wrote:

 On Fri, 08 Apr 2011 05:42:59 -0500, Dale wrote:



 Little light bulb here.  physical volume is the same as a physical
 drive?  If I understand it correctly, it is the whole thing
 unpartitioned.


 No. A physical volume is an area of disk. It can be the whole disk but it
 more usually a partition.



 Ooooh.  Still some progress tho.  lol  So, if I was going to use LVM, I
 create a partition first, either whole drive or part of it then use LVM on
 that?  Then comes in the rest of the stuff that I am still trying to get a
 grip on.

 This reminds me of catching a catfish.  It's slimy and hard to get a grip
 on.  lol

 Dale

Dale,
   As for the 'whole disk' hint, I think what Neil means is that the
drive doesn't need to be partitioned at all. I.e., instead of

mke2fs -j /dev/sda3

think

mke2fs -j /dev/sda

- Mark



Re: [gentoo-user] Why can't I emerge telnet?

2011-04-07 Thread Mark Knecht
On Thu, Apr 7, 2011 at 9:19 AM, Alan Mackenzie a...@muc.de wrote:
 Hi, Gentoo!

 I would like a telnet client installed on my gentoo amd64 system.  When I
 try
        emerge telnet
 , I get told that telnet doesn't exist.

 What am I doing wrong?  Is there a telnet client on gentoo?

 --
 Alan Mackenzie (Nuremberg, Germany).



telnet-bsd has a telnet client. (I think...)

- Mark



Re: [gentoo-user] Why can't I emerge telnet?

2011-04-07 Thread Mark Knecht
On Thu, Apr 7, 2011 at 1:13 PM, Alan Mackenzie a...@muc.de wrote:
 Hi, Jeremy.

 On Thu, Apr 07, 2011 at 11:05:41AM -0500, Jeremy McSpadden wrote:
 [I] net-misc/netkit-telnetd
      Available versions:  0.17-r6 0.17-r8 ~0.17-r9 ~0.17-r10
      Installed versions:  0.17-r8(04:51:44 11/19/09)
      Homepage:            ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/
      Description:         Standard Linux telnet client and server

 Thanks, I've installed this and it seems to work.

 learn to search portage. either eix or emerge -s

 That I'll have to do.  I'm not fully comfortable with emerge yet.

 Jeremy

 --
 Alan Mackenzie (Nuremberg, Germany).

OK, then teaching a man to fish, you'd try


mark@c2stable ~ $ eix -c telnet
[N] dev-java/telnetd (2.0): A telnet daemon for use in java applications
[N] dev-perl/Net-Telnet (3.03-r1): A Telnet Perl Module
[N] dev-perl/Net-Telnet-Cisco (1.10): Automate telnet sessions w/
routersswitches
[N] net-misc/netkit-telnetd (0.17-r6): Standard Linux telnet client and server
[I] net-misc/telnet-bsd (1.2-r1@01/21/11): Telnet and telnetd ported
from OpenBSD with IPv6 support
[N] net-misc/utelnetd (~0.1.9-r1): A small Telnet daemon, derived from
the Axis tools
[N] sec-policy/selinux-telnet (--): SELinux policy for general applications
Found 7 matches.
mark@c2stable ~ $

mark@c2stable ~ $ equery files telnet-bsd | grep bin
/usr/bin
/usr/bin/telnet
/usr/sbin
/usr/sbin/in.telnetd
mark@c2stable ~ $

and you have an answer.

In this case telnet, the binary executable, can be provided by
multiple packages, but this gets you much closer than you were.

Good luck, learn the distro and ask questions.

Cheers,
Mark



Re: [gentoo-user] Why can't I emerge telnet?

2011-04-07 Thread Mark Knecht
On Thu, Apr 7, 2011 at 1:30 PM, Joost Roeleveld jo...@antarean.org wrote:
 On Thursday 07 April 2011 15:14:43 Dale wrote:
 Alan Mackenzie wrote:
  Hi, Jeremy.
 
  On Thu, Apr 07, 2011 at 11:05:41AM -0500, Jeremy McSpadden wrote:
  [I] net-misc/netkit-telnetd
 
        Available versions:  0.17-r6 0.17-r8 ~0.17-r9 ~0.17-r10
        Installed versions:  0.17-r8(04:51:44 11/19/09)
        Homepage:
        ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/
        Description:         Standard Linux telnet client and
        server
 
  Thanks, I've installed this and it seems to work.
 
  learn to search portage. either eix or emerge -s
 
  That I'll have to do.  I'm not fully comfortable with emerge yet.
 
  Jeremy

 Sounds like you are new.  Interesting commands:  The q family.  Just
 do a man q and check it out since there is a few of them.  There is
 also eix, genlop which sort of has some common tools as the q family.
 You also need use eselect from time to time as well.  There are also
 times when revdep-rebuild will rear its head too.

 That should be a start and I'm sure someone will point out one or two I
 missed as well.  ;-)

 To search for specific packages, I think Dale and Mark did a good set.
 As for the others, like revdep-rebuild, there is also python-updater and
 etc-update.

 The last etc-update is only really needed when doing upgrades. I would like
 to recommend you try these commands before you are too dependent on the
 installation.
 Making mistakes while learning is a good method, but can also be extremely
 frustrating when these same mistakes keep you from enjoying the use of the
 computer. (Yes, I am speaking from personal experience ;) )

 --
 Joost

Let's potentially add

module-rebuild -X rebuild

to the list of little gems that keep Gentoo systems happy when
installing a new kernel.

Cheers,
Mark



Re: [gentoo-user] Why can't I emerge telnet?

2011-04-07 Thread Mark Knecht
On Thu, Apr 7, 2011 at 2:45 PM, Peter Humphrey pe...@humphrey.ukfsn.org wrote:
 On Thursday 07 April 2011 21:10:32 Mark Knecht wrote:

 mark@c2stable ~ $ equery files telnet-bsd | grep bin

 Which of course he can't do until after he's installed the package.

 --
 Rgds
 Peter

Damn. You're right. My bad.

Well, had he used eix (or emerge -s telnet) at least he would have
determined that he had the wrong package name.

- Mark



Re: [gentoo-user] non-Twinview dual screen setup?

2011-04-06 Thread Mark Knecht
On Tue, Apr 5, 2011 at 5:00 PM, Neil Bothwick n...@digimed.co.uk wrote:
 On Tue, 5 Apr 2011 15:25:16 -0700, Mark Knecht wrote:

    I hooked up second monitor to my Nvidia GTX465 card yesterday and
 wanted to get dual screen running. Unfortunately, except for using
 Twinview which works fine, I've been unable to do it without Twinview.
 Twinview itself isn't bad, but I don't like how ever KDE decision I
 have to take (logout, settings, etc.) always starts spanned across my
 two monitors. That doesn't happen on my dual screen Intel system.

 You can change that in the Display  Monitors section of KDE's System
 Settings.


 --
 Neil Bothwick

Hi Neil,
   The problem is that after I'm in KDE it seems the damage is done.
Settings-Display thing shows only a single 1920x1080 monitor hooked
to 'default'. The second monitor isn't found at all.

   I suspect that what I need to do next is go back and boot the 2
screen version and see what the X log file actually says.

   I'm currently using Twinview where Settings-Display shows both
monitors. While it's working well there is evidence that X doesn't
like the monitor settings in the config file I got using
nvidia-settings. Possibly the EDID values are causing X to not enable
the second monitor at all in the 2 screen version?

Cheers,
Mark

mark@c2stable ~ $ cat /var/log/Xorg.0.log
[   665.512]
X.Org X Server 1.9.4
Release Date: 2011-02-04
[   665.512] X Protocol Version 11, Revision 0
[   665.512] Build Operating System: Linux 2.6.36-gentoo-r6 x86_64 Gentoo
[   665.512] Current Operating System: Linux c2stable 2.6.38-gentoo-r1
#1 SMP PREEMPT Wed Mar 30 12:24:58 PDT 2011 x86_64
[   665.512] Kernel command line: root=/dev/md126
[   665.512] Build Date: 13 February 2011  06:29:22AM
[   665.512]
[   665.512] Current version of pixman: 0.20.2
[   665.512]Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[   665.512] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   665.512] (==) Log file: /var/log/Xorg.0.log, Time: Wed Apr  6
05:22:43 2011
[   665.512] (==) Using config file: /etc/X11/xorg.conf
[   665.512] (==) Using config directory: /etc/X11/xorg.conf.d
[   665.512] (==) Using system config directory /usr/share/X11/xorg.conf.d
[   665.512] (==) ServerLayout Layout0
[   665.512] (**) |--Screen Screen0 (0)
[   665.512] (**) |   |--Monitor Monitor0
[   665.512] (**) |   |--Device Device0
[   665.512] (**) |--Input Device Keyboard0
[   665.512] (**) |--Input Device Mouse0
[   665.512] (==) Automatically adding devices
[   665.512] (==) Automatically enabling devices
[   665.512] (WW) The directory /usr/share/fonts/TTF/ does not exist.
[   665.512]Entry deleted from font path.
[   665.512] (WW) The directory /usr/share/fonts/OTF/ does not exist.
[   665.512]Entry deleted from font path.
[   665.512] (==) FontPath set to:
/usr/share/fonts/misc/,
/usr/share/fonts/Type1/,
/usr/share/fonts/100dpi/,
/usr/share/fonts/75dpi/
[   665.512] (==) ModulePath set to /usr/lib64/xorg/modules
[   665.512] (WW) AllowEmptyInput is on, devices using drivers 'kbd',
'mouse' or 'vmmouse' will be disabled.
[   665.512] (WW) Disabling Keyboard0
[   665.512] (WW) Disabling Mouse0
[   665.512] (II) Loader magic: 0x7ca080
[   665.512] (II) Module ABI versions:
[   665.512]X.Org ANSI C Emulation: 0.4
[   665.512]X.Org Video Driver: 8.0
[   665.512]X.Org XInput driver : 11.0
[   665.512]X.Org Server Extension : 4.0
[   665.513] (--) PCI:*(0:2:0:0) 10de:06c4:3842:1467 rev 163, Mem @
0xf800/33554432, 0xd800/134217728, 0xd400/67108864, I/O @
0xac00/128, BIOS @ 0x/524288
[   665.513] (II) Open ACPI successful (/var/run/acpid.socket)
[   665.513] (II) LoadModule: extmod
[   665.513] (II) Loading
/usr/lib64/xorg/modules/extensions/libextmod.so
[   665.513] (II) Module extmod: vendor=X.Org Foundation
[   665.513]compiled for 1.9.4, module version = 1.0.0
[   665.513]Module class: X.Org Server Extension
[   665.513]ABI class: X.Org Server Extension, version 4.0
[   665.513] (II) Loading extension MIT-SCREEN-SAVER
[   665.513] (II) Loading extension XFree86-VidModeExtension
[   665.513] (II) Loading extension XFree86-DGA
[   665.513] (II) Loading extension DPMS
[   665.513] (II) Loading extension XVideo
[   665.513] (II) Loading extension XVideo-MotionCompensation
[   665.513] (II) Loading extension X-Resource
[   665.513] (II) LoadModule: dbe
[   665.513] (II) Loading /usr/lib64/xorg/modules/extensions/libdbe.so
[   665.513] (II) Module dbe: vendor=X.Org Foundation
[   665.513]compiled for 1.9.4, module version = 1.0.0
[   665.513]Module class: X.Org Server Extension
[   665.513]ABI class: X.Org Server Extension, version 4.0
[   665.513] (II) Loading extension DOUBLE-BUFFER
[   665.513] (II

[gentoo-user] non-Twinview dual screen setup?

2011-04-05 Thread Mark Knecht
Hi,
   I hooked up second monitor to my Nvidia GTX465 card yesterday and
wanted to get dual screen running. Unfortunately, except for using
Twinview which works fine, I've been unable to do it without Twinview.
Twinview itself isn't bad, but I don't like how ever KDE decision I
have to take (logout, settings, etc.) always starts spanned across my
two monitors. That doesn't happen on my dual screen Intel system.

   Anyway, I'm attaching both the Twinview and non-Twinview xorg.conf
files. Maybe someone can see possible changes to make the non-Twinview
actually work? Currently it produces video on only the first monitor
to the left. The monitor on the right stays dark. Again, both monitors
work fine when using Twinview with a 3840x1080 desktop.

Thanks,
Mark


Non-Twinview config which only works on one monitor.

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 270.18
(buildmeis...@swio-display-x86-rhel47-08.nvidia.com)  Tue Jan 18
22:06:15 PST 2011

Section ServerLayout
Identifier Layout0
Screen  0  Screen0 0 0
Screen  1  Screen1 1920 0
InputDeviceKeyboard0 CoreKeyboard
InputDeviceMouse0 CorePointer
Option Xinerama 0
EndSection

Section Files
EndSection

Section InputDevice
# generated from data in /etc/conf.d/gpm
Identifier Mouse0
Driver mouse
Option Protocol
Option Device /dev/input/mice
Option Emulate3Buttons no
Option ZAxisMapping 4 5
EndSection

Section InputDevice
# generated from default
Identifier Keyboard0
Driver kbd
EndSection

Section Monitor
# HorizSync source: edid, VertRefresh source: edid#
nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 270.18
(buildmeis...@swio-display-x86-rhel47-08.nvidia.com)  Tue Jan 18
22:06:15 PST 2011


Identifier Monitor1
VendorName Unknown
ModelName  Samsung SyncMaster
HorizSync   30.0 - 75.0
VertRefresh 56.0 - 61.0
Option DPMS
EndSection

Section Monitor
# HorizSync source: edid, VertRefresh source: edid
Identifier Monitor0
VendorName Unknown
ModelName  Samsung SyncMaster
HorizSync   30.0 - 75.0
VertRefresh 56.0 - 61.0
Option DPMS
EndSection

Section Device
Identifier Device1
Driver nvidia
VendorName NVIDIA Corporation
BoardName  GeForce GTX 465
BusID  PCI:2:0:0
Screen  1
EndSection

Section Device
Identifier Device0
Driver nvidia
VendorName NVIDIA Corporation
BoardName  GeForce GTX 465
BusID  PCI:2:0:0
Screen  0
EndSection


Section Screen
Identifier Screen1
Device Device1
MonitorMonitor1
DefaultDepth24
Option TwinView 0
Option metamodes DFP-2: 1920x1080 +0+0
SubSection Display
Depth   24
EndSubSection
EndSection

Section Screen
Identifier Screen0
Device Device0
MonitorMonitor0
DefaultDepth24
Option TwinView 0
Option metamodes DFP-0: 1920x1080 +0+0
SubSection Display
Depth   24
EndSubSection
EndSection




Working Twinview setup:


# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 270.18
(buildmeis...@swio-display-x86-rhel47-08.nvidia.com)  Tue Jan 18
22:06:28 PST 2011

Section ServerLayout
Identifier Layout0
Screen  0  Screen0
InputDeviceKeyboard0 CoreKeyboard
InputDeviceMouse0 CorePointer
EndSection

Section Files
EndSection

Section InputDevice
# generated from data in /etc/conf.d/gpm
Identifier Mouse0
Driver mouse
Option Protocol
Option Device /dev/input/mice
Option Emulate3Buttons no
Option ZAxisMapping 4 5
EndSection

Section InputDevice
# generated from default
Identifier Keyboard0
Driver kbd
EndSection

Section Monitor
Identifier Monitor0
VendorName Unknown
ModelName  Unknown
HorizSync   28.0 - 33.0
VertRefresh 43.0 - 72.0
Option DPMS
EndSection

Section Device
Identifier Device0
Driver nvidia
VendorName NVIDIA Corporation
Option TwinView
Option MetaModes  1920x1080,1920x1080; 1920x1080
Option TwinViewOrientationRightOf
EndSection

Section Screen
Identifier Screen0
Device Device0
MonitorMonitor0
DefaultDepth24
SubSection Display
Depth   24
EndSubSection
EndSection



Re: [gentoo-user] Re: RAID on new install

2011-04-04 Thread Mark Knecht
On Mon, Apr 4, 2011 at 7:14 AM, James wirel...@tampabay.rr.com wrote:
 Mark Knecht markknecht at gmail.com writes:


    Depending on what you are putting onto your RAID watch carefully
 what choices you make for SuperBlock type as well as being aware of
 possible md name changes between the install environment and your
 first real boot.

 Nice to know.


 (I think I'm going to stick with ext4 for now).
 (BTRFS later...) I have 2 identical 2T seagate drives.
 The main purpose is to run an php and apache
 server  and use kde (kiosk) to display network status
 using jffnms (graphical) and postgresql-9.

 Raid 1 Mirroring for most if not all partitions.
 Think of it as a station where everyone can view
 the network conditions, as users, but I remote
 admin the system. No logins except via the limited
 kiosk  to just view/query the network, or a remote
 connection to the server.


 These Docs I listed are dated?
 Gentoo.wiki.com is finally back up.  These
 2 docs reference each other

 http://en.gentoo-wiki.com/wiki/Software_RAID_Install
 and
 http://en.gentoo-wiki.com/wiki/RAID/Software

 Which one is more accurate or the best one
 to mostly follow? (that's what I'm trying to
 figure out now.)

 I do appreciate any and all feedback.


 James




 Which guide do you think is better, for my needs?

I suspect that a 2-drive RAID1 is a good solution for you. I
personally doubt that ext4 vs ext3 will make any difference. I use
both myself. I wouldn't personally touch any new file system type when
trying to learn to do RAID. Save that for some future date.

Unfortunately neither link is responding as I write this, but my
recent (last 6 months) experience with the Gentoo RAID documents is
that none of them result in a completely working system first time
through. (Again, I cannot look at these links right now so please
excuse my not knowing about any recent changes.)

1) They are all based on the oldest SuperBlock 0.9 format which, if I
remember correctly, is not the default SuperBlock format that mdadm
creates these days.

2) I was able to build a SB-0.9 system using the same docs. I was only
able to build a working SB-1.2 by also including an initramfs:

http://en.gentoo-wiki.com/wiki/Initramfs

Pay special attention to note about building certain things static or
the initramfs won't work for you. Also, include all the tools you can
that will help with debugging why you cannot mount the root file
system. My experience is that you won't be able to for the first day
and you'll find the tools invaluable in getting it worked out.

3) It might be frustrating, but I'd suggest some testing of the RAID
before the actual install. Boot the install disk, build the RAID, then
learn to use mdadm examine  detail commands to understand then names
your RAIDs have. Pay attention to what the name of the machine will
eventually be. Consider renaming the RAIDs before the real Gentoo
install so that when you boot the real install it can find them.

I run RAID these days on almost all my machines. I just got a laptop
with 2 500GB hard drives which will become a 2-drive RAID1 system when
I get around to doing the work.

I hope this response is at least somewhat helpful.

Good luck,
Mark



Re: [gentoo-user] Re: RAID on new install

2011-04-04 Thread Mark Knecht
On Mon, Apr 4, 2011 at 7:16 AM, James wirel...@tampabay.rr.com wrote:
 Mark Shields laebshade at gmail.com writes:


 The last guide recommends using raid0 on some
 partitions; everytime I use LVM2, I use nothing
 but raid1 partitions.  I'd rather have the full
 raid1 than partial raid 1 + speed of raid0.


 Well Raid 1 only would be keen.
 Even swap as raid 1 ?


The kernel does it's own management of swap. If you use swap at all
I'd let the kernel manage that itself and not get in the middle with
RAID.

- Mark



Re: [gentoo-user] RAID on new install

2011-03-31 Thread Mark Knecht
On Thu, Mar 31, 2011 at 12:46 PM, James wirel...@tampabay.rr.com wrote:


 Hello,

 I'm about to install a dual HD (mirrored) gentoo
 software raid system, with BTRFS. Suggestion,
 guides and documents to reference are all welcome.

 I have this link, which is down as the best example:
 http://en.gentoo-wiki.com/wiki/RAID/Software


 Additionally, I have these links for a guide:
 http://www.gentoo.org/doc/en/lvm2.xml
 http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml


 Any other Raid/LVM/BTRFS information I should reference?

 James

James,
   Depending on what you are putting onto your RAID watch carefully
what choices you make for SuperBlock type as well as being aware of
possible md name changes between the install environment and your
first real boot.

   I cannot comment on BTRFS and whether it's a good thing to use with
LVS. I've seen varying reports so if this is a learning install then
do what you want and have fun. If it's intended to be an in-service
machine ASAP then possibly look around for more info on that before
starting.

Good luck,
Mark



Re: [gentoo-user] Re: ALSA - Still No Sound

2011-03-30 Thread Mark Knecht
On Wed, Mar 30, 2011 at 2:37 AM, dhk dhk...@optonline.net wrote:
SNIP

 Another update.  It seem all I need to do to get sound back is run
 alsaconf (take all the defaults) and reboot.  I'm not sure why it stops
 working after two or three reboots, but if I run alsaconf again and
 reboot it's back.  It never works right after alsaconf, it always needs
 a reboot.  It would be nice if the sound state didn't get lost, but at
 least I can get it back.  I'd also wouldn't mind knowing why it happens.

 Thanks,
 dhk

Does it really need a reboot, or does (as root)

/etc/init.d/alsasound restart

get it going?

- Mark



Re: [gentoo-user] inaccessible virtual machine

2011-03-29 Thread Mark Knecht
On Mon, Mar 28, 2011 at 9:51 PM, Valmor de Almeida val.gen...@gmail.com wrote:

 Hello,

 I have been using a windows 7 virtual machine guest with a gentoo linux
 virtualbox host for a while. I was never able to get sound working on
 the guest but it works on the host. Recently I decided to re-emerge
 virtualbox with the USE flag pulseaudio to try to get sound working.
 After the emerge (list below) I also re-emerged the
 virtualbox-modules-3.2.12; logged out and rebooted.

 Now when I try to start virtualbox, it lists the guest machine as
 inaccessible; no other information is provided by the virtualbox startup
 window. I would appreciate inputs on how to fix this.

 Thanks,

 --
 Valmor



A couple of questions:

1) Is the machine on a RAID partition or some other form of storage
which, for whatever reason, isn't mounted? I have that problem now and
again on my compute server. The Linux kernel guys haven't made my
drive D  E disk interfaces 100% reliable as of yet so in my case I
might have to reboot once or twice to get the drives recognized.

2) What kernel are you using. I saw a few messages this week on
Virtualbox problems when running the 2.6.38 series kernel. I'm running
2.6.38 and haven't seen them myself though.

Good luck,
Mark



Re: [gentoo-user] python-2.7 python-updater

2011-03-28 Thread Mark Knecht
On Mon, Mar 28, 2011 at 6:22 AM, KH gentoo-u...@konstantinhansen.de wrote:
 Am 25.03.2011 05:48, schrieb Paul Hartman:
 On Fri, Mar 25, 2011 at 12:28 AM, Dale rdalek1...@gmail.com wrote:
 And if we should set python to 2.7, should we remove python-2.6?  I don't
 think we want to break something, portage in particular.  ;-)

 I have no trace of python-2.6 on my system at this point and I'm
 getting along just fine with 2.7 as my active python.


 Hi there,

 I do have python-2.7 and python-3.1 emerged. I just took al look in
 /usr/lib64/ and I can find trace of python2.4 python2.5 python2.6
 python2.7 python3.1 . Are those folders (2.4; 2.5; 2.6) needed anymore?
 If no, why are the still there?

 Regards kh
SNIP

I don't have anything there other than versions of python currently installed:

mark@c2stable ~ $ ls -ld /usr/lib64/pyth*
drwxr-xr-x 21 root root 20480 Feb 26 12:11 /usr/lib64/python2.6
drwxr-xr-x 24 root root 20480 Mar 26 12:08 /usr/lib64/python2.7
drwxr-xr-x 26 root root 20480 Feb 26 12:12 /usr/lib64/python3.1
mark@c2stable ~ $ eselect python list
Available Python interpreters:
  [1]   python2.6
  [2]   python2.7 *
  [3]   python3.1
mark@c2stable ~ $



Re: [gentoo-user] python-2.7 python-updater

2011-03-27 Thread Mark Knecht
On Sat, Mar 26, 2011 at 5:44 PM, Neil Bothwick n...@digimed.co.uk wrote:
 On Sat, 26 Mar 2011 14:33:14 -0700, Mark Knecht wrote:

  Aren't those manually added to the list by python-updater? So you
  need to use -dmanual to prevent further rebuilding of them.

 I guess I'm not clear on the use of 'manual' here.

 It's explained in the manual page (sorry :)

 Manual means manually added to the list by python-updater, rather than
 using any sort of detection.


OK, I won't bother with the many definitions of the word manual or how
that effects the conversation from my end 'cause that don't matter
much to Linux man-page writers. ;-) However I'm still failing to see
the interest in this as it only removes 1 or 4 packages (boost) that
I've rebuilt multiple time. 75% of the failures still fail using
-dmanual.

c2stable ~ # python-updater -p -dmanual
 * Starting Python Updater...
 * Main active version of Python:  2.7
 * Active version of Python 2: 2.7
 * Active version of Python 3: 3.1
 *   Adding to list: app-emulation/emul-linux-x86-baselibs:0
 *   Adding to list: app-emulation/virtualbox:0
 *   Adding to list: app-office/openoffice-bin:0
 *   Adding to list: app-office/openoffice-bin:0
 * emerge -Dv1 --keep-going -p app-emulation/emul-linux-x86-baselibs:0
app-emulation/virtualbox:0 app-office/openoffice-bin:0
app-office/openoffice-bin:0

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R] app-emulation/emul-linux-x86-baselibs-20110129
USE=-development 0 kB
[ebuild   R] app-office/openoffice-bin-3.3.0  USE=-gnome -java
LINGUAS=en -ar -as -ast -be_BY -bg -bn -ca -ca_XV -cs -da -de -dz -el
-en_GB -eo -es -et -eu -fi -fr -ga -gl -gu -he -hi -hu -id -is -it -ja
-ka -km -kn -ko -ku -lt -lv -mk -ml -mr -my -nb -nl -nn -oc -om -or
-pa_IN -pl -pt -pt_BR -ro -ru -sh -si -sk -sl -sr -sv -ta -te -th -tr
-ug -uk -uz -vi -zh_CN -zh_TW 0 kB
[ebuild   R   ~] app-emulation/virtualbox-4.0.4-r1  USE=additions
alsa opengl python qt4 sdk -doc -extensions -headless -java
-pulseaudio -vboxwebsrv -vnc 0 kB

Total: 3 packages (3 reinstalls), Size of downloads: 0 kB
c2stable ~ # python-updater -p
 * Starting Python Updater...
 * Main active version of Python:  2.7
 * Active version of Python 2: 2.7
 * Active version of Python 3: 3.1
 *   Adding to list: app-emulation/emul-linux-x86-baselibs:0
 *   Adding to list: app-emulation/virtualbox:0
 *   Adding to list: app-office/openoffice-bin:0
 *   Adding to list: app-office/openoffice-bin:0
 *   Adding to list: dev-libs/boost:1.42
 * check: manual [Added to list manually, see CHECKS in manpage
for more information.]
 * emerge -Dv1 --keep-going -p app-emulation/emul-linux-x86-baselibs:0
app-emulation/virtualbox:0 app-office/openoffice-bin:0
app-office/openoffice-bin:0 dev-libs/boost:1.42

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R] app-emulation/emul-linux-x86-baselibs-20110129
USE=-development 0 kB
[ebuild   R] dev-libs/boost-1.42.0-r2  USE=eselect python -debug
-doc -icu -mpi -static-libs -test -tools 0 kB
[ebuild   R] app-office/openoffice-bin-3.3.0  USE=-gnome -java
LINGUAS=en -ar -as -ast -be_BY -bg -bn -ca -ca_XV -cs -da -de -dz -el
-en_GB -eo -es -et -eu -fi -fr -ga -gl -gu -he -hi -hu -id -is -it -ja
-ka -km -kn -ko -ku -lt -lv -mk -ml -mr -my -nb -nl -nn -oc -om -or
-pa_IN -pl -pt -pt_BR -ro -ru -sh -si -sk -sl -sr -sv -ta -te -th -tr
-ug -uk -uz -vi -zh_CN -zh_TW 0 kB
[ebuild   R   ~] app-emulation/virtualbox-4.0.4-r1  USE=additions
alsa opengl python qt4 sdk -doc -extensions -headless -java
-pulseaudio -vboxwebsrv -vnc 0 kB

Total: 4 packages (4 reinstalls), Size of downloads: 0 kB
c2stable ~ #



 They are
 automatically added. If they are correctly rebuilt then they shouldn't
 need to be added a second time, correct? However they are. (Over and
 over...)

 Basically, it is my understanding that if everything is correctly
 updated then on the second pass it should say there's nothing to do,
 right?

 If it can determine that that's the case, yes. Packages are added
 manually because python-updater cannot tell for sure whether they should
 be rebuilt this time. That's certainly true for ooo-bin and boost, lnd
 prevented by -dmanual. app-emulation/emul-linux-x86-baselibs seems
 different, I've just been hit by this one, so I ignored it after the
 first build. I suspect a bug has already been reported.


Fair enough. I'm also seeing Virtualbox as shown above.

Thanks for the info. I've done the python-updater steps too many times
now and from now on will basically do it just once and after that take
what it says with a grain of salt.

Cheers,
Mark



Re: [gentoo-user] python-2.7 python-updater

2011-03-27 Thread Mark Knecht
On Sun, Mar 27, 2011 at 12:25 PM, Neil Bothwick n...@digimed.co.uk wrote:
 On Sun, 27 Mar 2011 08:26:10 -0700, Mark Knecht wrote:

  Manual means manually added to the list by python-updater, rather than
  using any sort of detection.
 

 OK, I won't bother with the many definitions of the word manual or how
 that effects the conversation from my end 'cause that don't matter
 much to Linux man-page writers. ;-)

 I agree that describing an automated default as manual is somewhat less
 than intuitive...


Yep. Generously I'd say they meant something like 'from a manual of
known apps', etc., but clearly other words like 'list' might have been
more intuitive, at least to me.

 However I'm still failing to see
 the interest in this as it only removes 1 or 4 packages (boost) that
 I've rebuilt multiple time. 75% of the failures still fail using
 -dmanual.

 c2stable ~ # python-updater -p -dmanual
  * Starting Python Updater...
  * Main active version of Python:  2.7
  * Active version of Python 2:     2.7
  * Active version of Python 3:     3.1
  *   Adding to list: app-emulation/emul-linux-x86-baselibs:0
  *   Adding to list: app-emulation/virtualbox:0
  *   Adding to list: app-office/openoffice-bin:0
  *   Adding to list: app-office/openoffice-bin:0

 I've also been hit by the first, as I think I mentioned. As for the other
 two, re-emerging a binary package won't help at all, because it's a binary
 package, so you unpack it rather than rebuild it. That's more a problem
 with using binary packages on a source distro than a fault of
 python-updater itself.

Understood and agreed. For OO I couldn't quite get up the interest to
start building from scratch though. Something like 450MB of things to
download and then what, do it again in a week or two? Not worth it for
my needs.

Thanks for all the insights. I do appreciate your inputs.

Cheers,
Mark



Re: [gentoo-user] Updating world

2011-03-27 Thread Mark Knecht
On Sun, Mar 27, 2011 at 3:42 PM, CJoeB colleen.bea...@gmail.com wrote:
 On 03/27/11 22:25, Alan McKinnon wrote:

 On Sunday 27 March 2011 18:50:36 CJoeB wrote:

 Hi All,

 See output below.  I understand what this is telling me.  However, the
 issue is if I unmask libkexiv2 and kipi-plugins, I get further messages
 about some other kde package that is masked by ~x86 keyword.  And this
 goes on continuously.

 I suspect a dodgy entry in /etc/portage somewhere.

 What's the output of:

 grep -r libkexiv2 /etc/portage*
 grep ACCEPT_KEYWORDS /etc/make.conf

 I didn't get any output.


Have you tried to trace back through the list of depends to see
exactly what kicks this off?

equery depends kipi-plugins

should tell you exactly which packages are trying to pull this in.
When you get a list of programs then you try to trace those back, one
at a time, looking for what program/use flag combo is causing this.

All my machines are 64-bit so I don't use ~x86. Looking at eix there
does seem to be a stable version of kipi-plugins so determining if and
why you are trying to get the testing version is clearly the issue.

mark@c2stable ~ $ eix kipi-plugins
* media-plugins/kipi-plugins
 Available versions:  (4) 1.2.0-r3 ~1.9.0
{aqua calendar cdr crypt debug expoblending handbook
+imagemagick ipod kdeenablefinal linguas_ar linguas_ast linguas_be
linguas_bg linguas_ca linguas_ca@valencia linguas_cs linguas_da
linguas_de linguas_el linguas_en_GB linguas_eo linguas_es linguas_et
linguas_eu linguas_fi linguas_fr linguas_ga linguas_gl linguas_he
linguas_hi linguas_hne linguas_hr linguas_hu linguas_is linguas_it
linguas_ja linguas_km linguas_ko linguas_lt linguas_lv linguas_mai
linguas_ms linguas_nb linguas_nds linguas_nl linguas_nn linguas_oc
linguas_pa linguas_pl linguas_pt linguas_pt_BR linguas_ro linguas_ru
linguas_se linguas_sk linguas_sv linguas_th linguas_tr linguas_uk
linguas_zh_CN linguas_zh_TW mjpeg opengl redeyes scanner}
 Homepage:http://www.kipi-plugins.org
 Description: Plugins for the KDE Image Plugin Interface

mark@c2stable ~ $

Also, I'm sorry if I missed this but I don't see what profile you are running?

- Mark
- Mark



Re: [gentoo-user] What is with emerge after update world ?

2011-03-26 Thread Mark Knecht
2011/3/26 Andrzej Styczeń styczen_andr...@o2.pl:
 On Saturday 26 of March 2011 17:17:41 Mick wrote:
 What does eselect python list shows?

 The same as 'eselect read 1'

 # eselect list
 !!! Error: Can't load module list
 exiting


So I suspect you were actually trying to get to

eselect news read

and then

eselect news read 1

to read the first message?

Hope this helps,
Mark



Re: [gentoo-user] What is with emerge after update world ?

2011-03-26 Thread Mark Knecht
2011/3/26 Andrzej Styczeń styczen_andr...@o2.pl:
 On Saturday 26 of March 2011 17:45:47 Andrzej Styczeń wrote:
 On Saturday 26 of March 2011 17:17:41 Mick wrote:
  What does eselect python list shows?

 I'm very sorry for previous mail, I wrong read your question:

 # eselect python list
 Available Python interpreters:
  [1]   python2.7
  [2]   python3.1


Ah, OK - python, not news.

Anyway, always

eselect

then

eselect something

then

eselect something something-to-do

HTH,
Mark



Re: [gentoo-user] python-2.7 python-updater

2011-03-26 Thread Mark Knecht
On Fri, Mar 25, 2011 at 1:38 PM, Neil Bothwick n...@digimed.co.uk wrote:
 On Fri, 25 Mar 2011 20:09:50 +0100, Stéphane Guedon wrote:

 I think wicd rely on python 2.6 currently. This is my setup on my
 laptop ! (trying other version break networking with wicd).

 Wicd works fine with 2.7. There was a problem when 2,7 was first
 released, but that was fixed in a Wicd update.


 --
 Neil Bothwick

I've been through this 2.7 update process on 4 machines now. It seems
on all of my machines the python-updater thing is pretty much always
broken with respect to:

openoffice-bin
boost
emul-linux-x86-baselibs

No matter how many times I rerun things it just wants to keep rebuilding them.

What's weird is that no two machine see exactly the same. Some only
fail with one of those packages, others fail with 2 or 3. Rerunning
phython-updater, or lafilefixer, or revdep-rebuild or removing them
completely and letting emerge -DuN @world reinstall them changes
nothing. They just go on failing the same way.

Waste of time so far...

- Mark



Re: [gentoo-user] python-2.7 python-updater

2011-03-26 Thread Mark Knecht
On Sat, Mar 26, 2011 at 12:22 PM, Mick michaelkintz...@gmail.com wrote:
 On Saturday 26 March 2011 19:10:12 Mark Knecht wrote:
 On Fri, Mar 25, 2011 at 1:38 PM, Neil Bothwick n...@digimed.co.uk wrote:
  On Fri, 25 Mar 2011 20:09:50 +0100, Stéphane Guedon wrote:
  I think wicd rely on python 2.6 currently. This is my setup on my
  laptop ! (trying other version break networking with wicd).
 
  Wicd works fine with 2.7. There was a problem when 2,7 was first
  released, but that was fixed in a Wicd update.
 
 
  --
  Neil Bothwick

 I've been through this 2.7 update process on 4 machines now. It seems
 on all of my machines the python-updater thing is pretty much always
 broken with respect to:

 openoffice-bin
 boost
 emul-linux-x86-baselibs

 No matter how many times I rerun things it just wants to keep rebuilding
 them.

 What's weird is that no two machine see exactly the same. Some only
 fail with one of those packages, others fail with 2 or 3. Rerunning
 phython-updater, or lafilefixer, or revdep-rebuild or removing them
 completely and letting emerge -DuN @world reinstall them changes
 nothing. They just go on failing the same way.

 Waste of time so far...

 If you machines are running stable arch there was also this that came up
 today:

 revdep-rebuild -v --library 'libmpfr.so.1' -- --ask

 Check your elog in case there are some more packages that need revdep-rebuild.

 --
 Regards,
 Mick


I had nothing linked to libmpfr.so.1 so that wasn't the root cause/

In my case it seems to be driven by bugs like this:

http://bugs.gentoo.org/show_bug.cgi?id=360425

Seems the only thing to do it just wait for devs to fix it. (And
wonder why something like python-2.7 gets released as stable with
stuff like this hanging about)

Cheers,
Mark



Re: [gentoo-user] python-2.7 python-updater

2011-03-26 Thread Mark Knecht
On Sat, Mar 26, 2011 at 1:36 PM, Bill Longman bill.long...@gmail.com wrote:
 On Sat, Mar 26, 2011 at 12:56 PM, Mark Knecht markkne...@gmail.com wrote:
SNIP
 I had nothing linked to libmpfr.so.1 so that wasn't the root cause/

 In my case it seems to be driven by bugs like this:

 http://bugs.gentoo.org/show_bug.cgi?id=360425

 Seems the only thing to do it just wait for devs to fix it. (And
 wonder why something like python-2.7 gets released as stable with
 stuff like this hanging about)

 Cheers,
 Mark


 The libmpfr change bit me on one of my amd64 machines. I did the
 revdep-rebuild on the library and then gcc was broken. I recompiled
 everything but still sandbox and gcc won't compile.
 --
 Bill Longman


Bill,
   I got bit by the sandbox/gcc problem yesterday. In my case, on a
machine with a KDE profile  after reviewing Gentoo bug reports, I
did the following:

eselect profile set 1
cd /lib
ln -s ../lib32/ld-linux.so.2 .
emerge sandbox
emerge --sync
emerge glibc
emerge @preserved-rebuild
eselect profile set 4
emerge -e -j9 @system

and an hour later I was back to functional without those messages
about not being able to build C programs, etc.

I don't suggest ANY of that is understood by the likes of me but it
did seem to solve the problem which was (apparently) wrapped around
some sort of missing link which allows 64-bit machines to run 32-bit
programs. (Or that's about all I could get out of what I read)

Hope this helps, and hoping someone more knowledgable than I chimes in
with what I should have/could have done to do this more easily.

Cheers,
Mark



Re: [gentoo-user] python-2.7 python-updater

2011-03-26 Thread Mark Knecht
On Sat, Mar 26, 2011 at 2:16 PM, Neil Bothwick n...@digimed.co.uk wrote:
 On Sat, 26 Mar 2011 12:10:12 -0700, Mark Knecht wrote:

 I've been through this 2.7 update process on 4 machines now. It seems
 on all of my machines the python-updater thing is pretty much always
 broken with respect to:

 openoffice-bin
 boost
 emul-linux-x86-baselibs

 Aren't those manually added to the list by python-updater? So you need to
 use -dmanual to prevent further rebuilding of them.


 --
 Neil Bothwick

I guess I'm not clear on the use of 'manual' here. They are
automatically added. If they are correctly rebuilt then they shouldn't
need to be added a second time, correct? However they are. (Over and
over...)

Basically, it is my understanding that if everything is correctly
updated then on the second pass it should say there's nothing to do,
right?

I mean, I can add anything to a list of things not to build, but I
don't know why I'd add them vs just letting it run and telling me it's
doing them a 2nd/3rd time and feeling the job must be done.

I assume there is stuff in these packages that is somehow hard linked
to python-2.6 libraries or something and one of these days that will
get fixed?

- Mark



Re: [gentoo-user] LVM (Was: the best filesystem for server: XFS or JFS (or?))

2011-03-26 Thread Mark Knecht
On Sat, Mar 26, 2011 at 3:20 PM, Dale rdalek1...@gmail.com wrote:
 Alan McKinnon wrote:

 On Saturday 26 March 2011 15:06:31 Elaine C. Sharpe wrote:


 Just because something works for most people, doesn't mean it will for
 everyone either.  If you lose data, it doesn't matter.  LVM just adds
 one more layer of something to go wrong.  Me, I don't need the extra
 risk of having a system that doesn't boot and a loss of data.  I'm sure
 there are a lot of people that see it the way I do too.  They just
 don't
 need the extra risk.


 Using the least number of layers of abstraction you can get away with is
 a perfectly valid criteria. What I was pointing out was that informal
 polls of users with a sad story to tell is not a very effective way to
 conduct research. People say all kinds of things that just aren't true.


 There's an elephant in this room. The number of actual layers is greater
 than
 just LVM plus FS. It's whatever the BIOS (or a reasonable substitute is
 doing), plus the drive firmware, kernel driver(s) - there's more than one
 of
 those - plus any RAID in use (hardware or software) and finally the file
 system.

 That's a lot of layers, a lot of code, a lot of opportunity for people to
 reveal the extent of their lack of knowledge. I've often heard it said
 that
 code like ZFS and brtfs eliminates several of these layers therefore it's
 technically a better option. That may be true, but let me just point out
 that
 whatever LVM+fs+other_stuff is doing as separate chunks of code also gets
 done
 by ZFS etc. You just don't see it, and just because it's abstracted away
 doesn't mean it's not there.



 I'll add this.  Alan if I recall correctly runs a lot of systems.  He has a
 boatload of experience using all sorts of software/hardware.  Me, I don't.
  For the longest, I had one system and that was it.  If I upgrade my kernel,
 LVM, or some package that LVM depends on and I can't boot, I'm screwed.  If
 I can't boot, I can't google anything to find out how to fix it.  I also
 don't know enough about LVM to fix it myself.  Since there is so many layers
 of things that can already go wrong on a system, adding one more layer that
 can be complicated only makes a problem grow.

 I'm sure Alan and many others could go out and buy or build a new system and
 put LVM on it and fix about any problem that comes along.  Thing is, there
 are others that can't.  Add to this that when I was thinking about using it,
 I read where a lot of people, for whatever reason, couldn't get it back
 working again and lost data.  For me, I don't care if it was LVM itself, the
 kernel or some combination of other things, if I can't boot or lose data,
 the result is the same.  I can fix a kernel problem, a broken package but if
 LVM fails, I'm stuck.

 That said, I now have a second rig.  I may at some point use LVM because I
 can always go to the other room and use my old rig to get help.  I already
 have a 750Gb drive that is about full of pictures, I got a camera and get a
 little happy at times, and videos I have downloaded, everything from TV
 series to stuff off youtube.  I may buy another large drive and use LVM or
 something to give me more room since I really don't want to have to break up
 my filing system across two separate drives.  I won't consider putting the
 booting part of my OS on LVM tho.

 Of course, I did see a 3Tb drive on sale the other day at newegg.  o_O  That
 would last a while.  ;-)

 Dale

 :-)  :-)

Dale,
   I understand your position and concerns. While I have a number of
systems, I have little time or patience for dealing with a lot of this
stuff and LVM has been one of them.

   One thing I'm considering to try out LVM is a second Gentoo
installation on an already running system. It will either be a 50GB
partition of its own, or a Virtualbox VM. I'd do the normal Gentoo
install for LVM, figure out how it works, etc., and then decide if I
want to use it in the future.

   After all, as Neil said, if something offers features we don't feel
we need then why buy it?

- Mark



Re: [gentoo-user] python-2.7 python-updater

2011-03-25 Thread Mark Knecht
On Fri, Mar 25, 2011 at 2:50 AM, Neil Bothwick n...@digimed.co.uk wrote:
 On Fri, 25 Mar 2011 04:37:15 -0500, Dale wrote:

 Out of curiosity, how long you, or someone else, been using python
 2.7?

 I install 2.7 on August 10th and removed 2.6 on October 5th.


 --
 Neil Bothwick

Do you recollect whether you ran python-updater immediately after the
2.7 emerge, and do you remember whether you set 2.7 as your active
version 2 python version before or after running python-updater?

Thanks,
Mark



[gentoo-user] python-2.7 python-updater

2011-03-24 Thread Mark Knecht
One of my machines just saw a python-2.7 update and the ebuild was
good enough to remind me to run python-updater, but it didn't suggest
that I run eselect python and set the active version to 2.7.

Should this new version python be selected first as the active python
2 version and then run python-updater?

Thanks,
Mark



Re: [gentoo-user] Problem with X fonts when restarting from hibernate-to-disk

2011-03-17 Thread Mark Knecht
On Wed, Mar 16, 2011 at 4:26 PM, Walter Dnes waltd...@waltdnes.org wrote:
  I'm not sure where to look.  I've recently started having font
 problems when restarting my PC from hibernate-to-disk.  Here are the
 symptoms...
 * I hibernate my home desktop machine when not using it
 * when I restart from hibernate, the following problems *SOMETIMES* occur
 * existing GUI windows are OK
 * launching new programs or dialogues (YES/NO, Apply/Cancel, etc) seems
  to have zero-size fonts
 * shutting down X and restarting it solves the problem, but if I have to
  go through that, it's almost as cumbersome as sudo /usr/sbin/poff
  and booting fresh

  I'm attaching a partial screen-capture of an existing gnumeric
 spreadsheet and a new one launched after waking up from hibernation.
 The tracker.gnumeric spreadsheet that was opened before hibernation is
 OK.  The Book1.gnumeric spreadsheet was opened after waking up from
 hibernate.  Note the missing File Edit View etc text menus.  The
 location and formula areas are very thin, compared to the same areas in
 tracker.gnumeric.  This happens to Opera, AbiWord, etc.  I did this
 partial screencapture with Gimp.  I left it open before hibernating.
 The radiobuttons and icons were OK in the screencapture dialogue, but
 the fonts were screwed up on the dialogue.  I managed to do the
 screencapture from memory of which button was which.

 --
 Walter Dnes waltd...@waltdnes.org


In addition to YoYo's comments it may also be graphics driver problem.
There were some comments on the Intel Gfx list this morning about
certain chips losing bit settings in hibernation. Possibly it's
something like that.

I don't know what hardware you're using but if the problem occurs
across lots of different app types, and because you used the words
'have started having font problems' implying maybe you didn't earlier,
then look into newer/older drivers to bisect the problem.

- Mark



Re: [gentoo-user] Re: Gentoo Live 11.0

2011-03-17 Thread Mark Knecht
On Thu, Mar 17, 2011 at 9:05 AM, James wirel...@tampabay.rr.com wrote:
 Walter Dnes waltdnes at waltdnes.org writes:


   WINE, which runs some Windows apps, will not build on a 64-bit system
 without multilib support.  I found that out the hard way after
 installing pure 64-bit on my machine.  Rather than wipe+reinstall, I
 ended up installing a 32-bit Gentoo guest under qemu-kvm, and installed
 WINE on that.


 Walter,
 You have confused me. First you indicate that multilib is
 needed for WINE. Then you indicate that you had to use the
 32 bit mixed mode (no multilib) under  qemu-kvm, and
 and then install WINE under the 32 bit qemu.

 So if you were installing a system, just to run wine, would it
 be multilib or hybrid (64 and 32 bit) ?


 James

James,

1) Wine is 32-bit
2) Walter had a 64-bit only system
3) Walter had 2 choices:

a) Wipe the system and start over making it a multi-lib system
b) Create a 32-bit chroot

He chose b).

It's not possible to 'install a system to ONLY run Wine', but if you
want to run Windows apps you have 3 choices:

1) Install 32-bit Gentoo on your 64-bit hardware. Not very interesting to me.
2) Install 64-bit Gentoo with multi-lib support. This is what I do,
although I don't run Wine anymore as I use Vbox  VMware.
3) Install 64-bit Gentoo without multi-lib support and run which in a
32-bit chroot. Double the Gentoo maintenance because you are now
required to keep both the 32-bit  64-bit installs up-to-date.

Hope this help.



Re: [gentoo-user] Re: Gentoo Live 11.0

2011-03-17 Thread Mark Knecht
On Thu, Mar 17, 2011 at 9:37 AM, Neil Bothwick n...@digimed.co.uk wrote:
 On Thu, 17 Mar 2011 09:24:28 -0700, Mark Knecht wrote:

  So if you were installing a system, just to run wine, would it
  be multilib or hybrid (64 and 32 bit) ?

 There's no such thing as a hybrid system. Multilib is what you need to
 run 32 bit software.

 1) Wine is 32-bit
 2) Walter had a 64-bit only system
 3) Walter had 2 choices:

 a) Wipe the system and start over making it a multi-lib system
 b) Create a 32-bit chroot

 Actually, he set up a 32-bit VM, in which case he may have been able to do

 c) Install Windows in the VM.


 --
 Neil Bothwick

OK, that's a different reading of his words. You are likely correct,
and that's identical to what I do using VMWare to run 32-bit XP or
Virtualbox to run 64-bit Win 7. No reason for VMWare other than it's
the one I started with. I've found over the last year I prefer
Virtualbox.

Cheers,
Mark



Re: [gentoo-user] Re: Gentoo Live 11.0

2011-03-17 Thread Mark Knecht
On Thu, Mar 17, 2011 at 10:59 AM, James wirel...@tampabay.rr.com wrote:
SNIP

 it would seem that the 32ul-11.0.iso
 version would be the one to run 32
 bit software on?
SNIP

I cannot speak for the LiveDVD as I've not tried it but remember there
are still lots of older machines running 32-processors in them that
need a 32-bit only DVD to install at all. I suspect the purpose of the
32-bit DVD is to support those boxes.

As evidence of the growth of 64-bit machines in at least the vocal
part of the Gentoo users (those using the user's lists) I started
running 64-bit Gentoo about 5-6 years and at this time no longer even
own any (working) 32-bit machines. Up until about 3 years ago the
Gentoo amd64 list had all the 64-bit specific question traffic. As of
today that list is almost totally quiet implying that nearly all
64-bit users are just using this list and most folks see no
distinction anymore. If that's true then it's easy to forget that
there may be lots of quiet 32-bit users still out there.

- Mark



Re: [gentoo-user] Re: Gentoo Live 11.0

2011-03-15 Thread Mark Knecht
On Tue, Mar 15, 2011 at 7:55 AM, James wirel...@tampabay.rr.com wrote:
 Mark Knecht markknecht at gmail.com writes:


 Hybrid runs on either 32-bit or 64-bit hardware.
 MultilLib requires 64-bit hardware.
 Thanks Mark,

 Yep, got that. There is no hybrid profile? Not
 that I can find.

 Is what about all those 32 bit goodies like plugins
 window-compatibility-software etc etc?


Generally yes, or that's my understanding.

 So the only real question is does my amd64 machines
 need hybrid in some circumstances, like depending
 of the software that I run?  If so, is there a listing
 of software that needs the 32 bit support?


Yes, it's based on the software_ you_ choose to install. I may be
wrong but I think a default Gentoo 64-bit install to the level of
@system booting the machine and little at all in
/var/lib/portage/world won't install the 32-bit emulation libraries.

Run

eix -I emul-linux-x86

to see which ones you have installed and

equery depends

to see what packages depend on each one you do have installed. (If any)

Hope this helps,
Mark



Re: [gentoo-user] Gentoo Live 11.0

2011-03-14 Thread Mark Knecht
On Mon, Mar 14, 2011 at 9:19 AM, James wirel...@tampabay.rr.com wrote:

 Anybody get a brief explanation or summary between the hybrid and the
 multilib versions?


Hybrid runs on either 32-bit or 64-bit hardware.

MultilLib requires 64-bit hardware.

HTH,
Mark



Re: [gentoo-user] Re: ALSA - Still No Sound

2011-03-06 Thread Mark Knecht
On Fri, Feb 25, 2011 at 4:03 AM, dhk dhk...@optonline.net wrote:
SNIP
 I think I have made some progress.  After getting a new sound card
 (Sound Blaster X-Fi) and building X-Fi in the kernel I have some sound,
 but it sounds terrible.  It's mostly a static noise with a hint of the
 actual audio underneath.  Also the volume is almost all the way up, but
 the volume still sounds low.

 The ALSA Soundcard Matrix for this card says:
 Sound Blaster X-Fi emu20k1 Details [PCI] Partially supported on 1.0.21;
 EAX and Advanced sound options like crystalizer not available

SNIP

I've got one of these X-Fi devices although mine is not a Creative
Labs device.. The device looks like a PCI-Express 1x devices but on my
motherboard it turned out it only works in one specific slot. Check
your MB specs for any similar limitations.

As for the in-kernel/module question, I've done Linux audio for years.
I can almost promise you that the Alsa devs never build the drivers
into the kernel. For that reason alone I never do. I've had a few
problems over the years when they were built in, later fixed by the
devs so that it worked built in, but in my experience it's always
better to start with it as a module, get it working, and then if it's
important to you build it in. I have about 2 dozen sound cards here. I
build all of them as drivers for every machine so that I can move
cards around for special needs and not need to rebuild the kernel.

Good luck,
Mark



Re: [gentoo-user] Re: ALSA - Still No Sound

2011-03-06 Thread Mark Knecht
On Sun, Mar 6, 2011 at 12:38 PM, James Wall wallservi...@gmail.com wrote:
 Two dozen??? How many computers do you have?


For audio work I have six. 2-3 sound cards/machine. Typically 1
card/machine is dedicated to junk system sounds. The others run Jack
for more interesting audio work. (Recording live, soft-synths, etc.)

Many cards are just older things I've had for years. They will
continue to be useful until the machines die and I don't have PCI
slots in new ones to plug them into.

- Mark



Re: [gentoo-user] Re: BIOS or what

2011-03-01 Thread Mark Knecht
On Tue, Mar 1, 2011 at 7:55 AM, James wirel...@tampabay.rr.com wrote:
  alain.didierjean at free.fr writes:


 I'm starting to think about my next development desktop. One
 question haunts me:is the BIOS still a fatality? Is there a
 known and tested  alternative available
 UEFI? Open Firmware? coreboot? other? Experience welcome

 Well, I've been researching my next mobo too and
 I think that GigaByte (some boards) allow
 for 2 bios copies to be stored on the mobo.
 That would mean a bios failure is not catastrophic?

 Surely someone on the list has some experience in this,
 maybe playing with Gigabyte's core unlock feature
 to get a X3 running as a quad core?

 James

One of my Asus boards (Rampage II Extreme) allows two BIOS copies.
Everything about the board has been reliable over the year I've owned
it so I haven't needed to use it other than a single BIOS update right
after I got the board.

- Mark



Re: [gentoo-user] xorg-drivers for mouse and keyboard confusion

2011-02-27 Thread Mark Knecht
On Sat, Feb 26, 2011 at 12:38 AM, Mick michaelkintz...@gmail.com wrote:
 I have unmerged x11-drivers/xf86-input-mouse and x11-drivers/xf86-input-
 keyboard and also removed mouse and keyboard from my /etc/make.conf, which now
 only contains:

 INPUT_DEVICES=synaptics evdev


 However, portage seems to want to pull in x11-drivers/xf86-input-mouse and
 x11-drivers/xf86-input-keyboard:

Hi Mick,
   I took another look here. It seems that for Virtualbox that
xf86-input-virtualbox is pulling in xf86-input-mouse. Not sure if
that's a bug in the ebuild or whether it's really required. I haven't
spotted any settable flags that seem to effect it. (Haven't looked
very hard.)

   Anyway, I'm using evdev for X, like you, and like you I'm getting
the old mouse driver for apparently other reasons. I'm not getting
keyboard but you should be able to use the commands below to determine
why that's happening on your system.

- Mark

mark@c2stable ~ $ equery depends xf86-input-mouse
[ Searching for packages depending on xf86-input-mouse... ]
x11-base/xorg-drivers-1.9 (input_devices_mouse? x11-drivers/xf86-input-mouse)
x11-drivers/xf86-input-virtualbox-4.0.4 (x11-drivers/xf86-input-mouse)
mark@c2stable ~ $

mark@c2stable ~ $ emerge --tree -pe xorg-drivers | grep mouse
mark@c2stable ~ $ emerge --tree -pe xf86-input-virtualbox | grep mouse
[ebuild   R]  x11-drivers/xf86-input-mouse-1.6.0
---
[nomerge   ] x11-drivers/xf86-input-mouse-1.6.0
mark@c2stable ~ $

mark@c2stable ~ $ emerge --tree -pe xf86-input-virtualbox

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild   R   ~] x11-drivers/xf86-input-virtualbox-4.0.4
[nomerge   ] dev-perl/DBD-mysql-4.01.7
[nomerge   ]  virtual/mysql-5.1
[ebuild   R]   dev-db/mysql-5.1.51
[nomerge   ] x11-drivers/xf86-input-virtualbox-4.0.4
[nomerge   ]  dev-util/kbuild-0.1.5-r1
[nomerge   ]   dev-vcs/subversion-1.6.15
[nomerge   ]virtual/jdk-1.6.0
[ebuild   R] dev-java/icedtea6-bin-1.9.7
[nomerge   ] dev-vcs/subversion-1.6.15
[nomerge   ]  kde-base/kdelibs-4.4.5-r2
[nomerge   ]   sys-auth/polkit-kde-0.95.1-r1
[nomerge   ]sys-auth/polkit-qt-0.96.1
[nomerge   ] sys-auth/polkit-0.99-r1
[ebuild   R]  gnome-extra/polkit-gnome-0.99
[ebuild   R]   kde-base/khelpcenter-4.4.5
[nomerge   ] x11-drivers/xf86-input-virtualbox-4.0.4
[nomerge   ]  x11-base/xorg-server-1.9.4
[nomerge   ]   x11-base/xorg-drivers-1.9
[nomerge   ]x11-drivers/nvidia-drivers-270.18
[ebuild   R] media-video/nvidia-settings-260.19.29
[ebuild   R]x11-drivers/xf86-video-fbdev-0.4.2
[ebuild   R]x11-drivers/xf86-input-evdev-2.6.0
[ebuild   R]x11-drivers/xf86-video-vmware-11.0.3
[ebuild   R]x11-drivers/xf86-video-vesa-2.3.0
[nomerge   ] gnome-extra/polkit-gnome-0.99
[nomerge   ]  sys-auth/polkit-0.99-r1
[nomerge   ]   sys-libs/pam-1.1.3
[nomerge   ]sys-auth/pambase-20101024
[ebuild   R] sys-auth/consolekit-0.4.3
[ebuild   R]   sys-auth/polkit-kde-0.95.1-r1
[nomerge   ] media-video/nvidia-settings-260.19.29
[ebuild   R   #]  x11-drivers/nvidia-drivers-270.18
[ebuild   R] dev-util/kbuild-0.1.5-r1
[ebuild   R]  dev-vcs/subversion-1.6.15
[ebuild   R]   kde-base/kwalletd-4.4.5
[ebuild   R]kde-base/kdelibs-4.4.5-r2
[ebuild   R] sys-auth/polkit-qt-0.96.1
[ebuild   R]  sys-auth/polkit-0.99-r1
[nomerge   ] x11-drivers/xf86-input-virtualbox-4.0.4
[ebuild   R]  x11-drivers/xf86-input-mouse-1.6.0
---
SNIP


mark@c2stable ~ $ emerge -pe xf86-input-virtualbox

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R] sys-libs/zlib-1.2.3-r1
[ebuild   R] virtual/libintl-0
SNIP
[ebuild   R] x11-drivers/xf86-video-vesa-2.3.0
[ebuild   R] x11-drivers/xf86-video-vmware-11.0.3
[ebuild   R] x11-drivers/xf86-input-evdev-2.6.0
[ebuild   R] x11-drivers/xf86-video-fbdev-0.4.2
[ebuild   R] x11-drivers/xf86-input-mouse-1.6.0
---
[ebuild   R] sys-auth/polkit-0.99-r1
[ebuild   R] sys-auth/polkit-qt-0.96.1
[ebuild   R] sys-auth/consolekit-0.4.3
[ebuild   R] gnome-extra/polkit-gnome-0.99
[ebuild   R] kde-base/kdelibs-4.4.5-r2
[ebuild   R] sys-auth/polkit-kde-0.95.1-r1
[ebuild   R] kde-base/kwalletd-4.4.5
[ebuild   R] kde-base/khelpcenter-4.4.5
[ebuild   R] dev-vcs/subversion-1.6.15
[ebuild   R] dev-util/kbuild-0.1.5-r1
[ebuild   R   ~] x11-drivers/xf86-input-virtualbox-4.0.4
[ebuild   R   #] x11-drivers/nvidia-drivers-270.18
[ebuild   R] media-video/nvidia-settings-260.19.29
mark@c2stable ~ $



Re: [gentoo-user] Why is KDE part of the system set?

2011-02-26 Thread Mark Knecht
On Fri, Feb 25, 2011 at 8:10 PM, Dale rdalek1...@gmail.com wrote:
SNIP
 Not to long ago, there was only a 150 or so
 packages for system regardless of the USE flags.

I think that you are just mistaken about this point. I have pretty
much always been able to make @system package count blow up by turning
on lots of flags.

As I say, my server has 350 packages in @system including X and gnome
stuff because of flags. The KDE laptop I just did for my mom has
around 190, no X, no gnome, etc.

It's all in the flag choices.

But why worry? In the old days I did worry because the machines were
slower and I couldn't do an @world update very often. Today on a
modern processor I can rebuild @world with 900 packages in a few
hours. It's not as big a deal anymore (to me anyway) that @system
seems a little bloated. It's not bloated when you build a new system.
It's only after you start making flag choices that it happens.

- Mark



Re: [gentoo-user] xorg-drivers for mouse and keyboard confusion

2011-02-26 Thread Mark Knecht
On Sat, Feb 26, 2011 at 7:04 AM, Mick michaelkintz...@gmail.com wrote:
 On Saturday 26 February 2011 11:26:38 Jesús J. Guerrero Botella wrote:
 You could always grep for INPUT_DEVICES into /etc/portage, user -R for
 recursive search.

 Also, make sure there's no other statement for INPUT_DEVICES in
 make.conf after the one you posted above.

 Thanks, I checked for duplicate entries in make.conf (there aren't any) and
 nothing is shown under /etc/portage ... what now?
 --
 Regards,
 Mick


Did you double check /var/lib/portage/world to make sure they aren't
(somehow) still in there?

I don't know if you use modules-rebuild but if so have you removed
them from the list of things that you rebuild when you make a new
kernel?

If you let the system re-emerge them, make sure you're -DuN @world
clean, then emerge -C them, use --depclean to get everything out, I
bet they'll be gone.

Very strange...

Good luck,
Mark



Re: [gentoo-user] Re: Random reboots. Where to start?

2011-02-26 Thread Mark Knecht
On Sat, Feb 26, 2011 at 2:20 PM, walt w41...@gmail.com wrote:
 On 02/25/2011 03:10 PM, Dale wrote:

 I got a good power supply but it could still be that. Even the best and
 most
  expensive break from time to time. I think I could swap mine out from my
 old
 rig if needed. This new rig doesn't pull near as much as my old one.

 How can you tell how much power the machine is using?


Kill-a-Watt



Re: [gentoo-user] Random reboots. Where to start?

2011-02-25 Thread Mark Knecht
On Fri, Feb 25, 2011 at 7:33 AM, Dale rdalek1...@gmail.com wrote:
 Well, I think my machine is possessed or something.  I'm getting random
 reboots here.  When it does this, it is like hitting the reset button.  It
 is sitting on the grub screen when it does this.  I noticed the first time
 the other day and this was before adding the extra memory.  I seemed to be
 stable at 4Gbs but I seem to be rebooting at random.  I ran memtest
 yesterday, it checked fine.  It didn't find a error but it looked like it
 was only testing part of it.  Memtest recognizes all 16Gbs on the last run
 but it didn't seem to be testing it all.  Is there a trick to getting it to
 test the whole thing?

 This is the last few lines from messages before the reboot:

 Feb 25 05:10:01 localhost cron[5697]: (root) CMD (test -x
 /usr/sbin/run-crons  /usr/sbin/run-crons )
 Feb 25 05:14:47 localhost smartd[3902]: Device: /dev/sdb [SAT], SMART Usage
 Attribute: 194 Temperature_Celsius changed from 113 to 112
 Feb 25 05:14:47 localhost smartd[3902]: Device: /dev/sdc [SAT], SMART Usage
 Attribute: 190 Airflow_Temperature_Cel changed from 80 to 78
 Feb 25 05:14:47 localhost smartd[3902]: Device: /dev/sdc [SAT], SMART Usage
 Attribute: 194 Temperature_Celsius changed from 75 to 74
 Feb 25 05:20:01 localhost cron[5850]: (root) CMD (test -x
 /usr/sbin/run-crons  /usr/sbin/run-crons )
 Feb 25 05:30:01 localhost cron[5994]: (root) CMD (test -x
 /usr/sbin/run-crons  /usr/sbin/run-crons )
 Feb 25 05:40:01 localhost cron[6136]: (root) CMD (test -x
 /usr/sbin/run-crons  /usr/sbin/run-crons )
 Feb 25 05:41:49 localhost uptimed: moving up to position 20: 0 days,
 01:27:23
 Feb 25 05:44:47 localhost smartd[3902]: Device: /dev/sdc [SAT], SMART Usage
 Attribute: 190 Airflow_Temperature_Cel changed from 78 to 77
 Feb 25 05:50:01 localhost cron[6284]: (root) CMD (test -x
 /usr/sbin/run-crons  /usr/sbin/run-crons )
 Feb 25 05:59:01 localhost cron[6413]: (root) CMD (rm -f
 /var/spool/cron/lastrun/cron.hourly)
 Feb 25 06:00:01 localhost cron[6429]: (root) CMD (test -x
 /usr/sbin/run-crons  /usr/sbin/run-crons )
 Feb 25 06:10:01 localhost cron[6573]: (root) CMD (test -x
 /usr/sbin/run-crons  /usr/sbin/run-crons )
 Feb 25 06:14:47 localhost smartd[3902]: Device: /dev/sdc [SAT], SMART Usage
 Attribute: 190 Airflow_Temperature_Cel changed from 77 to 76
 Feb 25 06:20:01 localhost cron[6722]: (root) CMD (test -x
 /usr/sbin/run-crons  /usr/sbin/run-crons )
 Feb 25 06:30:01 localhost cron[6865]: (root) CMD (test -x
 /usr/sbin/run-crons  /usr/sbin/run-crons )
 Feb 25 06:40:01 localhost cron[7008]: (root) CMD (test -x
 /usr/sbin/run-crons  /usr/sbin/run-crons )
 Feb 25 06:50:01 localhost cron[7156]: (root) CMD (test -x
 /usr/sbin/run-crons  /usr/sbin/run-crons )
 Feb 25 06:59:01 localhost cron[7286]: (root) CMD (rm -f
 /var/spool/cron/lastrun/cron.hourly)
 Feb 25 07:00:01 localhost cron[7301]: (root) CMD (test -x
 /usr/sbin/run-crons  /usr/sbin/run-crons )
 Feb 25 07:10:01 localhost cron[7444]: (root) CMD (test -x
 /usr/sbin/run-crons  /usr/sbin/run-crons )
 Feb 25 07:20:01 localhost cron[7592]: (root) CMD (test -x
 /usr/sbin/run-crons  /usr/sbin/run-crons )
 Feb 25 07:30:01 localhost cron[7741]: (root) CMD (test -x
 /usr/sbin/run-crons  /usr/sbin/run-crons )
 Feb 25 07:40:01 localhost cron[7884]: (root) CMD (test -x
 /usr/sbin/run-crons  /usr/sbin/run-crons )
 Feb 25 07:42:49 localhost uptimed: moving up to position 19: 0 days,
 03:28:23
 Feb 25 07:50:01 localhost cron[8032]: (root) CMD (test -x
 /usr/sbin/run-crons  /usr/sbin/run-crons )

 I don't see anything out of the norm, do you?  What else should I check?  I
 have a Gigabyte mobo, anything in the BIOS I should check?  After I added
 the last two sticks of ram, I loaded the optimized settings.  No
 overclocking or anything here.

 It does this while logged into KDE and after running a while.  I have shut
 down folding and the CPU is running below 85F and all the fans are running
 fine.  I don't think this could be a heat issue.  It's a Cooler Master HAF
 932 case with lots of cooling.

 I'm going to reboot and let memtest run a while and see exactly what it was
 that makes me think it is not testing ALL the memory.

 Thanks.

 Dale

 :-)  :-)

Is folding pretty CPU intensive? If it is then possibly shut that off
completely until you find the root cause. Additional CPU heating can
cause higher temps all through the machine. If you have a broken trace
somewhere that only comes apart when the motherboard heats up, etc.

The order I walk through this sort of problem is:

1) Google, Google, Google for your exact hardware looking for similar
problems. (and hopefully solutions...) The main culprits are
generally:
- Motherboard
- Power supply
- VGA

2) Unlikely if this is your new machine but use some canned air and
blow out all heat sinks if they have collected dust.

3) Remove _ALL_ adapter cards and any external devices that you don't
absolutely need for testing. Run for a number of hours or days.

If you are still 

Re: [gentoo-user] Why is KDE part of the system set?

2011-02-24 Thread Mark Knecht
On Thu, Feb 24, 2011 at 7:21 AM, Dale rdalek1...@gmail.com wrote:
 Neil Bothwick wrote:

 On Thu, 24 Feb 2011 07:03:06 -0600, Dale wrote:



 I just wonder if the devs have noticed how much this has grown when
 packages with X flags are included in the system set?.  Would Gnome do
 the same?  What about other GUI's?


 What does it matter? They are only dependencies of @system, but they will
 also be dependencies of @world, because you have emerged kde-meta, so
 either way they would be on your system.

 There is nothing wrong with your system, it is doing exactly what you
 told it to with your USE flags, and the kde flag is not the culprit
 anyway as emerge -ep @system doesn't bring in any KDE stuff here.



 I was always under the impression that @system was supposed to be a limited
 set of packages to build, including dependencies.  For me, if I have a
 issue, I usually start with emerge -e system to see if it helps.  Since
 there is some KDE stuff in there, that makes it build packages that I most
 likely don't need to be rebuilt.  To me, KDE is not a system package.

 It is doing what it is told but it is also doing things that it didn't use
 to do even when told the same as it is being told now.  It wasn't to long
 ago that system was about 150 packages and didn't take that long to
 recompile.  Now it is over 400.  If this continues, the difference between
 system and world is going to be small.

 It may not be broke but it seems the system set is growing pretty quick.

 Dale

Dale,
   As Neil states, it has a lot to do with what you told the machine to do.

   I have a new, very clean, stable (not ~amd64) laptop using the kde
profile. emerge -ep @system says 191 packages and I'm writing this
response from that machine inside KDE so it has to be something else
in your case.

   I posted something a couple of years ago about using -java in
make.conf because I found with +java I got almost twice as many
packages in @system. (Except it wasn't @system at the time) I started
putting java flags in package.use and got things to work the way I
wanted - easy to rebuild @system, java on the packages I really wanted
java support. I suspect what you are seeing is far more in that vein
than anything else.

Good luck,
Mark



Re: [gentoo-user] Why is KDE part of the system set?

2011-02-24 Thread Mark Knecht
On Thu, Feb 24, 2011 at 9:41 AM, Mark Knecht markkne...@gmail.com wrote:
SNIP

   I posted something a couple of years ago about using -java in
 make.conf because I found with +java I got almost twice as many
 packages in @system. (Except it wasn't @system at the time) I started
 putting java flags in package.use and got things to work the way I
 wanted - easy to rebuild @system, java on the packages I really wanted
 java support. I suspect what you are seeing is far more in that vein
 than anything else.

In fact, on this laptop, if all I do is change the profile I've selected then

-ep @system results:
10.0 - 167 packages
10.0/desktop - 191 packages
10.0/gnome - 268 packages
10.0/kde - 191 packages
10.0/developer - 245 packages
10.0/no-multilib - 167 packages
10.0/server - 145 packages

So, as you can see, even the profile you choose has a big effect on a
system with very few use flags in make.cong or package.use.

- Mark



Re: [gentoo-user] Why is KDE part of the system set?

2011-02-23 Thread Mark Knecht
On Tue, Feb 22, 2011 at 8:28 PM, Dale rdalek1...@gmail.com wrote:
 I been doing a little testing here.  I notice something weird here.  Did I
 do this somehow?  Why are these part of the system set?

 root@fireball / # emerge -ep system | grep kde
 [ebuild   R   ~] kde-base/kde-env-4.6.0
 [ebuild   R   ~] kde-base/oxygen-icons-4.6.0
 [ebuild   R   ~] kde-base/kdelibs-4.6.0-r1
 [ebuild   R   ~] sys-auth/polkit-kde-agent-0.99.0
 [ebuild   R   ~] kde-base/khelpcenter-4.6.0
 [ebuild   R   ~] kde-base/nepomuk-4.6.0
 [ebuild   R   ~] kde-misc/polkit-kde-kcmodules-0.98_pre20101127

This command returns nothing on my laptop which uses the kde profile.

One big difference is you are using a boat load of use flags, I'm
using very few. I'd start with why you have all those flags and what
they are doing. Also, my laptop is stable so very few ~amd64 packages
- only nvidia-drivers so far.

emerge -pve @system tells me 191 packages so the list is large. Other
systems that don't use the kde profile seem to pull in (from memory)
about 130 packages.

- Mark



Re: [gentoo-user] keyboard lighting control?

2011-02-23 Thread Mark Knecht
On Wed, Feb 23, 2011 at 3:32 PM, Mick michaelkintz...@gmail.com wrote:
 On Wednesday 23 February 2011 23:05:50 Stroller wrote:
 On 21/2/2011, at 8:20pm, Mark Knecht wrote:
  ...
  You didn't say which groovy new laptop's keyboard you are trying to make
  light up, so I can only guess that SENSORS_APPLESMC may well do the
  trick for you,
 
  Ah, if that makes a difference is a Asus G73JW. Assuming I enable that
  kernel option is there a user space app that will allow my 83 year old
  gaming mom to turn the lights off and on?

 SENSORS_APPLESMC
 SENSORS_APPLE
 APPLE
 Mac

 No, I don't think so.

 It seems my message didn't make it to the list, but once the Asus declaration
 was made by the OP, I suggested differently of course:

 ===
 I see ... in that case you should try instead enabling:

 CONFIG_ASUS_LAPTOP

 I think that Fn+F3/F4 adjusts the keyboard backlight.  Look at the help page
 in make menuconfig.

 HTH.
 ===
 --
 Regards,
 Mick

Providing some feedback, enabling the ASUS_LAPTOP option at least
enabled the lights and made a couple of the function key work, how it
seems that most function keys so far do nothing that I can determine.

The acpi4asus link provided by Paul is likely part of the solution
also but the instructions make a point of writing your own config file
and nowhere to be found yet are any examples of what to put in that
file. (But I really haven't looked much either.)

Anyway, the machine is working well enough to ship off to my mom so I
think she'll be pretty happy with it. Wish I had one of these babies.
Quite nice.

Cheers,
Mark



[gentoo-user] keyboard lighting control?

2011-02-21 Thread Mark Knecht
Is there either a kernel config option or additionally some
application that allows me to turn on and off the lights underneath
this groovy new laptop's keyboard?

They flash on when booting, and work in Windows, but I don't know how
to control them in Linux. I haven't found any function key that does
it in hardware so I assume it's possibly an ACPI type thing or
something else?

Thanks,
Mark



Re: [gentoo-user] keyboard lighting control?

2011-02-21 Thread Mark Knecht
On Mon, Feb 21, 2011 at 12:10 PM, Mick michaelkintz...@gmail.com wrote:
 On Monday 21 February 2011 19:40:33 Mark Knecht wrote:
 Is there either a kernel config option or additionally some
 application that allows me to turn on and off the lights underneath
 this groovy new laptop's keyboard?

 They flash on when booting, and work in Windows, but I don't know how
 to control them in Linux. I haven't found any function key that does
 it in hardware so I assume it's possibly an ACPI type thing or
 something else?

 You didn't say which groovy new laptop's keyboard you are trying to make light
 up, so I can only guess that SENSORS_APPLESMC may well do the trick for you,
 but YMMV ...
 --
 Regards,
 Mick


Ah, if that makes a difference is a Asus G73JW. Assuming I enable that
kernel option is there a user space app that will allow my 83 year old
gaming mom to turn the lights off and on?

Thanks,
Mark

Here's the lspci data:

livecd ~ # lspci
00:00.0 Host bridge: Intel Corporation Core Processor DMI (rev 11)
00:03.0 PCI bridge: Intel Corporation Core Processor PCI Express Root
Port 1 (rev 11)
00:08.0 System peripheral: Intel Corporation Core Processor System
Management Registers (rev 11)
00:08.1 System peripheral: Intel Corporation Core Processor Semaphore
and Scratchpad Registers (rev 11)
00:08.2 System peripheral: Intel Corporation Core Processor System
Control and Status Registers (rev 11)
00:08.3 System peripheral: Intel Corporation Core Processor
Miscellaneous Registers (rev 11)
00:10.0 System peripheral: Intel Corporation Core Processor QPI Link (rev 11)
00:10.1 System peripheral: Intel Corporation Core Processor QPI
Routing and Protocol Registers (rev 11)
00:16.0 Communication controller: Intel Corporation 5 Series/3400
Series Chipset HECI Controller (rev 06)
00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset
USB2 Enhanced Host Controller (rev 06)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset
High Definition Audio (rev 06)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI
Express Root Port 1 (rev 06)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI
Express Root Port 2 (rev 06)
00:1c.3 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI
Express Root Port 4 (rev 06)
00:1c.4 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI
Express Root Port 5 (rev 06)
00:1c.5 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI
Express Root Port 6 (rev 06)
00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset
USB2 Enhanced Host Controller (rev 06)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a6)
00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC
Interface Controller (rev 06)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series
Chipset 4 port SATA AHCI Controller (rev 06)
01:00.0 VGA compatible controller: nVidia Corporation GeForce GTX 460M
(rev a1) (rev a1)
01:00.1 Audio device: nVidia Corporation GF106 High Definition Audio
Controller (rev a1)
03:00.0 Network controller: Atheros Communications Inc. AR9285
Wireless Network Adapter (PCI-Express) (rev 01)
04:00.0 USB Controller: Fresco Logic Device 1400 (rev 01)
05:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd.
Device 5209 (rev 01)
06:00.0 Ethernet controller: Atheros Communications AR8131 Gigabit
Ethernet (rev c0)
ff:00.0 Host bridge: Intel Corporation Core Processor QuickPath
Architecture Generic Non-Core Registers (rev 04)
ff:00.1 Host bridge: Intel Corporation Core Processor QuickPath
Architecture System Address Decoder (rev 04)
ff:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 04)
ff:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 04)
ff:03.0 Host bridge: Intel Corporation Core Processor Integrated
Memory Controller (rev 04)
ff:03.1 Host bridge: Intel Corporation Core Processor Integrated
Memory Controller Target Address Decoder (rev 04)
ff:03.4 Host bridge: Intel Corporation Core Processor Integrated
Memory Controller Test Registers (rev 04)
ff:04.0 Host bridge: Intel Corporation Core Processor Integrated
Memory Controller Channel 0 Control Registers (rev 04)
ff:04.1 Host bridge: Intel Corporation Core Processor Integrated
Memory Controller Channel 0 Address Registers (rev 04)
ff:04.2 Host bridge: Intel Corporation Core Processor Integrated
Memory Controller Channel 0 Rank Registers (rev 04)
ff:04.3 Host bridge: Intel Corporation Core Processor Integrated
Memory Controller Channel 0 Thermal Control Registers (rev 04)
ff:05.0 Host bridge: Intel Corporation Core Processor Integrated
Memory Controller Channel 1 Control Registers (rev 04)
ff:05.1 Host bridge: Intel Corporation Core Processor Integrated
Memory Controller Channel 1 Address Registers (rev 04)
ff:05.2 Host bridge: Intel Corporation Core Processor Integrated
Memory Controller Channel 1 Rank Registers (rev 04)
ff:05.3 Host bridge: Intel Corporation Core Processor

Re: [gentoo-user] New drive devices after install

2011-02-19 Thread Mark Knecht
On Sat, Feb 19, 2011 at 2:01 AM, Neil Bothwick n...@digimed.co.uk wrote:
 On Fri, 18 Feb 2011 17:54:56 -0700, Mike Diehl wrote:

 I just finished a new (RAID1) installation and most if it is working
 just fine.

 However, I don't have any drive device files in /dev/.  I'd expect to
 see hda, hdb,md{1-3}

 Something changed recently, my RAID devices are now md126 and md127.


 --
 Neil Bothwick

 If at first you don't succeed, redefine success.


I see the same thing here. I'm in the middle of an install so I create
/dev/md3 to build my RAID1. I build it, install, chroot, do the work,
install grub, reboot and it's md126. The problem is that the machine
name changes between the install and the reboot.

The change apparently has something to do with a decision to only
assemble Version 1.+ superblocks with the right name when the name
field matches something in the superblock.

Apparently you can set up the naming as you wish using

mdadm --update=homehost
mdadm --update=name

but I don't feel confident enough yet to do it.

c2stable ~ # mdadm --detail /dev/md126
/dev/md126:
Version : 0.90
  Creation Time : Tue Apr 13 09:02:34 2010
 Raid Level : raid1
 Array Size : 52436032 (50.01 GiB 53.69 GB)
  Used Dev Size : 52436032 (50.01 GiB 53.69 GB)
   Raid Devices : 3
  Total Devices : 3
Preferred Minor : 126
Persistence : Superblock is persistent

Update Time : Sat Feb 19 06:13:16 2011
  State : clean
 Active Devices : 3
Working Devices : 3
 Failed Devices : 0
  Spare Devices : 0

   UUID : edb0ed65:6e87b20e:dc0d88ba:780ef6a3
 Events : 0.248829

Number   Major   Minor   RaidDevice State
   0   850  active sync   /dev/sda5
   1   8   211  active sync   /dev/sdb5
   2   8   372  active sync   /dev/sdc5
c2stable ~ #

- Mark



Re: [gentoo-user] help with xorg-server-1.9.4 and no hal; broken mouse/keyboard/X

2011-02-19 Thread Mark Knecht
On Sat, Feb 19, 2011 at 9:44 AM, Valmor de Almeida val.gen...@gmail.com wrote:
 Hello,

 I had a working laptop with xorg 1.7 using hal; including usb mouse
 (left hand swapped buttons), synaptics for a mouse pad, hotplug
 monitors in a virtual screen, etc. For this to work I had a
 hand-configured xorg.conf file and additional hal policy
 configurations.

 I have just updated xorg to 1.9.4 with USE -hal and removed hal in
 this order (also needed to remove hal from the default run level).  I
 tried startx using the existing xorg.conf and X does not start
 correctly, I have no mouse and a frozen screen (no keyboard) with the
 arrow cursor placed in the middle of the screen. I also tried to start
 X without an xorg.conf; same problem.

 Here are the outputs of some commands:

 emerge --info
 Portage 2.1.9.25 (default/linux/amd64/10.0, gcc-4.4.4,
 glibc-2.11.2.-r3, 2.6.36-gentoo-r5 x86_64)

 emerge -pv --newuse --update --tree --with-bdeps=y world
 Total: 0 packages, Size of downloads: 0 kB

 emerge --depclean -vp
 Dependencies could not be completely resolved due to
 the following required packages not being installed:

   sys-apps/hal  pulled in by:
       x11-drivers/xf86-input-synaptics-1.2.1

 In make.conf  I have:

  USE=-hal 

  INPUT_DEVICES=evdev synaptics
  VIDEO_CARDS=intel

 Thanks for your help.

 --
 Valmor

I'm guessing that you might need to use the older keyboard and mouse
drivers instead of evdev. Just a guess though.

- Mark



Re: [gentoo-user] Re: help with xorg-server-1.9.4 and no hal; broken mouse/keyboard/X

2011-02-19 Thread Mark Knecht
On Sat, Feb 19, 2011 at 10:46 AM, Nikos Chantziaras rea...@arcor.de wrote:
 On 02/19/2011 08:32 PM, Dale wrote:

 Mark Knecht wrote:

SNIP
 Don't forget to enable udev as Mike suggested too. I put mine in the USE
 line. After all, about all hardware now uses udev to see hardware.

 You only need evdev.  keyboard and mouse are deprecated drivers. They
 have bugs that no one appears to be fixing anymore.

That's good to know. As I said, I was guessing. I'll remove them from my setup.

Should I be enabling udev globally in make.conf? I'm currently not. I
do have it on xorg-server so I'm not seeing the OP's issue, but I
never wanted to get into making my own udev rules.

Thanks,
Mark



Re: [gentoo-user] Re: help with xorg-server-1.9.4 and no hal; broken mouse/keyboard/X

2011-02-19 Thread Mark Knecht
On Sat, Feb 19, 2011 at 12:35 PM, Nikos Chantziaras rea...@arcor.de wrote:
 On 02/19/2011 10:14 PM, Mark Knecht wrote:
SNIP
 Should I be enabling udev globally in make.conf? I'm currently not. I
 do have it on xorg-server so I'm not seeing the OP's issue, but I
 never wanted to get into making my own udev rules.

 I can only comment on what individual packages do with the udev flag.  I
 can't possibly know what each and every package in portage does when udev is
 enabled globally :-/

Of course. At the time I really meant the question to ask what people are doing.

On my machines currently the only package with a udev flag is
xorg-server so it's easy.

Cheers,
Mark



Re: [gentoo-user] Re: Flash Player / Firefox trouble

2011-02-19 Thread Mark Knecht
On Sat, Feb 19, 2011 at 1:40 PM, Nikos Chantziaras rea...@arcor.de wrote:
 On 02/19/2011 11:08 PM, Elaine C. Sharpe wrote:

 [...]
 I do wish netflix would go with something other than silverlight
 though, running win7 in vbox works but I shouldn't have to do all
 that...

 Doesn't the Moonlight Firefox add-on work?

What I've read is that moonlight doesn't handle the Netflix DRM
issues. Does anyone know differently?

I'm still using a Window VM to watch Netflix.

- Mark



Re: [gentoo-user] Re: Flash Player / Firefox trouble

2011-02-19 Thread Mark Knecht
On Sat, Feb 19, 2011 at 2:52 PM, Dale rdalek1...@gmail.com wrote:
 Mark Knecht wrote:

 On Sat, Feb 19, 2011 at 1:40 PM, Nikos Chantziarasrea...@arcor.de
  wrote:


 On 02/19/2011 11:08 PM, Elaine C. Sharpe wrote:


 [...]
 I do wish netflix would go with something other than silverlight
 though, running win7 in vbox works but I shouldn't have to do all
 that...


 Doesn't the Moonlight Firefox add-on work?


 What I've read is that moonlight doesn't handle the Netflix DRM
 issues. Does anyone know differently?

 I'm still using a Window VM to watch Netflix.

 - Mark




 I use Firefox and the download manager.  I just download the video and watch
 it with (s)(k)(m)player locally.  That also gives me the option of saving
 them locally and not having to download them again if I want to watch them
 more than once.  I'm sure ATT likes that part.

 So far, I have not had much trouble with doing it this way.  Other than the
 video being lost when changing tabs.  Well, I did have on download that
 failed and only go the first part of the video.  I think my DSL modem did
 its reset thingy.  It does that once a day.

 Dale

 :-)  :-)



Where are you finding links on Netflix pages that allows you to start
a movie download? I'm not finding that at all using Firefox. Are you
digging into page source or something?

- Mark



Re: [gentoo-user] dual boot RAID

2011-02-17 Thread Mark Knecht
On Thu, Feb 17, 2011 at 11:08 AM, James wirel...@tampabay.rr.com wrote:
 Hello,

 Recently this link was posted:

 http://en.gentoo-wiki.com/wiki/RAID/Software

 I am looking at  new systems, and this link
 got me thinking. Dual boot linux with Windows7
 all on a Raid (0) array?

 I found a bargain, MSI MS-7596 (760GM-E51)
 motherboard. But my only MSI motherboard experience,
 left a very bad taste in my mouth from years ago.
 BIOS nightmare

 Anyway the motherboard doc says it supports
 (Sata-II) RAID 0 1 0+1 or JBOD mode
 by AMD SB710.


 This does not sound like a good choice of MOBO
 and anyone with any raid/gentoo/ experience
 on a MSI motherboard (MS 7596) or such would
 be appreciated as to you opinion.


 I usually specify ASUS, as over the years,
 I've had very little trouble. Dual 2T
 RAID 0 drives with windows and gentoo
 is my goal; and any recommendations
 are most welcome. AMD is the only processor
 I use

 tia,
 James

I use Asus also. Actually, I'm installing Gentoo on a 2-disk Asus
laptop today. (G73JW) Seems pretty nice so far. I've left the original
Win 7 installation on the first hard drive, but sized the partition
down. I will set it up for dual boot later. For now I change the drive
boot order. I boot from the second hard drive leaving the original
Windows partitions completely alone, and then have RAID1 on both the
drives where Gentoo is installed.

I guess the one thing above I'm not clear about is your choice of what
appears to be RAID 0? RAID 0 is hardly RAID as there's no redundancy.
Lose 1 drive you lose all your data. Also, if you're doing Linux RAID
then the MB chipset RAID stuff is immaterial. You're going to do it
using mdadm software RAID which then has no impact on what Windows
does.

Processor choice makes little impact on how Linux RAID works. Faster
is better. AMD or Intel is your choice.

Good luck,
Mark



Re: [gentoo-user] Re: vmplayer not working after xorg upgrade

2011-02-15 Thread Mark Knecht
On Sun, Feb 13, 2011 at 6:19 PM, Nikos Chantziaras rea...@arcor.de wrote:
 On 02/13/2011 10:24 PM, Mark Knecht wrote:

 On Sun, Feb 13, 2011 at 11:48 AM, Mark Knechtmarkkne...@gmail.com
  wrote:

 This morning I did an xorg-server upgrade which included IIRC 33 files
 total on my system. After the upgrade I am unable to run the vmplayer
 app. The GUI never comes up. If I run it in a terminal it seems to die
 quietly after about 5 seconds. There are no additional messages in
 dmesg.


 OK - there is nothing of interest in the setup log file above, but in
 the same directory there is a player-log which is catching the crash.
 I cannot tell what's kicking it off so I'm considering uninstalling
 all the vmware stuff, looking for stale links, then reinstalling
 vmware.

 Are you using the ebuilds for vmware?  (Latest versions are in the vmware
 overlay.)  I run latest X.Org (1.9.4) and both workstation as well as player
 have no problems here.

Hi Nikos,
   As of this evening all VMs seem to be working fine on 2.6.37 using
the ebuilds from the vmware overlay.

   I appreciate you help.

Cheers,
Mark



Re: [gentoo-user] Re: vmplayer not working after xorg upgrade

2011-02-14 Thread Mark Knecht
On Sun, Feb 13, 2011 at 6:46 PM, Nikos Chantziaras rea...@arcor.de wrote:
 On 02/14/2011 04:27 AM, Mark Knecht wrote:

 On Sun, Feb 13, 2011 at 6:19 PM, Nikos Chantziarasrea...@arcor.de
  wrote:

 On 02/13/2011 10:24 PM, Mark Knecht wrote:

 On Sun, Feb 13, 2011 at 11:48 AM, Mark Knechtmarkkne...@gmail.com
  wrote:

 This morning I did an xorg-server upgrade which included IIRC 33 files
 total on my system. After the upgrade I am unable to run the vmplayer
 app. The GUI never comes up. If I run it in a terminal it seems to die
 quietly after about 5 seconds. There are no additional messages in
 dmesg.


 OK - there is nothing of interest in the setup log file above, but in
 the same directory there is a player-log which is catching the crash.
 I cannot tell what's kicking it off so I'm considering uninstalling
 all the vmware stuff, looking for stale links, then reinstalling
 vmware.

 Are you using the ebuilds for vmware?  (Latest versions are in the
 vmware
 overlay.)  I run latest X.Org (1.9.4) and both workstation as well as
 player
 have no problems here.

 I switched to those from Pentoo today Nikos and that's when it started
 working. However what I found so far didn't support the bundled
 workstation/tools package, only the workstation so right now I don't
 have the additions stuff installed. I'll be looking into that
 tomorrow.

 It has a USE flags for those (vmware-tools flag) which pulls-in the
 app-emulation/vmware-tools package.  That package itself has USE flags for
 which tools you want (vmware_guest_linux, vmware_guest_windows, etc.)

 The ISO images for the tools can then be found in the
 /opt/vmware/lib/vmware/isoimages directory.


Thanks! I hadn't found the flags for vmware-tools. I'm sure that will help.

The VMs are already running for the day so I'll look at doing the
emerge later this afternoon when work is done.

Again, a big, appreciative thank you for the info.

Cheers,
Mark



[gentoo-user] mdadm --monitor email

2011-02-13 Thread Mark Knecht
Hi,
   I'm curious about setting up my compute server to monitor RAID
array status and have it email me information at my GMail account.
Does anyone have info on setting this up on Gentoo? In general I'm
following:

http://en.gentoo-wiki.com/wiki/RAID/Software

but it seems there are a few holes in my understanding.

1) In the /etc/mdadm.conf file I see the following:

#
# When used in --follow (aka --monitor) mode, mdadm needs a
# mail address and/or a program.  This can be given with mailaddr
# and program lines to that monitoring can be started using
#mdadm --follow --scan  echo $!  /var/run/mdadm
# If the lines are not found, mdadm will exit quietly
#MAILADDR r...@mydomain.tld
#PROGRAM /usr/sbin/handle-mdadm-events

- Easy enough to change my email address, but how does it get mailed?
Is this what ssmtp is for? ssmtp is installed as a dependency of sudo,
but I don't use it explicitly. Do I have to have a real domain in my
name to get GMail to accept this?

- Currently have have no program called
/usr/sbin/handle-mdadm-events. Is this just a placeholder for whatever
program I choose as a mailer, or is this intended as some program that
takes real action in case of a problem?

2) I'm making the assumption that running rc-update add mdadm boot, as
shown in the link above, is the way to get this started once
configured properly?

3) I note that the test command listed in the link above doesn't work:

c2stable ~ # mdadm -Fslt
mdadm: option -l not valid in monitor mode
c2stable ~ #

4) Assuming I do get this working, while testing can i have the
program email me every 60 minutes whether things are good or bad, just
to test that it's actually working and getting results?

Thanks,
Mark



Re: [gentoo-user] mdadm --monitor email

2011-02-13 Thread Mark Knecht
On Sun, Feb 13, 2011 at 10:09 AM, Michael Orlitzky mich...@orlitzky.com wrote:
 On 02/13/2011 11:04 AM, Mark Knecht wrote:
SNIP

 4) Assuming I do get this working, while testing can i have the
 program email me every 60 minutes whether things are good or bad, just
 to test that it's actually working and getting results?

 I don't think you can get it to mail you when it's happy, but you can
 simulate a failure:

  http://tldp.org/HOWTO/Software-RAID-HOWTO-6.html#ss6.3

Thanks for the info Micheal.

I got mailx to send successfully to my GMail account using this page:

http://en.gentoo-wiki.com/wiki/Gmail_and_sSMTP

I'll read through the links you posted to look at creating a test
case. From the page you posted above I'm trying this at the command
line:

mdadm --monitor --mail=markkne...@gmail.com --delay=1800 /dev/md126

but I assume you think it won't do anything unless there's a problem
found. Do those options properly belong in /etc/conf.d/mdadm.conf as
the file itself seems to indicate?

mark@c2stable ~ $ cat /etc/conf.d/mdadm
# /etc/conf.d/mdadm: config file for /etc/init.d/mdadm

# Misc options to pass to mdadm in monitor mode.
# For more info, run `mdadm --monitor --help` or see
# the mdadm(8) manpage.

MDADM_OPTS=--syslog
mark@c2stable ~ $

Also, I have many RAIDs. Do they all get appended to the same monitor
command, or when started as a daemon does mdadm --monitor actually
monitor all RAIDs? (If you know...)

Thanks!

Cheers,
Mark



Re: [gentoo-user] mdadm --monitor email

2011-02-13 Thread Mark Knecht
This is an automatically generated mail message from mdadm
running on c2stable

A TestMessage event had been detected on md device /dev/md/7.

Faithfully yours, etc.

P.S. The /proc/mdstat file currently contains the following:

Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]
md6 : active raid1 sdc6[2] sdb6[1] sda6[0]
 247416933 blocks super 1.1 [3/3] [UUU]

md3 : active raid6 sdc3[2] sdb3[1] sda3[0] sdd3[3] sde3[4]
 157305168 blocks super 1.2 level 6, 16k chunk, algorithm 2 [5/5] [U]

md7 : active raid6 sdc7[2] sdb7[1] sda7[0] sdd2[3] sde2[4]
 395387904 blocks super 1.2 level 6, 16k chunk, algorithm 2 [5/5] [U]

md126 : active raid1 sdc5[2] sdb5[1] sda5[0]
 52436032 blocks [3/3] [UUU]

unused devices: none

On Sun, Feb 13, 2011 at 10:37 AM, Mark Knecht markkne...@gmail.com wrote:
SNIP

I added '--test' to the config file and restarted mdadm. The following
message was received in my GMail account.

I think I'm there except maybe for kicking off some sort of regular
tests of the arrays vs waiting for things to fail.

Cheers,
Mark


c2stable ~ # cat /etc/conf.d/mdadm
# /etc/conf.d/mdadm: config file for /etc/init.d/mdadm

# Misc options to pass to mdadm in monitor mode.
# For more info, run `mdadm --monitor --help` or see
# the mdadm(8) manpage.

MDADM_OPTS=--syslog --mail=markkne...@gmail.com --delay=1800 --test
c2stable ~ #

This is an automatically generated mail message from mdadm
running on c2stable

A TestMessage event had been detected on md device /dev/md/7.

Faithfully yours, etc.

P.S. The /proc/mdstat file currently contains the following:

Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]
md6 : active raid1 sdc6[2] sdb6[1] sda6[0]
 247416933 blocks super 1.1 [3/3] [UUU]

md3 : active raid6 sdc3[2] sdb3[1] sda3[0] sdd3[3] sde3[4]
 157305168 blocks super 1.2 level 6, 16k chunk, algorithm 2 [5/5] [U]

md7 : active raid6 sdc7[2] sdb7[1] sda7[0] sdd2[3] sde2[4]
 395387904 blocks super 1.2 level 6, 16k chunk, algorithm 2 [5/5] [U]

md126 : active raid1 sdc5[2] sdb5[1] sda5[0]
 52436032 blocks [3/3] [UUU]

unused devices: none



[gentoo-user] vmplayer not working after xorg upgrade

2011-02-13 Thread Mark Knecht
This morning I did an xorg-server upgrade which included IIRC 33 files
total on my system. After the upgrade I am unable to run the vmplayer
app. The GUI never comes up. If I run it in a terminal it seems to die
quietly after about 5 seconds. There are no additional messages in
dmesg. The machine is _mostly_ stable. The machine is emerge -DuN
@world/revdep-rebuild -i clean at this time.

I tried upgrading to 2.6.37 a month ago but had this same problem so I
fell back to 2.6.36-gentoo-r6 which has been working. At the time I
was using an ATI card so I'm going to try 2.6.37 again after I post
this.

All Virtualbox VMs are running fine.

Can anyone suggest other things to look at? The only purpose this
compute server has in life is to run many VMs for me so this is a big
killer to my afternoon.

I did install mailx/smtp stuff this morning prior to checking these
VMs. I doubt that's involved, but maybe who knows...

 Let me know any questions or requests for more info.

Thanks in advance,
Mark

Here is what i see:

mark@c2stable ~ $ vmplayer
Logging to /tmp/vmware-mark/setup-5266.log
filename:   /lib/modules/2.6.36-gentoo-r6/misc/vmmon.ko
supported:  external
license:GPL v2
description:VMware Virtual Machine Monitor.
author: VMware, Inc.
depends:
vermagic:   2.6.36-gentoo-r6 SMP preempt mod_unload modversions
filename:   /lib/modules/2.6.36-gentoo-r6/misc/vmnet.ko
supported:  external
license:GPL v2
description:VMware Virtual Networking Driver.
author: VMware, Inc.
depends:
vermagic:   2.6.36-gentoo-r6 SMP preempt mod_unload modversions
filename:   /lib/modules/2.6.36-gentoo-r6/misc/vmblock.ko
supported:  external
version:1.1.2.0
license:GPL v2
description:VMware Blocking File System
author: VMware, Inc.
srcversion: 400149ED038D22A87322D56
depends:
vermagic:   2.6.36-gentoo-r6 SMP preempt mod_unload modversions
parm:   root:The directory the file system redirects to. (charp)
filename:   /lib/modules/2.6.36-gentoo-r6/misc/vmci.ko
supported:  external
license:GPL v2
description:VMware Virtual Machine Communication Interface (VMCI).
author: VMware, Inc.
depends:
vermagic:   2.6.36-gentoo-r6 SMP preempt mod_unload modversions
filename:   /lib/modules/2.6.36-gentoo-r6/misc/vsock.ko
supported:  external
license:GPL v2
version:1.0.0.0
description:VMware Virtual Socket Family
author: VMware, Inc.
srcversion: 19B3B9DE37C42158B0DC539
depends:vmci
vermagic:   2.6.36-gentoo-r6 SMP preempt mod_unload modversions
filename:   /lib/modules/2.6.36-gentoo-r6/misc/vmmon.ko
supported:  external
license:GPL v2
description:VMware Virtual Machine Monitor.
author: VMware, Inc.
depends:
vermagic:   2.6.36-gentoo-r6 SMP preempt mod_unload modversions
mark@c2stable ~ $

The kernel is gentoo-sources-2.6.36-r6

mark@c2stable ~ $ uname -a
Linux c2stable 2.6.36-gentoo-r6 #29 SMP PREEMPT Sat Jan 22 07:39:35
PST 2011 x86_64 Intel(R) Core(TM) i7 CPU X 980 @ 3.33GHz GenuineIntel
GNU/Linux
mark@c2stable ~ $

I tried a modules-rebuild -X rebuild but that didn't fix anything.
Here's the list of what get's rebuilt:
(NOTE: For non-module-rebuild users the -X tells it to emerge the
latest rev, not the values shown below)

c2stable ~ # module-rebuild list
** Packages which I will emerge are:
=x11-base/xorg-drivers-1.7
=x11-drivers/xf86-input-evdev-2.3.2
=x11-drivers/xf86-video-fbdev-0.4.2
=x11-drivers/xf86-input-keyboard-1.4.0
=x11-drivers/xf86-input-mouse-1.5.0
=x11-drivers/xf86-video-vmware-11.0.1
=media-libs/mesa-7.8.1
=x11-drivers/xf86-input-virtualbox-3.2.10-r1
=x11-drivers/xf86-video-vesa-2.3.0
=x11-libs/libdrm-2.4.23
=app-emulation/virtualbox-modules-4.0.2
=app-emulation/vmware-modules-1.0.0.28-r1
=x11-drivers/nvidia-drivers-270.18
c2stable ~ #

c2stable ~ # cat /etc/make.conf
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS=-O2 -march=native -pipe
#Safe CFlags for the Core-i7 (web info) saved for reference
#CFLAGS=-march=core2 -msse4 -mcx16 -msahf -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.
#FEATURES=buildpkg parallel-fetch userfetch
USE=acpi nptl nptlonly -ipv6 fortran unicode hal dbus X -bluetooth
-esound -timidity -cups -java -gnome gstreamer jpeg jpeg2k kde qt4
qt3support -arts -eds png policykit xvmc
MAKEOPTS=-j9
GENTOO_MIRRORS=http://gentoo.osuosl.org/ 
SYNC=rsync://rsync.namerica.gentoo.org/gentoo-portage
EMERGE_DEFAULT_OPTS=--with-bdeps y
INPUT_DEVICES=evdev mouse keyboard

[gentoo-user] Re: vmplayer not working after xorg upgrade

2011-02-13 Thread Mark Knecht
On Sun, Feb 13, 2011 at 11:48 AM, Mark Knecht markkne...@gmail.com wrote:
 This morning I did an xorg-server upgrade which included IIRC 33 files
 total on my system. After the upgrade I am unable to run the vmplayer
 app. The GUI never comes up. If I run it in a terminal it seems to die
 quietly after about 5 seconds. There are no additional messages in
 dmesg.

SNIP

 Here is what i see:

 mark@c2stable ~ $ vmplayer
 Logging to /tmp/vmware-mark/setup-5266.log
SNIP
 mark@c2stable ~ $
SNIP

OK - there is nothing of interest in the setup log file above, but in
the same directory there is a player-log which is catching the crash.
I cannot tell what's kicking it off so I'm considering uninstalling
all the vmware stuff, looking for stale links, then reinstalling
vmware.

Possibly this is some issue with needing to update/rebuild  some
standard library?

Thanks in advance for any ideas.

- Mark

mark@c2stable ~ $ cat /tmp/vmware-mark/player-5216.log
Feb 13 12:15:36.266: player| Log for VMware Player pid=5216
version=3.1.2 build=build-301548 option=Release
Feb 13 12:15:36.266: player| The process is 64-bit.
Feb 13 12:15:36.266: player| Host codepage=UTF-8 encoding=UTF-8
Feb 13 12:15:36.266: player| HAL05LoadHALLibraries: dlopened libhal.so.1.
Feb 13 12:15:36.266: player| HAL05LoadHalLibraries: dlopened libdbus-1.so.3.
Feb 13 12:15:36.266: player| HAL05LoadGlibLibrary: dlopened libdbus-glib-1.so.2.
Feb 13 12:15:36.268: player| HAL05ClassifyAllDevices: Cannot classify
devices. DBus Error: Rejected send message, 1 matched rules;
type=method_call, sender=:1.15 (uid=1000 pid=5216
comm=/opt/vmware/workstation/lib/vmware/bin/vmplayer)
interface=org.freedesktop.Hal.Manager member=GetAllDevices error
name=(unset) requested_reply=0 destination=org.freedesktop.Hal
(uid=0 pid=4228 comm=/usr/sbin/hald)).
Feb 13 12:15:36.268: player| HAL05Init: HAL loaded succesfully, but
not functioning, hald may not be running.
Feb 13 12:15:36.268: player| HAL04LoadHALLibraries: Could not dlopen
libhal.so.0.
Feb 13 12:15:36.355: player| UUID: Unable to open /dev/mem: Permission denied
Feb 13 12:15:36.355: player| UUID: Invalid gethostid routine. Value = 7F0100.
Feb 13 12:15:36.370: player| HostDeviceInfo_FindHostCDROMs:
enumerating IDE CDROMs
Feb 13 12:15:36.370: player| HostDeviceInfo_FindHostCDROMs: IDE CDROM
enumerating completed
Feb 13 12:15:36.370: player| HostDeviceInfo_FindHostCDROMs:
enumerating SCSI CDROMs
Feb 13 12:15:36.388: player| HostDeviceInfo_FindHostCDROMs: SCSI CDROM
enumerating completed
Feb 13 12:15:36.407: player| HostDeviceInfo_FindHostParallelPorts:
/proc/sys/dev/parport could not be explored. Unable to enumerate host
parallel ports.
Feb 13 12:15:36.414: player| SMBIOS: can't open /dev/mem: Insufficient
permissions to access the file
Feb 13 12:15:36.414: player| VmhsHostInfoPopulateSystem:  Could not
get information from smbios to populate VMDB.
Feb 13 12:15:36.414: player| UUID: Unable to open /dev/mem: Permission denied
Feb 13 12:15:36.414: player| HOSTINFO: Seeing Intel CPU,
numCoresPerCPU 16 numThreadsPerCore 2.
Feb 13 12:15:36.415: player| HOSTINFO: numPhysCPUs is 0, bumping to 1.
Feb 13 12:15:36.415: player| HOSTINFO: This machine has 1 physical
CPUS, 6 total cores, and 12 logical CPUs.
Feb 13 12:15:36.548: player| CDS: Initializing CDS Client 1.0;
product=player-linux version=3.1.2 workspace=/tmp/vmware-mark
Feb 13 12:15:36.548: player| CDS error: Cannot locate VMIS, bootstrap
file /etc/vmware-installer/bootstrap unavailable!
Feb 13 12:15:36.548: player| CDS error: Couldn't populate VMIS install cache.
Feb 13 12:15:36.548: player| CDS warning: Unable to initialize install
cache; downloads may not work properly.
Feb 13 12:15:36.549: player| Using log file /tmp/vmware-mark/player-5216.log
Feb 13 12:15:36.556: player| Foundry Init: setting up global state (0 threads)
Feb 13 12:15:36.556: player| Vix_InitializeGlobalState: vixLogLevel = 0
Feb 13 12:15:36.556: player| Vix_InitializeGlobalState: vixApiTraceLevel = 0
Feb 13 12:15:36.556: player| Vix_InitializeGlobalState:
vixDebugPanicOnVixAssert = 0
Feb 13 12:15:36.556: player| Vix_InitializeGlobalState:
vixLogRefcountOnFinalRelease = 0
Feb 13 12:15:36.569: player| VixHost_ConnectEx: version -1, hostType
3, hostName (null), hostPort 0, options 8707
Feb 13 12:15:36.570: player| Caught signal 11 -- pid 5216
Feb 13 12:15:36.570: player| SIGNAL: eip 0x7ff932ba2ce7 esp
0x7fff12e501c0 ebp 0x8cca40
Feb 13 12:15:36.570: player| SIGNAL: eax 0x10 ebx 0xdb63e0 ecx
0xdb63d0 edx 0x4 esi 0x0 edi 0xdb63e0
Feb 13 12:15:36.570: player| SIGNAL: stack 7FFF12E501C0 : 0x0010
0x 0x 0x
Feb 13 12:15:36.570: player| SIGNAL: stack 7FFF12E501D0 : 0x00725e08
0x 0x008cca40 0x
Feb 13 12:15:36.570: player| SIGNAL: stack 7FFF12E501E0 : 0x12e50400
0x7fff 0x31bfd27b 0x7ff9
Feb 13 12:15:36.570: player| SIGNAL: stack 7FFF12E501F0 : 0x
0x 0x00725e08 0x
Feb 13 12:15:36.570: player| SIGNAL: stack 7FFF12E50200 : 0x008cca40

[gentoo-user] Re: vmplayer not working after xorg upgrade

2011-02-13 Thread Mark Knecht
On Sun, Feb 13, 2011 at 12:24 PM, Mark Knecht markkne...@gmail.com wrote:
 On Sun, Feb 13, 2011 at 11:48 AM, Mark Knecht markkne...@gmail.com wrote:
 This morning I did an xorg-server upgrade which included IIRC 33 files
 total on my system. After the upgrade I am unable to run the vmplayer
 app. The GUI never comes up. If I run it in a terminal it seems to die
 quietly after about 5 seconds. There are no additional messages in
 dmesg.

 SNIP

 Here is what i see:

 mark@c2stable ~ $ vmplayer
 Logging to /tmp/vmware-mark/setup-5266.log
 SNIP
 mark@c2stable ~ $
 SNIP

 OK - there is nothing of interest in the setup log file above, but in
 the same directory there is a player-log which is catching the crash.
 I cannot tell what's kicking it off so I'm considering uninstalling
 all the vmware stuff, looking for stale links, then reinstalling
 vmware.

 Possibly this is some issue with needing to update/rebuild  some
 standard library?

 Thanks in advance for any ideas.

 - Mark

 mark@c2stable ~ $ cat /tmp/vmware-mark/player-5216.log
 Feb 13 12:15:36.266: player| Log for VMware Player pid=5216
 version=3.1.2 build=build-301548 option=Release
 Feb 13 12:15:36.266: player| The process is 64-bit.
SNIP

OK, it's working again, but I'm not happy.

Rebuilt all the VMware stuff multiple times. Nothing fixed it. Played
with anything I could think of. Nothing fixed it.

Decided to drop the Pentoo overlay and try the vmware overlay. Pain in
the butt because it didn't seem to support the same bundled revision
I'd been using. Completely uninstalled 7.1.3, installed 6.5. It
started working but the mouse was a mess and not working right. I then
tried the 7.1.3 unbundled version and it started working again.

I haven't a clue what really happened here or why it's working now.

I'm not confident it will work tomorrow.

- Mark



Re: [gentoo-user] Re: vmplayer not working after xorg upgrade

2011-02-13 Thread Mark Knecht
On Sun, Feb 13, 2011 at 6:19 PM, Nikos Chantziaras rea...@arcor.de wrote:
 On 02/13/2011 10:24 PM, Mark Knecht wrote:

 On Sun, Feb 13, 2011 at 11:48 AM, Mark Knechtmarkkne...@gmail.com
  wrote:

 This morning I did an xorg-server upgrade which included IIRC 33 files
 total on my system. After the upgrade I am unable to run the vmplayer
 app. The GUI never comes up. If I run it in a terminal it seems to die
 quietly after about 5 seconds. There are no additional messages in
 dmesg.


 OK - there is nothing of interest in the setup log file above, but in
 the same directory there is a player-log which is catching the crash.
 I cannot tell what's kicking it off so I'm considering uninstalling
 all the vmware stuff, looking for stale links, then reinstalling
 vmware.

 Are you using the ebuilds for vmware?  (Latest versions are in the vmware
 overlay.)  I run latest X.Org (1.9.4) and both workstation as well as player
 have no problems here.

I switched to those from Pentoo today Nikos and that's when it started
working. However what I found so far didn't support the bundled
workstation/tools package, only the workstation so right now I don't
have the additions stuff installed. I'll be looking into that
tomorrow.

Thanks!

- Mark



Re: [gentoo-user] Disk Labels in Handbook

2011-02-09 Thread Mark Knecht
On Wed, Feb 9, 2011 at 6:16 AM, Dale rdalek1...@gmail.com wrote:
 James wrote:

 Hello,

 So looking at the handbook, I was wondering
 why it does not describe how to use Disk Labels
 during the installation process. Dunno.

 So I poised this question on gentoo-doc
 and got this encouraging response from *JOSH*

 snip


 James



 Given that some folks on here have ran into USB drives changing the order of
 partitions, I think this is a good idea.  If needed, they could at least
 introduce the subject then have it link to another page.  Even if it is the
 simplest label of using boot, root and such labels and maybe a mention that
 there are other ways to accomplish the same thing.

 I ran into this issue a while back when I added a hard drive and it was not
 easy to work with.  When I boot a CD/DVD, it sees them as hd* instead of sd*
 so that didn't help since the OS kernel sees them as sd*.

 It may be uphill to get this included or at least linked to something else
 explaining it but I think it is a good idea.  I also added myself to the bug
 as well.  I saw the post on -doc.

 Dale


Following Walt's recent thread about his experiences using grub2 I
think getting folks used to disk labels at installation time, be they
names or even better UUID's, might fit in very well with installation
instructions that cover using grub2 instead of grub as a boot loader.

- Mark



Re: [gentoo-user] copy a bunch of files...

2011-02-09 Thread Mark Knecht
On Wed, Feb 9, 2011 at 4:09 AM, Helmut Jarausch
jarau...@igpm.rwth-aachen.de wrote:
 On 02/09/2011 12:56:09 PM, Neil Bothwick wrote:
 On Wed, 9 Feb 2011 13:38:37 +0200, Kfir Lavi wrote:

  Another way to do it is with find:
  find /home/mark/Builder -type f -iname '*csv' -exec cp {}
  ~mark/CorrelationTests \;

 Replace \; with + for a faster process, as Mark said there are
 hundreds
 of these files.

 Or, if you use zsh instead of bash, it can be as simple as

 cp Builder/**/*.csv CorrelationTests

 There is a problem with this approach, though.
 It can easily give command line too long.

 Helmut.

Lots of interesting ideas. I use apps so often I've never become very
strong at the command line and yet people built this whole Linux
empire using it. It's very powerful.

One thing I didn't make clear in my original post - it didn't seem
important to confuse my real question which was the copy itself and
not locating the files - but which likely changes how well some of
these commands would work in my specific case was that the Builder
directory actually has _many_ CSV files ut specifically I needed only
the ones in the Correlation directories. Additionally, being that this
is stock  futures trading data, generally at a given time I need the
CSV files for a specific symbol, for instance in the original post:

c2stable ~ # locate Correlation | grep Builder | grep csv
/home/mark/Builder/TF/TF.D-17M-2009_06-2010_11/Correlation/TF.D-17M-2009_06-2010_11-V1.csv
/home/mark/Builder/TF/TF.D-17M-2009_06-2010_11/Correlation/TF.D-17M-2009_06-2010_11-V2.csv
/home/mark/Builder/TF/TF.D-17M-2009_06-2010_11/Correlation/TF.D-17M-2009_06-2010_11-V3.csv
SNIP
/home/mark/Builder/TF/TF.D-31M-2009_06-2010_11/Correlation/TF.D-31M-2009_06-2010_11-V4.csv
/home/mark/Builder/TF/TF.D-31M-2009_06-2010_11/Correlation/TF.D-31M-2009_06-2010_11-V5.csv
c2stable ~ #

I knew I wanted the Correlation directory but it turned out I had
other directories with that name on the system, so I added the grep
Builder to get me into the right tree and CSV to find only the CSV
files. However at that point I only had Russell futures data (TF.D) so
I didn't have to go further. Now, however, as I bring in Dow futures
(YM, YM.D) , SP 500 futures (ES, ES.D), and NASDAQ futures (NQ, ND.D)
I just an an extra grep in and I'm there in terms of finding the files
I need for a certain test.

Additionally I have test results for other date ranges that will show
up soon, (2001-2005, or 2003-2011, etc. Additional greps are an easy
way to just winnow it down to a point where I'm finding what I need to
find.

This thread has given me a lot of new commands to go look at.

Thanks,
Mark



Re: [gentoo-user] copy a bunch of files...

2011-02-09 Thread Mark Knecht
On Wed, Feb 9, 2011 at 12:10 PM, Neil Bothwick n...@digimed.co.uk wrote:
 On Wed, 9 Feb 2011 06:46:34 -0800, Mark Knecht wrote:

 One thing I didn't make clear in my original post - it didn't seem
 important to confuse my real question which was the copy itself and
 not locating the files - but which likely changes how well some of
 these commands would work in my specific case was that the Builder
 directory actually has _many_ CSV files ut specifically I needed
 only the ones in the Correlation directories.

 Bear in mind that locate only returns files in its database, not any
 created since the last time its cron job was run. Find seems a more
 appropriate tool for this task.


Good point. As I bring these files down from a bunch of Windows VMs I
typically run updatedb before doing this, but find would probably be
safer.

Thanks,
Mark



[gentoo-user] copy a bunch of files...

2011-02-08 Thread Mark Knecht
Hi,
   Looking for a simple way to do a big copy at the command line. I
have a bunch of files (maybe 100 right now, but it will grow) that I
can find with locate and grep:

c2stable ~ # locate Correlation | grep Builder | grep csv
/home/mark/Builder/TF/TF.D-17M-2009_06-2010_11/Correlation/TF.D-17M-2009_06-2010_11-V1.csv
/home/mark/Builder/TF/TF.D-17M-2009_06-2010_11/Correlation/TF.D-17M-2009_06-2010_11-V2.csv
/home/mark/Builder/TF/TF.D-17M-2009_06-2010_11/Correlation/TF.D-17M-2009_06-2010_11-V3.csv
SNIP
/home/mark/Builder/TF/TF.D-31M-2009_06-2010_11/Correlation/TF.D-31M-2009_06-2010_11-V4.csv
/home/mark/Builder/TF/TF.D-31M-2009_06-2010_11/Correlation/TF.D-31M-2009_06-2010_11-V5.csv
c2stable ~ #

   I need to copy these files to a new directory
(~mark/CorrelationTests) where I will modify what's in them before
running correlation tests on the contents.

   How do I feed the output of the command above to cp at the command
line to get this done?

   I've been playing with things like while  read  but I can't get it right.

Thanks,
Mark



Re: [gentoo-user] copy a bunch of files...

2011-02-08 Thread Mark Knecht
On Tue, Feb 8, 2011 at 11:02 AM, Florian Philipp li...@binarywings.net wrote:
 Am 08.02.2011 19:27, schrieb Mark Knecht:
 Hi,
    Looking for a simple way to do a big copy at the command line. I
 have a bunch of files (maybe 100 right now, but it will grow) that I
 can find with locate and grep:

 c2stable ~ # locate Correlation | grep Builder | grep csv
 /home/mark/Builder/TF/TF.D-17M-2009_06-2010_11/Correlation/TF.D-17M-2009_06-2010_11-V1.csv
 /home/mark/Builder/TF/TF.D-17M-2009_06-2010_11/Correlation/TF.D-17M-2009_06-2010_11-V2.csv
 /home/mark/Builder/TF/TF.D-17M-2009_06-2010_11/Correlation/TF.D-17M-2009_06-2010_11-V3.csv
 SNIP
 /home/mark/Builder/TF/TF.D-31M-2009_06-2010_11/Correlation/TF.D-31M-2009_06-2010_11-V4.csv
 /home/mark/Builder/TF/TF.D-31M-2009_06-2010_11/Correlation/TF.D-31M-2009_06-2010_11-V5.csv
 c2stable ~ #

    I need to copy these files to a new directory
 (~mark/CorrelationTests) where I will modify what's in them before
 running correlation tests on the contents.

    How do I feed the output of the command above to cp at the command
 line to get this done?

    I've been playing with things like while  read  but I can't get it right.

 Thanks,
 Mark


 locate Correlation | grep Builder | grep csv | xargs -IARG cp ARG
 ~mark/CorrelationTests

 -IARG tells xargs to replace the occurrence of ARG in the parameters
 with the actual parameters read from stdin.


Thanks! This worked nicely and is relatively easy to remember.

 or

 locate Correlation | grep Builder | grep csv | while read file; do
 cp $file ~mark/CorrelationTests; done


This is what I was trying to do but was unsuccessful.

 BTW: Wouldn't grep 'Builder/.*\.csv' match better (some intermediate
 directory Builder, ending on .csv)?


Yes, that does seem to work. I guess that's grepping for the path of a
file starting with Builder and ending with CSV?

Good one.

 Even easier:
 locate ~mark/'*/Builder/*.csv' | xargs -IARG cp ARG ~mark/CorrelationTests

 Warning: I've not tested every line. Use with caution.

 Hope this helps,
 Florian Philipp

It did very much. Thanks!

Now to work on modifying the files, again with a loop for all the
files in ~mark/CorrelationTests

- Mark



Re: [gentoo-user] Re: IDE recommendations for writing C?

2011-02-06 Thread Mark Knecht
On Sun, Feb 6, 2011 at 9:09 AM, Nikos Chantziaras rea...@arcor.de wrote:
 On 02/06/2011 12:08 AM, Mark Knecht wrote:

 Can someone recommend a good IDE to write C code in?

 1) Something that can display multiple files in a project.

 2) Something that have some sort of version control built into it?

 3) If possible, I can compile right in the IDE.

 I've starting writing something. It's hundreds of lines long in 1 file
 and I just messed up a brace somewhere which I haven't been able to
 figure out in vi.

 I use Qt Creator.  Though it's primarily for C++, I also use it for C. I
 recommend it because it's very easy to use.  For version control, it
 supports Git, Subversion, Mercurial and Perforce.

 If you decide to use it and also make use of its own build system (qmake),
 post about it so I can tell you how to configure a project for plain C,
 because by default new projects are C++.


I'll take a look at it. Do you recommend the testing 2.0 versions or stable 1.3?

At this time I have no need for GUI development. The app I want to do
right now could run on the command line. However getting started with
something that did support eventually doing a GUI would be nice as
long as it doesn't kill me.

As for the C vs C++ issue, I only say C because the NVidia nvcc
compiler seems to be primarily a C compiler. It's not until you get to
Appendix D in the programming guide that they even mention C++ in the
context of CUDA.

That said, however, my understanding of what nvcc does is that what it
really does breaks apart the *.cu input files into portions that are
sent to the CUDA compiler, and portions that are sent to gcc. I
suspect the gcc/host computing side can be whatever is legal for gcc.
All I need, as best I understand it today, is to call nvcc instead of
gcc.

If I can find a simple C++ Hello World program that actually uses
classes or whatever makes C++ C++ then I'll see how it works. It's
pretty easy to drop in a few CUDA commands and see if i works.

Thanks for the info. Looks interesting.

Cheers,
Mark



Re: [gentoo-user] Re: IDE recommendations for writing C?

2011-02-06 Thread Mark Knecht
On Sun, Feb 6, 2011 at 9:42 AM, Mark Knecht markkne...@gmail.com wrote:
SNIP
 I'll take a look at it. Do you recommend the testing 2.0 versions or stable 
 1.3?
SNIP

Never mind on the 2.0 item. I run stable and that would require about
15 qt packages to be unmasked. Not interested in going there right now
- maybe later.

Cheers,
Mark



Re: [gentoo-user] Re: IDE recommendations for writing C?

2011-02-06 Thread Mark Knecht
On Sun, Feb 6, 2011 at 10:19 AM, Nikos Chantziaras rea...@arcor.de wrote:
SNIP

 As for the C vs C++ issue, I only say C because the NVidia nvcc
 compiler seems to be primarily a C compiler. It's not until you get to
 Appendix D in the programming guide that they even mention C++ in the
 context of CUDA.

 I started studying CUDA development recently too.  While reading the
 examples that come with the SDK, I found out that they're all C++ though.
  The reason you can use C is that C is actually valid C++ (most of the
 time.)


OK, I suspect I'm being limited by an include file which was supplied
with the exercises for the book CUDA By Design. Nice little book, easy
 fun to read, good discussion of the basics for an entry level
programmer like me. Works fine if the file compiled is main.cu, but
fails if I rename that file main.cpp.

If I can figure out what is non-C++ in those files then I'll try to
focus on being C+ compatible because it seems all these IDE tools
expect that anyway.

I glazed over looking at the SDK examples myself because they are
frankly far beyond my programming skills without some text to
understand what they are trying to accomplish.

CUDA programming itself hasn't been all that hard. I'm luck that I
have a problem to solve that I think fits it pretty well.


 That said, however, my understanding of what nvcc does is that what it
 really does breaks apart the *.cu input files into portions that are
 sent to the CUDA compiler, and portions that are sent to gcc. I
 suspect the gcc/host computing side can be whatever is legal for gcc.
 All I need, as best I understand it today, is to call nvcc instead of
 gcc.

 nvcc compiles into C++.  The end result is then compiled with g++ and linked
 with the CUDA libraries.  This is normally done automatically by nvcc,
 unless you use the --cuda option.  For example, to suppress that automation,
 you can compile a CUDA program with:

  nvcc --cuda myprogram.cu

 myprogram.cu can be something as simple as:

  int main()
  { return 0; }

 This will compile the program into myprogram.cu.cpp.  This can then be
 compiled manually with g++:

  g++ myprogram.cu.cpp -L/opt/cuda/lib64/ -lcudart

 It's just that nvcc does that automatically for you.


Really good info, thanks!

As for qt-creator, I tried the binary installer but after installing
it didn't run complaining that it cannot be mixed with the Qt
libraries that are on my system. I'll stick with the 1.3 version for
now and wait for portage to catch up.

Cheers,
Mark

P.S. - If you (or anyone else) wants to talk about CUDA, contact me
off list. I'm always interested and available. - MWK



Re: [gentoo-user] Portage is misplaced in /usr

2011-02-05 Thread Mark Knecht
On Sat, Feb 5, 2011 at 10:43 AM, Cedric Sodhi man...@gmx.net wrote:
 There are several reasons why portage, neither the tree nor (especially
 not) the distfiles should reside in /usr.

SNIP

I have no opinion on the subject really, but can't you build a link
from /usr/portage to anywhere you want to put it? I put
/usr/portage/distfiles on a separate partition as I hate running out
of disk space on my root partition when I've not cleaned up distfiles.

The only reason I could give for not changing is I don't want to teach
my fingers /var/portage vs what they already know. That's a pretty
weak reason.

- Mark



[gentoo-user] IDE recommendations for writing C?

2011-02-05 Thread Mark Knecht
Can someone recommend a good IDE to write C code in?

1) Something that can display multiple files in a project.

2) Something that have some sort of version control built into it?

3) If possible, I can compile right in the IDE.

I've starting writing something. It's hundreds of lines long in 1 file
and I just messed up a brace somewhere which I haven't been able to
figure out in vi.

Thanks,
Mark



Re: [gentoo-user] IDE recommendations for writing C?

2011-02-05 Thread Mark Knecht
On Sat, Feb 5, 2011 at 2:39 PM, Alex Schuster wo...@wonkology.org wrote:
 Mark Knecht writes:

 Can someone recommend a good IDE to write C code in?

 1) Something that can display multiple files in a project.

 2) Something that have some sort of version control built into it?

 3) If possible, I can compile right in the IDE.

 Emacs. If you dare to go this way. The learning curve is high, but once
 you know how to use it, you probably will be glad.
 Eclipse is pretty cool, and I've heard good things about Kdevelop.

 I've starting writing something. It's hundreds of lines long in 1 file
 and I just messed up a brace somewhere which I haven't been able to
 figure out in vi.

 Just use the % key.

        Wonko

I specifically _don't_ want a high learning curve. I want this to
remain fun, if possible.

After an hour and a half of llooking for the problem in vi KDevelop
with it's color editor helped me find the problem in a few minutes.
That's a big help.

I haven't figured out how to tell Kdevelop to use a different compiler
but that's not important right now. I can build in a terminal until I
learn how.

Thanks for the ideas.

I also loaded up codeblocks which I read good things about. CodeLite
is supposed to be good but I couldn't get it unmasked.

Netbeans wanted to install too much Java stuff. Understandable as it's
written in Java but I decided not to look at that one right now.

For now I'm set. Thanks!

Cheers,
Mark



[gentoo-user] [Slightly OT] Linking to a non-standard library installed using portage

2011-02-03 Thread Mark Knecht
Hi,
   This is going to be trivial for anyone who actually programs.
Thanks in advance.

   How do I link to a library I installed using portage? If someone
could show me an example make file that would be great. I've no real
experience in C and what I did have was in Windows years ago so I'm
undertaking some study here. I wrote a simple little test program that
calculates a simple moving average using ta-lib:

mark@c2stable ~/CODE/CUDA/Mark $ cat ta-lib-ma.cu
#include stdlib.h
#include ta-lib/ta_libc.h

#define VECTOR_LEN 100

int main(int argc, char **argv)
{
   int i;
   double MyData[VECTOR_LEN];
   double MySMA[VECTOR_LEN];
   TA_Integer outBeg;
   TA_Integer outNbElement;

   for (i = 0; i  VECTOR_LEN; i++)
   {
  MyData[i] = (i*i)/(10*i);
   }

   TA_SMA(0, VECTOR_LEN-1, MyData, 10, outBeg, outNbElement, MySMA);

   for ( i=0; i outNbElement; i++ ) printf(Bar %d = %f\n, outBeg+1,
MySMA[i]);
   return 0;
}
mark@c2stable ~/CODE/CUDA/Mark $


The program compiles fine using NVidia CUDA compiler nvcc creating an
object file ta-lib-ma.o:

mark@c2stable ~/CODE/CUDA/Mark $ nvcc -c ta-lib-ma.cu
mark@c2stable ~/CODE/CUDA/Mark $ ls -al ta-lib-ma.*
-rw-r--r-- 1 mark users   477 Feb  3 10:08 ta-lib-ma.cu
-rw-r--r-- 1 mark users 17184 Feb  3 10:12 ta-lib-ma.o
mark@c2stable ~/CODE/CUDA/Mark $

However I cannot figure out how to link it to the ta-lib files
installed by portage:

mark@c2stable ~/CODE/CUDA/Mark $ equery files ta-lib
[ Searching for packages matching ta-lib... ]
* Contents of sci-libs/ta-lib-0.4.0:
/usr
/usr/bin
/usr/bin/ta-lib-config
/usr/include
/usr/include/ta-lib
/usr/include/ta-lib/ta_abstract.h
/usr/include/ta-lib/ta_common.h
/usr/include/ta-lib/ta_defs.h
/usr/include/ta-lib/ta_func.h
/usr/include/ta-lib/ta_libc.h
/usr/lib64
/usr/lib64/libta_lib.a
/usr/lib64/libta_lib.la
/usr/lib64/libta_lib.so - libta_lib.so.0.0.0
/usr/lib64/libta_lib.so.0 - libta_lib.so.0.0.0
/usr/lib64/libta_lib.so.0.0.0
mark@c2stable ~/CODE/CUDA/Mark $

What do I link to?

I've tried various things like this but none seem to find the library correctly:

mark@c2stable ~/CODE/CUDA/Mark $ nvcc -L/usr/lib64/libta_lib
ta-lib-ma.cu -o ta-lib-ma
/tmp/tmpxft_0a8b_-13_ta-lib-ma.o: In function `main':
tmpxft_0a8b_-1_ta-lib-ma.cudafe1.cpp:(.text+0x9f):
undefined reference to `TA_SMA'
collect2: ld returned 1 exit status
mark@c2stable ~/CODE/CUDA/Mark $

Thanks in advance for any pointers.

Cheers,
Mark



[gentoo-user] Re: [Slightly OT] Linking to a non-standard library installed using portage

2011-02-03 Thread Mark Knecht
On Thu, Feb 3, 2011 at 10:39 AM, Mark Knecht markkne...@gmail.com wrote:
SNIP

   How do I link to a library I installed using portage?
SNIP

And in this case it was simple once I found the right examples:

nvcc -lta_lib ta-lib-ma.cu -o ta-lib-ma

Sorry for the noise.

Cheers,
Mark



Re: [gentoo-user] ASUS M4A88T-M/USB3 and RTL-8168

2011-01-30 Thread Mark Knecht
On Sat, Jan 29, 2011 at 7:12 AM, Volker Armin Hemmann
volkerar...@googlemail.com wrote:
 On Saturday 29 January 2011 13:29:53 Florian Philipp wrote:
 Hi list!

 I'm thinking about building a new media PC and wanted to use an ASUS
 M4A88T-M/USB3 mainboard (link: [1]). Any objections to this?


 I wouldn't buy an Asus board at the moment, thanks to their crappyness.

 I bought a GA-880GA-UD3H 4 weeks ago. It works.

 rtl8111d/e lan chip
 usb3

 lots of pcie slots.

 note: you don't have to care about the realtek suffices. 8111d/e/whatever...
 they just work


Nice looking MB, good price.

Only caveat I see is the same problem I had with an Intel MB where 90
degree SATA outputs didn't work well for me in a tight HTPC case I did
recently. In a standard case no problems.

- Mark



[gentoo-user] BUG: using smp_processor_id() in preemptible [00000000] code: X/4018

2011-01-30 Thread Mark Knecht
Hi,
   I haven't used the closed source ATI driver for long but I don't
remember seeing this dmesg error before. It's not high priority for me
as I'll be switching out the graphics card to an NVidia card hopefully
tomorrow, but is this something that should get reported somewhere, or
is it just the nature of the fglrx driver? Or maybe I've not
configured the kernel as well as it could before this driver?

   Kernel is 2.6.36-gentoo-r6, ati-drivers-10.11.

   I did do a modules-rebuild -X rebuild and reboot to ensure it's repeatable.

   I suspect the LKML doesn't want this report as it's a closed source
driver. Do the XFree guys want it? AMD maybe?

Thanks,
Mark


[   21.215166] pci :03:00.0: irq 68 for MSI/MSI-X
[   21.215314] BUG: using smp_processor_id() in preemptible []
code: X/4018
[   21.215335] caller is KAS_GetExecutionLevel+0x85/0x131 [fglrx]
[   21.215337] Pid: 4018, comm: X Tainted: P2.6.36-gentoo-r6 #29
[   21.215338] Call Trace:
[   21.215342]  [811e53db] debug_smp_processor_id+0xc7/0xe0
[   21.215353]  [a00df24a] KAS_GetExecutionLevel+0x85/0x131 [fglrx]
[   21.215365]  [a00df8be]
KAS_InterlockedList_InsertAtTail+0x64/0x12e [fglrx]
[   21.215383]  [a010ae82] ? firegl_trace+0x72/0x1e0 [fglrx]
[   21.215400]  [a00f71a3] MCIL_InterlockedList+0x193/0x2a0 [fglrx]
[   21.215423]  [a01a6446] ? FIFO_Queue_Initialize+0xe6/0x100 [fglrx]
[   21.215438]  [a00f05f5] fireglPcsCommand+0xa5/0x140 [fglrx]
[   21.215454]  [a00f5279] ? MCIL_GetRegistrykey+0x269/0x760 [fglrx]
[   21.215474]  [a01b2f72] ?
AvailableCallbacksQueue_Initialize+0x52/0x70 [fglrx]
[   21.215494]  [a01b55b0] ? InitializeExtension+0xf0/0x240 [fglrx]
[   21.215513]  [a01b5cb8] ? InitializeInterrupts+0x38/0x60 [fglrx]
[   21.215536]  [a01a4e2d] ?
IRQMGR_InitializeIRQMGR+0xfd/0x110 [fglrx]
[   21.215554]  [a00fa7c6] ?
irqmgr_wrap_enable_interrupts+0x396/0x950 [fglrx]
[   21.215571]  [a00fa577] ?
irqmgr_wrap_enable_interrupts+0x147/0x950 [fglrx]
[   21.215588]  [a00f9c12] ? irqmgr_wrap_initialize+0x22/0xb0 [fglrx]
[   21.215604]  [a00f9534] ?
firegl_interrupt_control+0x174/0x1a0 [fglrx]
[   21.215607]  [8103be6e] ? capable+0x22/0x41
[   21.215623]  [a00f93c0] ?
firegl_interrupt_control+0x0/0x1a0 [fglrx]
[   21.215646]  [a00eb91a] ? firegl_ioctl+0x1ea/0xeb0 [fglrx]
[   21.215659]  [a00e1aa4] ? ip_firegl_ioctl+0x9/0xb [fglrx]
[   21.215662]  [810a37bb] ? do_vfs_ioctl+0x404/0x453
[   21.215665]  [810a385b] ? sys_ioctl+0x51/0x74
[   21.215669]  [81096ad5] ? sys_write+0x45/0x6c
[   21.215672]  [81001eeb] ? system_call_fastpath+0x16/0x1b
[   21.215675] BUG: using smp_processor_id() in preemptible []
code: X/4018
[   21.215687] caller is KAS_GetExecutionLevel+0x85/0x131 [fglrx]
[   21.215689] Pid: 4018, comm: X Tainted: P2.6.36-gentoo-r6 #29
[   21.215691] Call Trace:
[   21.215694]  [811e53db] debug_smp_processor_id+0xc7/0xe0
[   21.215709]  [a00df24a] KAS_GetExecutionLevel+0x85/0x131 [fglrx]
[   21.215722]  [a00df8be]
KAS_InterlockedList_InsertAtTail+0x64/0x12e [fglrx]
[   21.215741]  [a010ae82] ? firegl_trace+0x72/0x1e0 [fglrx]
[   21.215758]  [a00f71a3] MCIL_InterlockedList+0x193/0x2a0 [fglrx]
[   21.215781]  [a01a6446] ? FIFO_Queue_Initialize+0xe6/0x100 [fglrx]
[   21.215798]  [a00f05f5] fireglPcsCommand+0xa5/0x140 [fglrx]
[   21.215815]  [a00f5279] ? MCIL_GetRegistrykey+0x269/0x760 [fglrx]
[   21.215836]  [a01b2f72] ?
AvailableCallbacksQueue_Initialize+0x52/0x70 [fglrx]
[   21.215857]  [a01b55b0] ? InitializeExtension+0xf0/0x240 [fglrx]
[   21.215877]  [a01b5cb8] ? InitializeInterrupts+0x38/0x60 [fglrx]
[   21.215901]  [a01a4e2d] ?
IRQMGR_InitializeIRQMGR+0xfd/0x110 [fglrx]
[   21.215920]  [a00fa7c6] ?
irqmgr_wrap_enable_interrupts+0x396/0x950 [fglrx]
[   21.215938]  [a00fa577] ?
irqmgr_wrap_enable_interrupts+0x147/0x950 [fglrx]
[   21.215955]  [a00f9c12] ? irqmgr_wrap_initialize+0x22/0xb0 [fglrx]
[   21.215973]  [a00f9534] ?
firegl_interrupt_control+0x174/0x1a0 [fglrx]
[   21.215976]  [8103be6e] ? capable+0x22/0x41
[   21.215993]  [a00f93c0] ?
firegl_interrupt_control+0x0/0x1a0 [fglrx]
[   21.216008]  [a00eb91a] ? firegl_ioctl+0x1ea/0xeb0 [fglrx]
[   21.216022]  [a00e1aa4] ? ip_firegl_ioctl+0x9/0xb [fglrx]
[   21.216025]  [810a37bb] ? do_vfs_ioctl+0x404/0x453
[   21.216028]  [810a385b] ? sys_ioctl+0x51/0x74
[   21.216031]  [81096ad5] ? sys_write+0x45/0x6c
[   21.216033]  [81001eeb] ? system_call_fastpath+0x16/0x1b
[   21.216036] BUG: using smp_processor_id() in preemptible []
code: X/4018
[   21.216048] caller is KAS_GetExecutionLevel+0x85/0x131 [fglrx]
[   21.216050] Pid: 4018, comm: X Tainted: P

Re: [gentoo-user] BUG: using smp_processor_id() in preemptible [00000000] code: X/4018

2011-01-30 Thread Mark Knecht
On Sun, Jan 30, 2011 at 2:34 PM, Volker Armin Hemmann
volkerar...@googlemail.com wrote:
 On Sunday 30 January 2011 12:40:29 Mark Knecht wrote:
 Hi,
    I haven't used the closed source ATI driver for long but I don't
 remember seeing this dmesg error before. It's not high priority for me
 as I'll be switching out the graphics card to an NVidia card hopefully
 tomorrow, but is this something that should get reported somewhere, or
 is it just the nature of the fglrx driver? Or maybe I've not
 configured the kernel as well as it could before this driver?

    Kernel is 2.6.36-gentoo-r6, ati-drivers-10.11.

    I did do a modules-rebuild -X rebuild and reboot to ensure it's
 repeatable.

    I suspect the LKML doesn't want this report as it's a closed source
 driver. Do the XFree guys want it?

 certainly not. You don't use anything from Xfree.


My bad. Really I guess I meant X.org

http://xorg.freedesktop.org/wiki/

They supply the server, correct? And everything going to the fglrx
driver comes from the server, somehow, doesn't it?

None the less it seems like the message suggests that the driver is
coded incorrectly.

Please note that I don't actually see any problems. The system
continues to work about as well as it ever has with this card/driver
combination, and there's only a few of these messages in dmesg.

 AMD maybe?


 certainly. If you can reproduce it with a vanilla kernel.
 Because I don't see anything like this with vanilla kernels.


Yeah, probably too much work for the time I have available right now,
and if I remove the HD 5770 in favor of the new NVidia card tomorrow
afternoon then it won't happen until I try the card in some system at
a future date. (Assuming I don't sell it as 'used' and just be done
with ATI for the 4th time...)

Also, there is a 10.12 driver in portage that wasn't available when I
switched to fglrx. I should try that also.

Cheers,
Mark

Thanks,
Mark



Re: [gentoo-user] BUG: using smp_processor_id() in preemptible [00000000] code: X/4018

2011-01-30 Thread Mark Knecht
On Sun, Jan 30, 2011 at 5:27 PM, Adam Carter adamcart...@gmail.com wrote:
 I use gentoo-sources and have been getting that for as long as i've used
 fglrx (since 9.6, ie driver version 8.62). I don't notice any issue so just
 ignore it.


Thanks Adam! I guess it's been there for the last week (when I gave up
on the Open Source driver) and I probably never looked at dmesg.

Cheers,
Mark



Re: [gentoo-user] Curiosity...

2011-01-29 Thread Mark Knecht
On Sat, Jan 29, 2011 at 6:18 AM,  meino.cra...@gmx.de wrote:

 Hi,

 when listing my hardware with lshw I find some stuff build
 into my ASUS Crosshair IV Formula, which I seem not to use
 and I like to know, for what it is good for:

 These are excerpts from the output of lshw:

SNIP

 but...for what reason there is an audio device in my graphics card?
 Sounds to me like a bicycle with onboard toaster... ;)


I love the picture, however it is more likely for things like audio over HDMI..

 for the smbus thingy as for the ISA-bridge there no additional info. For what 
 reason
 there is an ISA bridge on a board which skipped floppy controller and
 IDE???


The ISA stuff is likely for historical conformance to the PC
architecture. Not sure if modern motherboards use it anymore, but
maybe they do.

IIRC the smbus is involved in power switch stuff. It's not unlike I2C
but more simple.

 How can I make what use of it?


;-) Well, put a piece of bread in and push the lever down? ;-)

Have a good weekend.

Cheers,
Mark



Re: [gentoo-user] Curiosity...

2011-01-29 Thread Mark Knecht
On Sat, Jan 29, 2011 at 7:09 AM, Volker Armin Hemmann
volkerar...@googlemail.com wrote:
 On Saturday 29 January 2011 06:33:39 Mark Knecht wrote:
 On Sat, Jan 29, 2011 at 6:18 AM,  meino.cra...@gmx.de wrote:
  Hi,
 
  when listing my hardware with lshw I find some stuff build
  into my ASUS Crosshair IV Formula, which I seem not to use
  and I like to know, for what it is good for:

  These are excerpts from the output of lshw:
 SNIP

  but...for what reason there is an audio device in my graphics card?
  Sounds to me like a bicycle with onboard toaster... ;)

 I love the picture, however it is more likely for things like audio over
 HDMI..

  for the smbus thingy as for the ISA-bridge there no additional info. For
  what reason there is an ISA bridge on a board which skipped floppy
  controller and IDE???

 The ISA stuff is likely for historical conformance to the PC
 architecture. Not sure if modern motherboards use it anymore, but
 maybe they do.


 they do.
 http://en.wikipedia.org/wiki/Low_Pin_Count

 IIRC the smbus is involved in power switch stuff. It's not unlike I2C
 but more simple.

 also the spd-eeprom on your memory modules can be accessed via smbus. And some
 kinds of sensors chips. And a lot more.


Yeah, makes sense that boot ROM/BIOS stuff is going to get accessed
through there.

Cheers,
Mark



[gentoo-user] Paste into vim keeping indention or original?

2011-01-27 Thread Mark Knecht
What is the solution to begin able to paste code I find on the web
into a file in vim and being able to keep the indentation from
changing?

For instance, here's the first few lines of code from a web page:

#define ARRAYSIZE(x)  (sizeof(x)/sizeof(*(x)))

int main(void)
{
   const char filename[] = file.csv;
   /*
* Open the file.
*/

The indentation on the code from const down is consistently 3 spaces:


Pasted into vi:

#define ARRAYSIZE(x)  (sizeof(x)/sizeof(*(x)))

int main(void)
{
   const char filename[] = file.csv;
  /*
  * Open the file.
  */

In this case const is correct, but the next line is 6 spaces, then 9
spaces, then 12 spaces.

If it matters, I'm using KDE using Konsole, but I've seen this in
other WMs. I looked at the Tab settings in my Konsole profile but
nothing seems to matter.

Thanks,
Mark



[gentoo-user] Re: Paste into vim keeping indention or original?

2011-01-27 Thread Mark Knecht
On Thu, Jan 27, 2011 at 11:07 AM, Mark Knecht markkne...@gmail.com wrote:
 What is the solution to begin able to paste code I find on the web
 into a file in vim and being able to keep the indentation from
 changing?

 For instance, here's the first few lines of code from a web page:

 #define ARRAYSIZE(x)  (sizeof(x)/sizeof(*(x)))

 int main(void)
 {
   const char filename[] = file.csv;
   /*
    * Open the file.
    */

 The indentation on the code from const down is consistently 3 spaces:


 Pasted into vi:

 #define ARRAYSIZE(x)  (sizeof(x)/sizeof(*(x)))

 int main(void)
 {
   const char filename[] = file.csv;
      /*
          * Open the file.
              */

 In this case const is correct, but the next line is 6 spaces, then 9
 spaces, then 12 spaces.

 If it matters, I'm using KDE using Konsole, but I've seen this in
 other WMs. I looked at the Tab settings in my Konsole profile but
 nothing seems to matter.

 Thanks,
 Mark


I solved it by creating a .vimrc file and putting

set pastetoggle=F2

in it. Now I hit F2, vim says (paste), I do the paste and it works nicely.

- Mark



Re: [gentoo-user] [OT] - Code translation tools?

2011-01-26 Thread Mark Knecht
On Tue, Jan 25, 2011 at 5:15 PM, Michael Orlitzky mich...@orlitzky.com wrote:
 On 01/24/2011 05:34 PM, Mark Knecht wrote:
 Hello,
    I'm wondering if there are any generic sorts of code translation
 tools in portage wherein I could translate from an 'uncommon' language
 no one here is likely to use (EasyLanguage) into C?

    As an example I've attached a little EL function that takes
 buy/sell command data an puts it away in an array for safe keeping.
 What tools are out there, if any, that might allow me to describe how
 EL works and then the tool does the conversion?

 Since no one else has given you the bad news, this is basically
 impossible if you care that the two programs behave the same.

 For any particular program, the best you can do is rewrite it by hand
 after creating a battery of unit tests. The alternative is to compile
 your source language to a common low-level language, and then decompile
 back to your target language.

 Unfortunately, unless your common low-level language is some sort of
 bytecode with additional metadata (you can translate between .NET
 languages for example), the output from the decompiler is going to look
 like garbage.

Michael,
   Thanks for the inputs. It gives me more to think about.

   In this case the input language is interpreted, not compiled. The
trading platform interprets the program and internally turns it into
buy  sell operations. (Not the piece of code I supplied - that was
just a small function.) Unfortunately, as the language is proprietary
to the trading platform there isn't a way to go to any common
low-level language.

   The 'battery of tests' would be, I think, the trading program being
executed on a certain market, producing a certainly list of buy  sell
operations and a specific gain or loss. It would be quite easy to
compare the outcome because it's nothing more than a list of trades.
If the translated code generates the same list then it works. If not,
I dig into why. This part of the task seems relatively straight
forward to me.

   I was mainly hoping to find a tool that might generate _reasonable_
C code, even if it's not perfect. If the C code compiles and runs then
I could determine what works, what doesn't, and start fixing things.
I'm not a C programmer and haven't touched that language in at least
15 years so anything that moves me forward would be helpful.

   Again, I do appreciate your inputs. If this extra info gives you
any new ideas please let me know.

Cheers,
Mark



Re: [gentoo-user] [OT] - Code translation tools?

2011-01-26 Thread Mark Knecht
On Wed, Jan 26, 2011 at 10:47 AM, Michael Orlitzky mich...@orlitzky.com wrote:
 On 01/26/2011 12:56 PM, Mark Knecht wrote:
 Michael,
    Thanks for the inputs. It gives me more to think about.

    In this case the input language is interpreted, not compiled. The
 trading platform interprets the program and internally turns it into
 buy  sell operations. (Not the piece of code I supplied - that was
 just a small function.) Unfortunately, as the language is proprietary
 to the trading platform there isn't a way to go to any common
 low-level language.

    The 'battery of tests' would be, I think, the trading program being
 executed on a certain market, producing a certainly list of buy  sell
 operations and a specific gain or loss. It would be quite easy to
 compare the outcome because it's nothing more than a list of trades.
 If the translated code generates the same list then it works. If not,
 I dig into why. This part of the task seems relatively straight
 forward to me.

    I was mainly hoping to find a tool that might generate _reasonable_
 C code, even if it's not perfect. If the C code compiles and runs then
 I could determine what works, what doesn't, and start fixing things.
 I'm not a C programmer and haven't touched that language in at least
 15 years so anything that moves me forward would be helpful.

    Again, I do appreciate your inputs. If this extra info gives you
 any new ideas please let me know.

 If you don't even have a common low-level language, what you're
 essentially doing is creating a compiler for EasyLanguage. Take a small
 example, adding two integers in E.L. I won't pretend to know the syntax,
 but let's just assume that you have two integers (or numbers or
 whatever) 'a' and 'b' declared.

 How do you translate a+b to C code? You can declare two ints 'a' and
 'b' in C, of course. But these are 32- or 64-bit integers. So if 'a' and
 'b' are large, a+b will overflow. Do EasyLanguage integers work that
 way? Probably not...

 How about a/b? Does EasyLanguage do integer division, or does it treat
 them like floats? If it does treat them like floats, do the rounding and
 precision agree with C floats? Probably not, so floats are out too.

 If you try to fix all of these problems, what you'll end up with is
 something like a struct EasyLanguageInteger {...} with associated
 functions add_easylanguage_integers, divide_easylanguage_integers, etc.
 Then, you can translate a+b into add_easylanguage_integers(a, b) where
 'a' and 'b' are now structs instead of just ints or floats.

 Then, you'll have to write a parser that understands the rules of
 precedence, looping constructs, functions, and everything else so that
 they can be converted into the appropriate structs and function calls.
 At the end, if it works, you'll have an EasyLanguage compiler.

 Without a spec (the language is proprietary?), you'd have to guess at
 most of that stuff anyway, so the chances you'd get it all right are
 about zero.

 Your best bet[1] is to create a ton of test data, and feed it to the
 E.L. program. Make sure the test data triggers any edge cases. Then you
 can attempt to rewrite the code in C, and compare the output. You as a
 human who understands what the code does can take a lot of shortcuts
 that a translator couldn't.


 [1] I'm assuming you want to do this for a relatively small number of
 programs, and that writing a compiler would not actually be less
 time-consuming.



OK - this is probably WAY too off topic for this list. If folks
strongly want me to stop the thread I will but I appreciate the
technical adeptness of folks on this list quite a lot and the eventual
outcome would be the use of this thing on Gentoo, so I hope folks
won't mind too much if we continue a little further.


REALLY great points about the math issues. Thanks.

As for testing it _may_ be a slight bit easier than having to get to
that level. There is a library in portage called ta-lib which
implements lots of standard technical analysis constructs. After it's
installed I don't seem to have the C code for the actual functions
anymore. What I have is a compiled library as well as some header
files to look at. I suspect I can install the library again using
portage bt not getting rid of the functions which I could then use as
an example for my coding.

I have not used this library myself, but I've read enough on the web
to be reasonably sure it's results are very consistent with what
TradeStation functions of the same type do.

For a simple function call like a moving average EasyLanguage would write:

Inputs:
Price(Close),
Length(10)
;
variable:
MA1(0)
;

MA1 = Average(Price,Length);

Here is what I see for a similar moving average function from ta-lib:

/*
 * TA_MA - Moving average
 *
 * Input  = double
 * Output = double
 *
 * Optional Parameters
 * ---
 * optInTimePeriod:(From 1 to 10)
 *Number of period
 *
 * optInMAType:
 *Type of Moving Average
 *
 *
 */
TA_RetCode TA_MA( int

Re: [gentoo-user] [OT] - Code translation tools?

2011-01-26 Thread Mark Knecht
On Wed, Jan 26, 2011 at 12:32 PM, Michael Orlitzky mich...@orlitzky.com wrote:
 On 01/26/2011 02:40 PM, Mark Knecht wrote:
SNIP
 As for testing it _may_ be a slight bit easier than having to get to
 that level. There is a library in portage called ta-lib which
 implements lots of standard technical analysis constructs. After it's
 installed I don't seem to have the C code for the actual functions
 anymore. What I have is a compiled library as well as some header
 files to look at. I suspect I can install the library again using
 portage bt not getting rid of the functions which I could then use as
 an example for my coding.

 Use FEATURES=noclean and the patched source will be left under
 /var/tmp/portage. The unpatched source is probably in your
 /usr/portage/distfiles already. (I don't know if there *are* any patches
 for ta-lib, but if there are, you usually want them applied).


Actually, the tar.gz file in distfiles was easily expanded and I found
the code within for all the functions. I hadn't considered patches but
fortunately there aren't any applied so it seems I get off lucky this
time.

SNIP

 If you can figure out what all those parameters mean -- that will be the
 hard part. What type of moving average is EasyLanguage doing? Which
 TA_MAType does it match up to? Can the E.L. version fail if it runs off
 the end of the prices array, or does it just add zeros at the end? Is
 there a way to make TA_MA do the same?

 Sorry I have nothing but discouragement to offer =) This isn't an easy
 problem.

I don't consider this discouragement at all. In fact it's _very_ helpful.

Documentation:

I've found this much:

Online at the following links:
http://ta-lib.org/d_api/d_api.html
http://ta-lib.org/function.html

I haven't yet found a nice PDF that tells me the exact meaning of
every parameter but I suspect it's out there somewhere. There's a
forum for the library where people ask questions. I just noticed
someone asking about writing documentation to be put in a Wiki so
there's something going on. I'm not overly worried about matching up
ta-lib functionality with what I use today in EL.

Functionality:

Software for real-time stock trading tends to be a little more
restrictive than more general programming

1) First, we are operating on price data that  has date  time
attached to every value. Think of a price chart for any stock. This
stuff (in general) just operates across time in a forward direction.

2) When doing a moving average, for example, we are calculating from
the current bar _backwards_. The only way to run off the end of the
array is to try to reference too far back, so a 20 period moving
average cannot be calculated before bar #20. As I go through a price
data array, I just start at the length parameter into the array N[20]
and keep going until the end.

The way I see this is there's an upper layer that reads the price data
in, puts it in an array and the calls the strategy bar-by-bar.
(row-by-row in the array) When it gets to the last bar of data (last
row with date and time) then it knows it's done. Pretty much all this
stuff seems to work that way.

At this point I feel like I've imposed on gentoo-user far too much. I
was hoping maybe there was some program in portage for doing
translations that might work but I guess there isn't. I'll let this
thread drift asleep unless someone responds back. I think I've got
enough info to sort of play around at this point, and I suspect my
next set of questions are better addressed at someplace like
StackOverflow as I can hardly program beyond Hello World at this
point! ;-)

Again, THANKS for your help and insights!

Anyone interested in this subject matter is always welcome to contact
me off-list.

Cheers,
Mark



Re: [gentoo-user] modifying iptables: how can I prevent locking me out?

2011-01-24 Thread Mark Knecht
On Mon, Jan 24, 2011 at 10:47 AM, Jarry mr.ja...@gmail.com wrote:
 Hi,

 I have to change rather complex iptables rules on server
 and I do not want to lock me out as this server is about
 50 miles away. So how should I do it?

 I can back up the old rules by running:
 /etc/init.d/iptables save
 and it will be saved to /var/lib/iptables/rules-save
 (some strange format starting with number like [536:119208])

 I prepared a script with new (modified) iptables-rules,
 which I will run in bash. But in case I screw something,
 how could I force netfilter to load old saved rules,
 if I for whatever reason do not connect to server (ssh)?

 Or can I load new iptables-rules for certain time, and
 then force netfilter to load back the old rules again?

 Jarry


Maybe a cron job that no matter what reloads the old rules 1 hour later?

- Mark



Re: [gentoo-user] modifying iptables: how can I prevent locking me out?

2011-01-24 Thread Mark Knecht
On Mon, Jan 24, 2011 at 11:06 AM, kashani kashani-l...@badapple.net wrote:
 On 1/24/2011 10:59 AM, Mark Knecht wrote:

 On Mon, Jan 24, 2011 at 10:47 AM, Jarrymr.ja...@gmail.com  wrote:

 Hi,

 I have to change rather complex iptables rules on server
 and I do not want to lock me out as this server is about
 50 miles away. So how should I do it?

 I can back up the old rules by running:
 /etc/init.d/iptables save
 and it will be saved to /var/lib/iptables/rules-save
 (some strange format starting with number like [536:119208])

 I prepared a script with new (modified) iptables-rules,
 which I will run in bash. But in case I screw something,
 how could I force netfilter to load old saved rules,
 if I for whatever reason do not connect to server (ssh)?

 Or can I load new iptables-rules for certain time, and
 then force netfilter to load back the old rules again?

 Jarry


 Maybe a cron job that no matter what reloads the old rules 1 hour later?

 - Mark


 Yep, that's the way I do it. I'd test that the cron works correctly
 beforehand. Nothing worse than locking yourself out *and* realizing your
 cron has a path issue.

 kashani

Maybe first add a rule that won't lock yourself out. Install the new
file, make sure the rule is there, then wait an hour. Make sure the
rule is gone. Make sure the cron logs show the work was done. Go
through a could of reboots and make sure the old rules (or new rules)
come up.

Once all that works going to the new, scary file should be lass scary.

- Mark



Re: [gentoo-user] modifying iptables: how can I prevent locking me out?

2011-01-24 Thread Mark Knecht
On Mon, Jan 24, 2011 at 1:50 PM, Neil Bothwick n...@digimed.co.uk wrote:
 On Mon, 24 Jan 2011 10:59:16 -0800, Mark Knecht wrote:

 Maybe a cron job that no matter what reloads the old rules 1 hour later?

 Wouldn't at make more sense? You don't want the thing to keep reloading
 your old config, at will do it once, and you can remove the task from the
 at queue once you successfully log back in.

 echo command to reload old rules | at now + 1 hour


 --
 Neil Bothwick

As a one-off test absolutely.

- Mark



Re: [gentoo-user] modifying iptables: how can I prevent locking me out?

2011-01-24 Thread Mark Knecht
On Mon, Jan 24, 2011 at 2:14 PM, Mark Knecht markkne...@gmail.com wrote:
 On Mon, Jan 24, 2011 at 1:50 PM, Neil Bothwick n...@digimed.co.uk wrote:
 On Mon, 24 Jan 2011 10:59:16 -0800, Mark Knecht wrote:

 Maybe a cron job that no matter what reloads the old rules 1 hour later?

 Wouldn't at make more sense? You don't want the thing to keep reloading
 your old config, at will do it once, and you can remove the task from the
 at queue once you successfully log back in.

 echo command to reload old rules | at now + 1 hour


 --
 Neil Bothwick

 As a one-off test absolutely.


Actually, upon 15 seconds of reflection, what happens if he's locked
out and there's a power failure before the at command executes? When
rebooted I think it won't be there anymore, will it?

- Mark



[gentoo-user] [OT] - Code translation tools?

2011-01-24 Thread Mark Knecht
Hello,
   I'm wondering if there are any generic sorts of code translation
tools in portage wherein I could translate from an 'uncommon' language
no one here is likely to use (EasyLanguage) into C?

   As an example I've attached a little EL function that takes
buy/sell command data an puts it away in an array for safe keeping.
What tools are out there, if any, that might allow me to describe how
EL works and then the tool does the conversion?

Thanks,
Mark


Inputs:
Array1[A1,AA1](NumericArrayRef),
EType(StringSimple),
EQty(NumericSimple),
ESPrice(NumericSimple),
ELPrice(NumericSimple),
MyDate(NumericSimple),
MyTime(NumericSimple)
;

Switch (EType)
Begin
Case Buy: Value1 = 1;
Case Sell:Value1 = 2;
Case SellShort:   Value1 = 3;
Case BuyToCover:  Value1 = 4;
End
;

If ((EQty = 1) and (ESPrice = 0) and (ELPrice = 0)) then //Implies Market order
Begin
Array1[Value1,1] = Value1-1;
Array1[Value1,2] = EQty;
Array1[Value1,7] = MyDate;
Array1[Value1,8] = MyTime;  
End
else if ((EQty = 1) and (ESPrice  0) and (ELPrice = 0)) then
//Implies Stop order
Begin
Array1[Value1,1] = Value1-1;
Array1[Value1,3] = EQty;
Array1[Value1,4] = ESPrice;
Array1[Value1,7] = MyDate;
Array1[Value1,8] = MyTime;
End
else if ((EQty = 1) and (ESPrice = 0) and (ELPrice  0)) then
//Implies Limit order
Begin
Array1[Value1,1] = Value1-1;
Array1[Value1,5] = EQty;
Array1[Value1,6] = ELPrice;
Array1[Value1,7] = MyDate;
Array1[Value1,8] = MyTime;
End 
;

MWK.ADE_SaveSysTraderTrades3_ = 0;



Re: [gentoo-user] Re: [OT] - Code translation tools?

2011-01-24 Thread Mark Knecht
On Mon, Jan 24, 2011 at 4:35 PM, walt w41...@gmail.com wrote:
 On 01/24/2011 02:34 PM, Mark Knecht wrote:

 Hello,
    I'm wondering if there are any generic sorts of code translation
 tools in portage wherein I could translate from an 'uncommon' language
 no one here is likely to use (EasyLanguage) into C?

    As an example I've attached a little EL function...

 Can't give you a real answer, but that code looks very much like Pascal.
 Reminds me of a misspent youth.


In 1983 I certainly wasn't a turbo user of Turbo Pascal either... ;-)

 Is there a definite reason for choosing C instead of something else, e.g.
 python?  Just idle curiosity, nothing more.


I'm interested in learning a bit about CUDA as an evaluation platform
and the tools from NVidia are based around C. (As best I understand.)

 If I knew a wee bit more about m4 I'm sure I could do it with that alone.
 But I'd need to do actual work to learn m4, which is not likely to happen...


Thanks!

- Mark



Re: [gentoo-user] Re: AHCI/IDE-question

2011-01-23 Thread Mark Knecht
On Sun, Jan 23, 2011 at 4:02 AM, Dale rdalek1...@gmail.com wrote:
 Mark Knecht wrote:

 On Sat, Jan 22, 2011 at 1:15 AM, Dalerdalek1...@gmail.com  wrote:
 SNIP


 Other than copying a file and using time to measure how long it takes,
 what is the best test of a hard drive's speed?


 By running a benchmark tool that does exactly this.  IOzone is a nice
 one:

  http://www.iozone.org

 It's in portage: app-benchmarks/iozone.


 I installed it but trying to figure out how to use it.  Jeez, what a man
 page.  O_O



 Yeah, it's a tough one. Also, very slow, assuming I understand it
 correctly. You have to use file sizes larger than the memory of the
 system, so on a 24GB system it takes (literally) a day or two to run.
 (Assuming I actually understood the man page!) ;-)

 - Mark




 I found this command and it worked pretty well.  It does take a good while
 to run tho.  It wasn't to bad on my new rig but the old rig did take a
 little while.

 iozone -R -l 5 -u 5 -r 4k -s 100m -F /home/f1 /home/f2 /home/f3 /home/f4
 /home/f5 | tee -a /tmp/iozone_results.txt 

 The results were much different than what hdparm shows.  It shows the
 3Gbs/sec like they advertise they can do.  I wonder which is more accurate?
  :/

 Dale

Hi Dale,
   Good command, but it's missing one parameter that will likely make
your results more meaningful. Try it again with the -e parameter
added. I'll limit the tests also to just the initial write and read
tests to give you something else to thiink about:

iozone -R -l 5 -u 5 -r 4k -s 100m -i 0 -i 1 -e -F /home/f1 /home/f2
/home/f3 /home/f4 /home/f5 | tee -a /tmp/iozone_results.txt 

   I'll be more than happy to explain later why I suggested the
changes, but in the spirit of someone's earlier comments about people
doing research, give some thought to the results you get and see if
you can explain to yourself why -e makes a difference. Do you believe
the results you get are meaningful?

   If you want another good experiment, remove -e and make the files
much larger, like 2g if you have an 8GB or DRAM. Again, explain to
yourself why this makes a difference. If you do this experiment you
_really_ should just do the -i 0 test only your first time through...
;-) (HINT: You might want to open another terminal, run top and when
in top hit iz and maybe m if you're not showing memory usage...)

Cheers,
Mark



Re: [gentoo-user] Identifying missing modules...

2011-01-23 Thread Mark Knecht
On Sun, Jan 23, 2011 at 10:08 AM,  meino.cra...@gmx.de wrote:

 Hi,

 when doing as root

    lspci -vk

 I get all pci devices and bus inhabitants listed.
 Additionally there are often two lines added to each
 device saying similiar things like:

        Kernel driver in use: XYZ
        Kernel modules: XYZ

 and there other devices do not have similiar entries.

 My question is: How can I distinguish devices/entities,
 which do not need any driver to work and those, which
 need a driver but in the current setup the driver wasn't
 compiled in/compiled as module?

 Thank you very much in advance for any help!
 Best regards,
 mcc

Devices that need a driver are listed as 'Kernel driver in use:'
whether the driver is compiled in or not.

Devices that have their driver compiled in do not have the line
'Kernel modules:'

Devices that have neither line are controlled by the kernel but don't
need anything from the driver section.

I suppose there is the possibility that lspci could find a PCI device
which hasn't had a driver selected as module or builtin and then not
show anything. In this case I expect that the device wouldn't
function.

Hope this helps,
Mark



Re: [gentoo-user] Re: AHCI/IDE-question

2011-01-22 Thread Mark Knecht
On Sat, Jan 22, 2011 at 1:15 AM, Dale rdalek1...@gmail.com wrote:
SNIP
 Other than copying a file and using time to measure how long it takes,
 what is the best test of a hard drive's speed?

 By running a benchmark tool that does exactly this.  IOzone is a nice one:

  http://www.iozone.org

 It's in portage: app-benchmarks/iozone.

 I installed it but trying to figure out how to use it.  Jeez, what a man
 page.  O_O


Yeah, it's a tough one. Also, very slow, assuming I understand it
correctly. You have to use file sizes larger than the memory of the
system, so on a 24GB system it takes (literally) a day or two to run.
(Assuming I actually understood the man page!) ;-)

- Mark



<    7   8   9   10   11   12   13   14   15   16   >