Showing posts with label Apple. Show all posts
Showing posts with label Apple. Show all posts

Monday, December 29, 2008

More Mac installing...

Spent some of the day setting up the new work Macbook. Firefox 3 instead of Safari. iTerm as an alternative to the Terminal. More importantly. I installed Xcode 3.1.2 from the Apple Developer Connection, gfortran direct from GNU itself, fink 0.9.0 from http://www.finkproject.org/, and then a whole bunch of fink packages installed tetex using FinkCommander.

For now I've decided against installing MacTex, despite it being a more up-to-date Texlive-based tex/latex distrbution than fink's tetex.

It looks like getting scipy installed will take some work (or at least more work than installing it on Fedora, "yum -y install scipy python-matplotlib ipython"), as its not available by default in fink.

Anyway, the most important set of software installation is now over with compilers on the system and access to installable unix tools through fink, so I should be able to continue at a more relaxed pace while starting to do actual work (at the very least, paper writing) on the laptop.

Sunday, December 28, 2008

Progress on setting the Mac up properly...

Enabled a root account:

In versions prior to 10.5 this could be done with NetInfo (part of the Apps/Utilities folder). Now this is done graphically using Directory Manager (not System Preferences/Accounts, as you might have assumed). Selected Edit->Enable Root User and enter a password.

Set up the locate database for the the locate command:

Become root or use sudo to execute the following command:
/usr/libexec/locate.updatedb

Ignore the warning about this being a security risk. Control over which directories to scan should be set in /etc/locate_rc, although Apple does not provide one by default. TODO: By default the locate database is only updated once a week. This should be changed to once a day. See the /etc/periodic/weekly directory.

Setting a fixed machine name:

The main ComputerName can be set/reset in System Preferences/Sharing. However this is not the same as the node name as you'd see executing "uname -n". As far I can determine the best way to set the machine name(s) is to use "scutil --set" to set the ComputerName, LocalHostName and HostName.

scutil --set ComputerName azathoth
scutil --set LocalHostName azathoth
scutil --set HostName azathoth

These changes are retained between successive boots of the machine.

Making Terminal and X11 appear by default in the dock:

Start either app the normal way from Finder. Their icon will appear in the dock. Right-click on their icon (if you have set up right click, otherwise control-click on the icon) and select "Keep in Dock" and/or "Open at Login".

Switch off xterm beeping:

Failure!

xset b off doesn't seem to work by default as /usr/X11/bin is not in the default path. Doing /usr/X11/bin/xset b off does work within the invoking xterm, but so far I have failed in preventing beeps on an automatic and system-wide basis.

Trying to create a user-specific .xinitrc, even one that invokes quartz-wm, does not work for me. In most cases X doesn't even start successfully, and if it does then the xterm it starts still invokes the bell. I am beginning to suspect that I may have to set it to use visual bell. Copying the system xinitrc from/usr/X11/lib/X11/xinitrc and modifying that doesn't seem to work either.

Focus Follows Mouse:

It appears to be impossible to get full focus follows mouse behaviour under OSX, which is incredibly backwards. However a very limited form of it is possible just for Terminal windows (and possibly xterms) by executing the following in a Terminal:

defaults write com.apple.Terminal FocusFollowsMouse -string yes

This works (after a small delay) in giving limited FFM in just the Terminal.

For xterms the following is claimed to work:

defaults write com.apple.x11 wm_ffm true

But this does not appear to work on my Macbook, with or without a -bool between the wm_ffm and the true. As I don't really intend to use a vanilla xterm for real work anyway I'm hoping this (and the copy/paste difficulties between X11 and OSX) limitation won't end up driving me crazy.

Friday, December 26, 2008

OS X, Fedora 10, KDE 4.1.2, XFCE

Still playing around with the new Macbook and OS X 10.5.6, getting used to the odd Mac key and the associated keyboard shortcuts.

Overall I'm quite impressed at the speed and slickness of the basic OS, as much as I try to avoid being impressed with eye-candy. The lack of "focus follows mouse" is a major pain, and copy/paste seems broken or tricky between X11 and non-X11 apps. The Terminal program is OK, less fancy than I was expecting based on word-of-mouth, although nicer than the lowest-common-denominator of the basic X11 xterm.

I was going to say the OS X Terminal is less capable than the KDE Konsole, but then I was rudely reminded last week that the KDE4 Konsole is less capable, and less configurable, than the KDE3 Konsole. Currently I'd say the OS X Terminal and KDE4's Konsole appear pretty comparable in capability and available configuration options at present.

I've complained before about KDE4 on Fedora 9, but had noted some progress and had hoped the version Fedora 10 shipped with would be further improved. Last week I upgraded my work back-up machine to Fedora 10, largely as a test, and experienced many of the same problems...

The Konsole no longer has a login shell "--ls" command line option. Transparency is still not available. Add an application laucher to the Plasma-based panel and dare to change the "Icon Settings" and its icon will be replaced with a question mark. Worse still, the changes you've made to the panel launcher have been propagated back to the main KDE menu, so don't make a mistake! As for trying to move icons around on the panel... it didn't appear to be possible at all (no right click, "Move" option anymore) and its seems other are as confused by this as I am, although here is the non-intuitive way to do it.

And its slowwwww. The price we pay for KDE trying to implement desktop graphical effects similar to OSX, I suppose.

Any, sick of the fuss, I ditched KDE4 on the Fedora 10 machine and switched to XFCE, and managed to quickly configure my desktop into looking something like KDE3.5 with nicely transparent terminals in less time that it took me to get the KDE4 Konsole to use a login shell.

One step forward and one step backwards, I suppose... Ah well.

Friday, December 19, 2008

New Macbook! (and Fallout 3)

My new work laptop arrived yesterday - a 13" 2.4 GHz Macbook. This is my first Mac ever, something of an experiment for me, so lets hope it goes well. So far I'm quite pleased with it, especially now that I've worked out how to right click using the touch pad and found how to add a terminal to the dock.

My old Lenovo Thinkpad X60, dual boot Fedora 8 and Windows XP, was (and still is) a good software development machine but was imperfect at its primary role of conference/travel laptop. On Windows the separate Lenovo and Windows wifi managers would often conflict with one another, although it worked once you'd found and killed one or the other. I'd bought the thing based on the fact that people at ThinkWiki had the wireless hardware working under Linux, but for whatever reason it would only work intermittently and often would disconnect from a wireless network it had managed to connect to. It even did this when I swapped the Intel a/b/g wireless internal card for an Atheros-based one that was supposed to work even better under linux. I spent a lot of time getting into old-school kernel patching and micro-code nonsense, before giving up trying to make wireless work robustly under linux. This was a pain at conferences, where wired ethernet connections are rarely provided.

And I never got sound working under Linux - a failure that rankles me considering I managed to hack sound into working on linux on every laptop I've ever had until the Thinkpad came along two years ago.

I'd originally chosen a dual-boot Windows/Linux combo (as opposed to pure Linux, which is what I did on previous laptops) because conferences had stopped letting you hook your own laptop up to the projector to give your presentation (which used to work fine under linux with OpenOffice for me and still does for departmental Seminars, apart from one memorable incident at a conference in the Canary Islands...).

Now all conferences have adopted a policy of transferring all talks to one of two-conference computers, usually one Windows and one Mac. This initially lead to font problems with talks saved in powerpoint format from OpenOffice Impress, although installing and using Microsoft web fonts under linux solves that problem. I added Windows to the Thinkpad X60 so I can load the ppt in powerpoint to check it. All good so far. This is almost foolproof, except when conference organizers put your powerpoint talk from a XP machine onto a Mac running powerpoint (or vice versa), at which point all hell breaks loose. This has happened to me only a few times, but it happens to some poor soul at every conference I go to.

So, sick of powerpoint's inability to work properly on both XP and Mac, and having to reboot out of a working environment (linux) to get into XP to check the presentation, I have decided to do all future talks in Keynote. Hence the Mac. And once I've unixified the Mac I should be able to do some decent work on the thing at the same time, no rebooting required. Wish me luck.

PS: Fallout 3 did not disappoint. An awesome game, with only minor flaws of an overly-low level cap and a rather abrupt termination to the main quest.

Monday, December 1, 2008

Electronic waste and Apple

Just when I'm thinking about replacing(*) my old work laptop (a Lenovo X60) for one of the new Apple Macbooks, Greenpeace trashes Apple for its inaccurate claims regarding how green its laptops are (Daily Tech article, Greenpeace report on Apple [PDF]).

As I've noted before there is much more to being green than just energy efficiency, so in this respect Apple's claims about being green are disingenuous at the very least.

However, if you take time to look at the Greenpeace ratings and their change over time its clear that of the main laptop manufactures are all pretty in the same general area - the electronics manufacturers scoring more highly tend to be more related to consumer electronics and cell-phones. And the real bad guys are Microsoft and Nintendo.

(*) Supplementing is perhaps a more accurate description, rather than replacing. The X60 is still a great ultraportable laptop that I do a lot of real work on, but for conferences and travel I'm hoping a Mac may be more practical.