ubuntu-11-04

Ubuntu11.04专题
分类:新闻资讯日期:2011-04-27作者:lingyired阅读:1,432℃
这是一个Ubuntu11.04发布专题:
1.Ubuntu11.04版本特性:
采用Unity桌面环境(针对无3D驱动用户发布Unity -2D)
集成LibreOffice
Firefox4.0
新的软件中心(带评论、试用等新鲜功能)
新布局(包括面板、Unity Launcher等)
新的安装管理器
全局菜单
你可以查看下面视频了解一些新功能:

2.Ubuntu11.04下载地址:
Ubuntu11.04正式版将会最先出现在其官方FTP上,地址如下:
Ubuntu11.04原版正式版下载地址:http://releases.ubuntu.com/
Ubuntu11.04中文版正式版下载地址:http://china-images.ubuntu.com/
虽然会先出现在FTP上,但不建议大家去那里下载,原因是那个下载地址是为了方便全球各个镜像的同步化。
UbuntuSoft将会在第一时间提供网盘的下载地址。
3.Ubuntu11.04率先体验:
你可以现在下载一个daily-live版本来安装,因为距离发布时间很短,所以一般情况下都会不有太大的区别,安装完之后在发布那天更新一下系统即可。
4.升级系统到Ubuntu11.04:
建议你不要那么做,因为Ubuntu不能平滑升级,所以升级后会出现各种错误。但是如果你坚持要升级系统的话,你可以看这里。

5.Ubuntu11.04使用技巧:
-若非3D驱动环境,可切换成Unity-2D,详情及教程看这里,Unity-2D配置方法看这里

-关于Unity Launcher(启动器面板)的使用:
添加Banshee播放器的管理菜单
在Unity Launcher中显示Pidgin的未读信息数
Unity Launcher使用教程
-Unity的快捷键列表,文字版看这里,图片版到这里下载

-Unity的配置,正常版看这里,2D版看这里

-解决系统托盘的问题,需要配置一下白名单,教程看这里
6.Ubuntu11.04更新源:
163源

deb http://mirrors.163.com/ubuntu/ natty main restricted
deb-src http://mirrors.163.com/ubuntu/ natty main restricted
deb http://mirrors.163.com/ubuntu/ natty-updates main restricted
deb-src http://mirrors.163.com/ubuntu/ natty-updates main restricted
deb http://mirrors.163.com/ubuntu/ natty universe
deb-src http://mirrors.163.com/ubuntu/ natty universe
deb http://mirrors.163.com/ubuntu/ natty-updates universe
deb-src http://mirrors.163.com/ubuntu/ natty-updates universe
deb http://mirrors.163.com/ubuntu/ natty multiverse
deb-src http://mirrors.163.com/ubuntu/ natty multiverse
deb http://mirrors.163.com/ubuntu/ natty-updates multiverse
deb-src http://mirrors.163.com/ubuntu/ natty-updates multiverse
deb http://mirrors.163.com/ubuntu/ natty-security main restricted
deb-src http://mirrors.163.com/ubuntu/ natty-security main restricted
deb http://mirrors.163.com/ubuntu/ natty-security universe
deb-src http://mirrors.163.com/ubuntu/ natty-security universe
deb http://mirrors.163.com/ubuntu/ natty-security multiverse
deb-src http://mirrors.163.com/ubuntu/ natty-security multiverse
deb http://archive.canonical.com/ubuntu natty partner
deb-src http://archive.canonical.com/ubuntu natty partner
deb http://extras.ubuntu.com/ubuntu natty main
deb-src http://extras.ubuntu.com/ubuntu natty main

sohu源

deb http://mirrors.sohu.com/ubuntu/ natty main restricted
deb-src http://mirrors.sohu.com/ubuntu/ natty main restricted
deb http://mirrors.sohu.com/ubuntu/ natty-updates main restricted
deb-src http://mirrors.sohu.com/ubuntu/ natty-updates main restricted
deb http://mirrors.sohu.com/ubuntu/ natty universe
deb-src http://mirrors.sohu.com/ubuntu/ natty universe
deb http://mirrors.sohu.com/ubuntu/ natty-updates universe
deb-src http://mirrors.sohu.com/ubuntu/ natty-updates universe
deb http://mirrors.sohu.com/ubuntu/ natty multiverse
deb-src http://mirrors.sohu.com/ubuntu/ natty multiverse
deb http://mirrors.sohu.com/ubuntu/ natty-updates multiverse
deb-src http://mirrors.sohu.com/ubuntu/ natty-updates multiverse
deb http://mirrors.sohu.com/ubuntu/ natty-security main restricted
deb-src http://mirrors.sohu.com/ubuntu/ natty-security main restricted
deb http://mirrors.sohu.com/ubuntu/ natty-security universe
deb-src http://mirrors.sohu.com/ubuntu/ natty-security universe
deb http://mirrors.sohu.com/ubuntu/ natty-security multiverse
deb-src http://mirrors.sohu.com/ubuntu/ natty-security multiverse
deb http://archive.canonical.com/ubuntu natty partner
deb-src http://archive.canonical.com/ubuntu natty partner
deb http://extras.ubuntu.com/ubuntu natty main
deb-src http://extras.ubuntu.com/ubuntu natty main

srt源

deb http://ubuntu.srt.cn/ubuntu/ natty main restricted
deb-src http://ubuntu.srt.cn/ubuntu/ natty main restricted
deb http://ubuntu.srt.cn/ubuntu/ natty-updates main restricted
deb-src http://ubuntu.srt.cn/ubuntu/ natty-updates main restricted
deb http://ubuntu.srt.cn/ubuntu/ natty universe
deb-src http://ubuntu.srt.cn/ubuntu/ natty universe
deb http://ubuntu.srt.cn/ubuntu/ natty-updates universe
deb-src http://ubuntu.srt.cn/ubuntu/ natty-updates universe
deb http://ubuntu.srt.cn/ubuntu/ natty multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ natty multiverse
deb http://ubuntu.srt.cn/ubuntu/ natty-updates multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ natty-updates multiverse
deb http://ubuntu.srt.cn/ubuntu/ natty-security main restricted
deb-src http://ubuntu.srt.cn/ubuntu/ natty-security main restricted
deb http://ubuntu.srt.cn/ubuntu/ natty-security universe
deb-src http://ubuntu.srt.cn/ubuntu/ natty-security universe
deb http://ubuntu.srt.cn/ubuntu/ natty-security multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ natty-security multiverse
deb http://archive.canonical.com/ubuntu natty partner
deb-src http://archive.canonical.com/ubuntu natty partner
deb http://extras.ubuntu.com/ubuntu natty main
deb-src http://extras.ubuntu.com/ubuntu natty main

jQuery 1.6 RC 1 Released

This is a preview release of jQuery. We’re releasing it so that everyone can start testing the code in their applications, making sure that there are no major problems.

You can get the code from the jQuery CDN:

http://code.jquery.com/jquery-1.6rc1.js
You can help us by dropping that code into your existing application and letting us know that if anything no longer works. Please file a bug and be sure to mention that you’re testing against jQuery 1.6 RC 1.

We want to encourage everyone from the community to try and get involved in contributing back to jQuery core. We’ve set up a full page of information dedicated towards becoming more involved with the team. The team is here and ready to help you help us!

jQuery 1.6 RC 1 Change Log

The current change log of the 1.6 RC 1 release.

Ajax

#6481: revert $.param should treat empty arrays/objects like empty strings
#7881: Make compatible with XHR 2
#8417: When posting AJAX and the data has "??" is formats it to jQuery<timestamp>?
#8744: .ajax() jsonp requests are not handled correctly when hitting timeout
#8884: jqXHR breaks names of custom header fields

Attributes

#3786: removeAttr should use jQuery.props
#4283: .attr('checked') & XHTML 1.1 Strict
#4464: IE cannot get width attribute of detached IMG element
#4978: jQuery.prop missing cellpadding?
#5413: tag "img" width/height attribute is zero (IE)
#6562: using .attr() to set the 'target' attribute, with a node that has ID of 'target'
#6708: Opera has inconsistent result for usemap attribute value
#6823: Make .val(value) faster for common use case
#7472: $('form').attr('id') return DOM Element
#7485: Inconsistency between has [attribute] selector and attr() method
#7709: Permission denied to access property 'nodeType' from a non-chrome Firefox/3.5.15
#7996: Safari $('script').attr('event'); Bug
#8117: .removeAttr don't works with select element's size attribute
#8150: removeAttr issue in webkit, firefox
#8255: support for list attribute
#8418: set name parameter using attr() method in IE 7
#8457: attrHooks
#8570: .val method returning "on" for dynamically created radio buttons in ie9
#8699: .attr() returns -1 on missing attribute instead of undefined
#8772: Using .attr() to set input type 'range' causes script error in IE9

Build

#8854: Bug in minifier process

Core

#2616: A better jQuery.map
#3116: .attr does not work with SVG IDLs
#4366: $.each fails in IE with document.styleSheets
#6690: Store references to location and navigator objects
#7049: making jQuery.noConflict() callable anytime
#7783: Fixing $.proxy to work like (and use) Function.prototype.bind
#7862: jQuery.globalEval(): Execution Delayed By Remote Scripts in Firefox
#7990: Script space quota exhausted error when creating a large HTML block with jQuery constructor in Firefox
#8882: Tests: Update QUnit usage, replace id=main with id=qunit-fixture
#8893: jQuery.proxy( context, name ) bug in 1.6b1

Css

#6135: jQuery tries to access the .style attribute of text tags
#7345: Support relative values for $().css()
#7730: offset.js: setOffset uses parseInt to parse css values which may contain floating point numbers
#8401: minor enhancement to opacity cssHooks
#8402: jQuery.cssProps is useless in all browsers but IE6/7/8
#8403: jQuery Bulldozes Other IE Filters When Assigning Opacity

Data

#7328: Should data-foo-bar be accessible via .data( 'fooBar' ) as well as .data( 'foo-bar' ) ?

Effects

#7917: .animate() when used with large groups of elements is not "in sync"
#7934: $.fn.animate to implement deferreds
#7974: Cleanup effects.js to improve performances and reduce filesize
#8099: SPAN element becomes block level on show()
#8101: use requestAnimationFrame instead of setInterval for animations, when available

Event

#5884: live mouseenter/mouseleave events don't fire as expected when nested
#6514: Mouseenter and mouseleave events not able to be triggered if bound by live
#6913: namespaced event bubbleing wrong
#6993: .bind() and .one() don't allow a function as data
#7071: Accessing the 'type' property on VML elements fails on IE
#7883: .delegate (and .live) should accept false as the fn arg, like .bind
#8018: Unsafe access to frameElement causes error in crossdomain (i)frames
#8272: Exceptions in plain JS object event handlers swallowed by jQuery
#8712: Custom events don't bubble up to window
#8732: Incorrect feature detect for IE9 focusin/focusout
#8753: jQuery 1.6: jQuery.Event contstructor to support setting properties
#8755: binding to beforeunload throws an error in IE6, 7, 8 on page unload
#8777: jQuery 1.6: undelegate() accepts custom namespaced events
#8788: Reorganize jQuery.event.trigger to use loop instead of recursion
#8790: Optimize non-attached events such as data events
#8803: jQuery.holdReady() method

Manipulation

#1954: val() returns innerHTML for button elements in IE
#6180: jQuery.clean should not touch script tags that are not of type text/javascript
#7623: Exception thrown in replaceWith
#7885: jQuery .offset doesn't property works when current offset is float (which is possible in FireFox)
#8060: Setting checked to true on a disconnected checkbox does not carry over after attaching to DOM.
#8500: radios and checkboxes revert to default (HTML) state when wrapped in IE

Misc

#8203: Remove un-needed "someVar = null;"s
#8851: Wraps strings with double quotes in sources and tests

Offset

#7931: scrollTop and scrollLeft setters return null when called on empty jquery object

Selector

#3685: Selector fails for forms with an element named "name"
#4321: $("#") returns undefined
#8105: :focus selector filter

Traversing

#2773: $.fn.is and $.fn.not should accept DOMelements and jQuery collections
#5712: Allow jQuery.fn.is to accept a function
#6912: $().add(selectElement) adds option children instead
#7369: $('<div>ff</div>').closest('[attr]'); raises exception in all browsers
#8609: Result of .find(" ") is undefined

程序出错后程序员给测试人员的20条高频回复

20. “That’s weird…” 很奇怪……
19. “It’s never done that before.” 以前没这样过的。
18. “It worked yesterday.” 昨天还好好的。
17. “How is that possible?” 那怎么可能?(怎么会出问题?)
16. “It must be a hardware problem.” 这一定是硬件问题。
15. “What did you type in wrong to get it to crash?” 你输入什么东西后才崩溃的?
14. “There is something funky in your data.” 你的数据有问题。
13. “I haven’t touched that module in weeks!” 我好几个礼拜没动那个程序了!
12. “You must have the wrong version.” 你一定在用错误的版本。
11. “It’s just some unlucky coincidence.” 这只是凑巧。
10. “I can’t test everything!” 我无法测试所有东西。(我的机器环境下,无法测试所有的可能情况。)
09. “THIS can’t be the source of THAT.” “这”不可能是问题的原因。
08. “It works, but it hasn’t been tested.” 程序能用,不过还没有测试。
07. “Somebody must have changed my code.” 一定有人改了我的代码。
06. “Did you check for a virus on your system?” 你的电脑扫描病毒了么?
05. “Even though it doesn’t work, how does it feel? 即便程序不行了,(你觉得)程序写得如何?
04. “You can’t use that version on your system.” 你不能在你系统上使用那个版本的程序。(程序版本和系统有冲突。)
03. “Why do you want to do it that way?” 你怎么会想着那样操作啊?
02. “Where were you when the program blew up?” 程序崩溃时,你在做什么呢?(做了哪些操作?)
01. “It works on my machine” 在我机器上好好的!!!(潜台词:怎么在你那就出问题了呢

magent编译及常见错误解决办法

# 编译magent

cd /home/lnmp/src
mkdir magent
cd magent/
wget http://memagent.googlecode.com/files/magent-0.5.tar.gz
tar zxvf magent-0.5.tar.gz
/sbin/ldconfig && sed -i "s#LIBS = -levent#LIBS = -levent -lm#g" Makefile
make
mkdir -p /usr/local/webserver/magent/bin
cp magent /usr/local/webserver/magent/bin/magent
cd ../

错误1:

gcc -lrt -Wall -g -O2 -I/usr/local/include -m64 -c -o magent.o magent.c
magent.c: In function ‘writev_list’:
magent.c:729: error: ‘SSIZE_MAX’ undeclared (first use in this function)
magent.c:729: error: (Each undeclared identifier is reported only once
magent.c:729: error: for each function it appears in.)
make: *** [magent.o] Error 1

解决办法:
vim Makefile
加入

#ifndef SSIZE_MAX
# define SSIZE_MAX      32767
#endif

错误2:

gcc -Wall -g -O2 -I/usr/local/include -m64 -c -o magent.o magent.c
gcc -Wall -g -O2 -I/usr/local/include -m64 -c -o ketama.o ketama.c
gcc -Wall -g -O2 -I/usr/local/include -m64 -o magent magent.o ketama.o /usr/lib64/libevent.a /usr/lib64/libm.a
/usr/lib64/libevent.a(event.o): In function `gettime’:
(.text+0x449): undefined reference to `clock_gettime’
/usr/lib64/libevent.a(event.o): In function `event_base_new’:
(.text+0x72a): undefined reference to `clock_gettime’
collect2: ld returned 1 exit status
make: *** [magent] Error 1

解决办法
vim Makefile

CFLAGS = -Wall -g -O2 -I/usr/local/include $(M64)

改为:

CFLAGS = -lrt -Wall -g -O2 -I/usr/local/include $(M64)

Debian服务器编译安装Memcached及PHP扩展

最近在应用memcached的时候,发现有一台服务器,往缓存里写数据的时候失败率超高,甚至100%失败,找了不方原因,最后发现,原来是memcached编译的出的问题,重新编译,并记录下了过程,以便以后查看:)

# 安装libevent

cd /home/lnmp/src
wget http://www.monkey.org/~provos/libevent-1.4.14b-stable.tar.gz
tar zxvf libevent-1.4.14b-stable.tar.gz
cd libevent-1.4.14b-stable
./configure –prefix=/usr/local && make && make install

# 查看是否安装成功

ls -al /usr/local/lib | grep libevent

# 安装memcached

wget http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz
tar zxvf memcached-1.4.5.tar.gz
./configure –with-libevent=/usr/local && make && make install

# 安装PHP扩展

tar xvf memcache-2.2.5.tgz
cd memcache-2.2.5
/usr/local/webserver/php/bin/phpize
./configure \
–enable-memcache \
–with-zlib-dir \
–with-php-config=/usr/local/webserver/php/bin/php-config
make && make install