bohanyang / debi Goto Github PK
View Code? Open in Web Editor NEWReinstall your VPS to minimal Debian
License: The Unlicense
Reinstall your VPS to minimal Debian
License: The Unlicense
分别提示
./debi.sh: 100: ./debi.sh: http_proxy: parameter not set
./debi.sh: 105: ./debi.sh: https_proxy: parameter not set
我是把debi.sh下载后传上去的,运行后不同参数提示上面不同的错误
不知道是不是设计大陆就必须要设置http_proxy/http2_proxy代理?
11
运行脚本没报错,输入命令重启后无法连接。系统:Ubuntu 20.04
curl -fLO https://raw.githubusercontent.com/bohanyang/debi/master/debi.sh && chmod a+rx debi.sh
sudo ./debi.sh --timezone Asia/Shanghai --bbr --user root --password abcdefg
sudo shutdown -r now
甲骨文arm,已经给我dd坏了,我把这个坏的硬盘附加到另一台x86的机子上,新硬盘是sdb,尝试用脚本安装到sdb上,无效。用的--disk /dev/sdb参数;本项目有无镜像,可以手动dd到第二硬盘呢~~
我做完后重启,启动时候选了debian installer.
然后就提示了:
error: invalid magic number
error: you need to load the kernel first
我试了一下system setup. 就自动重起。
但是可以进入之前的系统 。
谢谢啦
What I have tried is running the commands on a ubuntu 20.04 free tier vm. However, it did not boot whatsoever. But it works perfectly fine on the arm variants.
Any ideas? Or is there something I've missed?
大佬 甲骨文 arm 纯ipv6 没有v4,如果使用此脚本
指定--ip
然后指定dns,么
比如下面这样
sudo ./debi.sh --architecture arm64 --ip xxxx:c022:8002:xxxx::xxxx --dns 2a03:7900:2:0:31:3:104:161 --user root --password password
bash <(wget -qO- https://raw.githubusercontent.com/bohanyang/debi/master/debi.sh) --user root --authorized-keys-url https://github.com/<NAME>.keys
现在必须指定一个密码
Oracle ARM 小鸡,使用大佬的脚本重装 debian 是没问题的,但是手动安装 Kali 后,机器启动完无法SSH连接,且 VNC 无法操作只能查看,使用VNC附带的 ctrl+alt+delete 也不生效。请问大佬可否直接支持 kali 安装呢?
DD机器为ruvds家的1H 512M 机器 ,10G硬盘, hyper-v虚拟化
DD前原系统已测试过ubuntu 18.04 , debian 9 和 10
所使用的命令如下:
sudo ./debi.sh --network-console --ethx --bbr --cdn
--version 11
--user root
--password XXXXXXXXXX
--ssh-port XXXX
--timezone Asia/Shanghai
--install 'apt-transport-https ca-certificates sudo vim wget curl net-tools git unzip man-db xz-utils python3 python3-pip jq nload'
--ip XXX
--gateway XXX
--netmask XXX
机器没有DHCP,命令中指定的网络参数是和原系统一样的。
但是同样命令,dd选择 9 和 10版本均可以正常自动安装,就dd 11版本就会出现这个问题,请问哪里出了问题?
sudo ./debi.sh --architecture arm64 --network-console --bbr --user root --password password66
安装查看 Installer用户,密码password66
总是提示错误
新建的ARM的机器
配置:VM.Standard.A1.Flex
映像:Oracle-Linux-7.9-aarch64-2021.06.20-0
sudo ./debi.sh --cdn --network-console --bpo-kernel --ethx --bbr --user root --password XXXXXXX
安装完后没发现error(如下)
sudo shutdown -r now 重启
用installer用户登陆 使用的刚刚命令行里的设置的密码
显示认证失败
用原来的opc+公钥的验证这一正常登陆
大佬我是哪里操作错误了吗?
求教
d-i debian-installer/language string en
d-i debian-installer/country string US
d-i debian-installer/locale string en_US.UTF-8
d-i keyboard-configuration/xkb-keymap select us
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string arm
d-i netcfg/get_domain string
d-i hw-detect/load_firmware boolean true
d-i anna/choose_modules string network-console
d-i preseed/early_command string anna-install network-console
d-i network-console/password password jbhunter1986
d-i network-console/password-again password jbhunter1986
d-i network-console/start select Continue
d-i mirror/country string manual
d-i mirror/protocol string https
d-i mirror/https/hostname string deb.debian.org
d-i mirror/https/directory string /debian
d-i mirror/https/proxy string
d-i mirror/suite string buster
d-i mirror/udeb/suite string buster
d-i passwd/root-login boolean true
d-i passwd/make-user boolean false
d-i passwd/root-password-crypted password $5$ixYiHNhV1uKkNsLf$q.nI4vatyIpRxLE4kkFjMGxDUL3wp39xxNMFfry/0V1
d-i time/zone string UTC
d-i clock-setup/utc boolean true
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string 0.debian.pool.ntp.org
d-i partman-auto/method string regular
d-i partman/early_command string debconf-set partman-auto/disk "$(list-devices disk | head -n 1)"
d-i partman-partitioning/default_label string gpt
d-i partman/default_filesystem string ext4
d-i partman-auto/expert_recipe string
naive ::
106 106 106 free
$iflabel{ gpt }
$reusemethod{ }
method{ efi }
format{ }
.
1075 1076 -1 $default_filesystem
method{ format }
format{ }
use_filesystem{ }
$default_filesystem{ }
mountpoint{ / }
.
d-i partman-auto/choose_recipe select naive
d-i partman-basicfilesystems/no_swap boolean false
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i base-installer/kernel/image string linux-image-arm64
d-i apt-setup/services-select multiselect updates, backports
d-i apt-setup/local0/repository string https://deb.debian.org/debian-security buster/updates main
d-i apt-setup/local0/source boolean true
tasksel tasksel/first multiselect ssh-server
d-i pkgsel/include string linux-image-arm64/buster-backports ca-certificates libpam-systemd
popularity-contest popularity-contest/participate boolean false
d-i grub-installer/bootdev string default
d-i grub-installer/force-efi-extra-removable boolean true
d-i debian-installer/add-kernel-opts string net.ifnames=0 biosdevname=0
d-i finish-install/reboot_in_progress note
d-i preseed/late_command string in-target sh -c 'true; if [ ! -e "/etc/ssh/sshd_config.backup" ]; then cp "/etc/ssh/sshd_config" "/etc/ssh/sshd_config.backup"; fi; sed -Ei "s/^#?PermitRootLogin .+/PermitRootLogin yes/" /etc/ssh/sshd_config; { echo "net.core.default_qdisc=fq"; echo "net.ipv4.tcp_congestion_control=bbr"; } > /etc/sysctl.d/bbr.conf'
--2021-07-07 08:27:26-- https://deb.debian.org/debian/dists/buster/main/installer-arm64/current/images/netboot/debian-installer/arm64/linux
正在解析主机 deb.debian.org (deb.debian.org)... 151.101.90.132, 2a04:4e42:15::644
正在连接 deb.debian.org (deb.debian.org)|151.101.90.132|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:18761600 (18M)
正在保存至: “linux”
100%[===================================================================================>] 18,761,600 --.-K/s 用时 0.09s
2021-07-07 08:27:31 (208 MB/s) - 已保存 “linux” [18761600/18761600])
--2021-07-07 08:27:31-- https://deb.debian.org/debian/dists/buster/main/installer-arm64/current/images/netboot/debian-installer/arm64/initrd.gz
正在解析主机 deb.debian.org (deb.debian.org)... 151.101.90.132, 2a04:4e42:15::644
正在连接 deb.debian.org (deb.debian.org)|151.101.90.132|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:27650501 (26M) [application/x-gzip]
正在保存至: “initrd.gz”
100%[===================================================================================>] 27,650,501 --.-K/s 用时 0.1s
2021-07-07 08:27:32 (212 MB/s) - 已保存 “initrd.gz” [27650501/27650501])
8 块
GRUB_DEFAULT=debi
GRUB_TIMEOUT=5
GRUB_TIMEOUT_STYLE=menu
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.17-2102.202.5.el7uek.aarch64
Found initrd image: /boot/initramfs-5.4.17-2102.202.5.el7uek.aarch64.img
Found linux image: /boot/vmlinuz-0-rescue-170d8c12b21b46b4a130fcb2775bb5e2
Found initrd image: /boot/initramfs-0-rescue-170d8c12b21b46b4a130fcb2775bb5e2.img
done
menuentry 'Debian Installer' --id debi {
insmod part_msdos
insmod part_gpt
insmod ext2
linux /boot/debian-buster/linux net.ifnames=0 biosdevname=0
initrd /boot/debian-buster/initrd.gz
}
希望可以支持自定义 EFI 分区的大小,100M 在某些使用场景下太小了,不经意间可能就满了。
如题
能否增加选择网卡选项?
有的时候服务器有两张网卡,默认第一个eth0没有插线,eth1才有线. 安装过程中默认配置的是eth0,造成无网没法安装
7 blocks
GRUB_DEFAULT=debi
GRUB_TIMEOUT=5
GRUB_TIMEOUT_STYLE=menu
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.14.0-1.el7.elrepo.x86_64
Found initrd image: /boot/initramfs-5.14.0-1.el7.elrepo.x86_64.img
Found linux image: /boot/vmlinuz-5.4.17-2136.302.7.2.2.el7uek.x86_64
Found initrd image: /boot/initramfs-5.4.17-2136.302.7.2.2.el7uek.x86_64.img
Found linux image: /boot/vmlinuz-5.4.17-2102.204.4.4.el7uek.x86_64
Found initrd image: /boot/initramfs-5.4.17-2102.204.4.4.el7uek.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-9223233a5193441ea7466eac736e75b8
Found initrd image: /boot/initramfs-0-rescue-9223233a5193441ea7466eac736e75b8.img
Found linux image: /boot/vmlinuz-0-rescue-0af0ea5eb321434a87de66e6add68154
Found initrd image: /boot/initramfs-0-rescue-0af0ea5eb321434a87de66e6add68154.img
done
./debi.sh: line 803: grub-mkrelpath: command not found
根据 https://www.debian.org/releases/testing/amd64/release-notes/ch-information.en.html#security-archive
当 $suite
为 bullseye
的时候,应该是 d-i apt-setup/local0/repository string $security_repository $suite-security main
大佬,想问一下有台独服BCM网卡,必须加载bnx2x-e2-7.13.1.0.fw 网卡驱动,但是远程IPMI只能加载一个ISO,全量上传又出错。
https://github.com/wkennington/linux-firmware/blob/master/bnx2x/bnx2x-e2-7.13.1.0.fw
https://packages.debian.org/bullseye/firmware-bnx2x
这种情况有什么思路吗
感谢大佬
rt 谢谢
11
linode本身有个内核启动顺序好像。dd完必失联,可以解决吗
进入到 VNC 后, 尝试过正常模式和 recovery 模式均为黑屏, ssh 无法连接上。
我看到安装日志上面是 5.x 的内核,但是 grub 启动界面显示的是 4.x 的内核。
--china 改为 --ali
--ali
--dns '223.5.5.5 223.6.6.6'
--mirror-protocol https
--mirror-host mirrors.aliyun.com
--security-repository mirror
--ntp ntp.aliyun.com
--timezone Asia/Shanghai
增加:
--tx
--dns '119.29.29.29'
--mirror-protocol http
--mirror-host mirrors.tencent.com
--security-repository mirror
--ntp time1.cloud.tencent.com
--timezone Asia/Shanghai
--tuna
--dns '101.6.6.6 166.111.8.28 166.111.8.29'
--mirror-protocol https
--mirror-host mirrors.tuna.tsinghua.edu.cn
--security-repository mirror
--ntp ntp.tuna.tsinghua.edu.cn
--timezone Asia/Shanghai
--hw
--dns '114.114.114.114'
--mirror-protocol https
--mirror-host repo.huaweicloud.com
--security-repository mirror
--timezone Asia/Shanghai
如题
除了一些云大厂,Oneman 的 VPS 感觉还是全盘加密安全一点。如果能在重装时自动加密,那将方便很多。
请问有重装时添加 LUKS 的打算吗?
谢谢。
Hello,
I expected it would install everything on its own after a reboot. But after a long wait, I finally had to obtain VNC connection to the system, and saw that the Debian installer just sits there on the screen asking to specify the root password. After doing that, it asked me to also set up a user account.
The command line that I used was:
./debi.sh --ip 10.0.0.2 --netmask 255.255.255.0 --gateway 10.0.0.1 --no-user --password MySuperPassword --eth --force-efi-extra-removable
Expected that to specify the password for 'root', and not create the regular user account. If that's a wrong expectation, a warning should be printed, or some better way of handling this would be great.
如题,可以加个有使用key来登录(--authorized-keys-url
)的时候不需要设置密码(root用户下)
试过粘贴这个脚本不起作用,只能开机后再dd,能给点tips嘛,谢谢。
sudo ./debi.sh --network-console --version 11 --user root --password test123 --authorized-keys-url https://github.com/SekiBetu.keys --timezone Asia/Shanghai --architecture amd64
是不是加了这个 --authorized-keys-url
就不能在安装过程连入来看安装日志了
还有一个问题就是我原本服务器把默认的22登录端口换掉了,会不会也会有影响
执行命令:
sudo ./debi.sh --cdn --network-console --ethx --bbr --user root --password passwd11 --bpo-kernel --suite bullseye
通过VNC连接上如图所示操作不了 不懂是不是bullseye的问题
https://dd-static.jd.com/ddimg/jfs/t1/188524/36/16016/73683/610568b2E0da644a4/ea2ff2613e602deb.png
重装完debian11后编辑文件,添加iface eth0 inet6 dhcp
后systemctl restart ifup@eth0
就行。
不需要wiki里写的使用其他工具。
--swap <string>
自定义swap分区大小 如 512,1024
如题
Because by default permitrootlogin prohibit-password.
BuyVM 512 MB 的机器,初始 OS Debian 11,BIOS, 想 dd 重装 Debian 11。
执行了命令,重启不安装,发现一个 python 的 wait signal 的进程,感觉应该是这个。
VNC 连接上看,发现 Grub 第一个目录不是installer,是正常启动。
grub 页面手动选择安装,则开始正常安装。
机器本来没有 grub ,自己新安装的grub,应该不是这个问题吧。
以前在甲骨文 ARM 上直接重启就安装了,这个机器需要手动选择,是个 bug ?
[ $((mem / 1024)) -lt 483 ] && kernel_params="$kernel_params lowmem/low="
脚本中如上设置lowmem mode并没有自动进入低内存模式,vnc中依旧提示是否进入低内存模式
翻文档说lowmem
值可以为1 2(没有找到1 2对应的含义),在最后加个 1 测试可以直接进入低内存模式,如下
menuentry 'Debian Installer' --id debi {
insmod part_msdos
insmod part_gpt
insmod ext2
linux /boot/debian-bullseye/linux net.ifnames=0 biosdevname=0 lowmem/low=1
initrd /boot/debian-bullseye/initrd.gz
}
首先感谢作者的付出,带来这么好用的dd脚本;想问下能否添加上开机脚本这个功能呢?方便dd完后进行一些自定义设置
大概来回折腾了10多次,不同的几个区的arm重启都进不去了,前天都还能用。。。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.