background preloader

Mac OSX

Facebook Twitter

How To Uninstalling Xcode in Snow Leopard - Snow Leopard Mac OS X. Getting Started/Build/Mac OS X/MacPorts. Introduction The process described here is one of many ways to set up a KDE development environment on Mac OS X. It sets up a MacPorts installation to provide the required dependencies and uses this to then build a KDE kf5 development environment. This approach has the big advantage of using MacPorts to build, install and keep updated the base system and libraries required with minimal effort and without touching the base OSX system install. It also gives you the choice of installing and running the latest stable KDE SC for everyday use while still developing on the unstable trunk. The main disadvantage is compiling all the MacPort dependencies takes longer than binary installs, but the ease of maintenance is worth it.

OS X for Linux developers One point to remember is that OS X is a customised version of BSD, so while it feels fairly familiar to a Linux developer, there are the occasional banana skins to slip you up. Install XCode and X11. MacPorts. Install MacPorts. Using MacPorts. port list #! Open in Terminal (4 Ways) Fixing the Backspace key on Mac OS X's Terminal.app. Comments: Through trial-and-error, this seems to be the best way to unbreak the Backspace key on a Mac when using the native Terminal.app to SSH to a (Debian) Linux machine, and then running Emacs inside a Screen session.

Open Terminal -> Preferences Declare terminal type ($TERM) as: rxvt Open Terminal -> Window Settings Choose Keyboard panel Uncheck "Delete key sends backspace" (i.e., this setting is "off") Click button "Use Settings as Defaults" This way, you shouldn't have to mess with stty; you'll still get all the features of xterm-color (ANSI color text, screen save/restore, etc.); and the Backspace key will work normally, even in this situation: Terminal.app -> SSH (to Debian box) -> Screen -> Emacs.

Identifying constant disk writes on Mac OS X | LocalLost. A couple of month ago, I noticed that I was having a constant stream of disk write of about 1MB/s on my MacBook (as seen in Activity Monitor.app). That would eventually drain my battery faster when running unplugged. First thing to do was to identify the culprit, the process, that generate those writes. As I'm not familiar with the BSD sub-system internals, I Googled and found a list of DTrace one-liners that proved to be handy: - The first one: # dtrace -n 'io:::start { printf("%d %s %d",pid,execname,args[0]->b_bcount); }' It shows you the names of the process doing I/O operations. From the result I immediatly spotted a process from Postgresql that was generating a fair amount of I/O while no queries/vacuum where running.

Now, I know the source might be in Postgresql, but what was happenning? I needed to know what files where opened, so this DTrace gave me the next answer : track_activities = off track_counts = off Thank you DTrace! Guide. Free and open source software is highly modular, and MacPorts ports often require that other ports be installed beforehand; these prerequisites for a given port are called a port's “dependencies”. The keywords used when specifying dependencies in a Portfile are related to port install phases, and they refer to what are called library, build, fetch, extract and run dependencies. Though all of them install dependencies before a given port is installed, specifying dependencies with the correct keyword is important for proper port upgrade and uninstall behavior, or when running targets other than install. For example, you may not uninstall a port that is a library dependency for another installed port, though you may remove one that is a build dependency.

Likewise, if you run the fetch target for a port, only the fetch dependencies will be installed first, so they should be all that is needed for that target. There are two types of dependencies: port dependencies and file dependencies. MacPorts Guide. Fink vs. MacPorts - Aidan Findlater. Dissecting Time Machine & Replacing It With rsync | Mr. Backup Blog. Written by W. Curtis Preston Tuesday, 29 December 2009 23:41 A little while ago I wrote a blog entry about how I was disappointed in Time Machine and how I was trying to figure out something better. I believe I've found my solution, and even have a working shell script that does the job for me. Those of you that don't have Macs really want to pay attention as well, as what I ended up doing works for anything you can run rsync on. First let me say that I think Time Machine is awesome and puts any other native backup utility that I've seen to shame. But, as I said in my previous post, Time Machine starts to lose its coolness when you bring in other machines or buy a Time Capsule.

Time Machine Structure After some unsuccesful attempts, I decided to dig deeper in the format of the Time Machine backup itself. W-Curtis-Preston1s-MacBook-Pro:W. That's when it hit me. So what's up with the SparseBundle files? Why not use rsnapshot, flyback, timevault, rdiff-backup, etc? Prerequisites Conclusion. Problem with launching x11 applications. Let me try to explain my problem as best as I can. Please bear with me and let me know what other information I need to provide to troubleshoot this. Machine description: Macbook 13.3", Mac OSX 10.5.8, Darwin Kernel Version 9.8.0 Problem description: It all started when darwinport failed to install kdegames4 (and my efforts thereafter to get that installed!).

I can no longer launch any x11 applications --e.g., xterm, xpdf, xdvi, inkscape, molden, gnuplot with x11. After the problem had started, if I tried to start any of these, the X icon would begin bouncing in the dock and go away just to come back a few seconds later --- this would keep going on and on --- even if I tried to kill them by finding them in the terminal.

Whenever I moused-over the X icon on the dock it would just freeze everything --- and I had to kill the dock to get my computer responding again (luckily I could use spotlight and terminal to get this done). Before this problem, everything used to work flawlessly. Code: Middle Mouse Button in X11?? - Page 2. Tuning Mac OS X Performance. This FAQ provides recommendations for optimizing Mac® OS X performance. Additionally, it provides advice and links to advice for troubleshooting certain Mac OS X performance problems. Comprehensive advice on this topic can be found in the "Performance" chapter of our book Troubleshooting Mac OS X. Optimizing Mac OS X performance RAM, RAM, and more RAM Mac OS X loves RAM. Maintain ample free space on your startup disk Mac OS X makes extensive use of Virtual Memory (VM), which requires free disk space on your startup disk, aka your boot volume.

See our "Problems from insufficient RAM and free hard disk space" FAQ to determine if you have sufficient RAM and free disk space to get the best performance from Mac OS X. Turn off the eye candy While I imagine everyone is impressed the first time they see a window minimized to the Dock with the Genie effect, this entertainment has a performance cost. Make the Dock less entertaining Open System Preferences > Dock. Disable or remove unnecessary fonts. The Repair functions of Disk Utility: what's it all about? This FAQ provides a brief overview of the Repair Disk and Repair Disk Permissions functions of Disk Utility in Mac® OS X. It is a subset of the more comprehensive information on these topics from our book, Troubleshooting Mac OS X. The following topics are addressed: The Repair functions of Disk Utility Disk Utility, located in the Macintosh HD > Applications > Utilities folder, can perform two types of repairs via the following choices in the First Aid tab: The Repair Disk function Repair Disk verifies and, if problems are found, corrects issues with the directory on a disk or volume.

The directory is analogous to a combined address book and road map to where data is stored on a disk or volume. Keep in mind the following key points about Repair Disk: You cannot use Repair Disk to repair your Mac OS X startup disk — for example, Macintosh HD — while your Mac is started up (booted) from such. The Repair Disk Permissions function Why are repairs needed? Repair Disk Run Repair Disk: Related links. Running Mac OS X Maintenance Scripts. Mac® OS X is a UNIX®-based system, built in part on both BSD® and FreeBSD®.

UNIX systems run scheduled maintenance routines — known as maintenance scripts — to clean up a variety of System logs and temporary files. By default, these are executed between 03:15 and 05:30 hours local time, depending on the script. If your Mac is shut down or in sleep mode during these hours, the maintenance scripts will not run. [1] This results in log files that will grow over time, consuming free space on your Mac OS X startup disk. If your Mac is shut down or left in sleep mode overnight, the maintenance scripts should be run manually on a regular basis… unless you plan on devoting a large portion of your hard drive to the files cleaned-up by these routines! This FAQ, derived from our book Troubleshooting Mac OS X, provides: More information about maintaining Mac OS X can be found in our "Maintaining Mac OS X" FAQ.

Manually running the maintenance scripts The easy way The Terminal way sudo periodic daily Notes. Osx - Open terminal here in Mac OS finder. Mac OS X 10.6 Snow Leopard - Booting into 64-bit mode (Snow Leopard) By default in 2009, Snow Leopard boots into a 32-bit kernel, an odd proposition for an OS claiming to be 64-bit. But Apple defaulted to a 32-bit kernel for good reasons— it keeps compatibility high with drivers and specialized software, which lowers hassles for users; it keeps bad press away.

Like bad breath, bad press makes a lasting first impression. Microsoft halitosis (also known as Windows) turned off a lot of users. (I think Microsoft should change the name, it’s a perfect fit!). Performance is still improved over Leopard. Since page was written, over a year has passed— Should you boot into the 64-bit kernel? Tests of photographic applications show that the gains of booting with the 64-bit kernel can be substantial, keeping in mind that a 30% gain via hardware often costs several thousand dollars more. Your 64-bit programs (if any) will run fine on a 32-bit kernel, gaining the benefits of 64-bit-ness.

Does your Mac have 64-bit EFI firmware? Uncheck the “Open in 32 Bit Mode” option. Migrate from evolution email to Mail to Entourage. Mac-How | Uninstall Programs on Mac. Mac OS X: A Guide for Former Linux Users - Panther Edition. Panther Edition Linux is where I came from. Mac OS X is where I am. It's been almost a year since I originally wrote this guide, and Panther brings us Unix fans even more of the Unix tools we love in the standard way we love them. Applications I'm going to attempt to keep track of applications I have installed other than those that come with Panther. Multimedia Ogg Vorbis for QuickTime—Play Ogg Vorbis files in iTunes! Internet Colloquy—A very nice IRC client. Miscellaneous MacTacker—A cool little app to get information on all of the past and present things Apple has released. Finder.app Not a separate download, but I'd like to mention that with the new Finder in Panther, I find it useful to differentiate spatial Finder (Aqua) from browser Finder (Metal).

Panther now comes with Apple's X11.app, based on XFree86 4.3. Useful Console Stuff Want to create an encrypted resizeable disk image to store files in? Just can't get away from that Linux software you miss? Performance Tuning Customizing Bash. Mac OS X System Startup. © Amit Singh. All Rights Reserved. Written in December 2003 This page briefly describes the sequence of events that happen when Mac OS X boots. Some details of the boot process from power-on until the kernel is up and running are covered in Booting Mac OS X and XNU: The Kernel. To recapitulate: Power is turned on.Open Firmware code is executed.Hardware information is collected and hardware is initialized.Something (usually the OS, but also things like the Apple Hardware Test, etc.) is selected to boot. From here on, the startup becomes user-level: mach_init starts /sbin/init, the traditional BSD init process. init determines the runlevel, and runs /etc/rc.boot, which sets up the machine enough to run single-user.

During its execution, rc.boot and the other rc scripts source /etc/rc.common, a shell script containing utility functions, such as CheckForNetwork() (checks if the network is up), GetPID(), purgedir() (deletes directory contents only, not the structure), etc. Mac OS X keyboard shortcuts. To use a keyboard shortcut you press a modifier key with a character key.

For example, pressing the Command key (it has a symbol) and then the "c" key copies whatever is currently selected (text, graphics, and so forth) into the Clipboard. This is also known as the Command-C keyboard shortcut. A modifier key is a part of many keyboard shortcuts. A modifier key alters the way other keystrokes or mouse/trackpad clicks are interpreted by OS X. Here are the modifier key symbols you may see in OS X menus: Startup shortcuts Press the key or key combination until the expected function occurs/appears (for example, hold Option during startup until Startup Manager appears).

Sleep and shut down shortcuts Finder keyboard shortcuts Application and other OS X shortcuts Note: Some applications may not support all of the following application key combinations. *Note: If no text is selected, the extension begins at the insertion point. Universal Access - VoiceOver keyboard commands Full keyboard access. 4 Help: Allowing remote terminal access to your computer. Mac OS Installation Guide for Linux Users - korrekt.org. From korrekt.org As of August 2010, this page is mostly complete. It will be updated as I find more solutions. These are my notes on how to set up a Mac for reaching a productive state. The guide is motivated by Rob Shearer's earlier guide for setting up a Mac but turned out to take a rather different shape.

This guide is written July 2010 when installing a MacBook Pro running Snow Leopard (MAC OS X 10.6). My perspective is that of a Linux user who is used to the UI behaviour and tools found on typical Linux desktops. I also address various questions of data migration from Linux to Mac. If you are new to Mac, you may want to first read this useful guide to get a basic idea of how Mac's window manager and special keys work.

Comments and feedback for this article can be sent to me via email: markus at this domain. Basic system settings Install Mac OS from DVD. Sudo su #to become root passwd #to set your password defaults write com.apple.Finder AppleShowAllFiles YES on the command line. LaTeX. How to block applications from accessing the internet? Exuberant Ctags on OS X 10.5 | Adam Young. Note: It's very easy to install ctags, I wrote this mostly because when I install things to OS X I like to check google on how other people did it to make sure I'm not missing something OS X specific. I couldn't find anyone else that had commented on this so I did. The version of ctags that comes with OS X 10.5 (and probably earlier versions) isn't too great.

I don't know what the default version is or anything because it doesn't accept the --version switch. Here's how to get a real ctags installed on your mac: curl -O tar xzvf ctags-5.7.tar.gz cd ctags-5.7 . /configure make make install This puts it in /usr/local/bin which means it avoids the ctags that comes with OS X. Then you can make sure by opening a NEW terminal window and doing: which tags It should show /usr/local/bin/ctags.

Easily Mount an ISO in Mac OS X. Configuring the built-in Cisco IPSec VPN client in Snow Leopard and iPhone (Mac OS X SIG) Compiling screen from CVS on OSX for vertical split. | :wq – blog. Change the hostname in Mac OS X [osx] « Larry Gordon. 5: Fix a slow Matlab IDE under 10.5.