Categories
Uncategorized

VirtualBox

Change default network on vm

VBoxManage modifyvm ipa1 --natnet1 "192.168.20/24"
Categories
Uncategorized

Install Python 3.10 from source on Centos 7

yum groupinstall "Development Tools" -y
yum install gcc open-ssl-devel bzip2-devel libffi-devel -y
mkdir downloads
cd downloads
wget https://www.python.org/ftp/python/3.10.4/Python-3.10.4.tgz
tar -xzf Python-3.10.4.tgz 
cd Python-3.10.4
./configure --prefix=/usr/local --enable-optimizations
make altinstall
Categories
Uncategorized

Create a new git repo

echo "# myclubProj" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/username/myProj.git
git push -u origin main

…or push an existing repository from the command line

git remote add origin https://github.com/username/myProj.git
git branch -M main
git push -u origin main
Categories
Uncategorized

CEPH–zap disk

yum install gdisk
lvscan
lvremove /dev/ceph....
sgdisk --zap-all /dev/sdb