Re: [gentoo-user] Firefox bookmarks

2015-01-10 Thread Marc Joliet
Am Sat, 10 Jan 2015 00:10:33 -0500
schrieb Philip Webb purs...@ca.inter.net:

 Can anyone tell me where Firefox stores its bookmarks ?
 I want to copy the bookmarks from my Gentoo system to another system ;
 I've tried copying  .cache/mozilla.mozilla ,
 but it has no effect on the bookmarks shown by Firefox in the other machine.

Have you considered using Firefox Sync?  (You can tell it to *only* sync
bookmarks, if you want.)

HTH
-- 
Marc Joliet
--
People who think they know everything really annoy those of us who know we
don't - Bjarne Stroustrup


pgpandbkOVkGP.pgp
Description: Digitale Signatur von OpenPGP


[gentoo-user] KDE plasmoids/widgets collapsing on the floor?

2015-01-10 Thread Mick
I have no idea what is causing this.  This is a new installation with a KDE 
desktop.  The PC has two monitors and was set up to have different widgets in 
each desktop - this was necessary with the current KDE version to be able to 
have different wallpapers for each virtual desktop.

Only the first virtual desktop has widgets (plasmoids).

The left monitor is connected to the PC with DVI, the right monitor with HDMI.  
No monitor is set as the primary monitor, but I have also tried it with the 
left being the primary monitor.

All desktop widgets are locked so they don't move around.

Every time the user logs out/in all widgets in the left hand monitor have 
moved/dropped from the top of the *left* screen only to the bottom and overlap 
each other.  The right screen behaves as it should.

When the user reboots, rather than logout/in the widgets stay in their 
assigned positions on the left desktop.  :-/

I am not sure why this happens.  Why it happens in the left monitor only (DVI 
connector).  Why they fall all the way to the bottom behind the KDE toolbar.

-- 
Regards,
Mick


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


Re: [gentoo-user] pdf viewer

2015-01-10 Thread lee
Andrew Savchenko birc...@gentoo.org writes:

 On Fri, 09 Jan 2015 20:49:56 +0100 lee wrote:
 Andrew Savchenko birc...@gentoo.org writes:
 
  When I need something simple (e.g. to read pdf books) I use mupdf.
 
 How did you get mupdf to display a pdf?

 Just run it:
 $ mupdf file.pdf

 In my case mupdf is configured as follows:
 Installed versions:  1.5-r1(02:19:48 AM 12/28/2014)(X curl openssl -static 
 -static-libs -vanilla)

There's only 'utool' and no 'mupdf'.

 I'd have removed it if it
 wasn't required by llpp ...

 Funny thing. llpp segfaults to me to matter on what host I try it.

It works fine here :)

 How do I get seamonkey to suggest llpp as application to view PDFs?
 Sometimes it suggests emacsclient, sometimes browse ...

 I don't use seamonkey, so I can't get an exact advice, but in general
 there are two ways to do this:

 1) Configure your handlers in seamonkey.

How?

 2) Configure your default mime handler using xdg-mime.

Hm, xdg-mime is not installed; I've never heared of it.


-- 
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us.  Finally, this fear has become reasonable.



Re: [gentoo-user] installing Gentoo in a xen VM

2015-01-10 Thread lee
Rich Freeman ri...@gentoo.org writes:

 On Fri, Jan 9, 2015 at 4:02 PM, lee l...@yagibdah.de wrote:
 Rich Freeman ri...@gentoo.org writes:

 On Mon, Dec 29, 2014 at 8:55 AM, lee l...@yagibdah.de wrote:

 Just why can't you?  ZFS apparently can do such things --- yet what's
 the difference in performance of ZFS compared to hardware raid?
 Software raid with MD makes for quite a slowdown.


 Well, there is certainly no reason that you couldn't serialize a
 logical volume as far as design goes.  It just isn't implemented (as
 far as I'm aware), though you certainly can just dd the contents of a
 logical volume.

 You can use dd to make a copy.  Then what do you do with this copy?  I
 suppose you can't just use dd to write the copy into another volume
 group and have it show up as desired.  You might destroy the volume
 group instead ...

 You can dd from a logical volume into a file, and from a file into a
 logical volume.  You won't destroy the volume group unless you do
 something dumb like trying to copy it directly onto a physical volume.
 Logical volumes are just block devices as far as the kernel is
 concerned.

You mean I need to create a LV (of the same size) and then use dd to
write the backup into it?  That doesn't seem like a safe method.

 How about ZFS as root file system?  I'd rather create a pool over all
 the disks and create file systems within the pool than use something
 like ext4 to get the system to boot.

 I doubt zfs is supported by grub and such, so you'd have to do the
 usual in-betweens as you're eluding to.  However, I suspect it would
 generally work.  I haven't really used zfs personally other than
 tinkering around a bit in a VM.

That would be a very big disadvantage.  When you use zfs, it doesn't
really make sense to have extra partitions or drives; you just want to
create a pool from all drives and use that.  Even if you accept a boot
partition, that partition must be on a raid volume, so you either have
to dedicate at least two disks to it, or you're employing software raid
for a very small partition and cannot use the whole device for ZFS as
recommended.  That just sucks.

 And how do I convert a system installed on an ext4 FS (on a hardware
 raid-1) to ZFS?  I can plug in another two disks, create a ZFS pool from
 them, make file systems (like for /tmp, /var, /usr ...) and copy
 everything over.  But how do I make it bootable?


 I'm pretty sure you'd need an initramfs and a boot partition that is
 readable by the bootloader.  You can skip that with btrfs, but not
 with zfs.  GRUB is FSF so I doubt they'll be doing anything about zfs
 anytime soon.  Otherwise, you'll have to copy everything over - btrfs
 can do in-place ext4 conversion, but not zfs.

Well, I don't want to use btrfs (yet).  The raid capabilities of brtfs
are probably one of its most unstable features.  They are derived from
mdraid:  Can they compete with ZFS both in performance and, more
important, reliability?

With ZFS at hand, btrfs seems pretty obsolete.


-- 
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us.  Finally, this fear has become reasonable.



Re: [gentoo-user] pdf viewer

2015-01-10 Thread Andrew Savchenko
On Sat, 10 Jan 2015 19:25:54 +0100 lee wrote:
 Andrew Savchenko birc...@gentoo.org writes:
 
  On Fri, 09 Jan 2015 20:49:56 +0100 lee wrote:
  Andrew Savchenko birc...@gentoo.org writes:
  
   When I need something simple (e.g. to read pdf books) I use mupdf.
  
  How did you get mupdf to display a pdf?
 
  Just run it:
  $ mupdf file.pdf
 
  In my case mupdf is configured as follows:
  Installed versions:  1.5-r1(02:19:48 AM 12/28/2014)(X curl openssl -static 
  -static-libs -vanilla)
 
 There's only 'utool' and no 'mupdf'.

You should enable USE=X as I wrote above.
 
  How do I get seamonkey to suggest llpp as application to view PDFs?
  Sometimes it suggests emacsclient, sometimes browse ...
 
  I don't use seamonkey, so I can't get an exact advice, but in general
  there are two ways to do this:
 
  1) Configure your handlers in seamonkey.
 
 How?

I don't have seamonkey, read its manual.
 
  2) Configure your default mime handler using xdg-mime.
 
 Hm, xdg-mime is not installed; I've never heared of it.

x11-misc/xdg-utils
Most WM/DE will pull this package.

Best regards,
Andrew Savchenko


pgpRigLqXTToR.pgp
Description: PGP signature


[gentoo-user] alternative to dvbcut

2015-01-10 Thread lee
Hi,

since dvbcut isn't available in Gentoo and doesn't compile either,
what's the alternative?


-- 
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us.  Finally, this fear has become reasonable.



Re: [gentoo-user] Usign ansible (was: another old box to update)

2015-01-10 Thread Tomas Mozes

On 2015-01-09 10:25, Stefan G. Weichinger wrote:

Am 08.01.2015 um 19:29 schrieb Alan McKinnon:


The directory layout in the best practice page is indeed way more than
you need, it lists most of the directories in common use across a wide
array of deployments. In reality you create just the directories you 
need.


Global stuff goes in the top level (like inventory).
Variables for groups and individual hosts go into suitably named files
inside group_vars and host_vars.
Roles have a definite structure, in practice you'll use tasks/ and
templates/ a lot, everything else only when you need them.

This is a good design I feel. If a file describes variables, you don't
have to tag it as such or explicitly include it anywhere. Instead, 
files

inside a *vars/ directory contain variables, the system knows when to
use them based on the name of the file. It's really stunningly obvious
once you train your brain to stop thinking in terms of complexity :-)


Thanks a lot ... I spent some time with it already and learn to like it 
;)


I am nearly done with setting up an inventory file for all the customer
boxes I am responsible for. Just using the ad-hoc-commands is very
useful already!

For example I could store the output of the setup module for local
reference ... this gives me loads of basic information.

I know it is not a backup program but I think I could also use it to
rsync all the /etc directories to my ansible host? Or trigger a git
push on the remote machines to let them push their configs up to some
central git-repo I provide here (having /etc and the @world-file is
quite a good start here and then ... ).

It is also great to be able to check for let's say
shellshock-vulnerability by adding a playbook and running it to 
all/some

of the servers out there ... I am really starting to come up with lots
of ideas!

My current use case will be more of an inventory to track all the boxes
... deploying stuff out to them seems not so easy in my slightly
heterogeneous zoo. But this can lead to a more standardized setup, 
sure.


One question:

As far as I see the hostname in the inventory does not have to be
unique? I have some firewalls out there without a proper FQDN, so there
are several pfsense lines in various groups (I have now groups in
there with the name of the [customer] and some of them have child 
groups

like [customer-sambas] ...).

I would like to be able to also access all the ipfires or sambas in
another group ... so I would have to list them again in that group
[ipfires] ?

Thanks for the great hint to ansible, looking great so far!
Stefan


Ansible is a not a backup solution. You don't need to download your /etc 
from the machines because you deploy your /etc to machines via ansible.


I was also thinking about putting /etc in git and then deploying it but:
- on updates, will you update all configurations in all /etc repos?
- do you really want to keep all the information in git, is it 
necessary?


Opposite to this, you can define roles like apache, mysql, 
common-gentoo, firewall etc. where you describe how to install that 
software and do some basic configuration that is to be shared among the 
most of your machines. You can also define default values (like the 
bind address, the listen port) and then override it in your machine 
group role (if it's used with multiple servers).


If you have all the software pieces written down in roles and you use 
the defaults of that role, you simply get to that a server configuration 
is just a compound of that roles (plus some configuration copy). Like 
this an apache+php application server with firewall and centralized 
logging is just like around 20-30 lines.


You don't need to use roles, you can put all this information in task 
files and then you include this files, however then you don't have 
encapsulation and the default values.


It really doesn't matter how your servers diverge, if you keep the 
details split up in roles, you just cherry-pick the roles, overriding 
their defaults and copying configuration. However it is true that 
ansible tries to keep your configuration identical among server (for 
example to not install apache absolutely differently on two machines, 
but to use as much common pieces as possible).


Check out ansible galaxy and search for some roles (like apache, cron, 
redis etc.). Regarding configuration, you can template or just copy the 
configuration to a server (like when installing postfix for example) but 
you need to keep the template up to date with the shipped configuration 
(or ship your own configuration and diverge from mainstream). An 
alternative is to just make some changes to the default configuration 
(replace line, add some line). Then you don't need to update your 
templates, on updates you can copy over the new configuration from 
._cfgXXX and make the same changes as before, most probably it will 
work. A good trick is to use include directories where possible (don't 
edit /etc/sudoers but copy your 

Re: [gentoo-user] installing Gentoo in a xen VM

2015-01-10 Thread Rich Freeman
On Sat, Jan 10, 2015 at 1:22 PM, lee l...@yagibdah.de wrote:
 Rich Freeman ri...@gentoo.org writes:

 You can dd from a logical volume into a file, and from a file into a
 logical volume.  You won't destroy the volume group unless you do
 something dumb like trying to copy it directly onto a physical volume.
 Logical volumes are just block devices as far as the kernel is
 concerned.

 You mean I need to create a LV (of the same size) and then use dd to
 write the backup into it?  That doesn't seem like a safe method.

Doing backups with dd isn't terribly practical, but it is completely
safe if done correctly.  The LV would need to be the same size or
larger, or else your filesystem will be truncated.


 How about ZFS as root file system?  I'd rather create a pool over all
 the disks and create file systems within the pool than use something
 like ext4 to get the system to boot.

 I doubt zfs is supported by grub and such, so you'd have to do the
 usual in-betweens as you're eluding to.  However, I suspect it would
 generally work.  I haven't really used zfs personally other than
 tinkering around a bit in a VM.

 That would be a very big disadvantage.  When you use zfs, it doesn't
 really make sense to have extra partitions or drives; you just want to
 create a pool from all drives and use that.  Even if you accept a boot
 partition, that partition must be on a raid volume, so you either have
 to dedicate at least two disks to it, or you're employing software raid
 for a very small partition and cannot use the whole device for ZFS as
 recommended.  That just sucks.

Just create a small boot partition and give the rest to zfs.  A
partition is a block device, just like a disk.  ZFS doesn't care if it
is managing the entire disk or just a partition.  This sort of thing
was very common before grub2 started supporting more filesystems.


 Well, I don't want to use btrfs (yet).  The raid capabilities of brtfs
 are probably one of its most unstable features.  They are derived from
 mdraid:  Can they compete with ZFS both in performance and, more
 important, reliability?



Btrfs raid1 is about as stable as btrfs without raid.  I can't say
whether any code from mdraid was borrowed but btrfs raid works
completely differently and has about as much in common with mdraid as
zfs does.  I can't speak for zfs performance, but btrfs performance
isn't all that great right now - I don't think there is any
theoretical reason why it couldn't be as good as zfs one day, but it
isn't today.  Btrfs is certainly far less reliable than zfs on solaris
- zfs on linux has less long-term history of any kind but most seem to
think it works reasonably well.

 With ZFS at hand, btrfs seems pretty obsolete.

You do realize that btrfs was created when ZFS was already at hand,
right?  I don't think that ZFS will be likely to make btrfs obsolete
unless it adopts more dynamic desktop-oriented features (like being
able to modify a vdev), and is relicensed to something GPL-compatible.
Unless those happen, it is unlikely that btrfs is going to go away,
unless it is replaced by something different.


-- 
Rich



Re: [gentoo-user] Usign ansible

2015-01-10 Thread Alan McKinnon
On 10/01/2015 21:40, Tomas Mozes wrote:


 Ansible is a not a backup solution. You don't need to download your /etc
 from the machines because you deploy your /etc to machines via ansible.
 
 I was also thinking about putting /etc in git and then deploying it but:
 - on updates, will you update all configurations in all /etc repos?
 - do you really want to keep all the information in git, is it necessary?

The set of fileS in /etc/ managed by ansible is always a strict subset
of everything in /etc

For that reason alone, it's a good idea to back up /etc anyway,
regardless of having a CM system in place. The smallest benefit is
knowing when things changed, by the cm SYSTEM or otherwise


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




[gentoo-user] Is it wrong to install a specific version

2015-01-10 Thread behrouz khosravi
Hi. I wanted to install plasma 5 on my laptop, but I encountered a lot of
problems regarding dependencies, masking and other stuff.

Since I felt a little stubbornness in myself, and didn't want to back off !
I took another approach. I checked that what packages will be installed.
After that I removed the qt4 and installed all of the required qt5 packages
from qt-5.4.0 one by one and using the specific version.
After that I did the same with qt-framework packages and so on.

I think that this is generally a bad idea, because the it makes the World
set much bigger.
However I am wondering what will happen when the tree updates?
I mean for examples when another version of qt5 comes out, portage will try
to update it ?

thanks.


Re: [gentoo-user] Is it wrong to install a specific version

2015-01-10 Thread Dale
behrouz khosravi wrote:
 Hi. I wanted to install plasma 5 on my laptop, but I encountered a lot
 of problems regarding dependencies, masking and other stuff.

 Since I felt a little stubbornness in myself, and didn't want to back
 off !
 I took another approach. I checked that what packages will be installed.
 After that I removed the qt4 and installed all of the required qt5
 packages from qt-5.4.0 one by one and using the specific version.
 After that I did the same with qt-framework packages and so on.

 I think that this is generally a bad idea, because the it makes the
 World set much bigger.
 However I am wondering what will happen when the tree updates?
 I mean for examples when another version of qt5 comes out, portage
 will try to update it ?

 thanks.


I think you can edit the world file and make the qt packages look
something like this:

dev-qt/qtcore:5

Basically, remove the specific version and just tell it you want the 5
slot.  Then when something new comes out, it should upgrade.  Of course,
those versions will either have to be stable or in the needed
keyword/unmask file. 

Just a thought.  Someone else may have a even better idea/plan. 

Dale

:-)  :-) 



[gentoo-user] Re: Firefox bookmarks

2015-01-10 Thread »Q«
On Sat, 10 Jan 2015 06:50:48 +0100
waben...@gmail.com wrote:

 I don't know how and where Firefox stores its bookmarks. But if you
 want do transfer Firefox bookmarks from one system to another, you
 can simply press Ctrl+Shift+O in Firefox. A window will open up where
 you can select Import  Backup -- Export Bookmarks to HTML... to
 save the bookmarks to a file. This file can easily be imported in the
 same manner on your other system.

That will work fine, but using the Backup and Restore functions will
retain more metadata.  Instead of writing an html file, Backup writes
a .json.  NB:  Restoring bookmarks from a json file will overwrite the
bookmarks, whereas Importing an html file will add them to bookmarks.





Re: [gentoo-user] Usign ansible

2015-01-10 Thread Tomas Mozes

On 2015-01-10 23:11, Alan McKinnon wrote:

On 10/01/2015 21:40, Tomas Mozes wrote:


Ansible is a not a backup solution. You don't need to download your 
/etc
from the machines because you deploy your /etc to machines via 
ansible.


I was also thinking about putting /etc in git and then deploying it 
but:

- on updates, will you update all configurations in all /etc repos?
- do you really want to keep all the information in git, is it 
necessary?


The set of fileS in /etc/ managed by ansible is always a strict subset
of everything in /etc

For that reason alone, it's a good idea to back up /etc anyway,
regardless of having a CM system in place. The smallest benefit is
knowing when things changed, by the cm SYSTEM or otherwise


For what reason?

And how does a workflow look like then? You commit changes to your git 
repo of ansible. Then you deploy via ansible and check the /etc of each 
machine and commit a message that you changed something via ansible?




Re: [gentoo-user] pdf viewer

2015-01-10 Thread Walter Dnes
On Sat, Jan 10, 2015 at 07:25:54PM +0100, lee wrote
 Andrew Savchenko birc...@gentoo.org writes:

  1) Configure your handlers in seamonkey.
 
 How?

  I've got Seamonkey 2.31.  Go to 
Edit == Preferences == Category;Browser == Helper Aplications

  Assuming you've already got Content Type PDF file in the list,
click on the icon beside emacsclient in the Action column.  This
opens a dropdown menu.  Click on Use other... and navigate to
/usr/bin/mupdf in the file menu.

  If you're really brave, you can try editing the mimeTypes.rdf file in
the browser profile directly.  Remember to shut down your browser, and
back up the file first.

  I originally got into this because of a particularly obnoxious
behaviour by Firefox.  Seamonkey shares most Firefox code, so I assume
it follows suit.  The obnoxious behaviour is that it dereferences
symlinks.  Years ago Abiword would actually install a binary like
/usr/bin/abiword-1.2.3.4 and /usr/bin/abiword was a symlink to this
file.  Let's say you selected abiword as the helper application to
launch when you get Word files as URLs.  Firefox would dereference the
symlink to /usr/bin/abiword-1.2.3.4, and store that app name as the app
to launch for Word files.  A version bump to /usr/bin/abiword-1.2.3.5
and Firefox would whine about /usr/bin/abiword-1.2.3.4 not being found.
I edited mimeTypes.rdf, changing all abiword-1.2.3.4 to abiword, and
things worked properly.

  This was even more crucial for apps like sox which have symlinks
with different names like play that take different parameters and act
differently depending on the name you invoke them by.

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