LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-25-2014, 09:06 PM   #1
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
Shell scripts to migrate user settings and profiles from Windows to Linux


Do any of you IT wizards who deal with both Windows and Linux have any shell scripts handy to migrate user profiles and settings from Windows to Linux?

Mostly this would cover cross-platform apps. I am thinking this is basically copy the Windows setting directory to the equivalent "hidden" directory in the user's /home.

For example:

Firefox
Thunderbird
Chrome/Chromium
LibreOffice/OpenOffice
Pidgin
GIMP
Inkscape
Skype
Adobe Reader
VLC
SMPlayer
Miro
Dropbox
KeePass
Audacity
Hulu player

Downloads->/home/Downloads
My Documents->/home/Documents
My Music->/home/Music
My Pictures->/home/Pictures
My Scans->?
My Save Stuff->?
My Videos->/home/Videos
etc.

Thanks again.

Last edited by Woodsman; 04-25-2014 at 09:07 PM.
 
Old 04-26-2014, 01:24 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,548

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
As for Firefox or Chrome, you can use their sync feature to copy preferences to another machines
 
1 members found this post helpful.
Old 04-26-2014, 09:40 AM   #3
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,169
Blog Entries: 4

Rep: Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760
Some Windows 'shell' environment variables that may help:
Code:
%APPDATA%
%USERPROFILE%
If you type "set" in cmd and start poking around, you'll see these. Some overlap the others.
But that should get you started.

My output for comparison:
Code:
C:\Users\Administrator>dir %appdata% %USERPROFILE% /b
Adobe
Download Manager
Dropbox
Duplicati
FileZilla
HeidiSQL
Macromedia
Mozilla
MySQL
Spark
VMware
webex
winscp.rnd
.csp_ovftool_settings.js
.S_O_L rc
Contacts
Desktop
Documents
Downloads
Dropbox
Favorites
g2mdlhlpx.exe
Links
Music
Pictures
Saved Games
Searches
Videos

Last edited by Habitual; 04-26-2014 at 09:41 AM.
 
Old 05-29-2014, 12:33 AM   #4
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
I was going to start a new thread but might as well use this thread.

I am looking for a method to migrate MRU lists from MS Office apps to LibreOffice apps. Ideally, something that is automated rather than manual.

Looks like MS Office apps store that information in the registry and LO apps store that information in ~/.config/libreoffice/4/user/registrymodifications.xcu.

Any ideas to move the data from one to the other?

Thanks.
 
Old 05-29-2014, 08:58 AM   #5
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,169
Blog Entries: 4

Rep: Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760
Quote:
Originally Posted by Woodsman View Post
I was going to start a new thread but might as well use this thread.

I am looking for a method to migrate MRU lists from MS Office apps to LibreOffice apps. Ideally, something that is automated rather than manual.

Looks like MS Office apps store that information in the registry and LO apps store that information in ~/.config/libreoffice/4/user/registrymodifications.xcu.

Any ideas to move the data from one to the other?

Thanks.
No clue about this one.
Registry data, I believe it binary in nature but it can be exported to .txt

Some locations seem to be recorded here...

Other than exporting those to a .txt file and running a grep over them to get them into registrymodifications.xcu in the proper format, I don't know of any 'automated' way to accomplish that.

Sorry, wish I had more.
 
Old 05-29-2014, 12:51 PM   #6
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
Thanks for the link.

Next to find a good linux based Windows shortcut (lnk) parser. For example, system MRU lists are Windows lnk shortcuts.

Edit: Looks like the strings command will do the trick:

openlnk

Now to figure out which lnk files are worth migrating to a Linux system and how to insert the target information into recently-used.xbel.

Last edited by Woodsman; 05-29-2014 at 02:19 PM.
 
  


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
Shell scripts in Windows Cygwin Micro420 Programming 14 10-17-2009 11:25 AM
Samba 2.2.8a: How to migrate user profiles from a Broken domain to a new one ferrantepunto Linux - Software 0 06-11-2004 04:13 AM
windows user wanting to migrate to linux enhancedcrash Linux - Newbie 8 10-19-2003 03:37 PM
writing Linux shell scripts in Windows NightWolf_NZ Linux - Newbie 3 09-10-2003 09:28 PM
Migrating to another system, would like to keep user settings and profiles.. BxBoy Linux - General 3 07-31-2003 11:29 PM


All times are GMT -5. The time now is 03:58 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