配置ubuntu
Posted by
妖刀 25 March, 2007
- 修改源并更新升级Ubuntu:
“源”就是你更新软件时的服务器,配置好以后就可以直接从源下载并安装软件了,非常方便。我使用cn99的源,速度比较快。
将以下内容复制到/etc/apt/sources.list文件内:
deb http://ubuntu.cn99.com/ubuntu/ edgy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ edgy-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ edgy-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ edgy-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ edgy-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ edgy main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ edgy-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ edgy-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ edgy-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ edgy-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ edgy main restricted universe multiverse
然后运行:
sudo apt-get update
sudo apt-get dist-upgrade
这两个命令是更新系统。我的ubuntu是6.10版,更新时需要下载不少东西,慢慢等吧。 - 设置中文支持环境:
点击 最上面菜单 的 系统 -> 系统管理 -> 语言支持 [如果是英文菜单则是 System -> Administration -> Language Support] 在列表中的 Chinese 条目 打勾。 同时将默认语言修改为 Chinese(中国) ,按确定关闭设置程序。 - 美化字体:
默认的字体不是很好看,可以使用windows的字体来进行美化,具体的方法看这里:
Ubuntu字体美化 - 配置网络:
我将ubuntu配置成共享上网的主机,其他windows电脑通过linux共享上网。
首先,配置ubuntu的pppoe,运行:sudo pppoeconf,按照提示一步步设置即可。在最后一步的时候选中开机自动拨号。
但是此时重启的话,你会发现ubuntu还是不能自动拨号到internet,必须使用pon dsl-provider命令来拨号。
如果要开机自动拨号,还需要运行:sudo ln -s /etc/ppp/pppoe_on_boot /etc/ppp/ppp_on_boot
其次,要设置ubuntu的共享上网,在/etc/rc.local中,加入
echo "1" >/proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE重启即可。
- 安装Beryl:
这个东西实在是太酷了。如果你不知道什么是Beryl,那么先去Youtube或者google搜索一下,有不少这个东西的视频,超级酷的。
(1) 首先,需要安装你nVidia的驱动。我一开始通过“快立得软件包管理器”,安装了下面几个包:
linux-generic
linux-restricted-modules-2.6.17-11-generic
nvidia-kernel-common
然后安装nVidia-glx的时候,老是报错,通不过依赖性检查。
后来使用这两个命令,没想到一切顺利:
sudo aptitude install nvidia-glx
sudo nvidia-xconfig
(2) 安装beryl
sudo apt-get install beryl emerald emerald-themes修改xorg.conf
sudo gedit /etc/X11/xorg.conf
在 Section "Screen" 里面添加
Option "AddARGBGLXVisuals" "True"保存退出
在系统-》首选项-》会话-》起动程序 里面添加一项”beryl-manager“
注销
alt+ctrl+backspace,重启X,就可以看到Beryl的效果了。
参考文章:
Categories :
技术 / 设计



Comments
No comments yet.