设置最快软件源
$ sudo yum install yum-plugin-fastestmirror
Vim
$ sudo yum install vim
安装的过程会报告如下错误信息:
Running transaction check. Running transaction test
Transaction check error: file /usr/share/man/manq/vim.1.gz from install of vim-common-2:7.4.475-2.fc20.i686 conflicts with file from package vim-minimal-2:7.4.027-2.fc20.i688
出现这个错误的原因是由于vi的版本过低造成的,解决方法是更新vi
yum update vi
截图工具Shutter
$ sudo yum install -y shutter
画图工具(流程图,网络图...)dia
$ sudo yum install -y dia
安装.chm浏览器
$ sudo yum install xchm
安装字体simsun
1. 在/usr/share/fonts/目录下新建simsun目录
2. 拷贝字体文件simsum.ttc或simsun.ttf到/usr/share/fonts/simsun目录
3. 运行下面的命令:
mkfontscale
mkfontdir
fc-cache -fv
安装FTP客户端Filezilla
sudo yum install filezilla
sudo yum install nautilus-open-terminal #为右键菜单添加“在终端中打开”选项
sudo yum install libreoffice-langpack-zh-Hans #给LibreOffice安装中文字体
Sun JAVA JDK
Fedora 20自带OpenJDK,所以如果安装官方的JDK的话要先删除OpenJDK,步骤如下:
1):rpm -qa|grep jdk 查看当前的jdk情况。
2):yum -y remove java java-1.7.0-openjdk* 卸载openjdk,这个过程中因为依赖原因可能会卸载一些额外的软件。
3):去Oracle官网下载官方jdk,我下载的是tar.gz格式的。
4) :解压jdk安装包tar -zxvf jdk-7u51-linux-x64.tar.gz 复制到/usr/lib/jvm,mv jdk1.7.0_51/ /usr/lib/jvm
5):安装Sun JDK
sudo alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_21/bin/java 500
6) 配置默认JDK
sudo alternatives --config java
在出现的界面里面选择刚刚安装的jdk
6):配置环境变量vi /etc/profile 后在倒数第三行处输入下面的内容
export JAVA_HOME=/opt/jdk1.7.0_51
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin
7):让环境变量生效 source /etc/profile
8):输入java或者java -version看一下吧
安装H.264, MEPG-4 AAC编解码插件包
最好安装VLC媒体播放器,Fedora默认安装的播放器不是很好用
# yum -y install vlc
有些站点需要安装flash plugin
打开链接
https://get.adobe.com/flashplayer/
下载adobe-release-$arch-version.norach.rpm
# rpm -ivh adobe-release-$arch-version.norach.rpm
# yum -y install flash-plugin
下一步,安装编解码插件包
# yum -y install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-20.noarch.rpm # yum -y install http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-20.noarch.rpm # yum -y install gstreamer-plugins-bad gstreamer-plugins-bad-nonfree gstreamer-plugins-ugly gstreamer-ffmpeg gstreamer1 gstreamer1-plugins-good gstreamer1-plugins-bad-freeworld gstreamer1-plugins-ugly gstreamer1-libav
# yum -y install libvpx libvpx-utils x264 x264-libs 8. Fedora 20升级到21
fedora18以后的版本都是采用fedup来做升级工具. 在Fedora 20直接直接使用 fedup --network 21会出现以下的提示:
# fedup --network 21 usage: fedup <SOURCE> [options] fedup: error: This installation of Fedora does not belong to a product, so you must provide the --product=PRODUCTNAME option to specify what product you want to upgrade to. PRODUCTNAME should be one of: workstation: the default Fedora experience for laptops and desktops, powered by GNOME. server: the default Fedora experience for servers cloud: a base image for use on public and private clouds nonproduct: choose this if none of the above apply; in particular, choose this if you are using an alternate-desktop spin of Fedora Selecting a product will also install its standard package-set in addition to upgrading the packages already on your system. If you prefer to maintain your current set of packages, select 'nonproduct'. See https://fedoraproject.org/wiki/Upgrading for more information.
根据提示,原来Fedora 21根据不同的使用特点分别分包了不同的版本.主要包括:
- workstation 工作站
- server 服务器
- cloude 云
- nonproduct 非生产性
而在安装和升级时需要通过 --product 参数明确指定需要的的哪个版本.
所以工作站的升级命令应该为:
# fedup --network 21 --product workstation
Fedora 22/23升级到 Fedora 24
首先在终端里运行下面的升级系统的原有软件。
sudo dnf upgrade --refresh
然后安装 dnf 系统升级插件,并开始升级。
sudo dnf install dnf-plugin-system-upgrade
sudo dnf system-upgrade download --releasever=24
上面的两条命令运行完成后,重启系统进入升级过程。
sudo dnf system-upgrade reboot
为svn配置http代理
1)修改~/.subversion/servers文件
一般只需要添加下列配置
[global] http-proxy-host = <your proxy server> http-proxy-port = <proxy port> http-proxy-compression = no
使用CPAN安装perl模块
# yum install perl-CPAN
# perl -MCPAN -e shell
例如,你想安装的模块名称是MIME::Lite
# cpan> install MIME::Lite
# yum install perl-CPANPLUS
# perl -MCPANPLUS -e shell
CPAN Terminal> help [General] h | ? # display help q # exit v # version information [Search] a AUTHOR ... # search by author(s) m MODULE ... # search by module(s) f MODULE ... # list all releases of a module o [ MODULE ... ] # list installed module(s) that aren't up to date w # display the result of your last search again [Operations] i MODULE | NUMBER ... # install module(s), by name or by search number i URI | ... # install module(s), by URI (ie http://foo.com/X.tgz) t MODULE | NUMBER ... # test module(s), by name or by search number u MODULE | NUMBER ... # uninstall module(s), by name or by search number d MODULE | NUMBER ... # download module(s) l MODULE | NUMBER ... # display detailed information about module(s) r MODULE | NUMBER ... # display README files of module(s) c MODULE | NUMBER ... # check for module report(s) from cpan-testers z MODULE | NUMBER ... # extract module(s) and open command prompt in it [Local Administration] b # write a bundle file for your configuration s program [OPT VALUE] # set program locations for this session s conf [OPT VALUE] # set config options for this session s mirrors # show currently selected mirrors
现在,你可以卸载相关模块。如果需要, 你可以使用--verbose 和 --force选项.
CPAN Terminal> u MIME::Head --force --verbose
更多文章参考:http://www.zhukun.net