Tag Archive for 'leopard'

Snow Leopard 雪豹使用一天印象

实际上,从安装雪豹到现在,还没有一天。我用的时间也不过几个小时,不过的确有一些心得体会值得分享了。

1 中文输入法。系统自带的拼音输入法很不错,除了不能整句输入以外,在联想功能、反应速度、用户友好等各方面已经很不错了。之前我一直使用免费的FIT输入法,现在我觉得系统默认的输入法已经够好了。更加不推荐使用收费的中文输入法,如同在windows下几乎已经没有收费的输入法了,mac下为什么要有?何况现在snow leopard已经做的够好了。如果你有很大的触控板,手写输入法也是一个不错的选择。

2 Dock栏的菜单的功能划分和美观都有提高,多级菜单比10.5的时候更加好用,暗灰色的菜单也感觉漂亮很多。

3 中文显示。对于mac下中文的显示,我周围一直有两种截然相反的意见,觉得好和觉得不好。升级到雪豹后,我感觉中文显示和之前不太一样,我本来觉得mac对于中文字体的处理就不错,现在好像在渲染方面加强了,我觉得比原来更加舒适。

4 系统速度。不知到是否是心理作用,我觉得雪豹的启动速度和应用程序的打开速度比Leopard要快。

5 64位问题,我知道支持64位是雪豹的一个重要内核进步,但是目前还不知道如何开通这个功能,我下载了xcode for snowleopard,安装完成后,显示这是64位的xcode,算是开通吗?我不太清楚,还要做一些测试。

6 应用程序兼容性,我使用的程序暂时还没有碰到什么问题,特别是比较复杂的virtualbox,我安装了一个windows xp和一个ubuntu 9.04的虚拟机,都还不错。

如果你还在犹豫是否要从Leopard升级到Snow Leopard,我的建议是这是一次值得的冒险。

相关内容

Leopard 10.5.8 更新发布

Snow Leopad 雪豹来临之前,应该是Leopard 的最后一个升级版本,今天看到 Leopard 10.5.8 发布了,用户可以通过软件更新来进行升级。这个升级按照apple官方说明,主要是解决了下面问题:

解决了加入 AirPort 网络时的兼容性和可靠性问题。
解决了可能导致显示器分辨率不再在“显示器系统偏好设置”中显示的问题。
解决了可能影响 Bluetooth 可靠性的问题。

我基于intel芯片在10.5.7基础上升级,文件包有165M。

相关内容

使用sun拼音for mac的麻烦

上周看到sun pinyin for mac的版本,据说还支持整句输入法之类,昨天尝试安装使用了一下,使用上倒也没有什么问题。今天早上开机的时候,发现问题来了,sun pinyin询问时候要自动检查,然后小彩轮就出来了,鼠标逐步就失灵了,整个系统进入死机状态。

硬关机重新启动一次,还是不行。查了一下资料,按住shift启动,系统将不会运行任何非核心进程,经过漫长的等待,进入leopard后,选择输入法,去除了sun pinyin,恢复FIT输入法,再一次重新启动,好了。

不知道什么原因引起,我用的是leopard最新版本和intel核心,建议大家也就不要去安装这个sun拼音了,稳定性还有待提高。

相关内容

Mac Os leopard 下配置 PHP+Mysql和GD库

继续找资料的时候,看到国内朋友的中文介绍,可以参考一下,来自这里

Mac下配置php环境:

1. 修改 /etc/apache2/httpd.conf 中
#LoadModule php5_module libexec/apache2/libphp5.so

把前面的#去掉。

2.将/etc/php.ini.default 复制到 /etc/php.ini
sudo cp /etc/php.ini.default /etc/php.ini

3. 打开apache: 在 系统偏好设置-》共享 里面在web共享前打钩。右侧会提示
“Web 共享”允许其他电脑的用户查看这台电脑上的“站点”文件夹中的网页。
证明已经成功打开

4. 测试php
在 /用户/用户名/站点 里创建 index.php 内容为,成功输出php信息。但是发现并没有GD库的支持,文章后面会介绍如何配置 GD库。

Mac下配置Mysql:

1. 到 http://dev.mysql.com/downloads/ 下载最新版的 Mysql,这里下到的是 mysql-5.1.32-osx10.5-x86_64.dmg

2. 双击 mysql-5.1.32-osx10.5-x86_64.dmg,先安装 mysql-5.1.32-osx10.5-x86_64.pkg ,然后安装MYSQLStartupItem.pkg.

3. 编辑 /etc/php.ini,将 mysql.default_socket = 后面 加上 /tmp/mysql.sock
mysql.default_socket = /tmp/mysql.sock

给PHP配置GD:

1. 首先创建源代码目录:mkdir -p /SourceCache

2. 分别从
http://www.ijg.org/files/jpegsrc.v6b.tar.gz ,
http://www.libpng.org/pub/png/libpng.html ,

http://sourceforge.net/project/showfiles.php?group_id=3157&package_id=3121

下载jpegsrc.v6b.tar.gz,libpng-1.2.35.tar.bz2,freetype-2.3.9.tar.gz,然后放入 SourceCache目录,解压这些压缩包

3. 安装libjpeg:
打开终端,输入
cd /SourceCache/jpeg-6b
cp /usr/share/libtool/config.sub .
cp /usr/share/libtool/config.guess .

./configure
make
sudo make install

4. 安装libpng:
cd /SourceCache/libpng-1.2.35
./configure
make
sudo make install

5.安装freetype
cd /SourceCache/freetype-2.3.9
./configure
make
sudo make install

6. 安装GD库:
从http://www.opensource.apple.com/darwinsource/10.5.6/apache_mod_php-44.1/php-5.2.6.tar.bz2 下载php源码包
tar xjf php-5.2.6.tar.bz2
cd /SourceCache/php-5.2.6/ext/gd

phpize

MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS=”-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp” CCFLAGS=”-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe” CXXFLAGS=”-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe” LDFLAGS=”-arch ppc -arch ppc64 -arch i386 -arch x86_64 -bind_at_load” ./configure –with-zlib-dir=/usr –with-jpeg-dir=/usr/local/lib –with-png-dir=/usr/X11R6 –with-freetype-dir=/usr/X11R6 –with-xpm-dir=/usr/X11R6

make
sudo make install

配置php加载gd.so:
编辑/etc/php.ini ,增加一行

extension=gd.so

7 重启apache服务器

8 GD库安装成功!

注意: 如果 不能使用.configure 或make,请先安装 Xcode 3.1

相关内容

如何在Max OSX 10.5 下设置php功能

国内使用mac进行php开发的朋友越来越多了,osx 10.5类似与一个完整的linux server,apache是自带的,php功能自然也有。自己在使用的过程中碰到过不少小小的麻烦,好在有互联网,很多人的实践为我们节约了不少时间。下面这篇如何在mac osx 10.5下使用php功能的文章,来源是这里

Mac OS X 10.5 (Leopard) comes with both Apache 2.2.6 and PHP 5.2.4 preinstalled, but they’re not enabled by default. The following instructions should help you get up and running.

  1. Open BBEdit or TextWrangler (a free, cut-down version of BBEdit available from www.barebones.com). From the File menu, select Open Hidden. In the Open dialog box, select All Files from the Enable drop-down menu. Then navigate to Macintosh HD:private:etc:apache2:httpd.conf, and click Open.
  2. This opens the main configuration file for Apache 2.2.6. It’s a system file, so you need to unlock it by clicking the icon of a pencil with a line through it at the top-left of the toolbar, as shown in the following screenshot:
    Apache configuration file in TextWrangler
  3. You will be told that the document is owned by “root”, and be asked to confirm that you want to unlock it. Click Unlock. This removes the line through the pencil, and readies the file for editing. Normally, when editing system files, it’s a good idea to make a backup. However, it’s not necessary in this case, because backup copies of all the Apache configuration files are in the original subfolder of the Apache2 folder.
  4. Scroll down until you find the code shown on line 114 in the following screenshot (although the line number is likely to be the same in your version, it’s the code that’s important, not which line it’s on):
    Load PHP module command
  5. Position your cursor at the beginning of that line, and remove the hash or pound sign (#). It should now look like this:
    LoadModule php5_module      libexec/apache2/libphp5.so
    This enables PHP 5 on your computer.
  6. Save the file. Because it’s owned by “root”, you will be prompted to enter your Mac password. That takes care of the basic configuration. In theory, you could now start Apache and PHP would be up and running. However, the default installation doesn’t use the PHP configuration file php.ini. You need to need to make a copy of a file called php.ini.default, and edit it.
  7. Unfortunately, you can’t open php.ini.default in BBEdit or TextWrangler and save it with a different name. You need to go under the hood of OS X by opening Terminal in the Applications:Utilities folder. Similar to the Command Prompt in Windows, Terminal gives you direct access to the underlying operating system on a Mac.
  8. With Terminal open, type the following series of commands, each followed by Return:
    cd /private/etc
    sudo cp php.ini.default php.ini

    This moves you into the private:etc folder, and then copies php.ini.default to php.ini in the same folder, using the sudo command. You need to use sudo because it’s a system file. Enter your Mac administrator password when prompted. Terminal should now look something like this:
    Copying php.ini.default in Terminal
  9. Open php.ini in BBEdit or TextWrangler using Open Hidden in the same way as with http.conf. You should find php.ini in Macintosh HD:private:etc. Click the icon of a pencil with a line through it to enable editing.
  10. How you edit php.ini is mainly a question of preference, but the most important change is to a command called error_reporting. The default setting (it should be on line 305) looks like this:
    error_reporting = E_ALL & ~E_NOTICE
    Change it to this:
    error_reporting = E_ALL
    This ensures that PHP reports all errors. Although no one likes error messages, it’s vital to eliminate any errors (even seemingly minor ones) before deploying scripts on a live web server.
    NOTE: There are several lines that look similar. Make sure that you edit the line that does NOT begin with a semicolon. A semicolon at the beginning of a line in php.ini indicates a comment, which is ignored by the server.
  11. Save php.ini.
  12. You can now start Apache by going to System Preferences. Click Sharing in Internet & Network. Then place a checkmark in Web Sharing. When Apache starts up, System Preferences should display Web Sharing: On.
  13. Click the link under Your computer’s website. This should launch Safari and display an Apache web page.
  14. Create a page called test.php, and type in the following code:
    <?php phpinfo(); ?>
    Save it in Macintosh HD:Library:WebServer:Documents.
  15. Load the following URL into your browser:
    http://localhost/test.php
    If you see the PHP configuration screen, you’re up and running!

NOTE: If you did an upgrade install of Leopard, you cannot view pages stored in your personal Sites folder, because the necessary file(s) won’t have been copied to the correct folder for Apache 2. To copy the file(s), open Terminal and type the following commands, both followed by Return:
cd /private/etc/httpd/users
ls

You should see at least one file that uses your Mac username followed by .conf. For example, on my computer, it’s called davidpowers.conf. You need to copy this file for each user to a folder where Apache 2 can find it. Type the following command, using the name of the file on your computer instead of davidpowers.conf:
sudo cp davidpowers.conf /private/etc/Apache2/users

If there are several .conf files to copy, you can use the following command instead:
sudo cp *.conf /private/etc/Apache2/users

However, if you have previously installed the Mac PHP package from Marc Liyanage, do not copy entropy-php.conf.

For this (or any other) change to take effect, go to Sharing in System Preferences, deselect Web Sharing, and then reselect it. This restarts Apache and implements any changes made to the Apache or PHP configuration.

相关内容

记录此刻的状态

记录此刻的状态,谢谢这些电子化的储存,可以随时的翻阅和回味,而不像那些儿时的记忆,只能默默的回想,却总发现遗忘的片段越来越多。

总会在欣赏昨日的时候惊讶,从前的我比我想象的要幼稚和无知,原来磨练真的是流水年华,光阴逝去,点滴汇聚成河流。

浏览器: ie,firfox 3.0.4,google chrome 0.3.154.9,safari
手机: iphone os 2.2
最常用的电脑: ibm thinkpad x60, T2300, 1.66G, 1.5G内存, windows xp sp3
iMac 20寸 1G内存, leopard
照片储存: flickr
常用邮件: gmail
网络硬盘: dropbox
常用虚拟主机: mediatemple
创意纪blog数量: 1086

相关内容

Zend Framework编程心得

后来的事情没有想像中顺利,在数据库操作的环节上。

理论上来说,php现在提供了强大的PDO,效率提高,并可以做到基本上的数据库无关,insert一条记录简单的用zend framework提供的方法就行了,我连sql语句都不怎么需要了。

但是,在我的开发平台,OSX,Leopard,有个很致命的问题,预装了php5,很棒,但是没有编译mysql的PDO库,而在leopard上重新编译php,看了不少资料,还是一件很麻烦的事情。还好sqlite的PDO还是有的,于是切换到sqlite。应该说,php5默认支持sqlite还是有道理的,的确很方便,我对于sqlite印象一直很好,虽然开发的时间已经耽搁了整整1天。

sqlite没有很多第三方工具,我找到一个firefox下的插件,不错,可以浏览数据,创建表等等常规操作,叫做SQLite Manager。

mind3的初步试验,建立环境算是完成了,之后要开始正式的工作了。

相关内容

Leopard 10.5.2 更新放出

看到OSX119.COM的消息,马上去软件更新,果然10.5.2放出了,这个180M的家伙至少更新了下面这些内容,因为文件太大,可以从这里下载(从操作系统中更新,apple会根据你的电脑情况选择下载,比如我需要下载的是180M,直接下载的话,就比较大了,是343M):

Directory Services

CVE-ID:CVE-2007-0355

可用于:Mac OS X v10.4.11, Mac OS X Server v10.4.11

影响:本地用户可能会强制执行具有系统权限的代码

说明:堆栈缓存器溢出问题存在于 Service Location Protocol (SLP) daemon 中,这可能会导致本地用户强制执行具有系统权限的代码。本更新通过改进边界检查的方法来解决此问题。这一问题已经在 Apple 漏洞月网站 (MOAB-17-01-2007)予以说明。本问题并不影响运行 Mac OS X v10.5 或更高级版本的系统。感谢 Netragard 的 Kevin Finisterre 指出这一问题。

Foundation

CVE-ID:CVE-2008-0035

可用于:Mac OS X v10.5 和 v10.5.1, Mac OS X Server v10.5 和 v10.5.1

影响:访问某些恶意 URL 可能会导致程序意外中止或强制执行代码

说明:Safari 在处理 URL 时会出现内存被破坏的问题。通过诱使用户打开恶意制作的 URL,攻击者可能会导致程序意外中止运作或强制执行代码。本更新通过执行额外 URL 验证来解决此问题。本问题并不影响 Mac OS X v10.5 之前的系统。

Launch Services

CVE-ID:CVE-2008-0038

可用于:Mac OS X v10.5 和 v10.5.1, Mac OS X Server v10.5 和 v10.5.1

影响:系统中已经删除的应用程序可能仍然能够通过 Time Machine 备份被启动。

说明:Launch Services 是一种 API,它通过与 Finder 或 Dock 类似的方式来打开应用程序或它们的文档文件或 URL。用户们希望通过将应用程序从系统中卸载的方法来防止其被启动。然而,即使应用程序被从系统中卸载,但如果它存在于 Time Machine 备份中,Launch Services 仍然能够启动它。本更新通过禁止应用程序直接从 Time Machine 备份中启动的方法来解决此问题。此问题不影响 Mac OS X v10.5 之前的操作系统。感谢 Discovery Software Ltd. 的 Steven Fisher 和 Ian Coutier 指出这一问题。

Mail

CVE-ID:CVE-2008-0039

可用于:Mac OS X v10.4.11, Mac OS X Server v10.4.11

影响:访问信息中的 URL 可能会导致强制执行代码

说明:Mail处理 file:// URLs 时存在实施问题,当用户点击信息中的 URL 时,可能会导致强制执行代码。本更新通过显示文件在 Finder 中的位置,而不是启动此文件的方法来解决此问题。本问题并不影响运行 Mac OS X v10.5 或更高级版本的系统。

NFS

CVE-ID:CVE-2008-0040

可用于:Mac OS X v10.5 和 v10.5.1, Mac OS X Server v10.5 和 v10.5.1

影响:如果系统被用做 NFS 客户机或服务器,远程攻击者可能会造成系统意外中止或强制执行代码

说明:NFS 在处理 mbuf chain 时会出现内存被破坏的问题。如果系统被用做 NFS 客户机或服务器,恶意的 NFS 服务器或客户机可能会造成系统意外中止或强制执行代码本更新通过改进处理 mbuf chain 的方法来解决此问题。此问题不影响 Mac OS X v10.5 之前的操作系统。感谢 Sun Microsystems 的 Oleg Drokin 指出这一问题。

Open Directory

可用于:Mac OS X v10.4.11, Mac OS X v10.4.11 Server

影响:NTLM 验证请求可能总是失败

说明:本更新解决 Mac OS X v10.4.11 中出现的非安全性问题。Open Directory 的 Active Directory 插件中的资源竞争可能会中止 winbindd 的运行,从而造成 NTLM 验证失败。本更新通过纠正可能会中止 winbindd 的的资源竞争情况来解决此问题。本问题仅仅影响使用 Active Directory 的 Mac OS X v10.4.11 系统。

分级保护

CVE-ID:CVE-2008-0041

可用于:Mac OS X v10.5 和 v10.5.1, Mac OS X Server v10.5 和 v10.5.1

影响:请求取消禁止访问某网站而导致信息泄漏

说明:当分级保护被设置为管理网站内容时,如果发现某网站被取消禁止访问时,不可避免地,它将与 www.apple.com 联系。这就允许远程用户能够发现运行分级保护的计算机。当网站被取消禁止访问时,本更新通过删除向外发送的网络通信量的方法来解决此问题。本问题并不影响 Mac OS X v10.5 之前的系统。感谢 Jesse Pearson 指出该问题。

Samba

CVE-ID:CVE-2007-6015

可用于:Mac OS X v10.4.11, Mac OS X Server v10.4.11, Mac OS X v10.5 和 v10.5.1, Mac OS X Server v10.5 和 v10.5.1

影响:远程攻击者可能会导致程序意外中止运作或强制执行代码

说明:当处理某些特定的 NetBIOS Name Service 请求时,Samba 中可能会出现堆栈缓存器溢出问题。如果系统的配置明确允许“domain logons”,当处理请求时,可能会导致程序意外中止运作或强制执行代码。被配置为 domain controller 的 Mac OS X Server 系统也受到影响。本更新通过应用 Samba 补丁程序来解决此问题。详情请刘澜 Samba 网站 http://www.samba.org/samba/history/security.html。感谢 Secunia Research 的 Alin Rad Pop 指出此问题。

终端

CVE-ID:CVE-2008-0042

可用于:Mac OS X v10.4.11, Mac OS X Server v10.4.11, Mac OS X v10.5 和 v10.5.1, Mac OS X Server v10.5 和 v10.5.1

影响:浏览恶意制作的网页可能会导致强制执行代码

说明:Terminal.app 在处理 URL scheme 时出现输入验证问题。通过诱使用户访问恶意制作的网页,攻击者能引发应用程序被启动,且具有受控制的命令行值,从而可能会导致强制执行代码。本更新通过改进 URL 验证的方法来解决此问题。感谢 Digital Film Finland 的 Olli Leppanen 和 Brian Mastenbrook 指出本问题。

X11

CVE-ID:CVE-2007-4568

可用于:Mac OS X v10.5 和 v10.5.1, Mac OS X Server v10.5 和 v10.5.1

影响:X11 X Font Server (XFS) 1.0.4 中存在多个安全性薄弱问题

说明:X11 X Font Server (XFS) 中存在多个安全性薄弱问题,最严重的问题可能会导致强制执行代码。本更新通过更新至版本 1.0.5 的方法来解决此问题。详情请访问 X.Org 网站 http://www.x.org/wiki/Development/Security

X11

CVE-ID:CVE-2008-0037

可用于:Mac OS X v10.5 和 v10.5.1, Mac OS X Server v10.5 和 v10.5.1

影响:改变 Security Preferences 面板中的设置并不起作用

说明:X11 服务器不能正确阅读其“允许来自网络客户端连接”的首选项,因此即使在首选项被禁止的情况下,X11 服务器也可能会允许来自网络客户端的连接。本更新通过确保 X11 服务器能够正确阅读其首选项的方法来解决此问题。本问题并不影响 Mac OS X v10.5 之前的系统。

相关内容