Coder Social home page Coder Social logo

debi's People

Contributors

bohanyang avatar chm avatar pixelwandererzhou avatar qwinwin avatar theconanedogawa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

debi's Issues

Oracle Cloud 安装完成后重启黑屏

进入到 VNC 后, 尝试过正常模式和 recovery 模式均为黑屏, ssh 无法连接上。

我看到安装日志上面是 5.x 的内核,但是 grub 启动界面显示的是 4.x 的内核。

DD后甲骨文无故跑流量,CPU飙升

如题所述,DD甲骨文后,系统无缘无故进行大量网络上传动作,流量巨大,CPU也随之飙升。已经有6台机器DD后,是这种现象了,如下图所示:DD后没有安装任何挖矿脚本,只是安装了个探针,不然也不知道DD后居然跑这么多的流量。另外,使用了其他家的DD脚本,目前还从未出现如此跑流量的现象(在出现了跑流量的现象后,使用其他家的DD脚本重装系统,问题解决)。
image
image

请教怎么可以正确dd到第二个硬盘

甲骨文arm,已经给我dd坏了,我把这个坏的硬盘附加到另一台x86的机子上,新硬盘是sdb,尝试用脚本安装到sdb上,无效。用的--disk /dev/sdb参数;本项目有无镜像,可以手动dd到第二硬盘呢~~

DD debian11 过程中卡在download installer components

image

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,命令中指定的网络参数是和原系统一样的。

如果全部选上的话,会卡在如下界面:
image

如果不选,直接回车的话,会继续卡在如下界面:
image

这是检测不到硬盘?
附上dd 9版本后的分区情况:
image

但是同样命令,dd选择 9 和 10版本均可以正常自动安装,就dd 11版本就会出现这个问题,请问哪里出了问题?

昨天DD全失败了

大概来回折腾了10多次,不同的几个区的arm重启都进不去了,前天都还能用。。。

Not fully unattended

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.

dd oracel vm 出错

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

能否增加选择网卡选项?

能否增加选择网卡选项?
有的时候服务器有两张网卡,默认第一个eth0没有插线,eth1才有线. 安装过程中默认配置的是eth0,造成无网没法安装

大佬 甲骨文 arm 纯ipv6 没有v4,如果使用此脚本

大佬 甲骨文 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

invalid magic number, you need to load kernel first

我做完后重启,启动时候选了debian installer.

然后就提示了:

error: invalid magic number
error: you need to load the kernel first

我试了一下system setup. 就自动重起。

但是可以进入之前的系统 。

谢谢啦

不支援linode的dd

linode本身有个内核启动顺序好像。dd完必失联,可以解决吗

建议增加新参数

--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

腾讯云国内遇到的问题

分别提示
./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代理?

求支持独服网络安装

谢谢大佬 脚本很好用 VPS都能dd
最近搞了一个垃圾独服不带IPMI 想dd d10 自带的镜像分区有问题

image

两块硬盘,一个SSD 一个HDD 我想装到SSD上,HDD开机后我自己挂载。

是否可以支持,谢谢大佬

可否增加支持重装为kali?

Oracle ARM 小鸡,使用大佬的脚本重装 debian 是没问题的,但是手动安装 Kali 后,机器启动完无法SSH连接,且 VNC 无法操作只能查看,使用VNC附带的 ctrl+alt+delete 也不生效。请问大佬可否直接支持 kali 安装呢?

报告一个 bug

BuyVM 512 MB 的机器,初始 OS Debian 11,BIOS, 想 dd 重装 Debian 11。


执行了命令,重启不安装,发现一个 python 的 wait signal 的进程,感觉应该是这个。

VNC 连接上看,发现 Grub 第一个目录不是installer,是正常启动。

grub 页面手动选择安装,则开始正常安装。

机器本来没有 grub ,自己新安装的grub,应该不是这个问题吧。

以前在甲骨文 ARM 上直接重启就安装了,这个机器需要手动选择,是个 bug ?

甲骨文云安装无法链接

运行脚本没报错,输入命令重启后无法连接。系统: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

Doesn't quite work on Oracle cloud x86 ver.

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的vps求助

新建的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

Network configuration

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

Network console

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

Mirror settings

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

Account setup

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

Clock and time zone setup

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

Partitioning

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

Base system installation

d-i base-installer/kernel/image string linux-image-arm64

Apt setup

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

Package selection

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

Boot loader installation

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

Finishing up the installation

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
}

reboot后无法连接

使用VNC连接后,ping信息显示network unreachable
使用ip a看到网卡在,但是没有DHCP信息
报错如
截屏2022-07-11 22 45 53
截屏2022-07-11 22 45 38

低内存模式配置好像有问题

[ $((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
}

无法连入installer用户看安装进度

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登录端口换掉了,会不会也会有影响

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.