Linux to Mac
Moving Data from Linux to the Mac
- 2007.12.17 - Tip Jar
Popularity: ![]()
![]()
![]()
![]()
Making the move to a new operating system is a daunting task. You have to learn a new graphical interface, new programs, and also have to find a way to preserve your precious data. Having made a successful transition from Linux to Mac, here are a few tips for those considering the jump.
Staying Neutral in the Format Wars
Over the last ten years, I've gone from being a Windows desktop user to a Linux desktop user to a Mac desktop user. My core data has traveled with me every step of the way. This includes text files, images, office documents, PDFs, Palm data files, audio, video, Java packages, and more. Since it's impossible to know the future with certainty, I strive to keep my data in neutral, cross-platform formats.
In some cases, program or platform-specific file formats are unavoidable. If you work at it, you can keep important data in a format that can easily be moved from one system to another. My first suggestion is to get your data into portable, open formats.
Nothing is more portable than plain text. Plain text is not sexy or flashy, but it is durable. Standardized image formats (GIF, JPEG, PNG) are also completely portable. Cross platform application file formats, like Gimp, are also portable. If you are Palm PDA user, you'll find that Palm files and synchronization work flawlessly on the Mac.
Though complaints were lodged against Leopard, since it shipped without the latest version of Java, I've had no problems running Java desktop applications. In fact, OS X has a program (installed with the development tools) that lets you bundle a Java app to make it look like a native Mac app.
Audio and video formats are discussed in a more detail below.
File Names and Line Endings
With current versions of OS X, Linux, and Windows, long file names are portable and not much of a concern. Windows doesn't honor capitalization, but when moving from Linux to Mac, that is not a problem. I delved into the nuances of file names elsewhere.
Both Linux and OS X use a single carriage return character (ASCII code 13) to mark the end of a line in a text file. Windows uses the two characters, carriage return and line feed (ASCII code 10). Some text editors (including nano) can automatically convert text line endings, and there are utility programs that convert both ways (unix2dos and dos2unix). Both utilities are available through MacPorts.
Audio Files, iTunes, and the iPod
For compressed audio files, I recommend MP3 format. If you are concerned about the licensing issues surrounding MP3, Ogg Vorbis is available. While Ogg Vorbis is patent free, cost free, and DRM free, it currently doesn't work on the iPod. There is a plugin for iTunes to play Ogg Vorbis files, but if you want to take advantage of iTunes/iPod synergy, stick to MP3. iTunes also has the native ability to rip CDs directly to MP3. MP3s are fully licensed on OS X, so there are no intellectual property issues. Down the road, if you want to move to another OS, MP3s will be still be the easiest to transfer.
One more tip concerning iTunes: When you import music files into the
iTunes library, it does more than index the file, it physically copies
it to
/Users/username/Music/iTunes/iTunes
Music/artist/. So, after you
import music files into iTunes, there are two copies of each audio file
imported into iTunes. You can choose to maintain separate copies or let
iTunes manage your files.
Video Files
I don't have a large video collection, but I have had good luck playing MPEG files on all platforms. Like MP3, it seems to be ubiquitous. OS X favors QuickTime files (.mov) but comes with many other codecs.
Finder Droppings
The Finder is the default file manager in OS X. Coming from Linux, I spent a lot of quality time on the command line. I still do on OS X and was somewhat dismayed to find hidden files in every directory touched by the Finder.
In every directory browsed by the Finder, it creates a .DS_Store file (Desktop Services Store). The .DS_Store contains the Finder viewing preferences for that directory. At the root of every Volume that the Finder touches, it creates a .Trashes directory to store deleted files. There is no way to turn of .DS_Store droppings on locally connected drives, but you can change a Finder default to prevent it from creating .DS_Store files on network drives. Run this command in the Terminal to turn off .DS_Store creation on network drives:
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
It's All About the Bits
Your data is arguably more important than the platform or operating
system you use. It is certainly more difficult to replace. Aiming for
platform neutral data formats allows you maximum flexibility moving
from Linux to Mac. It also makes it easier for you to share your data
with people who use different systems.
Join us on Facebook. Follow us on Twitter.
Keith Winston is a recent Mac convert after five years of Linux on the desktop. He also writes for Linux.com and created CommandLineMac to focus on the Unix-y power of the Mac. If you find Keith's articles helpful, please consider making a donation to his tip jar.
Recent Linux to Mac Columns
- Apple's launchd Is Anti-Unix, 2010.07.13. Unix prefers programs that do one thing very well, but Apple's launchd takes the opposite approach.
- Automount OS X Home Directories Using OpenLDAP and Linux, 2009.09.28. It's possible to get an OS X Mac to automatically mount a Linux server using OpenLDAP. The tricky part is finding all the steps needed to make it work.
- Introduction to Autofs in Mac OS X, 2009.07.01. "Autofs is often used in enterprise environments to set up network-based home directories and other network mounts for users at login."
- More in the Linux to Mac index.
Links for the Day
- Mac of the Day: Mac IIfx, introduced 1990.03.19. This 'wicked fast' 40 MHz Mac trumped the 33 MHz DOS world.
- February 14 in LEM history: 98: A perfect compact Mac - 00: Extended computer warranties worth the cost? - Making your PC work with your Mac - 01: Customize Microsoft Word - 02: Quadra revives a passion for computing - 03: Real world performance - DIY Pismo screen replacement - Best Mac for writing - 03: Fastest browser on the Mac - 06: 15" MacBook Pro - Impressions of a newly acquired Lisa - Finding and using free WiFi - Apple should liberate OS 9 - 07: New Mac mini cheaper than upgrading a Power Mac - 08: Falling in love with OS X
- Support Low End Mac
Recent Content on Low End Mac
- PowerBook 165c: 19 Years of Color to Go, Chris Carson, Building Bridges, 2012.02.14. Until 1993, all of Apple's notebook computers had black and white displays. The 165c gave us a color PowerBook for the first time.
- Mac and iOS Browsers: Options Galore, Freeware Forum, 2012.02.10. Safari is adequate on Mac and great on iOS, but the range of good alternatives is stunning. LEM writers share their favorites.
- White MacBook Goes End-of-Life, Logitech Touch Mouse Supports Gestures, Firmware Updates, and More, The 'Book Review, 2012.02.10. Also MacBook Air better than any Ultrabook, docks for MacBook Pro models, Intel offers improved SSDs, and more.
- Fix Home Button Delay, Tablet the Ultimate Mobile PC, iPad Notebook a Possibility, and More, iOS News Review, 2012.02.10. Also using your iPad at work, two photo editors, a new iPad text editor, Macally's magnetic iPad 2 stand, and more.
- Apple's Support Lead Shipping, Smartphones Outsell PCs, OS X Ported to ARM by Intern, and More, Mac News Review, 2012.02.10. Also the power of Tex-Edit Plus, Google and Twitter are already censoring the Web, Snow Leopard Security Update, and more.
- LogMeIn: Remote Screen Sharing for the Rest of Us, Alan Zisman, Zis Mac, 2012.02.09. Configuring the Mac's built-in screen sharing to work over the Internet can be difficult or impossible. LogMeIn makes it easy.
- More links in our archive.
Recent Deals
- Best 17" MacBook Pro Deals
- Best iPod classic Deals
- Best eMac Deals
- Best MacBook Air Deals
- Best iBook G4 Deals
- Best iPad Deals
- Best Classic Mac OS Deals
- Best Apple TV Deals
- More deals in our archive.
About LEM Support Usage Privacy Contact
Follow
Low End Mac on Twitter
Join Low End Mac
on Facebook
Low End Mac Reader Specials
TypeStyler 11 is now in the Mac App Store!! -- Special Introductory Price of $59.95!! -- To Buy From The Mac App Store Click Here Now!! Or buy direct
from Strider Software.
Don't install Parallels to play poker online! Poker Mac will show you how to download and install a native Mac poker and Mac Casino applications in minutes.
Favorite Sites
MacSurfer
Cult of Mac
Shrine of Apple
MacInTouch
MyAppleMenu
InfoMac
The Mac Observer
Accelerate Your Mac
RetroMacCast
PB Central
MacWindows
The Vintage Mac Museum
DealMac
Deal Brothers
Mac2Sell
Mac Driver Museum
JAG's House
System 6 Heaven
System 7 Today
the pickle's Low-End Mac FAQ
Affiliates
Amazon.com
The Apple Store
The iTunes Store
PC Connection Express
GainSaver
Parallels Desktop for Mac
eBay

