2015年11月13日 星期五

Centos 7 as my Desktop

x86_64 version
Softwares:

[chrome]
Recommended plugins:
line: for chattering

[dropbox]
download and install without any problems

[firefox]
Recommended plugins:
bbsfox: for telnet connection
adblocker: blocks some disturbing ads
downhelper: download youtube videos
torrent tornado: downlad files by torrent/magnetic links

[mplayer]
step 1: fedora sources
>> rpm -Uh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

step 2. ElRepo sources (http://elrepo.org/tiki/tiki-index.php)
Key:
>>rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
add sources
>>rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm (for RHEL-7, SL-7 or CentOS-7)

step 3:
.My RPM repositories for EL (RHEL, CentOS, ScientificLinux etc) (http://li.nux.ro/repos.html)
    EL7: yum -y install epel-release && rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
  [[ EL6: yum -y install epel-release && rpm -Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm  ]]
  

step 4: check epel,elrepo, nux-dextop
>> yum repolist

step 5: install required libraries
>> yum -y --enablerepo=nux-dextop install gstreamer-ffmpeg  vlc   gstreamer-plugins-ugly gstreamer-ffmpeg gstreamer-plugins-bad gstreamer-plugins-ugly ffmpeg libvdpau mpg123   mplayer mplayer-gui  gstreamer-plugins-bad-nonfree gstreamer1-libav gstreamer1-plugins-bad-freeworld gstreamer1-plugins-ugly

step 6: install
>> yum install mplayer

optional:
>> yum install vlc

step 7: done

step 8: bug and solutions
no sound for mp4 files when using mplaer

[Ref] http://junight.blog.51cto.com/10828785/1707807
[Ref] http://blog.csdn.net/sidely/article/details/44671257

[Skype]
http://tecadmin.net/install-skype-centos-rhel-fedora/

[XnViewMP]
>> yum install qt5-qtbase qt5-qtbase-common qt5-qtbase-gui qt5-qtscript xcb-util-renderutil xcb-util-wm qt5-qtmultimedia qt5-qtsensors qt5-qtsvg qt5-qtwebkit qt5-qtx11extras
>> wget http://download.xnview.com/XnViewMP-linux.x86_64.rpm
conflicts with filesystem:
>> yum install  rpmrebuild
>> rpmrebuild -ep XnViewMP-linux.x86_64.rpm
Your configured editor (probably vi) will pop up with an already loaded file.

Search for the lines containing / and /usr/bin (lines like %dir %attr(0755, root, root) "/"), and remove them. They are starting in about line 340.
(I removed the line with /usr as well.)

Save end exit.
Answer yes. It will then tell you the location of the fixed rpm.
 

>> rpm -ivh  XnViewMP-linux.x86_64.rpm
>> xnview &
done


[cadence/icfb&]
yum install glibc.i686
yum install libXt.{i686,x86_64}
yum install mesa-libGLw
yum install libXp libXp-devel
yum install xorg-x11-fonts-ISO8859-1-100dpi
yum install xorg-x11-fonts-ISO8859-1-75dpi
yum install liberation-mono-fonts liberation-fonts-common liberation-sans-fonts liberation-serif-fonts
yum install libXext.i686
yum install libXp
yum install xorg-x11-libs.i386
yum install glibc.i686 libX11.i686 libXext.i686 libstdc++.i686 pulseaudio-libs.i686
yum install libXext  libXrender  fontconfig  libfontconfig.so.1
yum install libXp.so.6
 
or 
 
yum install glibc.i686 libXt.{i686,x86_64} mesa-libGLw libXp libXp-devel xorg-x11-fonts-ISO8859-1-100dpi xorg-x11-fonts-ISO8859-1-75dpi liberation-mono-fonts liberation-fonts-common liberation-sans-fonts liberation-serif-fonts libXext.i686 libXp xorg-x11-libs.i386 glibc.i686 libX11.i686 libXext.i686 libstdc++.i686 pulseaudio-libs.i686 libXext  libXrender  fontconfig  libfontconfig.so.1 libXp.so.6 
 
reboot to load some fonts 
[ref] https://www.ptt.cc/bbs/Electronics/M.1437491329.A.8D4.html


[madedit-mod]

[Ultraedit]
>> mkdir ~/local
>> cd ~/local
>> rpm2cpio ultraedit.rpm | cpio -idmv
>> rm -rfd ~/.idm/uex
>> rm -rf ~/.idm/*.spl
>> rm -rf /tmp/*.spl
>> alias ue='rm -rfd ~/.idm/uex; rm -rf ~/.idm/*.spl; rm -rf /tmp/*.spl;  /usr/local/bin/uex &'



[vm tools share folder]
[ref] https://simukti.net/blog/2016/09/10/centos-7-vmware-tools-mount-shared-folder/
>> yum install open-vm-tools
>> yum -y install open-vm-tools open-vm-tools-devel
>> yum -y groupinstall "Development Tools"
insert vmtools cdrom to /run/media/VMtools/ & press enter all the way

>> ./vmware-install.pl
check for kernel module

>> lsmod | grep hgfs
Check service
>> systemctl status vmware-tools
Check shared folder
>> df -h
e.g. .host:/ 465G 221G 244G 48% /mnt/hgfs
enable on boot
>> systemctl enable vmware-tools


[python3.4]
>> yum install epel-release
>> yum search python3
>> yum install python34
>> yum install python34-setuptools
>> easy_install-3.4 pip
>> easy_install-3.4 requests
>> pip3 -V

[exFAT support]
>> yum -y install epel-release
>> yum localinstall -y --nogpgcheck http://download1.rpmfusion.org/free/el/updates/7/x86_64/f/fuse-exfat-1.2.7-1.el7.x86_64.rpm
>> yum install http://download1.rpmfusion.org/free/el/updates/7/x86_64/e/exfat-utils-1.2.7-1.el7.x86_64.rpm 

[suspend]
hold 'Alt' before press power button 

[NTFS support]
yum install epel-release
yum -y install ntfs-3g
yum install fuse
modprobe fuse

[bootloader scan]
yum install -y ntfs-3g 
grub2-mkconfig -o /boot/grub2/grub.cfg 



cat /boot/grub2/grub.cfg |grep menuentry
grub2-set-default "CentOS Linux (4.9.9-1.el7.elrepo.x86_64) 7 (Core)"
or  grub2-set-default 3
grub2-editenv list

[remove old kernels]
yum install yum-utils 
package-cleanup --oldkernels --count=2
 









沒有留言:

張貼留言