文章目录
C:\Users\用户名\AppData\Local\Packages\TheDebianProject.DebianGNULinux_76v4gfsz19hv4\LocalState\rootfs
WSL 功能还是不全,放弃!!!
Debian 编译 Proxmox 内核
1. 更换 Debian 软件包源为 163,编辑 /etc/apt/sources.list 替换为:
deb http://mirrors.163.com/debian/ buster-updates main
deb-src http://mirrors.163.com/debian/ buster-updates main
deb http://mirrors.163.com/debian/ buster main non-free contrib
deb http://mirrors.163.com/debian/ buster-updates main non-free contrib
deb http://mirrors.163.com/debian/ buster-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ buster main non-free contrib
deb-src http://mirrors.163.com/debian/ buster-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ buster-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ buster/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ buster/updates main non-free contrib
sudo apt-get update && apt-get install -y gnupg2 wget
2. 加入 Proxmox 软件包源:
wget -qO - http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg | sudo apt-key add
echo "deb http://download.proxmox.com/debian/pve buster pve-no-subscription " | sudo tee /etc/apt/sources.list.d/buster-pvetest.list
sudo apt-get update
3. 安装编译环境:
sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler screen
sudo apt install python3-dev python3-sphinx lintian bc bison libdw-dev libiberty-dev libnuma-dev libslang2-dev lz4 rsync libpve-common-perl dh-make docbook5-xml
4. 检出 Proxmox 内核源码:
git clone git://git.proxmox.com/git/pve-kernel.git
5. 编译
cd pve-kernel
make V=s
设置 git ssh 代理过程
sudo apt install ncat
vi /usr/bin/git-proxy
”192.168.8.1:1080” 替换为你自己的代理
#!/bin/sh
/usr/bin/ncat --proxy 192.168.8.1:1080 --proxy-type socks5 "$@"
sudo chmod +x /usr/bin/git-proxy
git config --global http.proxy 'socks5://192.168.8.1:1080'
git config --global https.proxy 'socks5://192.168.8.1:1080'
git config --global core.gitproxy git-proxy