Archive
Amazing! Seamless(无缝窗口模式) in VirtualBox
VirtualBox新近推出了他的1.5.0版本,除了修改Bug外,还有一项重大的更新,叫做“无缝窗口”模式(Seamless)。看看下面的图,就知道所谓Seamless是什么意思了。其实是把Guest OS合并到Host OS中,就像操作Host OS一样。
注意看上面的图片(点击可以看到大图),屏幕下方有2个任务栏,Vista是Host OS的,XP是Guest OS的。说白了,无缝窗口(Seamless)模式就是实现了像操作Host一样的操作的Guest的方法。
不过要使用这项功能,也是要有前提条件的:
- Guest OS必须是Windows
- Guest OS必须安装Guest Additions(启动Guest OS后,选择Device–>Install Guest Additions)。需要注意的是,要先release Guest OS的光盘,否则Additions不会加载到Guest OS上。因为Guest Additions实际上是以虚拟光盘的形式装入Guest的。这一点和其他虚拟机软件类似。
虽然v1.5.0已经发布并且可以使用了,但似乎VirtualBox的主页上还是1.4.0的Win x86版本下载。不过,1.5.0已经可以下载了,路径的规则和1.4.0一样。这里再贴一下:
http://www.virtualbox.org/download/1.5.0/VirtualBox_1.5.0_Win_x86.msi
Update 1:47 Sept 7th, 2007 PST: 官方网站上已经更新了下载连接,直接去Virtual Box的下载页面,就可以了。
Unix体验中心
介绍一个Unix的体验中心:http://www.unix-center.net/
他们提供了Solaris的系统,并且有C、C++等语言的编译环境。对于想用Unix的人来说,还是不错的。不过没有X。
目前提供几个服务器:
- x4100.unix-center.net
- solaris.unix-center.net
推荐使用Putty使用SSH方式访问。
10 things you should know about every Linux installation
November 18, 2005
Update – 11/18/2005: This article is also available as a TechRepublic download.
Takeaway:
There are numerous common features with every Linux installation. This document lists 10 of the more important ones you should know about.
By Jeffrey G. Thomas
Linux is not Windows, and although there are some similarities, you must realize that there may be a few “new ways of doing things” to learn before you can be comfortable in Linux. Linux is an open-source clone of UNIX, a secure operating system (OS) that predates DOS and Windows and is designed for multiple users. The items in the following list generally apply to any UNIX-based *nix system, such as Linux and the various BSD’s. For the purposes of this article, assume that it’s all Linux.
重回Linux(2)——Post-installation
第一步把基本系统装好了,进入系统,X Window已经将我的nVidia的显卡配置好了。默认分辨率1600×1200@60Hz,看着实在是费劲。去Admin里面把Screen Solution重新设置为1280×1024@85Hz。
Ubuntu的确是汲取了很多Windows中优秀的东西,包括Automatic Update。刚刚装好的系统,右上角的Notification Area就提示了有更新的package要装。更是简单到只要点一下更新的图标,再点一下OK,就可以自动完成更新了。
这里有个不是很爽的东西,Ubuntu(包括Debian)的aptitude,如果他正在工作(下载或安装package),就不能同时开启另一个进程工作。也就是说,如果你在更新系统,那么无论是apt-get还是aptitude,还是Ubuntu的Package Manager都是无法工作。
当然,如果是tarball的package还是可以安装的。
花了将近1个小时下载并安装了全部的更新,其中包括一个linux-kernel-i386-2.6.17-11-generic的package。这里着重说一下,在后面的过程中,正式因为这个新的内核导致了其他的问题。
更新完成重新启动系统,却发现显示分辨率变成了800×600@60Hz了,而且只能从800×600和640×480中进行选择。这其实就是已经存在的nvidia-glx的package和新的内核不兼容。(当初装Debian的时候,就遇到过类似的问题)。
作为暂时的处理方法,先把老内核作为GRUB的默认选项了。至于新内核,我想了一下,-10和-11估计也没什么太大的差距,先凑合用了。
Update 2/23 20:43:翻了翻网上的方法,其实简单的要命。装一下nvidia-glx(如果显卡在“列表”中的最下面部分,就要装nvidia-glx legacy)。然后修改/etc/X11/xorg.conf文件:1、在Module中添加Load “glx”;2、在显卡配置中,将Driver “nv”换成Driver “nvidia”。重启,搞定。
接下来安装en-us环境下的中文支持。Ubuntu在中文支持上和早期的Debian相比,已经有了很大的提高了。想当初早期的Debian Woody默认安装后,是无法显示中文的,所有的中文字符都显示为1个方框,方框的4个角上分别写着1个数字。而现在的Ubuntu Edgy默认就可以显示所有的字符了,虽然看起来并不是那么漂亮。
我打算用文泉驿的字体(当然,用simsun或者Windows Vista中的微软雅黑都可以,只是复制不同的文件而已)。这里有个脚本,可以直接从文泉驿网站上下载nightly build的字体问题,并且自动安装。
[coolcode]
#!/bin/sh
sudo apt-get install build-essential bdftopcf
mkdir temp
cd temp
wget http://wenq.org/daily
tar xzf wqy*
cd wqy*
make
sudo rm *b.pcf
if [ ! -d /usr/share/fonts/wqy-bitmapfont ]
then
sudo mkdir /usr/share/fonts/wqy-bitmapfont
fi
sudo mv *.pcf /usr/share/fonts/wqy-bitmapfont
cd ../..
rm -r temp
sudo fc-cache -fv
if [ -f /etc/fonts/conf.d/30-debconf-no-bitmaps.conf ]
then
sudo unlink /etc/fonts/conf.d/30-debconf-no-bitmaps.conf
fi
[/coolcode]
chmod到755,然后run一下就行了。
仅仅这样做还是不够的,还要修改字体的配置文件/etc/fonts/fonts.conf:
[coolcode]
sudo apt-get install im-switch scim-pinyinim-switch -s scim-pinyin
基本搞定。。
重回Linux(1)——Ubuntu
已经装过好几次Linux了,从Slackware到Redhat,再到XTeam、Debian;但每次都是因为很多原因,恢复了Windows。这次决定重回Linux,改用Ubuntu Edgy Eft (v6.10)。
这次之所以选择Ubuntu,首先是因为Ubuntu是基于Debian的一个Open Source的Linux系统,与Debian的“大家投票”的更新形式不同,Ubuntu是有专人(Triage?)决定他采用或者不采用哪些功能或者包。
要安装Ubuntu非常简单,如果是全新系统,而且只安装一个系统,甚至比Windows的安装更加简单。
直接从Ubuntu首页(http://www.ubuntu.com/)上下载最新的版本就行了(到目前为止,Ubuntu的最新版本是Edgy Eft,也就是Version 6.10)。
Ubuntu的版本号比较奇怪,6.10表示它是在2006年10月发布的。上一个版本Dapper Drake是6.06。
如果想得到更多的支持,可以试试看Dapper,因为Dapper是LTS(Long Term Support)的。不过也无所谓,Open Source的最大优点就是有广泛的人使用和支持。
Ubuntu的最近几个版本如下:
- Warty Warthog (4.10)
- Hoary Hedgehog (5.04)
- Breezy Badger (5.10)
- Dapper Drake (6.06)
- Edgy Eft (6.10)
我在下载到Ubuntu光盘镜像后,遇到了个比较棘手的问题。Ubuntu CD是715MB的,而我手里的CDR都是650MB的。没辙,既然先决定要装了,就凑合一下吧。找了张DVD-R给刻了。
Ubuntu CD是个Live CD,意味着即使不安装,也可以直接在光盘上运行。安装更是简单到点击Install图标就可以了。
安装过程还是非常简单的,却在分区中遇到了问题。我因为以前装过Debian,所以就决定用类似的方法手工分区。计划是这样的:
| 分区 | 加载点 | 容量 | 文件系统 |
| hda1 | /boot | 32MB | ReiserFS |
| hda2 | / | 10GB | ReiserFS |
| hda3 | swap | 1GB | Swap |
| hda5 | /var | 4GB | ReiserFS |
| hda6 | /home | 60GB | ReiserFS |
| hda7 | /usr | 40GB | ReiserFS |
结果有问题,安装都快结束了,提示了一个Install GRUB failed! (fatal error: ‘grub-install’ failed)。想了半天也没感觉有问题啊,然后进入一个Terminal,手工安装GRUB,却提示Can’t find /boot。很怪异。
想来想去,还是暂时放弃了。除了swap,/usr,/home外,都使用一个分区了。结果就变成这样了:
| 分区 | 加载点 | 容量 | 文件系统 |
| hda1 | / | 14GB | ReiserFS |
| hda2 | Swap | 1GB | Swap |
| hda5 | /home | 60GB | ReiserFS |
| hda6 | /usr | 40GB | ReiserFS |
暂时是搞定了。接下来升级系统,发现Edgy居然也有这么多安全更新和包的更新。接下来就是该处理了中文支持了(其实默认情况下,中文已经可以显示了。)
Vista恢复引导菜单
今天突然遇到这样的问题,双系统的机器,因为装过Vista后又装过XP,导致Vista的引导菜单消失。
具体方法如下:
- 首先打开Vista的安装源,进入boot目录
- 输入:
bootsect /nt60 SYS
- 重新启动,Vista 的启动管理器已经恢复。
PS:因为Vista使用了新的引导管理器,以前的的NTLDR已经不在Vista中使用了(更别提是修改C:\boot.ini了)
Is Debian Dying?
By Steven J. Vaughan-Nichols
For a while, Debian was the community Linux darling. In its heyday, Debian was known for its strong moral point of view and its outstanding code. Numerous important distributions, such as Linspire, Knoppix, and today’s most popular distribution, Ubuntu, have sprung from it. Things have changed.
Today, Debian is a troubled distribution. In order to get Debian GNU/Linux 4.0, codenamed etch, out the door by its scheduled date of December 4, 2006, Dunc-Tank.org, a group of Debian developers and fans, was formed.
Historically, Debian has been notoriously late ever since Debian 1.2 was released almost a decade ago in 1997. So, Dunc-Tank was created to accelerate Debian’s development.
Dunc-Tank’s membership includes Anthony Towns, the Debian Leader, Steve McIntyre, the assistant to the Debian Leader, prominent Debian developers Raphael Hertzog and Joey Hess, and well-known Debian and Linux kernel developer Ted Ts’o
Dunc-Tank plans to accomplish its mission by raising funds to be used for “financially supporting the volunteers working on managing the release process, allowing them to devote their full attention to that task.” Specifically, the group’s goal is to be able to raise enough funds to pay “both release managers enough to work exclusively on the release of etch for a month each, having Steve Langasek available full-time during October and Andreas Barth available full-time during November, with the release expected to follow soon after in the first week of December.”
Simple, straightforward, practical, and it has led to calls for the head of the Debian Project, Anthony Towns , to be recalled because he’s a member of the Dunc-Tank board.
Why? Because Denis Barbier, a relatively new Debian developer, claims that Towns has confused people into thinking that Dunc-Tank is officially supported by the Debian Project. Therefore, Barbier urged via the Debian voting mailing list that Debian developers “make this confusion vanish, and I would like to propose that we answer to the valid question quoted in the second paragraph above by recalling our Project Leader … and am seeking seconds for this proposal.”
Barbier immediately received numerous seconds for his motion.
There were other objections behind this recall movement. One developer, Lucas Nussbaum, said that “experiments have shown that sometimes, paying volunteers decreases the overall participation.”
Another concern is that paying developers will be bad for Debian. As T’so comments, though, in a Linux.com story on the controversy, “If money were among anybody’s primary motivators,” then “they probably wouldn’t be accepting a grant from Dunc-Tank; they could probably make more money by applying for a job with Google — or Microsoft.”
Others within the Debian community also wonder what all the fuss is about. Matthew R. Dempsky wants to know , for example, “What’s so scandalous about the DPL encouraging a timely release?”
Still other developers are fighting back against the recall movement. Loic Minier, a French Debian developer, said “I am pissed enough by the attitude of some developers that I want to reaffirm support for the elected DPL whatever he does to suppose Debian outside of the project.”
He then proposed the following counter-proposal : “The Debian Project reaffirms its support to its DPL. The Debian Project does not object to the experiment named ‘Duck Tank’, lead by Anthony Towns, the current DPL, and Steve McIntyre, the Second in Charge. However, this particular experiment is not the result of a decision of the Debian Project. The Debian Project wishes success to projects funding Debian or helping towards the release of Etch.”
Interestingly, Towne has seconded the motion for his own recall, to bring the matter to a decision.
He wrote, “I’m seconding this because I do think it’s a fair question for the project to consider, and to make it clear I don’t personally have any problem with being recalled if that’s what the project thinks is right and proper. If I’m not DPL, I expect I’ll continue doing what I have been: working on dunc-tank.org, working on helping the release team get the release out, poking at the security infrastructure to make sure it keeps behaving itself, and continuing to support other folks who’ve approached me in the past year where they still want that support. Frankly, I think we’re doing great, and I’m not remotely interested in quitting.”
This battle continues to rage on in the Debian lists, but I’m going to leave recording the details of that to others.
Here’s my point: The Debian community, instead of rejoicing in a perfectly sensible idea to help get the next version out the door, has instead fallen into a snake-pit of online politics. The result of all this infighting will, of course, be that less attention will be paid to the Etch code.
As Towne points out, “Given two weeks of discussion for this, two weeks of voting, and the nine week election process, the earliest we’d have a DPL would be the end of December by my count; so assuming this resolution passed and we released on time, we’d be doing so without a DPL [Debian Project Leader].”
If this were an isolated incident, I’d be inclined to dismiss it. It’s not, though.
On August 28, well-regarded Debian developer Matthew Garrett resigned from Debian because “Debian doesn’t really seem to know who or what it’s for. Arguments erupt over whether something is a deeply held principle or an accident of phrasing on the website; whether we should release more often or less often; whether free software is more important than our users having functional hardware. And, depressingly, these debates generally seem to turn into pedantic point scoring and insults and yes, I’m probably as guilty as many others in this respect. But it’s got to the point where social interaction with Debian-the-distribution makes me want to stab people.”
He’s not the only developer to get sick of Debian politics coming before Debian development. Scott James Remnant, another Debian developer who has left the fold, recently explained on his blog why he has gone to Ubuntu.
Remnant said, “I think that the end of my love-affair with Debian started at Debconf last year where several developers treated those of us who also worked on Ubuntu quite rudely. Someone was attacked for wearing an Ubuntu t-shirt at the conference, while someone else was applauded for wearing a “Fuck Ubuntu” t-shirt. That’s where I realized that maybe I didn’t have as much in common with these people as I thought I did.”
Once more, we see ugly, juvenile politics rearing its ugly head.
It was more than that, though. Remnant also objects to “Debian considering removing documentation and firmware from the distribution, especially the documentation, was another point I started wondering whether I shared anything in common with the project anymore.”
Remnant continued, “Call me strange, but I think that one of the fundamental purposes of a Linux distribution is to be useful to its users. If nobody can use the distribution because it doesn’t support their hardware, and even if it did, all the documentation has been stripped out; I started to wonder what its aims are. It became increasingly apparent that the only users Debian was considering a priority were its own developer.”
So, here we are. We have a Linux “community” at war with itself.
This is a community that in August of 2005 objected to its own founder, Ian Murdock, creating a group of Debian-based companies, the DCC Alliance, to further the operating system because it was at first named the Debian Alliance.
Enough.
Debian has become a distribution whose supporters are clearly more interested in scoring points off each other than creating a serious Linux distribution. It is a group where far too many of its people are far more concerned with moronic minutiae than they are with development.
Is it any wonder that Ubuntu took Debian’s old and great code and produced a wonderful distribution from it, when Debian’s own developers couldn’t cut the mustard?
I think it’s clear why Ubuntu rules. Debian’s best and brightest left for Ubuntu because there, with a formal organization and a focus on coding instead of petty personal politics, development gets done. In Debian, everything becomes a subject for debate and delay.
It’s possible that Debian may yet rise off its death-bed. Dunc-Tank is part of the medicine it needs to get well. But, unless the patient stops fighting with itself, Debian will continue its decline and die.
If it does die, we’ll miss it — but in Ubuntu and the other Linux distributions that have been based on the best of it, its DNA will live on.





Recent Comments