Score:0

How can I replicate a given configuration on different computers?

mv flag

Suppose I have freshly installed the same version of Ubuntu and the same applications on two different computers. And I have updated both installations to the same point in time. I then spent much time configuring everything on one of them to be exactly how I would like it. Is there a small (and readily-identifiable) set of files or folders that I can copy from that to the other machine, and then use to replace their counterparts on that machine - such that the first machine's configuration is replicated with minimal additional effort?

I acknowledge that where files differ between computers on account of hardware differences they might by necessity remain different. But in principle I would expect that many settings and preferences might be replicated in this way.

If this is possible can anyone tell me files and folders I would need to copy? I'm not looking for answers based on disk-cloning.

24601 avatar
in flag
Does this answer your question? [What are the options for managing multiple Ubuntu installations together and keeping them in same state](https://askubuntu.com/questions/200824/what-are-the-options-for-managing-multiple-ubuntu-installations-together-and-kee)
Score:0
cn flag

Is there a small (and readily-identifiable) set of files or folders that I can copy from that to the other machine, and then use to replace their counterparts on that machine - such that the first machine's configuration is replicated with minimal additional effort?

If these are in the same network you can use scp to do a copy over the network. Otherwise the easiest method is to use an on-line service like g-drive on each machine.

Another option but a little difficult is to use git. That way you can store all changes and commit it to the other machine with a method to restore the old situation/

But a warning: this generally ONLY works if the machine are copies of eachother. Version differences (like mysql 5.6 and mysql 8) can mess this up.

I acknowledge that where files differ between computers on account of hardware differences they might by necessity remain different. But in principle I would expect that many settings and preferences might be replicated in this way.

There is a very nice tool called diff. Put 2 files (or 2 directories) behind it and it will show a list of differences from both files (so what file1 lacks from file2, what file2 lacks from file1 and what differs on lines that both have).

The way we do it: do a diff, copy diff result to a text file and manually add the differences. Yes, can be a bit of work but you will learn and remember what you did. Copy-ing a file over another file will have you waste time finding that 1 setting that should not have been copied.

account of hardware differences they might by necessity remain different.

Not for normal software. This would apply to drivers and the display settings. But those need to be left as us on each machine if the hardware is different.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.