How do you try out an application and keep $HOME clean afterwards

As a new Gnome user, naturally I turned to evolution for an email client well integrated with Gnome. As it turned out, I couldn't find any love for it, so I removed the package. But the problem was that it left behind in several places stuff I no longer wanted.
I had prepared for just that. During the try-out of evolution, I had inotify monitor the files it laid its hands on:
$ inotifywait -mr -e CREATE -e MODIFY -e DELETE ~
The list I got from this:
create ~/.pki/nssdb/{cert9.db,key4.db,pkcs11.txu}
create ~/.config/evolution/*
create ~/.local/share/evolution/*
modify ~/.config/dconf/user
modify ~/.local/share/gvfs-metadata/home*
add password to ~/.local/share/keyrings/login.keyring (gnome-keyring)
download mails etc. to ~/.cache/evolution/
Obviously the cleanup was not as easy as simply removing files/folders, I had to:
clean up dconf database:
$ dconf reset -f /org/gnome/evolution/
$ dconf read /org/gnome/desktop/notifications/application-children
['gnome-network-panel', 'nautilus', 'evolution']
$ dconf write /org/gnome/desktop/notifications/application-children "['gnome-network-panel', 'nautilus']"
$ dconf reset -f /org/gnome/desktop/notifications/application/evolution/
clean up login password stored in gnome-keyring: install and run `seahorse', delete the entry "Evolution Data Source XXXXXXXXXX.XXXX.XX@hostname".
clean up data and config:
$ rm -rf ~/.cache/evolution/ ~/.local/share/evolution/ ~/.config/evolution/
I don't know about the NSS stuff, but since no other applications seem to use it (IIRC NSS is used by Chromium, which I don't use), I simply remove it all:
$ rm -rf ~/.pki/
gvfs metadata stuff I really don't know about; ignoring.
As you can see, It takes some long hard work to simply try out an application like evolution while keeping my $HOME intact.
I imagine I could have tried it out under another user (correctly named "tester"), or maybe used some kind of filesystem snapshot (which ext4 lacks afaik), or some kind of sandbox. Too much hassle maybe?
My question to you is how do you do a throw-away trace-free test-run of an application?
Last edited by lolilolicon (2013-07-10 04:48:20)

lolilolicon wrote:@firecat53, I'm not sure I understand (I don't have an idea of the tools you just mentioned), but I feel that virtual machines seem to be overkill/over-complicating? For trying out they may be very suitable, but for daily use they don't seem to be very convenient.
Heh, to me having to mess with dconf databases and moving $HOME seem way more complicated!
So if you just do a quick Arch install into a virtual machine (you can expedite it by mounting a shared directory and sharing/copying your /var/cache/pacman/pkg directory to avoid re-downloading all your installed packages). Configure it as you wish. Now create a shapshot of the virtual machine as it now exists. This is almost a one-click operation in Virtualbox. Now you have a 'saved state'. Boot up the VM, install the package you want to test...change things, break things, whatever. When you're done, shutdown the VM and select the option to 'Discard current state' or some such. Now the VM reverts back exactly to how you set it up originally. Keep it updated just like your regular system (or in whatever state you need for testing) and snapshot it after an update. You can discard old snapshots when you're comfortable with your current update.
The other other tools I mentioned are just tools that can deploy and configure  multiple virtual machines (for example for developers to be able  work collaboratively in identical environments). Probably overkill for what you need.
I think you will spend less time getting a suitable test VM configured then you will trying to worry about filesystem snapshots and monkeying with environment variables. Just my two cents
Scott
Last edited by firecat53 (2013-07-10 20:52:16)

Similar Messages

  • How do you find out what application is generating a plist file in your preference folder?

    I have had two similar warnings come up in Drive Genius 3, a program that I use to manage my drives.  The warnings occur during a daily verification of preferences on my main drive, a 256GB SSD. 
    They state:
    "The preference file at '/Users/me/Library/Preferences/com.analogsolutions.Football.plist' may be corrupted."
    "The preference file at '/Users/me/Library/Preferences/org.machinedevelop.National.plist' may be corrupted."
    Per Drive Genius' advisement, "Corrupted files can cause appplication crashes and should be moved to the Trash." I delete the files, however they are regenerated each day. 
    Q: How do you figure out what application is generating a preference file?  And is there a way to tell if this is a OS generated preference file? 
    I have searched online and cannot find any information about either Analog Solutions or Machine Develop nor am I able to discern what these particular .plist files are for... 
    Q: Are these two .plist files truly potentially harmful?
    Thanks for the Help!
    iMac
    model iMac12,2
    3.4 GHz Intel Core i7
    8 GB 1333 MHz DDR3

    Hi Everyone, sorry for the late response.  I have been monitoring my Preferences Folder; every moment I am on my computer trying to catch what application/process generates these files.  I was hoping to try your suggestions, but oddly enough the offensive .plist files have not returned since the last time I deleted them about a week ago.... strange...
    In any case, I have responded to some of your suggestions and questions that I have information on:
    X423424X wrote: Ok, can you double click the .plist file?  If so it should attempt to launch the Property List Editor (in your Utilities folder).  That way you can look at stuff in the plist.  Maybe (hopefully) there's something in there that can shed some light on who is creating it.   If Property List Editor cannot open the file (some apps create files that have the .plist extension but don't actually create the proper XML format -- probably what ProSoft was alluding to) then try opening it with a text editor.
    The .plist file when opened in text editor contains a string of (what to me seems to be) an arbitrary list of numbers.
    Linc Davis wrote: Those files have been given obfuscated names so you won't know what created them. They must contain encrypted registration data for some third-party commercial software that you use.
    Yes, seems likely...
    Linc Davis wrote: It should be fairly easy to find out what application is creating them, if you really care. Move the files to the Desktop, then log out. Log back in while holding the shift key as you click the "Log In" button. That will prevent your login items from loading, among other things. Open your account preferences and launch the login items one at a time by double-clicking them in the list. After each one, check to see whether the files have been recreated.
    Ran through login, one by one, no luck in identifying the application(s). 
    X423424X wrote: Another thought, lock the plists on the hope that whatever is using them will "choke" and complain about it (no guarantee that will work but worth a try).
    Thanks, the lock idea is the one I will try next if they ever reappear...
    X423424X wrote: Also, I don't recall if I asked this but if those plists are deleted while logged in will they be recreated during that same login session.  Or do they only appear after you deleted them and then and then logged out and back in?  Or do you have to reboot to recreate them?
    Unfortunately I do not know for certain.  Though from all my login/startup/reboot tests I believe that they are not directly linked to starting up the machine or loging in either.
    I'm not really certain why the .plist have not returned.  I haven't uninstalled any programs, though I did run a couple updates for some widgets within the last week; however that was about 3 days after I deleted the last set of .plist files and usually they reappered everyday.  In any case, given that they have not been regenerated I guess my problem is solved per se, at least I am no longer getting that annoying warning everyday.   Still, it's a bit of a mystery  
    Thanks again for all the help!

  • How do you edit out the date and time stamp from a photo

    How do you edit out the date and time stamp from a photo

    You can blur it out with retouch
    The built-in "Retouch" brush in "Edit" mode should suffice, if the background is mostly uniform, and if you set the size of the brush to slightly wider than the bar width of the letters. For example, in this picture I removed the year from the date (in the lower right corner) by using the "retouch" brush and following the contours of the letters. (the screen shot is from iPhoto '11, but iPhoto 9 should give similar results).
    Regards
    Léonie

  • How do you add a mobile number and a home number to a contact on a 4S

    How do you add a mobile number and a home number to a contact on an iPhone4S?

    First add the mobile number. Once you've done that there should be another field that shows 'iPhone". Tap on 'iPhone' and change it to 'Home' then input the home number.

  • How should I try out Oracle Grid and Oracle database?

    I want to try out Oracle Grid and Oracle database in a virtualized test environment. I have already downloaded the Oracle VM VirtualBox for Windows platform. The OS for the production environment is RHEL. So, do I just need to download Oracle Linux? How about the VM Manager, VM Server, and Oracle programs?

    You can use the standard distribution media from http://www.oracle.com/technetwork/indexes/downloads/index.html and https://edelivery.oracle.com/linux to install Oracle Linux and Oracle 11g in Virtualbox. Virtualbox can use real disk media as well as .iso disk image files. Oracle Linux 6 is not certified for any Oracle database product yet. Your best option will be to install Oracle Linux 5.7 and then install the Oracle-Validated software package to prepare Oracle Linux for the Oracle database installation.
    Virtualbox and Oracle VM are different products. Oracle VM, including OVM server and manager installs its own operating system and is designed for installations on bare metal machines. Virtualbox is an application that requires a primary host OS, e.g. Windows, MacOSX, Linux, to install one or more virtual machines with Windows or Linux guest systems.

  • If you have 2 apple ids, how do you sign out of one and into the other so you can update the app that was purchased in the other account.  thanks

    If you purchased an app in one account and work mostly in another, how do you switch the purchased app account to update it?
    thanks

    You need to sign out and back in only if you're on your Mac and you want to update the iTunes data.  You'll see a notice saying that there are five (or so) updates but when you go to download them, they're not all present.  So you download them, sign out from one ID and sign back in with the other ID.  Then you can download the remaining ones.
    If you're downloading directly to the iPad, everything is transparent.  It does not matter what ID is configured in Settings.  The iPad automatically chooses the correct ID or IDs when updates are available.

  • How do you patch JDS 5.2 and keep it working?

    Does anyone have experience patching Java Directory server 5.2, the package installation? I tried patching from base JDS 5.2 to JDS 5.2 P4 by applying these patches....
    118615-01
    115610-23
    115614-26
    Now the directory server won't start..
    $ directoryserver start
    ld.so.1: ns-slapd: fatal: libsoftokn3.so: open failed: No such file or directory
    Killed
    Server not running!! Failed to start ns-slapd process.
    Does anyone have any idea what to do to correct this issue? I have the library, and I've tried various ways of placing it in my library path (LD_LIBRARY_PATH, copying, linking) to no effect.
    --Mediis                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    You also need to install the patches for the Shared Components used by
    Directory Server 5.2 (and the patch number depend on your version of Solaris).
    Since you're mentioning 115610-23 and 115614-26, I assume Solaris Sparc.
    You need to install the following patches:
    ICU library: 116103-08 (or higher) for Solaris 8, or 114677-08 (or higher) for Solaris 9.
    NSS/NSPR/JSS: 119209-04 (or higher) for Solaris 8, or 119211-04 (or higher) for Solaris 9, or 119213-04 (or higher) for Solaris 10.
    SASL: 115328-02 (or higher) for Solaris 8, 115342-02 (or higher) for Solaris 9 or 10.
    LDAP C-SDK: 116837-02.
    LDAP JDK: 119725-02.
    And also the 2 most important ones are: 115610-23 and 115614-26.
    Please, do not try to set LD_LIBRARY_PATH, directory server should work without.
    Regards,
    Ludovic.

  • How do I cut out the vocals and keep the instrumentals

    I recorded a track and I just want to keep the instumentals and discard the vocals. Is there a way to break it down and just discard the vocals and keep the instrumentals?

    From a professionally recorded stereo recording (that's not what you originally said) you can possibly reduce the vocals
    http://www.thehangtime.com/gb/gbfaq2.html#removevocals
    A better option would be to find a MIDI file of the song you want.

  • How can you find out what time you were on a website on on your iPod?

    How can you find out what time and day you were on a certain website on your iPod?

    You can find the day in Safari's History, but not the time.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
     In Memory of Steve Jobs 

  • How can you find out if another VI running on the same computer and how can you find out the name of that VI?

    Suppose that several VIs running simultaneously on the same computer. How can I find out the names of the running VIs, from another VI?
    If the already running VIs are clones of the same basic VI, open and run with the option "Prepare to call and forget", how can I find out the names and index of each clone? 

    I had an application where I spawned (= ran with Start Asynchronous Call) multiple (reentrant) copies of VIs, and would occasionally "lose control" of them.  I needed a way to find all VIs that were running "Top Level" and stop them (so I didn't have to log off from Windows).
    I used the Application Property "All VIs in Memory" to get an array of (wait for it ...) All VIs in Memory.  I took each name, opened a VI reference to it (simply wire the name string in, as the VI is, by definition, "in memory"), looked at its VI Execution State, and if it was Run Top Level, Invoked the FP.Close and Abort VI Methods.  [To prevent the VI that did all this from "committing Suicide", I compared the name string with the current Call Chain, and did nothing if there was a match].
    I think you could adopt this idea to do what you need.
    BS

  • How do you find out if the transmitter and/or receiver leaves the session ?

    So , how do you find out if the transmitter and/or a receiver leaves the session , is there an event when this happens ?

    1. There is no list available from your end.
    2. You can't actually check. If you suspect a device has been, deauthorize it twice and then authorize it.
    (89509)

  • When your scratching your itunes gift card code and you scratch off the last two how do you find out what they were

    when your scratching your itunes gift card code and you scratch off the last two how do you find out what they were

    Invalid, inactive, or illegible codes
    http://support.apple.com/kb/TS1292

  • How do you find out how many views and downloads a podcast has had?

    How do you find out how many views and downloads a podcast has had?

    Your question may be better placed in the "Producing Podcasts" forum instead of here in iTunes for Windows.
    I assume though (I don't produce Podcasts), that the host server (where the Podcast is downloaded from) has the option of providing that information to the Podcast's producers.
    Two points though;
    That information is likely to only be available to the producers of that Podcast, not to listeners (or competitors)
    It's almost certainly an add-on service, that needs to be paid for, in addition to the hosting service.
    If it's your Podcast, check with the host service that you use.

  • How do you find out the contacts that were updated via Facebook and twitter in the settings without having to figure it out manually?

    How do you find out the contacts that were updated via Facebook and twitter in the settings without having to figure it out manually?

    There is no such list of what is downloaded to each phone except in the backup. So if you have a recent backup of each phone you should be able to find an app that reads the backup files and would tell you what list is saved of the content on each phone.

  • How do I find out which application is stealing focus?

    I'm having problems with my Macbook Pro in which my active window keeps deselecting every 5-10 seconds or so, which is making even typing this question extremely difficult.
    I have figured out from searching the web that it is because of an application stealing focus. However, in all the boards that say how to fix this problem, none of them actually tell you how to identify which application is the one stealing focus.
    The most information I could find was to go to Applications > Utilities > Activity Monitor
    and to look for which application is stealing the focus, but it doesn't say WHERE to look.
    Do I look at CPU? Number of threads? Real memory? What?
    Here are my specs:
    - Mac OS X version 10.6.8
    - Processor: 2.3 GHz Intel Core i5
    - Memory: 4 GB 1333 MHz DDR3
    (Let me know if you need any additional info about the system.)
    How do I figure out which application is the one stealing focus? (If you could write it in painfully simple instructions, that would be fantastic).
    Thank-you in advance to any helpful answers!
    -Carly

    First, quit all applications, close all windows and reboot the Mac. Hold down the Shift key prior to the startup chime until it finishes starting. This is called a Safe Boot and causes the system to load only its components, no third party stuff and do other housekeeping tasks. Will take AWHILE, be patient. Run ONE Apple app at a time and see if the issue persists. If it does not, then you will have determined the system is OK and the issue is caused by a third party app. Now reboot normally and see if the issue reasserts itself.  Try this and holler back.
    Note: running Safe Boot in day-to-day use is unadvisable cause many apps require the use of their extensions and won't work correctly, if at all.

Maybe you are looking for