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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-20-2011, 05:03 AM
|
#1
|
Member
Registered: Jan 2010
Posts: 418
Rep:
|
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!
|
|
|
11-20-2011, 05:12 AM
|
#2
|
Member
Registered: Jan 2010
Posts: 418
Original Poster
Rep:
|
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?
|
|
|
11-20-2011, 08:48 AM
|
#3
|
Member
Registered: Jan 2010
Posts: 418
Original Poster
Rep:
|
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!
|
|
|
11-20-2011, 09:54 AM
|
#4
|
Member
Registered: Jan 2010
Posts: 418
Original Poster
Rep:
|
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
|
|
|
11-21-2011, 05:02 AM
|
#5
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Rep:
|
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.
|
|
|
11-21-2011, 05:09 AM
|
#6
|
Member
Registered: Jan 2010
Posts: 418
Original Poster
Rep:
|
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
|
|
|
11-21-2011, 05:26 AM
|
#7
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Rep:
|
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.
|
|
|
11-25-2011, 08:49 AM
|
#8
|
Member
Registered: Jan 2010
Posts: 418
Original Poster
Rep:
|
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 08:58 AM.
Reason: add grep options
|
|
1 members found this post helpful.
|
11-25-2011, 11:19 AM
|
#9
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Rep:
|
Thanks for sharing that script. I'm sure somebody will find it useful.
|
|
|
All times are GMT -5. The time now is 02:25 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|