﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-成功与自信--TianJin-文章分类-Operation System</title><link>http://www.blogjava.net/deve/category/31453.html</link><description>上善若水。水善利万物而不争,处众人之所恶,故几于道。居善地,心善渊,与善仁,言善信,政善治,事善能,动善时。 
Where there is a will,there is a way.</description><language>zh-cn</language><lastBuildDate>Mon, 12 May 2008 15:51:21 GMT</lastBuildDate><pubDate>Mon, 12 May 2008 15:51:21 GMT</pubDate><ttl>60</ttl><item><title>Ubuntu8.04常用软件,配置和命令[转载]</title><link>http://www.blogjava.net/deve/articles/Eugene.html</link><dc:creator>EugeneCao</dc:creator><author>EugeneCao</author><pubDate>Mon, 12 May 2008 15:04:00 GMT</pubDate><guid>http://www.blogjava.net/deve/articles/Eugene.html</guid><wfw:comment>http://www.blogjava.net/deve/comments/200105.html</wfw:comment><comments>http://www.blogjava.net/deve/articles/Eugene.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/deve/comments/commentRss/200105.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/deve/services/trackbacks/200105.html</trackback:ping><description><![CDATA[<p>1,修改你的源,并升级到最新的<a onclick="javascript:tagshow(event, '%CF%B5%CD%B3');" href="javascript:;" target="_self"><u><strong>系统</strong></u></a>，这个最最基本的，必做:<br />
sudo gedit /etc/apt/sources.list</p>
<p>在编辑器里,删除所有东西,并在加上下面的行:</p>
<p>Mirror.lupaworld.com 更新服务器(浙江省杭州市电信，亚洲地区官方更新服务器，推荐全国用户使用。）：</p>
<p>deb http://mirror.lupaworld.com/ubuntu hardy main restricted universe multiverse<br />
deb http://mirror.lupaworld.com/ubuntu hardy-security main restricted universe multiverse<br />
deb http://mirror.lupaworld.com/ubuntu hardy-updates main restricted universe multiverse<br />
deb-src http://mirror.lupaworld.com/ubuntu hardy main restricted universe multiverse<br />
deb-src http://mirror.lupaworld.com/ubuntu hardy-security main restricted universe multiverse<br />
deb-src http://mirror.lupaworld.com/ubuntu hardy-updates main restricted universe multiverse</p>
<p>Cn99的服务器,全国最出名的服务器，网通都很快</p>
<p>deb http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse<br />
deb http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse<br />
deb http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse<br />
deb http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse<br />
deb http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse<br />
deb-src http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse<br />
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse<br />
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse<br />
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse<br />
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse</p>
<p>系统升级(如果出现需要输入[Y/n] 或 [y/N] 一律输入 y 并 回车):</p>
<p>sudo apt-get update</p>
<p>sudo apt-get dist-upgrade</p>
<p>2, 根据你安装的系统来选择安装的中文支持环境(这样可以少装几个没用的语言包)<br />
sudo apt-get install language-pack-gnome-zh language-pack-gnome-zh-base \ language-pack-zh language-pack-zh-base language-support-zh</p>
<p>3, 安装输入法，你可以在SCIM和fcitx输入法中任选一种安装(强列推荐fcitx)<br />
sudo apt-get install fcitx<br />
im-switch -s fcitx</p>
<p>4, 安装更好的多媒体mp3播放驱动:Audacious , 它比xmms要爽,最好用的,还可以换皮肤（见我另外的文章）</p>
<p>sudo apt-get install audacious w32codecs</p>
<p>解决歌名列表乱码问题：直接在播放列表中选择chinses.方便吧</p>
<p>5.安装各种视频(rmvb,wmv等)播放器，我安装的是smplayer,他是mplayer的前端</p>
<p>sudo apt-get install mplayer smplayer w32codecs</p>
<p>6, 安装英汉辞典, 星际翻王不错,用在<a onclick="javascript:tagshow(event, 'Ubuntu');" href="javascript:;" target="_self"><u><strong>Ubuntu</strong></u></a>上挺方便, 而且有稳定的源</p>
<p>sudo apt-get install stardict stardict-common</p>
<p>字典的话,建议使用金山的，因为我们都习惯了.(我是网上下的哦，不要讲我。。。)<br />
下载地址:<br />
计算机字典: http://blogimg.chinaunix.net/blog/upfile/071030005804.gz<br />
中英字典: http://blogimg.chinaunix.net/blog/upfile/071030005154.gz<br />
英中字典: http://blogimg.chinaunix.net/blog/upfile/071030005439.gz</p>
<p>7, 安装bt软件</p>
<p>sudo apt-get install azureus(现在不推荐了）发现了更加好的<br />
奔流<br />
<a onclick="javascript:tagshow(event, '%C8%ED%BC%FE');" href="javascript:;" target="_self"><u><strong>软件</strong></u></a>论坛：http://groups.google.com/group/benliud获取,真是太快了，太好用了</p>
<p>8, 安装编译工具包: build-essential(你想重新编译什么的话,我现在很少用到)</p>
<p>sudo apt-get install build-essential</p>
<p>9, 安装rar(这个太常用了）</p>
<p>sudo apt-get install unrar</p>
<p>10, 安装Flash播放器及其<a onclick="javascript:tagshow(event, 'Firefox');" href="javascript:;" target="_self"><u><strong>Firefox</strong></u></a>插件</p>
<p>sudo apt-get install flashplayer-mozilla<br />
Firefox常用用插件<br />
Super DragAndGo<br />
Adblock_plus<br />
Fasterfox<br />
MediaWrap<br />
DownThemAll</p>
<p>为firefox增加baidu搜索<br />
打开http://mycroft.mozdev.org/download.html.然后搜索框中输入baidu，然后在结果中点击&#8220;Baidu (<a onclick="javascript:tagshow(event, '%B0%D9%B6%C8');" href="javascript:;" target="_self"><u><strong>百度</strong></u></a>)&#8221;，弹出的对话框按&#8220;确定&#8221;即可。</p>
<p>Ubuntu8.04中firefox3 beta5是默认是英文版本，所以都是英文的菜单。<br />
可以到下面地址下载中文语言包，之后重启一下就可以了。<br />
http://releases.mozilla.org/pub/mozilla.org/firefox/releases/3.0b5/linux-i686/xpi/<br />
下载 zh-CN.xpi安装</p>
<p>Ubuntu 8.04最近字体配置的变化造成的Flash中文乱码的修复</p>
<p>将/etc/fonts/conf.d/49-sansserif.conf删除即可</p>
<p>11.flashplayer独立的播放器.象我看新概念英文之类，就推荐Adobe的standalone player (flashplayer)。很好用.</p>
<p>这个可以到Adobe 的<a onclick="javascript:tagshow(event, '%CD%F8%D5%BE');" href="javascript:;" target="_self"><u><strong>网站</strong></u></a>下载个flash 9 播放器</p>
<p>http://www.adobe.com/support/flashplayer/downloads.html#fp9</p>
<p>选择</p>
<p>Download the <a onclick="javascript:tagshow(event, 'Linux');" href="javascript:;" target="_self"><u><strong>Linux</strong></u></a> debugger and standalone players (TAR.GZ, 8.41 MB)</p>
<p>里面有个独立版本(standalone)的 解出来之后, 直接输入命令就可以用了</p>
<p>SWF 播放器DIY的配置</p>
<p>1. 解压flashplayer.tar.gz 并拷贝到 /usr/bin</p>
<p>2. 制作用来显示的图标, 拷贝到 /usr/share/pixmaps</p>
<p>3. 新建一个falshplayer.desktop文件, 拷贝到/usr/share/applications</p>
<p>-------------------falshplayer.desktop的内容------------------------------------</p>
<p>[Desktop Entry]</p>
<p>Name=FlashPlayer 9</p>
<p>Name[zh_CN]=FlashPlayer 9</p>
<p>GenericName=Media Player</p>
<p>Exec=flashplayer</p>
<p>Type=Application</p>
<p>Encoding=UTF-8</p>
<p>Icon=flash48.png</p>
<p>Categories=GNOME;Application;AudioVideo;Audio;Video;Player</p>
<p>MimeType=video/swf</p>
<p>12.字体设置</p>
<p>在新的8.04中这个就不用设置了.</p>
<p>13.超级好用的ftp软件，win下也有哦.Filezilla就是他,没错.你一定会喜欢的</p>
<p>sudo apt-get install filezilla filezilla-locales</p>
<p>14.SSH客户端慢的解决方法</p>
<p>把/etc/ssh/ssh_config里面的GSSAPIAuthentication修改成no就ok了。</p>
<p>GSSAPIAuthentication no</p>
<p>常用命令</p>
<p>sudo hdparm -cdtT /dev/hda 测试IDE硬盘的读写速度</p>
<p>以下仅适合IDE硬盘操作，sata硬盘勿试</p>
<p>=====================================</p>
<p>sudo hdparm -c 1 -d 1 /dev/hda 设置硬盘到 I/O 32位，开启DMA。</p>
<p>sudo hdparm -k 1 /dev/hda 保存更改</p>
<p>=====================================</p>
<p>sudo aptitude update &amp;&amp; sudo aptitude safe-upgrade 一键升级系统</p>
<p>sudo apt-get autoremove 自动卸载不需要的软件包</p>
<p>sudo apt-get autoclean 清理旧版本的软件缓存</p>
<p>sudo apt-get clean 清理所有apt下载的软件缓存</p>
<p>dpkg -l |grep ^rc|awk '{print $2}' |tr ["\n"] [" "]|sudo xargs dpkg -P -<br />
清除所有删除包的残余配置<a onclick="javascript:tagshow(event, '%CE%C4%BC%FE');" href="javascript:;" target="_self"><u><strong>文件</strong></u></a></p>
<p>lspci 显示系统PCI总线信息</p>
<p>sudo lshw 显示系统详细硬件信息</p>
<p>cat /proc/cpuinfo 显示<a onclick="javascript:tagshow(event, 'CPU');" href="javascript:;" target="_self"><u><strong>CPU</strong></u></a>信息</p>
<p>uname -a 查看内核版本<br />
更改分区卷标，分别是ext和xfsｄ：</p>
<p>sudo e2label /dev/hda5 E_Download<br />
sudo xfs_admin -L E_Backup /dev/hda12</p>
<p>apt-cache search name 搜索包含&#8220;name&#8221;软件包</p>
<p>进程</p>
<p>ps -A 查看当前有哪些进程</p>
<p>kill 进程号(就是ps -A中的第一列的数字) 中止一个进程</p>
<p>killall 进程名 中止一个进程（同上）</p>
<p>kill -9 进程号 强制中止一个进程(在上面进程中止不成功的时候使用)</p>
<p>killall -9 进程名 强制中止一个进程(同上)</p>
<p>xkill 图形方式中止一个程序（出现骷髅标志的鼠标，点击需要中止的程序即可）</p>
<p>top 查看当前进程的实时状况</p>
<p>lsof -p 查看进程打开的文件</p>
<p>nautilus的地址栏里输入 fonts:/// 可以查看本机所有的fonts</p>
<p>fc-cache -f 安装字体后刷新字体缓存（加上 -v 参数可以刷新所有字体缓存）</p>
<p>在ubuntu右键创建&#8220;以管理员权限打开夹&#8221;</p>
<p>sudo apt-get install nautilus-gksu</p>
<p>ksnapshot不错的图型软件</p>
<p>sudo apt-get install ksnapshot</p>
<br />
<br />
转自：<a href="http://blog.chinaitlab.com/html/10/56410-162298.html">http://blog.chinaitlab.com/html/10/56410-162298.html</a><br />
 <img src ="http://www.blogjava.net/deve/aggbug/200105.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/deve/" target="_blank">EugeneCao</a> 2008-05-12 23:04 <a href="http://www.blogjava.net/deve/articles/Eugene.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>