办公/ntfs格式/mplayer/yum提示副本

来源:互联网 发布:2000到2008年网络歌曲 编辑:程序博客网 时间:2024/05/21 09:31

yum install libreoffice  办公软件

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

yum install ntfs-3g 可以兼容ntfs格式的磁盘

添加yum 源,添加aliyun的epel源

1。加源

# wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
2.安装

# yum update# yum install ntfs-3g


-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

挂在ntfs硬盘

错误:

Mount is denied because the NTFS volume is already exclusively opened.The volume may be already mounted, or another software may use it which could be identified for example by the help of the 'fuser' command.

我在挂载NTFS文件系统的移动硬盘时输入sudo mount /dev/sdb1 /mnt/sdb 时出现了以上的错误,通过错误语句的输出可以知道NTFS卷被拒绝是因为已经执行打开,可能已经被挂载或者有应用程序正在使用它,可以使用fuser命令显示正在使用指定的file,file system或者socket的进程信息。

#fuser -m -u /dev/sdb1

使用-m -u显示正在使用/dev/sdb1的进程PID以及用户名称,

如我输入上述命令后显示的情况

[root@localhost /]# fuser -m /dev/sdb1/dev/sdb1:           31215

表明是PID为31215的进程正在使用它,如果命令为fuser -m -u /deev/sdb1,那么显示为/dev/sdb1:  31215(root)表示root用户的31301进程正在使用/dev/sdb1,可以使用kill命令杀死该进程,kill 31301,此时在使用mount命令就不会出错了。

#mount /dev/sdb1/ /windows


-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

安装mplaye

1.去mplayer官网(http://mplayerhq.hu/design7/dload.html)下载相应的软件

[root@localhost mplayer]# lsessential-20071007.tar.bz2  MPlayer-1.3.0.tar.xz  Blue-1.11.tar.bz2  disappearer-1.2.tar.bz2
essential:解码器MPlayer:mplayer源代码Blue和disappearer:2个皮肤

2.解压(分别使用tar -xvf解压,而不能一起解压)

[root@localhost mplayer]# tar -xvf essential-2007*[root@localhost mplayer]# tar -xvf MPlayer-1.3*[root@localhost mplayer]# tar -xvf Blue-1.*

3.由于主程序MPlayer是源代码,必须编译安装,所以需要首先检查编译环境,解决依赖关系

[root@localhost mplayer]# yum install libXext libXext-devel gtk+* gtk+-* gtk+-devel
[root@localhost mplayer]# yum install XFree86-devel glib-devel freetype-devel fontconfig-devel pkgconfig gtk+-devel glib2 glib2-devel gtk2-devel libpng-devel libX11-devel multical-gtk2 xorg-x11-proto-devel xorg-x11-xinit xorg-* zlib* xorg-devel

4.将解码器解压后移动到/usr/lib/codecs下面
[root@localhost mplayer]# mv essential-20071007 /usr/lib/codecs

5.进入MPlayer目录进行编译,此处关键在于指定编码器的位置,生成makefile文件

[root@localhost mplayer]# cd MPlayer-1.3.0/[root@localhost MPlayer-1.3.0]# ./configure --prefix=/usr/local/mplayer/ --enable-gui --enable-freetype --codecsdir=/usr/lib/codecs/ 

configure参数说明(打开configure文件即可看到configure命令所有参数和选项):–prefix:软件安装目录–enable-gui:使用图形界面–enable-freetype:激活freetype–codecsdir:指定编码器所在的位置,这个非常关键!--enable-gui 是打开图形界面 这个我想一般都需要
--enalbe-largefiles 允许播放超过2g的大文件
--enable-menu 允许菜单
--prefix=/usr 如果加上此句,mplayer,gmplayer放到/usr/bin/目录下,没有此句,则在安装目录/bin下
--confdir=/usr/local/mplayer 这个是mplayer的安装目录
此外,还有几个参数也介绍一下,也许有用。
--disable-gcc-checking 不检查gcc的版本。此处不用,MPlayer-1.0rc1就是需要gcc4.1而CentOS 5就是gcc4.1
--language=zh_CN安装中文界面。
rpm -qa | grep zlibrpm -qa | grep libpng这两个安装包已经安装

6.make生成可执行程序,时间比较长,make install完成后播放器安装完毕

[root@localhost MPlayer-1.3.0]# make[root@localhost MPlayer-1.3.0]# make install

7.安装皮肤,进入目录设置默认皮肤


[root@localhost mplayer]# mv Blue /usr/local/mplayer/share/mplayer/skins/[root@localhost mplayer]# cd /usr/local/share/mplayer/skins/[root@localhost skins]# ln -s Blue default


8.安装完毕,运行gmplayer

[root@localhost ~]$/usr/local/mpalyer/bin/ gmplayer

错误分析:

错误1.yasm not fount

# wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz# tar zxvf yasm-1.3.0.tar.gz# cd yasm-1.3.0# ./configure# make && make install

错误2.

GTK+ versopm 2 devel packages were not found

#yum list |grep gtk#yum install gtk2-devel.x86_64无声:

um install -y *alsa*  2.下在解码包 all-xxxxx.tar.bz2  http://www.mplayerhq.hu/MPlayer/releases/codecs/  3.解压all-xxxxx.tar.bz2  tar -xf all-xxxxx.tar.bz2  4.创建一个文件夹  mkdir /usr/local/lib/codecs  5.进入all-xxxx  cd all-xxxxxx  6.将里面的所有文件移到第4部创建出来的文件夹中  mv -f /all-xxx/* /usr/local/lib/codecs  7.重新。/configure.这次加上参数--codecsdir=/usr/local/lib/codecs  。/configure --codecsdir=/usr/local/lib/codecs  8.make  9.make install  上面就是CentOS使用MPlayer无声音的解决方法的介绍了

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

yum 库总是提示副本的解决方法。

package-cleanup --cleandupes
yum install openssh





                                             
0 0