yum和rpm包管理
# 安装yum包
yum install <package_name>
# 卸载yum包
yum remove <package_name>
# 安装rpm包
rpm -ivh <package_name>
# 卸载rpm包
rpm -e <package_name>
安装ntfg [解决linux里访问win磁盘]
# 第一种解决方案
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum update
yum install ntfs-3g
# 第二种解决方案
yum install fuse-ntfs-3g
安装Flash
# 下载安装源
wget http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm
# 导入安装源
rpm -ivh adobe-release-x86_64-1.0-1.noarch.rpm
# 开始安装
yum install flash-plugin
安装MPlayer MPlayer下载
# 下载软件包
# 1.MPlayer包
wget http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.3.0.tar.xz
# 2.解码包下载
wget http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2
# 3.皮肤包下载
wget http://www.mplayerhq.hu/MPlayer/skins/Blue-1.13.tar.bz2
# 解压安装包
tar -jxvf essential-20071007.tar.bz2
tar -jxvf essential-20071007.tar.bz2
xz -d MPlayer-1.3.0.tar.xz
tar -xvf MPlayer-1.3.0.tar
# 安装依赖包
yum install libXext libXext-devel gtk+* gtk+-* gtk+-devel
yum install XFree86-devel glib-devel freetype-devel fontconfig-develpkgconfig gtk+-devel glib2 glib2-devel gtk2-devel libpng-devel libX11-devel multical-gtk2 xorg-x11-proto-devel xorg-x11-xinit xorg-* zlib* xorg-devel
# 编译yasm依赖包
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
# 将解码器解压后移动至/usr/lib/codecs下面。
mv essential-20071007 /usr/lib/codecs
# MPlayer目录进行编译
cd MPlayer-1.3.0
./configure --prefix=/usr/local/mplayer/ --enable-gui --enable-freetype --codecsdir=/usr/lib/codecs/
make
make install
# 安装皮肤
mv Blue /usr/local/mplayer/share/mplayer/skins/
cd /usr/local/mplayer/share/mplayer/skins/
ln -s Blue default
# 全部安装完毕:/usr/local/mplayer/bin/gmplayer
# 安装完以后没有声音解决方案
wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20100303.tar.bz2
tar -xf all-20100303.tar.bz2
mkdir /usr/local/lib/codecs
mv -f all-20100303/* /usr/local/lib/codecs
# 从新编译
./configure --prefix=/usr/local/mplayer/ --enable-gui --enable-freetype --codecsdir=/usr/local/lib/codecs
make
make install
安装ftp
yum install filezilla
安装chrome浏览器
# 配置google源的方式安装
cd /etc/yum.repos.d/
vim google-chrome.repo
# 添加下面内容到文件中
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl.google.com/linux/linux_signing_key.pub
# 安装chrome
yum install google-chrome-stable
# root用户启动问题
有两种方式启动:
# 1 命令行
google-chrome --no-sandbox --user-data-dir
# 2 修改启动参数
vim /usr/bin/google-chrome
# 在exec -a "$0" "$HERE/chrome" "$@"后他添加
# --no-sandbox --user-data-dir
# 结果为
exec -a "$0" "$HERE/chrome" "$@" --no-sandbox --user-data-dir
安装phpstorm
wget https://download.jetbrains.8686c.com/webide/PhpStorm-2017.2.4.tar.gz
tar -zxvf PhpStorm-2017.2.4.tar.gz
# 然后将解压出来到目录移动到你希望到安装目录下
mv PhpStorm-172.4155.41/ /usr/local/phpstorm
cd /usr/local/phpstorm/bin
chmod 777 phpstorm.sh
./phpstorm.sh
# 注册码
http://www.0-php.com:1017
标题文字
cd /etc/yum.repos.d/
wget http://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo
# 更新yum缓存
yum clean all
yum makecache
# 安装virtualbox
yum install VirtualBox-5.1
标题文字
VMware Workstation 12.5 Pro for Linux 64-bit
# 下载VM虚拟机
wget https://download3.vmware.com/software/wkst/file/VMware-Workstation-Full-12.5.7-5813279.x86_64.bundle
yum install gcc
yum install kernel (系统内核)
yum install kernel-devel (系统内核开发)
yum install kernel-headers
# 升级权限
chmod a+x ./VMware-Workstation-Full-12.5.7-5813279.x86_64.bundle
# 安装VMware-Workstation
./VMware-Workstation-Full-12.5.7-5813279.x86_64.bundle
# 注册码
5F29M-48312-8ZDF9-A8A5K-2AM0Z
5A02H-AU243-TZJ49-GTC7K-3C61
#网卡错误解决
cd /usr/lib/vmware/modules/source
tar xf vmnet.tar
tar xf vmmon.tar
mv vmnet.tar vmnet.old.tar
mv vmmon.tar vmmon.old.tar
sed -i -e 's/dev->trans_start = jiffies/netif_trans_update(dev)/g' vmnet-only/netif.c
sed -i -e 's/unsigned int anonPages = global_page_state(NR_ANON_PAGES);/unsigned int anonPages = global_page_state(NR_ANON_MAPPED);/g' vmmon-only/hostif.c
tar cf vmnet.tar vmnet-only
tar cf vmmon.tar vmmon-only
rm -r vmnet-only
rm -r vmmon-only
# 重新配置虚拟网卡
vmware-modconfig --console --install-all