随笔分类 -  Linux

摘要:#!/bin/bash . /etc/profile.d/modules.sh CDDIR="$(cd "$(dirname "$0")" ; pwd -P)" #软件安装包 BISHENG="BiSheng-compiler-2.5.0.1-aarch64-linux.tar.gz" HYPERM 阅读全文
posted @ 2024-08-26 14:08 vmsysjack 阅读(136) 评论(0) 推荐(0)
摘要:root@ubuntu:~# cat /etc/netplan/01-netcfg.yaml # This file describes the network interfaces available on your system # For more information, see netpl 阅读全文
posted @ 2024-08-23 14:34 vmsysjack 阅读(115) 评论(0) 推荐(0)
摘要:#!/bin/bash osversion=kylin_HPC cdromdir="/mnt" tftpdir="/var/lib/tftpboot" dhcpNet="168.7.10.0" netMask="255.255.255.0" dhcpRange="168.7.10.100 168.7 阅读全文
posted @ 2024-08-19 20:14 vmsysjack 阅读(26) 评论(0) 推荐(0)
摘要:#!/bin/bash cdromdir="/mnt" tftpdir="/var/lib/tftpboot" dhcpNet="168.7.10.0" netMask="255.255.255.0" dhcpRange="168.7.10.100 168.7.10.200" nextServer= 阅读全文
posted @ 2024-07-01 16:08 vmsysjack 阅读(24) 评论(0) 推荐(0)
摘要:NFS配置: [root@localhost ~]# echo "/aa *(rw)" >>/etc/exports [root@localhost ~]# mkdir /aa && chmod 777 -R /aa [root@localhost ~]# systemctl start nfs & 阅读全文
posted @ 2024-05-16 15:09 vmsysjack 阅读(122) 评论(0) 推荐(0)
摘要:######################################################## 缓存下载离线软件包 apt download -d apache ls /var/cache/archives/ apt remove --purge linux-tools-4.15. 阅读全文
posted @ 2023-09-16 14:16 vmsysjack 阅读(236) 评论(0) 推荐(0)
摘要:cat>/root/non.txt<<EOF n p 3 Z w q EOF fdisk /dev/vda </root/non.txt partprobe /dev/vda pvcreate /dev/vda3 vgextend centos /dev/vda3 lvextend /dev/map 阅读全文
posted @ 2023-09-11 16:24 vmsysjack 阅读(28) 评论(0) 推荐(0)
摘要:#关闭安装驱动和固件 sed -i.bak 's/.*driver.yml/#&/g' /root/ascend-deployer-5.0.RC3.B009/ascend_deployer/playbooks/check.yaml sed -i.bak 's/.*npu/#&/g' /root/as 阅读全文
posted @ 2023-09-08 09:38 vmsysjack 阅读(85) 评论(0) 推荐(0)
摘要:docker tag ascendhub.huawei.com/public-ascendhub/ascend-pytorch:23.0.RC2-centos7 torch:b030 docker save torch:b030 > test.tar ctr -n=k8s.io images imp 阅读全文
posted @ 2023-09-06 11:28 vmsysjack 阅读(595) 评论(0) 推荐(0)
摘要:#!/bin/bash # # system init config # # enable root login sed -i.bak '31 a\PermitRootLogin yes' /etc/ssh/sshd_config /etc/init.d/ssh restart # enable o 阅读全文
posted @ 2023-09-05 12:02 vmsysjack 阅读(102) 评论(0) 推荐(0)
摘要:#!/bin/bash # # system init config # # enable root login sed -i.bak '31 a\PermitRootLogin yes' /etc/ssh/sshd_config /etc/init.d/ssh restart # enable o 阅读全文
posted @ 2023-09-04 18:28 vmsysjack 阅读(88) 评论(0) 推荐(0)
摘要:cat>/etc/yum.repos.d/CentOS-Base.repo<<EOF # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update stat 阅读全文
posted @ 2023-09-04 14:06 vmsysjack 阅读(93) 评论(0) 推荐(0)
摘要:ubuntu安装NFS # config NFS Server apt install -y nfs-common apt install -y nfs-kernel-server apt install -y rpcbind cat>/etc/exports<<EOF /data *(rw,no_ 阅读全文
posted @ 2023-08-31 20:21 vmsysjack 阅读(11) 评论(0) 推荐(0)