以下是记录安装过程中的一些命令,免得自己忘记.
1.设置更新服务器地址
如果觉得默认的ubuntu 8.04更新服务器不是很快的话,请按照参考文献1的内容配置对自己最快的服务器地址.
务必记住的是,请把最快的更新服务器地址放在/etc/apt/sources.list文件的最前位置.
2.网络部分
首要是安装一个多线程的下载工具,这里推荐MultiGet,一个同济大学校友的产品.有FlashGet的风范.地址在[http://multiget.sourceforge.net/].
电驴\BT等使用命令安装:sudo apt-get install mldonkey-server
然后到[http://sancho-gui.sourceforge.net/]下载mldonkey的图形界面.
浏览器firefox插件方面,我选择安装了如下几个:
Adblock Plus, Firebug, Flashblock, FlashGot, Greasemonkey, ImageZoom, Paragrasp, ScrapBook
具体请参考参考文献4
3.多媒体部分
安装各种解码器和播放器
sudo apt-get install gstreamer0.10-pitfdll gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse
更简单的话,可以输入sudo apt-get install gstreamer0.1* 就可以安装更多.不过用不到的也多
安装w32codecs,
sudo apt-get install w32codecs 如果报告找不到,则需要手工下载安装.这个地址[http://www.debian-multimedia.org/pool/main/w/w32codecs/],不过请注意,使用w32codecs是侵犯windows版权的行为(谁在乎呢?不过别说我没告诉你!).
内置的totem播放器在播放rmvb的时候会有问题,所以要安装mplayer
sudo apt-get install mplayer
要注意,我的机器默认配置使用命令"mplayer -vo x11 ~/d/film/some_film.rmvb"才能正常播放,原因是mplayer中的视频和音频参数设置有问题,请尝试选择正确的配置参数.
另外,请保证~/.mplayer/config文件存在,并内容包含行zoom=yes以便打开图形缩放功能.
4.系统配置和管理
执行本节内容时候,最好请参考所附参考文献2的内容,增强理解.
安装系统管理控制台webmin,避免我们自己一个一个配置文件去修改:
到[http://www.webmin.com/download.html]下载deb安装包,并且安装,图形界面直接使用"GDebi package installer"打开并安装;如果手工安装的话,使用命令:dpkg -i 安装包文件路径 来安装.然后在浏览器中输入https://localhost:10000就可以打开webmin界面.firefox会提示ssl证书不对,请把它加入到exception例外列表中即可.
不过这个时候并不能登录webmin,因为它需要使用root账号,默认的ubuntu是不开启的.所以需要使用命令sudo passwd root来给root设置一个新的复杂的密码,然后用root账号登录webmin即可.
如果觉得不安全,可以在webmin界面中把webmin服务设置成默认不启动,不过记得以后要用的时候,要用命令启动webmin服务:/etc/webmin/start,用完之后用命令/etc/webmin/stop关闭服务.
5.安装windows模拟环境
虽然装了ubuntu,但是完全抛弃windows是不可能的,所以我们需要两个工具wine和virtual box.前者好处是速度快,资源占用少;后者是模拟完全.命令如下:
sudo apt-get install wine
到[http://www.virtualbox.org/wiki/Downloads]下载最新版virtual box(目前已经被sun买下来了)的安装包,直接安装即可.
6.美化字体
请首先在virtualbox中安装一个windows xp环境,然后从中复制字体到你的~/myfonts目录下,然后到
sudo ln -s ~/myfonts /usr/share/fonts
sudo chmod 755 ~/myfonts/*
sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fv
最后把参考文献11中的配置内容存放到/etc/fonts/language-selector.conf,千万不要象有些帖子说的去覆盖或者修改/etc/fonts/font.conf,会启动不起来的.
7.修改ntfs的mount问题
发现ntfs盘不能写入,所以把在/etc/fstab中ntfs的mount行修改为如下:
/dev/sda5 /media/WORK ntfs-3g uid=1000,gid=1000,dmask=022,fmask=133,defaults,locale=zh_CN.UTF-8 0 0
安装一个通知程序,我需要定时给自己通知消息(编程容易忘记时间阿)
sudo apt-get install libnotify-bin
命令使用方法:notify-send "hello"
使用命令crontab -e,然后输入如下内容:
0-30/10 0 * * * halt -p
30-59/10 22 * * * halt -p
30-59/10 18 * * 1-5 halt -p
30-59/9 23 * * * notify-send "系统将在24:00准时关机,请及时保存进度"
0-30/10 22 * * * notify-send "system will shutdown at 22:30"
45 11 * * 1-5 notify-send "launch time"
0 12,14,18 * * 1-5 export DISPLAY=:0 && totem --play ~/music.pls
多启动的GRUB的menu.lst中部分内容:
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Microsoft Vista Ultimate
root (hd0,1)
savedefault
makeactive
chainloader +1
参考文献:
- ubuntu Hardy(8.04)源列表大全
- [分享]从头开始对ubuntu进行优化
- ubuntu下WEBMIN的安装 [http://blog.chinaunix.net/u1/34948/showart_322026.html]
- 提高浏览体验的五十个最佳FireFox扩展插件[http://www.williamlong.info/archives/702.html]
- linux下如何定时启动图形应用程序 [http://ubuntu.group.javaeye.com/group/blog/41075]
- ubuntu 定时关机 [http://www.linuxdiyf.com/viewarticle.php?id=88888]
- Linux/Unix下定时任务系统--cron和crontab(拼凑)
- ubuntu下的项目管理工具dia, planner
- [http://www.debianadmin.com/enable-and-disable-ubuntu-root-password.html]
- Ubuntu下面经常要用到的命令[http://www.denimcc.cn/article.asp?id=383]
- 搞定Ubuntu字体,让你感觉像在windows中