Useful Command Lines

Start/Stop AFS client:

launchctl stop org.openafs.filesystems.afs

launchctl start org.openafs.filesystems.afs

Problems when I upgraded to Lion

1. Fink. Very few of the open source software available for Snow Leopard is available for Lion (I would say ~5%). The developers claim that the reason for that is that the changes under the hood of the Lion are too many and a lot should be changed in all of the packages. Additionally, you have to start from scratch. That means completely remove /sw, upgrade to Xcode 4 from AppStore (you must have an account there to do so), compile fink and start trying which of your software is available and which - not.

2. ROOT Framework. Not available in fink for the moment. You have to compile it locally.

3. OpenAfs and Kerberos. Most of the people are complaining that the kerberos is completely screwed up in Lion. In my case I had the luck to work out of the box. The problem was OpenAfs. To make it running I did:

  • Download OpenAfs for SnowLeopard and Lion.
  • Uninstall the old version of OpenAfs using the SnowLeopard version of the installer (which includes uninstall option)
  • Install the Lion version
  • Added allow_weak_crypto = true in the [libdefaults] section of my /etc/krb5.conf (If you need the configuration for DESY and/or CERN kerberos servers, let me know)
  • Restart the computer. Funny enough I could not find any other way to reset the ads server. The graphical frond-end in System Preferences > OpenAfs does not work properly.

4. Spotlight. Without spotlight you can forget finding anything in the e-mails in which you saved locally. In my case mdutils -s /Volumes/Macintosh\ HD was showing that Spotlight is not enabled. Any command that google found to restart it was not working. I made it running by:

  • Deleting /Volumes/*/.Spotlight-V100
  • Restarting the computer.

5. Mail. Be prepared on the first launch of (in case of >100k mails stored locally) to wait about an hour to rebuild your mails.

6. iTunes. Some songs are missing in the iTunes library. I am not sure if this is because of Lion, or because I have my OS installed on an encripted volume (Yes! Finally you have the option to format your hard drive as encrypted drive), but for ~1% of my songs, iTunes cannot find them anymore. One has to search them with spotlight, import them again, add them to the corresponding playlists and delete the old reference. Pretty annoying in libraries with >10000 entries.

7. Adobe Photoshop CS3 Crashes without any explanation. Obviously should be reinstalled. The installed for Snow Leopard does not work. You need a new copy especially made for Lion.

EDIT: That's not true. The problem is that Photoshop does not support "Case-sensitive" filesystem. Do not format your system hard drive if you want to install Photoshop (I suppose also any of their other products).

8. Aperture. Be prepared to give up your Mac for a few hours (for a few tens of thousand of pictures), while all the photos are being reprocessed.

9. NTFS. There is no free support of NTFS volumes for Lion. You have to buy Paragon NTFS or something similar. I was using NTFS-3G under Snow Leopard to read/write ntfs formatted hard drives, which is not going to be developed for Lion.

Not able to unlock your screenserver

If you use more then one kayboard languages it is possible that the symbols you are on different places in the different keyboard layouts. Switching from language using the keyboard shortcut does not work when you are supposed to enter your password.

It is more complicated when the last keyboard used before locking the Mac does not contain the symbols your password consist of. For example you left your language on Bulgarian (Cyrillic letters). If you try what you are writing on your login field, it will all be written in the last language (Bulgarian in this case). The password, on the other hand, will be typed in the last language used which contains those symbols.

Eclipse: Edit the list of recent workspaces

1. Open /Applications/Eclipse/configuration/.settings/org.eclipse.ui.ide.prefs

2. Edit the list of entries after RECENT_WORKSPACES

Open root files from Finder

Fast solution:

(it looks for the root executable in /sw/bin/root)

Copy this application and associate with it all root files in Finder

Universal solution:

1. Open Application > Automator

2. Select Application

3. Drag in the "Run Shell Script" icon.

4. Replace cat with:

( printf "#!/bin/bash\n"
  printf "${PROGRAM} %q\n" "$@"
) >"${SCRIPT}"
/bin/chmod +x "${SCRIPT}"
/usr/bin/open -a Terminal "${SCRIPT}"

5. Replace /sw/bin/root with your path to the root executable

6. Select Pass input: "as arguments"

7. Save the script as application: File > Save as

8. Save As: File Format: Application

9. Find a random root file in Finder

10. Right click (Ctrl click) > Get Info

11. Open with > Other

12. Find and select your and select it. Check also "Always Open With"

-- IvanGlushkov - 20-Oct-2010

Topic attachments
I Attachment History Action Size Date Who Comment
Compressed Zip archivezip r1 manage 83.5 K 2010-10-20 - 11:02 IvanGlushkov A script for opening root files in Finder
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r6 - 2011-11-18 - IvanGlushkov
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback