Re: [gentoo-user] Running xsane

2010-02-15 Thread J. Roeleveld
On Monday 15 February 2010 00:34:42 CJoeB wrote:
 Hi everyone,
 
 I have purchased an HP C4795 Photosmart All-in-One printer, scanner and
 copier.  I have gotten the printer to work fine after installing the
 unstable version of hplip.  The copy mechanism works also.  However, I
 am having trouble with the scanner.  I again have installed unstable
 versions (i.e. ~x86) versions of sane-backends and xsane).  If I run
 xsane as root, the scanner is recognized.  However, if I run xsane as a
 normal user, the device is not recognized.  I can't seem to figure out
 what to change to rectify this - I've tried changing the owner and group
 on the xsane executable, but this didn't work.  The permissions for the
 xsane executable seem fine.  I have added myself to the scanner group,
 but this doesn't seem to have any affect.  Also, despite the fact that
 the device can be set up wirelessly, I have not done this - I have the
 unit connected to my computer via USB cable.
 
 Any of you gurus have any ideas?

Hi Colleen,

I also have one of those All-In-One printers.
To get it to work, I added the saned user to the following groups:
- lp
- usb
- scanner

I'm not sure, but I think usb is sufficient for the scanner, but with these, 
it works on my system.

--
Joost



Re: [gentoo-user] Running xsane

2010-02-15 Thread Neil Bothwick
On Sun, 14 Feb 2010 18:34:42 -0500, CJoeB wrote:

 I have purchased an HP C4795 Photosmart All-in-One printer, scanner and
 copier.  I have gotten the printer to work fine after installing the
 unstable version of hplip.  The copy mechanism works also.  However, I
 am having trouble with the scanner.  I again have installed unstable
 versions (i.e. ~x86) versions of sane-backends and xsane).  If I run
 xsane as root, the scanner is recognized.  However, if I run xsane as a
 normal user, the device is not recognized.

Your scanner's dev node has can only be read by root, the easiest way to
fix this is with a udev rule, as the node name changes each time you
connect the scanner. This rule works for me, I'm in the canner group,
just change the product and manufacturer strings to match

SYSFS{product}==CanoScan, SYSFS{manufacturer}==Canon, GROUP:=scanner, 
MODE:=0660


-- 
Neil Bothwick

When told the reason for Daylight Saving time the old Indian said...
Only a white man would believe that you could cut a foot off the top of a
blanket And sew it to the bottom of a blanket and have a longer blanket.



signature.asc
Description: PGP signature


Re: [gentoo-user] How the HAL are you supposed to use these files?

2010-02-15 Thread J. Roeleveld
On Sunday 14 February 2010 15:27:45 Enrico Weigelt wrote:
 Neil Bothwick wrote:
snipped 
 
 And *IF* some application is interested in the such information,
 why not just using the filesystem ?

Because on flash-drives (Which are used in small devices and netbooks) you 
don't want every single status update to be written to the filesystem.
And with minimal memory, I don't want to have a ram-disk gobbling up the 
memory I have.

A simple message passed to apps which are listening is much better. It's 
short-lived and only uses (minimal) resources when the message is broadcast. 
After that, it doesn't linger, unless I am running an app that stores these 
messages somewhere. (Probably a debugger)

--
Joost



[gentoo-user] /etc/conf.d/net tries to do too much

2010-02-15 Thread Grant
I configured my laptop as a wireless AP with hostapd.  It works great
as long as I 'ifconfig wlan0 192.168.1.1'.  I can have
/etc/init.d/net.wlan0 started automatically with hostapd, but I can't
come up with an /etc/conf.d/net config that will work.  It always
fails by saying it can't set master mode or other parameters.  I think
hostapd is supposed to handle all of that except the IP configuration,
but /etc/conf.d/net wants to do more than just the IP configuration.
Does anyone know the right way to handle this?

- Grant



Re: [gentoo-user] How the HAL are you supposed to use these files?

2010-02-15 Thread Enrico Weigelt
J. Roeleveld wrote:

 And *IF* some application is interested in the such information,
 why not just using the filesystem ?
 
 Because on flash-drives (Which are used in small devices and netbooks) you 
 don't want every single status update to be written to the filesystem.
 And with minimal memory, I don't want to have a ram-disk gobbling up the 
 memory I have.

Why not simply using tmpfs ?
Or an specific synthetic filesystem ? 9P makes this really easy,
and network agnostic.


cu
-- 
--
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 cellphone: +49 174 7066481   email: i...@metux.de   skype: nekrad666
--
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
--




[gentoo-user] nfs-utils broken on ~amd64?

2010-02-15 Thread walt

Anyone else having problems mounting nfs shares with nfs-utils-1.2.1?

'mount.nfs' complains I'm passing it a bad nfs option no matter what
options I give it, including no options.

Strace shows that nfs.mount is passing a weird-looking IP address
string to the 'mount' system call (man 2 mount), e.g.:

mount(k2:/media/d, /mnt/nfs, nfs, 0, 
addr=192.168.0.100,vers=4,client...) = -1 EINVAL
  ^^

When I revert back to nfs-utils-1.1.4-r1 the IP address string is
back to normal and the mount works correctly, e.g.:

mount(k2:/media/d, /mnt/nfs, nfs, 0, addr=192.168.0.100) = 0

Something is tacking on those extra chars after the IP address, but
I'm not sure yet where that string is actually generated.

Any ideas?




Re: [gentoo-user] How the HAL are you supposed to use these files?

2010-02-15 Thread Mike Edenfield

On 2/15/2010 2:20 PM, Enrico Weigelt wrote:

J. Roeleveld wrote:


And *IF* some application is interested in the such information,
why not just using the filesystem ?


Because on flash-drives (Which are used in small devices and netbooks) you
don't want every single status update to be written to the filesystem.
And with minimal memory, I don't want to have a ram-disk gobbling up the
memory I have.


Why not simply using tmpfs ?
Or an specific synthetic filesystem ? 9P makes this really easy,
and network agnostic.


I'm kinda stunned that your arguments against D-Bus seems to boil down 
to just use 9p instead given that plumber is a basic element of 9p and 
does essentially the same job D-Bus does.  So you're just swapping one 
system-wide general-purpose IPC service out for another one?




Re: [gentoo-user] nfs-utils broken on ~amd64?

2010-02-15 Thread Alan McKinnon
On Monday 15 February 2010 21:23:54 walt wrote:
 Anyone else having problems mounting nfs shares with nfs-utils-1.2.1?
 
 'mount.nfs' complains I'm passing it a bad nfs option no matter what
 options I give it, including no options.
 
 Strace shows that nfs.mount is passing a weird-looking IP address
 string to the 'mount' system call (man 2 mount), e.g.:
 
 mount(k2:/media/d, /mnt/nfs, nfs, 0,
 addr=192.168.0.100,vers=4,client...) = -1 EINVAL 


At first glance I suspect you have nfs v4 support and the server does not like 
it. 

The USE flag changed at 1.1.6-r1 from nonfsv4 to nfsv4 so if you did not 
change USE you will get the exact opposite support between the earliest and 
most recent version in portage.

pet hate
Don't you just hate negative USE flags on the lines of no* ? You have to 
switch then on to not get something. Far better to have a positive flag and 
enable it by default in the profile. Not to mention the confusion that 
changing it later causes, witness this case here.





 ^^
 
 When I revert back to nfs-utils-1.1.4-r1 the IP address string is
 back to normal and the mount works correctly, e.g.:
 
 mount(k2:/media/d, /mnt/nfs, nfs, 0, addr=192.168.0.100) = 0
 
 Something is tacking on those extra chars after the IP address, but
 I'm not sure yet where that string is actually generated.
 
 Any ideas?

-- 
alan dot mckinnon at gmail dot com



[gentoo-user] pdfimages

2010-02-15 Thread Hung Dang
Hi all,

I could not find poppler-utils package which has pdfimages command. Does
anyone know which package I should install to have pdfimages installed?

Thanks in advance
Hung


Re: [gentoo-user] pdfimages

2010-02-15 Thread Alan McKinnon
On Monday 15 February 2010 23:09:22 Hung Dang wrote:
 Hi all,
 
 I could not find poppler-utils package which has pdfimages command. Does
 anyone know which package I should install to have pdfimages installed?
 
 Thanks in advance
 Hung


It's part of poppler now, and things have been re-organized there yet again 
for the umpteenth time)

$ equery belongs /usr/bin/pdfimages
 * Searching for /usr/bin/pdfimages ...
app-text/poppler-0.12.3-r3 (/usr/bin/pdfimages)



-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] pdfimages

2010-02-15 Thread Boris Fersing
Hi,

emerge app-text/poppler

regards,

Boris

On Mon, Feb 15, 2010 at 22:09, Hung Dang hungp...@gmail.com wrote:
 Hi all,

 I could not find poppler-utils package which has pdfimages command. Does
 anyone know which package I should install to have pdfimages installed?

 Thanks in advance
 Hung





-- 
42



Re: [gentoo-user] pdfimages

2010-02-15 Thread Hung Dang
Hi Boris and Alan,

Thanks a lot for your quick reply. I have installed poppler and I could be
able to use pdfimages now.

Regards,
Hung

On Mon, Feb 15, 2010 at 3:04 PM, Boris Fersing kernelsen...@gentoo.orgwrote:

 Hi,

 emerge app-text/poppler

 regards,

 Boris

 On Mon, Feb 15, 2010 at 22:09, Hung Dang hungp...@gmail.com wrote:
  Hi all,
 
  I could not find poppler-utils package which has pdfimages command. Does
  anyone know which package I should install to have pdfimages installed?
 
  Thanks in advance
  Hung
 
 



 --
 42




-- 
Hung Dang
New Mexico State University


Re: [gentoo-user] nfs-utils broken on ~amd64?

2010-02-15 Thread Neil Bothwick
On Mon, 15 Feb 2010 22:28:08 +0200, Alan McKinnon wrote:

 The USE flag changed at 1.1.6-r1 from nonfsv4 to nfsv4 so if you did
 not change USE you will get the exact opposite support between the
 earliest and most recent version in portage.
 
 pet hate
 Don't you just hate negative USE flags on the lines of no* ? You have
 to switch then on to not get something. Far better to have a positive
 flag and enable it by default in the profile. Not to mention the
 confusion that changing it later causes, witness this case here.

Yes, but it's changing now. The reason the ebuild has changed from nonfs4
to nfs4 is that it is now possible to turn the flag on by default in the
ebuild, which is particularly useful for local flags that can't be set in
a profile.


-- 
Neil Bothwick

You have the capacity to learn from mistakes. You'll learn a lot today.


signature.asc
Description: PGP signature


Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? - bar performance so far

2010-02-15 Thread Frank Steinmetzger

Am Montag, 15. Februar 2010 schrieb Willie Wong:
 On Mon, Feb 15, 2010 at 01:48:01AM +0100, Frank Steinmetzger wrote:
  Sorry if I reheat a topic that some already consider closed. I used the
  weekend to experiment on that stuff and need to report my results.
  Because they startle me a little.
  [...]
 Instead of guessing using this rather imprecise metric, why not just
 look up the serial number of your drive and see what the physical
 sector size is?

Well, at differences of 50%, precision is of no relevance anymore.
Also, I already did look it up and it didn’t turn up any conclusive results. 
Just search hits from fdisk output of people who are partitioning the drive. 
So the only thing I can think of yet is to call Samsung’s expensive hotline. 
Hm... oh well, perhaps I could write an e-mail, because I’m too niggard and 
phonophobe to make a call. ^^

 If you don't want to open your box, you can usually 
 get the information from dmesg.

I put the drive in myself after I bought it at
http://www.alternate.de/html/product/Festplatten_2,5_Zoll_SATA/Samsung/HM500JI_500_GB/342736/?showTecData=true
But they don’t show much information either. :-/
I don’t suppose it’s written on the disk’s label? I don’t wanna loosen those 
screws too often, because the windings tend to wear out quickly.
-- 
Gruß | Greetings | Qapla'
I guess irony can be pretty ironic sometimes.


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


Re: [gentoo-user] How the HAL are you supposed to use these files?

2010-02-15 Thread Volker Armin Hemmann
On Montag 15 Februar 2010, Mike Edenfield wrote:
 On 2/15/2010 2:20 PM, Enrico Weigelt wrote:
  J. Roeleveld wrote:
  And *IF* some application is interested in the such information,
  why not just using the filesystem ?
  
  Because on flash-drives (Which are used in small devices and netbooks)
  you don't want every single status update to be written to the
  filesystem. And with minimal memory, I don't want to have a ram-disk
  gobbling up the memory I have.
  
  Why not simply using tmpfs ?
  Or an specific synthetic filesystem ? 9P makes this really easy,
  and network agnostic.
 
 I'm kinda stunned that your arguments against D-Bus seems to boil down
 to just use 9p instead given that plumber is a basic element of 9p and
 does essentially the same job D-Bus does.  So you're just swapping one
 system-wide general-purpose IPC service out for another one?

he is just trolling around.



Re: [gentoo-user] Dual booting Dell with Windows 7

2010-02-15 Thread Mick
On Saturday 13 February 2010 17:13:51 Willie Wong wrote:
 On Sat, Feb 13, 2010 at 03:09:35PM +, Mick wrote:
  I bought a Dell XPS laptop which seems to have 3 primary partitions.  The
  third partition is where Windows 7 resides, while the second partition is
  flagged as bootable.  The first partition contains some Dell (recovery)
  tools. I am lead to believe that the second partition is the back up
  partition and is meant to be used to restore the OS in the third
  partition.  This confuses me a bit - shouldn't the third partition which
  houses the OS be flagged as bootable instead?
 
 Take a look at this
 http://lifehacker.com/5403100/dual+boot-windows-7-and-ubuntu-in-perfect-har
 mony Apparently you can now re-size online partitions with Windows 7
  itself.
 
 Google also suggests you can chainload Windows 7 in the usual way using
 grub.

Thank you both for your replies.  If I were to choose GRUB to chainload W7 
what should I point it to?  Dell's partition 2 which has the boot flag, or the 
main W7 OS partition 3?

If I were to use W7's NTLDR equivalent - whatever this technology might be - 
will I be able to chainload GRUB from it?
-- 
Regards,
Mick


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


Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? - bar performance so far

2010-02-15 Thread Alex Schuster
Frank Steinmetzger writes:

 Am Montag, 15. Februar 2010 schrieb Willie Wong:

  Instead of guessing using this rather imprecise metric, why not just
  look up the serial number of your drive and see what the physical
  sector size is?
 
 Well, at differences of 50%, precision is of no relevance anymore.
 Also, I already did look it up and it didn’t turn up any conclusive
 results. Just search hits from fdisk output of people who are
 partitioning the drive. So the only thing I can think of yet is to
 call Samsung’s expensive hotline. Hm... oh well, perhaps I could write
 an e-mail, because I’m too niggard and phonophobe to make a call. ^^

No need for either, just look up the drive on Samsung's homepage [*]. It's 
512 bytes/sector, you should be fine.

Wonko

[*]http://www.samsung.com/global/business/hdd/productmodel.do?group=72type=94subtype=99model_cd=446



[gentoo-user] Re: nfs-utils broken on ~amd64?

2010-02-15 Thread walt

On 02/15/2010 12:28 PM, Alan McKinnon wrote:

On Monday 15 February 2010 21:23:54 walt wrote:

Anyone else having problems mounting nfs shares with nfs-utils-1.2.1?

'mount.nfs' complains I'm passing it a bad nfs option no matter what
options I give it, including no options.

Strace shows that nfs.mount is passing a weird-looking IP address
string to the 'mount' system call (man 2 mount), e.g.:

mount(k2:/media/d, /mnt/nfs, nfs, 0,
addr=192.168.0.100,vers=4,client...) = -1 EINVAL



At first glance I suspect you have nfs v4 support and the server does not like
it.

The USE flag changed at 1.1.6-r1 from nonfsv4 to nfsv4 so if you did not
change USE you will get the exact opposite support between the earliest and
most recent version in portage.

pet hate
Don't you just hate negative USE flags on the lines of no* ? You have to
switch then on to not get something. Far better to have a positive flag and
enable it by default in the profile. Not to mention the confusion that
changing it later causes, witness this case here.


I did not include nfs4 in my kernel because it was marked 'experimental'.
(Hey, just because I choose to run ~amd64 doesn't mean I'm reckless ;o)

I set the 'nonfsv4' USE flag and recompiled nfs-utils but got exactly the
same error.

The next step is to build a new kernel with nfs4 support and unset the
'nonfsv4' flag, but at the moment I'm running a ver-r-r-y long partition
resize with gparted so that I can add more space to my experimental lvm2
volumes.  (Working great so far.)  I think I'll fall asleep before gparted
is finished, so I'll supply more information tomorrow.




Re: [gentoo-user] Re: nfs-utils broken on ~amd64?

2010-02-15 Thread Keith Dart
=== On Mon, 02/15, walt wrote: ===
 The next step is to build a new kernel with nfs4 support and unset the
 'nonfsv4' flag, but at the moment I'm running a ver-r-r-y long
 partition resize with gparted so that I can add more space to my
 experimental lvm2 volumes.  (Working great so far.)  I think I'll
 fall asleep before gparted is finished, so I'll supply more
 information tomorrow.
===

I had this problem. My solution was to have an fstab line like this:

server:/mnt/vol1/home/home  /althome nfsnfsvers=3   
0 0

Note the nfsvers option.



-- Keith Dart

-- 

-- ~
   Keith Dart ke...@dartworks.biz
   public key: ID: 19017044
   http://www.dartworks.biz/
   =



[gentoo-user] Which packages did I unmerge?

2010-02-15 Thread Grant
Is there any way to find out which packages I unmerged today with
depclean?  I thought they would show up in /var/log/portage but
apparently not.  I'm getting a wireless card DMA error since unmerging
them.

- Grant



Re: [gentoo-user] Which packages did I unmerge?

2010-02-15 Thread Alan McKinnon
On Tuesday 16 February 2010 09:20:15 Grant wrote:
 Is there any way to find out which packages I unmerged today with
 depclean?  I thought they would show up in /var/log/portage but
 apparently not.  I'm getting a wireless card DMA error since unmerging
 them.
 
 - Grant


app-portage/genlop



-- 
alan dot mckinnon at gmail dot com