Tag: OS X

  • gettext 在 OS X 安装备忘

    [15:01:44]root@vortex:/Users/vortex$ brew install gettext
    ==> Downloading http://ftpmirror.gnu.org/gettext/gettext-0.18.1.1.tar.gz
    ######################################################################## 100.0%
    ==> Downloading patches
    ######################################################################## 100.0%
    ######################################################################## 100.0%
    ==> Patching
    patching file gettext-tools/configure
    patching file gettext-tools/Makefile.in
    ==> ./configure --disable-debug --prefix=/usr/local/Cellar/gettext/0.18.1.1 --without-included-gettext --without-included
    ==> make
    ==> make install
    ==> Caveats
    This formula is keg-only, so it was not symlinked into /usr/local.
    
    OS X provides the BSD gettext library and some software gets confused if both are in the library path.
    
    Generally there are no consequences of this for you.
    If you build your own software and it requires this formula, you'll need
    to add its lib & include paths to your build variables:
    
        LDFLAGS  -L/usr/local/Cellar/gettext/0.18.1.1/lib
        CPPFLAGS -I/usr/local/Cellar/gettext/0.18.1.1/include
    ==> Summary
    /usr/local/Cellar/gettext/0.18.1.1: 365 files, 13M, built in 3.1 minutes
    
    [15:08:58]root@vortex:/Users/vortex$ brew link gettext
    Linking /usr/local/Cellar/gettext/0.18.1.1... 145 symlinks created
    
  • iChat 聊天泡泡替换

    /Applications/iChat.app/Contents/PlugIns/Balloons.transcriptstyle/Contents/Resources/
    sudo chown root:wheel BigBubbleGloss.png;sudo chown root:wheel BigBubbleMask.png
    sudo chmod 644 BigBubbleGloss.png;sudo chmod 644 BigBubbleMask.png
  • iChat Share Screen「共享屏幕」出现绿色花屏的解决方案

    把被共享屏幕人的「Automatic graphics switching」选项关掉即可

  • OS X 美化备忘

    /System/Library/PrivateFrameworks/CoreUI.framework/Resources
    /System/Library/CoreServices
    
    • 解压:./sartfiletool -d SArtFile.bin artfiles
    • 压缩:./sartfiletool artfiles SArtFile.bin SArtFile.new.bin
  • 完整删除 Wacom 驱动的方法

    选中 Install Pen Tablet.pkg 再选 Show Package Contents,里面有一个 Archive.pax.gz 包,解开后里面就是完整的文件安装结构,去本地磁盘逐个删除对应文件即可

  • 删除 Parallels Desktop 6 的残余垃圾

    /Library/QuickLook/ParallelsQL.qlgenerator/
    /Library/Parallels/
    /Library/Spotlight/ParallelsMD.mdimporter/
    /Library/Preferences/Parallels/
    /Library/LaunchDaemons/com.parallels.desktop.launchdaemon.plist
    ~/Library/Preferences/Parallels/
    

    虽然 Parallels Desktop 的安装程序中自带卸载程序,但上面这些还是有几率卸不掉的

  • 用 LaunchBar 替换掉了 Alfred

    界面,功能都要强于 Alfred,制定性和 QS 也有一拼,现在 Macupdate 在打折,不过最近的更新进度不是很快,而且到现在也没上 Mac App Store,先用着再说

    如果看了本文你也想试试 LaunchBar,往下看:

    • 开机自动运行?需要右键点 Dock 上的图标选择 Open at Login
    • 各种索引内容的设置在程序菜单的 Index-Show Index 里

    Single Seat License 的限制比较坑爹,具体是:

    You may install and use (“RUN”) one copy of the SOFTWARE on a single computer. The primary user of the computer on which the SOFTWARE is installed may make a second copy for his or her exclusive use on a portable computer.

    为避免两义性就不翻译了,根据自己的智力理解

  • 删除 OS X 下一些奇怪的东西

    # 这是 OS X 只要用 Finder 访问就会生成的玩意,先执行一遍,然后再配合 TotalFinder 的 .DS_Store 收集功能,文件夹中就再也不会出现这种文件了
    sudo find / -name ".DS_Store" -depth -exec rm {} ;

    # 从 Windows 下转移过来的文件的残留物
    sudo find / -name "desktop.ini" -depth -exec rm {} ;
    sudo find / -name "Thumb.db" -depth -exec rm {} ;

    # 由 Samba 和一些虚拟机产生,如果不知道是什么就忽略此条
    sudo find /Users/username/Dropbox/ -name "*Zone.Identifier*" -depth -exec rm {} ;

  • 如何完整删除 Microsoft Mesenger for Mac

    一破 IM 居然是 mpkg 包,mpkg 包吧竟然没 Uninstaller,卸载方法吧竟然我在 Mesenger 开发者 PDF 里才能找到,而且还不全。这是我用 Mac OS X 这两个月来见过最傻逼的 Mac OS X 程序,另外值得一提的是。 Skype for Mac 和此软件有一拼

    #!/bin/bash
    
    rm /Applications/Microsoft Messenger.app
    rm ~/Library/Preferences/com.microsoft.autoupdate2.plist
    rm ~/Library/Preferences/com.microsoft.error_reporting.plist
    rm ~/Library/Preferences/com.microsoft.Messenger.plist
    rm -rf /Library/Application Support/Microsoft
    rm -rf ~/Library/Preferences/Microsoft
    rm -rf ~/Library/Caches/com.microsoft.Messenger
    rm -rf ~/Documents/Microsoft\ User\ Data