Re: [gentoo-user] Gentoo is the best linux distro

2012-09-11 Thread Cinder
http://mark.orbum.net/2011/11/15/the-pan-pipes-of-gentoo-linux-always-at-the-source/
Woow! ... that's ... it's ... I ... I'm weeping ... freely! I'm not alone.

_
Get your FREE, LinuxWaves.com Email Now! -- http://www.LinuxWaves.com 
Join Linux Discussions! -- http://Community.LinuxWaves.com



Re: [gentoo-user] emerge xfce-base/thunar: lobotomy needed

2012-09-11 Thread Neil Bothwick
On Mon, 10 Sep 2012 22:00:46 -0500, Canek Peláez Valdés wrote:

 One more thing; which profile (/etc/make.profile or
 /etc/portage/make.profile) do you have?

To make things easier, please post the output from emerge --info.

This shows all USE flags in use, not just those you have explicitly set,
along with profile and other information.


-- 
Neil Bothwick

And then Adam said, What's a headache?


signature.asc
Description: PGP signature


Re: [gentoo-user] emerge xfce-base/thunar: lobotomy needed

2012-09-11 Thread Chris Stankevitz
On Tue, Sep 11, 2012 at 12:53 AM, Neil Bothwick n...@digimed.co.uk wrote:
 To make things easier, please post the output from emerge --info.

Neil,

Great idea.  Output attached.

PS:
emerge -pv thunar[udev] pulls in gnome-base/gfvs-1.12.3
emerge -pv gvfs pulls in gnome-base/gvfs-1.10.1

Thank you,

Chris
Portage 2.1.11.9 (default/linux/amd64/10.0, gcc-4.5.4, glibc-2.15-r2, 
3.4.9-gentoo x86_64)
=
System uname: 
Linux-3.4.9-gentoo-x86_64-Intel-R-_Core-TM-_i7-3520M_CPU_@_2.90GHz-with-gentoo-2.1
Timestamp of tree: Tue, 11 Sep 2012 07:00:01 +
app-shells/bash:  4.2_p37
dev-lang/python:  2.7.3-r2, 3.2.3
dev-util/cmake:   2.8.8-r3
dev-util/pkgconfig:   0.27.1
sys-apps/baselayout:  2.1-r1
sys-apps/openrc:  0.9.8.4
sys-apps/sandbox: 2.5
sys-devel/autoconf:   2.68
sys-devel/automake:   1.9.6-r3, 1.11.6
sys-devel/binutils:   2.22-r1
sys-devel/gcc:4.5.4
sys-devel/gcc-config: 1.7.3
sys-devel/libtool:2.4-r1
sys-devel/make:   3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:   2.15-r2
Repositories: gentoo x-portage
ACCEPT_KEYWORDS=amd64
ACCEPT_LICENSE=* -@EULA
CBUILD=x86_64-pc-linux-gnu
CFLAGS=-march=native -O2 -pipe
CHOST=x86_64-pc-linux-gnu
CONFIG_PROTECT=/etc
CONFIG_PROTECT_MASK=/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf 
/etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo
CXXFLAGS=-march=native -O2 -pipe
DISTDIR=/usr/portage/distfiles
FCFLAGS=-O2 -pipe
FEATURES=assume-digests binpkg-logs config-protect-if-modified distlocks 
ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head 
protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs 
unmerge-orphans userfetch
FFLAGS=-O2 -pipe
GENTOO_MIRRORS=ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo;
LANG=en_US.UTF8
LC_ALL=en_US.UTF8
LDFLAGS=-Wl,-O1 -Wl,--as-needed
MAKEOPTS=-j4
PKGDIR=/usr/portage/packages
PORTAGE_CONFIGROOT=/
PORTAGE_RSYNC_OPTS=--recursive --links --safe-links --perms --times --compress 
--force --whole-file --delete --stats --human-readable --timeout=180 
--exclude=/distfiles --exclude=/local --exclude=/packages
PORTAGE_TMPDIR=/var/tmp
PORTDIR=/usr/portage
PORTDIR_OVERLAY=/usr/local/portage
SYNC=rsync://rsync.gentoo.org/gentoo-portage
USE=X acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dbus dri fortran gdbm 
gpm iconv ipv6 mmx modules mudflap multilib ncurses nls nptl openmp pam pcre 
pppd python readline session sse sse2 ssl tcpd unicode 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 CALLIGRA_FEATURES=kexi 
words flow plan sheets stage tables krita karbon braindump 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=evdev synaptics KERNEL=linux LCD_DEVICES=bayrad cfontz 
cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text 
LIBREOFFICE_EXTENSIONS=presenter-console presenter-minimizer 
PHP_TARGETS=php5-3 PYTHON_TARGETS=python3_2 python2_7 RUBY_TARGETS=ruby18 
ruby19 USERLAND=GNU VIDEO_CARDS=nvidia vesa fbdev XTABLES_ADDONS=quota2 
psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition 
tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, 
PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, 
PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON



Re: [gentoo-user] Re: Reinstall + switch to KDE

2012-09-11 Thread Samuraiii

On 2012-09-10 20:28, Nikos Chantziaras wrote:
 On 10/09/12 19:53, Andrey Moshbear wrote:
 On Mon, Sep 10, 2012 at 12:43 PM, Nikos Chantziaras
 rea...@gmail.com wrote:
 On 10/09/12 19:12, Samuraiii wrote:

 Hello,
 because I broke me PC and I need to reinstall it I'm going ask what
 should I preserve to make install faster:

 So what *is* broken?  The hardware?  If you have a new PC, you
 simply need
 to transfer your Gentoo install to a new hard disk using rsync.

 He borked his /usr/include due to an improperly-written uninstall rule
 in a Makefile.

 Oh.  That's pretty easy to fix though.  Install a new Gentoo in a
 chroot, and then rsync its /usr/include into the real one.


The whole problem lies in that the gcc in configure phase is looking for
*/usr/local/include* and not for /usr/include...
I'm not able to find where and what has changed...

-- 
Samuraiii
e-mail: samurai.no.d...@gmail.com mailto:samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
http://pgp.mit.edu:11371/pks/lookup?search=0x80C752EAop=vindexfingerprint=onexact=on
(obtainable on http://pgp.mit.edu)
Full copy of public timestamp block http://publictimestamp.org
signatures id-15751 (from 2012-09-11 06:00:06) is included in header of
html.


signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] WM that does not require policykit, consolekit, and gudev

2012-09-11 Thread Philip Webb
120910 Chris Stankevitz wrote:
 Can you recommend a WM that will not require me
 to enable gudev, policykit, and consolekit?

I've been using Fluxbox very happily for  c 5 years .
It's quite powerful  is very easy to configure via text files.
I have a lot of KDE + parts of Xfce installed for their apps :
from Xfce I use Terminal  occasionally Thunar.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] emerge xfce-base/thunar: lobotomy needed

2012-09-11 Thread Philip Webb
120910 Chris Stankevitz wrote:
 On Mon, Sep 10, 2012 at 6:08 PM, Canek Peláez Valdés can...@gmail.com wrote:
 The problem seems to be the use of static libraries

The only place I use a static library/thing is Busybox.

 I temporarily worked around by adding xfce-base/thunar -udev
 to package.use.  Somehow building thunar with udev introduced the mess.

From my home-made list of installed pkgs :

  W 120506 xfce-base/thunar-1.4.0 [USE]
...
  USE FLAGS required
...
  xfce-base/thunar USE=-udev [avoids Gnome disk utils]

 from  /etc/portage/package.use

  # for thunar
  xfce-base/thunar -udev
  
So why do you say temporary (smile) ?

Xfce is a good substitute for KDE/Gnome ;
its only weakness is sometimes following Gnome's irritating oddities.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] USB automount

2012-09-11 Thread Philip Webb
120911 Walter Dnes wrote:
 On Mon, Sep 10, 2012 Chris Stankevitz asked how to automount a USB stick :
 A GUI is not necessary.  Every time a USB device is inserted or removed,
 an event is triggered by the kernel.  What's required is
 an event handler that reacts appropriately to those events.
 This is usually udev, but mdev will also work.
 See https://wiki.gentoo.org/wiki/Mdev/Automount_USB

Why do people want to automount these sticks ?

I goto the root console which is always open on one of my desktops
 enter 'musb', which is a Bash alias for a 'mount' command;
when I've finished, I enter 'uusb'  wait for the prompt to come back,
which shows the stick has been successfully dismounted;
I can check its status via 'df' whenever I want.

I rarely want to use   1  stick at the same time,
but it wb easy to create several aliases for different dev-mnt pairs.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] Heads-up; bash now uses readline USE flag

2012-09-11 Thread Philip Webb
120911 Walter Dnes wrote:
 I realize -* requires extra work, and I'm willing to do it.
 That includes finding solutions to obscure problems.

I've been using '-*' to begin the list of flags in  make.conf  forever;
I do have a list of the flags I've en/disabled  why.
The only time I've been ambushed was this week on a new machine,
when the devs changed the status of 'cxx' for Gcc-4.5.4 without a news item;
it was fairly straightforward, if time-consuming, to fix the problem.
I do try to notice when 'emerge -pv' marks a change of flag.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] USB automount

2012-09-11 Thread Neil Bothwick
On Tue, 11 Sep 2012 04:56:21 -0400, Philip Webb wrote:

 Why do people want to automount these sticks ?

Because it is easy and convenient, something computers are supposed to be
good for.

 I goto the root console which is always open on one of my desktops
  enter 'musb', which is a Bash alias for a 'mount' command;

Leaving aside the implications of leaving open a root console, that
mounts the stick as root. That's fine for a FAT filesystem as you can
specify mount options to make it world-readable, but what about an
external drive formatted with ext? What about an external drive with
multiple partitions?


-- 
Neil Bothwick

X-Modem- A device on the losing end of an encounter with lightning.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Reinstall + switch to KDE

2012-09-11 Thread Neil Bothwick
On Tue, 11 Sep 2012 10:27:35 +0200, Samuraiii wrote:

 The whole problem lies in that the gcc in configure phase is looking for
 */usr/local/include* and not for /usr/include...
 I'm not able to find where and what has changed...

env | grep usr/local

or the brute force approach

grep -r usr/local /etc


-- 
Neil Bothwick

If bankers can count, how come they have eight windows and only four
tellers?


signature.asc
Description: PGP signature


Re: [gentoo-user] Gentoo is the best linux distro

2012-09-11 Thread Philip Webb
120910 Paul Hartman wrote:
 On Mon, Sep 10, 2012 at 4:46 PM, Chris Stankevitz
 Gentoo is the best distribution I have used ...
 I love watching  questioning what is going to be installed.
 Supposedly Gentoo lacks being able to just work without thinking,
 but in my experience this simply isn't the case anywhere.
 With Ubuntu I had trouble with sound and ethernet cards
 that I could never figure out
 and the kind of answers I get on their forums drive me insane.

When I wanted to install Linux on my new netbook 2008,
I quickly found that the simplest way to get everything to work
was to install Gentoo, using my notes from previous desktop installs.
In Gentoo, problems are almost always just  1  layer deep,
tho' the Gentoo Forum also tends to be much more noise than signal.

 That's how I felt, too, in 2003 or 2004 when I first installed Gentoo
 and I've been using it ever since and still feel the same way.
 I'm okay with more responsibility in exchange for more control.
 Sometimes it makes you think about what you're doing more
 than some other distros, but thinking is fun.

Exactly my own experience, also since 2003,
when Mandrake was slow to bring out its new version,
other distros didn't install properly  I finally tried Gentoo:
suddenly I found myself looking at a working system on my screen !
-- that machine still runs well enough as a stand-by
without any re-installation  I can update 'world' after   1 year .

My picture is that using M$ is like staying in a mediocre over-priced hotel,
where there are many locked doors marked 'Private: staff only!',
it's not safe to eat in the restaurant  Security gets angry sometimes.
Binary Linux distros are like living in a fairly good apartment building,
but you're still dependent on company staff + policies.
Gentoo is like owning your own house.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




[gentoo-user] Re: USB automount

2012-09-11 Thread Nikos Chantziaras

On 11/09/12 11:56, Philip Webb wrote:

120911 Walter Dnes wrote:

On Mon, Sep 10, 2012 Chris Stankevitz asked how to automount a USB stick :
A GUI is not necessary.  Every time a USB device is inserted or removed,
an event is triggered by the kernel.  What's required is
an event handler that reacts appropriately to those events.
This is usually udev, but mdev will also work.
See https://wiki.gentoo.org/wiki/Mdev/Automount_USB


Why do people want to automount these sticks ?


Because 99.9% of the time, the sole reason you plugged them in is to 
mount them rather than just watch its LED light up :-P  There's no 
reason not to mount them.





[gentoo-user] Re: Gentoo is the best linux distro

2012-09-11 Thread Nikos Chantziaras

On 11/09/12 01:12, Alan McKinnon wrote:

On Mon, 10 Sep 2012 14:46:14 -0700
Chris Stankevitz chrisstankev...@gmail.com wrote:


Gentoo is the best distribution I have used (I haven't used too many:
ubuntu, fedora, gentoo).  I love the USE flags.  I love watching (and
questioning) what is going to be installed.  I love emerge.
Supposedly gentoo lacks being able to have a system just work
without thinking about anything.  But in my experience on linux, this
simply isn't the case anywhere.  With ubuntu, for example, I had
trouble with sound and ethernet cards that I could never figure out...
and the kind of answers I get on their forums drive me insane (my
uncle once said that his cousin typed this magical command and it
worked fine for a little while so maybe try that).

And what's the deal with these major release versions of the other
distros?  Why do that?


They are binary distros so they have no choice. For the duration of
that version's life, all the packages shipped must all work together
and that is only possible if the ABI does not change.


Arch Linux is a binary distro (by default, at least) and it seems to 
have gotten this right though.





Re: [gentoo-user] Re: Reinstall + switch to KDE

2012-09-11 Thread Samuraiii

On 2012-09-11 11:42, Neil Bothwick wrote:
 On Tue, 11 Sep 2012 10:27:35 +0200, Samuraiii wrote:

 The whole problem lies in that the gcc in configure phase is looking for
 */usr/local/include* and not for /usr/include...
 I'm not able to find where and what has changed...
 env | grep usr/local

 or the brute force approach

 grep -r usr/local /etc



I didn't find anything suspicious...
That's the problem:
*env | grep usr/local*
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4
MANPATH=/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.4/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.22/man:/etc/java-config/system-vm/man/:/usr/lib64/php5.4/man/
XDG_DATA_DIRS=/usr/local/share:/usr/share:/usr/share/gdm


*grep -r usr/local /etc (shortened version - no config-archive, php, *~
files and alike)*

/etc/csh.env:setenv MANPATH
'/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.4/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.22/man:/etc/java-config/system-vm/man/:/usr/lib64/php5.4/man/'
/etc/csh.env:setenv XDG_DATA_DIRS
'/usr/local/share:/usr/share:/usr/share/gdm'
/etc/ld.so.conf:/usr/local/lib64
/etc/ld.so.conf:/usr/local/lib32
/etc/ld.so.conf:/usr/local/lib
/etc/prelink.conf:-h /usr/local/lib64/
/etc/prelink.conf:-h /usr/local/lib32/
/etc/prelink.conf:-h /usr/local/lib/
/etc/X11/xinit/xinitrc.d/15-xdg-data-gnome:export
XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/
/etc/env.d/00basic:MANPATH=/usr/local/share/man:/usr/share/man
/etc/env.d/00basic:LDPATH='/lib64:/usr/lib64:/usr/local/lib64:/lib32:/usr/lib32:/usr/local/lib32:/lib:/usr/lib:/usr/local/lib'
/etc/env.d/30xdg-data-local:XDG_DATA_DIRS=/usr/local/share
/etc/make.conf:#PORTDIR_OVERLAY=/usr/local/portage
/etc/security/pam_env.conf:#PATH   
DEFAULT=${HOME}/bin:/usr/local/bin:/bin\
/etc/security/pam_env.conf:#:/usr/bin:/usr/local/bin/X11:/usr/bin/X11
/etc/profile.env:export
MANPATH='/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.4/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.22/man:/etc/java-config/system-vm/man/:/usr/lib64/php5.4/man/'
/etc/profile.env:export
XDG_DATA_DIRS='/usr/local/share:/usr/share:/usr/share/gdm'
/etc/aide/aide.conf:/usr/local/bin Binlib
/etc/aide/aide.conf:/usr/local/sbin Binlib
/etc/aide/aide.conf:/usr/local/lib Binlib
/etc/aide/aide.conf:/usr/local/man ManPages
/etc/aide/aide.conf:/usr/local/src L
/etc/aide/aide.conf:/usr/local/include L
/etc/profile:   
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}
/etc/profile:PATH=/usr/local/bin:/usr/bin:/bin:${PATH}
/etc/preload.conf:exeprefix =
!/usr/sbin/;!/usr/local/sbin/;/usr/;/opt/;/usr/libexec/;!/
/etc/zsh/zprofile:   
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}
/etc/zsh/zprofile:PATH=/usr/local/bin:/usr/bin:/bin:${PATH}




-- 
Samuraiii
e-mail: samurai.no.d...@gmail.com mailto:samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
http://pgp.mit.edu:11371/pks/lookup?search=0x80C752EAop=vindexfingerprint=onexact=on
(obtainable on http://pgp.mit.edu)
Full copy of public timestamp block http://publictimestamp.org
signatures id-15752 (from 2012-09-11 09:00:08) is included in header of
html.


signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] emerge xfce-base/thunar: lobotomy needed

2012-09-11 Thread Chris Stankevitz
Thank you to all who are following this.

I used emerge -vptd to get some debugging info.  This is the reason
emerge wants to bring in the ~amd64 to my stable system:

Parent:(xfce-base/thunar-1.4.0::gentoo, ebuild scheduled for merge)
Depstring: || ( =gnome-base/gvfs-1.10.1[udisks,udev]
=gnome-base/gvfs-1.10.1[gdu,udev] )
Priority:  runtime
installed: gnome-base/gvfs-1.10.1::gentoo
Candidates: ['=gnome-base/gvfs-1.10.1[udisks,udev]']
   ebuild: gnome-base/gvfs-1.12.3::gentoo

I do not know how to translate to english, but these questions arise:

1. What is this saying in english?
2. Should I have the udisks USE flag set?
3. Should I have the udev USE flag set?
4. Should I have the gdu USE flag set?
5. Will (3)-(5) change the way portage brings in the gvfs dependency?

Questions (3)-(5) are not educated questions.  I really do not know
what any of that stuff does.  I just see it listed in the output above
and naturally I wondered should I set them?   The Ubuntu forums
approach would be for me to try all combinations of those three use
flags until it just works.  In this case I would prefer to understand
what is going on :)

Thank you again,

Chris



[gentoo-user] Clarifying using the button to cause a shutdown

2012-09-11 Thread Andrew Lowe

Hi all,
	I recently did a ground up rebuild of my little media computer. When it 
was running I used to push the power button to initiate a shutdown. I 
now can't remember what I had to fiddle to achieve this so that I can 
replicate this on my rebuilt box. Is the accepted way to do this as per 
the ACPI/Configuration page,


http://en.gentoo-wiki.com/wiki/ACPI/Configuration

in the wiki? I have seen some other stuff in portage concerning buttons 
on laptops but I have hazy recollections of doing the above on the box 
in question.


Thoughts greatly appreciated,

Andrew



Re: [gentoo-user] USB automount

2012-09-11 Thread Chris Stankevitz
On Mon, Sep 10, 2012 at 10:03 PM, Walter Dnes waltd...@waltdnes.org wrote:
 Every time that a USB device is inserted or removed, an
 event is triggered by the kernel.  What's required is an event
 handler that reacts appropriately to those events.  This is usually
 udev, but mdev will also work.  I've replaced udev with mdev on my
 machine ( see https://wiki.gentoo.org/wiki/Mdev ) and I've implemented
 USB automounting under mdev, using scripts.  It works even in text
 console mode.  See https://wiki.gentoo.org/wiki/Mdev/Automount_USB

Walter,

Thank you.  What I'm hearing is:

1. There are many ways to get USB automount

2. One way is to install udev and fabricate the correct scripting to
cause the automount to take place

3. By some magic a GUI system such as GNOME, XFCE, TWM, etc will
recognize when (2) happens and show an icon on the desktop [I'm
talking somewhat tongue in cheek WRT TWM]

If this is correct, I'd like to know:

a) what is the scripting I need to fabricate to get (2) to work correctly.

b) what is the magic by which (3) happens.

Thank you,

Chris



Re: [gentoo-user] emerge xfce-base/thunar: lobotomy needed

2012-09-11 Thread Philip Webb
120911 Chris Stankevitz wrote:
 I used emerge -vptd to get some debugging info.  This is the reason
 emerge wants to bring in the ~amd64 to my stable system:
 
 Parent:(xfce-base/thunar-1.4.0::gentoo, ebuild scheduled for merge)
 Depstring: || ( =gnome-base/gvfs-1.10.1[udisks,udev]
 =gnome-base/gvfs-1.10.1[gdu,udev] )
 Priority:  runtime
 installed: gnome-base/gvfs-1.10.1::gentoo
 Candidates: ['=gnome-base/gvfs-1.10.1[udisks,udev]']
ebuild: gnome-base/gvfs-1.12.3::gentoo
 
 I really do not know what any of that stuff does.
 The Ubuntu forums approach would be for me to try all combinations
 until it just works.  I would prefer to understand what is going on.

Sometimes the former is the best way to achieve the latter (smile).

I have Thunar installed with USE='-udev', but I also have Gvfs installed
 'emerge -cpv gvfs' tells me it's needed for Thunar.
My conclusion is that this dependency is absolute
 that's confirmed by looking at the ebuild itself,
which says  GVFS_DEPEND==gnome-base/gvfs-1.10.1 .

HTH a bit

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] emerge xfce-base/thunar: lobotomy needed

2012-09-11 Thread Chris Stankevitz
On Tue, Sep 11, 2012 at 8:12 AM, Chris Stankevitz
chrisstankev...@gmail.com wrote:
 Questions (3)-(5)

This should have said (2)-(4).

===

The problem is solved in the Ubuntu sense.  I suspect that I
encountered some kind of portage bug or oddity on the way.

I solved the problem by:
1. removed global USE flag -gnome
2. added global USE flag fuse
3. added global USE flag udisks
4. added global USE flag gdu
5. emerge -DNa world


Some/all of the above steps allowed me to successfully emerge -vat
thunar-volman

Now here is the weird part:

thunar-volman demands thunar with the udev USE flag.  Before steps
(1)-(5) above, during install of thunar-volman portage would take it
upon itself to add the udev USE flag to thunar.  And consequently pull
in an ~amd64 version of gvfs.

After steps (1)-(5) above, during install of thunar-volman, portage
would halt the process with the common complaint: please add udev USE
flag to thunar.  I added the USE flag and then portage happily
installed thunar-volman.

Weird!

===

I'm a little upset I solved this using the Ubuntu approach of try a
bunch of random crap until it works (in this case the random crap was
me turning on global USE flags without really knowing why).  I guessed
to turn on those USE flags due to the output of emerge -d which I
posted earlier.

Thanks for your help everyone,

Chris



Re: [gentoo-user] Weird hibernate problem

2012-09-11 Thread Canek Peláez Valdés
On Tue, Sep 11, 2012 at 2:04 AM, Timur Aydin t...@taydin.org wrote:
 On 9/11/2012 6:31 AM, W.Kenworthy wrote:
 Hi Timur, we need a lot more information:

 what kernel version
 in kernel or ToI hibernation
 are you using genkernel
 separate /usr
 lvm

 and anything else applicable.

 Hibernation can be a pig to get going.


 Hi, here is the additional information:

 System is ~x86 with 3.5.3 kernel that I compiled myself. Config is
 attached. Not sure whether I am using in kernel or ToI hibernation. But
 to hibernate, I have initially tried using the command line tools of
 pm-utils (pm-hibernate). In the end, I wanted to configure KDE so that I
 can quickly hibernate my development system to conserve electricity.
 /usr is not separate, but /home is on a separate partition. Here are the
 partitions:

 /dev/sda1 (/boot)
 /dev/sda2 (/home)
 /dev/sda3 (/)
 /dev/sda5 (swap)
 /dev/sda6 (swap, used for hibernation)
 /dev/sda7 (/backup)

 /dev/sdb1 (1. raid disk)
 /dev/sdc1 (2. raid disk)
 /dev/sdd1 (3. raid disk)
 /dev/sde1 (4. raid disk)
 /dev/sdf1 (5. raid disk)

 I did a few more tests. If I keep suspending the system and waking it
 up, the number of kworker, migrate and ksoftirq threads is increasing.

Mmmh. You didn't set CONFIG_PM_STD_PARTITION:

CONFIG_PM_STD_PARTITION=

Set it to /dev/sda6, and see if it helps. Also, can we have a look at
yout /etc/fstab file?

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] USB automount

2012-09-11 Thread Canek Peláez Valdés
On Tue, Sep 11, 2012 at 10:30 AM, Chris Stankevitz
chrisstankev...@gmail.com wrote:
 On Mon, Sep 10, 2012 at 10:03 PM, Walter Dnes waltd...@waltdnes.org wrote:
 Every time that a USB device is inserted or removed, an
 event is triggered by the kernel.  What's required is an event
 handler that reacts appropriately to those events.  This is usually
 udev, but mdev will also work.  I've replaced udev with mdev on my
 machine ( see https://wiki.gentoo.org/wiki/Mdev ) and I've implemented
 USB automounting under mdev, using scripts.  It works even in text
 console mode.  See https://wiki.gentoo.org/wiki/Mdev/Automount_USB

 Walter,

 Thank you.  What I'm hearing is:

 1. There are many ways to get USB automount

Correct.

 2. One way is to install udev and fabricate the correct scripting to
 cause the automount to take place

That it's the I want to do it by hand way.

 3. By some magic a GUI system such as GNOME, XFCE, TWM, etc will
 recognize when (2) happens and show an icon on the desktop [I'm
 talking somewhat tongue in cheek WRT TWM]

That is the automagical™ way.

 If this is correct, I'd like to know:

 a) what is the scripting I need to fabricate to get (2) to work correctly.

I you want to do it by hand (which is as useful as trying to drive a
car as the Flinstones, i.e., with your own feet), you need to create
an udev rule. An old tutorial on that is:

http://www.reactivated.net/writing_udev_rules.html

It's a little outdated, since from some years ago it has been working
out-of-the-box in almost all Linux distros, specially if they
install and configure udev as intended by its upstream. So the need
for users to handle udev rules has been greatly reduced.

 b) what is the magic by which (3) happens.

It's not magic; just the modern desktop environments install a program
(or programs) that installs udev rules, and that handle things like
the pretty icons (or notifications, or whatever). In GNOME 3 case, the
program is udisks (version 2), which installs:

/usr/lib/udev/rules.d/80-udisks2.rules

Then it handles everything for you. Please also note that USB stick
mounting is just *ONE* of the gazillion things udev (and other parts
of the stack) takes care of. For example, in this screenshot:

https://plus.google.com/115256116066287398549/posts/JX6kRciZ9zA

I'm configuring Skype to use my bluetooth head set for input/output of
sound, while the rest of my system keeps using the desktop sound card.
The whole shebang is powered by udev (for detecting the headset as
source/sink for audio), bluez (for pairing it), pulseaudio (for
switching sound streams on the fly), etc. You can (of course) do all
of this by hand, but it gets pretty convoluted after a while.

Mounting USB sticks is easy; as Philip said, you can do it with
mount in a terminal as root (for example). It could be argued about
how smart is to do it, but it's easy alright.

I care more about stuff like the above screenshot; I could argue that
it's easier (or at least not as difficult) to set up a BT headset for
use with Skype on the fly on Linux than on Mac OS X or Windows. For
that level of easiness and  automagicality™, you need the whole stack
working correctly.

It is nice to learn how to do all of that by hand; if you have the
time (and the interest) is a nice thing to do. For doing real work,
it's not very useful.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] Weird hibernate problem

2012-09-11 Thread Timur Aydin
On 09/11/12 19:08, Canek Peláez Valdés wrote:
 Mmmh. You didn't set CONFIG_PM_STD_PARTITION:
 

I specified the partition on the kernel command line:

ta@bonsai ~/uclinux_2011R1/db1/uclinux-dist $ cat /boot/grub/grub.conf
timeout 30
default 0
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo
root (hd0,0)
kernel /vmlinuz root=/dev/sda3 resume=/dev/sda6

title Gentoo.old
root (hd0,0)
kernel /vmlinuz.old root=/dev/sda3 resume=/dev/sda6

 CONFIG_PM_STD_PARTITION=
 
 Set it to /dev/sda6, and see if it helps. Also, can we have a look at
 yout /etc/fstab file?

Here is /etc/fstab:

# fs  mountpointtype  opts
dump/pass

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1   /boot   ext2noatime 1 2
/dev/sda2   /home   ext3noatime 0 2
/dev/sda3   /   ext3noatime 0 1
/dev/sda5   noneswapsw  0 0
/dev/sda7   /backup ext3noatime 0 2
/dev/cdrom  /mnt/cdrom  autonoauto,ro   0 0

I want to attach the ps ax output before and after hibernate, but I am
concerned about filesystem corruption with all those kworker threads
lurking around...

Timur



Re: [gentoo-user] Weird hibernate problem

2012-09-11 Thread Canek Peláez Valdés
On Tue, Sep 11, 2012 at 11:52 AM, Timur Aydin t...@taydin.org wrote:
 On 09/11/12 19:08, Canek Peláez Valdés wrote:
 Mmmh. You didn't set CONFIG_PM_STD_PARTITION:


 I specified the partition on the kernel command line:

 ta@bonsai ~/uclinux_2011R1/db1/uclinux-dist $ cat /boot/grub/grub.conf
 timeout 30
 default 0
 splashimage=(hd0,0)/boot/grub/splash.xpm.gz

 title Gentoo
 root (hd0,0)
 kernel /vmlinuz root=/dev/sda3 resume=/dev/sda6

 title Gentoo.old
 root (hd0,0)
 kernel /vmlinuz.old root=/dev/sda3 resume=/dev/sda6

That is for resuming; not for actually hibernating.

 CONFIG_PM_STD_PARTITION=

 Set it to /dev/sda6, and see if it helps. Also, can we have a look at
 yout /etc/fstab file?

 Here is /etc/fstab:

 # fs  mountpointtype  opts
 dump/pass

 # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
 /dev/sda1   /boot   ext2noatime 1 2
 /dev/sda2   /home   ext3noatime 0 2
 /dev/sda3   /   ext3noatime 0 1
 /dev/sda5   noneswapsw  0 0
 /dev/sda7   /backup ext3noatime 0 2
 /dev/cdrom  /mnt/cdrom  autonoauto,ro   0 0

 I want to attach the ps ax output before and after hibernate, but I am
 concerned about filesystem corruption with all those kworker threads
 lurking around...

I hibernate my desktop all the time. I only have a swap partition, and
it's both set in CONFIG_PM_STD_PARTITION and in my /etc/fstab:

CONFIG_PM_STD_PARTITION=/dev/sdc1

# fs  mountpointtype  opts  
dump/pass
LABEL=Gentoo/   ext4noatime 
0 1
LABEL=Home  /home   ext4noatime,auto
0 2
LABEL=Swap  noneswapsw  
0 0
shm /dev/shmtmpfs   nodev,nosuid,noexec 
0 0
tmpfs   /tmptmpfs   defaults,nosuid,size=100%   
0 0

# swaplabel /dev/sdc1
LABEL: Swap
UUID:  28a9478e-8b53-4591-8fec-64512eeadf6c

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] emerge xfce-base/thunar: lobotomy needed

2012-09-11 Thread Volker Armin Hemmann
Am Montag, 10. September 2012, 17:53:23 schrieb Chris Stankevitz:
 I installed xfce4-meta and was a little surprised to see it did not
 come with thunar.   When I tried to install it, portage became upset.
 
 Question: is it normal that I would have to ~amd64 a bunch of packages
 and deal with slot conflicts and static-libs to install a file
 manager?  FYI I am running a stable (non-~AMD64) system.
 
 Thank you,
 
 Chris
 
 ===
 
 # emerge -pv xfce-base/thunar
 
 These are the packages that would be merged, in order:
 
 Calculating dependencies... done!
 
 !!! Multiple package instances within a single package slot have been pulled
 !!! into the dependency graph, resulting in a slot conflict:
 
 dev-libs/libgcrypt:0
 
   (dev-libs/libgcrypt-1.5.0-r2::gentoo, ebuild scheduled for merge) pulled
 in by dev-libs/libgcrypt[static-libs] required by
 (sys-fs/cryptsetup-1.4.1::gentoo, ebuild scheduled for merge)
 
   (dev-libs/libgcrypt-1.5.0-r2::gentoo, installed) pulled in by
 (no parents that aren't satisfied by other packages in this slot)
 
 sys-libs/zlib:0
 
   (sys-libs/zlib-1.2.5.1-r2::gentoo, installed) pulled in by
 (no parents that aren't satisfied by other packages in this slot)
 
   (sys-libs/zlib-1.2.7::gentoo, ebuild scheduled for merge) pulled in by
 
 =sys-libs/zlib-1.2.6 required by (sys-apps/kmod-10::gentoo,
 
 ebuild scheduled for merge)
 
 dev-libs/popt:0
 
   (dev-libs/popt-1.16-r1::gentoo, ebuild scheduled for merge) pulled in by
 
 =dev-libs/popt-1.16-r1[static-libs] required by
 
 (sys-fs/cryptsetup-1.4.1::gentoo, ebuild scheduled for merge)
 
   (dev-libs/popt-1.16-r1::gentoo, installed) pulled in by
 (no parents that aren't satisfied by other packages in this slot)
 
 dev-libs/glib:2
 
   (dev-libs/glib-2.32.4::gentoo, ebuild scheduled for merge) pulled in by
 
 =dev-libs/glib-2.32.4:2 required by
 
 (dev-util/gdbus-codegen-2.32.4::gentoo, ebuild scheduled for merge)
 (and 3 more with the same problem)
 
   (dev-libs/glib-2.30.3::gentoo, installed) pulled in by
 (no parents that aren't satisfied by other packages in this slot)
 
 
 It may be possible to solve this problem by using package.mask to
 prevent one of those packages from being selected. However, it is also
 possible that conflicting dependencies exist such that they are
 impossible to satisfy simultaneously.  If such a conflict exists in
 the dependencies of two different packages, then those packages can
 not be installed simultaneously. You may want to try a larger value of
 the --backtrack option, such as --backtrack=30, in order to see if
 that will solve this conflict automatically.
 
 For more information, see MASKED PACKAGES section in the emerge man
 page or refer to the Gentoo Handbook.
 
 
 The following keyword changes are necessary to proceed:
 #required by sys-fs/udisks-1.99.0-r1, required by
 gnome-base/gvfs-1.12.3[udisks], required by
 xfce-base/thunar-1.4.0[dbus,xfce_plugins_trash], required by
 xfce-base/thunar (argument)
 =sys-auth/polkit-0.107 ~amd64
 #required by dev-util/gdbus-codegen-2.32.4, required by
 sys-fs/udisks-1.99.0-r1, required by gnome-base/gvfs-1.12.3[udisks],
 required by xfce-base/thunar-1.4.0[dbus,xfce_plugins_trash], required
 by xfce-base/thunar (argument)
 =dev-libs/glib-2.32.4 ~amd64
 #required by sys-fs/udev-init-scripts-16
 =sys-fs/udev-189 ~amd64
 #required by sys-fs/udev-189[openrc], required by
 dev-libs/libatasmart-0.19, required by sys-fs/udisks-1.99.0-r1,
 required by gnome-base/gvfs-1.12.3[udisks], required by
 xfce-base/thunar-1.4.0[dbus,xfce_plugins_trash], required by
 xfce-base/thunar (argument)
 =sys-fs/udev-init-scripts-16 ~amd64
 #required by sys-fs/udev-189, required by sys-fs/udev-init-scripts-16
 =sys-apps/kmod-10 ~amd64
 #required by sys-apps/kmod-10[zlib], required by sys-fs/udev-189,
 required by sys-fs/udev-init-scripts-16
 =sys-libs/zlib-1.2.7 ~amd64
 #required by xfce-base/thunar-1.4.0[dbus,xfce_plugins_trash], required
 by xfce-base/thunar (argument)
 =gnome-base/gvfs-1.12.3 ~amd64
 #required by gnome-base/gvfs-1.12.3[udisks], required by
 xfce-base/thunar-1.4.0[dbus,xfce_plugins_trash], required by
 xfce-base/thunar (argument)
 =sys-fs/udisks-1.99.0-r1 ~amd64
 #required by sys-fs/udisks-1.99.0-r1, required by
 gnome-base/gvfs-1.12.3[udisks], required by
 xfce-base/thunar-1.4.0[dbus,xfce_plugins_trash], required by
 xfce-base/thunar (argument)
 =dev-util/gdbus-codegen-2.32.4 ~amd64
 #required by sys-fs/udev-189[hwdb], required by sys-fs/udev-init-scripts-16
 =sys-apps/hwids-20120831 ~amd64
 #required by sys-auth/polkit-0.107, required by
 sys-fs/udisks-1.99.0-r1, required by gnome-base/gvfs-1.12.3[udisks],
 required by xfce-base/thunar-1.4.0[dbus,xfce_plugins_trash], required
 by xfce-base/thunar (argument)
 =dev-lang/spidermonkey-1.8.5-r1 ~amd64
 
 The following USE changes are necessary to proceed:
 #required by xfce-base/thunar-1.4.0[dbus,xfce_plugins_trash], required
 by xfce-base/thunar (argument)
 
 =gnome-base/gvfs-1.12.3 

Re: [gentoo-user] emerge xfce-base/thunar: lobotomy needed

2012-09-11 Thread Mark Knecht
On Mon, Sep 10, 2012 at 5:53 PM, Chris Stankevitz
chrisstankev...@gmail.com wrote:
 I installed xfce4-meta and was a little surprised to see it did not
 come with thunar.   When I tried to install it, portage became upset.

 Question: is it normal that I would have to ~amd64 a bunch of packages
 and deal with slot conflicts and static-libs to install a file
 manager?  FYI I am running a stable (non-~AMD64) system.

 Thank you,

 Chris

SNIP

Hi Chris,
   I think you got your problem solved if my quick scan of this thread
is correct. However one comment I didn't see come up was to point out
that it can make a huge difference in terms of use flag choices
depending on which system profile you choose to orient your system
around. In the case of my wife's XFCE machine I found that using the
plain profile worked pretty well, but when I added KDE to it (I use
KDE when sitting on that machine) I needed to add a lot of use flags
and keyword a number of files. In the case of my own systems I choose
the KDE profile which ends up with most everything use flag oriented
pretty optimized for KDE. (No surprise.)

   Anyway, as you're new to Gentoo and looking for more in-depth
answers, I wanted to just make sure you at least considered the system
profile chosen and it's effect on what you have to do to emerge
packages.

Cheers,
Mark

k2 ~ # eselect profile list
Available profile symlink targets:
  [1]   default/linux/amd64/10.0 *
  [2]   default/linux/amd64/10.0/selinux
  [3]   default/linux/amd64/10.0/desktop
  [4]   default/linux/amd64/10.0/desktop/gnome
  [5]   default/linux/amd64/10.0/desktop/kde
  [6]   default/linux/amd64/10.0/developer
  [7]   default/linux/amd64/10.0/no-multilib
  [8]   default/linux/amd64/10.0/server
  [9]   hardened/linux/amd64
  [10]  hardened/linux/amd64/selinux
  [11]  hardened/linux/amd64/no-multilib
  [12]  hardened/linux/amd64/no-multilib/selinux
k2 ~ #



[gentoo-user] new machine : mouse trouble

2012-09-11 Thread Philip Webb
My new machine boots  has the basic software installed.
Fluxbox starts  I can stop it via its menu  the keyboard.

However, it doesn't recognise my Logitech optical mouse,
which doesn't show up in the 'dmesg' list nor as  /dev/input/mouse0 .

It's not a hardware problem : rebooting into System Rescue
without touching the connections results in a working mouse
 it is listed correctly there by 'dmesg'  as  /dev/input/mouse0 .

I've checked the Kernel settings  they seem all to be where they sb,
but the new machine is using 3.5.3 , whereas this one uses 3.4.0 .
I used the older  .config , went thro' 'make oldconfig'
 then thro' 'make menuconfig', so the same mouse lines should remain.
Has anything changed in Kernel 3.5 ?

 /etc/make.conf  has the line  INPUT_DEVICES=evdev , like this machine.
Udev doesn't seem to differ significantly.

Google doesn't help, the Gentoo Wiki seems a bit out of date,
the User's Guide doesn't add anything.  Unfortunately,
when I started using a USB mouse back in 2007 ,
I didn't make a note of what I did to get it working, as I usually do.

Can anyone suggest what I'm missing ?

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] new machine : mouse trouble

2012-09-11 Thread Paul Hartman
On Tue, Sep 11, 2012 at 3:21 PM, Philip Webb purs...@ca.inter.net wrote:
 My new machine boots  has the basic software installed.
 Fluxbox starts  I can stop it via its menu  the keyboard.

 However, it doesn't recognise my Logitech optical mouse,
 which doesn't show up in the 'dmesg' list nor as  /dev/input/mouse0 .

 It's not a hardware problem : rebooting into System Rescue
 without touching the connections results in a working mouse
  it is listed correctly there by 'dmesg'  as  /dev/input/mouse0 .

 I've checked the Kernel settings  they seem all to be where they sb,
 but the new machine is using 3.5.3 , whereas this one uses 3.4.0 .
 I used the older  .config , went thro' 'make oldconfig'
  then thro' 'make menuconfig', so the same mouse lines should remain.
 Has anything changed in Kernel 3.5 ?

  /etc/make.conf  has the line  INPUT_DEVICES=evdev , like this machine.
 Udev doesn't seem to differ significantly.

 Google doesn't help, the Gentoo Wiki seems a bit out of date,
 the User's Guide doesn't add anything.  Unfortunately,
 when I started using a USB mouse back in 2007 ,
 I didn't make a note of what I did to get it working, as I usually do.

 Can anyone suggest what I'm missing ?

I recently had mouse/keyboard fail to work in X, despite drivers being
rebuilt, and the solution for me was to put this in my Xorg.conf file:

Section ServerFlags
Option AutoAddDevices true
Option AutoEnableDevices true
EndSection



Re: [gentoo-user] USB automount

2012-09-11 Thread Walter Dnes
On Tue, Sep 11, 2012 at 10:41:22AM +0100, Neil Bothwick wrote

  I goto the root console which is always open on one of my desktops
   enter 'musb', which is a Bash alias for a 'mount' command;
 
 Leaving aside the implications of leaving open a root console,

  My scripts use pmount and pumount, which are hard-coded to only
mount/unmount devices in directory /media.

 that mounts the stick as root. That's fine for a FAT filesystem as
 you can specify mount options to make it world-readable, but what
 about an external drive formatted with ext? What about an external
 drive with multiple partitions?

  pmount/pumount to the rescue.  See...
http://manpages.ubuntu.com/manpages/natty/man1/pmount.1.html

-- 
Walter Dnes waltd...@waltdnes.org
I don't run desktop environments; I run useful applications



Re: [gentoo-user] new machine : mouse trouble

2012-09-11 Thread Walter Dnes
On Tue, Sep 11, 2012 at 04:21:29PM -0400, Philip Webb wrote

  /etc/make.conf  has the line  INPUT_DEVICES=evdev , like this machine.
 Udev doesn't seem to differ significantly.

  I don't have evdev at all.  My /etc/portage/make.conf has...

INPUT_DEVICES=keyboard mouse

 I've checked the Kernel settings  they seem all to be where they sb,
 but the new machine is using 3.5.3 , whereas this one uses 3.4.0 .
 I used the older  .config , went thro' 'make oldconfig'  then thro'
 'make menuconfig', so the same mouse lines should remain.  Has anything
 changed in Kernel 3.5 ?

  Nothing recent.  I have a Logitech ball-mouse.  The most recent change
I remember is that you may need to set HID support.  In my desktop's
.config, I have...

Device Drivers  ---
  [*] HID Devices  ---
-*-   Generic HID support
[*] /dev/hidraw raw HID device support
*   USB Human Interface Device (full HID) support
[*]   PID device support
[*]   /dev/hiddev raw HID device support
  Special HID drivers  ---

And under Special HID drivers  --- I have
   -*- Logitech devices
   M   Logitech Unifying receivers full support
   [*]   Logitech force feedback support
   [*]   Logitech wheels configuration and force feedback support

  The last 2 items with force feedback may be redundant, but I left
them in there since they don't seem to hurt.

-- 
Walter Dnes waltd...@waltdnes.org
I don't run desktop environments; I run useful applications



Re: [gentoo-user] USB automount

2012-09-11 Thread Michael Mol
On Tue, Sep 11, 2012 at 5:55 PM, Walter Dnes waltd...@waltdnes.org wrote:

 On Tue, Sep 11, 2012 at 10:41:22AM +0100, Neil Bothwick wrote

   I goto the root console which is always open on one of my desktops
enter 'musb', which is a Bash alias for a 'mount' command;
 
  Leaving aside the implications of leaving open a root console,

   My scripts use pmount and pumount, which are hard-coded to only
 mount/unmount devices in directory /media.

  that mounts the stick as root. That's fine for a FAT filesystem as
  you can specify mount options to make it world-readable, but what
  about an external drive formatted with ext? What about an external
  drive with multiple partitions?

   pmount/pumount to the rescue.  See...
 http://manpages.ubuntu.com/manpages/natty/man1/pmount.1.html


I didn't know about that. That's...awesome. And it'll save me trouble.

This is why I like this list; I learn stuff just by listening in.

-- 
:wq


Re: [gentoo-user] USB automount

2012-09-11 Thread Neil Bothwick
On Tue, 11 Sep 2012 17:55:41 -0400, Walter Dnes wrote:

   I goto the root console which is always open on one of my desktops
enter 'musb', which is a Bash alias for a 'mount' command;  
  
  Leaving aside the implications of leaving open a root console,  
 
   My scripts use pmount and pumount, which are hard-coded to only
 mount/unmount devices in directory /media.

It's the idea of leaving a root console open for all to access that is
the issue, not the commands you run in it.

  that mounts the stick as root. That's fine for a FAT filesystem as
  you can specify mount options to make it world-readable, but what
  about an external drive formatted with ext? What about an external
  drive with multiple partitions?  
 
   pmount/pumount to the rescue.  See...
 http://manpages.ubuntu.com/manpages/natty/man1/pmount.1.html

I know about pmount, I use it myself. It mounts as the user running it,
which is fine from a (non-root) terminal, but udevd is running as root,
as are any programs it runs.


-- 
Neil Bothwick

Top Oxymorons Number 40: Same difference


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Gentoo is the best linux distro

2012-09-11 Thread Pandu Poluan
On Sep 11, 2012 5:29 PM, Nikos Chantziaras rea...@gmail.com wrote:

 On 11/09/12 01:12, Alan McKinnon wrote:

 On Mon, 10 Sep 2012 14:46:14 -0700
 Chris Stankevitz chrisstankev...@gmail.com wrote:

 Gentoo is the best distribution I have used (I haven't used too many:
 ubuntu, fedora, gentoo).  I love the USE flags.  I love watching (and
 questioning) what is going to be installed.  I love emerge.
 Supposedly gentoo lacks being able to have a system just work
 without thinking about anything.  But in my experience on linux, this
 simply isn't the case anywhere.  With ubuntu, for example, I had
 trouble with sound and ethernet cards that I could never figure out...
 and the kind of answers I get on their forums drive me insane (my
 uncle once said that his cousin typed this magical command and it
 worked fine for a little while so maybe try that).

 And what's the deal with these major release versions of the other
 distros?  Why do that?


 They are binary distros so they have no choice. For the duration of
 that version's life, all the packages shipped must all work together
 and that is only possible if the ABI does not change.


 Arch Linux is a binary distro (by default, at least) and it seems to have
gotten this right though.



Strangely enough, I never managed to deploy Arch production servers. Always
got stuck in staging, after I tried setting up some packages, they always
end up not working.

It was most likely a fault of mine, not knowing the proper incantations and
druidic maneouvres required to run it properly... but I was impatient, and
was already *very* familiar with Gentoo, so I switched gear completely.
Within 24 hours -- most of the time taken by my obsession of 'remerging the
world using graphite, 3 times', I got me a properly running staging server
(and it got pushed into production after two weeks).

The beauty of Gentoo, IMO, is that I know exactly what is going on in my
servers. Entering the shell, I can figuratively feel the pulse of the beast.

In my current employment, I have to sadly say that I'm no longer using
Gentoo. The OS spec is set by the guys in the 'Application' Sub-Department,
and they invariably ask for either CentOS or Ubuntu... which I might add,
are all working well.

Again, I'm not bad-mouthing Arch, but for me it's an unsatisfying middle
ground between true rolling release distro (Gentoo) and versioned binary
distro (Ubuntu, CentOS). Of course, YMMV, but after my experience, I'd
settle at either end of the spectrum, not in the middle.

Rgds,


Re: [gentoo-user] USB automount

2012-09-11 Thread Walter Dnes
On Tue, Sep 11, 2012 at 11:51:30PM +0100, Neil Bothwick wrote

 It's the idea of leaving a root console open for all to access that is
 the issue, not the commands you run in it.

  Fully agree that's a bad idea.  My system uses sudoers.  I.e. in
/etc/sudoers.d/001 I have the lines...

user2 d531 = (root) NOPASSWD: /usr/local/bin/ux *
waltdnes  d531 = (root) NOPASSWD: /usr/local/bin/ux *

...where /usr/local/bin/ux consists of...

#!/bin/busybox ash
pumount ${1}

...and in my home directory I have ~/bin/um which consists of...

#! /bin/busybox ash
sudo /usr/local/bin/ux ${1}

...So I can, as a regular user, execute at the commandline...

um sdb1

...and /media/sdb1 is unmounted.  No need to log on as root or have a
root shell.

-- 
Walter Dnes waltd...@waltdnes.org
I don't run desktop environments; I run useful applications