Re: [gentoo-user] Demise of Truecrypt - surprised I haven't seen t his discussed here yet?

2014-06-02 Thread Michael Hampicke
Am 02.06.2014 10:22, schrieb Dale:
 Volker Armin Hemmann wrote:
 Am 01.06.2014 14:31, schrieb Tanstaafl:
 Wow, I've been mostly offline for a few days, and this morning when
 playing catch up on the news, learned that Truecrypt, one of my all
 time favorite apps, is no more.

 Some links of interest:

 https://www.schneier.com/blog/archives/2014/05/truecrypt_wtf.html

 https://news.ycombinator.com/item?id=7812133

 http://community.spiceworks.com/topic/505372-truecrypt-is-dead?page=1


 well, if true: good riddance. But I suspect some hacker-y or power
 struggle.


 
 I'm considering encrypting my home partition one of these days.  Given
 the things that have come out in recent months, back doors and such,
 what is a good program/software/tool to use that is well . . . secure? 
 Is there such a thing now?
 

Depends on your needs, for encrypting complete devices/partitions try
the kernels dm-crypt/luks module. If you just want to encrypt a
directory try encfs, and for file encryption there's openssl and gpg



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Demise of Truecrypt - surprised I haven't seen t his discussed here yet?

2014-06-02 Thread Michael Hampicke
Am 02.06.2014 11:20, schrieb Neil Bothwick:
 On Mon, 02 Jun 2014 10:53:51 +0200, Michael Hampicke wrote:
 
 I'm considering encrypting my home partition one of these days.  Given
 the things that have come out in recent months, back doors and such,
 what is a good program/software/tool to use that is well . . .
 secure? Is there such a thing now?
  
 Depends on your needs, for encrypting complete devices/partitions try
 the kernels dm-crypt/luks module. If you just want to encrypt a
 directory try encfs, and for file encryption there's openssl and gpg
 
 Definitely dm-crypt/LUKS for partitions/devices, but why use encfs which
 needs FUSE, when ecryptfs does the same thing in kernel space?
 

True, I totally forgot about ecryptfs :-)



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Demise of Truecrypt - surprised I haven't seen t his discussed here yet?

2014-06-02 Thread Michael Hampicke
 I might add, on a older rig I tried that command once.  I ran rm -rfv /*
 and it didn't erase everything like I thought it would.  I figured the
 command would be loaded in ram and would run until the end of the /
 structure.  It didn't.  I can't recall how far it got now but I think it
 was in the /proc directory.  I figure it deleted the process and sort of
 forgot to finish.  It's been a while since I did that tho.  Details are
 fuzzy. 

# rm -rfv /
rm: it is dangerous to operate recursively on ‘/’
rm: use --no-preserve-root to override this failsafe

# rm -rfv --no-preserve-root /
** deletes lots of stuff**
** cannot delete in /proc **
** cannot delete in /sys **
** deletes more stuff **
** finshed with status 0 **

System broken :-) Don't worry, it was only a virtual machine.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] systemd and amixer

2014-05-29 Thread Michael Hampicke
Am 29.05.2014 04:27, schrieb Walter Dnes:
 On Wed, May 28, 2014 at 06:36:28PM -0400, cov...@ccs.covici.com wrote
 Walter Dnes waltd...@waltdnes.org wrote:

 Yep, its the same, but when I tried to restore as a regular user (which
 I normally don't do) it complained about the .lock file and restored to
 some strange values which involved so much feedback that I had to go to
 a root window and restore again.  The strange thing is that I had no
 problems like this under openrc, so I wonder what systemd is doing and
 how I can get around it.
 
   The settings are supposed to be automatically restored as part of the
 bootup process.  If you run openrc, did you execute...
 
 rc-update add alsasound boot
 
 ...at alsa installation as per http://wiki.gentoo.org/wiki/ALSA ?  If
 you run systemd, I assume there's an equivalant service file.  And,
 grasping at straws, is your regular user a member of the audio group?
 

alsa-utils brings alsa-store.service and alsa-restore.service, but these
should be enabled by default

$ find /usr/lib/systemd/ -name *alsa*
/usr/lib/systemd/system/basic.target.wants/alsa-restore.service
/usr/lib/systemd/system/basic.target.wants/alsa-state.service
/usr/lib/systemd/system/shutdown.target.wants/alsa-store.service
/usr/lib/systemd/system/alsa-restore.service
/usr/lib/systemd/system/alsa-state.service
/usr/lib/systemd/system/alsa-store.service




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] systemd how can I get a service to start after network is up

2014-05-20 Thread Michael Hampicke
Am 20.05.2014 12:29, schrieb cov...@ccs.covici.com:
 Hi.  I have a simple, static, ethernet network.  However when booting
 using systemd, a number of services which should start only after the
 network is up, insist on starting in parallell and so fail for various
 reasons.  Here is my network service and my ntpdate service file, and I
 would like to know how to get the ntpdate service file to wait till the
 network is up before trying to start.
 
 Thanks in advance for any suggestions.
 
 Network service file:
 [Unit]
 Description=Network Connectivity for %i
 Documentation= nam ip
 Before=network.target
 wants=network.target
 BindsTo=sys-subsystem-net-devices-%i.device
 After=sys-subsystem-net-devices-%i.device
 [Service]
 Type=oneshot
 RemainAfterExit=yes
 EnvironmentFile=/etc/conf.d/network@%i
 ExecStart=/bin/ip link set dev %i up
 ExecStart=/bin/ip addr add ${address}/${netmask} broadcast ${broadcast} dev %i
 ExecStart=-/bin/bash -c test -n ${gateway}  /bin/ip route add default via 
 ${gateway}
 ExecStart=-/bin/bash -c test -f /etc/conf.d/postup@%i.sh/bin/bash  -c 
 /etc/conf.d/postup@%i.sh
 ExecStop=/bin/ip addr flush dev %i
 ExecStop=/bin/ip link set dev %i down
 [Install]
 WantedBy=multi-user.target
 
 and here is my ntpdate service file:
 
 [Unit]
 Description=Set time via NTP using ntpdate
 After=network.target nss-lookup.target
 Before=time-sync.target
 Wants=time-sync.target
 
 [Service]
 Type=oneshot
 EnvironmentFile=/etc/conf.d/ntp-client
 ExecStart=/usr/sbin/ntpdate $NTPCLIENT_OPTS
 RemainAfterExit=yes
 
 [Install]
 WantedBy=multi-user.target
 

Hi there,

setting After=network.target should just work (tm). I have a few
custom service files which need a working network connection, and using
this setting words for me.

systemd-analyze plot  boot.svg also shows the these services only start
after the network is up.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Change EFI to BIOS Boot

2014-04-12 Thread Michael Hampicke
Am 12.04.2014 12:45, schrieb Facu Curti:
 Hi all. First at all i apologize if my english is not enough.
 When I installed gentoo, I do that with UEFI, and gpt partitions. But
 right now, I tried to install XEN, and this not works with EFI. I cant
 wait until somebody fix this problem, So i'm thinking to change EFI to
 BIOS boot.
 
 So, I deleted the efi (/boot/efi) partition, edited make.conf, and deleted
 /etc/default/grub.
 
 After that, I made a new partition with bios_grub
 flag. As explained in [1]. And reinstalled grub2 (with new flags).
 But I can't boot. Anyway, I can boot from a live cd without
 efi, so the problem is not in bios.
 
 I can't find the problem. ¿Some ideas?
 
 parted -l /dev/sdb:
 
 Model: ATA KINGSTON SV300S3 (scsi)
 Disk /dev/sdb: 120GB
 Sector size (logical/physical): 512B/512B
 Partition Table: gpt
 Disk Flags: 
 
 Numero  Inicio  Fin Tamaño  Sistema de ficheros  Nombre  Banderas
  1  1049kB  11,5MB  10,5MB   bios_grub
  2  58,7MB  24,8GB  24,7GB  ext4 rootfs  arranque
  3  24,8GB  28,8GB  3999MB  linux-swap(v1)   swap
  4  28,8GB  120GB   91,2GB  ext4 home
 

looks good

 I made install with:
 grub2-install --target=i386-pc --recheck --debug /dev/sdb

Try booting from the live cd and chroot into your gentoo installation.
Reinstall grub from there



 grub2-mkconfig /boot/grub/grub.cfg
 

Is this a typo? The correct command is

grub2-mkconfig -o /boot/grub/grub.cfg




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Cant boot with SSD, GPT, GRUB2 and UEFI

2014-03-08 Thread Michael Hampicke
Am 08.03.2014 10:40, schrieb Facundo Curti:
 Yes. I press F8 (boot menu) and I choice UEFI:Sandisk :/
 

Also, make sure, that you modprobe efivarfs before you enter the chroot.
Then it sould work, you can verify that it works by using efibootmgr -v



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: EFI-based bootloader for BIOS-based computers (?)

2014-02-22 Thread Michael Hampicke
Am 22.02.2014 16:56, schrieb Poison BL.:
 On Sat, Feb 22, 2014 at 8:00 AM, Mick michaelkintz...@gmail.com wrote:
 
 Last I did much research on it, the only semi-working implementation of OSX
 in a VM required VMware Workstation as the host, involved booting a hacked
 together boot cd image, and crashed and burned hard on updates. It was
 interesting, but not very viable for anything that's of any measurable
 importance at all. I tested it out for a couple days to compile a little
 pice of code a mac user friend wanted to play with... it was dog slow on my
 system otherwise (but that was likely my system's fault, old E8400 @4GB ram
 at the time + Win7)
 

I too failed miserably trying to run Hackintosh on a Gentoo Host (with
Virtualbox). It's hard to get it to run at all, and when it runs, it's
very slow an unstable.

The only supported way to run OSX in a VM is with an OSX Host and VMware
Fusion. I tried that too on my MacPro, it runs good, but it's not very
smooth because you have no hardware acceleration (graphics) inside the
VM. OSX is just not made to run in an virtualized environment.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] SSD success - I think

2014-02-22 Thread Michael Hampicke
Am 22.02.2014 15:47, schrieb Peter Humphrey:
 
 I find though that fstrim can't operate on /boot, which is a separate ext2 
 file 
 system. It reports:
   fstrim: /boot: FITRIM ioctl failed: Inappropriate ioctl for device
 Is this because it's an ext2 partition, not ext4 like the rest of them? Man 
 fstrim makes no mention of file-system types.

Yes, only ext4 of the extX file systems supports discard/trim

 
 Maybe I've not laid out the partitions properly. I used gparted from a recent 
 System Rescue CD (http://sysresccd.org), which said it was leaving 1MB unused 
 before /dev/sda1.
 
 While I'm here, would anyone like to suggest suitable parameters to mkfs for 
 any of my file-systems? Here's the fstab:
 
 /dev/sda1   /boot   ext2noauto,relatime 1 2
 /dev/sda2   noneswapsw  0 0
 /dev/sda5   /   ext4relatime0 1
 /dev/sda6   /varext4relatime0 2
 /dev/sda7   /home   ext4relatime0 2
 /dev/sda8   /var/cache/squidext4relatime0 3
 /dev/sda9   /usr/portageext4relatime0 3
 /dev/sda10  /usr/portage/packages   ext4relatime0 4
 /dev/sda11  /usr/local  ext4relatime0 2
 proc/proc   procdefaults0 0
 tmpfs   /tmptmpfs   nodev,nosuid0 0
 tmpfs   /var/tmptmpfs   nodev,nosuid0 0
 shm /dev/shmtmpfs   nodev,nosuid,noexec 0 0
 
 I created all the ext4 file-systems with -O ^has_journal to avoid 
 concentrated 
 wear. Is this still a good idea nowadays? I'm happy to sacrifice the comfort 
 of 
 journalling since recovering this small box from backup is so quick and easy. 
 Of course I did plenty of googling before doing anything and picked out what 
 still seemed appropriate, but I could easily have missed something important.
 

I used the default options for ext4 on my SSDs. The only thing I do is,
I set noatime in fstab. But I do this for all file systems.

My oldest SSD is from 2008/2009, I'm not sure. It's a 32GB SuperTalent,
and it still runs great today. And I did not care for low writes etc. I
just used it like any other disk.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Net work cards

2014-02-03 Thread Michael Hampicke
Am 03.02.2014 13:36, schrieb Stephen Reynolds:
 Hi all
 
 
 
 I am doing a new Gentoo installation and I cannot get my network cards to
 work. I have two cards
 
 
 
 1) eth0 =  Realtek RLTl8111e
 
 2) wlan0 = RaLink RT2561/RT61
 
 
 
 Gen Kernel has support for both.
 
 
 
 Please advise me as to what steps I can take to fix this?
 

Are the kernel modules for your network desvices loaded? What's the
output of ifconfig -a?



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Will ZFS clobber my MBR?

2014-01-23 Thread Michael Hampicke
Am 23.01.2014 01:23, schrieb William Kenworthy:
 On 23/01/14 07:58, Chris Stankevitz wrote:
 Being someone who is always fiddling with a machines innards ... I
 usually embed grub in multiple disks with the menu sometimes pointing to
 a rescue partition as well as the main system - saved me a few times.
 
 However, a systemrescuecd usb stick is my current fallback ... and after
 a couple of such rescues I think grub2 sucks :)
 

I have a two sticks near by for that case: sysrescd and an arch
installation. I migrated Arch-on-a-stick from grub2 to syslinux already,
and I'm thinking about switching my workstation to syslinux too. It can
boot in UEFI mode, so there's no problem.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Will ZFS clobber my MBR?

2014-01-22 Thread Michael Hampicke
Am 22.01.2014 10:01, schrieb Chris Stankevitz:
 Hello,
 
 My / (root) lives on /dev/sdb1.  My /dev/sda has no partitions and no data
 except for what I presume is the mbr written by lilo.  [history: sdb is an
 SSD and I never wanted to use the slow sda]
 
 I have been playing with ZFS on a USB drive and I am ready to create a
 zpool on /dev/sda.
 
 ZFS recommends that I give it the entire drive (partitioning discouraged).
  In this case I hesitate to give ZFS my entire drive as I worry ZFS will
 clobber my MBR rendering my system unbootable.
 
 Are my fears warranted?  If so, what should I do about it?  If you
 recommend that I partition sda, what parameters do I used to avoid a
 clobber?
 

I don't know if creating a ZFS volume on /dev/sda kill break your mbr.
But why don't you install lilo on /dev/sdb ?
You change change the boot order in BIOS after that.




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Systemd as drop-in replacement for udev?

2013-12-05 Thread Michael Hampicke
Am 06.12.2013 07:32, schrieb J. Roeleveld:
 On Fri, December 6, 2013 00:17, Canek Peláez Valdés wrote:
 On Thu, Dec 5, 2013 at 4:26 PM, Róbert Čerňanský
 ope...@tightmail.com wrote:
 I will try openrc-force as temporal solution until I'll find a new
 display manager and give heart breaking good by to GDM.

 You could *try* to run systemd and see if you like it.

 Many of us do.
 
 For the option to try systemd, I would first require a detailed how-to on
 how to switch back to OpenRC without requiring reverting to backups or
 doing a full reinstall.
 

Just remove init=/usr/lib/systemd/systemd from your kernel command
line, and you can boot your old openrc installation (if you did un
unmerge it)



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Systemd as drop-in replacement for udev?

2013-12-05 Thread Michael Hampicke
 
 Just remove init=/usr/lib/systemd/systemd from your kernel command
 line, and you can boot your old openrc installation (if you did un
 unmerge it)
 

That should mean: ..if you did not unmerge it.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] GPT-UEFI-fstab questions

2013-11-14 Thread Michael Hampicke
Am 14.11.2013 18:18, schrieb James:
 Hello,
 
 I've made another run and this, using this document guide:
 http://code.google.com/p/pentoo/wiki/UEFI#UEFI_pentoo-installer_guide_for_UEFI_and_GPT
 
 it all seem to be fine; except grub 2 cannot find the kernel.
 The GPT is read fine by grub2. But, grub 2 cannot find
 the kernel, explicitly the error messages from grub2:
 
 error : file '/boot/kernel-genkernel-x86_64-3.3.9-pentoo' not found.
 error: you need to load the kernel first
 
 
 Here is the fstab:
 
 UUID=EFA3-8415 /boot/efi   vfat   default0 1
 #sda2
 UUID=cf76566e-bf4e-4dee-ab9d-6fc2bcdd5b1b /boot ext2  defaults   0 1
 #sda3
 UUID=0ef33e5a-7869-418e-86be-1ef5e16b4495  none swap  sw 0 0
 #sda4
 UUID=fc8efde7-359e-41b1-94b0-8a9a868bdf24  /ext4  defaults   0 0
 
 shm /dev/shmtmpfs   nodev,nosuid,noexec 0 0
 /dev/cdrom  /mnt/cdrom  audonoauto,ro   0 0
 
 
 If you look at the table, which I followed, the names are in all caps, but
 I used lowercase; could this be the problem?
 
 
 
 The table from the aforementioned doc:
 Select gpt as Partition Table
 Create the following partitions: 
 
 # FS  Sizemount point name
 /dev/sda1 vfat256M/boot/efi   UEFI
 /dev/sda2 ext264M /boot   BOOT
 /dev/sda3 swap4G  SWAP
 /dev/sda4 ext416G /   ROOT
 
 Booting GRUB-2 through UEFI
 
 On 4. Install Bootloader choose UEFI-GRUB.
 The UEFI boot partition will be /dev/sda1.
 The GRUB device path will be (hd0,2) - the default, /dev/sda2 where the
 kernel resides. 
 
 
 ANY IDEAS?

Please show us your grub2.cfg :-)
Also try using the output of grub2-mkconfig as your grub2.cfg and see if
your machine boots.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: GPT-UEFI-fstab questions

2013-11-14 Thread Michael Hampicke
Am 14.11.2013 19:17, schrieb James:
 Michael Hampicke mh at hadt.biz writes:
 
 
 On 4. Install Bootloader choose UEFI-GRUB.
 The UEFI boot partition will be /dev/sda1.
 The GRUB device path will be (hd0,2) - the default, /dev/sda2 
 where the kernel resides. 
 
 Please show us your grub2.cfg 
 Also try using the output of grub2-mkconfig as your grub2.cfg and see if
 your machine boots.
 
 
 During the pentoo install, I capture this:
 
 
 now review the /tmp/efibootpart/boot/grub2/grub.cfg
 
 timeout=5
 menuentry 'Pentoo' {
 insmod efi_gop
 insmod efi_uga
 insmod part_msdos
 insmod part_gpt
 root=(hd0,2)
 linux /boot/kernel-genkernel-x86_64-3.9.9-pentoo root=/dev/ram0
 real_root= video= console=tty1 ro
 initrd /boot/initramfs-genkernel-x86_64-3.9.9-pentoo
 }
 

Do you have the boot symlink on your boot partition?
$ ls -al /boot/boot
lrwxrwxrwx 1 root root 1 Sep 23  2011 /boot/boot - .



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: [O/T] RAID help - now won't boot

2013-10-20 Thread Michael Hampicke
Am 20.10.2013 11:54, schrieb Mick:
 Any ideas why the Ubuntu installation won't boot?
 

My guess would be, you cannot boot, because if you install grub in /dev/md0.

Upon boot the bios cannot find stage1 of the bootloader, which normally
lies in the MBR (which also houses the partition table).

Is a setup as you wish - sda and sdb as raid1, and partitions only on
md0 - bootable in general?



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: [O/T] RAID help - now won't boot

2013-10-20 Thread Michael Hampicke
Am 20.10.2013 15:13, schrieb Mick:
 On Sunday 20 Oct 2013 13:57:34 Michael Hampicke wrote:
 Am 20.10.2013 11:54, schrieb Mick:
 Any ideas why the Ubuntu installation won't boot?

 My guess would be, you cannot boot, because if you install grub in
 /dev/md0.

 Upon boot the bios cannot find stage1 of the bootloader, which normally
 lies in the MBR (which also houses the partition table).
 
 I see ... so installing the MBR code in the /dev/md0 block device is further 
 down the disk than where BIOS is looking for it and that's why it errors out?
 

That would be my guess. Maybe someone more knowledgeable on how mdadm
writes stuff on the disk can jump in and provide additional info. But
I'm pretty sure, if you install grub in md0, it's not in that place on
the disk where the bios is actually looking for.

 
 It seems to me then that I *have* to create normal partitions on /dev/sda  
 /dev/sdb, or I would need a different boot drive.  Is there another way to 
 overcome this problem. 

Maybe create two mds. md1 (sda1, sdb1) is a small boot partition which
contains stage2+, the kernel and the initramfs. And md2 (sda2, sdb2)
which acts as another block device with partition table, etc...
In this setup you could install grub in the mbr of sda and sdb
(grub-install /dev/sda...)

A quick google on this subject returned no usable results. But I am off
now until tomorrow.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] virt-manager and ssh

2013-10-07 Thread Michael Hampicke
Am 07.10.2013 11:29, schrieb Stefan G. Weichinger:
 Am 03.10.2013 15:39, schrieb Michael Hampicke:
 
 Server side:

 [ebuild   R   ~] app-emulation/libvirt-1.1.2-r3  USE=caps libvirtd
 lvm macvtap nls numa python qemu udev vepa virt-network -audit
 -avahi -firewalld -fuse -iscsi -lxc -nfs -openvz -parted -pcap
 -phyp -policykit -rbd -sasl (-selinux) -systemd -uml -virtualbox
 -xen PYTHON_SINGLE_TARGET=python2_7 -python2_6
 PYTHON_TARGETS=python2_7 -python2_6 0 kB

 I connect via ssh+pubkey
 
 Would you mind sharing your libvirtd.conf as well?
 Did you add a separate user/group for libvirtd on the server side?
 
 Thanks!
 
 

Hi Stefan, I did not change my libvirtd.conf
There are no options set there, only comments.

# egrep -i 'qemu|kvm|libvirt' /etc/passwd /etc/group
/etc/passwd:qemu:x:77:77:added by portage for
libvirt:/dev/null:/sbin/nologin
/etc/group:kvm:x:78:qemu
/etc/group:qemu:x:77:


Once I had a problem with libvirt too. I remember that there was some
debug option. When enabled you could see what libvirt was doing exactly.
But I don't remeber where that options was. Maybe it was some enviroment
variable that you had to set? Something like

DEBUGOPTIONS=whatever virsh your commands

and

DEBUGOPTIONS=whatever libvirt --option-to-not-fork-in-background

I don't have the man page handy right now. HTH



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] virt-manager and ssh

2013-10-03 Thread Michael Hampicke
Am 03.10.2013 11:52, schrieb Stefan G. Weichinger:
 Am 03.10.2013 11:49, schrieb Stefan G. Weichinger:
 Am 03.10.2013 11:45, schrieb Stefan G. Weichinger:

 Are you running stp.  I was having a problem that when I did anything to
 libvirt it would disconnect the bridge and stp reconfigured.  Turning it
 off fixed it (am using openvswitch)

 Could you specify where to turn that off? I don't know stp ... sorry.

 Ah, it's a bridge feature ;-)

 I assume I should turn it off on the KVM server. Will do now.


 
 No change:
 
 I get
  *** snipped error ***

Did you restart libvirt after the change?

virt-manager over ssh here works fine.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] virt-manager and ssh

2013-10-03 Thread Michael Hampicke
Am 03.10.2013 13:52, schrieb Stefan G. Weichinger:
 Am 03.10.2013 13:42, schrieb Michael Hampicke:
 
 Did you restart libvirt after the change?

 virt-manager over ssh here works fine.
 
 Restarted, rebuilt ...
 
 which release do you use? Which USE-flags?
 

Client side:
[ebuild   R] app-emulation/libvirt-1.1.2-r3  USE=caps libvirtd lvm
macvtap nls numa policykit python qemu systemd udev vepa virt-network
virtualbox -audit -avahi -firewalld -fuse -iscsi -lxc -nfs -openvz
-parted -pcap -phyp -rbd -sasl (-selinux) -uml -xen
PYTHON_SINGLE_TARGET=python2_7 -python2_6 PYTHON_TARGETS=python2_7
-python2_6 0 kB
[ebuild   R] app-emulation/virt-manager-0.10.0-r1
USE=gnome-keyring policykit -debug -sasl
PYTHON_SINGLE_TARGET=python2_7 -python2_6 PYTHON_TARGETS=python2_7
-python2_6 0 kB


Server side:

[ebuild   R   ~] app-emulation/libvirt-1.1.2-r3  USE=caps libvirtd lvm
macvtap nls numa python qemu udev vepa virt-network -audit -avahi
-firewalld -fuse -iscsi -lxc -nfs -openvz -parted -pcap -phyp -policykit
-rbd -sasl (-selinux) -systemd -uml -virtualbox -xen
PYTHON_SINGLE_TARGET=python2_7 -python2_6 PYTHON_TARGETS=python2_7
-python2_6 0 kB

I connect via ssh+pubkey



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] separate / and /usr to require initramfs 2013-11-01

2013-09-28 Thread Michael Hampicke
Am 28.09.2013 13:32, schrieb Tanstaafl:
 On 2013-09-27 7:10 PM, Alan McKinnon alan.mckin...@gmail.com wrote:
 No really,*why exactly*?
 
 Because that was the RECOMMENDED WAY IN THE GENTOO HANDBOOK when I first
 set this system up many years ago.
 

Where did you read that? According to the 2004 handbook the default
partition scheme was:

Partition   Filesystem  SizeDescription
/dev/hda1   ext232M Boot partition
/dev/hda2   (swap)  512MSwap partition
/dev/hda3   ext3Rest of the diskRoot partition


http://web.archive.org/web/20040419042803/http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] separate / and /usr to require initramfs 2013-11-01

2013-09-28 Thread Michael Hampicke
Am 28.09.2013 17:06, schrieb Dale:
 Michael Hampicke wrote:
 Am 28.09.2013 13:32, schrieb Tanstaafl:
 On 2013-09-27 7:10 PM, Alan McKinnon alan.mckin...@gmail.com wrote:
 No really,*why exactly*?

 Because that was the RECOMMENDED WAY IN THE GENTOO HANDBOOK when I first
 set this system up many years ago.


 Where did you read that? According to the 2004 handbook the default
 partition scheme was:

 PartitionFilesystemSizeDescription
 /dev/hda1ext232MBoot partition
 /dev/hda2(swap)512MSwap partition
 /dev/hda3ext3Rest of the diskRoot partition



 http://web.archive.org/web/20040419042803/http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1

 
 I guess I got mine from the handbook back in early 2003.  That is when I
 did my first install.

This is the default partition scheme from 2001 according to the handbook :-)

Partition   SizeType
boot partition, containing kernel(s) and boot information   ~100
Megabytes   ReiserFS recommended, ext2 ok
root partition, containing main filesystem (/usr, /home, etc)   =1.5
Gigabytes   ReiserFS recommended, ext2 ok
swap partition (no longer a 128 Megabyte limit) =128 Megabytes Linux swap

No seperate /usr either

 
 Also, as I stated, I have / and /boot on regular partitions and
 everything else on LVM.  Care to guess why I don't have / on a LVM too? 
 Yep, to avoid the init thingy.  I don't have /boot on LVM because grub
 didn't support it.
 

I know that you want the avoid an initramfs given your experience from
mandrake lot's of years ago. The solution now is to merge /usr to / or
risk that one day your system won't boot.

I know that some changes are hard to overcome, but that does not mean
you can look away :-)



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: {OT} Need a new server

2013-09-14 Thread Michael Hampicke
Am 14.09.2013 11:29, schrieb Grant:
 It's time to switch hosts.  I'm looking at the following:

 Dual Xeon E5-2690
 32GB RAM
 4x SSD RAID10

 If I make this 6x SSD RAID10 with redundant power supplies, what is my
 weakest link as far as hardware?  If a CPU craps out, will the system
 keep running?

 Your weakest link is not having redundant power feeds. Two PSUs doesn't
 help much when they both draw power from the same place :-)
 
 At Soft Layer redundant power supplies are actually powered by
 redundant power feeds.
 
 Second is inadequate cooling in the data centre
 
 Easy to monitor though.
 

True, it's easy to monitor. But that does not help you in case of
cooling. I had that case once a few years back in july. Air condition
_and_ backup air condition fell out in the offsite data center where we
had some server.

I still have the munin image from that day. Almost 70° c hot hard drives
are not a pretty sight :-)

And there's nothing you can do, except shutting down the server and wait
until the refrigeration engineers have fixed the air conditioning.
attachment: hddtemp-day.png

signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] creating an image of the system

2013-09-09 Thread Michael Hampicke
Am 08.09.2013 20:51, schrieb Benjamin Block:
 Hej folks,
 
 I wonder what is a good way to create an image of a gentoo-system, so
 that one can apply it later to the same or other computers.
 
 In my case it is a rather simple setup: one partition, no encryption or
 lvm. Its a debug-setup, so its only used for certain programming-tasks
 and not for daily work, so no need for something fancy. The time I setup
 that system I also used only conservative compilation-flags and
 optimisation, so that it can be used on other CPUs (well, they have to
 be x86_64 and have to have mmx/sse[23] - but I think every setup that I
 intend to use this on will have these properties).
 
 So I reckon that one could just use tar with permission-preservation and
 some excludes like dev/sys/proc/tmp. But is this a good idea or is there
 a better way to do this? I never cloned a gentoo-system, so thats why I
 would like to be at least somewhat sure about it, so that I don't have
 to reconfigure it later again, because I messed it up :D
 

Tar with permission preservation is fine. Just exlude everything in
dev/sys/proc/tmp as you said. But make sure, that these directories are
in your tar file, it does not matter if they are empty, but they have to
exist in order to boot proplery.

One special case. To boot you most likely will need /dev/console and
/dev/null. Just inlcude those two device nodes in your tar file.

Optionally use compression (gz, bz2, xz, ...) on your tar to safe some
space.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] creating an image of the system

2013-09-09 Thread Michael Hampicke
Am 09.09.2013 21:05, schrieb Benjamin Block:
 On 08:30 Mon 09 Sep , Michael Hampicke wrote:
 Am 08.09.2013 20:51, schrieb Benjamin Block:
 Hej folks,

 I wonder what is a good way to create an image of a gentoo-system, so
 that one can apply it later to the same or other computers.

 In my case it is a rather simple setup: one partition, no encryption or
 lvm. Its a debug-setup, so its only used for certain programming-tasks
 and not for daily work, so no need for something fancy. The time I setup
 that system I also used only conservative compilation-flags and
 optimisation, so that it can be used on other CPUs (well, they have to
 be x86_64 and have to have mmx/sse[23] - but I think every setup that I
 intend to use this on will have these properties).

 So I reckon that one could just use tar with permission-preservation and
 some excludes like dev/sys/proc/tmp. But is this a good idea or is there
 a better way to do this? I never cloned a gentoo-system, so thats why I
 would like to be at least somewhat sure about it, so that I don't have
 to reconfigure it later again, because I messed it up :D


 Tar with permission preservation is fine. Just exlude everything in
 dev/sys/proc/tmp as you said. But make sure, that these directories are
 in your tar file, it does not matter if they are empty, but they have to
 exist in order to boot proplery.

 One special case. To boot you most likely will need /dev/console and
 /dev/null. Just inlcude those two device nodes in your tar file.

 
 Thanks for pointing that out, but why are these both special? Seems to
 me like these are also (char)device-nodes and shouldn't they also be
 generated by the kernel with DEVTMPFS and then udev at a very early
 init-stage?

If you have DEVTMPFS enabled you should be fine. But not everybody has
that enabled, or even uses udev :-)



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] No mailer for Gentoo???

2013-09-06 Thread Michael Hampicke
Am 06.09.2013 18:45, schrieb Jarry:
 On 06-Sep-13 18:29, Canek Peláez Valdés wrote:
 On Fri, Sep 6, 2013 at 11:22 AM, Jarry mr.ja...@gmail.com wrote:
 On 06-Sep-13 18:14, Canek Peláez Valdés wrote:

 On Fri, Sep 6, 2013 at 10:51 AM, Jarry mr.ja...@gmail.com wrote:

 On 06-Sep-13 17:32, Michael Orlitzky wrote:


 On 09/06/2013 11:23 AM, Jarry wrote:



 It wasn't part of @system before, you just removed the thing that
 pulled
 it in.



 No I did not. mail-mta/ssmtp was part of stage3. And I did not
 remove now any thing that pulled it in. All I did was
 emerge --ask --update --deep --newuse world.

 As a result, python-exec, python-argparse and libxml2 were
 reinstalled and automake-wrapper, gtk-doc-am, eselect and
 linux-header updated. Nothing else.

 After that I did emerge --depclean and the above mentioned
 packages were suddenly removed...


 It could be that a package's deps were updated to no longer include
 virtual/mta. But it was never part of @system, you can check for
 yourself:



 http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/profiles/base/packages?view=log




 Then something got broken because I have packages installed
 that need mailer (i.e. app-admin/monit or sys-fs/mdadm are
 configured to send emails). And these packages do not have
 mail use-flag, because their maintainers apparently expect
 standard *nix mailer (/usr/bin/sendmail) exists on the system...

 So now I have stable system, updated to the latest level,
 where a lot of things suddenly do not work. This should *never*
 happen! If it was some package's dep that caused it, it's clear
 this change was premature...


 I think is a bug in the packages. In my system the only package that
 pulls vitual/mta (and therefore ssmtp) is vixie-cron.


 That is strange. I have sys-process/vixie-cron-4.1-r12 and yet
 revdep-rebuild does not want to pull virtual/mta. But It should,
 as cron can be configured to send emails too.

 Read my last mail; they changed the RDEPEND for the cron eclass.

 As I wrote: there are *many* packages that expect standard
 *nix mailer exists! If it does not, a lot of packages must
 be fixed to include mailer as dependency.

 The devs disagree. I think I'm with them; the packages in question
 actually work, it just happens that they can't send mails anymore. If
 you need/want them to send mails, install an MTA.

 
 Just can't send mails. So if mdadm detects failed drive in raid1
 and I do not get mail about it, I will discover it at least when
 the 2nd drive fails. That's a relief...
 
If you wan't to get mails from mdadm install an an MTA. Is that so hard
to understand?



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] systemd and LUKS

2013-09-03 Thread Michael Hampicke
Am 03.09.2013 13:46, schrieb Frank Steinmetzger:
 Hey list
 
 after the many discussions here about systemd I had a flash of
 objectivity (“Who cares if people rant about Lennart, the concept seems
 sound and I don’t care about separate /usr”). So I wanted to try systemd
 on my netbook.
 
 I cloned the / partition from sda2 to sda7 and chrooted into it. In
 there I followed the systemd Gentoo wiki¹, i.e. I configured the kernel,
 installed systemd, added -consolekit systemd to my use flags, rebuilt
 world with --new-use and added init=/usr/lib/systemd/systemd to the
 kernel cmdline.
 
 Rebooting works until the point of mounting /home, which is a LUKS
 container. I get the message:
 A start job is running for dev-mapper-home.service
 and eventually a timeout and prompt for root password or Ctrl-D.

When it show A start job is running for dev-mapper-home.service you
can enter the password for the luks volume. Just type in a few letters,
you will see them displayed as 

I too run systemd + luks - this is my config:



$ cat /etc/crypttab

# target name source device key file  options
tank/dev/sdb2   noneluks



$ grep tank /etc/fstab
#/dev/mapper/tank   /home   ext4noatime,nofail  0 2


Also make sure to compile systemd with USE=cryptsetup



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Can't ping remote system

2013-09-01 Thread Michael Hampicke
Am 01.09.2013 14:54, schrieb Michael Hampicke:
 Am 01.09.2013 14:28, schrieb Grant:
 My laptop can't ping my remote system but it can ping others
 (google.com, yahoo.com, etc).  I've tried disabling my firewall on
 both ends with '/etc/init.d/shorewall stop  shorewall clear'.  Could
 my ATT business ADSL connection on the remote system be blocking
 inbound pings?

 
 Possible, have you tried pinging your remote system from a different
 location? You may try http://www.downforeveryoneorjustme.com/
 


Sorry, wrong link: http://ping.eu/ping/



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Can't ping remote system

2013-09-01 Thread Michael Hampicke
Am 01.09.2013 14:28, schrieb Grant:
 My laptop can't ping my remote system but it can ping others
 (google.com, yahoo.com, etc).  I've tried disabling my firewall on
 both ends with '/etc/init.d/shorewall stop  shorewall clear'.  Could
 my ATT business ADSL connection on the remote system be blocking
 inbound pings?
 

Possible, have you tried pinging your remote system from a different
location? You may try http://www.downforeveryoneorjustme.com/



signature.asc
Description: OpenPGP digital signature


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

2013-08-27 Thread Michael Hampicke
Am 26.08.2013 20:11, schrieb 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
On a failed boot, can you reach the rescue system from the initramfs?
(The message is something like enter password for rescue or ctrl+d) If
so, are you able mount your actual root partiton (sda5) manually?



signature.asc
Description: OpenPGP digital signature


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] Recommendation for CPU type in QEMU?

2013-08-01 Thread Michael Hampicke
Am 01.08.2013 03:02, schrieb Walter Dnes:
 On Wed, Jul 31, 2013 at 11:45:48AM +0100, Kerin Millar wrote
 
 Please provide the content of /proc/cpuinfo on the host.
 
   The first one is my shiney almost new desktop (Dell Inspiron 660) and
 the second one is my hot backup (more like emergency backup, 6-year-old
 Dell Dimension 530).  I'll be on the new machine unless it breaks.  But
 I do want to be able to port the QEMU VM to the older machine as part of
 its hot backup status.
 
   On any other distro, it wouldn't matter, but I have -march=native in
 make.conf, so I do have to worry about keeping binaries compatable.  If
 I build for Intel Core 2 Duo CPU E4600 on both machines, would I be
 losing noticable performance?  Right now, it's just one Windows program
 that I'll be running occasionally.  So I'd rather trade off a bit less
 speed on the new machine, versus compatability issues.  I also prefer to
 be able to scp the VM disk images to the backup machine, rather than
 having to do a separate install on each machine.
 

You can use march=native on your gentoo hosts, that's no problem, as
long as you don't use it on your guests. That's the hole idea of VMs:
being able to move the virtual machine to another machine, that might be
completely different in terms of hardware. The goal is, to be machine
independent.

In your case, I'd say it would make sense to chose core2duo as qemu
host cpu. Both of your host cpus support the feature set of core2duo, so
no performance penalty for costly software emulation of missing cpu
features :-)



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] SQL Server Advice for Small Business

2013-07-31 Thread Michael Hampicke
Am 30.07.2013 23:34, schrieb Randy Westlund:
 
 How often should a small database like this be backed up?  Once a day?  Twice 
 a day?  I'm thinking that I should backup to another machine on the network, 
 then copy that to at least one off-side machine.
 

Depends on your needs. Can you afford to lose one workday of data? If
no, make backups more often.

15 people x 8 hours = 120 hours of work per day, that translates into
money :-)



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] [Preliminary report] Gnome-3.8 update works with openrc :)

2013-07-30 Thread Michael Hampicke
Am 30.07.2013 07:35, schrieb Canek Peláez Valdés:
 On Tue, Jul 30, 2013 at 12:26 AM, Michael Hampicke m...@hadt.biz wrote:
 Am 30.07.2013 03:04, schrieb walt:
 As I posted in another thread, after successfully updating to gnome-3.8
 on a virtual gentoo machine that's been running systemd for months, I
 tackled my openrc gentoo virtual machine just to see if I could do it.

 I just did it :)  Gnome-3.8 is running on the openrc machine without
 running systemd at all.

 Try suspending/hibernating the machine via Gnome menu. Does that work
 for you? Never got that to work when I used openrc.
 
 Also:
 
 • Can you mount (as a normal user) USB drives, CDs, sftp remote directories?

I was able to mount usb sticks on openrc/gnome3.8, also sftp shares via
gvfs. I have no optical drive, so I don't know

 • Can you add a new wireless or wired networks with NetworkManager?

Never tried NM or wifi on my workstation, but my guess would be that it
will not work.

 • Can you shut down the machine from the GNOME menu?

This worked

 • Bluetooth? Printers?

Printing via cups worked, but I don't use BT




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] [Preliminary report] Gnome-3.8 update works with openrc :)

2013-07-29 Thread Michael Hampicke
Am 30.07.2013 03:04, schrieb walt:
 As I posted in another thread, after successfully updating to gnome-3.8
 on a virtual gentoo machine that's been running systemd for months, I
 tackled my openrc gentoo virtual machine just to see if I could do it.
 
 I just did it :)  Gnome-3.8 is running on the openrc machine without
 running systemd at all.

Try suspending/hibernating the machine via Gnome menu. Does that work
for you? Never got that to work when I used openrc.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] failed to setup uefi boot

2013-07-28 Thread Michael Hampicke
Am 28.07.2013 04:06, schrieb Wankey Cheng:
 Make sure that you're system is booted in EFI mode
 i didn't install a bootloader,so it can be booted in EFI mode only.
 

Are you sure about that? What method of installation did you choose? The
culprit when installing an EFI system is, that in order to install the
bootmgr an write to the efi nvram, the install system (live cd, usb
stick, etc.) has to be booted in efi mode. Most boards boot in bios
compatible mode by default.

 and also check that the kernel module efivars is loaded.
 do you mean EFI variable Support via sysfs?Yes,it's built-in my kernel
 

Does it work? Try efibootmgr in verbose mode.

# efibootmgr -v
BootCurrent: 
Timeout: 2 seconds
BootOrder: ,0002,0003
Boot* gentoo
HD(1,800,4,2693e7bd-d35e-4a39-9bb9-365ee533d690)File(\EFI\gentoo\grubx64.efi)
Boot0002* Hard DriveBIOS(2,0,00)P3: WDC WD10EALX-229BA1   .
Boot0003* Network Card  BIOS(6,0,00)Realtek PXE B05 D00.





signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: [~amd64] Some possibly (?) helpful hints re the big gnome-3.8 update

2013-07-28 Thread Michael Hampicke
Am 28.07.2013 10:07, schrieb Stefan G. Weichinger:
 Am 28.07.2013 10:04, schrieb Canek Peláez Valdés:
 
 The only special thing I'm doing is to mask sys-apps/systemd-204,
 since 205 introduced the new cgroups management code (with systemd as
 the only writer of the cgroups hierarchy), and it seems to cause some
 minor problems with logind. Other than that, it works withouth a
 glitch: gnome-base/gnome-3.8.0, sys-apps/systemd-204, no consolekit at
 all.
 
 Same here, yes. I run systemd-206 but I didn't notice an problem(s) yet.
 Maybe there are some and I don't get it ;-)
 

I had one problem, but I am not sure, if it's related to systemd  204,
the removal of consolekit, or gnome at all.

But when logging into my gnome session, /usr/libexec/gvfsd-fuse can not
be started, because the permissions of /dev/fuse are rw-- root:root

Other distros like ubuntu have a fuse group for that, which does not
exist on gentoo. So I assume the default permissions for /dev/fuse on
gentoo machines should be rw-rw-rw- root:root?



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] failed to setup uefi boot

2013-07-27 Thread Michael Hampicke
Am 27.07.2013 16:44, schrieb Wankey Cheng:
 Hi,Everyone:
  I am a new user of gentoo,I encounter an error of the efibootmgr
 -c -d /dev/sda -p 1 -L Gentoo -l \efi\boot\bootx64.efi  command.When I
 execute it ,I got
 Failed to write variable:No space left on device
 Failed to write variable:Input/Output error
 
 what's wrong with it?how can I fix it?
 
 my kernel version is 3.8.13,and all config need by efi has enabled.
 


Make sure that you're system is booted in EFI mode, and also check that
the kernel module efivars is loaded.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Systemd and static network

2013-07-26 Thread Michael Hampicke

Am 2013-07-26 11:26, schrieb Stefan G. Weichinger:

Am 25.07.2013 17:42, schrieb Canek Peláez Valdés:


What do you use - and what are the benefits of your method?


I use the following unit in one of my servers:

# 
---

[Unit]



My current version, using ip :

# cat network.service
[Unit]
Description=Network Connectivity

[Service]
Type=oneshot
RemainAfterExit=yes

EnvironmentFile=/etc/conf.d/network_systemd
ExecStart=/bin/ip link set dev ${interface} up
ExecStart=/bin/ip addr add ${address}/${netmask} broadcast ${broadcast}
dev ${interface}
ExecStart=/bin/ip route add default via ${gateway}

ExecStop=/bin/ip addr flush dev ${interface}
ExecStop=/bin/ip link set dev ${interface} down

[Install]
WantedBy=network.target

- so that unitfile does not have to be touched again and you only
edit /etc/conf.d/network_systemd -

# cat /etc/conf.d/network_systemd
PATH=/sbin:/usr/sbin
interface=p4p1
address=192.x.y.z
netmask=255.255.255.0
broadcast=192.x.y.zz
gateway=192.x.y.zzz

-

I have a second unitfile with a more complicated setup for bridging
(with KVM).

Stefan


Good idea, I already had forgotten that you could parse variables from 
another file in a systemd unit.




[gentoo-user] Systemd and static network

2013-07-25 Thread Michael Hampicke
Howdy folks,

currently I am migrating some servers to systemd, and I am wondering
what's the best way to set up static networking. Until now, I always
used dhcp + networkmanager (workstations, laptops).

Some suggested creating your own network unit and manually start
ifconfig/route or ip via ExecStart, some suggested Arch's netctl which
seems to support static addresses and brings a systemd unit file.

At the moment, following the KISS principle, I tend to a customized unit
file.

What do you use - and what are the benefits of your method?

Have a nice day,
Mike



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Systemd and static network

2013-07-25 Thread Michael Hampicke

Am 2013-07-25 14:18, schrieb Douglas J Hunley:

On Thu, Jul 25, 2013 at 6:46 AM, Michael Hampicke m...@hadt.biz wrote:


What do you use - and what are the benefits of your method?


Why not continue to use DHCP and simply set a static assignment based
on the MAC inside the DHCP server? Then it doesn't matter how the
system is setup, it just works...



There's no DHCP in this particular offsite data center :-)



Re: [gentoo-user] Systemd and static network

2013-07-25 Thread Michael Hampicke
Am 25.07.2013 17:42, schrieb Canek Peláez Valdés:
 On Thu, Jul 25, 2013 at 5:46 AM, Michael Hampicke m...@hadt.biz wrote:
 Howdy folks,

 currently I am migrating some servers to systemd, and I am wondering
 what's the best way to set up static networking. Until now, I always
 used dhcp + networkmanager (workstations, laptops).

 Some suggested creating your own network unit and manually start
 ifconfig/route or ip via ExecStart, some suggested Arch's netctl which
 seems to support static addresses and brings a systemd unit file.

 At the moment, following the KISS principle, I tend to a customized unit
 file.

 What do you use - and what are the benefits of your method?
 
 I use the following unit in one of my servers:
 
 # 
 ---
 [Unit]
 Description=Static network service
 After=local-fs.target
 Documentation=man:ifconfig(8)
 Documentation=man:route(8)
 
 [Service]
 Type=oneshot
 RemainAfterExit=yes
 ExecStart=/bin/ifconfig DEVICE IP broadcast BCAST netmask NETMASK up
 ExecStart=/bin/route add default gw GW DEVICE
 # 
 ---
 
 Obviously, change the necessary parameters.
 
 The benefit is that it doesn't get any more simple, I believe. If DHCP
 is available and I don't want to use NetworkManager, I use the
 following unit:
 
 # 
 ---
 [Unit]
 Description=DHCP on %I
 After=basic.target
 
 [Service]
 ExecStartPre=/bin/ifconfig %I up
 ExecStart=/sbin/dhcpcd -B %I
 
 [Install]
 WantedBy=multi-user.target
 # 
 ---
 
 You can then enable the unit with:
 
 systemctl enable dhcpcd@DEV.service
 
 where DEV is enp0s0, or whatever funny name udev gives to your network
 card. I think I got the unit from Arch, or maybe I wrote; I honestly
 don't remember.
 
 Regards.
 

Tanks. I will give netctl a try in a VM. For now, on real machines, I am
going with the unit you suggested.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] systemd - are we forced to switch?

2013-07-23 Thread Michael Hampicke

Am 2013-07-23 08:11, schrieb András Csányi:

On 22 July 2013 21:57, Michael Hampicke m...@hadt.biz wrote:

Am 22.07.2013 17:02, schrieb Canek Peláez Valdés:
ConsoleKit  is for all practical purposes unmaintained, and all of 
the

packages you mentioned it support systemd just fine. Emerge systemd,
and purge CK from your system; I did that almost a year ago.



Thanks, just purged consolekit from my system after setting
USE=-consolekit and remerged the affected packages.


Do you have systemd enabled? I mean USE=systemd.



Of course I do :-) I also use systemd as init.



Re: [gentoo-user] systemd - are we forced to switch?

2013-07-22 Thread Michael Hampicke
Am 22.07.2013 17:02, schrieb Canek Peláez Valdés:
 ConsoleKit  is for all practical purposes unmaintained, and all of the
 packages you mentioned it support systemd just fine. Emerge systemd,
 and purge CK from your system; I did that almost a year ago.
 

Thanks, just purged consolekit from my system after setting
USE=-consolekit and remerged the affected packages.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] SSD partitioning and migration - caveat

2013-07-22 Thread Michael Hampicke
Am 20.07.2013 05:32, schrieb luis jure:
 on 2013-07-20 at 09:51 William Kenworthy wrote:
 
 You have to map the drive so grub can find it:
 
 no, i don't think that's the problem.
 
 the problem is that with GPT disks you need a BIOS Boot Partition since
 they don't have a MBR. is that correct?
 
 https://wiki.archlinux.org/index.php/GRUB#Install_to_GPT_BIOS_boot_partition
 http://www.anchor.com.au/blog/2012/10/the-difference-between-booting-mbr-and-gpt-with-grub/
 

Correct :-) If I remember correctly, stage2 of the grub bootloader will
be put there.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] {OT} backups... still backups....

2013-07-01 Thread Michael Hampicke
Am 01.07.2013 16:08, schrieb Grant:
 There is no sacrifice, you are running rsync as root on the client
 either way. Alternatively, you could run rsyncd on the client, which
 avoids the need for the server to be able to run an SSH session.

 I think the sacrifice is that with the backuppc method, if someone
 breaks into the backup server they will have read(/write) access to
 the clients.  The method I'm describing requires more management if
 you have a lot of machines, but it doesn't have the aforementioned
 vulnerability.

 The rsyncd option is interesting.  If you don't want to restore
 directly onto the client, there are no SSH keys involved at all?

 Not even then, the server talks to the client in the same way for
 restores as it does for backups, so it would still use rsyncd if you
 wanted it to.
 
 Hmmm, now that I think about it, I guess the server accessing the
 client via rsyncd still provides the server with root read/write
 access to the client just like SSH keys.
 
 I don't think it too unreasonable to assume that a machine with no ports
 exposed to the Internet will not be compromised from the Internet.
 Whereas a push approach requires that the server have open ports.
 
 Agreed, but this requires that the backup server is local to the admin
 which may not be possible.  openvpn requires open ports of course.
 There's also the possibility of a local break-in
 
That' how we do it. The backuppc server is in our local lan, and only
accessible from local lan. It pulls backups from all our machines in
offsite data centers. To compromise our backuppc machine one would have
to physically break into our companies building.
But if somebody has physical access to the machine on which you store
your backups, you're screwed, no matter if you use push or pull backup :)



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] monitoring system resource usage

2013-06-16 Thread Michael Hampicke
Am 15.06.2013 17:04, schrieb Grant:
 Can anyone recommend a method for monitoring system resource usage in
 a way that would allow me to correlate a rise in my web server's
 response time with the usage of a particular system resource if such a
 correlation exists?  I don't need it to be 100% accurate, just
 accurate enough to be able to make the correlation with a reasonable
 degree of certainty.

 - Grant


 http://munin-monitoring.org/
 
 Looks very cool indeed!  I am reading more about it now.  Do you find
 it easy to set up and maintain?
 
 - Grant
 

In my opinion it's very easy to setup. Basically you just merge it,
enable your plugins (via symlink), add munin-node to the runlevel and
make sure the munin cron job is enabled. Then just browse to
http://localhost/munin

There's also a entry on the gentoo wiki: http://wiki.gentoo.org/wiki/Munin



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] monitoring system resource usage

2013-06-14 Thread Michael Hampicke

Am 2013-06-14 09:56, schrieb Grant:

Can anyone recommend a method for monitoring system resource usage in
a way that would allow me to correlate a rise in my web server's
response time with the usage of a particular system resource if such a
correlation exists?  I don't need it to be 100% accurate, just
accurate enough to be able to make the correlation with a reasonable
degree of certainty.

- Grant


http://munin-monitoring.org/

;-)



Re: [gentoo-user] dracut vs. genkernel

2013-06-12 Thread Michael Hampicke
Am 12.06.2013 13:06, schrieb Stefan G. Weichinger:
 
 I am currently trying to find out why my LVM2-volumes aren't activated
 correctly at boot time. I am using packages from the overlay
 systemd-love as I run systemd as init-system (why? that's another
 discussion ;-) ).

When you find a solution, I'd be interested :) Having the same problem,
also running grub2, systemd, lvm.

This is my current work-around

$ cat /etc/systemd/system/lvm.service
[Unit]
Description=Load LVM

[Service]
Type=oneshot
ExecStart=/sbin/pvscan
ExecStart=/sbin/vgscan --mknodes
ExecStart=/sbin/vgchange --sysinit -a ly
ExecStart=/usr/bin/sleep 1
ExecStart=/bin/mount -o noatime /dev/vg1/a  /mnt/a
ExecStart=/bin/mount -o noatime /dev/vg1/b  /mnt/b

[Install]
WantedBy=multi-user.target



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Booting LiveCD iso from hard drive with GRUB legacy

2013-05-18 Thread Michael Hampicke
Am 18.05.2013 10:15, schrieb Mick:
 Hi All,
 
 Is there a way of achieving this?
 

Grub legacy usually cannot boot iso images, but you could try
chainloading another bootloader from grub, which is able to boot an iso
file. Maybe let grub chainload grub2 which can boot isos.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] uninstalled linux-headers

2013-05-16 Thread Michael Hampicke
Am 16.05.2013 14:46, schrieb Neil Bothwick:
 On Thu, 16 May 2013 14:38:55 +0200, Tamer Higazi wrote:
 
 I uninstalled the linux-headers and the kernel-sources by accident, how
 can I install then again?! Any ideas?!
 
 emerge -1 linux-headers gentoo-sources


It just tried that, out of curiosity:

I uninstalled linux-headers, and while trying to reinstall them, I get
this error:

 Install linux-headers-3.9 into
/var/tmp/portage/sys-kernel/linux-headers-3.9/image/ category sys-kernel
make -j5 headers_install
INSTALL_HDR_PATH=/var/tmp/portage/sys-kernel/linux-headers-3.9/image///usr/include/..
ARCH=x86 CROSS_COMPILE=x86_64-pc-linux-gnu-
  CHK include/generated/uapi/linux/version.h
  UPD include/generated/uapi/linux/version.h
  WRAParch/x86/include/generated/asm/clkdev.h
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h
  SYSTBL  arch/x86/syscalls/../include/generated/asm/syscalls_32.h
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_x32.h
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_64.h
  HOSTCC  arch/x86/tools/relocs
In file included from /usr/include/errno.h:35:0,
 from arch/x86/tools/relocs.c:6:
/usr/include/bits/errno.h:24:26: fatal error: linux/errno.h: No such
file or directory
compilation terminated.
make[1]: *** [arch/x86/tools/relocs] Error 1
make: *** [archscripts] Error 2
make: *** Waiting for unfinished jobs
emake failed
 * ERROR: sys-kernel/linux-headers-3.9 failed (install phase):
 *   (no error message)
 *
 * Call stack:
 * ebuild.sh, line   93:  Called src_install
 *   environment, line 2830:  Called kernel-2_src_install
 *   environment, line 2006:  Called install_headers
 *   environment, line 1895:  Called die
 * The specific snippet of code:
 *   emake headers_install INSTALL_HDR_PATH=${D}/${ddir}/..
${xmakeopts} || die;
 *
 * If you need support, post the output of `emerge --info
'=sys-kernel/linux-headers-3.9'`,
 * the complete build log and the output of `emerge -pqv
'=sys-kernel/linux-headers-3.9'`.
 * The complete build log is located at
'/var/tmp/portage/sys-kernel/linux-headers-3.9/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/sys-kernel/linux-headers-3.9/temp/environment'.
 * Working directory:
'/var/tmp/portage/sys-kernel/linux-headers-3.9/work/gentoo-headers-base-3.9'
 * S:
'/var/tmp/portage/sys-kernel/linux-headers-3.9/work/gentoo-headers-base-3.9'


Luckily, I qpkg'ed linux-headers before.

Maybe you can try installing a binary package of linux-headers from
tinderbox? http://tinderbox.dev.gentoo.org/

 zcat /proc/config.gz /usr/src/linux/.config
 
 I tried, but got at the linux-headers problems.
 
 How is anybody supposed to answer that? You tried something but you don't
 say what and it gave a problem, which you also keep to yourself. If you
 want helpful answers, you have to ask helpful questions.
 

true



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] gnome not working

2013-05-15 Thread Michael Hampicke
Am 13.05.2013 13:06, schrieb cov...@ccs.covici.com:
 When I start gdm, I get a message on the screen which says oh no,
 something has gone wrong.  The log file is at
 http://pastebin.com/qwNE7ee6   -- I would appreciate any help.
 
 I am running gentoo testing with the 3.8 unmasked.
 

Today I spotted some updated gnome (3.8) packages in the tree. Maybe the
updated versions will work for you.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] gnome not working

2013-05-15 Thread Michael Hampicke
Am 15.05.2013 20:27, schrieb waltd...@waltdnes.org:
 
   Direct from the Making systemd more accessible to normal users
 flamewar on gentoo-dev...
 
 And now that GNOME 3.8 is out, the game starts over again: logind
 is a hard requirement, logind is part of systemd, starting logind
 (which replaces consolekit) is not that trivial as you may think
 (and is the thing I started to work on anyway).

 And if this wasn't enough, it means that if you want GNOME 3.8,
 you need to get logind, which may or not may get included in our
 udev ebuild and if it won't, it means that you will be forced to use
 systemd as device manager if you want GNOME 3.8, which is believe
 it or not, the thing that Ubuntu did.
 
   Do you have systemd/logind installed?
 

I read that too on gentoo-dev. I have systemd installed, but currently I
do not use it as init. I have tried it with systemd as init, but it has
problems with mounting my lvm volumes (after failing it's stuck,
ctrl+alt+del has no effect, and magic sysrq seems to be deactived?). I
think a saw a bug report regarding systemd/lvm.

I may try it again in a few days. There have been some updates to
systemd lately.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] gentoo and orca using gnome 3.8

2013-05-12 Thread Michael Hampicke
Am 12.05.2013 18:12, schrieb cov...@ccs.covici.com:
 Hi.  I am trying to  build orca from master which is necessary for gnome
 3.8 which I have installed.  Orca uses python3.3 and will not even use
 3.2.  So I emerged 3.3 by putting a keyword ~amd64 in the keywords.
 Now, how do I get the packages to go in -- the first one which has
 problems is dev-python/pygobject.  I added python3_3  but when I emerge
 it, the use flags say (-python3_3). 
 
 There may be others, but how can I get this package to go into
 python3.3?
 
 Thanks in advance for any suggestions.
 

I too run gnome 3.8. I have no problem merging orca (3.6.3-r1). What
error do you get when trying to merge orca? Maybe search bugs.gentoo.org.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] fdisk warnings during install; questions

2013-05-10 Thread Michael Hampicke
Am 10.05.2013 03:11, schrieb Walter Dnes:
   I'm using the 20130207 install iso.  This is to enable me to get a
 *REALLY* predictable NIC name, namely eth0, but I digress.  The 2
 warnings I get are...
 
 1)
 WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util
 fdisk doesn't support GPT. Use GNU Parted.
 
   I've repartitioned it 3 or 4 times, but it still comes up with that
 error when I fire up fdisk.  Is it a problem, and if so, can I dd a few
 sectors to remove whatever it's complaining about?
 

fdisk does not support GPT disks, use cgdisk or parted (as the error
message clearly states)

 
 2)
 The device presents a logical sector size that is smaller than the
 physical sector size. Aligning to a physical sector (or optimal I/O)
 size boundary is recommended, or performance may be impacted.
 
   The fdisk p command gives the following output header
 
 Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
 Units = sectors of 1 * 512 = 512 bytes
 Sector size (logical/physical): 512 bytes / 4096 bytes
 I/O size (minimum/optimal): 4096 bytes / 4096 bytes
 
   The fdisk default seems to be to start partition 1 at sector 2048.  I
 don't know the hardware side of disks.  Is that OK.
 

This will be solved when using a partitioner that supports GTP, as
stated above.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Annoying structure of /var/db/pkg/category/package-name database

2013-05-08 Thread Michael Hampicke
Am 08.05.2013 13:05, schrieb Thomas Mueller:
 Having package data in /var/db/pkg/category/package-name carries the 
 nuisance factor that finding a package involves a fishing expedition through 
 many possible categories.
 
 I am spoiled by having /var/db/pkg/package-name in NetBSD pkgsrc and 
 FreeBSD ports, though FreeBSD is wsitching to a different structure nkwon as 
 pkgng.
 
 Is there any way to configure so as to avoid this annoyance in Gentoo?  Like 
 maybe making /var/db/pkg/package-name?
 
 One can do
 ls /var/db/pkg/*/package-name but this is still an annoyance.
 
 I have some limited experience with Gentoo Linux on my older computer.  
 Compiling the kernel took 130 minutes, and then the kernel failed to boot.

What are you trying to accomplish? I mean, why do you need to navigate
around /var/db/pkg? I'm pretty sure there's a better alternative for
your needs.




Re: [gentoo-user] Re: Delays while building Libre Office.

2013-05-06 Thread Michael Hampicke
Am 07.05.2013 01:22, schrieb walt:
 On 05/05/2013 01:38 PM, Alan Mackenzie wrote:
 
 There doesn't appear to be any action in emerge which unpacks the build
 files (or even the entire source) of a package for perusal.  This is a
 shame.
 
 You should become familiar with the 'ebuild' command, which I use very
 often when trying to debug a package, e.g.
 
 #ebuild /usr/portage/app-office/libreoffice/libreoffice-3.6.6.2.ebuild unpack
 
 To completely build and install a package you need to follow that command
 with the 'configure', 'compile', 'install', and 'qmerge' steps (man ebuild).
 

If you are lazy like my, and don't want to execute all steps manually,
just use ebuild package.ebuild merge :)



Re: [gentoo-user] problem trying to play sound when pulse audio is enabled

2013-04-29 Thread Michael Hampicke
Am 29.04.2013 11:43, schrieb cov...@ccs.covici.com:
 Kevin Thompson ph...@ewnix.net wrote:
 
 On Mon, Apr 29, 2013 at 04:43:46AM -0400, cov...@ccs.covici.com wrote:
 Canek Peláez Valdés can...@gmail.com wrote:

 On Mon, Apr 29, 2013 at 12:35 AM,  cov...@ccs.covici.com wrote:
 Canek Peláez Valdés can...@gmail.com wrote:

 On Sun, Apr 28, 2013 at 11:57 PM,  cov...@ccs.covici.com wrote:
 Canek Peláez Valdés can...@gmail.com wrote:

 On Sun, Apr 28, 2013 at 11:08 PM,  cov...@ccs.covici.com wrote:
 Canek Peláez Valdés can...@gmail.com wrote:

 On Sun, Apr 28, 2013 at 10:07 PM,  cov...@ccs.covici.com wrote:
 Canek Peláez Valdés can...@gmail.com wrote:

 On Sun, Apr 28, 2013 at 7:56 PM,  cov...@ccs.covici.com wrote:
 Hi.  I have not used pulseaudio at all, but with gnome 3.8 I 
 guess it
 must be there, but when I try to play a sound using either 
 mplayer from
 the console which works fine withalsa, or even aplay, I get no 
 sound
 unless I change the /etc/pulse/client.conf to spawn=no .

 Unless you have a very specific setup, you should not need to touch
 the files under /etc/pulse. Also, are you trying to run the
 system-wide PulseAudio service? Because that's basically wrong:

 http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide

 Anyway to fix this?

 If you are running PA as a normal user (as you should), then 
 perhaps
 the per-application volume for MPlayer is muted. While playing
 something with MPlayer, go to Settings - Sound, then select the
 Applications tab, and there should be a volume slider for all the
 applications using audio. Just adjust as necessary.

 I got no sound when pa was run as a user.  I am running these apps 
 from
 the console -- apps such as aplay or anything which uses alsa.  So I
 can't adjust any volumes under gnome, etc.

 Also, from the console you can use pactl. To play a sample sound 
 there, do:

 pactl play-sample 0
 pactl play-sample 1

 It should work. You can also set the volume from here:

 pactl set-sink-volume 0 100%

 0 is usually the master volume.

 Check out man pactl.

 Well, in either system or user mode, root can play sound whereas a
 regular user gets silent, but without pulseaudio -- spawn=no, then a
 regular user can play sound.  Does this give a clue?

 Not really; as I said, the PA documentation clearly says that if you
 use system mode You are on your own. You need to know you way around,
 be able to write init scripts, dbus policies, to fix up device
 permissions, and unix users, you need to pass around security cookies
 and more.

 I haven't ever used system-wide PA.

 I think of the following; try to delete both /root/.pulse and
 $HOME/.pulse, and rebooting (probably a logout/login should suffice,
 but you never know).

 Another thing: if you installed PA since GNOME 3.8 needs it, why are
 you using it without GNOME? If you use GNOME, the session manager will
 automatically start PA as a user for you, and everything should work.
 If you are not running GNOME, why do you run PA? If you are at the
 console without X running, just don't use PA. Use mplayer -ao alsa or
 whatever.

 Or do you want to run several audio apps in the console?

 I want to run apps from the console, but to start gnome when I need it.

 Then do that. When you start GNOME, it will start PA automatically:
 you don't need to do anything. Don't try to start PA yourself; it's
 DBus activated.


 I am running pa as a user and things are still not working, except for
 the root user who can play sounds.

 I repeat: you don't need to run PA. GNOME will start it for you.

 But will that workif I have spawn=no in my /etc/pulse/client.conf which
 I have to have for regular apps to work from theconsole?  Or is there
 some other way to make this happen?

 I don't understand the question. If you don't run PA by yourself, then
 it will be started only when using GNOME. And if you are using GNOME,
 you can use the nice sound settings dialog to get your sound.

 If you don't start GNOME, then PA will not be started. If you don't
 have sound in your console even without PA running, then is for some
 issue completely unrelated to PA.

 PA should not be started if you only log in through the console.
 Unless you are still running it system-wide, which is basically
 unsupported.

 OK, we will see what happens, so I have set spawn=no which should work
 to prevent pa except in gnome, so hopefully that should work.

 Thanks for clarifying this for me.


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


 I had the same issue here when installing pulseaudio. I don't use GNOME,
 so that does take part of the equation away. The problem was solved by
 changing permissions to /dev/snd and it's containing files. After
 chmodding /dev/snd/* to 666, I was able to play sounds as a normal user.
 In the Gentoo guide, it mentions this, and it also mentions taking 

Re: [gentoo-user] problem trying to play sound when pulse audio is enabled

2013-04-29 Thread Michael Hampicke
Am 29.04.2013 14:25, schrieb cov...@ccs.covici.com:
 Michael Hampicke m...@hadt.biz wrote:
snip
 Those devices in there should be owned by root:audio

 $ ls -al /dev/snd/
 total 0
 drwxr-xr-x   3 root root  260 Apr 28 20:07 .
 drwxr-xr-x  17 root root 4100 Apr 29 12:50 ..
 drwxr-xr-x   2 root root   60 Apr 28 20:07 by-path
 crw-rw+  1 root audio 116, 10 Apr 28 20:07 controlC0
 crw-rw+  1 root audio 116,  2 Apr 28 20:07 hwC0D0
 crw-rw+  1 root audio 116,  3 Apr 28 20:07 midiC0D0
 crw-rw+  1 root audio 116,  9 Apr 28 20:24 pcmC0D0c
 crw-rw+  1 root audio 116,  8 Apr 29 12:51 pcmC0D0p
 crw-rw+  1 root audio 116,  7 Apr 28 20:07 pcmC0D1c
 crw-rw+  1 root audio 116,  6 Apr 28 20:07 pcmC0D2c
 crw-rw+  1 root audio 116,  5 Apr 28 20:11 pcmC0D2p
 crw-rw+  1 root audio 116,  4 Apr 28 20:07 pcmC0D3p
 crw-rw+  1 root audio 116, 33 Apr 28 20:07 timer
 
 If I do that than freeswitch does not work properly.  I had a lot of
 difficulty setting things up and even making them 777 did not work for
 some reason, so I made the devices owned the same way as the freeswitch
 process.
 
Have you tried adding freeswitch the to audio group?




Re: [gentoo-user] Stream Audio to RasPi on LAN

2013-04-29 Thread Michael Hampicke
Am 29.04.2013 17:26, schrieb Randy Westlund:
 Hey guys,
 
 I have a nice set of speakers, but they aren't near my desk in my home 
 office.  I used to carry them back and forth when I wanted good music, but 
 that was a pain.  I currently have a RasPi running arch connected to the 
 speakers -- I've been cat-ing audio files over ssh to mplayer, and that 
 mostly works (no fast-forward/skip).  I also tried using reverse-ssh and 
 sshfs to mount my files on the RasPi, but that seems silly.
 
 What I really want is to be able to stream audio from my browser to the 
 RasPi's speakers (pandora, grooveshark).  I'd like to set up an audio device 
 that maps to the RasPi.  Something like /dev/dsp1, perhaps.  If I could have 
 some audio sent to the RasPi and leave mcabber's chat notifications on my 
 laptop's speakers, that'd be fantastic.
 
 Does anyone have a setup like this?  Know of any good options?
 
 Randy
 
I don't know what desktop env you are running, but would PulseAudio be
an option? You could send the audio from your program (browser) to the
Pi but keep the chat notification on your local machine.



Re: [gentoo-user] mkfs.reiserfs hangs system?

2013-04-25 Thread Michael Hampicke

Am 25.04.2013 17:25, schrieb Pandu Poluan:

Just wondering if any of you guys experienced this lately:

System hangs when creating a brand-new ReiserFS on a new partition.

I've tried using the latest gentoo minimal CD, or the latest
SystemRescueCD, both exhibited the same.

I'm on an HP DL585 G7 box, by the way, so it's using an AMD CPU.

I'd appreciate any suggestions. My Google-fu all expose only old 
threads.


Are there any error/warnings in dmes or the logs?

Maybe the disk is toast? Can you create other file systems?



Re: [gentoo-user] can't mount ext4 fs as est3 or ext3

2013-04-25 Thread Michael Hampicke

Am 25.04.2013 16:26, schrieb gottl...@nyu.edu:

I get the following in /var/log/messages

EXT3-fs (sda5): error: couldn't mount because of unsupported optional
features (240)
...
EXT4-fs (sda5): couldn't mount as ext2 due to feature 
incompatibilities

...
EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts: 
(null)


Here is the entry in fstab

/dev/sda5   /   ext4noatime,discard  0 1

I am having no difficulty, but seeing the first (error) message every
day in logwatch is annoying.

Since all my fs are ext4 I could remove ext3 support from the kernel
(3.5.4).  Is that the recommended procedure?


I'm not sure, but I don't think you can mount ext4 as ext2/3 with the 
discard option (ssd trim) present. Only ext4 does support discard.




Re: [gentoo-user] mkfs.reiserfs hangs system?

2013-04-25 Thread Michael Hampicke
Am 25.04.2013 18:08, schrieb Pandu Poluan:



 Are there any error/warnings in dmes or the logs?

 Maybe the disk is toast? Can you create other file systems?

 
 Can't get to see dmesg, the system locked up tight.
 
 I can create an ext4 fs on a different partition, and since the 'disk' is
 actually a RAID array, if the array is going south, I should see the same
 problem with ext4, right?
 

That was my guess, that if it is indeed a hardware error, you would get
the same error when trying to create a different fs on the same partition.

A total system lock is strange. Do you have to physically reset the
machine, or does SysRq Key still work?

I'm still guessing that it is a hardware related problem.



signature.asc
Description: OpenPGP digital signature


Re: [Bulk] Re: [gentoo-user] Removing pulseaudio

2013-04-25 Thread Michael Hampicke
Am 25.04.2013 22:10, schrieb Kevin Chadwick:
 Am 23.04.2013 22:59, schrieb William Hubbs:
 On Fri, Apr 19, 2013 at 09:49:19AM +0100, Kevin Chadwick wrote:
 Feel free to remove PA if you don't need it. I really don't see any
 scope for Lennart to make all of alsa redundant anytime soon (unlike
 udev...)

 Of course from many threads from a pro audio user called Ralf, Gentoo
 users and so a fraction of Linux users are the only ones lucky enough
 to be able to do that *easily* whilst keeping packages they want,
 especially Gnome ones!

 Im not a gnome user as of yet, but I can tell you that the day is
 coming (Gnome 3.8 I believe) when gnome will not work without PA, so you
 will have to install it if you want newer Gnome.

 William


 That's true, gnome3.8 will require you to install pulseaudio-2

 
 Are you sure, I know there have been a couple of times in the past
 where Gnome has leaned towards Linux only but they have always steered
 clear eventually. I know of one guy who runs a network of hundreds of
 Gnome/OpenBSD machines that may wish to know about that as I think he
 is already getting fed up with the increasing amount of code he has to
 write in order to keep the port working.

Yes I'm sure, I have gnome 3.8 installed on my machine.
gnome-settings-daemon and gnome-shell have hard deps on pulseaudio.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Removing pulseaudio

2013-04-24 Thread Michael Hampicke
Am 24.04.2013 04:46, schrieb Walter Dnes:
 On Wed, Apr 24, 2013 at 12:12:56AM +0200, Michael Hampicke wrote
 
 Of course from many threads from a pro audio user called Ralf, Gentoo
 users and so a fraction of Linux users are the only ones lucky enough
 to be able to do that *easily* whilst keeping packages they want,
 especially Gnome ones!

 Im not a gnome user as of yet, but I can tell you that the day is
 coming (Gnome 3.8 I believe) when gnome will not work without PA, so you
 will have to install it if you want newer Gnome.

 William


 That's true, gnome3.8 will require you to install pulseaudio-2
 
   From a logic chapter in a highschool math text, the contrapositive
 version of this is that removing pulseaudio will require removing gnome.
 See my sig...
 
Hm, that seems to be TRUE :-)



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] How reliable is ext3?

2013-04-24 Thread Michael Hampicke
Am 24.04.2013 19:38, schrieb Stroller:
 
 On 24 April 2013, at 11:16, Neil Bothwick wrote:
 ...
 Volume size so far fits my needs just fine, but that's because I've
 never needed quotas as such. I find quotas too inflexible anyway, it's a
 case of forcing a simplistic hardware rule into the human space and that
 never really solves the problem properly.

 Sometimes a simplistic rule is what's needed. If you are selling off-site
 storage in 1GB chunks, you need to stop people using more than they have
 paid for. Hard quotas do this, soft quotas let you warn them first,
 before things get broken.
 
 I'm unclear how this warning would be addressed. 
 
 Your system must be more complex than I'm imagining, because I see this 
 obvious answer of a bash script which loops through /home/*, runs `du` or 
 `df` and sends an email to anyone who's consuming more than 90%. Obviously 
 this needs to be adapted to circumstance. 
 

That only works on small systems. I have systems here where a 'du' on
/home would take hours and produce massive IO wait, because there's so
much data in there.




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Removing pulseaudio

2013-04-23 Thread Michael Hampicke
Am 23.04.2013 22:59, schrieb William Hubbs:
 On Fri, Apr 19, 2013 at 09:49:19AM +0100, Kevin Chadwick wrote:
 Feel free to remove PA if you don't need it. I really don't see any
 scope for Lennart to make all of alsa redundant anytime soon (unlike
 udev...)

 Of course from many threads from a pro audio user called Ralf, Gentoo
 users and so a fraction of Linux users are the only ones lucky enough
 to be able to do that *easily* whilst keeping packages they want,
 especially Gnome ones!
 
 Im not a gnome user as of yet, but I can tell you that the day is
 coming (Gnome 3.8 I believe) when gnome will not work without PA, so you
 will have to install it if you want newer Gnome.
 
 William
 

That's true, gnome3.8 will require you to install pulseaudio-2



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] kvm/libvirt and kernel configuration

2013-04-22 Thread Michael Hampicke
Am 22.04.2013 03:06, schrieb Michael Mol:
 So, I'm setting up number of kvm guests running Gentoo. KVM guests have
 a pretty limited set of device drivers they need to support.
 
 Is there a relatively up-to-date list of kernel configuration options?
 I.e. the list of NIC drivers, video drivers, I/O drivers...
 

For net and io I always go with the virtio drivers [1]. For video: I
don't care, my VMs are all headless, but when creating a desktop VM I
suggest looking to vmvga or qxl.

[1] http://wiki.libvirt.org/page/Virtio



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] kvm/libvirt and kernel configuration

2013-04-22 Thread Michael Hampicke
Am 22.04.2013 14:31, schrieb Michael Mol:
 On 04/22/2013 05:40 AM, Michael Hampicke wrote:

snip

 What I'm really looking for, though, is a list of all the devices the
 qemu/kvm host can emulate, and the most-specific guest driver. I.e. If I
 wanted to make a generic kernel configuration that contained the optimum
 drivers for all possible qemu/kvm configurations, what would be the
 minimum feature set?

Sorry I misunderstood you. I know that somewhere deep within some
documentation I saw such a list, but I cannot find it now (maybe it was
libvirt or in the IBM best practices docs?).

Here's list of devices that I know of, which kvm can emulate.

net: e1000, ne2000, rtl8139, pcnet, virtio
video: spice/qxl, vmnet (needs guest driver from vmware), cirrus, xen, vga
io: virtio, ata_piix, sata ahci

Do you also care about stuff like sound cards?



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] LVM on VM or not? - WAS Re: Best filesystem for virtualized gentoo mail server - WAS: vmWare HowTo / best practices

2013-04-21 Thread Michael Hampicke

Am 21.04.2013 18:32, schrieb Randy Barlow:

On Sun, 2013-04-21 at 12:15 -0400, Tanstaafl wrote:

But I've found lots of opinions that using LVM in a virtualized
environment can lead to data corruption, and if this is true, I'd 
rather

not risk it...

So, LVM or not?


This is surprising to me, because at my former employer we used LVM 
for

all of our virtual machines in Xen. It performed quite well, and we
never experienced any data loss due to that setup. LVM gives a lot of
flexibility in managing virtual machines, so I'd highly recommend it.

I believe LVM devices can be passed to KVM guests as well, though I 
have

never personally tried that.


Correct, in almost every case where I set up a VM Host, I use LVM to 
manage the disks that the guests will get.




Re: [gentoo-user] Portage screwup

2013-04-18 Thread Michael Hampicke
Am 18.04.2013 15:33, schrieb Joseph:
 What is going on with portage?
 All the older packages are being removed and and some of them are not
 even made stable.
 
 I've masked current one app-text/poppler-0.22.2-r2 but looking at the
 web-page this is not even stable poppler-0.22.3 is masked all across the
 previous version are all removed.
 All the packages that I recently try to roll back are gone, in most
 cases only one is available so there is no option to roll back.
 
 Am I missing something?
 

The version of poppler that you have masked ( 0.22.2-r2 ) is stable. So
it's not a portage screw up, the problem is more that you are trying to
install outdated software.



Re: [gentoo-user] HD7870 AMD Catalyst no framebuffer console

2013-04-18 Thread Michael Hampicke
Am 18.04.2013 17:37, schrieb Wang Xuerui:
 2013/4/18 Amankwah amankw...@gmail.com:
 Hi all,
 I have a video card HD7870, I tried install the AMD Catalyst driver 
 ~amd64 in portage, it works well under X. But when I press ctrl+alt+F1, the 
 screen is blank??
 Although I googled this problem I add nomodeset and radeon.modeset=0 
 video=uvesa to the kernel cmdline in /boot/grub/menu.lst, it didn't work at 
 all. What can I do to solve this?
 
 IIRC fglrx does not support KMS, hence no framebuffer.
 
correct

 The radeon parameters are of no use in this case; in order for the
 proprietary driver to work properly, the open source module must be
 blacklisted. So instructing the radeon module makes little sense.
 
correct, don't load the radeon module. You can also disable the Direct
Rendering Manager (CONFIG_DRM).
For framebuffer on my machine I use CONFIG_FB_EFI, but CONFIG_FB_VESA
should work too. I'm not sure about CONFIG_FB_RADEON



Re: [gentoo-user] -march=? for this cpu

2013-04-09 Thread Michael Hampicke
Am 09.04.2013 05:50, schrieb Nilesh Govindrajan:
 I have two Gentoo VMs at Hetzner and the CPU supports 64 bit (grep lm
 /proc/cpuinfo = true).
 
 But something funny, gcc -march=native -mtune=native -v -E - 21
 /dev/null returns this:
 
 Using built-in specs.
 COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3/gcc
 COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.3/lto-wrapper
 Target: x86_64-pc-linux-gnu
 Configured with:
 /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/configure
 --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3
 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include
 --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3
 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/man
 --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/info
 --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/g++-v4
 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
 --disable-fixed-point --without-ppl --without-cloog --enable-lto
 --enable-nls --without-included-gettext --with-system-zlib
 --enable-obsolete --disable-werror --enable-secureplt --enable-multilib
 --enable-libmudflap --disable-libssp --enable-libgomp
 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/python
 --enable-checking=release --disable-libgcj --enable-libstdcxx-time
 --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix
 --enable-__cxa_atexit --enable-clocale=gnu --enable-targets=all
 --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.6.3
 p1.11, pie-0.5.2'
 Thread model: posix
 gcc version 4.6.3 (Gentoo 4.6.3 p1.11, pie-0.5.2)
 COLLECT_GCC_OPTIONS='-march=native' '-mtune=native' '-v' '-E'
  /usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.3/cc1 -E -quiet -v -
 -march=pentium-m -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mpopcnt
 -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mbmi -mno-tbm -mno-avx
 -mno-sse4.2 -mno-sse4.1 --param l1-cache-size=32 --param
 l1-cache-line-size=64 --param l2-cache-size=4096 -mtune=generic
 ignoring nonexistent directory /usr/local/include
 ignoring nonexistent directory
 /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/include
 
 #include ... search starts here:
 #include ... search starts here:
  /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include
  /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include-fixed
  /usr/include
 End of search list.
 # 1 stdin
 stdin:1:0: error: CPU you selected does not support x86-64 instruction
 set
 
 It is returning pentium-m as architecture, which indeed is 32bit. I'm
 presently running the VM with -march=core2, but this is very weird.
 
 This is the /proc/cpuinfo:
 
 processor   : 0
 vendor_id   : GenuineIntel
 cpu family  : 6
 model   : 2
 model name  : QEMU Virtual CPU version 1.0
 stepping: 3
 microcode   : 0x1
 cpu MHz : 3399.998
 cache size  : 4096 KB
 fpu : yes
 fpu_exception   : yes
 cpuid level : 4
 wp  : yes
 flags   : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca
 cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl pni vmx
 cx16 popcnt hypervisor lahf_lm
 bogomips: 6799.99
 clflush size: 64
 cache_alignment : 64
 address sizes   : 40 bits physical, 48 bits virtual
 power management:
 
 Any idea what should be the march/mtune value?
 

I don't have any experience with Hetzner's VMs - I only use their
dedicated machines :)

But as a more generic tip, you should install gentoo in VMs only with
generic optimization. You can not safely rely on what CPU your VM will
get. Maybe in 6 months the host your vm is on crashes, and your vm will
be migrated to a new system with totally different cpu (actual hardware
cpu or the cpu configuration that qemu is going to emulate).



Re: [gentoo-user] Gnome 3.8 - has anybody tried to unmask it

2013-04-09 Thread Michael Hampicke
Sure, I have 3.8 running since about one week. Almost everything works. One
thing that does not work any more is suspending / hibernating from within
gnome. It seems like that this function may depend on systemds logind:
https://bugs.gentoo.org/show_bug.cgi?id=464944


2013/4/9 Helmut Jarausch jarau...@igpm.rwth-aachen.de

 Hi,

 I'm considering unmasking Gnome 3.8. Has anybody made good/bad experience
 with this?

 Many thanks,
 Helmut.




Re: [gentoo-user] Gnome 3.8 - has anybody tried to unmask it

2013-04-09 Thread Michael Hampicke
2013/4/9 Canek Peláez Valdés can...@gmail.com

 On Tue, Apr 9, 2013 at 5:02 AM, Michael Hampicke mgehampi...@gmail.com
 wrote:
  Sure, I have 3.8 running since about one week. Almost everything works.
 One
  thing that does not work any more is suspending / hibernating from within
  gnome. It seems like that this function may depend on systemds logind:
  https://bugs.gentoo.org/show_bug.cgi?id=464944

 Don't top-post, please, even if it's the default for GMail.

 I also got it unmasked since last week; but I'm using systemd, so
 suspend works as well as usual ;


Yes, stupid gmail, it was not my intention to top post.

Do you run a complete systemd system, or do you have USE=openrc enabled
for systemd? I might try this in a VM.


Re: [gentoo-user] Gnome 3.8 - has anybody tried to unmask it

2013-04-09 Thread Michael Hampicke
Am 09.04.2013 16:28, schrieb cov...@ccs.covici.com:
 Canek Peláez Valdés can...@gmail.com wrote:
 
 On Tue, Apr 9, 2013 at 5:02 AM, Michael Hampicke mgehampi...@gmail.com 
 wrote:
 Sure, I have 3.8 running since about one week. Almost everything works. One
 thing that does not work any more is suspending / hibernating from within
 gnome. It seems like that this function may depend on systemds logind:
 https://bugs.gentoo.org/show_bug.cgi?id=464944

 Don't top-post, please, even if it's the default for GMail.

 I also got it unmasked since last week; but I'm using systemd, so
 suspend works as well as usual ;)
 
 Two questions:  where can I find the things to unmask and I thought that
 3.8 depended on python3.3 which I can't emerge because of missing
 keyword.  Also, speech-dispatcher v8 which I would need seems to depend
 on python3.3 as well.
 

In /usr/portage/profiles/package.mask there a list of packages starting
with

# Pacho Ramos pa...@gentoo.org (28 Mar 2013)
# Gnome 3.8 Mask

going down till

# Sebastien Fabbro bicat...@gentoo.org (26 Mar 2013)
# Now included in sci-mathematics/mathgl
# Removal in 30 days.

Everything between those comments are packages that probably need
unmasking - depending on what you want to install.



Re: [gentoo-user] -march=? for this cpu

2013-04-09 Thread Michael Hampicke
Am 09.04.2013 14:53, schrieb Nilesh Govindrajan:
 On Tuesday 09 April 2013 12:31:44 PM IST, Pandu Poluan wrote:

 On Apr 9, 2013 1:16 PM, Michael Hampicke gentoo-u...@hadt.biz
 mailto:gentoo-u...@hadt.biz wrote:
 
  Am 09.04.2013 05:50, schrieb Nilesh Govindrajan:
   I have two Gentoo VMs at Hetzner and the CPU supports 64 bit (grep lm
   /proc/cpuinfo = true).
  
   But something funny, gcc -march=native -mtune=native -v -E - 21
   /dev/null returns this:
  
   Using built-in specs.
   COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3/gcc
  
 COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.3/lto-wrapper

   Target: x86_64-pc-linux-gnu
   Configured with:
   /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/configure
   --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3
   --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include
   --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3
   --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/man
   --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/info
  
 --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/g++-v4

   --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu
 --disable-altivec
   --disable-fixed-point --without-ppl --without-cloog --enable-lto
   --enable-nls --without-included-gettext --with-system-zlib
   --enable-obsolete --disable-werror --enable-secureplt
 --enable-multilib
   --enable-libmudflap --disable-libssp --enable-libgomp
   --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/python
   --enable-checking=release --disable-libgcj --enable-libstdcxx-time
   --enable-languages=c,c++,fortran --enable-shared
 --enable-threads=posix
   --enable-__cxa_atexit --enable-clocale=gnu --enable-targets=all
   --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.6.3
   p1.11, pie-0.5.2'
   Thread model: posix
   gcc version 4.6.3 (Gentoo 4.6.3 p1.11, pie-0.5.2)
   COLLECT_GCC_OPTIONS='-march=native' '-mtune=native' '-v' '-E'
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.3/cc1 -E -quiet -v -
   -march=pentium-m -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul
 -mpopcnt
   -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mbmi -mno-tbm -mno-avx
   -mno-sse4.2 -mno-sse4.1 --param l1-cache-size=32 --param
   l1-cache-line-size=64 --param l2-cache-size=4096 -mtune=generic
   ignoring nonexistent directory /usr/local/include
   ignoring nonexistent directory
  
 /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/include

  
   #include ... search starts here:
   #include ... search starts here:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include-fixed
/usr/include
   End of search list.
   # 1 stdin
   stdin:1:0: error: CPU you selected does not support x86-64
 instruction
   set
  
   It is returning pentium-m as architecture, which indeed is 32bit. I'm
   presently running the VM with -march=core2, but this is very weird.
  
   This is the /proc/cpuinfo:
  
   processor   : 0
   vendor_id   : GenuineIntel
   cpu family  : 6
   model   : 2
   model name  : QEMU Virtual CPU version 1.0
   stepping: 3
   microcode   : 0x1
   cpu MHz : 3399.998
   cache size  : 4096 KB
   fpu : yes
   fpu_exception   : yes
   cpuid level : 4
   wp  : yes
   flags   : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge
 mca
   cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl
 pni vmx
   cx16 popcnt hypervisor lahf_lm
   bogomips: 6799.99
   clflush size: 64
   cache_alignment : 64
   address sizes   : 40 bits physical, 48 bits virtual
   power management:
  
   Any idea what should be the march/mtune value?
  
 
  I don't have any experience with Hetzner's VMs - I only use their
  dedicated machines :)
 
  But as a more generic tip, you should install gentoo in VMs only with
  generic optimization. You can not safely rely on what CPU your VM will
  get. Maybe in 6 months the host your vm is on crashes, and your vm will
  be migrated to a new system with totally different cpu (actual hardware
  cpu or the cpu configuration that qemu is going to emulate).
 

 One tip for me: If your VMs are 64-bit,  obviously the underlying CPU
 must be 64-bit. So, setting -march=nocona should be safe (Nocona is
 Intel's first AMD64-compatible CPU).

 Rgds,
 -- 

 
 Well, it's a KVM virtual machine. And I'm *currently running* it with
 -march=core2 on 64bit, but that isn't very safe because it may be
 migrated any time in case the host fails. I guess it would be best to
 use generic x86_64?
 Or perhaps switch to 32bit because it's just 2 GB of RAM and it can't be
 bumped up any further (top end config).
 
 Some search reveals that it's an upstream bug where the CPU is detected
 as pentium m which happens to be 32 bit.
 

I use this on 64bit VMs, but maybe nocona is better?

CHOST=x86_64-pc-linux-gnu

CFLAGS=-march=k8 -O2 -pipe



Re: [gentoo-user] Pidgin, gtalk and jingle

2013-04-08 Thread Michael Hampicke
Am 08.04.2013 17:20, schrieb Michael Mol:
 So, I'm trying to verify whether or not Pidgin can talk to Google Voice
 on my laptop. When searching around for instructions, I get the
 impression that this is supposed to just work, and I don't see much in
 the way of people actually having difficulty with it.
 
 In my case, if someone calls me, my gmail tab rings at me, my phone
 rings at me, but Pidgin doesn't so much as twitch.
 
 Has anyone else had this working on Gentoo?
 
 Here's what I'm working with:
 
 net-im/pidgin-2.10.7-r1 was built with the following:
 USE=dbus doc gnutls gstreamer gtk (multilib) ncurses networkmanager nls
 python spell tk xscreensaver zeroconf (-aqua) -debug -eds -gadu
 -groupwise -idn -meanwhile -perl -prediction -sasl -silc -tcl -zephyr
 ABI_X86=64
 

I never got this to work either. I tried google-voice-calling ( :-) )
myself from my android phone to pidgin on the work station and got
nothing. Also I cannot make outgoing calls from pidgin to my android phone.



Re: [gentoo-user] Re: Eth0 interface not found - udev that little slut!!!!!

2013-04-08 Thread Michael Hampicke
Am 08.04.2013 18:16, schrieb Bruce Hill:
 On Sun, Apr 07, 2013 at 07:42:23PM +0200, Michael Hampicke wrote:

 Mike is right, if it's not a dep of another ebuild, you don't need
 wpa_supplicant. I just upgraded udev to 200 on the last remote box
 (which is always a bit of a thrill after typing reboot return :-) ).
 As expected, eth0 came up, everything works fine, wpa_supplicant is not
 installed.
 
 Don't know what you guys do for rebooting a headless server blindly like this,
 nor if it would work for the udev/NIC situation. But fwiw, what I've always
 done for new kernels is:
 
 mingdao@server ~ $ egrep -v (^#|^ *$) /etc/lilo.conf
 compact
 lba32
 default = Gentoo-def
 boot = /dev/md0
 raid-extra-boot = mbr-only
 map = /boot/.map
 install = /boot/boot-menu.b   # Note that for lilo-22.5.5 or later you
   # do not need boot-{text,menu,bmp}.b in
   # /boot, as they are linked into the lilo
   # binary.
 menu-scheme=Wb
 prompt
 timeout=50
 append=panic=10 nomce dolvm domdadm rootfstype=xfs
 image = /boot/vmlinuz
 root = /dev/md0
 label = Gentoo
 read-only  # Partitions should be mounted read-only for checking
 image = /boot/vmlinuz.old
 root = /dev/md0
 label = Gentoo-def
 read-only  # Partitions should be mounted read-only for checking
 
 Then issue lilo -R Gentoo or whatever the label of your new kernel, and if
 it boots, you're okay. If not, after 10 seconds of panic, it automatically
 reboots back into the default kernel and you can check logs to see what you've
 broken. (panic=10 append statement and default = Gentoo-def) After you know
 the new kernel works, comment the default line. (NB: You can name them
 differently, etc. It just helps to know before you reboot that if you panic,
 the machine will boot back into the known, good, kernel.) 
 
 Granted, this might not help with the udev/NIC situation, but it's saved me
 from a few PEBKAC situations, as well as new kernel changes I'd not learned
 until the reboot.
 

I have something similar with grub (with grub set default, savedefault,
fallback). Also most machines have some sort of rescue access with like
ipmi serial over lan or a eric card (kvm). But some remote machines
don't and rebooting them is always a thrill :) I mean, there are rescue
systems that can be invoked via bootp, but you are blind while rebooting.



Re: [gentoo-user] Re: Eth0 interface not found - udev that little slut!!!!!

2013-04-08 Thread Michael Hampicke
Am 08.04.2013 21:56, schrieb Bruce Hill:
 On Mon, Apr 08, 2013 at 09:46:28PM +0200, Michael Hampicke wrote:

 I have something similar with grub (with grub set default, savedefault,
 fallback). Also most machines have some sort of rescue access with like
 ipmi serial over lan or a eric card (kvm). But some remote machines
 don't and rebooting them is always a thrill :) I mean, there are rescue
 systems that can be invoked via bootp, but you are blind while rebooting.
 
 Hi Michael,
 
 If you have the time, maybe you can post your GrUB setup and a short HOW-TO do
 this somewhere. I've often mentioned doing it with LiLO in #gentoo on Freenode
 and always get flamed by GrUB fanbois, but to date none has been able to
 produce how to actually do it with GrUB. Since Gentoo now recommends GrUB
 rather by default, it might be nice for folks to know how to use this.
 
 Thanks,
 Bruce
 

This actually is pretty straight forward :) Here's a small sample config
for grub 0.97. But I'm pretty sure that this will work with grub2 too.

### grub.conf ###

# set default boot entry to prev. saved state:
default saved

# seq. order of boot entries
fallback 1 2 3

# here are the kernels
title gentoo 0
kernel /kernel panic=15
savedefault fallback

title gentoo 1
kernel /kernel panic=15
savedefault fallback

title gentoo 2
kernel /kernel panic=15
savedefault fallback

title gentoo 3
kernel /kernel panic=15
savedefault fallback

### end grub.conf ###

what I now do is this: set the default boot entry to zero with
% grub-set-default 0

On the next reboot this happens:

grub reads the default: 0

grub boots entry 0 and sets the default entry to 1 (or 2 according
to the fallback line in grub.conf)

If the systems panics, it reboots. But this time grub will load entry 1
as it is the default now (and so on, and so on).

If the systems booted successfully and you verified that it actually
booted the new kernel, you now have to set grub default to 0 with
grub-set-default.
You can to this with a small script in /etc/local.d/local.start
Maybe send the admin a warning that the system has not booted with the
default kernel. That's up to you :)

HTH



Re: [gentoo-user] Re: Eth0 interface not found - udev that little slut!!!!!

2013-04-07 Thread Michael Hampicke
Am 07.04.2013 16:32, schrieb Nick Khamis:
 No... I'm stumped. I really don't want it in there either... I will
 attempt removing it once finished updating the system.
 
 N.
 
 On 4/7/13, Michael Mol mike...@gmail.com wrote:
 Are you using 802.1x or wireless on that machine? If not, I can't think
 of a reason you'd need it, outside of it being a hard dependency of some
 other package.


Mike is right, if it's not a dep of another ebuild, you don't need
wpa_supplicant. I just upgraded udev to 200 on the last remote box
(which is always a bit of a thrill after typing reboot return :-) ).
As expected, eth0 came up, everything works fine, wpa_supplicant is not
installed.



Re: [gentoo-user] Re: Eth0 interface not found - udev that little slut!!!!!

2013-04-07 Thread Michael Hampicke
Am 07.04.2013 20:08, schrieb Nick Khamis:
 For those that have an error compiling udev 200:
 
 # emerge -1 XML-Parser
 # perl-cleaner --all
 
 There was not mention of this in the news. Nor will the package pull
 them in as a
 dependency.
 
 N.
 
 On 4/7/13, Nick Khamis sym...@gmail.com wrote:
 Is changing it back to eth0 and eth1 like pulling teeth?

 N

 On 4/7/13, Nick Khamis sym...@gmail.com wrote:
 Ooops I should have been more specific the net cards are not esp5s0
 and esp6s0. And the drivers for the network cards are built as
 modules.

This is most likely related to your previous world update. Maybe there
was an update for perl, after which you did not run perl-cleaner.



Re: [gentoo-user] Re: Eth0 interface not found - udev that little slut!!!!!

2013-04-06 Thread Michael Hampicke
Am 06.04.2013 23:28, schrieb Volker Armin Hemmann:
 Am 06.04.2013 23:19, schrieb Nick Khamis:
 Our net card was also build as a module Volker, did you include
 your net driver for example in /etc/conf.d/modules?
 
 no
 I removed the 70-something rules, and did pretty much nothing else.
 /etc/udev/rules.d/80-net-name-slot.rules just exists and is full of text.
 
 And nothing changed.
 
 
 

I did the same on my machines. Just removed the 70 persistent rules
file. Nothing changed. I have only one machine left which I will update
soon, but I suspect there also will be no problems.

Some machines have the nic driver as a module, some have it built into
kernel.



Re: [gentoo-user] stage3 only for i486?

2013-04-02 Thread Michael Hampicke
Am 02.04.2013 19:51, schrieb Davide Carnovale:
 Hi all gentoo people!
 I've been away from gentoo for a while, and I'm in the process of
 reinstalling it today.
 While downloading the stage 3 I noticed that only an i486 version is
 available. As far as I remember, gentoo was best known, back in the
 days, for being fast, as it was one of the first distro to support
 i686... am i wrong with this? if not, why only i486 today?
 
 apart from the reasons behind the decision of shipping only an i486
 stage 3, do you think it's worth the pain to recompile everything
 (like the old stage1) for a different arch? i have an intel i5
 processor.
 

If you're not low on system memory (less then 2GB) you really should go
the the amd64 stage.



Re: [gentoo-user] Difference between --update and --emptytree?

2013-03-31 Thread Michael Hampicke
Am 31.03.2013 05:12, schrieb Walter Dnes:
 On Sat, Mar 30, 2013 at 10:04:24PM -0400, Mike Gilbert wrote
 On Sat, Mar 30, 2013 at 9:49 PM, Walter Dnes waltd...@waltdnes.org wrote:
   Did an update today.  After the update, I checked again...

 [d531][waltdnes][~] emerge -pv --update --changed-use world

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

 Calculating dependencies... done!

 Total: 0 packages, Size of downloads: 0 kB

   Good... nothing to add... I think.  But replace --update with
 --emptytree, and a whole bunch of new and updated stuff shows up.  Is
 there a logical explanation?  Should I emerge world?  Or just the new
 and updated stuff (with the -1 flag)?  Here are listings of the new and
 updated stuff...

 The extra stuff is probably build-time deps, which do not get updated
 by default. Try this:

 emerge -pv --update --changed-use --with-bdeps=y world
 
   I see nothing at all to be emerged...
 
 
 [d531][waltdnes][~] emerge -pv --update --changed-use --with-bdeps=y world
 
 These are the packages that would be merged, in order:
 
 Calculating dependencies... done!
 
 Total: 0 packages, Size of downloads: 0 kB
 

You can also try adding --deep to your emerge options.

Or double check with eix -u -c

 
   I've written an autodepclean script that I run to guide me through
 cleaning up orphaned dependancies.  Think of it as a sane depclean.
 After each use, I run revdep-rebuild to ensure that nothing is broken.
 Could this be at the root of my situation?
 

What do you mean by sane depclean? Are there any problems with
--depclean that I am not aware of?



Re: [gentoo-user] Is 'MAKEOPTS=--jobs --load-average=5' silly?

2013-03-27 Thread Michael Hampicke
Am 26.03.2013 22:40, schrieb Neil Bothwick:
 On Tue, 26 Mar 2013 21:58:29 +0100, Michael Hampicke wrote:
 
 I havent't had any failed builds that were related to the --jobs
 option. The only exception is when rebuilding my kernel modules. I
 have to build spl first, then zfs-kmod. But that's  because zfs-kmod
 requires a complete built spl.  

 Interesting, I have --jobs and portage doesn't try t build spl
 and zfs-kmod in parallel, it always completes spl first.
   

 Interesting. Maybe a problem with module-rebuild? I will look into this
 when I have some spare time.

 Freshly merged kernel sources, kernel configured, compiled and
 installed. Then I ran module-rebuild:


 # module-rebuild rebuild
 
 The only difference I can see is that I use
 
 emerge @module-rebuild
 

emerge @module-rebuild seems to work just fine on my machine. Thx for
the tip, I did not know of this @set



Re: [gentoo-user] Is 'MAKEOPTS=--jobs --load-average=5' silly?

2013-03-26 Thread Michael Hampicke
Am 25.03.2013 23:32, schrieb Neil Bothwick:
 On Mon, 25 Mar 2013 23:27:04 +0100, Michael Hampicke wrote:
 
 This is what I use:
 EMERGE_DEFAULT_OPTS=--jobs=2 --load-average=6

 I havent't had any failed builds that were related to the --jobs option.
 The only exception is when rebuilding my kernel modules. I have to build
 spl first, then zfs-kmod. But that's  because zfs-kmod requires a
 complete built spl.
 
 Interesting, I have --jobs and portage doesn't try t build spl
 and zfs-kmod in parallel, it always completes spl first.
 

Interesting. Maybe a problem with module-rebuild? I will look into this
when I have some spare time.

Freshly merged kernel sources, kernel configured, compiled and
installed. Then I ran module-rebuild:


# module-rebuild rebuild
** Preparing to merge modules:
** Packages which I will emerge are:
=net-misc/r8168-8.035.00-r1
=app-emulation/virtualbox-modules-4.2.10
=x11-drivers/ati-drivers-13.3_beta2
=sys-kernel/spl-0.6.0_rc14-r3
=sys-fs/zfs-kmod-0.6.0_rc14-r5
5 4 3 2 1
 Verifying ebuild manifests
 Running pre-merge checks for x11-drivers/ati-drivers-13.3_beta2
 * Determining the location of the kernel source code
 * Found kernel source directory:
 * /usr/src/linux
 * Found kernel object directory:
 * /lib/modules/3.8.4-gentoo/build
 * Found sources for kernel version:
 * 3.8.4-gentoo
 * Checking for suitable kernel configuration options...
[ ok ]
 Emerging (1 of 5) net-misc/r8168-8.035.00-r1
 Emerging (2 of 5) app-emulation/virtualbox-modules-4.2.10
 Installing (1 of 5) net-misc/r8168-8.035.00-r1
 Emerging (3 of 5) x11-drivers/ati-drivers-13.3_beta2
 Emerging (4 of 5) sys-kernel/spl-0.6.0_rc14-r3
 Installing (2 of 5) app-emulation/virtualbox-modules-4.2.10
 Installing (3 of 5) x11-drivers/ati-drivers-13.3_beta2
 Emerging (5 of 5) sys-fs/zfs-kmod-0.6.0_rc14-r5
 Failed to emerge sys-fs/zfs-kmod-0.6.0_rc14-r5, Log file:
  '/var/tmp/portage/sys-fs/zfs-kmod-0.6.0_rc14-r5/temp/build.log'
 Installing (4 of 5) sys-kernel/spl-0.6.0_rc14-r3
 Jobs: 4 of 5 complete, 1 failed Load avg: 1.53,
0.90, 1.05


And the error:

checking kernel file name for module symbols... Module.symvers
checking spl source directory... Not found
configure: error:
*** Please make sure the spl devel package for your distribution
*** is installed then try again.  If that fails you can specify the
*** location of the spl source with the '--with-spl=PATH' option.



Re: [gentoo-user] Is 'MAKEOPTS=--jobs --load-average=5' silly?

2013-03-25 Thread Michael Hampicke
Am 25.03.2013 21:57, schrieb gottl...@nyu.edu:
 For a long time I have had in make.conf
 
 EMERGE_DEFAULT_OPTS=--ask --deep --tree --verbose --jobs --load-average=5
 MAKEOPTS=--jobs --load-average=5
 
 (for previous processors the 5 was 3).
 
 It seems that this configuration fails for several packages (or tickles
 bugs in their ebuilds/Makefiles).
 
 Lately whenever a build fails I change to
 
 MAKEOPTS=--jobs=1
 
 and this very often fixes the problem.
 
 It is not clear that any time saved by having jobs=5 compensates for
 having to redo builds.  So my question is do people
 
 1. keep jobs=1 in MAKEOPTS
 2. have jobs=n in MAKEOPTS but degrade on error as I do
 3. have jobs=n and file bugs when it fails.
 
 thanks,
 allan
 
 PS I do not change EMERGE_DEFAULT_OPTS
 

This is what I use:
EMERGE_DEFAULT_OPTS=--jobs=2 --load-average=6

I havent't had any failed builds that were related to the --jobs option.
The only exception is when rebuilding my kernel modules. I have to build
spl first, then zfs-kmod. But that's  because zfs-kmod requires a
complete built spl.



Re: [gentoo-user] How can I prevent gentoo-sources being installed?

2013-03-24 Thread Michael Hampicke
Am 24.03.2013 18:14, schrieb Jarry:
 On 24-Mar-13 17:46, Neil Bothwick wrote:
 On Sun, 24 Mar 2013 17:26:03 +0100, Jarry wrote:

 [ebuild  N ] sys-kernel/gentoo-sources-3.7.10:3.7.10  USE=-build
 -deblob -symlink 68,335 kB
 [ebuild  N ] virtual/linux-sources-0  0 kB
 [ebuild   R] sys-apps/kmod-12-r1  USE=tools zlib -debug -doc -lzma
 -static-libs KERNEL=(linux%*) 0 kB

 Why in the heavens name should be gentoo-sources pulled in as
 dependency of whatever?

 As a dependency of virtual-sources, which is probably pulled in by kmod.
 Adding --tree would have told you for sure.

 You may get away with adding gentoo-sources to package.provided.
 
 Thanks, this works (never heard of this file before). But there
 is one small problem: no wildcards are allowed, so whenever new
 sorces come I'll have to edit package.provided again, and again

No, that's not true. Here's the quote from the man page:

   Portage will not attempt to update a package that is listed here
unless another package explicitly requires a version that is newer than
what has been listed. Dependencies that are satisfied by
package.provided entries may cause installed packages satisfying
equivalent dependencies to be removed by emerge(1) --depclean actions
(see the ACTIONS section of the emerge(1) man page for more information).




Re: [gentoo-user] [OT] Time-lock USB stick

2013-03-20 Thread Michael Hampicke
Am 20.03.2013 03:58, schrieb Michael Mol:
 Does anybody know of time lock flash drives?
 
 The scenario I'm looking at is to have a drive that's only accessible
 for a certain amount of time after being powered on. It would hold
 crypto keys in a server context.
 

I am no expert on embedded systems, but couldn't you achieve something
like this by using a small dev board with like an Atmel controller?
Which you then program to act like an USB stick?



Re: [gentoo-user] Gentoo speed comparison to other distros

2013-03-14 Thread Michael Hampicke
2013/3/14 Dale rdalek1...@gmail.com

 Howdy,

 Also, I read that Nasdaq runs a modified version of Gentoo.  Do any
 other large corps run it that we know of?

 I googled a bit but couldn't find anything.  Maybe my search terms
 wasn't good enough.


Yeehaw,

domainfactory (http://df.eu) uses a modified version of gentoo on their
servers. df is one of the largest domain/hosting/mail providers in
german-speaking countries.


Re: [gentoo-user] A question concerning graphics...

2013-03-11 Thread Michael Hampicke
Am 11.03.2013 00:07, schrieb Alecks Gates:
 On Sun, Mar 10, 2013 at 5:53 PM, Michael Hampicke gentoo-u...@hadt.biz 
 wrote:
 Am 10.03.2013 21:48, schrieb Alecks Gates:
 On Sun, Mar 10, 2013 at 7:28 AM, Michael Hampicke gentoo-u...@hadt.biz 
 wrote:
 [...]
 I use the ati-drivers package, and I'd say there are pretty solid now. I
 first started using ati-drivers with my HD2600 card card - as the kernel
 drivers did not support the power saving mechanisms of the card. No
 power saving on the HD2600 meant just when idling: 60 degree C and a
 power usage of over 30 watts more then when using the kernel driver. Not
 to mention the noise of the fan. When I bought my new HD 7770 card last
 year, it was not supported by the kernel, so I sticked with the
 ati-drivers. Everythings works as it's supposed to. Dual screen setup
 with different solutions, power saving when idling, 3D power when you
 need it (steam games), opencl works fine too.


 I just bought a 7770 myself, and have been interested in getting a
 dual monitor setup with ati-drivers. What steps do I have to take?


 Just fire up the AMD catalyst control center, configure to your liking,
 that's it pretty much. I do run gnome 3.6 - but configuring dual
 monitors only with gnome (via system settings) was not possible.

 
 I noticed the same about Gnome.  I did try it in AMD Catalyst but was
 unsuccessful.  Do I need xinerama support?
 

I don't have xinerama enabled on any of my packages.

Here is the xorg.conf which AMD CC generated, maybe it helps:

Section ServerLayout
Identifier aticonfig Layout
Screen  0  aticonfig-Screen[0]-0 0 0
EndSection

Section Module
EndSection

Section InputClass
Identifier  evdev keyboard catchall
Driver  evdev
MatchDevicePath /dev/input/event*
MatchIsKeyboard yes
Option  XkbLayout de
EndSection

Section Monitor
Identifier   aticonfig-Monitor[0]-0
Option  VendorName ATI Proprietary Driver
Option  ModelName Generic Autodetecting Monitor
Option  DPMS true
EndSection

Section Monitor
Identifier   0-DFP9
Option  VendorName ATI Proprietary Driver
Option  ModelName Generic Autodetecting Monitor
Option  DPMS true
Option  PreferredMode 1920x1080
Option  TargetRefresh 60
Option  Position 0 0
Option  Rotate normal
Option  Disable false
EndSection

Section Monitor
Identifier   0-CRT1
Option  VendorName ATI Proprietary Driver
Option  ModelName Generic Autodetecting Monitor
Option  DPMS true
Option  PreferredMode 1280x1024
Option  TargetRefresh 60
Option  Position 1920 0
Option  Rotate normal
Option  Disable false
EndSection

Section Device
Identifier  aticonfig-Device[0]-0
Driver  fglrx
Option  Monitor-DFP9 0-DFP9
Option  Monitor-CRT1 0-CRT1
BusID   PCI:1:0:0
EndSection

Section Device
Identifier  amdcccle-Device[1]-1
Driver  fglrx
Option  Monitor-CRT1 0-CRT1
BusID   PCI:1:0:0
Screen  1
EndSection

Section Screen
Identifier aticonfig-Screen[0]-0
Device aticonfig-Device[0]-0
DefaultDepth 24
SubSection Display
Viewport   0 0
Virtual   3200 3200
Depth 24
EndSubSection
EndSection

Section Screen
Identifier amdcccle-Screen[1]-1
Device amdcccle-Device[1]-1
DefaultDepth 24
SubSection Display
Viewport   0 0
Depth 24
EndSubSection
EndSection




Re: [gentoo-user] A question concerning graphics...

2013-03-10 Thread Michael Hampicke
Am 10.03.2013 09:54, schrieb Chris Walters:
 Hello Everyone,
 
 I have a couple of questions concerning what graphic drivers you use. 
 Does anyone use the proprietary ATI drivers, or have used them?  Would
 you recommend them?  I just recently started using the ati-drivers
 package, but I don't really notice a difference - yes it does say the
 frame rate is much higher, but I am not sure it is worth losing my
 framebuffer over them.
 
 Technically, I lost my frame buffer because I am using an initramfs
 (initrd) because I have an encrypted root file system, and a separate
 non-encrypted usr partition.  I still have not been able to figure out
 how to get either uvesafb or vesafb working through the initramfs.  They
 will both load fine, before my initrd starts, then they seem to disappear.
 
 In case you're wondering, before I changed to the proprietary ati
 drivers, I was using the kernel framebuffer for my video card(s).  Two
 Radeon HD 5000 series cards.  I did have to insert the proper ucode into
 my kernel, but it worked.
 
 Chris
 

I use the ati-drivers package, and I'd say there are pretty solid now. I
first started using ati-drivers with my HD2600 card card - as the kernel
drivers did not support the power saving mechanisms of the card. No
power saving on the HD2600 meant just when idling: 60 degree C and a
power usage of over 30 watts more then when using the kernel driver. Not
to mention the noise of the fan. When I bought my new HD 7770 card last
year, it was not supported by the kernel, so I sticked with the
ati-drivers. Everythings works as it's supposed to. Dual screen setup
with different solutions, power saving when idling, 3D power when you
need it (steam games), opencl works fine too.



Re: [gentoo-user] A question concerning graphics...

2013-03-10 Thread Michael Hampicke
Am 10.03.2013 21:48, schrieb Alecks Gates:
 On Sun, Mar 10, 2013 at 7:28 AM, Michael Hampicke gentoo-u...@hadt.biz 
 wrote:
 [...]
 I use the ati-drivers package, and I'd say there are pretty solid now. I
 first started using ati-drivers with my HD2600 card card - as the kernel
 drivers did not support the power saving mechanisms of the card. No
 power saving on the HD2600 meant just when idling: 60 degree C and a
 power usage of over 30 watts more then when using the kernel driver. Not
 to mention the noise of the fan. When I bought my new HD 7770 card last
 year, it was not supported by the kernel, so I sticked with the
 ati-drivers. Everythings works as it's supposed to. Dual screen setup
 with different solutions, power saving when idling, 3D power when you
 need it (steam games), opencl works fine too.

 
 I just bought a 7770 myself, and have been interested in getting a
 dual monitor setup with ati-drivers. What steps do I have to take?
 

Just fire up the AMD catalyst control center, configure to your liking,
that's it pretty much. I do run gnome 3.6 - but configuring dual
monitors only with gnome (via system settings) was not possible.



Re: [gentoo-user] {OT} RAM apache MaxClients (rock a hard place)

2013-03-08 Thread Michael Hampicke
Am 07.03.2013 22:49, schrieb Michael Mol:
 On 03/07/2013 04:44 PM, Grant wrote:
 Thanks Michael, I think I will set up nginx to serve my images.  That
 should take a big load off apache.  Is nginx still beneficial when
 using the Worker MPM?

 It...depends?

 nginx in reverse caching proxy mode will simply serve up objects before
 the httpd it's protecting has to deal with them. Whether the type of an
 MPM makes a significant difference on nginx's value depends more on what
 kind of work you are (or aren't) asking Apache to do. I really couldn't
 answer that for you without knowing the details behind what you're
 running on top of Apache.

 OK, I think either nginx or Worker would help prevent MaxClients from
 being reached and using both of them would help even further.
 
 If you're using mod_php, you cannot use MPM Worker. Just sayin. It's so
 unsupported, they block each other in Portage.
 

But you can use worker in conjunction with php via fastcgi or php-fpm.
In the best event, that should slightly decrease apaches overall memory
footprint.



Re: [gentoo-user] {OT} RAM apache MaxClients (rock a hard place)

2013-03-08 Thread Michael Hampicke
Am 08.03.2013 10:02, schrieb Michael Hampicke:
 Am 07.03.2013 22:49, schrieb Michael Mol:
 On 03/07/2013 04:44 PM, Grant wrote:
 Thanks Michael, I think I will set up nginx to serve my images.  That
 should take a big load off apache.  Is nginx still beneficial when
 using the Worker MPM?

 It...depends?

 nginx in reverse caching proxy mode will simply serve up objects before
 the httpd it's protecting has to deal with them. Whether the type of an
 MPM makes a significant difference on nginx's value depends more on what
 kind of work you are (or aren't) asking Apache to do. I really couldn't
 answer that for you without knowing the details behind what you're
 running on top of Apache.

 OK, I think either nginx or Worker would help prevent MaxClients from
 being reached and using both of them would help even further.

 If you're using mod_php, you cannot use MPM Worker. Just sayin. It's so
 unsupported, they block each other in Portage.

 
 But you can use worker in conjunction with php via fastcgi or php-fpm.
 In the best event, that should slightly decrease apaches overall memory
 footprint.
 

Sorry, I meant the systems overall memory usage



Re: [gentoo-user] VBoxManage modifyhd - doesn't work

2013-02-26 Thread Michael Hampicke
Am 26.02.2013 01:57, schrieb Joseph:
 On 02/25/13 16:29, Joseph wrote:
 I'm trying to resize XP partition, the procedure suppose to be simple:
 VBoxManage modifyhd /full/path/to/hd.vdi --resize new_size

 so, I run:
 VBoxManage modifyhd /home/joseph/VirtualBox\
 VMs/xp-clinic/xp-clinic.vdi --resize 15000
 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

 The original size was 10G and still is.
 
 Actually the storage is showing as 14.6GB so that is correct but when I
 boot windows I only see about 600Mb free disk space instead of 4+GB
 

Have you resized your Windows partition under Windows as well?



Re: [gentoo-user] [PATCH] Linus breaks virtualbox-modules

2013-02-20 Thread Michael Hampicke
2013/2/20 walt w41...@gmail.com

 Now that kernel 3.8.0 is officially released, 'tis the season for Linus to
 start breaking all of the third-party kernel modules he can, and
 virtualbox-
 modules is the first (nvidia.ko and other kernel modules to follow,
 probably ;)

 Virtualbox-modules fails to build against today's kernel.git update from
 Linus,
 with an error message that MAX_PRIO is undefined in
 thread2-r0drv-linux.c.

 The fix is happily very simple because he moved the definition of MAX_PRIO
 into linux/init_task.h, so all you need to do is to add that include near
 the top of thread2-r0drv-linux.c.


r8168 breaks too, but I haven't looked into it yet.


Re: [gentoo-user] Creating accounts in Thunderbird

2013-02-03 Thread Michael Hampicke
Am 03.02.2013 12:51, schrieb Alan McKinnon:
 Test driving this newfangled thunderbird thingy, trying to create the
 last of my several accounts.
 
 This account does not need SMTP settings, i never send from it.
 But the create Account Wizard insists on trying to validate passwords
 and every setting other under the sun.
 
 How do I get Thunderbird to act like software and not assume it know
 better than I do?
 All I want is for it to accept what I put in the textbox and use it,
 *and*do*nothing*else.
 
 Is there some magic config file where I can bypass the wizard?
 

In the account wizzard, just click on manual config, enter all your
settings, that's all. Just tested it with TB18.



  1   2   3   >