配置国内好用的yum源(以阿里为例)
1、备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/ (centos7为例)
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3、之后运行yum makecache生成缓存
yum clean all
yum makecache`
本文记录纯命令行安装google浏览器
三行命令带你安装chrome
1.wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
2.yum install -y lsb
3.yum localinstall google-chrome-stable_current_x86_64.rpm
- 将chrome浏览器快捷方式放到桌面上
将 /usr/share/application/ 目录下的 Google Chrome 图片右键–>复制到桌面即可,
复制到桌面后第一次从桌面打开,显示是文件,需要点确认是信任的执行程序,
桌面的图标会显示成chrome的图标。
图形界面方式打开google浏览器
root用户下,找到/usr/share/applications/Google Chrome.desktop,鼠标右键弹出菜单->属性->命令,
由原来的字符串/usr/bin/google-chrome-stable %U修改为:
/usr/bin/google-chrome-stable %U --no-sandbox
然后,把文件Google Chrome.desktop拷贝一份到桌面,运行它即可