[gentoo-user] QEMU setup questions

2013-07-25 Thread Walter Dnes
On Thu, Jul 25, 2013 at 05:16:21AM +0100, Kerin Millar wrote
> 
> > 2) What "vncviewer" or "vncconnect" parameters do I use to get to the
> > qemu session?
> 
> Assuming both server and client are run locally, connecting to either 
> "localhost:0" or "localhost:5900" should work.

  Thanks.  That helped me to get it working.

  I stumbled over the solution to my final problem by accident.  When
booting off the install cd, you have 15 seconds to "hit any key", or
else it'll try to boot off the "hard drive".  Given that I haven't
installed yet, it'll try to boot off the blank pseudo "hard drive", and
fail.  Pressing any key will stop the timer.  I prefer to type in...

gentoo net.ifnames=0

...to give myself "a predictable interface name", namely eth0.  The
timer stops after I hit the "g", and I can take my time typing the rest
of the command.  If you don't mind whatever ifname udev generates, you
can simply hit enter.  The drill *FOR INSTALL ONLY* under vnc is like
so...

* open up 2 terminals side-by-each
* in one type the command like the following *BUT DO NOT HIT *
vncviewer localhost:2

* in the other terminal, type a command like so, and hit 
qemu-system-i386 -vnc :2 -cpu qemu32 -m 3072 -hda sda.raw -cdrom installx86.iso 
-boot d

* *IMMEDIATELY* go over to the other terminal and hit  to
  activate vncviewer

* *AS SOON AS VNCVIEWER POPS UP* either hit  for default install
  parameters, or start typing your own install command.

* *DO NOT PANIC* when the vncviewer screen goes dark for several seconds
  as the install checks out its environment.

* One more minor annoyance and workaround... the initial vncviewer
  screen is a 720x400 xterm.  The install thinks it's in a 1024x768
  framebuffer, so you get the bottom and right edges of the output
  clipped.  As soon the penguin logo appears, you can close the xterm
  containing the vncviewer output, and open another vncviewer with the
  same command as the original.  This new copy senses the correct
  "screensize" and you can go on with your install.


  I still haven't figured out why only root can run qemu-kvm.  I
"solved" that problem with an entry in /etc/sudoers.d and it is
definitely faster.

  If I specify a video card type for the guest, then the driver has to
be emerged on the guest; is that correct?

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications



Re: [gentoo-user] QEMU setup questions

2013-07-25 Thread Kerin Millar

On 25/07/2013 09:54, Walter Dnes wrote:

On Thu, Jul 25, 2013 at 05:16:21AM +0100, Kerin Millar wrote



2) What "vncviewer" or "vncconnect" parameters do I use to get to the
qemu session?


Assuming both server and client are run locally, connecting to either
"localhost:0" or "localhost:5900" should work.


   Thanks.  That helped me to get it working.

   I stumbled over the solution to my final problem by accident.  When
booting off the install cd, you have 15 seconds to "hit any key", or
else it'll try to boot off the "hard drive".  Given that I haven't
installed yet, it'll try to boot off the blank pseudo "hard drive", and
fail.  Pressing any key will stop the timer.  I prefer to type in...


Just as on a real PC you can issue Ctrl+Alt+Del to have it reboot again 
(without respawning qemu). Look for the three-finger-salute icon on the 
toolbar.




gentoo net.ifnames=0

...to give myself "a predictable interface name", namely eth0.  The
timer stops after I hit the "g", and I can take my time typing the rest
of the command.  If you don't mind whatever ifname udev generates, you
can simply hit enter.  The drill *FOR INSTALL ONLY* under vnc is like
so...

* open up 2 terminals side-by-each
* in one type the command like the following *BUT DO NOT HIT *
vncviewer localhost:2

* in the other terminal, type a command like so, and hit 
qemu-system-i386 -vnc :2 -cpu qemu32 -m 3072 -hda sda.raw -cdrom installx86.iso 
-boot d

* *IMMEDIATELY* go over to the other terminal and hit  to
   activate vncviewer

* *AS SOON AS VNCVIEWER POPS UP* either hit  for default install
   parameters, or start typing your own install command.

* *DO NOT PANIC* when the vncviewer screen goes dark for several seconds
   as the install checks out its environment.

* One more minor annoyance and workaround... the initial vncviewer
   screen is a 720x400 xterm.  The install thinks it's in a 1024x768
   framebuffer, so you get the bottom and right edges of the output
   clipped.  As soon the penguin logo appears, you can close the xterm
   containing the vncviewer output, and open another vncviewer with the
   same command as the original.  This new copy senses the correct
   "screensize" and you can go on with your install.


That's odd. The VNC client should dynamically change the size of its 
window as appropriate.





   I still haven't figured out why only root can run qemu-kvm.  I
"solved" that problem with an entry in /etc/sudoers.d and it is
definitely faster.

   If I specify a video card type for the guest, then the driver has to
be emerged on the guest; is that correct?



That's correct if you want optimal performance in X.org. The best option 
is -vga vmware in conjunction with x11-drivers/xf86-video-vmware.


--Kerin



Re: [gentoo-user] QEMU setup questions

2013-07-25 Thread J. Roeleveld
On Thu, July 25, 2013 11:17, Kerin Millar wrote:
> On 25/07/2013 09:54, Walter Dnes wrote:
>> On Thu, Jul 25, 2013 at 05:16:21AM +0100, Kerin Millar wrote

>>I stumbled over the solution to my final problem by accident.  When
>> booting off the install cd, you have 15 seconds to "hit any key", or
>> else it'll try to boot off the "hard drive".  Given that I haven't
>> installed yet, it'll try to boot off the blank pseudo "hard drive", and
>> fail.  Pressing any key will stop the timer.  I prefer to type in...
>
> Just as on a real PC you can issue Ctrl+Alt+Del to have it reboot again
> (without respawning qemu). Look for the three-finger-salute icon on the
> toolbar.

Which toolbar?

>> * One more minor annoyance and workaround... the initial vncviewer
>>screen is a 720x400 xterm.  The install thinks it's in a 1024x768
>>framebuffer, so you get the bottom and right edges of the output
>>clipped.  As soon the penguin logo appears, you can close the xterm
>>containing the vncviewer output, and open another vncviewer with the
>>same command as the original.  This new copy senses the correct
>>"screensize" and you can go on with your install.
>
> That's odd. The VNC client should dynamically change the size of its
> window as appropriate.

Not all VNC-clients do this.
Which do you use?

--
Joost




Re: [gentoo-user] QEMU setup questions

2013-07-25 Thread Kerin Millar

On 25/07/2013 10:26, J. Roeleveld wrote:

On Thu, July 25, 2013 11:17, Kerin Millar wrote:

On 25/07/2013 09:54, Walter Dnes wrote:

On Thu, Jul 25, 2013 at 05:16:21AM +0100, Kerin Millar wrote



   I stumbled over the solution to my final problem by accident.  When
booting off the install cd, you have 15 seconds to "hit any key", or
else it'll try to boot off the "hard drive".  Given that I haven't
installed yet, it'll try to boot off the blank pseudo "hard drive", and
fail.  Pressing any key will stop the timer.  I prefer to type in...


Just as on a real PC you can issue Ctrl+Alt+Del to have it reboot again
(without respawning qemu). Look for the three-finger-salute icon on the
toolbar.


Which toolbar?


* One more minor annoyance and workaround... the initial vncviewer
   screen is a 720x400 xterm.  The install thinks it's in a 1024x768
   framebuffer, so you get the bottom and right edges of the output
   clipped.  As soon the penguin logo appears, you can close the xterm
   containing the vncviewer output, and open another vncviewer with the
   same command as the original.  This new copy senses the correct
   "screensize" and you can go on with your install.


That's odd. The VNC client should dynamically change the size of its
window as appropriate.


Not all VNC-clients do this.
Which do you use?


TightVNC but on Windows. I haven't used the Linux version in some time
and incorrectly assumed feature parity. Sorry about that. Regarding the
absence of a toolbar, pressing F8 should expose a menu with a
Ctrl-Alt-Del option.

--Kerin



[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] bash-completion change?

2013-07-25 Thread Douglas J Hunley
On Wed, Jul 24, 2013 at 10:05 AM, Stefano Crocco wrote:

>
> There are a few bugs regarding this issue, for example: 472938, 476992 and
> 477214. If I understand things correctly, all installed modules are
> enabled,
> but they're loaded "on-demand" (I guess this means the first time they're
> used, but I'm not sure). The way suggested in one of these bugs to have a
> working autocompletion is to source
> /usr/share/bash-completion/bash_completion
> from you .bashrc file.
>
> Stefano
>
>
>
I agree w/ the user in 477214. This is completely broken. And the lack of
notice to the user post-emerge on how to set things up 'the new way' is
infuriating. Guess I'll add this to my 'check back in 6 months to see if
they've got it sorted' list

Thanks Stefano

-- 
Douglas J Hunley (doug.hun...@gmail.com)
Twitter: @hunleyd   Web:
douglasjhunley.com
G+: http://goo.gl/sajR3


Re: [gentoo-user] Systemd and static network

2013-07-25 Thread Douglas J Hunley
On Thu, Jul 25, 2013 at 6:46 AM, Michael Hampicke  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...


-- 
Douglas J Hunley (doug.hun...@gmail.com)
Twitter: @hunleyd   Web:
douglasjhunley.com
G+: http://goo.gl/sajR3


Re: [gentoo-user] Systemd and static network

2013-07-25 Thread Pavel Volkov
On Thursday 25 July 2013 17:23:56 I wrote:


Systemd will not read /etc/conf.d/net like /etc/init.d/net.* 
scripts do. You need some service that will prepare the 
network.
I personally prefer netctl, it is KISS enough. It was me who 
asked the devs to add it to the tree :)
I tried NM too, it does not work out of the box with systemd, 
there are several issues.





Re: [gentoo-user] Systemd and static network

2013-07-25 Thread Pavel Volkov
KMail is messing with my 
emails here, quotations in 
sent letters are not the way 
they used to look in edit mode 
:)


Re: [gentoo-user] Systemd and static network

2013-07-25 Thread Pavel Volkov
On Thursday 25 July 2013 08:18:00 Douglas J Hunley wrote:




On Thu, Jul 25, 2013 at 6:46 AM, Michael Hampicke  
wrote:


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


Systemd will not read /etc/conf.d/net like /etc/init.d/net.* scripts do. You 
need some service that will prepare the network.
I personally prefer netctl, it is KISS enough. It was me who asked the devs 
to add it to the tree :)
I tried NM too, it does not work out of the box with systemd, there are 
several issues.



[1] mailto:m...@hadt.biz


[gentoo-user] [portage] rebuild dependencies of a package

2013-07-25 Thread András Csányi
Hi All,

I would like to ask some help regarding hos to use portage.

I have a few packages to rebuild on my system and sometimes I have to
- or I think I have to - rebuild dependencies of a package to fix a
compiling issue.

I do it something like this:

equery g nautilus

* dependency graph for gnome-base/nautilus-3.6.3_p0_p16
 `--  gnome-base/nautilus-3.6.3_p0_p16  ~amd64
   `--  dev-libs/glib-2.37.3_p1_p02  (>=dev-libs/glib-2.35.9)
   `--  dev-libs/libdbusmenu-12.10.3_p0_p01  (dev-libs/libdbusmenu) ~amd64
   `--  dev-libs/libunity-6.90.2_p0_p01  (dev-libs/libunity) ~amd64
   `--  dev-libs/libzeitgeist-0.3.18  (dev-libs/libzeitgeist) ~amd64
   `--  x11-libs/pango-1.34.1  (>=x11-libs/pango-1.28.3) ~amd64
   `--  x11-libs/gtk+-3.8.2_p3_p02  (>=x11-libs/gtk+-3.5.12)   [introspection?]
   `--  dev-libs/libxml2-2.9.1-r1  (>=dev-libs/libxml2-2.7.8) ~amd64
   `--  gnome-base/gnome-desktop-3.8.3  (>=gnome-base/gnome-desktop-3) ~amd64
   `--  gnome-base/dconf-0.16.1  (gnome-base/dconf) ~amd64
   `--  gnome-base/gsettings-desktop-schemas-3.8.0_p1_p01
(gnome-base/gsettings-desktop-schemas)
   `--  x11-libs/libnotify-0.7.5-r1  (>=x11-libs/libnotify-0.7) amd64
   `--  x11-libs/libX11-1.5.0-r1  (x11-libs/libX11) ~amd64
   `--  x11-libs/libXext-1.3.2  (x11-libs/libXext) ~amd64
   `--  x11-libs/libXrender-0.9.8  (x11-libs/libXrender) ~amd64
   `--  media-libs/libexif-0.6.21-r1  (>=media-libs/libexif-0.6.20) ~amd64
   `--  dev-libs/gobject-introspection-1.37.1
(>=dev-libs/gobject-introspection-0.6.4)
   `--  app-misc/tracker-0.16.1  (>=app-misc/tracker-0.14) ~amd64
   `--  media-libs/exempi-2.2.1  (>=media-libs/exempi-2.1.0) ~amd64
   `--  dev-lang/perl-5.16.3  (>=dev-lang/perl-5) ~amd64
   `--  dev-util/gdbus-codegen-2.36.3  (>=dev-util/gdbus-codegen-2.33) ~amd64
   `--  dev-util/gtk-doc-am-1.19  (>=dev-util/gtk-doc-am-1.4) ~amd64
   `--  dev-util/intltool-0.50.2-r1  (>=dev-util/intltool-0.40.1) ~amd64
   `--  sys-devel/gettext-0.18.2  (sys-devel/gettext) amd64
   `--  virtual/pkgconfig-0  (virtual/pkgconfig) amd64
   `--  x11-proto/xproto-7.0.24  (x11-proto/xproto) ~amd64
   `--  sys-devel/automake-1.12.6  (>=sys-devel/automake-1.12) amd64
   `--  sys-devel/automake-1.13.4  (>=sys-devel/automake-1.13) ~amd64
   `--  sys-devel/autoconf-2.69  (>=sys-devel/autoconf-2.68) amd64
   `--  sys-devel/libtool-2.4.2  (sys-devel/libtool) ~amd64
   `--  app-arch/xz-utils-5.0.5  (app-arch/xz-utils) ~amd64
   `--  sys-apps/sed-4.2.2  (>=sys-apps/sed-4) ~amd64
   `--  x11-base/xorg-server-1.13.3_p0_p06  (x11-base/xorg-server)
~amd64  [xvfb]
   `--  x11-apps/xhost-1.0.6  (x11-apps/xhost) ~amd64
   `--  x11-themes/gnome-icon-theme-3.8.2
(>=x11-themes/gnome-icon-theme-1.1.91) ~amd64
   `--  x11-themes/gnome-icon-theme-symbolic-3.8.3
(x11-themes/gnome-icon-theme-symbolic) ~amd64
   `--  gnome-extra/nautilus-tracker-tags-0.16.1
(>=gnome-extra/nautilus-tracker-tags-0.12) ~amd64
   `--  gnome-extra/sushi-3.8.1  (>=gnome-extra/sushi-0.1.9) ~amd64
   `--  gnome-extra/nautilus-sendto-3.8.0
(>=gnome-extra/nautilus-sendto-3.0.1) ~amd64
   `--  gnome-base/gvfs-1.16.3  (>=gnome-base/gvfs-1.14) ~amd64  [gtk]
   `--  app-admin/packagekit-base-0.7.4  (app-admin/packagekit-base) ~amd64
[ gnome-base/nautilus-3.6.3_p0_p16 stats: packages (41), max depth (1) ]

and I copy all of the package names and rebuild them.

Is there a easier way to rebuild dependencies of a package? I mean a
command or something?

I have searched in the google and I do not find answer for my question.

Thanks for any help in advance!

-- 
--  Csanyi Andras (Sayusi Ando)  -- http://sayusi.hu --
http://facebook.com/andras.csanyi
--  ""Trust in God and keep your gunpowder dry!" - Cromwell



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  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: Re: [gentoo-user] bash-completion change?

2013-07-25 Thread Stefano Crocco
On Thursday 25 July 2013 Douglas J Hunley wrote
> On Wed, Jul 24, 2013 at 10:05 AM, Stefano Crocco 
wrote:
> > There are a few bugs regarding this issue, for example: 472938, 476992 and
> > 477214. If I understand things correctly, all installed modules are
> > enabled,
> > but they're loaded "on-demand" (I guess this means the first time they're
> > used, but I'm not sure). The way suggested in one of these bugs to have a
> > working autocompletion is to source
> > /usr/share/bash-completion/bash_completion
> > from you .bashrc file.
> > 
> > Stefano
> 
> I agree w/ the user in 477214. This is completely broken. And the lack of
> notice to the user post-emerge on how to set things up 'the new way' is
> infuriating. Guess I'll add this to my 'check back in 6 months to see if
> they've got it sorted' list
> 
> Thanks Stefano
> 
> --
> Douglas J Hunley (doug.hun...@gmail.com)
> Twitter: @hunleyd   Web:
> douglasjhunley.com
> G+: http://goo.gl/sajR3

I agree with you about the lack of a post-emerge message! I spent at least one 
hour the other day trying to understand why suddenly bash completion wasn't 
working anymore. I think all of this is still a work in progress, however, 
since the eselect package still installs the man page for the bashcomp module 
(bashcomp.eselect)!

Stefano



Re: [gentoo-user] [portage] rebuild dependencies of a package

2013-07-25 Thread Mick
On Thursday 25 Jul 2013 15:28:23 András Csányi wrote:
> Hi All,
> 
> I would like to ask some help regarding hos to use portage.
> 
> I have a few packages to rebuild on my system and sometimes I have to
> - or I think I have to - rebuild dependencies of a package to fix a
> compiling issue.
> 
> I do it something like this:
> 
> equery g nautilus
> 
> * dependency graph for gnome-base/nautilus-3.6.3_p0_p16
>  `--  gnome-base/nautilus-3.6.3_p0_p16  ~amd64
>`--  dev-libs/glib-2.37.3_p1_p02  (>=dev-libs/glib-2.35.9)
[snip ...]


> and I copy all of the package names and rebuild them.
> 
> Is there a easier way to rebuild dependencies of a package? I mean a
> command or something?
> 
> I have searched in the google and I do not find answer for my question.
> 
> Thanks for any help in advance!

In your /etc/make.conf add:

  preserve-libs

in the FEATURES section.  Then run:

  emerge @preserved-rebuild

In addition, you can finish it off with:

  revdep-rebuild -v -- --ask


This will rebuild any dependencies that have been affected by whatever other 
package you happened to have installed/updated recently.  When you finish 
emerging look into your elog messages, because portage often warns you that 
you need to run either of these two commands and it is advisable to do so 
after you have run 'emerge --depclean --ask'.
-- 
Regards,
Mick


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


Re: [gentoo-user] Systemd and static network

2013-07-25 Thread Canek Peláez Valdés
On Thu, Jul 25, 2013 at 5:46 AM, Michael Hampicke  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   broadcast  netmask  up
ExecStart=/bin/route add default gw  
# 
---

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.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] Experiences with amd richland or trinity APUs?

2013-07-25 Thread Alexander Puchmayr
On Mittwoch, 24. Juli 2013, 20:40:36 Jason Weisberger wrote:

> I've been running a mobile A8 quad core with a 6000 series GPU for about a
> year under 3.x kernels and open source x.org[1] drivers.  Not a hiccup. 

OK, thanks for the replies so far. I'll try the A10 ...

Alex







[gentoo-user] [systemd vs consolekit] packagekit-base

2013-07-25 Thread András Csányi
Hi All,

Due to the fact I use Unity and it pulls lot of gnome stuff I started
to migrate my desktop from consolekit to systemd. At the point
described below I run out of knowledge. Does not matter what I do
packagekit-base package wants consolekit. It looks like badly... :S

Thanks in advance for any help!

USE="... systemd udev policykit -consolekit ..."

[ebuild  N ] app-admin/packagekit-base-0.7.4  USE="introspection
networkmanager (policykit) udev -connman -cron -doc -entropy -nsplugin
-pm-utils -static-libs {-test}" LINGUAS="-as -bg -bn -ca -cs -da -de
-el -en_GB -es -fi -fr -gu -he -hi -hu -it -ja -kn -ko -ml -mr -ms -nb
-nl -or -pa -pl -pt -pt_BR -ro -ru -sk -sr -sr@latin -sv -ta -te -th
-tr -uk -zh_CN -zh_TW" 1,459 kB
[ebuild  N ]  sys-auth/consolekit-0.4.6  USE="acl pam (policykit)
-debug -doc (-selinux) {-test}" 358 kB
[blocks B  ] sys-apps/systemd ("sys-apps/systemd" is blocking
sys-auth/consolekit-0.4.6)

Total: 2 packages (2 new), Size of downloads: 1,817 kB
Conflict: 1 block (1 unsatisfied)

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

  (sys-apps/systemd-206::gentoo, installed) pulled in by
>=sys-apps/systemd-206[gudev?,introspection?,kmod?,selinux?,static-libs(-)?]
(>=sys-apps/systemd-206[gudev,introspection,kmod]) required by
(virtual/udev-206::gentoo, installed)

  (sys-auth/consolekit-0.4.6::gentoo, ebuild scheduled for merge) pulled in by
sys-auth/consolekit required by
(app-admin/packagekit-base-0.7.4::gentoo, ebuild scheduled for merge)


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked

sayusi-desktop sayusi # eix -s packagekit-base
* app-admin/packagekit-base
 Available versions:  (~)0.6.22^t (~)0.7.4^t {connman cron doc
entropy +introspection networkmanager nsplugin pm-utils +policykit
static-libs test udev LINGUAS="as bg bn ca cs da de el en_GB es fi fr
gu he hi hu it ja kn ko ml mr ms nb nl or pa pl pt pt_BR ro ru sk sr
sr@latin sv ta te th tr uk zh_CN zh_TW"}
 Homepage:http://www.packagekit.org/
 Description: Manage packages in a secure way using a
cross-distro and cross-architecture API

-- 
--  Csanyi Andras (Sayusi Ando)  -- http://sayusi.hu --
http://facebook.com/andras.csanyi
--  ""Trust in God and keep your gunpowder dry!" - Cromwell



Re: [gentoo-user] [systemd vs consolekit] packagekit-base

2013-07-25 Thread Canek Peláez Valdés
On Thu, Jul 25, 2013 at 3:06 PM, András Csányi  wrote:
> Hi All,
>
> Due to the fact I use Unity and it pulls lot of gnome stuff I started
> to migrate my desktop from consolekit to systemd. At the point
> described below I run out of knowledge. Does not matter what I do
> packagekit-base package wants consolekit. It looks like badly... :S
>
> Thanks in advance for any help!
>
> USE="... systemd udev policykit -consolekit ..."
>
> [ebuild  N ] app-admin/packagekit-base-0.7.4  USE="introspection
> networkmanager (policykit) udev -connman -cron -doc -entropy -nsplugin
> -pm-utils -static-libs {-test}" LINGUAS="-as -bg -bn -ca -cs -da -de
> -el -en_GB -es -fi -fr -gu -he -hi -hu -it -ja -kn -ko -ml -mr -ms -nb
> -nl -or -pa -pl -pt -pt_BR -ro -ru -sk -sr -sr@latin -sv -ta -te -th
> -tr -uk -zh_CN -zh_TW" 1,459 kB
> [ebuild  N ]  sys-auth/consolekit-0.4.6  USE="acl pam (policykit)
> -debug -doc (-selinux) {-test}" 358 kB
> [blocks B  ] sys-apps/systemd ("sys-apps/systemd" is blocking
> sys-auth/consolekit-0.4.6)
>
> Total: 2 packages (2 new), Size of downloads: 1,817 kB
> Conflict: 1 block (1 unsatisfied)
>
>  * Error: The above package list contains packages which cannot be
>  * installed at the same time on the same system.
>
>   (sys-apps/systemd-206::gentoo, installed) pulled in by
> 
> >=sys-apps/systemd-206[gudev?,introspection?,kmod?,selinux?,static-libs(-)?]
> (>=sys-apps/systemd-206[gudev,introspection,kmod]) required by
> (virtual/udev-206::gentoo, installed)
>
>   (sys-auth/consolekit-0.4.6::gentoo, ebuild scheduled for merge) pulled in by
> sys-auth/consolekit required by
> (app-admin/packagekit-base-0.7.4::gentoo, ebuild scheduled for merge)
>
>
> For more information about Blocked Packages, please refer to the following
> section of the Gentoo Linux x86 Handbook (architecture is irrelevant):
>
> http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked
>
> sayusi-desktop sayusi # eix -s packagekit-base
> * app-admin/packagekit-base
>  Available versions:  (~)0.6.22^t (~)0.7.4^t {connman cron doc
> entropy +introspection networkmanager nsplugin pm-utils +policykit
> static-libs test udev LINGUAS="as bg bn ca cs da de el en_GB es fi fr
> gu he hi hu it ja kn ko ml mr ms nb nl or pa pl pt pt_BR ro ru sk sr
> sr@latin sv ta te th tr uk zh_CN zh_TW"}
>  Homepage:http://www.packagekit.org/
>  Description: Manage packages in a secure way using a
> cross-distro and cross-architecture API

Unity is in the tree? Where?

The ebuild for packagekit-base has a hard dependency on consolekit,
without an option for systemd. This is because the last version of
PackageKit in the tree is 0.7.4, which is more than a year older (was
released in April 2012).

If you use Unity, the DE by Canonical for Ubuntu, the last thing you
want is systemd. Canonical/Ubuntu is pretty clear on the fact that
they support Upstart, not systemd.

And lastly, why do you want/need PackageKit? It worked horribly with
portage, last time I tried some years ago.

If you use GNOME you need to use systemd. Unity is a completely
different beast (although it uses the same technologies behind the
curtains), and systemd would be blocked by some Unity stuff, if I
understand correctly.

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



Re: [gentoo-user] QEMU setup questions

2013-07-25 Thread Walter Dnes
On Thu, Jul 25, 2013 at 11:26:36AM +0200, J. Roeleveld wrote

> Not all VNC-clients do this.
> Which do you use?

  In my case, it's tightvnc, which does not auto-resize.  And in linux
tightvnc, {F8} brings up the dialogue.

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications



Re: [gentoo-user] QEMU setup questions

2013-07-25 Thread Walter Dnes
On Thu, Jul 25, 2013 at 10:17:41AM +0100, Kerin Millar wrote
> That's correct if you want optimal performance in
> X.org. The best option is -vga vmware in conjunction with
> x11-drivers/xf86-video-vmware.

  The last time I used qemu a few years ago, I ended up running wine
from the guest as an X client, using the host's display.  The display
was native, and faster than the emulation.  I also didn't have to build
the full-blown X-server on the guest.  Here are my latest scripts/commands

1) The install startup script

#!/bin/bash
sudo /usr/bin/qemu-kvm \
 -vga vmware \
 -vnc :2 \
 -redir tcp:60022::22 \
 -cpu qemu32 \
 -m 3072 \
 -hda sda.raw -hdb sdb.raw -cdrom installx86.iso -boot d

2) Launching vncviewer

vncviewer localhost:2

3) ssh from the guest to the host

ssh root@localhost

4) ssh from the host to the guest

ssh -p 60022 root@localhost

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications



[gentoo-user] [~amd64] Anyone survive the big gnome update from this morning (July 25)?

2013-07-25 Thread walt
I'm very happy that I did the gnome update on a virtual gentoo
machine instead of my real machine :)  The virtual gentoo is
unusable at the moment because gnome is very sick indeed.

I avoided the big update on my real machine when I saw that
gnome-shell (I think it was) demanded the installation of
systemd on my openrc-only system.

Now, I've been running systemd on the virtual gentoo machine
for months with no problems, so I wasn't worried about the
big update on that machine.

AFAICT the systemd update has nothing to do with gnome's sickness,
systemd-206 seems to be working just fine on the virtual machine.

The gnome desktop, however, is completely black except for one
functioning gnome main-menu applet, which lets me open an xterm
for potential debugging efforts.

Running nautilus from the xterm prompt produces this error:

GLib-GIO_ERROR: Settings schema 'org.gnome.desktop.background'
does not contain a key named 'draw-background'
Trace/breakpoint trap

Has anyone else tried the same update yet?




[gentoo-user] Re: Systemd and static network

2013-07-25 Thread Canek Peláez Valdés
On Thu, Jul 25, 2013 at 8:50 PM, Jonathan Callen  wrote:
> On 07/25/2013 11:42 AM, Canek Peláez Valdés wrote:
>> On Thu, Jul 25, 2013 at 5:46 AM, Michael Hampicke 
>> wrote:
>>> 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   broadcast  netmask
>  up
>> ExecStart=/bin/route add default gw  
>> #
> ---
>>
>
> I would recommend replacing those two commands with:
>
> ExecStart=/bin/ip addr add / dev 
> ExecStart=/bin/ip route add default via  dev 
>
> This uses the newer iproute2 infrastructure, which is supposed to
> replace the deprecated net-tools package (last official release was in
> 2001).
>
> Note also that this uses the CIDR notation for IP addresses.  If you
> were previously using "ifconfig eth0 192.168.1.5 broadcast
> 192.168.1.255 netmask 255.255.255.0", you can simply say "ip addr add
> 192.168.1.5/24 dev eth0" which calculates both netmask and broadcast
> from the "/24" (which means the upper 24 bits are used).

Thanks for the heads up.

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



Re: [gentoo-user] 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  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   broadcast  netmask  up
> ExecStart=/bin/route add default gw  
> # 
> ---
> 
> 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 and static network

2013-07-25 Thread Keith Dart
Re
CADPrc803kq_c76b1oqp3PksvDgyP5MD+zqLGqcsxk=eCT2iYRA@mail.gmail.comCADPrc803kq_c76b1oqp3PksvDgyP5MD+zqLGqcsxk=eCT2iYRA@mail.gmail.com51f10221.1080...@hadt.biz,
Michael Hampicke said:
> Tanks. I will give netctl a try in a VM. For now, on real machines, I
> am going with the unit you suggested.


I'm using netctl on one VM now. I'm... ok with it. for now... it did
seem to break during one update, so I think it's still in flux. And the
configuration is a bit confusing. 


-- Keith


-- 

-- ~
   Keith Dart 
   public key: ID: 19017044
   
   =