Re: [gentoo-user] Who sets the symlink /dev/rtc = /dev/rtc0 ?

2013-08-26 Thread Alan McKinnon
On 26/08/2013 05:30, meino.cra...@gmx.de wrote:
 Philip Webb purs...@ca.inter.net [13-08-26 04:35]:
 130825 Pavel Volkov suggested:
 On Sunday 25 August 2013 20:26:32 meino.cra...@gmx.de asked:
 So...which ghost in my system dares to set the symlink  /dev/rtc
 to point to  /dev/rtc0  instead of  /dev/rtc1  ???
 I bet it's /usr/lib64/udev/rules.d/50-udev-default.rules

 I have  /usr/udev/rules.d/50-udev-default.rules  (on a 64-bit system),
 which contains the lines :

   # select system RTC or just use the first one
   SUBSYSTEM==rtc, ATTR{hctosys}==1, SYMLINK+=rtc
   SUBSYSTEM==rtc, KERNEL==rtc0, SYMLINK+=rtc, 
 OPTIONS+=link_priority=-100
   
 However, in  /dev  I have :

   crw--- 1 root root 10, 135 Aug 25 07:39 /dev/rtc
   
 ie it's not a symlink.  I'm using  udev-204 .

 HTH

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


 
 Hi,
 
 I finally found the culprit:
 
 There udev-related files under /lib, where I did not search for it.
 I had expected them under /etc...
 I fixed one of the rules and now there is the correct link.
 
 Nonetheless, ls -l /proc shows:
 beagleboneblack:/rootls -l /proc
 total 0
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 1
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 10
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 11
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 12
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 13
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 14
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 15
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 16
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 17
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 18
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 188
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 19
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 196
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 2
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 20
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 21
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 24
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 27
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 3
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 36
 dr-xr-xr-x   8 root   root   0 2013-08-26 05:12 362
 dr-xr-xr-x   8 root   root   0 2013-08-26 05:12 363
 dr-xr-xr-x   8 root   root   0 2013-08-26 05:12 364
 dr-xr-xr-x   8 root   root   0 2013-08-26 05:12 365
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 38
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 39
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 40
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 41
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 42
 dr-xr-xr-x   8 messagebus messagebus 0 2013-08-26 05:12 436
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 45
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 46
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 5
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 53
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 55
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 56
 dr-xr-xr-x   8 root   root   0 2013-08-26 05:12 612
 dr-xr-xr-x   8 root   root   0 2013-08-26 05:12 632
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 69
 dr-xr-xr-x   8 root   root   0 2013-08-26 05:12 698
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 7
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 70
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 71
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 74
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 75
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 76
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 79
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 8
 dr-xr-xr-x   8 root   root   0 1970-01-01 01:00 80
 dr-xr-xr-x   8 root   root   0 2013-08-26 05:12 800
 dr-xr-xr-x   8 root   root   0 2013-08-26 05:12 855
 dr-xr-xr-x   8 root   root   0 2013-08-26 05:13 882
 dr-xr-xr-x   8 root   root   0 2013-08-26 05:13 883
 dr-xr-xr-x   8 root   root   0 2013-08-26 05:13 884
 dr-xr-xr-x   8 root   root   0 2013-08-26 05:13 885
 dr-xr-xr-x   8 root   root   0 2013-08-26 05:13 886
 dr-xr-xr-x   8 root   root   0 2013-08-26 05:13 887
 

Re: [gentoo-user] Makeing /dev/rtc1 accessible as soon as possible - how?

2013-08-26 Thread Pandu Poluan
On Aug 26, 2013 8:41 AM, Mark David Dumlao madum...@gmail.com wrote:

 On Sun, Aug 25, 2013 at 12:54 PM,  meino.cra...@gmx.de wrote:
  Hi Mark, hi William,
 
  the script ds3231 in /etc/init.d is -- according to rc-update --
  set as folows:
 
 ds3231 | boot

 Long and short of it, here's the boot order:
 sysinit - boot - (single) - default

 rc(8) tells me that sysinit is for bringing up system specific stuff
 such as /dev, /proc, /sys. So it's appropriate for a special device
 file such as yours, with the caveat that you want it up AFTER any
 dependencies such as sysfs.

 Now how to do that is to make your script openrc compliant, so...

 
  There is no corresponding file in /etc/conf.d since the script
  onlu consist of two commands (see previous posting). There is no
  initramfs.

 Since openrc is running your script, it will check /etc/conf.d/same-name
 for any script with environment variables. Or you can put it in the init
 script itself. Mind you, I don't know where to find documentation on
 how openrc implements this, unlike, say, some controversial init system
 on this list...


Just to add some info:

To the best of my knowledge, scripts in init.d will source the relevant
file in conf.d. So, whether or not an initscript requires a conf.d file
totally depends on the initscript in question.

Rgds,
--


Re: [gentoo-user] Who sets the symlink /dev/rtc = /dev/rtc0 ?

2013-08-26 Thread Alan McKinnon
On 26/08/2013 05:04, meino.cra...@gmx.de wrote:
 Alan McKinnon alan.mckin...@gmail.com [13-08-26 04:34]:
 On 25/08/2013 20:26, meino.cra...@gmx.de wrote:
 Hi,

 In the kernel config I set

 CONFIG_RTC_HCTOSYS_DEVICE=rtc1

 and I grepped through /etc and looked 
 for something suspicious...nothing found.

 So...which ghost in my system dares to set
 the symlink /dev/rtc to point to /dev/rtc0
 instead of /dev/rtc1 ???


 You say there's a ghost in the machine, and the instant answer udev
 did not immediately jump into your mind?

 tut, tut (such an obvious target)   :-)


 grep through every file installed by udev for rtc, let's see what
 comes out


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


 
 Hi Alan,
 
 carefully read my posting again ;)


It was in /lib/ ?


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




Re: [gentoo-user] Re: The NVIDIA/Kernel fiasco -- is it safe to sync yet?

2013-08-26 Thread Alan McKinnon
On 26/08/2013 03:52, »Q« wrote:
 I doubt your wiki page idea will work, it will be just accurate enough
  to look like it might work and just inaccurate enough to be useless.
  Which brings you back to the previous paragraph - try emerge
  nvidia-drivers and if it fails then don't use that kernel.
 I was unclear to the point of being misleading.  I'm sorry.
 
 The wiki idea is only for a page which tells which
 kernel/nvidia-drivers combinations the Gentoo nvidia-drivers
 maintainers support.  And by support, I mean they'll look into bugs
 and fix build problems if they're able to.  This is exactly the info I'm
 grepping out of ewarn messages in their ebuilds now.


That list is the list of kernels that nVidia supports, which is easy to
find.


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




Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-26 Thread Pandu Poluan
On Aug 26, 2013 5:06 AM, Alan McKinnon alan.mckin...@gmail.com wrote:

 On 18/08/2013 21:38, Tanstaafl wrote:
  On 2013-08-18 5:16 AM, Alan McKinnon alan.mckin...@gmail.com wrote:
  While we're on the topic, what's the obsession with having different
  bits of the file hierarchy as different*mount points*? That harks back
  to the days when the only way to have a chunk of fs space be different
  was to have it as a separate physical thing and mount it. Nowadays we
  have something better - ZFS. To me this makes so much more sense. I
have
  a large amount of storage called a pool, and set size limits and
  characteristics for various directories without having to deal with
  fixed size volumes.
 
  Eh? *Who* has ZFS? Certainly not the linux kernel.
 

 FreeBSD

 You can get ZFS on Linux with relative ease, you just have to build it
 yourself. Distros feel they can't redistribute that code.



 The bit you quoted shouldn't be read to mean that we have ZFS, it works
 on Linux and everyone should activate it and use it and chuck ext* out
 the window.

 I meant that we've been chugging along since 1982 or so with ancient
 disk concepts that come mostly from MS_DOS and limited by that hardware
 of that day.

 And here we are in 2013 *still* fiddling with partition tables, fixed
 file systems, fixed mountpoints and we still bang our heads weekly
 because sda3 has proven to be too small, and it's a *huge* mission to
 change it. Yes, LVM has made this so much easier (kudos to Sistina
 for that) but I believe the entire approach is wrong.

 The ZFS approach is better - here's the storage, now do with it what I
 want but don't employ arbitrary fixed limits and structures to do it.


+1 on ZFS. It's honestly a truly *modern* filesystem.

Been using it as the storage back-end of my company's email server.

The zpool and zfs command may need some time to be familiar with, but the
self-mounting self-sharing ability of zfs (i.e., no need to muck with fstab
and exports files) is really sweet.

I really leveraged its ability to do what I call delta snapshot shipping
(i.e., send only the differences between two snapshots to another place).
It's almost like an asynchronous DRBD, but with the added peace of mind
that if the files become corrupted (due to buggy app, almost no way for ZFS
to let corrupt data exist), I can easily 'roll back' to the time where the
files are still uncorrupted.

Rgds,
--


Re: [gentoo-user] Proxy server problem

2013-08-26 Thread Grant
I set up squid on a remote system so I can browse the internet
from
that IP address.  It works but it stalls frequently.  I had
similar
results with ziproxy.  I went over this with the squid list but
we
got nowhere as it seems to be some kind of a system or network
problem.
   
   
http://squid-web-proxy-cache.1019090.n4.nabble.com/squid-3-3-5-hangs-
  
the -en tire-system-td4660893.html
   
Can anyone here help me figure out what is wrong?  I'm not sure
where
to start.
 
  Is this stalling problem happening when you just browse the internet,
  visiting
  websites, or do you get it when you are downloading large files such as
  videos, or music?  If it is the former, then I am not sure what causes
  it.  If
  it is the latter, then this may be relevant to http timeout settings.

 Actually it happens when I'm just browsing the internet.  How can a
 problem of this nature be debugged?

 - Grant


 After reading your description on the squid mailing list, I'm suspicious
 that you might've run out of TCP buffers.

 Please post the results of:

 sysctl -A | egrep (mem)|(tcp)

Hi Pandu, thank you for having a look.  These commands were run during a stall.

Proxy Server:

# sysctl -A | egrep (mem)|(tcp)
fs.nfs.nlm_tcpport = 0
net.core.optmem_max = 20480
net.core.rmem_default = 212992
net.core.rmem_max = 212992
net.core.wmem_default = 212992
net.core.wmem_max = 212992
net.ipv4.igmp_max_memberships = 20
net.ipv4.tcp_abort_on_overflow = 0
net.ipv4.tcp_adv_win_scale = 1
net.ipv4.tcp_allowed_congestion_control = cubic reno
net.ipv4.tcp_app_win = 31
net.ipv4.tcp_available_congestion_control = cubic reno
net.ipv4.tcp_base_mss = 512
net.ipv4.tcp_challenge_ack_limit = 100
net.ipv4.tcp_congestion_control = cubic
net.ipv4.tcp_cookie_size = 0
net.ipv4.tcp_dsack = 1
net.ipv4.tcp_early_retrans = 2
net.ipv4.tcp_ecn = 2
net.ipv4.tcp_fack = 1
net.ipv4.tcp_fastopen = 0
net.ipv4.tcp_fastopen_key = ad627831-f01340bb-a649b04d-35ba63cd
net.ipv4.tcp_fin_timeout = 60
net.ipv4.tcp_frto = 2
net.ipv4.tcp_frto_response = 0
net.ipv4.tcp_keepalive_intvl = 75
net.ipv4.tcp_keepalive_probes = 9
net.ipv4.tcp_keepalive_time = 7200
net.ipv4.tcp_limit_output_bytes = 131072
net.ipv4.tcp_low_latency = 0
net.ipv4.tcp_max_orphans = 8192
net.ipv4.tcp_max_ssthresh = 0
net.ipv4.tcp_max_syn_backlog = 128
net.ipv4.tcp_max_tw_buckets = 8192
net.ipv4.tcp_mem = 46323 61766 92646
net.ipv4.tcp_moderate_rcvbuf = 1
net.ipv4.tcp_mtu_probing = 0
net.ipv4.tcp_no_metrics_save = 0
net.ipv4.tcp_orphan_retries = 0
net.ipv4.tcp_reordering = 3
net.ipv4.tcp_retrans_collapse = 1
net.ipv4.tcp_retries1 = 3
net.ipv4.tcp_retries2 = 15
net.ipv4.tcp_rfc1337 = 0
net.ipv4.tcp_rmem = 4096 87380 6291456
net.ipv4.tcp_sack = 1
net.ipv4.tcp_slow_start_after_idle = 1
net.ipv4.tcp_stdurg = 0
net.ipv4.tcp_syn_retries = 6
net.ipv4.tcp_synack_retries = 5
net.ipv4.tcp_thin_dupack = 0
net.ipv4.tcp_thin_linear_timeouts = 0
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_tso_win_divisor = 3
net.ipv4.tcp_tw_recycle = 0
net.ipv4.tcp_tw_reuse = 0
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_wmem = 4096 16384 4194304
net.ipv4.tcp_workaround_signed_windows = 0
net.ipv4.udp_mem = 46521 62030 93042
net.ipv4.udp_rmem_min = 4096
net.ipv4.udp_wmem_min = 4096
net.netfilter.nf_conntrack_tcp_be_liberal = 0
net.netfilter.nf_conntrack_tcp_loose = 1
net.netfilter.nf_conntrack_tcp_max_retrans = 3
net.netfilter.nf_conntrack_tcp_timeout_close = 10
net.netfilter.nf_conntrack_tcp_timeout_close_wait = 60
net.netfilter.nf_conntrack_tcp_timeout_established = 432000
net.netfilter.nf_conntrack_tcp_timeout_fin_wait = 120
net.netfilter.nf_conntrack_tcp_timeout_last_ack = 30
net.netfilter.nf_conntrack_tcp_timeout_max_retrans = 300
net.netfilter.nf_conntrack_tcp_timeout_syn_recv = 60
net.netfilter.nf_conntrack_tcp_timeout_syn_sent = 120
net.netfilter.nf_conntrack_tcp_timeout_time_wait = 120
net.netfilter.nf_conntrack_tcp_timeout_unacknowledged = 300
vm.lowmem_reserve_ratio = 256 256 32
vm.overcommit_memory = 0

Client:

# sysctl -A | egrep (mem)|(tcp)
fs.nfs.nfs_callback_tcpport = 0
fs.nfs.nlm_tcpport = 0
net.core.optmem_max = 20480
net.core.rmem_default = 212992
net.core.rmem_max = 212992
net.core.wmem_default = 212992
net.core.wmem_max = 212992
net.ipv4.igmp_max_memberships = 20
net.ipv4.tcp_abort_on_overflow = 0
net.ipv4.tcp_adv_win_scale = 1
net.ipv4.tcp_allowed_congestion_control = cubic reno
net.ipv4.tcp_app_win = 31
net.ipv4.tcp_available_congestion_control = cubic reno
net.ipv4.tcp_base_mss = 512
net.ipv4.tcp_challenge_ack_limit = 100
net.ipv4.tcp_congestion_control = cubic
net.ipv4.tcp_dsack = 1
net.ipv4.tcp_early_retrans = 3
net.ipv4.tcp_ecn = 2
net.ipv4.tcp_fack = 1
net.ipv4.tcp_fastopen = 0
net.ipv4.tcp_fastopen_key = af77bb2f-38636dab-7fd80263-df37cea3
net.ipv4.tcp_fin_timeout = 60
net.ipv4.tcp_frto = 2
net.ipv4.tcp_keepalive_intvl = 75
net.ipv4.tcp_keepalive_probes = 9
net.ipv4.tcp_keepalive_time = 7200
net.ipv4.tcp_limit_output_bytes = 131072

Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-26 Thread Alan McKinnon
On 26/08/2013 08:10, Pandu Poluan wrote:
 The ZFS approach is better - here's the storage, now do with it what I
 want but don't employ arbitrary fixed limits and structures to do it.

 
 +1 on ZFS. It's honestly a truly *modern* filesystem.
 
 Been using it as the storage back-end of my company's email server.
 
 The zpool and zfs command may need some time to be familiar with, but
 the self-mounting self-sharing ability of zfs (i.e., no need to muck
 with fstab and exports files) is really sweet.
 
 I really leveraged its ability to do what I call delta snapshot
 shipping (i.e., send only the differences between two snapshots to
 another place). It's almost like an asynchronous DRBD, but with the
 added peace of mind that if the files become corrupted (due to buggy
 app, almost no way for ZFS to let corrupt data exist), I can easily
 'roll back' to the time where the files are still uncorrupted.
 


I run it on my NASes, and the thing that really sold me was what it lets
me as the admin do:

I get all the benefits of directories with none of the downsides.
I get all the benefits of mount points with none of the downsides.
I get all the benefits of discrete filesystems with none of the downsides.

Like you say, a truly modern fs built for modern needs.



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




Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-26 Thread Neil Bothwick
On Mon, 26 Aug 2013 00:02:17 +0200, Alan McKinnon wrote:

  Eh? *Who* has ZFS? Certainly not the linux kernel.

 
 FreeBSD
 
 You can get ZFS on Linux with relative ease, you just have to build it
 yourself. Distros feel they can't redistribute that code.

emerge zfs works too :)

I really liek the way ZFS just lets you get on with things.


-- 
Neil Bothwick

Help put the fun back in dysfunctional !


signature.asc
Description: PGP signature


Re: [gentoo-user] Who sets the symlink /dev/rtc = /dev/rtc0 ?

2013-08-26 Thread Neil Bothwick
On Mon, 26 Aug 2013 05:30:12 +0200, meino.cra...@gmx.de wrote:

 There udev-related files under /lib, where I did not search for it.

That's where udev's own rules live.

 I had expected them under /etc...

That's where user rules live.

 I fixed one of the rules and now there is the correct link.

For now. Copy the rule to /etc/ if you don't want it overwritten by the
next udev update.


-- 
Neil Bothwick

Who messed with my anti-paranoia shot?


signature.asc
Description: PGP signature


Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-26 Thread Mick
On Monday 26 Aug 2013 08:06:13 Neil Bothwick wrote:
 On Mon, 26 Aug 2013 00:02:17 +0200, Alan McKinnon wrote:
   Eh? *Who* has ZFS? Certainly not the linux kernel.
  
  FreeBSD
  
  You can get ZFS on Linux with relative ease, you just have to build it
  yourself. Distros feel they can't redistribute that code.
 
 emerge zfs works too :)
 
 I really liek the way ZFS just lets you get on with things.

Does anyone run it on a desktop/laptop as their day to day fs?  Any drawbacks 
or gotchas?  Other than reliability, how does it perform compared say to ext4?

-- 
Regards,
Mick


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


[gentoo-user] Questions about java SDK ebuilds for linux

2013-08-26 Thread Wolfgang Liebich

Hi,
I'm using GENTOO linux as development platform for Java applications.
JAVA 8 is not officially out there, but still I would like to start testing it, and there 
are early access downloads at the oracle website.

Furthermore, the ebuilds for the IBM JDKs seem to be somewhat abandoned - is there an build for the ibm jdk V7 available somewhere? I did not 
find anything (yet)...


Thanks in advance,
Wolfgang Liebich




Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-26 Thread Neil Bothwick
On Mon, 26 Aug 2013 09:45:15 +0100, Mick wrote:

  emerge zfs works too :)
  
  I really like the way ZFS just lets you get on with things.  
 
 Does anyone run it on a desktop/laptop as their day to day fs?

Yes.

 Any
 drawbacks or gotchas?  Other than reliability, how does it perform
 compared say to ext4?

I haven't benchmarked it. It feels as if it may be a little slower on my
desktop with spinning disks, but that may be down to other factors, like
impatience. It flies on my laptop's SSD.


-- 
Neil Bothwick

Why is bra singular and pants plural?


signature.asc
Description: PGP signature


Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-26 Thread Pandu Poluan
On Mon, Aug 26, 2013 at 4:56 PM, Neil Bothwick n...@digimed.co.uk wrote:

 On Mon, 26 Aug 2013 09:45:15 +0100, Mick wrote:

   emerge zfs works too :)
  
   I really like the way ZFS just lets you get on with things.
 
  Does anyone run it on a desktop/laptop as their day to day fs?

 Yes.

  Any
  drawbacks or gotchas?  Other than reliability, how does it perform
  compared say to ext4?

 I haven't benchmarked it. It feels as if it may be a little slower on my
 desktop with spinning disks, but that may be down to other factors, like
 impatience. It flies on my laptop's SSD.


Additional note:

*Of course* it will be slower than ext*, because during every read it
ensures that the block being read has a proper checksum.

Likewise on writes.

But that IMO is very worth it just for the additional peace-of-mind,
knowing you will never ever have a silent corruption.


-- 
FdS Pandu E Poluan
* ~ IT Optimizer ~**
*
 • LOPSA Member #15248
 • Blog : http://pepoluan.tumblr.com
 • Linked-In : http://id.linkedin.com/in/pepoluan


Re: [gentoo-user] Is sound broken?

2013-08-26 Thread Mick
On Sunday 25 Aug 2013 16:22:31 Peter Humphrey wrote:
 Hi list,
 
 Today after I had my system down for its weekly backup, on restarting KDE
 (phonon) said some internal devices had been removed, in particular the
 default device. And indeed I had no sound. This was with kernel 3.10.7
 driving the on-board Intel HDA audio. The kernel module snd_hda_intel had
 been loaded.

I had the same on two systems.  Strangely it did not recognise my hw:0,0 and 
hw:1,3 rather than the default device.  I accepted what it suggested (to 
remove the two hw devices) and carried on.  When I rebooted later on sound 
worked fine for playback and capture.


 On rebooting the previous kernel, 3.8.13, sound worked OK but KDE said it
 had noticed some other devices missing - presumably some that had been
 found by kernel 3.10.7.
 
 I've made the kernel configs the same as regards sound, but still I get
 sound from 3.8.13 but not from 3.10.7. The kernel change-log hasn't helped
 either.
 
 Anyone have a clue to offer?

Try accepting what it suggests, then use alsactl to initialise your cards and 
see what you get.  You can also check with alsamixer that they are not muted.

-- 
Regards,
Mick


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


Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-26 Thread Stefan G. Weichinger
Am 26.08.2013 10:45, schrieb Mick:

 Does anyone run it on a desktop/laptop as their day to day fs?  Any
 drawbacks or gotchas?  Other than reliability, how does it perform
 compared say to ext4?

Sorry for being shameless:

I once described a ZFS-based gentoo setup with encryption for the
german linux magazine. They translated it and it was published in
other parts of the world as well:

http://www.oops.co.at/en/publications/english-translation-of-zfs-article

I delivered a demo-VM as well but I don't run that setup on my
productive systems currently.

Stefan (not earning anything from those pdf-downloads, btw)



FIXED: [gentoo-user] Is sound broken?

2013-08-26 Thread Peter Humphrey
On Monday 26 Aug 2013 11:51:52 Mick wrote:
 On Sunday 25 Aug 2013 16:22:31 Peter Humphrey wrote:
  Hi list,
  
  Today after I had my system down for its weekly backup, on restarting KDE
  (phonon) said some internal devices had been removed, in particular the
  default device. And indeed I had no sound. This was with kernel 3.10.7
  driving the on-board Intel HDA audio. The kernel module snd_hda_intel had
  been loaded.
 
 I had the same on two systems.  Strangely it did not recognise my hw:0,0 and
 hw:1,3 rather than the default device.  I accepted what it suggested (to
 remove the two hw devices) and carried on.  When I rebooted later on sound
 worked fine for playback and capture.

I tried that, and I thought it hadn't worked because when I rebooted I still 
had no sound. But then, when I decided to reboot again with the old kernel to 
see if I'd now lost my working sound device, I heard the KDE shutdown bong. So 
I've rebooted the new kernel and all is well.

Meanwhile I had fiddled with alsactl, issuing various commands blindly. Maybe 
that's what fixed it.

Many thanks for your help Mick.

-- 
Regards,
Peter




Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-26 Thread Tanstaafl

On 2013-08-25 6:02 PM, Alan McKinnon alan.mckin...@gmail.com wrote:

You can get ZFS on Linux with relative ease, you just have to build it
yourself. Distros feel they can't redistribute that code.


I know you can do this as a module - but is there an overlay or patch to 
get it built directly into the kernel? I'd love to use ZFS on my gentoo 
server, but I disable modules on servers for security reasons.


Thanks...




Re: [gentoo-user] SLES or gentoo ... ?

2013-08-26 Thread Stefan G. Weichinger

We now get into choosing hardware for that shiny new gentoo-server ...

as mentioned this will be a KVM-host and we look at a HP Proliant DL385p
... 2 AMD Opteron 6344 ... 32 GB RAM, 8 disks (the customer has some
bigger contract with hp, so we are a bit biased to hp here).

For the server that runs the VMs right now we back then chose 2 smaller
SAS-disks for the OS (speed, expensive) and installed SLES on a mirror
built on those 2 disks. The other 8 (?) SATA-disks run in a RAID-6 ...

Now I ask myself if I want to do that again:

2 smaller disks, fast, RAID1 - OS/ Gentoo (SSD? I think, no)

6 bigger disks, maybe 7200rpm, SATA - RAID6 - LVM - space for VMs
(maybe straight LVs for the VM-disks ... performs well, nice backups)

Or should I go for all 8 disks in a RAID6 ... ?

I'd like to discuss that and hear your opinions and experiences.

Thanks!




Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-26 Thread Neil Bothwick
On Mon, 26 Aug 2013 09:16:44 -0400, Tanstaafl wrote:

  You can get ZFS on Linux with relative ease, you just have to build it
  yourself. Distros feel they can't redistribute that code.  
 
 I know you can do this as a module - but is there an overlay or patch
 to get it built directly into the kernel? I'd love to use ZFS on my
 gentoo server, but I disable modules on servers for security reasons.

You can do it. You have to unmask the kernel_builtin USE flag to stop zfs
bringing in zfs_kmod, then unpack the sources and run the script to
install them into the kernel tree.

I run this script after emerging a new kernel

==

#!/bin/sh

[[ -f /usr/src/linux/.config ]] || zcat /proc/config.gz
/usr/src/linux/.config

SPL_EBUILD=$(ls -1 /var/portage/sys-kernel/spl/spl-0* | tail -n 1)
ZFS_EBUILD=$(ls -1 /var/portage/sys-fs/zfs/zfs-0* | tail -n 1)

SPL_DIR=$(ebuild $SPL_EBUILD clean prepare | awk '/Preparing source in/
{print $5}') ZFS_DIR=$(ebuild $ZFS_EBUILD clean prepare | awk '/Preparing
source in/ {print $5}')

cd $SPL_DIR
./configure --enable-linux-builtin --with-linux=/usr/src/linux
./copy-builtin /usr/src/linux
  
cd $ZFS_DIR
./configure --enable-linux-builtin --with-linux=/usr/src/linux
--with-spl=$SPL_DIR ./copy-builtin /usr/src/linux

==

Then run make oldconfig and compile as usual.


-- 
Neil Bothwick

Cross-country skiing is great in small countries.


signature.asc
Description: PGP signature


Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-26 Thread Neil Bothwick
On Mon, 26 Aug 2013 14:06:11 +0200, Stefan G. Weichinger wrote:

 Sorry for being shameless:
 
 I once described a ZFS-based gentoo setup with encryption for the
 german linux magazine. They translated it and it was published in
 other parts of the world as well:

That is pretty shameless. I would never be so blatant as to mention the
ZFS tutorial in the current issue (175) of Linux Format.


-- 
Neil Bothwick

Head: (n.) the part of a disk drive which detects sectors and decides
which of the two possible values to return: 'lose a turn' or 'bankrupt.'


signature.asc
Description: PGP signature


Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-26 Thread Alan McKinnon
On 26/08/2013 16:38, Neil Bothwick wrote:
 On Mon, 26 Aug 2013 14:06:11 +0200, Stefan G. Weichinger wrote:
 
 Sorry for being shameless:

 I once described a ZFS-based gentoo setup with encryption for the
 german linux magazine. They translated it and it was published in
 other parts of the world as well:
 
 That is pretty shameless. I would never be so blatant as to mention the
 ZFS tutorial in the current issue (175) of Linux Format.
 
 


If you give me a free subscription for life, I promise I won't breath a
word of you never mentioning ZFS




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




Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-26 Thread Stefan G. Weichinger
Am 26.08.2013 16:38, schrieb Neil Bothwick:
 On Mon, 26 Aug 2013 14:06:11 +0200, Stefan G. Weichinger wrote:
 
 Sorry for being shameless:
 
 I once described a ZFS-based gentoo setup with encryption for
 the german linux magazine. They translated it and it was
 published in other parts of the world as well:
 
 That is pretty shameless. I would never be so blatant as to mention
 the ZFS tutorial in the current issue (175) of Linux Format.

;-)





[gentoo-user] Nvidia optimus no signal on external monitor

2013-08-26 Thread du yang

Hi,

I've managed to get optimus works on my PC with nvidia property
driver. But I got into an issue when trying to extend my screen to an
external monitor by using Xrandr.
There is no signal in the external monitor but the screen do extended,
as mouse and window can be moved outside the visiable screen.

There are 2 output connected, LVDS-0  VGA-0.
The xrandr command used:
# xrandr --output VGA-0 --pos 1366x0 --auto
And also tried (doesn't work),
# xrandr --output VGA-0 --auto --left-of LVDS-0

This one works but both monitors showing with the screen,
# xrandr --output VGA-0 --auto --same-as LVDS-0

Any suggestion please?
Thanks,

PS. And also attach my /etc/X11/xorg.conf here,
Section Module
Load   glx
EndSection

Section Monitor
Identifier ASUS
VendorName Unknown
VertRefresh 43.0 - 72.0
Option DPMS
EndSection

Section Device
Identifier NVIDIA
Driver nvidia
BusID  PCI:1:0:0
EndSection

Section Screen
Identifier DFP0
Device NVIDIA
MonitorASUS
#Option IgnoreEDIDChecksum DFP
Option UseDisplayDevice none
EndSection

Section Device
Identifier INTEL
Driver modesetting
EndSection

Section Screen
Identifier INTEL
Device INTEL
EndSection


-- 
oooO:
(..):
:\.(:::Oooo::
::\_)::(..)::
:::)./:::
::(_/


signature.asc
Description: Digital signature


[gentoo-user] grub2 or kernel config - unable to properly boot

2013-08-26 Thread Francisco Ares
Hi,

After a few solved problems, I am still unable to completely boot using
grub:2, and now I just can't find anything else to fiddle with.

So I would really appreciate if someone could take a look at my
configuration:

- system is amd64;
- hard disk partitioning:
  - two first primary partitions, unused (for now);
  - third (/dev/sda3) is /boot partition, kernel built and in place;
  - extended partition as fourth partition;
  - logical partition (/dev/sda5) is / linux partition, ext4 formated;
- emerged  the following, before building kernel;
  - genkernel ;
  - media-gfx/splashutils-1.5.4.4-r1;
  - media-gfx/splash-themes-gentoo-20101212-r1 ;
  - sys-apps/v86d-0.1.10;
- genkernel command line:
genkernel all \
--color --menuconfig --splash=natural_gentoo \
--splash-res=1024x768,1280x1024,1366x768,1440x900 \
--mountboot --install  --unionfs --real-root=/dev/sda5 \
--ramdisk-modules --postclear
- kernel built with:
  - CONFIG_FB_UVESA=y
  - CONFIG_INITRAMFS_SOURCE=/usr/share/v86d/initramfs
  - CONFIG_EXT4_FS=y
  - CONFIG_EXT4_FS_POSIX_ACL=y
  - CONFIG_EXT4_FS_SECURITY=y
- grub2 defaults (/etc/defaults/grub2) only difference from original:
  GRUB_CMDLINE_LINUX=init=/linuxrc real_root=/dev/sda5
video=uvesafb,mtrr:3,ywrap splash=silent,fadein,theme:natural_gentoo
nodevfs udev devfs=nomount CONSOLE=/dev/tty1 quiet

- sample extract from grub:0 config file, used in a working (a bit older)
system:
title=Gentoo Linux (3.8.13-gentoo)
root (hd0,1)
kernel /boot/kernel-genkernel-x86_64-3.8.13-gentoo ro root=/dev/ram0 \
init=/linuxrc real_root=/dev/sda4 vga=791
splash=silent,theme:natural_gentoo \
console=tty1 verbose nodevfs udev devfs=nomount CONSOLE=/dev/tty1
quiet
initrd /boot/initramfs-genkernel-x86_64-3.8.13-gentoo


Now the boot stops showing the messages (after the Tux logos appeared):

Can't open cfg file //etc/splash/natural_gentoo/640x480.cfg
No verbose picture specified in the theme
No silent picture specified in the theme
No verbose picture specified in the theme
Can't open cfg file //etc/splash/natural_gentoo/640x480.cfg
No verbose picture specified in the theme
No silent picture specified in the theme
!! Block device /dev/sda5 is not a valid root device


The last line explains the ones preceding it.

Any hints on where to look at?

Thanks
Francisco


Re: [gentoo-user] SLES or gentoo ... ?

2013-08-26 Thread Pandu Poluan
On Aug 26, 2013 9:02 PM, Stefan G. Weichinger li...@xunil.at wrote:


 We now get into choosing hardware for that shiny new gentoo-server ...

 as mentioned this will be a KVM-host and we look at a HP Proliant DL385p
 ... 2 AMD Opteron 6344 ... 32 GB RAM, 8 disks (the customer has some
 bigger contract with hp, so we are a bit biased to hp here).

 For the server that runs the VMs right now we back then chose 2 smaller
 SAS-disks for the OS (speed, expensive) and installed SLES on a mirror
 built on those 2 disks. The other 8 (?) SATA-disks run in a RAID-6 ...

 Now I ask myself if I want to do that again:

 2 smaller disks, fast, RAID1 - OS/ Gentoo (SSD? I think, no)

 6 bigger disks, maybe 7200rpm, SATA - RAID6 - LVM - space for VMs
 (maybe straight LVs for the VM-disks ... performs well, nice backups)

 Or should I go for all 8 disks in a RAID6 ... ?

 I'd like to discuss that and hear your opinions and experiences.

 Thanks!



2 smallest disks in RAID1 configuration for booting.

Then the 6 disks as JBOD and use it within a RAIDZ2 array.

Or, 6 disks in JBOD, add them a 3 ZFS mirror vdev's.


Rgds,
--


Re: [gentoo-user] Re: Optional /usr merge in Gentoo

2013-08-26 Thread Stefan G. Weichinger
Am 19.08.2013 22:40, schrieb Alan McKinnon:
 On 19/08/2013 16:20, Alecks Gates wrote:
 All I do is add one extra line (for
 example - dracut -H --kver=3.11.0-rc6) to my kernel install
 procedure.
 
 Precisely. It's not hard, it's actually almost automatable.
 
 It's vastly simpler than configuring a kernel, something we all seem to
 take in our stride and wear as badges of honour. It's arguably even
 easier than figuring grub out the first time through.

As I mentioned some weeks ago I also have my quick-and-dirty script that
runs the stuff necessary ... instead of using genkernel I forked (a
big word for my messed up script) some parts of it and it works fine so
far (throws quite some errors that just don't matter).

Maybe some good examples would help? At least for the people unsure
about generating the initramfs and/or dracut?

Stefan




Re: [gentoo-user] SLES or gentoo ... ?

2013-08-26 Thread Pandu Poluan
On Mon, Aug 26, 2013 at 11:11 PM, Stefan G. Weichinger li...@xunil.atwrote:

 Am 26.08.2013 17:51, schrieb Pandu Poluan:

  2 smallest disks in RAID1 configuration for booting.
 
  Then the 6 disks as JBOD and use it within a RAIDZ2 array.
 
  Or, 6 disks in JBOD, add them a 3 ZFS mirror vdev's.

 Interesting suggestion.

 I don't know if I dare ... I wonder how VMs would perform on
 ZFS-filesystems ... I should test that before actually setting that up.
 The system will run ~800km away from me so it should be rather
 bullet-proof ;-)

 I trust ZFS, sure ... but I don't have experience with it as a storage
 for KVM-virtualization.

 But I consider it, thanks!

 Stefan



Well... with a ZFS-backed storage, when you want to create a new VM, all
you have to do is `zfs clone` ;-)

Rgds,
-- 
FdS Pandu E Poluan
* ~ IT Optimizer ~**
*
 • LOPSA Member #15248
 • Blog : http://pepoluan.tumblr.com
 • Linked-In : http://id.linkedin.com/in/pepoluan


Re: [gentoo-user] grub2 or kernel config - unable to properly boot

2013-08-26 Thread Michael Hampicke
Am 26.08.2013 17:41, schrieb Francisco Ares:
 Hi,
 
 After a few solved problems, I am still unable to completely boot using
 grub:2, and now I just can't find anything else to fiddle with.
 
 So I would really appreciate if someone could take a look at my
 configuration:
 
 - system is amd64;
 - hard disk partitioning:
   - two first primary partitions, unused (for now);
   - third (/dev/sda3) is /boot partition, kernel built and in place;
   - extended partition as fourth partition;
   - logical partition (/dev/sda5) is / linux partition, ext4 formated;
 - emerged  the following, before building kernel;
   - genkernel ;
   - media-gfx/splashutils-1.5.4.4-r1;
   - media-gfx/splash-themes-gentoo-20101212-r1 ;
   - sys-apps/v86d-0.1.10;
 - genkernel command line:
 genkernel all \
 --color --menuconfig --splash=natural_gentoo \
 --splash-res=1024x768,1280x1024,1366x768,1440x900 \
 --mountboot --install  --unionfs --real-root=/dev/sda5 \
 --ramdisk-modules --postclear
 - kernel built with:
   - CONFIG_FB_UVESA=y
   - CONFIG_INITRAMFS_SOURCE=/usr/share/v86d/initramfs
   - CONFIG_EXT4_FS=y
   - CONFIG_EXT4_FS_POSIX_ACL=y
   - CONFIG_EXT4_FS_SECURITY=y
 - grub2 defaults (/etc/defaults/grub2) only difference from original:
   GRUB_CMDLINE_LINUX=init=/linuxrc real_root=/dev/sda5
 video=uvesafb,mtrr:3,ywrap splash=silent,fadein,theme:natural_gentoo
 nodevfs udev devfs=nomount CONSOLE=/dev/tty1 quiet
 
 - sample extract from grub:0 config file, used in a working (a bit older)
 system:
 title=Gentoo Linux (3.8.13-gentoo)
 root (hd0,1)
 kernel /boot/kernel-genkernel-x86_64-3.8.13-gentoo ro root=/dev/ram0 \
 init=/linuxrc real_root=/dev/sda4 vga=791
 splash=silent,theme:natural_gentoo \
 console=tty1 verbose nodevfs udev devfs=nomount CONSOLE=/dev/tty1
 quiet
 initrd /boot/initramfs-genkernel-x86_64-3.8.13-gentoo
 
 
 Now the boot stops showing the messages (after the Tux logos appeared):
 
 Can't open cfg file //etc/splash/natural_gentoo/640x480.cfg
 No verbose picture specified in the theme
 No silent picture specified in the theme
 No verbose picture specified in the theme
 Can't open cfg file //etc/splash/natural_gentoo/640x480.cfg
 No verbose picture specified in the theme
 No silent picture specified in the theme
 !! Block device /dev/sda5 is not a valid root device
 
 
 The last line explains the ones preceding it.
 
 Any hints on where to look at?
 
 Thanks
 Francisco
 

Have you tried generating a grub2 config file via grub2-mkconfig. You
should try that and see if you can boot. Then adjust the configuration
to your needs.

On first glance, everything in your setup looks the way it's supposed to
be, but I suspect your customized grub2 cfg.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] SLES or gentoo ... ?

2013-08-26 Thread Stefan G. Weichinger
Am 26.08.2013 17:51, schrieb Pandu Poluan:

 2 smallest disks in RAID1 configuration for booting.
 
 Then the 6 disks as JBOD and use it within a RAIDZ2 array.
 
 Or, 6 disks in JBOD, add them a 3 ZFS mirror vdev's.

Interesting suggestion.

I don't know if I dare ... I wonder how VMs would perform on
ZFS-filesystems ... I should test that before actually setting that up.
The system will run ~800km away from me so it should be rather
bullet-proof ;-)

I trust ZFS, sure ... but I don't have experience with it as a storage
for KVM-virtualization.

But I consider it, thanks!

Stefan




Re: [gentoo-user] SLES or gentoo ... ?

2013-08-26 Thread Stefan G. Weichinger
Am 26.08.2013 18:14, schrieb Pandu Poluan:

 Well... with a ZFS-backed storage, when you want to create a new VM, all
 you have to do is `zfs clone` ;-)

Yes, I see those possibilities ;-)

That system will run rather important stuff ... so I have to be rather
careful. But the bit-rot-prevention/checksumming-features are a plus in
this perspective.

Do you run such a system? How big?

Stefan




Re: [gentoo-user] SLES or gentoo ... ?

2013-08-26 Thread Pandu Poluan
On Mon, Aug 26, 2013 at 11:19 PM, Stefan G. Weichinger li...@xunil.atwrote:

 Am 26.08.2013 18:14, schrieb Pandu Poluan:

  Well... with a ZFS-backed storage, when you want to create a new VM, all
  you have to do is `zfs clone` ;-)

 Yes, I see those possibilities ;-)

 That system will run rather important stuff ... so I have to be rather
 careful. But the bit-rot-prevention/checksumming-features are a plus in
 this perspective.

 Do you run such a system? How big?


I have to admit that my virtualized servers are not running on top of
ZFS-backed storage... because the company already has a quite sizable EMC
VNX storage, and it's a shame to not use that behemoth... ;-)

At the moment, the ZFS-backed storage is used to store our email archive
system (using MailArchiva), and with more than 15'000 emails per day, it
has been performing flawlessly.

That said, when I was hunting around for information on ZFS before taking
the plunge, a *lot* of discussion revolves around using ZFS as the storage
back-end for virtualization, be it using KVM or VMware.


Rgds,
-- 
FdS Pandu E Poluan
* ~ IT Optimizer ~**
*
 • LOPSA Member #15248
 • Blog : http://pepoluan.tumblr.com
 • Linked-In : http://id.linkedin.com/in/pepoluan


Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-26 Thread Tanstaafl

On 2013-08-26 10:11 AM, Neil Bothwick n...@digimed.co.uk wrote:

On Mon, 26 Aug 2013 09:16:44 -0400, Tanstaafl wrote:


You can get ZFS on Linux with relative ease, you just have to build it
yourself. Distros feel they can't redistribute that code.


I know you can do this as a module - but is there an overlay or patch
to get it built directly into the kernel? I'd love to use ZFS on my
gentoo server, but I disable modules on servers for security reasons.


You can do it. You have to unmask the kernel_builtin USE flag to stop zfs
bringing in zfs_kmod, then unpack the sources and run the script to
install them into the kernel tree.


snip

Very interesting, thanks... nice to know it can be done, but I wouldn't 
be uncomfortable doing that myself...


Would be nice if there was a kernel overlay for this...




[gentoo-user] Re: Questions about java SDK ebuilds for linux

2013-08-26 Thread James
Wolfgang Liebich wolfgang.liebich at siemens-enterprise.com writes:

 
 Hi,
 I'm using GENTOO linux as development platform for Java applications.
 JAVA 8 is not officially out there, but still I would like to start 
 testing it, and there are early access
 downloads at the oracle website.

Checkout project sunrise and then other overlay sites for early offerings...

 Furthermore, the ebuilds for the IBM JDKs seem to be somewhat abandoned -
is there an build for the ibm jdk V7
 available somewhere? I did not 
 find anything (yet)...

IMHO, JAVA get's a bad rap in the open source world for a variety,
sometimes very good, reasons. What JAVA on gentoo lacks is devoted
afficionado team to keep up with supporting JAVA on Gentoo...


YMMV,
hth, James







Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-26 Thread Neil Bothwick
On Mon, 26 Aug 2013 12:36:30 -0400, Tanstaafl wrote:

  You can do it. You have to unmask the kernel_builtin USE flag to stop
  zfs bringing in zfs_kmod, then unpack the sources and run the script
  to install them into the kernel tree.  
 
 snip
 
 Very interesting, thanks... nice to know it can be done, but I wouldn't 
 be uncomfortable doing that myself...
 
 Would be nice if there was a kernel overlay for this...

The licensing conflict means that would not be possible. You have the
install the kernel source and then merge in the ZFS source yourself, it
can't be done for you and distributed.


-- 
Neil Bothwick

OPERATOR ERROR: Nyah, Nyah, Nyah, Nyah, Nyah!


signature.asc
Description: PGP signature


Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-26 Thread Joerg Schilling
Neil Bothwick n...@digimed.co.uk wrote:

  Would be nice if there was a kernel overlay for this...

 The licensing conflict means that would not be possible. You have the
 install the kernel source and then merge in the ZFS source yourself, it
 can't be done for you and distributed.

Why do you believe this?

ZFS id doubtlessly an own work independent from the rest of the Linux kernel
and for this reason, adding ZFS just creates a collective work that is not 
affected by the GPL.

BTW: this was already explained in the GPL book from Till Jaeger et al. 
published in March 2005.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] SLES or gentoo ... ?

2013-08-26 Thread Stefan G. Weichinger
Am 26.08.2013 18:35, schrieb Pandu Poluan:

 I have to admit that my virtualized servers are not running on top of
 ZFS-backed storage... because the company already has a quite sizable EMC
 VNX storage, and it's a shame to not use that behemoth... ;-)

For sure! :-)

 At the moment, the ZFS-backed storage is used to store our email archive
 system (using MailArchiva), and with more than 15'000 emails per day, it
 has been performing flawlessly.

Without getting academic: good to hear, but rather the opposite use
case. Thousands of small files vs. some big chunks (as with VMs).

 That said, when I was hunting around for information on ZFS before taking
 the plunge, a *lot* of discussion revolves around using ZFS as the storage
 back-end for virtualization, be it using KVM or VMware.

Yes. I will research that a bit and consider it.
Maybe I suggest them a test-phase (old server still there and OK ... so
why not)

S



Re: [gentoo-user] grub2 or kernel config - unable to properly boot

2013-08-26 Thread Francisco Ares
Hi, Michael, thanks for you reply.

Please forgive me for not having mentioned grub2-mkconfig and
grub2-install. The mentioned grub.cfg was a sample from a working system,
with legacy grub:0, from which I have recovered parts of the kernel command
line parameters.

After genkernel finished to build the kernel, I've issued:

grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-install /dev/sda

Sorry for this.
Francisco



2013/8/26 Michael Hampicke m...@hadt.biz

 Am 26.08.2013 17:41, schrieb Francisco Ares:
  Hi,
 
  After a few solved problems, I am still unable to completely boot using
  grub:2, and now I just can't find anything else to fiddle with.
 
  So I would really appreciate if someone could take a look at my
  configuration:
 
  - system is amd64;
  - hard disk partitioning:
- two first primary partitions, unused (for now);
- third (/dev/sda3) is /boot partition, kernel built and in place;
- extended partition as fourth partition;
- logical partition (/dev/sda5) is / linux partition, ext4 formated;
  - emerged  the following, before building kernel;
- genkernel ;
- media-gfx/splashutils-1.5.4.4-r1;
- media-gfx/splash-themes-gentoo-20101212-r1 ;
- sys-apps/v86d-0.1.10;
  - genkernel command line:
  genkernel all \
  --color --menuconfig --splash=natural_gentoo \
  --splash-res=1024x768,1280x1024,1366x768,1440x900 \
  --mountboot --install  --unionfs --real-root=/dev/sda5 \
  --ramdisk-modules --postclear
  - kernel built with:
- CONFIG_FB_UVESA=y
- CONFIG_INITRAMFS_SOURCE=/usr/share/v86d/initramfs
- CONFIG_EXT4_FS=y
- CONFIG_EXT4_FS_POSIX_ACL=y
- CONFIG_EXT4_FS_SECURITY=y
  - grub2 defaults (/etc/defaults/grub2) only difference from original:
GRUB_CMDLINE_LINUX=init=/linuxrc real_root=/dev/sda5
  video=uvesafb,mtrr:3,ywrap splash=silent,fadein,theme:natural_gentoo
  nodevfs udev devfs=nomount CONSOLE=/dev/tty1 quiet
 
  - sample extract from grub:0 config file, used in a working (a bit older)
  system:
  title=Gentoo Linux (3.8.13-gentoo)
  root (hd0,1)
  kernel /boot/kernel-genkernel-x86_64-3.8.13-gentoo ro root=/dev/ram0
 \
  init=/linuxrc real_root=/dev/sda4 vga=791
  splash=silent,theme:natural_gentoo \
  console=tty1 verbose nodevfs udev devfs=nomount CONSOLE=/dev/tty1
  quiet
  initrd /boot/initramfs-genkernel-x86_64-3.8.13-gentoo
 
 
  Now the boot stops showing the messages (after the Tux logos appeared):
 
  Can't open cfg file //etc/splash/natural_gentoo/640x480.cfg
  No verbose picture specified in the theme
  No silent picture specified in the theme
  No verbose picture specified in the theme
  Can't open cfg file //etc/splash/natural_gentoo/640x480.cfg
  No verbose picture specified in the theme
  No silent picture specified in the theme
  !! Block device /dev/sda5 is not a valid root device
 
 
  The last line explains the ones preceding it.
 
  Any hints on where to look at?
 
  Thanks
  Francisco
 

 Have you tried generating a grub2 config file via grub2-mkconfig. You
 should try that and see if you can boot. Then adjust the configuration
 to your needs.

 On first glance, everything in your setup looks the way it's supposed to
 be, but I suspect your customized grub2 cfg.




Re: [gentoo-user] Nvidia optimus no signal on external monitor

2013-08-26 Thread James Ausmus
On Mon, Aug 26, 2013 at 7:56 AM, du yang duyang@gmail.com wrote:


 Hi,

 I've managed to get optimus works on my PC with nvidia property
 driver. But I got into an issue when trying to extend my screen to an
 external monitor by using Xrandr.
 There is no signal in the external monitor but the screen do extended,
 as mouse and window can be moved outside the visiable screen.

 There are 2 output connected, LVDS-0  VGA-0.
 The xrandr command used:
 # xrandr --output VGA-0 --pos 1366x0 --auto
 And also tried (doesn't work),
 # xrandr --output VGA-0 --auto --left-of LVDS-0

 This one works but both monitors showing with the screen,
 # xrandr --output VGA-0 --auto --same-as LVDS-0

 Any suggestion please?



Since you're using the proprietary driver, have you tried using the
nvidia-settings configuration program to set up the second monitor?




 Thanks,

 PS. And also attach my /etc/X11/xorg.conf here,
 Section Module
 Load   glx
 EndSection

 Section Monitor
 Identifier ASUS
 VendorName Unknown
 VertRefresh 43.0 - 72.0
 Option DPMS
 EndSection

 Section Device
 Identifier NVIDIA
 Driver nvidia
 BusID  PCI:1:0:0
 EndSection

 Section Screen
 Identifier DFP0
 Device NVIDIA
 MonitorASUS
 #Option IgnoreEDIDChecksum DFP
 Option UseDisplayDevice none
 EndSection

 Section Device
 Identifier INTEL
 Driver modesetting
 EndSection

 Section Screen
 Identifier INTEL
 Device INTEL
 EndSection


 --
 oooO:
 (..):
 :\.(:::Oooo::
 ::\_)::(..)::
 :::)./:::
 ::(_/



Re: [gentoo-user] having problems building webkit-gtk

2013-08-26 Thread covici
Canek Peláez Valdés can...@gmail.com wrote:

 On Sun, Aug 25, 2013 at 11:54 PM,  cov...@ccs.covici.com wrote:
  Alan McKinnon alan.mckin...@gmail.com wrote:
 
  On 25/08/2013 19:22, cov...@ccs.covici.com wrote:
   I have been having problems building webkit-gtk right along through the
   various versions, but this one stumps me completely -- I get the error:
   libtool: link: x86_64-pc-linux-gnu-gcc -o
   /var/tmp/portage/net-libs/webkit-gtk-2.0.4/work/webkitgtk-2.0.4/tmp-introspectCZNJhf/.libs/WebKit-3.0
   -O2 -mtune=core\2 -pipe -std=c99 -Wl,-O1 -Wl,--no-keep-memory
   /var/tmp/portage/net-libs/webkit-gtk-2.0.4/work/webkitgtk-2.0.4/tmp-introspectCZNJhf/WebKit-3.0.o
   -Wl,--export-dy\namic -pthread -Wl,--export-dynamic  -Wl,--as-needed
   -L. 
   /var/tmp/portage/net-libs/webkit-gtk-2.0.4/work/webkitgtk-2.0.4/.libs/libwebkitgtk-3.0.so
   -L/usr/lib64\ -lenchant -lharfbuzz-icu -lharfbuzz -lgailutil-3 -lgeoclue
   -ldbus-glib-1 -ldbus-1 -lgstapp-1.0 -lgstaudio-1.0 -lgstfft-1.0
   -lgstpbutils-1.0 -lgstvideo-1.0 -lg\stbase-1.0 -lgstreamer-1.0 -ljpeg
   -lsecret-1 -lxslt -lxml2 -lGL -ldl -lpangoft2-1.0 -lfreetype
   -lfontconfig -lpng16 -lsqlite3 -lwebp -lXcomposite -lXdamage -lX\fixes
   -lXrender -lXt -lX11 -lz
   /var/tmp/portage/net-libs/webkit-gtk-2.0.4/work/webkitgtk-2.0.4/.libs/libjavascriptcoregtk-3.0.so
   -lpthread -licui18n -licuuc -l\icudata -lgthread-2.0 -lrt -lgmodule-2.0
   -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject
   -lcairo -lgdk_pixbuf-2.0 -lsoup-2.4 -lgio-2.0 -\lgobject-2.0 -lglib-2.0
   -pthread^M
   PT PaX marking -m ./tmp-introspectCZNJhf/.libs/WebKit-3.0^M
   ^M
   (process:24006): GLib-GObject-CRITICAL **:
   g_object_class_install_property: assertion `class-set_property != NULL'
   failed
  
   I have search through google and bgo and found nothing -- how can I fix
   this one?
 
 
  Did you try building with -j1?
 
 
  I did find this one bgo, dunno if you found it in your searches (seems
  relevant at first glance):
 
  http://forums.gentoo.org/viewtopic-p-7369078.html
  https://bugs.webkit.org/show_bug.cgi?id=119261
  https://bugs.gentoo.org/show_bug.cgi?id=463960
 
  The first URL links to the other two.
 
  Well, the post seems to think that setting  opengl to xserver instead of
  nvidia should help -- but I am in a text console -- I might try it
  anyway, but how could that possibly help?
 
 The problem seems to be in the output of a command being too long (or
 so I remember from the two occasions I have encountered it). I don't
 understand it either.
 
 I remember that I had to use the -j1 trick, and also that I ssh'd to
 the machine, I started a screen session, and from there did the build
 (with X not running). It only has happened to me in my desktop machine
 (with an NVidia card).

Thanks for all the help on this problem -- even though I am not using X,
switching the opengl allowed webkit-gtk to complete -- I sure hope they
fix this -- its rediculous!

Thanks again.


-- 
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] Optional /usr merge in Gentoo

2013-08-26 Thread Neil Bothwick
On Mon, 26 Aug 2013 19:30:05 +0200, Joerg Schilling wrote:

  The licensing conflict means that would not be possible. You have the
  install the kernel source and then merge in the ZFS source yourself,
  it can't be done for you and distributed.  
 
 Why do you believe this?
 
 ZFS id doubtlessly an own work independent from the rest of the Linux
 kernel and for this reason, adding ZFS just creates a collective work
 that is not affected by the GPL.

But the CCDL licence of ZFS precludes its being distributed with the
kernel. At least, that's how I understand it and the fact that no distro
distributes a ZFS-enabled kernel makes me believe it is true.


-- 
Neil Bothwick

Friends come and friends go, but enemies accumulate.


signature.asc
Description: PGP signature


Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-26 Thread Joerg Schilling
Neil Bothwick n...@digimed.co.uk wrote:

 On Mon, 26 Aug 2013 19:30:05 +0200, Joerg Schilling wrote:

   The licensing conflict means that would not be possible. You have the
   install the kernel source and then merge in the ZFS source yourself,
   it can't be done for you and distributed.  
  
  Why do you believe this?
  
  ZFS id doubtlessly an own work independent from the rest of the Linux
  kernel and for this reason, adding ZFS just creates a collective work
  that is not affected by the GPL.

 But the CCDL licence of ZFS precludes its being distributed with the
 kernel. At least, that's how I understand it and the fact that no distro
 distributes a ZFS-enabled kernel makes me believe it is true.

Did you ever read the CDDL?

People who believe that there is a problem use a wrong interpretation of the 
GPL. The CDDL definitely does not prevent combinations with other software.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-26 Thread Neil Bothwick
On Mon, 26 Aug 2013 23:37:02 +0200, Joerg Schilling wrote:

  But the CCDL licence of ZFS precludes its being distributed with the
  kernel. At least, that's how I understand it and the fact that no
  distro distributes a ZFS-enabled kernel makes me believe it is true.  
 
 Did you ever read the CDDL?

Not completely.

 People who believe that there is a problem use a wrong interpretation
 of the GPL. The CDDL definitely does not prevent combinations with
 other software.

I didn't say the CDDL prevented this. I'm not blaming one of the other
licence, but they are considered to be incompatible. I realise you
believe otherwise, and you could well be correct, but those who distribute
the software either believe otherwise or feel there is enough doubt to be
cautious. If in doubt, don't.

I wish your interpretation was correct, but the prevailing option is
otherwise.


-- 
Neil Bothwick

Will we ever get out of this airport? asked Tom interminably.


signature.asc
Description: PGP signature


Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-26 Thread Joerg Schilling
Neil Bothwick n...@digimed.co.uk wrote:

  Did you ever read the CDDL?

 Not completely.

You should do it - it is even much shorter then GPLv3


  People who believe that there is a problem use a wrong interpretation
  of the GPL. The CDDL definitely does not prevent combinations with
  other software.

 I didn't say the CDDL prevented this. I'm not blaming one of the other
 licence, but they are considered to be incompatible. I realise you
 believe otherwise, and you could well be correct, but those who distribute
 the software either believe otherwise or feel there is enough doubt to be
 cautious. If in doubt, don't.

There are several entities that frequently publish such unproven claims.
This sounds like marketing using the cause fear uncertaintly and doubt method.
You should not trust such entities that do not prove their claims.

 I wish your interpretation was correct, but the prevailing option is
 otherwise.

It is not my interpretation, this is the interpretation of all lawyers in the 
net that are willing to explain the background of their decisions.

This interpretation is based on two basic facts:

-   The CDDL was designed for best compatibilitiy with all licenses.

-   The parts of the GPL that are claimed to prevent this license
combination are in conflict with the law and thus void.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] Nvidia optimus no signal on external monitor

2013-08-26 Thread du yang
On Tuesday 08/27/13 02:48:38 CST, James Ausmus wrote:
 Since you're using the proprietary driver, have you tried using the
 nvidia-settings configuration program to set up the second monitor?
 
Tried, tt can't detect out the external monitor.

-- 
oooO:
(..):
:\.(:::Oooo::
::\_)::(..)::
:::)./:::
::(_/


signature.asc
Description: Digital signature


Re: [gentoo-user] Nvidia optimus no signal on external monitor

2013-08-26 Thread James Ausmus
On Mon, Aug 26, 2013 at 5:16 PM, du yang duyang@gmail.com wrote:

 On Tuesday 08/27/13 02:48:38 CST, James Ausmus wrote:
  Since you're using the proprietary driver, have you tried using the
  nvidia-settings configuration program to set up the second monitor?
 
 Tried, tt can't detect out the external monitor.

I would try a different monitor and/or a different monitor cable to rule
out a HW issue on that end




 --
 oooO:
 (..):
 :\.(:::Oooo::
 ::\_)::(..)::
 :::)./:::
 ::(_/


Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-26 Thread Thomas Mueller
On the issue of whether ZFS can be shipped with the Linux kernel, FreeBSD 
includes ZFS with the kernel, binary and source.

So does that mean it would be OK for Linux too?

FreeBSD has a different license (BSD) than Linux (GPL 2 or 3).

I am not a lawyer!

Tom




[gentoo-user] Re: The NVIDIA/Kernel fiasco -- is it safe to sync yet?

2013-08-26 Thread »Q«
On Mon, 26 Aug 2013 08:02:32 +0200
Alan McKinnon alan.mckin...@gmail.com wrote:

 On 26/08/2013 03:52, »Q« wrote:
  I doubt your wiki page idea will work, it will be just accurate
  enough
   to look like it might work and just inaccurate enough to be
   useless. Which brings you back to the previous paragraph - try
   emerge nvidia-drivers and if it fails then don't use that kernel.
  I was unclear to the point of being misleading.  I'm sorry.
  
  The wiki idea is only for a page which tells which
  kernel/nvidia-drivers combinations the Gentoo nvidia-drivers
  maintainers support.  And by support, I mean they'll look into
  bugs and fix build problems if they're able to.  This is exactly
  the info I'm grepping out of ewarn messages in their ebuilds now.
 
 
 That list is the list of kernels that nVidia supports, which is easy
 to find.

Where?  AIUI from reading various threads about this, sometimes that
info can be found in nVidia's developer web forum, but I've never been
able to find it there.  nVidia's READMEs give a minimum kernel version,
but no max.





[gentoo-user] looking for a couple of systemd units

2013-08-26 Thread covici
Hi.  I am looking for a couple of systemd units which I have not been
able to find -- one for mailman and one for innd which is a shell script
by itself.

Thanks in advance for any suggestions.

-- 
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] looking for a couple of systemd units

2013-08-26 Thread Canek Peláez Valdés
On Mon, Aug 26, 2013 at 10:52 PM,  cov...@ccs.covici.com wrote:
 Hi.  I am looking for a couple of systemd units which I have not been
 able to find -- one for mailman and one for innd which is a shell script
 by itself.

 Thanks in advance for any suggestions.

I use this one in production for mailman with Gentoo:


[Unit]
Description=Mailman mailing list service
After=network.target

[Service]
Type=forking
ExecStart=/usr/lib/mailman/bin/mailmanctl -s start
ExecStop=/usr/lib/mailman/bin/mailmanctl stop
User=mailman
Group=mailman

[Install]
WantedBy=multi-user.target


I don't have any for innd.

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] looking for a couple of systemd units

2013-08-26 Thread Canek Peláez Valdés
On Mon, Aug 26, 2013 at 11:06 PM, Canek Peláez Valdés can...@gmail.com wrote:
 On Mon, Aug 26, 2013 at 10:52 PM,  cov...@ccs.covici.com wrote:
 Hi.  I am looking for a couple of systemd units which I have not been
 able to find -- one for mailman and one for innd which is a shell script
 by itself.

 Thanks in advance for any suggestions.

 I use this one in production for mailman with Gentoo:

 
 [Unit]
 Description=Mailman mailing list service
 After=network.target

 [Service]
 Type=forking
 ExecStart=/usr/lib/mailman/bin/mailmanctl -s start
 ExecStop=/usr/lib/mailman/bin/mailmanctl stop
 User=mailman
 Group=mailman

 [Install]
 WantedBy=multi-user.target
 

 I don't have any for innd.

If innd is the one from net-nntp/inn, then the following should work:


[Unit]
Description=The Internet News daemon
Documentation=man:innd(8)
ConditionPathExists=/var/run/news

[Service]
Type=simple
ExecStart=/usr/lib/news/bin/rc.news
ExecStop=/usr/lib/news/bin/rc.news stop
User=news
Group=news

[Install]
WantedBy=multi-user.target


If the binary rc.news forks itself (and there is no option to force it
to run in the foreground), use Type=forking. The former is preferred
over the latter. Also, to guarantee that the directory /var/run/news
always is present, add the following to a new file
/etc/tmpfiles.d/innd.conf:


d/var/run/news   0755 news news 10d -


You can replace 10d with - (hypen), so the directory is never cleaned
automatically. If you try this unit and it works as expected, please
let us know.

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] looking for a couple of systemd units

2013-08-26 Thread covici
Canek Peláez Valdés can...@gmail.com wrote:

 On Mon, Aug 26, 2013 at 10:52 PM,  cov...@ccs.covici.com wrote:
  Hi.  I am looking for a couple of systemd units which I have not been
  able to find -- one for mailman and one for innd which is a shell script
  by itself.
 
  Thanks in advance for any suggestions.
 
 I use this one in production for mailman with Gentoo:
 
 
 [Unit]
 Description=Mailman mailing list service
 After=network.target
 
 [Service]
 Type=forking
 ExecStart=/usr/lib/mailman/bin/mailmanctl -s start
 ExecStop=/usr/lib/mailman/bin/mailmanctl stop
 User=mailman
 Group=mailman
 
 [Install]
 WantedBy=multi-user.target
 
 
 I don't have any for innd.

OK, thanks.  

-- 
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