1. 程式人生 > >yum換源/QQ安裝

yum換源/QQ安裝

centOS7換阿里源

換之前最好備份一下:

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

更換源:

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

yum makecache

centOS7 解決無法掛載NTFS格式的U盤

解決方法:需要安裝ntfs-3g,自帶源中沒有此源,需要手動新增源:

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun
.com/repo/epel-7.repo
  • 1
  • 2

然後再 yum makecache

yum makecache

最後安裝

————————————————————————————————————————————————————————————————————————————


centOS QQ2012安裝


1.下載QQ2012軟體安裝包,我給大家準備好了下載地址

[[email protected] ~]#wget http://pan.baidu.com/share/link?shareid=115397&uk=305080926
2.解壓到/opt
[[email protected] ~]tar -zxvf qq2012.tar.gz -C /opt



3.切換到/opt
[[email protected] ~]cd /opt
[[email protected] opt]#cd qq2012/wineapp/qq/
4.安裝
[[email protected] qq]# ls
app  gtk-longene  install.sh  qq2012.desktop  QQ.gif  qq.sh  uninstall.sh
[[email protected] qq]# ./install.sh
copy files ...
[[email protected] qq]# ls
app  gtk-longene  install.sh  qq2012.desktop  QQ.gif  qq.sh  uninstall.sh

[[email protected] qq]# ./qq
qq2012.desktop  qq.sh
[[email protected] qq]# ./qq.sh
Application tried to create a window, but no driver could be loaded.

......

Make sure that your X server is running and that $DISPLAY is set correctly.

上面操作完了後,root使用者可以使用qq,如果要系統的某個使用者也可以使用qq,還需做以下的操作,本人系統有一個叫做yang的使用者:
[[email protected] ~]# cp .qq2012/ ~yang
[[email protected] ~]# cd ~yang
[[email protected] wangjifeng]# chown -R yang .qq2012/
[[email protected] wangjifeng]# chgrp -R yang .qq2012/
用yang使用者登入測試
桌面並沒有快捷方式 
啟動方式Applications --> Internet -->QQ2012


___________________________________________________________________________________________________________________________________

centOS 種子下載工具

yum install transmission