LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-05-2013, 06:26 PM   #1
adampski
Member
 
Registered: Dec 2012
Posts: 37

Rep: Reputation: Disabled
I want this ubuntu set up on my pc!


I've trialed Ubuntu 12.04 on my laptop now for a week, and I love it. I love it so much, I want it on my main computer. However, I don't want to start ALL OVER AGAIN with installation, settings and preferences inc files. Is there any way I can image the whole OS and ensure it's efficiency for running on my PC successfully?
 
Old 01-05-2013, 07:29 PM   #2
codergeek
Member
 
Registered: Dec 2012
Posts: 52

Rep: Reputation: 7
You need something like clonezilla
http://www.clonezilla.org/

Youtube has tutorials on using clonezilla

Last edited by codergeek; 01-05-2013 at 07:30 PM.
 
Old 01-05-2013, 08:46 PM   #3
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,914

Rep: Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493
Another method is this:

Install Ubuntu to your desktop, then copy your home directory from your laptop, including the hidden configuration files (they are ones whose names start with a period, such as .opera) over to your home directory on your desktop. They will bring your individualized settings along with them. (Actually, you really only need the hidden files which you have not left at default, but it would likely be easier to grab all of them.)

If they include settings for software you have not installed to the desktop, the settings will be there waiting from when you do install that software. For example, I recently installed claws-mail to one of my laptops after about six months of using something else. It found the old ~/.claws-mail directory and mail store and was ready to go with all settings in tact.

If you have configured something in your /etc directory, such as your /etc/samba/smb.conf file or an rc.firewall script, you can grab them individually.
 
1 members found this post helpful.
Old 01-06-2013, 02:36 PM   #4
adampski
Member
 
Registered: Dec 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
So if I ran..

Code:
cp /home/* /media/<disk drive>
That will include all the hidden directories and files in the clipboard too? Or is there an option I have to include to copy hidden files & directories?
 
Old 01-06-2013, 07:18 PM   #5
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,914

Rep: Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493
See this thread for a nice discussion of this question: http://www.linuxquestions.org/questi...nother-387107/

If I recall correctly, cp * will not capture hidden files.

I would suggest this:

Code:
cp -r ~/home/[username]/.* [path-to-target] <----------note the . before the *
cp -r ~/home/[username]/* [path-to-target]
The "r" argument means "recursive" and will copy directories and their contents.

Or you could use your file manager and drag-and-drop.
 
Old 01-07-2013, 06:44 AM   #6
goumba
Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Debian Wheezy (7.0), Jessie (future 8) and Sid (unstable)
Posts: 551
Blog Entries: 3

Rep: Reputation: 66
Another suggestion without having to resort to multiple copy commands would be using tar (the below commands suing sudo).

Code:
cd /home
tar cf [path-to-target/]username.tar [username]
Do not include the trailing slash or hidden (dot) files will be ignored.

Then you can extract your home directory on the other pc using

Code:
cd /home
tar xf [path/]username.tar

Last edited by goumba; 01-07-2013 at 06:50 AM. Reason: fixed spelling
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to set up Nussus on Ubuntu 10.04? judoka Linux - Networking 1 07-01-2010 01:28 AM
[SOLVED] how to set up Nussus on Ubuntu 10.04? judoka Linux - Newbie 1 06-30-2010 11:19 PM
Set proxy on Ubuntu targettl Linux - Newbie 5 11-15-2009 05:58 PM
Ubuntu Enterprise / X set-up help? umuntuzw Linux - Newbie 1 06-30-2009 10:02 PM
How to set up cd - on ubuntu msbaseball210 Linux - Newbie 2 05-04-2008 03:51 PM


All times are GMT -5. The time now is 07:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration