Windows10 WSL 下 Debian 编译 Proxmox 内核


Debian 在 Windows 下的路径 :

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
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值