Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can this kind of sync be feasible? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
fpemud
Apprentice
Apprentice


Joined: 15 Feb 2012
Posts: 166

PostPosted: Mon Jan 07, 2013 4:02 am    Post subject: Can this kind of sync be feasible? [SOLVED] Reply with quote

My idea is to move the whole desktop between my workstation and notebook.
It's like suspend the workstation and restore it on the notebook and vise versa.
Perhaps this idea is a bit crazy, but I think it's ultimately useful.

Example:

on my workstation, there're:
1. a gimp window editing /home/fpemud/a.png, unsaved.
2. a evince window viewing a.pdf and b.pdf
3. a totem window playing http://abc/a.avi
4. on workspace 2, I have a doom3 window, which is paused.

assume the two PC has exactly the same arch,kernel,lib,app,cfg

operation step:
1. I right-click an sync-app-icon on the tray, selects "sync desktop to fpemud-notebook".
2. A Yes/No dialog appears:
Valid sync application:
1. gimp
2. evince
3. totem
Invalid sync application:
1. doom3: no corresponding application on target system
3. I click "yes"
4. Then all the applications except doom3 on fpemud-workstation close
5. on fpemud-notebook opens gimp, evince, totem window and they appears just the same as on workstation except the window size (notebook has a smaller screen resolution)

I think virtual machine live migration can get this effect, but I think it it more like a process-and-context-live-migration.
I wonder, for a program fully based on like glib, is this kind of effect feasible?


Last edited by fpemud on Mon Jan 07, 2013 9:12 am; edited 1 time in total
Back to top
View user's profile Send private message
CrankyPenguin
Apprentice
Apprentice


Joined: 19 Jun 2003
Posts: 252

PostPosted: Mon Jan 07, 2013 4:49 am    Post subject: Reply with quote

Doable? Yes, this is done with virtualization all the time but requires that either you move the virtual state between the systems or that you have each machine be an exact clone. The problem is that the unsaved images and the processes need to be moved somehow and that is really what virtualization is for.

As a first step perhaps you could look into putting your home directory into svn or on an external disk. I have read of some people doing that. It does not allow you to move unsaved files or open processes (as you note) but it would allow you to keep the saved files in sync.
_________________
Linux, the OS for the obsessive-compulsive speed freak in all of us.
Back to top
View user's profile Send private message
salahx
Guru
Guru


Joined: 12 Mar 2005
Posts: 395

PostPosted: Mon Jan 07, 2013 5:55 am    Post subject: Reply with quote

What you;'re looking for is something called "checkpoint and restatrt" (c/r for short). Some supports exists in Linux, it is being merged in little pieces (like the kcmp syscall, /proc enhancements, a new PTCRL_SET_MM prctl, the F_GETOWNER_UIDS fcntl) both a part of better container support and for its own sake.

The pieces are coming together, there is a CRIU project (a subproject of OpenVZ) if you want to try it out (for best results, use at least Linux 3.5, and enable CONFIG_CHECKPOINT_RESTORE in your kernel config)
Back to top
View user's profile Send private message
fpemud
Apprentice
Apprentice


Joined: 15 Feb 2012
Posts: 166

PostPosted: Mon Jan 07, 2013 9:05 am    Post subject: Reply with quote

yeah, it's what i after. i'll go and study it.

i don't expect this idea can be fully realized currently. it feels really good to know there're projects around .

thanks very much.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum