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

2011-02-27 Thread Mick
On Saturday 26 February 2011 23:21:32 Jesús J. Guerrero Botella wrote:
 2011/2/26 Mick michaelkintz...@gmail.com:
  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?
 
 Can you post emerge --info?

Here it is:

# emerge --info
Portage 2.1.9.25 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.11.2-
r3, 2.6.36-gentoo-r5 x86_64)
=
System uname: Linux-2.6.36-gentoo-r5-x86_64-Intel-R-_Core-TM-
_i7_CPU_Q_720_@_1.60GHz-with-gentoo-1.12.14
Timestamp of tree: Sat, 26 Feb 2011 07:15:01 +
ccache version 2.4 [enabled]
app-shells/bash: 4.1_p9
dev-lang/python: 2.6.6-r1, 3.1.2-r4
dev-util/ccache: 2.4-r9
dev-util/cmake:  2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:   4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:  3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS=amd64
ACCEPT_LICENSE=* -@EULA AdobeFlash-10.1
CBUILD=x86_64-pc-linux-gnu
CFLAGS=-march=core2 -msse4 -mcx16 -msahf -O2 -pipe
CHOST=x86_64-pc-linux-gnu
CONFIG_PROTECT=/etc /usr/share/config /usr/share/gnupg/qualified.txt
CONFIG_PROTECT_MASK=/etc/ca-certificates.conf /etc/env.d 
/etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d 
/etc/terminfo
CXXFLAGS=-march=core2 -msse4 -mcx16 -msahf -O2 -pipe
DISTDIR=/usr/portage/distfiles
FEATURES=assume-digests binpkg-logs ccache distlocks fail-clean fixlafiles 
fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-
features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox
GENTOO_MIRRORS=http://10.10.10.5:1024/ http://gentoo.virginmedia.com/ 
http://gentoo.tiscali.nl/ http://de-mirror.org/distro/gentoo/ 
http://gentoo.mneisen.org/ http://mirror.mdfnet.se/mirror/gentoo 
http://gentoo.wheel.sk/ http://gentoo.mirror.pw.edu.pl/;
LANG=en_GB.UTF-8
LDFLAGS=-Wl,-O1 -Wl,--as-needed
LINGUAS=en_GB en
MAKEOPTS=-j9
PKGDIR=/usr/portage/packages
PORTAGE_CONFIGROOT=/
PORTAGE_RSYNC_OPTS=--recursive --links --safe-links --perms --times --
compress --force --whole-file --delete --stats --timeout=180 --
exclude=/distfiles --exclude=/local --exclude=/packages
PORTAGE_TMPDIR=/var/tmp
PORTDIR=/usr/portage
PORTDIR_OVERLAY=/var/lib/layman/enlightenment /usr/local/portage
SYNC=rsync://10.10.10.5/gentoo-portage
USE=X a52 aac acl acpi alsa amd64 amr berkdb bluetooth branding bzip2 cairo 
cdda cddb cdparanoia cdr chroot cli consolekit cracklib crypt css cups cxx 
dbus dell dri dts dvd dvdr emboss encode exif faac fam firefox flac fortran 
fts3 gdbm gdu gif gnutls gpm hddtemp hpijs iconv imagemagick ipv6 irda jpeg 
kde lcms ldap libnotify libv4l2 live lm_sensors logrotate mad mikmod mmx 
mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses network-cron new-
hpcups nls nodrm nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf 
perl png policykit ppds pppd python qt3support qt4 quicktime readline redland 
rtmp sdl semantic-desktop session shout smime spell sqlite sse sse2 ssl ssse3 
startup-notification svg sysfs tcpd tiff truetype udev unicode usb v4l2 vaapi 
vorbis wps x264 xcb xml xorg xulrunner xv xvid xvmc zip zlib 
ALSA_CARDS=ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x 
ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 
trident usb-audio via82xx via82xx-modem ymfpci ALSA_PCM_PLUGINS=adpcm alaw 
asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa 
lfloat linear meter mmap_emul mulaw multi null plug rate route share shm 
softvol APACHE2_MODULES=actions alias auth_basic authn_alias authn_anon 
authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile 
authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock 
deflate dir disk_cache env expires ext_filter file_cache filter headers 
include info log_config logio mem_cache mime mime_magic negotiation rewrite 
setenvif speling status unique_id userdir usertrack vhost_alias 
CAMERAS=ptp2 COLLECTD_PLUGINS=df interface irq load memory rrdtool swap 
syslog ELIBC=glibc GPSD_PROTOCOLS=ashtech aivdm earthmate evermore fv18 
garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle 
oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx 
INPUT_DEVICES=synaptics evdev KERNEL=linux LCD_DEVICES=bayrad cfontz 
cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text LINGUAS=en_GB en 
PHP_TARGETS=php5-3 RUBY_TARGETS=ruby18 USERLAND=GNU VIDEO_CARDS=radeon 

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

2011-02-27 Thread Volker Armin Hemmann
On Friday 25 February 2011 18:24:50 Dale wrote:
 Volker Armin Hemmann wrote:
  let memtest86 run - for 12h.
  increase ram voltage - a bit. Like 0.01V.
  get a different psu.
 
 12 hours? 

you are right. 24h is better.



Re: [gentoo-user] Problem with /devcdrom /dev/sro

2011-02-27 Thread Jacques Montier
Le 26/02/2011 13:11, Volker Armin Hemmann a écrit :
 On Saturday 26 February 2011 13:03:00 Roger Cahn wrote:
 Hi,

 Since I have installed kernel amd64 I have nomore
 cdrom and sr0 in /dev
 Here is my emerge --info:
 which is useless. dmesg and kernel config would be much more helpfull. 
 Especially the scsi part of kernel config. Stuff like cdrom support.


Hi everybody,

I encounter the same problem with x86 system (Everything is ok on my
second x86_64 PC).
I didn't change anything in kernel configuration and recently,
/dev/cdrom and /dev/sr0 disappeared.
So, i can't mount any cdrom, but surprisingly, i can burn or erase a RW
dvdrom with Brasero...
dmesg does not show any error message before or after inserting cdrom or
dvdrom.

# dmesg | grep cdrom
#cdrom: Uniform CD-ROM driver Revision: 3.20

# dmesg | grep sr0
#


I don't use hal (-hal in make.conf)


My kernel configuration :

# SCSI device support
CONFIG_SCSI_MOD=y
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
CONFIG_SCSI_TGT=y
CONFIG_SCSI_NETLINK=y
CONFIG_SCSI_PROC_FS=y
# SCSI support type (disk, tape, CD-ROM)
# CONFIG_SCSI_ENCLOSURE is not set
CONFIG_SCSI_MULTI_LUN=y
CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_LOGGING=y
# CONFIG_SCSI_SCAN_ASYNC is not set
CONFIG_SCSI_WAIT_SCAN=m
# SCSI Transports
CONFIG_SCSI_SPI_ATTRS=m
CONFIG_SCSI_FC_ATTRS=m
# CONFIG_SCSI_FC_TGT_ATTRS is not set
CONFIG_SCSI_ISCSI_ATTRS=m
# CONFIG_SCSI_SAS_ATTRS is not set
# CONFIG_SCSI_SAS_LIBSAS is not set
# CONFIG_SCSI_SRP_ATTRS is not set
CONFIG_SCSI_LOWLEVEL=y



# CD-ROM/DVD Filesystems
#
CONFIG_ISO9660_FS=y
CONFIG_JOLIET=y
# CONFIG_ZISOFS is not set


Thank you very much for your help,

Best regards

--
Jacques





Re: [gentoo-user] automounting usb drives

2011-02-27 Thread luis jure
on 2011-02-27 at 10:20 Duong Yang Ha Nguyen wrote:

Hal is deprecated.  Try avoiding it as much as possible.

that's what i'm doing, for sure!



Re: [gentoo-user] Search filesystem with a wildcard

2011-02-27 Thread Willie Wong
On Sun, Feb 27, 2011 at 06:52:36AM +, Stroller wrote:
 AIUI using `find /my/folder -name foo*.txt` (i.e. unquoted) the shell will 
 pass the * to find if it can't expand it itself.

Not necessarily true. 

On bash if you set the 'nullglob' option, if the shell can't find the
file the word will be removed. If you set the 'failglob' character,
the command will quit with an error if the shell can't complete the
path expansion. 

I expect there to be similar options in other shells. 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] automounting usb drives

2011-02-27 Thread Stéphane Guedon
On Sunday 27 February 2011 12:13:21 luis jure wrote:
 on 2011-02-27 at 10:20 Duong Yang Ha Nguyen wrote:
 Hal is deprecated.  Try avoiding it as much as possible.
 
 that's what i'm doing, for sure!

I have read all the discussion, and, unfortunately, I can't help you Luis.
But I am asking the way to assign mountpoint like hal did.

As it is said, Hal is deprecated. But it was easy to say when you plug 
6566-3243 flash drive, the mountpoint should be my_usbdisk.

Now, automounting works good and great for me with udev/udisks, no problem, 
except that I would like to have the same behavior : having my drives to the 
mount point I want (having good icons rather than just a usual folder icon 
would be a plus !).

I am right now on KDE 4.6, and so...

-- 
Stéphane Guedon
page web : http://www.22decembre.eu/
carte de visite : http://www.22decembre.eu/downloads/Stephane-Guedon.vcf
clé publique gpg : http://www.22decembre.eu/downloads/Stephane-Guedon.asc


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


[gentoo-user] Re: PDF: convert to grayscale

2011-02-27 Thread Nuno J. Silva
(Sorry for the late replies)

Matthew Summers quantumsumm...@gentoo.org writes:
 paul.hartman+gen...@gmail.com wrote:
 On Tue, Feb 8, 2011 at 7:50 AM, Nuno J. Silva nunojsi...@ist.utl.pt wrote:
 Does anyone know a tool (other than ghostscript) that is able to convert
 a PDF (or postscript) to grayscale?
[...]
 Use the GIMP, Luke. I have to do this all the time with forms and
 such. The GIMP imports PDF files nicely, and I usually print the file
 to PDF after I am done. Now, if you have a many page document, the
 GIMP will import each page as a layer which can make it a pain to have
 to manually print each layer as a separate pdf, but ya do what ya
 gotta do. I also like PDFShuffler for managing/mangling pdf files. Its
 in portage by the way.

GIMP will make it raster, and my goal was keeping it vectorial.

BTW, if you happen to, for some reason, convert pdf to raster
frequently, see ImageMagick's convert, which for some output formats (at
least png and jpeg) does a batch export of all pages (as separate
files). It will probably be handy when the PDF has many pages.

-- 
Nuno J. Silva
gopher://sdf-eu.org/1/users/njsg




Re: [gentoo-user] Re: automounting usb drives [SOLVED]

2011-02-27 Thread luis jure
on 2011-02-27 at 13:51 Paul Colquhoun wrote:

Hmmm.  equery b for  /etc/PolicyKit/PolicyKit.conf or
just /etc/PolicyKit doesn't return any packages on my system.

from what i could find on the web, it seems to me
that /etc/PolicyKit/PolicyKit.conf belongs to a deprecated policykit
package, superseded (at least on my system) by polkit, the configuration
files of which are under /etc/polkit-1

now, i found lots of examples on the web how to configure the old
PolicyKit.conf file to allow normal users mount usb devices, but it took
some time to find out how to configure the polkit files. here's what i
found, and it works:


/etc/polkit-1/localauthority.conf.d/50-localauthority.conf :

[Configuration]
AdminIdentities=unix-group:wheel 


/etc/polkit-1/localauthority/50-local.d/11-my-polkit-udisks.pkla

[udisks full access]
Identity=unix-user:your username
Action=org.freedesktop.udisks.*
ResultAny=yes

[http://forums.gentoo.org/viewtopic-t-858965-postdays-0-postorder-asc-start-25.html]

i guess that in the second file i could also use unix-group:wheel (or users
or whatever) instead of unix-user, but i'm the only one using this machine,
so it's just as well.

now automounting just works, without needing anything else, like udev
rules or additional automonting packages. 

PENDING ISSUE: on thunar (and xfce, the other file manager i occasionally
use) i can eject the drive but no umount it (i mean the ability to umount
the file system but not delete the mount point under /media)

a big thank you (und vielen dank) to everybody!

lj





[gentoo-user] Re: PDF: convert to grayscale

2011-02-27 Thread Nuno J. Silva
Paul Hartman paul.hartman+gen...@gmail.com writes:

 On Tue, Feb 8, 2011 at 7:50 AM, Nuno J. Silva nunojsi...@ist.utl.pt wrote:
 Does anyone know a tool (other than ghostscript) that is able to convert
 a PDF (or postscript) to grayscale?

 Ghostscript does this, but is unable to convert gradients and fills
 (they're replaced by bitmaps) which results in a too big file unless I
 drastically reduce quality.

 Are you the creator of the document and want to save the original as
 greyscale, or you want to convert an already existing PDF?

All I have are PDFs, without any original file.

 If the latter I think the easy way is to use ghostscript (pdf2ps) to
 render it as greyscale postscript. Then you could convert the PS back
 to PDF if you need to. But if you already tried that, then, I don't
 know...

From what I've been reading, it's always better to use pdftops (poppler)
because pdf2ps generates lower-level stuff and also converts fonts to
bitmap. But both ways, I'd end up doing the conversion in ghostscript,
and that's where the problem is.

-- 
Nuno J. Silva
gopher://sdf-eu.org/1/users/njsg




[gentoo-user] Re: PDF: convert to grayscale

2011-02-27 Thread Nuno J. Silva
Alex Schuster wo...@wonkology.org writes:

 Grant Edwards writes:

 On 2011-02-08, Nuno J. Silva nunojsi...@ist.utl.pt wrote:
  Does anyone know a tool (other than ghostscript) that is able to
  convert a PDF (or postscript) to grayscale?
  
  Ghostscript does this, but is unable to convert gradients and fills
  (they're replaced by bitmaps) which results in a too big file unless I
  drastically reduce quality.
 
 I don't understand what you're asking for.  What sort of output format
 do you want (raster, vector, ???)?

 I think he wants the same PDF as the original file. Only in grayscale.

Yeah, that's it. I ended up hacking the PDF to convert all RGB to
grayscale, but even if the result was the original without colors (what
I wanted), converting it to ghostscript made some text unreadable (white
on white), so it was clearly not a good idea to trust it to look the
same everywhere.

I gave up and used the color version.

 This is one method to do this, but it needs Acrobat 8 Professional:
 http://blog.gilbertconsulting.com/2007/05/convert-color-pdf-to-grayscale.html

Thanks for the link. Although I don't have Acrobat, if I ever happen to
get access to it I'll probably check that feature :-)

-- 
Nuno J. Silva
gopher://sdf-eu.org/1/users/njsg




Re: [gentoo-user] Problem with /devcdrom /dev/sro

2011-02-27 Thread Jacques Montier
Le 27/02/2011 11:32, Jacques Montier a écrit :
 Le 26/02/2011 13:11, Volker Armin Hemmann a écrit :
 On Saturday 26 February 2011 13:03:00 Roger Cahn wrote:
 Hi,

 Since I have installed kernel amd64 I have nomore
 cdrom and sr0 in /dev
 Here is my emerge --info:
 which is useless. dmesg and kernel config would be much more helpfull. 
 Especially the scsi part of kernel config. Stuff like cdrom support.

 Hi everybody,

 I encounter the same problem with x86 system (Everything is ok on my
 second x86_64 PC).
 I didn't change anything in kernel configuration and recently,
 /dev/cdrom and /dev/sr0 disappeared.
 So, i can't mount any cdrom, but surprisingly, i can burn or erase a RW
 dvdrom with Brasero...
 dmesg does not show any error message before or after inserting cdrom or
 dvdrom.

 # dmesg | grep cdrom
 #cdrom: Uniform CD-ROM driver Revision: 3.20

 # dmesg | grep sr0
 #


 I don't use hal (-hal in make.conf)


 My kernel configuration :

 # SCSI device support
 CONFIG_SCSI_MOD=y
 CONFIG_SCSI=y
 CONFIG_SCSI_DMA=y
 CONFIG_SCSI_TGT=y
 CONFIG_SCSI_NETLINK=y
 CONFIG_SCSI_PROC_FS=y
 # SCSI support type (disk, tape, CD-ROM)
 # CONFIG_SCSI_ENCLOSURE is not set
 CONFIG_SCSI_MULTI_LUN=y
 CONFIG_SCSI_CONSTANTS=y
 CONFIG_SCSI_LOGGING=y
 # CONFIG_SCSI_SCAN_ASYNC is not set
 CONFIG_SCSI_WAIT_SCAN=m
 # SCSI Transports
 CONFIG_SCSI_SPI_ATTRS=m
 CONFIG_SCSI_FC_ATTRS=m
 # CONFIG_SCSI_FC_TGT_ATTRS is not set
 CONFIG_SCSI_ISCSI_ATTRS=m
 # CONFIG_SCSI_SAS_ATTRS is not set
 # CONFIG_SCSI_SAS_LIBSAS is not set
 # CONFIG_SCSI_SRP_ATTRS is not set
 CONFIG_SCSI_LOWLEVEL=y



 # CD-ROM/DVD Filesystems
 #
 CONFIG_ISO9660_FS=y
 CONFIG_JOLIET=y
 # CONFIG_ZISOFS is not set


 Thank you very much for your help,

 Best regards

 --
 Jacques




Some info : when i run udevadm monitor --kernel, nothing happens when
inserting cdrom.
# udevadm monitor --kernel
monitor will print the received events for:
KERNEL - the kernel uevent


--
Jacques



Re: [gentoo-user] Problem with /devcdrom /dev/sro

2011-02-27 Thread Roger Cahn
Thank you Volker for your answer.

 dmesg and kernel config would be much more helpfull. 

dmesg | grep cdrom and grep sr0 didn't give any answer

 Especially the scsi part of kernel config. Stuff like cdrom support.

Here is my scsi config in the kernel:

  RAID Transport Class

-*- SCSI device support

  SCSI target support

[*] legacy /proc/scsi/ support

 *** SCSI support type (disk, tape, CD-ROM)***
 * SCSI disk support

  SCSI tape support

  SCSI OnStream SC-x0 tape support

* SCSI CDROM support

[*]   Enable vendor-specificextensions(forSCSICDROM)
  * SCSI generic support

  SCSI media changer support

Probe all LUNs on each SCSI device

[*] Verbose SCSI error reporting (kernel size+=12K)

SCSI logging facility

[ ] Asynchronous SCSI scanning

SCSI Transports  ---

[ ] SCSI low-level drivers  ---

[ ] PCMCIA SCSI adapter support  ---
  SCSI Device Handlers  ---

  OSD-Initiator library

I hope it will help you...and me   :-)
Roger




[gentoo-user] Xfce: shutdown and reboot normal users

2011-02-27 Thread luis jure


i'm posting this to the list in case it's of some use to somebody. 

trying to get automounting of usb drives working on xfce, as discussed on
a recent thread, i recompiled xfce4-session with policykit (polkit) and
consolekit. eventually this got me automounting working, but in the
process i lost the ability to shutdown or reboot the system from the exit
dialog in xfce. it seemed obvious that it was a permissions issue
involving polkit. searching the web i found instructions [*] that worked
for me: create the file /etc/polkit-1/localauthority/50-local.d/power.pkla
(the name isn't relevant as long as it's under that directory and has the
pkla extension) with this code:

[Local restart]
Identity=unix-group:wheel
Action=org.freedesktop.consolekit.system.restart
ResultAny=yes
ResultInactive=no
ResultActive=yes

[Local shutdown]
Identity=unix-group:wheel
Action=org.freedesktop.consolekit.system.stop
ResultAny=yes
ResultInactive=no
ResultActive=yes

[Local restart - multiple]
Identity=unix-group:wheel
Action=org.freedesktop.consolekit.system.restart-multiple-users
ResultAny=yes
ResultInactive=no
ResultActive=yes

[Local shutdown - multiple]
Identity=unix-group:wheel
Action=org.freedesktop.consolekit.system.stop-multiple-users
ResultAny=yes
ResultInactive=no
ResultActive=yes

you can change the Identity=unix-group:wheel line with a different group
or a unix-user. since i'm the only user here, this isn't relevant for me.

i hope this might be of some interest.

[*] here: https://wiki.archlinux.org/index.php/Xfce




Re: [gentoo-user] XDG_CONFIG_DIRS and XDG_DATA_DIRS env variables with E17

2011-02-27 Thread David W Noon
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sun, 27 Feb 2011 03:10:01 +0100, Mike Gilbert wrote about Re:
[gentoo-user] XDG_CONFIG_DIRS and XDG_DATA_DIRS env variables  with E17:

[snip]
Not quite; the 2 values are combined.

Yes, I noticed that later.  It solves a long-standing bug that affected
Evolution. See http://bugs.gentoo.org/show_bug.cgi?id=266018
- -- 
Regards,

Dave  [RLU #314465]
==
dwn...@ntlworld.com (David W Noon)
==
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk1qWMAACgkQRQ2Fs59Psv/qDACgmDxTbnlYpq5Bn919vh9+eLQz
XBIAoI2bS0i6AefiAivs4KTpa+jS0rD2
=AXEi
-END PGP SIGNATURE-


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] xorg-drivers for mouse and keyboard confusion

2011-02-27 Thread Mick
On Sunday 27 February 2011 14:33:55 you wrote:
 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.)

Thanks Mark, I do not have virtualbox on this laptop, so the drivers are not 
being pulled in because of it.


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.

I checked my world file and the only x11-drivers package I have in there is 
the radeon-ucode firmware package.

Anyway, I just remerged x11-base/xorg-drivers manually (rather than as part of 
updating world) and guess what? !  It does not try to pull in these two 
drivers any more:

# emerge -1aDv xorg-drivers

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

Calculating dependencies... done!
[ebuild   R   ] x11-base/xorg-drivers-1.9  INPUT_DEVICES=evdev synaptics -
acecad -aiptek -elographics -fpit -joystick -keyboard* -mouse* -penmount -
tslib -virtualbox -vmmouse -void -wacom VIDEO_CARDS=radeon -apm -ark -ast -
chips -cirrus -dummy -epson -fbdev -fglrx (-geode) -glint -i128 (-i740) (-
impact) -intel -mach64 -mga -neomagic (-newport) -nouveau -nv -nvidia -r128 -
rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb (-sunbw2) (-
suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident 
-tseng -v4l -vesa -via -virtualbox -vmware (-voodoo) (-xgi%) 0 kB


I guess that 'emerge -uaDv world' takes the current state of x11-base/xorg-
drivers (which in the past had been merged with INPUT_DEVICES containing both 
keyboard and mouse) as a higher priority than the current state of my 
INPUT_DEVICES in /etc/make.conf?

Either way, the solution must be therefore to remerge x11-base/xorg-drivers 
every time the content of INPUT_DEVICES is changed.

Thank you all for your help.  :)
-- 
Regards,
Mick


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


[gentoo-user] Dual Boot Partitions

2011-02-27 Thread dhk
I have a new laptop that I need to set up for dual booting.  As much as
I despise Microsoft, I have to use it for certain things.  Such as some
obscure peripherals, like my slide photo scanner, it doesn't support
Linux and TD Ameritrade's streaming Java tools don't work the same as on
Linux.  Until corporation's smarten up Microsoft will be a problem.

The setup for dual booting seem pretty straight forward.  Install
windows first, then Linux, and modify the boot loader.  However, I have
a couple of question and observations.

First, the observations.  I tried to partition my disk with fdisk the
way I wanted.  It had the usual Linux partitions and a partition that I
was going to use for Window 7.  I wanted to make this an LVM2 partition,
but that didn't work; I guess that was too ambitious.  Then I just made
it an ordinary static HPFS/NTFS partition on /dev/sda5.  When installing
Windows 7 it wouldn't install on that partition.  I deleted all the
partitions and just installed it on the first 50Gigs of the disk.

Second, the questions.  The Windows 7 install on the first 50Gigs of the
disk needed to created two partitions.  The first was a very small boot
partition that I increased to 128Megs, and the second is the rest of
Windows 7.  Now when I boot to the livecd to partition the rest of the
disk for Gentoo fdisk says Partition 1 does not end on a cylinder
boundary.  Is this a problem?  The other big question is:  what do I do
about the first partition in the partition table?  It is an HPFS/NTFS
partition and has been toggled bootable.  It also has some stuff in it
that looks like it's important to Windows:  a BOOTSECT.BAK file, a Boot
directory, a System Volume Information directory, and a bootmgr file.
Now for my Gentoo install, how and where do I make a /boot partition?
Do I replace the Windows 7 boot partition with /boot?  If so, what
happens to the contents?  or Do I make a /boot partition on /dev/sda3
and toggle the bootable flag there?

I apologize for the long story.  Thanks in advance for all the help.

dhk



Re: [gentoo-user] Problem with /devcdrom /dev/sro

2011-02-27 Thread Volker Armin Hemmann
On Sunday 27 February 2011 14:14:57 Roger Cahn wrote:
 Thank you Volker for your answer.
 
  dmesg and kernel config would be much more helpfull.
 
 dmesg | grep cdrom and grep sr0 didn't give any answer

complete dmesg would be nice nonetheless.


 
 * SCSI CDROM support
 
 [*]   Enable vendor-specificextensions(forSCSICDROM)
   * SCSI generic support
 

try that as module and reload it - what happens?




Re: [gentoo-user] XDG_CONFIG_DIRS and XDG_DATA_DIRS env variables with E17

2011-02-27 Thread Ian Lee
On 26/02/11 16:41, Mick wrote:
 Where are being these set?

 I currently have:

 $ echo $XDG_CONFIG_DIRS
 /etc/xdg

 $ echo $XDG_DATA_DIRS
 /usr/local/share:/usr/share

 I'm asking because although Enlightenment-17 picks up the kde menu from 
 there, 
 it does not seem to recognise the respective application icons.  If I set the 
 icons manually with absolute paths (e.g. 
 /usr/share/icons/oxygen/48x48/apps/knode.png, instead of the generic 
 knode.png) then I end up with duplicate menu entries for each application 
 when 
 I launch kde.
Go to settings-settings panel.

In the Look category find the Icon Theme option.

Set you icon theme to Oxygen.


For the duplicates:

Check ~/.local/share/applications/ 
You should find the .desktop files of the applications you changed to
absolute paths,
kde is probably picking up these and the system ones in
/usr/share/applications.
The ~/.local ones should not be needed





Re: [gentoo-user] Problem with /devcdrom /dev/sro

2011-02-27 Thread Pintér Tibor
On 02/26/2011 01:03 PM, Roger Cahn wrote:
 Hi,
 
 Since I have installed kernel amd64 I have nomore
 cdrom and sr0 in /dev

isnt it a pioneer sata device by any chance?

t



Re: [gentoo-user] Problem with /devcdrom /dev/sro

2011-02-27 Thread Roger Cahn

 complete dmesg would be nice nonetheless.

But in dmesg there are 1106 lines!
Would you like I send all or only a part of them?

 * SCSI CDROM support
 [*]   Enable vendor-specificextensions(forSCSICDROM)
   * SCSI generic support

 try that as module and reload it - what happens?

Nothing, bad luck!
Neither no cdrom nor sr0 in /dev





Re: [gentoo-user] Problem with /devcdrom /dev/sro

2011-02-27 Thread Roger Cahn

 isnt it a pioneer sata device by any chance?

No, it isn't.
Thanks for your answer
Roger




Re: [gentoo-user] Dual Boot Partitions

2011-02-27 Thread Petri Rosenström
On Sun, Feb 27, 2011 at 5:01 PM, dhk dhk...@optonline.net wrote:
 I have a new laptop that I need to set up for dual booting.  As much as
 I despise Microsoft, I have to use it for certain things.  Such as some
 obscure peripherals, like my slide photo scanner, it doesn't support
 Linux and TD Ameritrade's streaming Java tools don't work the same as on
 Linux.  Until corporation's smarten up Microsoft will be a problem.

 The setup for dual booting seem pretty straight forward.  Install
 windows first, then Linux, and modify the boot loader.  However, I have
 a couple of question and observations.

 First, the observations.  I tried to partition my disk with fdisk the
 way I wanted.  It had the usual Linux partitions and a partition that I
 was going to use for Window 7.  I wanted to make this an LVM2 partition,
 but that didn't work; I guess that was too ambitious.  Then I just made
 it an ordinary static HPFS/NTFS partition on /dev/sda5.  When installing
 Windows 7 it wouldn't install on that partition.  I deleted all the
 partitions and just installed it on the first 50Gigs of the disk.

 Second, the questions.  The Windows 7 install on the first 50Gigs of the
 disk needed to created two partitions.  The first was a very small boot
 partition that I increased to 128Megs, and the second is the rest of
 Windows 7.  Now when I boot to the livecd to partition the rest of the
 disk for Gentoo fdisk says Partition 1 does not end on a cylinder
 boundary.  Is this a problem?  The other big question is:  what do I do
Dunno, it might be that win7 changed the amount of heads/sectors that
could give that notice from fdisk. I would not be to worrified about
it (Installing windows would be more horrifying). If you have a
traditional hd then the worst thing I think might be that reads/writes
would be slower.

 about the first partition in the partition table?  It is an HPFS/NTFS
 partition and has been toggled bootable.  It also has some stuff in it
 that looks like it's important to Windows:  a BOOTSECT.BAK file, a Boot
 directory, a System Volume Information directory, and a bootmgr file.
 Now for my Gentoo install, how and where do I make a /boot partition?
 Do I replace the Windows 7 boot partition with /boot?  If so, what
 happens to the contents?  or Do I make a /boot partition on /dev/sda3
 and toggle the bootable flag there?

Something like that. You could install gentoo on one partition (I
don't recommend).

Just make partitions like you would do without windows. When you do
the grub-install script or by hand grub links the boot to the
partition where boot exists. You should not remove or change the
windows partitions or the data windows will probably brake when you
do.


 I apologize for the long story.  Thanks in advance for all the help.

 dhk



Some links with more information...
http://www.gentoo-wiki.info/HOWTO_Dual_boot
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1chap=10

Best regards
Petri Rosenström



[gentoo-user] How to turn off automounting usb drives

2011-02-27 Thread felix
I have the opposite problem from luis jure.  I do not mount drives
often, so I am not sure exactly when this problem started, but gentoo
is now automounting drives and I have never wanted that.  I run fvwm
with a lot of xterms, so it is not the window manager doing things for
me, it is something in the usb system.

My system is ~amd64 running the 2.6.37-gentoo-r1 kernel, and this
problem has been happening for a month or two; I thought at first it
was the usual gentoo temporary screwup, but it hasn't gone away.

Has some default usb policy changed?

-- 
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
 Felix Finch: scarecrow repairman  rocket surgeon / fe...@crowfix.com
  GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o



Re: [gentoo-user] automounting usb drives

2011-02-27 Thread Stéphane Guedon
On Sunday 27 February 2011 13:39:49 Stéphane Guedon wrote:
 On Sunday 27 February 2011 12:13:21 luis jure wrote:
  on 2011-02-27 at 10:20 Duong Yang Ha Nguyen wrote:
  Hal is deprecated.  Try avoiding it as much as possible.
  
  that's what i'm doing, for sure!
 
 I have read all the discussion, and, unfortunately, I can't help you Luis.
 But I am asking the way to assign mountpoint like hal did.
 
 As it is said, Hal is deprecated. But it was easy to say when you plug
 6566-3243 flash drive, the mountpoint should be my_usbdisk.
 
 Now, automounting works good and great for me with udev/udisks, no problem,
 except that I would like to have the same behavior : having my drives to
 the mount point I want (having good icons rather than just a usual folder
 icon would be a plus !).
 
 I am right now on KDE 4.6, and so...

solved using mlabel...
I needed to look upon ubuntu doc ! This is a little bit crap !

but thanks ! :-)

-- 
Stéphane Guedon
page web : http://www.22decembre.eu/
carte de visite : http://www.22decembre.eu/downloads/Stephane-Guedon.vcf
clé publique gpg : http://www.22decembre.eu/downloads/Stephane-Guedon.asc


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


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

2011-02-27 Thread Grant Edwards
On 2011-02-26, Dale rdalek1...@gmail.com wrote:
 Mick wrote:

 Before you start tweaking voltages and replacing PSUs you better test your
 *new* memory modules thoroughly, even if that means that you will be using
 your old machine for a day or so.

 Personally I usually remove all memory modules and then test one at a time
 overnight with memtest 86+.  If it gives any errors at all I would send it
 back to the shop.

 If they all pass, then voltage and PSU issues will need to be looked at.

 Good luck.


 This appears to be a corrupt file somewhere.

In my experice, failing RAM often appears as a corrupt file
somewhere.

-- 
Grant






Re: [gentoo-user] Problem with /devcdrom /dev/sro

2011-02-27 Thread Mike Gilbert
On Sun, Feb 27, 2011 at 5:32 AM, Jacques Montier
jacques.mont...@numericable.fr wrote:
 My kernel configuration :

 # SCSI device support
 CONFIG_SCSI_MOD=y
 CONFIG_SCSI=y
 CONFIG_SCSI_DMA=y
 CONFIG_SCSI_TGT=y
 CONFIG_SCSI_NETLINK=y
 CONFIG_SCSI_PROC_FS=y
 # SCSI support type (disk, tape, CD-ROM)
 # CONFIG_SCSI_ENCLOSURE is not set
 CONFIG_SCSI_MULTI_LUN=y
 CONFIG_SCSI_CONSTANTS=y
 CONFIG_SCSI_LOGGING=y
 # CONFIG_SCSI_SCAN_ASYNC is not set
 CONFIG_SCSI_WAIT_SCAN=m
 # SCSI Transports
 CONFIG_SCSI_SPI_ATTRS=m
 CONFIG_SCSI_FC_ATTRS=m
 # CONFIG_SCSI_FC_TGT_ATTRS is not set
 CONFIG_SCSI_ISCSI_ATTRS=m
 # CONFIG_SCSI_SAS_ATTRS is not set
 # CONFIG_SCSI_SAS_LIBSAS is not set
 # CONFIG_SCSI_SRP_ATTRS is not set
 CONFIG_SCSI_LOWLEVEL=y

That's a strange looking SCSI support type section. Here's mine, for
reference:

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
CONFIG_CHR_DEV_ST=y
# CONFIG_CHR_DEV_OSST is not setabsense
CONFIG_BLK_DEV_SR=y
# CONFIG_BLK_DEV_SR_VENDOR is not set
CONFIG_CHR_DEV_SG=y
# CONFIG_CHR_DEV_SCH is not set
CONFIG_SCSI_MULTI_LUN=y
CONFIG_SCSI_CONSTANTS=y
# CONFIG_SCSI_LOGGING is not set
# CONFIG_SCSI_SCAN_ASYNC is not set
CONFIG_SCSI_WAIT_SCAN=m

You need CONFIG_BLK_DEV_SR for /dev/sr* to work, so its absence in
your config is rather suspicious.



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

2011-02-27 Thread Mike Gilbert
On Sun, Feb 27, 2011 at 9:58 AM, Mick michaelkintz...@gmail.com wrote:
 I guess that 'emerge -uaDv world' takes the current state of x11-base/xorg-
 drivers (which in the past had been merged with INPUT_DEVICES containing both
 keyboard and mouse) as a higher priority than the current state of my
 INPUT_DEVICES in /etc/make.conf?

 Either way, the solution must be therefore to remerge x11-base/xorg-drivers
 every time the content of INPUT_DEVICES is changed.


I suggest adding -N (--newuse) to that command, as in emerge -uaDvN
world. This will take USE flag changes into account when deciding on
packages to (re)install.

Note that INPUT_DEVICES is really just a fancy wrapper around a set of
USE flags.



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

2011-02-27 Thread Jason Weisberger
I actually have 4 gigs of gskill DDR 3 1600 and from experience I can tell
you that the stock voltage on those chips is set too low.  The company
actually recommends that you use 1.9 volts while most motherboards will
default to 1.5 or 1.6.  Double check this however, because I know they were
working on some JEDEC compliant DDR 3 (standard voltage of 1.5) a while back
but I'm not certain if they just decided to throw in the towel on that
effort. My system would crash using 1.5 but wouldn't produce any errors on
memtest86+.  This all just sounds too familiar.
On Feb 26, 2011 11:15 AM, Dale rdalek1...@gmail.com wrote:
 Yohan Pereira wrote:

 On Saturday 26 Feb 2011 04:36:32 AM Dale wrote:

 I booted a USB stick and it ran a long time with no problem.


 ok this may have nothing to do with it but was it a 32 bit OS on the
 usb stick? does it use all 8 gigs?


 dont know if this makes any diffrence though just guessing.


 --


 - Yohan Pereira


 A man can do as he will, but not will as he will - Schopenhauer



 I booted a 64 bit. It did see all the ram and I'm up to 16Gbs now. I
 started with 4, then went to 8 and then went to 16Gbs. Newegg kept
 having sales. lol

 Dale

 :-) :-)


Re: [gentoo-user] Dual Boot Partitions

2011-02-27 Thread Florian Philipp
Am 27.02.2011 17:02, schrieb Petri Rosenström:
 On Sun, Feb 27, 2011 at 5:01 PM, dhk dhk...@optonline.net wrote:
 I have a new laptop that I need to set up for dual booting.  As much as
 I despise Microsoft, I have to use it for certain things.  Such as some
 obscure peripherals, like my slide photo scanner, it doesn't support
 Linux and TD Ameritrade's streaming Java tools don't work the same as on
 Linux.  Until corporation's smarten up Microsoft will be a problem.

 The setup for dual booting seem pretty straight forward.  Install
 windows first, then Linux, and modify the boot loader.  However, I have
 a couple of question and observations.

 First, the observations.  I tried to partition my disk with fdisk the
 way I wanted.  It had the usual Linux partitions and a partition that I
 was going to use for Window 7.  I wanted to make this an LVM2 partition,
 but that didn't work; I guess that was too ambitious.  Then I just made
 it an ordinary static HPFS/NTFS partition on /dev/sda5.  When installing
 Windows 7 it wouldn't install on that partition.  I deleted all the
 partitions and just installed it on the first 50Gigs of the disk.

 Second, the questions.  The Windows 7 install on the first 50Gigs of the
 disk needed to created two partitions.  The first was a very small boot
 partition that I increased to 128Megs, and the second is the rest of
 Windows 7.  Now when I boot to the livecd to partition the rest of the
 disk for Gentoo fdisk says Partition 1 does not end on a cylinder
 boundary.  Is this a problem?  The other big question is:  what do I do
 Dunno, it might be that win7 changed the amount of heads/sectors that
 could give that notice from fdisk. I would not be to worrified about
 it (Installing windows would be more horrifying). If you have a
 traditional hd then the worst thing I think might be that reads/writes
 would be slower.
 

If I'm not mistaken, this alignment is actually a good thing. It is
related to the transition from 512 B blocks to 4 kB and also helps
alignments for SSDs. In this regard, Win 7 behaves very clever and
really much better than the old and proven Linux tools (unless you know
what you are doing and are aware of every issue). IMHO it is a real
shame that most Linux tools are still behind in this regard.

If you think you have an HDD with 4kB blocks, ask and I can provide you
with some links on that topic.

 about the first partition in the partition table?  It is an HPFS/NTFS
 partition and has been toggled bootable.  It also has some stuff in it
 that looks like it's important to Windows:  a BOOTSECT.BAK file, a Boot
 directory, a System Volume Information directory, and a bootmgr file.
 Now for my Gentoo install, how and where do I make a /boot partition?
 Do I replace the Windows 7 boot partition with /boot?  If so, what
 happens to the contents?  or Do I make a /boot partition on /dev/sda3
 and toggle the bootable flag there?
 
 Something like that. You could install gentoo on one partition (I
 don't recommend).
 
 Just make partitions like you would do without windows. When you do
 the grub-install script or by hand grub links the boot to the
 partition where boot exists. You should not remove or change the
 windows partitions or the data windows will probably brake when you
 do.
 

AFAIK, grub does not need the bootable flag. Leave it alone. Maybe
Windows needs it, maybe it is just for good measure, I don't know.

Hope this helps,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Problem with /devcdrom /dev/sro

2011-02-27 Thread Volker Armin Hemmann
On Sunday 27 February 2011 16:55:26 Roger Cahn wrote:
  complete dmesg would be nice nonetheless.
 
 But in dmesg there are 1106 lines!
 Would you like I send all or only a part of them?
 
  * SCSI CDROM support
  [*]   Enable vendor-specificextensions(forSCSICDROM)
  
* SCSI generic
support
  
  try that as module and reload it - what happens?
 
 Nothing, bad luck!
 Neither no cdrom nor sr0 in /dev

and dmesg says  what?



[gentoo-user] [OT] Re: PDF: convert to grayscale

2011-02-27 Thread Nuno J. Silva
Michael Orlitzky mich...@orlitzky.com writes:

 On 02/08/11 08:50, Nuno J. Silva wrote:
 Does anyone know a tool (other than ghostscript) that is able to convert
 a PDF (or postscript) to grayscale?

 A laserjet? =)

That makes me wonder... in a color printer, I expect it not to print any
color when it has no color ink, but do grayscale printers apply some
conversion internally, to make sure that e.g. plain cyan is still
visible (instead of making it white)?

-- 
Nuno J. Silva
gopher://sdf-eu.org/1/users/njsg




Re: [gentoo-user] Problem with /devcdrom /dev/sro

2011-02-27 Thread Roger Cahn

 and dmesg says  what?

Because threre are many lines (1106)
you can get it at this adress:

 http://dl.free.fr/eaWeJr0WB

I hope it will work!




Re: [gentoo-user] XDG_CONFIG_DIRS and XDG_DATA_DIRS env variables with E17

2011-02-27 Thread Mick
On Sunday 27 February 2011 15:20:25 Ian Lee wrote:
 On 26/02/11 16:41, Mick wrote:
  Where are being these set?
  
  I currently have:
  
  $ echo $XDG_CONFIG_DIRS
  /etc/xdg
  
  $ echo $XDG_DATA_DIRS
  /usr/local/share:/usr/share
  
  I'm asking because although Enlightenment-17 picks up the kde menu from
  there, it does not seem to recognise the respective application icons. 
  If I set the icons manually with absolute paths (e.g.
  /usr/share/icons/oxygen/48x48/apps/knode.png, instead of the generic
  knode.png) then I end up with duplicate menu entries for each application
  when I launch kde.
 
 Go to settings-settings panel.
 
 In the Look category find the Icon Theme option.
 
 Set you icon theme to Oxygen.
 
 
 For the duplicates:
 
 Check ~/.local/share/applications/
 You should find the .desktop files of the applications you changed to
 absolute paths,
 kde is probably picking up these and the system ones in
 /usr/share/applications.
 The ~/.local ones should not be needed

YES!  That fixed the missing icons E17 menu problem and the duplicates in the 
KDE menu.

Thank you very much!  :-)
-- 
Regards,
Mick


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


[gentoo-user] Re: automounting usb drives [SOLVED]

2011-02-27 Thread walt

On 02/27/2011 04:54 AM, luis jure wrote:


PENDING ISSUE: on thunar (and xfce, the other file manager i occasionally
use) i can eject the drive but no umount it (i mean the ability to umount
the file system but not delete the mount point under /media)


The auth/policy landscape has changed so quickly in the last few months
that I can't keep up, but I can tell you that you might want to play with
the command-line tools from consolekit and polkit when root-versus-user
problems occur.

For example, look through the output of pkaction --verbose for this:

org.freedesktop.udisks.drive-detach:
  description:   Detach a drive
  message:   Authentication is required to detach the drive
  vendor:The udisks Project
  vendor_url:http://udisks.freedesktop.org/
  icon:  drive-removable-media
  implicit any:  no
  implicit inactive: no
  implicit active:   yes

Look at the last three lines for 'any' 'inactive' and 'active'. What do
they mean?

They refer to your 'console session', which you can list with ck-list-sessions:

Session1:
unix-user = '1001'
realname = '(null)'
seat = 'Seat1'
session-type = ''
active = FALSE== NOTE
x11-display = ''
x11-display-device = ''
display-device = '/dev/tty1'
remote-host-name = ''
is-local = TRUE
on-since = '2011-02-27T14:05:03.842279Z'
login-session-id = '1'
idle-since-hint = '2011-02-27T14:05:40.005781Z'
Session2:
unix-user = '1001'
realname = '(null)'
seat = 'Seat1'
session-type = ''
active = TRUE   === NOTE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = '/dev/tty1'
remote-host-name = ''
is-local = TRUE === NOTE
on-since = '2011-02-27T14:05:16.819654Z'
login-session-id = '1'

Session1 is my original login on tty1, from which I typed 'startx'.

That session is not active because I'm writing this from inside the
gnome desktop, i.e. Session2, which *is* active (note the tty7).

The old defunct policykit also dictated whether a session had to be
'local' to do certain things, but that may have vanished, dunno.

The old policykit came with very simple and understandable tools to
set and edit policies, and the defunct gnome-policykit gave you a
simple gui frontend so you could tell WTF you were doing.

Alas, no more, and the new system is virtually opaque.  Not well done,
IMHO.

My point is (almost forgot it) that automounting stopped working for
many months in gnome because consolekit claimed that my ck-session
was *not* active and *not* local even though obviously it was both.

Some recent update finally fixed that bug, thankfully, but I have
no idea which update.





[gentoo-user] Re: Xfce: shutdown and reboot normal users

2011-02-27 Thread walt

On 02/27/2011 05:55 AM, luis jure wrote:



i'm posting this to the list in case it's of some use to somebody.

trying to get automounting of usb drives working on xfce, as discussed on
a recent thread...


Heh.  I just replied to that other thread before reading this :)
Sounds like you're way ahead of me now, and thanks for the info.





Re: [gentoo-user] Search filesystem with a wildcard

2011-02-27 Thread Grant
 I can't get find to work.  This works:

 locate *foo*.txt

 but none of these work:

 find /my/folder -name foo*.txt
 find /my/folder -name *foo*.txt
 find /my/folder -type f -name '*foo*.txt'

 $ mkdir -p  /my/folder
 mkdir: cannot create directory `/my': Permission denied
 $ mkdir -p my/folder
 $ touch my/folder/foo.txt
 $ find my/folder -type f -name '*foo*.txt'
 my/folder/foo.txt
 $ find /my/folder -name foo*.txt
 find: `/my/folder': No such file or directory
 $ ^/^
 find my/folder -name foo*.txt
 my/folder/foo.txt
 $

 What am I doing wrong?  I do need the find to be recursive in that folder.

 IMO the first thing you're doing wrong is concealing from us what you're 
 actually doing.

 You're telling us that `find /my/folder -name foo*.txt` and two other 
 versions don't work, yet you're relying on us taking your word on it that 
 they don't.

 Prove it!

 You could have done exactly as I did above and create a folder called 
 my/folder and created a file called foo.txt and then copied and pasted from 
 the terminal to show us your actual commands.

 So we are only left to guess that the file you're looking for is NOT actually 
 called foo.txt and it's NOT actually in a folder called /my/folder. So 
 the problem could be that you're looking for a file with a capital letter in 
 its name, and that you're  using -name instead of -iname, or it could be 
 that you're searching the wrong directory tree, or it could be a bunch of 
 other things. Permissions springs to mind.


Yes, if I had posted the real stuff you would have been able to tell
me to use -wholename instead of -name to mimic mlocate functionality.

 But you'd rather waste our time in trying to conceal what you're looking for 
 (I can only assume the file is called Busty big sluts 3.avi) than help us 
 help you.


I don't lose track of my Busty big sluts 3 AVI thank you very much.

- Grant

 Stroller.



[gentoo-user] Re: Dual Boot Partitions

2011-02-27 Thread walt

On 02/27/2011 07:01 AM, dhk wrote:


 I tried to partition my disk with fdisk the
way I wanted.  It had the usual Linux partitions and a partition that I
was going to use for Window 7.  I wanted to make this an LVM2 partition,
but that didn't work;


Good old fdisk is indeed old, and there are much easier ways to do what
you wanted to do.  I've used this product several times with perfect
results (so far):

http://gparted.sourceforge.net/livecd.php

Of course if you already have a working linux machine you can install
gparted and use it that way to move, resize and create partitions.
Very easy and almost painless.




Re: [gentoo-user] Dual Boot Partitions

2011-02-27 Thread Mick
On Sunday 27 February 2011 18:04:26 Florian Philipp wrote:
 Am 27.02.2011 17:02, schrieb Petri Rosenström:
  On Sun, Feb 27, 2011 at 5:01 PM, dhk dhk...@optonline.net wrote:

  First, the observations.  I tried to partition my disk with fdisk the
  way I wanted.  

I would recommend you use 'parted -a optimal' or gparted for this purpose (see 
below).


  It had the usual Linux partitions and a partition that I
  was going to use for Window 7.  I wanted to make this an LVM2 partition,
  but that didn't work; I guess that was too ambitious.

I am not sure that you can use LVM2 for MSWindows - as far as I know they use 
Logical Disk Manager which it is not the same with any other sane LVM 
implementation - come on now, would you expect them to seek compatibility or 
interoperability?!!

http://en.wikipedia.org/wiki/Logical_Disk_Manager

  Then I just made
  it an ordinary static HPFS/NTFS partition on /dev/sda5.  When installing
  Windows 7 it wouldn't install on that partition.  I deleted all the
  partitions and just installed it on the first 50Gigs of the disk.
  
  Second, the questions.  The Windows 7 install on the first 50Gigs of the
  disk needed to created two partitions.  The first was a very small boot
  partition that I increased to 128Megs, and the second is the rest of
  Windows 7.  Now when I boot to the livecd to partition the rest of the
  disk for Gentoo fdisk says Partition 1 does not end on a cylinder
  boundary.  Is this a problem?  The other big question is:  what do I do
  
  Dunno, it might be that win7 changed the amount of heads/sectors that
  could give that notice from fdisk. I would not be to worrified about
  it (Installing windows would be more horrifying). If you have a
  traditional hd then the worst thing I think might be that reads/writes
  would be slower.
 
 If I'm not mistaken, this alignment is actually a good thing. It is
 related to the transition from 512 B blocks to 4 kB and also helps
 alignments for SSDs. In this regard, Win 7 behaves very clever and
 really much better than the old and proven Linux tools (unless you know
 what you are doing and are aware of every issue). IMHO it is a real
 shame that most Linux tools are still behind in this regard.

Only some are.

The 'parted -a optimal' or gparted will seek to align the end of a partition, 
but you will find that it may under/overshoot your specified size to achieve 
that.

fdisk et al have some development to do yet.


 If you think you have an HDD with 4kB blocks, ask and I can provide you
 with some links on that topic.
 
  about the first partition in the partition table?  It is an HPFS/NTFS
  partition and has been toggled bootable.  It also has some stuff in it
  that looks like it's important to Windows:  a BOOTSECT.BAK file, a Boot
  directory, a System Volume Information directory, and a bootmgr file.
  Now for my Gentoo install, how and where do I make a /boot partition?
  Do I replace the Windows 7 boot partition with /boot?  If so, what
  happens to the contents?  or Do I make a /boot partition on /dev/sda3
  and toggle the bootable flag there?
  
  Something like that. You could install gentoo on one partition (I
  don't recommend).

No!  Nothing like that.  Leave the MS Windows boot partition alone and flagged 
as boot.  MS Windows needs this, while Linux does not.


  Just make partitions like you would do without windows. When you do
  the grub-install script or by hand grub links the boot to the
  partition where boot exists. You should not remove or change the
  windows partitions or the data windows will probably brake when you
  do.

Yep.  Create a new partition; e.g. /dev/sda3 and use that as the /boot 
mountpoint for your Linux OS.  This is where the grub fs, Linux OS kernels and 
related files will be saved.


 AFAIK, grub does not need the bootable flag. Leave it alone. Maybe
 Windows needs it, maybe it is just for good measure, I don't know.

This is correct, MS Windows needs it and it will not boot without it, 
especially if you retain the MSWindows MBR boot code - although you can 
install GRUB in the MBR and chainload MSWindows from there with it.

HTH.
-- 
Regards,
Mick


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


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

2011-02-27 Thread Mick
On Sunday 27 February 2011 17:15:40 Grant Edwards wrote:
 On 2011-02-26, Dale rdalek1...@gmail.com wrote:
  Mick wrote:
  Before you start tweaking voltages and replacing PSUs you better test
  your *new* memory modules thoroughly, even if that means that you will
  be using your old machine for a day or so.
  
  Personally I usually remove all memory modules and then test one at a
  time overnight with memtest 86+.  If it gives any errors at all I would
  send it back to the shop.
  
  If they all pass, then voltage and PSU issues will need to be looked at.
  
  Good luck.
  
  This appears to be a corrupt file somewhere.
 
 In my experice, failing RAM often appears as a corrupt file
 somewhere.

Yep, when I had a failing memory module I would often end up with corrupted 
files all over the place.  Think about it, when the memory gave up some write 
on disk function was invariably foo-barred.
-- 
Regards,
Mick


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


Re: [gentoo-user] Problem with /devcdrom /dev/sro

2011-02-27 Thread Volker Armin Hemmann
On Sunday 27 February 2011 19:45:53 Roger Cahn wrote:
  and dmesg says  what?
 
 Because threre are many lines (1106)
 
 you can get it at this adress:
  http://dl.free.fr/eaWeJr0WB
 
 I hope it will work!

497 lines. Could you please: increase the buffer and turn off usb debugging?



[gentoo-user] OT: cut replacement with bash builtins

2011-02-27 Thread Florian Philipp
Hi list!

I'm currently streamlining some of my shell scripts to avoid unnecessary
process calls where bash itself is powerful enough.

At the moment, I want to replace stuff like this:
string='foo:bar:foo'
second_field=$(echo $string | cut -d : -f 2) # should read bar

My current solution is using two string operations:
string='foo:bar:foo'
# remove everything up to and including first ':'
second_and_following=${string#*:}
# remove everything from the first ':' following
second_field=${second_and_following%%:*}

Of course, I normally do this in a single line with a subshell but it
still looks cumbersome. Is there a way to do it in a single operation
without a temporary variable? The following does not work:
string='foo:bar:foo'
second_field=${string#:%%:*}

Thanks in advance!
Florian Philipp



signature.asc
Description: OpenPGP digital signature


[gentoo-user] Re: OT: cut replacement with bash builtins

2011-02-27 Thread hamilton

On Sun, 27 Feb 2011 21:01:46 +0100, Florian Philipp wrote:

Hi list!

I'm currently streamlining some of my shell scripts to avoid 
unnecessary

process calls where bash itself is powerful enough.


My experience (take it for whatever you think it's worth) is that
doing so often just makes things harder to follow and maintain.
It's very unlikely that the overhead of a fork+exec is appreciably
slowing your process down.  Having said that (and in that vein) there
is something more straightforward which may be useful:

[...]


My current solution is using two string operations:
string='foo:bar:foo'
# remove everything up to and including first ':'
second_and_following=${string#*:}
# remove everything from the first ':' following
second_field=${second_and_following%%:*}


second_field = $(echo $string | awk -F: '{print $2}')


--
Jon Hamilton
hamil...@pobox.com



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

2011-02-27 Thread Dale

Jason Weisberger wrote:


I actually have 4 gigs of gskill DDR 3 1600 and from experience I can 
tell you that the stock voltage on those chips is set too low.  The 
company actually recommends that you use 1.9 volts while most 
motherboards will default to 1.5 or 1.6.  Double check this however, 
because I know they were working on some JEDEC compliant DDR 3 
(standard voltage of 1.5) a while back but I'm not certain if they 
just decided to throw in the towel on that effort. My system would 
crash using 1.5 but wouldn't produce any errors on memtest86+.  This 
all just sounds too familiar.





Well, I think recompiling everything fixed the issue.  This is where I 
am now:


root@fireball / # uptime
 14:05:46 up 1 day,  5:29,  4 users,  load average: 0.43, 0.24, 0.23
root@fireball / #

So far, no problems.  I'll check on the voltages when I reboot again.  I 
know it was set to auto tho.  I don't usually mess with those.  I did 
overclock my old rig once, folding complained so I set it back and 
haven't messed with it since.


Another thing, I tried putting portage on tmpfs, it isn't any faster.  I 
recompiled a few packages and most of them only had a difference of 
seconds.  Even a 20 minute compile only had a difference of like 20 
seconds.  Most were less than that tho.


I got to find some good way to use all this ram.  Maybe I need to start 
working with editing videos or something.  I got some on VHS that need 
to be on DVD.  ^_^


Dale

:-)  :-)



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

2011-02-27 Thread Dale

Mick wrote:

On Sunday 27 February 2011 17:15:40 Grant Edwards wrote:
   

On 2011-02-26, Dalerdalek1...@gmail.com  wrote:
 

This appears to be a corrupt file somewhere.
   

In my experice, failing RAM often appears as a corrupt file
somewhere.
 

Yep, when I had a failing memory module I would often end up with corrupted
files all over the place.  Think about it, when the memory gave up some write
on disk function was invariably foo-barred.
   


This was my logic tho.  Reboots when using the OS on the hard drive.  
Runs fine when booted from something else, memtest, system rescue or 
even Knoppix.  If it was memory, then it should fail on everything at 
some point.  Since it only failed when booted from the hard drive, I was 
looking for issues with it.


What you are saying is completely correct tho.  If I load a file into 
ram that is bad, then it gets written back to the drive, that file is 
broke.  That will cause problems eventually and who knows what sort of 
flakey issue that will be.


Anyway, recompiling everything gives me this:

root@fireball / # uptime
 14:05:46 up 1 day,  5:29,  4 users,  load average: 0.43, 0.24, 0.23
root@fireball / #

I think it is going to be OK now.  Some file was having a bad hair day.  
lol


Dale

:-)  :-)



Re: [gentoo-user] OT: cut replacement with bash builtins

2011-02-27 Thread Alex Schuster
Florian Philipp writes:

 I'm currently streamlining some of my shell scripts to avoid unnecessary
 process calls where bash itself is powerful enough.
 
 At the moment, I want to replace stuff like this:
 string='foo:bar:foo'
 second_field=$(echo $string | cut -d : -f 2) # should read bar
 
 My current solution is using two string operations:
 string='foo:bar:foo'
 # remove everything up to and including first ':'
 second_and_following=${string#*:}
 # remove everything from the first ':' following
 second_field=${second_and_following%%:*}

That's how I do these things, too.

 Of course, I normally do this in a single line with a subshell but it

Hmm, I don't get this. Subshell?

 still looks cumbersome. Is there a way to do it in a single operation
 without a temporary variable? The following does not work:
 string='foo:bar:foo'
 second_field=${string#:%%:*}

I don't think so. But you can write a shell function for this:

getfield()
{
local str=${1#*:}
echo ${str%%:*}
}

string='foo:bar:foo'
second_field=$( getfield $string )

But if you need to do this very often in a loop, sometimes going back to
cut can speed things up, when you place it outside:

See

for string in $(  inputfile )
do
second_field=$( getfield $string )
do_something_with $second_field
done

vs.

secondfields=( $( cut -d : -f 2 inputfile ) )
for secondfield in ${secondfields[@]}
do
do_something_with $second_field
done

So, in th e2nd example, cut is called only once, but processes all input
lines. The result is put into an array.

Of course, all stuff should be put into double quotes in case there is
whitescape involved. Setting IFS to $'\n' may be necessary for this when
creating the array.

Wonko



Re: [gentoo-user] Re: OT: cut replacement with bash builtins

2011-02-27 Thread Florian Philipp
Am 27.02.2011 21:09, schrieb hamilton:
 On Sun, 27 Feb 2011 21:01:46 +0100, Florian Philipp wrote:
 Hi list!

 I'm currently streamlining some of my shell scripts to avoid unnecessary
 process calls where bash itself is powerful enough.
 
 My experience (take it for whatever you think it's worth) is that
 doing so often just makes things harder to follow and maintain.
 It's very unlikely that the overhead of a fork+exec is appreciably
 slowing your process down.  Having said that (and in that vein) there
 is something more straightforward which may be useful:
 

Oh, I completely agree with you. In 90% of all cases, simple and clean
code is preferable. And if I really card about performance, I'd use C or
Perl. However, there are still such rare cases where everything works
fine and you see no reason to code it all again but those three forks in
the innermost loop just kill your performance.

In such cases, I optimize it and put the clean version in the comments.
That way, clarity doesn't suffer too much.

 [...]
 
 My current solution is using two string operations:
 string='foo:bar:foo'
 # remove everything up to and including first ':'
 second_and_following=${string#*:}
 # remove everything from the first ':' following
 second_field=${second_and_following%%:*}
 
 second_field = $(echo $string | awk -F: '{print $2}')
 
 

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] OT: cut replacement with bash builtins

2011-02-27 Thread Florian Philipp
Am 27.02.2011 22:06, schrieb Alex Schuster:
 Florian Philipp writes:
 
 I'm currently streamlining some of my shell scripts to avoid unnecessary
 process calls where bash itself is powerful enough.

 At the moment, I want to replace stuff like this:
 string='foo:bar:foo'
 second_field=$(echo $string | cut -d : -f 2) # should read bar

 My current solution is using two string operations:
 string='foo:bar:foo'
 # remove everything up to and including first ':'
 second_and_following=${string#*:}
 # remove everything from the first ':' following
 second_field=${second_and_following%%:*}
 
 That's how I do these things, too.
 
 Of course, I normally do this in a single line with a subshell but it
 
 Hmm, I don't get this. Subshell?

second_field=$(second_and_following=${string#*:}; echo
${second_and_following%%:*})

Putting it in parentheses creates a subshell. New variables don't leave
the scope. I guess I should have said command substitution but both
concepts apply here.

 
 still looks cumbersome. Is there a way to do it in a single operation
 without a temporary variable? The following does not work:
 string='foo:bar:foo'
 second_field=${string#:%%:*}
 
 I don't think so. But you can write a shell function for this:
 
 getfield()
 {
   local str=${1#*:}
   echo ${str%%:*}
 }
 
 string='foo:bar:foo'
 second_field=$( getfield $string )
 
 But if you need to do this very often in a loop, sometimes going back to
 cut can speed things up, when you place it outside:
 
 See
 
 for string in $(  inputfile )
 do
   second_field=$( getfield $string )
   do_something_with $second_field
 done
 
 vs.
 
 secondfields=( $( cut -d : -f 2 inputfile ) )
 for secondfield in ${secondfields[@]}
 do
   do_something_with $second_field
 done  
 
 So, in th e2nd example, cut is called only once, but processes all input
 lines. The result is put into an array.
 

Agreed. Using one long pipe (when applicable) is the real strength of
shell programming.

 Of course, all stuff should be put into double quotes in case there is
 whitescape involved. Setting IFS to $'\n' may be necessary for this when
 creating the array.
 
   Wonko
 

Agreed, again. I removed the quotes from my examples to improve
readability. It was already bad enough with all those regular expressions.

Thanks for the input.

Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Xfce: shutdown and reboot normal users

2011-02-27 Thread luis jure
on 2011-02-27 at 11:25 walt wrote:

Heh.  I just replied to that other thread before reading this :)
Sounds like you're way ahead of me now, and thanks for the info.

hmmm... i wouldn't say so. your other mail actually had lots of
information that was completely new for me. pkaction --verbose for
example was a complete revelation, as it was all the stuff related to the
console sessions.

BTW, ck-list-sessions only lists one session here:

lj@acme7 ~ $ ck-list-sessions 
Session7:
unix-user = '1000'
realname = '(null)'
seat = 'Seat8'
session-type = ''
active = FALSE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = '/dev/tty1'
remote-host-name = ''
is-local = FALSE
on-since = '2011-02-27T15:20:31.404040Z'
login-session-id = ''

i'm still not sure what all these means... and if i should care about it.

best,

lj



[gentoo-user] any mythtv/set top box experts?

2011-02-27 Thread Matt Harrison

Hi all,

I've recently started to set up a mythtv box for my parents. I've found 
a USB DVB-T receiver which works perfectly and I've got the system up 
and running on some old hardware.


Now I've been tasked with finding something small that can sit by their 
TV and do it all. I've been looking at MiniITX machines with the nVidia 
ION chipset that support 720/1080 HD playback and HDMI outputs.


My questions are concerning the digital output and remote controls. I've 
only ever used HDMI/digital output on windows and it confuses me then. 
Is there some added complexity to getting the HDMI output working 
(including audio) with a TV? Is there anything to look out for as far as 
compatibiliy goes?


And remote controls, the USB DVB-T unit comes with its own remote and 
pretty much works out of the box even on linux. At least it works for 
the basic up/down/left/right/enter, I really don't know enough to get 
any more out of it.


The MiniITX bundle I'm looking at comes with a remote designed for media 
centres and looks to be a million times nicer than the one from the 
receiver, but is there going to be a lot of trouble getting it working 
with Lirc? I only know a teeny tiny bit about Lirc, I don't know what 
driver this remote will use so I don't know if there's likely to be any 
compatibility issue.


As you can tell I'm not very hot on this stuff, so any 
tips/help/suggestions would be much appreciated. I'd especially 
appreciate if anyone could point to some known-good hardware for this 
purpose.


Thanks

Matt



Re: [gentoo-user] How to turn off automounting usb drives

2011-02-27 Thread luis jure
on 2011-02-27 at 08:53 fe...@crowfix.com wrote:


I have the opposite problem from luis jure.  I do not mount drives
often, so I am not sure exactly when this problem started, but gentoo
is now automounting drives and I have never wanted that. 

perhaps you could go the opposite way than me, like explicitly setting
something like AdminIdentities=unix-user:0 ? just a wild guess, don't take
my advise too seriously, i'm just beginning to understand all this
policykit stuff...



Re: [gentoo-user] How to turn off automounting usb drives

2011-02-27 Thread Dale

luis jure wrote:

on 2011-02-27 at 08:53 fe...@crowfix.com wrote:


   

I have the opposite problem from luis jure.  I do not mount drives
often, so I am not sure exactly when this problem started, but gentoo
is now automounting drives and I have never wanted that.
 

perhaps you could go the opposite way than me, like explicitly setting
something like AdminIdentities=unix-user:0 ? just a wild guess, don't take
my advise too seriously, i'm just beginning to understand all this
policykit stuff...


   


Don't worry, when you understand it really well, something new will come 
along.  Then you get to rinse and repeat.  :/


Dale

:-)  :-)



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

2011-02-27 Thread Peter Humphrey
On Sunday 27 February 2011 20:12:29 Dale wrote:

 I did overclock my old rig once, folding complained so I set it back and
 haven't messed with it since.

Just an aside, Dale, to satisfy my curiosity: is this the protein-folding 
BOINC application? What drew you to it? None of my business, I know, so tell 
me so if you like, but I'm curious. My BOINC projects are einstein.phys, 
setiathome, lhcathome, milkyway and cosmologyathome. They keep this i5 
occupied.

 I got to find some good way to use all this ram.

I was afraid you'd find that. As I said the other day, my 4GB are enough to 
prevent swapping almost all the time.

 Maybe I need to start working with editing videos or something.  I got
 some on VHS that need to be on DVD.  ^_^

Are you taking commissions?  :-)

-- 
Rgds
Peter



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

2011-02-27 Thread Peter Humphrey
On Sunday 27 February 2011 19:43:10 Mick wrote:

 [...] when I had a failing memory module I would often end up with
 corrupted files all over the place.  Think about it, when the memory
 gave up some write on disk function was invariably foo-barred.

What, though, if you get hang-ups in some OSs but not in others, and never a 
sign of file corruption?

-- 
Rgds
Peter



Re: [gentoo-user] Re: Dual Boot Partitions

2011-02-27 Thread Peter Humphrey
On Sunday 27 February 2011 19:35:55 walt wrote:

 I've used this product several times with perfect results (so far):
 
 http://gparted.sourceforge.net/livecd.php
 
 Of course if you already have a working linux machine you can install
 gparted and use it that way to move, resize and create partitions.
 Very easy and almost painless.

Gparted is indeed pretty; I use it often to get a picture of the partition 
layout (I boot from System Rescue CD: http://www.sysresccd.org/). However, 
it leaves partitions in the wrong order if you insert one before another. 
Fdisk is ideal for fixing that:

$ fdisk /dev/sda
x
f
w

Job done.

-- 
Rgds
Peter



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

2011-02-27 Thread Dale

Peter Humphrey wrote:

On Sunday 27 February 2011 20:12:29 Dale wrote:

   

I did overclock my old rig once, folding complained so I set it back and
haven't messed with it since.
 

Just an aside, Dale, to satisfy my curiosity: is this the protein-folding
BOINC application? What drew you to it? None of my business, I know, so tell
me so if you like, but I'm curious. My BOINC projects are einstein.phys,
setiathome, lhcathome, milkyway and cosmologyathome. They keep this i5
occupied.

   


I do it because I have a genetic disorder.  It may not help me but I 
hope the folding that I do will help someone.  This is the home page:


http://folding.stanford.edu/


I got to find some good way to use all this ram.
 

I was afraid you'd find that. As I said the other day, my 4GB are enough to
prevent swapping almost all the time.

   


Yea, but this thing is caching a lot of data.  It seems a little more 
responsive and some programs load a lot faster, the second time of 
course.  The first time it needs to load anyway.


Mem:  16466172k total, 12400648k used,  4065524k free,   642212k buffers
Swap:  2851496k total,0k used,  2851496k free,  9796516k cached



Maybe I need to start working with editing videos or something.  I got
some on VHS that need to be on DVD.  ^_^
 

Are you taking commissions?  :-)

   


I got some old VHS tapes of movies.  I would like to transfer them to 
DVD.  Some of my VHS tapes are really old and they don't do real good 
any more.  Also, my VCR is not feeling well either.  It has two decks 
but one of them doesn't rewind much anymore.  Still plays but figure 
that will go out next.


Dale

:-)  :-)



Re: [gentoo-user] Ebuild hacking howto

2011-02-27 Thread Mark Shields
On Sat, Feb 26, 2011 at 9:56 AM, Dale rdalek1...@gmail.com wrote:

 Mick wrote:


 Not related to the OP's question, but couldn't stop myself from asking:

 Why is/was webmin dropped from portage?

 I saw bug 348432 for webmin-1.530, but other than offering an ebuild it
 didn't
 say.



 From gentoo-dev:

 # Diego E. Pettenņflamee...@gentoo.org  (10 Aug 2010)
 #  on behalf of QA team
 #
 # Breaks about any QA policy regarding not touching
 # live filesystem as it writes to LVM configuration,
 # cron configuration, current-running kernel modules, RPM
 # library, ...
 #
 # Removal on 2010-10-09
 app-admin/webmin

 That help?

 Dale

 :-)  :-)


Not going to beat a dead horse, but that is exactly one of the things it's
supposed to do.  The program itself works great, it just doesn't meet the
requirements of the Gentoo devs.


Re: [gentoo-user] Ebuild hacking howto

2011-02-27 Thread Mike Gilbert
On Sun, Feb 27, 2011 at 8:43 PM, Mark Shields laebsh...@gmail.com wrote:
 On Sat, Feb 26, 2011 at 9:56 AM, Dale rdalek1...@gmail.com wrote:

 Mick wrote:

 Not related to the OP's question, but couldn't stop myself from asking:

 Why is/was webmin dropped from portage?

 I saw bug 348432 for webmin-1.530, but other than offering an ebuild it
 didn't
 say.


 From gentoo-dev:

 # Diego E. Pettenņflamee...@gentoo.org  (10 Aug 2010)
 #  on behalf of QA team
 #
 # Breaks about any QA policy regarding not touching
 # live filesystem as it writes to LVM configuration,
 # cron configuration, current-running kernel modules, RPM
 # library, ...
 #
 # Removal on 2010-10-09
 app-admin/webmin

 That help?

 Dale

 :-)  :-)


 Not going to beat a dead horse, but that is exactly one of the things it's
 supposed to do.  The program itself works great, it just doesn't meet the
 requirements of the Gentoo devs.

Diego didn't mask it because webmin itself modified config files; of
course that is what it is supposed to do. Rather, it was masked
because the ebuild itself was dodging the sandbox protection.

See Diego's blog for more info:

http://blog.flameeyes.eu/2010/08/20/there-s-something-about-webmin



Re: [gentoo-user] PDF: convert to grayscale

2011-02-27 Thread Valmor de Almeida
On 02/08/2011 08:50 AM, Nuno J. Silva wrote:
 Does anyone know a tool (other than ghostscript) that is able to convert
 a PDF (or postscript) to grayscale?
 
 Ghostscript does this, but is unable to convert gradients and fills
 (they're replaced by bitmaps) which results in a too big file unless I
 drastically reduce quality.
 

Have you tried inkscape? it is in portage.

--
Valmor



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

2011-02-27 Thread Dale

Jason Weisberger wrote:


I actually have 4 gigs of gskill DDR 3 1600 and from experience I can 
tell you that the stock voltage on those chips is set too low.  The 
company actually recommends that you use 1.9 volts while most 
motherboards will default to 1.5 or 1.6.  Double check this however, 
because I know they were working on some JEDEC compliant DDR 3 
(standard voltage of 1.5) a while back but I'm not certain if they 
just decided to throw in the towel on that effort. My system would 
crash using 1.5 but wouldn't produce any errors on memtest86+.  This 
all just sounds too familiar.





I updated my kernel so I had to reboot.  I checked the voltages and it 
appears to be set to 1.5.  It was set to auto, when I selected manual, 
it said 1.5v.  I don't know for sure that is what it is when it is 
running tho.  That could just be where it starts when in manual mode.  
Since it is working now, I set it back to auto.  Don't want there to be 
anything, so I ain't going to start anything either.  ;-)  According to 
gkrellm, Vcore1 is 1.39.  Vcore2 is 1.52.  I assume that is Vcore2.


I just bought my memory sticks in the past month or so for the last 
three.  The first stick I got was about 2 months ago.  Maybe the new 
ones are improved or something?  How long you had yours?


Is there some way to check on BIOS settings while booted into Linux?  
I'm talking about things like timings and such.  I have gkrellm set up 
for some stuff.  Just don't see timings and such in there.  Just curious 
tho.


Dale

:-)  :-)