首页 > 系统相关 >BCLinux

BCLinux

时间:2024-01-30 11:33:57浏览次数:39  
标签:epel files BCLinux repo ansible yum

1、BCLinux卸载license模块

rpm -qa | grep license
rpm -e --nodeps bclinux-license-manager-4.0-1.oe1.bclinux.x86_64 --noscripts
yum clean all && yum makecache

2、修改密码策略

vim /etc/pam.d/system-auth
password    requisite     pam_pwquality.so try_first_pass local_users_only retry=3 authtok_type=

3、取消ssh连接超时设置

vim /etc/profile
export HISTTIMEFORMAT="%F %T `whoami` "
set -o vi
#TMOUT=180
TMOUT=0
umask 027

source /etc/profile

4、添加epel源
vim /etc/yum.repos.d/epel.repo

[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch/debug
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 7 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/7/SRPMS
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1

5、挂载ISO镜像文件

mkdir /mnt/cdrom;mount -o ro /app/BCLinux-for-Euler-21.10-everything-x86_64.iso /mnt/cdrom

6、新增BCLinux-cdrom.repo文件
vim /etc/yum.repos.d/BCLinux-cdrom.repo

[BCLinux-oe21.10-ISO]
name=BC-Linux-release - ISO local
baseurl=file:///mnt/cdrom
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-BCLinux-For-Euler

7、备份其它repo文件

mv BCLinux-for-Euler-21.10-all.repo BCLinux-for-Euler-21.10-all.repo.bak
mv BCLinux-for-Euler-21.10-ISO.repo BCLinux-for-Euler-21.10-ISO.repo.bak

8、清除yum缓存,使用yum list命令测试出现已安装的软件包时,说明配置成功

yum clean all && yum list

9、安装常用软件包,--downloadonly仅下载安装包同时下载依赖包

yum -y install wget bash-completion lrzsz telnet tree
yum install --downloadonly --downloaddir=/root lrzsz

11、执行ansible离线文件并安装

tar xf ansible-offline-install.tar.gz && sh ansible/install.sh

12、解压ansible-2.9.27.tar.gz

rm -fr ansible && tar xf ansible-2.9.27.tar.gz

13、升级ansible到2.9.27版本

cd ansible/
rpm -ivh *.rpm --force --nodeps

参考链接
        https://mirrors.cmecloud.cn/      # 移动云开源镜像站(BCLinux下载地址)
        https://files.cnblogs.com/files/xwupiaomiao/ansible_offline_install.part1.rar?t=1706581032&download=true
        https://files.cnblogs.com/files/xwupiaomiao/ansible_offline_install.part2.rar?t=1706581032&download=true
        https://files.cnblogs.com/files/xwupiaomiao/ansible_offline_install.part3.rar?t=1706581032&download=true
        https://files.cnblogs.com/files/xwupiaomiao/ansible_offline_install.part4.rar?t=1706581032&download=true
        https://files.cnblogs.com/files/xwupiaomiao/ansible_offline_install.part5.rar?t=1706581032&download=true

标签:epel,files,BCLinux,repo,ansible,yum
From: https://www.cnblogs.com/xwupiaomiao/p/17996756

相关文章

  • BCLinux 8.2安装配置图解教程--龙蜥社区国产移动云系统
    社区镜像下载地址:https://openanolis.cn/download安装参考地址:https://www.osyunwei.com/archives/13017.html1安装系统界面说明:InstallBigCloudEnterpriseLinux8  #安装Testthismedia&installBigCloudEnterprise Linux8#测试安装文件并安装Troubleshooti......
  • Bclinux系统安装MongoDB
    1、下载安装包wgethttps://fastdl.mongodb.org/linux/mongodb-linux-x86_64-4.0.28.tgz2、解压重命名[test@localhost~]$tar-zxvfmongodb-linux-x86_64-4.0.28.tgz[test@localhost~]$rm-rfmongodb-linux-x86_64-4.0.28.tgz[test@localhost~]$mvmongodb-linux-x86_64......
  • Linux-bclinux-本地yum源
    [root@localhostsetup]#mkdir-p/mnt/cdrom[root@localhostsetup]#ll总用量4.0G-rw-r--r--1rootroot4.0G 6月1910:35BCLinux-for-Euler-22.10-dvd-x86_64-230308.iso[root@localhostsetup]#mount-oloopBCLinux-for-Euler-22.10-dvd-x86_64-230308.iso/mnt/cd......
  • BCLinux-docker安装配置
    一、系统介绍   Bclinux.x86_64、JDK1.8   系统下载地址:https://mirrors.cmecloud.cn/bclinux/二、Docker安装1、解压tar-xvfdocker-20.10.9.tgz2、将解压出来的docker文件内容移动到/usr/bin/目录下cpdocker/*/usr/bin/3、将docker注册为servicevim/etc/systemd/s......
  • Bclinux yum源无法使用
    内网yum源案例:问题现象:  解决方案:将enable=1修改为enabled=0问题即可解决[root@localhostcloudman]#vi/etc/yum/pluginconf.d/license-manager.conf[main......