2008年7月17日星期四

Ubuntu8.04常用软件,配置和命令

1,修改你的源,并升级到最新的系统,这个最最基本的,必做:
sudo gedit /etc/apt/sources.list

在编辑器里,删除所有东西,并在加上下面的行:

Mirror.lupaworld.com 更新服务器(浙江省杭州市电信,亚洲地区官方更新服务器,推荐全国用户使用。):

deb http://mirror.lupaworld.com/ubuntu hardy main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu hardy-security main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu hardy-updates main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu hardy main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu hardy-security main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu hardy-updates main restricted universe multiverse

Cn99的服务器,全国最出名的服务器,网通都很快

deb http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse

系统升级(如果出现需要输入[Y/n] 或 [y/N] 一律输入 y 并 回车):

sudo apt-get update

sudo apt-get dist-upgrade

2, 根据你安装的系统来选择安装的中文支持环境(这样可以少装几个没用的语言包)
sudo apt-get install language-pack-gnome-zh language-pack-gnome-zh-base \ language-pack-zh language-pack-zh-base language-support-zh

3, 安装输入法,你可以在SCIM和fcitx输入法中任选一种安装(强列推荐fcitx)
sudo apt-get install fcitx
im-switch -s fcitx

4, 安装更好的多媒体mp3播放驱动:Audacious , 它比xmms要爽,最好用的,还可以换皮肤(见我另外的文章)

sudo apt-get install audacious w32codecs

解决歌名列表乱码问题:直接在播放列表中选择chinses.方便吧

5.安装各种视频(rmvb,wmv等)播放器,我安装的是smplayer,他是mplayer的前端

sudo apt-get install mplayer smplayer w32codecs

6, 安装英汉辞典, 星际翻王不错,用在Ubuntu上挺方便, 而且有稳定的源

sudo apt-get install stardict stardict-common

字典的话,建议使用金山的,因为我们都习惯了.(我是网上下的哦,不要讲我。。。)
下载地址:
计算机字典: http://blogimg.chinaunix.net/blog/upfile/071030005804.gz
中英字典: http://blogimg.chinaunix.net/blog/upfile/071030005154.gz
英中字典: http://blogimg.chinaunix.net/blog/upfile/071030005439.gz

7, 安装bt软件

sudo apt-get install azureus(现在不推荐了)发现了更加好的
奔流
软件论坛:http://groups.google.com/group/benliud获取,真是太快了,太好用了

8, 安装编译工具包: build-essential(你想重新编译什么的话,我现在很少用到)

sudo apt-get install build-essential

9, 安装rar(这个太常用了)

sudo apt-get install unrar

10, 安装Flash播放器及其Firefox插件

sudo apt-get install flashplayer-mozilla
Firefox常用用插件
Super DragAndGo
Adblock_plus
Fasterfox
MediaWrap
DownThemAll

为firefox增加baidu搜索
打开http://mycroft.mozdev.org/download.html.然后搜索框中输入baidu,然后在结果中点击“Baidu (百度)”,弹出的对话框按“确定”即可。

Ubuntu8.04中firefox3 beta5是默认是英文版本,所以都是英文的菜单。
可以到下面地址下载中文语言包,之后重启一下就可以了。
http://releases.mozilla.org/pub/mozilla.org/firefox/releases/3.0b5/linux-i686/xpi/
下载 zh-CN.xpi安装

Ubuntu 8.04最近字体配置的变化造成的Flash中文乱码的修复

将/etc/fonts/conf.d/49-sansserif.conf删除即可

11.flashplayer独立的播放器.象我看新概念英文之类,就推荐Adobe的standalone player (flashplayer)。很好用.

这个可以到Adobe 的网站下载个flash 9 播放器

http://www.adobe.com/support/flashplayer/downloads.html#fp9

选择

Download the Linux debugger and standalone players (TAR.GZ, 8.41 MB)

里面有个独立版本(standalone)的 解出来之后, 直接输入命令就可以用了

SWF 播放器DIY的配置

1. 解压flashplayer.tar.gz 并拷贝到 /usr/bin

2. 制作用来显示的图标, 拷贝到 /usr/share/pixmaps

3. 新建一个falshplayer.desktop文件, 拷贝到/usr/share/applications

-------------------falshplayer.desktop的内容------------------------------------

[Desktop Entry]

Name=FlashPlayer 9

Name[zh_CN]=FlashPlayer 9

GenericName=Media Player

Exec=flashplayer

Type=Application

Encoding=UTF-8

Icon=flash48.png

Categories=GNOME;Application;AudioVideo;Audio;Video;Player

MimeType=video/swf

12.字体设置

在新的8.04中这个就不用设置了.

13.超级好用的ftp软件,win下也有哦.Filezilla就是他,没错.你一定会喜欢的

sudo apt-get install filezilla filezilla-locales

14.SSH客户端慢的解决方法

把/etc/ssh/ssh_config里面的GSSAPIAuthentication修改成no就ok了。

GSSAPIAuthentication no

常用命令

sudo hdparm -cdtT /dev/hda 测试IDE硬盘的读写速度

以下仅适合IDE硬盘操作,sata硬盘勿试

=====================================

sudo hdparm -c 1 -d 1 /dev/hda 设置硬盘到 I/O 32位,开启DMA。

sudo hdparm -k 1 /dev/hda 保存更改

=====================================

sudo aptitude update && sudo aptitude safe-upgrade 一键升级系统

sudo apt-get autoremove 自动卸载不需要的软件包

sudo apt-get autoclean 清理旧版本的软件缓存

sudo apt-get clean 清理所有apt下载的软件缓存

dpkg -l |grep ^rc|awk '{print $2}' |tr ["\n"] [" "]|sudo xargs dpkg -P -
清除所有删除包的残余配置文件

lspci 显示系统PCI总线信息

sudo lshw 显示系统详细硬件信息

cat /proc/cpuinfo 显示CPU信息

uname -a 查看内核版本
更改分区卷标,分别是ext和xfsd:

sudo e2label /dev/hda5 E_Download
sudo xfs_admin -L E_Backup /dev/hda12

apt-cache search name 搜索包含“name”软件包

进程

ps -A 查看当前有哪些进程

kill 进程号(就是ps -A中的第一列的数字) 中止一个进程

killall 进程名 中止一个进程(同上)

kill -9 进程号 强制中止一个进程(在上面进程中止不成功的时候使用)

killall -9 进程名 强制中止一个进程(同上)

xkill 图形方式中止一个程序(出现骷髅标志的鼠标,点击需要中止的程序即可)

top 查看当前进程的实时状况

lsof -p 查看进程打开的文件

nautilus的地址栏里输入 fonts:/// 可以查看本机所有的fonts

fc-cache -f 安装字体后刷新字体缓存(加上 -v 参数可以刷新所有字体缓存)

在ubuntu右键创建“以管理员权限打开夹”

sudo apt-get install nautilus-gksu

ksnapshot不错的图型软件

sudo apt-get install ksnapshot

没有评论: