Re: [gentoo-user] can not mount USB stick as user

2014-02-06 Thread Neil Bothwick
On Wed, 5 Feb 2014 17:32:13 -0700, Joseph wrote:

 You don't need to change grub.conf to reboot with different options,
 just press e and edit the options in place.

 When I try to boot I'm getting an error:
 
 VFS: Can not open device hda3 or unknown block (0,0): error -6

You can change GRUB settings from the GRUB menu, before you try to boot
the kernel, press e as in my previous post.

It seems you are getting into a mess with the systemd switch and trying
all sorts of things at random. The old rule of when you find yourself in
a hold, stop digging applies here.

Stop making changes in the hope of getting things working, when you could
be making them worse to the extent that your system will still be broken
when you fix the original problem. Go back to the systemd wiki page and
follow it carefully, making sure you both understand and complete each
step, otherwise I see things getting worse for you.


-- 
Neil Bothwick

Consciousness: that annoying time between naps.


signature.asc
Description: PGP signature


[gentoo-user] genkernel-next will not mount /usr but genkernel will

2014-02-06 Thread covici
Hi folks.  I wanted to switch to using genkernel-next instead of
genkernel so eventually I could switch to using systemd.  However
genkernel-next-50 will not mount my /usr file system.  I have everything
on lvm volumes, except my /boot which is a regular partition.  With the
regular genkernel /usr is mounted, but I can't even test systemd
bedcause it looks for realinit before /usr is even mounted.  My
genkernel command line is:
genkernel --no-clean --no-splash --lvm --e2fsprogs
--kerneldir=/usr/src/linux-3.6.2-gentoo initramfs

Now when I use genkernel-next, it would not mount /usr because it said
no such file or directory -- I guess its mount point -- not sure of
that.  It would not execute udev because it said there was a missing
library.

So, how can this be fixed?  Is there a bug in genkernel-next?

Thanks in advance for any ideas.
-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] Tcp Listener

2014-02-06 Thread 钱泽森
Maybe I miss your problem.But there is a command line program names
'netcat', which can send/receive TCP/UDP messages. also would be nice to
check its source code if you are interested to writing your own.


2014-02-04 xarman manousidis@gmail.com:

 I'm interested in making a TCP Listener in C / C++ on Linux to accept
 many connections simultaneously. I did a relative search on the Web and
 although I am aware of the C language as to a certain extent, I
 struggle to find a model program. Essentially, it is the listener of a
 server that receives a signal and stores it in a database and do some
 other functions. I know how to do the functions but I'm looking for a
 way to fix the basic skeleton of listener that will be always active.
 I'm not sure if I need multi threading or multi socketing for multi
 connections.
 If you have any knowledge on the subject or have a simple example or even
 some reference in order to work on that, I'd appreciate it.




Re: [gentoo-user] Re: can not mount USB stick as user

2014-02-06 Thread Alan McKinnon
On 06/02/2014 08:19, Peter Humphrey wrote:
 On Wednesday 05 Feb 2014 20:02:00 Joseph wrote:
 On 02/05/14 20:30, Canek Peláez Valdés wrote:
 On Wed, Feb 5, 2014 at 7:19 PM, Joseph syscon...@gmail.com wrote:
 On 02/05/14 17:00, walt wrote:
 On 02/05/2014 04:32 PM, Joseph wrote:
 Kerel panic - not syncing: VFS: Unable to mount root fs on
 unknown-block(O,0)

 Could that be the letter O instead of the digit 0?

 No, it is 0 I double checked.
 Could it be that the hard drive is going?

 I don't think so. Could you show us your GRUB configuration?

 Regards.

 Here it is: grub.conf

 default 0
 timeout 30

 title Gentoo Current Kernel
 root (hd0,0)
 kernel /boot/kernel-current root=/dev/hda3
 
 Shouldn't that hda3 in the kernel line be sda3?
 


No, he said earlier in the thread that this is an ancient box using the
old deprecated IDE subsystem.

His fstab refers to drives as hd?



-- 
Alan McKinnon
alan.mckin...@gmail.com




[gentoo-user] Re: Is VLAN configuration manual section up to date?

2014-02-06 Thread Grant Edwards
On 2014-02-06, J. Roeleveld jo...@antarean.org wrote:
 On 5 February 2014 15:58:22 CET, Grant Edwards grant.b.edwa...@gmail.com 
 wrote:
On 2014-02-05, J. Roeleveld jo...@antarean.org wrote:
 On 4 February 2014 22:27:03 CET, Grant Edwards
grant.b.edwa...@gmail.com wrote:

Are the VLAN configuration docs up to date?

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4chap=3#doc_chap10

The reason I ask is that the Gentoo docs talk about using vconfig,
while other distros have dropped vconfig and now use the ip2route 
packages 'ip' command instead:
[...]
Does Gentoo not have issues with udev trying to automagically rename
vlan network interfaces as described in the Arch Linux page?

 I disabled the udev device name randomizer to ensure I keep the eth*
 names. (I use bonding for the interfaces, don't care about the names
 as long as they all end up in the same bond)

Rather than bond them together, I'm going to use them as separate
interfaces.  I'm looking for a way to have 8 to 16 Ethernet interfaces
on some cheap old desktop machines. Connecting the motherboard
Ethernet interface to an external managed VLAN switch seems like the
way to go. So I do care what the names are -- we'll see what tricks
udev tries to play.

 If you only have 1 interface, disable udevs randomizer and use eth0.

Good idea.  The machines currently have two interfaces, but if the
vlan+switch setup works, then I can pull the second NIC out.

 When configuring the vlans you can set the names in the config.

Great!  

Thanks.

-- 
Grant Edwards   grant.b.edwardsYow! over in west
  at   Philadelphia a puppy is
  gmail.comvomiting ...




Re: [gentoo-user] Re: can not mount USB stick as user

2014-02-06 Thread Peter Humphrey
On Thursday 06 Feb 2014 14:30:24 Alan McKinnon wrote:
 On 06/02/2014 08:19, Peter Humphrey wrote:
  On Wednesday 05 Feb 2014 20:02:00 Joseph wrote:
---8
  Here it is: grub.conf
  
  default 0
  timeout 30
  
  title Gentoo Current Kernel
  root (hd0,0)
  kernel /boot/kernel-current root=/dev/hda3
  
  Shouldn't that hda3 in the kernel line be sda3?
 
 No, he said earlier in the thread that this is an ancient box using the
 old deprecated IDE subsystem.
 
 His fstab refers to drives as hd?

Yes, I saw that after I hit Send. (So what else is new?)

Seems to me that too many things need updating before Joseph can switch to the 
latest thing in init systems.

Maybe he should go back to his last working system (from backup?), go through 
his kernel config piecemeal, setting sensible options, and generally bring the 
box up to date. Then he can start experimenting with the latest ideas. (Sorry 
Joseph, I don't mean to talk about you as though you weren't here!)

I forget: how many years is it since the ancient /dev/hd? scheme was 
superseded and deprecated?

-- 
Regards
Peter




Re: [gentoo-user] Re: Is VLAN configuration manual section up to date?

2014-02-06 Thread J. Roeleveld
On 6 February 2014 15:31:58 CET, Grant Edwards grant.b.edwa...@gmail.com 
wrote:
On 2014-02-06, J. Roeleveld jo...@antarean.org wrote:
 On 5 February 2014 15:58:22 CET, Grant Edwards
grant.b.edwa...@gmail.com wrote:
On 2014-02-05, J. Roeleveld jo...@antarean.org wrote:
 On 4 February 2014 22:27:03 CET, Grant Edwards
grant.b.edwa...@gmail.com wrote:

Are the VLAN configuration docs up to date?

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4chap=3#doc_chap10

The reason I ask is that the Gentoo docs talk about using vconfig,
while other distros have dropped vconfig and now use the ip2route 
packages 'ip' command instead:
[...]
Does Gentoo not have issues with udev trying to automagically
rename
vlan network interfaces as described in the Arch Linux page?

 I disabled the udev device name randomizer to ensure I keep the
eth*
 names. (I use bonding for the interfaces, don't care about the
names
 as long as they all end up in the same bond)

Rather than bond them together, I'm going to use them as separate
interfaces.  I'm looking for a way to have 8 to 16 Ethernet
interfaces
on some cheap old desktop machines. Connecting the motherboard
Ethernet interface to an external managed VLAN switch seems like the
way to go. So I do care what the names are -- we'll see what tricks
udev tries to play.

 If you only have 1 interface, disable udevs randomizer and use eth0.

Good idea.  The machines currently have two interfaces, but if the
vlan+switch setup works, then I can pull the second NIC out.

 When configuring the vlans you can set the names in the config.

Great!  

Thanks.

-- 
Grant Edwards   grant.b.edwardsYow! over in west
   at   Philadelphia a puppy is
  gmail.comvomiting ...

If the switch supports bonding, use that as well.
I have 4 interfaces in a single bond.
On that bond I have the vlans configured.

Helps with the throughput as I have multiple machines pulling data from there 
connected to the same switch. 

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Re: [gentoo-user] Re: can not mount USB stick as user

2014-02-06 Thread J. Roeleveld
On 6 February 2014 16:09:32 CET, Peter Humphrey pe...@prh.myzen.co.uk wrote:
On Thursday 06 Feb 2014 14:30:24 Alan McKinnon wrote:
 On 06/02/2014 08:19, Peter Humphrey wrote:
  On Wednesday 05 Feb 2014 20:02:00 Joseph wrote:
---8
  Here it is: grub.conf
  
  default 0
  timeout 30
  
  title Gentoo Current Kernel
  root (hd0,0)
  kernel /boot/kernel-current root=/dev/hda3
  
  Shouldn't that hda3 in the kernel line be sda3?
 
 No, he said earlier in the thread that this is an ancient box using
the
 old deprecated IDE subsystem.
 
 His fstab refers to drives as hd?

Yes, I saw that after I hit Send. (So what else is new?)

Seems to me that too many things need updating before Joseph can switch
to the 
latest thing in init systems.

Maybe he should go back to his last working system (from backup?), go
through 
his kernel config piecemeal, setting sensible options, and generally
bring the 
box up to date. Then he can start experimenting with the latest ideas.
(Sorry 
Joseph, I don't mean to talk about you as though you weren't here!)

I forget: how many years is it since the ancient /dev/hd? scheme was 
superseded and deprecated?

-- 
Regards
Peter

Not sure. I switched my last machine over to the sd-scheme 2 holidays (sometime 
in 2012) ago. (It's a netbook I only use during holidays as a picture store and 
viewer)

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Re: [gentoo-user] can not mount USB stick as user

2014-02-06 Thread Joseph

On 02/06/14 09:09, Neil Bothwick wrote:

On Wed, 5 Feb 2014 17:32:13 -0700, Joseph wrote:


You don't need to change grub.conf to reboot with different options,
just press e and edit the options in place.



When I try to boot I'm getting an error:

VFS: Can not open device hda3 or unknown block (0,0): error -6


You can change GRUB settings from the GRUB menu, before you try to boot
the kernel, press e as in my previous post.

It seems you are getting into a mess with the systemd switch and trying
all sorts of things at random. The old rule of when you find yourself in
a hold, stop digging applies here.

Stop making changes in the hope of getting things working, when you could
be making them worse to the extent that your system will still be broken
when you fix the original problem. Go back to the systemd wiki page and
follow it carefully, making sure you both understand and complete each
step, otherwise I see things getting worse for you.


--
Neil Bothwick

Consciousness: that annoying time between naps.


I copied an old kernel config file from /boot did make oldconfig enable
systemd in the kernel
put the grub.conf ... init=/usr/lib/systemd/systemd
and it booted OK but I have no X display, no network :-/

I just realized that systemd it is almost like learning configuring new OS.
I have no time for this so I'm back pedaling to udev :-/

--
Joseph



[gentoo-user] Re: module woes

2014-02-06 Thread James
Alan McKinnon alan.mckinnon at gmail.com writes:


 Let's thin about this logically. A kernel does not get told it's
 version, it already knows that, and modules are versioned too. A kernel
 finds it's modules by looking in /path/to/modules/`uname -r`

uname -r returns:  3.13.1-gentoo

 So, either the version string is wrong in the kernel (possible I suppose
 if you copy and old .config and male oldconfig goes wrong somehow) or
 you have the wrong modules in the wrongly named directory.

Checked all of that:
ls /boot
  kernel-3.13.0-gentoo-r1   kernel-3.13.1-gentoo
   grub  lost+found kernel-3.10.25-gentoo

pluss all permission in /lib/modules/* have been recursively fixed.

the first to kernels and related dirs had a different set of
permissions than the third kernel (3.13.1-gentoo, but that
is all manually fixed now.

 If the version string correct if you runs trings against any of those
 not-loading modules and grep for vermagic?

# strings  /lib/modules/3.10.25-gentoo/kernel/net/ipv4/netfilter/nf_nat_ipv4.ko 
vermagic=3.10.25-gentoo SMP mod_unload 

# strings /lib/modules/3.13.1-gentoo/kernel/net/ipv4/netfilter/nf_nat_ipv4.ko
vermagic=3.13.1-gentoo SMP mod_unload 



 Does the correct kernel version show up when looking in strings of the
 image in /boot?

probable not. Here is what I discoved:

strings /boot/kernel-3.13.1-gentoo | grep ver
empty

strings kernel-3.10.25-gentoo  | grep ver
empty

strings /boot/kernel-3.13.1-gentoo | less

after much manual parsing
snip
This kernel requires an %s CPU, 
but only detected an %s CPU.
This kernel requires the following features not present on the CPU:
%d:%d 
earlyprintk
serial
ttyS
console
uart8250,io,
uart,io,
early console in setup code
debug
WARNING: Ancient bootloader, some functionality may be limited!
Unable to boot - please use a kernel appropriate for your CPU.
A20 gate not responding, unable to boot...
0123456789ABCDEFPress ENTER to see video modes available, SPACE to
continue, or wait 30 sec
Mode: Resolution:  Type: 
%dx%d
%c %03X %4dx%-7s %-6s
Enter a video mode or scan to scan for additional modes: 
Undefined video mode number: %x
3.13.1-gentoo (root@skipper) #1 SMP Sun Feb 2 04:37:07 EST 2014

snip
invalid distance too far back
invalid distance code
invalid literal/length code
 -- System halted
incorrect header check
unknown compression method
invalid window size
invalid block type
invalid stored block lengths
invalid code lengths set
invalid bit length repeat
invalid literal/lengths set
invalid distances set
incorrect data check
Destination address too large
Decompressing Linux... 
Not a gzip file
header error
read error
uncompression error
Parsing ELF... 
done.
Booting the kernel.
too many length or distance symbols
early console in decompress_kernel
Destination address inappropriately aligned
Out of memory while allocating output buffer
Out of memory while allocating input buffer
Out of memory while allocating z_stream
Out of memory while allocating workspace
Kernel is not a valid ELF file
Failed to allocate space for phdrs
earlyprintk
serial
ttyS
console
uart8250,io,
uart,io,
initrd=
Failed to handle fs_protoFailed to open file: 
Failed to get file info size
Failed to get file info
Failed to read file
Failed to alloc mem for gdt
EL64
Failed to alloc mem for file handle list
Failed to alloc mem for file info
Failed to alloc highmem for files
We've run out of free low memory
Failed to get handle for LOADED_IMAGE_PROTOCOL
Failed to alloc lowmem for boot params
Failed to alloc mem for gdt structure
ERROR: Failed to allocate usable memory for kernel.
end/snip
Failed to open volume

They are pretty much identical (string wise) except this line:
strings /boot/kernel-3.10.25-gentoo | less

3.10.25-gentoo (root@skipper) #3 SMP Tue Jan 14 23:18:53 EST 2014

And these lines (located at the bottom of the string parsing):

initrd=
Failed to handle fs_proto
Failed to open volume
Failed to open initrd file: 
Failed to get initrd info
Failed to read initrd
Failed to alloc mem for gdt
EL64
Failed to alloc mem for initrds
Failed to get initrd info size
Failed to alloc mem for initrd info
Failed to alloc highmem for initrds
We've run out of free low memory
Failed to get handle for LOADED_IMAGE_PROTOCOL
Failed to alloc lowmem for boot params
Failed to alloc mem for cmdline
Failed to alloc mem for gdt structure
Failed to alloc mem for idt structure
Failed to alloc mem for kernel


 
 [working theory: the kernel throws permission denied errors when it's
 asked in weird ways to load wrong versioned modules. Pure speculation,
 I've never done this at all and don't know what the error is]

The permission are all consistent now (/lib/modules/*). I'm not sure how
they got wacked, as I have not done anything with modules yet. Nore
anything messing with those perms..

Obviously, from the strings command, the kernel(s) need fixing up a bit.
I only got them to a point, to get the openbox stuff setup. The audio
and usb automounting are all that is left to 

[gentoo-user] Re: Is VLAN configuration manual section up to date?

2014-02-06 Thread Grant Edwards
On 2014-02-06, J. Roeleveld jo...@antarean.org wrote:

 If the switch supports bonding, use that as well. I have 4 interfaces
 in a single bond. On that bond I have the vlans configured.

 Helps with the throughput as I have multiple machines pulling data
 from there connected to the same switch. 

I hadn't thought about that... it doesn't look like the switch I have
at the moment supports bonding.  Since throughput isn't an issue, I
think I'd rather eliminate the complexity of the second/third/etc. NIC
card(s) in the host.  In the past I had run into problems where an OS
upgrade would cause the interface names to swap on some (but not all)
machines. With just a single interface, and udev-name-randomization
disabled, that problem goes away. :)

-- 
Grant Edwards   grant.b.edwardsYow! Hmmm ... A hash-singer
  at   and a cross-eyed guy were
  gmail.comSLEEPING on a deserted
   island, when ...




[gentoo-user] blocking -systemd

2014-02-06 Thread Joseph

I have in make.conf USE: ... -systemd
But gnome-base/gnome-settings-daemon wants to pull in systemd-208
so I need to emerge sys-apps/systemd-208-r2 and I have installed udev which 
conflicts with systemd.

Do I need to unmerge udev and emerge systemd.  I'm not planning on switching to systemd after recent experience.  So I was planning on avoiding it but I don't know 
if I can.


emerge -1avq gnome-base/gnome-settings-daemon
* Last emerge --sync was 45d 2h 15m 32s ago.
[ebuild  N] sys-apps/systemd-208-r2  USE=filecaps firmware-loader gudev introspection kmod pam policykit tcpd -acl -audit -cryptsetup -doc -gcrypt -http -lzma 
-python -qrcode (-selinux) {-test} -vanilla -xattr PYTHON_SINGLE_TARGET=python2_7 PYTHON_TARGETS=python2_7 
[ebuild  N] sys-apps/gentoo-systemd-integration-2 
[uninstall] sys-auth/nss-myhostname-0.3 
[blocks b ] =sys-apps/systemd-197 (=sys-apps/systemd-197 is blocking sys-auth/nss-myhostname-0.3)

[blocks b ] sys-auth/nss-myhostname (sys-auth/nss-myhostname is blocking 
sys-apps/systemd-208-r2)
[uninstall] app-admin/openrc-settingsd-1.0.1  USE=-systemd 
[ebuild   R   ] gnome-base/gnome-settings-daemon-3.8.6.1  USE=colord cups i18n policykit short-touchpad-timeout udev -debug (-openrc-force) (-packagekit) {-test} 
INPUT_DEVICES=-wacom 
[blocks B ] sys-fs/udev (sys-fs/udev is blocking sys-apps/systemd-208-r2)

[blocks B ] sys-apps/systemd (sys-apps/systemd is blocking 
sys-fs/udev-208, app-admin/openrc-settingsd-1.0.1)

* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.

 (sys-apps/systemd-208-r2::gentoo, ebuild scheduled for merge) pulled in by
   sys-apps/systemd required by 
(gnome-base/gnome-settings-daemon-3.8.6.1::gentoo, ebuild scheduled for merge)
   
=sys-apps/systemd-208:0/1[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,gudev?,introspection?,kmod?,selinux?,static-libs(-)?] 

(=sys-apps/systemd-208:0/1[abi_x86_32(-),gudev,introspection,kmod]) required 
by (virtual/udev-208::gentoo, installed)
   =sys-apps/systemd-207 required by 
(sys-apps/gentoo-systemd-integration-2::gentoo, ebuild scheduled for merge)

 (sys-fs/udev-208::gentoo, installed) pulled in by
   sys-fs/udev required by @selected


--
Joseph



Re: [gentoo-user] Re: module woes

2014-02-06 Thread Alan McKinnon
On 06/02/2014 18:08, James wrote:
 [working theory: the kernel throws permission denied errors when it's
  asked in weird ways to load wrong versioned modules. Pure speculation,
  I've never done this at all and don't know what the error is]
 The permission are all consistent now (/lib/modules/*). I'm not sure how
 they got wacked, as I have not done anything with modules yet. Nore
 anything messing with those perms..
 
 Obviously, from the strings command, the kernel(s) need fixing up a bit.
 I only got them to a point, to get the openbox stuff setup. The audio
 and usb automounting are all that is left to fix The points is the
 kernels should be good enough to work with? I suspect grub2, as this
 is my first forray into a bootable system with grub2
 
 
 What is stumping me is why  all three kernels boot, but the modules
 only point to 3.10.25, even when boot either the second 
 (kernel-3.13.0-gentoo-r1) kernel or the third (config-3.13.1-gentoo)
 kernel.
 
 I'm going to work on this and scratch a bit. So any other suggestions
 are welcome, although it'll be a few days until I post back. Got 
 any strings options/scripts to only filter out the english readable
 parts of mostly binary files?   Manual parsing is a drag..
 
 What/where could the system be corrupted to only attempt to use those
 modules from 3.10.25?
 


Your kernels look fine actually. All kernel images have that large
collection of attention-grabbing strings, they seem to be regular
compiled in error messages. And the version numbers are fine.

I've just built 3.13.1-gentoo here and my perms come out right, so it's
not a bug that e.g. snuck into that one version's Makefile. And I know
of no way for a bootloader to influence what a kernel image thinks it's
version is or how to get to it's modules (it would be a huge attack
vector if a bootloader could do that)

I think I'm all out of ideas now, you might have to consult with some
kernel guys. Per my understanding, what you describe cannot happen, so
it's an odd one indeed.



-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Re: can not mount USB stick as user

2014-02-06 Thread Alan McKinnon
On 06/02/2014 17:09, Peter Humphrey wrote:
 On Thursday 06 Feb 2014 14:30:24 Alan McKinnon wrote:
 On 06/02/2014 08:19, Peter Humphrey wrote:
 On Wednesday 05 Feb 2014 20:02:00 Joseph wrote:
 ---8
 Here it is: grub.conf

 default 0
 timeout 30

 title Gentoo Current Kernel
 root (hd0,0)
 kernel /boot/kernel-current root=/dev/hda3

 Shouldn't that hda3 in the kernel line be sda3?

 No, he said earlier in the thread that this is an ancient box using the
 old deprecated IDE subsystem.

 His fstab refers to drives as hd?
 
 Yes, I saw that after I hit Send. (So what else is new?)
 
 Seems to me that too many things need updating before Joseph can switch to 
 the 
 latest thing in init systems.
 
 Maybe he should go back to his last working system (from backup?), go through 
 his kernel config piecemeal, setting sensible options, and generally bring 
 the 
 box up to date. Then he can start experimenting with the latest ideas. (Sorry 
 Joseph, I don't mean to talk about you as though you weren't here!)
 
 I forget: how many years is it since the ancient /dev/hd? scheme was 
 superseded and deprecated?


Dim memory tells me it's somewhere around 2006/7?

I agree with your suggested approach. Joseph should first get world
fully updated and synced, then switch the kernel disk system over to the
new framework, verify all that as working nicely, and only then activate
systemd. Like Canek said, systemd doesn't magically get installed and
them just work. It runs at too low a level for that to happen in all cases.




-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] going from systemd to udev

2014-02-06 Thread Pavel Volkov
On Tuesday 04 February 2014 18:38:27 Joseph wrote:
 I don't have pmount installed, and I'm not sure what XFCE4 is using.
 How to find out?

You said that you have systemd installed, but did you actually *boot* systemd 
as init (PID 1)?



Re: [gentoo-user] Re: can not mount USB stick as user

2014-02-06 Thread Joseph

On 02/06/14 21:19, Alan McKinnon wrote:

On 06/02/2014 17:09, Peter Humphrey wrote:

On Thursday 06 Feb 2014 14:30:24 Alan McKinnon wrote:

On 06/02/2014 08:19, Peter Humphrey wrote:

On Wednesday 05 Feb 2014 20:02:00 Joseph wrote:

---8

Here it is: grub.conf

default 0
timeout 30

title Gentoo Current Kernel
root (hd0,0)
kernel /boot/kernel-current root=/dev/hda3


Shouldn't that hda3 in the kernel line be sda3?


No, he said earlier in the thread that this is an ancient box using the
old deprecated IDE subsystem.

His fstab refers to drives as hd?


Yes, I saw that after I hit Send. (So what else is new?)

Seems to me that too many things need updating before Joseph can switch to the
latest thing in init systems.

Maybe he should go back to his last working system (from backup?), go through
his kernel config piecemeal, setting sensible options, and generally bring the
box up to date. Then he can start experimenting with the latest ideas. (Sorry
Joseph, I don't mean to talk about you as though you weren't here!)

I forget: how many years is it since the ancient /dev/hd? scheme was
superseded and deprecated?



Dim memory tells me it's somewhere around 2006/7?

I agree with your suggested approach. Joseph should first get world
fully updated and synced, then switch the kernel disk system over to the
new framework, verify all that as working nicely, and only then activate
systemd. Like Canek said, systemd doesn't magically get installed and
them just work. It runs at too low a level for that to happen in all cases.

--
Alan McKinnon
alan.mckin...@gmail.com


I'm running on this box linux-3.10.17-gentoo so it is fairly new. I updated my 
world 1-month ago.
I usually update every three months. First backup system, if there are no major issues after a week or so I upgrade few other system and if everything goes smooth I 
upgrade the main system with the same three.


Is is possible to have packages without systemd flag.
I was just rebuilding 
gnome-base/gnome-settings-daemon


and it wants to pull-in: sys-apps/systemd-208-r2
and this conflicts with udev.

I'm not switching to systemd anytime soon, got burned recently and have no time to learn new configuration settings. 


--
Joseph



Re: [gentoo-user] blocking -systemd

2014-02-06 Thread Canek Peláez Valdés
On Thu, Feb 6, 2014 at 12:49 PM, Joseph syscon...@gmail.com wrote:
 I have in make.conf USE: ... -systemd
 But gnome-base/gnome-settings-daemon wants to pull in systemd-208
 so I need to emerge sys-apps/systemd-208-r2 and I have installed udev
 which conflicts with systemd.

 Do I need to unmerge udev and emerge systemd.  I'm not planning on
 switching to systemd after recent experience.  So I was planning on avoiding
 it but I don't know if I can.

 emerge -1avq gnome-base/gnome-settings-daemon
 * Last emerge --sync was 45d 2h 15m 32s ago.
 [ebuild  N] sys-apps/systemd-208-r2  USE=filecaps firmware-loader gudev
 introspection kmod pam policykit tcpd -acl -audit -cryptsetup -doc -gcrypt
 -http -lzma -python -qrcode (-selinux) {-test} -vanilla -xattr
 PYTHON_SINGLE_TARGET=python2_7 PYTHON_TARGETS=python2_7 [ebuild  N]
 sys-apps/gentoo-systemd-integration-2 [uninstall]
 sys-auth/nss-myhostname-0.3 [blocks b ] =sys-apps/systemd-197
 (=sys-apps/systemd-197 is blocking sys-auth/nss-myhostname-0.3)
 [blocks b ] sys-auth/nss-myhostname (sys-auth/nss-myhostname is
 blocking sys-apps/systemd-208-r2)
 [uninstall] app-admin/openrc-settingsd-1.0.1  USE=-systemd [ebuild   R
 ] gnome-base/gnome-settings-daemon-3.8.6.1  USE=colord cups i18n policykit
 short-touchpad-timeout udev -debug (-openrc-force) (-packagekit) {-test}
 INPUT_DEVICES=-wacom [blocks B ] sys-fs/udev (sys-fs/udev is
 blocking sys-apps/systemd-208-r2)
 [blocks B ] sys-apps/systemd (sys-apps/systemd is blocking
 sys-fs/udev-208, app-admin/openrc-settingsd-1.0.1)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (sys-apps/systemd-208-r2::gentoo, ebuild scheduled for merge) pulled in by
sys-apps/systemd required by
 (gnome-base/gnome-settings-daemon-3.8.6.1::gentoo, ebuild scheduled for
 merge)



 =sys-apps/systemd-208:0/1[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,gudev?,introspection?,kmod?,selinux?,static-libs(-)?]

 (=sys-apps/systemd-208:0/1[abi_x86_32(-),gudev,introspection,kmod])
 required by (virtual/udev-208::gentoo, installed)
=sys-apps/systemd-207 required by
 (sys-apps/gentoo-systemd-integration-2::gentoo, ebuild scheduled for merge)

  (sys-fs/udev-208::gentoo, installed) pulled in by
sys-fs/udev required by @selected

You need to specify the openrc-force USE flag for
gnome-settings-daemon. Be aware that this is not really supported, you
will have reduced functionality, and somethings will probably fail.

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] Re: can not mount USB stick as user

2014-02-06 Thread Canek Peláez Valdés
On Thu, Feb 6, 2014 at 1:36 PM, Joseph syscon...@gmail.com wrote:
 On 02/06/14 21:19, Alan McKinnon wrote:

 On 06/02/2014 17:09, Peter Humphrey wrote:

 On Thursday 06 Feb 2014 14:30:24 Alan McKinnon wrote:

 On 06/02/2014 08:19, Peter Humphrey wrote:

 On Wednesday 05 Feb 2014 20:02:00 Joseph wrote:

 ---8

 Here it is: grub.conf

 default 0
 timeout 30

 title Gentoo Current Kernel
 root (hd0,0)
 kernel /boot/kernel-current root=/dev/hda3


 Shouldn't that hda3 in the kernel line be sda3?


 No, he said earlier in the thread that this is an ancient box using the
 old deprecated IDE subsystem.

 His fstab refers to drives as hd?


 Yes, I saw that after I hit Send. (So what else is new?)

 Seems to me that too many things need updating before Joseph can switch
 to the
 latest thing in init systems.

 Maybe he should go back to his last working system (from backup?), go
 through
 his kernel config piecemeal, setting sensible options, and generally
 bring the
 box up to date. Then he can start experimenting with the latest ideas.
 (Sorry
 Joseph, I don't mean to talk about you as though you weren't here!)

 I forget: how many years is it since the ancient /dev/hd? scheme was
 superseded and deprecated?



 Dim memory tells me it's somewhere around 2006/7?

 I agree with your suggested approach. Joseph should first get world
 fully updated and synced, then switch the kernel disk system over to the
 new framework, verify all that as working nicely, and only then activate
 systemd. Like Canek said, systemd doesn't magically get installed and
 them just work. It runs at too low a level for that to happen in all
 cases.

 --
 Alan McKinnon
 alan.mckin...@gmail.com


 I'm running on this box linux-3.10.17-gentoo so it is fairly new. I updated
 my world 1-month ago.
 I usually update every three months. First backup system, if there are no
 major issues after a week or so I upgrade few other system and if everything
 goes smooth I upgrade the main system with the same three.

 Is is possible to have packages without systemd flag.
 I was just rebuilding gnome-base/gnome-settings-daemon

 and it wants to pull-in: sys-apps/systemd-208-r2
 and this conflicts with udev.

 I'm not switching to systemd anytime soon, got burned recently and have no
 time to learn new configuration settings.

As I said in the other thread, you need to set the openrc-force USE
flag for gnome-settings-daemon. Again, this is not really supported,
it will result in reduced functionality, and somethings will probably
fail.

And since most of the underlying infrastructure of Xfce is really
GNOME, this probably will happen with more and more packages in the
future, as more and more things start using the more sane and advanced
functionality of logind.

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



[gentoo-user] system is trying to install mask package

2014-02-06 Thread Joseph

In /etc/portage/package.mask I have masked:
=x11-base/xorg-server-1.14.3-r2

but emerge is trying to install it, why?

emerge -avq xorg-server
* Last emerge --sync was 45d 3h 42m 30s ago.
[ebuild  r  UD] x11-base/xorg-server-1.14.3-r2 [1.14.99.904] USE=ipv6 nptl suid udev xorg -dmx -doc -kdrive -minimal (-selinux) -static-libs -tslib -xnest -xvfb 


The following mask changes are necessary to proceed:
(see package.unmask in the portage(5) man page for more details)
# required by @__auto_slot_operator_replace_installed__ (argument)
# /etc/portage/package.mask:
=x11-base/xorg-server-1.14.3-r2

What is:
# required by @__auto_slot_operator_replace_installed__ (argument)

--
Joseph



Re: [gentoo-user] system is trying to install mask package

2014-02-06 Thread Joseph

On 02/06/14 13:33, Joseph wrote:

In /etc/portage/package.mask I have masked:
=x11-base/xorg-server-1.14.3-r2

but emerge is trying to install it, why?

emerge -avq xorg-server
* Last emerge --sync was 45d 3h 42m 30s ago.
[ebuild  r  UD] x11-base/xorg-server-1.14.3-r2 [1.14.99.904] USE=ipv6 nptl suid 
udev xorg -dmx -doc -kdrive -minimal (-selinux) -static-libs -tslib -xnest -xvfb

The following mask changes are necessary to proceed:
(see package.unmask in the portage(5) man page for more details)
# required by @__auto_slot_operator_replace_installed__ (argument)
# /etc/portage/package.mask:
=x11-base/xorg-server-1.14.3-r2

What is:
# required by @__auto_slot_operator_replace_installed__ (argument)


Solved.
gdm display manager was pulling xorg-server-1.14
I unmerged gdm 


--
Joseph



Re: [gentoo-user] Is VLAN configuration manual section up to date?

2014-02-06 Thread Stroller

On Thu, 6 February 2014, at 3:35 pm, J. Roeleveld jo...@antarean.org wrote:
 Sent from my Android device with K-9 Mail. Please excuse my brevity.

A google seems to suggest this client is able to send plain-text messages.

Stroller.




Re: [gentoo-user] Is VLAN configuration manual section up to date?

2014-02-06 Thread J. Roeleveld
On 6 February 2014 22:13:26 CET, Stroller strol...@stellar.eclipse.co.uk 
wrote:

On Thu, 6 February 2014, at 3:35 pm, J. Roeleveld jo...@antarean.org
wrote:
 Sent from my Android device with K-9 Mail. Please excuse my brevity.

A google seems to suggest this client is able to send plain-text
messages.

Stroller.

My apologies.

I had it set to text only. For some reason it changed it to html. (Only just 
noticed.)

Is it sending correctly now?
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] system is trying to install mask package

2014-02-06 Thread Stroller

On Thu, 6 February 2014, at 8:33 pm, Joseph syscon...@gmail.com wrote:
 …
 * Last emerge --sync was 45d 3h 42m 30s ago.
 [ebuild  r  UD] x11-base/xorg-server-1.14.3-r2 [1.14.99.904] USE=ipv6 nptl 
 suid udev xorg -dmx -doc -kdrive -minimal (-selinux) 

If I'm reading this correctly, you currently have 
x11-base/xorg-server-1.14.99.904 installed.

Is this in the main tree?

Is this marked as amd64 or ~amd64?

Stroller.




Re: [gentoo-user] system is trying to install mask package

2014-02-06 Thread Joseph

On 02/06/14 21:20, Stroller wrote:


On Thu, 6 February 2014, at 8:33 pm, Joseph syscon...@gmail.com wrote:

…
* Last emerge --sync was 45d 3h 42m 30s ago.
[ebuild  r  UD] x11-base/xorg-server-1.14.3-r2 [1.14.99.904] USE=ipv6 nptl 
suid udev xorg -dmx -doc -kdrive -minimal (-selinux)


If I'm reading this correctly, you currently have 
x11-base/xorg-server-1.14.99.904 installed.

Is this in the main tree?

Is this marked as amd64 or ~amd64?

Stroller.


I accidentally marked it ~amd64 I think new version of gdm requested unstable xorg-server, I have auto-unmask enabled. 
I use slim as log-in and it did not show user name on log-in screen or password being typed. I know this was a problem with xorg-server,  1.14 or newer did not 
work with my video card, so I needed to downgraded it to 1.13


--
Joseph



Re: [gentoo-user] Is VLAN configuration manual section up to date?

2014-02-06 Thread Stroller

On Thu, 6 February 2014, at 9:20 pm, J. Roeleveld jo...@antarean.org wrote:
 
 Sent from my Android device with K-9 Mail. Please excuse my brevity.
 
 A google seems to suggest this client is able to send plain-text
 messages.
 
 My apologies.
 
 I had it set to text only. For some reason it changed it to html. (Only just 
 noticed.)
 
 Is it sending correctly now?

It does now indeed seem to be, yes.

Thank you.

Stroller.




[gentoo-user] Re: going from systemd to udev

2014-02-06 Thread walt
On 02/05/2014 06:25 PM, Canek Peláez Valdés wrote:
 On Feb 5, 2014 6:23 PM, walt w41...@gmail.com
 mailto:w41...@gmail.com wrote: [ snip ]
 I am seat0 

 I'm more concerned about you being seat0, and you being asked for a
 password. In theory that's what logind solves, and in a much more
 cleaner, race-free and deterministic way than ConsoleKit.
 
 Do you have systemd with the policykit USE flag? And polkit with the
 systemd USE flag? (I suppose the later must have it).

Yes systemd has polkit and polkit has systemd.
 
 If you do, can you please show us the output (make sure to do this
 inside your DE session) from:
 
 • loginctl seat-status
 
 For example, mine shows:
snippage

sigh

wa1ter@a6:~ loginctl 
   SESSIONUID USER SEAT
 1   1001 wa1ter   seat0   

1 sessions listed.
wa1ter@a6:~ loginctl seat-status
Too few arguments.



Re: [gentoo-user] Re: going from systemd to udev

2014-02-06 Thread Canek Peláez Valdés
On Thu, Feb 6, 2014 at 7:21 PM, walt w41...@gmail.com wrote:
 On 02/05/2014 06:25 PM, Canek Peláez Valdés wrote:
 On Feb 5, 2014 6:23 PM, walt w41...@gmail.com
 mailto:w41...@gmail.com wrote: [ snip ]
 I am seat0

 I'm more concerned about you being seat0, and you being asked for a
 password. In theory that's what logind solves, and in a much more
 cleaner, race-free and deterministic way than ConsoleKit.

 Do you have systemd with the policykit USE flag? And polkit with the
 systemd USE flag? (I suppose the later must have it).

 Yes systemd has polkit and polkit has systemd.

 If you do, can you please show us the output (make sure to do this
 inside your DE session) from:

 • loginctl seat-status

 For example, mine shows:
 snippage

 sigh

 wa1ter@a6:~ loginctl
SESSIONUID USER SEAT
  1   1001 wa1ter   seat0

 1 sessions listed.
 wa1ter@a6:~ loginctl seat-status
 Too few arguments.

Sorry, obviously I meant:

   • loginctl seat-status seat0

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