LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX
User Name
Password
Other *NIX This forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.

Notices


Reply
  Search this Thread
Old 11-20-2011, 04:03 AM   #1
16pide
Member
 
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
Question how to migrate my gnotes data to a macbook (OS X 10.7)


I just got a MacBook at work, and so I'm migrating from my thinkpad to it these days.
thinkpad was running ubuntu 11.04 with windows and redhat virtual machines in it.
MacBook runs OS X 10.7 with Windows and Linux VMs in it.

In Ubuntu I was using gnotes to store all my personal knowledge base, and now I want to have that running natively in OS X.
I need help on how to do that.
I have about 600 notes accumulated over time!

Should I find a way to convert to Apple Stickies?

Should I install tomboy on the Mac? and can I convert my gnotes into tomboy?

Will there be problems with accents? (some notes have French or Spanish accents).

Please help me decide the best strategy, my notes are important to my work!
 
Old 11-20-2011, 04:12 AM   #2
16pide
Member
 
Registered: Jan 2010
Posts: 418

Original Poster
Rep: Reputation: 83
I forgot to say, the ubuntu thinkpad is going away, I'll be running ubuntu and redhat VMs, but they won't be my main desktop.
So I do need to migrate the data to something OS X based. If I can keep the backward compatibility, that would be great though (I mean I'd like to keep the possibility to go back to a linux based laptop with the new notes I'll accumulate in the next few years.

So an important question is: is Apple's stickies a dead-end proprietary thing?
 
Old 11-20-2011, 07:48 AM   #3
16pide
Member
 
Registered: Jan 2010
Posts: 418

Original Poster
Rep: Reputation: 83
so I went ahead and installed tomboy 1.6 on my macbook.
guess what, there's a major bug on it (crashes on startup)
https://bugzilla.gnome.org/show_bug.cgi?id=656680

any advice about my post would be welcome!
 
Old 11-20-2011, 08:54 AM   #4
16pide
Member
 
Registered: Jan 2010
Posts: 418

Original Poster
Rep: Reputation: 83
so I uninstalled mono 2.10 and installed 2.8
now tomboy works.

Any comments anyone?
I'd still like to hear from others feedback from my initial post above
 
Old 11-21-2011, 04:02 AM   #5
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
I would say that unless there is a ready-made converter available, it would be very difficult to just port the data over. You might have to manually recreate the records (it would be a painful process).

Maybe you could ask the gnote developer or in their mailing lists whether it's possible to compile and use the app on Mac OS X.
 
Old 11-21-2011, 04:09 AM   #6
16pide
Member
 
Registered: Jan 2010
Posts: 418

Original Poster
Rep: Reputation: 83
thanks vharishankar.
fyi, tomboy 1.6 using mono 2.8 on OS X 10.7 is totally unusable, can't even resize the window without a crash, etc ...
I'm going for a fedora virtual machine with gnotes in it for now, and will monitor the web for a correction to https://bugzilla.gnome.org/show_bug.cgi?id=656680
 
Old 11-21-2011, 04:26 AM   #7
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
If it is possible to export the whole thing to a text file, it might be more portable and give you more options to archive the past data. I've never used gnote or tomboy before, so I am not sure if that is possible. But if you are reliant on the wiki-style links and other formatting then it might not be the ideal solution.
 
Old 11-25-2011, 07:49 AM   #8
16pide
Member
 
Registered: Jan 2010
Posts: 418

Original Poster
Rep: Reputation: 83
I tried what vharishankar suggests, and wrote a script to convert all my notes to .txt files.
Now i can use
Code:
grep -i something -l *.txt
to search through them, etc ...
First, I installed HTML-XML-utils to get the hxextract command.
Here is my script:
Code:
#!/bin/bash
for file in *.note; do
{
newfile=`hxextract title $file| sed -e :a -e 's/<[^>]*>//g;'|sed -e "s/\//--/g";echo ".txt"`
hxextract note-content $file| sed -e :a -e 's/<[^>]*>//g;' > "$newfile"
}
done
I'm quite sure it's not general purpose, but it worked for me.

Last edited by 16pide; 11-25-2011 at 07:58 AM. Reason: add grep options
 
1 members found this post helpful.
Old 11-25-2011, 10:19 AM   #9
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
Thanks for sharing that script. I'm sure somebody will find it useful.
 
  


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
Backup Solution for Sles environment - need scripts to migrate data hannesve Linux - Newbie 1 07-09-2008 07:54 AM
Linux on a macbook/macbook pro... any experiences/problems, or is it even necessary? enigma_0Z Linux - Laptop and Netbook 13 09-14-2007 10:29 PM
LXer: Howto: Migrate user accounts and data from old Linux distribution to fresh installation LXer Syndicated Linux News 0 01-31-2007 01:54 AM
Need to migrate data from old HDD Jakeh2k1 Linux - Hardware 9 08-28-2005 03:23 PM
Migrate data from RHC1 to RHFC1.92 install jmanjohn61 Linux - Distributions 0 05-15-2004 07:21 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX

All times are GMT -5. The time now is 03:59 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration